survey-vue3-ui 1.9.123 → 1.9.125
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/survey-vue3-ui.es.js +703 -667
- package/survey-vue3-ui.umd.js +1 -1
- package/types/App.vue.d.ts +1 -1
- package/types/BooleanCheckbox.vue.d.ts +1 -1
- package/types/BooleanRadio.vue.d.ts +1 -1
- package/types/BooleanRadioItem.vue.d.ts +1 -1
- package/types/BooleanSwitch.vue.d.ts +1 -1
- package/types/Checkbox.vue.d.ts +1 -1
- package/types/CheckboxItem.vue.d.ts +1 -1
- package/types/Comment.vue.d.ts +1 -1
- package/types/Composite.vue.d.ts +1 -1
- package/types/Custom.vue.d.ts +1 -1
- package/types/CustomWidget.vue.d.ts +1 -1
- package/types/Dropdown.vue.d.ts +1 -1
- package/types/DropdownSelect.vue.d.ts +1 -1
- package/types/Element.vue.d.ts +1 -1
- package/types/ElementHeader.vue.d.ts +1 -1
- package/types/Errors.vue.d.ts +1 -1
- package/types/Expression.vue.d.ts +1 -1
- package/types/File.vue.d.ts +1 -1
- package/types/FileCleanButton.vue.d.ts +1 -1
- package/types/FileVideo.vue.d.ts +1 -1
- package/types/Header.vue.d.ts +1 -1
- package/types/Html.vue.d.ts +1 -1
- package/types/Image.vue.d.ts +1 -1
- package/types/Imagepicker.vue.d.ts +1 -1
- package/types/ImagepickerItem.vue.d.ts +1 -1
- package/types/Logo.vue.d.ts +1 -1
- package/types/Matrix.vue.d.ts +1 -1
- package/types/MatrixCell.vue.d.ts +10 -6
- package/types/MatrixDropdown.vue.d.ts +1 -1
- package/types/MatrixDropdownCellComp.vue.d.ts +18 -0
- package/types/MatrixDynamic.vue.d.ts +1 -1
- package/types/MatrixHeaderRequired.vue.d.ts +1 -1
- package/types/MatrixTable.vue.d.ts +1 -1
- package/types/Multipletext.vue.d.ts +1 -1
- package/types/MultipletextItem.vue.d.ts +1 -1
- package/types/Notifier.vue.d.ts +1 -1
- package/types/Page.vue.d.ts +1 -1
- package/types/Panel.vue.d.ts +1 -1
- package/types/PanelDynamic.vue.d.ts +1 -1
- package/types/PanelDynamicProgress.vue.d.ts +1 -1
- package/types/PanelDynamicProgressV2.vue.d.ts +1 -1
- package/types/PopupSurvey.vue.d.ts +1 -1
- package/types/Question.vue.d.ts +1 -1
- package/types/QuestionComment.vue.d.ts +1 -1
- package/types/QuestionOther.vue.d.ts +1 -1
- package/types/Radiogroup.vue.d.ts +1 -1
- package/types/RadiogroupItem.vue.d.ts +1 -1
- package/types/Ranking.vue.d.ts +1 -1
- package/types/RankingItem.vue.d.ts +1 -1
- package/types/Rating.vue.d.ts +1 -1
- package/types/RatingDropdown.vue.d.ts +1 -1
- package/types/Row.vue.d.ts +1 -1
- package/types/SelectBase.vue.d.ts +1 -1
- package/types/Signaturepad.vue.d.ts +1 -1
- package/types/String.vue.d.ts +1 -1
- package/types/StringEditor.vue.d.ts +1 -1
- package/types/StringViewer.vue.d.ts +1 -1
- package/types/Survey.vue.d.ts +1 -1
- package/types/SvgBundle.vue.d.ts +1 -1
- package/types/Tagbox.vue.d.ts +1 -1
- package/types/TemplateRenderer.vue.d.ts +1 -1
- package/types/Text.vue.d.ts +1 -1
- package/types/TextInput.vue.d.ts +1 -1
- package/types/TimerPanel.vue.d.ts +1 -1
- package/types/base.d.ts +1 -0
- package/types/buttongroup/ButtonGroup.vue.d.ts +1 -1
- package/types/buttongroup/ButtonGroupItem.vue.d.ts +1 -1
- package/types/components/BrandInfo.vue.d.ts +1 -1
- package/types/components/CharacterCounter.vue.d.ts +1 -1
- package/types/components/Container.vue.d.ts +1 -1
- package/types/components/LoadingIndicator.vue.d.ts +1 -1
- package/types/components/Skeleton.vue.d.ts +1 -1
- package/types/components/action-bar/Action.vue.d.ts +1 -1
- package/types/components/action-bar/ActionBar.vue.d.ts +1 -1
- package/types/components/action-bar/ActionBarItem.vue.d.ts +1 -1
- package/types/components/action-bar/ActionBarItemDropdown.vue.d.ts +1 -1
- package/types/components/action-bar/ActionBarSeparator.vue.d.ts +1 -1
- package/types/components/dropdown/Dropdown.vue.d.ts +1 -1
- package/types/components/dropdown/OptionItem.vue.d.ts +1 -1
- package/types/components/file/FileChooseButton.vue.d.ts +1 -1
- package/types/components/file/FilePreview.vue.d.ts +1 -1
- package/types/components/header/Header.vue.d.ts +1 -1
- package/types/components/header/HeaderCell.vue.d.ts +1 -1
- package/types/components/header/HeaderMobile.vue.d.ts +1 -1
- package/types/components/list/List.vue.d.ts +1 -1
- package/types/components/list/ListItem.vue.d.ts +1 -1
- package/types/components/matrix-actions/detail-button/DetailButton.vue.d.ts +1 -1
- package/types/components/matrix-actions/drag-drop-icon/DragDropIcon.vue.d.ts +1 -1
- package/types/components/matrix-actions/remove-button/RemoveButton.vue.d.ts +1 -1
- package/types/components/paneldynamic-actions/PaneldynamicAddBtn.vue.d.ts +1 -1
- package/types/components/paneldynamic-actions/PaneldynamicNextBtn.vue.d.ts +1 -1
- package/types/components/paneldynamic-actions/PaneldynamicPrevBtn.vue.d.ts +1 -1
- package/types/components/paneldynamic-actions/PaneldynamicProgressText.vue.d.ts +1 -1
- package/types/components/paneldynamic-actions/PaneldynamicRemoveBtn.vue.d.ts +1 -1
- package/types/components/popup/Popup.vue.d.ts +1 -1
- package/types/components/popup/PopupContainer.vue.d.ts +1 -1
- package/types/components/popup/PopupModal.vue.d.ts +1 -1
- package/types/components/popup/PopupPointer.vue.d.ts +1 -1
- package/types/components/progress/Progress.vue.d.ts +1 -1
- package/types/components/progress/ProgressButtons.vue.d.ts +1 -1
- package/types/components/progress/ProgressToc.vue.d.ts +1 -1
- package/types/components/rating/RatingDropdownItem.vue.d.ts +1 -1
- package/types/components/rating/RatingItem.vue.d.ts +1 -1
- package/types/components/rating/RatingItemSmiley.vue.d.ts +1 -1
- package/types/components/rating/RatingItemStar.vue.d.ts +1 -1
- package/types/components/survey-actions/SurveyNavigationButton.vue.d.ts +1 -1
- package/types/components/svg-icon/SvgIcon.vue.d.ts +1 -1
- package/types/components/tagbox/Tagbox.vue.d.ts +1 -1
- package/types/components/tagbox/TagboxFilter.vue.d.ts +1 -1
- package/types/components/tagbox/TagboxItem.vue.d.ts +1 -1
- package/types/components/title/TitleActions.vue.d.ts +1 -1
- package/types/components/title/TitleContent.vue.d.ts +1 -1
- package/types/components/title/TitleElement.vue.d.ts +1 -1
- package/types/index.d.ts +1 -1
package/survey-vue3-ui.es.js
CHANGED
|
@@ -1,57 +1,57 @@
|
|
|
1
|
-
import { shallowReactive as
|
|
2
|
-
import { Base as
|
|
3
|
-
|
|
4
|
-
function
|
|
1
|
+
import { shallowReactive as be, watch as J, onBeforeUnmount as Q, onMounted as H, ref as _, shallowRef as z, watchEffect as ke, triggerRef as ne, unref as f, isRef as fe, defineComponent as h, computed as w, onUpdated as x, resolveComponent as p, openBlock as i, createElementBlock as u, normalizeClass as l, createVNode as C, createCommentVNode as d, Fragment as $, renderList as B, createBlock as q, resolveDynamicComponent as T, normalizeProps as F, mergeProps as W, withCtx as O, normalizeStyle as S, createElementVNode as c, onUnmounted as U, guardReactiveProps as oe, withDirectives as P, vShow as M, toDisplayString as R, vModelRadio as ee, vModelCheckbox as te, vModelSelect as Ie, vModelText as we, getCurrentInstance as ie, createStaticVNode as Se, resolveDirective as X, toRaw as Re, Teleport as Te, useSlots as $e, renderSlot as _e } from "vue";
|
|
2
|
+
import { Base as De, RendererFactory as se, DropdownListModel as Be, Helpers as Le, DropdownMultiSelectListModel as Ne, doKey2ClickUp as ge, createSvg as Pe, ActionDropdownViewModel as Ae, getActionDropdownButtonTarget as Me, createPopupViewModel as de, SurveyProgressModel as me, SurveyProgressButtonsModel as He, TOCModel as We, PopupSurveyModel as Ee, settings as j, createDialogOptions as Ve, createPopupModalViewModel as Oe, ButtonGroupItemModel as Fe, SvgRegistry as ze, SurveyModel as Ue, doKey2ClickDown as Ke, doKey2ClickBlur as je } from "survey-core";
|
|
3
|
+
De.createPropertiesHash = () => be({});
|
|
4
|
+
function Qe(r) {
|
|
5
5
|
return !r || r.__vueImplemented ? !1 : (r.createArrayCoreHandler = (s, o) => {
|
|
6
|
-
const e = [], n =
|
|
6
|
+
const e = [], n = z(e);
|
|
7
7
|
return e.onArrayChanged = () => {
|
|
8
|
-
|
|
8
|
+
ne(n);
|
|
9
9
|
}, s[o] = n, f(s[o]);
|
|
10
10
|
}, r.iteratePropertiesHash((s, o) => {
|
|
11
11
|
if (Array.isArray(s[o])) {
|
|
12
|
-
const e =
|
|
12
|
+
const e = z(s[o]);
|
|
13
13
|
s[o].onArrayChanged = () => {
|
|
14
|
-
|
|
14
|
+
ne(e);
|
|
15
15
|
}, s[o] = e;
|
|
16
16
|
}
|
|
17
17
|
}), r.getPropertyValueCoreHandler = (s, o) => f(s[o]), r.setPropertyValueCoreHandler = (s, o, e) => {
|
|
18
|
-
|
|
18
|
+
fe(s[o]) ? s[o].value = e : s[o] = e;
|
|
19
19
|
}, r.__vueImplemented = !0, !0);
|
|
20
20
|
}
|
|
21
|
-
function
|
|
21
|
+
function ce(r, s) {
|
|
22
22
|
!r || !s || (r.iteratePropertiesHash((o, e) => {
|
|
23
23
|
o[e] = f(o[e]), Array.isArray(o[e]) && (o[e].onArrayChanged = void 0);
|
|
24
24
|
}), delete r.__vueImplemented, r.createArrayCoreHandler = void 0, r.getPropertyValueCoreHandler = void 0, r.setPropertyValueCoreHandler = void 0);
|
|
25
25
|
}
|
|
26
26
|
function L(r, s, o) {
|
|
27
27
|
let e = !1;
|
|
28
|
-
const n =
|
|
28
|
+
const n = J(
|
|
29
29
|
r,
|
|
30
30
|
(t, a) => {
|
|
31
|
-
t && s && s(t, a), a && (
|
|
31
|
+
t && s && s(t, a), a && (ce(a, e), o && o(a)), e = Qe(t);
|
|
32
32
|
},
|
|
33
33
|
{
|
|
34
34
|
immediate: !0
|
|
35
35
|
}
|
|
36
36
|
);
|
|
37
|
-
|
|
37
|
+
Q(() => {
|
|
38
38
|
const t = r();
|
|
39
|
-
t && (
|
|
39
|
+
t && (ce(t, e), o && o(t), n());
|
|
40
40
|
});
|
|
41
41
|
}
|
|
42
42
|
function A(r, s, o, e) {
|
|
43
43
|
L(() => r.question, o, e), H(() => {
|
|
44
44
|
r.question && r.question.afterRenderQuestionElement(s.value);
|
|
45
|
-
}),
|
|
45
|
+
}), Q(() => {
|
|
46
46
|
r.question.beforeDestroyQuestionElement(s.value);
|
|
47
47
|
});
|
|
48
48
|
}
|
|
49
|
-
function
|
|
49
|
+
function G(r) {
|
|
50
50
|
const s = _(), o = (n) => {
|
|
51
51
|
s.value = n.renderedHtml, n.onChanged = () => {
|
|
52
52
|
s.value = n.renderedHtml;
|
|
53
53
|
};
|
|
54
|
-
}, e =
|
|
54
|
+
}, e = J(
|
|
55
55
|
r,
|
|
56
56
|
(n, t) => {
|
|
57
57
|
t && (t.onChanged = () => {
|
|
@@ -59,14 +59,22 @@ function Q(r) {
|
|
|
59
59
|
},
|
|
60
60
|
{ immediate: !0 }
|
|
61
61
|
);
|
|
62
|
-
return
|
|
62
|
+
return Q(() => {
|
|
63
63
|
e();
|
|
64
64
|
}), s;
|
|
65
65
|
}
|
|
66
|
-
function
|
|
66
|
+
function re(r) {
|
|
67
67
|
return r.customWidget ? "survey-customwidget" : r.isDefaultRendering && r.isDefaultRendering() || r.isPanel ? "survey-" + r.getTemplate() : r.getComponentName();
|
|
68
68
|
}
|
|
69
|
-
|
|
69
|
+
function le(r) {
|
|
70
|
+
const s = z(), o = ke(() => {
|
|
71
|
+
s.value = r(), ne(s);
|
|
72
|
+
});
|
|
73
|
+
return Q(() => {
|
|
74
|
+
o();
|
|
75
|
+
}), s;
|
|
76
|
+
}
|
|
77
|
+
const Ge = /* @__PURE__ */ h({
|
|
70
78
|
__name: "Page",
|
|
71
79
|
props: {
|
|
72
80
|
survey: {},
|
|
@@ -76,42 +84,42 @@ const je = /* @__PURE__ */ h({
|
|
|
76
84
|
setup(r) {
|
|
77
85
|
const s = r, o = _(null);
|
|
78
86
|
L(() => s.page);
|
|
79
|
-
const e = w(() => s.page._showDescription)
|
|
87
|
+
const e = w(() => s.page._showDescription);
|
|
80
88
|
return H(() => {
|
|
81
89
|
s.survey && s.survey.afterRenderPage(o.value);
|
|
82
90
|
}), x(() => {
|
|
83
91
|
s.survey.afterRenderPage(o.value);
|
|
84
|
-
}), (
|
|
85
|
-
const
|
|
92
|
+
}), (n, t) => {
|
|
93
|
+
const a = p("survey-element-title"), y = p("survey-string"), m = p("survey-errors"), v = p("survey-row");
|
|
86
94
|
return i(), u("div", {
|
|
87
|
-
class: l(
|
|
95
|
+
class: l(n.page.cssRoot),
|
|
88
96
|
ref_key: "root",
|
|
89
97
|
ref: o
|
|
90
98
|
}, [
|
|
91
|
-
|
|
92
|
-
element:
|
|
93
|
-
css:
|
|
99
|
+
C(a, {
|
|
100
|
+
element: n.page,
|
|
101
|
+
css: n.css
|
|
94
102
|
}, null, 8, ["element", "css"]),
|
|
95
103
|
e.value ? (i(), u("div", {
|
|
96
104
|
key: 0,
|
|
97
|
-
class: l(
|
|
105
|
+
class: l(n.page.cssClasses.page.description)
|
|
98
106
|
}, [
|
|
99
|
-
|
|
100
|
-
locString:
|
|
107
|
+
C(y, {
|
|
108
|
+
locString: n.page.locDescription
|
|
101
109
|
}, null, 8, ["locString"])
|
|
102
110
|
], 2)) : d("", !0),
|
|
103
|
-
|
|
104
|
-
(i(!0), u($, null, B(n.
|
|
105
|
-
key:
|
|
111
|
+
C(m, { element: n.page }, null, 8, ["element"]),
|
|
112
|
+
(i(!0), u($, null, B(n.page.rows, (g, I) => (i(), q(T(n.page.getSurvey().getRowWrapperComponentName(g)), F(W({
|
|
113
|
+
key: n.page.id + "_" + I
|
|
106
114
|
}, {
|
|
107
|
-
componentData:
|
|
115
|
+
componentData: n.page.getSurvey().getRowWrapperComponentData(g)
|
|
108
116
|
})), {
|
|
109
117
|
default: O(() => [
|
|
110
|
-
|
|
118
|
+
g.visible ? (i(), q(v, {
|
|
111
119
|
key: 0,
|
|
112
|
-
row:
|
|
113
|
-
survey:
|
|
114
|
-
css:
|
|
120
|
+
row: g,
|
|
121
|
+
survey: n.survey,
|
|
122
|
+
css: n.css
|
|
115
123
|
}, null, 8, ["row", "survey", "css"])) : d("", !0)
|
|
116
124
|
]),
|
|
117
125
|
_: 2
|
|
@@ -119,7 +127,7 @@ const je = /* @__PURE__ */ h({
|
|
|
119
127
|
], 2);
|
|
120
128
|
};
|
|
121
129
|
}
|
|
122
|
-
}),
|
|
130
|
+
}), Je = /* @__PURE__ */ h({
|
|
123
131
|
__name: "Header",
|
|
124
132
|
props: {
|
|
125
133
|
survey: {}
|
|
@@ -146,7 +154,7 @@ const je = /* @__PURE__ */ h({
|
|
|
146
154
|
class: l(e.survey.css.headerText),
|
|
147
155
|
style: S({ maxWidth: e.survey.titleMaxWidth })
|
|
148
156
|
}, [
|
|
149
|
-
|
|
157
|
+
C(t, {
|
|
150
158
|
element: e.survey,
|
|
151
159
|
css: e.survey.css
|
|
152
160
|
}, null, 8, ["element", "css"]),
|
|
@@ -154,7 +162,7 @@ const je = /* @__PURE__ */ h({
|
|
|
154
162
|
key: 0,
|
|
155
163
|
class: l(e.survey.css.description)
|
|
156
164
|
}, [
|
|
157
|
-
|
|
165
|
+
C(a, {
|
|
158
166
|
locString: e.survey.locDescription
|
|
159
167
|
}, null, 8, ["locString"])
|
|
160
168
|
], 2)) : d("", !0)
|
|
@@ -169,7 +177,7 @@ const je = /* @__PURE__ */ h({
|
|
|
169
177
|
], 2)) : d("", !0);
|
|
170
178
|
};
|
|
171
179
|
}
|
|
172
|
-
}),
|
|
180
|
+
}), Xe = /* @__PURE__ */ h({
|
|
173
181
|
__name: "Row",
|
|
174
182
|
props: {
|
|
175
183
|
row: {},
|
|
@@ -211,10 +219,10 @@ const je = /* @__PURE__ */ h({
|
|
|
211
219
|
], 2);
|
|
212
220
|
};
|
|
213
221
|
}
|
|
214
|
-
}),
|
|
222
|
+
}), Ye = ["id", "role", "aria-required", "aria-invalid", "aria-labelledby", "aria-expanded", "data-name"], Ze = {
|
|
215
223
|
inheritAttrs: !1
|
|
216
|
-
},
|
|
217
|
-
...
|
|
224
|
+
}, xe = /* @__PURE__ */ h({
|
|
225
|
+
...Ze,
|
|
218
226
|
__name: "Question",
|
|
219
227
|
props: {
|
|
220
228
|
survey: {},
|
|
@@ -222,104 +230,111 @@ const je = /* @__PURE__ */ h({
|
|
|
222
230
|
css: {}
|
|
223
231
|
},
|
|
224
232
|
setup(r) {
|
|
225
|
-
const s = r, o = _(null), e = w(() => s.element.showErrorOnTop), n = w(() => s.element.showErrorOnBottom), t = (
|
|
233
|
+
const s = r, o = _(null), e = w(() => s.element.showErrorOnTop), n = w(() => s.element.showErrorOnBottom), t = (b) => b.cssContent, a = () => s.element.getRootStyle();
|
|
226
234
|
L(() => s.element);
|
|
227
235
|
const y = () => {
|
|
228
236
|
o.value && s.element.afterRender(o.value);
|
|
229
|
-
}, m =
|
|
237
|
+
}, m = J(
|
|
230
238
|
() => o.value,
|
|
231
239
|
() => {
|
|
232
240
|
y();
|
|
233
241
|
}
|
|
234
|
-
), v = w(() => s.element.customWidget ? "survey-customwidget" : s.element.isDefaultRendering() ? "survey-" + s.element.getTemplate() : s.element.getComponentName()), g = w(() => s.element.survey.getQuestionContentWrapperComponentName(s.element)
|
|
235
|
-
componentName: v.value,
|
|
242
|
+
), v = w(() => s.element.customWidget ? "survey-customwidget" : s.element.isDefaultRendering() ? "survey-" + s.element.getTemplate() : s.element.getComponentName()), g = w(() => s.element.survey.getQuestionContentWrapperComponentName(s.element)), I = w(() => ({
|
|
236
243
|
componentData: {
|
|
237
244
|
question: s.element,
|
|
238
245
|
data: s.element.survey.getElementWrapperComponentData(s.element)
|
|
239
246
|
}
|
|
240
247
|
}));
|
|
241
|
-
return
|
|
248
|
+
return U(() => {
|
|
242
249
|
m();
|
|
243
|
-
}), (
|
|
250
|
+
}), (b, N) => {
|
|
244
251
|
const k = p("survey-errors"), D = p("survey-element-header"), E = p("survey-string"), V = p("survey-question-comment");
|
|
245
252
|
return i(), u("div", {
|
|
246
|
-
class: l(
|
|
253
|
+
class: l(b.element.getRootCss()),
|
|
247
254
|
style: S(a()),
|
|
248
255
|
ref_key: "root",
|
|
249
256
|
ref: o,
|
|
250
|
-
onFocusin: N[0] || (N[0] = (
|
|
251
|
-
id:
|
|
252
|
-
role:
|
|
253
|
-
"aria-required":
|
|
254
|
-
"aria-invalid":
|
|
255
|
-
"aria-labelledby":
|
|
256
|
-
"aria-expanded":
|
|
257
|
-
"data-name":
|
|
257
|
+
onFocusin: N[0] || (N[0] = (K) => b.element.focusIn()),
|
|
258
|
+
id: b.element.id,
|
|
259
|
+
role: b.element.ariaRole,
|
|
260
|
+
"aria-required": b.element.ariaRequired,
|
|
261
|
+
"aria-invalid": b.element.ariaInvalid,
|
|
262
|
+
"aria-labelledby": b.element.ariaLabelledBy,
|
|
263
|
+
"aria-expanded": b.element.ariaExpanded === null ? void 0 : b.element.ariaExpanded === "true",
|
|
264
|
+
"data-name": b.element.name
|
|
258
265
|
}, [
|
|
259
|
-
|
|
266
|
+
b.element.showErrorsAboveQuestion ? (i(), q(k, {
|
|
260
267
|
key: 0,
|
|
261
|
-
element:
|
|
268
|
+
element: b.element,
|
|
262
269
|
location: "top"
|
|
263
270
|
}, null, 8, ["element"])) : d("", !0),
|
|
264
|
-
|
|
271
|
+
b.element.hasTitleOnLeftTop ? (i(), q(D, {
|
|
265
272
|
key: 1,
|
|
266
|
-
element:
|
|
267
|
-
css:
|
|
273
|
+
element: b.element,
|
|
274
|
+
css: b.css
|
|
268
275
|
}, null, 8, ["element", "css"])) : d("", !0),
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
b(
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
276
|
+
(i(), q(T(g.value), F(oe(I.value)), {
|
|
277
|
+
default: O(() => [
|
|
278
|
+
P(c("div", {
|
|
279
|
+
class: l(t(b.element) || void 0),
|
|
280
|
+
role: "presentation"
|
|
281
|
+
}, [
|
|
282
|
+
e.value ? (i(), q(k, {
|
|
283
|
+
key: 0,
|
|
284
|
+
element: b.element,
|
|
285
|
+
location: "top"
|
|
286
|
+
}, null, 8, ["element"])) : d("", !0),
|
|
287
|
+
b.element.isCollapsed ? d("", !0) : (i(), q(T(v.value), {
|
|
288
|
+
key: 1,
|
|
289
|
+
question: b.element
|
|
290
|
+
}, null, 8, ["question"])),
|
|
291
|
+
b.element.hasComment ? (i(), u("div", {
|
|
292
|
+
key: 2,
|
|
293
|
+
class: l(b.element.getCommentAreaCss())
|
|
294
|
+
}, [
|
|
295
|
+
c("div", null, [
|
|
296
|
+
C(E, {
|
|
297
|
+
locString: b.element.locCommentText
|
|
298
|
+
}, null, 8, ["locString"])
|
|
299
|
+
]),
|
|
300
|
+
C(V, { question: b.element }, null, 8, ["question"])
|
|
301
|
+
], 2)) : d("", !0),
|
|
302
|
+
n.value ? (i(), q(k, {
|
|
303
|
+
key: 3,
|
|
304
|
+
element: b.element,
|
|
305
|
+
location: "bottom"
|
|
306
|
+
}, null, 8, ["element"])) : d("", !0),
|
|
307
|
+
b.element.hasDescriptionUnderInput ? (i(), u("div", {
|
|
308
|
+
key: 4,
|
|
309
|
+
class: l(b.element.cssClasses.descriptionUnderInput)
|
|
310
|
+
}, [
|
|
311
|
+
C(E, {
|
|
312
|
+
locString: b.element.locDescription
|
|
313
|
+
}, null, 8, ["locString"])
|
|
314
|
+
], 2)) : d("", !0)
|
|
315
|
+
], 2), [
|
|
316
|
+
[M, !b.element.isCollapsed]
|
|
317
|
+
])
|
|
318
|
+
]),
|
|
319
|
+
_: 1
|
|
320
|
+
}, 16)),
|
|
321
|
+
b.element.hasTitleOnBottom ? (i(), q(D, {
|
|
307
322
|
key: 2,
|
|
308
|
-
element:
|
|
309
|
-
css:
|
|
323
|
+
element: b.element,
|
|
324
|
+
css: b.css
|
|
310
325
|
}, null, 8, ["element", "css"])) : d("", !0),
|
|
311
|
-
|
|
326
|
+
b.element.showErrorsBelowQuestion ? (i(), q(k, {
|
|
312
327
|
key: 3,
|
|
313
|
-
element:
|
|
328
|
+
element: b.element,
|
|
314
329
|
location: "bottom"
|
|
315
330
|
}, null, 8, ["element"])) : d("", !0)
|
|
316
|
-
], 46,
|
|
331
|
+
], 46, Ye);
|
|
317
332
|
};
|
|
318
333
|
}
|
|
319
|
-
}),
|
|
334
|
+
}), es = ["id"], ss = ["id"], ns = {
|
|
320
335
|
inheritAttrs: !1
|
|
321
|
-
},
|
|
322
|
-
...
|
|
336
|
+
}, os = /* @__PURE__ */ h({
|
|
337
|
+
...ns,
|
|
323
338
|
inheritAttrs: !1,
|
|
324
339
|
__name: "Panel",
|
|
325
340
|
props: {
|
|
@@ -328,61 +343,61 @@ const je = /* @__PURE__ */ h({
|
|
|
328
343
|
css: {}
|
|
329
344
|
},
|
|
330
345
|
setup(r) {
|
|
331
|
-
const s = r, o = _(null), e = w(() => s.element.
|
|
346
|
+
const s = r, o = _(null), e = w(() => s.element.survey);
|
|
332
347
|
return L(() => s.element), H(() => {
|
|
333
348
|
s.element.survey && s.element.survey.afterRenderPanel(s.element, o.value);
|
|
334
|
-
}), (
|
|
335
|
-
const
|
|
336
|
-
return
|
|
349
|
+
}), (n, t) => {
|
|
350
|
+
const a = p("survey-errors"), y = p("survey-element-header"), m = p("survey-row"), v = p("sv-action-bar");
|
|
351
|
+
return n.element.isVisible ? (i(), u("div", {
|
|
337
352
|
key: 0,
|
|
338
|
-
class: l(
|
|
339
|
-
id:
|
|
340
|
-
onFocusin:
|
|
353
|
+
class: l(n.element.getContainerCss()),
|
|
354
|
+
id: n.element.id,
|
|
355
|
+
onFocusin: t[0] || (t[0] = (g) => n.element.focusIn()),
|
|
341
356
|
ref_key: "root",
|
|
342
357
|
ref: o
|
|
343
358
|
}, [
|
|
344
|
-
|
|
359
|
+
n.element.showErrorsAbovePanel ? (i(), q(a, {
|
|
345
360
|
key: 0,
|
|
346
|
-
element:
|
|
361
|
+
element: n.element
|
|
347
362
|
}, null, 8, ["element"])) : d("", !0),
|
|
348
|
-
|
|
363
|
+
n.element.hasTitle || n.element.hasDescription ? (i(), q(y, {
|
|
349
364
|
key: 1,
|
|
350
|
-
element:
|
|
351
|
-
css:
|
|
365
|
+
element: n.element,
|
|
366
|
+
css: n.css
|
|
352
367
|
}, null, 8, ["element", "css"])) : d("", !0),
|
|
353
|
-
|
|
368
|
+
n.element.showErrorsAbovePanel ? d("", !0) : (i(), q(a, {
|
|
354
369
|
key: 2,
|
|
355
|
-
element:
|
|
370
|
+
element: n.element
|
|
356
371
|
}, null, 8, ["element"])),
|
|
357
|
-
|
|
372
|
+
n.element.isCollapsed ? d("", !0) : (i(), u("div", {
|
|
358
373
|
key: 3,
|
|
359
|
-
id:
|
|
360
|
-
style: S({ paddingLeft:
|
|
361
|
-
class: l(
|
|
374
|
+
id: n.element.contentId,
|
|
375
|
+
style: S({ paddingLeft: n.element.innerPaddingLeft }),
|
|
376
|
+
class: l(n.element.cssClasses.panel.content)
|
|
362
377
|
}, [
|
|
363
|
-
(i(!0), u($, null, B(
|
|
364
|
-
key:
|
|
378
|
+
(i(!0), u($, null, B(n.element.rows, (g, I) => (i(), q(T(n.element.getSurvey().getRowWrapperComponentName(g)), F(W({
|
|
379
|
+
key: n.element.id + "_" + I
|
|
365
380
|
}, {
|
|
366
|
-
componentData:
|
|
381
|
+
componentData: n.element.getSurvey().getRowWrapperComponentData(g)
|
|
367
382
|
})), {
|
|
368
383
|
default: O(() => [
|
|
369
|
-
|
|
384
|
+
g.visible ? (i(), q(m, {
|
|
370
385
|
key: 0,
|
|
371
|
-
row:
|
|
372
|
-
survey:
|
|
373
|
-
css:
|
|
386
|
+
row: g,
|
|
387
|
+
survey: e.value,
|
|
388
|
+
css: n.css
|
|
374
389
|
}, null, 8, ["row", "survey", "css"])) : d("", !0)
|
|
375
390
|
]),
|
|
376
391
|
_: 2
|
|
377
392
|
}, 1040))), 128)),
|
|
378
|
-
|
|
379
|
-
model:
|
|
393
|
+
C(v, {
|
|
394
|
+
model: n.element.getFooterToolbar()
|
|
380
395
|
}, null, 8, ["model"])
|
|
381
|
-
], 14,
|
|
382
|
-
], 42,
|
|
396
|
+
], 14, ss))
|
|
397
|
+
], 42, es)) : d("", !0);
|
|
383
398
|
};
|
|
384
399
|
}
|
|
385
|
-
}),
|
|
400
|
+
}), ts = /* @__PURE__ */ h({
|
|
386
401
|
__name: "ElementHeader",
|
|
387
402
|
props: {
|
|
388
403
|
element: {},
|
|
@@ -398,7 +413,7 @@ const je = /* @__PURE__ */ h({
|
|
|
398
413
|
class: l(e.element.cssHeader),
|
|
399
414
|
onClick: o
|
|
400
415
|
}, [
|
|
401
|
-
|
|
416
|
+
C(t, {
|
|
402
417
|
element: e.element,
|
|
403
418
|
css: e.css
|
|
404
419
|
}, null, 8, ["element", "css"]),
|
|
@@ -406,7 +421,7 @@ const je = /* @__PURE__ */ h({
|
|
|
406
421
|
key: 0,
|
|
407
422
|
class: l(e.element.cssDescription)
|
|
408
423
|
}, [
|
|
409
|
-
|
|
424
|
+
C(a, {
|
|
410
425
|
locString: e.element.locDescription
|
|
411
426
|
}, null, 8, ["locString"])
|
|
412
427
|
], 2)), [
|
|
@@ -419,7 +434,7 @@ const je = /* @__PURE__ */ h({
|
|
|
419
434
|
], 2);
|
|
420
435
|
};
|
|
421
436
|
}
|
|
422
|
-
}),
|
|
437
|
+
}), is = /* @__PURE__ */ h({
|
|
423
438
|
__name: "String",
|
|
424
439
|
props: {
|
|
425
440
|
locString: {}
|
|
@@ -429,23 +444,23 @@ const je = /* @__PURE__ */ h({
|
|
|
429
444
|
locString: s.locString.renderAsData
|
|
430
445
|
}, null, 8, ["locString"]));
|
|
431
446
|
}
|
|
432
|
-
}),
|
|
447
|
+
}), rs = ["innerHTML"], ls = {
|
|
433
448
|
key: 1,
|
|
434
449
|
class: "sv-string-viewer"
|
|
435
|
-
},
|
|
450
|
+
}, as = /* @__PURE__ */ h({
|
|
436
451
|
__name: "StringViewer",
|
|
437
452
|
props: {
|
|
438
453
|
locString: {}
|
|
439
454
|
},
|
|
440
455
|
setup(r) {
|
|
441
|
-
const s = r, o =
|
|
456
|
+
const s = r, o = G(() => s.locString);
|
|
442
457
|
return (e, n) => e.locString.hasHtml ? (i(), u("span", {
|
|
443
458
|
key: 0,
|
|
444
459
|
class: "sv-string-viewer",
|
|
445
460
|
innerHTML: f(o)
|
|
446
|
-
}, null, 8,
|
|
461
|
+
}, null, 8, rs)) : (i(), u("span", ls, R(f(o)), 1));
|
|
447
462
|
}
|
|
448
|
-
}),
|
|
463
|
+
}), us = ["innerHTML"], ds = /* @__PURE__ */ h({
|
|
449
464
|
__name: "StringEditor",
|
|
450
465
|
props: {
|
|
451
466
|
locString: {}
|
|
@@ -464,7 +479,7 @@ const je = /* @__PURE__ */ h({
|
|
|
464
479
|
innerHTML: n.locString.renderedHtml,
|
|
465
480
|
onBlur: o,
|
|
466
481
|
onClick: e
|
|
467
|
-
}, null, 40,
|
|
482
|
+
}, null, 40, us)) : (i(), u("span", {
|
|
468
483
|
key: 1,
|
|
469
484
|
class: "sv-string-editor",
|
|
470
485
|
contenteditable: "true",
|
|
@@ -472,7 +487,7 @@ const je = /* @__PURE__ */ h({
|
|
|
472
487
|
onClick: e
|
|
473
488
|
}, R(n.locString.renderedHtml), 33));
|
|
474
489
|
}
|
|
475
|
-
}),
|
|
490
|
+
}), ms = ["id"], cs = /* @__PURE__ */ h({
|
|
476
491
|
__name: "Skeleton",
|
|
477
492
|
props: {
|
|
478
493
|
element: {}
|
|
@@ -482,9 +497,9 @@ const je = /* @__PURE__ */ h({
|
|
|
482
497
|
return L(() => s.element), (o, e) => (i(), u("div", {
|
|
483
498
|
class: "sv-skeleton-element",
|
|
484
499
|
id: o.element.id
|
|
485
|
-
}, null, 8,
|
|
500
|
+
}, null, 8, ms));
|
|
486
501
|
}
|
|
487
|
-
}),
|
|
502
|
+
}), ps = ["id"], vs = ["value"], ys = /* @__PURE__ */ h({
|
|
488
503
|
inheritAttrs: !1,
|
|
489
504
|
__name: "Text",
|
|
490
505
|
props: {
|
|
@@ -503,12 +518,12 @@ const je = /* @__PURE__ */ h({
|
|
|
503
518
|
ref_key: "root",
|
|
504
519
|
ref: o
|
|
505
520
|
}, [
|
|
506
|
-
|
|
521
|
+
C(t, { question: e.question }, null, 8, ["question"]),
|
|
507
522
|
c("datalist", {
|
|
508
523
|
id: e.question.dataListId
|
|
509
524
|
}, [
|
|
510
|
-
(i(!0), u($, null, B(e.question.dataList, (a) => (i(), u("option", { value: a }, null, 8,
|
|
511
|
-
], 8,
|
|
525
|
+
(i(!0), u($, null, B(e.question.dataList, (a) => (i(), u("option", { value: a }, null, 8, vs))), 256))
|
|
526
|
+
], 8, ps)
|
|
512
527
|
], 512)) : (i(), q(t, {
|
|
513
528
|
key: 2,
|
|
514
529
|
question: e.question,
|
|
@@ -517,7 +532,7 @@ const je = /* @__PURE__ */ h({
|
|
|
517
532
|
}, null, 8, ["question"]));
|
|
518
533
|
};
|
|
519
534
|
}
|
|
520
|
-
}),
|
|
535
|
+
}), qs = ["disabled", "type", "maxlength", "min", "max", "step", "size", "id", "list", "placeholder", "autocomplete", "value", "aria-required", "aria-label", "aria-labelledby", "aria-invalid", "aria-describedby"], gs = { key: 1 }, hs = ["disabled", "type", "maxlength", "min", "max", "step", "size", "id", "list", "placeholder", "autocomplete", "value", "aria-required", "aria-label", "aria-labelledby", "aria-invalid", "aria-describedby"], Cs = /* @__PURE__ */ h({
|
|
521
536
|
__name: "TextInput",
|
|
522
537
|
props: {
|
|
523
538
|
question: {}
|
|
@@ -528,7 +543,7 @@ const je = /* @__PURE__ */ h({
|
|
|
528
543
|
const o = w(() => s.question.inputStyle);
|
|
529
544
|
return (e, n) => {
|
|
530
545
|
const t = p("sv-character-counter");
|
|
531
|
-
return e.question.getMaxLength() ? (i(), u("div",
|
|
546
|
+
return e.question.getMaxLength() ? (i(), u("div", gs, [
|
|
532
547
|
c("input", {
|
|
533
548
|
disabled: e.question.isInputReadOnly,
|
|
534
549
|
class: l(e.question.getControlClass()),
|
|
@@ -555,8 +570,8 @@ const je = /* @__PURE__ */ h({
|
|
|
555
570
|
"aria-labelledby": e.question.a11y_input_ariaLabelledBy,
|
|
556
571
|
"aria-invalid": e.question.a11y_input_ariaInvalid,
|
|
557
572
|
"aria-describedby": e.question.a11y_input_ariaDescribedBy
|
|
558
|
-
}, null, 46,
|
|
559
|
-
|
|
573
|
+
}, null, 46, hs),
|
|
574
|
+
C(t, {
|
|
560
575
|
counter: e.question.characterCounter,
|
|
561
576
|
remainingCharacterCounter: e.question.cssClasses.remainingCharacterCounter
|
|
562
577
|
}, null, 8, ["counter", "remainingCharacterCounter"])
|
|
@@ -587,13 +602,13 @@ const je = /* @__PURE__ */ h({
|
|
|
587
602
|
"aria-labelledby": e.question.a11y_input_ariaLabelledBy,
|
|
588
603
|
"aria-invalid": e.question.a11y_input_ariaInvalid,
|
|
589
604
|
"aria-describedby": e.question.a11y_input_ariaDescribedBy
|
|
590
|
-
}, null, 46,
|
|
605
|
+
}, null, 46, qs));
|
|
591
606
|
};
|
|
592
607
|
}
|
|
593
|
-
}),
|
|
608
|
+
}), bs = ["role", "aria-required", "aria-label", "aria-labelledby", "aria-invalid", "aria-describedby"], ks = {
|
|
594
609
|
key: 0,
|
|
595
610
|
class: "sv-hidden"
|
|
596
|
-
},
|
|
611
|
+
}, fs = { key: 7 }, Is = ["value"], he = /* @__PURE__ */ h({
|
|
597
612
|
inheritAttrs: !1,
|
|
598
613
|
__name: "SelectBase",
|
|
599
614
|
props: {
|
|
@@ -624,7 +639,7 @@ const je = /* @__PURE__ */ h({
|
|
|
624
639
|
"aria-invalid": t.question.a11y_input_ariaInvalid,
|
|
625
640
|
"aria-describedby": t.question.a11y_input_ariaDescribedBy
|
|
626
641
|
}, [
|
|
627
|
-
t.showLegend ? (i(), u("legend",
|
|
642
|
+
t.showLegend ? (i(), u("legend", ks, R(t.question.locTitle.renderedHtml), 1)) : d("", !0),
|
|
628
643
|
t.question.hasHeadItems ? (i(!0), u($, { key: 1 }, B(t.question.headItems, (m) => (i(), q(T(e(m)), W({
|
|
629
644
|
key: m.value
|
|
630
645
|
}, n(m)), null, 16))), 128)) : d("", !0),
|
|
@@ -660,7 +675,7 @@ const je = /* @__PURE__ */ h({
|
|
|
660
675
|
key: 6,
|
|
661
676
|
question: t.question
|
|
662
677
|
}, null, 8, ["question"])) : d("", !0),
|
|
663
|
-
t.question.showClearButtonInContent ? (i(), u("div",
|
|
678
|
+
t.question.showClearButtonInContent ? (i(), u("div", fs, [
|
|
664
679
|
c("input", {
|
|
665
680
|
type: "button",
|
|
666
681
|
class: l(t.question.cssClasses.clearButton),
|
|
@@ -668,24 +683,24 @@ const je = /* @__PURE__ */ h({
|
|
|
668
683
|
t.question.clearValue();
|
|
669
684
|
}),
|
|
670
685
|
value: t.question.clearButtonCaption
|
|
671
|
-
}, null, 10,
|
|
686
|
+
}, null, 10, Is)
|
|
672
687
|
])) : d("", !0)
|
|
673
|
-
], 10,
|
|
688
|
+
], 10, bs);
|
|
674
689
|
};
|
|
675
690
|
}
|
|
676
|
-
}),
|
|
691
|
+
}), ws = /* @__PURE__ */ h({
|
|
677
692
|
inheritAttrs: !1,
|
|
678
693
|
__name: "Checkbox",
|
|
679
694
|
props: {
|
|
680
695
|
question: {}
|
|
681
696
|
},
|
|
682
697
|
setup(r) {
|
|
683
|
-
return (s, o) => (i(), q(
|
|
698
|
+
return (s, o) => (i(), q(he, {
|
|
684
699
|
question: s.question,
|
|
685
700
|
"show-legend": !0
|
|
686
701
|
}, null, 8, ["question"]));
|
|
687
702
|
}
|
|
688
|
-
}),
|
|
703
|
+
}), Ss = ["name", "checked", "value", "id", "disabled"], Rs = ["xlink:href"], Ts = /* @__PURE__ */ h({
|
|
689
704
|
inheritAttrs: !1,
|
|
690
705
|
__name: "CheckboxItem",
|
|
691
706
|
props: {
|
|
@@ -720,7 +735,7 @@ const je = /* @__PURE__ */ h({
|
|
|
720
735
|
id: e.question.getItemId(e.item),
|
|
721
736
|
disabled: !e.question.getItemEnabled(e.item),
|
|
722
737
|
class: l(e.question.cssClasses.itemControl)
|
|
723
|
-
}, null, 42,
|
|
738
|
+
}, null, 42, Ss),
|
|
724
739
|
e.question.cssClasses.materialDecorator ? (i(), u("span", {
|
|
725
740
|
key: 0,
|
|
726
741
|
class: l(e.question.cssClasses.materialDecorator)
|
|
@@ -731,14 +746,14 @@ const je = /* @__PURE__ */ h({
|
|
|
731
746
|
}, [
|
|
732
747
|
c("use", {
|
|
733
748
|
"xlink:href": e.question.itemSvgIcon
|
|
734
|
-
}, null, 8,
|
|
749
|
+
}, null, 8, Rs)
|
|
735
750
|
], 2)) : d("", !0)
|
|
736
751
|
], 2)) : d("", !0),
|
|
737
752
|
e.hideLabel ? d("", !0) : (i(), u("span", {
|
|
738
753
|
key: 1,
|
|
739
754
|
class: l(e.question.cssClasses.controlLabel)
|
|
740
755
|
}, [
|
|
741
|
-
|
|
756
|
+
C(t, {
|
|
742
757
|
locString: e.item.locText
|
|
743
758
|
}, null, 8, ["locString"])
|
|
744
759
|
], 2))
|
|
@@ -746,16 +761,16 @@ const je = /* @__PURE__ */ h({
|
|
|
746
761
|
], 2);
|
|
747
762
|
};
|
|
748
763
|
}
|
|
749
|
-
}),
|
|
764
|
+
}), $s = /* @__PURE__ */ h({
|
|
750
765
|
inheritAttrs: !1,
|
|
751
766
|
__name: "Radiogroup",
|
|
752
767
|
props: {
|
|
753
768
|
question: {}
|
|
754
769
|
},
|
|
755
770
|
setup(r) {
|
|
756
|
-
return (s, o) => (i(), q(
|
|
771
|
+
return (s, o) => (i(), q(he, { question: s.question }, null, 8, ["question"]));
|
|
757
772
|
}
|
|
758
|
-
}),
|
|
773
|
+
}), _s = ["name", "value", "id", "aria-describedby", "disabled"], Ds = ["xlink:href"], Bs = /* @__PURE__ */ h({
|
|
759
774
|
inheritAttrs: !1,
|
|
760
775
|
__name: "RadiogroupItem",
|
|
761
776
|
props: {
|
|
@@ -790,7 +805,7 @@ const je = /* @__PURE__ */ h({
|
|
|
790
805
|
"onUpdate:modelValue": a[0] || (a[0] = (m) => n.value = m),
|
|
791
806
|
disabled: !t.question.getItemEnabled(t.item),
|
|
792
807
|
class: l(t.question.cssClasses.itemControl)
|
|
793
|
-
}, null, 10,
|
|
808
|
+
}, null, 10, _s), [
|
|
794
809
|
[ee, n.value]
|
|
795
810
|
]),
|
|
796
811
|
t.question.cssClasses.materialDecorator ? (i(), u("span", {
|
|
@@ -803,14 +818,14 @@ const je = /* @__PURE__ */ h({
|
|
|
803
818
|
}, [
|
|
804
819
|
c("use", {
|
|
805
820
|
"xlink:href": t.question.itemSvgIcon
|
|
806
|
-
}, null, 8,
|
|
821
|
+
}, null, 8, Ds)
|
|
807
822
|
], 2)) : d("", !0)
|
|
808
823
|
], 2)) : d("", !0),
|
|
809
824
|
t.hideLabel ? d("", !0) : (i(), u("span", {
|
|
810
825
|
key: 1,
|
|
811
826
|
class: l(e(t.item))
|
|
812
827
|
}, [
|
|
813
|
-
|
|
828
|
+
C(y, {
|
|
814
829
|
locString: t.item.locText
|
|
815
830
|
}, null, 8, ["locString"])
|
|
816
831
|
], 2))
|
|
@@ -818,7 +833,7 @@ const je = /* @__PURE__ */ h({
|
|
|
818
833
|
], 2);
|
|
819
834
|
};
|
|
820
835
|
}
|
|
821
|
-
}),
|
|
836
|
+
}), Ls = ["src"], Ns = ["title"], Ps = { key: 0 }, As = /* @__PURE__ */ h({
|
|
822
837
|
inheritAttrs: !1,
|
|
823
838
|
__name: "Signaturepad",
|
|
824
839
|
props: {
|
|
@@ -839,7 +854,7 @@ const je = /* @__PURE__ */ h({
|
|
|
839
854
|
P(c("div", {
|
|
840
855
|
class: l(e.question.cssClasses.placeholder)
|
|
841
856
|
}, [
|
|
842
|
-
|
|
857
|
+
C(t, {
|
|
843
858
|
locString: e.question.locPlaceholder
|
|
844
859
|
}, null, 8, ["locString"])
|
|
845
860
|
], 2), [
|
|
@@ -853,7 +868,7 @@ const je = /* @__PURE__ */ h({
|
|
|
853
868
|
style: S({
|
|
854
869
|
width: e.question.renderedCanvasWidth
|
|
855
870
|
})
|
|
856
|
-
}, null, 14,
|
|
871
|
+
}, null, 14, Ls)) : d("", !0),
|
|
857
872
|
c("canvas", {
|
|
858
873
|
tabindex: "0",
|
|
859
874
|
class: l(e.question.cssClasses.canvas),
|
|
@@ -872,24 +887,24 @@ const je = /* @__PURE__ */ h({
|
|
|
872
887
|
e.question.clearValue();
|
|
873
888
|
})
|
|
874
889
|
}, [
|
|
875
|
-
e.question.cssClasses.clearButtonIconId ? d("", !0) : (i(), u("span",
|
|
890
|
+
e.question.cssClasses.clearButtonIconId ? d("", !0) : (i(), u("span", Ps, "\u2716")),
|
|
876
891
|
e.question.cssClasses.clearButtonIconId ? (i(), q(a, {
|
|
877
892
|
key: 1,
|
|
878
893
|
iconName: e.question.cssClasses.clearButtonIconId,
|
|
879
894
|
size: "auto"
|
|
880
895
|
}, null, 8, ["iconName"])) : d("", !0)
|
|
881
|
-
], 10,
|
|
896
|
+
], 10, Ns)
|
|
882
897
|
], 2)) : d("", !0),
|
|
883
898
|
e.question.showLoadingIndicator ? (i(), u("div", {
|
|
884
899
|
key: 1,
|
|
885
900
|
class: l(e.question.cssClasses.loadingIndicator)
|
|
886
901
|
}, [
|
|
887
|
-
|
|
902
|
+
C(y)
|
|
888
903
|
], 2)) : d("", !0)
|
|
889
904
|
], 6);
|
|
890
905
|
};
|
|
891
906
|
}
|
|
892
|
-
}),
|
|
907
|
+
}), Ms = ["innerHTML"], Hs = /* @__PURE__ */ h({
|
|
893
908
|
inheritAttrs: !1,
|
|
894
909
|
__name: "Html",
|
|
895
910
|
props: {
|
|
@@ -898,15 +913,15 @@ const je = /* @__PURE__ */ h({
|
|
|
898
913
|
setup(r) {
|
|
899
914
|
const s = r, o = _(null);
|
|
900
915
|
A(s, o);
|
|
901
|
-
const e =
|
|
916
|
+
const e = G(() => s.question.locHtml);
|
|
902
917
|
return (n, t) => (i(), u("div", {
|
|
903
918
|
ref_key: "root",
|
|
904
919
|
ref: o,
|
|
905
920
|
class: l(n.question.renderCssRoot),
|
|
906
921
|
innerHTML: f(e)
|
|
907
|
-
}, null, 10,
|
|
922
|
+
}, null, 10, Ms));
|
|
908
923
|
}
|
|
909
|
-
}),
|
|
924
|
+
}), Ws = ["src", "alt", "width", "height"], Es = ["src", "width", "height"], Vs = ["src", "width", "height"], Os = /* @__PURE__ */ h({
|
|
910
925
|
inheritAttrs: !1,
|
|
911
926
|
__name: "Image",
|
|
912
927
|
props: {
|
|
@@ -915,7 +930,7 @@ const je = /* @__PURE__ */ h({
|
|
|
915
930
|
setup(r) {
|
|
916
931
|
const s = r, o = _(null);
|
|
917
932
|
A(s, o);
|
|
918
|
-
const e =
|
|
933
|
+
const e = G(() => s.question.locImageLink);
|
|
919
934
|
return (n, t) => {
|
|
920
935
|
const a = p("sv-svg-icon");
|
|
921
936
|
return i(), u("div", {
|
|
@@ -941,7 +956,7 @@ const je = /* @__PURE__ */ h({
|
|
|
941
956
|
onError: t[1] || (t[1] = (y) => {
|
|
942
957
|
n.question.onErrorHandler();
|
|
943
958
|
})
|
|
944
|
-
}, null, 46,
|
|
959
|
+
}, null, 46, Ws)), [
|
|
945
960
|
[M, f(e) && !n.question.contentNotLoaded]
|
|
946
961
|
]) : d("", !0),
|
|
947
962
|
n.question.renderedMode === "video" ? P((i(), u("video", {
|
|
@@ -962,7 +977,7 @@ const je = /* @__PURE__ */ h({
|
|
|
962
977
|
onError: t[3] || (t[3] = (y) => {
|
|
963
978
|
n.question.onErrorHandler();
|
|
964
979
|
})
|
|
965
|
-
}, null, 46,
|
|
980
|
+
}, null, 46, Es)), [
|
|
966
981
|
[M, f(e) && !n.question.contentNotLoaded]
|
|
967
982
|
]) : d("", !0),
|
|
968
983
|
n.question.renderedMode === "youtube" ? (i(), u("iframe", {
|
|
@@ -976,12 +991,12 @@ const je = /* @__PURE__ */ h({
|
|
|
976
991
|
width: n.question.renderedStyleWidth,
|
|
977
992
|
height: n.question.renderedStyleHeight
|
|
978
993
|
})
|
|
979
|
-
}, null, 14,
|
|
994
|
+
}, null, 14, Vs)) : d("", !0),
|
|
980
995
|
!f(e) || n.question.contentNotLoaded ? (i(), u("div", {
|
|
981
996
|
key: 3,
|
|
982
997
|
class: l(n.question.cssClasses.noImage)
|
|
983
998
|
}, [
|
|
984
|
-
|
|
999
|
+
C(a, {
|
|
985
1000
|
iconName: n.question.cssClasses.noImageSvgIconId,
|
|
986
1001
|
size: 48
|
|
987
1002
|
}, null, 8, ["iconName"])
|
|
@@ -989,7 +1004,7 @@ const je = /* @__PURE__ */ h({
|
|
|
989
1004
|
], 2);
|
|
990
1005
|
};
|
|
991
1006
|
}
|
|
992
|
-
}),
|
|
1007
|
+
}), Fs = /* @__PURE__ */ h({
|
|
993
1008
|
inheritAttrs: !1,
|
|
994
1009
|
__name: "Expression",
|
|
995
1010
|
props: {
|
|
@@ -1003,7 +1018,7 @@ const je = /* @__PURE__ */ h({
|
|
|
1003
1018
|
ref: o
|
|
1004
1019
|
}, R(e.question.formatedValue), 3));
|
|
1005
1020
|
}
|
|
1006
|
-
}),
|
|
1021
|
+
}), zs = ["id", "aria-required", "aria-label", "aria-invalid", "aria-describedby", "multiple", "title", "accept", "capture"], Us = ["id", "multiple", "placeholder"], Ks = /* @__PURE__ */ h({
|
|
1007
1022
|
inheritAttrs: !1,
|
|
1008
1023
|
__name: "File",
|
|
1009
1024
|
props: {
|
|
@@ -1024,7 +1039,7 @@ const je = /* @__PURE__ */ h({
|
|
|
1024
1039
|
tabindex: "-1",
|
|
1025
1040
|
type: "file",
|
|
1026
1041
|
id: e.question.inputId,
|
|
1027
|
-
onChange: n[0] || (n[0] = (...
|
|
1042
|
+
onChange: n[0] || (n[0] = (...b) => e.question.doChange && e.question.doChange(...b)),
|
|
1028
1043
|
"aria-required": e.question.ariaRequired,
|
|
1029
1044
|
"aria-label": e.question.ariaLabel,
|
|
1030
1045
|
"aria-invalid": e.question.ariaInvalid,
|
|
@@ -1033,7 +1048,7 @@ const je = /* @__PURE__ */ h({
|
|
|
1033
1048
|
title: e.question.inputTitle,
|
|
1034
1049
|
accept: e.question.acceptedTypes,
|
|
1035
1050
|
capture: e.question.renderCapture
|
|
1036
|
-
}, null, 42,
|
|
1051
|
+
}, null, 42, zs)) : d("", !0),
|
|
1037
1052
|
e.question.isReadOnly ? (i(), u("input", {
|
|
1038
1053
|
key: 1,
|
|
1039
1054
|
type: "file",
|
|
@@ -1043,13 +1058,13 @@ const je = /* @__PURE__ */ h({
|
|
|
1043
1058
|
multiple: e.question.allowMultiple,
|
|
1044
1059
|
placeholder: e.question.title,
|
|
1045
1060
|
style: { color: "transparent" }
|
|
1046
|
-
}, null, 10,
|
|
1061
|
+
}, null, 10, Us)) : d("", !0),
|
|
1047
1062
|
c("div", {
|
|
1048
1063
|
class: l(e.question.cssClasses.dragArea),
|
|
1049
|
-
onDrop: n[1] || (n[1] = (...
|
|
1050
|
-
onDragover: n[2] || (n[2] = (...
|
|
1051
|
-
onDragleave: n[3] || (n[3] = (...
|
|
1052
|
-
onDragenter: n[4] || (n[4] = (...
|
|
1064
|
+
onDrop: n[1] || (n[1] = (...b) => e.question.onDrop && e.question.onDrop(...b)),
|
|
1065
|
+
onDragover: n[2] || (n[2] = (...b) => e.question.onDragOver && e.question.onDragOver(...b)),
|
|
1066
|
+
onDragleave: n[3] || (n[3] = (...b) => e.question.onDragLeave && e.question.onDragLeave(...b)),
|
|
1067
|
+
onDragenter: n[4] || (n[4] = (...b) => e.question.onDragEnter && e.question.onDragEnter(...b))
|
|
1053
1068
|
}, [
|
|
1054
1069
|
e.question.showFileDecorator ? (i(), u("div", {
|
|
1055
1070
|
key: 0,
|
|
@@ -1058,7 +1073,7 @@ const je = /* @__PURE__ */ h({
|
|
|
1058
1073
|
c("span", {
|
|
1059
1074
|
class: l(e.question.cssClasses.dragAreaPlaceholder)
|
|
1060
1075
|
}, [
|
|
1061
|
-
|
|
1076
|
+
C(t, {
|
|
1062
1077
|
locString: e.question.locRenderedPlaceholder
|
|
1063
1078
|
}, null, 8, ["locString"])
|
|
1064
1079
|
], 2),
|
|
@@ -1088,7 +1103,7 @@ const je = /* @__PURE__ */ h({
|
|
|
1088
1103
|
key: 2,
|
|
1089
1104
|
class: l(e.question.cssClasses.loadingIndicator)
|
|
1090
1105
|
}, [
|
|
1091
|
-
|
|
1106
|
+
C(v)
|
|
1092
1107
|
], 2)) : d("", !0),
|
|
1093
1108
|
e.question.isPlayingVideo ? (i(), q(g, {
|
|
1094
1109
|
key: 3,
|
|
@@ -1111,7 +1126,7 @@ const je = /* @__PURE__ */ h({
|
|
|
1111
1126
|
], 2);
|
|
1112
1127
|
};
|
|
1113
1128
|
}
|
|
1114
|
-
}),
|
|
1129
|
+
}), js = { class: "sv-hidden" }, pe = "survey-imagepicker-item", Qs = /* @__PURE__ */ h({
|
|
1115
1130
|
inheritAttrs: !1,
|
|
1116
1131
|
__name: "Imagepicker",
|
|
1117
1132
|
props: {
|
|
@@ -1120,8 +1135,8 @@ const je = /* @__PURE__ */ h({
|
|
|
1120
1135
|
setup(r) {
|
|
1121
1136
|
const s = r, o = _(null);
|
|
1122
1137
|
A(s, o);
|
|
1123
|
-
const e = (t) => s.question.getItemValueWrapperComponentName(t) ||
|
|
1124
|
-
componentName:
|
|
1138
|
+
const e = (t) => s.question.getItemValueWrapperComponentName(t) || pe, n = (t) => ({
|
|
1139
|
+
componentName: pe,
|
|
1125
1140
|
componentData: {
|
|
1126
1141
|
question: s.question,
|
|
1127
1142
|
item: t,
|
|
@@ -1133,7 +1148,7 @@ const je = /* @__PURE__ */ h({
|
|
|
1133
1148
|
ref_key: "root",
|
|
1134
1149
|
ref: o
|
|
1135
1150
|
}, [
|
|
1136
|
-
c("legend",
|
|
1151
|
+
c("legend", js, R(t.question.locTitle.renderedHtml), 1),
|
|
1137
1152
|
t.question.hasColumns ? d("", !0) : (i(!0), u($, { key: 0 }, B(t.question.visibleChoices, (y) => (i(), q(T(e(y)), W({
|
|
1138
1153
|
key: y.value
|
|
1139
1154
|
}, n(y)), null, 16))), 128)),
|
|
@@ -1148,7 +1163,7 @@ const je = /* @__PURE__ */ h({
|
|
|
1148
1163
|
], 2))), 128)) : d("", !0)
|
|
1149
1164
|
], 2));
|
|
1150
1165
|
}
|
|
1151
|
-
}),
|
|
1166
|
+
}), Gs = ["name", "value", "id", "disabled", "aria-required", "aria-label", "aria-invalid", "aria-describedby"], Js = ["name", "value", "id", "disabled", "aria-required", "aria-label", "aria-invalid", "aria-describedby"], Xs = ["src", "width", "height", "alt"], Ys = ["src", "width", "height"], Zs = /* @__PURE__ */ h({
|
|
1152
1167
|
inheritAttrs: !1,
|
|
1153
1168
|
__name: "ImagepickerItem",
|
|
1154
1169
|
props: {
|
|
@@ -1158,7 +1173,7 @@ const je = /* @__PURE__ */ h({
|
|
|
1158
1173
|
setup(r) {
|
|
1159
1174
|
const s = r, o = (n) => s.question.getItemClass(n);
|
|
1160
1175
|
L(() => s.item);
|
|
1161
|
-
const e =
|
|
1176
|
+
const e = G(() => s.item.locImageLink);
|
|
1162
1177
|
return (n, t) => {
|
|
1163
1178
|
const a = p("sv-svg-icon"), y = p("survey-string");
|
|
1164
1179
|
return i(), u("div", {
|
|
@@ -1180,8 +1195,8 @@ const je = /* @__PURE__ */ h({
|
|
|
1180
1195
|
"aria-invalid": n.question.ariaInvalid,
|
|
1181
1196
|
"aria-describedby": n.question.ariaDescribedBy,
|
|
1182
1197
|
class: l(n.question.cssClasses.itemControl)
|
|
1183
|
-
}, null, 10,
|
|
1184
|
-
[
|
|
1198
|
+
}, null, 10, Gs)), [
|
|
1199
|
+
[te, n.question.value]
|
|
1185
1200
|
]) : P((i(), u("input", {
|
|
1186
1201
|
key: 1,
|
|
1187
1202
|
type: "radio",
|
|
@@ -1195,7 +1210,7 @@ const je = /* @__PURE__ */ h({
|
|
|
1195
1210
|
"aria-invalid": n.question.ariaInvalid,
|
|
1196
1211
|
"aria-describedby": n.question.ariaDescribedBy,
|
|
1197
1212
|
class: l(n.question.cssClasses.itemControl)
|
|
1198
|
-
}, null, 10,
|
|
1213
|
+
}, null, 10, Js)), [
|
|
1199
1214
|
[ee, n.question.value]
|
|
1200
1215
|
]),
|
|
1201
1216
|
c("div", {
|
|
@@ -1229,7 +1244,7 @@ const je = /* @__PURE__ */ h({
|
|
|
1229
1244
|
onError: t[3] || (t[3] = (m) => {
|
|
1230
1245
|
n.item.onErrorHandler();
|
|
1231
1246
|
})
|
|
1232
|
-
}, null, 46,
|
|
1247
|
+
}, null, 46, Xs)) : d("", !0),
|
|
1233
1248
|
f(e) && !n.item.contentNotLoaded && n.question.contentMode === "video" ? (i(), u("video", {
|
|
1234
1249
|
key: 2,
|
|
1235
1250
|
controls: "",
|
|
@@ -1244,7 +1259,7 @@ const je = /* @__PURE__ */ h({
|
|
|
1244
1259
|
onError: t[5] || (t[5] = (m) => {
|
|
1245
1260
|
n.item.onErrorHandler();
|
|
1246
1261
|
})
|
|
1247
|
-
}, null, 46,
|
|
1262
|
+
}, null, 46, Ys)) : d("", !0),
|
|
1248
1263
|
!f(e) || n.item.contentNotLoaded ? (i(), u("div", {
|
|
1249
1264
|
key: 3,
|
|
1250
1265
|
class: l(n.question.cssClasses.itemNoImage),
|
|
@@ -1254,7 +1269,7 @@ const je = /* @__PURE__ */ h({
|
|
|
1254
1269
|
objectFit: n.question.imageFit
|
|
1255
1270
|
})
|
|
1256
1271
|
}, [
|
|
1257
|
-
|
|
1272
|
+
C(a, {
|
|
1258
1273
|
class: l(n.question.cssClasses.itemNoImageSvgIcon),
|
|
1259
1274
|
iconName: n.question.cssClasses.itemNoImageSvgIconId,
|
|
1260
1275
|
size: 48
|
|
@@ -1265,7 +1280,7 @@ const je = /* @__PURE__ */ h({
|
|
|
1265
1280
|
key: 0,
|
|
1266
1281
|
class: l(n.question.cssClasses.itemText)
|
|
1267
1282
|
}, [
|
|
1268
|
-
|
|
1283
|
+
C(y, {
|
|
1269
1284
|
locString: n.item.locText
|
|
1270
1285
|
}, null, 8, ["locString"])
|
|
1271
1286
|
], 2)) : d("", !0)
|
|
@@ -1274,7 +1289,7 @@ const je = /* @__PURE__ */ h({
|
|
|
1274
1289
|
], 2);
|
|
1275
1290
|
};
|
|
1276
1291
|
}
|
|
1277
|
-
}),
|
|
1292
|
+
}), xs = ["readonly", "disabled", "value", "id", "maxlength", "cols", "rows", "placeholder", "aria-required", "aria-label", "aria-labelledby", "aria-invalid", "aria-describedby"], en = ["readonly", "disabled", "value", "id", "maxlength", "cols", "rows", "placeholder", "aria-required", "aria-label", "aria-labelledby", "aria-invalid", "aria-describedby"], sn = /* @__PURE__ */ h({
|
|
1278
1293
|
inheritAttrs: !1,
|
|
1279
1294
|
__name: "Comment",
|
|
1280
1295
|
props: {
|
|
@@ -1316,7 +1331,7 @@ const je = /* @__PURE__ */ h({
|
|
|
1316
1331
|
"aria-invalid": n.question.a11y_input_ariaInvalid,
|
|
1317
1332
|
"aria-describedby": n.question.a11y_input_ariaDescribedBy,
|
|
1318
1333
|
style: S({ resize: n.question.resizeStyle })
|
|
1319
|
-
}, null, 46,
|
|
1334
|
+
}, null, 46, xs)) : !n.question.isReadOnlyRenderDiv() && n.question.getMaxLength() ? (i(), u("div", {
|
|
1320
1335
|
key: 1,
|
|
1321
1336
|
ref_key: "root",
|
|
1322
1337
|
ref: o
|
|
@@ -1344,8 +1359,8 @@ const je = /* @__PURE__ */ h({
|
|
|
1344
1359
|
"aria-invalid": n.question.a11y_input_ariaInvalid,
|
|
1345
1360
|
"aria-describedby": n.question.a11y_input_ariaDescribedBy,
|
|
1346
1361
|
style: S({ resize: n.question.resizeStyle })
|
|
1347
|
-
}, null, 46,
|
|
1348
|
-
|
|
1362
|
+
}, null, 46, en),
|
|
1363
|
+
C(a, {
|
|
1349
1364
|
counter: n.question.characterCounter,
|
|
1350
1365
|
remainingCharacterCounter: n.question.cssClasses.remainingCharacterCounter
|
|
1351
1366
|
}, null, 8, ["counter", "remainingCharacterCounter"])
|
|
@@ -1356,7 +1371,7 @@ const je = /* @__PURE__ */ h({
|
|
|
1356
1371
|
}, R(n.question.value), 513));
|
|
1357
1372
|
};
|
|
1358
1373
|
}
|
|
1359
|
-
}),
|
|
1374
|
+
}), nn = /* @__PURE__ */ h({
|
|
1360
1375
|
inheritAttrs: !1,
|
|
1361
1376
|
__name: "Dropdown",
|
|
1362
1377
|
props: {
|
|
@@ -1371,7 +1386,7 @@ const je = /* @__PURE__ */ h({
|
|
|
1371
1386
|
ref_key: "root",
|
|
1372
1387
|
ref: o
|
|
1373
1388
|
}, [
|
|
1374
|
-
|
|
1389
|
+
C(t, { question: e.question }, null, 8, ["question"]),
|
|
1375
1390
|
e.question.isOtherSelected ? (i(), q(a, {
|
|
1376
1391
|
key: 0,
|
|
1377
1392
|
question: e.question
|
|
@@ -1379,16 +1394,16 @@ const je = /* @__PURE__ */ h({
|
|
|
1379
1394
|
], 2);
|
|
1380
1395
|
};
|
|
1381
1396
|
}
|
|
1382
|
-
}),
|
|
1397
|
+
}), on = ["id", "autocomplete", "aria-required", "aria-label", "aria-invalid", "aria-describedby", "required"], tn = {
|
|
1383
1398
|
key: 0,
|
|
1384
1399
|
value: ""
|
|
1385
|
-
},
|
|
1400
|
+
}, rn = ["id"];
|
|
1386
1401
|
se.Instance.registerRenderer(
|
|
1387
1402
|
"dropdown",
|
|
1388
1403
|
"select",
|
|
1389
1404
|
"sv-dropdown-select"
|
|
1390
1405
|
);
|
|
1391
|
-
const
|
|
1406
|
+
const ln = /* @__PURE__ */ h({
|
|
1392
1407
|
inheritAttrs: !1,
|
|
1393
1408
|
__name: "DropdownSelect",
|
|
1394
1409
|
props: {
|
|
@@ -1426,7 +1441,7 @@ const tn = /* @__PURE__ */ h({
|
|
|
1426
1441
|
disabled: "",
|
|
1427
1442
|
id: a.question.inputId,
|
|
1428
1443
|
class: l(a.question.getControlClass())
|
|
1429
|
-
}, R(a.question.readOnlyText), 11,
|
|
1444
|
+
}, R(a.question.readOnlyText), 11, rn)) : P((i(), u("select", {
|
|
1430
1445
|
key: 0,
|
|
1431
1446
|
id: a.question.inputId,
|
|
1432
1447
|
"onUpdate:modelValue": y[0] || (y[0] = (I) => t.value = I),
|
|
@@ -1440,19 +1455,19 @@ const tn = /* @__PURE__ */ h({
|
|
|
1440
1455
|
"aria-describedby": a.question.ariaDescribedBy,
|
|
1441
1456
|
required: a.question.isRequired
|
|
1442
1457
|
}, [
|
|
1443
|
-
a.question.allowClear ? (i(), u("option",
|
|
1458
|
+
a.question.allowClear ? (i(), u("option", tn, R(a.question.placeholder), 1)) : d("", !0),
|
|
1444
1459
|
(i(!0), u($, null, B(a.question.visibleChoices, (I) => (i(), q(m, {
|
|
1445
1460
|
item: I,
|
|
1446
1461
|
key: I.id
|
|
1447
1462
|
}, null, 8, ["item"]))), 128))
|
|
1448
|
-
], 42,
|
|
1449
|
-
[
|
|
1463
|
+
], 42, on)), [
|
|
1464
|
+
[Ie, t.value]
|
|
1450
1465
|
]),
|
|
1451
1466
|
a.question.cssClasses.chevronButtonIconId ? (i(), u("div", {
|
|
1452
1467
|
key: 2,
|
|
1453
1468
|
class: l(a.question.cssClasses.chevronButton)
|
|
1454
1469
|
}, [
|
|
1455
|
-
|
|
1470
|
+
C(v, {
|
|
1456
1471
|
class: l(a.question.cssClasses.chevronButtonSvg),
|
|
1457
1472
|
iconName: a.question.cssClasses.chevronButtonIconId,
|
|
1458
1473
|
size: "auto"
|
|
@@ -1466,19 +1481,19 @@ const tn = /* @__PURE__ */ h({
|
|
|
1466
1481
|
], 2);
|
|
1467
1482
|
};
|
|
1468
1483
|
}
|
|
1469
|
-
}),
|
|
1484
|
+
}), an = ["value", "disabled"], un = /* @__PURE__ */ h({
|
|
1470
1485
|
__name: "OptionItem",
|
|
1471
1486
|
props: {
|
|
1472
1487
|
item: {}
|
|
1473
1488
|
},
|
|
1474
1489
|
setup(r) {
|
|
1475
|
-
const s = r, o =
|
|
1490
|
+
const s = r, o = G(() => s.item.locText);
|
|
1476
1491
|
return L(() => s.item), (e, n) => (i(), u("option", {
|
|
1477
1492
|
value: e.item.value,
|
|
1478
1493
|
disabled: !e.item.isEnabled
|
|
1479
|
-
}, R(f(o)), 9,
|
|
1494
|
+
}, R(f(o)), 9, an));
|
|
1480
1495
|
}
|
|
1481
|
-
}),
|
|
1496
|
+
}), dn = ["id", "disabled", "tabindex", "role", "aria-required", "aria-label", "aria-invalid", "aria-describedby", "aria-expanded", "aria-controls", "aria-activedescendant", "required"], mn = { style: { visibility: "hidden" } }, cn = ["disabled", "inputmode", "role", "id", "tabindex", "readonly", "aria-expanded", "aria-controls", "aria-label", "aria-labelledby", "aria-activedescendant", "placeholder"], pn = ["id"], vn = /* @__PURE__ */ h({
|
|
1482
1497
|
__name: "Dropdown",
|
|
1483
1498
|
props: {
|
|
1484
1499
|
question: {}
|
|
@@ -1486,7 +1501,7 @@ const tn = /* @__PURE__ */ h({
|
|
|
1486
1501
|
setup(r) {
|
|
1487
1502
|
const s = r, o = _(null), e = w(() => {
|
|
1488
1503
|
const k = s.question;
|
|
1489
|
-
return k.dropdownListModel || (k.dropdownListModel = new
|
|
1504
|
+
return k.dropdownListModel || (k.dropdownListModel = new Be(k)), s.question.dropdownListModel;
|
|
1490
1505
|
}), n = (k) => {
|
|
1491
1506
|
var D;
|
|
1492
1507
|
(D = e.value) == null || D.onClick(k);
|
|
@@ -1502,7 +1517,7 @@ const tn = /* @__PURE__ */ h({
|
|
|
1502
1517
|
}, m = () => {
|
|
1503
1518
|
if (o.value) {
|
|
1504
1519
|
const k = o.value, D = e.value.inputStringRendered;
|
|
1505
|
-
|
|
1520
|
+
Le.isTwoValueEquals(D, k.value, !1, !0, !1) || (k.value = e.value.inputStringRendered);
|
|
1506
1521
|
}
|
|
1507
1522
|
}, v = (k) => {
|
|
1508
1523
|
var D;
|
|
@@ -1512,11 +1527,11 @@ const tn = /* @__PURE__ */ h({
|
|
|
1512
1527
|
(D = e.value) == null || D.onFocus(k);
|
|
1513
1528
|
}, I = (k) => {
|
|
1514
1529
|
e.value.inputStringRendered = k.target.value;
|
|
1515
|
-
},
|
|
1530
|
+
}, b = w(
|
|
1516
1531
|
() => s.question.showSelectedItemLocText
|
|
1517
1532
|
), N = w(() => s.question.selectedItemLocText);
|
|
1518
1533
|
return L(() => e.value), x(m), H(m), (k, D) => {
|
|
1519
|
-
const E = p("survey-string"), V = p("sv-svg-icon"),
|
|
1534
|
+
const E = p("survey-string"), V = p("sv-svg-icon"), K = p("sv-popup");
|
|
1520
1535
|
return i(), u("div", {
|
|
1521
1536
|
class: l(k.question.cssClasses.selectWrapper),
|
|
1522
1537
|
onClick: n
|
|
@@ -1548,7 +1563,7 @@ const tn = /* @__PURE__ */ h({
|
|
|
1548
1563
|
c("div", {
|
|
1549
1564
|
class: l(k.question.cssClasses.controlValue)
|
|
1550
1565
|
}, [
|
|
1551
|
-
|
|
1566
|
+
b.value ? (i(), q(E, {
|
|
1552
1567
|
key: 0,
|
|
1553
1568
|
locString: N.value
|
|
1554
1569
|
}, null, 8, ["locString"])) : d("", !0),
|
|
@@ -1556,7 +1571,7 @@ const tn = /* @__PURE__ */ h({
|
|
|
1556
1571
|
key: 1,
|
|
1557
1572
|
class: l(k.question.cssClasses.hintSuffix)
|
|
1558
1573
|
}, [
|
|
1559
|
-
c("span",
|
|
1574
|
+
c("span", mn, R(e.value.inputStringRendered), 1),
|
|
1560
1575
|
c("span", null, R(e.value.hintStringSuffix), 1)
|
|
1561
1576
|
], 2)) : d("", !0),
|
|
1562
1577
|
k.question.showInputFieldComponent ? (i(), q(T(k.question.inputFieldComponentName), {
|
|
@@ -1585,7 +1600,7 @@ const tn = /* @__PURE__ */ h({
|
|
|
1585
1600
|
onInput: I,
|
|
1586
1601
|
onBlur: v,
|
|
1587
1602
|
onFocus: g
|
|
1588
|
-
}, null, 42,
|
|
1603
|
+
}, null, 42, cn)
|
|
1589
1604
|
], 2),
|
|
1590
1605
|
k.question.allowClear && k.question.cssClasses.cleanButtonIconId ? P((i(), u("div", {
|
|
1591
1606
|
key: 1,
|
|
@@ -1593,7 +1608,7 @@ const tn = /* @__PURE__ */ h({
|
|
|
1593
1608
|
onClick: a,
|
|
1594
1609
|
"aria-hidden": "true"
|
|
1595
1610
|
}, [
|
|
1596
|
-
|
|
1611
|
+
C(V, {
|
|
1597
1612
|
class: l(k.question.cssClasses.cleanButtonSvg),
|
|
1598
1613
|
iconName: k.question.cssClasses.cleanButtonIconId,
|
|
1599
1614
|
title: k.question.clearCaption,
|
|
@@ -1602,7 +1617,7 @@ const tn = /* @__PURE__ */ h({
|
|
|
1602
1617
|
], 2)), [
|
|
1603
1618
|
[M, k.question.showClearButton]
|
|
1604
1619
|
]) : d("", !0)
|
|
1605
|
-
], 42,
|
|
1620
|
+
], 42, dn)),
|
|
1606
1621
|
k.question.isReadOnly ? (i(), u("div", {
|
|
1607
1622
|
key: 2,
|
|
1608
1623
|
disabled: "",
|
|
@@ -1614,7 +1629,7 @@ const tn = /* @__PURE__ */ h({
|
|
|
1614
1629
|
locString: k.question.selectedItemLocText
|
|
1615
1630
|
}, null, 8, ["locString"])) : d("", !0),
|
|
1616
1631
|
c("div", null, R(k.question.readOnlyText), 1)
|
|
1617
|
-
], 10,
|
|
1632
|
+
], 10, pn)) : (i(), q(K, {
|
|
1618
1633
|
key: 1,
|
|
1619
1634
|
model: k.question.dropdownListModel.popupModel
|
|
1620
1635
|
}, null, 8, ["model"])),
|
|
@@ -1624,7 +1639,7 @@ const tn = /* @__PURE__ */ h({
|
|
|
1624
1639
|
onPointerdown: t,
|
|
1625
1640
|
"aria-hidden": "true"
|
|
1626
1641
|
}, [
|
|
1627
|
-
|
|
1642
|
+
C(V, {
|
|
1628
1643
|
class: l(k.question.cssClasses.chevronButtonSvg),
|
|
1629
1644
|
iconName: k.question.cssClasses.chevronButtonIconId,
|
|
1630
1645
|
size: "auto"
|
|
@@ -1633,7 +1648,7 @@ const tn = /* @__PURE__ */ h({
|
|
|
1633
1648
|
], 2);
|
|
1634
1649
|
};
|
|
1635
1650
|
}
|
|
1636
|
-
}),
|
|
1651
|
+
}), yn = /* @__PURE__ */ h({
|
|
1637
1652
|
inheritAttrs: !1,
|
|
1638
1653
|
__name: "Tagbox",
|
|
1639
1654
|
props: {
|
|
@@ -1648,7 +1663,7 @@ const tn = /* @__PURE__ */ h({
|
|
|
1648
1663
|
ref_key: "root",
|
|
1649
1664
|
ref: o
|
|
1650
1665
|
}, [
|
|
1651
|
-
|
|
1666
|
+
C(t, { question: e.question }, null, 8, ["question"]),
|
|
1652
1667
|
e.question.isOtherSelected ? (i(), q(a, {
|
|
1653
1668
|
key: 0,
|
|
1654
1669
|
question: e.question
|
|
@@ -1656,7 +1671,7 @@ const tn = /* @__PURE__ */ h({
|
|
|
1656
1671
|
], 2);
|
|
1657
1672
|
};
|
|
1658
1673
|
}
|
|
1659
|
-
}),
|
|
1674
|
+
}), qn = ["id", "tabindex", "disabled", "role", "aria-required", "aria-label", "aria-invalid", "aria-describedby", "aria-expanded", "aria-controls", "aria-activedescendant", "required"], gn = ["id"], hn = /* @__PURE__ */ h({
|
|
1660
1675
|
__name: "Tagbox",
|
|
1661
1676
|
props: {
|
|
1662
1677
|
question: {}
|
|
@@ -1664,7 +1679,7 @@ const tn = /* @__PURE__ */ h({
|
|
|
1664
1679
|
setup(r) {
|
|
1665
1680
|
const s = r, o = w(() => {
|
|
1666
1681
|
const v = s.question;
|
|
1667
|
-
return v.dropdownListModel || (v.dropdownListModel = new
|
|
1682
|
+
return v.dropdownListModel || (v.dropdownListModel = new Ne(v)), s.question.dropdownListModel;
|
|
1668
1683
|
}), e = (v) => {
|
|
1669
1684
|
var g;
|
|
1670
1685
|
(g = o.value) == null || g.onClick(v);
|
|
@@ -1680,9 +1695,9 @@ const tn = /* @__PURE__ */ h({
|
|
|
1680
1695
|
}, y = (v) => {
|
|
1681
1696
|
var g;
|
|
1682
1697
|
(g = o.value) == null || g.onBlur(v);
|
|
1683
|
-
}, m =
|
|
1698
|
+
}, m = le(() => s.question.selectedChoices);
|
|
1684
1699
|
return L(() => o.value), (v, g) => {
|
|
1685
|
-
const I = p("sv-tagbox-item"),
|
|
1700
|
+
const I = p("sv-tagbox-item"), b = p("sv-tagbox-filter"), N = p("sv-svg-icon"), k = p("sv-popup"), D = p("survey-string");
|
|
1686
1701
|
return i(), u("div", {
|
|
1687
1702
|
class: l(v.question.cssClasses.selectWrapper),
|
|
1688
1703
|
onClick: e
|
|
@@ -1708,12 +1723,12 @@ const tn = /* @__PURE__ */ h({
|
|
|
1708
1723
|
c("div", {
|
|
1709
1724
|
class: l(v.question.cssClasses.controlValue)
|
|
1710
1725
|
}, [
|
|
1711
|
-
(i(!0), u($, null, B(m
|
|
1726
|
+
(i(!0), u($, null, B(f(m), (E, V) => (i(), q(I, {
|
|
1712
1727
|
item: E,
|
|
1713
1728
|
question: v.question,
|
|
1714
1729
|
key: "item" + V
|
|
1715
1730
|
}, null, 8, ["item", "question"]))), 128)),
|
|
1716
|
-
b
|
|
1731
|
+
C(b, {
|
|
1717
1732
|
model: o.value,
|
|
1718
1733
|
question: v.question
|
|
1719
1734
|
}, null, 8, ["model", "question"])
|
|
@@ -1724,7 +1739,7 @@ const tn = /* @__PURE__ */ h({
|
|
|
1724
1739
|
onClick: t,
|
|
1725
1740
|
"aria-hidden": "true"
|
|
1726
1741
|
}, [
|
|
1727
|
-
|
|
1742
|
+
C(N, {
|
|
1728
1743
|
class: l(v.question.cssClasses.cleanButtonSvg),
|
|
1729
1744
|
iconName: v.question.cssClasses.cleanButtonIconId,
|
|
1730
1745
|
title: v.question.clearCaption,
|
|
@@ -1733,7 +1748,7 @@ const tn = /* @__PURE__ */ h({
|
|
|
1733
1748
|
], 2)), [
|
|
1734
1749
|
[M, v.question.showClearButton]
|
|
1735
1750
|
]) : d("", !0)
|
|
1736
|
-
], 42,
|
|
1751
|
+
], 42, qn)),
|
|
1737
1752
|
v.question.isReadOnly ? (i(), u("div", {
|
|
1738
1753
|
key: 2,
|
|
1739
1754
|
disabled: "",
|
|
@@ -1744,7 +1759,7 @@ const tn = /* @__PURE__ */ h({
|
|
|
1744
1759
|
key: 0,
|
|
1745
1760
|
locString: v.question.locReadOnlyText
|
|
1746
1761
|
}, null, 8, ["locString"])) : d("", !0)
|
|
1747
|
-
], 10,
|
|
1762
|
+
], 10, gn)) : (i(), q(k, {
|
|
1748
1763
|
key: 1,
|
|
1749
1764
|
model: o.value.popupModel
|
|
1750
1765
|
}, null, 8, ["model"])),
|
|
@@ -1754,7 +1769,7 @@ const tn = /* @__PURE__ */ h({
|
|
|
1754
1769
|
onPointerdown: n,
|
|
1755
1770
|
"aria-hidden": "true"
|
|
1756
1771
|
}, [
|
|
1757
|
-
|
|
1772
|
+
C(N, {
|
|
1758
1773
|
class: l(v.question.cssClasses.chevronButtonSvg),
|
|
1759
1774
|
iconName: v.question.cssClasses.chevronButtonIconId,
|
|
1760
1775
|
size: "auto"
|
|
@@ -1763,7 +1778,7 @@ const tn = /* @__PURE__ */ h({
|
|
|
1763
1778
|
], 2);
|
|
1764
1779
|
};
|
|
1765
1780
|
}
|
|
1766
|
-
}),
|
|
1781
|
+
}), Cn = { style: { visibility: "hidden" } }, bn = ["placeholder", "disabled", "inputmode", "role", "aria-expanded", "aria-controls", "aria-label", "aria-labelledby", "aria-activedescendant", "id", "readonly", "size"], kn = /* @__PURE__ */ h({
|
|
1767
1782
|
__name: "TagboxFilter",
|
|
1768
1783
|
props: {
|
|
1769
1784
|
question: {},
|
|
@@ -1802,7 +1817,7 @@ const tn = /* @__PURE__ */ h({
|
|
|
1802
1817
|
key: 1,
|
|
1803
1818
|
class: l(a.question.cssClasses.hintSuffix)
|
|
1804
1819
|
}, [
|
|
1805
|
-
c("span",
|
|
1820
|
+
c("span", Cn, R(a.model.inputStringRendered), 1),
|
|
1806
1821
|
c("span", null, R(a.model.hintStringSuffix), 1)
|
|
1807
1822
|
], 2)) : d("", !0),
|
|
1808
1823
|
P(c("input", {
|
|
@@ -1826,14 +1841,14 @@ const tn = /* @__PURE__ */ h({
|
|
|
1826
1841
|
onKeydown: e,
|
|
1827
1842
|
onBlur: n,
|
|
1828
1843
|
onFocus: t
|
|
1829
|
-
}, null, 42,
|
|
1830
|
-
[
|
|
1844
|
+
}, null, 42, bn), [
|
|
1845
|
+
[we, a.model.inputStringRendered]
|
|
1831
1846
|
])
|
|
1832
1847
|
], 2)
|
|
1833
1848
|
], 2);
|
|
1834
1849
|
};
|
|
1835
1850
|
}
|
|
1836
|
-
}),
|
|
1851
|
+
}), fn = { class: "sv-tagbox__item-text" }, In = /* @__PURE__ */ h({
|
|
1837
1852
|
__name: "TagboxItem",
|
|
1838
1853
|
props: {
|
|
1839
1854
|
question: {},
|
|
@@ -1849,8 +1864,8 @@ const tn = /* @__PURE__ */ h({
|
|
|
1849
1864
|
class: "sv-tagbox__item",
|
|
1850
1865
|
key: e.item.key
|
|
1851
1866
|
}, [
|
|
1852
|
-
c("div",
|
|
1853
|
-
|
|
1867
|
+
c("div", fn, [
|
|
1868
|
+
C(t, {
|
|
1854
1869
|
locString: e.item.locText
|
|
1855
1870
|
}, null, 8, ["locString"])
|
|
1856
1871
|
]),
|
|
@@ -1858,7 +1873,7 @@ const tn = /* @__PURE__ */ h({
|
|
|
1858
1873
|
class: l(e.question.cssClasses.cleanItemButton),
|
|
1859
1874
|
onClick: o
|
|
1860
1875
|
}, [
|
|
1861
|
-
|
|
1876
|
+
C(a, {
|
|
1862
1877
|
class: l(e.question.cssClasses.cleanItemButtonSvg),
|
|
1863
1878
|
iconName: e.question.cssClasses.cleanItemButtonIconId,
|
|
1864
1879
|
size: "auto"
|
|
@@ -1867,7 +1882,7 @@ const tn = /* @__PURE__ */ h({
|
|
|
1867
1882
|
]);
|
|
1868
1883
|
};
|
|
1869
1884
|
}
|
|
1870
|
-
}),
|
|
1885
|
+
}), wn = /* @__PURE__ */ h({
|
|
1871
1886
|
inheritAttrs: !1,
|
|
1872
1887
|
__name: "Ranking",
|
|
1873
1888
|
props: {
|
|
@@ -1910,7 +1925,7 @@ const tn = /* @__PURE__ */ h({
|
|
|
1910
1925
|
key: 0,
|
|
1911
1926
|
class: l(t.question.cssClasses.containerPlaceholder)
|
|
1912
1927
|
}, [
|
|
1913
|
-
|
|
1928
|
+
C(y, {
|
|
1914
1929
|
locString: t.question.locSelectToRankEmptyRankedAreaText
|
|
1915
1930
|
}, null, 8, ["locString"])
|
|
1916
1931
|
], 2)) : d("", !0)
|
|
@@ -1931,7 +1946,7 @@ const tn = /* @__PURE__ */ h({
|
|
|
1931
1946
|
key: 0,
|
|
1932
1947
|
class: l(t.question.cssClasses.containerPlaceholder)
|
|
1933
1948
|
}, [
|
|
1934
|
-
|
|
1949
|
+
C(y, {
|
|
1935
1950
|
locString: t.question.locSelectToRankEmptyUnrankedAreaText
|
|
1936
1951
|
}, null, 8, ["locString"])
|
|
1937
1952
|
], 2)) : d("", !0)
|
|
@@ -1939,10 +1954,10 @@ const tn = /* @__PURE__ */ h({
|
|
|
1939
1954
|
], 2);
|
|
1940
1955
|
};
|
|
1941
1956
|
}
|
|
1942
|
-
}),
|
|
1957
|
+
}), Sn = ["tabindex", "data-sv-drop-target-ranking-item"], Rn = {
|
|
1943
1958
|
tabindex: "-1",
|
|
1944
1959
|
style: { outline: "none" }
|
|
1945
|
-
},
|
|
1960
|
+
}, Tn = ["xlink:href"], $n = ["xlink:href"], _n = ["xlink:href"], Dn = /* @__PURE__ */ h({
|
|
1946
1961
|
inheritAttrs: !1,
|
|
1947
1962
|
__name: "RankingItem",
|
|
1948
1963
|
props: {
|
|
@@ -1971,7 +1986,7 @@ const tn = /* @__PURE__ */ h({
|
|
|
1971
1986
|
);
|
|
1972
1987
|
})
|
|
1973
1988
|
}, [
|
|
1974
|
-
c("div",
|
|
1989
|
+
c("div", Rn, [
|
|
1975
1990
|
c("div", {
|
|
1976
1991
|
class: l(e.question.cssClasses.itemGhostNode)
|
|
1977
1992
|
}, null, 2),
|
|
@@ -1986,14 +2001,14 @@ const tn = /* @__PURE__ */ h({
|
|
|
1986
2001
|
}, [
|
|
1987
2002
|
c("use", {
|
|
1988
2003
|
"xlink:href": e.question.dragDropSvgIcon
|
|
1989
|
-
}, null, 8,
|
|
2004
|
+
}, null, 8, Tn)
|
|
1990
2005
|
], 2)),
|
|
1991
2006
|
(i(), u("svg", {
|
|
1992
2007
|
class: l(e.question.getIconFocusCss())
|
|
1993
2008
|
}, [
|
|
1994
2009
|
c("use", {
|
|
1995
2010
|
"xlink:href": e.question.arrowsSvgIcon
|
|
1996
|
-
}, null, 8,
|
|
2011
|
+
}, null, 8, $n)
|
|
1997
2012
|
], 2))
|
|
1998
2013
|
], 2),
|
|
1999
2014
|
!e.unrankedItem && o.value ? (i(), u("div", {
|
|
@@ -2006,25 +2021,25 @@ const tn = /* @__PURE__ */ h({
|
|
|
2006
2021
|
(i(), u("svg", null, [
|
|
2007
2022
|
c("use", {
|
|
2008
2023
|
"xlink:href": e.question.dashSvgIcon
|
|
2009
|
-
}, null, 8,
|
|
2024
|
+
}, null, 8, _n)
|
|
2010
2025
|
]))
|
|
2011
2026
|
], 2)),
|
|
2012
2027
|
c("div", {
|
|
2013
2028
|
class: l(e.question.cssClasses.controlLabel)
|
|
2014
2029
|
}, [
|
|
2015
|
-
|
|
2030
|
+
C(t, {
|
|
2016
2031
|
locString: e.item.locText
|
|
2017
2032
|
}, null, 8, ["locString"])
|
|
2018
2033
|
], 2)
|
|
2019
2034
|
], 2)
|
|
2020
2035
|
])
|
|
2021
|
-
], 42,
|
|
2036
|
+
], 42, Sn);
|
|
2022
2037
|
};
|
|
2023
2038
|
}
|
|
2024
|
-
}),
|
|
2039
|
+
}), Bn = { role: "radiogroup" }, Ln = /* @__PURE__ */ c("legend", {
|
|
2025
2040
|
role: "presentation",
|
|
2026
2041
|
class: "sv-hidden"
|
|
2027
|
-
}, null, -1),
|
|
2042
|
+
}, null, -1), Nn = /* @__PURE__ */ h({
|
|
2028
2043
|
inheritAttrs: !1,
|
|
2029
2044
|
__name: "Rating",
|
|
2030
2045
|
props: {
|
|
@@ -2041,13 +2056,13 @@ const tn = /* @__PURE__ */ h({
|
|
|
2041
2056
|
ref_key: "root",
|
|
2042
2057
|
ref: o
|
|
2043
2058
|
}, [
|
|
2044
|
-
c("fieldset",
|
|
2045
|
-
|
|
2059
|
+
c("fieldset", Bn, [
|
|
2060
|
+
Ln,
|
|
2046
2061
|
n.question.hasMinLabel ? (i(), u("span", {
|
|
2047
2062
|
key: 0,
|
|
2048
2063
|
class: l(n.question.cssClasses.minText)
|
|
2049
2064
|
}, [
|
|
2050
|
-
|
|
2065
|
+
C(a, {
|
|
2051
2066
|
locString: n.question.locMinRateDescription
|
|
2052
2067
|
}, null, 8, ["locString"])
|
|
2053
2068
|
], 2)) : d("", !0),
|
|
@@ -2061,7 +2076,7 @@ const tn = /* @__PURE__ */ h({
|
|
|
2061
2076
|
key: 1,
|
|
2062
2077
|
class: l(n.question.cssClasses.maxText)
|
|
2063
2078
|
}, [
|
|
2064
|
-
|
|
2079
|
+
C(a, {
|
|
2065
2080
|
locString: n.question.locMaxRateDescription
|
|
2066
2081
|
}, null, 8, ["locString"])
|
|
2067
2082
|
], 2)) : d("", !0)
|
|
@@ -2069,7 +2084,7 @@ const tn = /* @__PURE__ */ h({
|
|
|
2069
2084
|
], 2);
|
|
2070
2085
|
};
|
|
2071
2086
|
}
|
|
2072
|
-
}),
|
|
2087
|
+
}), Pn = ["name", "id", "value", "disabled", "aria-required", "aria-label", "aria-invalid", "aria-describedby"], An = /* @__PURE__ */ h({
|
|
2073
2088
|
__name: "RatingItem",
|
|
2074
2089
|
props: {
|
|
2075
2090
|
question: {},
|
|
@@ -2097,18 +2112,18 @@ const tn = /* @__PURE__ */ h({
|
|
|
2097
2112
|
"aria-label": o.question.ariaLabel,
|
|
2098
2113
|
"aria-invalid": o.question.ariaInvalid,
|
|
2099
2114
|
"aria-describedby": o.question.ariaDescribedBy
|
|
2100
|
-
}, null, 8,
|
|
2115
|
+
}, null, 8, Pn),
|
|
2101
2116
|
c("span", {
|
|
2102
2117
|
class: l(o.question.cssClasses.itemText)
|
|
2103
2118
|
}, [
|
|
2104
|
-
|
|
2119
|
+
C(n, {
|
|
2105
2120
|
locString: o.item.locText
|
|
2106
2121
|
}, null, 8, ["locString"])
|
|
2107
2122
|
], 2)
|
|
2108
2123
|
], 34);
|
|
2109
2124
|
};
|
|
2110
2125
|
}
|
|
2111
|
-
}),
|
|
2126
|
+
}), Mn = ["name", "id", "value", "disabled", "aria-required", "aria-label", "aria-invalid", "aria-describedby"], Hn = /* @__PURE__ */ h({
|
|
2112
2127
|
__name: "RatingItemSmiley",
|
|
2113
2128
|
props: {
|
|
2114
2129
|
question: {},
|
|
@@ -2139,8 +2154,8 @@ const tn = /* @__PURE__ */ h({
|
|
|
2139
2154
|
"aria-label": o.question.ariaLabel,
|
|
2140
2155
|
"aria-invalid": o.question.ariaInvalid,
|
|
2141
2156
|
"aria-describedby": o.question.ariaDescribedBy
|
|
2142
|
-
}, null, 8,
|
|
2143
|
-
|
|
2157
|
+
}, null, 8, Mn),
|
|
2158
|
+
C(n, {
|
|
2144
2159
|
iconName: o.question.getItemSmileyIconName(o.item.itemValue),
|
|
2145
2160
|
size: "auto",
|
|
2146
2161
|
title: o.item.text
|
|
@@ -2148,7 +2163,7 @@ const tn = /* @__PURE__ */ h({
|
|
|
2148
2163
|
], 38);
|
|
2149
2164
|
};
|
|
2150
2165
|
}
|
|
2151
|
-
}),
|
|
2166
|
+
}), Wn = ["name", "id", "value", "disabled", "aria-required", "aria-label", "aria-invalid", "aria-describedby"], En = /* @__PURE__ */ h({
|
|
2152
2167
|
__name: "RatingItemStar",
|
|
2153
2168
|
props: {
|
|
2154
2169
|
question: {},
|
|
@@ -2178,14 +2193,14 @@ const tn = /* @__PURE__ */ h({
|
|
|
2178
2193
|
"aria-label": o.question.ariaLabel,
|
|
2179
2194
|
"aria-invalid": o.question.ariaInvalid,
|
|
2180
2195
|
"aria-describedby": o.question.ariaDescribedBy
|
|
2181
|
-
}, null, 8,
|
|
2182
|
-
|
|
2196
|
+
}, null, 8, Wn),
|
|
2197
|
+
C(n, {
|
|
2183
2198
|
class: l("sv-star"),
|
|
2184
2199
|
iconName: o.question.itemStarIcon,
|
|
2185
2200
|
size: "auto",
|
|
2186
2201
|
title: o.item.text
|
|
2187
2202
|
}, null, 8, ["iconName", "title"]),
|
|
2188
|
-
|
|
2203
|
+
C(n, {
|
|
2189
2204
|
class: l("sv-star-2"),
|
|
2190
2205
|
iconName: o.question.itemStarIconAlt,
|
|
2191
2206
|
size: "auto",
|
|
@@ -2194,10 +2209,10 @@ const tn = /* @__PURE__ */ h({
|
|
|
2194
2209
|
], 34);
|
|
2195
2210
|
};
|
|
2196
2211
|
}
|
|
2197
|
-
}),
|
|
2212
|
+
}), Vn = { class: "sd-rating-dropdown-item" }, On = { class: "sd-rating-dropdown-item_text" }, Fn = {
|
|
2198
2213
|
key: 0,
|
|
2199
2214
|
class: "sd-rating-dropdown-item_description"
|
|
2200
|
-
},
|
|
2215
|
+
}, zn = /* @__PURE__ */ h({
|
|
2201
2216
|
__name: "RatingDropdownItem",
|
|
2202
2217
|
props: {
|
|
2203
2218
|
item: {}
|
|
@@ -2206,10 +2221,10 @@ const tn = /* @__PURE__ */ h({
|
|
|
2206
2221
|
const s = r;
|
|
2207
2222
|
return L(() => s.item), (o, e) => {
|
|
2208
2223
|
const n = p("survey-string");
|
|
2209
|
-
return i(), u("div",
|
|
2210
|
-
c("span",
|
|
2211
|
-
o.item.description ? (i(), u("div",
|
|
2212
|
-
|
|
2224
|
+
return i(), u("div", Vn, [
|
|
2225
|
+
c("span", On, R(o.item.title), 1),
|
|
2226
|
+
o.item.description ? (i(), u("div", Fn, [
|
|
2227
|
+
C(n, {
|
|
2213
2228
|
locString: o.item.description
|
|
2214
2229
|
}, null, 8, ["locString"])
|
|
2215
2230
|
])) : d("", !0)
|
|
@@ -2222,7 +2237,7 @@ se.Instance.registerRenderer(
|
|
|
2222
2237
|
"dropdown",
|
|
2223
2238
|
"sv-rating-dropdown"
|
|
2224
2239
|
);
|
|
2225
|
-
const
|
|
2240
|
+
const Un = /* @__PURE__ */ h({
|
|
2226
2241
|
inheritAttrs: !1,
|
|
2227
2242
|
__name: "RatingDropdown",
|
|
2228
2243
|
props: {
|
|
@@ -2237,11 +2252,11 @@ const Fn = /* @__PURE__ */ h({
|
|
|
2237
2252
|
ref_key: "root",
|
|
2238
2253
|
ref: o
|
|
2239
2254
|
}, [
|
|
2240
|
-
|
|
2255
|
+
C(t, { question: e.question }, null, 8, ["question"])
|
|
2241
2256
|
], 2);
|
|
2242
2257
|
};
|
|
2243
2258
|
}
|
|
2244
|
-
}),
|
|
2259
|
+
}), Kn = ["name", "value", "id", ".indeterminate", "disabled", "aria-required", "aria-label", "aria-invalid", "aria-describedby"], jn = /* @__PURE__ */ h({
|
|
2245
2260
|
inheritAttrs: !1,
|
|
2246
2261
|
__name: "BooleanSwitch",
|
|
2247
2262
|
props: {
|
|
@@ -2280,8 +2295,8 @@ const Fn = /* @__PURE__ */ h({
|
|
|
2280
2295
|
"aria-label": t.question.ariaLabel,
|
|
2281
2296
|
"aria-invalid": t.question.ariaInvalid,
|
|
2282
2297
|
"aria-describedby": t.question.ariaDescribedBy
|
|
2283
|
-
}, null, 42,
|
|
2284
|
-
[
|
|
2298
|
+
}, null, 42, Kn), [
|
|
2299
|
+
[te, t.question.booleanValue]
|
|
2285
2300
|
]),
|
|
2286
2301
|
c("div", {
|
|
2287
2302
|
class: l(t.question.cssClasses.sliderGhost),
|
|
@@ -2290,7 +2305,7 @@ const Fn = /* @__PURE__ */ h({
|
|
|
2290
2305
|
c("span", {
|
|
2291
2306
|
class: l(t.question.getLabelCss(!1))
|
|
2292
2307
|
}, [
|
|
2293
|
-
|
|
2308
|
+
C(y, {
|
|
2294
2309
|
locString: t.question.locLabelFalse
|
|
2295
2310
|
}, null, 8, ["locString"])
|
|
2296
2311
|
], 2)
|
|
@@ -2306,7 +2321,7 @@ const Fn = /* @__PURE__ */ h({
|
|
|
2306
2321
|
key: 0,
|
|
2307
2322
|
class: l(t.question.cssClasses.sliderText)
|
|
2308
2323
|
}, [
|
|
2309
|
-
|
|
2324
|
+
C(y, {
|
|
2310
2325
|
locString: t.question.getCheckedLabel()
|
|
2311
2326
|
}, null, 8, ["locString"])
|
|
2312
2327
|
], 2)) : d("", !0)
|
|
@@ -2319,7 +2334,7 @@ const Fn = /* @__PURE__ */ h({
|
|
|
2319
2334
|
c("span", {
|
|
2320
2335
|
class: l(t.question.getLabelCss(!0))
|
|
2321
2336
|
}, [
|
|
2322
|
-
|
|
2337
|
+
C(y, {
|
|
2323
2338
|
locString: t.question.locLabelTrue
|
|
2324
2339
|
}, null, 8, ["locString"])
|
|
2325
2340
|
], 2)
|
|
@@ -2334,7 +2349,7 @@ se.Instance.registerRenderer(
|
|
|
2334
2349
|
"radio",
|
|
2335
2350
|
"sv-boolean-radio"
|
|
2336
2351
|
);
|
|
2337
|
-
const
|
|
2352
|
+
const Qn = /* @__PURE__ */ h({
|
|
2338
2353
|
inheritAttrs: !1,
|
|
2339
2354
|
__name: "BooleanRadio",
|
|
2340
2355
|
props: {
|
|
@@ -2369,7 +2384,7 @@ const Kn = /* @__PURE__ */ h({
|
|
|
2369
2384
|
], 2);
|
|
2370
2385
|
};
|
|
2371
2386
|
}
|
|
2372
|
-
}),
|
|
2387
|
+
}), Gn = ["name", "value", "checked", "aria-describedby", "disabled"], Jn = ["xlink:href"], Xn = /* @__PURE__ */ h({
|
|
2373
2388
|
__name: "BooleanRadioItem",
|
|
2374
2389
|
props: {
|
|
2375
2390
|
question: {},
|
|
@@ -2399,7 +2414,7 @@ const Kn = /* @__PURE__ */ h({
|
|
|
2399
2414
|
disabled: e.question.isInputReadOnly,
|
|
2400
2415
|
class: l(e.question.cssClasses.itemRadioControl),
|
|
2401
2416
|
onChange: o
|
|
2402
|
-
}, null, 42,
|
|
2417
|
+
}, null, 42, Gn),
|
|
2403
2418
|
e.question.cssClasses.materialRadioDecorator ? (i(), u("span", {
|
|
2404
2419
|
key: 0,
|
|
2405
2420
|
class: l(e.question.cssClasses.materialRadioDecorator)
|
|
@@ -2410,25 +2425,25 @@ const Kn = /* @__PURE__ */ h({
|
|
|
2410
2425
|
}, [
|
|
2411
2426
|
c("use", {
|
|
2412
2427
|
"xlink:href": e.question.itemSvgIcon
|
|
2413
|
-
}, null, 8,
|
|
2428
|
+
}, null, 8, Jn)
|
|
2414
2429
|
], 2)) : d("", !0)
|
|
2415
2430
|
], 2)) : d("", !0),
|
|
2416
2431
|
c("span", {
|
|
2417
2432
|
class: l(e.question.cssClasses.radioControlLabel)
|
|
2418
2433
|
}, [
|
|
2419
|
-
|
|
2434
|
+
C(t, { locString: e.locText }, null, 8, ["locString"])
|
|
2420
2435
|
], 2)
|
|
2421
2436
|
], 2)
|
|
2422
2437
|
], 2);
|
|
2423
2438
|
};
|
|
2424
2439
|
}
|
|
2425
|
-
}),
|
|
2440
|
+
}), Yn = ["name", "value", "id", ".indeterminate", "disabled", "aria-required", "aria-label", "aria-invalid", "aria-describedby"], Zn = ["xlink:href"], xn = /* @__PURE__ */ c("span", { class: "check" }, null, -1), eo = ["id"];
|
|
2426
2441
|
se.Instance.registerRenderer(
|
|
2427
2442
|
"boolean",
|
|
2428
2443
|
"checkbox",
|
|
2429
2444
|
"sv-boolean-checkbox"
|
|
2430
2445
|
);
|
|
2431
|
-
const
|
|
2446
|
+
const so = /* @__PURE__ */ h({
|
|
2432
2447
|
inheritAttrs: !1,
|
|
2433
2448
|
__name: "BooleanCheckbox",
|
|
2434
2449
|
props: {
|
|
@@ -2464,8 +2479,8 @@ const xn = /* @__PURE__ */ h({
|
|
|
2464
2479
|
"aria-label": e.question.ariaLabel,
|
|
2465
2480
|
"aria-invalid": e.question.ariaInvalid,
|
|
2466
2481
|
"aria-describedby": e.question.ariaDescribedBy
|
|
2467
|
-
}, null, 42,
|
|
2468
|
-
[
|
|
2482
|
+
}, null, 42, Yn), [
|
|
2483
|
+
[te, e.question.booleanValue]
|
|
2469
2484
|
]),
|
|
2470
2485
|
c("span", {
|
|
2471
2486
|
class: l(e.question.cssClasses.checkboxMaterialDecorator)
|
|
@@ -2476,9 +2491,9 @@ const xn = /* @__PURE__ */ h({
|
|
|
2476
2491
|
}, [
|
|
2477
2492
|
c("use", {
|
|
2478
2493
|
"xlink:href": e.question.svgIcon
|
|
2479
|
-
}, null, 8,
|
|
2494
|
+
}, null, 8, Zn)
|
|
2480
2495
|
], 2)) : d("", !0),
|
|
2481
|
-
|
|
2496
|
+
xn
|
|
2482
2497
|
], 2),
|
|
2483
2498
|
e.question.isLabelRendered ? (i(), u("span", {
|
|
2484
2499
|
key: 0,
|
|
@@ -2495,13 +2510,13 @@ const xn = /* @__PURE__ */ h({
|
|
|
2495
2510
|
element: e.question,
|
|
2496
2511
|
css: e.css
|
|
2497
2512
|
}, null, 8, ["element", "css"])) : d("", !0)
|
|
2498
|
-
], 10,
|
|
2513
|
+
], 10, eo)) : d("", !0)
|
|
2499
2514
|
], 2),
|
|
2500
2515
|
e.question.canRenderLabelDescription ? (i(), u("div", {
|
|
2501
2516
|
key: 0,
|
|
2502
2517
|
class: l(e.question.cssDescription)
|
|
2503
2518
|
}, [
|
|
2504
|
-
|
|
2519
|
+
C(y, {
|
|
2505
2520
|
locString: e.question.locDescription
|
|
2506
2521
|
}, null, 8, ["locString"])
|
|
2507
2522
|
], 2)) : d("", !0)
|
|
@@ -2509,14 +2524,14 @@ const xn = /* @__PURE__ */ h({
|
|
|
2509
2524
|
], 2);
|
|
2510
2525
|
};
|
|
2511
2526
|
}
|
|
2512
|
-
}),
|
|
2527
|
+
}), no = /* @__PURE__ */ h({
|
|
2513
2528
|
inheritAttrs: !1,
|
|
2514
2529
|
__name: "Multipletext",
|
|
2515
2530
|
props: {
|
|
2516
2531
|
question: {}
|
|
2517
2532
|
},
|
|
2518
2533
|
setup(r) {
|
|
2519
|
-
const s = r, o = _(null), e =
|
|
2534
|
+
const s = r, o = _(null), e = le(() => s.question.getRows());
|
|
2520
2535
|
return A(s, o), (n, t) => {
|
|
2521
2536
|
const a = p("survey-multipletext-item");
|
|
2522
2537
|
return i(), u("table", {
|
|
@@ -2525,7 +2540,7 @@ const xn = /* @__PURE__ */ h({
|
|
|
2525
2540
|
ref: o
|
|
2526
2541
|
}, [
|
|
2527
2542
|
c("tbody", null, [
|
|
2528
|
-
(i(!0), u($, null, B(e
|
|
2543
|
+
(i(!0), u($, null, B(f(e), (y, m) => (i(), u($, {
|
|
2529
2544
|
key: n.question.inputId + "rowkey" + m
|
|
2530
2545
|
}, [
|
|
2531
2546
|
y.isVisible ? (i(), u("tr", {
|
|
@@ -2536,7 +2551,7 @@ const xn = /* @__PURE__ */ h({
|
|
|
2536
2551
|
key: "item" + v.item.editor.id,
|
|
2537
2552
|
class: l(v.className)
|
|
2538
2553
|
}, [
|
|
2539
|
-
|
|
2554
|
+
C(a, {
|
|
2540
2555
|
question: n.question,
|
|
2541
2556
|
cell: v
|
|
2542
2557
|
}, null, 8, ["question", "cell"])
|
|
@@ -2547,14 +2562,14 @@ const xn = /* @__PURE__ */ h({
|
|
|
2547
2562
|
], 2);
|
|
2548
2563
|
};
|
|
2549
2564
|
}
|
|
2550
|
-
}),
|
|
2565
|
+
}), oo = { key: 1 }, to = /* @__PURE__ */ h({
|
|
2551
2566
|
__name: "MultipletextItem",
|
|
2552
2567
|
props: {
|
|
2553
2568
|
question: {},
|
|
2554
2569
|
cell: {}
|
|
2555
2570
|
},
|
|
2556
2571
|
setup(r) {
|
|
2557
|
-
const s = r, o = (n) =>
|
|
2572
|
+
const s = r, o = (n) => re(n);
|
|
2558
2573
|
L(() => s.cell.item.editor);
|
|
2559
2574
|
const e = w(() => s.cell.item);
|
|
2560
2575
|
return (n, t) => {
|
|
@@ -2574,10 +2589,10 @@ const xn = /* @__PURE__ */ h({
|
|
|
2574
2589
|
key: 0,
|
|
2575
2590
|
class: l(n.question.cssClasses.requiredText)
|
|
2576
2591
|
}, R(e.value.editor.requiredText), 3)) : d("", !0),
|
|
2577
|
-
|
|
2592
|
+
C(a, {
|
|
2578
2593
|
locString: e.value.locTitle
|
|
2579
2594
|
}, null, 8, ["locString"]),
|
|
2580
|
-
e.value.editor.isRequireTextAfterTitle ? (i(), u("span",
|
|
2595
|
+
e.value.editor.isRequireTextAfterTitle ? (i(), u("span", oo, "\xA0")) : d("", !0),
|
|
2581
2596
|
e.value.editor.isRequireTextAfterTitle ? (i(), u("span", {
|
|
2582
2597
|
key: 2,
|
|
2583
2598
|
"aria-hidden": "true",
|
|
@@ -2596,14 +2611,14 @@ const xn = /* @__PURE__ */ h({
|
|
|
2596
2611
|
], 2));
|
|
2597
2612
|
};
|
|
2598
2613
|
}
|
|
2599
|
-
}),
|
|
2614
|
+
}), io = { class: "sv-hidden" }, ro = { key: 0 }, lo = { key: 0 }, ao = ["onClick"], uo = ["data-responsive-title", "onClick"], mo = /* @__PURE__ */ h({
|
|
2600
2615
|
inheritAttrs: !1,
|
|
2601
2616
|
__name: "Matrix",
|
|
2602
2617
|
props: {
|
|
2603
2618
|
question: {}
|
|
2604
2619
|
},
|
|
2605
2620
|
setup(r) {
|
|
2606
|
-
const s = r, o = _(null), e =
|
|
2621
|
+
const s = r, o = _(null), e = z();
|
|
2607
2622
|
A(
|
|
2608
2623
|
s,
|
|
2609
2624
|
o,
|
|
@@ -2628,13 +2643,13 @@ const xn = /* @__PURE__ */ h({
|
|
|
2628
2643
|
ref: o
|
|
2629
2644
|
}, [
|
|
2630
2645
|
c("fieldset", null, [
|
|
2631
|
-
c("legend",
|
|
2646
|
+
c("legend", io, R(t.question.locTitle.renderedHtml), 1),
|
|
2632
2647
|
c("table", {
|
|
2633
2648
|
class: l(t.question.getTableCss())
|
|
2634
2649
|
}, [
|
|
2635
|
-
t.question.showHeader ? (i(), u("thead",
|
|
2650
|
+
t.question.showHeader ? (i(), u("thead", ro, [
|
|
2636
2651
|
c("tr", null, [
|
|
2637
|
-
t.question.hasRows ? (i(), u("td",
|
|
2652
|
+
t.question.hasRows ? (i(), u("td", lo)) : d("", !0),
|
|
2638
2653
|
(i(!0), u($, null, B(t.question.visibleColumns, (m, v) => (i(), u("th", {
|
|
2639
2654
|
key: v,
|
|
2640
2655
|
class: l(t.question.cssClasses.headerCell),
|
|
@@ -2647,7 +2662,7 @@ const xn = /* @__PURE__ */ h({
|
|
|
2647
2662
|
componentData: t.question.getColumnHeaderWrapperComponentData(m)
|
|
2648
2663
|
}, {
|
|
2649
2664
|
default: O(() => [
|
|
2650
|
-
|
|
2665
|
+
C(y, {
|
|
2651
2666
|
locString: m.locText
|
|
2652
2667
|
}, null, 8, ["locString"])
|
|
2653
2668
|
]),
|
|
@@ -2672,7 +2687,7 @@ const xn = /* @__PURE__ */ h({
|
|
|
2672
2687
|
componentData: t.question.getRowHeaderWrapperComponentData(m)
|
|
2673
2688
|
}, {
|
|
2674
2689
|
default: O(() => [
|
|
2675
|
-
|
|
2690
|
+
C(y, {
|
|
2676
2691
|
locString: m.locText
|
|
2677
2692
|
}, null, 8, ["locString"])
|
|
2678
2693
|
]),
|
|
@@ -2684,62 +2699,25 @@ const xn = /* @__PURE__ */ h({
|
|
|
2684
2699
|
t.question.hasCellText ? (i(!0), u($, { key: 0 }, B(t.question.visibleColumns, (g, I) => (i(), u("td", {
|
|
2685
2700
|
key: I,
|
|
2686
2701
|
class: l(t.question.getItemClass(m, g)),
|
|
2687
|
-
onClick: (
|
|
2702
|
+
onClick: (b) => n(m, g)
|
|
2688
2703
|
}, [
|
|
2689
|
-
|
|
2704
|
+
C(y, {
|
|
2690
2705
|
locString: t.question.getCellDisplayLocText(m.name, g)
|
|
2691
2706
|
}, null, 8, ["locString"])
|
|
2692
|
-
], 10,
|
|
2707
|
+
], 10, ao))), 128)) : d("", !0),
|
|
2693
2708
|
t.question.hasCellText ? d("", !0) : (i(!0), u($, { key: 1 }, B(t.question.visibleColumns, (g, I) => (i(), u("td", {
|
|
2694
2709
|
key: I,
|
|
2695
2710
|
"data-responsive-title": g.locText.renderedHtml,
|
|
2696
2711
|
class: l(t.question.cssClasses.cell),
|
|
2697
|
-
onClick: (
|
|
2712
|
+
onClick: (b) => n(m, g)
|
|
2698
2713
|
}, [
|
|
2699
|
-
|
|
2700
|
-
|
|
2701
|
-
|
|
2702
|
-
|
|
2703
|
-
|
|
2704
|
-
|
|
2705
|
-
|
|
2706
|
-
name: m.fullName,
|
|
2707
|
-
"onUpdate:modelValue": (C) => m.value = C,
|
|
2708
|
-
value: g.value,
|
|
2709
|
-
disabled: t.question.isInputReadOnly,
|
|
2710
|
-
id: t.question.inputId + "_" + m.name + "_" + I,
|
|
2711
|
-
"aria-required": t.question.a11y_input_ariaRequired,
|
|
2712
|
-
"aria-label": t.question.getCellAriaLabel(
|
|
2713
|
-
m.locText.renderedHtml,
|
|
2714
|
-
g.locText.renderedHtml
|
|
2715
|
-
),
|
|
2716
|
-
"aria-invalid": t.question.a11y_input_ariaInvalid,
|
|
2717
|
-
"aria-describedby": t.question.a11y_input_ariaDescribedBy
|
|
2718
|
-
}, null, 10, ao), [
|
|
2719
|
-
[ee, m.value]
|
|
2720
|
-
]),
|
|
2721
|
-
c("span", {
|
|
2722
|
-
class: l(t.question.cssClasses.materialDecorator)
|
|
2723
|
-
}, [
|
|
2724
|
-
t.question.itemSvgIcon ? (i(), u("svg", {
|
|
2725
|
-
key: 0,
|
|
2726
|
-
class: l(t.question.cssClasses.itemDecorator)
|
|
2727
|
-
}, [
|
|
2728
|
-
c("use", {
|
|
2729
|
-
"xlink:href": t.question.itemSvgIcon
|
|
2730
|
-
}, null, 8, uo)
|
|
2731
|
-
], 2)) : d("", !0)
|
|
2732
|
-
], 2),
|
|
2733
|
-
t.question.isMobile ? (i(), u("span", {
|
|
2734
|
-
key: 0,
|
|
2735
|
-
class: l(t.question.cssClasses.cellResponsiveTitle)
|
|
2736
|
-
}, [
|
|
2737
|
-
b(y, {
|
|
2738
|
-
locString: g.locText
|
|
2739
|
-
}, null, 8, ["locString"])
|
|
2740
|
-
], 2)) : d("", !0)
|
|
2741
|
-
], 34)
|
|
2742
|
-
], 10, lo))), 128))
|
|
2714
|
+
(i(), q(T(t.question.cellComponent), {
|
|
2715
|
+
question: t.question,
|
|
2716
|
+
row: m,
|
|
2717
|
+
column: g,
|
|
2718
|
+
columnIndex: I
|
|
2719
|
+
}, null, 8, ["question", "row", "column", "columnIndex"]))
|
|
2720
|
+
], 10, uo))), 128))
|
|
2743
2721
|
], 2))), 128))
|
|
2744
2722
|
])
|
|
2745
2723
|
], 2)
|
|
@@ -2747,7 +2725,64 @@ const xn = /* @__PURE__ */ h({
|
|
|
2747
2725
|
], 2);
|
|
2748
2726
|
};
|
|
2749
2727
|
}
|
|
2750
|
-
}), co = /* @__PURE__ */ h({
|
|
2728
|
+
}), co = ["name", "value", "disabled", "id", "aria-required", "aria-label", "aria-invalid", "aria-describedby"], po = ["xlink:href"], vo = /* @__PURE__ */ h({
|
|
2729
|
+
inheritAttrs: !1,
|
|
2730
|
+
__name: "MatrixCell",
|
|
2731
|
+
props: {
|
|
2732
|
+
question: {},
|
|
2733
|
+
row: {},
|
|
2734
|
+
column: {},
|
|
2735
|
+
columnIndex: {}
|
|
2736
|
+
},
|
|
2737
|
+
setup(r) {
|
|
2738
|
+
return (s, o) => {
|
|
2739
|
+
const e = p("survey-string");
|
|
2740
|
+
return i(), u("label", {
|
|
2741
|
+
onMousedown: o[1] || (o[1] = (n) => s.question.onMouseDown()),
|
|
2742
|
+
class: l(s.question.getItemClass(s.row, s.column))
|
|
2743
|
+
}, [
|
|
2744
|
+
P(c("input", {
|
|
2745
|
+
type: "radio",
|
|
2746
|
+
class: l(s.question.cssClasses.itemValue),
|
|
2747
|
+
name: s.row.fullName,
|
|
2748
|
+
"onUpdate:modelValue": o[0] || (o[0] = (n) => s.row.value = n),
|
|
2749
|
+
value: s.column.value,
|
|
2750
|
+
disabled: s.question.isInputReadOnly,
|
|
2751
|
+
id: s.question.inputId + "_" + s.row.name + "_" + s.columnIndex,
|
|
2752
|
+
"aria-required": s.question.a11y_input_ariaRequired,
|
|
2753
|
+
"aria-label": s.question.getCellAriaLabel(
|
|
2754
|
+
s.row.locText.renderedHtml,
|
|
2755
|
+
s.column.locText.renderedHtml
|
|
2756
|
+
),
|
|
2757
|
+
"aria-invalid": s.question.a11y_input_ariaInvalid,
|
|
2758
|
+
"aria-describedby": s.question.a11y_input_ariaDescribedBy
|
|
2759
|
+
}, null, 10, co), [
|
|
2760
|
+
[ee, s.row.value]
|
|
2761
|
+
]),
|
|
2762
|
+
c("span", {
|
|
2763
|
+
class: l(s.question.cssClasses.materialDecorator)
|
|
2764
|
+
}, [
|
|
2765
|
+
s.question.itemSvgIcon ? (i(), u("svg", {
|
|
2766
|
+
key: 0,
|
|
2767
|
+
class: l(s.question.cssClasses.itemDecorator)
|
|
2768
|
+
}, [
|
|
2769
|
+
c("use", {
|
|
2770
|
+
"xlink:href": s.question.itemSvgIcon
|
|
2771
|
+
}, null, 8, po)
|
|
2772
|
+
], 2)) : d("", !0)
|
|
2773
|
+
], 2),
|
|
2774
|
+
s.question.isMobile ? (i(), u("span", {
|
|
2775
|
+
key: 0,
|
|
2776
|
+
class: l(s.question.cssClasses.cellResponsiveTitle)
|
|
2777
|
+
}, [
|
|
2778
|
+
C(e, {
|
|
2779
|
+
locString: s.column.locText
|
|
2780
|
+
}, null, 8, ["locString"])
|
|
2781
|
+
], 2)) : d("", !0)
|
|
2782
|
+
], 34);
|
|
2783
|
+
};
|
|
2784
|
+
}
|
|
2785
|
+
}), yo = /* @__PURE__ */ h({
|
|
2751
2786
|
inheritAttrs: !1,
|
|
2752
2787
|
__name: "MatrixDropdown",
|
|
2753
2788
|
props: {
|
|
@@ -2764,7 +2799,7 @@ const xn = /* @__PURE__ */ h({
|
|
|
2764
2799
|
}, null, 8, ["question"]);
|
|
2765
2800
|
};
|
|
2766
2801
|
}
|
|
2767
|
-
}),
|
|
2802
|
+
}), qo = { key: 0 }, go = ["data-sv-drop-target-matrix-row", "onPointerdown"], ho = { key: 1 }, Co = /* @__PURE__ */ h({
|
|
2768
2803
|
__name: "MatrixTable",
|
|
2769
2804
|
props: {
|
|
2770
2805
|
question: {}
|
|
@@ -2774,7 +2809,7 @@ const xn = /* @__PURE__ */ h({
|
|
|
2774
2809
|
return L(
|
|
2775
2810
|
() => o.value,
|
|
2776
2811
|
(e) => {
|
|
2777
|
-
const n =
|
|
2812
|
+
const n = ie();
|
|
2778
2813
|
e.renderedRowsChangedCallback = () => {
|
|
2779
2814
|
var t;
|
|
2780
2815
|
(t = n == null ? void 0 : n.proxy) == null || t.$forceUpdate();
|
|
@@ -2785,7 +2820,7 @@ const xn = /* @__PURE__ */ h({
|
|
|
2785
2820
|
};
|
|
2786
2821
|
}
|
|
2787
2822
|
), (e, n) => {
|
|
2788
|
-
const t = p("survey-string"), a = p("survey-matrixheaderrequired"), y = p("survey-
|
|
2823
|
+
const t = p("survey-string"), a = p("survey-matrixheaderrequired"), y = p("survey-matrixdropdown-cell");
|
|
2789
2824
|
return i(), u("div", {
|
|
2790
2825
|
style: S({ overflowX: e.question.showHorizontalScroll ? "scroll" : "" }),
|
|
2791
2826
|
class: l(e.question.cssClasses.tableWrapper)
|
|
@@ -2793,7 +2828,7 @@ const xn = /* @__PURE__ */ h({
|
|
|
2793
2828
|
c("table", {
|
|
2794
2829
|
class: l(e.question.getTableCss())
|
|
2795
2830
|
}, [
|
|
2796
|
-
o.value.showHeader ? (i(), u("thead",
|
|
2831
|
+
o.value.showHeader ? (i(), u("thead", qo, [
|
|
2797
2832
|
c("tr", null, [
|
|
2798
2833
|
(i(!0), u($, null, B(o.value.headerRow.cells, (m) => (i(), u($, null, [
|
|
2799
2834
|
m.hasTitle ? (i(), u("th", {
|
|
@@ -2805,7 +2840,7 @@ const xn = /* @__PURE__ */ h({
|
|
|
2805
2840
|
componentData: e.question.getColumnHeaderWrapperComponentData(m)
|
|
2806
2841
|
}, {
|
|
2807
2842
|
default: O(() => [
|
|
2808
|
-
|
|
2843
|
+
C(t, {
|
|
2809
2844
|
locString: m.locTitle
|
|
2810
2845
|
}, null, 8, ["locString"]),
|
|
2811
2846
|
m.column ? (i(), q(a, {
|
|
@@ -2840,10 +2875,10 @@ const xn = /* @__PURE__ */ h({
|
|
|
2840
2875
|
question: e.question,
|
|
2841
2876
|
key: m.id + "_" + g
|
|
2842
2877
|
}, null, 8, ["cell", "question"]))), 128))
|
|
2843
|
-
], 42,
|
|
2878
|
+
], 42, go)) : d("", !0)
|
|
2844
2879
|
], 64))), 128))
|
|
2845
2880
|
]),
|
|
2846
|
-
o.value.showFooter ? (i(), u("tfoot",
|
|
2881
|
+
o.value.showFooter ? (i(), u("tfoot", ho, [
|
|
2847
2882
|
c("tr", null, [
|
|
2848
2883
|
(i(!0), u($, null, B(o.value.footerRow.cells, (m, v) => (i(), q(y, {
|
|
2849
2884
|
cell: m,
|
|
@@ -2856,7 +2891,7 @@ const xn = /* @__PURE__ */ h({
|
|
|
2856
2891
|
], 6);
|
|
2857
2892
|
};
|
|
2858
2893
|
}
|
|
2859
|
-
}),
|
|
2894
|
+
}), bo = /* @__PURE__ */ c("span", null, "\xA0", -1), ko = /* @__PURE__ */ h({
|
|
2860
2895
|
__name: "MatrixHeaderRequired",
|
|
2861
2896
|
props: {
|
|
2862
2897
|
question: {},
|
|
@@ -2865,42 +2900,42 @@ const xn = /* @__PURE__ */ h({
|
|
|
2865
2900
|
setup(r) {
|
|
2866
2901
|
const s = r;
|
|
2867
2902
|
return L(() => s.column), (o, e) => o.column.isRenderedRequired ? (i(), u($, { key: 0 }, [
|
|
2868
|
-
|
|
2903
|
+
bo,
|
|
2869
2904
|
o.column.isRenderedRequired ? (i(), u("span", {
|
|
2870
2905
|
key: 0,
|
|
2871
2906
|
class: l(o.question.cssClasses.cellRequiredText)
|
|
2872
2907
|
}, R(o.column.requiredText), 3)) : d("", !0)
|
|
2873
2908
|
], 64)) : d("", !0);
|
|
2874
2909
|
}
|
|
2875
|
-
}),
|
|
2876
|
-
__name: "
|
|
2910
|
+
}), fo = ["data-responsive-title", "title", "colspan"], Io = /* @__PURE__ */ h({
|
|
2911
|
+
__name: "MatrixDropdownCellComp",
|
|
2877
2912
|
props: {
|
|
2878
2913
|
question: {},
|
|
2879
2914
|
cell: {}
|
|
2880
2915
|
},
|
|
2881
2916
|
setup(r) {
|
|
2882
|
-
const s = r, o = _(!1), e = _(), n = () => s.cell.headers, t = () => !!s.cell.width || !!s.cell.minWidth ? { width: s.cell.width, minWidth: s.cell.minWidth } : null, a = () => o.value = s.cell.question.isVisible, y = (g) =>
|
|
2917
|
+
const s = r, o = _(!1), e = _(), n = () => s.cell.headers, t = () => !!s.cell.width || !!s.cell.minWidth ? { width: s.cell.width, minWidth: s.cell.minWidth } : null, a = () => o.value = s.cell.question.isVisible, y = (g) => re(g);
|
|
2883
2918
|
H(() => {
|
|
2884
2919
|
if (!s.cell.hasQuestion || !s.question || !s.question.survey)
|
|
2885
2920
|
return;
|
|
2886
2921
|
a(), s.cell.question.registerPropertyChangedHandlers(["isVisible"], () => {
|
|
2887
2922
|
a();
|
|
2888
2923
|
});
|
|
2889
|
-
const g = e.value, I = s.cell.question,
|
|
2924
|
+
const g = e.value, I = s.cell.question, b = {
|
|
2890
2925
|
cell: s.cell.cell,
|
|
2891
2926
|
cellQuestion: I,
|
|
2892
2927
|
htmlElement: g,
|
|
2893
2928
|
row: s.cell.row,
|
|
2894
2929
|
column: s.cell.cell.column
|
|
2895
2930
|
};
|
|
2896
|
-
s.question.survey.matrixAfterCellRender(s.question,
|
|
2931
|
+
s.question.survey.matrixAfterCellRender(s.question, b), I && I.afterRenderCore(g);
|
|
2897
2932
|
});
|
|
2898
2933
|
const m = w(() => {
|
|
2899
2934
|
const g = s.cell;
|
|
2900
2935
|
if (g.hasPanel) {
|
|
2901
|
-
const I = g.panel,
|
|
2902
|
-
if (
|
|
2903
|
-
const N =
|
|
2936
|
+
const I = g.panel, b = I.survey;
|
|
2937
|
+
if (b) {
|
|
2938
|
+
const N = b.getElementWrapperComponentName(I);
|
|
2904
2939
|
if (N)
|
|
2905
2940
|
return N;
|
|
2906
2941
|
}
|
|
@@ -2908,9 +2943,9 @@ const xn = /* @__PURE__ */ h({
|
|
|
2908
2943
|
}
|
|
2909
2944
|
}), v = w(() => {
|
|
2910
2945
|
if (s.cell.hasPanel) {
|
|
2911
|
-
const I = s.cell.panel,
|
|
2946
|
+
const I = s.cell.panel, b = I.survey;
|
|
2912
2947
|
let N;
|
|
2913
|
-
return
|
|
2948
|
+
return b && (N = b.getElementWrapperComponentData(I)), {
|
|
2914
2949
|
componentName: "survey-panel",
|
|
2915
2950
|
componentData: {
|
|
2916
2951
|
element: I,
|
|
@@ -2921,18 +2956,18 @@ const xn = /* @__PURE__ */ h({
|
|
|
2921
2956
|
}
|
|
2922
2957
|
});
|
|
2923
2958
|
return (g, I) => {
|
|
2924
|
-
const
|
|
2959
|
+
const b = p("survey-errors"), N = p("sv-matrix-drag-drop-icon"), k = p("sv-action-bar"), D = p("survey-radiogroup-item"), E = p("survey-checkbox-item"), V = p("survey-other-choice"), K = p("survey-string");
|
|
2925
2960
|
return i(), u("td", {
|
|
2926
2961
|
class: l(g.cell.className),
|
|
2927
2962
|
"data-responsive-title": n(),
|
|
2928
2963
|
title: g.cell.getTitle(),
|
|
2929
2964
|
style: S(t()),
|
|
2930
2965
|
colspan: g.cell.colSpans,
|
|
2931
|
-
onFocusin: I[0] || (I[0] = (
|
|
2966
|
+
onFocusin: I[0] || (I[0] = (ue) => g.cell.focusIn()),
|
|
2932
2967
|
ref_key: "root",
|
|
2933
2968
|
ref: e
|
|
2934
2969
|
}, [
|
|
2935
|
-
g.cell.isErrorsCell ? (i(), q(
|
|
2970
|
+
g.cell.isErrorsCell ? (i(), q(b, {
|
|
2936
2971
|
key: 0,
|
|
2937
2972
|
element: g.cell.question
|
|
2938
2973
|
}, null, 8, ["element"])) : d("", !0),
|
|
@@ -2997,7 +3032,7 @@ const xn = /* @__PURE__ */ h({
|
|
|
2997
3032
|
componentData: g.question.getCellWrapperComponentData(g.cell)
|
|
2998
3033
|
}, {
|
|
2999
3034
|
default: O(() => [
|
|
3000
|
-
g.cell.hasTitle ? (i(), q(
|
|
3035
|
+
g.cell.hasTitle ? (i(), q(K, {
|
|
3001
3036
|
key: 0,
|
|
3002
3037
|
locString: g.cell.locTitle
|
|
3003
3038
|
}, null, 8, ["locString"])) : d("", !0),
|
|
@@ -3008,10 +3043,10 @@ const xn = /* @__PURE__ */ h({
|
|
|
3008
3043
|
]),
|
|
3009
3044
|
_: 1
|
|
3010
3045
|
}, 8, ["componentData"])) : d("", !0)
|
|
3011
|
-
], 46,
|
|
3046
|
+
], 46, fo);
|
|
3012
3047
|
};
|
|
3013
3048
|
}
|
|
3014
|
-
}),
|
|
3049
|
+
}), wo = /* @__PURE__ */ h({
|
|
3015
3050
|
inheritAttrs: !1,
|
|
3016
3051
|
__name: "MatrixDynamic",
|
|
3017
3052
|
props: {
|
|
@@ -3038,7 +3073,7 @@ const xn = /* @__PURE__ */ h({
|
|
|
3038
3073
|
class: l(n.question.getAddRowButtonCss()),
|
|
3039
3074
|
onClick: e
|
|
3040
3075
|
}, [
|
|
3041
|
-
|
|
3076
|
+
C(a, {
|
|
3042
3077
|
locString: n.question.locAddRowText
|
|
3043
3078
|
}, null, 8, ["locString"]),
|
|
3044
3079
|
c("span", {
|
|
@@ -3057,7 +3092,7 @@ const xn = /* @__PURE__ */ h({
|
|
|
3057
3092
|
c("div", {
|
|
3058
3093
|
class: l(n.question.cssClasses.emptyRowsText)
|
|
3059
3094
|
}, [
|
|
3060
|
-
|
|
3095
|
+
C(a, {
|
|
3061
3096
|
locString: n.question.locEmptyRowsText
|
|
3062
3097
|
}, null, 8, ["locString"])
|
|
3063
3098
|
], 2),
|
|
@@ -3067,7 +3102,7 @@ const xn = /* @__PURE__ */ h({
|
|
|
3067
3102
|
class: l(n.question.getAddRowButtonCss(!0)),
|
|
3068
3103
|
onClick: e
|
|
3069
3104
|
}, [
|
|
3070
|
-
|
|
3105
|
+
C(a, {
|
|
3071
3106
|
locString: n.question.locAddRowText
|
|
3072
3107
|
}, null, 8, ["locString"]),
|
|
3073
3108
|
c("span", {
|
|
@@ -3084,7 +3119,7 @@ const xn = /* @__PURE__ */ h({
|
|
|
3084
3119
|
class: l(n.question.getAddRowButtonCss()),
|
|
3085
3120
|
onClick: e
|
|
3086
3121
|
}, [
|
|
3087
|
-
|
|
3122
|
+
C(a, {
|
|
3088
3123
|
locString: n.question.locAddRowText
|
|
3089
3124
|
}, null, 8, ["locString"]),
|
|
3090
3125
|
c("span", {
|
|
@@ -3096,19 +3131,19 @@ const xn = /* @__PURE__ */ h({
|
|
|
3096
3131
|
};
|
|
3097
3132
|
}
|
|
3098
3133
|
});
|
|
3099
|
-
function
|
|
3134
|
+
function ae(r, s = !0) {
|
|
3100
3135
|
return {
|
|
3101
3136
|
question: w(() => r.item.data.question),
|
|
3102
3137
|
row: s ? w(() => r.item.data.row) : void 0
|
|
3103
3138
|
};
|
|
3104
3139
|
}
|
|
3105
|
-
const
|
|
3140
|
+
const So = ["disabled"], Ro = /* @__PURE__ */ h({
|
|
3106
3141
|
__name: "RemoveButton",
|
|
3107
3142
|
props: {
|
|
3108
3143
|
item: {}
|
|
3109
3144
|
},
|
|
3110
3145
|
setup(r) {
|
|
3111
|
-
const s = r, { question: o, row: e } =
|
|
3146
|
+
const s = r, { question: o, row: e } = ae(s);
|
|
3112
3147
|
return (n, t) => {
|
|
3113
3148
|
const a = p("survey-string");
|
|
3114
3149
|
return i(), u("button", {
|
|
@@ -3117,41 +3152,41 @@ const fo = ["disabled"], Io = /* @__PURE__ */ h({
|
|
|
3117
3152
|
disabled: f(o).isInputReadOnly,
|
|
3118
3153
|
onClick: t[0] || (t[0] = () => f(o).removeRowUI(f(e)))
|
|
3119
3154
|
}, [
|
|
3120
|
-
|
|
3155
|
+
C(a, {
|
|
3121
3156
|
locString: f(o).locRemoveRowText
|
|
3122
3157
|
}, null, 8, ["locString"]),
|
|
3123
3158
|
c("span", {
|
|
3124
3159
|
class: l(f(o).cssClasses.iconRemove)
|
|
3125
3160
|
}, null, 2)
|
|
3126
|
-
], 10,
|
|
3161
|
+
], 10, So);
|
|
3127
3162
|
};
|
|
3128
3163
|
}
|
|
3129
|
-
}),
|
|
3164
|
+
}), To = ["xlink:href"], $o = /* @__PURE__ */ h({
|
|
3130
3165
|
__name: "DragDropIcon",
|
|
3131
3166
|
props: {
|
|
3132
3167
|
item: {}
|
|
3133
3168
|
},
|
|
3134
3169
|
setup(r) {
|
|
3135
|
-
const s = r, { question: o } =
|
|
3170
|
+
const s = r, { question: o } = ae(s, !1);
|
|
3136
3171
|
return (e, n) => f(o).iconDragElement ? (i(), u("svg", {
|
|
3137
3172
|
key: 0,
|
|
3138
3173
|
class: l(f(o).cssClasses.dragElementDecorator)
|
|
3139
3174
|
}, [
|
|
3140
3175
|
c("use", {
|
|
3141
3176
|
"xlink:href": f(o).iconDragElement
|
|
3142
|
-
}, null, 8,
|
|
3177
|
+
}, null, 8, To)
|
|
3143
3178
|
], 2)) : (i(), u("span", {
|
|
3144
3179
|
key: 1,
|
|
3145
3180
|
class: l(f(o).cssClasses.iconDrag)
|
|
3146
3181
|
}, null, 2));
|
|
3147
3182
|
}
|
|
3148
|
-
}),
|
|
3183
|
+
}), _o = ["aria-expanded", "aria-controls"], Do = /* @__PURE__ */ h({
|
|
3149
3184
|
__name: "DetailButton",
|
|
3150
3185
|
props: {
|
|
3151
3186
|
item: {}
|
|
3152
3187
|
},
|
|
3153
3188
|
setup(r) {
|
|
3154
|
-
const s = r, { question: o, row: e } =
|
|
3189
|
+
const s = r, { question: o, row: e } = ae(s);
|
|
3155
3190
|
return (n, t) => {
|
|
3156
3191
|
const a = p("sv-svg-icon");
|
|
3157
3192
|
return i(), u("button", {
|
|
@@ -3161,15 +3196,15 @@ const fo = ["disabled"], Io = /* @__PURE__ */ h({
|
|
|
3161
3196
|
"aria-expanded": f(o).getIsDetailPanelShowing(f(e)) ? "true" : "false",
|
|
3162
3197
|
"aria-controls": f(o).getIsDetailPanelShowing(f(e)) ? f(e).detailPanelId : null
|
|
3163
3198
|
}, [
|
|
3164
|
-
|
|
3199
|
+
C(a, {
|
|
3165
3200
|
class: l(f(o).getDetailPanelIconCss(f(e))),
|
|
3166
3201
|
iconName: f(o).getDetailPanelIconId(f(e)),
|
|
3167
3202
|
size: "auto"
|
|
3168
3203
|
}, null, 8, ["class", "iconName"])
|
|
3169
|
-
], 10,
|
|
3204
|
+
], 10, _o);
|
|
3170
3205
|
};
|
|
3171
3206
|
}
|
|
3172
|
-
}),
|
|
3207
|
+
}), Bo = /* @__PURE__ */ h({
|
|
3173
3208
|
inheritAttrs: !1,
|
|
3174
3209
|
__name: "PanelDynamic",
|
|
3175
3210
|
props: {
|
|
@@ -3177,7 +3212,7 @@ const fo = ["disabled"], Io = /* @__PURE__ */ h({
|
|
|
3177
3212
|
css: {}
|
|
3178
3213
|
},
|
|
3179
3214
|
setup(r) {
|
|
3180
|
-
const s = r, o = _(null), e =
|
|
3215
|
+
const s = r, o = _(null), e = ie();
|
|
3181
3216
|
A(
|
|
3182
3217
|
s,
|
|
3183
3218
|
o,
|
|
@@ -3225,7 +3260,7 @@ const fo = ["disabled"], Io = /* @__PURE__ */ h({
|
|
|
3225
3260
|
};
|
|
3226
3261
|
};
|
|
3227
3262
|
return (m, v) => {
|
|
3228
|
-
const g = p("survey-string"), I = p("sv-paneldynamic-add-btn"),
|
|
3263
|
+
const g = p("survey-string"), I = p("sv-paneldynamic-add-btn"), b = p("survey-paneldynamicprogress"), N = p("sv-paneldynamic-remove-btn"), k = p("survey-paneldynamicprogress-v2");
|
|
3229
3264
|
return i(), u("div", {
|
|
3230
3265
|
class: l(m.question.cssClasses.root),
|
|
3231
3266
|
ref_key: "root",
|
|
@@ -3236,11 +3271,11 @@ const fo = ["disabled"], Io = /* @__PURE__ */ h({
|
|
|
3236
3271
|
class: l(m.question.cssClasses.noEntriesPlaceholder)
|
|
3237
3272
|
}, [
|
|
3238
3273
|
c("span", null, [
|
|
3239
|
-
|
|
3274
|
+
C(g, {
|
|
3240
3275
|
locString: m.question.locNoEntriesText
|
|
3241
3276
|
}, null, 8, ["locString"])
|
|
3242
3277
|
]),
|
|
3243
|
-
|
|
3278
|
+
C(I, {
|
|
3244
3279
|
data: { question: m.question }
|
|
3245
3280
|
}, null, 8, ["data"])
|
|
3246
3281
|
], 2)) : d("", !0),
|
|
@@ -3254,7 +3289,7 @@ const fo = ["disabled"], Io = /* @__PURE__ */ h({
|
|
|
3254
3289
|
role: "progressbar"
|
|
3255
3290
|
}, null, 6)
|
|
3256
3291
|
], 2)) : d("", !0),
|
|
3257
|
-
t() && m.question.isProgressTopShowing ? (i(), q(
|
|
3292
|
+
t() && m.question.isProgressTopShowing ? (i(), q(b, {
|
|
3258
3293
|
key: 2,
|
|
3259
3294
|
question: m.question
|
|
3260
3295
|
}, null, 8, ["question"])) : d("", !0),
|
|
@@ -3264,7 +3299,7 @@ const fo = ["disabled"], Io = /* @__PURE__ */ h({
|
|
|
3264
3299
|
c("div", {
|
|
3265
3300
|
class: l(m.question.getPanelWrapperCss())
|
|
3266
3301
|
}, [
|
|
3267
|
-
(i(), q(T(a(D)), F(
|
|
3302
|
+
(i(), q(T(a(D)), F(oe(y(D))), null, 16)),
|
|
3268
3303
|
m.question.panelRemoveButtonLocation === "right" && m.question.canRemovePanel && D.state !== "collapsed" ? (i(), q(N, {
|
|
3269
3304
|
key: 0,
|
|
3270
3305
|
data: { question: m.question, panel: D }
|
|
@@ -3275,7 +3310,7 @@ const fo = ["disabled"], Io = /* @__PURE__ */ h({
|
|
|
3275
3310
|
key: "separator" + D.id
|
|
3276
3311
|
}, null, 2)) : d("", !0)
|
|
3277
3312
|
], 64))), 128)),
|
|
3278
|
-
t() && m.question.isProgressBottomShowing ? (i(), q(
|
|
3313
|
+
t() && m.question.isProgressBottomShowing ? (i(), q(b, {
|
|
3279
3314
|
key: 3,
|
|
3280
3315
|
question: m.question
|
|
3281
3316
|
}, null, 8, ["question"])) : d("", !0),
|
|
@@ -3290,7 +3325,7 @@ const fo = ["disabled"], Io = /* @__PURE__ */ h({
|
|
|
3290
3325
|
], 2);
|
|
3291
3326
|
};
|
|
3292
3327
|
}
|
|
3293
|
-
}),
|
|
3328
|
+
}), Lo = /* @__PURE__ */ h({
|
|
3294
3329
|
__name: "PanelDynamicProgress",
|
|
3295
3330
|
props: {
|
|
3296
3331
|
question: {}
|
|
@@ -3309,7 +3344,7 @@ const fo = ["disabled"], Io = /* @__PURE__ */ h({
|
|
|
3309
3344
|
c("div", {
|
|
3310
3345
|
class: l(e.question.cssClasses.progressContainer)
|
|
3311
3346
|
}, [
|
|
3312
|
-
|
|
3347
|
+
C(t, {
|
|
3313
3348
|
data: { question: e.question }
|
|
3314
3349
|
}, null, 8, ["data"]),
|
|
3315
3350
|
e.question.isRangeShowing ? (i(), u("div", {
|
|
@@ -3322,21 +3357,21 @@ const fo = ["disabled"], Io = /* @__PURE__ */ h({
|
|
|
3322
3357
|
role: "progressbar"
|
|
3323
3358
|
}, null, 6)
|
|
3324
3359
|
], 2)) : d("", !0),
|
|
3325
|
-
|
|
3360
|
+
C(a, {
|
|
3326
3361
|
data: { question: e.question }
|
|
3327
3362
|
}, null, 8, ["data"])
|
|
3328
3363
|
], 2),
|
|
3329
|
-
|
|
3364
|
+
C(y, {
|
|
3330
3365
|
data: { question: e.question }
|
|
3331
3366
|
}, null, 8, ["data"]),
|
|
3332
|
-
|
|
3367
|
+
C(m, {
|
|
3333
3368
|
data: { question: e.question }
|
|
3334
3369
|
}, null, 8, ["data"])
|
|
3335
3370
|
], 2)
|
|
3336
3371
|
], 2);
|
|
3337
3372
|
};
|
|
3338
3373
|
}
|
|
3339
|
-
}),
|
|
3374
|
+
}), No = /* @__PURE__ */ h({
|
|
3340
3375
|
__name: "PanelDynamicProgressV2",
|
|
3341
3376
|
props: {
|
|
3342
3377
|
question: {}
|
|
@@ -3365,7 +3400,7 @@ const fo = ["disabled"], Io = /* @__PURE__ */ h({
|
|
|
3365
3400
|
key: 1,
|
|
3366
3401
|
class: l(s.question.cssClasses.footerButtonsContainer)
|
|
3367
3402
|
}, [
|
|
3368
|
-
|
|
3403
|
+
C(e, {
|
|
3369
3404
|
model: s.question.footerToolbar
|
|
3370
3405
|
}, null, 8, ["model"])
|
|
3371
3406
|
], 2)) : d("", !0)
|
|
@@ -3378,7 +3413,7 @@ function Y(r) {
|
|
|
3378
3413
|
() => r.item && r.item.data.question || r.data.question
|
|
3379
3414
|
);
|
|
3380
3415
|
}
|
|
3381
|
-
const
|
|
3416
|
+
const Po = /* @__PURE__ */ h({
|
|
3382
3417
|
__name: "PaneldynamicAddBtn",
|
|
3383
3418
|
props: {
|
|
3384
3419
|
item: {},
|
|
@@ -3399,7 +3434,7 @@ const Bo = /* @__PURE__ */ h({
|
|
|
3399
3434
|
}, R(f(o).panelAddText), 3)
|
|
3400
3435
|
], 2)) : d("", !0);
|
|
3401
3436
|
}
|
|
3402
|
-
}),
|
|
3437
|
+
}), Ao = ["title"], Mo = /* @__PURE__ */ h({
|
|
3403
3438
|
__name: "PaneldynamicNextBtn",
|
|
3404
3439
|
props: {
|
|
3405
3440
|
item: {},
|
|
@@ -3416,14 +3451,14 @@ const Bo = /* @__PURE__ */ h({
|
|
|
3416
3451
|
onClick: e,
|
|
3417
3452
|
class: l(f(o).getNextButtonCss())
|
|
3418
3453
|
}, [
|
|
3419
|
-
|
|
3454
|
+
C(a, {
|
|
3420
3455
|
iconName: f(o).cssClasses.progressBtnIcon,
|
|
3421
3456
|
size: "auto"
|
|
3422
3457
|
}, null, 8, ["iconName"])
|
|
3423
|
-
], 10,
|
|
3458
|
+
], 10, Ao);
|
|
3424
3459
|
};
|
|
3425
3460
|
}
|
|
3426
|
-
}),
|
|
3461
|
+
}), Ho = ["title"], Wo = /* @__PURE__ */ h({
|
|
3427
3462
|
__name: "PaneldynamicPrevBtn",
|
|
3428
3463
|
props: {
|
|
3429
3464
|
item: {},
|
|
@@ -3440,14 +3475,14 @@ const Bo = /* @__PURE__ */ h({
|
|
|
3440
3475
|
onClick: e,
|
|
3441
3476
|
class: l(f(o).getPrevButtonCss())
|
|
3442
3477
|
}, [
|
|
3443
|
-
|
|
3478
|
+
C(a, {
|
|
3444
3479
|
iconName: f(o).cssClasses.progressBtnIcon,
|
|
3445
3480
|
size: "auto"
|
|
3446
3481
|
}, null, 8, ["iconName"])
|
|
3447
|
-
], 10,
|
|
3482
|
+
], 10, Ho);
|
|
3448
3483
|
};
|
|
3449
3484
|
}
|
|
3450
|
-
}),
|
|
3485
|
+
}), Eo = /* @__PURE__ */ h({
|
|
3451
3486
|
__name: "PaneldynamicRemoveBtn",
|
|
3452
3487
|
props: {
|
|
3453
3488
|
item: {},
|
|
@@ -3472,7 +3507,7 @@ const Bo = /* @__PURE__ */ h({
|
|
|
3472
3507
|
}, null, 2)
|
|
3473
3508
|
], 2));
|
|
3474
3509
|
}
|
|
3475
|
-
}),
|
|
3510
|
+
}), Vo = /* @__PURE__ */ h({
|
|
3476
3511
|
__name: "PaneldynamicProgressText",
|
|
3477
3512
|
props: {
|
|
3478
3513
|
item: {},
|
|
@@ -3484,7 +3519,7 @@ const Bo = /* @__PURE__ */ h({
|
|
|
3484
3519
|
class: l(f(o).cssClasses.progressText)
|
|
3485
3520
|
}, R(f(o).progressText), 3));
|
|
3486
3521
|
}
|
|
3487
|
-
}),
|
|
3522
|
+
}), Oo = ["id"], Fo = /* @__PURE__ */ h({
|
|
3488
3523
|
__name: "Errors",
|
|
3489
3524
|
props: {
|
|
3490
3525
|
element: {},
|
|
@@ -3517,21 +3552,21 @@ const Bo = /* @__PURE__ */ h({
|
|
|
3517
3552
|
o.element.cssClasses ? o.element.cssClasses.error.item || void 0 : "panel-error-item"
|
|
3518
3553
|
)
|
|
3519
3554
|
}, [
|
|
3520
|
-
|
|
3555
|
+
C(n, {
|
|
3521
3556
|
locString: t.locText
|
|
3522
3557
|
}, null, 8, ["locString"])
|
|
3523
3558
|
], 2)
|
|
3524
3559
|
]))), 128))
|
|
3525
|
-
], 10,
|
|
3560
|
+
], 10, Oo)) : d("", !0);
|
|
3526
3561
|
};
|
|
3527
3562
|
}
|
|
3528
|
-
}),
|
|
3563
|
+
}), zo = { key: 0 }, Uo = ["id", "readonly", "disabled", "value", "maxlength", "placeholder", "aria-label", "aria-required"], Ko = /* @__PURE__ */ h({
|
|
3529
3564
|
__name: "QuestionComment",
|
|
3530
3565
|
props: {
|
|
3531
3566
|
question: {}
|
|
3532
3567
|
},
|
|
3533
3568
|
setup(r) {
|
|
3534
|
-
return (s, o) => s.question.isReadOnlyRenderDiv() ? (i(), u("div",
|
|
3569
|
+
return (s, o) => s.question.isReadOnlyRenderDiv() ? (i(), u("div", zo, R(s.question.comment), 1)) : (i(), u("textarea", {
|
|
3535
3570
|
key: 1,
|
|
3536
3571
|
id: s.question.commentId,
|
|
3537
3572
|
readonly: s.question.isInputReadOnly,
|
|
@@ -3549,9 +3584,9 @@ const Bo = /* @__PURE__ */ h({
|
|
|
3549
3584
|
onInput: o[1] || (o[1] = (e) => {
|
|
3550
3585
|
s.question.onCommentInput(e);
|
|
3551
3586
|
})
|
|
3552
|
-
}, null, 46,
|
|
3587
|
+
}, null, 46, Uo));
|
|
3553
3588
|
}
|
|
3554
|
-
}),
|
|
3589
|
+
}), jo = /* @__PURE__ */ h({
|
|
3555
3590
|
__name: "TitleElement",
|
|
3556
3591
|
props: {
|
|
3557
3592
|
element: {},
|
|
@@ -3559,7 +3594,7 @@ const Bo = /* @__PURE__ */ h({
|
|
|
3559
3594
|
},
|
|
3560
3595
|
setup(r) {
|
|
3561
3596
|
const s = (o) => {
|
|
3562
|
-
|
|
3597
|
+
ge(o);
|
|
3563
3598
|
};
|
|
3564
3599
|
return (o, e) => {
|
|
3565
3600
|
const n = p("survey-element-title-content"), t = p("sv-title-actions");
|
|
@@ -3591,7 +3626,7 @@ const Bo = /* @__PURE__ */ h({
|
|
|
3591
3626
|
}, 40, ["class", "aria-label", "id", "tabindex", "aria-expanded", "role"])) : d("", !0);
|
|
3592
3627
|
};
|
|
3593
3628
|
}
|
|
3594
|
-
}),
|
|
3629
|
+
}), Qo = { key: 3 }, Go = { key: 5 }, Jo = { key: 7 }, Xo = /* @__PURE__ */ h({
|
|
3595
3630
|
inheritAttrs: !1,
|
|
3596
3631
|
__name: "TitleContent",
|
|
3597
3632
|
props: {
|
|
@@ -3617,18 +3652,18 @@ const Bo = /* @__PURE__ */ h({
|
|
|
3617
3652
|
class: l(s.element.cssTitleNumber),
|
|
3618
3653
|
"aria-hidden": !0
|
|
3619
3654
|
}, R(s.element.no), 3)) : d("", !0),
|
|
3620
|
-
!s.element.isTitleRenderedAsString && s.element.no ? (i(), u("span",
|
|
3655
|
+
!s.element.isTitleRenderedAsString && s.element.no ? (i(), u("span", Qo, "\xA0")) : d("", !0),
|
|
3621
3656
|
!s.element.isTitleRenderedAsString && s.element.isRequireTextBeforeTitle ? (i(), u("span", {
|
|
3622
3657
|
key: 4,
|
|
3623
3658
|
class: l(s.element.cssClasses.requiredText),
|
|
3624
3659
|
"aria-hidden": !0
|
|
3625
3660
|
}, R(s.element.requiredText), 3)) : d("", !0),
|
|
3626
|
-
!s.element.isTitleRenderedAsString && s.element.isRequireTextBeforeTitle ? (i(), u("span",
|
|
3661
|
+
!s.element.isTitleRenderedAsString && s.element.isRequireTextBeforeTitle ? (i(), u("span", Go, "\xA0")) : d("", !0),
|
|
3627
3662
|
s.element.isTitleRenderedAsString ? d("", !0) : (i(), q(e, {
|
|
3628
3663
|
key: 6,
|
|
3629
3664
|
locString: s.element.locTitle
|
|
3630
3665
|
}, null, 8, ["locString"])),
|
|
3631
|
-
!s.element.isTitleRenderedAsString && s.element.isRequireTextAfterTitle ? (i(), u("span",
|
|
3666
|
+
!s.element.isTitleRenderedAsString && s.element.isRequireTextAfterTitle ? (i(), u("span", Jo, "\xA0")) : d("", !0),
|
|
3632
3667
|
!s.element.isTitleRenderedAsString && s.element.isRequireTextAfterTitle ? (i(), u("span", {
|
|
3633
3668
|
key: 8,
|
|
3634
3669
|
class: l(s.element.cssClasses.requiredText),
|
|
@@ -3637,7 +3672,7 @@ const Bo = /* @__PURE__ */ h({
|
|
|
3637
3672
|
], 64);
|
|
3638
3673
|
};
|
|
3639
3674
|
}
|
|
3640
|
-
}),
|
|
3675
|
+
}), Yo = { class: "sv-title-actions" }, Zo = { class: "sv-title-actions__title" }, xo = /* @__PURE__ */ h({
|
|
3641
3676
|
__name: "TitleActions",
|
|
3642
3677
|
props: {
|
|
3643
3678
|
element: {},
|
|
@@ -3647,8 +3682,8 @@ const Bo = /* @__PURE__ */ h({
|
|
|
3647
3682
|
const s = r, o = w(() => s.element.getTitleToolbar());
|
|
3648
3683
|
return (e, n) => {
|
|
3649
3684
|
const t = p("survey-string"), a = p("survey-element-title-content"), y = p("sv-action-bar");
|
|
3650
|
-
return i(), u("div",
|
|
3651
|
-
c("span",
|
|
3685
|
+
return i(), u("div", Yo, [
|
|
3686
|
+
c("span", Zo, [
|
|
3652
3687
|
e.element.isPage ? (i(), q(t, {
|
|
3653
3688
|
key: 0,
|
|
3654
3689
|
locString: e.element.locTitle
|
|
@@ -3659,24 +3694,24 @@ const Bo = /* @__PURE__ */ h({
|
|
|
3659
3694
|
css: e.css
|
|
3660
3695
|
}, null, 8, ["element", "css"]))
|
|
3661
3696
|
]),
|
|
3662
|
-
|
|
3697
|
+
C(y, { model: o.value }, null, 8, ["model"])
|
|
3663
3698
|
]);
|
|
3664
3699
|
};
|
|
3665
3700
|
}
|
|
3666
|
-
}),
|
|
3701
|
+
}), Ce = (r, s) => {
|
|
3667
3702
|
const o = r.__vccOpts || r;
|
|
3668
3703
|
for (const [e, n] of s)
|
|
3669
3704
|
o[e] = n;
|
|
3670
3705
|
return o;
|
|
3671
|
-
},
|
|
3672
|
-
|
|
3706
|
+
}, et = {}, st = { class: "sv-brand-info" }, nt = /* @__PURE__ */ Se('<a class="sv-brand-info__logo" href="https://surveyjs.io/?utm_source=built-in_links&utm_medium=online_survey_tool&utm_campaign=landing_page"><img src="https://surveyjs.io/Content/Images/poweredby.svg"></a><div class="sv-brand-info__text"> Try and see how easy it is to <a href="https://surveyjs.io/create-survey?utm_source=built-in_links&utm_medium=online_survey_tool&utm_campaign=create_survey">create a survey</a></div><div class="sv-brand-info__terms"><a href="https://surveyjs.io/TermsOfUse">Terms of Use & Privacy Statement</a></div>', 3), ot = [
|
|
3707
|
+
nt
|
|
3673
3708
|
];
|
|
3674
|
-
function
|
|
3675
|
-
return i(), u("div",
|
|
3709
|
+
function tt(r, s) {
|
|
3710
|
+
return i(), u("div", st, ot);
|
|
3676
3711
|
}
|
|
3677
|
-
const
|
|
3678
|
-
|
|
3679
|
-
],
|
|
3712
|
+
const it = /* @__PURE__ */ Ce(et, [["render", tt]]), rt = /* @__PURE__ */ c("use", null, null, -1), lt = [
|
|
3713
|
+
rt
|
|
3714
|
+
], at = /* @__PURE__ */ h({
|
|
3680
3715
|
__name: "SvgIcon",
|
|
3681
3716
|
props: {
|
|
3682
3717
|
size: {},
|
|
@@ -3687,7 +3722,7 @@ const nt = /* @__PURE__ */ he(Yo, [["render", st]]), ot = /* @__PURE__ */ c("use
|
|
|
3687
3722
|
},
|
|
3688
3723
|
setup(r) {
|
|
3689
3724
|
const s = r, o = _(), e = () => {
|
|
3690
|
-
|
|
3725
|
+
Pe(
|
|
3691
3726
|
s.size,
|
|
3692
3727
|
s.width,
|
|
3693
3728
|
s.height,
|
|
@@ -3705,9 +3740,9 @@ const nt = /* @__PURE__ */ he(Yo, [["render", st]]), ot = /* @__PURE__ */ c("use
|
|
|
3705
3740
|
ref: o,
|
|
3706
3741
|
class: "sv-svg-icon",
|
|
3707
3742
|
role: "img"
|
|
3708
|
-
},
|
|
3743
|
+
}, lt, 512));
|
|
3709
3744
|
}
|
|
3710
|
-
}),
|
|
3745
|
+
}), ut = /* @__PURE__ */ h({
|
|
3711
3746
|
__name: "ActionBar",
|
|
3712
3747
|
props: {
|
|
3713
3748
|
model: {},
|
|
@@ -3719,10 +3754,10 @@ const nt = /* @__PURE__ */ he(Yo, [["render", st]]), ot = /* @__PURE__ */ c("use
|
|
|
3719
3754
|
s.handleClick && t.stopPropagation();
|
|
3720
3755
|
};
|
|
3721
3756
|
L(() => s.model);
|
|
3722
|
-
const n =
|
|
3757
|
+
const n = le(() => s.model.renderedActions);
|
|
3723
3758
|
return H(() => {
|
|
3724
3759
|
!s.model.hasActions || s.model.initResponsivityManager(o.value);
|
|
3725
|
-
}),
|
|
3760
|
+
}), U(() => {
|
|
3726
3761
|
s.model.resetResponsivityManager();
|
|
3727
3762
|
}), (t, a) => {
|
|
3728
3763
|
const y = p("sv-action");
|
|
@@ -3733,14 +3768,14 @@ const nt = /* @__PURE__ */ he(Yo, [["render", st]]), ot = /* @__PURE__ */ c("use
|
|
|
3733
3768
|
class: l(t.model.getRootCss()),
|
|
3734
3769
|
onClick: e
|
|
3735
3770
|
}, [
|
|
3736
|
-
(i(!0), u($, null, B(n
|
|
3771
|
+
(i(!0), u($, null, B(f(n), (m) => (i(), q(y, {
|
|
3737
3772
|
key: m.id,
|
|
3738
3773
|
item: m
|
|
3739
3774
|
}, null, 8, ["item"]))), 128))
|
|
3740
3775
|
], 2)) : d("", !0);
|
|
3741
3776
|
};
|
|
3742
3777
|
}
|
|
3743
|
-
}),
|
|
3778
|
+
}), dt = ["id"], mt = { class: "sv-action__content" }, ct = /* @__PURE__ */ h({
|
|
3744
3779
|
__name: "Action",
|
|
3745
3780
|
props: {
|
|
3746
3781
|
item: {}
|
|
@@ -3755,17 +3790,17 @@ const nt = /* @__PURE__ */ he(Yo, [["render", st]]), ot = /* @__PURE__ */ c("use
|
|
|
3755
3790
|
class: l(e.item.getActionRootCss()),
|
|
3756
3791
|
id: e.item.id
|
|
3757
3792
|
}, [
|
|
3758
|
-
c("div",
|
|
3793
|
+
c("div", mt, [
|
|
3759
3794
|
e.item.needSeparator ? (i(), q(t, { key: 0 })) : d("", !0),
|
|
3760
3795
|
(i(), q(T(o.value), { item: e.item }, null, 8, ["item"]))
|
|
3761
3796
|
])
|
|
3762
|
-
], 10,
|
|
3797
|
+
], 10, dt);
|
|
3763
3798
|
};
|
|
3764
3799
|
}
|
|
3765
|
-
}),
|
|
3800
|
+
}), pt = ["disabled", "title", "aria-checked", "aria-expanded", "role"], vt = {
|
|
3766
3801
|
inheritAttrs: !1
|
|
3767
|
-
},
|
|
3768
|
-
...
|
|
3802
|
+
}, yt = /* @__PURE__ */ h({
|
|
3803
|
+
...vt,
|
|
3769
3804
|
__name: "ActionBarItem",
|
|
3770
3805
|
props: {
|
|
3771
3806
|
item: {}
|
|
@@ -3800,26 +3835,26 @@ const nt = /* @__PURE__ */ he(Yo, [["render", st]]), ot = /* @__PURE__ */ c("use
|
|
|
3800
3835
|
key: 1,
|
|
3801
3836
|
class: l(o.item.getActionBarItemTitleCss())
|
|
3802
3837
|
}, R(o.item.title), 3)) : d("", !0)
|
|
3803
|
-
], 42,
|
|
3838
|
+
], 42, pt)), [
|
|
3804
3839
|
[t, { processEsc: !1, disableTabStop: o.item.disableTabStop }]
|
|
3805
3840
|
]);
|
|
3806
3841
|
};
|
|
3807
3842
|
}
|
|
3808
|
-
}),
|
|
3843
|
+
}), qt = ["disabled", "title", "role"], gt = {
|
|
3809
3844
|
inheritAttrs: !1
|
|
3810
|
-
},
|
|
3811
|
-
...
|
|
3845
|
+
}, ht = /* @__PURE__ */ h({
|
|
3846
|
+
...gt,
|
|
3812
3847
|
__name: "ActionBarItemDropdown",
|
|
3813
3848
|
props: {
|
|
3814
3849
|
item: {}
|
|
3815
3850
|
},
|
|
3816
3851
|
setup(r) {
|
|
3817
|
-
const s = r, o =
|
|
3852
|
+
const s = r, o = Me;
|
|
3818
3853
|
let e;
|
|
3819
3854
|
return L(
|
|
3820
3855
|
() => s.item,
|
|
3821
3856
|
(n) => {
|
|
3822
|
-
e = new
|
|
3857
|
+
e = new Ae(n);
|
|
3823
3858
|
},
|
|
3824
3859
|
() => {
|
|
3825
3860
|
e.dispose();
|
|
@@ -3851,17 +3886,17 @@ const nt = /* @__PURE__ */ he(Yo, [["render", st]]), ot = /* @__PURE__ */ c("use
|
|
|
3851
3886
|
key: 1,
|
|
3852
3887
|
class: l(n.item.getActionBarItemTitleCss())
|
|
3853
3888
|
}, R(n.item.title), 3)) : d("", !0)
|
|
3854
|
-
], 42,
|
|
3889
|
+
], 42, qt)), [
|
|
3855
3890
|
[m, { processEsc: !1, disableTabStop: n.item.disableTabStop }]
|
|
3856
3891
|
]),
|
|
3857
|
-
|
|
3892
|
+
C(y, {
|
|
3858
3893
|
model: n.item.popupModel,
|
|
3859
3894
|
getTarget: f(o)
|
|
3860
3895
|
}, null, 8, ["model", "getTarget"])
|
|
3861
3896
|
], 64);
|
|
3862
3897
|
};
|
|
3863
3898
|
}
|
|
3864
|
-
}),
|
|
3899
|
+
}), Ct = /* @__PURE__ */ h({
|
|
3865
3900
|
__name: "ActionBarSeparator",
|
|
3866
3901
|
props: {
|
|
3867
3902
|
item: {}
|
|
@@ -3872,7 +3907,7 @@ const nt = /* @__PURE__ */ he(Yo, [["render", st]]), ot = /* @__PURE__ */ c("use
|
|
|
3872
3907
|
class: l(["sv-action-bar-separator", o.value])
|
|
3873
3908
|
}, null, 2));
|
|
3874
3909
|
}
|
|
3875
|
-
}),
|
|
3910
|
+
}), bt = ["aria-label", "placeholder", "value"], kt = ["aria-label"], ft = ["id"], It = /* @__PURE__ */ h({
|
|
3876
3911
|
__name: "List",
|
|
3877
3912
|
props: {
|
|
3878
3913
|
model: {}
|
|
@@ -3903,7 +3938,7 @@ const nt = /* @__PURE__ */ he(Yo, [["render", st]]), ot = /* @__PURE__ */ c("use
|
|
|
3903
3938
|
c("div", {
|
|
3904
3939
|
class: l(a.model.cssClasses.filterIcon)
|
|
3905
3940
|
}, [
|
|
3906
|
-
|
|
3941
|
+
C(m, {
|
|
3907
3942
|
iconName: "icon-search",
|
|
3908
3943
|
size: "auto"
|
|
3909
3944
|
})
|
|
@@ -3916,7 +3951,7 @@ const nt = /* @__PURE__ */ he(Yo, [["render", st]]), ot = /* @__PURE__ */ c("use
|
|
|
3916
3951
|
value: a.model.filterString,
|
|
3917
3952
|
onChange: e,
|
|
3918
3953
|
onKeyup: n
|
|
3919
|
-
}, null, 42,
|
|
3954
|
+
}, null, 42, bt),
|
|
3920
3955
|
a.model.showSearchClearButton && !!a.model.filterString ? (i(), u("button", {
|
|
3921
3956
|
key: 0,
|
|
3922
3957
|
onClick: y[0] || (y[0] = (g) => {
|
|
@@ -3924,7 +3959,7 @@ const nt = /* @__PURE__ */ he(Yo, [["render", st]]), ot = /* @__PURE__ */ c("use
|
|
|
3924
3959
|
}),
|
|
3925
3960
|
class: l(a.model.cssClasses.searchClearButtonIcon)
|
|
3926
3961
|
}, [
|
|
3927
|
-
|
|
3962
|
+
C(m, {
|
|
3928
3963
|
iconName: "icon-searchclear",
|
|
3929
3964
|
size: "auto"
|
|
3930
3965
|
})
|
|
@@ -3936,7 +3971,7 @@ const nt = /* @__PURE__ */ he(Yo, [["render", st]]), ot = /* @__PURE__ */ c("use
|
|
|
3936
3971
|
c("div", {
|
|
3937
3972
|
class: l(a.model.cssClasses.emptyText),
|
|
3938
3973
|
"aria-label": a.model.emptyMessage
|
|
3939
|
-
}, R(a.model.emptyMessage), 11,
|
|
3974
|
+
}, R(a.model.emptyMessage), 11, kt)
|
|
3940
3975
|
], 2), [
|
|
3941
3976
|
[M, a.model.isEmpty]
|
|
3942
3977
|
]),
|
|
@@ -3958,13 +3993,13 @@ const nt = /* @__PURE__ */ he(Yo, [["render", st]]), ot = /* @__PURE__ */ c("use
|
|
|
3958
3993
|
model: a.model,
|
|
3959
3994
|
key: g.id
|
|
3960
3995
|
}, null, 8, ["item", "model"]))), 128))
|
|
3961
|
-
], 42,
|
|
3996
|
+
], 42, ft)), [
|
|
3962
3997
|
[M, !a.model.isEmpty]
|
|
3963
3998
|
]) : d("", !0)
|
|
3964
3999
|
], 2);
|
|
3965
4000
|
};
|
|
3966
4001
|
}
|
|
3967
|
-
}),
|
|
4002
|
+
}), wt = ["aria-selected", "id"], St = ["title"], Rt = /* @__PURE__ */ h({
|
|
3968
4003
|
__name: "ListItem",
|
|
3969
4004
|
props: {
|
|
3970
4005
|
model: {},
|
|
@@ -4013,27 +4048,27 @@ const nt = /* @__PURE__ */ he(Yo, [["render", st]]), ot = /* @__PURE__ */ c("use
|
|
|
4013
4048
|
key: 2,
|
|
4014
4049
|
item: n.item
|
|
4015
4050
|
}, null, 8, ["item"])) : d("", !0)
|
|
4016
|
-
], 14,
|
|
4017
|
-
], 42,
|
|
4051
|
+
], 14, St)
|
|
4052
|
+
], 42, wt)), [
|
|
4018
4053
|
[M, n.model.isItemVisible(n.item)],
|
|
4019
4054
|
[m]
|
|
4020
4055
|
]);
|
|
4021
4056
|
};
|
|
4022
4057
|
}
|
|
4023
|
-
}),
|
|
4058
|
+
}), Tt = /* @__PURE__ */ h({
|
|
4024
4059
|
__name: "Popup",
|
|
4025
4060
|
props: {
|
|
4026
4061
|
getTarget: { type: Function },
|
|
4027
4062
|
model: {}
|
|
4028
4063
|
},
|
|
4029
4064
|
setup(r) {
|
|
4030
|
-
const s = r, o =
|
|
4031
|
-
|
|
4065
|
+
const s = r, o = z(
|
|
4066
|
+
de(s.model, void 0)
|
|
4032
4067
|
), e = _(null);
|
|
4033
|
-
return
|
|
4068
|
+
return J(
|
|
4034
4069
|
() => s.model,
|
|
4035
4070
|
(n) => {
|
|
4036
|
-
o.value.dispose(), o.value =
|
|
4071
|
+
o.value.dispose(), o.value = de(n, void 0);
|
|
4037
4072
|
},
|
|
4038
4073
|
{ immediate: !0 }
|
|
4039
4074
|
), L(() => o.value), H(() => {
|
|
@@ -4042,7 +4077,7 @@ const nt = /* @__PURE__ */ he(Yo, [["render", st]]), ot = /* @__PURE__ */ c("use
|
|
|
4042
4077
|
n,
|
|
4043
4078
|
s.getTarget ? s.getTarget(n) : void 0
|
|
4044
4079
|
);
|
|
4045
|
-
}),
|
|
4080
|
+
}), U(() => {
|
|
4046
4081
|
o.value.dispose();
|
|
4047
4082
|
}), (n, t) => {
|
|
4048
4083
|
const a = p("sv-popup-container");
|
|
@@ -4050,17 +4085,17 @@ const nt = /* @__PURE__ */ he(Yo, [["render", st]]), ot = /* @__PURE__ */ c("use
|
|
|
4050
4085
|
ref_key: "root",
|
|
4051
4086
|
ref: e
|
|
4052
4087
|
}, [
|
|
4053
|
-
|
|
4088
|
+
C(a, { model: o.value }, null, 8, ["model"])
|
|
4054
4089
|
], 512);
|
|
4055
4090
|
};
|
|
4056
4091
|
}
|
|
4057
|
-
}),
|
|
4092
|
+
}), $t = { class: "sv-popup__shadow" }, _t = { class: "sv-popup__body-content" }, Dt = {
|
|
4058
4093
|
key: 0,
|
|
4059
4094
|
class: "sv-popup__body-header"
|
|
4060
|
-
},
|
|
4095
|
+
}, Bt = { class: "sv-popup__scrolling-content" }, Lt = { class: "sv-popup__content" }, Nt = {
|
|
4061
4096
|
key: 1,
|
|
4062
4097
|
class: "sv-popup__body-footer"
|
|
4063
|
-
},
|
|
4098
|
+
}, Pt = /* @__PURE__ */ h({
|
|
4064
4099
|
__name: "PopupContainer",
|
|
4065
4100
|
props: {
|
|
4066
4101
|
model: {}
|
|
@@ -4099,20 +4134,20 @@ const nt = /* @__PURE__ */ he(Yo, [["render", st]]), ot = /* @__PURE__ */ c("use
|
|
|
4099
4134
|
}),
|
|
4100
4135
|
onClick: e
|
|
4101
4136
|
}, [
|
|
4102
|
-
c("div",
|
|
4137
|
+
c("div", $t, [
|
|
4103
4138
|
n.model.showHeader ? (i(), q(T(n.model.popupHeaderTemplate), {
|
|
4104
4139
|
key: 0,
|
|
4105
4140
|
model: n.model
|
|
4106
4141
|
}, null, 8, ["model"])) : d("", !0),
|
|
4107
|
-
c("div",
|
|
4108
|
-
n.model.title ? (i(), u("div",
|
|
4109
|
-
c("div",
|
|
4110
|
-
c("div",
|
|
4111
|
-
(i(), q(T(n.model.contentComponentName), F(
|
|
4142
|
+
c("div", _t, [
|
|
4143
|
+
n.model.title ? (i(), u("div", Dt, R(n.model.title), 1)) : d("", !0),
|
|
4144
|
+
c("div", Bt, [
|
|
4145
|
+
c("div", Lt, [
|
|
4146
|
+
(i(), q(T(n.model.contentComponentName), F(oe(n.model.contentComponentData)), null, 16))
|
|
4112
4147
|
])
|
|
4113
4148
|
]),
|
|
4114
|
-
n.model.showFooter ? (i(), u("div",
|
|
4115
|
-
|
|
4149
|
+
n.model.showFooter ? (i(), u("div", Nt, [
|
|
4150
|
+
C(a, {
|
|
4116
4151
|
model: n.model.footerToolbar
|
|
4117
4152
|
}, null, 8, ["model"])
|
|
4118
4153
|
])) : d("", !0)
|
|
@@ -4124,7 +4159,7 @@ const nt = /* @__PURE__ */ he(Yo, [["render", st]]), ot = /* @__PURE__ */ c("use
|
|
|
4124
4159
|
]);
|
|
4125
4160
|
};
|
|
4126
4161
|
}
|
|
4127
|
-
}),
|
|
4162
|
+
}), At = /* @__PURE__ */ h({
|
|
4128
4163
|
__name: "PopupPointer",
|
|
4129
4164
|
props: {
|
|
4130
4165
|
model: {}
|
|
@@ -4138,10 +4173,10 @@ const nt = /* @__PURE__ */ he(Yo, [["render", st]]), ot = /* @__PURE__ */ c("use
|
|
|
4138
4173
|
})
|
|
4139
4174
|
}, null, 4));
|
|
4140
4175
|
}
|
|
4141
|
-
}),
|
|
4176
|
+
}), Mt = {
|
|
4142
4177
|
key: 0,
|
|
4143
4178
|
class: "sv-components-column"
|
|
4144
|
-
},
|
|
4179
|
+
}, Ht = /* @__PURE__ */ h({
|
|
4145
4180
|
__name: "Container",
|
|
4146
4181
|
props: {
|
|
4147
4182
|
survey: {},
|
|
@@ -4153,7 +4188,7 @@ const nt = /* @__PURE__ */ he(Yo, [["render", st]]), ot = /* @__PURE__ */ c("use
|
|
|
4153
4188
|
() => s.survey.getContainerContent(s.container)
|
|
4154
4189
|
);
|
|
4155
4190
|
return (e, n) => o.value.length > 0 ? (i(), u($, { key: 0 }, [
|
|
4156
|
-
e.needRenderWrapper ? (i(), u("div",
|
|
4191
|
+
e.needRenderWrapper ? (i(), u("div", Mt, [
|
|
4157
4192
|
(i(!0), u($, null, B(o.value, (t, a) => (i(), q(T(t.component), {
|
|
4158
4193
|
survey: e.survey,
|
|
4159
4194
|
container: e.container,
|
|
@@ -4173,7 +4208,7 @@ const nt = /* @__PURE__ */ he(Yo, [["render", st]]), ot = /* @__PURE__ */ c("use
|
|
|
4173
4208
|
css: {}
|
|
4174
4209
|
},
|
|
4175
4210
|
setup(r) {
|
|
4176
|
-
const s = r, o = w(() => s.survey.progressValue + "%"), e = (t) =>
|
|
4211
|
+
const s = r, o = w(() => s.survey.progressValue + "%"), e = (t) => me.getProgressTextInBarCss(t), n = (t) => me.getProgressTextUnderBarCss(t);
|
|
4177
4212
|
return (t, a) => (i(), u("div", {
|
|
4178
4213
|
class: l(t.survey.getProgressCssClasses(t.container))
|
|
4179
4214
|
}, [
|
|
@@ -4194,28 +4229,28 @@ const nt = /* @__PURE__ */ he(Yo, [["render", st]]), ot = /* @__PURE__ */ c("use
|
|
|
4194
4229
|
}, R(t.survey.progressText), 3)
|
|
4195
4230
|
], 2));
|
|
4196
4231
|
}
|
|
4197
|
-
}),
|
|
4232
|
+
}), Wt = ["onClick"], Et = ["title"], Vt = ["title"], Ot = /* @__PURE__ */ h({
|
|
4198
4233
|
__name: "ProgressButtons",
|
|
4199
4234
|
props: {
|
|
4200
4235
|
survey: {}
|
|
4201
4236
|
},
|
|
4202
4237
|
setup(r) {
|
|
4203
|
-
const s = r, o = new
|
|
4238
|
+
const s = r, o = new He(s.survey), e = _(!1), n = _(), t = w(() => s.survey.css);
|
|
4204
4239
|
let a;
|
|
4205
|
-
const y = (
|
|
4206
|
-
o.clickListElement(
|
|
4207
|
-
}, g = (
|
|
4240
|
+
const y = (b) => o.isListElementClickable(b), m = (b) => o.getListElementCss(b), v = (b) => {
|
|
4241
|
+
o.clickListElement(b);
|
|
4242
|
+
}, g = (b, N) => o.getScrollButtonCss(b, N), I = (b) => {
|
|
4208
4243
|
let N = n.value;
|
|
4209
|
-
N.scrollLeft += (
|
|
4244
|
+
N.scrollLeft += (b ? -1 : 1) * 70;
|
|
4210
4245
|
};
|
|
4211
4246
|
return H(() => {
|
|
4212
|
-
const
|
|
4247
|
+
const b = n.value;
|
|
4213
4248
|
a = setInterval(() => {
|
|
4214
|
-
e.value =
|
|
4249
|
+
e.value = b.scrollWidth > b.offsetWidth;
|
|
4215
4250
|
}, 100);
|
|
4216
|
-
}),
|
|
4251
|
+
}), Q(() => {
|
|
4217
4252
|
typeof a < "u" && (clearInterval(a), a = void 0);
|
|
4218
|
-
}), (
|
|
4253
|
+
}), (b, N) => (i(), u("div", {
|
|
4219
4254
|
class: l(t.value.progressButtonsContainerCenter)
|
|
4220
4255
|
}, [
|
|
4221
4256
|
c("div", {
|
|
@@ -4234,7 +4269,7 @@ const nt = /* @__PURE__ */ he(Yo, [["render", st]]), ot = /* @__PURE__ */ c("use
|
|
|
4234
4269
|
c("ul", {
|
|
4235
4270
|
class: l(t.value.progressButtonsList)
|
|
4236
4271
|
}, [
|
|
4237
|
-
(i(!0), u($, null, B(
|
|
4272
|
+
(i(!0), u($, null, B(b.survey.visiblePages, (k, D) => (i(), u("li", {
|
|
4238
4273
|
key: "listelement" + D,
|
|
4239
4274
|
class: l(m(D)),
|
|
4240
4275
|
onClick: (E) => y(D) ? v(D) : null
|
|
@@ -4242,12 +4277,12 @@ const nt = /* @__PURE__ */ he(Yo, [["render", st]]), ot = /* @__PURE__ */ c("use
|
|
|
4242
4277
|
c("div", {
|
|
4243
4278
|
class: l(t.value.progressButtonsPageTitle),
|
|
4244
4279
|
title: k.renderedNavigationTitle
|
|
4245
|
-
}, R(k.renderedNavigationTitle), 11,
|
|
4280
|
+
}, R(k.renderedNavigationTitle), 11, Et),
|
|
4246
4281
|
c("div", {
|
|
4247
4282
|
class: l(t.value.progressButtonsPageDescription),
|
|
4248
4283
|
title: k.locNavigationDescription.renderedHtml
|
|
4249
|
-
}, R(k.locNavigationDescription.renderedHtml), 11,
|
|
4250
|
-
], 10,
|
|
4284
|
+
}, R(k.locNavigationDescription.renderedHtml), 11, Vt)
|
|
4285
|
+
], 10, Wt))), 128))
|
|
4251
4286
|
], 2)
|
|
4252
4287
|
], 2),
|
|
4253
4288
|
c("div", {
|
|
@@ -4258,13 +4293,13 @@ const nt = /* @__PURE__ */ he(Yo, [["render", st]]), ot = /* @__PURE__ */ c("use
|
|
|
4258
4293
|
], 2)
|
|
4259
4294
|
], 2));
|
|
4260
4295
|
}
|
|
4261
|
-
}),
|
|
4296
|
+
}), Ft = /* @__PURE__ */ h({
|
|
4262
4297
|
__name: "ProgressToc",
|
|
4263
4298
|
props: {
|
|
4264
4299
|
survey: {}
|
|
4265
4300
|
},
|
|
4266
4301
|
setup(r) {
|
|
4267
|
-
const s = r, o = new
|
|
4302
|
+
const s = r, o = new We(s.survey);
|
|
4268
4303
|
return (e, n) => {
|
|
4269
4304
|
const t = p("sv-svg-icon"), a = p("sv-popup"), y = p("sv-list"), m = X("key2click");
|
|
4270
4305
|
return i(), u("div", {
|
|
@@ -4274,11 +4309,11 @@ const nt = /* @__PURE__ */ he(Yo, [["render", st]]), ot = /* @__PURE__ */ c("use
|
|
|
4274
4309
|
key: 0,
|
|
4275
4310
|
onClick: n[0] || (n[0] = (...v) => f(o).togglePopup && f(o).togglePopup(...v))
|
|
4276
4311
|
}, [
|
|
4277
|
-
|
|
4312
|
+
C(t, {
|
|
4278
4313
|
iconName: f(o).icon,
|
|
4279
4314
|
size: 24
|
|
4280
4315
|
}, null, 8, ["iconName"]),
|
|
4281
|
-
|
|
4316
|
+
C(a, {
|
|
4282
4317
|
model: f(o).popupModel
|
|
4283
4318
|
}, null, 8, ["model"])
|
|
4284
4319
|
])), [
|
|
@@ -4290,10 +4325,10 @@ const nt = /* @__PURE__ */ he(Yo, [["render", st]]), ot = /* @__PURE__ */ c("use
|
|
|
4290
4325
|
], 2);
|
|
4291
4326
|
};
|
|
4292
4327
|
}
|
|
4293
|
-
}),
|
|
4328
|
+
}), zt = { onsubmit: "return false;" }, Ut = {
|
|
4294
4329
|
key: 0,
|
|
4295
4330
|
class: "sv_custom_header"
|
|
4296
|
-
},
|
|
4331
|
+
}, Kt = { class: "sv-components-column sv-components-column--expandable" }, jt = ["id"], Qt = { key: 2 }, Gt = ["innerHTML"], Jt = ["innerHTML"], Xt = ["innerHTML"], ve = /* @__PURE__ */ h({
|
|
4297
4332
|
__name: "Survey",
|
|
4298
4333
|
props: {
|
|
4299
4334
|
model: {},
|
|
@@ -4301,26 +4336,26 @@ const nt = /* @__PURE__ */ he(Yo, [["render", st]]), ot = /* @__PURE__ */ c("use
|
|
|
4301
4336
|
},
|
|
4302
4337
|
setup(r) {
|
|
4303
4338
|
const s = r, o = _(), e = _(""), n = _(1), t = w(() => {
|
|
4304
|
-
const
|
|
4305
|
-
return
|
|
4339
|
+
const b = s.survey ? s.survey : s.model;
|
|
4340
|
+
return Re(b);
|
|
4306
4341
|
}), a = w(() => t.value.activePage ? t.value.activePage.id : ""), y = () => {
|
|
4307
|
-
const
|
|
4308
|
-
return !!t.value &&
|
|
4342
|
+
const b = a.value;
|
|
4343
|
+
return !!t.value && b + n.value.toString();
|
|
4309
4344
|
}, m = w(
|
|
4310
4345
|
() => t.value.showCompletedPage && t.value.state === "completed"
|
|
4311
4346
|
), v = w(() => t.value.css), g = w(() => "page" + y()), I = () => m.value ? (e.value || (e.value = t.value.processedCompletedHtml), e.value) : "";
|
|
4312
4347
|
return L(() => t.value), H(() => {
|
|
4313
4348
|
if (!!t.value) {
|
|
4314
|
-
var
|
|
4315
|
-
|
|
4349
|
+
var b = o.value;
|
|
4350
|
+
b && t.value.afterRenderSurvey(b), t.value.renderCallback = () => {
|
|
4316
4351
|
var N, k;
|
|
4317
|
-
n.value++, (k = (N =
|
|
4352
|
+
n.value++, (k = (N = ie()) == null ? void 0 : N.proxy) == null || k.$forceUpdate();
|
|
4318
4353
|
}, t.value.startTimerFromUI();
|
|
4319
4354
|
}
|
|
4320
|
-
}),
|
|
4355
|
+
}), U(() => {
|
|
4321
4356
|
t.value.stopTimer(), t.value.renderCallback = void 0;
|
|
4322
|
-
}), (
|
|
4323
|
-
const k = p("sv-svg-bundle"), D = p("survey-popup-modal"), E = p("survey-header"), V = p("survey-page"),
|
|
4357
|
+
}), (b, N) => {
|
|
4358
|
+
const k = p("sv-svg-bundle"), D = p("survey-popup-modal"), E = p("survey-header"), V = p("survey-page"), K = p("sv-brand-info"), ue = p("sv-notifier");
|
|
4324
4359
|
return i(), u("div", {
|
|
4325
4360
|
class: l(t.value.getRootCss()),
|
|
4326
4361
|
style: S(t.value.themeVariables),
|
|
@@ -4331,14 +4366,14 @@ const nt = /* @__PURE__ */ he(Yo, [["render", st]]), ot = /* @__PURE__ */ c("use
|
|
|
4331
4366
|
c("div", {
|
|
4332
4367
|
class: l(t.value.wrapperFormCss)
|
|
4333
4368
|
}, [
|
|
4334
|
-
|
|
4369
|
+
C(D),
|
|
4335
4370
|
t.value.renderBackgroundImage ? (i(), u("div", {
|
|
4336
4371
|
key: 0,
|
|
4337
4372
|
class: l(v.value.rootBackgroundImage),
|
|
4338
4373
|
style: S(t.value.backgroundImageStyle)
|
|
4339
4374
|
}, null, 6)) : d("", !0),
|
|
4340
|
-
c("form",
|
|
4341
|
-
t.value.hasLogo ? d("", !0) : (i(), u("div",
|
|
4375
|
+
c("form", zt, [
|
|
4376
|
+
t.value.hasLogo ? d("", !0) : (i(), u("div", Ut)),
|
|
4342
4377
|
c("div", {
|
|
4343
4378
|
class: l(v.value.container)
|
|
4344
4379
|
}, [
|
|
@@ -4360,7 +4395,7 @@ const nt = /* @__PURE__ */ he(Yo, [["render", st]]), ot = /* @__PURE__ */ c("use
|
|
|
4360
4395
|
container: "left",
|
|
4361
4396
|
needRenderWrapper: !0
|
|
4362
4397
|
}, null, 8, ["survey"])),
|
|
4363
|
-
c("div",
|
|
4398
|
+
c("div", Kt, [
|
|
4364
4399
|
(i(), q(T("sv-components-container"), {
|
|
4365
4400
|
survey: t.value,
|
|
4366
4401
|
container: "center",
|
|
@@ -4387,7 +4422,7 @@ const nt = /* @__PURE__ */ he(Yo, [["render", st]]), ot = /* @__PURE__ */ c("use
|
|
|
4387
4422
|
container: "contentBottom",
|
|
4388
4423
|
needRenderWrapper: !0
|
|
4389
4424
|
}, null, 8, ["survey"]))
|
|
4390
|
-
], 14,
|
|
4425
|
+
], 14, jt)
|
|
4391
4426
|
]),
|
|
4392
4427
|
(i(), q(T("sv-components-container"), {
|
|
4393
4428
|
survey: t.value,
|
|
@@ -4400,11 +4435,11 @@ const nt = /* @__PURE__ */ he(Yo, [["render", st]]), ot = /* @__PURE__ */ c("use
|
|
|
4400
4435
|
container: "footer",
|
|
4401
4436
|
needRenderWrapper: !1
|
|
4402
4437
|
}, null, 8, ["survey"])),
|
|
4403
|
-
m.value ? (i(), u("div",
|
|
4438
|
+
m.value ? (i(), u("div", Qt, [
|
|
4404
4439
|
c("div", {
|
|
4405
4440
|
innerHTML: I(),
|
|
4406
4441
|
class: l(t.value.completedCss)
|
|
4407
|
-
}, null, 10,
|
|
4442
|
+
}, null, 10, Gt),
|
|
4408
4443
|
(i(), q(T("sv-components-container"), {
|
|
4409
4444
|
survey: t.value,
|
|
4410
4445
|
container: "completePage",
|
|
@@ -4415,27 +4450,27 @@ const nt = /* @__PURE__ */ he(Yo, [["render", st]]), ot = /* @__PURE__ */ c("use
|
|
|
4415
4450
|
key: 3,
|
|
4416
4451
|
class: l(t.value.completedBeforeCss),
|
|
4417
4452
|
innerHTML: t.value.processedCompletedBeforeHtml
|
|
4418
|
-
}, null, 10,
|
|
4453
|
+
}, null, 10, Jt)) : d("", !0),
|
|
4419
4454
|
t.value.state === "loading" ? (i(), u("div", {
|
|
4420
4455
|
key: 4,
|
|
4421
4456
|
class: l(t.value.loadingBodyCss),
|
|
4422
4457
|
innerHTML: t.value.processedLoadingHtml
|
|
4423
|
-
}, null, 10,
|
|
4458
|
+
}, null, 10, Xt)) : d("", !0),
|
|
4424
4459
|
t.value.state === "empty" ? (i(), u("div", {
|
|
4425
4460
|
key: 5,
|
|
4426
4461
|
class: l(v.value.bodyEmpty)
|
|
4427
4462
|
}, R(t.value.emptySurveyText), 3)) : d("", !0)
|
|
4428
4463
|
], 2)
|
|
4429
4464
|
]),
|
|
4430
|
-
t.value.showBrandInfo ? (i(), q(
|
|
4431
|
-
|
|
4465
|
+
t.value.showBrandInfo ? (i(), q(K, { key: 1 })) : d("", !0),
|
|
4466
|
+
C(ue, {
|
|
4432
4467
|
model: t.value.notifier
|
|
4433
4468
|
}, null, 8, ["model"])
|
|
4434
4469
|
], 2)
|
|
4435
4470
|
], 6);
|
|
4436
4471
|
};
|
|
4437
4472
|
}
|
|
4438
|
-
}),
|
|
4473
|
+
}), Yt = /* @__PURE__ */ h({
|
|
4439
4474
|
__name: "Notifier",
|
|
4440
4475
|
props: {
|
|
4441
4476
|
model: {}
|
|
@@ -4451,7 +4486,7 @@ const nt = /* @__PURE__ */ he(Yo, [["render", st]]), ot = /* @__PURE__ */ c("use
|
|
|
4451
4486
|
"aria-live": "polite"
|
|
4452
4487
|
}, [
|
|
4453
4488
|
c("span", null, R(o.model.message), 1),
|
|
4454
|
-
|
|
4489
|
+
C(n, {
|
|
4455
4490
|
model: o.model.actionBar
|
|
4456
4491
|
}, null, 8, ["model"])
|
|
4457
4492
|
], 6)), [
|
|
@@ -4459,7 +4494,7 @@ const nt = /* @__PURE__ */ he(Yo, [["render", st]]), ot = /* @__PURE__ */ c("use
|
|
|
4459
4494
|
]);
|
|
4460
4495
|
};
|
|
4461
4496
|
}
|
|
4462
|
-
}),
|
|
4497
|
+
}), Zt = ["id", "readonly", "disabled", "value", "maxlength", "placeholder", "aria-label", "aria-required"], xt = { key: 1 }, ei = /* @__PURE__ */ h({
|
|
4463
4498
|
__name: "QuestionOther",
|
|
4464
4499
|
props: {
|
|
4465
4500
|
question: {},
|
|
@@ -4487,11 +4522,11 @@ const nt = /* @__PURE__ */ he(Yo, [["render", st]]), ot = /* @__PURE__ */ c("use
|
|
|
4487
4522
|
onInput: o[1] || (o[1] = (e) => {
|
|
4488
4523
|
s.question.onOtherValueInput(e);
|
|
4489
4524
|
})
|
|
4490
|
-
}, null, 46,
|
|
4491
|
-
s.question.isReadOnlyRenderDiv() ? (i(), u("div",
|
|
4525
|
+
}, null, 46, Zt)),
|
|
4526
|
+
s.question.isReadOnlyRenderDiv() ? (i(), u("div", xt, R(s.question.otherValue), 1)) : d("", !0)
|
|
4492
4527
|
], 2));
|
|
4493
4528
|
}
|
|
4494
|
-
}),
|
|
4529
|
+
}), si = ["disabled", "value", "title"], ni = /* @__PURE__ */ h({
|
|
4495
4530
|
__name: "SurveyNavigationButton",
|
|
4496
4531
|
props: {
|
|
4497
4532
|
item: {}
|
|
@@ -4507,9 +4542,9 @@ const nt = /* @__PURE__ */ he(Yo, [["render", st]]), ot = /* @__PURE__ */ c("use
|
|
|
4507
4542
|
title: e.item.getTooltip(),
|
|
4508
4543
|
onMousedown: o,
|
|
4509
4544
|
onClick: n[0] || (n[0] = (...t) => e.item.action && e.item.action(...t))
|
|
4510
|
-
}, null, 42,
|
|
4545
|
+
}, null, 42, si)) : d("", !0);
|
|
4511
4546
|
}
|
|
4512
|
-
}),
|
|
4547
|
+
}), ye = /* @__PURE__ */ h({
|
|
4513
4548
|
__name: "PopupSurvey",
|
|
4514
4549
|
props: {
|
|
4515
4550
|
survey: {},
|
|
@@ -4517,7 +4552,7 @@ const nt = /* @__PURE__ */ he(Yo, [["render", st]]), ot = /* @__PURE__ */ c("use
|
|
|
4517
4552
|
closeOnCompleteTimeout: {}
|
|
4518
4553
|
},
|
|
4519
4554
|
setup(r) {
|
|
4520
|
-
const s = r, o =
|
|
4555
|
+
const s = r, o = z(), e = w(() => s.survey ? s.survey.getCss() : {}), n = w(() => {
|
|
4521
4556
|
var I;
|
|
4522
4557
|
return (I = o.value) != null && I.isExpanded ? e.value.window.header.buttonCollapsed : e.value.window.header.buttonExpanded;
|
|
4523
4558
|
}), t = w(() => {
|
|
@@ -4531,19 +4566,19 @@ const nt = /* @__PURE__ */ he(Yo, [["render", st]]), ot = /* @__PURE__ */ c("use
|
|
|
4531
4566
|
o.value.onScroll();
|
|
4532
4567
|
};
|
|
4533
4568
|
L(() => o.value);
|
|
4534
|
-
const g =
|
|
4569
|
+
const g = J(
|
|
4535
4570
|
() => s.survey,
|
|
4536
4571
|
(I) => {
|
|
4537
|
-
const
|
|
4538
|
-
s.isExpanded !== void 0 && (
|
|
4572
|
+
const b = new Ee(null, I);
|
|
4573
|
+
s.isExpanded !== void 0 && (b.isExpanded = s.isExpanded), s.closeOnCompleteTimeout !== void 0 && (b.closeOnCompleteTimeout = s.closeOnCompleteTimeout), b.isShowing = !0, o.value = b;
|
|
4539
4574
|
},
|
|
4540
4575
|
{
|
|
4541
4576
|
immediate: !0
|
|
4542
4577
|
}
|
|
4543
4578
|
);
|
|
4544
|
-
return
|
|
4579
|
+
return U(() => {
|
|
4545
4580
|
g();
|
|
4546
|
-
}), (I,
|
|
4581
|
+
}), (I, b) => {
|
|
4547
4582
|
const N = p("survey-string"), k = p("sv-svg-icon");
|
|
4548
4583
|
return o.value.isShowing ? (i(), u("div", {
|
|
4549
4584
|
key: 0,
|
|
@@ -4564,7 +4599,7 @@ const nt = /* @__PURE__ */ he(Yo, [["render", st]]), ot = /* @__PURE__ */ c("use
|
|
|
4564
4599
|
style: { "padding-right": "10px" },
|
|
4565
4600
|
class: l(o.value.cssHeaderTitle)
|
|
4566
4601
|
}, [
|
|
4567
|
-
|
|
4602
|
+
C(N, {
|
|
4568
4603
|
locString: I.survey.locTitle
|
|
4569
4604
|
}, null, 8, ["locString"])
|
|
4570
4605
|
], 2),
|
|
@@ -4579,7 +4614,7 @@ const nt = /* @__PURE__ */ he(Yo, [["render", st]]), ot = /* @__PURE__ */ c("use
|
|
|
4579
4614
|
onClick: y,
|
|
4580
4615
|
style: { transform: "rotate(45deg)", float: "right", cursor: "pointer", "user-select": "none", width: "24px", height: "24px" }
|
|
4581
4616
|
}, [
|
|
4582
|
-
|
|
4617
|
+
C(k, {
|
|
4583
4618
|
iconName: "icon-expanddetail",
|
|
4584
4619
|
size: 16
|
|
4585
4620
|
})
|
|
@@ -4590,7 +4625,7 @@ const nt = /* @__PURE__ */ he(Yo, [["render", st]]), ot = /* @__PURE__ */ c("use
|
|
|
4590
4625
|
onClick: a,
|
|
4591
4626
|
style: { float: "right", cursor: "pointer", "user-select": "none", width: "24px", height: "24px" }
|
|
4592
4627
|
}, [
|
|
4593
|
-
|
|
4628
|
+
C(k, {
|
|
4594
4629
|
iconName: "icon-collapsedetail",
|
|
4595
4630
|
size: 16
|
|
4596
4631
|
})
|
|
@@ -4606,7 +4641,7 @@ const nt = /* @__PURE__ */ he(Yo, [["render", st]]), ot = /* @__PURE__ */ c("use
|
|
|
4606
4641
|
], 6)) : d("", !0);
|
|
4607
4642
|
};
|
|
4608
4643
|
}
|
|
4609
|
-
}),
|
|
4644
|
+
}), oi = ["innerHTML"], ti = /* @__PURE__ */ h({
|
|
4610
4645
|
__name: "CustomWidget",
|
|
4611
4646
|
props: {
|
|
4612
4647
|
question: {},
|
|
@@ -4620,7 +4655,7 @@ const nt = /* @__PURE__ */ he(Yo, [["render", st]]), ot = /* @__PURE__ */ c("use
|
|
|
4620
4655
|
), t = w(() => s.question.customWidget.htmlTemplate), a = w(() => "survey-" + s.question.getTemplate());
|
|
4621
4656
|
return H(() => {
|
|
4622
4657
|
s.question.customWidget.afterRender(s.question, o.value);
|
|
4623
|
-
}),
|
|
4658
|
+
}), Q(() => {
|
|
4624
4659
|
s.question.customWidget.willUnmount(s.question, o.value);
|
|
4625
4660
|
}), (y, m) => (i(), u("div", {
|
|
4626
4661
|
ref_key: "root",
|
|
@@ -4629,7 +4664,7 @@ const nt = /* @__PURE__ */ he(Yo, [["render", st]]), ot = /* @__PURE__ */ c("use
|
|
|
4629
4664
|
n.value ? (i(), u("div", {
|
|
4630
4665
|
key: 0,
|
|
4631
4666
|
innerHTML: t.value
|
|
4632
|
-
}, null, 8,
|
|
4667
|
+
}, null, 8, oi)) : d("", !0),
|
|
4633
4668
|
e.value ? (i(), q(T(a.value), {
|
|
4634
4669
|
key: 1,
|
|
4635
4670
|
question: y.question,
|
|
@@ -4637,12 +4672,12 @@ const nt = /* @__PURE__ */ he(Yo, [["render", st]]), ot = /* @__PURE__ */ c("use
|
|
|
4637
4672
|
}, null, 8, ["question", "css"])) : d("", !0)
|
|
4638
4673
|
], 512));
|
|
4639
4674
|
}
|
|
4640
|
-
}),
|
|
4675
|
+
}), ii = /* @__PURE__ */ h({
|
|
4641
4676
|
__name: "PopupModal",
|
|
4642
4677
|
setup(r) {
|
|
4643
|
-
const s =
|
|
4678
|
+
const s = z();
|
|
4644
4679
|
function o(n, t, a, y, m, v, g = "popup") {
|
|
4645
|
-
const I =
|
|
4680
|
+
const I = Ve(
|
|
4646
4681
|
n,
|
|
4647
4682
|
t,
|
|
4648
4683
|
a,
|
|
@@ -4659,27 +4694,27 @@ const nt = /* @__PURE__ */ he(Yo, [["render", st]]), ot = /* @__PURE__ */ c("use
|
|
|
4659
4694
|
n.onHide = () => {
|
|
4660
4695
|
s.value = void 0, a.dispose();
|
|
4661
4696
|
};
|
|
4662
|
-
const a =
|
|
4697
|
+
const a = Oe(
|
|
4663
4698
|
n,
|
|
4664
4699
|
t
|
|
4665
4700
|
);
|
|
4666
4701
|
return a.model.isVisible = !0, s.value = a, a;
|
|
4667
4702
|
}
|
|
4668
|
-
return
|
|
4669
|
-
|
|
4670
|
-
})),
|
|
4671
|
-
|
|
4703
|
+
return j.showModal || (j.showModal = o, U(() => {
|
|
4704
|
+
j.showModal = void 0;
|
|
4705
|
+
})), j.showDialog || (j.showDialog = e, U(() => {
|
|
4706
|
+
j.showDialog = void 0;
|
|
4672
4707
|
})), (n, t) => {
|
|
4673
4708
|
const a = p("sv-popup-container");
|
|
4674
|
-
return s.value ? (i(), q(
|
|
4709
|
+
return s.value ? (i(), q(Te, {
|
|
4675
4710
|
key: 0,
|
|
4676
4711
|
to: s.value.container
|
|
4677
4712
|
}, [
|
|
4678
|
-
|
|
4713
|
+
C(a, { model: s.value }, null, 8, ["model"])
|
|
4679
4714
|
], 8, ["to"])) : d("", !0);
|
|
4680
4715
|
};
|
|
4681
4716
|
}
|
|
4682
|
-
}),
|
|
4717
|
+
}), ri = /* @__PURE__ */ h({
|
|
4683
4718
|
__name: "CharacterCounter",
|
|
4684
4719
|
props: {
|
|
4685
4720
|
counter: {},
|
|
@@ -4691,7 +4726,7 @@ const nt = /* @__PURE__ */ he(Yo, [["render", st]]), ot = /* @__PURE__ */ c("use
|
|
|
4691
4726
|
class: l(o.remainingCharacterCounter)
|
|
4692
4727
|
}, R(o.counter.remainingCharacterCounter), 3));
|
|
4693
4728
|
}
|
|
4694
|
-
}),
|
|
4729
|
+
}), li = /* @__PURE__ */ h({
|
|
4695
4730
|
inheritAttrs: !1,
|
|
4696
4731
|
__name: "Composite",
|
|
4697
4732
|
props: {
|
|
@@ -4712,7 +4747,7 @@ const nt = /* @__PURE__ */ he(Yo, [["render", st]]), ot = /* @__PURE__ */ c("use
|
|
|
4712
4747
|
}, null, 8, ["element", "css"]);
|
|
4713
4748
|
};
|
|
4714
4749
|
}
|
|
4715
|
-
}),
|
|
4750
|
+
}), ai = /* @__PURE__ */ h({
|
|
4716
4751
|
inheritAttrs: !1,
|
|
4717
4752
|
__name: "Custom",
|
|
4718
4753
|
props: {
|
|
@@ -4722,23 +4757,23 @@ const nt = /* @__PURE__ */ he(Yo, [["render", st]]), ot = /* @__PURE__ */ c("use
|
|
|
4722
4757
|
setup(r) {
|
|
4723
4758
|
const s = r, o = _(null);
|
|
4724
4759
|
A(s, o);
|
|
4725
|
-
const e = w(() => s.question.contentQuestion), n = (t) =>
|
|
4760
|
+
const e = w(() => s.question.contentQuestion), n = (t) => re(t);
|
|
4726
4761
|
return (t, a) => (i(), q(T(n(e.value)), {
|
|
4727
4762
|
ref: o.value,
|
|
4728
4763
|
question: e.value,
|
|
4729
4764
|
css: t.css
|
|
4730
4765
|
}, null, 8, ["question", "css"]));
|
|
4731
4766
|
}
|
|
4732
|
-
}),
|
|
4733
|
-
|
|
4734
|
-
],
|
|
4767
|
+
}), ui = /* @__PURE__ */ c("use", { "xlink:href": "#icon-timercircle" }, null, -1), di = [
|
|
4768
|
+
ui
|
|
4769
|
+
], qe = 440, mi = /* @__PURE__ */ h({
|
|
4735
4770
|
__name: "TimerPanel",
|
|
4736
4771
|
props: {
|
|
4737
4772
|
model: {},
|
|
4738
4773
|
css: {}
|
|
4739
4774
|
},
|
|
4740
4775
|
setup(r) {
|
|
4741
|
-
const s = r, o = w(() =>
|
|
4776
|
+
const s = r, o = w(() => qe * s.model.progress), e = w(() => s.model.text);
|
|
4742
4777
|
return L(() => s.model), (n, t) => n.model.isRunning && n.model.showTimerAsClock ? (i(), u("div", {
|
|
4743
4778
|
key: 0,
|
|
4744
4779
|
class: l(n.model.rootCss)
|
|
@@ -4746,8 +4781,8 @@ const nt = /* @__PURE__ */ he(Yo, [["render", st]]), ot = /* @__PURE__ */ c("use
|
|
|
4746
4781
|
n.model.showProgress ? (i(), u("svg", {
|
|
4747
4782
|
key: 0,
|
|
4748
4783
|
class: l(n.model.getProgressCss()),
|
|
4749
|
-
style: S({ strokeDasharray:
|
|
4750
|
-
},
|
|
4784
|
+
style: S({ strokeDasharray: qe, strokeDashoffset: o.value })
|
|
4785
|
+
}, di, 6)) : d("", !0),
|
|
4751
4786
|
c("div", {
|
|
4752
4787
|
class: l(n.model.textContainerCss)
|
|
4753
4788
|
}, [
|
|
@@ -4766,17 +4801,17 @@ const nt = /* @__PURE__ */ he(Yo, [["render", st]]), ot = /* @__PURE__ */ c("use
|
|
|
4766
4801
|
[M, n.model.isRunning && !n.model.showTimerAsClock]
|
|
4767
4802
|
]);
|
|
4768
4803
|
}
|
|
4769
|
-
}),
|
|
4770
|
-
function
|
|
4804
|
+
}), ci = {}, pi = { class: "sd-loading-indicator" };
|
|
4805
|
+
function vi(r, s) {
|
|
4771
4806
|
const o = p("sv-svg-icon");
|
|
4772
|
-
return i(), u("div",
|
|
4773
|
-
|
|
4807
|
+
return i(), u("div", pi, [
|
|
4808
|
+
C(o, {
|
|
4774
4809
|
iconName: "icon-loading",
|
|
4775
4810
|
size: "'auto'"
|
|
4776
4811
|
})
|
|
4777
4812
|
]);
|
|
4778
4813
|
}
|
|
4779
|
-
const
|
|
4814
|
+
const yi = /* @__PURE__ */ Ce(ci, [["render", vi]]), qi = { key: 2 }, gi = /* @__PURE__ */ h({
|
|
4780
4815
|
__name: "Header",
|
|
4781
4816
|
props: {
|
|
4782
4817
|
model: {},
|
|
@@ -4808,16 +4843,16 @@ const ci = /* @__PURE__ */ he(ui, [["render", mi]]), pi = { key: 2 }, vi = /* @_
|
|
|
4808
4843
|
key: y
|
|
4809
4844
|
}, null, 8, ["model"]))), 128))
|
|
4810
4845
|
], 6)),
|
|
4811
|
-
o.survey.isMobile ? (i(), u("div",
|
|
4812
|
-
|
|
4846
|
+
o.survey.isMobile ? (i(), u("div", qi, [
|
|
4847
|
+
C(t, { model: o.model }, null, 8, ["model"])
|
|
4813
4848
|
])) : d("", !0)
|
|
4814
4849
|
], 6);
|
|
4815
4850
|
};
|
|
4816
4851
|
}
|
|
4817
|
-
}),
|
|
4852
|
+
}), hi = {
|
|
4818
4853
|
key: 0,
|
|
4819
4854
|
class: "sv-header__logo"
|
|
4820
|
-
},
|
|
4855
|
+
}, Ci = ["src", "width", "height", "alt"], bi = /* @__PURE__ */ h({
|
|
4821
4856
|
__name: "HeaderCell",
|
|
4822
4857
|
props: {
|
|
4823
4858
|
model: {}
|
|
@@ -4833,7 +4868,7 @@ const ci = /* @__PURE__ */ he(ui, [["render", mi]]), pi = { key: 2 }, vi = /* @_
|
|
|
4833
4868
|
class: "sv-header__cell-content",
|
|
4834
4869
|
style: S(s.model.contentStyle)
|
|
4835
4870
|
}, [
|
|
4836
|
-
s.model.showLogo ? (i(), u("div",
|
|
4871
|
+
s.model.showLogo ? (i(), u("div", hi, [
|
|
4837
4872
|
c("div", {
|
|
4838
4873
|
class: l(s.model.survey.logoClassNames)
|
|
4839
4874
|
}, [
|
|
@@ -4844,7 +4879,7 @@ const ci = /* @__PURE__ */ he(ui, [["render", mi]]), pi = { key: 2 }, vi = /* @_
|
|
|
4844
4879
|
height: s.model.survey.renderedLogoHeight,
|
|
4845
4880
|
alt: s.model.survey.locTitle.renderedHtml,
|
|
4846
4881
|
style: S({ objectFit: s.model.survey.logoFit, width: s.model.survey.renderedStyleLogoWidth, height: s.model.survey.renderedStyleLogoHeight })
|
|
4847
|
-
}, null, 14,
|
|
4882
|
+
}, null, 14, Ci)
|
|
4848
4883
|
], 2)
|
|
4849
4884
|
])) : d("", !0),
|
|
4850
4885
|
s.model.showTitle ? (i(), u("div", {
|
|
@@ -4852,7 +4887,7 @@ const ci = /* @__PURE__ */ he(ui, [["render", mi]]), pi = { key: 2 }, vi = /* @_
|
|
|
4852
4887
|
class: "sv-header__title",
|
|
4853
4888
|
style: S({ maxWidth: s.model.textAreaWidth })
|
|
4854
4889
|
}, [
|
|
4855
|
-
|
|
4890
|
+
C(e, {
|
|
4856
4891
|
element: s.model.survey,
|
|
4857
4892
|
css: s.model.survey.css
|
|
4858
4893
|
}, null, 8, ["element", "css"])
|
|
@@ -4866,7 +4901,7 @@ const ci = /* @__PURE__ */ he(ui, [["render", mi]]), pi = { key: 2 }, vi = /* @_
|
|
|
4866
4901
|
key: 0,
|
|
4867
4902
|
class: l(s.model.survey.css.description)
|
|
4868
4903
|
}, [
|
|
4869
|
-
|
|
4904
|
+
C(n, {
|
|
4870
4905
|
locString: s.model.survey.locDescription
|
|
4871
4906
|
}, null, 8, ["locString"])
|
|
4872
4907
|
], 2)) : d("", !0)
|
|
@@ -4875,10 +4910,10 @@ const ci = /* @__PURE__ */ he(ui, [["render", mi]]), pi = { key: 2 }, vi = /* @_
|
|
|
4875
4910
|
], 6);
|
|
4876
4911
|
};
|
|
4877
4912
|
}
|
|
4878
|
-
}),
|
|
4913
|
+
}), ki = { class: "sv-header--mobile" }, fi = {
|
|
4879
4914
|
key: 0,
|
|
4880
4915
|
class: "sv-header__logo"
|
|
4881
|
-
},
|
|
4916
|
+
}, Ii = ["src", "width", "height", "alt"], wi = /* @__PURE__ */ h({
|
|
4882
4917
|
__name: "HeaderMobile",
|
|
4883
4918
|
props: {
|
|
4884
4919
|
model: {}
|
|
@@ -4886,8 +4921,8 @@ const ci = /* @__PURE__ */ he(ui, [["render", mi]]), pi = { key: 2 }, vi = /* @_
|
|
|
4886
4921
|
setup(r) {
|
|
4887
4922
|
return (s, o) => {
|
|
4888
4923
|
const e = p("survey-element-title"), n = p("survey-string");
|
|
4889
|
-
return i(), u("div",
|
|
4890
|
-
s.model.survey.hasLogo ? (i(), u("div",
|
|
4924
|
+
return i(), u("div", ki, [
|
|
4925
|
+
s.model.survey.hasLogo ? (i(), u("div", fi, [
|
|
4891
4926
|
c("div", {
|
|
4892
4927
|
class: l(s.model.survey.logoClassNames)
|
|
4893
4928
|
}, [
|
|
@@ -4898,7 +4933,7 @@ const ci = /* @__PURE__ */ he(ui, [["render", mi]]), pi = { key: 2 }, vi = /* @_
|
|
|
4898
4933
|
height: s.model.survey.renderedLogoHeight,
|
|
4899
4934
|
alt: s.model.survey.locTitle.renderedHtml,
|
|
4900
4935
|
style: S({ objectFit: s.model.survey.logoFit, width: s.model.survey.renderedStyleLogoWidth, height: s.model.survey.renderedStyleLogoHeight })
|
|
4901
|
-
}, null, 14,
|
|
4936
|
+
}, null, 14, Ii)
|
|
4902
4937
|
], 2)
|
|
4903
4938
|
])) : d("", !0),
|
|
4904
4939
|
s.model.survey.hasTitle ? (i(), u("div", {
|
|
@@ -4906,7 +4941,7 @@ const ci = /* @__PURE__ */ he(ui, [["render", mi]]), pi = { key: 2 }, vi = /* @_
|
|
|
4906
4941
|
class: "sv-header__title",
|
|
4907
4942
|
style: S({ maxWidth: s.model.renderedtextAreaWidth })
|
|
4908
4943
|
}, [
|
|
4909
|
-
|
|
4944
|
+
C(e, {
|
|
4910
4945
|
element: s.model.survey,
|
|
4911
4946
|
css: s.model.survey.css
|
|
4912
4947
|
}, null, 8, ["element", "css"])
|
|
@@ -4920,7 +4955,7 @@ const ci = /* @__PURE__ */ he(ui, [["render", mi]]), pi = { key: 2 }, vi = /* @_
|
|
|
4920
4955
|
key: 0,
|
|
4921
4956
|
class: l(s.model.survey.css.description)
|
|
4922
4957
|
}, [
|
|
4923
|
-
|
|
4958
|
+
C(n, {
|
|
4924
4959
|
locString: s.model.survey.locDescription
|
|
4925
4960
|
}, null, 8, ["locString"])
|
|
4926
4961
|
], 2)) : d("", !0)
|
|
@@ -4928,7 +4963,7 @@ const ci = /* @__PURE__ */ he(ui, [["render", mi]]), pi = { key: 2 }, vi = /* @_
|
|
|
4928
4963
|
]);
|
|
4929
4964
|
};
|
|
4930
4965
|
}
|
|
4931
|
-
}),
|
|
4966
|
+
}), Si = /* @__PURE__ */ h({
|
|
4932
4967
|
__name: "Element",
|
|
4933
4968
|
props: {
|
|
4934
4969
|
element: {},
|
|
@@ -4969,17 +5004,17 @@ const ci = /* @__PURE__ */ he(ui, [["render", mi]]), pi = { key: 2 }, vi = /* @_
|
|
|
4969
5004
|
}, null, 8, ["element", "css"])) : d("", !0)
|
|
4970
5005
|
], 6));
|
|
4971
5006
|
}
|
|
4972
|
-
}),
|
|
5007
|
+
}), Ri = /* @__PURE__ */ h({
|
|
4973
5008
|
__name: "TemplateRenderer",
|
|
4974
5009
|
props: {
|
|
4975
5010
|
componentName: {},
|
|
4976
5011
|
componentData: {}
|
|
4977
5012
|
},
|
|
4978
5013
|
setup(r) {
|
|
4979
|
-
const s =
|
|
4980
|
-
return (e, n) => o.value && !e.componentName ?
|
|
5014
|
+
const s = $e(), o = w(() => !!s.default);
|
|
5015
|
+
return (e, n) => o.value && !e.componentName ? _e(e.$slots, "default", { key: 0 }) : (i(), q(T(e.componentName), F(W({ key: 1 }, e.componentData)), null, 16));
|
|
4981
5016
|
}
|
|
4982
|
-
}),
|
|
5017
|
+
}), Ti = /* @__PURE__ */ h({
|
|
4983
5018
|
__name: "FileCleanButton",
|
|
4984
5019
|
props: {
|
|
4985
5020
|
question: {},
|
|
@@ -5003,7 +5038,7 @@ const ci = /* @__PURE__ */ he(ui, [["render", mi]]), pi = { key: 2 }, vi = /* @_
|
|
|
5003
5038
|
], 2);
|
|
5004
5039
|
};
|
|
5005
5040
|
}
|
|
5006
|
-
}),
|
|
5041
|
+
}), $i = ["id"], _i = /* @__PURE__ */ h({
|
|
5007
5042
|
__name: "FileVideo",
|
|
5008
5043
|
props: {
|
|
5009
5044
|
question: {}
|
|
@@ -5014,10 +5049,10 @@ const ci = /* @__PURE__ */ he(ui, [["render", mi]]), pi = { key: 2 }, vi = /* @_
|
|
|
5014
5049
|
return i(), u("div", {
|
|
5015
5050
|
class: l(s.question.cssClasses.videoContainer)
|
|
5016
5051
|
}, [
|
|
5017
|
-
|
|
5052
|
+
C(e, {
|
|
5018
5053
|
item: s.question.changeCameraAction
|
|
5019
5054
|
}, null, 8, ["item"]),
|
|
5020
|
-
|
|
5055
|
+
C(e, {
|
|
5021
5056
|
item: s.question.closeCameraAction
|
|
5022
5057
|
}, null, 8, ["item"]),
|
|
5023
5058
|
c("video", {
|
|
@@ -5025,14 +5060,14 @@ const ci = /* @__PURE__ */ he(ui, [["render", mi]]), pi = { key: 2 }, vi = /* @_
|
|
|
5025
5060
|
playsinline: "",
|
|
5026
5061
|
id: s.question.videoId,
|
|
5027
5062
|
class: l(s.question.cssClasses.video)
|
|
5028
|
-
}, null, 10,
|
|
5029
|
-
|
|
5063
|
+
}, null, 10, $i),
|
|
5064
|
+
C(e, {
|
|
5030
5065
|
item: s.question.takePictureAction
|
|
5031
5066
|
}, null, 8, ["item"])
|
|
5032
5067
|
], 2);
|
|
5033
5068
|
};
|
|
5034
5069
|
}
|
|
5035
|
-
}),
|
|
5070
|
+
}), Di = ["for", "aria-label"], Bi = /* @__PURE__ */ h({
|
|
5036
5071
|
__name: "FileChooseButton",
|
|
5037
5072
|
props: {
|
|
5038
5073
|
data: {},
|
|
@@ -5060,12 +5095,12 @@ const ci = /* @__PURE__ */ he(ui, [["render", mi]]), pi = { key: 2 }, vi = /* @_
|
|
|
5060
5095
|
size: "auto"
|
|
5061
5096
|
}, null, 8, ["title", "iconName"])) : d("", !0),
|
|
5062
5097
|
c("span", null, R(o.value.chooseButtonText), 1)
|
|
5063
|
-
], 10,
|
|
5098
|
+
], 10, Di)), [
|
|
5064
5099
|
[a]
|
|
5065
5100
|
]);
|
|
5066
5101
|
};
|
|
5067
5102
|
}
|
|
5068
|
-
}),
|
|
5103
|
+
}), Li = ["onClick", "href", "title", "download"], Ni = ["src"], Pi = ["onClick"], Ai = ["onClick", "href", "title", "download"], Mi = /* @__PURE__ */ h({
|
|
5069
5104
|
__name: "FilePreview",
|
|
5070
5105
|
props: {
|
|
5071
5106
|
question: {}
|
|
@@ -5091,7 +5126,7 @@ const ci = /* @__PURE__ */ he(ui, [["render", mi]]), pi = { key: 2 }, vi = /* @_
|
|
|
5091
5126
|
title: n.name,
|
|
5092
5127
|
download: n.name,
|
|
5093
5128
|
style: S({ width: s.question.imageWidth })
|
|
5094
|
-
}, R(n.name), 13,
|
|
5129
|
+
}, R(n.name), 13, Li)
|
|
5095
5130
|
], 2)) : d("", !0),
|
|
5096
5131
|
c("div", {
|
|
5097
5132
|
class: l(s.question.getImageWrapperCss(n))
|
|
@@ -5104,7 +5139,7 @@ const ci = /* @__PURE__ */ he(ui, [["render", mi]]), pi = { key: 2 }, vi = /* @_
|
|
|
5104
5139
|
width: s.question.imageWidth
|
|
5105
5140
|
}),
|
|
5106
5141
|
alt: "File preview"
|
|
5107
|
-
}, null, 12,
|
|
5142
|
+
}, null, 12, Ni)) : d("", !0),
|
|
5108
5143
|
s.question.defaultImage(n) ? (i(), q(e, {
|
|
5109
5144
|
key: 1,
|
|
5110
5145
|
iconName: s.question.cssClasses.defaultImageIconId,
|
|
@@ -5126,7 +5161,7 @@ const ci = /* @__PURE__ */ he(ui, [["render", mi]]), pi = { key: 2 }, vi = /* @_
|
|
|
5126
5161
|
iconName: s.question.cssClasses.removeFileSvgIconId,
|
|
5127
5162
|
size: "auto"
|
|
5128
5163
|
}, null, 8, ["title", "class", "iconName"])) : d("", !0)
|
|
5129
|
-
], 10,
|
|
5164
|
+
], 10, Pi)) : d("", !0)
|
|
5130
5165
|
], 2),
|
|
5131
5166
|
n.name && s.question.cssClasses.fileSignBottom ? (i(), u("div", {
|
|
5132
5167
|
key: 1,
|
|
@@ -5138,7 +5173,7 @@ const ci = /* @__PURE__ */ he(ui, [["render", mi]]), pi = { key: 2 }, vi = /* @_
|
|
|
5138
5173
|
title: n.name,
|
|
5139
5174
|
download: n.name,
|
|
5140
5175
|
style: S({ width: s.question.imageWidth })
|
|
5141
|
-
}, R(n.name), 13,
|
|
5176
|
+
}, R(n.name), 13, Ai)
|
|
5142
5177
|
], 2)) : d("", !0)
|
|
5143
5178
|
], 2)), [
|
|
5144
5179
|
[M, n && s.question.isPreviewVisible(t)]
|
|
@@ -5146,7 +5181,7 @@ const ci = /* @__PURE__ */ he(ui, [["render", mi]]), pi = { key: 2 }, vi = /* @_
|
|
|
5146
5181
|
], 2)) : d("", !0);
|
|
5147
5182
|
};
|
|
5148
5183
|
}
|
|
5149
|
-
}),
|
|
5184
|
+
}), Hi = /* @__PURE__ */ h({
|
|
5150
5185
|
__name: "ButtonGroup",
|
|
5151
5186
|
props: {
|
|
5152
5187
|
question: {}
|
|
@@ -5170,7 +5205,7 @@ const ci = /* @__PURE__ */ he(ui, [["render", mi]]), pi = { key: 2 }, vi = /* @_
|
|
|
5170
5205
|
], 2);
|
|
5171
5206
|
};
|
|
5172
5207
|
}
|
|
5173
|
-
}),
|
|
5208
|
+
}), Wi = ["title"], Ei = ["name", "id", "aria-required", "aria-label", "aria-invalid", "aria-describedby", "disabled", "value"], Vi = ["title"], Oi = /* @__PURE__ */ h({
|
|
5174
5209
|
__name: "ButtonGroupItem",
|
|
5175
5210
|
props: {
|
|
5176
5211
|
item: {},
|
|
@@ -5179,7 +5214,7 @@ const ci = /* @__PURE__ */ he(ui, [["render", mi]]), pi = { key: 2 }, vi = /* @_
|
|
|
5179
5214
|
},
|
|
5180
5215
|
setup(r) {
|
|
5181
5216
|
const s = r, o = w(
|
|
5182
|
-
() => new
|
|
5217
|
+
() => new Fe(s.question, s.item, s.index)
|
|
5183
5218
|
), e = w({
|
|
5184
5219
|
get: () => s.question.renderedValue,
|
|
5185
5220
|
set: (n) => {
|
|
@@ -5207,7 +5242,7 @@ const ci = /* @__PURE__ */ he(ui, [["render", mi]]), pi = { key: 2 }, vi = /* @_
|
|
|
5207
5242
|
class: l(o.value.css.control),
|
|
5208
5243
|
"onUpdate:modelValue": t[0] || (t[0] = (m) => e.value = m),
|
|
5209
5244
|
value: o.value.value
|
|
5210
|
-
}, null, 10,
|
|
5245
|
+
}, null, 10, Ei), [
|
|
5211
5246
|
[ee, e.value]
|
|
5212
5247
|
]),
|
|
5213
5248
|
c("div", {
|
|
@@ -5224,22 +5259,22 @@ const ci = /* @__PURE__ */ he(ui, [["render", mi]]), pi = { key: 2 }, vi = /* @_
|
|
|
5224
5259
|
class: l(o.value.css.caption),
|
|
5225
5260
|
title: o.value.caption.renderedHtml
|
|
5226
5261
|
}, [
|
|
5227
|
-
|
|
5262
|
+
C(y, {
|
|
5228
5263
|
locString: o.value.caption
|
|
5229
5264
|
}, null, 8, ["locString"])
|
|
5230
|
-
], 10,
|
|
5265
|
+
], 10, Vi)) : d("", !0)
|
|
5231
5266
|
], 2)
|
|
5232
|
-
], 10,
|
|
5267
|
+
], 10, Wi);
|
|
5233
5268
|
};
|
|
5234
5269
|
}
|
|
5235
|
-
}),
|
|
5270
|
+
}), Fi = ["src", "width", "height", "alt"], zi = /* @__PURE__ */ h({
|
|
5236
5271
|
inheritAttrs: !1,
|
|
5237
5272
|
__name: "Logo",
|
|
5238
5273
|
props: {
|
|
5239
5274
|
data: {}
|
|
5240
5275
|
},
|
|
5241
5276
|
setup(r) {
|
|
5242
|
-
const s = r, o = w(() => s.data), e =
|
|
5277
|
+
const s = r, o = w(() => s.data), e = G(() => o.value.locLogo);
|
|
5243
5278
|
return (n, t) => (i(), u("div", {
|
|
5244
5279
|
class: l(o.value.logoClassNames)
|
|
5245
5280
|
}, [
|
|
@@ -5254,15 +5289,15 @@ const ci = /* @__PURE__ */ he(ui, [["render", mi]]), pi = { key: 2 }, vi = /* @_
|
|
|
5254
5289
|
width: o.value.renderedStyleLogoWidth,
|
|
5255
5290
|
height: o.value.renderedStyleLogoHeight
|
|
5256
5291
|
})
|
|
5257
|
-
}, null, 14,
|
|
5292
|
+
}, null, 14, Fi)
|
|
5258
5293
|
], 2));
|
|
5259
5294
|
}
|
|
5260
|
-
}),
|
|
5295
|
+
}), Ui = /* @__PURE__ */ h({
|
|
5261
5296
|
__name: "SvgBundle",
|
|
5262
5297
|
setup(r) {
|
|
5263
5298
|
const s = _();
|
|
5264
5299
|
return H(() => {
|
|
5265
|
-
s.value.innerHTML =
|
|
5300
|
+
s.value.innerHTML = ze.iconsRenderedHtml();
|
|
5266
5301
|
}), (o, e) => P((i(), u("svg", {
|
|
5267
5302
|
id: "sv-icon-holder-global-container",
|
|
5268
5303
|
ref_key: "root",
|
|
@@ -5272,31 +5307,32 @@ const ci = /* @__PURE__ */ he(ui, [["render", mi]]), pi = { key: 2 }, vi = /* @_
|
|
|
5272
5307
|
]);
|
|
5273
5308
|
}
|
|
5274
5309
|
});
|
|
5275
|
-
|
|
5276
|
-
function
|
|
5277
|
-
r.component("SurveyComponent",
|
|
5310
|
+
Ue.platform = "vue3";
|
|
5311
|
+
function Ki(r) {
|
|
5312
|
+
r.component("SurveyComponent", ve), r.component("sv-svg-bundle", Ui), r.component("PopupSurveyComponent", ye), r.component("survey", ve), r.component("popup-survey", ye), r.component("survey-header", Je), r.component("sv-logo-image", zi), r.component("survey-page", Ge), r.component("survey-row", Xe), r.component("survey-question", xe), r.component("survey-panel", os), r.component("survey-element-header", ts), r.component("survey-string", is), r.component("sv-string-viewer", as), r.component("sv-string-editor", ds), r.component("sv-skeleton", cs), r.component("survey-text", ys), r.component("survey-text-input", Cs), r.component("survey-checkbox", ws), r.component("survey-checkbox-item", Ts), r.component("survey-radiogroup", $s), r.component("survey-radiogroup-item", Bs), r.component("survey-signaturepad", As), r.component("survey-html", Hs), r.component("survey-image", Os), r.component("survey-expression", Fs), r.component("survey-file", Ks), r.component("sv-file-choose-btn", Bi), r.component("sv-file-clean-btn", Ti), r.component("sv-file-preview", Mi), r.component("sv-file-video", _i), r.component("survey-imagepicker", Qs), r.component("survey-imagepicker-item", Zs), r.component("survey-comment", sn), r.component("survey-dropdown", nn), r.component("sv-dropdown-select", ln), r.component("sv-dropdown-option-item", un), r.component("sv-dropdown", vn), r.component("survey-tagbox", yn), r.component("sv-tagbox", hn), r.component("sv-tagbox-item", In), r.component("sv-tagbox-filter", kn), r.component("survey-ranking", wn), r.component("survey-ranking-item", Dn), r.component("survey-rating", Nn), r.component("sv-rating-item", An), r.component("sv-rating-item-smiley", Hn), r.component("sv-rating-item-star", En), r.component("sv-rating-dropdown", Un), r.component("sv-rating-dropdown-item", zn), r.component("survey-boolean", jn), r.component("sv-boolean-radio", Qn), r.component("sv-boolean-radio-item", Xn), r.component("sv-boolean-checkbox", so), r.component("survey-multipletext", no), r.component("survey-multipletext-item", to), r.component("survey-matrix", mo), r.component("survey-matrix-cell", vo), r.component("survey-matrixdropdown", yo), r.component("survey-matrixtable", Co), r.component("survey-matrixheaderrequired", ko), r.component("survey-matrixdropdown-cell", Io), r.component("survey-matrixdynamic", wo), r.component("sv-matrix-remove-button", Ro), r.component("sv-matrix-drag-drop-icon", $o), r.component("sv-matrix-detail-button", Do), r.component("survey-paneldynamic", Bo), r.component("survey-paneldynamicprogress", Lo), r.component("survey-paneldynamicprogress-v2", No), r.component("sv-paneldynamic-add-btn", Po), r.component("sv-paneldynamic-next-btn", Mo), r.component("sv-paneldynamic-prev-btn", Wo), r.component("sv-paneldynamic-remove-btn", Eo), r.component("sv-paneldynamic-progress-text", Vo), r.component("sv-components-container", Ht), r.component("sv-progress-buttons", Ot), r.component("sv-progress-toc", Ft), r.component("sv-progress-pages", Z), r.component("sv-progress-questions", Z), r.component("sv-progress-correctquestions", Z), r.component("sv-progress-requiredquestions", Z), r.component("survey-errors", Fo), r.component("survey-question-comment", Ko), r.component("survey-element-title", jo), r.component("survey-element-title-content", Xo), r.component("sv-title-actions", xo), r.component("sv-brand-info", it), r.component("sv-svg-icon", at), r.component("sv-action-bar", ut), r.component("sv-action", ct), r.component("sv-action-bar-item", yt), r.component("sv-action-bar-item-dropdown", ht), r.component("sv-action-bar-separator", Ct), r.component("sv-list", It), r.component("sv-list-item", Rt), r.component("sv-popup", Tt), r.component("sv-popup-container", Pt), r.component("popup-pointer", At), r.component("sv-notifier", Yt), r.component("survey-other-choice", ei), r.component("sv-nav-btn", ni), r.component("survey-customwidget", ti), r.component("survey-popup-modal", ii), r.component("sv-character-counter", ri), r.component("survey-composite", li), r.component("survey-custom", ai), r.component("sv-timerpanel", mi), r.component("sv-loading-indicator", yi), r.component("sv-header", gi), r.component("sv-header-cell", bi), r.component("sv-header-mobile", wi), r.component("sv-template-renderer", Ri), r.component("survey-element", Si), r.component("survey-buttongroup", Hi), r.component("sv-button-group-item", Oi), r.directive("key2click", {
|
|
5278
5313
|
mounted: function(s, o) {
|
|
5279
5314
|
const e = { ...o.value };
|
|
5280
5315
|
if (e.disableTabStop) {
|
|
5281
5316
|
s.tabIndex = -1;
|
|
5282
5317
|
return;
|
|
5283
5318
|
}
|
|
5284
|
-
e.disableTabStop || (s.tabIndex = 0), s.addEventListener("keyup", (n) => (n.preventDefault(), n.stopPropagation(),
|
|
5285
|
-
|
|
5319
|
+
e.disableTabStop || (s.tabIndex = 0), s.addEventListener("keyup", (n) => (n.preventDefault(), n.stopPropagation(), ge(n, e), !1)), s.addEventListener("keydown", (n) => {
|
|
5320
|
+
Ke(n, e);
|
|
5286
5321
|
}), s.addEventListener("blur", (n) => {
|
|
5287
|
-
|
|
5322
|
+
je(n);
|
|
5288
5323
|
});
|
|
5289
5324
|
}
|
|
5290
5325
|
});
|
|
5291
5326
|
}
|
|
5292
|
-
const
|
|
5327
|
+
const Gi = {
|
|
5293
5328
|
install(r) {
|
|
5294
|
-
|
|
5329
|
+
Ki(r);
|
|
5295
5330
|
}
|
|
5296
5331
|
};
|
|
5297
5332
|
export {
|
|
5298
|
-
|
|
5333
|
+
Gi as surveyPlugin,
|
|
5299
5334
|
L as useBase,
|
|
5300
|
-
|
|
5335
|
+
le as useComputedArray,
|
|
5336
|
+
G as useLocString,
|
|
5301
5337
|
A as useQuestion
|
|
5302
5338
|
};
|