survey-creator-vue 2.4.0 → 2.4.1
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 +4 -4
- package/survey-creator-vue.es.js +170 -165
- package/survey-creator-vue.umd.js +1 -1
package/survey-creator-vue.es.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { useBase as
|
|
2
|
-
import { defineComponent as g, computed as k, toRaw as _e, ref as P, onMounted as R, onUnmounted as K, openBlock as a, createElementBlock as i, Fragment as
|
|
3
|
-
import { editorLocalization as ce, SurveyResultsModel as ye, initLogicOperator as he, StringEditorViewModelBase as Ce, ToolboxToolViewModel as qe, PageAdorner as $e, RowViewModel as ke, QuestionAdornerViewModel as ee, QuestionImageAdornerViewModel as fe, QuestionRatingAdornerViewModel as we, MatrixCellWrapperViewModel as
|
|
1
|
+
import { useBase as f, SvComponent as c, key2ClickDirective as M, SurveyComponent as O, useQuestion as Q, ComponentFactory as ie } from "survey-vue3-ui";
|
|
2
|
+
import { defineComponent as g, computed as k, toRaw as _e, ref as P, onMounted as R, onUnmounted as K, openBlock as a, createElementBlock as i, Fragment as w, createVNode as v, unref as s, createElementVNode as d, normalizeClass as m, normalizeStyle as F, createCommentVNode as p, renderList as A, createBlock as b, onUpdated as G, nextTick as re, withDirectives as h, toDisplayString as T, vShow as H, withCtx as X, createTextVNode as ge, shallowRef as be, watch as W, onBeforeUnmount as Y, vModelText as de, mergeProps as V, renderSlot as x } from "vue";
|
|
3
|
+
import { editorLocalization as ce, SurveyResultsModel as ye, initLogicOperator as he, StringEditorViewModelBase as Ce, ToolboxToolViewModel as qe, PageAdorner as $e, RowViewModel as ke, QuestionAdornerViewModel as ee, QuestionImageAdornerViewModel as fe, QuestionRatingAdornerViewModel as we, MatrixCellWrapperViewModel as Te, ItemValueWrapperViewModel as De, ImageItemValueWrapperViewModel as Ne, LogoImageViewModel as Me, PageNavigatorViewModel as Se, QuestionDropdownAdornerViewModel as Be, editableStringRendererName as Ie } from "survey-creator-core";
|
|
4
4
|
import { CssClassBuilder as Ee, RendererFactory as ue, DropdownListModel as Pe } from "survey-core";
|
|
5
5
|
const Re = { class: "svc-flex-column svc-flex-row__element svc-flex-row__element--growing" }, Ve = { class: "svc-top-bar" }, Ae = {
|
|
6
6
|
key: 0,
|
|
@@ -18,7 +18,7 @@ const Re = { class: "svc-flex-column svc-flex-row__element svc-flex-row__element
|
|
|
18
18
|
},
|
|
19
19
|
setup(u) {
|
|
20
20
|
const t = u, e = k(() => _e(t.model)), o = P();
|
|
21
|
-
return
|
|
21
|
+
return f(
|
|
22
22
|
() => e.value,
|
|
23
23
|
(n, r) => {
|
|
24
24
|
r && r.unsubscribeRootElement(), n && o.value && n.setRootElement(o.value);
|
|
@@ -27,7 +27,7 @@ const Re = { class: "svc-flex-column svc-flex-row__element svc-flex-row__element
|
|
|
27
27
|
o.value && t.model.setRootElement(o.value);
|
|
28
28
|
}), K(() => {
|
|
29
29
|
t.model.unsubscribeRootElement();
|
|
30
|
-
}), (n, r) => e.value.isCreatorDisposed ? p("", !0) : (a(), i(
|
|
30
|
+
}), (n, r) => e.value.isCreatorDisposed ? p("", !0) : (a(), i(w, { key: 0 }, [
|
|
31
31
|
v(s(c), { is: "survey-popup-modal" }),
|
|
32
32
|
d("div", {
|
|
33
33
|
class: m(e.value.getRootCss()),
|
|
@@ -73,7 +73,7 @@ const Re = { class: "svc-flex-column svc-flex-row__element svc-flex-row__element
|
|
|
73
73
|
}])
|
|
74
74
|
}, [
|
|
75
75
|
d("div", Le, [
|
|
76
|
-
(a(!0), i(
|
|
76
|
+
(a(!0), i(w, null, A(e.value.tabs, (l) => (a(), i(w, null, [
|
|
77
77
|
e.value.viewType == l.id && l.visible ? (a(), i("div", {
|
|
78
78
|
role: "tabpanel",
|
|
79
79
|
class: m(["svc-creator-tab", {
|
|
@@ -130,7 +130,7 @@ const Re = { class: "svc-flex-column svc-flex-row__element svc-flex-row__element
|
|
|
130
130
|
},
|
|
131
131
|
setup(u) {
|
|
132
132
|
const t = u, e = P();
|
|
133
|
-
return
|
|
133
|
+
return f(() => t.model), G(() => {
|
|
134
134
|
t.model.initResponsivityManager(e.value);
|
|
135
135
|
}), R(() => {
|
|
136
136
|
t.model.initResponsivityManager(e.value);
|
|
@@ -143,7 +143,7 @@ const Re = { class: "svc-flex-column svc-flex-row__element svc-flex-row__element
|
|
|
143
143
|
role: "tablist",
|
|
144
144
|
style: F(o.model.getRootStyle())
|
|
145
145
|
}, [
|
|
146
|
-
(a(!0), i(
|
|
146
|
+
(a(!0), i(w, null, A(o.model.renderedActions, (r) => (a(), b(s(c), {
|
|
147
147
|
key: r.renderedId,
|
|
148
148
|
is: "svc-tabbed-menu-item-wrapper",
|
|
149
149
|
item: r
|
|
@@ -157,7 +157,7 @@ const Re = { class: "svc-flex-column svc-flex-row__element svc-flex-row__element
|
|
|
157
157
|
},
|
|
158
158
|
setup(u) {
|
|
159
159
|
const t = P(), e = u;
|
|
160
|
-
return
|
|
160
|
+
return f(() => e.item), R(() => {
|
|
161
161
|
const o = e.item;
|
|
162
162
|
o.updateModeCallback = (n, r) => {
|
|
163
163
|
o.mode = n, re(() => r(n, t.value));
|
|
@@ -185,7 +185,7 @@ const Re = { class: "svc-flex-column svc-flex-row__element svc-flex-row__element
|
|
|
185
185
|
},
|
|
186
186
|
setup(u) {
|
|
187
187
|
const t = u;
|
|
188
|
-
return
|
|
188
|
+
return f(() => t.item), (e, o) => h((a(), i("div", {
|
|
189
189
|
role: "tab",
|
|
190
190
|
id: "tab-" + e.item.id,
|
|
191
191
|
"aria-selected": e.item.active,
|
|
@@ -197,7 +197,7 @@ const Re = { class: "svc-flex-column svc-flex-row__element svc-flex-row__element
|
|
|
197
197
|
e.item.hasTitle ? (a(), i("span", {
|
|
198
198
|
key: 0,
|
|
199
199
|
class: m(e.item.getTitleCss())
|
|
200
|
-
},
|
|
200
|
+
}, T(e.item.title), 3)) : p("", !0),
|
|
201
201
|
e.item.hasIcon ? (a(), b(s(c), {
|
|
202
202
|
key: 1,
|
|
203
203
|
is: "sv-svg-icon",
|
|
@@ -217,7 +217,7 @@ const Re = { class: "svc-flex-column svc-flex-row__element svc-flex-row__element
|
|
|
217
217
|
},
|
|
218
218
|
setup(u) {
|
|
219
219
|
const t = u, e = P();
|
|
220
|
-
return
|
|
220
|
+
return f(() => t.model), R(() => {
|
|
221
221
|
t.model.initResizeManager(e.value);
|
|
222
222
|
}), K(() => {
|
|
223
223
|
t.model.resetResizeManager();
|
|
@@ -242,7 +242,7 @@ const Re = { class: "svc-flex-column svc-flex-row__element svc-flex-row__element
|
|
|
242
242
|
model: o.model.header.componentModel
|
|
243
243
|
}, null, 8, ["is", "model"]),
|
|
244
244
|
d("div", xe, [
|
|
245
|
-
(a(!0), i(
|
|
245
|
+
(a(!0), i(w, null, A(o.model.pages, (r, l) => (a(), b(s(c), {
|
|
246
246
|
key: l,
|
|
247
247
|
is: "svc-side-bar-page",
|
|
248
248
|
model: r
|
|
@@ -272,14 +272,14 @@ const Re = { class: "svc-flex-column svc-flex-row__element svc-flex-row__element
|
|
|
272
272
|
},
|
|
273
273
|
setup(u) {
|
|
274
274
|
const t = u;
|
|
275
|
-
return
|
|
275
|
+
return f(() => t.model), (e, o) => (a(), i("div", oo, [
|
|
276
276
|
d("div", so, [
|
|
277
277
|
v(s(c), {
|
|
278
278
|
is: "sv-action-bar",
|
|
279
279
|
model: e.model.toolbar
|
|
280
280
|
}, null, 8, ["model"])
|
|
281
281
|
]),
|
|
282
|
-
e.model.title ? (a(), i("div", to,
|
|
282
|
+
e.model.title ? (a(), i("div", to, T(e.model.title), 1)) : p("", !0)
|
|
283
283
|
]));
|
|
284
284
|
}
|
|
285
285
|
}), ao = /* @__PURE__ */ g({
|
|
@@ -289,7 +289,7 @@ const Re = { class: "svc-flex-column svc-flex-row__element svc-flex-row__element
|
|
|
289
289
|
},
|
|
290
290
|
setup(u) {
|
|
291
291
|
const t = u;
|
|
292
|
-
return
|
|
292
|
+
return f(() => t.model), (e, o) => e.model.visible ? (a(), b(s(c), {
|
|
293
293
|
key: 0,
|
|
294
294
|
is: e.model.componentName,
|
|
295
295
|
model: e.model.componentData
|
|
@@ -302,7 +302,7 @@ const Re = { class: "svc-flex-column svc-flex-row__element svc-flex-row__element
|
|
|
302
302
|
},
|
|
303
303
|
setup(u) {
|
|
304
304
|
const t = u;
|
|
305
|
-
return
|
|
305
|
+
return f(() => t.model), (e, o) => e.model.isVisible ? (a(), b(s(c), {
|
|
306
306
|
key: 0,
|
|
307
307
|
is: "sv-list",
|
|
308
308
|
model: e.model.list
|
|
@@ -315,7 +315,7 @@ const Re = { class: "svc-flex-column svc-flex-row__element svc-flex-row__element
|
|
|
315
315
|
},
|
|
316
316
|
setup(u) {
|
|
317
317
|
const t = u;
|
|
318
|
-
return
|
|
318
|
+
return f(() => t.model), (e, o) => (a(), i("div", {
|
|
319
319
|
class: m(e.model.rootCss)
|
|
320
320
|
}, [
|
|
321
321
|
v(s(c), {
|
|
@@ -335,7 +335,7 @@ const Re = { class: "svc-flex-column svc-flex-row__element svc-flex-row__element
|
|
|
335
335
|
},
|
|
336
336
|
setup(u) {
|
|
337
337
|
const t = u;
|
|
338
|
-
return
|
|
338
|
+
return f(() => t.model), (e, o) => (a(!0), i(w, null, A(e.model.actions, (n, r) => (a(), b(s(c), {
|
|
339
339
|
key: r,
|
|
340
340
|
is: "svc-tab-button",
|
|
341
341
|
model: n
|
|
@@ -350,7 +350,7 @@ const Re = { class: "svc-flex-column svc-flex-row__element svc-flex-row__element
|
|
|
350
350
|
},
|
|
351
351
|
setup(u) {
|
|
352
352
|
const t = u;
|
|
353
|
-
return
|
|
353
|
+
return f(() => t.model), (e, o) => (a(), i("div", {
|
|
354
354
|
class: m(e.model.sideBarClassName)
|
|
355
355
|
}, [
|
|
356
356
|
d("div", co, [
|
|
@@ -393,7 +393,7 @@ const Re = { class: "svc-flex-column svc-flex-row__element svc-flex-row__element
|
|
|
393
393
|
},
|
|
394
394
|
setup(u) {
|
|
395
395
|
const t = u;
|
|
396
|
-
return
|
|
396
|
+
return f(() => t.model), (e, o) => e.model.visible ? (a(), i("div", bo, [
|
|
397
397
|
h((a(), i("div", {
|
|
398
398
|
class: m(e.model.buttonClassName),
|
|
399
399
|
title: e.model.tooltip,
|
|
@@ -413,19 +413,19 @@ const Re = { class: "svc-flex-column svc-flex-row__element svc-flex-row__element
|
|
|
413
413
|
])
|
|
414
414
|
])) : p("", !0);
|
|
415
415
|
}
|
|
416
|
-
}), $o = { class: "svc-property-grid-placeholder" }, ko = { class: "svc-property-grid-placeholder__header" }, fo = { class: "svc-property-grid-placeholder__title" }, wo = { class: "svc-property-grid-placeholder__description" },
|
|
416
|
+
}), $o = { class: "svc-property-grid-placeholder" }, ko = { class: "svc-property-grid-placeholder__header" }, fo = { class: "svc-property-grid-placeholder__title" }, wo = { class: "svc-property-grid-placeholder__description" }, To = /* @__PURE__ */ d("div", { class: "svc-property-grid-placeholder__content" }, [
|
|
417
417
|
/* @__PURE__ */ d("div", { class: "svc-property-grid-placeholder__gap" }),
|
|
418
418
|
/* @__PURE__ */ d("div", { class: "svc-property-grid-placeholder__image" })
|
|
419
|
-
], -1),
|
|
419
|
+
], -1), Do = /* @__PURE__ */ g({
|
|
420
420
|
__name: "PropertyGridPlaceholder",
|
|
421
421
|
setup(u) {
|
|
422
422
|
const t = ce;
|
|
423
423
|
return (e, o) => (a(), i("div", $o, [
|
|
424
424
|
d("div", ko, [
|
|
425
|
-
d("span", fo,
|
|
426
|
-
d("span", wo,
|
|
425
|
+
d("span", fo, T(s(t).getString("ed.propertyGridPlaceholderTitle")), 1),
|
|
426
|
+
d("span", wo, T(s(t).getString("ed.propertyGridPlaceholderDescription")), 1)
|
|
427
427
|
]),
|
|
428
|
-
|
|
428
|
+
To
|
|
429
429
|
]));
|
|
430
430
|
}
|
|
431
431
|
}), No = { class: "svc-side-bar__container-header svc-sidebar__header-container" }, Mo = {
|
|
@@ -441,11 +441,11 @@ const Re = { class: "svc-flex-column svc-flex-row__element svc-flex-row__element
|
|
|
441
441
|
},
|
|
442
442
|
setup(u) {
|
|
443
443
|
const t = u;
|
|
444
|
-
return
|
|
445
|
-
e.model.subTitle ? p("", !0) : (a(), i("div", Mo,
|
|
444
|
+
return f(() => t.model), (e, o) => (a(), i("div", No, [
|
|
445
|
+
e.model.subTitle ? p("", !0) : (a(), i("div", Mo, T(e.model.title), 1)),
|
|
446
446
|
e.model.subTitle ? (a(), i("div", So, [
|
|
447
|
-
d("span", Bo,
|
|
448
|
-
d("span", Io,
|
|
447
|
+
d("span", Bo, T(e.model.title), 1),
|
|
448
|
+
d("span", Io, T(e.model.subTitle), 1)
|
|
449
449
|
])) : p("", !0)
|
|
450
450
|
]));
|
|
451
451
|
}
|
|
@@ -456,7 +456,7 @@ const Re = { class: "svc-flex-column svc-flex-row__element svc-flex-row__element
|
|
|
456
456
|
},
|
|
457
457
|
setup(u) {
|
|
458
458
|
const t = u;
|
|
459
|
-
return
|
|
459
|
+
return f(() => t.model), (e, o) => (a(), i("div", Po, [
|
|
460
460
|
d("div", Ro, [
|
|
461
461
|
d("div", Vo, [
|
|
462
462
|
h((a(), i("div", {
|
|
@@ -464,8 +464,8 @@ const Re = { class: "svc-flex-column svc-flex-row__element svc-flex-row__element
|
|
|
464
464
|
onClick: o[0] || (o[0] = (n) => e.model.action())
|
|
465
465
|
}, [
|
|
466
466
|
d("div", Ao, [
|
|
467
|
-
d("span", zo,
|
|
468
|
-
d("span", Lo,
|
|
467
|
+
d("span", zo, T(e.model.title), 1),
|
|
468
|
+
d("span", Lo, T(e.model.tooltip), 1)
|
|
469
469
|
])
|
|
470
470
|
], 2)), [
|
|
471
471
|
[s(M), { processEsc: !1 }]
|
|
@@ -522,25 +522,25 @@ const Re = { class: "svc-flex-column svc-flex-row__element svc-flex-row__element
|
|
|
522
522
|
const t = u, e = (n) => {
|
|
523
523
|
t.click(), t.allowBubble || n.stopPropagation();
|
|
524
524
|
}, o = () => new Ee().append(t.classes || "").append("svc-action-button").append("svc-action-button--icon", !!t.iconName).append("svc-action-button--selected", !!t.selected).append("svc-action-button--disabled", !!t.disabled).toString();
|
|
525
|
-
return (n, r) => (a(), i(
|
|
526
|
-
n.iconName ? p("", !0) : (a(), i(
|
|
525
|
+
return (n, r) => (a(), i(w, null, [
|
|
526
|
+
n.iconName ? p("", !0) : (a(), i(w, { key: 0 }, [
|
|
527
527
|
n.disabled ? (a(), i("span", {
|
|
528
528
|
key: 0,
|
|
529
529
|
class: m(["svc-action-button svc-action-button--disabled", n.classes]),
|
|
530
530
|
title: n.title
|
|
531
|
-
},
|
|
531
|
+
}, T(n.text), 11, Uo)) : p("", !0),
|
|
532
532
|
h((a(), i("span", {
|
|
533
533
|
role: "button",
|
|
534
534
|
class: m(["svc-action-button", o()]),
|
|
535
535
|
onClick: e,
|
|
536
536
|
title: n.title
|
|
537
537
|
}, [
|
|
538
|
-
ge(
|
|
538
|
+
ge(T(n.text), 1)
|
|
539
539
|
], 10, Ho)), [
|
|
540
540
|
[s(M)]
|
|
541
541
|
])
|
|
542
542
|
], 64)),
|
|
543
|
-
n.iconName ? (a(), i(
|
|
543
|
+
n.iconName ? (a(), i(w, { key: 1 }, [
|
|
544
544
|
n.disabled ? (a(), i("span", {
|
|
545
545
|
key: 0,
|
|
546
546
|
class: m(o()),
|
|
@@ -584,7 +584,7 @@ const Re = { class: "svc-flex-column svc-flex-row__element svc-flex-row__element
|
|
|
584
584
|
},
|
|
585
585
|
setup(u) {
|
|
586
586
|
const t = u;
|
|
587
|
-
return
|
|
587
|
+
return f(() => t.item), (e, o) => h((a(), i("button", {
|
|
588
588
|
class: m(e.item.getActionBarItemCss()),
|
|
589
589
|
type: "button",
|
|
590
590
|
onClick: o[0] || (o[0] = (n) => {
|
|
@@ -602,7 +602,7 @@ const Re = { class: "svc-flex-column svc-flex-row__element svc-flex-row__element
|
|
|
602
602
|
d("div", {
|
|
603
603
|
class: m(e.item.getSwitcherIconCss())
|
|
604
604
|
}, Jo, 2),
|
|
605
|
-
e.item.hasTitle ? (a(), i("span", Zo,
|
|
605
|
+
e.item.hasTitle ? (a(), i("span", Zo, T(e.item.title), 1)) : p("", !0)
|
|
606
606
|
], 42, Wo)), [
|
|
607
607
|
[s(M), { processEsc: !1, disableTabStop: e.item.disableTabStop }]
|
|
608
608
|
]);
|
|
@@ -617,7 +617,7 @@ const Re = { class: "svc-flex-column svc-flex-row__element svc-flex-row__element
|
|
|
617
617
|
},
|
|
618
618
|
setup(u) {
|
|
619
619
|
const t = u;
|
|
620
|
-
|
|
620
|
+
f(() => t.model);
|
|
621
621
|
const e = k(() => t.model.simulatorFrame), o = () => {
|
|
622
622
|
t.model.device !== "desktop" && t.model.activateZoom();
|
|
623
623
|
}, n = () => {
|
|
@@ -676,8 +676,8 @@ const Re = { class: "svc-flex-column svc-flex-row__element svc-flex-row__element
|
|
|
676
676
|
class: m(["svc-surface-placeholder__image", "svc-surface-placeholder__image--" + e.name])
|
|
677
677
|
}, null, 2),
|
|
678
678
|
d("div", ts, [
|
|
679
|
-
d("div", ns,
|
|
680
|
-
d("div", as,
|
|
679
|
+
d("div", ns, T(t.placeholderTitleText), 1),
|
|
680
|
+
d("div", as, T(t.placeholderDescriptionText), 1)
|
|
681
681
|
])
|
|
682
682
|
]));
|
|
683
683
|
}
|
|
@@ -691,7 +691,7 @@ const Re = { class: "svc-flex-column svc-flex-row__element svc-flex-row__element
|
|
|
691
691
|
},
|
|
692
692
|
setup(u) {
|
|
693
693
|
const t = u;
|
|
694
|
-
return
|
|
694
|
+
return f(() => t.model), (e, o) => (a(), i("div", {
|
|
695
695
|
class: m(["svc-creator-tab__content svc-test-tab__content", {
|
|
696
696
|
"svc-creator-tab__content--with-toolbar": e.model.isPageToolbarVisible
|
|
697
697
|
}])
|
|
@@ -733,12 +733,12 @@ const Re = { class: "svc-flex-column svc-flex-row__element svc-flex-row__element
|
|
|
733
733
|
},
|
|
734
734
|
setup(u) {
|
|
735
735
|
const t = u, e = k(() => t.model.testAgainAction);
|
|
736
|
-
return
|
|
736
|
+
return f(() => e.value), (o, n) => h((a(), i("div", {
|
|
737
737
|
role: "button",
|
|
738
738
|
class: "svc-preview__test-again svc-btn",
|
|
739
739
|
onClick: n[0] || (n[0] = (r) => e.value.action())
|
|
740
740
|
}, [
|
|
741
|
-
d("span", rs,
|
|
741
|
+
d("span", rs, T(e.value.title), 1)
|
|
742
742
|
])), [
|
|
743
743
|
[s(M)]
|
|
744
744
|
]);
|
|
@@ -754,7 +754,7 @@ function z(u, t, e) {
|
|
|
754
754
|
immediate: !0
|
|
755
755
|
}
|
|
756
756
|
);
|
|
757
|
-
return
|
|
757
|
+
return f(() => o.value, void 0, e), Y(() => {
|
|
758
758
|
n();
|
|
759
759
|
}), o;
|
|
760
760
|
}
|
|
@@ -774,7 +774,7 @@ const cs = {
|
|
|
774
774
|
return (o, n) => s(e) ? (a(), i("div", cs, [
|
|
775
775
|
d("div", us, [
|
|
776
776
|
d("div", ps, [
|
|
777
|
-
d("div", vs,
|
|
777
|
+
d("div", vs, T(s(e).surveyResultsText), 1),
|
|
778
778
|
d("div", ms, [
|
|
779
779
|
v(s(c), {
|
|
780
780
|
is: "svc-action-button",
|
|
@@ -793,7 +793,7 @@ const cs = {
|
|
|
793
793
|
])
|
|
794
794
|
]),
|
|
795
795
|
h(d("div", _s, [
|
|
796
|
-
d("div", null,
|
|
796
|
+
d("div", null, T(s(e).resultText), 1)
|
|
797
797
|
], 512), [
|
|
798
798
|
[H, s(e).resultViewType === "text"]
|
|
799
799
|
]),
|
|
@@ -801,12 +801,12 @@ const cs = {
|
|
|
801
801
|
d("table", null, [
|
|
802
802
|
d("thead", null, [
|
|
803
803
|
d("tr", bs, [
|
|
804
|
-
d("th", ys,
|
|
805
|
-
d("th", hs,
|
|
804
|
+
d("th", ys, T(s(e).resultsTitle), 1),
|
|
805
|
+
d("th", hs, T(s(e).resultsDisplayValue), 1)
|
|
806
806
|
])
|
|
807
807
|
]),
|
|
808
808
|
d("tbody", null, [
|
|
809
|
-
(a(!0), i(
|
|
809
|
+
(a(!0), i(w, null, A(s(e).resultData, (r, l) => (a(), b(s(c), {
|
|
810
810
|
is: "survey-results-table-row",
|
|
811
811
|
model: r,
|
|
812
812
|
key: l
|
|
@@ -826,7 +826,7 @@ const cs = {
|
|
|
826
826
|
},
|
|
827
827
|
setup(u) {
|
|
828
828
|
const t = u;
|
|
829
|
-
return
|
|
829
|
+
return f(() => t.model), (e, o) => (a(), i(w, null, [
|
|
830
830
|
h((a(), i("tr", {
|
|
831
831
|
onClick: o[0] || (o[0] = //@ts-ignore
|
|
832
832
|
(...n) => e.model.toggle && e.model.toggle(...n))
|
|
@@ -850,32 +850,32 @@ const cs = {
|
|
|
850
850
|
key: 1,
|
|
851
851
|
is: "survey-string",
|
|
852
852
|
locString: e.model.question.locTitle
|
|
853
|
-
}, null, 8, ["locString"])) : (a(), i("span", qs,
|
|
853
|
+
}, null, 8, ["locString"])) : (a(), i("span", qs, T(e.model.title), 1))
|
|
854
854
|
], 4),
|
|
855
855
|
d("td", {
|
|
856
856
|
class: m({
|
|
857
857
|
"svd-test-results__node-value": e.model.isNode,
|
|
858
858
|
"svd-dark-border-color": !e.model.isNode
|
|
859
859
|
})
|
|
860
|
-
},
|
|
860
|
+
}, T(e.model.getString(e.model.displayValue)), 3)
|
|
861
861
|
])), [
|
|
862
862
|
[s(M)]
|
|
863
863
|
]),
|
|
864
|
-
e.model.isNode && !e.model.collapsed ? (a(!0), i(
|
|
864
|
+
e.model.isNode && !e.model.collapsed ? (a(!0), i(w, { key: 0 }, A(e.model.data, (n, r) => (a(), b(s(c), {
|
|
865
865
|
is: "survey-results-table-row",
|
|
866
866
|
model: n,
|
|
867
867
|
key: r + 1
|
|
868
868
|
}, null, 8, ["model"]))), 128)) : p("", !0)
|
|
869
869
|
], 64));
|
|
870
870
|
}
|
|
871
|
-
}), ks = { class: "svc-creator-tab__content" }, fs = { class: "svc-json-editor-tab__content" }, ws = { class: "svc-json-editor-tab__errros_list" },
|
|
871
|
+
}), ks = { class: "svc-creator-tab__content" }, fs = { class: "svc-json-editor-tab__content" }, ws = { class: "svc-json-editor-tab__errros_list" }, Ts = /* @__PURE__ */ g({
|
|
872
872
|
__name: "JsonEditorAce",
|
|
873
873
|
props: {
|
|
874
874
|
model: {}
|
|
875
875
|
},
|
|
876
876
|
setup(u) {
|
|
877
877
|
const t = u, e = P();
|
|
878
|
-
return
|
|
878
|
+
return f(() => t.model), R(() => t.model.init(window.ace.edit(e.value))), (o, n) => (a(), i("div", ks, [
|
|
879
879
|
d("div", fs, [
|
|
880
880
|
d("div", {
|
|
881
881
|
class: "svc-json-editor-tab__ace-editor",
|
|
@@ -893,17 +893,17 @@ const cs = {
|
|
|
893
893
|
])
|
|
894
894
|
]));
|
|
895
895
|
}
|
|
896
|
-
}),
|
|
896
|
+
}), Ds = { class: "svc-creator-tab__content" }, Ns = { class: "svc-json-editor-tab__content" }, Ms = ["aria-label", "disabled"], Ss = { class: "svc-json-editor-tab__errros_list" }, Bs = /* @__PURE__ */ g({
|
|
897
897
|
__name: "JsonEditorTextArea",
|
|
898
898
|
props: {
|
|
899
899
|
model: {}
|
|
900
900
|
},
|
|
901
901
|
setup(u) {
|
|
902
902
|
const t = u, e = P(), o = t.model;
|
|
903
|
-
return o.canShowErrors = !1,
|
|
903
|
+
return o.canShowErrors = !1, f(() => t.model), R(() => {
|
|
904
904
|
const n = t.model;
|
|
905
905
|
n.textElement = e.value;
|
|
906
|
-
}), (n, r) => (a(), i("div",
|
|
906
|
+
}), (n, r) => (a(), i("div", Ds, [
|
|
907
907
|
d("div", Ns, [
|
|
908
908
|
h(d("textarea", {
|
|
909
909
|
class: "svc-json-editor-tab__content-area",
|
|
@@ -935,11 +935,11 @@ const cs = {
|
|
|
935
935
|
},
|
|
936
936
|
setup(u) {
|
|
937
937
|
const t = u;
|
|
938
|
-
|
|
938
|
+
f(() => t.item);
|
|
939
939
|
const e = (o) => {
|
|
940
940
|
o.stopPropagation(), t.item.data.fixError();
|
|
941
941
|
};
|
|
942
|
-
return (o, n) => (a(), i(
|
|
942
|
+
return (o, n) => (a(), i(w, null, [
|
|
943
943
|
v(s(c), {
|
|
944
944
|
is: "sv-svg-icon",
|
|
945
945
|
iconName: o.item.iconName,
|
|
@@ -979,7 +979,7 @@ const cs = {
|
|
|
979
979
|
},
|
|
980
980
|
setup(u) {
|
|
981
981
|
const t = u;
|
|
982
|
-
|
|
982
|
+
f(() => t.model);
|
|
983
983
|
const e = (o) => {
|
|
984
984
|
o.stopPropagation(), t.model.action();
|
|
985
985
|
};
|
|
@@ -990,7 +990,7 @@ const cs = {
|
|
|
990
990
|
}]),
|
|
991
991
|
onClick: e
|
|
992
992
|
}, [
|
|
993
|
-
d("span", Vs,
|
|
993
|
+
d("span", Vs, T(o.model.title), 1)
|
|
994
994
|
], 2)), [
|
|
995
995
|
[s(M)]
|
|
996
996
|
]);
|
|
@@ -1005,11 +1005,11 @@ const cs = {
|
|
|
1005
1005
|
},
|
|
1006
1006
|
setup(u) {
|
|
1007
1007
|
const t = u;
|
|
1008
|
-
return
|
|
1008
|
+
return f(() => t.model), (e, o) => (a(), i("div", As, [
|
|
1009
1009
|
d("div", {
|
|
1010
1010
|
class: m(["svc-plugin-tab__content svc-logic-tab__content", { "svc-logic-tab--empty": !e.model.hasItems }])
|
|
1011
1011
|
}, [
|
|
1012
|
-
e.model.hasItems ? (a(), i(
|
|
1012
|
+
e.model.hasItems ? (a(), i(w, { key: 0 }, [
|
|
1013
1013
|
v(s(O), {
|
|
1014
1014
|
model: e.model.itemsSurvey
|
|
1015
1015
|
}, null, 8, ["model"]),
|
|
@@ -1058,7 +1058,7 @@ const Us = /* @__PURE__ */ g({
|
|
|
1058
1058
|
return (l, _) => (a(), i("div", {
|
|
1059
1059
|
class: m(l.question.cssClasses.selectWrapper)
|
|
1060
1060
|
}, [
|
|
1061
|
-
l.question.isReadOnly ? p("", !0) : (a(), i(
|
|
1061
|
+
l.question.isReadOnly ? p("", !0) : (a(), i(w, { key: 0 }, [
|
|
1062
1062
|
d("div", {
|
|
1063
1063
|
class: m(l.question.getControlClass()),
|
|
1064
1064
|
onClick: n,
|
|
@@ -1129,7 +1129,7 @@ const Us = /* @__PURE__ */ g({
|
|
|
1129
1129
|
},
|
|
1130
1130
|
setup(u) {
|
|
1131
1131
|
const t = u, e = P(), o = ce.getString("pe.clear");
|
|
1132
|
-
return Q(t, e), (n, r) => (a(), i(
|
|
1132
|
+
return Q(t, e), (n, r) => (a(), i(w, null, [
|
|
1133
1133
|
v(s(c), {
|
|
1134
1134
|
is: "svc-action-button",
|
|
1135
1135
|
text: n.question.linkValueText,
|
|
@@ -1160,7 +1160,7 @@ const Us = /* @__PURE__ */ g({
|
|
|
1160
1160
|
},
|
|
1161
1161
|
setup(u) {
|
|
1162
1162
|
const t = u;
|
|
1163
|
-
return
|
|
1163
|
+
return f(() => t.model), (e, o) => (a(), i("div", {
|
|
1164
1164
|
class: m(["svc-creator-tab__content svc-translation-tab", e.model.isEmpty ? "svc-translation-tab--empty" : ""])
|
|
1165
1165
|
}, [
|
|
1166
1166
|
e.model.isEmpty ? (a(), b(j, {
|
|
@@ -1205,7 +1205,7 @@ const et = /* @__PURE__ */ Zs(Xs, [["render", xs]]), ot = /* @__PURE__ */ g({
|
|
|
1205
1205
|
}, [
|
|
1206
1206
|
d("span", {
|
|
1207
1207
|
class: m(t.item.data.additionalTitleCss)
|
|
1208
|
-
},
|
|
1208
|
+
}, T(t.item.data.additionalTitle), 3),
|
|
1209
1209
|
v(s(c), {
|
|
1210
1210
|
is: "sv-action-bar-item-dropdown",
|
|
1211
1211
|
item: t.item
|
|
@@ -1225,7 +1225,7 @@ const et = /* @__PURE__ */ Zs(Xs, [["render", xs]]), ot = /* @__PURE__ */ g({
|
|
|
1225
1225
|
},
|
|
1226
1226
|
setup(u) {
|
|
1227
1227
|
const t = u;
|
|
1228
|
-
return
|
|
1228
|
+
return f(() => t.model), (e, o) => (a(), i("div", {
|
|
1229
1229
|
class: m(["svc-creator-tab__content svc-test-tab__content", {
|
|
1230
1230
|
"svc-creator-tab__content--with-toolbar": e.model.isPageToolbarVisible
|
|
1231
1231
|
}])
|
|
@@ -1311,7 +1311,7 @@ const et = /* @__PURE__ */ Zs(Xs, [["render", xs]]), ot = /* @__PURE__ */ g({
|
|
|
1311
1311
|
value: e.question.renderedValue,
|
|
1312
1312
|
class: m(e.question.cssClasses.control)
|
|
1313
1313
|
}, null, 42, lt),
|
|
1314
|
-
e.question.showDropdownAction ? (a(), i(
|
|
1314
|
+
e.question.showDropdownAction ? (a(), i(w, { key: 0 }, [
|
|
1315
1315
|
d("div", {
|
|
1316
1316
|
"aria-hidden": "true",
|
|
1317
1317
|
class: m(e.question.cssClasses.choicesButtonWrapper)
|
|
@@ -1336,9 +1336,9 @@ const et = /* @__PURE__ */ Zs(Xs, [["render", xs]]), ot = /* @__PURE__ */ g({
|
|
|
1336
1336
|
},
|
|
1337
1337
|
setup(u) {
|
|
1338
1338
|
const t = u;
|
|
1339
|
-
|
|
1339
|
+
f(() => t.item);
|
|
1340
1340
|
const e = () => ({ backgroundColor: t.item.value });
|
|
1341
|
-
return (o, n) => (a(), i(
|
|
1341
|
+
return (o, n) => (a(), i(w, null, [
|
|
1342
1342
|
d("span", {
|
|
1343
1343
|
class: "spg-color-editor__color-swatch",
|
|
1344
1344
|
style: F(e())
|
|
@@ -1534,7 +1534,7 @@ const et = /* @__PURE__ */ Zs(Xs, [["render", xs]]), ot = /* @__PURE__ */ g({
|
|
|
1534
1534
|
},
|
|
1535
1535
|
setup(u) {
|
|
1536
1536
|
const t = u, e = () => "survey-" + t.question.wrappedQuestionTemplate;
|
|
1537
|
-
return Q(t, P()),
|
|
1537
|
+
return Q(t, P()), f(() => {
|
|
1538
1538
|
var o;
|
|
1539
1539
|
return (o = t.question) == null ? void 0 : o.resetValueAdorner;
|
|
1540
1540
|
}), (o, n) => (a(), i("div", {
|
|
@@ -1620,7 +1620,7 @@ const wt = /* @__PURE__ */ g({
|
|
|
1620
1620
|
])
|
|
1621
1621
|
], 8, ht));
|
|
1622
1622
|
}
|
|
1623
|
-
}),
|
|
1623
|
+
}), Tt = { class: "svc-string-editor__content" }, Dt = /* @__PURE__ */ d("div", { class: "svc-string-editor__border svc-string-editor__border--hover" }, null, -1), Nt = /* @__PURE__ */ d("div", { class: "svc-string-editor__border svc-string-editor__border--focus" }, null, -1), Mt = { class: "svc-string-editor__input" }, St = ["textContent", "aria-placeholder", "aria-label", "contenteditable", "tabindex"], Bt = ["aria-placeholder", "aria-label", "contenteditable", "tabindex", "innerHTML"], It = {
|
|
1624
1624
|
key: 0,
|
|
1625
1625
|
class: "svc-string-editor__error"
|
|
1626
1626
|
}, Et = /* @__PURE__ */ g({
|
|
@@ -1669,23 +1669,23 @@ const wt = /* @__PURE__ */ g({
|
|
|
1669
1669
|
return (y = l.value) == null ? void 0 : y.getCharacterCounterClass;
|
|
1670
1670
|
}
|
|
1671
1671
|
), J = (y) => {
|
|
1672
|
-
var
|
|
1673
|
-
return n.value && (n.value.spellcheck = !1), e.value.__isEditing = !1, (
|
|
1672
|
+
var D, E;
|
|
1673
|
+
return n.value && (n.value.spellcheck = !1), e.value.__isEditing = !1, (D = l.value) == null || D.onBlur(y), (E = l.value) == null ? void 0 : E.errorText;
|
|
1674
1674
|
}, U = (y) => {
|
|
1675
|
-
var
|
|
1676
|
-
(
|
|
1675
|
+
var D;
|
|
1676
|
+
(D = l.value) == null || D.onFocus(y);
|
|
1677
1677
|
}, ve = (y) => {
|
|
1678
|
-
var
|
|
1679
|
-
(
|
|
1678
|
+
var D;
|
|
1679
|
+
(D = l.value) == null || D.onPaste(y);
|
|
1680
1680
|
}, se = (y) => {
|
|
1681
|
-
var
|
|
1682
|
-
(
|
|
1681
|
+
var D, E;
|
|
1682
|
+
(D = n.value) == null || D.focus(), e.value.__isEditing = !0, (E = l.value) == null || E.onClick(y);
|
|
1683
1683
|
}, Z = () => {
|
|
1684
1684
|
r.value = e.value.renderedHtml;
|
|
1685
1685
|
}, me = W(
|
|
1686
1686
|
() => e.value,
|
|
1687
|
-
(y,
|
|
1688
|
-
|
|
1687
|
+
(y, D) => {
|
|
1688
|
+
D && y.onStringChanged.remove(Z), y && (y.onStringChanged.add(Z), Z());
|
|
1689
1689
|
},
|
|
1690
1690
|
{
|
|
1691
1691
|
immediate: !0
|
|
@@ -1696,11 +1696,11 @@ const wt = /* @__PURE__ */ g({
|
|
|
1696
1696
|
e.value.__isEditing && ((y = n.value) == null || y.focus());
|
|
1697
1697
|
}), K(() => {
|
|
1698
1698
|
me(), e.value.onStringChanged.remove(Z);
|
|
1699
|
-
}), (y,
|
|
1699
|
+
}), (y, D) => (a(), i("span", {
|
|
1700
1700
|
class: m(N.value)
|
|
1701
1701
|
}, [
|
|
1702
|
-
d("span",
|
|
1703
|
-
|
|
1702
|
+
d("span", Tt, [
|
|
1703
|
+
Dt,
|
|
1704
1704
|
Nt,
|
|
1705
1705
|
d("span", Mt, [
|
|
1706
1706
|
e.value.hasHtml ? p("", !0) : (a(), i("span", {
|
|
@@ -1711,37 +1711,37 @@ const wt = /* @__PURE__ */ g({
|
|
|
1711
1711
|
onFocus: U,
|
|
1712
1712
|
onPaste: ve,
|
|
1713
1713
|
onBlur: J,
|
|
1714
|
-
onInput:
|
|
1714
|
+
onInput: D[0] || (D[0] = //@ts-ignore
|
|
1715
1715
|
(...E) => {
|
|
1716
1716
|
var S, B;
|
|
1717
1717
|
return ((S = s(l)) == null ? void 0 : S.onInput) && ((B = s(l)) == null ? void 0 : B.onInput(...E));
|
|
1718
1718
|
}),
|
|
1719
|
-
onBeforeinput:
|
|
1719
|
+
onBeforeinput: D[1] || (D[1] = //@ts-ignore
|
|
1720
1720
|
(...E) => {
|
|
1721
1721
|
var S, B;
|
|
1722
1722
|
return ((S = s(l)) == null ? void 0 : S.onBeforeInput) && ((B = s(l)) == null ? void 0 : B.onBeforeInput(...E));
|
|
1723
1723
|
}),
|
|
1724
|
-
onKeydown:
|
|
1724
|
+
onKeydown: D[2] || (D[2] = //@ts-ignore
|
|
1725
1725
|
(...E) => {
|
|
1726
1726
|
var S, B;
|
|
1727
1727
|
return ((S = s(l)) == null ? void 0 : S.onKeyDown) && ((B = s(l)) == null ? void 0 : B.onKeyDown(...E));
|
|
1728
1728
|
}),
|
|
1729
|
-
onKeyup:
|
|
1729
|
+
onKeyup: D[3] || (D[3] = //@ts-ignore
|
|
1730
1730
|
(...E) => {
|
|
1731
1731
|
var S, B;
|
|
1732
1732
|
return ((S = s(l)) == null ? void 0 : S.onKeyUp) && ((B = s(l)) == null ? void 0 : B.onKeyUp(...E));
|
|
1733
1733
|
}),
|
|
1734
|
-
onCompositionstart:
|
|
1734
|
+
onCompositionstart: D[4] || (D[4] = //@ts-ignore
|
|
1735
1735
|
(...E) => {
|
|
1736
1736
|
var S, B;
|
|
1737
1737
|
return ((S = s(l)) == null ? void 0 : S.onCompositionStart) && ((B = s(l)) == null ? void 0 : B.onCompositionStart(...E));
|
|
1738
1738
|
}),
|
|
1739
|
-
onCompositionend:
|
|
1739
|
+
onCompositionend: D[5] || (D[5] = //@ts-ignore
|
|
1740
1740
|
(...E) => {
|
|
1741
1741
|
var S, B;
|
|
1742
1742
|
return ((S = s(l)) == null ? void 0 : S.onCompositionEnd) && ((B = s(l)) == null ? void 0 : B.onCompositionEnd(...E));
|
|
1743
1743
|
}),
|
|
1744
|
-
onMouseup:
|
|
1744
|
+
onMouseup: D[6] || (D[6] = //@ts-ignore
|
|
1745
1745
|
(...E) => {
|
|
1746
1746
|
var S, B;
|
|
1747
1747
|
return ((S = s(l)) == null ? void 0 : S.onMouseUp) && ((B = s(l)) == null ? void 0 : B.onMouseUp(...E));
|
|
@@ -1762,27 +1762,27 @@ const wt = /* @__PURE__ */ g({
|
|
|
1762
1762
|
spellcheck: "false",
|
|
1763
1763
|
onFocus: U,
|
|
1764
1764
|
onBlur: J,
|
|
1765
|
-
onKeydown:
|
|
1765
|
+
onKeydown: D[7] || (D[7] = //@ts-ignore
|
|
1766
1766
|
(...E) => {
|
|
1767
1767
|
var S, B;
|
|
1768
1768
|
return ((S = s(l)) == null ? void 0 : S.onKeyDown) && ((B = s(l)) == null ? void 0 : B.onKeyDown(...E));
|
|
1769
1769
|
}),
|
|
1770
|
-
onKeyup:
|
|
1770
|
+
onKeyup: D[8] || (D[8] = //@ts-ignore
|
|
1771
1771
|
(...E) => {
|
|
1772
1772
|
var S, B;
|
|
1773
1773
|
return ((S = s(l)) == null ? void 0 : S.onKeyUp) && ((B = s(l)) == null ? void 0 : B.onKeyUp(...E));
|
|
1774
1774
|
}),
|
|
1775
|
-
onCompositionstart:
|
|
1775
|
+
onCompositionstart: D[9] || (D[9] = //@ts-ignore
|
|
1776
1776
|
(...E) => {
|
|
1777
1777
|
var S, B;
|
|
1778
1778
|
return ((S = s(l)) == null ? void 0 : S.onCompositionStart) && ((B = s(l)) == null ? void 0 : B.onCompositionStart(...E));
|
|
1779
1779
|
}),
|
|
1780
|
-
onCompositionend:
|
|
1780
|
+
onCompositionend: D[10] || (D[10] = //@ts-ignore
|
|
1781
1781
|
(...E) => {
|
|
1782
1782
|
var S, B;
|
|
1783
1783
|
return ((S = s(l)) == null ? void 0 : S.onCompositionEnd) && ((B = s(l)) == null ? void 0 : B.onCompositionEnd(...E));
|
|
1784
1784
|
}),
|
|
1785
|
-
onMouseup:
|
|
1785
|
+
onMouseup: D[11] || (D[11] = //@ts-ignore
|
|
1786
1786
|
(...E) => {
|
|
1787
1787
|
var S, B;
|
|
1788
1788
|
return ((S = s(l)) == null ? void 0 : S.onMouseUp) && ((B = s(l)) == null ? void 0 : B.onMouseUp(...E));
|
|
@@ -1804,7 +1804,7 @@ const wt = /* @__PURE__ */ g({
|
|
|
1804
1804
|
}, null, 8, ["counter", "remainingCharacterCounter"])) : p("", !0)
|
|
1805
1805
|
])
|
|
1806
1806
|
]),
|
|
1807
|
-
_.value ? (a(), i("span", It,
|
|
1807
|
+
_.value ? (a(), i("span", It, T(_.value), 1)) : p("", !0)
|
|
1808
1808
|
], 2));
|
|
1809
1809
|
}
|
|
1810
1810
|
}), Pt = {
|
|
@@ -1823,7 +1823,7 @@ const wt = /* @__PURE__ */ g({
|
|
|
1823
1823
|
},
|
|
1824
1824
|
setup(u) {
|
|
1825
1825
|
const t = u, e = k(() => t.model.toolbox), o = P();
|
|
1826
|
-
|
|
1826
|
+
f(() => e.value), G(() => {
|
|
1827
1827
|
e.value.afterRender(o.value);
|
|
1828
1828
|
}), R(() => {
|
|
1829
1829
|
e.value.afterRender(o.value);
|
|
@@ -1856,17 +1856,17 @@ const wt = /* @__PURE__ */ g({
|
|
|
1856
1856
|
}, null, 8, ["model"]),
|
|
1857
1857
|
Rt
|
|
1858
1858
|
])) : p("", !0),
|
|
1859
|
-
e.value.showPlaceholder ? (a(), i("div", Vt,
|
|
1859
|
+
e.value.showPlaceholder ? (a(), i("div", Vt, T(e.value.toolboxNoResultsFound), 1)) : p("", !0),
|
|
1860
1860
|
v(s(c), { is: "sv-scroll" }, {
|
|
1861
1861
|
default: X(() => [
|
|
1862
|
-
e.value.showInSingleCategory ? p("", !0) : (a(!0), i(
|
|
1862
|
+
e.value.showInSingleCategory ? p("", !0) : (a(!0), i(w, { key: 0 }, A(e.value.categories, (_, N) => (a(), b(s(c), {
|
|
1863
1863
|
is: "svc-toolbox-category",
|
|
1864
1864
|
key: N,
|
|
1865
1865
|
category: _,
|
|
1866
1866
|
toolbox: e.value
|
|
1867
1867
|
}, null, 8, ["category", "toolbox"]))), 128)),
|
|
1868
1868
|
e.value.showInSingleCategory ? (a(), i("div", At, [
|
|
1869
|
-
(a(!0), i(
|
|
1869
|
+
(a(!0), i(w, null, A(n.value, (_) => (a(), b(s(c), {
|
|
1870
1870
|
key: _.renderedId,
|
|
1871
1871
|
is: "svc-toolbox-tool",
|
|
1872
1872
|
creator: r.model,
|
|
@@ -1912,7 +1912,7 @@ const wt = /* @__PURE__ */ g({
|
|
|
1912
1912
|
}), K(() => {
|
|
1913
1913
|
const n = t.item;
|
|
1914
1914
|
n.updateModeCallback = void 0;
|
|
1915
|
-
}),
|
|
1915
|
+
}), f(() => t.item), (n, r) => {
|
|
1916
1916
|
var l;
|
|
1917
1917
|
return a(), i("div", {
|
|
1918
1918
|
class: m(n.item.css),
|
|
@@ -1951,7 +1951,7 @@ const wt = /* @__PURE__ */ g({
|
|
|
1951
1951
|
viewModel: {}
|
|
1952
1952
|
},
|
|
1953
1953
|
setup(u) {
|
|
1954
|
-
return (t, e) => (a(), i(
|
|
1954
|
+
return (t, e) => (a(), i(w, null, [
|
|
1955
1955
|
h((a(), i("div", {
|
|
1956
1956
|
class: m(["svc-toolbox__item", t.item.renderedCss]),
|
|
1957
1957
|
role: "button",
|
|
@@ -1968,7 +1968,7 @@ const wt = /* @__PURE__ */ g({
|
|
|
1968
1968
|
class: "svc-toolbox__item-icon"
|
|
1969
1969
|
}, null, 8, ["iconName"])) : p("", !0)
|
|
1970
1970
|
]),
|
|
1971
|
-
t.isCompact ? p("", !0) : (a(), i("span", Ht,
|
|
1971
|
+
t.isCompact ? p("", !0) : (a(), i("span", Ht, T(t.item.title), 1))
|
|
1972
1972
|
], 10, Kt)), [
|
|
1973
1973
|
[s(M), { disableTabStop: !t.viewModel.toolboxItem.enabled }]
|
|
1974
1974
|
]),
|
|
@@ -1983,7 +1983,7 @@ const wt = /* @__PURE__ */ g({
|
|
|
1983
1983
|
size: 24,
|
|
1984
1984
|
class: "svc-toolbox__item-icon"
|
|
1985
1985
|
}, null, 8, ["iconName"]),
|
|
1986
|
-
d("span", null,
|
|
1986
|
+
d("span", null, T(t.item.title), 1)
|
|
1987
1987
|
])) : p("", !0)
|
|
1988
1988
|
], 64));
|
|
1989
1989
|
}
|
|
@@ -2001,7 +2001,7 @@ const wt = /* @__PURE__ */ g({
|
|
|
2001
2001
|
}, o = (n) => {
|
|
2002
2002
|
t.viewModel.onMouseLeave(t.item, n);
|
|
2003
2003
|
};
|
|
2004
|
-
return (n, r) => (a(), i(
|
|
2004
|
+
return (n, r) => (a(), i(w, null, [
|
|
2005
2005
|
v(s(c), {
|
|
2006
2006
|
is: "svc-toolbox-item",
|
|
2007
2007
|
viewModel: n.viewModel,
|
|
@@ -2037,7 +2037,7 @@ const wt = /* @__PURE__ */ g({
|
|
|
2037
2037
|
},
|
|
2038
2038
|
setup(u) {
|
|
2039
2039
|
const t = u;
|
|
2040
|
-
return
|
|
2040
|
+
return f(() => t.category), (e, o) => (a(), i("div", {
|
|
2041
2041
|
class: m(["svc-toolbox__category", {
|
|
2042
2042
|
"svc-toolbox__category--collapsed": e.category.collapsed,
|
|
2043
2043
|
"svc-toolbox__category--empty": e.category.empty
|
|
@@ -2050,7 +2050,12 @@ const wt = /* @__PURE__ */ g({
|
|
|
2050
2050
|
}]),
|
|
2051
2051
|
onClick: o[0] || (o[0] = (n) => e.category.toggleState())
|
|
2052
2052
|
}, [
|
|
2053
|
-
d("span", Wt,
|
|
2053
|
+
d("span", Wt, [
|
|
2054
|
+
v(s(c), {
|
|
2055
|
+
is: "survey-string",
|
|
2056
|
+
locString: e.category.locTitle
|
|
2057
|
+
}, null, 8, ["locString"])
|
|
2058
|
+
]),
|
|
2054
2059
|
e.toolbox.canCollapseCategories ? (a(), i("div", jt, [
|
|
2055
2060
|
v(s(c), {
|
|
2056
2061
|
is: "sv-svg-icon",
|
|
@@ -2063,7 +2068,7 @@ const wt = /* @__PURE__ */ g({
|
|
|
2063
2068
|
[s(M)]
|
|
2064
2069
|
])
|
|
2065
2070
|
]),
|
|
2066
|
-
(a(!0), i(
|
|
2071
|
+
(a(!0), i(w, null, A(e.category.items, (n) => (a(), b(s(c), {
|
|
2067
2072
|
is: "svc-toolbox-tool",
|
|
2068
2073
|
item: n,
|
|
2069
2074
|
key: n.renderedId,
|
|
@@ -2081,10 +2086,10 @@ const wt = /* @__PURE__ */ g({
|
|
|
2081
2086
|
},
|
|
2082
2087
|
setup(u) {
|
|
2083
2088
|
const t = u;
|
|
2084
|
-
return
|
|
2089
|
+
return f(() => t.model), (e, o) => (a(), i("div", {
|
|
2085
2090
|
class: m(e.model.cssClasses.root)
|
|
2086
2091
|
}, [
|
|
2087
|
-
(a(!0), i(
|
|
2092
|
+
(a(!0), i(w, null, A(e.model.renderedActions, (n, r) => (a(), b(s(c), {
|
|
2088
2093
|
key: r,
|
|
2089
2094
|
is: "svc-toolbox-tool",
|
|
2090
2095
|
creator: e.creator,
|
|
@@ -2122,7 +2127,7 @@ const wt = /* @__PURE__ */ g({
|
|
|
2122
2127
|
},
|
|
2123
2128
|
setup(u) {
|
|
2124
2129
|
const t = u, e = k(() => t.model.survey);
|
|
2125
|
-
return
|
|
2130
|
+
return f(() => t.model), f(() => e.value), f(() => t.model.pagesController), (o, n) => (a(), i(w, null, [
|
|
2126
2131
|
d("div", Xt, [
|
|
2127
2132
|
o.model.isToolboxVisible ? (a(), b(s(c), {
|
|
2128
2133
|
key: 0,
|
|
@@ -2138,7 +2143,7 @@ const wt = /* @__PURE__ */ g({
|
|
|
2138
2143
|
v(s(c), { is: "sv-scroll" }, {
|
|
2139
2144
|
default: X(() => [
|
|
2140
2145
|
d("div", Yt, [
|
|
2141
|
-
o.model.showPlaceholder ? (a(), i(
|
|
2146
|
+
o.model.showPlaceholder ? (a(), i(w, { key: 0 }, [
|
|
2142
2147
|
o.model.creator.showHeaderInEmptySurvey && o.model.creator.showSurveyHeader ? (a(), i("div", xt, [
|
|
2143
2148
|
v(s(c), {
|
|
2144
2149
|
is: "survey-header",
|
|
@@ -2162,7 +2167,7 @@ const wt = /* @__PURE__ */ g({
|
|
|
2162
2167
|
])
|
|
2163
2168
|
])
|
|
2164
2169
|
], 64)) : p("", !0),
|
|
2165
|
-
o.model.showPlaceholder ? p("", !0) : (a(), i(
|
|
2170
|
+
o.model.showPlaceholder ? p("", !0) : (a(), i(w, { key: 1 }, [
|
|
2166
2171
|
d("div", {
|
|
2167
2172
|
class: m(o.model.designerCss),
|
|
2168
2173
|
style: F([
|
|
@@ -2176,7 +2181,7 @@ const wt = /* @__PURE__ */ g({
|
|
|
2176
2181
|
survey: o.model.creator.survey
|
|
2177
2182
|
}, null, 8, ["survey"])
|
|
2178
2183
|
])) : p("", !0),
|
|
2179
|
-
o.model.creator.pageEditMode !== "bypage" ? (a(!0), i(
|
|
2184
|
+
o.model.creator.pageEditMode !== "bypage" ? (a(!0), i(w, { key: 1 }, A(o.model.pages, (r) => (a(), i("div", {
|
|
2180
2185
|
key: r.id,
|
|
2181
2186
|
class: "svc-page",
|
|
2182
2187
|
"data-sv-drop-target-survey-element": r != o.model.newPage ? r.name : "newGhostPage",
|
|
@@ -2295,7 +2300,7 @@ const wt = /* @__PURE__ */ g({
|
|
|
2295
2300
|
])),
|
|
2296
2301
|
s(o).showPlaceholder ? (a(), i("div", mn, [
|
|
2297
2302
|
d("div", _n, [
|
|
2298
|
-
d("div", gn,
|
|
2303
|
+
d("div", gn, T(s(o).placeholderText), 1)
|
|
2299
2304
|
])
|
|
2300
2305
|
])) : p("", !0),
|
|
2301
2306
|
s(o).allowDragging && !s(o).isGhost ? (a(), i("div", {
|
|
@@ -2351,13 +2356,13 @@ const wt = /* @__PURE__ */ g({
|
|
|
2351
2356
|
},
|
|
2352
2357
|
setup(u) {
|
|
2353
2358
|
const t = u;
|
|
2354
|
-
|
|
2359
|
+
f(() => t.item.data);
|
|
2355
2360
|
const e = k(
|
|
2356
2361
|
() => "svc-element__add-new-question " + (t.buttonClass || "svc-btn")
|
|
2357
2362
|
), o = k(
|
|
2358
2363
|
() => t.renderPopup === void 0 || t.renderPopup !== !1
|
|
2359
2364
|
);
|
|
2360
|
-
return (n, r) => (a(), i(
|
|
2365
|
+
return (n, r) => (a(), i(w, null, [
|
|
2361
2366
|
h((a(), i("div", {
|
|
2362
2367
|
class: m(e.value),
|
|
2363
2368
|
onClick: r[0] || (r[0] = (l) => {
|
|
@@ -2371,7 +2376,7 @@ const wt = /* @__PURE__ */ g({
|
|
|
2371
2376
|
iconName: "icon-add_24x24",
|
|
2372
2377
|
size: "auto"
|
|
2373
2378
|
}),
|
|
2374
|
-
d("span", Cn,
|
|
2379
|
+
d("span", Cn, T(n.item.data.addNewQuestionText), 1),
|
|
2375
2380
|
o.value ? (a(), b(s(c), {
|
|
2376
2381
|
key: 0,
|
|
2377
2382
|
is: "svc-add-question-type-selector",
|
|
@@ -2397,7 +2402,7 @@ const wt = /* @__PURE__ */ g({
|
|
|
2397
2402
|
},
|
|
2398
2403
|
setup(u) {
|
|
2399
2404
|
const t = u;
|
|
2400
|
-
return
|
|
2405
|
+
return f(() => t.questionTypeSelectorModel), (e, o) => h((a(), i("button", {
|
|
2401
2406
|
type: "button",
|
|
2402
2407
|
onClick: o[0] || (o[0] = (n) => {
|
|
2403
2408
|
e.questionTypeSelectorModel.action(), n.stopPropagation();
|
|
@@ -2423,7 +2428,7 @@ const wt = /* @__PURE__ */ g({
|
|
|
2423
2428
|
[s(M)]
|
|
2424
2429
|
]);
|
|
2425
2430
|
}
|
|
2426
|
-
}), fn = /* @__PURE__ */ d("div", { class: "svc-row__drop-indicator svc-row__drop-indicator--top" }, null, -1), wn = /* @__PURE__ */ d("div", { class: "svc-row__drop-indicator svc-row__drop-indicator--bottom" }, null, -1),
|
|
2431
|
+
}), fn = /* @__PURE__ */ d("div", { class: "svc-row__drop-indicator svc-row__drop-indicator--top" }, null, -1), wn = /* @__PURE__ */ d("div", { class: "svc-row__drop-indicator svc-row__drop-indicator--bottom" }, null, -1), Tn = /* @__PURE__ */ g({
|
|
2427
2432
|
__name: "Row",
|
|
2428
2433
|
props: {
|
|
2429
2434
|
componentData: {}
|
|
@@ -2448,7 +2453,7 @@ const wt = /* @__PURE__ */ g({
|
|
|
2448
2453
|
x(r.$slots, "default")
|
|
2449
2454
|
], 2));
|
|
2450
2455
|
}
|
|
2451
|
-
}),
|
|
2456
|
+
}), Dn = ["data-sv-drop-target-survey-element"], Nn = { class: "svc-fake-title" }, Mn = /* @__PURE__ */ d("div", { class: "svc-question__drop-indicator svc-question__drop-indicator--left" }, null, -1), Sn = /* @__PURE__ */ d("div", { class: "svc-question__drop-indicator svc-question__drop-indicator--right" }, null, -1), Bn = /* @__PURE__ */ d("div", { class: "svc-question__drop-indicator svc-question__drop-indicator--top" }, null, -1), In = /* @__PURE__ */ d("div", { class: "svc-question__drop-indicator svc-question__drop-indicator--bottom" }, null, -1), En = { class: "svc-question__top-actions" }, Pn = {
|
|
2452
2457
|
key: 0,
|
|
2453
2458
|
class: "svc-panel__placeholder_frame-wrapper"
|
|
2454
2459
|
}, Rn = { class: "svc-panel__placeholder_frame" }, Vn = {
|
|
@@ -2508,7 +2513,7 @@ const wt = /* @__PURE__ */ g({
|
|
|
2508
2513
|
key: 1,
|
|
2509
2514
|
class: m(s(o).cssCollapsedHiddenTitle)
|
|
2510
2515
|
}, [
|
|
2511
|
-
d("span", Nn,
|
|
2516
|
+
d("span", Nn, T(l.element.name), 1)
|
|
2512
2517
|
], 2))
|
|
2513
2518
|
], 2)) : p("", !0),
|
|
2514
2519
|
h((a(), i("div", {
|
|
@@ -2542,7 +2547,7 @@ const wt = /* @__PURE__ */ g({
|
|
|
2542
2547
|
}, null, 8, ["model"])
|
|
2543
2548
|
])
|
|
2544
2549
|
], 32)) : p("", !0),
|
|
2545
|
-
s(o).needToRenderContent ? (a(), i(
|
|
2550
|
+
s(o).needToRenderContent ? (a(), i(w, { key: 1 }, [
|
|
2546
2551
|
v(s(c), {
|
|
2547
2552
|
is: "sv-template-renderer",
|
|
2548
2553
|
componentName: l.componentName,
|
|
@@ -2550,7 +2555,7 @@ const wt = /* @__PURE__ */ g({
|
|
|
2550
2555
|
}, null, 8, ["componentName", "componentData"]),
|
|
2551
2556
|
s(o).isEmptyElement && !l.showPlaceholderComponent ? (a(), i("div", Pn, [
|
|
2552
2557
|
d("div", Rn, [
|
|
2553
|
-
d("div", Vn,
|
|
2558
|
+
d("div", Vn, T(s(o).placeholderText), 1)
|
|
2554
2559
|
])
|
|
2555
2560
|
])) : p("", !0),
|
|
2556
2561
|
s(o).isEmptyElement && l.showPlaceholderComponent ? (a(), b(s(c), V(
|
|
@@ -2585,7 +2590,7 @@ const wt = /* @__PURE__ */ g({
|
|
|
2585
2590
|
], 2)), [
|
|
2586
2591
|
[s(M), { disableTabStop: !0 }]
|
|
2587
2592
|
])
|
|
2588
|
-
], 42,
|
|
2593
|
+
], 42, Dn)) : p("", !0);
|
|
2589
2594
|
}
|
|
2590
2595
|
}), ae = /* @__PURE__ */ g({
|
|
2591
2596
|
__name: "Question",
|
|
@@ -2648,9 +2653,9 @@ const wt = /* @__PURE__ */ g({
|
|
|
2648
2653
|
element: {}
|
|
2649
2654
|
},
|
|
2650
2655
|
setup(u) {
|
|
2651
|
-
return (t, e) => (a(), i(
|
|
2656
|
+
return (t, e) => (a(), i(w, null, [
|
|
2652
2657
|
!t.model.isUploading && !t.model.isEmptyElement ? (a(), i("div", zn, [
|
|
2653
|
-
t.model.allowEdit ? (a(), i(
|
|
2658
|
+
t.model.allowEdit ? (a(), i(w, { key: 0 }, [
|
|
2654
2659
|
d("input", {
|
|
2655
2660
|
type: "file",
|
|
2656
2661
|
"aria-hidden": "true",
|
|
@@ -2755,7 +2760,7 @@ const wt = /* @__PURE__ */ g({
|
|
|
2755
2760
|
), _ = z(
|
|
2756
2761
|
() => {
|
|
2757
2762
|
var N;
|
|
2758
|
-
return t.componentData ? new
|
|
2763
|
+
return t.componentData ? new Te(
|
|
2759
2764
|
e.value,
|
|
2760
2765
|
r.value,
|
|
2761
2766
|
l.value,
|
|
@@ -2819,7 +2824,7 @@ const wt = /* @__PURE__ */ g({
|
|
|
2819
2824
|
const t = u, e = k(
|
|
2820
2825
|
() => t.componentData.element
|
|
2821
2826
|
);
|
|
2822
|
-
return
|
|
2827
|
+
return f(() => e.value), (o, n) => (a(), i("div", Zn, [
|
|
2823
2828
|
d("div", Xn, [
|
|
2824
2829
|
v(s(c), V({ is: o.componentName }, o.componentData), null, 16, ["is"])
|
|
2825
2830
|
])
|
|
@@ -2873,7 +2878,7 @@ const wt = /* @__PURE__ */ g({
|
|
|
2873
2878
|
key: 1,
|
|
2874
2879
|
class: m(s(e).cssCollapsedHiddenTitle)
|
|
2875
2880
|
}, [
|
|
2876
|
-
d("span", ea,
|
|
2881
|
+
d("span", ea, T(s(e).element.name), 1)
|
|
2877
2882
|
], 2))
|
|
2878
2883
|
], 2)) : p("", !0),
|
|
2879
2884
|
h((a(), i("div", {
|
|
@@ -2903,11 +2908,11 @@ const wt = /* @__PURE__ */ g({
|
|
|
2903
2908
|
}, null, 8, ["model"])
|
|
2904
2909
|
])
|
|
2905
2910
|
], 32)) : p("", !0),
|
|
2906
|
-
s(e).needToRenderContent ? (a(), i(
|
|
2911
|
+
s(e).needToRenderContent ? (a(), i(w, { key: 1 }, [
|
|
2907
2912
|
v(s(c), V({ is: n.componentName }, n.componentData), null, 16, ["is"]),
|
|
2908
2913
|
s(e).isEmptyElement ? (a(), i("div", la, [
|
|
2909
2914
|
d("div", ia, [
|
|
2910
|
-
d("div", ra,
|
|
2915
|
+
d("div", ra, T(s(e).placeholderText), 1),
|
|
2911
2916
|
s(e).showAddQuestionButton ? h((a(), i("div", {
|
|
2912
2917
|
key: 0,
|
|
2913
2918
|
class: "svc-panel__add-new-question svc-action-button",
|
|
@@ -2919,7 +2924,7 @@ const wt = /* @__PURE__ */ g({
|
|
|
2919
2924
|
iconName: "icon-add_24x24",
|
|
2920
2925
|
size: "auto"
|
|
2921
2926
|
}),
|
|
2922
|
-
d("span", da,
|
|
2927
|
+
d("span", da, T(s(e).addNewQuestionText), 1)
|
|
2923
2928
|
])), [
|
|
2924
2929
|
[s(M)]
|
|
2925
2930
|
]) : p("", !0)
|
|
@@ -2983,7 +2988,7 @@ const wt = /* @__PURE__ */ g({
|
|
|
2983
2988
|
r.value.setRootElement(void 0);
|
|
2984
2989
|
});
|
|
2985
2990
|
const _ = z(
|
|
2986
|
-
() => new
|
|
2991
|
+
() => new De(o.value, n.value, r.value),
|
|
2987
2992
|
[() => o.value, () => n.value, () => r.value],
|
|
2988
2993
|
(q) => {
|
|
2989
2994
|
q.dispose();
|
|
@@ -3011,7 +3016,7 @@ const wt = /* @__PURE__ */ g({
|
|
|
3011
3016
|
}
|
|
3012
3017
|
};
|
|
3013
3018
|
};
|
|
3014
|
-
return (q, C) => (a(), i(
|
|
3019
|
+
return (q, C) => (a(), i(w, null, [
|
|
3015
3020
|
d("div", {
|
|
3016
3021
|
class: m(["svc-item-value-wrapper", {
|
|
3017
3022
|
"svc-item-value--new": s(_).isNew,
|
|
@@ -3101,10 +3106,10 @@ const wt = /* @__PURE__ */ g({
|
|
|
3101
3106
|
}), $a = ["data-sv-drop-target-item-value"], ka = { class: "svc-image-item-value-wrapper__content" }, fa = ["accept"], wa = {
|
|
3102
3107
|
key: 0,
|
|
3103
3108
|
class: "svc-image-item-value__item"
|
|
3104
|
-
},
|
|
3109
|
+
}, Ta = {
|
|
3105
3110
|
key: 2,
|
|
3106
3111
|
class: "svc-context-container svc-image-item-value-controls"
|
|
3107
|
-
},
|
|
3112
|
+
}, Da = { class: "svc-image-item-value__item" }, Na = { class: "sd-imagepicker__item sd-imagepicker__item--inline" }, Ma = { class: "sd-imagepicker__label" }, Sa = {
|
|
3108
3113
|
key: 0,
|
|
3109
3114
|
class: "svc-image-item-value__loading"
|
|
3110
3115
|
}, Ba = {
|
|
@@ -3167,7 +3172,7 @@ const wt = /* @__PURE__ */ g({
|
|
|
3167
3172
|
accept: s(l).acceptedTypes,
|
|
3168
3173
|
class: "svc-choose-file-input"
|
|
3169
3174
|
}, null, 8, fa),
|
|
3170
|
-
!s(l).isNew && !s(l).isUploading ? (a(), i(
|
|
3175
|
+
!s(l).isNew && !s(l).isUploading ? (a(), i(w, { key: 0 }, [
|
|
3171
3176
|
s(l).isNew ? p("", !0) : (a(), i("div", wa, [
|
|
3172
3177
|
v(s(c), V({ is: $.componentName }, $.componentData), null, 16, ["is"])
|
|
3173
3178
|
])),
|
|
@@ -3184,7 +3189,7 @@ const wt = /* @__PURE__ */ g({
|
|
|
3184
3189
|
size: "auto"
|
|
3185
3190
|
})
|
|
3186
3191
|
], 32)) : p("", !0),
|
|
3187
|
-
s(l).canRenderControls ? (a(), i("div",
|
|
3192
|
+
s(l).canRenderControls ? (a(), i("div", Ta, [
|
|
3188
3193
|
h((a(), i("span", {
|
|
3189
3194
|
class: "svc-context-button",
|
|
3190
3195
|
onClick: q[1] || (q[1] = (C) => s(l).chooseFile(s(l))),
|
|
@@ -3218,8 +3223,8 @@ const wt = /* @__PURE__ */ g({
|
|
|
3218
3223
|
[s(M)]
|
|
3219
3224
|
])
|
|
3220
3225
|
])) : p("", !0)
|
|
3221
|
-
], 64)) : (a(), i(
|
|
3222
|
-
d("div",
|
|
3226
|
+
], 64)) : (a(), i(w, { key: 1 }, [
|
|
3227
|
+
d("div", Da, [
|
|
3223
3228
|
d("div", Na, [
|
|
3224
3229
|
d("label", Ma, [
|
|
3225
3230
|
d("div", {
|
|
@@ -3238,7 +3243,7 @@ const wt = /* @__PURE__ */ g({
|
|
|
3238
3243
|
class: "svc-image-item-value-controls",
|
|
3239
3244
|
onPointerdown: q[4] || (q[4] = (C) => C.stopPropagation())
|
|
3240
3245
|
}, [
|
|
3241
|
-
s(l).showPlaceholder ? (a(), i("span", Ba,
|
|
3246
|
+
s(l).showPlaceholder ? (a(), i("span", Ba, T(s(l).placeholderText), 1)) : p("", !0),
|
|
3242
3247
|
h((a(), i("span", {
|
|
3243
3248
|
class: m(s(l).addButtonCss),
|
|
3244
3249
|
onClick: q[3] || (q[3] = (C) => s(l).chooseNewFile(s(l)))
|
|
@@ -3249,7 +3254,7 @@ const wt = /* @__PURE__ */ g({
|
|
|
3249
3254
|
iconName: "icon-add-lg",
|
|
3250
3255
|
size: "auto",
|
|
3251
3256
|
title: s(l).addFileTitle
|
|
3252
|
-
}, null, 8, ["title"])) : (a(), i("span", Ia,
|
|
3257
|
+
}, null, 8, ["title"])) : (a(), i("span", Ia, T(s(l).chooseImageText), 1))
|
|
3253
3258
|
], 2)), [
|
|
3254
3259
|
[s(M)]
|
|
3255
3260
|
])
|
|
@@ -3336,7 +3341,7 @@ const wt = /* @__PURE__ */ g({
|
|
|
3336
3341
|
accept: s(r).acceptedTypes,
|
|
3337
3342
|
class: "svc-choose-file-input"
|
|
3338
3343
|
}, null, 8, Ra),
|
|
3339
|
-
l.value ? p("", !0) : (a(), i(
|
|
3344
|
+
l.value ? p("", !0) : (a(), i(w, { key: 0 }, [
|
|
3340
3345
|
s(r).allowEdit && !s(r).isUploading ? h((a(), i("div", {
|
|
3341
3346
|
key: 0,
|
|
3342
3347
|
class: "svc-logo-image-placeholder",
|
|
@@ -3399,7 +3404,7 @@ const wt = /* @__PURE__ */ g({
|
|
|
3399
3404
|
},
|
|
3400
3405
|
setup(u) {
|
|
3401
3406
|
const t = u;
|
|
3402
|
-
|
|
3407
|
+
f(() => t.model);
|
|
3403
3408
|
const e = k({
|
|
3404
3409
|
get: () => t.model.filterString,
|
|
3405
3410
|
set: (o) => {
|
|
@@ -3426,7 +3431,7 @@ const wt = /* @__PURE__ */ g({
|
|
|
3426
3431
|
[de, e.value]
|
|
3427
3432
|
]),
|
|
3428
3433
|
d("div", Qa, [
|
|
3429
|
-
d("div", Oa,
|
|
3434
|
+
d("div", Oa, T(o.model.matchCounterText), 1),
|
|
3430
3435
|
v(s(c), {
|
|
3431
3436
|
is: "sv-action-bar",
|
|
3432
3437
|
model: o.model.searchActionBar
|
|
@@ -3482,7 +3487,7 @@ const wt = /* @__PURE__ */ g({
|
|
|
3482
3487
|
}, null, 8, ["model"])
|
|
3483
3488
|
]),
|
|
3484
3489
|
d("div", null, [
|
|
3485
|
-
(a(!0), i(
|
|
3490
|
+
(a(!0), i(w, null, A(s(e).visibleItems, (l) => (a(), b(s(c), {
|
|
3486
3491
|
is: "svc-page-navigator-item",
|
|
3487
3492
|
key: l.id,
|
|
3488
3493
|
model: l
|
|
@@ -3503,7 +3508,7 @@ const wt = /* @__PURE__ */ g({
|
|
|
3503
3508
|
},
|
|
3504
3509
|
setup(u) {
|
|
3505
3510
|
const t = u;
|
|
3506
|
-
|
|
3511
|
+
f(() => t.model);
|
|
3507
3512
|
const e = (o) => {
|
|
3508
3513
|
t.model.action(), o.stopPropagation(), o.preventDefault();
|
|
3509
3514
|
};
|
|
@@ -3521,7 +3526,7 @@ const wt = /* @__PURE__ */ g({
|
|
|
3521
3526
|
title: o.model.title
|
|
3522
3527
|
}, Ya, 8, Za),
|
|
3523
3528
|
d("div", xa, [
|
|
3524
|
-
d("span", el,
|
|
3529
|
+
d("span", el, T(o.model.title), 1),
|
|
3525
3530
|
ol
|
|
3526
3531
|
])
|
|
3527
3532
|
], 2)), [
|
|
@@ -3547,7 +3552,7 @@ const wt = /* @__PURE__ */ g({
|
|
|
3547
3552
|
return (n, r) => (a(), i("div", tl, [
|
|
3548
3553
|
d("div", null, [
|
|
3549
3554
|
d("div", nl, [
|
|
3550
|
-
(a(!0), i(
|
|
3555
|
+
(a(!0), i(w, null, A(n.model.getRenderedItems(), (l) => (a(), i("div", {
|
|
3551
3556
|
key: l.value,
|
|
3552
3557
|
class: m(n.model.getChoiceCss())
|
|
3553
3558
|
}, [
|
|
@@ -3603,11 +3608,11 @@ const wt = /* @__PURE__ */ g({
|
|
|
3603
3608
|
data: e.value.getItemValueWrapperComponentData(r)
|
|
3604
3609
|
}
|
|
3605
3610
|
});
|
|
3606
|
-
return
|
|
3611
|
+
return f(() => e.value), (r, l) => (a(), i("div", il, [
|
|
3607
3612
|
d("div", rl, [
|
|
3608
3613
|
v(s(c), V({ is: r.componentName }, r.componentData), null, 16, ["is"]),
|
|
3609
3614
|
d("div", dl, [
|
|
3610
|
-
(a(!0), i(
|
|
3615
|
+
(a(!0), i(w, null, A(e.value.visibleChoices, (_) => (a(), i("div", {
|
|
3611
3616
|
key: _.value,
|
|
3612
3617
|
class: "svc-question__dropdown-choice"
|
|
3613
3618
|
}, [
|
|
@@ -3697,15 +3702,15 @@ const wt = /* @__PURE__ */ g({
|
|
|
3697
3702
|
], 2)), [
|
|
3698
3703
|
[s(M)]
|
|
3699
3704
|
]) : p("", !0),
|
|
3700
|
-
s(o).element.isInteractiveDesignElement ? p("", !0) : (a(), i(
|
|
3705
|
+
s(o).element.isInteractiveDesignElement ? p("", !0) : (a(), i(w, { key: 1 }, [
|
|
3701
3706
|
v(s(c), V({ is: n.componentName }, n.componentData), null, 16, ["is"]),
|
|
3702
3707
|
s(o).isEmptyElement ? (a(), i("div", ql, [
|
|
3703
|
-
d("div", $l,
|
|
3708
|
+
d("div", $l, T(s(o).placeholderText), 1)
|
|
3704
3709
|
])) : p("", !0)
|
|
3705
3710
|
], 64))
|
|
3706
3711
|
], 42, ul)) : p("", !0);
|
|
3707
3712
|
}
|
|
3708
|
-
}), fl = { class: "svc-carry-forward-panel-wrapper" }, wl = { class: "svc-carry-forward-panel" },
|
|
3713
|
+
}), fl = { class: "svc-carry-forward-panel-wrapper" }, wl = { class: "svc-carry-forward-panel" }, Tl = { class: "svc-carry-forward-panel__link" }, Dl = /* @__PURE__ */ g({
|
|
3709
3714
|
__name: "QuestionBanner",
|
|
3710
3715
|
props: {
|
|
3711
3716
|
model: {}
|
|
@@ -3713,8 +3718,8 @@ const wt = /* @__PURE__ */ g({
|
|
|
3713
3718
|
setup(u) {
|
|
3714
3719
|
return (t, e) => (a(), i("div", fl, [
|
|
3715
3720
|
d("div", wl, [
|
|
3716
|
-
d("span", null,
|
|
3717
|
-
d("span",
|
|
3721
|
+
d("span", null, T(t.model.text) + T(" "), 1),
|
|
3722
|
+
d("span", Tl, [
|
|
3718
3723
|
v(s(c), {
|
|
3719
3724
|
is: "svc-action-button",
|
|
3720
3725
|
text: t.model.actionText,
|
|
@@ -3733,7 +3738,7 @@ function pe(u) {
|
|
|
3733
3738
|
void 0,
|
|
3734
3739
|
u
|
|
3735
3740
|
);
|
|
3736
|
-
t("svc-tabbed-menu", Ge), t("svc-tabbed-menu-item-wrapper", je), t("svc-tabbed-menu-item", Ze), t("svc-side-bar", eo), t("svc-side-bar-default-header", no), t("svc-side-bar-page", ao), t("svc-tabs", ro), t("svc-tab-control", go), t("svc-tab-button", qo), t("svc-property-grid-placeholder",
|
|
3741
|
+
t("svc-tabbed-menu", Ge), t("svc-tabbed-menu-item-wrapper", je), t("svc-tabbed-menu-item", Ze), t("svc-side-bar", eo), t("svc-side-bar-default-header", no), t("svc-side-bar-page", ao), t("svc-tabs", ro), t("svc-tab-control", go), t("svc-tab-button", qo), t("svc-property-grid-placeholder", Do), t("svc-side-bar-header", Eo), t("svc-side-bar-property-grid-header", Fo), t("svc-property-grid", io), t("svc-object-selector", lo), t("svc-search", Ga), t("svc-switcher", Yo), t("svc-action-button", Go), t("svc-question-error", Ko), t("survey-embeddedsurvey", Hs), t("sv-logic-operator", Us), t("survey-linkvalue", Qs), t("survey-color", it), t("color-item", rt), t("sv-boolean-switch", wt), t("survey-fileedit", vt), t("survey-spinedit", bt), t("survey-textwithreset", ne), t("survey-commentwithreset", ne), t("survey-widget", O), t("survey-simulator", os), t("svc-tab-preview", is), t("svc-complete-page", ds), t("survey-results", Cs), t("survey-results-table-row", $s), t("json-error-item", Rs), t("svc-tab-json-editor-textarea", Bs), t("svc-tab-json-editor-ace", Ts), t("svc-tab-translation", Js), t("sd-translation-line-skeleton", et), t("svc-translate-from-action", ot), t("svc-tab-logic", Ls), t("svc-tab-theme", nt), t("svc-toolbox", zt), t("svc-toolbox-list", Zt), t("svc-toolbox-category", Jt), t("svc-toolbox-tool", Ft), t("svc-toolbox-item", Qt), t("svc-toolbox-item-group", Ot), t(Ie, Et), t("svc-tab-designer", dn), t("svc-page-navigator", ja), t("svc-page-navigator-item", sl), t("svc-page", hn), t("svc-row", Tn), t("svc-add-new-question-btn", qn), t("svc-add-question-type-selector", kn), t("svc-question", ae), t("svc-rating-question", ae), t("svc-rating-question-content", Wn), t("svc-image-question", An), t("svc-image-question-adorner", Hn), t("svc-matrix-cell", Jn), t("svc-cell-question", Yn), t("svc-cell-dropdown-question", cl), t("svc-question-editor-content", Pa), t("svc-logo-image", Fa), t("svc-panel", va), t("svc-item-value", qa), t("svc-image-item-value", Ea), t("svc-dropdown-question", ll), t("svc-dropdown-question-adorner", al), t("svc-widget-question", kl), t("svc-question-banner", Dl);
|
|
3737
3742
|
}
|
|
3738
3743
|
pe(
|
|
3739
3744
|
(u, t) => ie.Instance.registerComponent(u, t)
|