survey-vue3-ui 1.9.111 → 1.9.113
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 +58 -58
- package/survey-vue3-ui.umd.js +1 -1
package/package.json
CHANGED
package/survey-vue3-ui.es.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { shallowReactive as ce, watch as G, onBeforeUnmount as K, onMounted as
|
|
2
|
-
import { Base as fe, RendererFactory as J, DropdownListModel as Ie, Helpers as we, DropdownMultiSelectListModel as Se, doKey2ClickUp as de, createSvg as Re, ActionDropdownViewModel as Te, getActionDropdownButtonTarget as $e, createPopupViewModel as te, SurveyProgressModel as ie, SurveyProgressButtonsModel as Be, TOCModel as Le, SvgRegistry as De, PopupSurveyModel as Pe, settings as F, createDialogOptions as Me, createPopupModalViewModel as Ne, SurveyModel as He, doKey2ClickDown as Ae, doKey2ClickBlur as
|
|
1
|
+
import { shallowReactive as ce, watch as G, onBeforeUnmount as K, onMounted as _, ref as T, shallowRef as W, triggerRef as oe, unref as k, isRef as pe, defineComponent as g, computed as R, onUpdated as X, resolveComponent as q, openBlock as t, createElementBlock as u, normalizeClass as r, createVNode as C, createCommentVNode as m, Fragment as w, renderList as B, createBlock as y, createElementVNode as c, normalizeStyle as S, onUnmounted as V, withDirectives as P, resolveDynamicComponent as N, vShow as A, toDisplayString as I, vModelCheckbox as U, vModelRadio as Y, vModelSelect as ve, vModelText as qe, getCurrentInstance as x, withCtx as ye, createStaticVNode as ge, resolveDirective as ee, normalizeProps as he, guardReactiveProps as Ce, toRaw as be, Teleport as ke } from "vue";
|
|
2
|
+
import { Base as fe, RendererFactory as J, DropdownListModel as Ie, Helpers as we, DropdownMultiSelectListModel as Se, doKey2ClickUp as de, createSvg as Re, ActionDropdownViewModel as Te, getActionDropdownButtonTarget as $e, createPopupViewModel as te, SurveyProgressModel as ie, SurveyProgressButtonsModel as Be, TOCModel as Le, SvgRegistry as De, PopupSurveyModel as Pe, settings as F, createDialogOptions as Me, createPopupModalViewModel as Ne, SurveyModel as He, doKey2ClickDown as Ae, doKey2ClickBlur as _e } from "survey-core";
|
|
3
3
|
fe.createPropertiesHash = () => ce({});
|
|
4
|
-
function
|
|
4
|
+
function Ee(l) {
|
|
5
5
|
return !l || l.__vueImplemented ? !1 : (l.createArrayCoreHandler = (n, o) => {
|
|
6
6
|
const e = [], s = W(e);
|
|
7
7
|
return e.onArrayChanged = () => {
|
|
@@ -28,7 +28,7 @@ function L(l, n, o) {
|
|
|
28
28
|
const s = G(
|
|
29
29
|
l,
|
|
30
30
|
(i, a) => {
|
|
31
|
-
n && n(i), a && (le(a, e), o && o(a)), e =
|
|
31
|
+
n && n(i), a && (le(a, e), o && o(a)), e = Ee(i);
|
|
32
32
|
},
|
|
33
33
|
{
|
|
34
34
|
immediate: !0
|
|
@@ -40,7 +40,7 @@ function L(l, n, o) {
|
|
|
40
40
|
});
|
|
41
41
|
}
|
|
42
42
|
function H(l, n, o, e) {
|
|
43
|
-
L(() => l.question, o, e),
|
|
43
|
+
L(() => l.question, o, e), _(() => {
|
|
44
44
|
l.question && l.question.afterRenderQuestionElement(n.value);
|
|
45
45
|
}), K(() => {
|
|
46
46
|
l.question.beforeDestroyQuestionElement(n.value);
|
|
@@ -77,7 +77,7 @@ const Ve = /* @__PURE__ */ g({
|
|
|
77
77
|
const n = l, o = T(null);
|
|
78
78
|
L(() => n.page);
|
|
79
79
|
const e = R(() => n.page._showDescription), s = R(() => n.page.rows);
|
|
80
|
-
return
|
|
80
|
+
return _(() => {
|
|
81
81
|
n.survey && n.survey.afterRenderPage(o.value);
|
|
82
82
|
}), X(() => {
|
|
83
83
|
n.survey.afterRenderPage(o.value);
|
|
@@ -118,7 +118,7 @@ const Ve = /* @__PURE__ */ g({
|
|
|
118
118
|
},
|
|
119
119
|
setup(l) {
|
|
120
120
|
const n = l, o = T(), e = z(() => n.survey.locLogo);
|
|
121
|
-
return
|
|
121
|
+
return _(() => {
|
|
122
122
|
var s = o.value;
|
|
123
123
|
s && n.survey && n.survey.afterRenderHeader(s);
|
|
124
124
|
}), (s, i) => {
|
|
@@ -198,7 +198,7 @@ const Ve = /* @__PURE__ */ g({
|
|
|
198
198
|
const n = l, o = R(
|
|
199
199
|
() => n.row.visibleElements
|
|
200
200
|
), e = T();
|
|
201
|
-
return L(() => n.row),
|
|
201
|
+
return L(() => n.row), _(() => {
|
|
202
202
|
if (n.row && !n.row.isNeedRender) {
|
|
203
203
|
const s = e.value;
|
|
204
204
|
setTimeout(() => {
|
|
@@ -245,7 +245,7 @@ const Ve = /* @__PURE__ */ g({
|
|
|
245
245
|
},
|
|
246
246
|
setup(l) {
|
|
247
247
|
const n = l, o = T(null), e = R(() => !n.element.isPanel && n.element.showErrorOnTop), s = R(() => !n.element.isPanel && n.element.showErrorOnBottom), i = (d) => d.customWidget ? "survey-customwidget" : d.getType() === "panel" || d.isDefaultRendering() ? "survey-" + d.getTemplate() : d.getComponentName(), a = (d) => d.cssContent;
|
|
248
|
-
return L(() => n.element),
|
|
248
|
+
return L(() => n.element), _(() => {
|
|
249
249
|
n.element.isPanel || n.element.afterRender(o.value);
|
|
250
250
|
}), (d, v) => {
|
|
251
251
|
const p = q("survey-errors"), b = q("survey-element-header"), f = q("survey-string"), $ = q("survey-question-comment");
|
|
@@ -341,7 +341,7 @@ const Ve = /* @__PURE__ */ g({
|
|
|
341
341
|
},
|
|
342
342
|
setup(l) {
|
|
343
343
|
const n = l, o = T(!1), e = T(null), s = R(() => n.question.rows), i = R(() => n.question.survey), a = R(() => o.value);
|
|
344
|
-
return L(() => n.question),
|
|
344
|
+
return L(() => n.question), _(() => {
|
|
345
345
|
n.question.survey && n.question.survey.afterRenderPanel(n.question, e.value), o.value = n.question.isCollapsed;
|
|
346
346
|
const d = n.question;
|
|
347
347
|
d.stateChangedCallback = () => {
|
|
@@ -772,7 +772,7 @@ const Ve = /* @__PURE__ */ g({
|
|
|
772
772
|
"aria-invalid": e.question.a11y_input_ariaInvalid,
|
|
773
773
|
"aria-describedby": e.question.a11y_input_ariaDescribedBy
|
|
774
774
|
}, [
|
|
775
|
-
!e.question.hasColumns && !e.question.blockedRow ? (t(!0), u(w, { key: 0 }, B(e.question.
|
|
775
|
+
!e.question.hasColumns && !e.question.blockedRow ? (t(!0), u(w, { key: 0 }, B(e.question.bodyItems, (d, v) => (t(), y(i, {
|
|
776
776
|
key: d.value,
|
|
777
777
|
class: r(e.question.getItemClass(d)),
|
|
778
778
|
question: e.question,
|
|
@@ -1043,7 +1043,7 @@ const Ve = /* @__PURE__ */ g({
|
|
|
1043
1043
|
], 2);
|
|
1044
1044
|
};
|
|
1045
1045
|
}
|
|
1046
|
-
}),
|
|
1046
|
+
}), _s = /* @__PURE__ */ g({
|
|
1047
1047
|
__name: "Expression",
|
|
1048
1048
|
props: {
|
|
1049
1049
|
question: {}
|
|
@@ -1051,12 +1051,12 @@ const Ve = /* @__PURE__ */ g({
|
|
|
1051
1051
|
setup(l) {
|
|
1052
1052
|
const n = l, o = T(null);
|
|
1053
1053
|
return H(n, o), (e, s) => (t(), u("div", {
|
|
1054
|
-
class: r(e.question.cssClasses.
|
|
1054
|
+
class: r(e.question.cssClasses.root),
|
|
1055
1055
|
ref_key: "root",
|
|
1056
1056
|
ref: o
|
|
1057
1057
|
}, I(e.question.formatedValue), 3));
|
|
1058
1058
|
}
|
|
1059
|
-
}),
|
|
1059
|
+
}), Es = ["id", "aria-required", "aria-label", "aria-invalid", "aria-describedby", "multiple", "title", "accept", "capture"], Vs = ["id", "multiple", "placeholder"], Os = /* @__PURE__ */ g({
|
|
1060
1060
|
__name: "File",
|
|
1061
1061
|
props: {
|
|
1062
1062
|
question: {}
|
|
@@ -1083,7 +1083,7 @@ const Ve = /* @__PURE__ */ g({
|
|
|
1083
1083
|
title: e.question.inputTitle,
|
|
1084
1084
|
accept: e.question.acceptedTypes,
|
|
1085
1085
|
capture: e.question.renderCapture
|
|
1086
|
-
}, null, 42,
|
|
1086
|
+
}, null, 42, Es)) : m("", !0),
|
|
1087
1087
|
e.question.isReadOnly ? (t(), u("input", {
|
|
1088
1088
|
key: 1,
|
|
1089
1089
|
type: "file",
|
|
@@ -1518,7 +1518,7 @@ const sn = /* @__PURE__ */ g({
|
|
|
1518
1518
|
disabled: !e.item.isEnabled
|
|
1519
1519
|
}, I(k(o)), 9, nn));
|
|
1520
1520
|
}
|
|
1521
|
-
}), tn = ["id", "disabled", "tabindex", "role", "aria-required", "aria-label", "aria-invalid", "aria-describedby", "aria-expanded", "aria-controls", "aria-activedescendant", "required"], ln = { style: { visibility: "hidden" } }, rn = ["disabled", "inputmode", "role", "id", "tabindex", "readonly", "aria-
|
|
1521
|
+
}), tn = ["id", "disabled", "tabindex", "role", "aria-required", "aria-label", "aria-invalid", "aria-describedby", "aria-expanded", "aria-controls", "aria-activedescendant", "required"], ln = { style: { visibility: "hidden" } }, rn = ["disabled", "inputmode", "role", "id", "tabindex", "readonly", "aria-expanded", "aria-controls", "aria-activedescendant", "placeholder"], an = ["id"], un = /* @__PURE__ */ g({
|
|
1522
1522
|
__name: "Dropdown",
|
|
1523
1523
|
props: {
|
|
1524
1524
|
question: {}
|
|
@@ -1555,8 +1555,8 @@ const sn = /* @__PURE__ */ g({
|
|
|
1555
1555
|
}, $ = R(
|
|
1556
1556
|
() => n.question.showSelectedItemLocText
|
|
1557
1557
|
), M = R(() => n.question.selectedItemLocText);
|
|
1558
|
-
return L(() => e.value), X(v),
|
|
1559
|
-
const
|
|
1558
|
+
return L(() => e.value), X(v), _(v), (h, D) => {
|
|
1559
|
+
const E = q("survey-string"), O = q("sv-svg-icon"), Q = q("sv-popup");
|
|
1560
1560
|
return t(), u("div", {
|
|
1561
1561
|
class: r(h.question.cssClasses.selectWrapper),
|
|
1562
1562
|
onClick: s
|
|
@@ -1588,7 +1588,7 @@ const sn = /* @__PURE__ */ g({
|
|
|
1588
1588
|
c("div", {
|
|
1589
1589
|
class: r(h.question.cssClasses.controlValue)
|
|
1590
1590
|
}, [
|
|
1591
|
-
$.value ? (t(), y(
|
|
1591
|
+
$.value ? (t(), y(E, {
|
|
1592
1592
|
key: 0,
|
|
1593
1593
|
locString: M.value
|
|
1594
1594
|
}, null, 8, ["locString"])) : m("", !0),
|
|
@@ -1616,7 +1616,6 @@ const sn = /* @__PURE__ */ g({
|
|
|
1616
1616
|
id: h.question.getInputId(),
|
|
1617
1617
|
tabindex: e.value.inputReadOnly ? void 0 : -1,
|
|
1618
1618
|
readonly: e.value.searchEnabled ? void 0 : !0,
|
|
1619
|
-
"aria-label": h.question.placeholder,
|
|
1620
1619
|
"aria-expanded": h.question.ariaExpanded === null ? void 0 : h.question.ariaExpanded === "true",
|
|
1621
1620
|
"aria-controls": e.value.listElementId,
|
|
1622
1621
|
"aria-activedescendant": e.value.ariaActivedescendant,
|
|
@@ -1638,7 +1637,7 @@ const sn = /* @__PURE__ */ g({
|
|
|
1638
1637
|
size: "auto"
|
|
1639
1638
|
}, null, 8, ["class", "iconName", "title"])
|
|
1640
1639
|
], 2)), [
|
|
1641
|
-
[A,
|
|
1640
|
+
[A, h.question.showClearButton]
|
|
1642
1641
|
]) : m("", !0)
|
|
1643
1642
|
], 42, tn)),
|
|
1644
1643
|
h.question.isReadOnly ? (t(), u("div", {
|
|
@@ -1647,7 +1646,7 @@ const sn = /* @__PURE__ */ g({
|
|
|
1647
1646
|
id: h.question.inputId,
|
|
1648
1647
|
class: r(h.question.getControlClass())
|
|
1649
1648
|
}, [
|
|
1650
|
-
h.question.selectedItemLocText ? (t(), y(
|
|
1649
|
+
h.question.selectedItemLocText ? (t(), y(E, {
|
|
1651
1650
|
key: 0,
|
|
1652
1651
|
locString: h.question.selectedItemLocText
|
|
1653
1652
|
}, null, 8, ["locString"])) : m("", !0),
|
|
@@ -1744,10 +1743,10 @@ const sn = /* @__PURE__ */ g({
|
|
|
1744
1743
|
c("div", {
|
|
1745
1744
|
class: r(p.question.cssClasses.controlValue)
|
|
1746
1745
|
}, [
|
|
1747
|
-
(t(!0), u(w, null, B(v.value, (D,
|
|
1746
|
+
(t(!0), u(w, null, B(v.value, (D, E) => (t(), y(f, {
|
|
1748
1747
|
item: D,
|
|
1749
1748
|
question: p.question,
|
|
1750
|
-
key: "item" +
|
|
1749
|
+
key: "item" + E
|
|
1751
1750
|
}, null, 8, ["item", "question"]))), 128)),
|
|
1752
1751
|
C($, {
|
|
1753
1752
|
model: o.value,
|
|
@@ -1766,7 +1765,7 @@ const sn = /* @__PURE__ */ g({
|
|
|
1766
1765
|
size: "auto"
|
|
1767
1766
|
}, null, 8, ["class", "iconName", "title"])
|
|
1768
1767
|
], 2)), [
|
|
1769
|
-
[A,
|
|
1768
|
+
[A, p.question.showClearButton]
|
|
1770
1769
|
]) : m("", !0)
|
|
1771
1770
|
], 42, mn)),
|
|
1772
1771
|
p.question.isReadOnly ? (t(), u("div", {
|
|
@@ -1794,7 +1793,7 @@ const sn = /* @__PURE__ */ g({
|
|
|
1794
1793
|
], 2);
|
|
1795
1794
|
};
|
|
1796
1795
|
}
|
|
1797
|
-
}), vn = { style: { visibility: "hidden" } }, qn = ["placeholder", "disabled", "inputmode", "role", "aria-
|
|
1796
|
+
}), vn = { style: { visibility: "hidden" } }, qn = ["placeholder", "disabled", "inputmode", "role", "aria-expanded", "aria-controls", "aria-activedescendant", "id", "readonly", "size"], yn = /* @__PURE__ */ g({
|
|
1798
1797
|
__name: "TagboxFilter",
|
|
1799
1798
|
props: {
|
|
1800
1799
|
question: {},
|
|
@@ -1845,7 +1844,6 @@ const sn = /* @__PURE__ */ g({
|
|
|
1845
1844
|
disabled: a.question.isInputReadOnly,
|
|
1846
1845
|
inputmode: a.model.inputMode,
|
|
1847
1846
|
role: a.model.filterStringEnabled ? a.question.ariaRole : void 0,
|
|
1848
|
-
"aria-label": a.question.placeholder,
|
|
1849
1847
|
"aria-expanded": a.question.ariaExpanded === null ? void 0 : a.question.ariaExpanded === "true",
|
|
1850
1848
|
"aria-controls": a.model.listElementId,
|
|
1851
1849
|
"aria-activedescendant": a.model.ariaActivedescendant,
|
|
@@ -2078,7 +2076,7 @@ const sn = /* @__PURE__ */ g({
|
|
|
2078
2076
|
locString: s.question.locMinRateDescription
|
|
2079
2077
|
}, null, 8, ["locString"])
|
|
2080
2078
|
], 2)) : m("", !0),
|
|
2081
|
-
(t(!0), u(w, null, B(s.question.renderedRateItems, (d, v) => (t(), y(N(s.question.
|
|
2079
|
+
(t(!0), u(w, null, B(s.question.renderedRateItems, (d, v) => (t(), y(N(s.question.itemComponent), {
|
|
2082
2080
|
key: e(v),
|
|
2083
2081
|
item: d,
|
|
2084
2082
|
index: v,
|
|
@@ -2227,7 +2225,7 @@ J.Instance.registerRenderer(
|
|
|
2227
2225
|
"dropdown",
|
|
2228
2226
|
"sv-rating-dropdown"
|
|
2229
2227
|
);
|
|
2230
|
-
const
|
|
2228
|
+
const _n = /* @__PURE__ */ g({
|
|
2231
2229
|
__name: "RatingDropdown",
|
|
2232
2230
|
props: {
|
|
2233
2231
|
question: {}
|
|
@@ -2245,7 +2243,7 @@ const En = /* @__PURE__ */ g({
|
|
|
2245
2243
|
], 2);
|
|
2246
2244
|
};
|
|
2247
2245
|
}
|
|
2248
|
-
}),
|
|
2246
|
+
}), En = ["name", "value", "id", ".indeterminate", "disabled", "aria-required", "aria-label", "aria-invalid", "aria-describedby"], Vn = /* @__PURE__ */ g({
|
|
2249
2247
|
__name: "BooleanSwitch",
|
|
2250
2248
|
props: {
|
|
2251
2249
|
question: {}
|
|
@@ -2281,7 +2279,7 @@ const En = /* @__PURE__ */ g({
|
|
|
2281
2279
|
"aria-label": i.question.ariaLabel,
|
|
2282
2280
|
"aria-invalid": i.question.ariaInvalid,
|
|
2283
2281
|
"aria-describedby": i.question.ariaDescribedBy
|
|
2284
|
-
}, null, 10,
|
|
2282
|
+
}, null, 10, En), [
|
|
2285
2283
|
[U, i.question.booleanValue]
|
|
2286
2284
|
]),
|
|
2287
2285
|
c("div", {
|
|
@@ -2853,7 +2851,7 @@ const Zn = /* @__PURE__ */ g({
|
|
|
2853
2851
|
},
|
|
2854
2852
|
setup(l) {
|
|
2855
2853
|
const n = l, o = T(!1), e = T(), s = () => n.cell.headers, i = () => !!n.cell.width || !!n.cell.minWidth ? { width: n.cell.width, minWidth: n.cell.minWidth } : null, a = () => n.cell.index || "", d = () => o.value = n.cell.question.isVisible, v = (p) => se(p);
|
|
2856
|
-
return
|
|
2854
|
+
return _(() => {
|
|
2857
2855
|
if (!n.cell.hasQuestion || !n.question || !n.question.survey)
|
|
2858
2856
|
return;
|
|
2859
2857
|
d(), n.cell.question.registerPropertyChangedHandlers(["isVisible"], () => {
|
|
@@ -2868,7 +2866,7 @@ const Zn = /* @__PURE__ */ g({
|
|
|
2868
2866
|
};
|
|
2869
2867
|
n.question.survey.matrixAfterCellRender(n.question, f), b && b.afterRenderCore(p);
|
|
2870
2868
|
}), (p, b) => {
|
|
2871
|
-
const f = q("survey-errors"), $ = q("sv-matrix-drag-drop-icon"), M = q("sv-action-bar"), h = q("survey-radiogroup-item"), D = q("survey-checkbox-item"),
|
|
2869
|
+
const f = q("survey-errors"), $ = q("sv-matrix-drag-drop-icon"), M = q("sv-action-bar"), h = q("survey-radiogroup-item"), D = q("survey-checkbox-item"), E = q("survey-other-choice"), O = q("survey-string");
|
|
2872
2870
|
return t(), u("td", {
|
|
2873
2871
|
class: r(p.cell.className),
|
|
2874
2872
|
"data-responsive-title": s(),
|
|
@@ -2929,7 +2927,7 @@ const Zn = /* @__PURE__ */ g({
|
|
|
2929
2927
|
index: a(),
|
|
2930
2928
|
hideLabel: !0
|
|
2931
2929
|
}, null, 8, ["class", "question", "item", "index"])) : m("", !0),
|
|
2932
|
-
p.cell.isOtherChoice ? (t(), y(
|
|
2930
|
+
p.cell.isOtherChoice ? (t(), y(E, {
|
|
2933
2931
|
key: 4,
|
|
2934
2932
|
question: p.cell.question
|
|
2935
2933
|
}, null, 8, ["question"])) : m("", !0)
|
|
@@ -3442,7 +3440,7 @@ const Ro = /* @__PURE__ */ g({
|
|
|
3442
3440
|
], 10, Mo)) : m("", !0);
|
|
3443
3441
|
};
|
|
3444
3442
|
}
|
|
3445
|
-
}), Ho = { key: 0 }, Ao = ["id", "readonly", "disabled", "value", "maxlength", "placeholder", "aria-label", "aria-required"],
|
|
3443
|
+
}), Ho = { key: 0 }, Ao = ["id", "readonly", "disabled", "value", "maxlength", "placeholder", "aria-label", "aria-required"], _o = /* @__PURE__ */ g({
|
|
3446
3444
|
__name: "QuestionComment",
|
|
3447
3445
|
props: {
|
|
3448
3446
|
question: {},
|
|
@@ -3469,7 +3467,7 @@ const Ro = /* @__PURE__ */ g({
|
|
|
3469
3467
|
})
|
|
3470
3468
|
}, null, 46, Ao));
|
|
3471
3469
|
}
|
|
3472
|
-
}),
|
|
3470
|
+
}), Eo = /* @__PURE__ */ g({
|
|
3473
3471
|
__name: "TitleElement",
|
|
3474
3472
|
props: {
|
|
3475
3473
|
element: {},
|
|
@@ -3615,7 +3613,7 @@ const Yo = /* @__PURE__ */ me(Qo, [["render", Jo]]), xo = ["aria-label"], et = /
|
|
|
3615
3613
|
};
|
|
3616
3614
|
return X(() => {
|
|
3617
3615
|
e();
|
|
3618
|
-
}),
|
|
3616
|
+
}), _(() => {
|
|
3619
3617
|
e();
|
|
3620
3618
|
}), (s, i) => (t(), u("svg", {
|
|
3621
3619
|
ref_key: "svgIconElement",
|
|
@@ -3634,7 +3632,7 @@ const Yo = /* @__PURE__ */ me(Qo, [["render", Jo]]), xo = ["aria-label"], et = /
|
|
|
3634
3632
|
},
|
|
3635
3633
|
setup(l) {
|
|
3636
3634
|
const n = l, o = T(null);
|
|
3637
|
-
return L(() => n.model),
|
|
3635
|
+
return L(() => n.model), _(() => {
|
|
3638
3636
|
!n.model.hasActions || n.model.initResponsivityManager(o.value);
|
|
3639
3637
|
}), V(() => {
|
|
3640
3638
|
n.model.resetResponsivityManager();
|
|
@@ -3795,7 +3793,7 @@ const Yo = /* @__PURE__ */ me(Qo, [["render", Jo]]), xo = ["aria-label"], et = /
|
|
|
3795
3793
|
}, i = (a) => {
|
|
3796
3794
|
n.model.onMouseMove(a);
|
|
3797
3795
|
};
|
|
3798
|
-
return L(() => n.model),
|
|
3796
|
+
return L(() => n.model), _(() => {
|
|
3799
3797
|
n.model.initListContainerHtmlElement(o.value);
|
|
3800
3798
|
}), (a, d) => {
|
|
3801
3799
|
const v = q("sv-svg-icon"), p = q("sv-list-item");
|
|
@@ -3882,7 +3880,7 @@ const Yo = /* @__PURE__ */ me(Qo, [["render", Jo]]), xo = ["aria-label"], et = /
|
|
|
3882
3880
|
const n = l, o = R(() => n.item.elementId), e = (s) => {
|
|
3883
3881
|
n.model.onItemClick(n.item), s.stopPropagation();
|
|
3884
3882
|
};
|
|
3885
|
-
return L(() => n.item),
|
|
3883
|
+
return L(() => n.item), _(() => {
|
|
3886
3884
|
setTimeout(() => {
|
|
3887
3885
|
n.model.onLastItemRended(n.item);
|
|
3888
3886
|
});
|
|
@@ -3942,7 +3940,7 @@ const Yo = /* @__PURE__ */ me(Qo, [["render", Jo]]), xo = ["aria-label"], et = /
|
|
|
3942
3940
|
o.value.dispose(), o.value = te(s, void 0);
|
|
3943
3941
|
},
|
|
3944
3942
|
{ immediate: !0 }
|
|
3945
|
-
), L(() => o.value),
|
|
3943
|
+
), L(() => o.value), _(() => {
|
|
3946
3944
|
const s = e.value;
|
|
3947
3945
|
o.value.setComponentElement(
|
|
3948
3946
|
s,
|
|
@@ -4086,7 +4084,8 @@ const Yo = /* @__PURE__ */ me(Qo, [["render", Jo]]), xo = ["aria-label"], et = /
|
|
|
4086
4084
|
style: S({ width: o.value }),
|
|
4087
4085
|
role: "progressbar",
|
|
4088
4086
|
"aria-valuemin": "0",
|
|
4089
|
-
"aria-valuemax": "100"
|
|
4087
|
+
"aria-valuemax": "100",
|
|
4088
|
+
"aria-label": "progress"
|
|
4090
4089
|
}, [
|
|
4091
4090
|
c("span", {
|
|
4092
4091
|
class: r(e(i.survey.css))
|
|
@@ -4111,7 +4110,7 @@ const Yo = /* @__PURE__ */ me(Qo, [["render", Jo]]), xo = ["aria-label"], et = /
|
|
|
4111
4110
|
let M = s.value;
|
|
4112
4111
|
M.scrollLeft += ($ ? -1 : 1) * 70;
|
|
4113
4112
|
};
|
|
4114
|
-
return
|
|
4113
|
+
return _(() => {
|
|
4115
4114
|
const $ = s.value;
|
|
4116
4115
|
a = setInterval(() => {
|
|
4117
4116
|
e.value = $.scrollWidth > $.offsetWidth;
|
|
@@ -4140,7 +4139,7 @@ const Yo = /* @__PURE__ */ me(Qo, [["render", Jo]]), xo = ["aria-label"], et = /
|
|
|
4140
4139
|
(t(!0), u(w, null, B($.survey.visiblePages, (h, D) => (t(), u("li", {
|
|
4141
4140
|
key: "listelement" + D,
|
|
4142
4141
|
class: r(v(D)),
|
|
4143
|
-
onClick: (
|
|
4142
|
+
onClick: (E) => d(D) ? p(D) : null
|
|
4144
4143
|
}, [
|
|
4145
4144
|
c("div", {
|
|
4146
4145
|
class: r(i.value.progressButtonsPageTitle),
|
|
@@ -4196,7 +4195,7 @@ const Yo = /* @__PURE__ */ me(Qo, [["render", Jo]]), xo = ["aria-label"], et = /
|
|
|
4196
4195
|
}), Nt = { onsubmit: "return false;" }, Ht = {
|
|
4197
4196
|
key: 0,
|
|
4198
4197
|
class: "sv_custom_header"
|
|
4199
|
-
}, At = ["id"],
|
|
4198
|
+
}, At = ["id"], _t = { key: 2 }, Et = ["innerHTML"], Vt = ["innerHTML"], Ot = ["innerHTML"], re = /* @__PURE__ */ g({
|
|
4200
4199
|
__name: "Survey",
|
|
4201
4200
|
props: {
|
|
4202
4201
|
model: {},
|
|
@@ -4212,7 +4211,7 @@ const Yo = /* @__PURE__ */ me(Qo, [["render", Jo]]), xo = ["aria-label"], et = /
|
|
|
4212
4211
|
}, v = R(
|
|
4213
4212
|
() => i.value.showCompletedPage && i.value.state === "completed"
|
|
4214
4213
|
), p = R(() => i.value.css), b = R(() => "page" + d()), f = () => v.value ? (e.value || (e.value = i.value.processedCompletedHtml), e.value) : "";
|
|
4215
|
-
return L(() => i.value),
|
|
4214
|
+
return L(() => i.value), _(() => {
|
|
4216
4215
|
if (!!i.value) {
|
|
4217
4216
|
i.value.needRenderIcons && De.renderIcons();
|
|
4218
4217
|
var $ = o.value;
|
|
@@ -4224,7 +4223,7 @@ const Yo = /* @__PURE__ */ me(Qo, [["render", Jo]]), xo = ["aria-label"], et = /
|
|
|
4224
4223
|
}), V(() => {
|
|
4225
4224
|
i.value.stopTimer(), i.value.renderCallback = void 0;
|
|
4226
4225
|
}), ($, M) => {
|
|
4227
|
-
const h = q("survey-popup-modal"), D = q("survey-header"),
|
|
4226
|
+
const h = q("survey-popup-modal"), D = q("survey-header"), E = q("survey-page"), O = q("sv-brand-info"), Q = q("sv-notifier");
|
|
4228
4227
|
return t(), u("div", {
|
|
4229
4228
|
class: r(i.value.getRootCss()),
|
|
4230
4229
|
style: S(i.value.themeVariables),
|
|
@@ -4245,7 +4244,7 @@ const Yo = /* @__PURE__ */ me(Qo, [["render", Jo]]), xo = ["aria-label"], et = /
|
|
|
4245
4244
|
c("div", {
|
|
4246
4245
|
class: r(p.value.container)
|
|
4247
4246
|
}, [
|
|
4248
|
-
i.value.
|
|
4247
|
+
i.value.headerView === "basic" ? (t(), y(D, {
|
|
4249
4248
|
key: 0,
|
|
4250
4249
|
survey: i.value
|
|
4251
4250
|
}, null, 8, ["survey"])) : m("", !0),
|
|
@@ -4273,7 +4272,7 @@ const Yo = /* @__PURE__ */ me(Qo, [["render", Jo]]), xo = ["aria-label"], et = /
|
|
|
4273
4272
|
container: "contentTop",
|
|
4274
4273
|
needRenderWrapper: !0
|
|
4275
4274
|
}, null, 8, ["survey"])),
|
|
4276
|
-
(t(), y(
|
|
4275
|
+
(t(), y(E, {
|
|
4277
4276
|
key: b.value,
|
|
4278
4277
|
survey: i.value,
|
|
4279
4278
|
page: i.value.activePage,
|
|
@@ -4296,11 +4295,11 @@ const Yo = /* @__PURE__ */ me(Qo, [["render", Jo]]), xo = ["aria-label"], et = /
|
|
|
4296
4295
|
container: "footer",
|
|
4297
4296
|
needRenderWrapper: !1
|
|
4298
4297
|
}, null, 8, ["survey"])),
|
|
4299
|
-
v.value ? (t(), u("div",
|
|
4298
|
+
v.value ? (t(), u("div", _t, [
|
|
4300
4299
|
c("div", {
|
|
4301
4300
|
innerHTML: f(),
|
|
4302
4301
|
class: r(i.value.completedCss)
|
|
4303
|
-
}, null, 10,
|
|
4302
|
+
}, null, 10, Et),
|
|
4304
4303
|
(t(), y(N("sv-components-container"), {
|
|
4305
4304
|
survey: i.value,
|
|
4306
4305
|
container: "completePage",
|
|
@@ -4514,7 +4513,7 @@ const Yo = /* @__PURE__ */ me(Qo, [["render", Jo]]), xo = ["aria-label"], et = /
|
|
|
4514
4513
|
), s = R(
|
|
4515
4514
|
() => !!n.question.customWidget.htmlTemplate
|
|
4516
4515
|
), i = R(() => n.question.customWidget.htmlTemplate), a = R(() => "survey-" + n.question.getTemplate());
|
|
4517
|
-
return
|
|
4516
|
+
return _(() => {
|
|
4518
4517
|
n.question.customWidget.afterRender(n.question, o.value);
|
|
4519
4518
|
}), K(() => {
|
|
4520
4519
|
n.question.customWidget.willUnmount(n.question, o.value);
|
|
@@ -4690,10 +4689,11 @@ const ii = /* @__PURE__ */ me(ni, [["render", ti]]), li = /* @__PURE__ */ g({
|
|
|
4690
4689
|
style: S(o.model.backgroundImageStyle)
|
|
4691
4690
|
}, null, 6)) : m("", !0),
|
|
4692
4691
|
c("div", {
|
|
4693
|
-
class: r(o.model.contentClasses)
|
|
4692
|
+
class: r(o.model.contentClasses),
|
|
4693
|
+
style: S({ maxWidth: o.model.maxWidth })
|
|
4694
4694
|
}, [
|
|
4695
4695
|
(t(!0), u(w, null, B(o.model.cells, (i) => (t(), y(s, { model: i }, null, 8, ["model"]))), 256))
|
|
4696
|
-
],
|
|
4696
|
+
], 6)
|
|
4697
4697
|
], 6);
|
|
4698
4698
|
};
|
|
4699
4699
|
}
|
|
@@ -4733,7 +4733,7 @@ const ii = /* @__PURE__ */ me(ni, [["render", ti]]), li = /* @__PURE__ */ g({
|
|
|
4733
4733
|
n.model.showTitle ? (t(), u("div", {
|
|
4734
4734
|
key: 1,
|
|
4735
4735
|
class: "sv-cover__title",
|
|
4736
|
-
style: S({ maxWidth: n.model.
|
|
4736
|
+
style: S({ maxWidth: n.model.textAreaWidth })
|
|
4737
4737
|
}, [
|
|
4738
4738
|
C(e, {
|
|
4739
4739
|
element: n.model.survey,
|
|
@@ -4743,7 +4743,7 @@ const ii = /* @__PURE__ */ me(ni, [["render", ti]]), li = /* @__PURE__ */ g({
|
|
|
4743
4743
|
n.model.showDescription ? (t(), u("div", {
|
|
4744
4744
|
key: 2,
|
|
4745
4745
|
class: "sv-cover__description",
|
|
4746
|
-
style: S({ maxWidth: n.model.
|
|
4746
|
+
style: S({ maxWidth: n.model.textAreaWidth })
|
|
4747
4747
|
}, [
|
|
4748
4748
|
n.model.survey.renderedHasDescription ? (t(), u("h5", {
|
|
4749
4749
|
key: 0,
|
|
@@ -4930,13 +4930,13 @@ const ii = /* @__PURE__ */ me(ni, [["render", ti]]), li = /* @__PURE__ */ g({
|
|
|
4930
4930
|
});
|
|
4931
4931
|
He.platform = "vue3";
|
|
4932
4932
|
function bi(l) {
|
|
4933
|
-
l.component("SurveyComponent", re), l.component("PopupSurveyComponent", ae), l.component("survey", re), l.component("popup-survey", ae), l.component("survey-header", We), l.component("survey-page", Ve), l.component("survey-row", ze), l.component("survey-element", Ke), l.component("survey-panel", Ze), l.component("survey-element-header", Ge), l.component("survey-string", Xe), l.component("sv-string-viewer", xe), l.component("sv-string-editor", ss), l.component("sv-skeleton", os), l.component("survey-text", ls), l.component("survey-text-input", ds), l.component("survey-checkbox", ps), l.component("survey-checkbox-item", hs), l.component("survey-radiogroup", fs), l.component("survey-radiogroup-item", Rs), l.component("survey-signaturepad", Ls), l.component("survey-html", Ps), l.component("survey-image", As), l.component("survey-expression",
|
|
4933
|
+
l.component("SurveyComponent", re), l.component("PopupSurveyComponent", ae), l.component("survey", re), l.component("popup-survey", ae), l.component("survey-header", We), l.component("survey-page", Ve), l.component("survey-row", ze), l.component("survey-element", Ke), l.component("survey-panel", Ze), l.component("survey-element-header", Ge), l.component("survey-string", Xe), l.component("sv-string-viewer", xe), l.component("sv-string-editor", ss), l.component("sv-skeleton", os), l.component("survey-text", ls), l.component("survey-text-input", ds), l.component("survey-checkbox", ps), l.component("survey-checkbox-item", hs), l.component("survey-radiogroup", fs), l.component("survey-radiogroup-item", Rs), l.component("survey-signaturepad", Ls), l.component("survey-html", Ps), l.component("survey-image", As), l.component("survey-expression", _s), l.component("survey-file", Os), l.component("sv-file-choose-btn", vi), l.component("sv-file-clean-btn", di), l.component("sv-file-preview", Ci), l.component("sv-file-video", ci), l.component("survey-imagepicker", Ws), l.component("survey-imagepicker-item", Qs), l.component("survey-comment", Xs), l.component("survey-dropdown", Js), l.component("sv-dropdown-select", sn), l.component("sv-dropdown-option-item", on), l.component("sv-dropdown", un), l.component("survey-tagbox", dn), l.component("sv-tagbox", pn), l.component("sv-tagbox-item", hn), l.component("sv-tagbox-filter", yn), l.component("survey-ranking", Cn), l.component("survey-ranking-item", Tn), l.component("survey-rating", Ln), l.component("sv-rating-item", Pn), l.component("sv-rating-item-smiley", Nn), l.component("sv-rating-item-star", An), l.component("sv-rating-dropdown", _n), l.component("survey-boolean", Vn), l.component("sv-boolean-radio", On), l.component("sv-boolean-radio-item", zn), l.component("sv-boolean-checkbox", Zn), l.component("survey-multipletext", Gn), l.component("survey-multipletext-item", Jn), l.component("survey-matrix", io), l.component("survey-matrixdropdown", lo), l.component("survey-matrixtable", mo), l.component("survey-matrixheaderrequired", po), l.component("survey-matrixcell", qo), l.component("survey-matrixdynamic", yo), l.component("sv-matrix-remove-button", ho), l.component("sv-matrix-drag-drop-icon", bo), l.component("sv-matrix-detail-button", fo), l.component("survey-paneldynamic", Io), l.component("survey-paneldynamicprogress", wo), l.component("survey-paneldynamicprogress-v2", So), l.component("sv-paneldynamic-add-btn", Ro), l.component("sv-paneldynamic-next-btn", $o), l.component("sv-paneldynamic-prev-btn", Lo), l.component("sv-paneldynamic-remove-btn", Do), l.component("sv-paneldynamic-progress-text", Po), l.component("sv-components-container", $t), l.component("sv-progress-buttons", Pt), l.component("sv-progress-toc", Mt), l.component("sv-progress-pages", Z), l.component("sv-progress-questions", Z), l.component("sv-progress-correctquestions", Z), l.component("sv-progress-requiredquestions", Z), l.component("survey-errors", No), l.component("survey-question-comment", _o), l.component("survey-element-title", Eo), l.component("survey-element-title-content", zo), l.component("sv-title-actions", jo), l.component("sv-brand-info", Yo), l.component("sv-svg-icon", nt), l.component("sv-action-bar", ot), l.component("sv-action", lt), l.component("sv-action-bar-item", at), l.component("sv-action-bar-item-dropdown", dt), l.component("sv-action-bar-separator", mt), l.component("sv-list", qt), l.component("sv-list-item", gt), l.component("sv-popup", ht), l.component("sv-popup-container", St), l.component("popup-pointer", Rt), l.component("sv-notifier", Ft), l.component("survey-other-choice", Ut), l.component("sv-nav-btn", jt), l.component("survey-customwidget", Zt), l.component("survey-popup-modal", Gt), l.component("sv-character-counter", Xt), l.component("survey-composite", Jt), l.component("survey-custom", Yt), l.component("sv-timerpanel", si), l.component("sv-loading-indicator", ii), l.component("sv-cover", li), l.component("sv-cover-cell", ui), l.directive("key2click", {
|
|
4934
4934
|
mounted: function(n, o) {
|
|
4935
4935
|
const e = { ...o.value };
|
|
4936
4936
|
e.disableTabStop || (n.tabIndex = 0), n.addEventListener("keyup", (s) => (s.preventDefault(), s.stopPropagation(), de(s, e), !1)), n.addEventListener("keydown", (s) => {
|
|
4937
4937
|
Ae(s, e);
|
|
4938
4938
|
}), n.addEventListener("blur", (s) => {
|
|
4939
|
-
|
|
4939
|
+
_e(s);
|
|
4940
4940
|
});
|
|
4941
4941
|
}
|
|
4942
4942
|
});
|