survey-creator-vue 2.0.10 → 2.1.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 +863 -861
- package/survey-creator-vue.umd.js +2 -2
- package/types/adorners/Rating.vue.d.ts +2 -2
package/survey-creator-vue.es.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { useBase as T, SvComponent as u, key2ClickDirective as N, SurveyComponent as
|
|
2
|
-
import { defineComponent as g, computed as
|
|
3
|
-
import { ResponsivityManager as he, CssClassBuilder as
|
|
4
|
-
import { editorLocalization as ue, SurveyResultsModel as
|
|
1
|
+
import { useBase as T, SvComponent as u, key2ClickDirective as N, SurveyComponent as O, useQuestion as H, useComputedArray as _e, ComponentFactory as ie } from "survey-vue3-ui";
|
|
2
|
+
import { defineComponent as g, computed as $, toRaw as ge, ref as I, onMounted as P, 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 V, createBlock as h, nextTick as re, withDirectives as q, toDisplayString as k, vShow as Q, withCtx as Z, createTextVNode as be, shallowRef as ye, watch as G, onBeforeUnmount as X, vModelText as de, onUpdated as Y, mergeProps as A, renderSlot as x } from "vue";
|
|
3
|
+
import { ResponsivityManager as he, CssClassBuilder as Ce, RendererFactory as ce, DropdownListModel as qe, VerticalResponsivityManager as $e } from "survey-core";
|
|
4
|
+
import { editorLocalization as ue, SurveyResultsModel as ke, initLogicOperator as fe, StringEditorViewModelBase as we, ToolboxToolViewModel as Te, PageAdorner as De, RowViewModel as Ne, QuestionAdornerViewModel as ee, QuestionImageAdornerViewModel as Me, QuestionRatingAdornerViewModel as Se, MatrixCellWrapperViewModel as Be, ItemValueWrapperViewModel as Ie, ImageItemValueWrapperViewModel as Ee, LogoImageViewModel as Pe, PageNavigatorViewModel as Re, QuestionDropdownAdornerViewModel as Ve, editableStringRendererName as Ae } from "survey-creator-core";
|
|
5
5
|
const ze = { class: "svc-flex-column svc-flex-row__element svc-flex-row__element--growing" }, Le = { class: "svc-top-bar" }, Fe = {
|
|
6
6
|
key: 0,
|
|
7
7
|
class: "svc-tabbed-menu-wrapper"
|
|
8
|
-
}, Ke = ["v-show"], Ue = { class: "svc-creator__content-holder svc-flex-column" },
|
|
8
|
+
}, Ke = ["v-show"], Ue = { class: "svc-creator__content-holder svc-flex-column" }, Qe = ["aria-labelledby", "id"], He = {
|
|
9
9
|
key: 0,
|
|
10
10
|
class: "svc-footer-bar"
|
|
11
|
-
},
|
|
11
|
+
}, Oe = ["v-show"], Ge = {
|
|
12
12
|
key: 0,
|
|
13
13
|
class: "svc-creator__banner"
|
|
14
14
|
}, We = ["innerHTML"], je = /* @__PURE__ */ g({
|
|
@@ -17,20 +17,20 @@ const ze = { class: "svc-flex-column svc-flex-row__element svc-flex-row__element
|
|
|
17
17
|
model: {}
|
|
18
18
|
},
|
|
19
19
|
setup(c) {
|
|
20
|
-
const t = c, e =
|
|
20
|
+
const t = c, e = $(() => ge(t.model)), o = I();
|
|
21
21
|
return T(
|
|
22
22
|
() => e.value,
|
|
23
|
-
(n,
|
|
24
|
-
|
|
23
|
+
(n, r) => {
|
|
24
|
+
r && r.unsubscribeRootElement(), n && o.value && n.setRootElement(o.value);
|
|
25
25
|
}
|
|
26
26
|
), P(() => {
|
|
27
27
|
o.value && t.model.setRootElement(o.value);
|
|
28
28
|
}), K(() => {
|
|
29
29
|
t.model.unsubscribeRootElement();
|
|
30
|
-
}), (n,
|
|
30
|
+
}), (n, r) => e.value.isCreatorDisposed ? p("", !0) : (a(), i(w, { key: 0 }, [
|
|
31
31
|
v(s(u), { is: "survey-popup-modal" }),
|
|
32
32
|
d("div", {
|
|
33
|
-
class:
|
|
33
|
+
class: m(e.value.getRootCss()),
|
|
34
34
|
style: F(e.value.themeVariables),
|
|
35
35
|
ref_key: "root",
|
|
36
36
|
ref: o
|
|
@@ -39,24 +39,24 @@ const ze = { class: "svc-flex-column svc-flex-row__element svc-flex-row__element
|
|
|
39
39
|
v(s(u), { is: "sv-svg-bundle" })
|
|
40
40
|
]),
|
|
41
41
|
d("div", {
|
|
42
|
-
class:
|
|
42
|
+
class: m(["svc-full-container svc-creator__area svc-flex-column", {
|
|
43
43
|
"svc-creator__area--with-banner": !e.value.haveCommercialLicense
|
|
44
44
|
}])
|
|
45
45
|
}, [
|
|
46
46
|
d("div", {
|
|
47
|
-
class:
|
|
47
|
+
class: m(["svc-flex-row svc-full-container", {
|
|
48
48
|
"svc-creator__side-bar--left": e.value.sidebarLocation == "left"
|
|
49
49
|
}])
|
|
50
50
|
}, [
|
|
51
51
|
d("div", ze, [
|
|
52
52
|
d("div", Le, [
|
|
53
|
-
e.value.showTabs ? (a(),
|
|
53
|
+
e.value.showTabs ? (a(), i("div", Fe, [
|
|
54
54
|
v(s(u), {
|
|
55
55
|
is: "svc-tabbed-menu",
|
|
56
56
|
model: e.value.tabbedMenu
|
|
57
57
|
}, null, 8, ["model"])
|
|
58
58
|
])) : p("", !0),
|
|
59
|
-
e.value.showToolbar ? (a(),
|
|
59
|
+
e.value.showToolbar ? (a(), i("div", {
|
|
60
60
|
key: 1,
|
|
61
61
|
class: "svc-toolbar-wrapper",
|
|
62
62
|
"v-show": e.value.showToolbar
|
|
@@ -68,30 +68,30 @@ const ze = { class: "svc-flex-column svc-flex-row__element svc-flex-row__element
|
|
|
68
68
|
], 8, Ke)) : p("", !0)
|
|
69
69
|
]),
|
|
70
70
|
d("div", {
|
|
71
|
-
class:
|
|
71
|
+
class: m(["svc-creator__content-wrapper svc-flex-row", {
|
|
72
72
|
"svc-creator__content-wrapper--footer-toolbar": e.value.isMobileView
|
|
73
73
|
}])
|
|
74
74
|
}, [
|
|
75
75
|
d("div", Ue, [
|
|
76
|
-
(a(!0),
|
|
77
|
-
e.value.viewType ==
|
|
76
|
+
(a(!0), i(w, null, V(e.value.tabs, (l) => (a(), i(w, null, [
|
|
77
|
+
e.value.viewType == l.id && l.visible ? (a(), i("div", {
|
|
78
78
|
role: "tabpanel",
|
|
79
|
-
class:
|
|
79
|
+
class: m(["svc-creator-tab", {
|
|
80
80
|
"svc-creator__toolbox--right": e.value.toolboxLocation == "right"
|
|
81
81
|
}]),
|
|
82
|
-
key:
|
|
83
|
-
"aria-labelledby": "tab-" +
|
|
84
|
-
id: "scrollableDiv-" +
|
|
82
|
+
key: l.id,
|
|
83
|
+
"aria-labelledby": "tab-" + l.id,
|
|
84
|
+
id: "scrollableDiv-" + l.id
|
|
85
85
|
}, [
|
|
86
86
|
v(s(u), {
|
|
87
|
-
is:
|
|
88
|
-
model:
|
|
87
|
+
is: l.componentContent,
|
|
88
|
+
model: l.data.model
|
|
89
89
|
}, null, 8, ["is", "model"])
|
|
90
|
-
], 10,
|
|
90
|
+
], 10, Qe)) : p("", !0)
|
|
91
91
|
], 64))), 256))
|
|
92
92
|
])
|
|
93
93
|
], 2),
|
|
94
|
-
e.value.isMobileView ? (a(),
|
|
94
|
+
e.value.isMobileView ? (a(), i("div", He, [
|
|
95
95
|
d("div", {
|
|
96
96
|
class: "svc-toolbar-wrapper",
|
|
97
97
|
"v-show": e.value.isMobileView
|
|
@@ -100,7 +100,7 @@ const ze = { class: "svc-flex-column svc-flex-row__element svc-flex-row__element
|
|
|
100
100
|
is: "sv-action-bar",
|
|
101
101
|
model: e.value.footerToolbar
|
|
102
102
|
}, null, 8, ["model"])
|
|
103
|
-
], 8,
|
|
103
|
+
], 8, Oe)
|
|
104
104
|
])) : p("", !0)
|
|
105
105
|
]),
|
|
106
106
|
e.value.sidebar ? (a(), h(s(u), {
|
|
@@ -109,7 +109,7 @@ const ze = { class: "svc-flex-column svc-flex-row__element svc-flex-row__element
|
|
|
109
109
|
model: e.value.sidebar
|
|
110
110
|
}, null, 8, ["model"])) : p("", !0)
|
|
111
111
|
], 2),
|
|
112
|
-
e.value.haveCommercialLicense ? p("", !0) : (a(),
|
|
112
|
+
e.value.haveCommercialLicense ? p("", !0) : (a(), i("div", Ge, [
|
|
113
113
|
d("span", {
|
|
114
114
|
class: "svc-creator__non-commercial-text",
|
|
115
115
|
innerHTML: e.value.licenseText
|
|
@@ -136,16 +136,16 @@ const ze = { class: "svc-flex-column svc-flex-row__element svc-flex-row__element
|
|
|
136
136
|
e = new he(o.value, t.model);
|
|
137
137
|
}), K(() => {
|
|
138
138
|
e.dispose(), e = void 0;
|
|
139
|
-
}), (n,
|
|
139
|
+
}), (n, r) => (a(), i("div", {
|
|
140
140
|
class: "svc-tabbed-menu",
|
|
141
141
|
ref_key: "container",
|
|
142
142
|
ref: o,
|
|
143
143
|
role: "tablist"
|
|
144
144
|
}, [
|
|
145
|
-
(a(!0),
|
|
146
|
-
key:
|
|
145
|
+
(a(!0), i(w, null, V(n.model.renderedActions, (l) => (a(), h(s(u), {
|
|
146
|
+
key: l.renderedId,
|
|
147
147
|
is: "svc-tabbed-menu-item-wrapper",
|
|
148
|
-
item:
|
|
148
|
+
item: l
|
|
149
149
|
}, null, 8, ["item"]))), 128))
|
|
150
150
|
], 512));
|
|
151
151
|
}
|
|
@@ -158,14 +158,14 @@ const ze = { class: "svc-flex-column svc-flex-row__element svc-flex-row__element
|
|
|
158
158
|
const t = I(), e = c;
|
|
159
159
|
return T(() => e.item), P(() => {
|
|
160
160
|
const o = e.item;
|
|
161
|
-
o.updateModeCallback = (n,
|
|
162
|
-
o.mode = n, re(() =>
|
|
161
|
+
o.updateModeCallback = (n, r) => {
|
|
162
|
+
o.mode = n, re(() => r(n, t.value));
|
|
163
163
|
}, o.afterRender();
|
|
164
164
|
}), K(() => {
|
|
165
165
|
const o = e.item;
|
|
166
166
|
o.updateModeCallback = void 0;
|
|
167
|
-
}), (o, n) => (a(),
|
|
168
|
-
class:
|
|
167
|
+
}), (o, n) => (a(), i("span", {
|
|
168
|
+
class: m(["svc-tabbed-menu-item-container", [o.item.isVisible ? "" : "sv-action--hidden", o.item.css]]),
|
|
169
169
|
ref_key: "root",
|
|
170
170
|
ref: t
|
|
171
171
|
}, [
|
|
@@ -184,25 +184,25 @@ const ze = { class: "svc-flex-column svc-flex-row__element svc-flex-row__element
|
|
|
184
184
|
},
|
|
185
185
|
setup(c) {
|
|
186
186
|
const t = c;
|
|
187
|
-
return T(() => t.item), (e, o) =>
|
|
187
|
+
return T(() => t.item), (e, o) => q((a(), i("div", {
|
|
188
188
|
role: "tab",
|
|
189
189
|
id: "tab-" + e.item.id,
|
|
190
190
|
"aria-selected": e.item.active,
|
|
191
191
|
"aria-controls": "scrollableDiv-" + e.item.id,
|
|
192
|
-
class:
|
|
192
|
+
class: m(["svc-tabbed-menu-item", e.item.getRootCss()]),
|
|
193
193
|
onClick: o[0] || (o[0] = //@ts-ignore
|
|
194
194
|
(...n) => e.item.action && e.item.action(...n))
|
|
195
195
|
}, [
|
|
196
|
-
e.item.hasTitle ? (a(),
|
|
196
|
+
e.item.hasTitle ? (a(), i("span", {
|
|
197
197
|
key: 0,
|
|
198
|
-
class:
|
|
199
|
-
},
|
|
198
|
+
class: m(e.item.getTitleCss())
|
|
199
|
+
}, k(e.item.title), 3)) : p("", !0),
|
|
200
200
|
e.item.hasIcon ? (a(), h(s(u), {
|
|
201
201
|
key: 1,
|
|
202
202
|
is: "sv-svg-icon",
|
|
203
203
|
iconName: e.item.iconName,
|
|
204
204
|
size: "auto",
|
|
205
|
-
class:
|
|
205
|
+
class: m(e.item.getIconCss()),
|
|
206
206
|
title: e.item.tooltip || e.item.title
|
|
207
207
|
}, null, 8, ["iconName", "class", "title"])) : p("", !0)
|
|
208
208
|
], 10, Ye)), [
|
|
@@ -220,17 +220,17 @@ const ze = { class: "svc-flex-column svc-flex-row__element svc-flex-row__element
|
|
|
220
220
|
t.model.initResizeManager(e.value);
|
|
221
221
|
}), K(() => {
|
|
222
222
|
t.model.resetResizeManager();
|
|
223
|
-
}), (o, n) =>
|
|
224
|
-
class:
|
|
223
|
+
}), (o, n) => q((a(), i("div", {
|
|
224
|
+
class: m(["svc-side-bar", o.model.rootCss])
|
|
225
225
|
}, [
|
|
226
|
-
|
|
226
|
+
q(d("div", {
|
|
227
227
|
class: "svc-side-bar__shadow",
|
|
228
228
|
onClick: n[0] || (n[0] = () => o.model.collapseSidebar())
|
|
229
229
|
}, null, 512), [
|
|
230
|
-
[
|
|
230
|
+
[Q, o.model.renderContainer]
|
|
231
231
|
]),
|
|
232
232
|
d("div", eo, [
|
|
233
|
-
|
|
233
|
+
q(d("div", oo, [
|
|
234
234
|
d("div", {
|
|
235
235
|
class: "svc-side-bar__container",
|
|
236
236
|
ref_key: "root",
|
|
@@ -241,15 +241,15 @@ const ze = { class: "svc-flex-column svc-flex-row__element svc-flex-row__element
|
|
|
241
241
|
model: o.model.header.componentModel
|
|
242
242
|
}, null, 8, ["is", "model"]),
|
|
243
243
|
d("div", so, [
|
|
244
|
-
(a(!0),
|
|
245
|
-
key:
|
|
244
|
+
(a(!0), i(w, null, V(o.model.pages, (r, l) => (a(), h(s(u), {
|
|
245
|
+
key: l,
|
|
246
246
|
is: "svc-side-bar-page",
|
|
247
|
-
model:
|
|
247
|
+
model: r
|
|
248
248
|
}, null, 8, ["model"]))), 128))
|
|
249
249
|
])
|
|
250
250
|
], 512)
|
|
251
251
|
], 512), [
|
|
252
|
-
[
|
|
252
|
+
[Q, o.model.renderContainer]
|
|
253
253
|
]),
|
|
254
254
|
o.model.sideAreaComponentName ? (a(), h(s(u), {
|
|
255
255
|
key: 0,
|
|
@@ -258,7 +258,7 @@ const ze = { class: "svc-flex-column svc-flex-row__element svc-flex-row__element
|
|
|
258
258
|
}, null, 8, ["is", "model"])) : p("", !0)
|
|
259
259
|
])
|
|
260
260
|
], 2)), [
|
|
261
|
-
[
|
|
261
|
+
[Q, o.model.renderRoot]
|
|
262
262
|
]);
|
|
263
263
|
}
|
|
264
264
|
}), no = { class: "svc-side-bar__container-header" }, ao = { class: "svc-side-bar__container-actions" }, lo = {
|
|
@@ -271,14 +271,14 @@ const ze = { class: "svc-flex-column svc-flex-row__element svc-flex-row__element
|
|
|
271
271
|
},
|
|
272
272
|
setup(c) {
|
|
273
273
|
const t = c;
|
|
274
|
-
return T(() => t.model), (e, o) => (a(),
|
|
274
|
+
return T(() => t.model), (e, o) => (a(), i("div", no, [
|
|
275
275
|
d("div", ao, [
|
|
276
276
|
v(s(u), {
|
|
277
277
|
is: "sv-action-bar",
|
|
278
278
|
model: e.model.toolbar
|
|
279
279
|
}, null, 8, ["model"])
|
|
280
280
|
]),
|
|
281
|
-
e.model.title ? (a(),
|
|
281
|
+
e.model.title ? (a(), i("div", lo, k(e.model.title), 1)) : p("", !0)
|
|
282
282
|
]));
|
|
283
283
|
}
|
|
284
284
|
}), ro = /* @__PURE__ */ g({
|
|
@@ -314,14 +314,14 @@ const ze = { class: "svc-flex-column svc-flex-row__element svc-flex-row__element
|
|
|
314
314
|
},
|
|
315
315
|
setup(c) {
|
|
316
316
|
const t = c;
|
|
317
|
-
return T(() => t.model), (e, o) => (a(),
|
|
318
|
-
class:
|
|
317
|
+
return T(() => t.model), (e, o) => (a(), i("div", {
|
|
318
|
+
class: m(e.model.rootCss)
|
|
319
319
|
}, [
|
|
320
320
|
v(s(u), {
|
|
321
321
|
is: "svc-search",
|
|
322
322
|
model: e.model.searchManager
|
|
323
323
|
}, null, 8, ["model"]),
|
|
324
|
-
e.model.survey ? (a(), h(s(
|
|
324
|
+
e.model.survey ? (a(), h(s(O), {
|
|
325
325
|
key: 0,
|
|
326
326
|
survey: e.model.survey
|
|
327
327
|
}, null, 8, ["survey"])) : p("", !0)
|
|
@@ -334,8 +334,8 @@ const ze = { class: "svc-flex-column svc-flex-row__element svc-flex-row__element
|
|
|
334
334
|
},
|
|
335
335
|
setup(c) {
|
|
336
336
|
const t = c;
|
|
337
|
-
return T(() => t.model), (e, o) => (a(!0),
|
|
338
|
-
key:
|
|
337
|
+
return T(() => t.model), (e, o) => (a(!0), i(w, null, V(e.model.actions, (n, r) => (a(), h(s(u), {
|
|
338
|
+
key: r,
|
|
339
339
|
is: "svc-tab-button",
|
|
340
340
|
model: n
|
|
341
341
|
}, null, 8, ["model"]))), 128));
|
|
@@ -349,8 +349,8 @@ const ze = { class: "svc-flex-column svc-flex-row__element svc-flex-row__element
|
|
|
349
349
|
},
|
|
350
350
|
setup(c) {
|
|
351
351
|
const t = c;
|
|
352
|
-
return T(() => t.model), (e, o) => (a(),
|
|
353
|
-
class:
|
|
352
|
+
return T(() => t.model), (e, o) => (a(), i("div", {
|
|
353
|
+
class: m(e.model.sideBarClassName)
|
|
354
354
|
}, [
|
|
355
355
|
d("div", vo, [
|
|
356
356
|
d("div", mo, [
|
|
@@ -382,24 +382,24 @@ const ze = { class: "svc-flex-column svc-flex-row__element svc-flex-row__element
|
|
|
382
382
|
])
|
|
383
383
|
], 2));
|
|
384
384
|
}
|
|
385
|
-
}),
|
|
385
|
+
}), Co = {
|
|
386
386
|
key: 0,
|
|
387
387
|
class: "svc-menu-action"
|
|
388
|
-
},
|
|
388
|
+
}, qo = ["title"], $o = { class: "svc-menu-action__icon" }, ko = { class: "svc-menu-action__icon-container" }, fo = /* @__PURE__ */ g({
|
|
389
389
|
__name: "TabButton",
|
|
390
390
|
props: {
|
|
391
391
|
model: {}
|
|
392
392
|
},
|
|
393
393
|
setup(c) {
|
|
394
394
|
const t = c;
|
|
395
|
-
return T(() => t.model), (e, o) => e.model.visible ? (a(),
|
|
396
|
-
|
|
397
|
-
class:
|
|
395
|
+
return T(() => t.model), (e, o) => e.model.visible ? (a(), i("div", Co, [
|
|
396
|
+
q((a(), i("div", {
|
|
397
|
+
class: m(e.model.buttonClassName),
|
|
398
398
|
title: e.model.tooltip,
|
|
399
399
|
onClick: o[0] || (o[0] = (n) => e.model.action())
|
|
400
400
|
}, [
|
|
401
|
-
d("div",
|
|
402
|
-
d("div",
|
|
401
|
+
d("div", $o, [
|
|
402
|
+
d("div", ko, [
|
|
403
403
|
v(s(u), {
|
|
404
404
|
is: "sv-svg-icon",
|
|
405
405
|
iconName: e.model.iconName,
|
|
@@ -407,7 +407,7 @@ const ze = { class: "svc-flex-column svc-flex-row__element svc-flex-row__element
|
|
|
407
407
|
}, null, 8, ["iconName"])
|
|
408
408
|
])
|
|
409
409
|
])
|
|
410
|
-
], 10,
|
|
410
|
+
], 10, qo)), [
|
|
411
411
|
[s(N), { processEsc: !1, disableTabStop: e.model.disableTabStop }]
|
|
412
412
|
])
|
|
413
413
|
])) : p("", !0);
|
|
@@ -419,10 +419,10 @@ const ze = { class: "svc-flex-column svc-flex-row__element svc-flex-row__element
|
|
|
419
419
|
__name: "PropertyGridPlaceholder",
|
|
420
420
|
setup(c) {
|
|
421
421
|
const t = ue;
|
|
422
|
-
return (e, o) => (a(),
|
|
422
|
+
return (e, o) => (a(), i("div", wo, [
|
|
423
423
|
d("div", To, [
|
|
424
|
-
d("span", Do,
|
|
425
|
-
d("span", No,
|
|
424
|
+
d("span", Do, k(s(t).getString("ed.propertyGridPlaceholderTitle")), 1),
|
|
425
|
+
d("span", No, k(s(t).getString("ed.propertyGridPlaceholderDescription")), 1)
|
|
426
426
|
]),
|
|
427
427
|
Mo
|
|
428
428
|
]));
|
|
@@ -440,31 +440,31 @@ const ze = { class: "svc-flex-column svc-flex-row__element svc-flex-row__element
|
|
|
440
440
|
},
|
|
441
441
|
setup(c) {
|
|
442
442
|
const t = c;
|
|
443
|
-
return T(() => t.model), (e, o) => (a(),
|
|
444
|
-
e.model.subTitle ? p("", !0) : (a(),
|
|
445
|
-
e.model.subTitle ? (a(),
|
|
446
|
-
d("span", Po,
|
|
447
|
-
d("span", Ro,
|
|
443
|
+
return T(() => t.model), (e, o) => (a(), i("div", Bo, [
|
|
444
|
+
e.model.subTitle ? p("", !0) : (a(), i("div", Io, k(e.model.title), 1)),
|
|
445
|
+
e.model.subTitle ? (a(), i("div", Eo, [
|
|
446
|
+
d("span", Po, k(e.model.title), 1),
|
|
447
|
+
d("span", Ro, k(e.model.subTitle), 1)
|
|
448
448
|
])) : p("", !0)
|
|
449
449
|
]));
|
|
450
450
|
}
|
|
451
|
-
}), Ao = { class: "svc-sidebar__header svc-sidebar__header--tabbed" }, zo = { class: "svc-sidebar__header-container svc-sidebar__header-container--with-subtitle" }, Lo = { class: "svc-sidebar__header-content" }, Fo = { class: "svc-sidebar__header-caption" }, Ko = { class: "svc-sidebar__header-title" }, Uo = { class: "svc-sidebar__header-subtitle" },
|
|
451
|
+
}), Ao = { class: "svc-sidebar__header svc-sidebar__header--tabbed" }, zo = { class: "svc-sidebar__header-container svc-sidebar__header-container--with-subtitle" }, Lo = { class: "svc-sidebar__header-content" }, Fo = { class: "svc-sidebar__header-caption" }, Ko = { class: "svc-sidebar__header-title" }, Uo = { class: "svc-sidebar__header-subtitle" }, Qo = /* @__PURE__ */ g({
|
|
452
452
|
__name: "SideBarPropertyGridHeader",
|
|
453
453
|
props: {
|
|
454
454
|
model: {}
|
|
455
455
|
},
|
|
456
456
|
setup(c) {
|
|
457
457
|
const t = c;
|
|
458
|
-
return T(() => t.model), (e, o) => (a(),
|
|
458
|
+
return T(() => t.model), (e, o) => (a(), i("div", Ao, [
|
|
459
459
|
d("div", zo, [
|
|
460
460
|
d("div", Lo, [
|
|
461
|
-
|
|
462
|
-
class:
|
|
461
|
+
q((a(), i("div", {
|
|
462
|
+
class: m(e.model.buttonClassName),
|
|
463
463
|
onClick: o[0] || (o[0] = (n) => e.model.action())
|
|
464
464
|
}, [
|
|
465
465
|
d("div", Fo, [
|
|
466
|
-
d("span", Ko,
|
|
467
|
-
d("span", Uo,
|
|
466
|
+
d("span", Ko, k(e.model.title), 1),
|
|
467
|
+
d("span", Uo, k(e.model.tooltip), 1)
|
|
468
468
|
])
|
|
469
469
|
], 2)), [
|
|
470
470
|
[s(N), { processEsc: !1 }]
|
|
@@ -477,7 +477,7 @@ const ze = { class: "svc-flex-column svc-flex-row__element svc-flex-row__element
|
|
|
477
477
|
])
|
|
478
478
|
]));
|
|
479
479
|
}
|
|
480
|
-
}),
|
|
480
|
+
}), Ho = /* @__PURE__ */ g({
|
|
481
481
|
__name: "QuestionError",
|
|
482
482
|
props: {
|
|
483
483
|
errorKey: {},
|
|
@@ -486,15 +486,15 @@ const ze = { class: "svc-flex-column svc-flex-row__element svc-flex-row__element
|
|
|
486
486
|
element: {}
|
|
487
487
|
},
|
|
488
488
|
setup(c) {
|
|
489
|
-
return (t, e) => (a(),
|
|
489
|
+
return (t, e) => (a(), i("div", { key: t.errorKey }, [
|
|
490
490
|
v(s(u), {
|
|
491
491
|
is: "sv-svg-icon",
|
|
492
|
-
class:
|
|
492
|
+
class: m(t.cssClasses.error.icon),
|
|
493
493
|
iconName: "icon-alert_24x24",
|
|
494
494
|
size: "auto"
|
|
495
495
|
}, null, 8, ["class"]),
|
|
496
496
|
d("span", {
|
|
497
|
-
class:
|
|
497
|
+
class: m(
|
|
498
498
|
t.cssClasses ? t.cssClasses.error.item || void 0 : "panel-error-item"
|
|
499
499
|
)
|
|
500
500
|
}, [
|
|
@@ -505,7 +505,7 @@ const ze = { class: "svc-flex-column svc-flex-row__element svc-flex-row__element
|
|
|
505
505
|
], 2)
|
|
506
506
|
]));
|
|
507
507
|
}
|
|
508
|
-
}),
|
|
508
|
+
}), Oo = ["title"], Go = ["title"], Wo = ["title"], jo = ["title"], Jo = /* @__PURE__ */ g({
|
|
509
509
|
__name: "ActionButton",
|
|
510
510
|
props: {
|
|
511
511
|
classes: {},
|
|
@@ -520,29 +520,29 @@ const ze = { class: "svc-flex-column svc-flex-row__element svc-flex-row__element
|
|
|
520
520
|
setup(c) {
|
|
521
521
|
const t = c, e = (n) => {
|
|
522
522
|
t.click(), t.allowBubble || n.stopPropagation();
|
|
523
|
-
}, o = () => new
|
|
524
|
-
return (n,
|
|
525
|
-
n.iconName ? p("", !0) : (a(),
|
|
526
|
-
n.disabled ? (a(),
|
|
523
|
+
}, o = () => new Ce().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();
|
|
524
|
+
return (n, r) => (a(), i(w, null, [
|
|
525
|
+
n.iconName ? p("", !0) : (a(), i(w, { key: 0 }, [
|
|
526
|
+
n.disabled ? (a(), i("span", {
|
|
527
527
|
key: 0,
|
|
528
|
-
class:
|
|
528
|
+
class: m(["svc-action-button svc-action-button--disabled", n.classes]),
|
|
529
529
|
title: n.title
|
|
530
|
-
},
|
|
531
|
-
|
|
530
|
+
}, k(n.text), 11, Oo)) : p("", !0),
|
|
531
|
+
q((a(), i("span", {
|
|
532
532
|
role: "button",
|
|
533
|
-
class:
|
|
533
|
+
class: m(["svc-action-button", o()]),
|
|
534
534
|
onClick: e,
|
|
535
535
|
title: n.title
|
|
536
536
|
}, [
|
|
537
|
-
be(
|
|
537
|
+
be(k(n.text), 1)
|
|
538
538
|
], 10, Go)), [
|
|
539
539
|
[s(N)]
|
|
540
540
|
])
|
|
541
541
|
], 64)),
|
|
542
|
-
n.iconName ? (a(),
|
|
543
|
-
n.disabled ? (a(),
|
|
542
|
+
n.iconName ? (a(), i(w, { key: 1 }, [
|
|
543
|
+
n.disabled ? (a(), i("span", {
|
|
544
544
|
key: 0,
|
|
545
|
-
class:
|
|
545
|
+
class: m(o()),
|
|
546
546
|
title: n.title
|
|
547
547
|
}, [
|
|
548
548
|
v(s(u), {
|
|
@@ -551,10 +551,10 @@ const ze = { class: "svc-flex-column svc-flex-row__element svc-flex-row__element
|
|
|
551
551
|
size: "auto"
|
|
552
552
|
}, null, 8, ["iconName"])
|
|
553
553
|
], 10, Wo)) : p("", !0),
|
|
554
|
-
|
|
554
|
+
q((a(), i("span", {
|
|
555
555
|
role: "button",
|
|
556
556
|
onClick: e,
|
|
557
|
-
class:
|
|
557
|
+
class: m(o()),
|
|
558
558
|
title: n.title
|
|
559
559
|
}, [
|
|
560
560
|
v(s(u), {
|
|
@@ -583,8 +583,8 @@ const ze = { class: "svc-flex-column svc-flex-row__element svc-flex-row__element
|
|
|
583
583
|
},
|
|
584
584
|
setup(c) {
|
|
585
585
|
const t = c;
|
|
586
|
-
return T(() => t.item), (e, o) =>
|
|
587
|
-
class:
|
|
586
|
+
return T(() => t.item), (e, o) => q((a(), i("button", {
|
|
587
|
+
class: m(e.item.getActionBarItemCss()),
|
|
588
588
|
type: "button",
|
|
589
589
|
onClick: o[0] || (o[0] = (n) => {
|
|
590
590
|
e.item.action(e.item, !!n.pointerType);
|
|
@@ -599,9 +599,9 @@ const ze = { class: "svc-flex-column svc-flex-row__element svc-flex-row__element
|
|
|
599
599
|
role: e.item.ariaRole
|
|
600
600
|
}, [
|
|
601
601
|
d("div", {
|
|
602
|
-
class:
|
|
602
|
+
class: m(e.item.getSwitcherIconCss())
|
|
603
603
|
}, Yo, 2),
|
|
604
|
-
e.item.hasTitle ? (a(),
|
|
604
|
+
e.item.hasTitle ? (a(), i("span", xo, k(e.item.title), 1)) : p("", !0)
|
|
605
605
|
], 42, Zo)), [
|
|
606
606
|
[s(N), { processEsc: !1, disableTabStop: e.item.disableTabStop }]
|
|
607
607
|
]);
|
|
@@ -617,24 +617,24 @@ const ze = { class: "svc-flex-column svc-flex-row__element svc-flex-row__element
|
|
|
617
617
|
setup(c) {
|
|
618
618
|
const t = c;
|
|
619
619
|
T(() => t.model);
|
|
620
|
-
const e =
|
|
620
|
+
const e = $(() => t.model.simulatorFrame), o = () => {
|
|
621
621
|
t.model.device !== "desktop" && t.model.activateZoom();
|
|
622
622
|
}, n = () => {
|
|
623
623
|
t.model.device !== "desktop" && t.model.deactivateZoom();
|
|
624
624
|
};
|
|
625
|
-
return (
|
|
626
|
-
class:
|
|
627
|
-
onKeydown:
|
|
628
|
-
onMouseover:
|
|
629
|
-
onMouseout:
|
|
625
|
+
return (r, l) => (a(), i("div", {
|
|
626
|
+
class: m(r.model.getRootCss()),
|
|
627
|
+
onKeydown: l[0] || (l[0] = (_) => r.model.tryToZoom(void 0, _)),
|
|
628
|
+
onMouseover: l[1] || (l[1] = (_) => o()),
|
|
629
|
+
onMouseout: l[2] || (l[2] = (_) => n())
|
|
630
630
|
}, [
|
|
631
|
-
|
|
631
|
+
r.model.hasFrame ? p("", !0) : (a(), i("div", ss, [
|
|
632
632
|
v(s(u), {
|
|
633
633
|
is: "survey-widget",
|
|
634
|
-
model:
|
|
634
|
+
model: r.model.survey
|
|
635
635
|
}, null, 8, ["model"])
|
|
636
636
|
])),
|
|
637
|
-
|
|
637
|
+
r.model.hasFrame ? (a(), i("div", {
|
|
638
638
|
key: 1,
|
|
639
639
|
class: "svd-simulator-wrapper",
|
|
640
640
|
id: "svd-simulator-wrapper",
|
|
@@ -654,7 +654,7 @@ const ze = { class: "svc-flex-column svc-flex-row__element svc-flex-row__element
|
|
|
654
654
|
d("div", ts, [
|
|
655
655
|
v(s(u), {
|
|
656
656
|
is: "survey-widget",
|
|
657
|
-
model:
|
|
657
|
+
model: r.model.survey
|
|
658
658
|
}, null, 8, ["model"])
|
|
659
659
|
])
|
|
660
660
|
], 4)
|
|
@@ -670,13 +670,13 @@ const ze = { class: "svc-flex-column svc-flex-row__element svc-flex-row__element
|
|
|
670
670
|
},
|
|
671
671
|
setup(c) {
|
|
672
672
|
const t = c;
|
|
673
|
-
return (e, o) => (a(),
|
|
673
|
+
return (e, o) => (a(), i("div", as, [
|
|
674
674
|
d("div", {
|
|
675
|
-
class:
|
|
675
|
+
class: m(["svc-surface-placeholder__image", "svc-surface-placeholder__image--" + e.name])
|
|
676
676
|
}, null, 2),
|
|
677
677
|
d("div", ls, [
|
|
678
|
-
d("div", is,
|
|
679
|
-
d("div", rs,
|
|
678
|
+
d("div", is, k(t.placeholderTitleText), 1),
|
|
679
|
+
d("div", rs, k(t.placeholderDescriptionText), 1)
|
|
680
680
|
])
|
|
681
681
|
]));
|
|
682
682
|
}
|
|
@@ -690,8 +690,8 @@ const ze = { class: "svc-flex-column svc-flex-row__element svc-flex-row__element
|
|
|
690
690
|
},
|
|
691
691
|
setup(c) {
|
|
692
692
|
const t = c;
|
|
693
|
-
return T(() => t.model), (e, o) => (a(),
|
|
694
|
-
class:
|
|
693
|
+
return T(() => t.model), (e, o) => (a(), i("div", {
|
|
694
|
+
class: m(["svc-creator-tab__content svc-test-tab__content", {
|
|
695
695
|
"svc-creator-tab__content--with-toolbar": e.model.isPageToolbarVisible
|
|
696
696
|
}])
|
|
697
697
|
}, [
|
|
@@ -701,7 +701,7 @@ const ze = { class: "svc-flex-column svc-flex-row__element svc-flex-row__element
|
|
|
701
701
|
placeholderTitleText: e.model.placeholderTitleText,
|
|
702
702
|
placeholderDescriptionText: e.model.placeholderDescriptionText
|
|
703
703
|
}, null, 8, ["placeholderTitleText", "placeholderDescriptionText"])) : p("", !0),
|
|
704
|
-
e.model.survey.isEmpty ? p("", !0) : (a(),
|
|
704
|
+
e.model.survey.isEmpty ? p("", !0) : (a(), i("div", {
|
|
705
705
|
key: 1,
|
|
706
706
|
class: "svc-plugin-tab__content",
|
|
707
707
|
onScroll: o[0] || (o[0] = (n) => e.model.onScroll())
|
|
@@ -716,7 +716,7 @@ const ze = { class: "svc-flex-column svc-flex-row__element svc-flex-row__element
|
|
|
716
716
|
survey: e.model.survey
|
|
717
717
|
}, null, 8, ["survey"])) : p("", !0)
|
|
718
718
|
], 32)),
|
|
719
|
-
e.model.isPageToolbarVisible ? (a(),
|
|
719
|
+
e.model.isPageToolbarVisible ? (a(), i("div", ds, [
|
|
720
720
|
v(s(u), {
|
|
721
721
|
is: "sv-action-bar",
|
|
722
722
|
model: e.model.pages
|
|
@@ -731,13 +731,13 @@ const ze = { class: "svc-flex-column svc-flex-row__element svc-flex-row__element
|
|
|
731
731
|
model: {}
|
|
732
732
|
},
|
|
733
733
|
setup(c) {
|
|
734
|
-
const t = c, e =
|
|
735
|
-
return T(() => e.value), (o, n) =>
|
|
734
|
+
const t = c, e = $(() => t.model.testAgainAction);
|
|
735
|
+
return T(() => e.value), (o, n) => q((a(), i("div", {
|
|
736
736
|
role: "button",
|
|
737
737
|
class: "svc-preview__test-again svc-btn",
|
|
738
|
-
onClick: n[0] || (n[0] = (
|
|
738
|
+
onClick: n[0] || (n[0] = (r) => e.value.action())
|
|
739
739
|
}, [
|
|
740
|
-
d("span", us,
|
|
740
|
+
d("span", us, k(e.value.title), 1)
|
|
741
741
|
])), [
|
|
742
742
|
[s(N)]
|
|
743
743
|
]);
|
|
@@ -745,7 +745,7 @@ const ze = { class: "svc-flex-column svc-flex-row__element svc-flex-row__element
|
|
|
745
745
|
});
|
|
746
746
|
function z(c, t, e) {
|
|
747
747
|
const o = ye(), n = G(
|
|
748
|
-
t.map((
|
|
748
|
+
t.map((r) => () => r()),
|
|
749
749
|
() => {
|
|
750
750
|
o.value = c();
|
|
751
751
|
},
|
|
@@ -760,20 +760,20 @@ function z(c, t, e) {
|
|
|
760
760
|
const vs = {
|
|
761
761
|
key: 0,
|
|
762
762
|
class: "svd-test-results"
|
|
763
|
-
}, ms = { class: "svd-test-results__content" }, _s = { class: "svd-test-results__header" }, gs = { class: "svd-test-results__header-text" }, bs = { class: "svd-test-results__header-types" }, ys = { class: "svd-test-results__text svd-light-bg-color" }, hs = { class: "svd-test-results__table svd-light-bg-color" },
|
|
763
|
+
}, ms = { class: "svd-test-results__content" }, _s = { class: "svd-test-results__header" }, gs = { class: "svd-test-results__header-text" }, bs = { class: "svd-test-results__header-types" }, ys = { class: "svd-test-results__text svd-light-bg-color" }, hs = { class: "svd-test-results__table svd-light-bg-color" }, Cs = { class: "svd-light-background-color" }, qs = { class: "svd-dark-border-color" }, $s = { class: "svd-dark-border-color" }, ks = /* @__PURE__ */ g({
|
|
764
764
|
__name: "SurveyResults",
|
|
765
765
|
props: {
|
|
766
766
|
survey: {}
|
|
767
767
|
},
|
|
768
768
|
setup(c) {
|
|
769
769
|
const t = c, e = z(
|
|
770
|
-
() => t.survey ? new
|
|
770
|
+
() => t.survey ? new ke(t.survey) : void 0,
|
|
771
771
|
[() => t.survey]
|
|
772
772
|
);
|
|
773
|
-
return (o, n) => s(e) ? (a(),
|
|
773
|
+
return (o, n) => s(e) ? (a(), i("div", vs, [
|
|
774
774
|
d("div", ms, [
|
|
775
775
|
d("div", _s, [
|
|
776
|
-
d("div", gs,
|
|
776
|
+
d("div", gs, k(s(e).surveyResultsText), 1),
|
|
777
777
|
d("div", bs, [
|
|
778
778
|
v(s(u), {
|
|
779
779
|
is: "svc-action-button",
|
|
@@ -791,29 +791,29 @@ const vs = {
|
|
|
791
791
|
}, null, 8, ["text", "click", "selected"])
|
|
792
792
|
])
|
|
793
793
|
]),
|
|
794
|
-
|
|
795
|
-
d("div", null,
|
|
794
|
+
q(d("div", ys, [
|
|
795
|
+
d("div", null, k(s(e).resultText), 1)
|
|
796
796
|
], 512), [
|
|
797
|
-
[
|
|
797
|
+
[Q, s(e).resultViewType === "text"]
|
|
798
798
|
]),
|
|
799
|
-
|
|
799
|
+
q(d("div", hs, [
|
|
800
800
|
d("table", null, [
|
|
801
801
|
d("thead", null, [
|
|
802
|
-
d("tr",
|
|
803
|
-
d("th",
|
|
804
|
-
d("th",
|
|
802
|
+
d("tr", Cs, [
|
|
803
|
+
d("th", qs, k(s(e).resultsTitle), 1),
|
|
804
|
+
d("th", $s, k(s(e).resultsDisplayValue), 1)
|
|
805
805
|
])
|
|
806
806
|
]),
|
|
807
807
|
d("tbody", null, [
|
|
808
|
-
(a(!0),
|
|
808
|
+
(a(!0), i(w, null, V(s(e).resultData, (r, l) => (a(), h(s(u), {
|
|
809
809
|
is: "survey-results-table-row",
|
|
810
|
-
model:
|
|
811
|
-
key:
|
|
810
|
+
model: r,
|
|
811
|
+
key: l
|
|
812
812
|
}, null, 8, ["model"]))), 128))
|
|
813
813
|
])
|
|
814
814
|
])
|
|
815
815
|
], 512), [
|
|
816
|
-
[
|
|
816
|
+
[Q, s(e).resultViewType === "table"]
|
|
817
817
|
])
|
|
818
818
|
])
|
|
819
819
|
])) : p("", !0);
|
|
@@ -825,8 +825,8 @@ const vs = {
|
|
|
825
825
|
},
|
|
826
826
|
setup(c) {
|
|
827
827
|
const t = c;
|
|
828
|
-
return T(() => t.model), (e, o) => (a(),
|
|
829
|
-
|
|
828
|
+
return T(() => t.model), (e, o) => (a(), i(w, null, [
|
|
829
|
+
q((a(), i("tr", {
|
|
830
830
|
onClick: o[0] || (o[0] = //@ts-ignore
|
|
831
831
|
(...n) => e.model.toggle && e.model.toggle(...n))
|
|
832
832
|
}, [
|
|
@@ -834,9 +834,9 @@ const vs = {
|
|
|
834
834
|
class: "svd-dark-border-color",
|
|
835
835
|
style: F({ paddingLeft: e.model.textMargin })
|
|
836
836
|
}, [
|
|
837
|
-
e.model.isNode ? (a(),
|
|
837
|
+
e.model.isNode ? (a(), i("span", {
|
|
838
838
|
key: 0,
|
|
839
|
-
class:
|
|
839
|
+
class: m(["svd-test-results__marker", { "svd-test-results__marker--expanded": !e.model.collapsed }]),
|
|
840
840
|
style: F({ left: e.model.markerMargin })
|
|
841
841
|
}, [
|
|
842
842
|
v(s(u), {
|
|
@@ -849,21 +849,21 @@ const vs = {
|
|
|
849
849
|
key: 1,
|
|
850
850
|
is: "survey-string",
|
|
851
851
|
locString: e.model.question.locTitle
|
|
852
|
-
}, null, 8, ["locString"])) : (a(),
|
|
852
|
+
}, null, 8, ["locString"])) : (a(), i("span", fs, k(e.model.title), 1))
|
|
853
853
|
], 4),
|
|
854
854
|
d("td", {
|
|
855
|
-
class:
|
|
855
|
+
class: m({
|
|
856
856
|
"svd-test-results__node-value": e.model.isNode,
|
|
857
857
|
"svd-dark-border-color": !e.model.isNode
|
|
858
858
|
})
|
|
859
|
-
},
|
|
859
|
+
}, k(e.model.getString(e.model.displayValue)), 3)
|
|
860
860
|
])), [
|
|
861
861
|
[s(N)]
|
|
862
862
|
]),
|
|
863
|
-
e.model.isNode && !e.model.collapsed ? (a(!0),
|
|
863
|
+
e.model.isNode && !e.model.collapsed ? (a(!0), i(w, { key: 0 }, V(e.model.data, (n, r) => (a(), h(s(u), {
|
|
864
864
|
is: "survey-results-table-row",
|
|
865
865
|
model: n,
|
|
866
|
-
key:
|
|
866
|
+
key: r + 1
|
|
867
867
|
}, null, 8, ["model"]))), 128)) : p("", !0)
|
|
868
868
|
], 64));
|
|
869
869
|
}
|
|
@@ -874,20 +874,20 @@ const vs = {
|
|
|
874
874
|
},
|
|
875
875
|
setup(c) {
|
|
876
876
|
const t = c, e = I();
|
|
877
|
-
return T(() => t.model), P(() => t.model.init(window.ace.edit(e.value))), (o, n) => (a(),
|
|
877
|
+
return T(() => t.model), P(() => t.model.init(window.ace.edit(e.value))), (o, n) => (a(), i("div", Ts, [
|
|
878
878
|
d("div", Ds, [
|
|
879
879
|
d("div", {
|
|
880
880
|
class: "svc-json-editor-tab__ace-editor",
|
|
881
881
|
ref_key: "inputEl",
|
|
882
882
|
ref: e
|
|
883
883
|
}, null, 512),
|
|
884
|
-
|
|
884
|
+
q(d("div", Ns, [
|
|
885
885
|
v(s(u), {
|
|
886
886
|
is: "sv-list",
|
|
887
887
|
model: o.model.errorList
|
|
888
888
|
}, null, 8, ["model"])
|
|
889
889
|
], 512), [
|
|
890
|
-
[
|
|
890
|
+
[Q, o.model.hasErrors]
|
|
891
891
|
])
|
|
892
892
|
])
|
|
893
893
|
]));
|
|
@@ -902,27 +902,27 @@ const vs = {
|
|
|
902
902
|
return o.canShowErrors = !1, T(() => t.model), P(() => {
|
|
903
903
|
const n = t.model;
|
|
904
904
|
n.textElement = e.value;
|
|
905
|
-
}), (n,
|
|
905
|
+
}), (n, r) => (a(), i("div", Ss, [
|
|
906
906
|
d("div", Bs, [
|
|
907
|
-
|
|
907
|
+
q(d("textarea", {
|
|
908
908
|
class: "svc-json-editor-tab__content-area",
|
|
909
909
|
"aria-label": s(o).ariaLabel,
|
|
910
910
|
disabled: s(o).readOnly,
|
|
911
|
-
"onUpdate:modelValue":
|
|
912
|
-
onKeydown:
|
|
911
|
+
"onUpdate:modelValue": r[0] || (r[0] = (l) => s(o).text = l),
|
|
912
|
+
onKeydown: r[1] || (r[1] = (l) => s(o).checkKey(s(o), l)),
|
|
913
913
|
ref_key: "inputEl",
|
|
914
914
|
ref: e
|
|
915
915
|
}, `
|
|
916
916
|
`, 40, Is), [
|
|
917
917
|
[de, s(o).text]
|
|
918
918
|
]),
|
|
919
|
-
|
|
919
|
+
q(d("div", Es, [
|
|
920
920
|
v(s(u), {
|
|
921
921
|
is: "sv-list",
|
|
922
922
|
model: s(o).errorList
|
|
923
923
|
}, null, 8, ["model"])
|
|
924
924
|
], 512), [
|
|
925
|
-
[
|
|
925
|
+
[Q, s(o).hasErrors]
|
|
926
926
|
])
|
|
927
927
|
])
|
|
928
928
|
]));
|
|
@@ -938,12 +938,12 @@ const vs = {
|
|
|
938
938
|
const e = (o) => {
|
|
939
939
|
o.stopPropagation(), t.item.data.fixError();
|
|
940
940
|
};
|
|
941
|
-
return (o, n) => (a(),
|
|
941
|
+
return (o, n) => (a(), i(w, null, [
|
|
942
942
|
v(s(u), {
|
|
943
943
|
is: "sv-svg-icon",
|
|
944
944
|
iconName: o.item.iconName,
|
|
945
945
|
size: o.item.iconSize,
|
|
946
|
-
class:
|
|
946
|
+
class: m("svc-json-error__icon")
|
|
947
947
|
}, null, 8, ["iconName", "size"]),
|
|
948
948
|
d("div", Rs, [
|
|
949
949
|
d("div", Vs, [
|
|
@@ -952,7 +952,7 @@ const vs = {
|
|
|
952
952
|
locString: o.item.locTitle
|
|
953
953
|
}, null, 8, ["locString"])
|
|
954
954
|
]),
|
|
955
|
-
o.item.data.showFixButton ?
|
|
955
|
+
o.item.data.showFixButton ? q((a(), i("button", {
|
|
956
956
|
key: 0,
|
|
957
957
|
type: "button",
|
|
958
958
|
onClick: e,
|
|
@@ -982,14 +982,14 @@ const vs = {
|
|
|
982
982
|
const e = (o) => {
|
|
983
983
|
o.stopPropagation(), t.model.action();
|
|
984
984
|
};
|
|
985
|
-
return (o, n) =>
|
|
985
|
+
return (o, n) => q((a(), i("div", {
|
|
986
986
|
role: "button",
|
|
987
|
-
class:
|
|
987
|
+
class: m(["svc-logic-tab__content-action svc-btn", {
|
|
988
988
|
"svc-logic-tab__content-action--disabled": o.model.enabled !== void 0 && !o.model.enabled
|
|
989
989
|
}]),
|
|
990
990
|
onClick: e
|
|
991
991
|
}, [
|
|
992
|
-
d("span", Ls,
|
|
992
|
+
d("span", Ls, k(o.model.title), 1)
|
|
993
993
|
], 2)), [
|
|
994
994
|
[s(N)]
|
|
995
995
|
]);
|
|
@@ -1004,12 +1004,12 @@ const vs = {
|
|
|
1004
1004
|
},
|
|
1005
1005
|
setup(c) {
|
|
1006
1006
|
const t = c;
|
|
1007
|
-
return T(() => t.model), (e, o) => (a(),
|
|
1007
|
+
return T(() => t.model), (e, o) => (a(), i("div", Fs, [
|
|
1008
1008
|
d("div", {
|
|
1009
|
-
class:
|
|
1009
|
+
class: m(["svc-plugin-tab__content svc-logic-tab__content", { "svc-logic-tab--empty": !e.model.hasItems }])
|
|
1010
1010
|
}, [
|
|
1011
|
-
e.model.hasItems ? (a(),
|
|
1012
|
-
v(s(
|
|
1011
|
+
e.model.hasItems ? (a(), i(w, { key: 0 }, [
|
|
1012
|
+
v(s(O), {
|
|
1013
1013
|
model: e.model.itemsSurvey
|
|
1014
1014
|
}, null, 8, ["model"]),
|
|
1015
1015
|
e.model.readOnly ? p("", !0) : (a(), h(te, {
|
|
@@ -1017,7 +1017,7 @@ const vs = {
|
|
|
1017
1017
|
model: e.model.addNewButton
|
|
1018
1018
|
}, null, 8, ["model"]))
|
|
1019
1019
|
], 64)) : p("", !0),
|
|
1020
|
-
e.model.hasItems ? p("", !0) : (a(),
|
|
1020
|
+
e.model.hasItems ? p("", !0) : (a(), i("div", Ks, [
|
|
1021
1021
|
v(W, {
|
|
1022
1022
|
name: "logic",
|
|
1023
1023
|
placeholderTitleText: e.model.placeholderTitleText,
|
|
@@ -1031,94 +1031,77 @@ const vs = {
|
|
|
1031
1031
|
], 2)
|
|
1032
1032
|
]));
|
|
1033
1033
|
}
|
|
1034
|
-
}),
|
|
1034
|
+
}), Qs = ["id", "required", "tabindex", "disabled", "role", "aria-required", "aria-invalid", "aria-errormessage", "aria-expanded", "aria-label", "aria-labelledby", "aria-controls"], Hs = ["id"];
|
|
1035
1035
|
ce.Instance.registerRenderer(
|
|
1036
1036
|
"dropdown",
|
|
1037
1037
|
"logicoperator",
|
|
1038
1038
|
"sv-logic-operator"
|
|
1039
1039
|
);
|
|
1040
|
-
const
|
|
1040
|
+
const Os = /* @__PURE__ */ g({
|
|
1041
1041
|
__name: "LogicOperator",
|
|
1042
1042
|
props: {
|
|
1043
1043
|
question: {}
|
|
1044
1044
|
},
|
|
1045
1045
|
setup(c) {
|
|
1046
|
-
const t = c, e = I(), o =
|
|
1047
|
-
|
|
1048
|
-
fe(
|
|
1046
|
+
const t = c, e = I(), o = $(() => t.question.dropdownListModel ?? new qe(t.question));
|
|
1047
|
+
H(t, e, (l) => {
|
|
1048
|
+
fe(l);
|
|
1049
1049
|
});
|
|
1050
|
-
const n = (
|
|
1051
|
-
var
|
|
1052
|
-
(
|
|
1053
|
-
},
|
|
1054
|
-
var
|
|
1055
|
-
(
|
|
1056
|
-
}, r = (m) => {
|
|
1057
|
-
var b;
|
|
1058
|
-
(b = o.value) == null || b.keyHandler(m);
|
|
1050
|
+
const n = (l) => {
|
|
1051
|
+
var _;
|
|
1052
|
+
(_ = o.value) == null || _.onClick(l);
|
|
1053
|
+
}, r = (l) => {
|
|
1054
|
+
var _;
|
|
1055
|
+
(_ = o.value) == null || _.keyHandler(l);
|
|
1059
1056
|
};
|
|
1060
|
-
return (
|
|
1061
|
-
class:
|
|
1057
|
+
return (l, _) => (a(), i("div", {
|
|
1058
|
+
class: m(l.question.cssClasses.selectWrapper)
|
|
1062
1059
|
}, [
|
|
1063
|
-
|
|
1060
|
+
l.question.isReadOnly ? p("", !0) : (a(), i(w, { key: 0 }, [
|
|
1064
1061
|
d("div", {
|
|
1065
|
-
class:
|
|
1062
|
+
class: m(l.question.getControlClass()),
|
|
1066
1063
|
onClick: n,
|
|
1067
1064
|
onKeyup: r,
|
|
1068
|
-
id:
|
|
1069
|
-
required:
|
|
1070
|
-
tabindex:
|
|
1071
|
-
disabled:
|
|
1072
|
-
role:
|
|
1073
|
-
"aria-required":
|
|
1074
|
-
"aria-
|
|
1075
|
-
"aria-
|
|
1076
|
-
"aria-
|
|
1077
|
-
"aria-
|
|
1078
|
-
"aria-
|
|
1065
|
+
id: l.question.inputId,
|
|
1066
|
+
required: l.question.isRequired,
|
|
1067
|
+
tabindex: l.question.isInputReadOnly ? void 0 : 0,
|
|
1068
|
+
disabled: l.question.isInputReadOnly,
|
|
1069
|
+
role: o.value.ariaQuestionRole,
|
|
1070
|
+
"aria-required": o.value.ariaQuestionRequired,
|
|
1071
|
+
"aria-invalid": o.value.ariaQuestionInvalid,
|
|
1072
|
+
"aria-errormessage": o.value.ariaQuestionErrorMessage,
|
|
1073
|
+
"aria-expanded": o.value.ariaQuestionExpanded,
|
|
1074
|
+
"aria-label": o.value.ariaQuestionLabel,
|
|
1075
|
+
"aria-labelledby": o.value.ariaQuestionLabelledby,
|
|
1076
|
+
"aria-controls": o.value.ariaQuestionControls
|
|
1079
1077
|
}, [
|
|
1080
1078
|
d("div", {
|
|
1081
|
-
class:
|
|
1079
|
+
class: m(l.question.cssClasses.controlValue)
|
|
1082
1080
|
}, [
|
|
1083
|
-
|
|
1081
|
+
l.question.locReadOnlyText ? (a(), h(s(u), {
|
|
1084
1082
|
key: 0,
|
|
1085
1083
|
is: "survey-string",
|
|
1086
|
-
locString:
|
|
1084
|
+
locString: l.question.locReadOnlyText
|
|
1087
1085
|
}, null, 8, ["locString"])) : p("", !0)
|
|
1088
|
-
], 2)
|
|
1089
|
-
|
|
1090
|
-
key: 0,
|
|
1091
|
-
class: _(m.question.cssClasses.cleanButton),
|
|
1092
|
-
onClick: i
|
|
1093
|
-
}, [
|
|
1094
|
-
v(s(u), {
|
|
1095
|
-
is: "sv-svg-icon",
|
|
1096
|
-
class: _(m.question.cssClasses.cleanButtonSvg),
|
|
1097
|
-
iconName: m.question.cssClasses.cleanButtonIconId,
|
|
1098
|
-
size: "auto",
|
|
1099
|
-
title: m.question.clearCaption
|
|
1100
|
-
}, null, 8, ["class", "iconName", "title"])
|
|
1101
|
-
], 2)), [
|
|
1102
|
-
[U, !m.question.isEmpty()]
|
|
1103
|
-
]) : p("", !0)
|
|
1104
|
-
], 42, Hs),
|
|
1086
|
+
], 2)
|
|
1087
|
+
], 42, Qs),
|
|
1105
1088
|
v(s(u), {
|
|
1106
1089
|
is: "sv-popup",
|
|
1107
|
-
model:
|
|
1090
|
+
model: l.question.popupModel
|
|
1108
1091
|
}, null, 8, ["model"])
|
|
1109
1092
|
], 64)),
|
|
1110
|
-
|
|
1093
|
+
l.question.isReadOnly ? (a(), i("div", {
|
|
1111
1094
|
key: 1,
|
|
1112
1095
|
disabled: "",
|
|
1113
|
-
class:
|
|
1114
|
-
id:
|
|
1096
|
+
class: m(l.question.getControlClass()),
|
|
1097
|
+
id: l.question.inputId
|
|
1115
1098
|
}, [
|
|
1116
|
-
|
|
1099
|
+
l.question.locReadOnlyText ? (a(), h(s(u), {
|
|
1117
1100
|
key: 0,
|
|
1118
1101
|
is: "survey-string",
|
|
1119
|
-
locString:
|
|
1102
|
+
locString: l.question.locReadOnlyText
|
|
1120
1103
|
}, null, 8, ["locString"])) : p("", !0)
|
|
1121
|
-
], 10,
|
|
1104
|
+
], 10, Hs)) : p("", !0)
|
|
1122
1105
|
], 2));
|
|
1123
1106
|
}
|
|
1124
1107
|
}), Gs = /* @__PURE__ */ g({
|
|
@@ -1128,9 +1111,9 @@ const Qs = /* @__PURE__ */ g({
|
|
|
1128
1111
|
},
|
|
1129
1112
|
setup(c) {
|
|
1130
1113
|
const t = c, e = I();
|
|
1131
|
-
|
|
1132
|
-
const o =
|
|
1133
|
-
return (n,
|
|
1114
|
+
H(t, e);
|
|
1115
|
+
const o = $(() => t.question.embeddedSurvey);
|
|
1116
|
+
return (n, r) => n.question && o.value && o.value.currentPage ? (a(), h(s(u), {
|
|
1134
1117
|
key: 0,
|
|
1135
1118
|
is: "survey-page",
|
|
1136
1119
|
page: o.value.currentPage,
|
|
@@ -1145,7 +1128,7 @@ const Qs = /* @__PURE__ */ g({
|
|
|
1145
1128
|
},
|
|
1146
1129
|
setup(c) {
|
|
1147
1130
|
const t = c, e = I(), o = ue.getString("pe.clear");
|
|
1148
|
-
return
|
|
1131
|
+
return H(t, e), (n, r) => (a(), i(w, null, [
|
|
1149
1132
|
v(s(u), {
|
|
1150
1133
|
is: "svc-action-button",
|
|
1151
1134
|
text: n.question.linkValueText,
|
|
@@ -1176,8 +1159,8 @@ const Qs = /* @__PURE__ */ g({
|
|
|
1176
1159
|
},
|
|
1177
1160
|
setup(c) {
|
|
1178
1161
|
const t = c;
|
|
1179
|
-
return T(() => t.model), (e, o) => (a(),
|
|
1180
|
-
class:
|
|
1162
|
+
return T(() => t.model), (e, o) => (a(), i("div", {
|
|
1163
|
+
class: m(["svc-creator-tab__content svc-translation-tab", e.model.isEmpty ? "svc-translation-tab--empty" : ""])
|
|
1181
1164
|
}, [
|
|
1182
1165
|
e.model.isEmpty ? (a(), h(W, {
|
|
1183
1166
|
key: 0,
|
|
@@ -1185,15 +1168,15 @@ const Qs = /* @__PURE__ */ g({
|
|
|
1185
1168
|
placeholderTitleText: e.model.placeholderTitleText,
|
|
1186
1169
|
placeholderDescriptionText: e.model.placeholderDescriptionText
|
|
1187
1170
|
}, null, 8, ["placeholderTitleText", "placeholderDescriptionText"])) : p("", !0),
|
|
1188
|
-
e.model.isEmpty ? p("", !0) : (a(),
|
|
1171
|
+
e.model.isEmpty ? p("", !0) : (a(), i("div", js, [
|
|
1189
1172
|
d("div", Js, [
|
|
1190
1173
|
d("div", Zs, [
|
|
1191
|
-
v(s(
|
|
1174
|
+
v(s(O), {
|
|
1192
1175
|
model: e.model.stringsHeaderSurvey
|
|
1193
1176
|
}, null, 8, ["model"])
|
|
1194
1177
|
]),
|
|
1195
1178
|
d("div", Xs, [
|
|
1196
|
-
v(s(
|
|
1179
|
+
v(s(O), {
|
|
1197
1180
|
model: e.model.stringsSurvey
|
|
1198
1181
|
}, null, 8, ["model"])
|
|
1199
1182
|
])
|
|
@@ -1208,7 +1191,7 @@ const Qs = /* @__PURE__ */ g({
|
|
|
1208
1191
|
return e;
|
|
1209
1192
|
}, et = {}, ot = { class: "sd-translation-line-skeleton" };
|
|
1210
1193
|
function st(c, t) {
|
|
1211
|
-
return a(),
|
|
1194
|
+
return a(), i("div", ot);
|
|
1212
1195
|
}
|
|
1213
1196
|
const tt = /* @__PURE__ */ xs(et, [["render", st]]), nt = /* @__PURE__ */ g({
|
|
1214
1197
|
__name: "TranslateFromAction",
|
|
@@ -1216,12 +1199,12 @@ const tt = /* @__PURE__ */ xs(et, [["render", st]]), nt = /* @__PURE__ */ g({
|
|
|
1216
1199
|
item: {}
|
|
1217
1200
|
},
|
|
1218
1201
|
setup(c) {
|
|
1219
|
-
return (t, e) => (a(),
|
|
1220
|
-
class:
|
|
1202
|
+
return (t, e) => (a(), i("div", {
|
|
1203
|
+
class: m(t.item.data.containerCss)
|
|
1221
1204
|
}, [
|
|
1222
1205
|
d("span", {
|
|
1223
|
-
class:
|
|
1224
|
-
},
|
|
1206
|
+
class: m(t.item.data.additionalTitleCss)
|
|
1207
|
+
}, k(t.item.data.additionalTitle), 3),
|
|
1225
1208
|
v(s(u), {
|
|
1226
1209
|
is: "sv-action-bar-item-dropdown",
|
|
1227
1210
|
item: t.item
|
|
@@ -1241,8 +1224,8 @@ const tt = /* @__PURE__ */ xs(et, [["render", st]]), nt = /* @__PURE__ */ g({
|
|
|
1241
1224
|
},
|
|
1242
1225
|
setup(c) {
|
|
1243
1226
|
const t = c;
|
|
1244
|
-
return T(() => t.model), (e, o) => (a(),
|
|
1245
|
-
class:
|
|
1227
|
+
return T(() => t.model), (e, o) => (a(), i("div", {
|
|
1228
|
+
class: m(["svc-creator-tab__content svc-test-tab__content", {
|
|
1246
1229
|
"svc-creator-tab__content--with-toolbar": e.model.isPageToolbarVisible
|
|
1247
1230
|
}])
|
|
1248
1231
|
}, [
|
|
@@ -1252,7 +1235,7 @@ const tt = /* @__PURE__ */ xs(et, [["render", st]]), nt = /* @__PURE__ */ g({
|
|
|
1252
1235
|
placeholderTitleText: e.model.placeholderTitleText,
|
|
1253
1236
|
placeholderDescriptionText: e.model.placeholderDescriptionText
|
|
1254
1237
|
}, null, 8, ["placeholderTitleText", "placeholderDescriptionText"])) : p("", !0),
|
|
1255
|
-
e.model.survey.isEmpty ? p("", !0) : (a(),
|
|
1238
|
+
e.model.survey.isEmpty ? p("", !0) : (a(), i("div", at, [
|
|
1256
1239
|
v(s(u), {
|
|
1257
1240
|
is: "survey-simulator",
|
|
1258
1241
|
model: e.model.simulator
|
|
@@ -1263,7 +1246,7 @@ const tt = /* @__PURE__ */ xs(et, [["render", st]]), nt = /* @__PURE__ */ g({
|
|
|
1263
1246
|
survey: e.model.survey
|
|
1264
1247
|
}, null, 8, ["survey"])) : p("", !0)
|
|
1265
1248
|
])),
|
|
1266
|
-
e.model.isPageToolbarVisible ? (a(),
|
|
1249
|
+
e.model.isPageToolbarVisible ? (a(), i("div", lt, [
|
|
1267
1250
|
v(s(u), {
|
|
1268
1251
|
is: "sv-action-bar",
|
|
1269
1252
|
model: e.model.pages
|
|
@@ -1277,13 +1260,13 @@ const tt = /* @__PURE__ */ xs(et, [["render", st]]), nt = /* @__PURE__ */ g({
|
|
|
1277
1260
|
question: {}
|
|
1278
1261
|
},
|
|
1279
1262
|
setup(c) {
|
|
1280
|
-
return
|
|
1281
|
-
class:
|
|
1263
|
+
return H(c, I()), (e, o) => (a(), i("div", {
|
|
1264
|
+
class: m(e.question.cssClasses.root),
|
|
1282
1265
|
onKeydown: o[5] || (o[5] = //@ts-ignore
|
|
1283
1266
|
(...n) => e.question.onKeyDown && e.question.onKeyDown(...n))
|
|
1284
1267
|
}, [
|
|
1285
1268
|
d("label", {
|
|
1286
|
-
class:
|
|
1269
|
+
class: m(e.question.getSwatchCss()),
|
|
1287
1270
|
style: F(e.question.getSwatchStyle())
|
|
1288
1271
|
}, [
|
|
1289
1272
|
v(s(u), {
|
|
@@ -1294,7 +1277,7 @@ const tt = /* @__PURE__ */ xs(et, [["render", st]]), nt = /* @__PURE__ */ g({
|
|
|
1294
1277
|
d("input", {
|
|
1295
1278
|
type: "color",
|
|
1296
1279
|
disabled: e.question.isInputReadOnly,
|
|
1297
|
-
class:
|
|
1280
|
+
class: m(e.question.cssClasses.colorInput),
|
|
1298
1281
|
value: e.question.renderedColorValue,
|
|
1299
1282
|
tabindex: "-1",
|
|
1300
1283
|
onChange: o[0] || (o[0] = //@ts-ignore
|
|
@@ -1325,12 +1308,12 @@ const tt = /* @__PURE__ */ xs(et, [["render", st]]), nt = /* @__PURE__ */ g({
|
|
|
1325
1308
|
onBeforeinput: o[4] || (o[4] = //@ts-ignore
|
|
1326
1309
|
(...n) => e.question.onBeforeInput && e.question.onBeforeInput(...n)),
|
|
1327
1310
|
value: e.question.renderedValue,
|
|
1328
|
-
class:
|
|
1311
|
+
class: m(e.question.cssClasses.control)
|
|
1329
1312
|
}, null, 42, dt),
|
|
1330
|
-
e.question.showDropdownAction ? (a(),
|
|
1313
|
+
e.question.showDropdownAction ? (a(), i(w, { key: 0 }, [
|
|
1331
1314
|
d("div", {
|
|
1332
1315
|
"aria-hidden": "true",
|
|
1333
|
-
class:
|
|
1316
|
+
class: m(e.question.cssClasses.choicesButtonWrapper)
|
|
1334
1317
|
}, [
|
|
1335
1318
|
v(s(u), {
|
|
1336
1319
|
is: "sv-action-bar-item",
|
|
@@ -1354,7 +1337,7 @@ const tt = /* @__PURE__ */ xs(et, [["render", st]]), nt = /* @__PURE__ */ g({
|
|
|
1354
1337
|
const t = c;
|
|
1355
1338
|
T(() => t.item);
|
|
1356
1339
|
const e = () => ({ backgroundColor: t.item.value });
|
|
1357
|
-
return (o, n) => (a(),
|
|
1340
|
+
return (o, n) => (a(), i(w, null, [
|
|
1358
1341
|
d("span", {
|
|
1359
1342
|
class: "spg-color-editor__color-swatch",
|
|
1360
1343
|
style: F(e())
|
|
@@ -1372,36 +1355,36 @@ const tt = /* @__PURE__ */ xs(et, [["render", st]]), nt = /* @__PURE__ */ g({
|
|
|
1372
1355
|
},
|
|
1373
1356
|
setup(c) {
|
|
1374
1357
|
const t = I();
|
|
1375
|
-
return
|
|
1376
|
-
class:
|
|
1358
|
+
return H(c, t), (o, n) => (a(), i("div", {
|
|
1359
|
+
class: m(o.question.cssClasses.root),
|
|
1377
1360
|
onDragenter: n[5] || (n[5] = //@ts-ignore
|
|
1378
|
-
(...
|
|
1361
|
+
(...r) => o.question.onDragEnter && o.question.onDragEnter(...r)),
|
|
1379
1362
|
onDragover: n[6] || (n[6] = //@ts-ignore
|
|
1380
|
-
(...
|
|
1363
|
+
(...r) => o.question.onDragOver && o.question.onDragOver(...r)),
|
|
1381
1364
|
onDrop: n[7] || (n[7] = //@ts-ignore
|
|
1382
|
-
(...
|
|
1365
|
+
(...r) => o.question.onDrop && o.question.onDrop(...r)),
|
|
1383
1366
|
onDragleave: n[8] || (n[8] = //@ts-ignore
|
|
1384
|
-
(...
|
|
1367
|
+
(...r) => o.question.onDragLeave && o.question.onDragLeave(...r)),
|
|
1385
1368
|
onKeydown: n[9] || (n[9] = //@ts-ignore
|
|
1386
|
-
(...
|
|
1369
|
+
(...r) => o.question.onKeyDown && o.question.onKeyDown(...r)),
|
|
1387
1370
|
ref_key: "root",
|
|
1388
1371
|
ref: t
|
|
1389
1372
|
}, [
|
|
1390
1373
|
d("input", {
|
|
1391
1374
|
type: "text",
|
|
1392
1375
|
disabled: o.question.isTextInputReadOnly,
|
|
1393
|
-
class:
|
|
1376
|
+
class: m(o.question.cssClasses.control),
|
|
1394
1377
|
value: o.question.renderedValue || "",
|
|
1395
1378
|
onChange: n[0] || (n[0] = //@ts-ignore
|
|
1396
|
-
(...
|
|
1379
|
+
(...r) => o.question.onInputChange && o.question.onInputChange(...r)),
|
|
1397
1380
|
onBlur: n[1] || (n[1] = //@ts-ignore
|
|
1398
|
-
(...
|
|
1381
|
+
(...r) => o.question.onInputBlur && o.question.onInputBlur(...r)),
|
|
1399
1382
|
placeholder: o.question.renderedPlaceholder
|
|
1400
1383
|
}, null, 42, pt),
|
|
1401
1384
|
d("input", {
|
|
1402
1385
|
type: "file",
|
|
1403
1386
|
disabled: o.question.isInputReadOnly,
|
|
1404
|
-
class:
|
|
1387
|
+
class: m(o.question.cssClasses.fileInput),
|
|
1405
1388
|
id: o.question.inputId,
|
|
1406
1389
|
"aria-required": o.question.ariaRequired,
|
|
1407
1390
|
"aria-label": o.question.ariaLabel,
|
|
@@ -1412,17 +1395,17 @@ const tt = /* @__PURE__ */ xs(et, [["render", st]]), nt = /* @__PURE__ */ g({
|
|
|
1412
1395
|
tabindex: -1,
|
|
1413
1396
|
accept: o.question.acceptedTypes,
|
|
1414
1397
|
onChange: n[2] || (n[2] = //@ts-ignore
|
|
1415
|
-
(...
|
|
1398
|
+
(...r) => o.question.onFileInputChange && o.question.onFileInputChange(...r))
|
|
1416
1399
|
}, null, 42, vt),
|
|
1417
1400
|
d("div", {
|
|
1418
|
-
class:
|
|
1401
|
+
class: m(o.question.cssClasses.buttonsContainer)
|
|
1419
1402
|
}, [
|
|
1420
|
-
|
|
1403
|
+
q((a(), i("button", {
|
|
1421
1404
|
title: o.question.clearButtonCaption,
|
|
1422
|
-
class:
|
|
1405
|
+
class: m(o.question.cssClasses.clearButton),
|
|
1423
1406
|
disabled: o.question.getIsClearButtonDisabled(),
|
|
1424
1407
|
onClick: n[3] || (n[3] = //@ts-ignore
|
|
1425
|
-
(...
|
|
1408
|
+
(...r) => o.question.doClean && o.question.doClean(...r))
|
|
1426
1409
|
}, [
|
|
1427
1410
|
v(s(u), {
|
|
1428
1411
|
is: "sv-svg-icon",
|
|
@@ -1432,12 +1415,12 @@ const tt = /* @__PURE__ */ xs(et, [["render", st]]), nt = /* @__PURE__ */ g({
|
|
|
1432
1415
|
], 10, mt)), [
|
|
1433
1416
|
[s(N)]
|
|
1434
1417
|
]),
|
|
1435
|
-
|
|
1436
|
-
class:
|
|
1418
|
+
q((a(), i("label", {
|
|
1419
|
+
class: m(o.question.getChooseButtonCss()),
|
|
1437
1420
|
for: o.question.inputId,
|
|
1438
1421
|
"aria-label": o.question.chooseButtonCaption,
|
|
1439
1422
|
onClick: n[4] || (n[4] = //@ts-ignore
|
|
1440
|
-
(...
|
|
1423
|
+
(...r) => o.question.chooseFiles && o.question.chooseFiles(...r))
|
|
1441
1424
|
}, [
|
|
1442
1425
|
v(s(u), {
|
|
1443
1426
|
is: "sv-svg-icon",
|
|
@@ -1451,14 +1434,14 @@ const tt = /* @__PURE__ */ xs(et, [["render", st]]), nt = /* @__PURE__ */ g({
|
|
|
1451
1434
|
], 2)
|
|
1452
1435
|
], 34));
|
|
1453
1436
|
}
|
|
1454
|
-
}), bt = ["disabled", "id", "placeholder", "aria-required", "aria-label", "aria-labelledby", "aria-describedby", "aria-invalid", "aria-errormessage", "value"], yt = ["disabled"], ht = ["disabled"],
|
|
1437
|
+
}), bt = ["disabled", "id", "placeholder", "aria-required", "aria-label", "aria-labelledby", "aria-describedby", "aria-invalid", "aria-errormessage", "value"], yt = ["disabled"], ht = ["disabled"], Ct = /* @__PURE__ */ g({
|
|
1455
1438
|
__name: "SpinEditor",
|
|
1456
1439
|
props: {
|
|
1457
1440
|
question: {}
|
|
1458
1441
|
},
|
|
1459
1442
|
setup(c) {
|
|
1460
|
-
return
|
|
1461
|
-
class:
|
|
1443
|
+
return H(c, I()), (e, o) => (a(), i("div", {
|
|
1444
|
+
class: m(e.question.cssClasses.root),
|
|
1462
1445
|
onKeydown: o[18] || (o[18] = //@ts-ignore
|
|
1463
1446
|
(...n) => e.question.onKeyDown && e.question.onKeyDown(...n))
|
|
1464
1447
|
}, [
|
|
@@ -1487,15 +1470,15 @@ const tt = /* @__PURE__ */ xs(et, [["render", st]]), nt = /* @__PURE__ */ g({
|
|
|
1487
1470
|
onBeforeinput: o[5] || (o[5] = //@ts-ignore
|
|
1488
1471
|
(...n) => e.question.onBeforeInput && e.question.onBeforeInput(...n)),
|
|
1489
1472
|
value: e.question.renderedValue,
|
|
1490
|
-
class:
|
|
1473
|
+
class: m(e.question.cssClasses.control)
|
|
1491
1474
|
}, null, 42, bt),
|
|
1492
1475
|
d("span", {
|
|
1493
|
-
class:
|
|
1476
|
+
class: m(e.question.cssClasses.buttonsContainer)
|
|
1494
1477
|
}, [
|
|
1495
1478
|
d("button", {
|
|
1496
1479
|
"aria-hidden": "true",
|
|
1497
1480
|
disabled: e.question.isInputReadOnly,
|
|
1498
|
-
class:
|
|
1481
|
+
class: m(e.question.cssClasses.arrowButton),
|
|
1499
1482
|
onClick: o[6] || (o[6] = //@ts-ignore
|
|
1500
1483
|
(...n) => e.question.onDownButtonClick && e.question.onDownButtonClick(...n)),
|
|
1501
1484
|
onMousedown: o[7] || (o[7] = //@ts-ignore
|
|
@@ -1519,7 +1502,7 @@ const tt = /* @__PURE__ */ xs(et, [["render", st]]), nt = /* @__PURE__ */ g({
|
|
|
1519
1502
|
d("button", {
|
|
1520
1503
|
"aria-hidden": "true",
|
|
1521
1504
|
disabled: e.question.isInputReadOnly,
|
|
1522
|
-
class:
|
|
1505
|
+
class: m(e.question.cssClasses.arrowButton),
|
|
1523
1506
|
onClick: o[12] || (o[12] = //@ts-ignore
|
|
1524
1507
|
(...n) => e.question.onUpButtonClick && e.question.onUpButtonClick(...n)),
|
|
1525
1508
|
onMousedown: o[13] || (o[13] = //@ts-ignore
|
|
@@ -1543,25 +1526,25 @@ const tt = /* @__PURE__ */ xs(et, [["render", st]]), nt = /* @__PURE__ */ g({
|
|
|
1543
1526
|
], 2)
|
|
1544
1527
|
], 34));
|
|
1545
1528
|
}
|
|
1546
|
-
}),
|
|
1529
|
+
}), qt = ["disabled", "title"], ne = /* @__PURE__ */ g({
|
|
1547
1530
|
__name: "TextWithReset",
|
|
1548
1531
|
props: {
|
|
1549
1532
|
question: {}
|
|
1550
1533
|
},
|
|
1551
1534
|
setup(c) {
|
|
1552
1535
|
const t = c, e = () => "survey-" + t.question.wrappedQuestionTemplate;
|
|
1553
|
-
return
|
|
1554
|
-
class:
|
|
1536
|
+
return H(t, I()), (o, n) => (a(), i("div", {
|
|
1537
|
+
class: m(o.question.getRootClass())
|
|
1555
1538
|
}, [
|
|
1556
1539
|
v(s(u), {
|
|
1557
1540
|
is: e(),
|
|
1558
1541
|
question: o.question
|
|
1559
1542
|
}, null, 8, ["is", "question"]),
|
|
1560
1543
|
d("button", {
|
|
1561
|
-
class:
|
|
1544
|
+
class: m(o.question.cssClasses.resetButton),
|
|
1562
1545
|
disabled: o.question.resetValueAdorner.isDisabled,
|
|
1563
1546
|
onClick: n[0] || (n[0] = //@ts-ignore
|
|
1564
|
-
(...
|
|
1547
|
+
(...r) => o.question.resetValueAdorner.resetValue && o.question.resetValueAdorner.resetValue(...r)),
|
|
1565
1548
|
title: o.question.resetValueAdorner.caption
|
|
1566
1549
|
}, [
|
|
1567
1550
|
v(s(u), {
|
|
@@ -1569,15 +1552,15 @@ const tt = /* @__PURE__ */ xs(et, [["render", st]]), nt = /* @__PURE__ */ g({
|
|
|
1569
1552
|
iconName: o.question.cssClasses.resetButtonIcon,
|
|
1570
1553
|
size: "auto"
|
|
1571
1554
|
}, null, 8, ["iconName"])
|
|
1572
|
-
], 10,
|
|
1555
|
+
], 10, qt)
|
|
1573
1556
|
], 2));
|
|
1574
1557
|
}
|
|
1575
|
-
}),
|
|
1558
|
+
}), $t = ["aria-checked", "aria-required", "aria-label", "aria-labelledby", "aria-invalid", "aria-errormessage"], kt = /* @__PURE__ */ d("div", { class: "spg-boolean-switch__thumb" }, [
|
|
1576
1559
|
/* @__PURE__ */ d("div", { class: "spg-boolean-switch__thumb-circle spg-boolean-switch__thumb--left" })
|
|
1577
1560
|
], -1), ft = /* @__PURE__ */ d("div", { class: "spg-boolean-switch__thumb" }, [
|
|
1578
1561
|
/* @__PURE__ */ d("div", { class: "spg-boolean-switch__thumb-circle spg-boolean-switch__thumb--right" })
|
|
1579
1562
|
], -1), wt = [
|
|
1580
|
-
|
|
1563
|
+
kt,
|
|
1581
1564
|
ft
|
|
1582
1565
|
], Tt = { class: "spg-boolean-switch__caption" }, Dt = ["id"];
|
|
1583
1566
|
ce.Instance.registerRenderer(
|
|
@@ -1593,17 +1576,17 @@ const Nt = /* @__PURE__ */ g({
|
|
|
1593
1576
|
},
|
|
1594
1577
|
setup(c) {
|
|
1595
1578
|
const t = c, e = I(null);
|
|
1596
|
-
|
|
1597
|
-
const o =
|
|
1579
|
+
H(t, e);
|
|
1580
|
+
const o = $({
|
|
1598
1581
|
get() {
|
|
1599
1582
|
return t.question.value;
|
|
1600
1583
|
},
|
|
1601
1584
|
set(n) {
|
|
1602
|
-
const
|
|
1603
|
-
|
|
1585
|
+
const r = t.question;
|
|
1586
|
+
r.value = n;
|
|
1604
1587
|
}
|
|
1605
1588
|
});
|
|
1606
|
-
return (n,
|
|
1589
|
+
return (n, r) => (a(), i("div", {
|
|
1607
1590
|
class: "spg-boolean-switch",
|
|
1608
1591
|
role: "checkbox",
|
|
1609
1592
|
"aria-checked": n.question.booleanValue || !1,
|
|
@@ -1612,10 +1595,10 @@ const Nt = /* @__PURE__ */ g({
|
|
|
1612
1595
|
"aria-labelledby": n.question.a11y_input_ariaLabelledBy,
|
|
1613
1596
|
"aria-invalid": n.question.a11y_input_ariaInvalid,
|
|
1614
1597
|
"aria-errormessage": n.question.a11y_input_ariaErrormessage,
|
|
1615
|
-
onClick:
|
|
1598
|
+
onClick: r[0] || (r[0] = (l) => o.value = !o.value)
|
|
1616
1599
|
}, [
|
|
1617
|
-
|
|
1618
|
-
class:
|
|
1600
|
+
q((a(), i("div", {
|
|
1601
|
+
class: m(["spg-boolean-switch__button", n.question.value ? "spg-boolean-switch__button--checked" : ""]),
|
|
1619
1602
|
tabindex: "0"
|
|
1620
1603
|
}, wt, 2)), [
|
|
1621
1604
|
[s(N), { disableTabStop: !0 }]
|
|
@@ -1631,7 +1614,7 @@ const Nt = /* @__PURE__ */ g({
|
|
|
1631
1614
|
}, null, 8, ["locString"])
|
|
1632
1615
|
], 8, Dt)
|
|
1633
1616
|
])
|
|
1634
|
-
], 8,
|
|
1617
|
+
], 8, $t));
|
|
1635
1618
|
}
|
|
1636
1619
|
}), Mt = { class: "svc-string-editor__content" }, St = /* @__PURE__ */ d("div", { class: "svc-string-editor__border svc-string-editor__border--hover" }, null, -1), Bt = /* @__PURE__ */ d("div", { class: "svc-string-editor__border svc-string-editor__border--focus" }, null, -1), It = { class: "svc-string-editor__input" }, Et = ["textContent", "aria-placeholder", "aria-label", "contenteditable"], Pt = ["aria-placeholder", "aria-label", "contenteditable", "innerHTML"], Rt = {
|
|
1637
1620
|
key: 0,
|
|
@@ -1642,163 +1625,163 @@ const Nt = /* @__PURE__ */ g({
|
|
|
1642
1625
|
locString: {}
|
|
1643
1626
|
},
|
|
1644
1627
|
setup(c) {
|
|
1645
|
-
const t = c, e =
|
|
1628
|
+
const t = c, e = $(() => t.locString.locStr), o = $(() => t.locString.creator), n = I(), r = I(), l = z(
|
|
1646
1629
|
() => {
|
|
1647
|
-
const
|
|
1630
|
+
const C = new we(
|
|
1648
1631
|
e.value,
|
|
1649
1632
|
o.value
|
|
1650
1633
|
);
|
|
1651
|
-
return
|
|
1634
|
+
return C.setLocString(e.value), C.blurEditor = () => {
|
|
1652
1635
|
n.value && (n.value.blur(), n.value.spellcheck = !1);
|
|
1653
|
-
},
|
|
1636
|
+
}, C.getEditorElement = () => n.value, setTimeout(() => C.afterRender()), C;
|
|
1654
1637
|
},
|
|
1655
1638
|
[() => o.value, () => e.value],
|
|
1656
|
-
(
|
|
1657
|
-
|
|
1639
|
+
(C) => {
|
|
1640
|
+
C && (C.blurEditor = void 0, C.getEditorElement = void 0, C.dispose());
|
|
1658
1641
|
}
|
|
1659
|
-
),
|
|
1660
|
-
var
|
|
1661
|
-
return (
|
|
1662
|
-
}),
|
|
1663
|
-
var
|
|
1664
|
-
return (
|
|
1665
|
-
}),
|
|
1666
|
-
var
|
|
1667
|
-
return (
|
|
1668
|
-
}), f =
|
|
1669
|
-
var
|
|
1670
|
-
return (
|
|
1671
|
-
}), E =
|
|
1672
|
-
var
|
|
1673
|
-
return (
|
|
1674
|
-
}), R =
|
|
1642
|
+
), _ = $(() => {
|
|
1643
|
+
var C;
|
|
1644
|
+
return (C = l.value) == null ? void 0 : C.errorText;
|
|
1645
|
+
}), y = $(() => {
|
|
1646
|
+
var C;
|
|
1647
|
+
return (C = l.value) == null ? void 0 : C.className(e.value.renderedHtml);
|
|
1648
|
+
}), b = $(() => {
|
|
1649
|
+
var C;
|
|
1650
|
+
return (C = l.value) == null ? void 0 : C.placeholder;
|
|
1651
|
+
}), f = $(() => {
|
|
1652
|
+
var C;
|
|
1653
|
+
return (C = l.value) == null ? void 0 : C.contentEditable;
|
|
1654
|
+
}), E = $(() => {
|
|
1655
|
+
var C;
|
|
1656
|
+
return (C = l.value) == null ? void 0 : C.characterCounter;
|
|
1657
|
+
}), R = $(
|
|
1675
1658
|
() => {
|
|
1676
|
-
var
|
|
1677
|
-
return (
|
|
1659
|
+
var C;
|
|
1660
|
+
return (C = l.value) == null ? void 0 : C.showCharacterCounter;
|
|
1678
1661
|
}
|
|
1679
|
-
), L =
|
|
1662
|
+
), L = $(
|
|
1680
1663
|
() => {
|
|
1681
|
-
var
|
|
1682
|
-
return (
|
|
1664
|
+
var C;
|
|
1665
|
+
return (C = l.value) == null ? void 0 : C.getCharacterCounterClass;
|
|
1683
1666
|
}
|
|
1684
|
-
), j = (
|
|
1667
|
+
), j = (C) => {
|
|
1685
1668
|
var D, B;
|
|
1686
|
-
return n.value && (n.value.spellcheck = !1), e.value.__isEditing = !1, (D =
|
|
1687
|
-
},
|
|
1669
|
+
return n.value && (n.value.spellcheck = !1), e.value.__isEditing = !1, (D = l.value) == null || D.onBlur(C), (B = l.value) == null ? void 0 : B.errorText;
|
|
1670
|
+
}, U = (C) => {
|
|
1688
1671
|
var D;
|
|
1689
|
-
(D =
|
|
1690
|
-
}, ve = (
|
|
1672
|
+
(D = l.value) == null || D.onFocus(C);
|
|
1673
|
+
}, ve = (C) => {
|
|
1691
1674
|
var D;
|
|
1692
|
-
(D =
|
|
1693
|
-
}, se = (
|
|
1675
|
+
(D = l.value) == null || D.onPaste(C);
|
|
1676
|
+
}, se = (C) => {
|
|
1694
1677
|
var D, B;
|
|
1695
|
-
(D = n.value) == null || D.focus(), e.value.__isEditing = !0, (B =
|
|
1678
|
+
(D = n.value) == null || D.focus(), e.value.__isEditing = !0, (B = l.value) == null || B.onClick(C);
|
|
1696
1679
|
}, J = () => {
|
|
1697
|
-
|
|
1680
|
+
r.value = e.value.renderedHtml;
|
|
1698
1681
|
}, me = G(
|
|
1699
1682
|
() => e.value,
|
|
1700
|
-
(
|
|
1701
|
-
D &&
|
|
1683
|
+
(C, D) => {
|
|
1684
|
+
D && C.onStringChanged.remove(J), C && (C.onStringChanged.add(J), J());
|
|
1702
1685
|
},
|
|
1703
1686
|
{
|
|
1704
1687
|
immediate: !0
|
|
1705
1688
|
}
|
|
1706
1689
|
);
|
|
1707
1690
|
return P(() => {
|
|
1708
|
-
var
|
|
1709
|
-
e.value.__isEditing && ((
|
|
1691
|
+
var C;
|
|
1692
|
+
e.value.__isEditing && ((C = n.value) == null || C.focus());
|
|
1710
1693
|
}), K(() => {
|
|
1711
1694
|
me(), e.value.onStringChanged.remove(J);
|
|
1712
|
-
}), (
|
|
1713
|
-
class:
|
|
1695
|
+
}), (C, D) => (a(), i("span", {
|
|
1696
|
+
class: m(y.value)
|
|
1714
1697
|
}, [
|
|
1715
1698
|
d("span", Mt, [
|
|
1716
1699
|
St,
|
|
1717
1700
|
Bt,
|
|
1718
1701
|
d("span", It, [
|
|
1719
|
-
e.value.hasHtml ? p("", !0) : (a(),
|
|
1702
|
+
e.value.hasHtml ? p("", !0) : (a(), i("span", {
|
|
1720
1703
|
key: 0,
|
|
1721
1704
|
role: "textbox",
|
|
1722
1705
|
class: "sv-string-editor",
|
|
1723
1706
|
spellcheck: "false",
|
|
1724
|
-
onFocus:
|
|
1707
|
+
onFocus: U,
|
|
1725
1708
|
onPaste: ve,
|
|
1726
1709
|
onBlur: j,
|
|
1727
1710
|
onInput: D[0] || (D[0] = //@ts-ignore
|
|
1728
1711
|
(...B) => {
|
|
1729
1712
|
var M, S;
|
|
1730
|
-
return ((M = s(
|
|
1713
|
+
return ((M = s(l)) == null ? void 0 : M.onInput) && ((S = s(l)) == null ? void 0 : S.onInput(...B));
|
|
1731
1714
|
}),
|
|
1732
1715
|
onKeydown: D[1] || (D[1] = //@ts-ignore
|
|
1733
1716
|
(...B) => {
|
|
1734
1717
|
var M, S;
|
|
1735
|
-
return ((M = s(
|
|
1718
|
+
return ((M = s(l)) == null ? void 0 : M.onKeyDown) && ((S = s(l)) == null ? void 0 : S.onKeyDown(...B));
|
|
1736
1719
|
}),
|
|
1737
1720
|
onKeyup: D[2] || (D[2] = //@ts-ignore
|
|
1738
1721
|
(...B) => {
|
|
1739
1722
|
var M, S;
|
|
1740
|
-
return ((M = s(
|
|
1723
|
+
return ((M = s(l)) == null ? void 0 : M.onKeyUp) && ((S = s(l)) == null ? void 0 : S.onKeyUp(...B));
|
|
1741
1724
|
}),
|
|
1742
1725
|
onCompositionstart: D[3] || (D[3] = //@ts-ignore
|
|
1743
1726
|
(...B) => {
|
|
1744
1727
|
var M, S;
|
|
1745
|
-
return ((M = s(
|
|
1728
|
+
return ((M = s(l)) == null ? void 0 : M.onCompositionStart) && ((S = s(l)) == null ? void 0 : S.onCompositionStart(...B));
|
|
1746
1729
|
}),
|
|
1747
1730
|
onCompositionend: D[4] || (D[4] = //@ts-ignore
|
|
1748
1731
|
(...B) => {
|
|
1749
1732
|
var M, S;
|
|
1750
|
-
return ((M = s(
|
|
1733
|
+
return ((M = s(l)) == null ? void 0 : M.onCompositionEnd) && ((S = s(l)) == null ? void 0 : S.onCompositionEnd(...B));
|
|
1751
1734
|
}),
|
|
1752
1735
|
onMouseup: D[5] || (D[5] = //@ts-ignore
|
|
1753
1736
|
(...B) => {
|
|
1754
1737
|
var M, S;
|
|
1755
|
-
return ((M = s(
|
|
1738
|
+
return ((M = s(l)) == null ? void 0 : M.onMouseUp) && ((S = s(l)) == null ? void 0 : S.onMouseUp(...B));
|
|
1756
1739
|
}),
|
|
1757
1740
|
onClick: se,
|
|
1758
|
-
textContent:
|
|
1759
|
-
"aria-placeholder":
|
|
1760
|
-
"aria-label":
|
|
1741
|
+
textContent: r.value,
|
|
1742
|
+
"aria-placeholder": b.value,
|
|
1743
|
+
"aria-label": b.value || "content editable",
|
|
1761
1744
|
contenteditable: f.value,
|
|
1762
1745
|
ref_key: "root",
|
|
1763
1746
|
ref: n
|
|
1764
1747
|
}, null, 40, Et)),
|
|
1765
|
-
e.value.hasHtml ? (a(),
|
|
1748
|
+
e.value.hasHtml ? (a(), i("span", {
|
|
1766
1749
|
key: 1,
|
|
1767
1750
|
role: "textbox",
|
|
1768
1751
|
class: "sv-string-editor sv-string-editor--html",
|
|
1769
1752
|
spellcheck: "false",
|
|
1770
|
-
onFocus:
|
|
1753
|
+
onFocus: U,
|
|
1771
1754
|
onBlur: j,
|
|
1772
1755
|
onKeydown: D[6] || (D[6] = //@ts-ignore
|
|
1773
1756
|
(...B) => {
|
|
1774
1757
|
var M, S;
|
|
1775
|
-
return ((M = s(
|
|
1758
|
+
return ((M = s(l)) == null ? void 0 : M.onKeyDown) && ((S = s(l)) == null ? void 0 : S.onKeyDown(...B));
|
|
1776
1759
|
}),
|
|
1777
1760
|
onKeyup: D[7] || (D[7] = //@ts-ignore
|
|
1778
1761
|
(...B) => {
|
|
1779
1762
|
var M, S;
|
|
1780
|
-
return ((M = s(
|
|
1763
|
+
return ((M = s(l)) == null ? void 0 : M.onKeyUp) && ((S = s(l)) == null ? void 0 : S.onKeyUp(...B));
|
|
1781
1764
|
}),
|
|
1782
1765
|
onCompositionstart: D[8] || (D[8] = //@ts-ignore
|
|
1783
1766
|
(...B) => {
|
|
1784
1767
|
var M, S;
|
|
1785
|
-
return ((M = s(
|
|
1768
|
+
return ((M = s(l)) == null ? void 0 : M.onCompositionStart) && ((S = s(l)) == null ? void 0 : S.onCompositionStart(...B));
|
|
1786
1769
|
}),
|
|
1787
1770
|
onCompositionend: D[9] || (D[9] = //@ts-ignore
|
|
1788
1771
|
(...B) => {
|
|
1789
1772
|
var M, S;
|
|
1790
|
-
return ((M = s(
|
|
1773
|
+
return ((M = s(l)) == null ? void 0 : M.onCompositionEnd) && ((S = s(l)) == null ? void 0 : S.onCompositionEnd(...B));
|
|
1791
1774
|
}),
|
|
1792
1775
|
onMouseup: D[10] || (D[10] = //@ts-ignore
|
|
1793
1776
|
(...B) => {
|
|
1794
1777
|
var M, S;
|
|
1795
|
-
return ((M = s(
|
|
1778
|
+
return ((M = s(l)) == null ? void 0 : M.onMouseUp) && ((S = s(l)) == null ? void 0 : S.onMouseUp(...B));
|
|
1796
1779
|
}),
|
|
1797
1780
|
onClick: se,
|
|
1798
|
-
"aria-placeholder":
|
|
1799
|
-
"aria-label":
|
|
1781
|
+
"aria-placeholder": b.value,
|
|
1782
|
+
"aria-label": b.value || "content editable",
|
|
1800
1783
|
contenteditable: f.value,
|
|
1801
|
-
innerHTML:
|
|
1784
|
+
innerHTML: r.value,
|
|
1802
1785
|
ref_key: "root",
|
|
1803
1786
|
ref: n
|
|
1804
1787
|
}, null, 40, Pt)) : p("", !0),
|
|
@@ -1810,7 +1793,7 @@ const Nt = /* @__PURE__ */ g({
|
|
|
1810
1793
|
}, null, 8, ["counter", "remainingCharacterCounter"])) : p("", !0)
|
|
1811
1794
|
])
|
|
1812
1795
|
]),
|
|
1813
|
-
|
|
1796
|
+
_.value ? (a(), i("span", Rt, k(_.value), 1)) : p("", !0)
|
|
1814
1797
|
], 2));
|
|
1815
1798
|
}
|
|
1816
1799
|
}), At = {
|
|
@@ -1828,31 +1811,31 @@ const Nt = /* @__PURE__ */ g({
|
|
|
1828
1811
|
model: {}
|
|
1829
1812
|
},
|
|
1830
1813
|
setup(c) {
|
|
1831
|
-
const t = c, e =
|
|
1814
|
+
const t = c, e = $(() => t.model.toolbox), o = I();
|
|
1832
1815
|
T(() => e.value);
|
|
1833
1816
|
let n;
|
|
1834
1817
|
P(() => {
|
|
1835
|
-
e.value.setRootElement(o.value), n = new
|
|
1818
|
+
e.value.setRootElement(o.value), n = new $e(
|
|
1836
1819
|
e.value.containerElement,
|
|
1837
1820
|
e.value
|
|
1838
1821
|
);
|
|
1839
1822
|
}), K(() => {
|
|
1840
1823
|
n == null || n.dispose(), e.value.setRootElement(void 0);
|
|
1841
1824
|
});
|
|
1842
|
-
const
|
|
1843
|
-
return (
|
|
1844
|
-
class:
|
|
1825
|
+
const r = $(() => e.value.renderedActions);
|
|
1826
|
+
return (l, _) => (a(), i("div", {
|
|
1827
|
+
class: m(e.value.classNames),
|
|
1845
1828
|
ref_key: "root",
|
|
1846
1829
|
ref: o
|
|
1847
1830
|
}, [
|
|
1848
1831
|
d("div", {
|
|
1849
|
-
onFocusout:
|
|
1832
|
+
onFocusout: _[0] || (_[0] = (y) => e.value.focusOut(y)),
|
|
1850
1833
|
class: "svc-toolbox__panel"
|
|
1851
1834
|
}, [
|
|
1852
|
-
e.value.showSearch ? (a(),
|
|
1835
|
+
e.value.showSearch ? (a(), i("div", At, [
|
|
1853
1836
|
e.value.isCompactRendered ? (a(), h(s(u), {
|
|
1854
1837
|
is: "svc-toolbox-tool",
|
|
1855
|
-
creator:
|
|
1838
|
+
creator: l.model,
|
|
1856
1839
|
key: "searchitem",
|
|
1857
1840
|
item: e.value.searchItem,
|
|
1858
1841
|
parentModel: e.value,
|
|
@@ -1864,21 +1847,21 @@ const Nt = /* @__PURE__ */ g({
|
|
|
1864
1847
|
}, null, 8, ["model"]),
|
|
1865
1848
|
zt
|
|
1866
1849
|
])) : p("", !0),
|
|
1867
|
-
e.value.showPlaceholder ? (a(),
|
|
1850
|
+
e.value.showPlaceholder ? (a(), i("div", Lt, k(e.value.toolboxNoResultsFound), 1)) : p("", !0),
|
|
1868
1851
|
v(s(u), { is: "sv-scroll" }, {
|
|
1869
1852
|
default: Z(() => [
|
|
1870
|
-
e.value.showInSingleCategory ? p("", !0) : (a(!0),
|
|
1853
|
+
e.value.showInSingleCategory ? p("", !0) : (a(!0), i(w, { key: 0 }, V(e.value.categories, (y, b) => (a(), h(s(u), {
|
|
1871
1854
|
is: "svc-toolbox-category",
|
|
1872
|
-
key:
|
|
1873
|
-
category:
|
|
1855
|
+
key: b,
|
|
1856
|
+
category: y,
|
|
1874
1857
|
toolbox: e.value
|
|
1875
1858
|
}, null, 8, ["category", "toolbox"]))), 128)),
|
|
1876
|
-
e.value.showInSingleCategory ? (a(),
|
|
1877
|
-
(a(!0),
|
|
1878
|
-
key:
|
|
1859
|
+
e.value.showInSingleCategory ? (a(), i("div", Ft, [
|
|
1860
|
+
(a(!0), i(w, null, V(r.value, (y) => (a(), h(s(u), {
|
|
1861
|
+
key: y.renderedId,
|
|
1879
1862
|
is: "svc-toolbox-tool",
|
|
1880
|
-
creator:
|
|
1881
|
-
item:
|
|
1863
|
+
creator: l.model,
|
|
1864
|
+
item: y,
|
|
1882
1865
|
parentModel: e.value,
|
|
1883
1866
|
isCompact: e.value.isCompactRendered
|
|
1884
1867
|
}, null, 8, ["creator", "item", "parentModel", "isCompact"]))), 128))
|
|
@@ -1892,7 +1875,7 @@ const Nt = /* @__PURE__ */ g({
|
|
|
1892
1875
|
}), Ut = {
|
|
1893
1876
|
key: 0,
|
|
1894
1877
|
class: "svc-toolbox__category-separator"
|
|
1895
|
-
},
|
|
1878
|
+
}, Qt = /* @__PURE__ */ g({
|
|
1896
1879
|
__name: "ToolboxTool",
|
|
1897
1880
|
props: {
|
|
1898
1881
|
creator: {},
|
|
@@ -1914,31 +1897,31 @@ const Nt = /* @__PURE__ */ g({
|
|
|
1914
1897
|
), o = I();
|
|
1915
1898
|
return P(() => {
|
|
1916
1899
|
const n = t.item;
|
|
1917
|
-
n.updateModeCallback = (
|
|
1918
|
-
n.mode =
|
|
1900
|
+
n.updateModeCallback = (r, l) => {
|
|
1901
|
+
n.mode = r, re(() => l(r, o.value));
|
|
1919
1902
|
}, n.afterRender();
|
|
1920
1903
|
}), K(() => {
|
|
1921
1904
|
const n = t.item;
|
|
1922
1905
|
n.updateModeCallback = void 0;
|
|
1923
|
-
}), T(() => t.item), (n,
|
|
1924
|
-
var
|
|
1925
|
-
return a(),
|
|
1926
|
-
class:
|
|
1906
|
+
}), T(() => t.item), (n, r) => {
|
|
1907
|
+
var l;
|
|
1908
|
+
return a(), i("div", {
|
|
1909
|
+
class: m(n.item.css),
|
|
1927
1910
|
ref_key: "root",
|
|
1928
1911
|
ref: o
|
|
1929
1912
|
}, [
|
|
1930
|
-
n.item.needSeparator && !n.creator.toolbox.showCategoryTitles ? (a(),
|
|
1913
|
+
n.item.needSeparator && !n.creator.toolbox.showCategoryTitles ? (a(), i("div", Ut)) : p("", !0),
|
|
1931
1914
|
d("div", {
|
|
1932
1915
|
class: "svc-toolbox__tool-content sv-action__content",
|
|
1933
|
-
onPointerdown:
|
|
1934
|
-
(...
|
|
1935
|
-
var
|
|
1936
|
-
return ((
|
|
1916
|
+
onPointerdown: r[0] || (r[0] = //@ts-ignore
|
|
1917
|
+
(..._) => {
|
|
1918
|
+
var y, b;
|
|
1919
|
+
return ((y = s(e)) == null ? void 0 : y.onPointerDown) && ((b = s(e)) == null ? void 0 : b.onPointerDown(..._));
|
|
1937
1920
|
})
|
|
1938
1921
|
}, [
|
|
1939
1922
|
v(s(u), {
|
|
1940
1923
|
viewModel: s(e),
|
|
1941
|
-
is: (
|
|
1924
|
+
is: (l = s(e)) == null ? void 0 : l.itemComponent,
|
|
1942
1925
|
item: n.item,
|
|
1943
1926
|
creator: n.creator,
|
|
1944
1927
|
isCompact: n.isCompact
|
|
@@ -1947,7 +1930,7 @@ const Nt = /* @__PURE__ */ g({
|
|
|
1947
1930
|
], 2);
|
|
1948
1931
|
};
|
|
1949
1932
|
}
|
|
1950
|
-
}),
|
|
1933
|
+
}), Ht = ["aria-label", "title"], Ot = { class: "svc-toolbox__item-container" }, Gt = {
|
|
1951
1934
|
key: 0,
|
|
1952
1935
|
class: "svc-toolbox__item-title"
|
|
1953
1936
|
}, Wt = /* @__PURE__ */ g({
|
|
@@ -1959,15 +1942,15 @@ const Nt = /* @__PURE__ */ g({
|
|
|
1959
1942
|
viewModel: {}
|
|
1960
1943
|
},
|
|
1961
1944
|
setup(c) {
|
|
1962
|
-
return (t, e) => (a(),
|
|
1963
|
-
|
|
1964
|
-
class:
|
|
1945
|
+
return (t, e) => (a(), i(w, null, [
|
|
1946
|
+
q((a(), i("div", {
|
|
1947
|
+
class: m(["svc-toolbox__item", t.item.renderedCss]),
|
|
1965
1948
|
role: "button",
|
|
1966
1949
|
"aria-label": t.item.tooltip,
|
|
1967
1950
|
title: t.item.tooltip,
|
|
1968
1951
|
onClick: e[0] || (e[0] = (o) => t.viewModel.click(o))
|
|
1969
1952
|
}, [
|
|
1970
|
-
d("span",
|
|
1953
|
+
d("span", Ot, [
|
|
1971
1954
|
t.item.iconName ? (a(), h(s(u), {
|
|
1972
1955
|
key: 0,
|
|
1973
1956
|
is: "sv-svg-icon",
|
|
@@ -1976,11 +1959,11 @@ const Nt = /* @__PURE__ */ g({
|
|
|
1976
1959
|
class: "svc-toolbox__item-icon"
|
|
1977
1960
|
}, null, 8, ["iconName"])) : p("", !0)
|
|
1978
1961
|
]),
|
|
1979
|
-
t.isCompact ? p("", !0) : (a(),
|
|
1980
|
-
], 10,
|
|
1962
|
+
t.isCompact ? p("", !0) : (a(), i("span", Gt, k(t.item.title), 1))
|
|
1963
|
+
], 10, Ht)), [
|
|
1981
1964
|
[s(N)]
|
|
1982
1965
|
]),
|
|
1983
|
-
t.isCompact ? (a(),
|
|
1966
|
+
t.isCompact ? (a(), i("span", {
|
|
1984
1967
|
key: 0,
|
|
1985
1968
|
class: "svc-toolbox__item-banner",
|
|
1986
1969
|
onClick: e[1] || (e[1] = (o) => t.viewModel.click(o))
|
|
@@ -1991,7 +1974,7 @@ const Nt = /* @__PURE__ */ g({
|
|
|
1991
1974
|
size: 24,
|
|
1992
1975
|
class: "svc-toolbox__item-icon"
|
|
1993
1976
|
}, null, 8, ["iconName"]),
|
|
1994
|
-
d("span", null,
|
|
1977
|
+
d("span", null, k(t.item.title), 1)
|
|
1995
1978
|
])) : p("", !0)
|
|
1996
1979
|
], 64));
|
|
1997
1980
|
}
|
|
@@ -2009,7 +1992,7 @@ const Nt = /* @__PURE__ */ g({
|
|
|
2009
1992
|
}, o = (n) => {
|
|
2010
1993
|
t.viewModel.onMouseLeave(t.item, n);
|
|
2011
1994
|
};
|
|
2012
|
-
return (n,
|
|
1995
|
+
return (n, r) => (a(), i(w, null, [
|
|
2013
1996
|
v(s(u), {
|
|
2014
1997
|
is: "svc-toolbox-item",
|
|
2015
1998
|
viewModel: n.viewModel,
|
|
@@ -2045,25 +2028,25 @@ const Nt = /* @__PURE__ */ g({
|
|
|
2045
2028
|
},
|
|
2046
2029
|
setup(c) {
|
|
2047
2030
|
const t = c;
|
|
2048
|
-
return T(() => t.category), (e, o) => (a(),
|
|
2049
|
-
class:
|
|
2031
|
+
return T(() => t.category), (e, o) => (a(), i("div", {
|
|
2032
|
+
class: m(["svc-toolbox__category", {
|
|
2050
2033
|
"svc-toolbox__category--collapsed": e.category.collapsed,
|
|
2051
2034
|
"svc-toolbox__category--empty": e.category.empty
|
|
2052
2035
|
}])
|
|
2053
2036
|
}, [
|
|
2054
2037
|
d("div", Jt, [
|
|
2055
|
-
|
|
2056
|
-
class:
|
|
2038
|
+
q((a(), i("div", {
|
|
2039
|
+
class: m(["svc-toolbox__category-header", {
|
|
2057
2040
|
"svc-toolbox__category-header--collapsed": e.toolbox.canCollapseCategories
|
|
2058
2041
|
}]),
|
|
2059
2042
|
onClick: o[0] || (o[0] = (n) => e.category.toggleState())
|
|
2060
2043
|
}, [
|
|
2061
|
-
d("span", Zt,
|
|
2062
|
-
e.toolbox.canCollapseCategories ? (a(),
|
|
2044
|
+
d("span", Zt, k(e.category.title), 1),
|
|
2045
|
+
e.toolbox.canCollapseCategories ? (a(), i("div", Xt, [
|
|
2063
2046
|
v(s(u), {
|
|
2064
2047
|
is: "sv-svg-icon",
|
|
2065
2048
|
iconName: e.category.iconName,
|
|
2066
|
-
class:
|
|
2049
|
+
class: m(e.category.iconClassName),
|
|
2067
2050
|
size: "auto"
|
|
2068
2051
|
}, null, 8, ["iconName", "class"])
|
|
2069
2052
|
])) : p("", !0)
|
|
@@ -2071,7 +2054,7 @@ const Nt = /* @__PURE__ */ g({
|
|
|
2071
2054
|
[s(N)]
|
|
2072
2055
|
])
|
|
2073
2056
|
]),
|
|
2074
|
-
(a(!0),
|
|
2057
|
+
(a(!0), i(w, null, V(e.category.items, (n) => (a(), h(s(u), {
|
|
2075
2058
|
is: "svc-toolbox-tool",
|
|
2076
2059
|
item: n,
|
|
2077
2060
|
key: n.renderedId,
|
|
@@ -2089,14 +2072,14 @@ const Nt = /* @__PURE__ */ g({
|
|
|
2089
2072
|
},
|
|
2090
2073
|
setup(c) {
|
|
2091
2074
|
const t = c, e = _e(() => t.model.renderedActions);
|
|
2092
|
-
return T(() => t.model), (o, n) => (a(),
|
|
2093
|
-
class:
|
|
2075
|
+
return T(() => t.model), (o, n) => (a(), i("div", {
|
|
2076
|
+
class: m(o.model.cssClasses.root)
|
|
2094
2077
|
}, [
|
|
2095
|
-
(a(!0),
|
|
2096
|
-
key:
|
|
2078
|
+
(a(!0), i(w, null, V(s(e), (r, l) => (a(), h(s(u), {
|
|
2079
|
+
key: l,
|
|
2097
2080
|
is: "svc-toolbox-tool",
|
|
2098
2081
|
creator: o.creator,
|
|
2099
|
-
item:
|
|
2082
|
+
item: r,
|
|
2100
2083
|
parentModel: o.model,
|
|
2101
2084
|
isCompact: !1
|
|
2102
2085
|
}, null, 8, ["creator", "item", "parentModel"]))), 128))
|
|
@@ -2129,8 +2112,8 @@ const Nt = /* @__PURE__ */ g({
|
|
|
2129
2112
|
model: {}
|
|
2130
2113
|
},
|
|
2131
2114
|
setup(c) {
|
|
2132
|
-
const t = c, e =
|
|
2133
|
-
return T(() => t.model), T(() => e.value), (o, n) => (a(),
|
|
2115
|
+
const t = c, e = $(() => t.model.survey);
|
|
2116
|
+
return T(() => t.model), T(() => e.value), (o, n) => (a(), i(w, null, [
|
|
2134
2117
|
d("div", en, [
|
|
2135
2118
|
o.model.isToolboxVisible ? (a(), h(s(u), {
|
|
2136
2119
|
key: 0,
|
|
@@ -2139,15 +2122,15 @@ const Nt = /* @__PURE__ */ g({
|
|
|
2139
2122
|
}, null, 8, ["model"])) : p("", !0)
|
|
2140
2123
|
]),
|
|
2141
2124
|
d("div", {
|
|
2142
|
-
class:
|
|
2125
|
+
class: m(["svc-tab-designer", o.model.getRootCss()]),
|
|
2143
2126
|
onClick: n[0] || (n[0] = //@ts-ignore
|
|
2144
|
-
(...
|
|
2127
|
+
(...r) => o.model.clickDesigner && o.model.clickDesigner(...r))
|
|
2145
2128
|
}, [
|
|
2146
2129
|
v(s(u), { is: "sv-scroll" }, {
|
|
2147
2130
|
default: Z(() => [
|
|
2148
2131
|
d("div", on, [
|
|
2149
|
-
o.model.showPlaceholder ? (a(),
|
|
2150
|
-
o.model.creator.showHeaderInEmptySurvey && o.model.creator.allowEditSurveyTitle ? (a(),
|
|
2132
|
+
o.model.showPlaceholder ? (a(), i(w, { key: 0 }, [
|
|
2133
|
+
o.model.creator.showHeaderInEmptySurvey && o.model.creator.allowEditSurveyTitle ? (a(), i("div", sn, [
|
|
2151
2134
|
v(s(u), {
|
|
2152
2135
|
is: "survey-header",
|
|
2153
2136
|
survey: o.model.creator.survey
|
|
@@ -2170,35 +2153,35 @@ const Nt = /* @__PURE__ */ g({
|
|
|
2170
2153
|
])
|
|
2171
2154
|
])
|
|
2172
2155
|
], 64)) : p("", !0),
|
|
2173
|
-
o.model.showPlaceholder ? p("", !0) : (a(),
|
|
2156
|
+
o.model.showPlaceholder ? p("", !0) : (a(), i(w, { key: 1 }, [
|
|
2174
2157
|
d("div", {
|
|
2175
|
-
class:
|
|
2158
|
+
class: m(o.model.designerCss),
|
|
2176
2159
|
style: F([
|
|
2177
2160
|
{ maxWidth: o.model.survey.renderedWidth },
|
|
2178
2161
|
o.model.surfaceCssVariables
|
|
2179
2162
|
])
|
|
2180
2163
|
}, [
|
|
2181
|
-
o.model.creator.allowEditSurveyTitle ? (a(),
|
|
2164
|
+
o.model.creator.allowEditSurveyTitle ? (a(), i("div", an, [
|
|
2182
2165
|
v(s(u), {
|
|
2183
2166
|
is: "survey-header",
|
|
2184
2167
|
survey: o.model.creator.survey
|
|
2185
2168
|
}, null, 8, ["survey"])
|
|
2186
2169
|
])) : p("", !0),
|
|
2187
|
-
o.model.creator.pageEditMode !== "bypage" ? (a(!0),
|
|
2188
|
-
key:
|
|
2170
|
+
o.model.creator.pageEditMode !== "bypage" ? (a(!0), i(w, { key: 1 }, V(o.model.pages, (r) => (a(), i("div", {
|
|
2171
|
+
key: r.id,
|
|
2189
2172
|
class: "svc-page",
|
|
2190
|
-
"data-sv-drop-target-survey-element":
|
|
2191
|
-
"data-sv-drop-target-page":
|
|
2173
|
+
"data-sv-drop-target-survey-element": r != o.model.newPage ? r.name : "newGhostPage",
|
|
2174
|
+
"data-sv-drop-target-page": r.name
|
|
2192
2175
|
}, [
|
|
2193
2176
|
v(s(u), {
|
|
2194
2177
|
is: "svc-page",
|
|
2195
2178
|
survey: o.model.creator.survey,
|
|
2196
2179
|
creator: o.model.creator,
|
|
2197
|
-
page:
|
|
2198
|
-
isGhost:
|
|
2180
|
+
page: r,
|
|
2181
|
+
isGhost: r == o.model.newPage
|
|
2199
2182
|
}, null, 8, ["survey", "creator", "page", "isGhost"])
|
|
2200
2183
|
], 8, ln))), 128)) : p("", !0),
|
|
2201
|
-
o.model.pagesController.page2Display && o.model.creator.pageEditMode === "bypage" ? (a(),
|
|
2184
|
+
o.model.pagesController.page2Display && o.model.creator.pageEditMode === "bypage" ? (a(), i("div", {
|
|
2202
2185
|
key: 2,
|
|
2203
2186
|
class: "svc-page",
|
|
2204
2187
|
"data-sv-drop-target-survey-element": o.model.displayPageDropTarget,
|
|
@@ -2212,15 +2195,15 @@ const Nt = /* @__PURE__ */ g({
|
|
|
2212
2195
|
}, null, 8, ["page", "creator", "isGhost"])
|
|
2213
2196
|
], 8, rn)) : p("", !0)
|
|
2214
2197
|
], 6),
|
|
2215
|
-
o.model.showSurfaceTools ? (a(),
|
|
2216
|
-
o.model.creator.showPageNavigator ? (a(),
|
|
2198
|
+
o.model.showSurfaceTools ? (a(), i("div", dn, [
|
|
2199
|
+
o.model.creator.showPageNavigator ? (a(), i("div", cn, [
|
|
2217
2200
|
v(s(u), {
|
|
2218
2201
|
is: "svc-page-navigator",
|
|
2219
2202
|
pagesController: o.model.pagesController,
|
|
2220
2203
|
pageEditMode: o.model.creator.pageEditMode
|
|
2221
2204
|
}, null, 8, ["pagesController", "pageEditMode"])
|
|
2222
2205
|
])) : p("", !0),
|
|
2223
|
-
o.model.showSurfaceToolbar ? (a(),
|
|
2206
|
+
o.model.showSurfaceToolbar ? (a(), i("div", un, [
|
|
2224
2207
|
v(s(u), {
|
|
2225
2208
|
is: "sv-action-bar",
|
|
2226
2209
|
model: o.model.surfaceToolbar
|
|
@@ -2236,12 +2219,15 @@ const Nt = /* @__PURE__ */ g({
|
|
|
2236
2219
|
], 64));
|
|
2237
2220
|
}
|
|
2238
2221
|
}), vn = ["id", "data-sv-drop-target-survey-page"], mn = /* @__PURE__ */ d("div", { class: "svc-question__drop-indicator svc-question__drop-indicator--top" }, null, -1), _n = /* @__PURE__ */ d("div", { class: "svc-question__drop-indicator svc-question__drop-indicator--bottom" }, null, -1), gn = {
|
|
2239
|
-
key:
|
|
2240
|
-
class: "svc-
|
|
2241
|
-
}, bn = {
|
|
2222
|
+
key: 1,
|
|
2223
|
+
class: "svc-page__loading-content"
|
|
2224
|
+
}, bn = {
|
|
2242
2225
|
key: 2,
|
|
2226
|
+
class: "svc-page__placeholder_frame"
|
|
2227
|
+
}, yn = { class: "svc-panel__placeholder_frame" }, hn = { class: "svc-panel__placeholder" }, Cn = { class: "svc-page__content-actions" }, qn = {
|
|
2228
|
+
key: 4,
|
|
2243
2229
|
class: "svc-page__content-actions"
|
|
2244
|
-
},
|
|
2230
|
+
}, $n = /* @__PURE__ */ g({
|
|
2245
2231
|
__name: "Page",
|
|
2246
2232
|
props: {
|
|
2247
2233
|
creator: {},
|
|
@@ -2252,12 +2238,12 @@ const Nt = /* @__PURE__ */ g({
|
|
|
2252
2238
|
setup(c) {
|
|
2253
2239
|
const t = c, e = I(), o = z(
|
|
2254
2240
|
() => {
|
|
2255
|
-
const
|
|
2256
|
-
return
|
|
2241
|
+
const r = new De(t.creator, t.page);
|
|
2242
|
+
return r.isGhost = t.isGhost, r;
|
|
2257
2243
|
},
|
|
2258
2244
|
[() => t.page],
|
|
2259
|
-
(
|
|
2260
|
-
|
|
2245
|
+
(r) => {
|
|
2246
|
+
r.dispose();
|
|
2261
2247
|
}
|
|
2262
2248
|
);
|
|
2263
2249
|
G(
|
|
@@ -2268,41 +2254,45 @@ const Nt = /* @__PURE__ */ g({
|
|
|
2268
2254
|
), Y(() => {
|
|
2269
2255
|
e.value && o.value && (o.value.rootElement = e.value);
|
|
2270
2256
|
}), P(() => {
|
|
2271
|
-
e.value && o.value &&
|
|
2257
|
+
e.value && o.value && o.value.setRootElement(e.value);
|
|
2272
2258
|
});
|
|
2273
|
-
const n = (
|
|
2274
|
-
o.value.hover(
|
|
2259
|
+
const n = (r) => {
|
|
2260
|
+
o.value.hover(r, r.currentTarget);
|
|
2275
2261
|
};
|
|
2276
|
-
return (
|
|
2262
|
+
return (r, l) => s(o).page ? q((a(), i("div", {
|
|
2277
2263
|
key: s(o).page.id,
|
|
2278
2264
|
id: s(o).page.id,
|
|
2279
|
-
class:
|
|
2265
|
+
class: m(["svc-page__content", s(o).css]),
|
|
2280
2266
|
"data-sv-drop-target-survey-page": s(o).dropTargetName,
|
|
2281
|
-
onClick:
|
|
2282
|
-
s(o).select(s(o),
|
|
2267
|
+
onClick: l[1] || (l[1] = (_) => {
|
|
2268
|
+
s(o).select(s(o), _), _.stopPropagation();
|
|
2283
2269
|
}),
|
|
2284
2270
|
ref_key: "root",
|
|
2285
2271
|
ref: e,
|
|
2286
|
-
onDblclick:
|
|
2272
|
+
onDblclick: l[2] || (l[2] = (_) => s(o).dblclick(_)),
|
|
2287
2273
|
onMouseover: n,
|
|
2288
2274
|
onMouseleave: n
|
|
2289
2275
|
}, [
|
|
2290
2276
|
mn,
|
|
2291
2277
|
_n,
|
|
2292
|
-
|
|
2278
|
+
s(o).needRenderContent ? (a(), h(s(u), {
|
|
2279
|
+
key: 0,
|
|
2293
2280
|
is: "survey-page",
|
|
2294
2281
|
survey: s(o).creator.survey,
|
|
2295
2282
|
page: s(o).page
|
|
2296
|
-
}, null, 8, ["survey", "page"]),
|
|
2297
|
-
s(o).
|
|
2298
|
-
|
|
2299
|
-
|
|
2283
|
+
}, null, 8, ["survey", "page"])) : p("", !0),
|
|
2284
|
+
s(o).needRenderContent ? p("", !0) : (a(), i("div", gn, [
|
|
2285
|
+
v(s(u), { is: "sv-loading-indicator" })
|
|
2286
|
+
])),
|
|
2287
|
+
s(o).showPlaceholder ? (a(), i("div", bn, [
|
|
2288
|
+
d("div", yn, [
|
|
2289
|
+
d("div", hn, k(s(o).placeholderText), 1)
|
|
2300
2290
|
])
|
|
2301
2291
|
])) : p("", !0),
|
|
2302
|
-
s(o).allowDragging && !s(o).isGhost ? (a(),
|
|
2303
|
-
key:
|
|
2292
|
+
s(o).allowDragging && !s(o).isGhost ? (a(), i("div", {
|
|
2293
|
+
key: 3,
|
|
2304
2294
|
class: "svc-question__drag-area",
|
|
2305
|
-
onPointerdown:
|
|
2295
|
+
onPointerdown: l[0] || (l[0] = (_) => s(o).onPointerDown(_))
|
|
2306
2296
|
}, [
|
|
2307
2297
|
v(s(u), A({
|
|
2308
2298
|
is: "sv-svg-icon",
|
|
@@ -2312,7 +2302,7 @@ const Nt = /* @__PURE__ */ g({
|
|
|
2312
2302
|
iconName: "icon-drag-area-indicator_24x16",
|
|
2313
2303
|
size: "auto"
|
|
2314
2304
|
}), null, 16),
|
|
2315
|
-
d("div",
|
|
2305
|
+
d("div", Cn, [
|
|
2316
2306
|
v(s(u), {
|
|
2317
2307
|
is: "sv-action-bar",
|
|
2318
2308
|
model: s(o).actionContainer
|
|
@@ -2324,7 +2314,7 @@ const Nt = /* @__PURE__ */ g({
|
|
|
2324
2314
|
}, null, 8, ["model"])) : p("", !0)
|
|
2325
2315
|
])
|
|
2326
2316
|
], 32)) : p("", !0),
|
|
2327
|
-
!s(o).allowDragging || s(o).isGhost ? (a(),
|
|
2317
|
+
!s(o).allowDragging || s(o).isGhost ? (a(), i("div", qn, [
|
|
2328
2318
|
v(s(u), {
|
|
2329
2319
|
is: "sv-action-bar",
|
|
2330
2320
|
model: s(o).actionContainer
|
|
@@ -2343,7 +2333,7 @@ const Nt = /* @__PURE__ */ g({
|
|
|
2343
2333
|
[s(N)]
|
|
2344
2334
|
]) : p("", !0);
|
|
2345
2335
|
}
|
|
2346
|
-
}), kn = { class: "svc-add-new-item-button__text" },
|
|
2336
|
+
}), kn = { class: "svc-add-new-item-button__text" }, fn = /* @__PURE__ */ g({
|
|
2347
2337
|
__name: "AddQuestion",
|
|
2348
2338
|
props: {
|
|
2349
2339
|
item: {},
|
|
@@ -2353,18 +2343,18 @@ const Nt = /* @__PURE__ */ g({
|
|
|
2353
2343
|
setup(c) {
|
|
2354
2344
|
const t = c;
|
|
2355
2345
|
T(() => t.item.data);
|
|
2356
|
-
const e =
|
|
2346
|
+
const e = $(
|
|
2357
2347
|
() => "svc-element__add-new-question " + (t.buttonClass || "svc-btn")
|
|
2358
|
-
), o =
|
|
2348
|
+
), o = $(
|
|
2359
2349
|
() => t.renderPopup === void 0 || t.renderPopup !== !1
|
|
2360
2350
|
);
|
|
2361
|
-
return (n,
|
|
2362
|
-
|
|
2363
|
-
class:
|
|
2364
|
-
onClick:
|
|
2365
|
-
n.item.data.addNewQuestion(n.item,
|
|
2351
|
+
return (n, r) => (a(), i(w, null, [
|
|
2352
|
+
q((a(), i("div", {
|
|
2353
|
+
class: m(e.value),
|
|
2354
|
+
onClick: r[0] || (r[0] = (l) => {
|
|
2355
|
+
n.item.data.addNewQuestion(n.item, l), l.stopPropagation();
|
|
2366
2356
|
}),
|
|
2367
|
-
onMouseover:
|
|
2357
|
+
onMouseover: r[1] || (r[1] = (l) => n.item.data.hoverStopper && n.item.data.hoverStopper(l, l.currentTarget))
|
|
2368
2358
|
}, [
|
|
2369
2359
|
v(s(u), {
|
|
2370
2360
|
is: "sv-svg-icon",
|
|
@@ -2372,7 +2362,7 @@ const Nt = /* @__PURE__ */ g({
|
|
|
2372
2362
|
iconName: "icon-add_24x24",
|
|
2373
2363
|
size: "auto"
|
|
2374
2364
|
}),
|
|
2375
|
-
d("span", kn,
|
|
2365
|
+
d("span", kn, k(n.item.data.addNewQuestionText), 1),
|
|
2376
2366
|
o.value ? (a(), h(s(u), {
|
|
2377
2367
|
key: 0,
|
|
2378
2368
|
is: "svc-add-question-type-selector",
|
|
@@ -2390,7 +2380,7 @@ const Nt = /* @__PURE__ */ g({
|
|
|
2390
2380
|
}, null, 8, ["questionTypeSelectorModel", "renderPopup"]))
|
|
2391
2381
|
], 64));
|
|
2392
2382
|
}
|
|
2393
|
-
}),
|
|
2383
|
+
}), wn = ["title", "aria-label"], Tn = /* @__PURE__ */ g({
|
|
2394
2384
|
__name: "AddQuestionTypeSelector",
|
|
2395
2385
|
props: {
|
|
2396
2386
|
questionTypeSelectorModel: {},
|
|
@@ -2398,7 +2388,7 @@ const Nt = /* @__PURE__ */ g({
|
|
|
2398
2388
|
},
|
|
2399
2389
|
setup(c) {
|
|
2400
2390
|
const t = c;
|
|
2401
|
-
return T(() => t.questionTypeSelectorModel), (e, o) =>
|
|
2391
|
+
return T(() => t.questionTypeSelectorModel), (e, o) => q((a(), i("button", {
|
|
2402
2392
|
type: "button",
|
|
2403
2393
|
onClick: o[0] || (o[0] = (n) => {
|
|
2404
2394
|
e.questionTypeSelectorModel.action(), n.stopPropagation();
|
|
@@ -2420,39 +2410,39 @@ const Nt = /* @__PURE__ */ g({
|
|
|
2420
2410
|
is: "sv-popup",
|
|
2421
2411
|
model: e.questionTypeSelectorModel.popupModel
|
|
2422
2412
|
}, null, 8, ["model"])) : p("", !0)
|
|
2423
|
-
], 8,
|
|
2413
|
+
], 8, wn)), [
|
|
2424
2414
|
[s(N)]
|
|
2425
2415
|
]);
|
|
2426
2416
|
}
|
|
2427
|
-
}),
|
|
2417
|
+
}), Dn = /* @__PURE__ */ d("div", { class: "svc-row__drop-indicator svc-row__drop-indicator--top" }, null, -1), Nn = /* @__PURE__ */ d("div", { class: "svc-row__drop-indicator svc-row__drop-indicator--bottom" }, null, -1), Mn = /* @__PURE__ */ g({
|
|
2428
2418
|
__name: "Row",
|
|
2429
2419
|
props: {
|
|
2430
2420
|
componentData: {}
|
|
2431
2421
|
},
|
|
2432
2422
|
setup(c) {
|
|
2433
|
-
const t = c, e =
|
|
2423
|
+
const t = c, e = $(() => t.componentData.creator), o = $(() => t.componentData.row), n = z(
|
|
2434
2424
|
() => new Ne(e.value, o.value, void 0),
|
|
2435
2425
|
[() => e.value, () => o.value],
|
|
2436
|
-
(
|
|
2437
|
-
|
|
2426
|
+
(r) => {
|
|
2427
|
+
r.dispose();
|
|
2438
2428
|
}
|
|
2439
2429
|
);
|
|
2440
2430
|
return P(() => {
|
|
2441
2431
|
n.value && n.value.subscribeElementChanges();
|
|
2442
2432
|
}), K(() => {
|
|
2443
2433
|
n.value && n.value.unsubscribeElementChanges();
|
|
2444
|
-
}), (
|
|
2445
|
-
class:
|
|
2434
|
+
}), (r, l) => (a(), i("div", {
|
|
2435
|
+
class: m(s(n).cssClasses)
|
|
2446
2436
|
}, [
|
|
2447
|
-
Tn,
|
|
2448
2437
|
Dn,
|
|
2449
|
-
|
|
2438
|
+
Nn,
|
|
2439
|
+
x(r.$slots, "default")
|
|
2450
2440
|
], 2));
|
|
2451
2441
|
}
|
|
2452
|
-
}),
|
|
2442
|
+
}), Sn = ["data-sv-drop-target-survey-element"], Bn = { class: "svc-fake-title" }, In = /* @__PURE__ */ d("div", { class: "svc-question__drop-indicator svc-question__drop-indicator--left" }, null, -1), En = /* @__PURE__ */ d("div", { class: "svc-question__drop-indicator svc-question__drop-indicator--right" }, null, -1), Pn = /* @__PURE__ */ d("div", { class: "svc-question__drop-indicator svc-question__drop-indicator--top" }, null, -1), Rn = /* @__PURE__ */ d("div", { class: "svc-question__drop-indicator svc-question__drop-indicator--bottom" }, null, -1), Vn = { class: "svc-question__top-actions" }, An = {
|
|
2453
2443
|
key: 0,
|
|
2454
2444
|
class: "svc-panel__placeholder_frame-wrapper"
|
|
2455
|
-
},
|
|
2445
|
+
}, zn = { class: "svc-panel__placeholder_frame" }, Ln = {
|
|
2456
2446
|
class: "svc-panel__placeholder",
|
|
2457
2447
|
"data-bind": "text: placeholderText"
|
|
2458
2448
|
}, oe = /* @__PURE__ */ g({
|
|
@@ -2471,10 +2461,10 @@ const Nt = /* @__PURE__ */ g({
|
|
|
2471
2461
|
const t = c, e = I(), o = z(
|
|
2472
2462
|
() => t.createModel(),
|
|
2473
2463
|
[() => t.componentName, () => t.componentData],
|
|
2474
|
-
(
|
|
2475
|
-
|
|
2464
|
+
(l) => {
|
|
2465
|
+
l.dispose();
|
|
2476
2466
|
}
|
|
2477
|
-
), n =
|
|
2467
|
+
), n = $(
|
|
2478
2468
|
() => o.value.isBannerShowing ? o.value.createBannerParams() : null
|
|
2479
2469
|
);
|
|
2480
2470
|
Y(() => {
|
|
@@ -2482,49 +2472,49 @@ const Nt = /* @__PURE__ */ g({
|
|
|
2482
2472
|
}), P(() => {
|
|
2483
2473
|
e.value && o.value && (o.value.rootElement = e.value);
|
|
2484
2474
|
});
|
|
2485
|
-
const
|
|
2486
|
-
o.value.select(o.value,
|
|
2475
|
+
const r = (l) => {
|
|
2476
|
+
o.value.select(o.value, l), l.stopPropagation();
|
|
2487
2477
|
};
|
|
2488
|
-
return (
|
|
2478
|
+
return (l, _) => s(o) ? (a(), i("div", {
|
|
2489
2479
|
key: 0,
|
|
2490
|
-
class:
|
|
2480
|
+
class: m(["svc-question__adorner", s(o).rootCss()]),
|
|
2491
2481
|
ref_key: "root",
|
|
2492
2482
|
ref: e,
|
|
2493
|
-
onDblclick:
|
|
2494
|
-
onMouseover:
|
|
2495
|
-
onMouseleave:
|
|
2483
|
+
onDblclick: _[2] || (_[2] = (y) => s(o).dblclick(y)),
|
|
2484
|
+
onMouseover: _[3] || (_[3] = (y) => s(o).hover(y, y.currentTarget)),
|
|
2485
|
+
onMouseleave: _[4] || (_[4] = (y) => s(o).hover(y, y.currentTarget)),
|
|
2496
2486
|
"data-sv-drop-target-survey-element": s(o).element.name || null,
|
|
2497
2487
|
"data-bind": "css: rootCss(), attr: { 'data-sv-drop-target-survey-element': element.name || null }, event: { mouseover: function(m, e) { hover(e, $element); }, mouseleave: function(m, e) { hover(e, $element); } }"
|
|
2498
2488
|
}, [
|
|
2499
|
-
s(o).showHiddenTitle ? (a(),
|
|
2489
|
+
s(o).showHiddenTitle ? (a(), i("div", {
|
|
2500
2490
|
key: 0,
|
|
2501
|
-
class:
|
|
2491
|
+
class: m(s(o).cssCollapsedHiddenHeader)
|
|
2502
2492
|
}, [
|
|
2503
|
-
|
|
2493
|
+
l.element.hasTitle ? (a(), h(s(u), {
|
|
2504
2494
|
key: 0,
|
|
2505
2495
|
is: "survey-element-title",
|
|
2506
|
-
element:
|
|
2507
|
-
}, null, 8, ["element"])) : (a(),
|
|
2496
|
+
element: l.element
|
|
2497
|
+
}, null, 8, ["element"])) : (a(), i("div", {
|
|
2508
2498
|
key: 1,
|
|
2509
|
-
class:
|
|
2499
|
+
class: m(s(o).cssCollapsedHiddenTitle)
|
|
2510
2500
|
}, [
|
|
2511
|
-
d("span",
|
|
2501
|
+
d("span", Bn, k(l.element.name), 1)
|
|
2512
2502
|
], 2))
|
|
2513
2503
|
], 2)) : p("", !0),
|
|
2514
|
-
|
|
2515
|
-
onClick:
|
|
2516
|
-
s(o).select(s(o),
|
|
2504
|
+
q((a(), i("div", {
|
|
2505
|
+
onClick: _[1] || (_[1] = (y) => {
|
|
2506
|
+
s(o).select(s(o), y), y.stopPropagation();
|
|
2517
2507
|
}),
|
|
2518
|
-
class:
|
|
2508
|
+
class: m(s(o).css())
|
|
2519
2509
|
}, [
|
|
2520
|
-
Bn,
|
|
2521
2510
|
In,
|
|
2522
2511
|
En,
|
|
2523
2512
|
Pn,
|
|
2524
|
-
|
|
2513
|
+
Rn,
|
|
2514
|
+
s(o).allowDragging ? (a(), i("div", {
|
|
2525
2515
|
key: 0,
|
|
2526
2516
|
class: "svc-question__drag-area",
|
|
2527
|
-
onPointerdown:
|
|
2517
|
+
onPointerdown: _[0] || (_[0] = (y) => s(o).onPointerDown(y))
|
|
2528
2518
|
}, [
|
|
2529
2519
|
v(s(u), A({
|
|
2530
2520
|
is: "sv-svg-icon",
|
|
@@ -2534,7 +2524,7 @@ const Nt = /* @__PURE__ */ g({
|
|
|
2534
2524
|
iconName: "icon-drag-area-indicator_24x16",
|
|
2535
2525
|
size: "auto"
|
|
2536
2526
|
}), null, 16),
|
|
2537
|
-
d("div",
|
|
2527
|
+
d("div", Vn, [
|
|
2538
2528
|
v(s(u), {
|
|
2539
2529
|
is: "sv-action-bar",
|
|
2540
2530
|
model: s(o).topActionContainer,
|
|
@@ -2542,29 +2532,29 @@ const Nt = /* @__PURE__ */ g({
|
|
|
2542
2532
|
}, null, 8, ["model"])
|
|
2543
2533
|
])
|
|
2544
2534
|
], 32)) : p("", !0),
|
|
2545
|
-
s(o).needToRenderContent ? (a(),
|
|
2535
|
+
s(o).needToRenderContent ? (a(), i(w, { key: 1 }, [
|
|
2546
2536
|
v(s(u), {
|
|
2547
2537
|
is: "sv-template-renderer",
|
|
2548
|
-
componentName:
|
|
2549
|
-
componentData:
|
|
2538
|
+
componentName: l.componentName,
|
|
2539
|
+
componentData: l.componentData
|
|
2550
2540
|
}, null, 8, ["componentName", "componentData"]),
|
|
2551
|
-
s(o).isEmptyElement && !
|
|
2552
|
-
d("div",
|
|
2553
|
-
d("div",
|
|
2541
|
+
s(o).isEmptyElement && !l.showPlaceholderComponent ? (a(), i("div", An, [
|
|
2542
|
+
d("div", zn, [
|
|
2543
|
+
d("div", Ln, k(s(o).placeholderText), 1)
|
|
2554
2544
|
])
|
|
2555
2545
|
])) : p("", !0),
|
|
2556
|
-
s(o).isEmptyElement &&
|
|
2546
|
+
s(o).isEmptyElement && l.showPlaceholderComponent ? (a(), h(s(u), A(
|
|
2557
2547
|
{
|
|
2558
2548
|
key: 1,
|
|
2559
|
-
is:
|
|
2549
|
+
is: l.placeholderComponent
|
|
2560
2550
|
},
|
|
2561
|
-
|
|
2551
|
+
l.getPlaceholderComponentData && l.getPlaceholderComponentData(s(o))
|
|
2562
2552
|
), null, 16, ["is"])) : p("", !0),
|
|
2563
|
-
|
|
2553
|
+
l.adornerComponent ? (a(), h(s(u), {
|
|
2564
2554
|
key: 2,
|
|
2565
|
-
is:
|
|
2555
|
+
is: l.adornerComponent,
|
|
2566
2556
|
model: s(o),
|
|
2567
|
-
element:
|
|
2557
|
+
element: l.element
|
|
2568
2558
|
}, null, 8, ["is", "model", "element"])) : p("", !0),
|
|
2569
2559
|
s(o).isBannerShowing ? (a(), h(s(u), {
|
|
2570
2560
|
key: 3,
|
|
@@ -2573,7 +2563,7 @@ const Nt = /* @__PURE__ */ g({
|
|
|
2573
2563
|
}, null, 8, ["model"])) : p("", !0),
|
|
2574
2564
|
d("div", {
|
|
2575
2565
|
class: "svc-question__content-actions",
|
|
2576
|
-
onFocusin:
|
|
2566
|
+
onFocusin: r
|
|
2577
2567
|
}, [
|
|
2578
2568
|
v(s(u), {
|
|
2579
2569
|
is: "sv-action-bar",
|
|
@@ -2585,7 +2575,7 @@ const Nt = /* @__PURE__ */ g({
|
|
|
2585
2575
|
], 2)), [
|
|
2586
2576
|
[s(N), { disableTabStop: !0 }]
|
|
2587
2577
|
])
|
|
2588
|
-
], 42,
|
|
2578
|
+
], 42, Sn)) : p("", !0);
|
|
2589
2579
|
}
|
|
2590
2580
|
}), ae = /* @__PURE__ */ g({
|
|
2591
2581
|
__name: "Question",
|
|
@@ -2606,7 +2596,7 @@ const Nt = /* @__PURE__ */ g({
|
|
|
2606
2596
|
"component-data": o.componentData
|
|
2607
2597
|
}, null, 8, ["element", "component-name", "component-data"]));
|
|
2608
2598
|
}
|
|
2609
|
-
}),
|
|
2599
|
+
}), Fn = /* @__PURE__ */ g({
|
|
2610
2600
|
__name: "QuestionImage",
|
|
2611
2601
|
props: {
|
|
2612
2602
|
componentName: {},
|
|
@@ -2620,7 +2610,7 @@ const Nt = /* @__PURE__ */ g({
|
|
|
2620
2610
|
), o = (n) => ({
|
|
2621
2611
|
question: n == null ? void 0 : n.filePresentationModel
|
|
2622
2612
|
});
|
|
2623
|
-
return (n,
|
|
2613
|
+
return (n, r) => (a(), h(oe, {
|
|
2624
2614
|
"create-model": e,
|
|
2625
2615
|
element: t.componentData.element,
|
|
2626
2616
|
"show-placeholder-component": !0,
|
|
@@ -2631,34 +2621,34 @@ const Nt = /* @__PURE__ */ g({
|
|
|
2631
2621
|
"adorner-component": "svc-image-question-adorner"
|
|
2632
2622
|
}, null, 8, ["element", "component-data", "component-name"]));
|
|
2633
2623
|
}
|
|
2634
|
-
}),
|
|
2624
|
+
}), Kn = {
|
|
2635
2625
|
key: 0,
|
|
2636
2626
|
class: "svc-image-question-controls"
|
|
2637
|
-
},
|
|
2627
|
+
}, Un = ["accept"], Qn = {
|
|
2638
2628
|
class: "svc-context-button",
|
|
2639
2629
|
title: void 0,
|
|
2640
2630
|
"aria-label": void 0
|
|
2641
2631
|
}, Hn = {
|
|
2642
2632
|
key: 1,
|
|
2643
2633
|
class: "svc-image-question__loading-placeholder"
|
|
2644
|
-
}, On = { class: "svc-image-question__loading" },
|
|
2634
|
+
}, On = { class: "svc-image-question__loading" }, Gn = /* @__PURE__ */ g({
|
|
2645
2635
|
__name: "Image",
|
|
2646
2636
|
props: {
|
|
2647
2637
|
model: {},
|
|
2648
2638
|
element: {}
|
|
2649
2639
|
},
|
|
2650
2640
|
setup(c) {
|
|
2651
|
-
return (t, e) => (a(),
|
|
2652
|
-
!t.model.isUploading && !t.model.isEmptyElement ? (a(),
|
|
2653
|
-
t.model.allowEdit ? (a(),
|
|
2641
|
+
return (t, e) => (a(), i(w, null, [
|
|
2642
|
+
!t.model.isUploading && !t.model.isEmptyElement ? (a(), i("div", Kn, [
|
|
2643
|
+
t.model.allowEdit ? (a(), i(w, { key: 0 }, [
|
|
2654
2644
|
d("input", {
|
|
2655
2645
|
type: "file",
|
|
2656
2646
|
"aria-hidden": "true",
|
|
2657
2647
|
tabindex: "-1",
|
|
2658
2648
|
accept: t.model.acceptedTypes,
|
|
2659
2649
|
class: "svc-choose-file-input"
|
|
2660
|
-
}, null, 8,
|
|
2661
|
-
|
|
2650
|
+
}, null, 8, Un),
|
|
2651
|
+
q((a(), i("span", Qn, [
|
|
2662
2652
|
v(s(u), {
|
|
2663
2653
|
is: "sv-svg-icon",
|
|
2664
2654
|
iconName: "icon-choosefile",
|
|
@@ -2670,14 +2660,14 @@ const Nt = /* @__PURE__ */ g({
|
|
|
2670
2660
|
])
|
|
2671
2661
|
], 64)) : p("", !0)
|
|
2672
2662
|
])) : p("", !0),
|
|
2673
|
-
t.model.isUploading && !t.model.isEmptyElement ? (a(),
|
|
2663
|
+
t.model.isUploading && !t.model.isEmptyElement ? (a(), i("div", Hn, [
|
|
2674
2664
|
d("div", On, [
|
|
2675
2665
|
v(s(u), { is: "sv-loading-indicator" })
|
|
2676
2666
|
])
|
|
2677
2667
|
])) : p("", !0)
|
|
2678
2668
|
], 64));
|
|
2679
2669
|
}
|
|
2680
|
-
}),
|
|
2670
|
+
}), Wn = { class: "svc-rating-question-content" }, jn = ["aria-label"], Jn = ["aria-label"], Zn = /* @__PURE__ */ g({
|
|
2681
2671
|
__name: "Rating",
|
|
2682
2672
|
props: {
|
|
2683
2673
|
componentData: {},
|
|
@@ -2693,39 +2683,47 @@ const Nt = /* @__PURE__ */ g({
|
|
|
2693
2683
|
[() => t.componentData.data, () => t.componentData.question]
|
|
2694
2684
|
);
|
|
2695
2685
|
return (o, n) => {
|
|
2696
|
-
var
|
|
2697
|
-
return a(),
|
|
2686
|
+
var r, l, _, y, b, f, E, R, L;
|
|
2687
|
+
return a(), i("div", Wn, [
|
|
2698
2688
|
d("div", {
|
|
2699
|
-
class:
|
|
2689
|
+
class: m((r = s(e)) == null ? void 0 : r.controlsClassNames)
|
|
2700
2690
|
}, [
|
|
2701
|
-
(
|
|
2691
|
+
(l = s(e)) != null && l.allowRemove ? q((a(), i("span", {
|
|
2702
2692
|
key: 0,
|
|
2703
|
-
|
|
2704
|
-
iconName: "icon-remove_16x16",
|
|
2705
|
-
size: "auto",
|
|
2693
|
+
class: m((_ = s(e)) == null ? void 0 : _.removeClassNames),
|
|
2706
2694
|
onClick: n[0] || (n[0] = (j) => {
|
|
2707
|
-
var
|
|
2708
|
-
return (
|
|
2695
|
+
var U;
|
|
2696
|
+
return (U = s(e)) == null ? void 0 : U.removeItem(s(e));
|
|
2709
2697
|
}),
|
|
2710
|
-
|
|
2711
|
-
title: (b = s(e)) == null ? void 0 : b.removeTooltip,
|
|
2698
|
+
role: "button",
|
|
2712
2699
|
"aria-label": (y = s(e)) == null ? void 0 : y.removeTooltip
|
|
2713
|
-
},
|
|
2700
|
+
}, [
|
|
2701
|
+
v(s(u), {
|
|
2702
|
+
is: "sv-svg-icon",
|
|
2703
|
+
iconName: "icon-remove_16x16",
|
|
2704
|
+
size: "auto",
|
|
2705
|
+
title: (b = s(e)) == null ? void 0 : b.removeTooltip
|
|
2706
|
+
}, null, 8, ["title"])
|
|
2707
|
+
], 10, jn)), [
|
|
2714
2708
|
[s(N)]
|
|
2715
2709
|
]) : p("", !0),
|
|
2716
|
-
(f = s(e)) != null && f.allowAdd ?
|
|
2710
|
+
(f = s(e)) != null && f.allowAdd ? q((a(), i("span", {
|
|
2717
2711
|
key: 1,
|
|
2718
|
-
|
|
2719
|
-
iconName: "icon-add_16x16",
|
|
2720
|
-
size: "auto",
|
|
2712
|
+
class: m((E = s(e)) == null ? void 0 : E.addClassNames),
|
|
2721
2713
|
onClick: n[1] || (n[1] = (j) => {
|
|
2722
|
-
var
|
|
2723
|
-
return (
|
|
2714
|
+
var U;
|
|
2715
|
+
return (U = s(e)) == null ? void 0 : U.addItem(s(e));
|
|
2724
2716
|
}),
|
|
2725
|
-
|
|
2726
|
-
|
|
2727
|
-
|
|
2728
|
-
|
|
2717
|
+
role: "button",
|
|
2718
|
+
"aria-label": (R = s(e)) == null ? void 0 : R.addTooltip
|
|
2719
|
+
}, [
|
|
2720
|
+
v(s(u), {
|
|
2721
|
+
is: "sv-svg-icon",
|
|
2722
|
+
iconName: "icon-add_16x16",
|
|
2723
|
+
size: "auto",
|
|
2724
|
+
title: (L = s(e)) == null ? void 0 : L.addTooltip
|
|
2725
|
+
}, null, 8, ["title"])
|
|
2726
|
+
], 10, Jn)), [
|
|
2729
2727
|
[s(N)]
|
|
2730
2728
|
]) : p("", !0)
|
|
2731
2729
|
], 2),
|
|
@@ -2733,61 +2731,61 @@ const Nt = /* @__PURE__ */ g({
|
|
|
2733
2731
|
]);
|
|
2734
2732
|
};
|
|
2735
2733
|
}
|
|
2736
|
-
}),
|
|
2734
|
+
}), Xn = {
|
|
2737
2735
|
key: 0,
|
|
2738
2736
|
class: "svc-matrix-cell__question-controls"
|
|
2739
|
-
},
|
|
2737
|
+
}, Yn = /* @__PURE__ */ g({
|
|
2740
2738
|
__name: "MatrixCell",
|
|
2741
2739
|
props: {
|
|
2742
2740
|
componentData: {}
|
|
2743
2741
|
},
|
|
2744
2742
|
setup(c) {
|
|
2745
|
-
const t = c, e =
|
|
2743
|
+
const t = c, e = $(() => t.componentData.creator), o = $(() => t.componentData.row), n = $(() => t.componentData.column), r = $(() => t.componentData.element), l = $(
|
|
2746
2744
|
() => t.componentData.question
|
|
2747
|
-
),
|
|
2745
|
+
), _ = z(
|
|
2748
2746
|
() => {
|
|
2749
|
-
var
|
|
2747
|
+
var y;
|
|
2750
2748
|
return t.componentData ? new Be(
|
|
2751
2749
|
e.value,
|
|
2752
|
-
i.value,
|
|
2753
2750
|
r.value,
|
|
2751
|
+
l.value,
|
|
2754
2752
|
o.value,
|
|
2755
|
-
n.value || ((
|
|
2753
|
+
n.value || ((y = r.value.cell) == null ? void 0 : y.column)
|
|
2756
2754
|
) : void 0;
|
|
2757
2755
|
},
|
|
2758
2756
|
[
|
|
2759
2757
|
() => e.value,
|
|
2760
2758
|
() => o.value,
|
|
2761
2759
|
() => n.value,
|
|
2762
|
-
() =>
|
|
2760
|
+
() => l.value
|
|
2763
2761
|
]
|
|
2764
2762
|
);
|
|
2765
|
-
return (
|
|
2763
|
+
return (y, b) => {
|
|
2766
2764
|
var f, E;
|
|
2767
|
-
return a(),
|
|
2765
|
+
return a(), i("div", {
|
|
2768
2766
|
tabindex: "-1",
|
|
2769
2767
|
class: "svc-matrix-cell",
|
|
2770
|
-
onClick:
|
|
2768
|
+
onClick: b[1] || (b[1] = (R) => {
|
|
2771
2769
|
var L;
|
|
2772
|
-
return (L = s(
|
|
2770
|
+
return (L = s(_)) == null ? void 0 : L.selectContext(s(_), R);
|
|
2773
2771
|
}),
|
|
2774
|
-
onMouseover:
|
|
2772
|
+
onMouseover: b[2] || (b[2] = (R) => {
|
|
2775
2773
|
var L;
|
|
2776
|
-
return (L = s(
|
|
2774
|
+
return (L = s(_)) == null ? void 0 : L.hover(R, R.currentTarget);
|
|
2777
2775
|
}),
|
|
2778
|
-
onMouseleave:
|
|
2776
|
+
onMouseleave: b[3] || (b[3] = (R) => {
|
|
2779
2777
|
var L;
|
|
2780
|
-
return (L = s(
|
|
2778
|
+
return (L = s(_)) == null ? void 0 : L.hover(R, R.currentTarget);
|
|
2781
2779
|
})
|
|
2782
2780
|
}, [
|
|
2783
2781
|
d("div", {
|
|
2784
|
-
class:
|
|
2782
|
+
class: m(["svc-matrix-cell--selected", { "svc-visible": (f = s(_)) == null ? void 0 : f.isSelected }])
|
|
2785
2783
|
}, null, 2),
|
|
2786
|
-
x(
|
|
2787
|
-
(E = s(
|
|
2788
|
-
|
|
2784
|
+
x(y.$slots, "default"),
|
|
2785
|
+
(E = s(_)) != null && E.isSupportCellEditor ? (a(), i("div", Xn, [
|
|
2786
|
+
q((a(), i("span", {
|
|
2789
2787
|
class: "svc-matrix-cell__question-controls-button svc-context-button",
|
|
2790
|
-
onClick:
|
|
2788
|
+
onClick: b[0] || (b[0] = (R) => s(_).editQuestion(s(_), R))
|
|
2791
2789
|
}, [
|
|
2792
2790
|
v(s(u), {
|
|
2793
2791
|
is: "sv-svg-icon",
|
|
@@ -2801,29 +2799,29 @@ const Nt = /* @__PURE__ */ g({
|
|
|
2801
2799
|
], 32);
|
|
2802
2800
|
};
|
|
2803
2801
|
}
|
|
2804
|
-
}),
|
|
2802
|
+
}), xn = { class: "svc-question__adorner" }, ea = { class: "svc-question__content svc-question__content--in-popup" }, oa = /* @__PURE__ */ g({
|
|
2805
2803
|
__name: "CellQuestion",
|
|
2806
2804
|
props: {
|
|
2807
2805
|
componentName: {},
|
|
2808
2806
|
componentData: {}
|
|
2809
2807
|
},
|
|
2810
2808
|
setup(c) {
|
|
2811
|
-
const t = c, e =
|
|
2809
|
+
const t = c, e = $(
|
|
2812
2810
|
() => t.componentData.element
|
|
2813
2811
|
);
|
|
2814
|
-
return T(() => e.value), (o, n) => (a(),
|
|
2815
|
-
d("div",
|
|
2812
|
+
return T(() => e.value), (o, n) => (a(), i("div", xn, [
|
|
2813
|
+
d("div", ea, [
|
|
2816
2814
|
v(s(u), A({ is: o.componentName }, o.componentData), null, 16, ["is"])
|
|
2817
2815
|
])
|
|
2818
2816
|
]));
|
|
2819
2817
|
}
|
|
2820
|
-
}),
|
|
2818
|
+
}), sa = ["data-sv-drop-target-survey-element"], ta = { class: "svc-fake-title" }, na = /* @__PURE__ */ d("div", { class: "svc-question__drop-indicator svc-question__drop-indicator--left" }, null, -1), aa = /* @__PURE__ */ d("div", { class: "svc-question__drop-indicator svc-question__drop-indicator--right" }, null, -1), la = /* @__PURE__ */ d("div", { class: "svc-question__drop-indicator svc-question__drop-indicator--top" }, null, -1), ia = /* @__PURE__ */ d("div", { class: "svc-question__drop-indicator svc-question__drop-indicator--bottom" }, null, -1), ra = { class: "svc-question__top-actions" }, da = {
|
|
2821
2819
|
key: 0,
|
|
2822
2820
|
class: "svc-panel__placeholder_frame-wrapper"
|
|
2823
|
-
},
|
|
2821
|
+
}, ca = { class: "svc-panel__placeholder_frame" }, ua = { class: "svc-panel__placeholder" }, pa = { class: "svc-add-new-item-button__text" }, va = {
|
|
2824
2822
|
key: 1,
|
|
2825
2823
|
class: "svc-panel__add-new-question-container"
|
|
2826
|
-
},
|
|
2824
|
+
}, ma = { class: "svc-panel__question-type-selector-popup" }, _a = { class: "svc-panel__add-new-question-wrapper" }, ga = /* @__PURE__ */ g({
|
|
2827
2825
|
__name: "Panel",
|
|
2828
2826
|
props: {
|
|
2829
2827
|
componentName: {},
|
|
@@ -2843,42 +2841,42 @@ const Nt = /* @__PURE__ */ g({
|
|
|
2843
2841
|
), o = (n) => {
|
|
2844
2842
|
n.stopPropagation(), e.value.addNewQuestion();
|
|
2845
2843
|
};
|
|
2846
|
-
return (n,
|
|
2844
|
+
return (n, r) => s(e) && !s(e).isDisposed ? (a(), i("div", {
|
|
2847
2845
|
key: 0,
|
|
2848
|
-
class:
|
|
2849
|
-
onDblclick:
|
|
2850
|
-
onMouseover:
|
|
2851
|
-
onMouseleave:
|
|
2846
|
+
class: m(["svc-question__adorner", s(e).rootCss()]),
|
|
2847
|
+
onDblclick: r[3] || (r[3] = (l) => s(e).dblclick(l)),
|
|
2848
|
+
onMouseover: r[4] || (r[4] = (l) => s(e).hover(l, l.currentTarget)),
|
|
2849
|
+
onMouseleave: r[5] || (r[5] = (l) => s(e).hover(l, l.currentTarget)),
|
|
2852
2850
|
"data-sv-drop-target-survey-element": s(e).element.name || null,
|
|
2853
2851
|
ref: "root"
|
|
2854
2852
|
}, [
|
|
2855
|
-
s(e).showHiddenTitle ? (a(),
|
|
2853
|
+
s(e).showHiddenTitle ? (a(), i("div", {
|
|
2856
2854
|
key: 0,
|
|
2857
|
-
class:
|
|
2855
|
+
class: m(s(e).cssCollapsedHiddenHeader)
|
|
2858
2856
|
}, [
|
|
2859
2857
|
s(e).element.hasTitle ? (a(), h(s(u), {
|
|
2860
2858
|
key: 0,
|
|
2861
2859
|
is: "survey-element-title",
|
|
2862
2860
|
element: s(e).element
|
|
2863
|
-
}, null, 8, ["element"])) : (a(),
|
|
2861
|
+
}, null, 8, ["element"])) : (a(), i("div", {
|
|
2864
2862
|
key: 1,
|
|
2865
|
-
class:
|
|
2863
|
+
class: m(s(e).cssCollapsedHiddenTitle)
|
|
2866
2864
|
}, [
|
|
2867
|
-
d("span",
|
|
2865
|
+
d("span", ta, k(s(e).element.name), 1)
|
|
2868
2866
|
], 2))
|
|
2869
2867
|
], 2)) : p("", !0),
|
|
2870
|
-
|
|
2871
|
-
class:
|
|
2872
|
-
onClick:
|
|
2868
|
+
q((a(), i("div", {
|
|
2869
|
+
class: m(s(e).css()),
|
|
2870
|
+
onClick: r[2] || (r[2] = (l) => s(e).element.isInteractiveDesignElement ? s(e).select(s(e), l) : null)
|
|
2873
2871
|
}, [
|
|
2874
|
-
oa,
|
|
2875
|
-
sa,
|
|
2876
|
-
ta,
|
|
2877
2872
|
na,
|
|
2878
|
-
|
|
2873
|
+
aa,
|
|
2874
|
+
la,
|
|
2875
|
+
ia,
|
|
2876
|
+
s(e).allowDragging && s(e).element.isInteractiveDesignElement ? (a(), i("div", {
|
|
2879
2877
|
key: 0,
|
|
2880
2878
|
class: "svc-question__drag-area",
|
|
2881
|
-
onPointerdown:
|
|
2879
|
+
onPointerdown: r[0] || (r[0] = (l) => s(e).onPointerDown(l))
|
|
2882
2880
|
}, [
|
|
2883
2881
|
v(s(u), {
|
|
2884
2882
|
is: "sv-svg-icon",
|
|
@@ -2886,7 +2884,7 @@ const Nt = /* @__PURE__ */ g({
|
|
|
2886
2884
|
iconName: "icon-drag-area-indicator_24x16",
|
|
2887
2885
|
size: "auto"
|
|
2888
2886
|
}),
|
|
2889
|
-
d("div",
|
|
2887
|
+
d("div", ra, [
|
|
2890
2888
|
v(s(u), {
|
|
2891
2889
|
is: "sv-action-bar",
|
|
2892
2890
|
model: s(e).topActionContainer,
|
|
@@ -2894,12 +2892,12 @@ const Nt = /* @__PURE__ */ g({
|
|
|
2894
2892
|
}, null, 8, ["model"])
|
|
2895
2893
|
])
|
|
2896
2894
|
], 32)) : p("", !0),
|
|
2897
|
-
s(e).needToRenderContent ? (a(),
|
|
2895
|
+
s(e).needToRenderContent ? (a(), i(w, { key: 1 }, [
|
|
2898
2896
|
v(s(u), A({ is: n.componentName }, n.componentData), null, 16, ["is"]),
|
|
2899
|
-
s(e).isEmptyElement ? (a(),
|
|
2900
|
-
d("div",
|
|
2901
|
-
d("div",
|
|
2902
|
-
s(e).showAddQuestionButton ?
|
|
2897
|
+
s(e).isEmptyElement ? (a(), i("div", da, [
|
|
2898
|
+
d("div", ca, [
|
|
2899
|
+
d("div", ua, k(s(e).placeholderText), 1),
|
|
2900
|
+
s(e).showAddQuestionButton ? q((a(), i("div", {
|
|
2903
2901
|
key: 0,
|
|
2904
2902
|
class: "svc-panel__add-new-question svc-action-button",
|
|
2905
2903
|
onClick: o
|
|
@@ -2910,20 +2908,20 @@ const Nt = /* @__PURE__ */ g({
|
|
|
2910
2908
|
iconName: "icon-add_24x24",
|
|
2911
2909
|
size: "auto"
|
|
2912
2910
|
}),
|
|
2913
|
-
d("span",
|
|
2911
|
+
d("span", pa, k(s(e).addNewQuestionText), 1)
|
|
2914
2912
|
])), [
|
|
2915
2913
|
[s(N)]
|
|
2916
2914
|
]) : p("", !0)
|
|
2917
2915
|
])
|
|
2918
2916
|
])) : p("", !0),
|
|
2919
|
-
!s(e).isEmptyElement && s(e).showAddQuestionButton ? (a(),
|
|
2920
|
-
d("div",
|
|
2917
|
+
!s(e).isEmptyElement && s(e).showAddQuestionButton ? (a(), i("div", va, [
|
|
2918
|
+
d("div", ma, [
|
|
2921
2919
|
v(s(u), {
|
|
2922
2920
|
is: "sv-popup",
|
|
2923
2921
|
model: s(e).questionTypeSelectorModel.popupModel
|
|
2924
2922
|
}, null, 8, ["model"])
|
|
2925
2923
|
]),
|
|
2926
|
-
d("div",
|
|
2924
|
+
d("div", _a, [
|
|
2927
2925
|
v(s(u), {
|
|
2928
2926
|
is: "svc-add-new-question-btn",
|
|
2929
2927
|
item: { data: s(e) },
|
|
@@ -2932,10 +2930,10 @@ const Nt = /* @__PURE__ */ g({
|
|
|
2932
2930
|
}, null, 8, ["item"])
|
|
2933
2931
|
])
|
|
2934
2932
|
])) : p("", !0),
|
|
2935
|
-
s(e).element.isInteractiveDesignElement ? (a(),
|
|
2933
|
+
s(e).element.isInteractiveDesignElement ? (a(), i("div", {
|
|
2936
2934
|
key: 2,
|
|
2937
2935
|
class: "svc-question__content-actions",
|
|
2938
|
-
onFocusin:
|
|
2936
|
+
onFocusin: r[1] || (r[1] = (l) => s(e).select(s(e), l))
|
|
2939
2937
|
}, [
|
|
2940
2938
|
v(s(u), {
|
|
2941
2939
|
is: "sv-action-bar",
|
|
@@ -2947,179 +2945,181 @@ const Nt = /* @__PURE__ */ g({
|
|
|
2947
2945
|
], 2)), [
|
|
2948
2946
|
[s(N), { disableTabStop: !0 }]
|
|
2949
2947
|
])
|
|
2950
|
-
], 42,
|
|
2948
|
+
], 42, sa)) : p("", !0);
|
|
2951
2949
|
}
|
|
2952
|
-
}),
|
|
2950
|
+
}), ba = ["data-sv-drop-target-item-value"], ya = /* @__PURE__ */ d("div", { class: "svc-item-value__ghost" }, null, -1), ha = { class: "svc-item-value-controls" }, Ca = {
|
|
2953
2951
|
key: 0,
|
|
2954
2952
|
class: "svc-item-value-controls__button svc-item-value-controls__drag"
|
|
2955
|
-
},
|
|
2953
|
+
}, qa = ["aria-label"], $a = ["aria-label"], ka = /* @__PURE__ */ g({
|
|
2956
2954
|
__name: "ItemValue",
|
|
2957
2955
|
props: {
|
|
2958
2956
|
componentName: {},
|
|
2959
2957
|
componentData: {}
|
|
2960
2958
|
},
|
|
2961
2959
|
setup(c) {
|
|
2962
|
-
const t = I(), e = c, o =
|
|
2963
|
-
() =>
|
|
2964
|
-
(
|
|
2965
|
-
|
|
2960
|
+
const t = I(), e = c, o = $(() => e.componentData.data.creator), n = $(() => e.componentData.question), r = $(() => e.componentData.item), l = G(
|
|
2961
|
+
() => r.value,
|
|
2962
|
+
(y, b) => {
|
|
2963
|
+
y && t.value && y.setRootElement(t.value), b && b.setRootElement(void 0);
|
|
2966
2964
|
}
|
|
2967
2965
|
);
|
|
2968
2966
|
P(() => {
|
|
2969
|
-
t.value &&
|
|
2967
|
+
t.value && r.value && r.value.setRootElement(t.value);
|
|
2970
2968
|
}), K(() => {
|
|
2971
|
-
|
|
2969
|
+
r.value.setRootElement(void 0);
|
|
2972
2970
|
});
|
|
2973
|
-
const
|
|
2974
|
-
() => new Ie(o.value, n.value,
|
|
2975
|
-
[() => o.value, () => n.value, () =>
|
|
2976
|
-
(
|
|
2977
|
-
|
|
2971
|
+
const _ = z(
|
|
2972
|
+
() => new Ie(o.value, n.value, r.value),
|
|
2973
|
+
[() => o.value, () => n.value, () => r.value],
|
|
2974
|
+
(y) => {
|
|
2975
|
+
y.dispose();
|
|
2978
2976
|
}
|
|
2979
2977
|
);
|
|
2980
2978
|
return X(() => {
|
|
2981
|
-
|
|
2982
|
-
}), (
|
|
2983
|
-
class:
|
|
2984
|
-
"svc-item-value--new": s(
|
|
2985
|
-
"svc-item-value--dragging": s(
|
|
2986
|
-
"svc-item-value--ghost": s(
|
|
2987
|
-
"svc-item-value--movedown": s(
|
|
2988
|
-
"svc-item-value--moveup": s(
|
|
2979
|
+
l();
|
|
2980
|
+
}), (y, b) => (a(), i("div", {
|
|
2981
|
+
class: m(["svc-item-value-wrapper", {
|
|
2982
|
+
"svc-item-value--new": s(_).isNew,
|
|
2983
|
+
"svc-item-value--dragging": s(_).isDragging,
|
|
2984
|
+
"svc-item-value--ghost": s(_).isDragDropGhost,
|
|
2985
|
+
"svc-item-value--movedown": s(_).isDragDropMoveDown,
|
|
2986
|
+
"svc-item-value--moveup": s(_).isDragDropMoveUp
|
|
2989
2987
|
}]),
|
|
2990
|
-
onPointerdown:
|
|
2991
|
-
"data-sv-drop-target-item-value": s(
|
|
2988
|
+
onPointerdown: b[4] || (b[4] = (f) => s(_).onPointerDown(f)),
|
|
2989
|
+
"data-sv-drop-target-item-value": s(_).isDraggable ? r.value.value : null,
|
|
2992
2990
|
ref_key: "root",
|
|
2993
2991
|
ref: t
|
|
2994
2992
|
}, [
|
|
2995
|
-
|
|
2996
|
-
d("div",
|
|
2997
|
-
s(
|
|
2993
|
+
ya,
|
|
2994
|
+
d("div", ha, [
|
|
2995
|
+
s(_).isDraggable ? (a(), i("span", Ca, [
|
|
2998
2996
|
v(s(u), {
|
|
2999
2997
|
is: "sv-svg-icon",
|
|
3000
2998
|
class: "svc-item-value-controls__drag-icon",
|
|
3001
2999
|
iconName: "icon-drag-24x24",
|
|
3002
3000
|
size: "auto",
|
|
3003
|
-
title: s(
|
|
3001
|
+
title: s(_).dragTooltip
|
|
3004
3002
|
}, null, 8, ["title"])
|
|
3005
3003
|
])) : p("", !0),
|
|
3006
|
-
s(
|
|
3004
|
+
s(_).allowAdd ? q((a(), i("span", {
|
|
3007
3005
|
key: 1,
|
|
3008
3006
|
class: "svc-item-value-controls__button svc-item-value-controls__add",
|
|
3009
|
-
onClick:
|
|
3010
|
-
"
|
|
3007
|
+
onClick: b[0] || (b[0] = (f) => s(_).add(s(_))),
|
|
3008
|
+
role: "button",
|
|
3009
|
+
"aria-label": s(_).tooltip
|
|
3011
3010
|
}, [
|
|
3012
3011
|
v(s(u), {
|
|
3013
3012
|
is: "sv-svg-icon",
|
|
3014
3013
|
iconName: "icon-add_16x16",
|
|
3015
3014
|
size: "auto",
|
|
3016
|
-
title:
|
|
3017
|
-
})
|
|
3018
|
-
])), [
|
|
3015
|
+
title: s(_).tooltip
|
|
3016
|
+
}, null, 8, ["title"])
|
|
3017
|
+
], 8, qa)), [
|
|
3019
3018
|
[s(N)]
|
|
3020
3019
|
]) : p("", !0),
|
|
3021
|
-
s(
|
|
3020
|
+
s(_).allowRemove ? q((a(), i("span", {
|
|
3022
3021
|
key: 2,
|
|
3023
3022
|
class: "svc-item-value-controls__button svc-item-value-controls__remove",
|
|
3024
|
-
onClick:
|
|
3025
|
-
onBlur:
|
|
3026
|
-
"
|
|
3023
|
+
onClick: b[1] || (b[1] = (f) => s(_).remove(s(_))),
|
|
3024
|
+
onBlur: b[2] || (b[2] = (f) => s(_).onFocusOut(f)),
|
|
3025
|
+
role: "button",
|
|
3026
|
+
"aria-label": s(_).tooltip
|
|
3027
3027
|
}, [
|
|
3028
3028
|
v(s(u), {
|
|
3029
3029
|
is: "sv-svg-icon",
|
|
3030
3030
|
iconName: "icon-remove_16x16",
|
|
3031
3031
|
size: "auto",
|
|
3032
|
-
title:
|
|
3033
|
-
})
|
|
3034
|
-
],
|
|
3032
|
+
title: s(_).tooltip
|
|
3033
|
+
}, null, 8, ["title"])
|
|
3034
|
+
], 40, $a)), [
|
|
3035
3035
|
[s(N)]
|
|
3036
3036
|
]) : p("", !0)
|
|
3037
3037
|
]),
|
|
3038
3038
|
d("div", {
|
|
3039
3039
|
class: "svc-item-value__item",
|
|
3040
|
-
onClick:
|
|
3040
|
+
onClick: b[3] || (b[3] = (f) => s(_).select(s(_), f))
|
|
3041
3041
|
}, [
|
|
3042
|
-
v(s(u), A({ is:
|
|
3042
|
+
v(s(u), A({ is: y.componentName }, y.componentData), null, 16, ["is"])
|
|
3043
3043
|
])
|
|
3044
|
-
], 42,
|
|
3044
|
+
], 42, ba));
|
|
3045
3045
|
}
|
|
3046
|
-
}),
|
|
3046
|
+
}), fa = ["data-sv-drop-target-item-value"], wa = { class: "svc-image-item-value-wrapper__content" }, Ta = ["accept"], Da = {
|
|
3047
3047
|
key: 0,
|
|
3048
3048
|
class: "svc-image-item-value__item"
|
|
3049
|
-
},
|
|
3049
|
+
}, Na = {
|
|
3050
3050
|
key: 2,
|
|
3051
3051
|
class: "svc-context-container svc-image-item-value-controls"
|
|
3052
|
-
},
|
|
3052
|
+
}, Ma = { class: "svc-image-item-value__item" }, Sa = { class: "sd-imagepicker__item sd-imagepicker__item--inline" }, Ba = { class: "sd-imagepicker__label" }, Ia = {
|
|
3053
3053
|
key: 0,
|
|
3054
3054
|
class: "svc-image-item-value__loading"
|
|
3055
|
-
},
|
|
3055
|
+
}, Ea = {
|
|
3056
3056
|
key: 0,
|
|
3057
3057
|
class: "svc-image-item-value__placeholder"
|
|
3058
|
-
},
|
|
3058
|
+
}, Pa = { key: 1 }, Ra = /* @__PURE__ */ g({
|
|
3059
3059
|
__name: "ImageItemValue",
|
|
3060
3060
|
props: {
|
|
3061
3061
|
componentName: {},
|
|
3062
3062
|
componentData: {}
|
|
3063
3063
|
},
|
|
3064
3064
|
setup(c) {
|
|
3065
|
-
const t = c, e =
|
|
3065
|
+
const t = c, e = $(() => t.componentData.data.creator), o = $(() => t.componentData.question), n = $(() => t.componentData.item), r = I(), l = z(
|
|
3066
3066
|
() => {
|
|
3067
|
-
const
|
|
3067
|
+
const b = new Ee(
|
|
3068
3068
|
e.value,
|
|
3069
3069
|
o.value,
|
|
3070
3070
|
n.value,
|
|
3071
3071
|
null,
|
|
3072
3072
|
null
|
|
3073
3073
|
);
|
|
3074
|
-
return
|
|
3074
|
+
return r != null && r.value && (b.itemsRoot = r.value), b;
|
|
3075
3075
|
},
|
|
3076
3076
|
[() => e.value, () => o.value, () => n.value],
|
|
3077
|
-
(
|
|
3078
|
-
|
|
3077
|
+
(b) => {
|
|
3078
|
+
b.dispose();
|
|
3079
3079
|
}
|
|
3080
|
-
),
|
|
3081
|
-
|
|
3082
|
-
},
|
|
3083
|
-
const
|
|
3080
|
+
), _ = (b) => {
|
|
3081
|
+
b.preventDefault();
|
|
3082
|
+
}, y = $(() => {
|
|
3083
|
+
const b = !l.value.getIsNewItemSingle();
|
|
3084
3084
|
return {
|
|
3085
|
-
width:
|
|
3086
|
-
height:
|
|
3085
|
+
width: b ? o.value.renderedImageWidth + "px" : void 0,
|
|
3086
|
+
height: b ? o.value.renderedImageHeight + "px" : void 0
|
|
3087
3087
|
};
|
|
3088
3088
|
});
|
|
3089
3089
|
return P(() => {
|
|
3090
|
-
|
|
3091
|
-
}), (
|
|
3092
|
-
onPointerdown: f[5] || (f[5] = (E) => s(
|
|
3093
|
-
class:
|
|
3094
|
-
"data-sv-drop-target-item-value": s(
|
|
3090
|
+
r.value && (l.value.itemsRoot = r.value);
|
|
3091
|
+
}), (b, f) => (a(), i("div", {
|
|
3092
|
+
onPointerdown: f[5] || (f[5] = (E) => s(l).onPointerDown(E)),
|
|
3093
|
+
class: m(s(l).getRootCss()),
|
|
3094
|
+
"data-sv-drop-target-item-value": s(l).isDraggable ? n.value.value : null,
|
|
3095
3095
|
ref_key: "root",
|
|
3096
|
-
ref:
|
|
3097
|
-
onDragstart:
|
|
3098
|
-
onDragenter: f[6] || (f[6] = (E) => s(
|
|
3099
|
-
onDragover: f[7] || (f[7] = (E) => s(
|
|
3100
|
-
onDragleave: f[8] || (f[8] = (E) => s(
|
|
3101
|
-
onDrop: f[9] || (f[9] = (E) => s(
|
|
3096
|
+
ref: r,
|
|
3097
|
+
onDragstart: _,
|
|
3098
|
+
onDragenter: f[6] || (f[6] = (E) => s(l).onDragEnter(E)),
|
|
3099
|
+
onDragover: f[7] || (f[7] = (E) => s(l).onDragOver(E)),
|
|
3100
|
+
onDragleave: f[8] || (f[8] = (E) => s(l).onDragLeave(E)),
|
|
3101
|
+
onDrop: f[9] || (f[9] = (E) => s(l).onDrop(E))
|
|
3102
3102
|
}, [
|
|
3103
3103
|
d("div", {
|
|
3104
3104
|
class: "svc-image-item-value-wrapper__ghost",
|
|
3105
|
-
style: F(
|
|
3105
|
+
style: F(y.value)
|
|
3106
3106
|
}, null, 4),
|
|
3107
|
-
d("div",
|
|
3107
|
+
d("div", wa, [
|
|
3108
3108
|
d("input", {
|
|
3109
3109
|
type: "file",
|
|
3110
3110
|
"aria-hidden": "true",
|
|
3111
3111
|
tabindex: "-1",
|
|
3112
|
-
accept: s(
|
|
3112
|
+
accept: s(l).acceptedTypes,
|
|
3113
3113
|
class: "svc-choose-file-input"
|
|
3114
|
-
}, null, 8,
|
|
3115
|
-
!s(
|
|
3116
|
-
s(
|
|
3117
|
-
v(s(u), A({ is:
|
|
3114
|
+
}, null, 8, Ta),
|
|
3115
|
+
!s(l).isNew && !s(l).isUploading ? (a(), i(w, { key: 0 }, [
|
|
3116
|
+
s(l).isNew ? p("", !0) : (a(), i("div", Da, [
|
|
3117
|
+
v(s(u), A({ is: b.componentName }, b.componentData), null, 16, ["is"])
|
|
3118
3118
|
])),
|
|
3119
|
-
s(
|
|
3119
|
+
s(l).isDraggable && s(l).canRenderControls ? (a(), i("span", {
|
|
3120
3120
|
key: 1,
|
|
3121
3121
|
class: "svc-context-button svc-image-item-value-controls__drag-area-indicator",
|
|
3122
|
-
onPointerdown: f[0] || (f[0] = (E) => s(
|
|
3122
|
+
onPointerdown: f[0] || (f[0] = (E) => s(l).onPointerDown(E)),
|
|
3123
3123
|
title: void 0,
|
|
3124
3124
|
"aria-label": void 0
|
|
3125
3125
|
}, [
|
|
@@ -3129,10 +3129,10 @@ const Nt = /* @__PURE__ */ g({
|
|
|
3129
3129
|
size: "auto"
|
|
3130
3130
|
})
|
|
3131
3131
|
], 32)) : p("", !0),
|
|
3132
|
-
s(
|
|
3133
|
-
|
|
3132
|
+
s(l).canRenderControls ? (a(), i("div", Na, [
|
|
3133
|
+
q((a(), i("span", {
|
|
3134
3134
|
class: "svc-context-button",
|
|
3135
|
-
onClick: f[1] || (f[1] = (E) => s(
|
|
3135
|
+
onClick: f[1] || (f[1] = (E) => s(l).chooseFile(s(l))),
|
|
3136
3136
|
title: void 0,
|
|
3137
3137
|
"aria-label": void 0
|
|
3138
3138
|
}, [
|
|
@@ -3141,14 +3141,14 @@ const Nt = /* @__PURE__ */ g({
|
|
|
3141
3141
|
role: "button",
|
|
3142
3142
|
iconName: "icon-choosefile",
|
|
3143
3143
|
size: "auto",
|
|
3144
|
-
title: s(
|
|
3144
|
+
title: s(l).selectFileTitle
|
|
3145
3145
|
}, null, 8, ["title"])
|
|
3146
3146
|
])), [
|
|
3147
3147
|
[s(N)]
|
|
3148
3148
|
]),
|
|
3149
|
-
|
|
3149
|
+
q((a(), i("span", {
|
|
3150
3150
|
class: "svc-context-button svc-context-button--danger",
|
|
3151
|
-
onClick: f[2] || (f[2] = (E) => s(
|
|
3151
|
+
onClick: f[2] || (f[2] = (E) => s(l).remove(s(l))),
|
|
3152
3152
|
title: void 0,
|
|
3153
3153
|
"aria-label": void 0
|
|
3154
3154
|
}, [
|
|
@@ -3157,119 +3157,119 @@ const Nt = /* @__PURE__ */ g({
|
|
|
3157
3157
|
role: "button",
|
|
3158
3158
|
iconName: "icon-delete",
|
|
3159
3159
|
size: "auto",
|
|
3160
|
-
title: s(
|
|
3160
|
+
title: s(l).removeFileTitle
|
|
3161
3161
|
}, null, 8, ["title"])
|
|
3162
3162
|
])), [
|
|
3163
3163
|
[s(N)]
|
|
3164
3164
|
])
|
|
3165
3165
|
])) : p("", !0)
|
|
3166
|
-
], 64)) : (a(),
|
|
3167
|
-
d("div",
|
|
3168
|
-
d("div",
|
|
3169
|
-
d("label",
|
|
3166
|
+
], 64)) : (a(), i(w, { key: 1 }, [
|
|
3167
|
+
d("div", Ma, [
|
|
3168
|
+
d("div", Sa, [
|
|
3169
|
+
d("label", Ba, [
|
|
3170
3170
|
d("div", {
|
|
3171
|
-
style: F(
|
|
3171
|
+
style: F(y.value),
|
|
3172
3172
|
class: "sd-imagepicker__image"
|
|
3173
3173
|
}, [
|
|
3174
|
-
s(
|
|
3174
|
+
s(l).isUploading ? (a(), i("div", Ia, [
|
|
3175
3175
|
v(s(u), { is: "sv-loading-indicator" })
|
|
3176
3176
|
])) : p("", !0)
|
|
3177
3177
|
], 4)
|
|
3178
3178
|
])
|
|
3179
3179
|
])
|
|
3180
3180
|
]),
|
|
3181
|
-
s(
|
|
3181
|
+
s(l).allowAdd && !s(l).isUploading ? (a(), i("div", {
|
|
3182
3182
|
key: 0,
|
|
3183
3183
|
class: "svc-image-item-value-controls",
|
|
3184
3184
|
onPointerdown: f[4] || (f[4] = (E) => E.stopPropagation())
|
|
3185
3185
|
}, [
|
|
3186
|
-
s(
|
|
3187
|
-
|
|
3188
|
-
class:
|
|
3189
|
-
onClick: f[3] || (f[3] = (E) => s(
|
|
3186
|
+
s(l).showPlaceholder ? (a(), i("span", Ea, k(s(l).placeholderText), 1)) : p("", !0),
|
|
3187
|
+
q((a(), i("span", {
|
|
3188
|
+
class: m(s(l).addButtonCss),
|
|
3189
|
+
onClick: f[3] || (f[3] = (E) => s(l).chooseNewFile(s(l)))
|
|
3190
3190
|
}, [
|
|
3191
|
-
s(
|
|
3191
|
+
s(l).showChooseButtonAsIcon ? (a(), h(s(u), {
|
|
3192
3192
|
key: 0,
|
|
3193
3193
|
is: "sv-svg-icon",
|
|
3194
3194
|
iconName: "icon-add-lg",
|
|
3195
3195
|
size: "auto",
|
|
3196
|
-
title: s(
|
|
3197
|
-
}, null, 8, ["title"])) : (a(),
|
|
3196
|
+
title: s(l).addFileTitle
|
|
3197
|
+
}, null, 8, ["title"])) : (a(), i("span", Pa, k(s(l).chooseImageText), 1))
|
|
3198
3198
|
], 2)), [
|
|
3199
3199
|
[s(N)]
|
|
3200
3200
|
])
|
|
3201
3201
|
], 32)) : p("", !0)
|
|
3202
3202
|
], 64))
|
|
3203
3203
|
])
|
|
3204
|
-
], 42,
|
|
3204
|
+
], 42, fa));
|
|
3205
3205
|
}
|
|
3206
|
-
}),
|
|
3206
|
+
}), Va = /* @__PURE__ */ g({
|
|
3207
3207
|
__name: "QuestionEditor",
|
|
3208
3208
|
props: {
|
|
3209
3209
|
survey: {},
|
|
3210
3210
|
style: {}
|
|
3211
3211
|
},
|
|
3212
3212
|
setup(c) {
|
|
3213
|
-
const t = c, e =
|
|
3214
|
-
var
|
|
3215
|
-
return (
|
|
3216
|
-
}), o =
|
|
3217
|
-
const
|
|
3218
|
-
if (
|
|
3219
|
-
const
|
|
3220
|
-
if (
|
|
3221
|
-
return
|
|
3213
|
+
const t = c, e = $(() => {
|
|
3214
|
+
var r;
|
|
3215
|
+
return (r = t.survey) == null ? void 0 : r.getAllQuestions()[0];
|
|
3216
|
+
}), o = $(() => {
|
|
3217
|
+
const r = t.survey;
|
|
3218
|
+
if (r && e.value) {
|
|
3219
|
+
const l = r.getElementWrapperComponentName(e.value);
|
|
3220
|
+
if (l)
|
|
3221
|
+
return l;
|
|
3222
3222
|
}
|
|
3223
3223
|
return "survey-question";
|
|
3224
|
-
}), n =
|
|
3225
|
-
const
|
|
3226
|
-
let
|
|
3227
|
-
return
|
|
3224
|
+
}), n = $(() => {
|
|
3225
|
+
const r = t.survey;
|
|
3226
|
+
let l;
|
|
3227
|
+
return r && e.value && (l = r.getElementWrapperComponentData(e.value)), {
|
|
3228
3228
|
componentName: "survey-question",
|
|
3229
3229
|
componentData: {
|
|
3230
3230
|
element: e.value,
|
|
3231
|
-
data:
|
|
3231
|
+
data: l
|
|
3232
3232
|
}
|
|
3233
3233
|
};
|
|
3234
3234
|
});
|
|
3235
|
-
return (
|
|
3235
|
+
return (r, l) => (a(), i("div", {
|
|
3236
3236
|
style: F(t.style)
|
|
3237
3237
|
}, [
|
|
3238
3238
|
v(s(u), A({ is: o.value }, n.value), null, 16, ["is"])
|
|
3239
3239
|
], 4));
|
|
3240
3240
|
}
|
|
3241
|
-
}),
|
|
3241
|
+
}), Aa = ["accept"], za = /* @__PURE__ */ d("svg", null, [
|
|
3242
3242
|
/* @__PURE__ */ d("use", { "xlink:href": "#icon-image-48x48" })
|
|
3243
|
-
], -1),
|
|
3244
|
-
|
|
3245
|
-
],
|
|
3243
|
+
], -1), La = [
|
|
3244
|
+
za
|
|
3245
|
+
], Fa = { class: "svc-context-container svc-logo-image-controls" }, Ka = {
|
|
3246
3246
|
key: 2,
|
|
3247
3247
|
class: "svc-logo-image__loading"
|
|
3248
|
-
},
|
|
3248
|
+
}, Ua = /* @__PURE__ */ g({
|
|
3249
3249
|
__name: "Logo",
|
|
3250
3250
|
props: {
|
|
3251
3251
|
data: {}
|
|
3252
3252
|
},
|
|
3253
3253
|
setup(c) {
|
|
3254
|
-
const t = c, e =
|
|
3254
|
+
const t = c, e = $(() => t.data), o = $(() => e.value.survey), n = I(), r = z(
|
|
3255
3255
|
() => new Pe(e.value, null),
|
|
3256
3256
|
[() => e.value]
|
|
3257
|
-
),
|
|
3258
|
-
|
|
3257
|
+
), l = I(), _ = () => {
|
|
3258
|
+
l.value = o.value.locLogo.renderedHtml;
|
|
3259
3259
|
};
|
|
3260
3260
|
return G(
|
|
3261
3261
|
() => o.value.locLogo,
|
|
3262
|
-
(
|
|
3263
|
-
|
|
3262
|
+
(y, b) => {
|
|
3263
|
+
_(), y && y.onStringChanged.add(_), b && y.onStringChanged.remove(_);
|
|
3264
3264
|
},
|
|
3265
3265
|
{
|
|
3266
3266
|
immediate: !0
|
|
3267
3267
|
}
|
|
3268
3268
|
), P(() => {
|
|
3269
|
-
n.value && (
|
|
3269
|
+
n.value && (r.value.root = n.value);
|
|
3270
3270
|
}), K(() => {
|
|
3271
|
-
|
|
3272
|
-
}), (
|
|
3271
|
+
r.value && (r.value.root = void 0);
|
|
3272
|
+
}), (y, b) => (a(), i("div", {
|
|
3273
3273
|
class: "svc-logo-image",
|
|
3274
3274
|
ref_key: "root",
|
|
3275
3275
|
ref: n
|
|
@@ -3278,26 +3278,26 @@ const Nt = /* @__PURE__ */ g({
|
|
|
3278
3278
|
type: "file",
|
|
3279
3279
|
"aria-hidden": "true",
|
|
3280
3280
|
tabindex: "-1",
|
|
3281
|
-
accept: s(
|
|
3281
|
+
accept: s(r).acceptedTypes,
|
|
3282
3282
|
class: "svc-choose-file-input"
|
|
3283
|
-
}, null, 8,
|
|
3284
|
-
|
|
3285
|
-
s(
|
|
3283
|
+
}, null, 8, Aa),
|
|
3284
|
+
l.value ? p("", !0) : (a(), i(w, { key: 0 }, [
|
|
3285
|
+
s(r).allowEdit && !s(r).isUploading ? q((a(), i("div", {
|
|
3286
3286
|
key: 0,
|
|
3287
3287
|
class: "svc-logo-image-placeholder",
|
|
3288
|
-
onClick:
|
|
3289
|
-
},
|
|
3288
|
+
onClick: b[0] || (b[0] = (f) => s(r).chooseFile(s(r)))
|
|
3289
|
+
}, La)), [
|
|
3290
3290
|
[s(N)]
|
|
3291
3291
|
]) : p("", !0)
|
|
3292
3292
|
], 64)),
|
|
3293
|
-
|
|
3293
|
+
l.value && !s(r).isUploading ? (a(), i("div", {
|
|
3294
3294
|
key: 1,
|
|
3295
|
-
class:
|
|
3295
|
+
class: m(s(r).containerCss)
|
|
3296
3296
|
}, [
|
|
3297
|
-
d("div",
|
|
3298
|
-
|
|
3297
|
+
d("div", Fa, [
|
|
3298
|
+
q((a(), i("span", {
|
|
3299
3299
|
class: "svc-context-button",
|
|
3300
|
-
onClick:
|
|
3300
|
+
onClick: b[1] || (b[1] = (f) => s(r).chooseFile(s(r))),
|
|
3301
3301
|
title: void 0,
|
|
3302
3302
|
"aria-label": void 0
|
|
3303
3303
|
}, [
|
|
@@ -3309,9 +3309,9 @@ const Nt = /* @__PURE__ */ g({
|
|
|
3309
3309
|
])), [
|
|
3310
3310
|
[s(N)]
|
|
3311
3311
|
]),
|
|
3312
|
-
|
|
3312
|
+
q((a(), i("span", {
|
|
3313
3313
|
class: "svc-context-button svc-context-button--danger",
|
|
3314
|
-
onClick:
|
|
3314
|
+
onClick: b[2] || (b[2] = (f) => s(r).remove(s(r))),
|
|
3315
3315
|
title: void 0,
|
|
3316
3316
|
"aria-label": void 0
|
|
3317
3317
|
}, [
|
|
@@ -3329,15 +3329,15 @@ const Nt = /* @__PURE__ */ g({
|
|
|
3329
3329
|
data: o.value
|
|
3330
3330
|
}, null, 8, ["data"])
|
|
3331
3331
|
], 2)) : p("", !0),
|
|
3332
|
-
s(
|
|
3332
|
+
s(r).isUploading ? (a(), i("div", Ka, [
|
|
3333
3333
|
v(s(u), { is: "sv-loading-indicator" })
|
|
3334
3334
|
])) : p("", !0)
|
|
3335
3335
|
], 512));
|
|
3336
3336
|
}
|
|
3337
|
-
}),
|
|
3337
|
+
}), Qa = {
|
|
3338
3338
|
key: 0,
|
|
3339
3339
|
class: "svc-search"
|
|
3340
|
-
},
|
|
3340
|
+
}, Ha = { class: "svc-search__search-icon" }, Oa = ["aria-label", "placeholder"], Ga = { class: "svc-search__toolbar" }, Wa = { class: "svc-search__toolbar-counter" }, ja = /* @__PURE__ */ g({
|
|
3341
3341
|
__name: "Search",
|
|
3342
3342
|
props: {
|
|
3343
3343
|
model: {}
|
|
@@ -3345,32 +3345,32 @@ const Nt = /* @__PURE__ */ g({
|
|
|
3345
3345
|
setup(c) {
|
|
3346
3346
|
const t = c;
|
|
3347
3347
|
T(() => t.model);
|
|
3348
|
-
const e =
|
|
3348
|
+
const e = $({
|
|
3349
3349
|
get: () => t.model.filterString,
|
|
3350
3350
|
set: (o) => {
|
|
3351
3351
|
const n = t.model;
|
|
3352
3352
|
n.filterString = o;
|
|
3353
3353
|
}
|
|
3354
3354
|
});
|
|
3355
|
-
return (o, n) => o.model.isVisible ? (a(),
|
|
3356
|
-
d("div",
|
|
3355
|
+
return (o, n) => o.model.isVisible ? (a(), i("div", Qa, [
|
|
3356
|
+
d("div", Ha, [
|
|
3357
3357
|
v(s(u), {
|
|
3358
3358
|
is: "sv-svg-icon",
|
|
3359
3359
|
iconName: "icon-search",
|
|
3360
3360
|
size: "auto"
|
|
3361
3361
|
})
|
|
3362
3362
|
]),
|
|
3363
|
-
|
|
3363
|
+
q(d("input", {
|
|
3364
3364
|
type: "text",
|
|
3365
3365
|
class: "svc-search__input",
|
|
3366
|
-
"onUpdate:modelValue": n[0] || (n[0] = (
|
|
3366
|
+
"onUpdate:modelValue": n[0] || (n[0] = (r) => e.value = r),
|
|
3367
3367
|
"aria-label": o.model.filterStringPlaceholder,
|
|
3368
3368
|
placeholder: o.model.filterStringPlaceholder
|
|
3369
|
-
}, null, 8,
|
|
3369
|
+
}, null, 8, Oa), [
|
|
3370
3370
|
[de, e.value]
|
|
3371
3371
|
]),
|
|
3372
|
-
d("div",
|
|
3373
|
-
d("div",
|
|
3372
|
+
d("div", Ga, [
|
|
3373
|
+
d("div", Wa, k(o.model.matchCounterText), 1),
|
|
3374
3374
|
v(s(u), {
|
|
3375
3375
|
is: "sv-action-bar",
|
|
3376
3376
|
model: o.model.searchActionBar
|
|
@@ -3378,7 +3378,7 @@ const Nt = /* @__PURE__ */ g({
|
|
|
3378
3378
|
])
|
|
3379
3379
|
])) : p("", !0);
|
|
3380
3380
|
}
|
|
3381
|
-
}),
|
|
3381
|
+
}), Ja = ["title"], Za = /* @__PURE__ */ g({
|
|
3382
3382
|
__name: "PageNavigator",
|
|
3383
3383
|
props: {
|
|
3384
3384
|
pagesController: {},
|
|
@@ -3391,54 +3391,56 @@ const Nt = /* @__PURE__ */ g({
|
|
|
3391
3391
|
), o = I();
|
|
3392
3392
|
return P(() => {
|
|
3393
3393
|
if (t.pageEditMode !== "bypage") {
|
|
3394
|
-
const n = o.value,
|
|
3395
|
-
n &&
|
|
3394
|
+
const n = o.value, r = e.value;
|
|
3395
|
+
n && r.attachToUI(n);
|
|
3396
3396
|
}
|
|
3397
3397
|
}), X(() => {
|
|
3398
3398
|
const n = e.value;
|
|
3399
3399
|
n.stopItemsContainerHeightObserver(), n.setScrollableContainer(void 0);
|
|
3400
3400
|
}), K(() => {
|
|
3401
3401
|
e.value.dispose();
|
|
3402
|
-
}), (n,
|
|
3402
|
+
}), (n, r) => q((a(), i("div", {
|
|
3403
3403
|
class: "svc-page-navigator",
|
|
3404
3404
|
ref_key: "root",
|
|
3405
3405
|
ref: o
|
|
3406
3406
|
}, [
|
|
3407
|
-
|
|
3408
|
-
|
|
3409
|
-
|
|
3410
|
-
|
|
3411
|
-
|
|
3412
|
-
|
|
3413
|
-
|
|
3414
|
-
|
|
3415
|
-
|
|
3416
|
-
|
|
3417
|
-
|
|
3418
|
-
|
|
3407
|
+
d("div", null, [
|
|
3408
|
+
q((a(), i("div", {
|
|
3409
|
+
role: "button",
|
|
3410
|
+
class: m(["svc-page-navigator__selector svc-page-navigator__button", { "svc-page-navigator__button--pressed": s(e).isPopupOpened }]),
|
|
3411
|
+
onClick: r[0] || (r[0] = (l) => s(e).togglePageSelector(l)),
|
|
3412
|
+
title: s(e).pageSelectorCaption
|
|
3413
|
+
}, [
|
|
3414
|
+
v(s(u), {
|
|
3415
|
+
is: "sv-svg-icon",
|
|
3416
|
+
class: "svc-page-navigator__button-icon",
|
|
3417
|
+
iconName: s(e).icon,
|
|
3418
|
+
size: "auto"
|
|
3419
|
+
}, null, 8, ["iconName"])
|
|
3420
|
+
], 10, Ja)), [
|
|
3421
|
+
[s(N)]
|
|
3422
|
+
]),
|
|
3419
3423
|
v(s(u), {
|
|
3420
3424
|
is: "sv-popup",
|
|
3421
3425
|
model: s(e).popupModel
|
|
3422
3426
|
}, null, 8, ["model"])
|
|
3423
|
-
], 10, Oa)), [
|
|
3424
|
-
[s(N)]
|
|
3425
3427
|
]),
|
|
3426
3428
|
d("div", null, [
|
|
3427
|
-
(a(!0),
|
|
3429
|
+
(a(!0), i(w, null, V(s(e).visibleItems, (l) => (a(), h(s(u), {
|
|
3428
3430
|
is: "svc-page-navigator-item",
|
|
3429
|
-
key:
|
|
3430
|
-
model:
|
|
3431
|
+
key: l.id,
|
|
3432
|
+
model: l
|
|
3431
3433
|
}, null, 8, ["model"]))), 128))
|
|
3432
3434
|
])
|
|
3433
3435
|
], 512)), [
|
|
3434
|
-
[
|
|
3436
|
+
[Q, s(e).visible]
|
|
3435
3437
|
]);
|
|
3436
3438
|
}
|
|
3437
|
-
}),
|
|
3438
|
-
|
|
3439
|
-
],
|
|
3439
|
+
}), Xa = { class: "svc-page-navigator-item" }, Ya = ["title"], xa = /* @__PURE__ */ d("div", { class: "svc-page-navigator-item__dot-content" }, null, -1), el = [
|
|
3440
|
+
xa
|
|
3441
|
+
], ol = { class: "svc-page-navigator-item__banner" }, sl = { class: "svc-page-navigator-item__text" }, tl = /* @__PURE__ */ d("span", { class: "svc-page-navigator-item__dot" }, [
|
|
3440
3442
|
/* @__PURE__ */ d("span", { class: "svc-page-navigator-item__dot-content" })
|
|
3441
|
-
], -1),
|
|
3443
|
+
], -1), nl = /* @__PURE__ */ g({
|
|
3442
3444
|
__name: "PageNavigatorItem",
|
|
3443
3445
|
props: {
|
|
3444
3446
|
model: {}
|
|
@@ -3449,29 +3451,29 @@ const Nt = /* @__PURE__ */ g({
|
|
|
3449
3451
|
const e = (o) => {
|
|
3450
3452
|
t.model.action(), o.stopPropagation(), o.preventDefault();
|
|
3451
3453
|
};
|
|
3452
|
-
return (o, n) => (a(),
|
|
3453
|
-
|
|
3454
|
+
return (o, n) => (a(), i("div", Xa, [
|
|
3455
|
+
q((a(), i("div", {
|
|
3454
3456
|
role: "button",
|
|
3455
|
-
class:
|
|
3457
|
+
class: m(["svc-page-navigator-item-content", {
|
|
3456
3458
|
"svc-page-navigator-item--selected": o.model.active,
|
|
3457
3459
|
"svc-page-navigator-item--disabled": o.model.disabled
|
|
3458
3460
|
}]),
|
|
3459
|
-
onClick: n[0] || (n[0] = (
|
|
3461
|
+
onClick: n[0] || (n[0] = (r) => e(r))
|
|
3460
3462
|
}, [
|
|
3461
3463
|
d("div", {
|
|
3462
3464
|
class: "svc-page-navigator-item__dot",
|
|
3463
3465
|
title: o.model.title
|
|
3464
|
-
},
|
|
3465
|
-
d("div",
|
|
3466
|
-
d("span",
|
|
3467
|
-
|
|
3466
|
+
}, el, 8, Ya),
|
|
3467
|
+
d("div", ol, [
|
|
3468
|
+
d("span", sl, k(o.model.title), 1),
|
|
3469
|
+
tl
|
|
3468
3470
|
])
|
|
3469
3471
|
], 2)), [
|
|
3470
3472
|
[s(N)]
|
|
3471
3473
|
])
|
|
3472
3474
|
]));
|
|
3473
3475
|
}
|
|
3474
|
-
}),
|
|
3476
|
+
}), al = { class: "svc-question__dropdown-choices--wrapper" }, ll = { class: "svc-question__dropdown-choices" }, il = /* @__PURE__ */ g({
|
|
3475
3477
|
__name: "Dropdown",
|
|
3476
3478
|
props: {
|
|
3477
3479
|
model: {},
|
|
@@ -3486,16 +3488,16 @@ const Nt = /* @__PURE__ */ g({
|
|
|
3486
3488
|
data: t.element.getItemValueWrapperComponentData(n)
|
|
3487
3489
|
}
|
|
3488
3490
|
});
|
|
3489
|
-
return (n,
|
|
3491
|
+
return (n, r) => (a(), i("div", al, [
|
|
3490
3492
|
d("div", null, [
|
|
3491
|
-
d("div",
|
|
3492
|
-
(a(!0),
|
|
3493
|
-
key:
|
|
3494
|
-
class:
|
|
3493
|
+
d("div", ll, [
|
|
3494
|
+
(a(!0), i(w, null, V(n.model.getRenderedItems(), (l) => (a(), i("div", {
|
|
3495
|
+
key: l.value,
|
|
3496
|
+
class: m(n.model.getChoiceCss())
|
|
3495
3497
|
}, [
|
|
3496
3498
|
v(s(u), A({
|
|
3497
|
-
is: e(
|
|
3498
|
-
}, o(
|
|
3499
|
+
is: e(l)
|
|
3500
|
+
}, o(l)), null, 16, ["is"])
|
|
3499
3501
|
], 2))), 128))
|
|
3500
3502
|
]),
|
|
3501
3503
|
n.model.needToCollapse ? (a(), h(s(u), {
|
|
@@ -3508,7 +3510,7 @@ const Nt = /* @__PURE__ */ g({
|
|
|
3508
3510
|
])
|
|
3509
3511
|
]));
|
|
3510
3512
|
}
|
|
3511
|
-
}),
|
|
3513
|
+
}), rl = /* @__PURE__ */ g({
|
|
3512
3514
|
__name: "QuestionDropdown",
|
|
3513
3515
|
props: {
|
|
3514
3516
|
componentName: {},
|
|
@@ -3528,51 +3530,51 @@ const Nt = /* @__PURE__ */ g({
|
|
|
3528
3530
|
"adorner-component": "svc-dropdown-question-adorner"
|
|
3529
3531
|
}, null, 8, ["element", "component-name", "component-data"]));
|
|
3530
3532
|
}
|
|
3531
|
-
}),
|
|
3533
|
+
}), dl = { class: "svc-question__adorner" }, cl = { class: "svc-question__content svc-question__content--in-popup" }, ul = { class: "svc-question__dropdown-choices" }, le = "survey-radiogroup-item", pl = /* @__PURE__ */ g({
|
|
3532
3534
|
__name: "CellQuestionDropdown",
|
|
3533
3535
|
props: {
|
|
3534
3536
|
componentName: {},
|
|
3535
3537
|
componentData: {}
|
|
3536
3538
|
},
|
|
3537
3539
|
setup(c) {
|
|
3538
|
-
const t = c, e =
|
|
3540
|
+
const t = c, e = $(
|
|
3539
3541
|
() => t.componentData.element
|
|
3540
|
-
), o = (
|
|
3542
|
+
), o = (r) => e.value.getItemValueWrapperComponentName(r) || le, n = (r) => ({
|
|
3541
3543
|
componentName: le,
|
|
3542
3544
|
componentData: {
|
|
3543
3545
|
question: e.value,
|
|
3544
|
-
item:
|
|
3545
|
-
data: e.value.getItemValueWrapperComponentData(
|
|
3546
|
+
item: r,
|
|
3547
|
+
data: e.value.getItemValueWrapperComponentData(r)
|
|
3546
3548
|
}
|
|
3547
3549
|
});
|
|
3548
|
-
return T(() => e.value), (
|
|
3549
|
-
d("div",
|
|
3550
|
-
v(s(u), A({ is:
|
|
3551
|
-
d("div",
|
|
3552
|
-
(a(!0),
|
|
3553
|
-
key:
|
|
3550
|
+
return T(() => e.value), (r, l) => (a(), i("div", dl, [
|
|
3551
|
+
d("div", cl, [
|
|
3552
|
+
v(s(u), A({ is: r.componentName }, r.componentData), null, 16, ["is"]),
|
|
3553
|
+
d("div", ul, [
|
|
3554
|
+
(a(!0), i(w, null, V(e.value.visibleChoices, (_) => (a(), i("div", {
|
|
3555
|
+
key: _.value,
|
|
3554
3556
|
class: "svc-question__dropdown-choice"
|
|
3555
3557
|
}, [
|
|
3556
3558
|
v(s(u), A({
|
|
3557
|
-
is: o(
|
|
3558
|
-
}, n(
|
|
3559
|
+
is: o(_)
|
|
3560
|
+
}, n(_)), null, 16, ["is"])
|
|
3559
3561
|
]))), 128))
|
|
3560
3562
|
])
|
|
3561
3563
|
])
|
|
3562
3564
|
]));
|
|
3563
3565
|
}
|
|
3564
|
-
}),
|
|
3566
|
+
}), vl = ["data-sv-drop-target-survey-element"], ml = /* @__PURE__ */ d("div", { class: "svc-question__drop-indicator svc-question__drop-indicator--left" }, null, -1), _l = /* @__PURE__ */ d("div", { class: "svc-question__drop-indicator svc-question__drop-indicator--right" }, null, -1), gl = /* @__PURE__ */ d("div", { class: "svc-question__drop-indicator svc-question__drop-indicator--top" }, null, -1), bl = /* @__PURE__ */ d("div", { class: "svc-question__drop-indicator svc-question__drop-indicator--bottom" }, null, -1), yl = { class: "svc-widget__content" }, hl = {
|
|
3565
3567
|
key: 1,
|
|
3566
3568
|
class: "svc-panel__placeholder_frame"
|
|
3567
|
-
},
|
|
3569
|
+
}, Cl = /* @__PURE__ */ d("div", {
|
|
3568
3570
|
class: "svc-panel__placeholder",
|
|
3569
3571
|
"data-bind": "text: placeholderText"
|
|
3570
|
-
}, null, -1),
|
|
3571
|
-
|
|
3572
|
-
],
|
|
3572
|
+
}, null, -1), ql = [
|
|
3573
|
+
Cl
|
|
3574
|
+
], $l = { class: "svc-question__content-actions" }, kl = {
|
|
3573
3575
|
key: 0,
|
|
3574
3576
|
class: "svc-panel__placeholder_frame"
|
|
3575
|
-
},
|
|
3577
|
+
}, fl = { class: "svc-panel__placeholder" }, wl = /* @__PURE__ */ g({
|
|
3576
3578
|
__name: "CustomWidget",
|
|
3577
3579
|
props: {
|
|
3578
3580
|
componentName: {},
|
|
@@ -3594,29 +3596,29 @@ const Nt = /* @__PURE__ */ g({
|
|
|
3594
3596
|
e.value && o.value && (o.value.rootElement = e.value);
|
|
3595
3597
|
}), P(() => {
|
|
3596
3598
|
e.value && o.value && (o.value.rootElement = e.value);
|
|
3597
|
-
}), (n,
|
|
3599
|
+
}), (n, r) => s(o) ? (a(), i("div", {
|
|
3598
3600
|
key: 0,
|
|
3599
|
-
class:
|
|
3600
|
-
onMouseover:
|
|
3601
|
-
onMouseleave:
|
|
3601
|
+
class: m(["svc-question__adorner", s(o).rootCss()]),
|
|
3602
|
+
onMouseover: r[2] || (r[2] = (l) => s(o).hover(l, l.currentTarget)),
|
|
3603
|
+
onMouseleave: r[3] || (r[3] = (l) => s(o).hover(l, l.currentTarget)),
|
|
3602
3604
|
"data-sv-drop-target-survey-element": s(o).element.name || null,
|
|
3603
3605
|
ref_key: "root",
|
|
3604
3606
|
ref: e
|
|
3605
3607
|
}, [
|
|
3606
|
-
s(o).element.isInteractiveDesignElement ?
|
|
3608
|
+
s(o).element.isInteractiveDesignElement ? q((a(), i("div", {
|
|
3607
3609
|
key: 0,
|
|
3608
|
-
class:
|
|
3609
|
-
onClick:
|
|
3610
|
+
class: m(["svc-question__content", s(o).css()]),
|
|
3611
|
+
onClick: r[1] || (r[1] = (l) => s(o).select(s(o), l)),
|
|
3610
3612
|
"data-bind": "clickBubble: false"
|
|
3611
3613
|
}, [
|
|
3612
|
-
|
|
3613
|
-
|
|
3614
|
-
|
|
3615
|
-
|
|
3616
|
-
s(o).allowDragging ? (a(),
|
|
3614
|
+
ml,
|
|
3615
|
+
_l,
|
|
3616
|
+
gl,
|
|
3617
|
+
bl,
|
|
3618
|
+
s(o).allowDragging ? (a(), i("div", {
|
|
3617
3619
|
key: 0,
|
|
3618
3620
|
class: "svc-question__drag-area",
|
|
3619
|
-
onPointerdown:
|
|
3621
|
+
onPointerdown: r[0] || (r[0] = (l) => s(o).onPointerDown(l))
|
|
3620
3622
|
}, [
|
|
3621
3623
|
v(s(u), {
|
|
3622
3624
|
is: "sv-svg-icon",
|
|
@@ -3625,11 +3627,11 @@ const Nt = /* @__PURE__ */ g({
|
|
|
3625
3627
|
size: "auto"
|
|
3626
3628
|
})
|
|
3627
3629
|
], 32)) : p("", !0),
|
|
3628
|
-
d("div",
|
|
3630
|
+
d("div", yl, [
|
|
3629
3631
|
v(s(u), A({ is: n.componentName }, n.componentData), null, 16, ["is"])
|
|
3630
3632
|
]),
|
|
3631
|
-
s(o).isEmptyElement ? (a(),
|
|
3632
|
-
d("div",
|
|
3633
|
+
s(o).isEmptyElement ? (a(), i("div", hl, ql)) : p("", !0),
|
|
3634
|
+
d("div", $l, [
|
|
3633
3635
|
v(s(u), {
|
|
3634
3636
|
is: "sv-action-bar",
|
|
3635
3637
|
model: s(o).actionContainer,
|
|
@@ -3639,24 +3641,24 @@ const Nt = /* @__PURE__ */ g({
|
|
|
3639
3641
|
], 2)), [
|
|
3640
3642
|
[s(N)]
|
|
3641
3643
|
]) : p("", !0),
|
|
3642
|
-
s(o).element.isInteractiveDesignElement ? p("", !0) : (a(),
|
|
3644
|
+
s(o).element.isInteractiveDesignElement ? p("", !0) : (a(), i(w, { key: 1 }, [
|
|
3643
3645
|
v(s(u), A({ is: n.componentName }, n.componentData), null, 16, ["is"]),
|
|
3644
|
-
s(o).isEmptyElement ? (a(),
|
|
3645
|
-
d("div",
|
|
3646
|
+
s(o).isEmptyElement ? (a(), i("div", kl, [
|
|
3647
|
+
d("div", fl, k(s(o).placeholderText), 1)
|
|
3646
3648
|
])) : p("", !0)
|
|
3647
3649
|
], 64))
|
|
3648
|
-
], 42,
|
|
3650
|
+
], 42, vl)) : p("", !0);
|
|
3649
3651
|
}
|
|
3650
|
-
}),
|
|
3652
|
+
}), Tl = { class: "svc-carry-forward-panel-wrapper" }, Dl = { class: "svc-carry-forward-panel" }, Nl = { class: "svc-carry-forward-panel__link" }, Ml = /* @__PURE__ */ g({
|
|
3651
3653
|
__name: "QuestionBanner",
|
|
3652
3654
|
props: {
|
|
3653
3655
|
model: {}
|
|
3654
3656
|
},
|
|
3655
3657
|
setup(c) {
|
|
3656
|
-
return (t, e) => (a(),
|
|
3657
|
-
d("div",
|
|
3658
|
-
d("span", null,
|
|
3659
|
-
d("span",
|
|
3658
|
+
return (t, e) => (a(), i("div", Tl, [
|
|
3659
|
+
d("div", Dl, [
|
|
3660
|
+
d("span", null, k(t.model.text) + k(" "), 1),
|
|
3661
|
+
d("span", Nl, [
|
|
3660
3662
|
v(s(u), {
|
|
3661
3663
|
is: "svc-action-button",
|
|
3662
3664
|
text: t.model.actionText,
|
|
@@ -3667,20 +3669,20 @@ const Nt = /* @__PURE__ */ g({
|
|
|
3667
3669
|
]));
|
|
3668
3670
|
}
|
|
3669
3671
|
});
|
|
3670
|
-
function
|
|
3672
|
+
function Sl(c, t, e) {
|
|
3671
3673
|
c(t, e);
|
|
3672
3674
|
}
|
|
3673
3675
|
function pe(c) {
|
|
3674
|
-
const t =
|
|
3676
|
+
const t = Sl.bind(
|
|
3675
3677
|
void 0,
|
|
3676
3678
|
c
|
|
3677
3679
|
);
|
|
3678
|
-
t("svc-tabbed-menu", Je), t("svc-tabbed-menu-item-wrapper", Xe), t("svc-tabbed-menu-item", xe), t("svc-side-bar", to), t("svc-side-bar-default-header", io), t("svc-side-bar-page", ro), t("svc-tabs", po), t("svc-tab-control", ho), t("svc-tab-button", fo), t("svc-property-grid-placeholder", So), t("svc-side-bar-header", Vo), t("svc-side-bar-property-grid-header",
|
|
3680
|
+
t("svc-tabbed-menu", Je), t("svc-tabbed-menu-item-wrapper", Xe), t("svc-tabbed-menu-item", xe), t("svc-side-bar", to), t("svc-side-bar-default-header", io), t("svc-side-bar-page", ro), t("svc-tabs", po), t("svc-tab-control", ho), t("svc-tab-button", fo), t("svc-property-grid-placeholder", So), t("svc-side-bar-header", Vo), t("svc-side-bar-property-grid-header", Qo), t("svc-property-grid", uo), t("svc-object-selector", co), t("svc-search", ja), t("svc-switcher", os), t("svc-action-button", Jo), t("svc-question-error", Ho), t("survey-embeddedsurvey", Gs), t("sv-logic-operator", Os), t("survey-linkvalue", Ws), t("survey-color", ct), t("color-item", ut), t("sv-boolean-switch", Nt), t("survey-fileedit", gt), t("survey-spinedit", Ct), t("survey-textwithreset", ne), t("survey-commentwithreset", ne), t("survey-widget", O), t("survey-simulator", ns), t("svc-tab-preview", cs), t("svc-complete-page", ps), t("survey-results", ks), t("survey-results-table-row", ws), t("json-error-item", zs), t("svc-tab-json-editor-textarea", Ps), t("svc-tab-json-editor-ace", Ms), t("svc-tab-translation", Ys), t("sd-translation-line-skeleton", tt), t("svc-translate-from-action", nt), t("svc-tab-logic", Us), t("svc-tab-theme", it), t("svc-toolbox", Kt), t("svc-toolbox-list", xt), t("svc-toolbox-category", Yt), t("svc-toolbox-tool", Qt), t("svc-toolbox-item", Wt), t("svc-toolbox-item-group", jt), t(Ae, Vt), t("svc-tab-designer", pn), t("svc-page-navigator", Za), t("svc-page-navigator-item", nl), t("svc-page", $n), t("svc-row", Mn), t("svc-add-new-question-btn", fn), t("svc-add-question-type-selector", Tn), t("svc-question", ae), t("svc-rating-question", ae), t("svc-rating-question-content", Zn), t("svc-image-question", Fn), t("svc-image-question-adorner", Gn), t("svc-matrix-cell", Yn), t("svc-cell-question", oa), t("svc-cell-dropdown-question", pl), t("svc-question-editor-content", Va), t("svc-logo-image", Ua), t("svc-panel", ga), t("svc-item-value", ka), t("svc-image-item-value", Ra), t("svc-dropdown-question", rl), t("svc-dropdown-question-adorner", il), t("svc-widget-question", wl), t("svc-question-banner", Ml);
|
|
3679
3681
|
}
|
|
3680
3682
|
pe(
|
|
3681
3683
|
(c, t) => ie.Instance.registerComponent(c, t)
|
|
3682
3684
|
);
|
|
3683
|
-
const
|
|
3685
|
+
const Rl = {
|
|
3684
3686
|
install(c) {
|
|
3685
3687
|
c.component("SurveyCreatorComponent", je), pe((t, e) => {
|
|
3686
3688
|
c.component(t, e), ie.Instance.registerComponent(t, t);
|
|
@@ -3689,5 +3691,5 @@ const Sl = {
|
|
|
3689
3691
|
};
|
|
3690
3692
|
export {
|
|
3691
3693
|
je as SurveyCreatorComponent,
|
|
3692
|
-
|
|
3694
|
+
Rl as surveyCreatorPlugin
|
|
3693
3695
|
};
|