survey-vue3-ui 1.10.2 → 1.10.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +2 -4
- package/survey-vue3-ui.es.js +108 -107
- package/survey-vue3-ui.umd.js +1 -1
package/survey-vue3-ui.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { shallowReactive as Ce, watch as K, onBeforeUnmount as G, onMounted as M, ref as $, shallowRef as U, watchEffect as be, triggerRef as se, unref as w, isRef as ke, defineComponent as h, computed as
|
|
1
|
+
import { shallowReactive as Ce, watch as K, onBeforeUnmount as G, onMounted as M, ref as $, shallowRef as U, watchEffect as be, triggerRef as se, unref as w, isRef as ke, defineComponent as h, computed as S, resolveComponent as y, openBlock as i, createElementBlock as u, normalizeClass as a, createVNode as C, createCommentVNode as d, Fragment as _, renderList as D, createBlock as g, resolveDynamicComponent as T, normalizeProps as z, mergeProps as H, withCtx as F, normalizeStyle as I, createElementVNode as p, onUnmounted as O, guardReactiveProps as ne, withDirectives as P, vShow as E, toDisplayString as R, vModelRadio as x, vModelCheckbox as oe, vModelSelect as fe, onUpdated as te, vModelText as we, getCurrentInstance as ie, createStaticVNode as Ie, resolveDirective as X, toRaw as Se, Teleport as Re, useSlots as Te, renderSlot as $e } from "vue";
|
|
2
2
|
import { Base as _e, RendererFactory as ee, DropdownListModel as De, Helpers as Be, DropdownMultiSelectListModel as Le, doKey2ClickUp as ye, createSvg as Ne, ActionDropdownViewModel as Pe, getActionDropdownButtonTarget as Ae, createPopupViewModel as Me, SurveyProgressModel as de, ProgressButtonsResponsivityManager as Ee, PopupSurveyModel as He, settings as j, createDialogOptions as We, createPopupModalViewModel as Ve, ButtonGroupItemModel as Fe, SvgRegistry as Oe, SurveyModel as ze, doKey2ClickDown as Ue, doKey2ClickBlur as Ke } from "survey-core";
|
|
3
3
|
_e.createPropertiesHash = () => Ce({});
|
|
4
4
|
function Qe(r) {
|
|
@@ -85,7 +85,7 @@ const je = /* @__PURE__ */ h({
|
|
|
85
85
|
setup(r) {
|
|
86
86
|
const s = r, n = $(null), e = () => {
|
|
87
87
|
s.survey && n.value && s.survey.afterRenderPage(n.value);
|
|
88
|
-
}, o =
|
|
88
|
+
}, o = S(() => s.page._showDescription);
|
|
89
89
|
return B(
|
|
90
90
|
() => s.page,
|
|
91
91
|
() => {
|
|
@@ -155,7 +155,7 @@ const je = /* @__PURE__ */ h({
|
|
|
155
155
|
e.survey.renderedHasTitle ? (i(), u("div", {
|
|
156
156
|
key: 1,
|
|
157
157
|
class: a(e.survey.css.headerText),
|
|
158
|
-
style:
|
|
158
|
+
style: I({ maxWidth: e.survey.titleMaxWidth })
|
|
159
159
|
}, [
|
|
160
160
|
C(t, {
|
|
161
161
|
element: e.survey,
|
|
@@ -231,7 +231,7 @@ const je = /* @__PURE__ */ h({
|
|
|
231
231
|
css: {}
|
|
232
232
|
},
|
|
233
233
|
setup(r) {
|
|
234
|
-
const s = r, n = $(null), e =
|
|
234
|
+
const s = r, n = $(null), e = S(() => s.element.showErrorOnTop), o = S(() => s.element.showErrorOnBottom), t = (k) => k.cssContent, l = () => s.element.getRootStyle();
|
|
235
235
|
B(() => s.element);
|
|
236
236
|
const m = () => {
|
|
237
237
|
n.value && s.element.afterRender(n.value);
|
|
@@ -240,7 +240,7 @@ const je = /* @__PURE__ */ h({
|
|
|
240
240
|
() => {
|
|
241
241
|
m();
|
|
242
242
|
}
|
|
243
|
-
), c =
|
|
243
|
+
), c = S(() => s.element.customWidget ? "survey-customwidget" : s.element.isDefaultRendering() ? "survey-" + s.element.getTemplate() : s.element.getComponentName()), q = S(() => s.element.survey.getQuestionContentWrapperComponentName(s.element)), f = S(() => ({
|
|
244
244
|
componentData: {
|
|
245
245
|
question: s.element,
|
|
246
246
|
data: s.element.survey.getElementWrapperComponentData(s.element)
|
|
@@ -252,7 +252,7 @@ const je = /* @__PURE__ */ h({
|
|
|
252
252
|
const b = y("survey-errors"), N = y("survey-element-header"), W = y("survey-string"), V = y("survey-question-comment");
|
|
253
253
|
return i(), u("div", {
|
|
254
254
|
class: a(k.element.getRootCss()),
|
|
255
|
-
style:
|
|
255
|
+
style: I(l()),
|
|
256
256
|
ref_key: "root",
|
|
257
257
|
ref: n,
|
|
258
258
|
onFocusin: L[0] || (L[0] = (Q) => k.element.focusIn()),
|
|
@@ -343,7 +343,7 @@ const je = /* @__PURE__ */ h({
|
|
|
343
343
|
css: {}
|
|
344
344
|
},
|
|
345
345
|
setup(r) {
|
|
346
|
-
const s = r, n = $(null), e =
|
|
346
|
+
const s = r, n = $(null), e = S(() => s.element.survey);
|
|
347
347
|
return B(() => s.element), M(() => {
|
|
348
348
|
s.element.survey && s.element.survey.afterRenderPanel(s.element, n.value);
|
|
349
349
|
}), (o, t) => {
|
|
@@ -372,7 +372,7 @@ const je = /* @__PURE__ */ h({
|
|
|
372
372
|
o.element.renderedIsExpanded ? (i(), u("div", {
|
|
373
373
|
key: 3,
|
|
374
374
|
id: o.element.contentId,
|
|
375
|
-
style:
|
|
375
|
+
style: I({ paddingLeft: o.element.innerPaddingLeft }),
|
|
376
376
|
class: a(o.element.cssClasses.panel.content)
|
|
377
377
|
}, [
|
|
378
378
|
(i(!0), u(_, null, D(o.element.visibleRows, (q) => (i(), g(T(o.element.getSurvey().getRowWrapperComponentName(q)), z(H({
|
|
@@ -544,7 +544,7 @@ const je = /* @__PURE__ */ h({
|
|
|
544
544
|
n.getRef && n.getRef(l);
|
|
545
545
|
}, o = $(null);
|
|
546
546
|
s({ root: o }), B(() => n.question);
|
|
547
|
-
const t =
|
|
547
|
+
const t = S(() => n.question.inputStyle);
|
|
548
548
|
return (l, m) => {
|
|
549
549
|
const v = y("sv-character-counter");
|
|
550
550
|
return l.question.getMaxLength() ? (i(), u("div", {
|
|
@@ -560,7 +560,7 @@ const je = /* @__PURE__ */ h({
|
|
|
560
560
|
max: l.question.renderedMax,
|
|
561
561
|
step: l.question.renderedStep,
|
|
562
562
|
size: l.question.renderedInputSize,
|
|
563
|
-
style:
|
|
563
|
+
style: I(t.value),
|
|
564
564
|
id: l.question.inputId,
|
|
565
565
|
list: l.question.dataListId,
|
|
566
566
|
placeholder: l.question.renderedPlaceholder,
|
|
@@ -594,7 +594,7 @@ const je = /* @__PURE__ */ h({
|
|
|
594
594
|
max: l.question.renderedMax,
|
|
595
595
|
step: l.question.renderedStep,
|
|
596
596
|
size: l.question.renderedInputSize,
|
|
597
|
-
style:
|
|
597
|
+
style: I(t.value),
|
|
598
598
|
id: l.question.inputId,
|
|
599
599
|
list: l.question.dataListId,
|
|
600
600
|
placeholder: l.question.renderedPlaceholder,
|
|
@@ -790,7 +790,7 @@ const je = /* @__PURE__ */ h({
|
|
|
790
790
|
hideLabel: { type: Boolean }
|
|
791
791
|
},
|
|
792
792
|
setup(r) {
|
|
793
|
-
const s = r, n = (t) => s.question.getLabelClass(t), e = (t) => s.question.getControlLabelClass(t), o =
|
|
793
|
+
const s = r, n = (t) => s.question.getLabelClass(t), e = (t) => s.question.getControlLabelClass(t), o = S({
|
|
794
794
|
get: () => s.question.renderedValue,
|
|
795
795
|
set: (t) => {
|
|
796
796
|
const l = s.question;
|
|
@@ -858,7 +858,7 @@ const je = /* @__PURE__ */ h({
|
|
|
858
858
|
class: a(e.question.cssClasses.root),
|
|
859
859
|
ref_key: "root",
|
|
860
860
|
ref: n,
|
|
861
|
-
style:
|
|
861
|
+
style: I({
|
|
862
862
|
width: e.question.renderedCanvasWidth
|
|
863
863
|
})
|
|
864
864
|
}, [
|
|
@@ -876,7 +876,7 @@ const je = /* @__PURE__ */ h({
|
|
|
876
876
|
key: 0,
|
|
877
877
|
class: a(e.question.cssClasses.backgroundImage),
|
|
878
878
|
src: e.question.backgroundImage,
|
|
879
|
-
style:
|
|
879
|
+
style: I({
|
|
880
880
|
width: e.question.renderedCanvasWidth
|
|
881
881
|
})
|
|
882
882
|
}, null, 14, Bs)) : d("", !0),
|
|
@@ -956,7 +956,7 @@ const je = /* @__PURE__ */ h({
|
|
|
956
956
|
alt: o.question.altText || o.question.title,
|
|
957
957
|
width: o.question.renderedWidth,
|
|
958
958
|
height: o.question.renderedHeight,
|
|
959
|
-
style:
|
|
959
|
+
style: I({
|
|
960
960
|
objectFit: o.question.imageFit,
|
|
961
961
|
width: o.question.renderedStyleWidth,
|
|
962
962
|
height: o.question.renderedStyleHeight
|
|
@@ -977,7 +977,7 @@ const je = /* @__PURE__ */ h({
|
|
|
977
977
|
src: w(e),
|
|
978
978
|
width: o.question.renderedWidth,
|
|
979
979
|
height: o.question.renderedHeight,
|
|
980
|
-
style:
|
|
980
|
+
style: I({
|
|
981
981
|
objectFit: o.question.imageFit,
|
|
982
982
|
width: o.question.renderedStyleWidth,
|
|
983
983
|
height: o.question.renderedStyleHeight
|
|
@@ -997,7 +997,7 @@ const je = /* @__PURE__ */ h({
|
|
|
997
997
|
src: w(e),
|
|
998
998
|
width: o.question.renderedWidth,
|
|
999
999
|
height: o.question.renderedHeight,
|
|
1000
|
-
style:
|
|
1000
|
+
style: I({
|
|
1001
1001
|
objectFit: o.question.imageFit,
|
|
1002
1002
|
width: o.question.renderedStyleWidth,
|
|
1003
1003
|
height: o.question.renderedStyleHeight
|
|
@@ -1246,7 +1246,7 @@ const je = /* @__PURE__ */ h({
|
|
|
1246
1246
|
src: w(e),
|
|
1247
1247
|
width: o.question.renderedImageWidth,
|
|
1248
1248
|
height: o.question.renderedImageHeight,
|
|
1249
|
-
style:
|
|
1249
|
+
style: I({ objectFit: o.question.imageFit }),
|
|
1250
1250
|
alt: o.item.locText.renderedHtml,
|
|
1251
1251
|
onLoad: t[2] || (t[2] = (v) => {
|
|
1252
1252
|
o.question.onContentLoaded(o.item, v);
|
|
@@ -1262,7 +1262,7 @@ const je = /* @__PURE__ */ h({
|
|
|
1262
1262
|
src: w(e),
|
|
1263
1263
|
width: o.question.renderedImageWidth,
|
|
1264
1264
|
height: o.question.renderedImageHeight,
|
|
1265
|
-
style:
|
|
1265
|
+
style: I({ objectFit: o.question.imageFit }),
|
|
1266
1266
|
onLoadedmetadata: t[4] || (t[4] = (v) => {
|
|
1267
1267
|
o.question.onContentLoaded(o.item, v);
|
|
1268
1268
|
}),
|
|
@@ -1273,7 +1273,7 @@ const je = /* @__PURE__ */ h({
|
|
|
1273
1273
|
!w(e) || o.item.contentNotLoaded ? (i(), u("div", {
|
|
1274
1274
|
key: 3,
|
|
1275
1275
|
class: a(o.question.cssClasses.itemNoImage),
|
|
1276
|
-
style:
|
|
1276
|
+
style: I({
|
|
1277
1277
|
width: o.question.renderedImageWidth + "px",
|
|
1278
1278
|
height: o.question.renderedImageHeight + "px",
|
|
1279
1279
|
objectFit: o.question.imageFit
|
|
@@ -1341,7 +1341,7 @@ const je = /* @__PURE__ */ h({
|
|
|
1341
1341
|
"aria-describedby": o.question.a11y_input_ariaDescribedBy,
|
|
1342
1342
|
"aria-invalid": o.question.a11y_input_ariaInvalid,
|
|
1343
1343
|
"aria-errormessage": o.question.a11y_input_ariaErrormessage,
|
|
1344
|
-
style:
|
|
1344
|
+
style: I({ resize: o.question.resizeStyle })
|
|
1345
1345
|
}, null, 46, Zs)) : !o.question.isReadOnlyRenderDiv() && o.question.getMaxLength() ? (i(), u("div", {
|
|
1346
1346
|
key: 1,
|
|
1347
1347
|
ref_key: "root",
|
|
@@ -1370,7 +1370,7 @@ const je = /* @__PURE__ */ h({
|
|
|
1370
1370
|
"aria-describedby": o.question.a11y_input_ariaDescribedBy,
|
|
1371
1371
|
"aria-invalid": o.question.a11y_input_ariaInvalid,
|
|
1372
1372
|
"aria-errormessage": o.question.a11y_input_ariaErrormessage,
|
|
1373
|
-
style:
|
|
1373
|
+
style: I({ resize: o.question.resizeStyle })
|
|
1374
1374
|
}, null, 46, xs),
|
|
1375
1375
|
C(l, {
|
|
1376
1376
|
counter: o.question.characterCounter,
|
|
@@ -1428,7 +1428,7 @@ const rn = /* @__PURE__ */ h({
|
|
|
1428
1428
|
s.question.onClick(l);
|
|
1429
1429
|
}, o = (l) => {
|
|
1430
1430
|
s.question.onKeyUp(l);
|
|
1431
|
-
}, t =
|
|
1431
|
+
}, t = S({
|
|
1432
1432
|
get() {
|
|
1433
1433
|
var l;
|
|
1434
1434
|
return (l = s.question.value) != null ? l : "";
|
|
@@ -1511,7 +1511,7 @@ const rn = /* @__PURE__ */ h({
|
|
|
1511
1511
|
question: {}
|
|
1512
1512
|
},
|
|
1513
1513
|
setup(r) {
|
|
1514
|
-
const s = r, n = $(null), e =
|
|
1514
|
+
const s = r, n = $(null), e = S(() => {
|
|
1515
1515
|
const b = s.question;
|
|
1516
1516
|
return b.dropdownListModel || (b.dropdownListModel = new De(b)), s.question.dropdownListModel;
|
|
1517
1517
|
}), o = (b) => {
|
|
@@ -1539,9 +1539,9 @@ const rn = /* @__PURE__ */ h({
|
|
|
1539
1539
|
(N = e.value) == null || N.onFocus(b);
|
|
1540
1540
|
}, f = (b) => {
|
|
1541
1541
|
e.value.inputStringRendered = b.target.value;
|
|
1542
|
-
}, k =
|
|
1542
|
+
}, k = S(
|
|
1543
1543
|
() => s.question.showSelectedItemLocText
|
|
1544
|
-
), L =
|
|
1544
|
+
), L = S(() => s.question.selectedItemLocText);
|
|
1545
1545
|
return B(() => e.value), te(v), M(v), (b, N) => {
|
|
1546
1546
|
const W = y("survey-string"), V = y("sv-svg-icon"), Q = y("sv-popup");
|
|
1547
1547
|
return i(), u("div", {
|
|
@@ -1690,7 +1690,7 @@ const rn = /* @__PURE__ */ h({
|
|
|
1690
1690
|
question: {}
|
|
1691
1691
|
},
|
|
1692
1692
|
setup(r) {
|
|
1693
|
-
const s = r, n =
|
|
1693
|
+
const s = r, n = S(() => {
|
|
1694
1694
|
const c = s.question;
|
|
1695
1695
|
return c.dropdownListModel || (c.dropdownListModel = new Le(c)), s.question.dropdownListModel;
|
|
1696
1696
|
}), e = (c) => {
|
|
@@ -1981,7 +1981,7 @@ const rn = /* @__PURE__ */ h({
|
|
|
1981
1981
|
unrankedItem: { type: Boolean }
|
|
1982
1982
|
},
|
|
1983
1983
|
setup(r) {
|
|
1984
|
-
const s = r, n =
|
|
1984
|
+
const s = r, n = S(() => s.question.getNumberByIndex(s.index));
|
|
1985
1985
|
return B(() => s.item), (e, o) => {
|
|
1986
1986
|
const t = y("survey-string");
|
|
1987
1987
|
return i(), u("div", {
|
|
@@ -2159,7 +2159,7 @@ const rn = /* @__PURE__ */ h({
|
|
|
2159
2159
|
return i(), u("label", {
|
|
2160
2160
|
key: n.item.value,
|
|
2161
2161
|
onMousedown: e[1] || (e[1] = (t) => n.question.onMouseDown()),
|
|
2162
|
-
style:
|
|
2162
|
+
style: I(n.question.getItemStyle(n.item.itemValue, n.item.highlight)),
|
|
2163
2163
|
class: a(n.question.getItemClass(n.item.itemValue, n.item.highlight)),
|
|
2164
2164
|
onMouseover: e[2] || (e[2] = (t) => n.question.onItemMouseIn(n.item)),
|
|
2165
2165
|
onMouseleave: e[3] || (e[3] = (t) => n.question.onItemMouseOut(n.item))
|
|
@@ -2340,7 +2340,8 @@ const zn = /* @__PURE__ */ h({
|
|
|
2340
2340
|
onClick: l[2] || (l[2] = (c) => o(c))
|
|
2341
2341
|
}, [
|
|
2342
2342
|
p("span", {
|
|
2343
|
-
class: a(t.question.cssClasses.slider)
|
|
2343
|
+
class: a(t.question.cssClasses.slider),
|
|
2344
|
+
style: I({ marginLeft: t.question.thumbMargin })
|
|
2344
2345
|
}, [
|
|
2345
2346
|
t.question.cssClasses.sliderText && t.question.isDeterminated ? (i(), u("span", {
|
|
2346
2347
|
key: 0,
|
|
@@ -2350,7 +2351,7 @@ const zn = /* @__PURE__ */ h({
|
|
|
2350
2351
|
locString: t.question.getCheckedLabel()
|
|
2351
2352
|
}, null, 8, ["locString"])
|
|
2352
2353
|
], 2)) : d("", !0)
|
|
2353
|
-
],
|
|
2354
|
+
], 6)
|
|
2354
2355
|
], 2),
|
|
2355
2356
|
p("div", {
|
|
2356
2357
|
class: a(t.question.cssClasses.sliderGhost),
|
|
@@ -2603,7 +2604,7 @@ const so = /* @__PURE__ */ h({
|
|
|
2603
2604
|
setup(r) {
|
|
2604
2605
|
const s = r, n = (o) => re(o);
|
|
2605
2606
|
B(() => s.cell.item.editor);
|
|
2606
|
-
const e =
|
|
2607
|
+
const e = S(() => s.cell.item);
|
|
2607
2608
|
return (o, t) => {
|
|
2608
2609
|
const l = y("survey-string"), m = y("survey-errors");
|
|
2609
2610
|
return o.cell.isErrorsCell ? (i(), g(m, {
|
|
@@ -2615,7 +2616,7 @@ const so = /* @__PURE__ */ h({
|
|
|
2615
2616
|
}, [
|
|
2616
2617
|
p("span", {
|
|
2617
2618
|
class: a(o.question.getItemTitleCss()),
|
|
2618
|
-
style:
|
|
2619
|
+
style: I({ minWidth: o.question.itemTitleWidth, width: o.question.itemTitleWidth })
|
|
2619
2620
|
}, [
|
|
2620
2621
|
e.value.editor.isRequireTextBeforeTitle || e.value.editor.isRequireTextOnStart ? (i(), u("span", {
|
|
2621
2622
|
key: 0,
|
|
@@ -2685,7 +2686,7 @@ const so = /* @__PURE__ */ h({
|
|
|
2685
2686
|
(i(!0), u(_, null, D(t.question.visibleColumns, (v, c) => (i(), u("th", {
|
|
2686
2687
|
key: c,
|
|
2687
2688
|
class: a(t.question.cssClasses.headerCell),
|
|
2688
|
-
style:
|
|
2689
|
+
style: I({
|
|
2689
2690
|
minWidth: t.question.columnMinWidth,
|
|
2690
2691
|
width: t.question.columnMinWidth
|
|
2691
2692
|
})
|
|
@@ -2710,7 +2711,7 @@ const so = /* @__PURE__ */ h({
|
|
|
2710
2711
|
}, [
|
|
2711
2712
|
P(p("td", {
|
|
2712
2713
|
class: a(v.rowTextClasses),
|
|
2713
|
-
style:
|
|
2714
|
+
style: I({
|
|
2714
2715
|
minWidth: t.question.rowTitleWidth,
|
|
2715
2716
|
width: t.question.rowTitleWidth
|
|
2716
2717
|
})
|
|
@@ -2874,7 +2875,7 @@ const so = /* @__PURE__ */ h({
|
|
|
2874
2875
|
question: {}
|
|
2875
2876
|
},
|
|
2876
2877
|
setup(r) {
|
|
2877
|
-
const s = r, n =
|
|
2878
|
+
const s = r, n = S(() => s.question.renderedTable);
|
|
2878
2879
|
return B(
|
|
2879
2880
|
() => n.value,
|
|
2880
2881
|
(e) => {
|
|
@@ -2891,7 +2892,7 @@ const so = /* @__PURE__ */ h({
|
|
|
2891
2892
|
), (e, o) => {
|
|
2892
2893
|
const t = y("survey-string"), l = y("survey-matrixheaderrequired"), m = y("survey-matrix-row"), v = y("survey-matrixdropdown-cell");
|
|
2893
2894
|
return i(), u("div", {
|
|
2894
|
-
style:
|
|
2895
|
+
style: I({ overflowX: e.question.showHorizontalScroll ? "scroll" : "" }),
|
|
2895
2896
|
class: a(e.question.cssClasses.tableWrapper)
|
|
2896
2897
|
}, [
|
|
2897
2898
|
p("table", {
|
|
@@ -2903,7 +2904,7 @@ const so = /* @__PURE__ */ h({
|
|
|
2903
2904
|
c.hasTitle ? (i(), u("th", {
|
|
2904
2905
|
key: "header_" + c.id,
|
|
2905
2906
|
class: a(c.className),
|
|
2906
|
-
style:
|
|
2907
|
+
style: I({ minWidth: c.minWidth, width: c.width })
|
|
2907
2908
|
}, [
|
|
2908
2909
|
(i(), g(T(e.question.getColumnHeaderWrapperComponentName(c)), {
|
|
2909
2910
|
componentData: e.question.getColumnHeaderWrapperComponentData(c)
|
|
@@ -2924,7 +2925,7 @@ const so = /* @__PURE__ */ h({
|
|
|
2924
2925
|
c.hasTitle ? d("", !0) : (i(), u("td", {
|
|
2925
2926
|
class: a(c.className),
|
|
2926
2927
|
key: "header_" + c.id,
|
|
2927
|
-
style:
|
|
2928
|
+
style: I({ minWidth: c.minWidth, width: c.width })
|
|
2928
2929
|
}, null, 6))
|
|
2929
2930
|
], 64))), 256))
|
|
2930
2931
|
])
|
|
@@ -2988,7 +2989,7 @@ const so = /* @__PURE__ */ h({
|
|
|
2988
2989
|
};
|
|
2989
2990
|
s.question.survey.matrixAfterCellRender(s.question, k), f && f.afterRenderCore(q);
|
|
2990
2991
|
});
|
|
2991
|
-
const v =
|
|
2992
|
+
const v = S(() => {
|
|
2992
2993
|
const q = s.cell;
|
|
2993
2994
|
if (q.hasPanel) {
|
|
2994
2995
|
const f = q.panel, k = f.survey;
|
|
@@ -2999,7 +3000,7 @@ const so = /* @__PURE__ */ h({
|
|
|
2999
3000
|
}
|
|
3000
3001
|
return "survey-panel";
|
|
3001
3002
|
}
|
|
3002
|
-
}), c =
|
|
3003
|
+
}), c = S(() => {
|
|
3003
3004
|
if (s.cell.hasPanel) {
|
|
3004
3005
|
const f = s.cell.panel, k = f.survey;
|
|
3005
3006
|
let L;
|
|
@@ -3019,7 +3020,7 @@ const so = /* @__PURE__ */ h({
|
|
|
3019
3020
|
class: a(q.cell.className),
|
|
3020
3021
|
"data-responsive-title": o(),
|
|
3021
3022
|
title: q.cell.getTitle(),
|
|
3022
|
-
style:
|
|
3023
|
+
style: I(t()),
|
|
3023
3024
|
colspan: q.cell.colSpans,
|
|
3024
3025
|
onFocusin: f[0] || (f[0] = (ue) => q.cell.focusIn()),
|
|
3025
3026
|
ref_key: "root",
|
|
@@ -3191,8 +3192,8 @@ const so = /* @__PURE__ */ h({
|
|
|
3191
3192
|
});
|
|
3192
3193
|
function ae(r, s = !0) {
|
|
3193
3194
|
return {
|
|
3194
|
-
question:
|
|
3195
|
-
row: s ?
|
|
3195
|
+
question: S(() => r.item.data.question),
|
|
3196
|
+
row: s ? S(() => r.item.data.row) : void 0
|
|
3196
3197
|
};
|
|
3197
3198
|
}
|
|
3198
3199
|
const Ro = ["disabled"], To = /* @__PURE__ */ h({
|
|
@@ -3338,7 +3339,7 @@ const Ro = ["disabled"], To = /* @__PURE__ */ h({
|
|
|
3338
3339
|
}, [
|
|
3339
3340
|
p("div", {
|
|
3340
3341
|
class: a(m.question.cssClasses.progressBar),
|
|
3341
|
-
style:
|
|
3342
|
+
style: I({ width: m.question.progress }),
|
|
3342
3343
|
role: "progressbar"
|
|
3343
3344
|
}, null, 6)
|
|
3344
3345
|
], 2)) : d("", !0),
|
|
@@ -3410,7 +3411,7 @@ const Ro = ["disabled"], To = /* @__PURE__ */ h({
|
|
|
3410
3411
|
}, [
|
|
3411
3412
|
p("div", {
|
|
3412
3413
|
class: a(e.question.cssClasses.progressBar),
|
|
3413
|
-
style:
|
|
3414
|
+
style: I({ width: e.question.progress }),
|
|
3414
3415
|
role: "progressbar"
|
|
3415
3416
|
}, null, 6)
|
|
3416
3417
|
], 2)) : d("", !0),
|
|
@@ -3449,7 +3450,7 @@ const Ro = ["disabled"], To = /* @__PURE__ */ h({
|
|
|
3449
3450
|
}, [
|
|
3450
3451
|
p("div", {
|
|
3451
3452
|
class: a(s.question.cssClasses.progressBar),
|
|
3452
|
-
style:
|
|
3453
|
+
style: I({ width: s.question.progress }),
|
|
3453
3454
|
role: "progressbar"
|
|
3454
3455
|
}, null, 6)
|
|
3455
3456
|
], 2)) : d("", !0),
|
|
@@ -3466,7 +3467,7 @@ const Ro = ["disabled"], To = /* @__PURE__ */ h({
|
|
|
3466
3467
|
}
|
|
3467
3468
|
});
|
|
3468
3469
|
function Y(r) {
|
|
3469
|
-
return
|
|
3470
|
+
return S(
|
|
3470
3471
|
() => r.item && r.item.data.question || r.data.question
|
|
3471
3472
|
);
|
|
3472
3473
|
}
|
|
@@ -3553,7 +3554,7 @@ const Ao = /* @__PURE__ */ h({
|
|
|
3553
3554
|
data: {}
|
|
3554
3555
|
},
|
|
3555
3556
|
setup(r) {
|
|
3556
|
-
const s = r, n = Y(s), e =
|
|
3557
|
+
const s = r, n = Y(s), e = S(
|
|
3557
3558
|
() => s.item && s.item.data.panel || s.data.panel
|
|
3558
3559
|
), o = (t) => {
|
|
3559
3560
|
n.value.isInputReadOnly || n.value.removePanelUI(t);
|
|
@@ -3633,7 +3634,7 @@ const Ao = /* @__PURE__ */ h({
|
|
|
3633
3634
|
placeholder: s.question.renderedCommentPlaceholder,
|
|
3634
3635
|
"aria-label": s.question.ariaLabel || s.question.a11y_input_ariaLabel,
|
|
3635
3636
|
"aria-required": s.question.ariaRequired || s.question.a11y_input_ariaRequired,
|
|
3636
|
-
style:
|
|
3637
|
+
style: I({ resize: s.question.resizeStyle }),
|
|
3637
3638
|
onChange: n[0] || (n[0] = (e) => {
|
|
3638
3639
|
s.question.onCommentChange(e);
|
|
3639
3640
|
}),
|
|
@@ -3690,7 +3691,7 @@ const Ao = /* @__PURE__ */ h({
|
|
|
3690
3691
|
css: {}
|
|
3691
3692
|
},
|
|
3692
3693
|
setup(r) {
|
|
3693
|
-
const s = r, n =
|
|
3694
|
+
const s = r, n = S(
|
|
3694
3695
|
() => (s.element.isPanel ? s.element.cssClasses.panel : s.element.cssClasses) || {}
|
|
3695
3696
|
);
|
|
3696
3697
|
return (e, o) => {
|
|
@@ -3738,7 +3739,7 @@ const Ao = /* @__PURE__ */ h({
|
|
|
3738
3739
|
css: {}
|
|
3739
3740
|
},
|
|
3740
3741
|
setup(r) {
|
|
3741
|
-
const s = r, n =
|
|
3742
|
+
const s = r, n = S(() => s.element.getTitleToolbar());
|
|
3742
3743
|
return (e, o) => {
|
|
3743
3744
|
const t = y("survey-string"), l = y("survey-element-title-content"), m = y("sv-action-bar");
|
|
3744
3745
|
return i(), u("div", Zo, [
|
|
@@ -3870,7 +3871,7 @@ const rt = /* @__PURE__ */ he(st, [["render", it]]), lt = /* @__PURE__ */ p("use
|
|
|
3870
3871
|
item: {}
|
|
3871
3872
|
},
|
|
3872
3873
|
setup(r) {
|
|
3873
|
-
const s = r, n =
|
|
3874
|
+
const s = r, n = S(
|
|
3874
3875
|
() => s.item.component || "sv-action-bar-item"
|
|
3875
3876
|
);
|
|
3876
3877
|
return B(() => s.item), (e, o) => {
|
|
@@ -3991,7 +3992,7 @@ const rt = /* @__PURE__ */ he(st, [["render", it]]), lt = /* @__PURE__ */ p("use
|
|
|
3991
3992
|
item: {}
|
|
3992
3993
|
},
|
|
3993
3994
|
setup(r) {
|
|
3994
|
-
const s = r, n =
|
|
3995
|
+
const s = r, n = S(() => s.item && s.item.innerCss);
|
|
3995
3996
|
return (e, o) => (i(), u("div", {
|
|
3996
3997
|
class: a(["sv-action-bar-separator", n.value])
|
|
3997
3998
|
}, null, 2));
|
|
@@ -4095,7 +4096,7 @@ const rt = /* @__PURE__ */ he(st, [["render", it]]), lt = /* @__PURE__ */ p("use
|
|
|
4095
4096
|
item: {}
|
|
4096
4097
|
},
|
|
4097
4098
|
setup(r) {
|
|
4098
|
-
const s = r, n =
|
|
4099
|
+
const s = r, n = S(() => s.item.elementId), e = (o) => {
|
|
4099
4100
|
s.model.onItemClick(s.item), o.stopPropagation();
|
|
4100
4101
|
};
|
|
4101
4102
|
return B(() => s.item), M(() => {
|
|
@@ -4119,7 +4120,7 @@ const rt = /* @__PURE__ */ he(st, [["render", it]]), lt = /* @__PURE__ */ p("use
|
|
|
4119
4120
|
class: a(o.model.cssClasses.itemSeparator)
|
|
4120
4121
|
}, null, 2)) : d("", !0),
|
|
4121
4122
|
p("div", {
|
|
4122
|
-
style:
|
|
4123
|
+
style: I({ paddingInlineStart: o.model.getItemIndent(o.item) }),
|
|
4123
4124
|
class: a(o.model.cssClasses.itemBody),
|
|
4124
4125
|
title: o.item.locTitle.calculatedText
|
|
4125
4126
|
}, [
|
|
@@ -4210,7 +4211,7 @@ const rt = /* @__PURE__ */ he(st, [["render", it]]), lt = /* @__PURE__ */ p("use
|
|
|
4210
4211
|
}, [
|
|
4211
4212
|
p("div", {
|
|
4212
4213
|
class: "sv-popup__container",
|
|
4213
|
-
style:
|
|
4214
|
+
style: I({
|
|
4214
4215
|
left: e.model.left,
|
|
4215
4216
|
top: e.model.top,
|
|
4216
4217
|
height: e.model.height,
|
|
@@ -4252,7 +4253,7 @@ const rt = /* @__PURE__ */ he(st, [["render", it]]), lt = /* @__PURE__ */ p("use
|
|
|
4252
4253
|
setup(r) {
|
|
4253
4254
|
return (s, n) => (i(), u("span", {
|
|
4254
4255
|
class: "sv-popup__pointer",
|
|
4255
|
-
style:
|
|
4256
|
+
style: I({
|
|
4256
4257
|
left: s.model.pointerTarget.left,
|
|
4257
4258
|
top: s.model.pointerTarget.top
|
|
4258
4259
|
})
|
|
@@ -4269,7 +4270,7 @@ const rt = /* @__PURE__ */ he(st, [["render", it]]), lt = /* @__PURE__ */ p("use
|
|
|
4269
4270
|
needRenderWrapper: {}
|
|
4270
4271
|
},
|
|
4271
4272
|
setup(r) {
|
|
4272
|
-
const s = r, n =
|
|
4273
|
+
const s = r, n = S(
|
|
4273
4274
|
() => s.survey.getContainerContent(s.container)
|
|
4274
4275
|
);
|
|
4275
4276
|
return (e, o) => n.value.length > 0 ? (i(), u(_, { key: 0 }, [
|
|
@@ -4294,13 +4295,13 @@ const rt = /* @__PURE__ */ he(st, [["render", it]]), lt = /* @__PURE__ */ p("use
|
|
|
4294
4295
|
css: {}
|
|
4295
4296
|
},
|
|
4296
4297
|
setup(r) {
|
|
4297
|
-
const s = r, n =
|
|
4298
|
+
const s = r, n = S(() => s.survey.progressValue + "%"), e = (t) => de.getProgressTextInBarCss(t), o = (t) => de.getProgressTextUnderBarCss(t);
|
|
4298
4299
|
return (t, l) => (i(), u("div", {
|
|
4299
4300
|
class: a(t.survey.getProgressCssClasses(t.container))
|
|
4300
4301
|
}, [
|
|
4301
4302
|
p("div", {
|
|
4302
4303
|
class: a(t.survey.css.progressBar),
|
|
4303
|
-
style:
|
|
4304
|
+
style: I({ width: n.value }),
|
|
4304
4305
|
role: "progressbar",
|
|
4305
4306
|
"aria-valuemin": "0",
|
|
4306
4307
|
"aria-valuemax": "100",
|
|
@@ -4323,7 +4324,7 @@ const rt = /* @__PURE__ */ he(st, [["render", it]]), lt = /* @__PURE__ */ p("use
|
|
|
4323
4324
|
container: {}
|
|
4324
4325
|
},
|
|
4325
4326
|
setup(r) {
|
|
4326
|
-
const s = r, n = $(!1), e = $(!1), o = $(!1), t = $(!0), l = $(), m =
|
|
4327
|
+
const s = r, n = $(!1), e = $(!1), o = $(!1), t = $(!0), l = $(), m = S(() => s.survey.css);
|
|
4327
4328
|
let v = null;
|
|
4328
4329
|
const c = (q) => {
|
|
4329
4330
|
let f = l.value;
|
|
@@ -4341,7 +4342,7 @@ const rt = /* @__PURE__ */ he(st, [["render", it]]), lt = /* @__PURE__ */ p("use
|
|
|
4341
4342
|
onUpdateSettings: () => {
|
|
4342
4343
|
t.value = s.model.showItemTitles, o.value = !s.model.showItemTitles;
|
|
4343
4344
|
},
|
|
4344
|
-
container:
|
|
4345
|
+
container: S(() => s.container)
|
|
4345
4346
|
});
|
|
4346
4347
|
}), G(() => {
|
|
4347
4348
|
v.dispose();
|
|
@@ -4349,7 +4350,7 @@ const rt = /* @__PURE__ */ he(st, [["render", it]]), lt = /* @__PURE__ */ p("use
|
|
|
4349
4350
|
const k = y("survey-string");
|
|
4350
4351
|
return i(), u("div", {
|
|
4351
4352
|
class: a(q.model.getRootCss(q.container)),
|
|
4352
|
-
style:
|
|
4353
|
+
style: I({ maxWidth: q.model.progressWidth }),
|
|
4353
4354
|
role: "progressbar",
|
|
4354
4355
|
"aria-valuemin": "0",
|
|
4355
4356
|
"aria-valuemax": "100",
|
|
@@ -4477,15 +4478,15 @@ const rt = /* @__PURE__ */ he(st, [["render", it]]), lt = /* @__PURE__ */ p("use
|
|
|
4477
4478
|
survey: {}
|
|
4478
4479
|
},
|
|
4479
4480
|
setup(r) {
|
|
4480
|
-
const s = r, n = $(), e = $(""), o = $(1), t =
|
|
4481
|
+
const s = r, n = $(), e = $(""), o = $(1), t = S(() => {
|
|
4481
4482
|
const k = s.survey ? s.survey : s.model;
|
|
4482
4483
|
return Se(k);
|
|
4483
|
-
}), l =
|
|
4484
|
+
}), l = S(() => t.value.activePage ? t.value.activePage.id : ""), m = () => {
|
|
4484
4485
|
const k = l.value;
|
|
4485
4486
|
return !!t.value && k + o.value.toString();
|
|
4486
|
-
}, v =
|
|
4487
|
+
}, v = S(
|
|
4487
4488
|
() => t.value.showCompletedPage && t.value.state === "completed"
|
|
4488
|
-
), c =
|
|
4489
|
+
), c = S(() => t.value.css), q = S(() => "page" + m()), f = () => v.value ? (e.value || (e.value = t.value.processedCompletedHtml), e.value) : "";
|
|
4489
4490
|
return B(() => t.value), M(() => {
|
|
4490
4491
|
if (!!t.value) {
|
|
4491
4492
|
var k = n.value;
|
|
@@ -4500,7 +4501,7 @@ const rt = /* @__PURE__ */ he(st, [["render", it]]), lt = /* @__PURE__ */ p("use
|
|
|
4500
4501
|
const b = y("sv-svg-bundle"), N = y("survey-popup-modal"), W = y("survey-header"), V = y("survey-page"), Q = y("sv-brand-info"), ue = y("sv-notifier");
|
|
4501
4502
|
return i(), u("div", {
|
|
4502
4503
|
class: a(t.value.getRootCss()),
|
|
4503
|
-
style:
|
|
4504
|
+
style: I(t.value.themeVariables),
|
|
4504
4505
|
ref_key: "root",
|
|
4505
4506
|
ref: n
|
|
4506
4507
|
}, [
|
|
@@ -4512,7 +4513,7 @@ const rt = /* @__PURE__ */ he(st, [["render", it]]), lt = /* @__PURE__ */ p("use
|
|
|
4512
4513
|
t.value.renderBackgroundImage ? (i(), u("div", {
|
|
4513
4514
|
key: 0,
|
|
4514
4515
|
class: a(c.value.rootBackgroundImage),
|
|
4515
|
-
style:
|
|
4516
|
+
style: I(t.value.backgroundImageStyle)
|
|
4516
4517
|
}, null, 6)) : d("", !0),
|
|
4517
4518
|
p("form", jt, [
|
|
4518
4519
|
t.value.hasLogo ? d("", !0) : (i(), u("div", Gt)),
|
|
@@ -4545,7 +4546,7 @@ const rt = /* @__PURE__ */ he(st, [["render", it]]), lt = /* @__PURE__ */ p("use
|
|
|
4545
4546
|
}, null, 8, ["survey"])),
|
|
4546
4547
|
p("div", {
|
|
4547
4548
|
class: a(t.value.bodyCss),
|
|
4548
|
-
style:
|
|
4549
|
+
style: I({ maxWidth: t.value.renderedWidth }),
|
|
4549
4550
|
id: l.value
|
|
4550
4551
|
}, [
|
|
4551
4552
|
(i(), g(T("sv-components-container"), {
|
|
@@ -4624,7 +4625,7 @@ const rt = /* @__PURE__ */ he(st, [["render", it]]), lt = /* @__PURE__ */ p("use
|
|
|
4624
4625
|
return n.model.isDisplayed ? (i(), u("div", {
|
|
4625
4626
|
key: 0,
|
|
4626
4627
|
class: a(n.model.css),
|
|
4627
|
-
style:
|
|
4628
|
+
style: I({ visibility: n.model.active ? "visible" : "hidden" }),
|
|
4628
4629
|
role: "alert",
|
|
4629
4630
|
"aria-live": "polite"
|
|
4630
4631
|
}, [
|
|
@@ -4656,7 +4657,7 @@ const rt = /* @__PURE__ */ he(st, [["render", it]]), lt = /* @__PURE__ */ p("use
|
|
|
4656
4657
|
placeholder: s.question.otherPlaceholder,
|
|
4657
4658
|
"aria-label": s.question.ariaLabel || s.question.a11y_input_ariaLabel,
|
|
4658
4659
|
"aria-required": s.question.ariaRequired || s.question.a11y_input_ariaRequired,
|
|
4659
|
-
style:
|
|
4660
|
+
style: I({ resize: s.question.resizeStyle }),
|
|
4660
4661
|
onChange: n[0] || (n[0] = (e) => {
|
|
4661
4662
|
s.question.onOtherValueChange(e);
|
|
4662
4663
|
}),
|
|
@@ -4695,11 +4696,11 @@ const rt = /* @__PURE__ */ he(st, [["render", it]]), lt = /* @__PURE__ */ p("use
|
|
|
4695
4696
|
closeOnCompleteTimeout: {}
|
|
4696
4697
|
},
|
|
4697
4698
|
setup(r) {
|
|
4698
|
-
const s = r, n = U(), e =
|
|
4699
|
-
|
|
4699
|
+
const s = r, n = U(), e = S(() => s.survey ? s.survey.getCss() : {});
|
|
4700
|
+
S(() => {
|
|
4700
4701
|
var f;
|
|
4701
4702
|
return (f = n.value) != null && f.isExpanded ? e.value.window.header.buttonCollapsed : e.value.window.header.buttonExpanded;
|
|
4702
|
-
}),
|
|
4703
|
+
}), S(() => {
|
|
4703
4704
|
var f;
|
|
4704
4705
|
return (f = n.value) == null ? void 0 : f.isExpanded;
|
|
4705
4706
|
});
|
|
@@ -4732,7 +4733,7 @@ const rt = /* @__PURE__ */ he(st, [["render", it]]), lt = /* @__PURE__ */ p("use
|
|
|
4732
4733
|
const L = y("sv-svg-icon");
|
|
4733
4734
|
return n.value.isShowing ? (i(), u("div", {
|
|
4734
4735
|
key: 0,
|
|
4735
|
-
style:
|
|
4736
|
+
style: I({ maxWidth: n.value.renderedWidth, width: n.value.renderedWidth }),
|
|
4736
4737
|
class: a(n.value.cssRoot),
|
|
4737
4738
|
onScroll: v
|
|
4738
4739
|
}, [
|
|
@@ -4808,11 +4809,11 @@ const rt = /* @__PURE__ */ he(st, [["render", it]]), lt = /* @__PURE__ */ p("use
|
|
|
4808
4809
|
css: {}
|
|
4809
4810
|
},
|
|
4810
4811
|
setup(r) {
|
|
4811
|
-
const s = r, n = $(), e =
|
|
4812
|
+
const s = r, n = $(), e = S(
|
|
4812
4813
|
() => s.question.customWidget.isDefaultRender
|
|
4813
|
-
), o =
|
|
4814
|
+
), o = S(
|
|
4814
4815
|
() => !!s.question.customWidget.htmlTemplate
|
|
4815
|
-
), t =
|
|
4816
|
+
), t = S(() => s.question.customWidget.htmlTemplate), l = S(() => "survey-" + s.question.getTemplate());
|
|
4816
4817
|
return M(() => {
|
|
4817
4818
|
s.question.customWidget.afterRender(s.question, n.value);
|
|
4818
4819
|
}), G(() => {
|
|
@@ -4895,7 +4896,7 @@ const rt = /* @__PURE__ */ he(st, [["render", it]]), lt = /* @__PURE__ */ p("use
|
|
|
4895
4896
|
setup(r) {
|
|
4896
4897
|
const s = r, n = $(null);
|
|
4897
4898
|
A(s, n);
|
|
4898
|
-
const e =
|
|
4899
|
+
const e = S(() => s.question.contentPanel);
|
|
4899
4900
|
return (o, t) => {
|
|
4900
4901
|
const l = y("survey-panel");
|
|
4901
4902
|
return i(), g(l, {
|
|
@@ -4916,7 +4917,7 @@ const rt = /* @__PURE__ */ he(st, [["render", it]]), lt = /* @__PURE__ */ p("use
|
|
|
4916
4917
|
setup(r) {
|
|
4917
4918
|
const s = r, n = $(null);
|
|
4918
4919
|
A(s, n);
|
|
4919
|
-
const e =
|
|
4920
|
+
const e = S(() => s.question.contentQuestion), o = (t) => re(t);
|
|
4920
4921
|
return (t, l) => (i(), g(T(o(e.value)), {
|
|
4921
4922
|
ref: n.value,
|
|
4922
4923
|
question: e.value,
|
|
@@ -4932,7 +4933,7 @@ const rt = /* @__PURE__ */ he(st, [["render", it]]), lt = /* @__PURE__ */ p("use
|
|
|
4932
4933
|
css: {}
|
|
4933
4934
|
},
|
|
4934
4935
|
setup(r) {
|
|
4935
|
-
const s = r, n =
|
|
4936
|
+
const s = r, n = S(() => qe * s.model.progress), e = S(() => s.model.text);
|
|
4936
4937
|
return B(() => s.model), (o, t) => o.model.isRunning && o.model.showTimerAsClock ? (i(), u("div", {
|
|
4937
4938
|
key: 0,
|
|
4938
4939
|
class: a(o.model.rootCss)
|
|
@@ -4940,7 +4941,7 @@ const rt = /* @__PURE__ */ he(st, [["render", it]]), lt = /* @__PURE__ */ p("use
|
|
|
4940
4941
|
o.model.showProgress ? (i(), u("svg", {
|
|
4941
4942
|
key: 0,
|
|
4942
4943
|
class: a(o.model.getProgressCss()),
|
|
4943
|
-
style:
|
|
4944
|
+
style: I({ strokeDasharray: qe, strokeDashoffset: n.value })
|
|
4944
4945
|
}, vi, 6)) : d("", !0),
|
|
4945
4946
|
p("div", {
|
|
4946
4947
|
class: a(o.model.textContainerCss)
|
|
@@ -4985,17 +4986,17 @@ const Ci = /* @__PURE__ */ he(yi, [["render", hi]]), bi = { key: 2 }, ki = /* @_
|
|
|
4985
4986
|
const o = y("sv-header-cell"), t = y("sv-header-mobile");
|
|
4986
4987
|
return i(), u("div", {
|
|
4987
4988
|
class: a(n.model.headerClasses),
|
|
4988
|
-
style:
|
|
4989
|
+
style: I({ height: n.model.renderedHeight })
|
|
4989
4990
|
}, [
|
|
4990
4991
|
n.model.backgroundImage ? (i(), u("div", {
|
|
4991
4992
|
key: 0,
|
|
4992
4993
|
class: a(n.model.backgroundImageClasses),
|
|
4993
|
-
style:
|
|
4994
|
+
style: I(n.model.backgroundImageStyle)
|
|
4994
4995
|
}, null, 6)) : d("", !0),
|
|
4995
4996
|
n.survey.isMobile ? d("", !0) : (i(), u("div", {
|
|
4996
4997
|
key: 1,
|
|
4997
4998
|
class: a(n.model.contentClasses),
|
|
4998
|
-
style:
|
|
4999
|
+
style: I({ maxWidth: n.model.maxWidth })
|
|
4999
5000
|
}, [
|
|
5000
5001
|
(i(!0), u(_, null, D(n.model.cells, (l, m) => (i(), g(o, {
|
|
5001
5002
|
model: l,
|
|
@@ -5021,11 +5022,11 @@ const Ci = /* @__PURE__ */ he(yi, [["render", hi]]), bi = { key: 2 }, ki = /* @_
|
|
|
5021
5022
|
const e = y("survey-element-title"), o = y("survey-string");
|
|
5022
5023
|
return i(), u("div", {
|
|
5023
5024
|
class: a(s.model.css),
|
|
5024
|
-
style:
|
|
5025
|
+
style: I(s.model.style)
|
|
5025
5026
|
}, [
|
|
5026
5027
|
p("div", {
|
|
5027
5028
|
class: "sv-header__cell-content",
|
|
5028
|
-
style:
|
|
5029
|
+
style: I(s.model.contentStyle)
|
|
5029
5030
|
}, [
|
|
5030
5031
|
s.model.showLogo ? (i(), u("div", fi, [
|
|
5031
5032
|
p("div", {
|
|
@@ -5037,14 +5038,14 @@ const Ci = /* @__PURE__ */ he(yi, [["render", hi]]), bi = { key: 2 }, ki = /* @_
|
|
|
5037
5038
|
width: s.model.survey.renderedLogoWidth,
|
|
5038
5039
|
height: s.model.survey.renderedLogoHeight,
|
|
5039
5040
|
alt: s.model.survey.locTitle.renderedHtml,
|
|
5040
|
-
style:
|
|
5041
|
+
style: I({ objectFit: s.model.survey.logoFit, width: s.model.survey.renderedStyleLogoWidth, height: s.model.survey.renderedStyleLogoHeight })
|
|
5041
5042
|
}, null, 14, wi)
|
|
5042
5043
|
], 2)
|
|
5043
5044
|
])) : d("", !0),
|
|
5044
5045
|
s.model.showTitle ? (i(), u("div", {
|
|
5045
5046
|
key: 1,
|
|
5046
5047
|
class: "sv-header__title",
|
|
5047
|
-
style:
|
|
5048
|
+
style: I({ maxWidth: s.model.textAreaWidth })
|
|
5048
5049
|
}, [
|
|
5049
5050
|
C(e, {
|
|
5050
5051
|
element: s.model.survey,
|
|
@@ -5054,7 +5055,7 @@ const Ci = /* @__PURE__ */ he(yi, [["render", hi]]), bi = { key: 2 }, ki = /* @_
|
|
|
5054
5055
|
s.model.showDescription ? (i(), u("div", {
|
|
5055
5056
|
key: 2,
|
|
5056
5057
|
class: "sv-header__description",
|
|
5057
|
-
style:
|
|
5058
|
+
style: I({ maxWidth: s.model.textAreaWidth })
|
|
5058
5059
|
}, [
|
|
5059
5060
|
s.model.survey.renderedHasDescription ? (i(), u("div", {
|
|
5060
5061
|
key: 0,
|
|
@@ -5091,14 +5092,14 @@ const Ci = /* @__PURE__ */ he(yi, [["render", hi]]), bi = { key: 2 }, ki = /* @_
|
|
|
5091
5092
|
width: s.model.survey.renderedLogoWidth,
|
|
5092
5093
|
height: s.model.survey.renderedLogoHeight,
|
|
5093
5094
|
alt: s.model.survey.locTitle.renderedHtml,
|
|
5094
|
-
style:
|
|
5095
|
+
style: I({ objectFit: s.model.survey.logoFit, width: s.model.survey.renderedStyleLogoWidth, height: s.model.survey.renderedStyleLogoHeight })
|
|
5095
5096
|
}, null, 14, Ti)
|
|
5096
5097
|
], 2)
|
|
5097
5098
|
])) : d("", !0),
|
|
5098
5099
|
s.model.survey.hasTitle ? (i(), u("div", {
|
|
5099
5100
|
key: 1,
|
|
5100
5101
|
class: "sv-header__title",
|
|
5101
|
-
style:
|
|
5102
|
+
style: I({ maxWidth: s.model.renderedtextAreaWidth })
|
|
5102
5103
|
}, [
|
|
5103
5104
|
C(e, {
|
|
5104
5105
|
element: s.model.survey,
|
|
@@ -5108,7 +5109,7 @@ const Ci = /* @__PURE__ */ he(yi, [["render", hi]]), bi = { key: 2 }, ki = /* @_
|
|
|
5108
5109
|
s.model.survey.renderedHasDescription ? (i(), u("div", {
|
|
5109
5110
|
key: 2,
|
|
5110
5111
|
class: "sv-header__description",
|
|
5111
|
-
style:
|
|
5112
|
+
style: I({ maxWidth: s.model.renderedtextAreaWidth })
|
|
5112
5113
|
}, [
|
|
5113
5114
|
s.model.survey.renderedHasDescription ? (i(), u("div", {
|
|
5114
5115
|
key: 0,
|
|
@@ -5130,7 +5131,7 @@ const Ci = /* @__PURE__ */ he(yi, [["render", hi]]), bi = { key: 2 }, ki = /* @_
|
|
|
5130
5131
|
css: {}
|
|
5131
5132
|
},
|
|
5132
5133
|
setup(r) {
|
|
5133
|
-
const s = r, n = $(), e = (v) => v.isPanel ? "survey-panel" : "survey-question", o =
|
|
5134
|
+
const s = r, n = $(), e = (v) => v.isPanel ? "survey-panel" : "survey-question", o = S(() => {
|
|
5134
5135
|
const v = s.element.survey;
|
|
5135
5136
|
if (v) {
|
|
5136
5137
|
const c = v.getElementWrapperComponentName(s.element);
|
|
@@ -5138,7 +5139,7 @@ const Ci = /* @__PURE__ */ he(yi, [["render", hi]]), bi = { key: 2 }, ki = /* @_
|
|
|
5138
5139
|
return c;
|
|
5139
5140
|
}
|
|
5140
5141
|
return e(s.element);
|
|
5141
|
-
}), t = (v) => v.cssClasses ? v.rootStyle : {}, l =
|
|
5142
|
+
}), t = (v) => v.cssClasses ? v.rootStyle : {}, l = S(() => {
|
|
5142
5143
|
const v = s.element, c = v.survey;
|
|
5143
5144
|
let q;
|
|
5144
5145
|
return c && (q = c.getElementWrapperComponentData(v)), {
|
|
@@ -5164,7 +5165,7 @@ const Ci = /* @__PURE__ */ he(yi, [["render", hi]]), bi = { key: 2 }, ki = /* @_
|
|
|
5164
5165
|
}), (v, c) => (i(), u("div", {
|
|
5165
5166
|
ref_key: "root",
|
|
5166
5167
|
ref: n,
|
|
5167
|
-
style:
|
|
5168
|
+
style: I(t(v.element)),
|
|
5168
5169
|
class: a(v.element.cssClasses.questionWrapper)
|
|
5169
5170
|
}, [
|
|
5170
5171
|
v.row.isNeedRender ? (i(), g(T(o.value), z(H({ key: 0 }, l.value)), null, 16)) : v.element.skeletonComponentName ? (i(), g(T(v.element.skeletonComponentName), {
|
|
@@ -5181,7 +5182,7 @@ const Ci = /* @__PURE__ */ he(yi, [["render", hi]]), bi = { key: 2 }, ki = /* @_
|
|
|
5181
5182
|
componentData: {}
|
|
5182
5183
|
},
|
|
5183
5184
|
setup(r) {
|
|
5184
|
-
const s = Te(), n =
|
|
5185
|
+
const s = Te(), n = S(() => !!s.default);
|
|
5185
5186
|
return (e, o) => n.value && !e.componentName ? $e(e.$slots, "default", { key: 0 }) : (i(), g(T(e.componentName), z(H({ key: 1 }, e.componentData)), null, 16));
|
|
5186
5187
|
}
|
|
5187
5188
|
}), Bi = /* @__PURE__ */ h({
|
|
@@ -5244,7 +5245,7 @@ const Ci = /* @__PURE__ */ he(yi, [["render", hi]]), bi = { key: 2 }, ki = /* @_
|
|
|
5244
5245
|
item: {}
|
|
5245
5246
|
},
|
|
5246
5247
|
setup(r) {
|
|
5247
|
-
const s = r, n =
|
|
5248
|
+
const s = r, n = S(
|
|
5248
5249
|
() => {
|
|
5249
5250
|
var e;
|
|
5250
5251
|
return ((e = s.data) == null ? void 0 : e.question) || s.item.data.question;
|
|
@@ -5296,7 +5297,7 @@ const Ci = /* @__PURE__ */ he(yi, [["render", hi]]), bi = { key: 2 }, ki = /* @_
|
|
|
5296
5297
|
href: o.content,
|
|
5297
5298
|
title: o.name,
|
|
5298
5299
|
download: o.name,
|
|
5299
|
-
style:
|
|
5300
|
+
style: I({ width: s.question.imageWidth })
|
|
5300
5301
|
}, R(o.name), 13, Mi)
|
|
5301
5302
|
], 2)) : d("", !0),
|
|
5302
5303
|
p("div", {
|
|
@@ -5305,7 +5306,7 @@ const Ci = /* @__PURE__ */ he(yi, [["render", hi]]), bi = { key: 2 }, ki = /* @_
|
|
|
5305
5306
|
s.question.canPreviewImage(o) ? (i(), u("img", {
|
|
5306
5307
|
key: 0,
|
|
5307
5308
|
src: o.content,
|
|
5308
|
-
style:
|
|
5309
|
+
style: I({
|
|
5309
5310
|
height: s.question.imageHeight,
|
|
5310
5311
|
width: s.question.imageWidth
|
|
5311
5312
|
}),
|
|
@@ -5343,7 +5344,7 @@ const Ci = /* @__PURE__ */ he(yi, [["render", hi]]), bi = { key: 2 }, ki = /* @_
|
|
|
5343
5344
|
href: o.content,
|
|
5344
5345
|
title: o.name,
|
|
5345
5346
|
download: o.name,
|
|
5346
|
-
style:
|
|
5347
|
+
style: I({ width: s.question.imageWidth })
|
|
5347
5348
|
}, R(o.name), 13, Wi)
|
|
5348
5349
|
], 2)) : d("", !0)
|
|
5349
5350
|
], 2)), [
|
|
@@ -5384,9 +5385,9 @@ const Ci = /* @__PURE__ */ he(yi, [["render", hi]]), bi = { key: 2 }, ki = /* @_
|
|
|
5384
5385
|
index: {}
|
|
5385
5386
|
},
|
|
5386
5387
|
setup(r) {
|
|
5387
|
-
const s = r, n =
|
|
5388
|
+
const s = r, n = S(
|
|
5388
5389
|
() => new Fe(s.question, s.item, s.index)
|
|
5389
|
-
), e =
|
|
5390
|
+
), e = S({
|
|
5390
5391
|
get: () => s.question.renderedValue,
|
|
5391
5392
|
set: (o) => {
|
|
5392
5393
|
const t = s.question;
|
|
@@ -5445,7 +5446,7 @@ const Ci = /* @__PURE__ */ he(yi, [["render", hi]]), bi = { key: 2 }, ki = /* @_
|
|
|
5445
5446
|
data: {}
|
|
5446
5447
|
},
|
|
5447
5448
|
setup(r) {
|
|
5448
|
-
const s = r, n =
|
|
5449
|
+
const s = r, n = S(() => s.data), e = J(() => n.value.locLogo);
|
|
5449
5450
|
return (o, t) => (i(), u("div", {
|
|
5450
5451
|
class: a(n.value.logoClassNames)
|
|
5451
5452
|
}, [
|
|
@@ -5455,7 +5456,7 @@ const Ci = /* @__PURE__ */ he(yi, [["render", hi]]), bi = { key: 2 }, ki = /* @_
|
|
|
5455
5456
|
width: n.value.renderedLogoWidth,
|
|
5456
5457
|
height: n.value.renderedLogoHeight,
|
|
5457
5458
|
alt: n.value.locTitle.renderedHtml,
|
|
5458
|
-
style:
|
|
5459
|
+
style: I({
|
|
5459
5460
|
objectFit: n.value.logoFit,
|
|
5460
5461
|
width: n.value.renderedStyleLogoWidth,
|
|
5461
5462
|
height: n.value.renderedStyleLogoHeight
|