survey-creator-vue 2.0.5 → 2.0.7
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/survey-creator-vue.es.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { useBase as
|
|
2
|
-
import { defineComponent as g, computed as k, toRaw as ge, ref as I, onMounted as
|
|
1
|
+
import { useBase as T, SvComponent as u, key2ClickDirective as N, SurveyComponent as Q, useQuestion as O, useComputedArray as _e, ComponentFactory as ie } from "survey-vue3-ui";
|
|
2
|
+
import { defineComponent as g, computed as k, toRaw as ge, ref as I, onMounted as P, onUnmounted as K, openBlock as a, createElementBlock as l, Fragment as w, createVNode as v, unref as s, createElementVNode as d, normalizeClass as _, normalizeStyle as F, createCommentVNode as p, renderList as V, createBlock as h, nextTick as re, withDirectives as C, toDisplayString as $, vShow as U, 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
3
|
import { ResponsivityManager as he, CssClassBuilder as qe, RendererFactory as ce, DropdownListModel as Ce, VerticalResponsivityManager as ke } from "survey-core";
|
|
4
4
|
import { editorLocalization as ue, SurveyResultsModel as $e, 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
|
-
const
|
|
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
8
|
}, Ke = ["v-show"], Ue = { class: "svc-creator__content-holder svc-flex-column" }, He = ["aria-labelledby", "id"], Oe = {
|
|
@@ -18,45 +18,45 @@ const Le = { class: "svc-flex-column svc-flex-row__element svc-flex-row__element
|
|
|
18
18
|
},
|
|
19
19
|
setup(c) {
|
|
20
20
|
const t = c, e = k(() => ge(t.model)), o = I();
|
|
21
|
-
return
|
|
21
|
+
return T(
|
|
22
22
|
() => e.value,
|
|
23
|
-
(n,
|
|
24
|
-
|
|
23
|
+
(n, i) => {
|
|
24
|
+
i && i.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, i) => e.value.isCreatorDisposed ? p("", !0) : (a(), l(w, { key: 0 }, [
|
|
31
31
|
v(s(u), { is: "survey-popup-modal" }),
|
|
32
|
-
|
|
32
|
+
d("div", {
|
|
33
33
|
class: _(e.value.getRootCss()),
|
|
34
|
-
style:
|
|
34
|
+
style: F(e.value.themeVariables),
|
|
35
35
|
ref_key: "root",
|
|
36
36
|
ref: o
|
|
37
37
|
}, [
|
|
38
|
-
|
|
38
|
+
d("div", null, [
|
|
39
39
|
v(s(u), { is: "sv-svg-bundle" })
|
|
40
40
|
]),
|
|
41
|
-
|
|
41
|
+
d("div", {
|
|
42
42
|
class: _(["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
47
|
class: _(["svc-flex-row svc-full-container", {
|
|
48
48
|
"svc-creator__side-bar--left": e.value.sidebarLocation == "left"
|
|
49
49
|
}])
|
|
50
50
|
}, [
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
e.value.showTabs ? (a(),
|
|
51
|
+
d("div", ze, [
|
|
52
|
+
d("div", Le, [
|
|
53
|
+
e.value.showTabs ? (a(), l("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(), l("div", {
|
|
60
60
|
key: 1,
|
|
61
61
|
class: "svc-toolbar-wrapper",
|
|
62
62
|
"v-show": e.value.showToolbar
|
|
@@ -67,32 +67,32 @@ const Le = { class: "svc-flex-column svc-flex-row__element svc-flex-row__element
|
|
|
67
67
|
}, null, 8, ["model"])
|
|
68
68
|
], 8, Ke)) : p("", !0)
|
|
69
69
|
]),
|
|
70
|
-
|
|
70
|
+
d("div", {
|
|
71
71
|
class: _(["svc-creator__content-wrapper svc-flex-row", {
|
|
72
72
|
"svc-creator__content-wrapper--footer-toolbar": e.value.isMobileView
|
|
73
73
|
}])
|
|
74
74
|
}, [
|
|
75
|
-
|
|
76
|
-
(a(!0),
|
|
77
|
-
e.value.viewType ==
|
|
75
|
+
d("div", Ue, [
|
|
76
|
+
(a(!0), l(w, null, V(e.value.tabs, (r) => (a(), l(w, null, [
|
|
77
|
+
e.value.viewType == r.id && r.visible ? (a(), l("div", {
|
|
78
78
|
role: "tabpanel",
|
|
79
79
|
class: _(["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: r.id,
|
|
83
|
+
"aria-labelledby": "tab-" + r.id,
|
|
84
|
+
id: "scrollableDiv-" + r.id
|
|
85
85
|
}, [
|
|
86
86
|
v(s(u), {
|
|
87
|
-
is:
|
|
88
|
-
model:
|
|
87
|
+
is: r.componentContent,
|
|
88
|
+
model: r.data.model
|
|
89
89
|
}, null, 8, ["is", "model"])
|
|
90
90
|
], 10, He)) : p("", !0)
|
|
91
91
|
], 64))), 256))
|
|
92
92
|
])
|
|
93
93
|
], 2),
|
|
94
|
-
e.value.isMobileView ? (a(),
|
|
95
|
-
|
|
94
|
+
e.value.isMobileView ? (a(), l("div", Oe, [
|
|
95
|
+
d("div", {
|
|
96
96
|
class: "svc-toolbar-wrapper",
|
|
97
97
|
"v-show": e.value.isMobileView
|
|
98
98
|
}, [
|
|
@@ -109,8 +109,8 @@ const Le = { 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(),
|
|
113
|
-
|
|
112
|
+
e.value.haveCommercialLicense ? p("", !0) : (a(), l("div", Ge, [
|
|
113
|
+
d("span", {
|
|
114
114
|
class: "svc-creator__non-commercial-text",
|
|
115
115
|
innerHTML: e.value.licenseText
|
|
116
116
|
}, null, 8, We)
|
|
@@ -132,20 +132,20 @@ const Le = { class: "svc-flex-column svc-flex-row__element svc-flex-row__element
|
|
|
132
132
|
const t = c;
|
|
133
133
|
let e;
|
|
134
134
|
const o = I();
|
|
135
|
-
return
|
|
135
|
+
return T(() => t.model), P(() => {
|
|
136
136
|
e = new he(o.value, t.model);
|
|
137
|
-
}),
|
|
137
|
+
}), K(() => {
|
|
138
138
|
e.dispose(), e = void 0;
|
|
139
|
-
}), (n,
|
|
139
|
+
}), (n, i) => (a(), l("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), l(w, null, V(n.model.renderedActions, (r) => (a(), h(s(u), {
|
|
146
|
+
key: r.renderedId,
|
|
147
147
|
is: "svc-tabbed-menu-item-wrapper",
|
|
148
|
-
item:
|
|
148
|
+
item: r
|
|
149
149
|
}, null, 8, ["item"]))), 128))
|
|
150
150
|
], 512));
|
|
151
151
|
}
|
|
@@ -156,20 +156,20 @@ const Le = { class: "svc-flex-column svc-flex-row__element svc-flex-row__element
|
|
|
156
156
|
},
|
|
157
157
|
setup(c) {
|
|
158
158
|
const t = I(), e = c;
|
|
159
|
-
return
|
|
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, i) => {
|
|
162
|
+
o.mode = n, re(() => i(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(),
|
|
167
|
+
}), (o, n) => (a(), l("span", {
|
|
168
168
|
class: _(["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
|
}, [
|
|
172
|
-
|
|
172
|
+
d("div", Ze, [
|
|
173
173
|
v(s(u), {
|
|
174
174
|
is: o.item.component || "svc-tabbed-menu-item",
|
|
175
175
|
item: o.item
|
|
@@ -184,7 +184,7 @@ const Le = { 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
|
|
187
|
+
return T(() => t.item), (e, o) => C((a(), l("div", {
|
|
188
188
|
role: "tab",
|
|
189
189
|
id: "tab-" + e.item.id,
|
|
190
190
|
"aria-selected": e.item.active,
|
|
@@ -193,7 +193,7 @@ const Le = { class: "svc-flex-column svc-flex-row__element svc-flex-row__element
|
|
|
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(), l("span", {
|
|
197
197
|
key: 0,
|
|
198
198
|
class: _(e.item.getTitleCss())
|
|
199
199
|
}, $(e.item.title), 3)) : p("", !0),
|
|
@@ -206,7 +206,7 @@ const Le = { class: "svc-flex-column svc-flex-row__element svc-flex-row__element
|
|
|
206
206
|
title: e.item.tooltip || e.item.title
|
|
207
207
|
}, null, 8, ["iconName", "class", "title"])) : p("", !0)
|
|
208
208
|
], 10, Ye)), [
|
|
209
|
-
[s(
|
|
209
|
+
[s(N)]
|
|
210
210
|
]);
|
|
211
211
|
}
|
|
212
212
|
}), eo = { class: "svc-flex-row svc-side-bar__wrapper" }, oo = { class: "svc-side-bar__container-wrapper" }, so = { class: "svc-side-bar__container-content" }, to = /* @__PURE__ */ g({
|
|
@@ -216,22 +216,22 @@ const Le = { class: "svc-flex-column svc-flex-row__element svc-flex-row__element
|
|
|
216
216
|
},
|
|
217
217
|
setup(c) {
|
|
218
218
|
const t = c, e = I();
|
|
219
|
-
return
|
|
219
|
+
return T(() => t.model), P(() => {
|
|
220
220
|
t.model.initResizeManager(e.value);
|
|
221
|
-
}),
|
|
221
|
+
}), K(() => {
|
|
222
222
|
t.model.resetResizeManager();
|
|
223
|
-
}), (o, n) => C((a(),
|
|
223
|
+
}), (o, n) => C((a(), l("div", {
|
|
224
224
|
class: _(["svc-side-bar", o.model.rootCss])
|
|
225
225
|
}, [
|
|
226
|
-
C(
|
|
226
|
+
C(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
|
+
[U, o.model.renderContainer]
|
|
231
231
|
]),
|
|
232
|
-
|
|
233
|
-
C(
|
|
234
|
-
|
|
232
|
+
d("div", eo, [
|
|
233
|
+
C(d("div", oo, [
|
|
234
|
+
d("div", {
|
|
235
235
|
class: "svc-side-bar__container",
|
|
236
236
|
ref_key: "root",
|
|
237
237
|
ref: e
|
|
@@ -240,16 +240,16 @@ const Le = { class: "svc-flex-column svc-flex-row__element svc-flex-row__element
|
|
|
240
240
|
is: o.model.header.component,
|
|
241
241
|
model: o.model.header.componentModel
|
|
242
242
|
}, null, 8, ["is", "model"]),
|
|
243
|
-
|
|
244
|
-
(a(!0),
|
|
245
|
-
key:
|
|
243
|
+
d("div", so, [
|
|
244
|
+
(a(!0), l(w, null, V(o.model.pages, (i, r) => (a(), h(s(u), {
|
|
245
|
+
key: r,
|
|
246
246
|
is: "svc-side-bar-page",
|
|
247
|
-
model:
|
|
247
|
+
model: i
|
|
248
248
|
}, null, 8, ["model"]))), 128))
|
|
249
249
|
])
|
|
250
250
|
], 512)
|
|
251
251
|
], 512), [
|
|
252
|
-
[
|
|
252
|
+
[U, o.model.renderContainer]
|
|
253
253
|
]),
|
|
254
254
|
o.model.sideAreaComponentName ? (a(), h(s(u), {
|
|
255
255
|
key: 0,
|
|
@@ -258,7 +258,7 @@ const Le = { 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
|
+
[U, 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 Le = { 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
|
|
275
|
-
|
|
274
|
+
return T(() => t.model), (e, o) => (a(), l("div", no, [
|
|
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(), l("div", lo, $(e.model.title), 1)) : p("", !0)
|
|
282
282
|
]));
|
|
283
283
|
}
|
|
284
284
|
}), ro = /* @__PURE__ */ g({
|
|
@@ -288,7 +288,7 @@ const Le = { class: "svc-flex-column svc-flex-row__element svc-flex-row__element
|
|
|
288
288
|
},
|
|
289
289
|
setup(c) {
|
|
290
290
|
const t = c;
|
|
291
|
-
return
|
|
291
|
+
return T(() => t.model), (e, o) => e.model.visible ? (a(), h(s(u), {
|
|
292
292
|
key: 0,
|
|
293
293
|
is: e.model.componentName,
|
|
294
294
|
model: e.model.componentData
|
|
@@ -301,7 +301,7 @@ const Le = { class: "svc-flex-column svc-flex-row__element svc-flex-row__element
|
|
|
301
301
|
},
|
|
302
302
|
setup(c) {
|
|
303
303
|
const t = c;
|
|
304
|
-
return
|
|
304
|
+
return T(() => t.model), (e, o) => e.model.isVisible ? (a(), h(s(u), {
|
|
305
305
|
key: 0,
|
|
306
306
|
is: "sv-list",
|
|
307
307
|
model: e.model.list
|
|
@@ -314,7 +314,7 @@ const Le = { 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
|
|
317
|
+
return T(() => t.model), (e, o) => (a(), l("div", {
|
|
318
318
|
class: _(e.model.rootCss)
|
|
319
319
|
}, [
|
|
320
320
|
v(s(u), {
|
|
@@ -334,14 +334,14 @@ const Le = { 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
|
|
338
|
-
key:
|
|
337
|
+
return T(() => t.model), (e, o) => (a(!0), l(w, null, V(e.model.actions, (n, i) => (a(), h(s(u), {
|
|
338
|
+
key: i,
|
|
339
339
|
is: "svc-tab-button",
|
|
340
340
|
model: n
|
|
341
341
|
}, null, 8, ["model"]))), 128));
|
|
342
342
|
}
|
|
343
|
-
}), vo = { class: "svc-sidebar-tabs__top-container" }, mo = { class: "svc-sidebar-tabs__collapse-button" }, _o = /* @__PURE__ */
|
|
344
|
-
/* @__PURE__ */
|
|
343
|
+
}), vo = { class: "svc-sidebar-tabs__top-container" }, mo = { class: "svc-sidebar-tabs__collapse-button" }, _o = /* @__PURE__ */ d("div", { class: "svc-sidebar-tabs__separator" }, [
|
|
344
|
+
/* @__PURE__ */ d("div")
|
|
345
345
|
], -1), go = { class: "svc-sidebar-tabs__items" }, bo = { class: "svc-sidebar-tabs__bottom-container" }, yo = { class: "svc-sidebar-tabs__items" }, ho = /* @__PURE__ */ g({
|
|
346
346
|
__name: "TabControl",
|
|
347
347
|
props: {
|
|
@@ -349,11 +349,11 @@ const Le = { 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
|
|
352
|
+
return T(() => t.model), (e, o) => (a(), l("div", {
|
|
353
353
|
class: _(e.model.sideBarClassName)
|
|
354
354
|
}, [
|
|
355
|
-
|
|
356
|
-
|
|
355
|
+
d("div", vo, [
|
|
356
|
+
d("div", mo, [
|
|
357
357
|
v(s(u), {
|
|
358
358
|
is: "svc-tab-button",
|
|
359
359
|
model: e.model.expandCollapseAction
|
|
@@ -362,7 +362,7 @@ const Le = { class: "svc-flex-column svc-flex-row__element svc-flex-row__element
|
|
|
362
362
|
_o,
|
|
363
363
|
v(s(u), { is: "sv-scroll" }, {
|
|
364
364
|
default: Z(() => [
|
|
365
|
-
|
|
365
|
+
d("div", go, [
|
|
366
366
|
v(s(u), {
|
|
367
367
|
is: "svc-tabs",
|
|
368
368
|
model: e.model.topToolbar
|
|
@@ -372,8 +372,8 @@ const Le = { class: "svc-flex-column svc-flex-row__element svc-flex-row__element
|
|
|
372
372
|
_: 1
|
|
373
373
|
})
|
|
374
374
|
]),
|
|
375
|
-
|
|
376
|
-
|
|
375
|
+
d("div", bo, [
|
|
376
|
+
d("div", yo, [
|
|
377
377
|
v(s(u), {
|
|
378
378
|
is: "svc-tabs",
|
|
379
379
|
model: e.model.bottomToolbar
|
|
@@ -392,14 +392,14 @@ const Le = { class: "svc-flex-column svc-flex-row__element svc-flex-row__element
|
|
|
392
392
|
},
|
|
393
393
|
setup(c) {
|
|
394
394
|
const t = c;
|
|
395
|
-
return
|
|
396
|
-
C((a(),
|
|
395
|
+
return T(() => t.model), (e, o) => e.model.visible ? (a(), l("div", qo, [
|
|
396
|
+
C((a(), l("div", {
|
|
397
397
|
class: _(e.model.buttonClassName),
|
|
398
398
|
title: e.model.tooltip,
|
|
399
399
|
onClick: o[0] || (o[0] = (n) => e.model.action())
|
|
400
400
|
}, [
|
|
401
|
-
|
|
402
|
-
|
|
401
|
+
d("div", ko, [
|
|
402
|
+
d("div", $o, [
|
|
403
403
|
v(s(u), {
|
|
404
404
|
is: "sv-svg-icon",
|
|
405
405
|
iconName: e.model.iconName,
|
|
@@ -408,21 +408,21 @@ const Le = { class: "svc-flex-column svc-flex-row__element svc-flex-row__element
|
|
|
408
408
|
])
|
|
409
409
|
])
|
|
410
410
|
], 10, Co)), [
|
|
411
|
-
[s(
|
|
411
|
+
[s(N), { processEsc: !1, disableTabStop: e.model.disableTabStop }]
|
|
412
412
|
])
|
|
413
413
|
])) : p("", !0);
|
|
414
414
|
}
|
|
415
|
-
}), wo = { class: "svc-property-grid-placeholder" }, To = { class: "svc-property-grid-placeholder__header" }, Do = { class: "svc-property-grid-placeholder__title" }, No = { class: "svc-property-grid-placeholder__description" }, Mo = /* @__PURE__ */
|
|
416
|
-
/* @__PURE__ */
|
|
417
|
-
/* @__PURE__ */
|
|
415
|
+
}), wo = { class: "svc-property-grid-placeholder" }, To = { class: "svc-property-grid-placeholder__header" }, Do = { class: "svc-property-grid-placeholder__title" }, No = { class: "svc-property-grid-placeholder__description" }, Mo = /* @__PURE__ */ d("div", { class: "svc-property-grid-placeholder__content" }, [
|
|
416
|
+
/* @__PURE__ */ d("div", { class: "svc-property-grid-placeholder__gap" }),
|
|
417
|
+
/* @__PURE__ */ d("div", { class: "svc-property-grid-placeholder__image" })
|
|
418
418
|
], -1), So = /* @__PURE__ */ g({
|
|
419
419
|
__name: "PropertyGridPlaceholder",
|
|
420
420
|
setup(c) {
|
|
421
421
|
const t = ue;
|
|
422
|
-
return (e, o) => (a(),
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
422
|
+
return (e, o) => (a(), l("div", wo, [
|
|
423
|
+
d("div", To, [
|
|
424
|
+
d("span", Do, $(s(t).getString("ed.propertyGridPlaceholderTitle")), 1),
|
|
425
|
+
d("span", No, $(s(t).getString("ed.propertyGridPlaceholderDescription")), 1)
|
|
426
426
|
]),
|
|
427
427
|
Mo
|
|
428
428
|
]));
|
|
@@ -440,34 +440,34 @@ const Le = { 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
|
|
444
|
-
e.model.subTitle ? p("", !0) : (a(),
|
|
445
|
-
e.model.subTitle ? (a(),
|
|
446
|
-
|
|
447
|
-
|
|
443
|
+
return T(() => t.model), (e, o) => (a(), l("div", Bo, [
|
|
444
|
+
e.model.subTitle ? p("", !0) : (a(), l("div", Io, $(e.model.title), 1)),
|
|
445
|
+
e.model.subTitle ? (a(), l("div", Eo, [
|
|
446
|
+
d("span", Po, $(e.model.title), 1),
|
|
447
|
+
d("span", Ro, $(e.model.subTitle), 1)
|
|
448
448
|
])) : p("", !0)
|
|
449
449
|
]));
|
|
450
450
|
}
|
|
451
|
-
}), Ao = { class: "svc-sidebar__header svc-sidebar__header--tabbed" },
|
|
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" }, Ho = /* @__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
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
C((a(),
|
|
458
|
+
return T(() => t.model), (e, o) => (a(), l("div", Ao, [
|
|
459
|
+
d("div", zo, [
|
|
460
|
+
d("div", Lo, [
|
|
461
|
+
C((a(), l("div", {
|
|
462
462
|
class: _(e.model.buttonClassName),
|
|
463
463
|
onClick: o[0] || (o[0] = (n) => e.model.action())
|
|
464
464
|
}, [
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
465
|
+
d("div", Fo, [
|
|
466
|
+
d("span", Ko, $(e.model.title), 1),
|
|
467
|
+
d("span", Uo, $(e.model.tooltip), 1)
|
|
468
468
|
])
|
|
469
469
|
], 2)), [
|
|
470
|
-
[s(
|
|
470
|
+
[s(N), { processEsc: !1 }]
|
|
471
471
|
]),
|
|
472
472
|
v(s(u), {
|
|
473
473
|
is: "sv-popup",
|
|
@@ -486,14 +486,14 @@ const Le = { 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(), l("div", { key: t.errorKey }, [
|
|
490
490
|
v(s(u), {
|
|
491
491
|
is: "sv-svg-icon",
|
|
492
492
|
class: _(t.cssClasses.error.icon),
|
|
493
493
|
iconName: "icon-alert_24x24",
|
|
494
494
|
size: "auto"
|
|
495
495
|
}, null, 8, ["class"]),
|
|
496
|
-
|
|
496
|
+
d("span", {
|
|
497
497
|
class: _(
|
|
498
498
|
t.cssClasses ? t.cssClasses.error.item || void 0 : "panel-error-item"
|
|
499
499
|
)
|
|
@@ -521,14 +521,14 @@ const Le = { class: "svc-flex-column svc-flex-row__element svc-flex-row__element
|
|
|
521
521
|
const t = c, e = (n) => {
|
|
522
522
|
t.click(), t.allowBubble || n.stopPropagation();
|
|
523
523
|
}, o = () => new qe().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,
|
|
525
|
-
n.iconName ? p("", !0) : (a(),
|
|
526
|
-
n.disabled ? (a(),
|
|
524
|
+
return (n, i) => (a(), l(w, null, [
|
|
525
|
+
n.iconName ? p("", !0) : (a(), l(w, { key: 0 }, [
|
|
526
|
+
n.disabled ? (a(), l("span", {
|
|
527
527
|
key: 0,
|
|
528
528
|
class: _(["svc-action-button svc-action-button--disabled", n.classes]),
|
|
529
529
|
title: n.title
|
|
530
530
|
}, $(n.text), 11, Qo)) : p("", !0),
|
|
531
|
-
C((a(),
|
|
531
|
+
C((a(), l("span", {
|
|
532
532
|
role: "button",
|
|
533
533
|
class: _(["svc-action-button", o()]),
|
|
534
534
|
onClick: e,
|
|
@@ -536,11 +536,11 @@ const Le = { class: "svc-flex-column svc-flex-row__element svc-flex-row__element
|
|
|
536
536
|
}, [
|
|
537
537
|
be($(n.text), 1)
|
|
538
538
|
], 10, Go)), [
|
|
539
|
-
[s(
|
|
539
|
+
[s(N)]
|
|
540
540
|
])
|
|
541
541
|
], 64)),
|
|
542
|
-
n.iconName ? (a(),
|
|
543
|
-
n.disabled ? (a(),
|
|
542
|
+
n.iconName ? (a(), l(w, { key: 1 }, [
|
|
543
|
+
n.disabled ? (a(), l("span", {
|
|
544
544
|
key: 0,
|
|
545
545
|
class: _(o()),
|
|
546
546
|
title: n.title
|
|
@@ -551,7 +551,7 @@ const Le = { 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
|
-
C((a(),
|
|
554
|
+
C((a(), l("span", {
|
|
555
555
|
role: "button",
|
|
556
556
|
onClick: e,
|
|
557
557
|
class: _(o()),
|
|
@@ -563,12 +563,12 @@ const Le = { class: "svc-flex-column svc-flex-row__element svc-flex-row__element
|
|
|
563
563
|
size: "auto"
|
|
564
564
|
}, null, 8, ["iconName"])
|
|
565
565
|
], 10, jo)), [
|
|
566
|
-
[s(
|
|
566
|
+
[s(N)]
|
|
567
567
|
])
|
|
568
568
|
], 64)) : p("", !0)
|
|
569
569
|
], 64));
|
|
570
570
|
}
|
|
571
|
-
}), Zo = ["disabled", "title", "aria-checked", "aria-expanded", "role"], Xo = /* @__PURE__ */
|
|
571
|
+
}), Zo = ["disabled", "title", "aria-checked", "aria-expanded", "role"], Xo = /* @__PURE__ */ d("div", { class: "svc-switcher__icon-thumb" }, null, -1), Yo = [
|
|
572
572
|
Xo
|
|
573
573
|
], xo = {
|
|
574
574
|
key: 0,
|
|
@@ -583,7 +583,7 @@ const Le = { 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
|
|
586
|
+
return T(() => t.item), (e, o) => C((a(), l("button", {
|
|
587
587
|
class: _(e.item.getActionBarItemCss()),
|
|
588
588
|
type: "button",
|
|
589
589
|
onClick: o[0] || (o[0] = (n) => {
|
|
@@ -598,12 +598,12 @@ const Le = { class: "svc-flex-column svc-flex-row__element svc-flex-row__element
|
|
|
598
598
|
"aria-expanded": e.item.ariaExpanded,
|
|
599
599
|
role: e.item.ariaRole
|
|
600
600
|
}, [
|
|
601
|
-
|
|
601
|
+
d("div", {
|
|
602
602
|
class: _(e.item.getSwitcherIconCss())
|
|
603
603
|
}, Yo, 2),
|
|
604
|
-
e.item.hasTitle ? (a(),
|
|
604
|
+
e.item.hasTitle ? (a(), l("span", xo, $(e.item.title), 1)) : p("", !0)
|
|
605
605
|
], 42, Zo)), [
|
|
606
|
-
[s(
|
|
606
|
+
[s(N), { processEsc: !1, disableTabStop: e.item.disableTabStop }]
|
|
607
607
|
]);
|
|
608
608
|
}
|
|
609
609
|
}), ss = {
|
|
@@ -616,45 +616,45 @@ const Le = { class: "svc-flex-column svc-flex-row__element svc-flex-row__element
|
|
|
616
616
|
},
|
|
617
617
|
setup(c) {
|
|
618
618
|
const t = c;
|
|
619
|
-
|
|
619
|
+
T(() => t.model);
|
|
620
620
|
const e = k(() => 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 (i, r) => (a(), l("div", {
|
|
626
|
+
class: _(i.model.getRootCss()),
|
|
627
|
+
onKeydown: r[0] || (r[0] = (m) => i.model.tryToZoom(void 0, m)),
|
|
628
|
+
onMouseover: r[1] || (r[1] = (m) => o()),
|
|
629
|
+
onMouseout: r[2] || (r[2] = (m) => n())
|
|
630
630
|
}, [
|
|
631
|
-
|
|
631
|
+
i.model.hasFrame ? p("", !0) : (a(), l("div", ss, [
|
|
632
632
|
v(s(u), {
|
|
633
633
|
is: "survey-widget",
|
|
634
|
-
model:
|
|
634
|
+
model: i.model.survey
|
|
635
635
|
}, null, 8, ["model"])
|
|
636
636
|
])),
|
|
637
|
-
|
|
637
|
+
i.model.hasFrame ? (a(), l("div", {
|
|
638
638
|
key: 1,
|
|
639
639
|
class: "svd-simulator-wrapper",
|
|
640
640
|
id: "svd-simulator-wrapper",
|
|
641
|
-
style:
|
|
641
|
+
style: F({
|
|
642
642
|
width: e.value.frameWidth + "px",
|
|
643
643
|
height: e.value.frameHeight + "px"
|
|
644
644
|
})
|
|
645
645
|
}, [
|
|
646
|
-
|
|
646
|
+
d("div", {
|
|
647
647
|
class: "svd-simulator",
|
|
648
|
-
style:
|
|
648
|
+
style: F({
|
|
649
649
|
width: e.value.deviceWidth + "px",
|
|
650
650
|
height: e.value.deviceHeight + "px",
|
|
651
651
|
transform: "scale(" + e.value.scale + ") translate(-50%, -50%)"
|
|
652
652
|
})
|
|
653
653
|
}, [
|
|
654
|
-
|
|
654
|
+
d("div", ts, [
|
|
655
655
|
v(s(u), {
|
|
656
656
|
is: "survey-widget",
|
|
657
|
-
model:
|
|
657
|
+
model: i.model.survey
|
|
658
658
|
}, null, 8, ["model"])
|
|
659
659
|
])
|
|
660
660
|
], 4)
|
|
@@ -670,13 +670,13 @@ const Le = { 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(),
|
|
674
|
-
|
|
673
|
+
return (e, o) => (a(), l("div", as, [
|
|
674
|
+
d("div", {
|
|
675
675
|
class: _(["svc-surface-placeholder__image", "svc-surface-placeholder__image--" + e.name])
|
|
676
676
|
}, null, 2),
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
677
|
+
d("div", ls, [
|
|
678
|
+
d("div", is, $(t.placeholderTitleText), 1),
|
|
679
|
+
d("div", rs, $(t.placeholderDescriptionText), 1)
|
|
680
680
|
])
|
|
681
681
|
]));
|
|
682
682
|
}
|
|
@@ -690,7 +690,7 @@ const Le = { 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
|
|
693
|
+
return T(() => t.model), (e, o) => (a(), l("div", {
|
|
694
694
|
class: _(["svc-creator-tab__content svc-test-tab__content", {
|
|
695
695
|
"svc-creator-tab__content--with-toolbar": e.model.isPageToolbarVisible
|
|
696
696
|
}])
|
|
@@ -701,7 +701,7 @@ const Le = { 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(), l("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 Le = { 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(), l("div", ds, [
|
|
720
720
|
v(s(u), {
|
|
721
721
|
is: "sv-action-bar",
|
|
722
722
|
model: e.model.pages
|
|
@@ -732,20 +732,20 @@ const Le = { class: "svc-flex-column svc-flex-row__element svc-flex-row__element
|
|
|
732
732
|
},
|
|
733
733
|
setup(c) {
|
|
734
734
|
const t = c, e = k(() => t.model.testAgainAction);
|
|
735
|
-
return
|
|
735
|
+
return T(() => e.value), (o, n) => C((a(), l("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] = (i) => e.value.action())
|
|
739
739
|
}, [
|
|
740
|
-
|
|
740
|
+
d("span", us, $(e.value.title), 1)
|
|
741
741
|
])), [
|
|
742
|
-
[s(
|
|
742
|
+
[s(N)]
|
|
743
743
|
]);
|
|
744
744
|
}
|
|
745
745
|
});
|
|
746
|
-
function
|
|
746
|
+
function z(c, t, e) {
|
|
747
747
|
const o = ye(), n = G(
|
|
748
|
-
t.map((
|
|
748
|
+
t.map((i) => () => i()),
|
|
749
749
|
() => {
|
|
750
750
|
o.value = c();
|
|
751
751
|
},
|
|
@@ -753,7 +753,7 @@ function A(c, t, e) {
|
|
|
753
753
|
immediate: !0
|
|
754
754
|
}
|
|
755
755
|
);
|
|
756
|
-
return
|
|
756
|
+
return T(() => o.value, void 0, e), X(() => {
|
|
757
757
|
n();
|
|
758
758
|
}), o;
|
|
759
759
|
}
|
|
@@ -766,15 +766,15 @@ const vs = {
|
|
|
766
766
|
survey: {}
|
|
767
767
|
},
|
|
768
768
|
setup(c) {
|
|
769
|
-
const t = c, e =
|
|
769
|
+
const t = c, e = z(
|
|
770
770
|
() => t.survey ? new $e(t.survey) : void 0,
|
|
771
771
|
[() => t.survey]
|
|
772
772
|
);
|
|
773
|
-
return (o, n) => s(e) ? (a(),
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
773
|
+
return (o, n) => s(e) ? (a(), l("div", vs, [
|
|
774
|
+
d("div", ms, [
|
|
775
|
+
d("div", _s, [
|
|
776
|
+
d("div", gs, $(s(e).surveyResultsText), 1),
|
|
777
|
+
d("div", bs, [
|
|
778
778
|
v(s(u), {
|
|
779
779
|
is: "svc-action-button",
|
|
780
780
|
text: s(e).surveyResultsTableText,
|
|
@@ -791,29 +791,29 @@ const vs = {
|
|
|
791
791
|
}, null, 8, ["text", "click", "selected"])
|
|
792
792
|
])
|
|
793
793
|
]),
|
|
794
|
-
C(
|
|
795
|
-
|
|
794
|
+
C(d("div", ys, [
|
|
795
|
+
d("div", null, $(s(e).resultText), 1)
|
|
796
796
|
], 512), [
|
|
797
|
-
[
|
|
797
|
+
[U, s(e).resultViewType === "text"]
|
|
798
798
|
]),
|
|
799
|
-
C(
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
799
|
+
C(d("div", hs, [
|
|
800
|
+
d("table", null, [
|
|
801
|
+
d("thead", null, [
|
|
802
|
+
d("tr", qs, [
|
|
803
|
+
d("th", Cs, $(s(e).resultsTitle), 1),
|
|
804
|
+
d("th", ks, $(s(e).resultsDisplayValue), 1)
|
|
805
805
|
])
|
|
806
806
|
]),
|
|
807
|
-
|
|
808
|
-
(a(!0),
|
|
807
|
+
d("tbody", null, [
|
|
808
|
+
(a(!0), l(w, null, V(s(e).resultData, (i, r) => (a(), h(s(u), {
|
|
809
809
|
is: "survey-results-table-row",
|
|
810
|
-
model:
|
|
811
|
-
key:
|
|
810
|
+
model: i,
|
|
811
|
+
key: r
|
|
812
812
|
}, null, 8, ["model"]))), 128))
|
|
813
813
|
])
|
|
814
814
|
])
|
|
815
815
|
], 512), [
|
|
816
|
-
[
|
|
816
|
+
[U, s(e).resultViewType === "table"]
|
|
817
817
|
])
|
|
818
818
|
])
|
|
819
819
|
])) : p("", !0);
|
|
@@ -825,19 +825,19 @@ const vs = {
|
|
|
825
825
|
},
|
|
826
826
|
setup(c) {
|
|
827
827
|
const t = c;
|
|
828
|
-
return
|
|
829
|
-
C((a(),
|
|
828
|
+
return T(() => t.model), (e, o) => (a(), l(w, null, [
|
|
829
|
+
C((a(), l("tr", {
|
|
830
830
|
onClick: o[0] || (o[0] = //@ts-ignore
|
|
831
831
|
(...n) => e.model.toggle && e.model.toggle(...n))
|
|
832
832
|
}, [
|
|
833
|
-
|
|
833
|
+
d("td", {
|
|
834
834
|
class: "svd-dark-border-color",
|
|
835
|
-
style:
|
|
835
|
+
style: F({ paddingLeft: e.model.textMargin })
|
|
836
836
|
}, [
|
|
837
|
-
e.model.isNode ? (a(),
|
|
837
|
+
e.model.isNode ? (a(), l("span", {
|
|
838
838
|
key: 0,
|
|
839
839
|
class: _(["svd-test-results__marker", { "svd-test-results__marker--expanded": !e.model.collapsed }]),
|
|
840
|
-
style:
|
|
840
|
+
style: F({ left: e.model.markerMargin })
|
|
841
841
|
}, [
|
|
842
842
|
v(s(u), {
|
|
843
843
|
is: "sv-svg-icon",
|
|
@@ -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(), l("span", fs, $(e.model.title), 1))
|
|
853
853
|
], 4),
|
|
854
|
-
|
|
854
|
+
d("td", {
|
|
855
855
|
class: _({
|
|
856
856
|
"svd-test-results__node-value": e.model.isNode,
|
|
857
857
|
"svd-dark-border-color": !e.model.isNode
|
|
858
858
|
})
|
|
859
859
|
}, $(e.model.getString(e.model.displayValue)), 3)
|
|
860
860
|
])), [
|
|
861
|
-
[s(
|
|
861
|
+
[s(N)]
|
|
862
862
|
]),
|
|
863
|
-
e.model.isNode && !e.model.collapsed ? (a(!0),
|
|
863
|
+
e.model.isNode && !e.model.collapsed ? (a(!0), l(w, { key: 0 }, V(e.model.data, (n, i) => (a(), h(s(u), {
|
|
864
864
|
is: "survey-results-table-row",
|
|
865
865
|
model: n,
|
|
866
|
-
key:
|
|
866
|
+
key: i + 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
|
|
878
|
-
|
|
879
|
-
|
|
877
|
+
return T(() => t.model), P(() => t.model.init(window.ace.edit(e.value))), (o, n) => (a(), l("div", Ts, [
|
|
878
|
+
d("div", Ds, [
|
|
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
|
-
C(
|
|
884
|
+
C(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
|
+
[U, o.model.hasErrors]
|
|
891
891
|
])
|
|
892
892
|
])
|
|
893
893
|
]));
|
|
@@ -899,60 +899,60 @@ const vs = {
|
|
|
899
899
|
},
|
|
900
900
|
setup(c) {
|
|
901
901
|
const t = c, e = I(), o = t.model;
|
|
902
|
-
return o.canShowErrors = !1,
|
|
902
|
+
return o.canShowErrors = !1, T(() => t.model), P(() => {
|
|
903
903
|
const n = t.model;
|
|
904
904
|
n.textElement = e.value;
|
|
905
|
-
}), (n,
|
|
906
|
-
|
|
907
|
-
C(
|
|
905
|
+
}), (n, i) => (a(), l("div", Ss, [
|
|
906
|
+
d("div", Bs, [
|
|
907
|
+
C(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": i[0] || (i[0] = (r) => s(o).text = r),
|
|
912
|
+
onKeydown: i[1] || (i[1] = (r) => s(o).checkKey(s(o), r)),
|
|
913
913
|
ref_key: "inputEl",
|
|
914
914
|
ref: e
|
|
915
915
|
}, `
|
|
916
916
|
`, 40, Is), [
|
|
917
917
|
[de, s(o).text]
|
|
918
918
|
]),
|
|
919
|
-
C(
|
|
919
|
+
C(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
|
+
[U, s(o).hasErrors]
|
|
926
926
|
])
|
|
927
927
|
])
|
|
928
928
|
]));
|
|
929
929
|
}
|
|
930
|
-
}), Rs = { class: "svc-json-error__container" }, Vs = { class: "svc-json-error__title" }, As = ["title", "aria-label"],
|
|
930
|
+
}), Rs = { class: "svc-json-error__container" }, Vs = { class: "svc-json-error__title" }, As = ["title", "aria-label"], zs = /* @__PURE__ */ g({
|
|
931
931
|
__name: "JsonEditorErrorItem",
|
|
932
932
|
props: {
|
|
933
933
|
item: {}
|
|
934
934
|
},
|
|
935
935
|
setup(c) {
|
|
936
936
|
const t = c;
|
|
937
|
-
|
|
937
|
+
T(() => t.item);
|
|
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(), l(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
946
|
class: _("svc-json-error__icon")
|
|
947
947
|
}, null, 8, ["iconName", "size"]),
|
|
948
|
-
|
|
949
|
-
|
|
948
|
+
d("div", Rs, [
|
|
949
|
+
d("div", Vs, [
|
|
950
950
|
v(s(u), {
|
|
951
951
|
is: "survey-string",
|
|
952
952
|
locString: o.item.locTitle
|
|
953
953
|
}, null, 8, ["locString"])
|
|
954
954
|
]),
|
|
955
|
-
o.item.data.showFixButton ? C((a(),
|
|
955
|
+
o.item.data.showFixButton ? C((a(), l("button", {
|
|
956
956
|
key: 0,
|
|
957
957
|
type: "button",
|
|
958
958
|
onClick: e,
|
|
@@ -966,32 +966,32 @@ const vs = {
|
|
|
966
966
|
size: "auto"
|
|
967
967
|
}, null, 8, ["iconName"])
|
|
968
968
|
], 8, As)), [
|
|
969
|
-
[s(
|
|
969
|
+
[s(N)]
|
|
970
970
|
]) : p("", !0)
|
|
971
971
|
])
|
|
972
972
|
], 64));
|
|
973
973
|
}
|
|
974
|
-
}),
|
|
974
|
+
}), Ls = { class: "svc-btn__text" }, te = /* @__PURE__ */ g({
|
|
975
975
|
__name: "LogicAddButton",
|
|
976
976
|
props: {
|
|
977
977
|
model: {}
|
|
978
978
|
},
|
|
979
979
|
setup(c) {
|
|
980
980
|
const t = c;
|
|
981
|
-
|
|
981
|
+
T(() => t.model);
|
|
982
982
|
const e = (o) => {
|
|
983
983
|
o.stopPropagation(), t.model.action();
|
|
984
984
|
};
|
|
985
|
-
return (o, n) => C((a(),
|
|
985
|
+
return (o, n) => C((a(), l("div", {
|
|
986
986
|
role: "button",
|
|
987
987
|
class: _(["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
|
-
|
|
992
|
+
d("span", Ls, $(o.model.title), 1)
|
|
993
993
|
], 2)), [
|
|
994
|
-
[s(
|
|
994
|
+
[s(N)]
|
|
995
995
|
]);
|
|
996
996
|
}
|
|
997
997
|
}), Fs = { class: "svc-creator-tab__content" }, Ks = {
|
|
@@ -1004,11 +1004,11 @@ const vs = {
|
|
|
1004
1004
|
},
|
|
1005
1005
|
setup(c) {
|
|
1006
1006
|
const t = c;
|
|
1007
|
-
return
|
|
1008
|
-
|
|
1007
|
+
return T(() => t.model), (e, o) => (a(), l("div", Fs, [
|
|
1008
|
+
d("div", {
|
|
1009
1009
|
class: _(["svc-plugin-tab__content svc-logic-tab__content", { "svc-logic-tab--empty": !e.model.hasItems }])
|
|
1010
1010
|
}, [
|
|
1011
|
-
e.model.hasItems ? (a(),
|
|
1011
|
+
e.model.hasItems ? (a(), l(w, { key: 0 }, [
|
|
1012
1012
|
v(s(Q), {
|
|
1013
1013
|
model: e.model.itemsSurvey
|
|
1014
1014
|
}, null, 8, ["model"]),
|
|
@@ -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(), l("div", Ks, [
|
|
1021
1021
|
v(W, {
|
|
1022
1022
|
name: "logic",
|
|
1023
1023
|
placeholderTitleText: e.model.placeholderTitleText,
|
|
@@ -1044,27 +1044,27 @@ const Qs = /* @__PURE__ */ g({
|
|
|
1044
1044
|
},
|
|
1045
1045
|
setup(c) {
|
|
1046
1046
|
const t = c, e = I(), o = k(() => t.question.dropdownListModel ?? new Ce(t.question));
|
|
1047
|
-
|
|
1047
|
+
O(t, e, (m) => {
|
|
1048
1048
|
fe(m);
|
|
1049
1049
|
});
|
|
1050
1050
|
const n = (m) => {
|
|
1051
1051
|
var b;
|
|
1052
1052
|
(b = o.value) == null || b.onClick(m);
|
|
1053
|
-
},
|
|
1053
|
+
}, i = (m) => {
|
|
1054
1054
|
var b;
|
|
1055
1055
|
(b = o.value) == null || b.onClear(m);
|
|
1056
|
-
},
|
|
1056
|
+
}, r = (m) => {
|
|
1057
1057
|
var b;
|
|
1058
1058
|
(b = o.value) == null || b.keyHandler(m);
|
|
1059
1059
|
};
|
|
1060
|
-
return (m, b) => (a(),
|
|
1060
|
+
return (m, b) => (a(), l("div", {
|
|
1061
1061
|
class: _(m.question.cssClasses.selectWrapper)
|
|
1062
1062
|
}, [
|
|
1063
|
-
m.question.isReadOnly ? p("", !0) : (a(),
|
|
1064
|
-
|
|
1063
|
+
m.question.isReadOnly ? p("", !0) : (a(), l(w, { key: 0 }, [
|
|
1064
|
+
d("div", {
|
|
1065
1065
|
class: _(m.question.getControlClass()),
|
|
1066
1066
|
onClick: n,
|
|
1067
|
-
onKeyup:
|
|
1067
|
+
onKeyup: r,
|
|
1068
1068
|
id: m.question.inputId,
|
|
1069
1069
|
required: m.question.isRequired,
|
|
1070
1070
|
tabindex: m.question.isInputReadOnly ? void 0 : 0,
|
|
@@ -1077,20 +1077,19 @@ const Qs = /* @__PURE__ */ g({
|
|
|
1077
1077
|
"aria-errormessage": m.question.ariaErrormessage,
|
|
1078
1078
|
"aria-expanded": m.question.ariaExpanded
|
|
1079
1079
|
}, [
|
|
1080
|
-
|
|
1080
|
+
d("div", {
|
|
1081
1081
|
class: _(m.question.cssClasses.controlValue)
|
|
1082
1082
|
}, [
|
|
1083
|
-
m.question.
|
|
1083
|
+
m.question.locReadOnlyText ? (a(), h(s(u), {
|
|
1084
1084
|
key: 0,
|
|
1085
1085
|
is: "survey-string",
|
|
1086
|
-
locString: m.question.
|
|
1087
|
-
}, null, 8, ["locString"])) : p("", !0)
|
|
1088
|
-
i("div", null, $(m.question.readOnlyText), 1)
|
|
1086
|
+
locString: m.question.locReadOnlyText
|
|
1087
|
+
}, null, 8, ["locString"])) : p("", !0)
|
|
1089
1088
|
], 2),
|
|
1090
|
-
m.question.allowClear && m.question.cssClasses.cleanButtonIconId ? C((a(),
|
|
1089
|
+
m.question.allowClear && m.question.cssClasses.cleanButtonIconId ? C((a(), l("div", {
|
|
1091
1090
|
key: 0,
|
|
1092
1091
|
class: _(m.question.cssClasses.cleanButton),
|
|
1093
|
-
onClick:
|
|
1092
|
+
onClick: i
|
|
1094
1093
|
}, [
|
|
1095
1094
|
v(s(u), {
|
|
1096
1095
|
is: "sv-svg-icon",
|
|
@@ -1100,7 +1099,7 @@ const Qs = /* @__PURE__ */ g({
|
|
|
1100
1099
|
title: m.question.clearCaption
|
|
1101
1100
|
}, null, 8, ["class", "iconName", "title"])
|
|
1102
1101
|
], 2)), [
|
|
1103
|
-
[
|
|
1102
|
+
[U, !m.question.isEmpty()]
|
|
1104
1103
|
]) : p("", !0)
|
|
1105
1104
|
], 42, Hs),
|
|
1106
1105
|
v(s(u), {
|
|
@@ -1108,18 +1107,17 @@ const Qs = /* @__PURE__ */ g({
|
|
|
1108
1107
|
model: m.question.popupModel
|
|
1109
1108
|
}, null, 8, ["model"])
|
|
1110
1109
|
], 64)),
|
|
1111
|
-
m.question.isReadOnly ? (a(),
|
|
1110
|
+
m.question.isReadOnly ? (a(), l("div", {
|
|
1112
1111
|
key: 1,
|
|
1113
1112
|
disabled: "",
|
|
1114
1113
|
class: _(m.question.getControlClass()),
|
|
1115
1114
|
id: m.question.inputId
|
|
1116
1115
|
}, [
|
|
1117
|
-
m.question.
|
|
1116
|
+
m.question.locReadOnlyText ? (a(), h(s(u), {
|
|
1118
1117
|
key: 0,
|
|
1119
1118
|
is: "survey-string",
|
|
1120
|
-
locString: m.question.
|
|
1121
|
-
}, null, 8, ["locString"])) : p("", !0)
|
|
1122
|
-
i("div", null, $(m.question.readOnlyText), 1)
|
|
1119
|
+
locString: m.question.locReadOnlyText
|
|
1120
|
+
}, null, 8, ["locString"])) : p("", !0)
|
|
1123
1121
|
], 10, Os)) : p("", !0)
|
|
1124
1122
|
], 2));
|
|
1125
1123
|
}
|
|
@@ -1130,9 +1128,9 @@ const Qs = /* @__PURE__ */ g({
|
|
|
1130
1128
|
},
|
|
1131
1129
|
setup(c) {
|
|
1132
1130
|
const t = c, e = I();
|
|
1133
|
-
|
|
1131
|
+
O(t, e);
|
|
1134
1132
|
const o = k(() => t.question.embeddedSurvey);
|
|
1135
|
-
return (n,
|
|
1133
|
+
return (n, i) => n.question && o.value && o.value.currentPage ? (a(), h(s(u), {
|
|
1136
1134
|
key: 0,
|
|
1137
1135
|
is: "survey-page",
|
|
1138
1136
|
page: o.value.currentPage,
|
|
@@ -1147,7 +1145,7 @@ const Qs = /* @__PURE__ */ g({
|
|
|
1147
1145
|
},
|
|
1148
1146
|
setup(c) {
|
|
1149
1147
|
const t = c, e = I(), o = ue.getString("pe.clear");
|
|
1150
|
-
return
|
|
1148
|
+
return O(t, e), (n, i) => (a(), l(w, null, [
|
|
1151
1149
|
v(s(u), {
|
|
1152
1150
|
is: "svc-action-button",
|
|
1153
1151
|
text: n.question.linkValueText,
|
|
@@ -1178,7 +1176,7 @@ const Qs = /* @__PURE__ */ g({
|
|
|
1178
1176
|
},
|
|
1179
1177
|
setup(c) {
|
|
1180
1178
|
const t = c;
|
|
1181
|
-
return
|
|
1179
|
+
return T(() => t.model), (e, o) => (a(), l("div", {
|
|
1182
1180
|
class: _(["svc-creator-tab__content svc-translation-tab", e.model.isEmpty ? "svc-translation-tab--empty" : ""])
|
|
1183
1181
|
}, [
|
|
1184
1182
|
e.model.isEmpty ? (a(), h(W, {
|
|
@@ -1187,14 +1185,14 @@ const Qs = /* @__PURE__ */ g({
|
|
|
1187
1185
|
placeholderTitleText: e.model.placeholderTitleText,
|
|
1188
1186
|
placeholderDescriptionText: e.model.placeholderDescriptionText
|
|
1189
1187
|
}, null, 8, ["placeholderTitleText", "placeholderDescriptionText"])) : p("", !0),
|
|
1190
|
-
e.model.isEmpty ? p("", !0) : (a(),
|
|
1191
|
-
|
|
1192
|
-
|
|
1188
|
+
e.model.isEmpty ? p("", !0) : (a(), l("div", js, [
|
|
1189
|
+
d("div", Js, [
|
|
1190
|
+
d("div", Zs, [
|
|
1193
1191
|
v(s(Q), {
|
|
1194
1192
|
model: e.model.stringsHeaderSurvey
|
|
1195
1193
|
}, null, 8, ["model"])
|
|
1196
1194
|
]),
|
|
1197
|
-
|
|
1195
|
+
d("div", Xs, [
|
|
1198
1196
|
v(s(Q), {
|
|
1199
1197
|
model: e.model.stringsSurvey
|
|
1200
1198
|
}, null, 8, ["model"])
|
|
@@ -1210,7 +1208,7 @@ const Qs = /* @__PURE__ */ g({
|
|
|
1210
1208
|
return e;
|
|
1211
1209
|
}, et = {}, ot = { class: "sd-translation-line-skeleton" };
|
|
1212
1210
|
function st(c, t) {
|
|
1213
|
-
return a(),
|
|
1211
|
+
return a(), l("div", ot);
|
|
1214
1212
|
}
|
|
1215
1213
|
const tt = /* @__PURE__ */ xs(et, [["render", st]]), nt = /* @__PURE__ */ g({
|
|
1216
1214
|
__name: "TranslateFromAction",
|
|
@@ -1218,10 +1216,10 @@ const tt = /* @__PURE__ */ xs(et, [["render", st]]), nt = /* @__PURE__ */ g({
|
|
|
1218
1216
|
item: {}
|
|
1219
1217
|
},
|
|
1220
1218
|
setup(c) {
|
|
1221
|
-
return (t, e) => (a(),
|
|
1219
|
+
return (t, e) => (a(), l("div", {
|
|
1222
1220
|
class: _(t.item.data.containerCss)
|
|
1223
1221
|
}, [
|
|
1224
|
-
|
|
1222
|
+
d("span", {
|
|
1225
1223
|
class: _(t.item.data.additionalTitleCss)
|
|
1226
1224
|
}, $(t.item.data.additionalTitle), 3),
|
|
1227
1225
|
v(s(u), {
|
|
@@ -1243,7 +1241,7 @@ const tt = /* @__PURE__ */ xs(et, [["render", st]]), nt = /* @__PURE__ */ g({
|
|
|
1243
1241
|
},
|
|
1244
1242
|
setup(c) {
|
|
1245
1243
|
const t = c;
|
|
1246
|
-
return
|
|
1244
|
+
return T(() => t.model), (e, o) => (a(), l("div", {
|
|
1247
1245
|
class: _(["svc-creator-tab__content svc-test-tab__content", {
|
|
1248
1246
|
"svc-creator-tab__content--with-toolbar": e.model.isPageToolbarVisible
|
|
1249
1247
|
}])
|
|
@@ -1254,7 +1252,7 @@ const tt = /* @__PURE__ */ xs(et, [["render", st]]), nt = /* @__PURE__ */ g({
|
|
|
1254
1252
|
placeholderTitleText: e.model.placeholderTitleText,
|
|
1255
1253
|
placeholderDescriptionText: e.model.placeholderDescriptionText
|
|
1256
1254
|
}, null, 8, ["placeholderTitleText", "placeholderDescriptionText"])) : p("", !0),
|
|
1257
|
-
e.model.survey.isEmpty ? p("", !0) : (a(),
|
|
1255
|
+
e.model.survey.isEmpty ? p("", !0) : (a(), l("div", at, [
|
|
1258
1256
|
v(s(u), {
|
|
1259
1257
|
is: "survey-simulator",
|
|
1260
1258
|
model: e.model.simulator
|
|
@@ -1265,7 +1263,7 @@ const tt = /* @__PURE__ */ xs(et, [["render", st]]), nt = /* @__PURE__ */ g({
|
|
|
1265
1263
|
survey: e.model.survey
|
|
1266
1264
|
}, null, 8, ["survey"])) : p("", !0)
|
|
1267
1265
|
])),
|
|
1268
|
-
e.model.isPageToolbarVisible ? (a(),
|
|
1266
|
+
e.model.isPageToolbarVisible ? (a(), l("div", lt, [
|
|
1269
1267
|
v(s(u), {
|
|
1270
1268
|
is: "sv-action-bar",
|
|
1271
1269
|
model: e.model.pages
|
|
@@ -1279,21 +1277,21 @@ const tt = /* @__PURE__ */ xs(et, [["render", st]]), nt = /* @__PURE__ */ g({
|
|
|
1279
1277
|
question: {}
|
|
1280
1278
|
},
|
|
1281
1279
|
setup(c) {
|
|
1282
|
-
return
|
|
1280
|
+
return O(c, I()), (e, o) => (a(), l("div", {
|
|
1283
1281
|
class: _(e.question.cssClasses.root),
|
|
1284
1282
|
onKeydown: o[5] || (o[5] = //@ts-ignore
|
|
1285
1283
|
(...n) => e.question.onKeyDown && e.question.onKeyDown(...n))
|
|
1286
1284
|
}, [
|
|
1287
|
-
|
|
1285
|
+
d("label", {
|
|
1288
1286
|
class: _(e.question.getSwatchCss()),
|
|
1289
|
-
style:
|
|
1287
|
+
style: F(e.question.getSwatchStyle())
|
|
1290
1288
|
}, [
|
|
1291
1289
|
v(s(u), {
|
|
1292
1290
|
is: "sv-svg-icon",
|
|
1293
1291
|
iconName: e.question.cssClasses.swatchIcon,
|
|
1294
1292
|
size: "auto"
|
|
1295
1293
|
}, null, 8, ["iconName"]),
|
|
1296
|
-
|
|
1294
|
+
d("input", {
|
|
1297
1295
|
type: "color",
|
|
1298
1296
|
disabled: e.question.isInputReadOnly,
|
|
1299
1297
|
class: _(e.question.cssClasses.colorInput),
|
|
@@ -1308,7 +1306,7 @@ const tt = /* @__PURE__ */ xs(et, [["render", st]]), nt = /* @__PURE__ */ g({
|
|
|
1308
1306
|
"aria-describedby": e.question.a11y_input_ariaDescribedBy
|
|
1309
1307
|
}, null, 42, rt)
|
|
1310
1308
|
], 6),
|
|
1311
|
-
|
|
1309
|
+
d("input", {
|
|
1312
1310
|
autocomplete: "off",
|
|
1313
1311
|
disabled: e.question.isInputReadOnly,
|
|
1314
1312
|
id: e.question.inputId,
|
|
@@ -1329,8 +1327,8 @@ const tt = /* @__PURE__ */ xs(et, [["render", st]]), nt = /* @__PURE__ */ g({
|
|
|
1329
1327
|
value: e.question.renderedValue,
|
|
1330
1328
|
class: _(e.question.cssClasses.control)
|
|
1331
1329
|
}, null, 42, dt),
|
|
1332
|
-
e.question.showDropdownAction ? (a(),
|
|
1333
|
-
|
|
1330
|
+
e.question.showDropdownAction ? (a(), l(w, { key: 0 }, [
|
|
1331
|
+
d("div", {
|
|
1334
1332
|
"aria-hidden": "true",
|
|
1335
1333
|
class: _(e.question.cssClasses.choicesButtonWrapper)
|
|
1336
1334
|
}, [
|
|
@@ -1354,12 +1352,12 @@ const tt = /* @__PURE__ */ xs(et, [["render", st]]), nt = /* @__PURE__ */ g({
|
|
|
1354
1352
|
},
|
|
1355
1353
|
setup(c) {
|
|
1356
1354
|
const t = c;
|
|
1357
|
-
|
|
1355
|
+
T(() => t.item);
|
|
1358
1356
|
const e = () => ({ backgroundColor: t.item.value });
|
|
1359
|
-
return (o, n) => (a(),
|
|
1360
|
-
|
|
1357
|
+
return (o, n) => (a(), l(w, null, [
|
|
1358
|
+
d("span", {
|
|
1361
1359
|
class: "spg-color-editor__color-swatch",
|
|
1362
|
-
style:
|
|
1360
|
+
style: F(e())
|
|
1363
1361
|
}, null, 4),
|
|
1364
1362
|
v(s(u), {
|
|
1365
1363
|
is: "survey-string",
|
|
@@ -1374,33 +1372,33 @@ const tt = /* @__PURE__ */ xs(et, [["render", st]]), nt = /* @__PURE__ */ g({
|
|
|
1374
1372
|
},
|
|
1375
1373
|
setup(c) {
|
|
1376
1374
|
const t = I();
|
|
1377
|
-
return
|
|
1375
|
+
return O(c, t), (o, n) => (a(), l("div", {
|
|
1378
1376
|
class: _(o.question.cssClasses.root),
|
|
1379
1377
|
onDragenter: n[5] || (n[5] = //@ts-ignore
|
|
1380
|
-
(...
|
|
1378
|
+
(...i) => o.question.onDragEnter && o.question.onDragEnter(...i)),
|
|
1381
1379
|
onDragover: n[6] || (n[6] = //@ts-ignore
|
|
1382
|
-
(...
|
|
1380
|
+
(...i) => o.question.onDragOver && o.question.onDragOver(...i)),
|
|
1383
1381
|
onDrop: n[7] || (n[7] = //@ts-ignore
|
|
1384
|
-
(...
|
|
1382
|
+
(...i) => o.question.onDrop && o.question.onDrop(...i)),
|
|
1385
1383
|
onDragleave: n[8] || (n[8] = //@ts-ignore
|
|
1386
|
-
(...
|
|
1384
|
+
(...i) => o.question.onDragLeave && o.question.onDragLeave(...i)),
|
|
1387
1385
|
onKeydown: n[9] || (n[9] = //@ts-ignore
|
|
1388
|
-
(...
|
|
1386
|
+
(...i) => o.question.onKeyDown && o.question.onKeyDown(...i)),
|
|
1389
1387
|
ref_key: "root",
|
|
1390
1388
|
ref: t
|
|
1391
1389
|
}, [
|
|
1392
|
-
|
|
1390
|
+
d("input", {
|
|
1393
1391
|
type: "text",
|
|
1394
|
-
disabled: o.question.
|
|
1392
|
+
disabled: o.question.isTextInputReadOnly,
|
|
1395
1393
|
class: _(o.question.cssClasses.control),
|
|
1396
1394
|
value: o.question.renderedValue || "",
|
|
1397
1395
|
onChange: n[0] || (n[0] = //@ts-ignore
|
|
1398
|
-
(...
|
|
1396
|
+
(...i) => o.question.onInputChange && o.question.onInputChange(...i)),
|
|
1399
1397
|
onBlur: n[1] || (n[1] = //@ts-ignore
|
|
1400
|
-
(...
|
|
1398
|
+
(...i) => o.question.onInputBlur && o.question.onInputBlur(...i)),
|
|
1401
1399
|
placeholder: o.question.renderedPlaceholder
|
|
1402
1400
|
}, null, 42, pt),
|
|
1403
|
-
|
|
1401
|
+
d("input", {
|
|
1404
1402
|
type: "file",
|
|
1405
1403
|
disabled: o.question.isInputReadOnly,
|
|
1406
1404
|
class: _(o.question.cssClasses.fileInput),
|
|
@@ -1414,17 +1412,17 @@ const tt = /* @__PURE__ */ xs(et, [["render", st]]), nt = /* @__PURE__ */ g({
|
|
|
1414
1412
|
tabindex: -1,
|
|
1415
1413
|
accept: o.question.acceptedTypes,
|
|
1416
1414
|
onChange: n[2] || (n[2] = //@ts-ignore
|
|
1417
|
-
(...
|
|
1415
|
+
(...i) => o.question.onFileInputChange && o.question.onFileInputChange(...i))
|
|
1418
1416
|
}, null, 42, vt),
|
|
1419
|
-
|
|
1417
|
+
d("div", {
|
|
1420
1418
|
class: _(o.question.cssClasses.buttonsContainer)
|
|
1421
1419
|
}, [
|
|
1422
|
-
C((a(),
|
|
1420
|
+
C((a(), l("button", {
|
|
1423
1421
|
title: o.question.clearButtonCaption,
|
|
1424
1422
|
class: _(o.question.cssClasses.clearButton),
|
|
1425
1423
|
disabled: o.question.getIsClearButtonDisabled(),
|
|
1426
1424
|
onClick: n[3] || (n[3] = //@ts-ignore
|
|
1427
|
-
(...
|
|
1425
|
+
(...i) => o.question.doClean && o.question.doClean(...i))
|
|
1428
1426
|
}, [
|
|
1429
1427
|
v(s(u), {
|
|
1430
1428
|
is: "sv-svg-icon",
|
|
@@ -1432,14 +1430,14 @@ const tt = /* @__PURE__ */ xs(et, [["render", st]]), nt = /* @__PURE__ */ g({
|
|
|
1432
1430
|
size: "auto"
|
|
1433
1431
|
}, null, 8, ["iconName"])
|
|
1434
1432
|
], 10, mt)), [
|
|
1435
|
-
[s(
|
|
1433
|
+
[s(N)]
|
|
1436
1434
|
]),
|
|
1437
|
-
C((a(),
|
|
1435
|
+
C((a(), l("label", {
|
|
1438
1436
|
class: _(o.question.getChooseButtonCss()),
|
|
1439
1437
|
for: o.question.inputId,
|
|
1440
1438
|
"aria-label": o.question.chooseButtonCaption,
|
|
1441
1439
|
onClick: n[4] || (n[4] = //@ts-ignore
|
|
1442
|
-
(...
|
|
1440
|
+
(...i) => o.question.chooseFiles && o.question.chooseFiles(...i))
|
|
1443
1441
|
}, [
|
|
1444
1442
|
v(s(u), {
|
|
1445
1443
|
is: "sv-svg-icon",
|
|
@@ -1448,7 +1446,7 @@ const tt = /* @__PURE__ */ xs(et, [["render", st]]), nt = /* @__PURE__ */ g({
|
|
|
1448
1446
|
title: o.question.chooseButtonCaption
|
|
1449
1447
|
}, null, 8, ["iconName", "title"])
|
|
1450
1448
|
], 10, _t)), [
|
|
1451
|
-
[s(
|
|
1449
|
+
[s(N)]
|
|
1452
1450
|
])
|
|
1453
1451
|
], 2)
|
|
1454
1452
|
], 34));
|
|
@@ -1459,12 +1457,12 @@ const tt = /* @__PURE__ */ xs(et, [["render", st]]), nt = /* @__PURE__ */ g({
|
|
|
1459
1457
|
question: {}
|
|
1460
1458
|
},
|
|
1461
1459
|
setup(c) {
|
|
1462
|
-
return
|
|
1460
|
+
return O(c, I()), (e, o) => (a(), l("div", {
|
|
1463
1461
|
class: _(e.question.cssClasses.root),
|
|
1464
1462
|
onKeydown: o[18] || (o[18] = //@ts-ignore
|
|
1465
1463
|
(...n) => e.question.onKeyDown && e.question.onKeyDown(...n))
|
|
1466
1464
|
}, [
|
|
1467
|
-
|
|
1465
|
+
d("input", {
|
|
1468
1466
|
role: "spinbutton",
|
|
1469
1467
|
autocomplete: "off",
|
|
1470
1468
|
disabled: e.question.isInputReadOnly,
|
|
@@ -1491,10 +1489,10 @@ const tt = /* @__PURE__ */ xs(et, [["render", st]]), nt = /* @__PURE__ */ g({
|
|
|
1491
1489
|
value: e.question.renderedValue,
|
|
1492
1490
|
class: _(e.question.cssClasses.control)
|
|
1493
1491
|
}, null, 42, bt),
|
|
1494
|
-
|
|
1492
|
+
d("span", {
|
|
1495
1493
|
class: _(e.question.cssClasses.buttonsContainer)
|
|
1496
1494
|
}, [
|
|
1497
|
-
|
|
1495
|
+
d("button", {
|
|
1498
1496
|
"aria-hidden": "true",
|
|
1499
1497
|
disabled: e.question.isInputReadOnly,
|
|
1500
1498
|
class: _(e.question.cssClasses.arrowButton),
|
|
@@ -1518,7 +1516,7 @@ const tt = /* @__PURE__ */ xs(et, [["render", st]]), nt = /* @__PURE__ */ g({
|
|
|
1518
1516
|
size: "auto"
|
|
1519
1517
|
}, null, 8, ["iconName"])
|
|
1520
1518
|
], 42, yt),
|
|
1521
|
-
|
|
1519
|
+
d("button", {
|
|
1522
1520
|
"aria-hidden": "true",
|
|
1523
1521
|
disabled: e.question.isInputReadOnly,
|
|
1524
1522
|
class: _(e.question.cssClasses.arrowButton),
|
|
@@ -1552,18 +1550,18 @@ const tt = /* @__PURE__ */ xs(et, [["render", st]]), nt = /* @__PURE__ */ g({
|
|
|
1552
1550
|
},
|
|
1553
1551
|
setup(c) {
|
|
1554
1552
|
const t = c, e = () => "survey-" + t.question.wrappedQuestionTemplate;
|
|
1555
|
-
return
|
|
1553
|
+
return O(t, I()), (o, n) => (a(), l("div", {
|
|
1556
1554
|
class: _(o.question.getRootClass())
|
|
1557
1555
|
}, [
|
|
1558
1556
|
v(s(u), {
|
|
1559
1557
|
is: e(),
|
|
1560
1558
|
question: o.question
|
|
1561
1559
|
}, null, 8, ["is", "question"]),
|
|
1562
|
-
|
|
1560
|
+
d("button", {
|
|
1563
1561
|
class: _(o.question.cssClasses.resetButton),
|
|
1564
1562
|
disabled: o.question.resetValueAdorner.isDisabled,
|
|
1565
1563
|
onClick: n[0] || (n[0] = //@ts-ignore
|
|
1566
|
-
(...
|
|
1564
|
+
(...i) => o.question.resetValueAdorner.resetValue && o.question.resetValueAdorner.resetValue(...i)),
|
|
1567
1565
|
title: o.question.resetValueAdorner.caption
|
|
1568
1566
|
}, [
|
|
1569
1567
|
v(s(u), {
|
|
@@ -1574,10 +1572,10 @@ const tt = /* @__PURE__ */ xs(et, [["render", st]]), nt = /* @__PURE__ */ g({
|
|
|
1574
1572
|
], 10, Ct)
|
|
1575
1573
|
], 2));
|
|
1576
1574
|
}
|
|
1577
|
-
}), kt = ["aria-checked", "aria-required", "aria-label", "aria-labelledby", "aria-invalid", "aria-errormessage"], $t = /* @__PURE__ */
|
|
1578
|
-
/* @__PURE__ */
|
|
1579
|
-
], -1), ft = /* @__PURE__ */
|
|
1580
|
-
/* @__PURE__ */
|
|
1575
|
+
}), kt = ["aria-checked", "aria-required", "aria-label", "aria-labelledby", "aria-invalid", "aria-errormessage"], $t = /* @__PURE__ */ d("div", { class: "spg-boolean-switch__thumb" }, [
|
|
1576
|
+
/* @__PURE__ */ d("div", { class: "spg-boolean-switch__thumb-circle spg-boolean-switch__thumb--left" })
|
|
1577
|
+
], -1), ft = /* @__PURE__ */ d("div", { class: "spg-boolean-switch__thumb" }, [
|
|
1578
|
+
/* @__PURE__ */ d("div", { class: "spg-boolean-switch__thumb-circle spg-boolean-switch__thumb--right" })
|
|
1581
1579
|
], -1), wt = [
|
|
1582
1580
|
$t,
|
|
1583
1581
|
ft
|
|
@@ -1595,17 +1593,17 @@ const Nt = /* @__PURE__ */ g({
|
|
|
1595
1593
|
},
|
|
1596
1594
|
setup(c) {
|
|
1597
1595
|
const t = c, e = I(null);
|
|
1598
|
-
|
|
1596
|
+
O(t, e);
|
|
1599
1597
|
const o = k({
|
|
1600
1598
|
get() {
|
|
1601
1599
|
return t.question.value;
|
|
1602
1600
|
},
|
|
1603
1601
|
set(n) {
|
|
1604
|
-
const
|
|
1605
|
-
|
|
1602
|
+
const i = t.question;
|
|
1603
|
+
i.value = n;
|
|
1606
1604
|
}
|
|
1607
1605
|
});
|
|
1608
|
-
return (n,
|
|
1606
|
+
return (n, i) => (a(), l("div", {
|
|
1609
1607
|
class: "spg-boolean-switch",
|
|
1610
1608
|
role: "checkbox",
|
|
1611
1609
|
"aria-checked": n.question.booleanValue || !1,
|
|
@@ -1614,16 +1612,16 @@ const Nt = /* @__PURE__ */ g({
|
|
|
1614
1612
|
"aria-labelledby": n.question.a11y_input_ariaLabelledBy,
|
|
1615
1613
|
"aria-invalid": n.question.a11y_input_ariaInvalid,
|
|
1616
1614
|
"aria-errormessage": n.question.a11y_input_ariaErrormessage,
|
|
1617
|
-
onClick:
|
|
1615
|
+
onClick: i[0] || (i[0] = (r) => o.value = !o.value)
|
|
1618
1616
|
}, [
|
|
1619
|
-
C((a(),
|
|
1617
|
+
C((a(), l("div", {
|
|
1620
1618
|
class: _(["spg-boolean-switch__button", n.question.value ? "spg-boolean-switch__button--checked" : ""]),
|
|
1621
1619
|
tabindex: "0"
|
|
1622
1620
|
}, wt, 2)), [
|
|
1623
|
-
[s(
|
|
1621
|
+
[s(N), { disableTabStop: !0 }]
|
|
1624
1622
|
]),
|
|
1625
|
-
|
|
1626
|
-
|
|
1623
|
+
d("div", Tt, [
|
|
1624
|
+
d("div", {
|
|
1627
1625
|
class: "spg-boolean-switch__title",
|
|
1628
1626
|
id: n.question.labelRenderedAriaID
|
|
1629
1627
|
}, [
|
|
@@ -1635,7 +1633,7 @@ const Nt = /* @__PURE__ */ g({
|
|
|
1635
1633
|
])
|
|
1636
1634
|
], 8, kt));
|
|
1637
1635
|
}
|
|
1638
|
-
}), Mt = { class: "svc-string-editor__content" }, St = /* @__PURE__ */
|
|
1636
|
+
}), 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 = {
|
|
1639
1637
|
key: 0,
|
|
1640
1638
|
class: "svc-string-editor__error"
|
|
1641
1639
|
}, Vt = /* @__PURE__ */ g({
|
|
@@ -1644,7 +1642,7 @@ const Nt = /* @__PURE__ */ g({
|
|
|
1644
1642
|
locString: {}
|
|
1645
1643
|
},
|
|
1646
1644
|
setup(c) {
|
|
1647
|
-
const t = c, e = k(() => t.locString.locStr), o = k(() => t.locString.creator), n = I(),
|
|
1645
|
+
const t = c, e = k(() => t.locString.locStr), o = k(() => t.locString.creator), n = I(), i = I(), r = z(
|
|
1648
1646
|
() => {
|
|
1649
1647
|
const q = new we(
|
|
1650
1648
|
e.value,
|
|
@@ -1660,165 +1658,165 @@ const Nt = /* @__PURE__ */ g({
|
|
|
1660
1658
|
}
|
|
1661
1659
|
), m = k(() => {
|
|
1662
1660
|
var q;
|
|
1663
|
-
return (q =
|
|
1661
|
+
return (q = r.value) == null ? void 0 : q.errorText;
|
|
1664
1662
|
}), b = k(() => {
|
|
1665
1663
|
var q;
|
|
1666
|
-
return (q =
|
|
1664
|
+
return (q = r.value) == null ? void 0 : q.className(e.value.renderedHtml);
|
|
1667
1665
|
}), y = k(() => {
|
|
1668
1666
|
var q;
|
|
1669
|
-
return (q =
|
|
1670
|
-
}),
|
|
1667
|
+
return (q = r.value) == null ? void 0 : q.placeholder;
|
|
1668
|
+
}), f = k(() => {
|
|
1671
1669
|
var q;
|
|
1672
|
-
return (q =
|
|
1673
|
-
}),
|
|
1670
|
+
return (q = r.value) == null ? void 0 : q.contentEditable;
|
|
1671
|
+
}), E = k(() => {
|
|
1674
1672
|
var q;
|
|
1675
|
-
return (q =
|
|
1676
|
-
}),
|
|
1673
|
+
return (q = r.value) == null ? void 0 : q.characterCounter;
|
|
1674
|
+
}), R = k(
|
|
1677
1675
|
() => {
|
|
1678
1676
|
var q;
|
|
1679
|
-
return (q =
|
|
1677
|
+
return (q = r.value) == null ? void 0 : q.showCharacterCounter;
|
|
1680
1678
|
}
|
|
1681
1679
|
), L = k(
|
|
1682
1680
|
() => {
|
|
1683
1681
|
var q;
|
|
1684
|
-
return (q =
|
|
1682
|
+
return (q = r.value) == null ? void 0 : q.getCharacterCounterClass;
|
|
1685
1683
|
}
|
|
1686
1684
|
), j = (q) => {
|
|
1687
|
-
var
|
|
1688
|
-
return n.value && (n.value.spellcheck = !1), e.value.__isEditing = !1, (
|
|
1689
|
-
},
|
|
1690
|
-
var
|
|
1691
|
-
(
|
|
1685
|
+
var D, B;
|
|
1686
|
+
return n.value && (n.value.spellcheck = !1), e.value.__isEditing = !1, (D = r.value) == null || D.onBlur(q), (B = r.value) == null ? void 0 : B.errorText;
|
|
1687
|
+
}, H = (q) => {
|
|
1688
|
+
var D;
|
|
1689
|
+
(D = r.value) == null || D.onFocus(q);
|
|
1692
1690
|
}, ve = (q) => {
|
|
1693
|
-
var
|
|
1694
|
-
(
|
|
1691
|
+
var D;
|
|
1692
|
+
(D = r.value) == null || D.onPaste(q);
|
|
1695
1693
|
}, se = (q) => {
|
|
1696
|
-
var
|
|
1697
|
-
(
|
|
1694
|
+
var D, B;
|
|
1695
|
+
(D = n.value) == null || D.focus(), e.value.__isEditing = !0, (B = r.value) == null || B.onClick(q);
|
|
1698
1696
|
}, J = () => {
|
|
1699
|
-
|
|
1697
|
+
i.value = e.value.renderedHtml;
|
|
1700
1698
|
}, me = G(
|
|
1701
1699
|
() => e.value,
|
|
1702
|
-
(q,
|
|
1703
|
-
|
|
1700
|
+
(q, D) => {
|
|
1701
|
+
D && q.onStringChanged.remove(J), q && (q.onStringChanged.add(J), J());
|
|
1704
1702
|
},
|
|
1705
1703
|
{
|
|
1706
1704
|
immediate: !0
|
|
1707
1705
|
}
|
|
1708
1706
|
);
|
|
1709
|
-
return
|
|
1707
|
+
return P(() => {
|
|
1710
1708
|
var q;
|
|
1711
1709
|
e.value.__isEditing && ((q = n.value) == null || q.focus());
|
|
1712
|
-
}),
|
|
1710
|
+
}), K(() => {
|
|
1713
1711
|
me(), e.value.onStringChanged.remove(J);
|
|
1714
|
-
}), (q,
|
|
1712
|
+
}), (q, D) => (a(), l("span", {
|
|
1715
1713
|
class: _(b.value)
|
|
1716
1714
|
}, [
|
|
1717
|
-
|
|
1715
|
+
d("span", Mt, [
|
|
1718
1716
|
St,
|
|
1719
1717
|
Bt,
|
|
1720
|
-
|
|
1721
|
-
e.value.hasHtml ? p("", !0) : (a(),
|
|
1718
|
+
d("span", It, [
|
|
1719
|
+
e.value.hasHtml ? p("", !0) : (a(), l("span", {
|
|
1722
1720
|
key: 0,
|
|
1723
1721
|
role: "textbox",
|
|
1724
1722
|
class: "sv-string-editor",
|
|
1725
1723
|
spellcheck: "false",
|
|
1726
|
-
onFocus:
|
|
1724
|
+
onFocus: H,
|
|
1727
1725
|
onPaste: ve,
|
|
1728
1726
|
onBlur: j,
|
|
1729
|
-
onInput:
|
|
1727
|
+
onInput: D[0] || (D[0] = //@ts-ignore
|
|
1730
1728
|
(...B) => {
|
|
1731
1729
|
var M, S;
|
|
1732
|
-
return ((M = s(
|
|
1730
|
+
return ((M = s(r)) == null ? void 0 : M.onInput) && ((S = s(r)) == null ? void 0 : S.onInput(...B));
|
|
1733
1731
|
}),
|
|
1734
|
-
onKeydown:
|
|
1732
|
+
onKeydown: D[1] || (D[1] = //@ts-ignore
|
|
1735
1733
|
(...B) => {
|
|
1736
1734
|
var M, S;
|
|
1737
|
-
return ((M = s(
|
|
1735
|
+
return ((M = s(r)) == null ? void 0 : M.onKeyDown) && ((S = s(r)) == null ? void 0 : S.onKeyDown(...B));
|
|
1738
1736
|
}),
|
|
1739
|
-
onKeyup:
|
|
1737
|
+
onKeyup: D[2] || (D[2] = //@ts-ignore
|
|
1740
1738
|
(...B) => {
|
|
1741
1739
|
var M, S;
|
|
1742
|
-
return ((M = s(
|
|
1740
|
+
return ((M = s(r)) == null ? void 0 : M.onKeyUp) && ((S = s(r)) == null ? void 0 : S.onKeyUp(...B));
|
|
1743
1741
|
}),
|
|
1744
|
-
onCompositionstart:
|
|
1742
|
+
onCompositionstart: D[3] || (D[3] = //@ts-ignore
|
|
1745
1743
|
(...B) => {
|
|
1746
1744
|
var M, S;
|
|
1747
|
-
return ((M = s(
|
|
1745
|
+
return ((M = s(r)) == null ? void 0 : M.onCompositionStart) && ((S = s(r)) == null ? void 0 : S.onCompositionStart(...B));
|
|
1748
1746
|
}),
|
|
1749
|
-
onCompositionend:
|
|
1747
|
+
onCompositionend: D[4] || (D[4] = //@ts-ignore
|
|
1750
1748
|
(...B) => {
|
|
1751
1749
|
var M, S;
|
|
1752
|
-
return ((M = s(
|
|
1750
|
+
return ((M = s(r)) == null ? void 0 : M.onCompositionEnd) && ((S = s(r)) == null ? void 0 : S.onCompositionEnd(...B));
|
|
1753
1751
|
}),
|
|
1754
|
-
onMouseup:
|
|
1752
|
+
onMouseup: D[5] || (D[5] = //@ts-ignore
|
|
1755
1753
|
(...B) => {
|
|
1756
1754
|
var M, S;
|
|
1757
|
-
return ((M = s(
|
|
1755
|
+
return ((M = s(r)) == null ? void 0 : M.onMouseUp) && ((S = s(r)) == null ? void 0 : S.onMouseUp(...B));
|
|
1758
1756
|
}),
|
|
1759
1757
|
onClick: se,
|
|
1760
|
-
textContent:
|
|
1758
|
+
textContent: i.value,
|
|
1761
1759
|
"aria-placeholder": y.value,
|
|
1762
1760
|
"aria-label": y.value || "content editable",
|
|
1763
|
-
contenteditable:
|
|
1761
|
+
contenteditable: f.value,
|
|
1764
1762
|
ref_key: "root",
|
|
1765
1763
|
ref: n
|
|
1766
1764
|
}, null, 40, Et)),
|
|
1767
|
-
e.value.hasHtml ? (a(),
|
|
1765
|
+
e.value.hasHtml ? (a(), l("span", {
|
|
1768
1766
|
key: 1,
|
|
1769
1767
|
role: "textbox",
|
|
1770
1768
|
class: "sv-string-editor sv-string-editor--html",
|
|
1771
1769
|
spellcheck: "false",
|
|
1772
|
-
onFocus:
|
|
1770
|
+
onFocus: H,
|
|
1773
1771
|
onBlur: j,
|
|
1774
|
-
onKeydown:
|
|
1772
|
+
onKeydown: D[6] || (D[6] = //@ts-ignore
|
|
1775
1773
|
(...B) => {
|
|
1776
1774
|
var M, S;
|
|
1777
|
-
return ((M = s(
|
|
1775
|
+
return ((M = s(r)) == null ? void 0 : M.onKeyDown) && ((S = s(r)) == null ? void 0 : S.onKeyDown(...B));
|
|
1778
1776
|
}),
|
|
1779
|
-
onKeyup:
|
|
1777
|
+
onKeyup: D[7] || (D[7] = //@ts-ignore
|
|
1780
1778
|
(...B) => {
|
|
1781
1779
|
var M, S;
|
|
1782
|
-
return ((M = s(
|
|
1780
|
+
return ((M = s(r)) == null ? void 0 : M.onKeyUp) && ((S = s(r)) == null ? void 0 : S.onKeyUp(...B));
|
|
1783
1781
|
}),
|
|
1784
|
-
onCompositionstart:
|
|
1782
|
+
onCompositionstart: D[8] || (D[8] = //@ts-ignore
|
|
1785
1783
|
(...B) => {
|
|
1786
1784
|
var M, S;
|
|
1787
|
-
return ((M = s(
|
|
1785
|
+
return ((M = s(r)) == null ? void 0 : M.onCompositionStart) && ((S = s(r)) == null ? void 0 : S.onCompositionStart(...B));
|
|
1788
1786
|
}),
|
|
1789
|
-
onCompositionend:
|
|
1787
|
+
onCompositionend: D[9] || (D[9] = //@ts-ignore
|
|
1790
1788
|
(...B) => {
|
|
1791
1789
|
var M, S;
|
|
1792
|
-
return ((M = s(
|
|
1790
|
+
return ((M = s(r)) == null ? void 0 : M.onCompositionEnd) && ((S = s(r)) == null ? void 0 : S.onCompositionEnd(...B));
|
|
1793
1791
|
}),
|
|
1794
|
-
onMouseup:
|
|
1792
|
+
onMouseup: D[10] || (D[10] = //@ts-ignore
|
|
1795
1793
|
(...B) => {
|
|
1796
1794
|
var M, S;
|
|
1797
|
-
return ((M = s(
|
|
1795
|
+
return ((M = s(r)) == null ? void 0 : M.onMouseUp) && ((S = s(r)) == null ? void 0 : S.onMouseUp(...B));
|
|
1798
1796
|
}),
|
|
1799
1797
|
onClick: se,
|
|
1800
1798
|
"aria-placeholder": y.value,
|
|
1801
1799
|
"aria-label": y.value || "content editable",
|
|
1802
|
-
contenteditable:
|
|
1803
|
-
innerHTML:
|
|
1800
|
+
contenteditable: f.value,
|
|
1801
|
+
innerHTML: i.value,
|
|
1804
1802
|
ref_key: "root",
|
|
1805
1803
|
ref: n
|
|
1806
1804
|
}, null, 40, Pt)) : p("", !0),
|
|
1807
|
-
|
|
1805
|
+
R.value ? (a(), h(s(u), {
|
|
1808
1806
|
key: 2,
|
|
1809
1807
|
is: "sv-character-counter",
|
|
1810
|
-
counter:
|
|
1808
|
+
counter: E.value,
|
|
1811
1809
|
remainingCharacterCounter: L.value
|
|
1812
1810
|
}, null, 8, ["counter", "remainingCharacterCounter"])) : p("", !0)
|
|
1813
1811
|
])
|
|
1814
1812
|
]),
|
|
1815
|
-
m.value ? (a(),
|
|
1813
|
+
m.value ? (a(), l("span", Rt, $(m.value), 1)) : p("", !0)
|
|
1816
1814
|
], 2));
|
|
1817
1815
|
}
|
|
1818
1816
|
}), At = {
|
|
1819
1817
|
key: 0,
|
|
1820
1818
|
class: "svc-toolbox__search-container"
|
|
1821
|
-
},
|
|
1819
|
+
}, zt = /* @__PURE__ */ d("div", { class: "svc-toolbox__category-separator svc-toolbox__category-separator--search" }, null, -1), Lt = {
|
|
1822
1820
|
key: 1,
|
|
1823
1821
|
class: "svc-toolbox__placeholder"
|
|
1824
1822
|
}, Ft = {
|
|
@@ -1831,30 +1829,30 @@ const Nt = /* @__PURE__ */ g({
|
|
|
1831
1829
|
},
|
|
1832
1830
|
setup(c) {
|
|
1833
1831
|
const t = c, e = k(() => t.model.toolbox), o = I();
|
|
1834
|
-
|
|
1832
|
+
T(() => e.value);
|
|
1835
1833
|
let n;
|
|
1836
|
-
|
|
1834
|
+
P(() => {
|
|
1837
1835
|
e.value.setRootElement(o.value), n = new ke(
|
|
1838
1836
|
e.value.containerElement,
|
|
1839
1837
|
e.value
|
|
1840
1838
|
);
|
|
1841
|
-
}),
|
|
1839
|
+
}), K(() => {
|
|
1842
1840
|
n == null || n.dispose(), e.value.setRootElement(void 0);
|
|
1843
1841
|
});
|
|
1844
|
-
const
|
|
1845
|
-
return (
|
|
1842
|
+
const i = k(() => e.value.renderedActions);
|
|
1843
|
+
return (r, m) => (a(), l("div", {
|
|
1846
1844
|
class: _(e.value.classNames),
|
|
1847
1845
|
ref_key: "root",
|
|
1848
1846
|
ref: o
|
|
1849
1847
|
}, [
|
|
1850
|
-
|
|
1848
|
+
d("div", {
|
|
1851
1849
|
onFocusout: m[0] || (m[0] = (b) => e.value.focusOut(b)),
|
|
1852
1850
|
class: "svc-toolbox__panel"
|
|
1853
1851
|
}, [
|
|
1854
|
-
e.value.showSearch ? (a(),
|
|
1852
|
+
e.value.showSearch ? (a(), l("div", At, [
|
|
1855
1853
|
e.value.isCompactRendered ? (a(), h(s(u), {
|
|
1856
1854
|
is: "svc-toolbox-tool",
|
|
1857
|
-
creator:
|
|
1855
|
+
creator: r.model,
|
|
1858
1856
|
key: "searchitem",
|
|
1859
1857
|
item: e.value.searchItem,
|
|
1860
1858
|
parentModel: e.value,
|
|
@@ -1864,22 +1862,22 @@ const Nt = /* @__PURE__ */ g({
|
|
|
1864
1862
|
is: "svc-search",
|
|
1865
1863
|
model: e.value.searchManager
|
|
1866
1864
|
}, null, 8, ["model"]),
|
|
1867
|
-
|
|
1865
|
+
zt
|
|
1868
1866
|
])) : p("", !0),
|
|
1869
|
-
e.value.showPlaceholder ? (a(),
|
|
1867
|
+
e.value.showPlaceholder ? (a(), l("div", Lt, $(e.value.toolboxNoResultsFound), 1)) : p("", !0),
|
|
1870
1868
|
v(s(u), { is: "sv-scroll" }, {
|
|
1871
1869
|
default: Z(() => [
|
|
1872
|
-
e.value.showInSingleCategory ? p("", !0) : (a(!0),
|
|
1870
|
+
e.value.showInSingleCategory ? p("", !0) : (a(!0), l(w, { key: 0 }, V(e.value.categories, (b, y) => (a(), h(s(u), {
|
|
1873
1871
|
is: "svc-toolbox-category",
|
|
1874
1872
|
key: y,
|
|
1875
1873
|
category: b,
|
|
1876
1874
|
toolbox: e.value
|
|
1877
1875
|
}, null, 8, ["category", "toolbox"]))), 128)),
|
|
1878
|
-
e.value.showInSingleCategory ? (a(),
|
|
1879
|
-
(a(!0),
|
|
1876
|
+
e.value.showInSingleCategory ? (a(), l("div", Ft, [
|
|
1877
|
+
(a(!0), l(w, null, V(i.value, (b) => (a(), h(s(u), {
|
|
1880
1878
|
key: b.renderedId,
|
|
1881
1879
|
is: "svc-toolbox-tool",
|
|
1882
|
-
creator:
|
|
1880
|
+
creator: r.model,
|
|
1883
1881
|
item: b,
|
|
1884
1882
|
parentModel: e.value,
|
|
1885
1883
|
isCompact: e.value.isCompactRendered
|
|
@@ -1903,7 +1901,7 @@ const Nt = /* @__PURE__ */ g({
|
|
|
1903
1901
|
isCompact: { type: Boolean }
|
|
1904
1902
|
},
|
|
1905
1903
|
setup(c) {
|
|
1906
|
-
const t = c, e =
|
|
1904
|
+
const t = c, e = z(
|
|
1907
1905
|
() => new Te(
|
|
1908
1906
|
t.item,
|
|
1909
1907
|
t.creator,
|
|
@@ -1914,25 +1912,25 @@ const Nt = /* @__PURE__ */ g({
|
|
|
1914
1912
|
n.dispose();
|
|
1915
1913
|
}
|
|
1916
1914
|
), o = I();
|
|
1917
|
-
return
|
|
1915
|
+
return P(() => {
|
|
1918
1916
|
const n = t.item;
|
|
1919
|
-
n.updateModeCallback = (
|
|
1920
|
-
n.mode =
|
|
1917
|
+
n.updateModeCallback = (i, r) => {
|
|
1918
|
+
n.mode = i, re(() => r(i, o.value));
|
|
1921
1919
|
}, n.afterRender();
|
|
1922
|
-
}),
|
|
1920
|
+
}), K(() => {
|
|
1923
1921
|
const n = t.item;
|
|
1924
1922
|
n.updateModeCallback = void 0;
|
|
1925
|
-
}),
|
|
1926
|
-
var
|
|
1927
|
-
return a(),
|
|
1923
|
+
}), T(() => t.item), (n, i) => {
|
|
1924
|
+
var r;
|
|
1925
|
+
return a(), l("div", {
|
|
1928
1926
|
class: _(n.item.css),
|
|
1929
1927
|
ref_key: "root",
|
|
1930
1928
|
ref: o
|
|
1931
1929
|
}, [
|
|
1932
|
-
n.item.needSeparator && !n.creator.toolbox.showCategoryTitles ? (a(),
|
|
1933
|
-
|
|
1930
|
+
n.item.needSeparator && !n.creator.toolbox.showCategoryTitles ? (a(), l("div", Ut)) : p("", !0),
|
|
1931
|
+
d("div", {
|
|
1934
1932
|
class: "svc-toolbox__tool-content sv-action__content",
|
|
1935
|
-
onPointerdown:
|
|
1933
|
+
onPointerdown: i[0] || (i[0] = //@ts-ignore
|
|
1936
1934
|
(...m) => {
|
|
1937
1935
|
var b, y;
|
|
1938
1936
|
return ((b = s(e)) == null ? void 0 : b.onPointerDown) && ((y = s(e)) == null ? void 0 : y.onPointerDown(...m));
|
|
@@ -1940,7 +1938,7 @@ const Nt = /* @__PURE__ */ g({
|
|
|
1940
1938
|
}, [
|
|
1941
1939
|
v(s(u), {
|
|
1942
1940
|
viewModel: s(e),
|
|
1943
|
-
is: (
|
|
1941
|
+
is: (r = s(e)) == null ? void 0 : r.itemComponent,
|
|
1944
1942
|
item: n.item,
|
|
1945
1943
|
creator: n.creator,
|
|
1946
1944
|
isCompact: n.isCompact
|
|
@@ -1961,15 +1959,15 @@ const Nt = /* @__PURE__ */ g({
|
|
|
1961
1959
|
viewModel: {}
|
|
1962
1960
|
},
|
|
1963
1961
|
setup(c) {
|
|
1964
|
-
return (t, e) => (a(),
|
|
1965
|
-
C((a(),
|
|
1962
|
+
return (t, e) => (a(), l(w, null, [
|
|
1963
|
+
C((a(), l("div", {
|
|
1966
1964
|
class: _(["svc-toolbox__item", t.item.renderedCss]),
|
|
1967
1965
|
role: "button",
|
|
1968
1966
|
"aria-label": t.item.tooltip,
|
|
1969
1967
|
title: t.item.tooltip,
|
|
1970
1968
|
onClick: e[0] || (e[0] = (o) => t.viewModel.click(o))
|
|
1971
1969
|
}, [
|
|
1972
|
-
|
|
1970
|
+
d("span", Qt, [
|
|
1973
1971
|
t.item.iconName ? (a(), h(s(u), {
|
|
1974
1972
|
key: 0,
|
|
1975
1973
|
is: "sv-svg-icon",
|
|
@@ -1978,11 +1976,11 @@ const Nt = /* @__PURE__ */ g({
|
|
|
1978
1976
|
class: "svc-toolbox__item-icon"
|
|
1979
1977
|
}, null, 8, ["iconName"])) : p("", !0)
|
|
1980
1978
|
]),
|
|
1981
|
-
t.isCompact ? p("", !0) : (a(),
|
|
1979
|
+
t.isCompact ? p("", !0) : (a(), l("span", Gt, $(t.item.title), 1))
|
|
1982
1980
|
], 10, Ot)), [
|
|
1983
|
-
[s(
|
|
1981
|
+
[s(N)]
|
|
1984
1982
|
]),
|
|
1985
|
-
t.isCompact ? (a(),
|
|
1983
|
+
t.isCompact ? (a(), l("span", {
|
|
1986
1984
|
key: 0,
|
|
1987
1985
|
class: "svc-toolbox__item-banner",
|
|
1988
1986
|
onClick: e[1] || (e[1] = (o) => t.viewModel.click(o))
|
|
@@ -1993,7 +1991,7 @@ const Nt = /* @__PURE__ */ g({
|
|
|
1993
1991
|
size: 24,
|
|
1994
1992
|
class: "svc-toolbox__item-icon"
|
|
1995
1993
|
}, null, 8, ["iconName"]),
|
|
1996
|
-
|
|
1994
|
+
d("span", null, $(t.item.title), 1)
|
|
1997
1995
|
])) : p("", !0)
|
|
1998
1996
|
], 64));
|
|
1999
1997
|
}
|
|
@@ -2011,7 +2009,7 @@ const Nt = /* @__PURE__ */ g({
|
|
|
2011
2009
|
}, o = (n) => {
|
|
2012
2010
|
t.viewModel.onMouseLeave(t.item, n);
|
|
2013
2011
|
};
|
|
2014
|
-
return (n,
|
|
2012
|
+
return (n, i) => (a(), l(w, null, [
|
|
2015
2013
|
v(s(u), {
|
|
2016
2014
|
is: "svc-toolbox-item",
|
|
2017
2015
|
viewModel: n.viewModel,
|
|
@@ -2019,7 +2017,7 @@ const Nt = /* @__PURE__ */ g({
|
|
|
2019
2017
|
creator: n.creator,
|
|
2020
2018
|
isCompact: n.isCompact
|
|
2021
2019
|
}, null, 8, ["viewModel", "item", "creator", "isCompact"]),
|
|
2022
|
-
|
|
2020
|
+
d("div", {
|
|
2023
2021
|
class: "svc-toolbox__item-submenu-button",
|
|
2024
2022
|
onMouseover: e,
|
|
2025
2023
|
onMouseleave: o
|
|
@@ -2047,21 +2045,21 @@ const Nt = /* @__PURE__ */ g({
|
|
|
2047
2045
|
},
|
|
2048
2046
|
setup(c) {
|
|
2049
2047
|
const t = c;
|
|
2050
|
-
return
|
|
2048
|
+
return T(() => t.category), (e, o) => (a(), l("div", {
|
|
2051
2049
|
class: _(["svc-toolbox__category", {
|
|
2052
2050
|
"svc-toolbox__category--collapsed": e.category.collapsed,
|
|
2053
2051
|
"svc-toolbox__category--empty": e.category.empty
|
|
2054
2052
|
}])
|
|
2055
2053
|
}, [
|
|
2056
|
-
|
|
2057
|
-
C((a(),
|
|
2054
|
+
d("div", Jt, [
|
|
2055
|
+
C((a(), l("div", {
|
|
2058
2056
|
class: _(["svc-toolbox__category-header", {
|
|
2059
2057
|
"svc-toolbox__category-header--collapsed": e.toolbox.canCollapseCategories
|
|
2060
2058
|
}]),
|
|
2061
2059
|
onClick: o[0] || (o[0] = (n) => e.category.toggleState())
|
|
2062
2060
|
}, [
|
|
2063
|
-
|
|
2064
|
-
e.toolbox.canCollapseCategories ? (a(),
|
|
2061
|
+
d("span", Zt, $(e.category.title), 1),
|
|
2062
|
+
e.toolbox.canCollapseCategories ? (a(), l("div", Xt, [
|
|
2065
2063
|
v(s(u), {
|
|
2066
2064
|
is: "sv-svg-icon",
|
|
2067
2065
|
iconName: e.category.iconName,
|
|
@@ -2070,10 +2068,10 @@ const Nt = /* @__PURE__ */ g({
|
|
|
2070
2068
|
}, null, 8, ["iconName", "class"])
|
|
2071
2069
|
])) : p("", !0)
|
|
2072
2070
|
], 2)), [
|
|
2073
|
-
[s(
|
|
2071
|
+
[s(N)]
|
|
2074
2072
|
])
|
|
2075
2073
|
]),
|
|
2076
|
-
(a(!0),
|
|
2074
|
+
(a(!0), l(w, null, V(e.category.items, (n) => (a(), h(s(u), {
|
|
2077
2075
|
is: "svc-toolbox-tool",
|
|
2078
2076
|
item: n,
|
|
2079
2077
|
key: n.renderedId,
|
|
@@ -2091,14 +2089,14 @@ const Nt = /* @__PURE__ */ g({
|
|
|
2091
2089
|
},
|
|
2092
2090
|
setup(c) {
|
|
2093
2091
|
const t = c, e = _e(() => t.model.renderedActions);
|
|
2094
|
-
return
|
|
2092
|
+
return T(() => t.model), (o, n) => (a(), l("div", {
|
|
2095
2093
|
class: _(o.model.cssClasses.root)
|
|
2096
2094
|
}, [
|
|
2097
|
-
(a(!0),
|
|
2098
|
-
key:
|
|
2095
|
+
(a(!0), l(w, null, V(s(e), (i, r) => (a(), h(s(u), {
|
|
2096
|
+
key: r,
|
|
2099
2097
|
is: "svc-toolbox-tool",
|
|
2100
2098
|
creator: o.creator,
|
|
2101
|
-
item:
|
|
2099
|
+
item: i,
|
|
2102
2100
|
parentModel: o.model,
|
|
2103
2101
|
isCompact: !1
|
|
2104
2102
|
}, null, 8, ["creator", "item", "parentModel"]))), 128))
|
|
@@ -2132,36 +2130,36 @@ const Nt = /* @__PURE__ */ g({
|
|
|
2132
2130
|
},
|
|
2133
2131
|
setup(c) {
|
|
2134
2132
|
const t = c, e = k(() => t.model.survey);
|
|
2135
|
-
return
|
|
2136
|
-
|
|
2133
|
+
return T(() => t.model), T(() => e.value), (o, n) => (a(), l(w, null, [
|
|
2134
|
+
d("div", en, [
|
|
2137
2135
|
o.model.isToolboxVisible ? (a(), h(s(u), {
|
|
2138
2136
|
key: 0,
|
|
2139
2137
|
is: "svc-toolbox",
|
|
2140
2138
|
model: o.model.creator
|
|
2141
2139
|
}, null, 8, ["model"])) : p("", !0)
|
|
2142
2140
|
]),
|
|
2143
|
-
|
|
2141
|
+
d("div", {
|
|
2144
2142
|
class: _(["svc-tab-designer", o.model.getRootCss()]),
|
|
2145
2143
|
onClick: n[0] || (n[0] = //@ts-ignore
|
|
2146
|
-
(...
|
|
2144
|
+
(...i) => o.model.clickDesigner && o.model.clickDesigner(...i))
|
|
2147
2145
|
}, [
|
|
2148
2146
|
v(s(u), { is: "sv-scroll" }, {
|
|
2149
2147
|
default: Z(() => [
|
|
2150
|
-
|
|
2151
|
-
o.model.showPlaceholder ? (a(),
|
|
2152
|
-
o.model.creator.showHeaderInEmptySurvey && o.model.creator.allowEditSurveyTitle ? (a(),
|
|
2148
|
+
d("div", on, [
|
|
2149
|
+
o.model.showPlaceholder ? (a(), l(w, { key: 0 }, [
|
|
2150
|
+
o.model.creator.showHeaderInEmptySurvey && o.model.creator.allowEditSurveyTitle ? (a(), l("div", sn, [
|
|
2153
2151
|
v(s(u), {
|
|
2154
2152
|
is: "survey-header",
|
|
2155
2153
|
survey: o.model.creator.survey
|
|
2156
2154
|
}, null, 8, ["survey"])
|
|
2157
2155
|
])) : p("", !0),
|
|
2158
|
-
|
|
2156
|
+
d("div", tn, [
|
|
2159
2157
|
v(W, {
|
|
2160
2158
|
name: "designer",
|
|
2161
2159
|
placeholderTitleText: o.model.placeholderTitleText,
|
|
2162
2160
|
placeholderDescriptionText: o.model.placeholderDescriptionText
|
|
2163
2161
|
}, null, 8, ["placeholderTitleText", "placeholderDescriptionText"]),
|
|
2164
|
-
|
|
2162
|
+
d("div", nn, [
|
|
2165
2163
|
v(s(u), {
|
|
2166
2164
|
is: "svc-page",
|
|
2167
2165
|
survey: o.model.creator.survey,
|
|
@@ -2172,35 +2170,35 @@ const Nt = /* @__PURE__ */ g({
|
|
|
2172
2170
|
])
|
|
2173
2171
|
])
|
|
2174
2172
|
], 64)) : p("", !0),
|
|
2175
|
-
o.model.showPlaceholder ? p("", !0) : (a(),
|
|
2176
|
-
|
|
2173
|
+
o.model.showPlaceholder ? p("", !0) : (a(), l(w, { key: 1 }, [
|
|
2174
|
+
d("div", {
|
|
2177
2175
|
class: _(o.model.designerCss),
|
|
2178
|
-
style:
|
|
2176
|
+
style: F([
|
|
2179
2177
|
{ maxWidth: o.model.survey.renderedWidth },
|
|
2180
2178
|
o.model.surfaceCssVariables
|
|
2181
2179
|
])
|
|
2182
2180
|
}, [
|
|
2183
|
-
o.model.creator.allowEditSurveyTitle ? (a(),
|
|
2181
|
+
o.model.creator.allowEditSurveyTitle ? (a(), l("div", an, [
|
|
2184
2182
|
v(s(u), {
|
|
2185
2183
|
is: "survey-header",
|
|
2186
2184
|
survey: o.model.creator.survey
|
|
2187
2185
|
}, null, 8, ["survey"])
|
|
2188
2186
|
])) : p("", !0),
|
|
2189
|
-
o.model.creator.pageEditMode !== "bypage" ? (a(!0),
|
|
2190
|
-
key:
|
|
2187
|
+
o.model.creator.pageEditMode !== "bypage" ? (a(!0), l(w, { key: 1 }, V(o.model.pages, (i) => (a(), l("div", {
|
|
2188
|
+
key: i.id,
|
|
2191
2189
|
class: "svc-page",
|
|
2192
|
-
"data-sv-drop-target-survey-element":
|
|
2193
|
-
"data-sv-drop-target-page":
|
|
2190
|
+
"data-sv-drop-target-survey-element": i != o.model.newPage ? i.name : "newGhostPage",
|
|
2191
|
+
"data-sv-drop-target-page": i.name
|
|
2194
2192
|
}, [
|
|
2195
2193
|
v(s(u), {
|
|
2196
2194
|
is: "svc-page",
|
|
2197
2195
|
survey: o.model.creator.survey,
|
|
2198
2196
|
creator: o.model.creator,
|
|
2199
|
-
page:
|
|
2200
|
-
isGhost:
|
|
2197
|
+
page: i,
|
|
2198
|
+
isGhost: i == o.model.newPage
|
|
2201
2199
|
}, null, 8, ["survey", "creator", "page", "isGhost"])
|
|
2202
2200
|
], 8, ln))), 128)) : p("", !0),
|
|
2203
|
-
o.model.pagesController.page2Display && o.model.creator.pageEditMode === "bypage" ? (a(),
|
|
2201
|
+
o.model.pagesController.page2Display && o.model.creator.pageEditMode === "bypage" ? (a(), l("div", {
|
|
2204
2202
|
key: 2,
|
|
2205
2203
|
class: "svc-page",
|
|
2206
2204
|
"data-sv-drop-target-survey-element": o.model.displayPageDropTarget,
|
|
@@ -2214,15 +2212,15 @@ const Nt = /* @__PURE__ */ g({
|
|
|
2214
2212
|
}, null, 8, ["page", "creator", "isGhost"])
|
|
2215
2213
|
], 8, rn)) : p("", !0)
|
|
2216
2214
|
], 6),
|
|
2217
|
-
o.model.showSurfaceTools ? (a(),
|
|
2218
|
-
o.model.creator.showPageNavigator ? (a(),
|
|
2215
|
+
o.model.showSurfaceTools ? (a(), l("div", dn, [
|
|
2216
|
+
o.model.creator.showPageNavigator ? (a(), l("div", cn, [
|
|
2219
2217
|
v(s(u), {
|
|
2220
2218
|
is: "svc-page-navigator",
|
|
2221
2219
|
pagesController: o.model.pagesController,
|
|
2222
2220
|
pageEditMode: o.model.creator.pageEditMode
|
|
2223
2221
|
}, null, 8, ["pagesController", "pageEditMode"])
|
|
2224
2222
|
])) : p("", !0),
|
|
2225
|
-
o.model.showSurfaceToolbar ? (a(),
|
|
2223
|
+
o.model.showSurfaceToolbar ? (a(), l("div", un, [
|
|
2226
2224
|
v(s(u), {
|
|
2227
2225
|
is: "sv-action-bar",
|
|
2228
2226
|
model: o.model.surfaceToolbar
|
|
@@ -2237,7 +2235,7 @@ const Nt = /* @__PURE__ */ g({
|
|
|
2237
2235
|
], 2)
|
|
2238
2236
|
], 64));
|
|
2239
2237
|
}
|
|
2240
|
-
}), vn = ["id", "data-sv-drop-target-survey-page"], mn = /* @__PURE__ */
|
|
2238
|
+
}), 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 = {
|
|
2241
2239
|
key: 0,
|
|
2242
2240
|
class: "svc-page__placeholder_frame"
|
|
2243
2241
|
}, bn = { class: "svc-panel__placeholder_frame" }, yn = { class: "svc-panel__placeholder" }, hn = { class: "svc-page__content-actions" }, qn = {
|
|
@@ -2252,14 +2250,14 @@ const Nt = /* @__PURE__ */ g({
|
|
|
2252
2250
|
isGhost: { type: Boolean }
|
|
2253
2251
|
},
|
|
2254
2252
|
setup(c) {
|
|
2255
|
-
const t = c, e = I(), o =
|
|
2253
|
+
const t = c, e = I(), o = z(
|
|
2256
2254
|
() => {
|
|
2257
|
-
const
|
|
2258
|
-
return
|
|
2255
|
+
const i = new De(t.creator, t.page);
|
|
2256
|
+
return i.isGhost = t.isGhost, i;
|
|
2259
2257
|
},
|
|
2260
2258
|
[() => t.page],
|
|
2261
|
-
(
|
|
2262
|
-
|
|
2259
|
+
(i) => {
|
|
2260
|
+
i.dispose();
|
|
2263
2261
|
}
|
|
2264
2262
|
);
|
|
2265
2263
|
G(
|
|
@@ -2269,23 +2267,23 @@ const Nt = /* @__PURE__ */ g({
|
|
|
2269
2267
|
}
|
|
2270
2268
|
), Y(() => {
|
|
2271
2269
|
e.value && o.value && (o.value.rootElement = e.value);
|
|
2272
|
-
}),
|
|
2270
|
+
}), P(() => {
|
|
2273
2271
|
e.value && o.value && (o.value.rootElement = e.value);
|
|
2274
2272
|
});
|
|
2275
|
-
const n = (
|
|
2276
|
-
o.value.hover(
|
|
2273
|
+
const n = (i) => {
|
|
2274
|
+
o.value.hover(i, i.currentTarget);
|
|
2277
2275
|
};
|
|
2278
|
-
return (
|
|
2276
|
+
return (i, r) => s(o).page ? C((a(), l("div", {
|
|
2279
2277
|
key: s(o).page.id,
|
|
2280
2278
|
id: s(o).page.id,
|
|
2281
2279
|
class: _(["svc-page__content", s(o).css]),
|
|
2282
2280
|
"data-sv-drop-target-survey-page": s(o).dropTargetName,
|
|
2283
|
-
onClick:
|
|
2281
|
+
onClick: r[1] || (r[1] = (m) => {
|
|
2284
2282
|
s(o).select(s(o), m), m.stopPropagation();
|
|
2285
2283
|
}),
|
|
2286
2284
|
ref_key: "root",
|
|
2287
2285
|
ref: e,
|
|
2288
|
-
onDblclick:
|
|
2286
|
+
onDblclick: r[2] || (r[2] = (m) => s(o).dblclick(m)),
|
|
2289
2287
|
onMouseover: n,
|
|
2290
2288
|
onMouseleave: n
|
|
2291
2289
|
}, [
|
|
@@ -2296,17 +2294,17 @@ const Nt = /* @__PURE__ */ g({
|
|
|
2296
2294
|
survey: s(o).creator.survey,
|
|
2297
2295
|
page: s(o).page
|
|
2298
2296
|
}, null, 8, ["survey", "page"]),
|
|
2299
|
-
s(o).showPlaceholder ? (a(),
|
|
2300
|
-
|
|
2301
|
-
|
|
2297
|
+
s(o).showPlaceholder ? (a(), l("div", gn, [
|
|
2298
|
+
d("div", bn, [
|
|
2299
|
+
d("div", yn, $(s(o).placeholderText), 1)
|
|
2302
2300
|
])
|
|
2303
2301
|
])) : p("", !0),
|
|
2304
|
-
s(o).allowDragging && !s(o).isGhost ? (a(),
|
|
2302
|
+
s(o).allowDragging && !s(o).isGhost ? (a(), l("div", {
|
|
2305
2303
|
key: 1,
|
|
2306
2304
|
class: "svc-question__drag-area",
|
|
2307
|
-
onPointerdown:
|
|
2305
|
+
onPointerdown: r[0] || (r[0] = (m) => s(o).onPointerDown(m))
|
|
2308
2306
|
}, [
|
|
2309
|
-
v(s(u),
|
|
2307
|
+
v(s(u), A({
|
|
2310
2308
|
is: "sv-svg-icon",
|
|
2311
2309
|
class: "svc-question__drag-element"
|
|
2312
2310
|
}, {
|
|
@@ -2314,7 +2312,7 @@ const Nt = /* @__PURE__ */ g({
|
|
|
2314
2312
|
iconName: "icon-drag-area-indicator_24x16",
|
|
2315
2313
|
size: "auto"
|
|
2316
2314
|
}), null, 16),
|
|
2317
|
-
|
|
2315
|
+
d("div", hn, [
|
|
2318
2316
|
v(s(u), {
|
|
2319
2317
|
is: "sv-action-bar",
|
|
2320
2318
|
model: s(o).actionContainer
|
|
@@ -2326,7 +2324,7 @@ const Nt = /* @__PURE__ */ g({
|
|
|
2326
2324
|
}, null, 8, ["model"])) : p("", !0)
|
|
2327
2325
|
])
|
|
2328
2326
|
], 32)) : p("", !0),
|
|
2329
|
-
!s(o).allowDragging || s(o).isGhost ? (a(),
|
|
2327
|
+
!s(o).allowDragging || s(o).isGhost ? (a(), l("div", qn, [
|
|
2330
2328
|
v(s(u), {
|
|
2331
2329
|
is: "sv-action-bar",
|
|
2332
2330
|
model: s(o).actionContainer
|
|
@@ -2342,7 +2340,7 @@ const Nt = /* @__PURE__ */ g({
|
|
|
2342
2340
|
model: s(o).footerActionsBar
|
|
2343
2341
|
}, null, 8, ["model"])
|
|
2344
2342
|
], 42, vn)), [
|
|
2345
|
-
[s(
|
|
2343
|
+
[s(N)]
|
|
2346
2344
|
]) : p("", !0);
|
|
2347
2345
|
}
|
|
2348
2346
|
}), kn = { class: "svc-add-new-item-button__text" }, $n = /* @__PURE__ */ g({
|
|
@@ -2354,19 +2352,19 @@ const Nt = /* @__PURE__ */ g({
|
|
|
2354
2352
|
},
|
|
2355
2353
|
setup(c) {
|
|
2356
2354
|
const t = c;
|
|
2357
|
-
|
|
2355
|
+
T(() => t.item.data);
|
|
2358
2356
|
const e = k(
|
|
2359
2357
|
() => "svc-element__add-new-question " + (t.buttonClass || "svc-btn")
|
|
2360
2358
|
), o = k(
|
|
2361
2359
|
() => t.renderPopup === void 0 || t.renderPopup !== !1
|
|
2362
2360
|
);
|
|
2363
|
-
return (n,
|
|
2364
|
-
C((a(),
|
|
2361
|
+
return (n, i) => (a(), l(w, null, [
|
|
2362
|
+
C((a(), l("div", {
|
|
2365
2363
|
class: _(e.value),
|
|
2366
|
-
onClick:
|
|
2367
|
-
n.item.data.addNewQuestion(n.item,
|
|
2364
|
+
onClick: i[0] || (i[0] = (r) => {
|
|
2365
|
+
n.item.data.addNewQuestion(n.item, r), r.stopPropagation();
|
|
2368
2366
|
}),
|
|
2369
|
-
onMouseover:
|
|
2367
|
+
onMouseover: i[1] || (i[1] = (r) => n.item.data.hoverStopper && n.item.data.hoverStopper(r, r.currentTarget))
|
|
2370
2368
|
}, [
|
|
2371
2369
|
v(s(u), {
|
|
2372
2370
|
is: "sv-svg-icon",
|
|
@@ -2374,7 +2372,7 @@ const Nt = /* @__PURE__ */ g({
|
|
|
2374
2372
|
iconName: "icon-add_24x24",
|
|
2375
2373
|
size: "auto"
|
|
2376
2374
|
}),
|
|
2377
|
-
|
|
2375
|
+
d("span", kn, $(n.item.data.addNewQuestionText), 1),
|
|
2378
2376
|
o.value ? (a(), h(s(u), {
|
|
2379
2377
|
key: 0,
|
|
2380
2378
|
is: "svc-add-question-type-selector",
|
|
@@ -2382,7 +2380,7 @@ const Nt = /* @__PURE__ */ g({
|
|
|
2382
2380
|
renderPopup: o.value
|
|
2383
2381
|
}, null, 8, ["questionTypeSelectorModel", "renderPopup"])) : p("", !0)
|
|
2384
2382
|
], 34)), [
|
|
2385
|
-
[s(
|
|
2383
|
+
[s(N)]
|
|
2386
2384
|
]),
|
|
2387
2385
|
o.value ? p("", !0) : (a(), h(s(u), {
|
|
2388
2386
|
key: 0,
|
|
@@ -2400,7 +2398,7 @@ const Nt = /* @__PURE__ */ g({
|
|
|
2400
2398
|
},
|
|
2401
2399
|
setup(c) {
|
|
2402
2400
|
const t = c;
|
|
2403
|
-
return
|
|
2401
|
+
return T(() => t.questionTypeSelectorModel), (e, o) => C((a(), l("button", {
|
|
2404
2402
|
type: "button",
|
|
2405
2403
|
onClick: o[0] || (o[0] = (n) => {
|
|
2406
2404
|
e.questionTypeSelectorModel.action(), n.stopPropagation();
|
|
@@ -2409,7 +2407,7 @@ const Nt = /* @__PURE__ */ g({
|
|
|
2409
2407
|
"aria-label": e.questionTypeSelectorModel.title,
|
|
2410
2408
|
class: "svc-element__question-type-selector"
|
|
2411
2409
|
}, [
|
|
2412
|
-
v(s(u),
|
|
2410
|
+
v(s(u), A({
|
|
2413
2411
|
is: "sv-svg-icon",
|
|
2414
2412
|
class: "svc-element__question-type-selector-icon"
|
|
2415
2413
|
}, {
|
|
@@ -2423,38 +2421,38 @@ const Nt = /* @__PURE__ */ g({
|
|
|
2423
2421
|
model: e.questionTypeSelectorModel.popupModel
|
|
2424
2422
|
}, null, 8, ["model"])) : p("", !0)
|
|
2425
2423
|
], 8, fn)), [
|
|
2426
|
-
[s(
|
|
2424
|
+
[s(N)]
|
|
2427
2425
|
]);
|
|
2428
2426
|
}
|
|
2429
|
-
}), Tn = /* @__PURE__ */
|
|
2427
|
+
}), Tn = /* @__PURE__ */ d("div", { class: "svc-row__drop-indicator svc-row__drop-indicator--top" }, null, -1), Dn = /* @__PURE__ */ d("div", { class: "svc-row__drop-indicator svc-row__drop-indicator--bottom" }, null, -1), Nn = /* @__PURE__ */ g({
|
|
2430
2428
|
__name: "Row",
|
|
2431
2429
|
props: {
|
|
2432
2430
|
componentData: {}
|
|
2433
2431
|
},
|
|
2434
2432
|
setup(c) {
|
|
2435
|
-
const t = c, e = k(() => t.componentData.creator), o = k(() => t.componentData.row), n =
|
|
2433
|
+
const t = c, e = k(() => t.componentData.creator), o = k(() => t.componentData.row), n = z(
|
|
2436
2434
|
() => new Ne(e.value, o.value, void 0),
|
|
2437
2435
|
[() => e.value, () => o.value],
|
|
2438
|
-
(
|
|
2439
|
-
|
|
2436
|
+
(i) => {
|
|
2437
|
+
i.dispose();
|
|
2440
2438
|
}
|
|
2441
2439
|
);
|
|
2442
|
-
return
|
|
2440
|
+
return P(() => {
|
|
2443
2441
|
n.value && n.value.subscribeElementChanges();
|
|
2444
|
-
}),
|
|
2442
|
+
}), K(() => {
|
|
2445
2443
|
n.value && n.value.unsubscribeElementChanges();
|
|
2446
|
-
}), (
|
|
2444
|
+
}), (i, r) => (a(), l("div", {
|
|
2447
2445
|
class: _(s(n).cssClasses)
|
|
2448
2446
|
}, [
|
|
2449
2447
|
Tn,
|
|
2450
2448
|
Dn,
|
|
2451
|
-
x(
|
|
2449
|
+
x(i.$slots, "default")
|
|
2452
2450
|
], 2));
|
|
2453
2451
|
}
|
|
2454
|
-
}), Mn = ["data-sv-drop-target-survey-element"], Sn = { class: "svc-fake-title" }, Bn = /* @__PURE__ */
|
|
2452
|
+
}), Mn = ["data-sv-drop-target-survey-element"], Sn = { class: "svc-fake-title" }, Bn = /* @__PURE__ */ d("div", { class: "svc-question__drop-indicator svc-question__drop-indicator--left" }, null, -1), In = /* @__PURE__ */ d("div", { class: "svc-question__drop-indicator svc-question__drop-indicator--right" }, null, -1), En = /* @__PURE__ */ d("div", { class: "svc-question__drop-indicator svc-question__drop-indicator--top" }, null, -1), Pn = /* @__PURE__ */ d("div", { class: "svc-question__drop-indicator svc-question__drop-indicator--bottom" }, null, -1), Rn = { class: "svc-question__top-actions" }, Vn = {
|
|
2455
2453
|
key: 0,
|
|
2456
2454
|
class: "svc-panel__placeholder_frame-wrapper"
|
|
2457
|
-
}, An = { class: "svc-panel__placeholder_frame" },
|
|
2455
|
+
}, An = { class: "svc-panel__placeholder_frame" }, zn = {
|
|
2458
2456
|
class: "svc-panel__placeholder",
|
|
2459
2457
|
"data-bind": "text: placeholderText"
|
|
2460
2458
|
}, oe = /* @__PURE__ */ g({
|
|
@@ -2470,24 +2468,24 @@ const Nt = /* @__PURE__ */ g({
|
|
|
2470
2468
|
componentData: {}
|
|
2471
2469
|
},
|
|
2472
2470
|
setup(c) {
|
|
2473
|
-
const t = c, e = I(), o =
|
|
2471
|
+
const t = c, e = I(), o = z(
|
|
2474
2472
|
() => t.createModel(),
|
|
2475
2473
|
[() => t.componentName, () => t.componentData],
|
|
2476
|
-
(
|
|
2477
|
-
|
|
2474
|
+
(r) => {
|
|
2475
|
+
r.dispose();
|
|
2478
2476
|
}
|
|
2479
2477
|
), n = k(
|
|
2480
2478
|
() => o.value.isBannerShowing ? o.value.createBannerParams() : null
|
|
2481
2479
|
);
|
|
2482
2480
|
Y(() => {
|
|
2483
2481
|
e.value && o.value && (o.value.rootElement = e.value);
|
|
2484
|
-
}),
|
|
2482
|
+
}), P(() => {
|
|
2485
2483
|
e.value && o.value && (o.value.rootElement = e.value);
|
|
2486
2484
|
});
|
|
2487
|
-
const
|
|
2488
|
-
o.value.select(o.value,
|
|
2485
|
+
const i = (r) => {
|
|
2486
|
+
o.value.select(o.value, r), r.stopPropagation();
|
|
2489
2487
|
};
|
|
2490
|
-
return (
|
|
2488
|
+
return (r, m) => s(o) ? (a(), l("div", {
|
|
2491
2489
|
key: 0,
|
|
2492
2490
|
class: _(["svc-question__adorner", s(o).rootCss()]),
|
|
2493
2491
|
ref_key: "root",
|
|
@@ -2498,22 +2496,22 @@ const Nt = /* @__PURE__ */ g({
|
|
|
2498
2496
|
"data-sv-drop-target-survey-element": s(o).element.name || null,
|
|
2499
2497
|
"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); } }"
|
|
2500
2498
|
}, [
|
|
2501
|
-
s(o).showHiddenTitle ? (a(),
|
|
2499
|
+
s(o).showHiddenTitle ? (a(), l("div", {
|
|
2502
2500
|
key: 0,
|
|
2503
2501
|
class: _(s(o).cssCollapsedHiddenHeader)
|
|
2504
2502
|
}, [
|
|
2505
|
-
|
|
2503
|
+
r.element.hasTitle ? (a(), h(s(u), {
|
|
2506
2504
|
key: 0,
|
|
2507
2505
|
is: "survey-element-title",
|
|
2508
|
-
element:
|
|
2509
|
-
}, null, 8, ["element"])) : (a(),
|
|
2506
|
+
element: r.element
|
|
2507
|
+
}, null, 8, ["element"])) : (a(), l("div", {
|
|
2510
2508
|
key: 1,
|
|
2511
2509
|
class: _(s(o).cssCollapsedHiddenTitle)
|
|
2512
2510
|
}, [
|
|
2513
|
-
|
|
2511
|
+
d("span", Sn, $(r.element.name), 1)
|
|
2514
2512
|
], 2))
|
|
2515
2513
|
], 2)) : p("", !0),
|
|
2516
|
-
C((a(),
|
|
2514
|
+
C((a(), l("div", {
|
|
2517
2515
|
onClick: m[1] || (m[1] = (b) => {
|
|
2518
2516
|
s(o).select(s(o), b), b.stopPropagation();
|
|
2519
2517
|
}),
|
|
@@ -2523,12 +2521,12 @@ const Nt = /* @__PURE__ */ g({
|
|
|
2523
2521
|
In,
|
|
2524
2522
|
En,
|
|
2525
2523
|
Pn,
|
|
2526
|
-
s(o).allowDragging ? (a(),
|
|
2524
|
+
s(o).allowDragging ? (a(), l("div", {
|
|
2527
2525
|
key: 0,
|
|
2528
2526
|
class: "svc-question__drag-area",
|
|
2529
2527
|
onPointerdown: m[0] || (m[0] = (b) => s(o).onPointerDown(b))
|
|
2530
2528
|
}, [
|
|
2531
|
-
v(s(u),
|
|
2529
|
+
v(s(u), A({
|
|
2532
2530
|
is: "sv-svg-icon",
|
|
2533
2531
|
class: "svc-question__drag-element"
|
|
2534
2532
|
}, {
|
|
@@ -2536,7 +2534,7 @@ const Nt = /* @__PURE__ */ g({
|
|
|
2536
2534
|
iconName: "icon-drag-area-indicator_24x16",
|
|
2537
2535
|
size: "auto"
|
|
2538
2536
|
}), null, 16),
|
|
2539
|
-
|
|
2537
|
+
d("div", Rn, [
|
|
2540
2538
|
v(s(u), {
|
|
2541
2539
|
is: "sv-action-bar",
|
|
2542
2540
|
model: s(o).topActionContainer,
|
|
@@ -2544,38 +2542,38 @@ const Nt = /* @__PURE__ */ g({
|
|
|
2544
2542
|
}, null, 8, ["model"])
|
|
2545
2543
|
])
|
|
2546
2544
|
], 32)) : p("", !0),
|
|
2547
|
-
s(o).needToRenderContent ? (a(),
|
|
2545
|
+
s(o).needToRenderContent ? (a(), l(w, { key: 1 }, [
|
|
2548
2546
|
v(s(u), {
|
|
2549
2547
|
is: "sv-template-renderer",
|
|
2550
|
-
componentName:
|
|
2551
|
-
componentData:
|
|
2548
|
+
componentName: r.componentName,
|
|
2549
|
+
componentData: r.componentData
|
|
2552
2550
|
}, null, 8, ["componentName", "componentData"]),
|
|
2553
|
-
s(o).isEmptyElement && !
|
|
2554
|
-
|
|
2555
|
-
|
|
2551
|
+
s(o).isEmptyElement && !r.showPlaceholderComponent ? (a(), l("div", Vn, [
|
|
2552
|
+
d("div", An, [
|
|
2553
|
+
d("div", zn, $(s(o).placeholderText), 1)
|
|
2556
2554
|
])
|
|
2557
2555
|
])) : p("", !0),
|
|
2558
|
-
s(o).isEmptyElement &&
|
|
2556
|
+
s(o).isEmptyElement && r.showPlaceholderComponent ? (a(), h(s(u), A(
|
|
2559
2557
|
{
|
|
2560
2558
|
key: 1,
|
|
2561
|
-
is:
|
|
2559
|
+
is: r.placeholderComponent
|
|
2562
2560
|
},
|
|
2563
|
-
|
|
2561
|
+
r.getPlaceholderComponentData && r.getPlaceholderComponentData(s(o))
|
|
2564
2562
|
), null, 16, ["is"])) : p("", !0),
|
|
2565
|
-
|
|
2563
|
+
r.adornerComponent ? (a(), h(s(u), {
|
|
2566
2564
|
key: 2,
|
|
2567
|
-
is:
|
|
2565
|
+
is: r.adornerComponent,
|
|
2568
2566
|
model: s(o),
|
|
2569
|
-
element:
|
|
2567
|
+
element: r.element
|
|
2570
2568
|
}, null, 8, ["is", "model", "element"])) : p("", !0),
|
|
2571
2569
|
s(o).isBannerShowing ? (a(), h(s(u), {
|
|
2572
2570
|
key: 3,
|
|
2573
2571
|
is: "svc-question-banner",
|
|
2574
2572
|
model: n.value
|
|
2575
2573
|
}, null, 8, ["model"])) : p("", !0),
|
|
2576
|
-
|
|
2574
|
+
d("div", {
|
|
2577
2575
|
class: "svc-question__content-actions",
|
|
2578
|
-
onFocusin:
|
|
2576
|
+
onFocusin: i
|
|
2579
2577
|
}, [
|
|
2580
2578
|
v(s(u), {
|
|
2581
2579
|
is: "sv-action-bar",
|
|
@@ -2585,7 +2583,7 @@ const Nt = /* @__PURE__ */ g({
|
|
|
2585
2583
|
], 32)
|
|
2586
2584
|
], 64)) : p("", !0)
|
|
2587
2585
|
], 2)), [
|
|
2588
|
-
[s(
|
|
2586
|
+
[s(N), { disableTabStop: !0 }]
|
|
2589
2587
|
])
|
|
2590
2588
|
], 42, Mn)) : p("", !0);
|
|
2591
2589
|
}
|
|
@@ -2608,7 +2606,7 @@ const Nt = /* @__PURE__ */ g({
|
|
|
2608
2606
|
"component-data": o.componentData
|
|
2609
2607
|
}, null, 8, ["element", "component-name", "component-data"]));
|
|
2610
2608
|
}
|
|
2611
|
-
}),
|
|
2609
|
+
}), Ln = /* @__PURE__ */ g({
|
|
2612
2610
|
__name: "QuestionImage",
|
|
2613
2611
|
props: {
|
|
2614
2612
|
componentName: {},
|
|
@@ -2622,7 +2620,7 @@ const Nt = /* @__PURE__ */ g({
|
|
|
2622
2620
|
), o = (n) => ({
|
|
2623
2621
|
question: n == null ? void 0 : n.filePresentationModel
|
|
2624
2622
|
});
|
|
2625
|
-
return (n,
|
|
2623
|
+
return (n, i) => (a(), h(oe, {
|
|
2626
2624
|
"create-model": e,
|
|
2627
2625
|
element: t.componentData.element,
|
|
2628
2626
|
"show-placeholder-component": !0,
|
|
@@ -2650,17 +2648,17 @@ const Nt = /* @__PURE__ */ g({
|
|
|
2650
2648
|
element: {}
|
|
2651
2649
|
},
|
|
2652
2650
|
setup(c) {
|
|
2653
|
-
return (t, e) => (a(),
|
|
2654
|
-
!t.model.isUploading && !t.model.isEmptyElement ? (a(),
|
|
2655
|
-
t.model.allowEdit ? (a(),
|
|
2656
|
-
|
|
2651
|
+
return (t, e) => (a(), l(w, null, [
|
|
2652
|
+
!t.model.isUploading && !t.model.isEmptyElement ? (a(), l("div", Fn, [
|
|
2653
|
+
t.model.allowEdit ? (a(), l(w, { key: 0 }, [
|
|
2654
|
+
d("input", {
|
|
2657
2655
|
type: "file",
|
|
2658
2656
|
"aria-hidden": "true",
|
|
2659
2657
|
tabindex: "-1",
|
|
2660
2658
|
accept: t.model.acceptedTypes,
|
|
2661
2659
|
class: "svc-choose-file-input"
|
|
2662
2660
|
}, null, 8, Kn),
|
|
2663
|
-
C((a(),
|
|
2661
|
+
C((a(), l("span", Un, [
|
|
2664
2662
|
v(s(u), {
|
|
2665
2663
|
is: "sv-svg-icon",
|
|
2666
2664
|
iconName: "icon-choosefile",
|
|
@@ -2668,12 +2666,12 @@ const Nt = /* @__PURE__ */ g({
|
|
|
2668
2666
|
onClick: e[0] || (e[0] = (o) => t.model.chooseFile(t.model))
|
|
2669
2667
|
})
|
|
2670
2668
|
])), [
|
|
2671
|
-
[s(
|
|
2669
|
+
[s(N)]
|
|
2672
2670
|
])
|
|
2673
2671
|
], 64)) : p("", !0)
|
|
2674
2672
|
])) : p("", !0),
|
|
2675
|
-
t.model.isUploading && !t.model.isEmptyElement ? (a(),
|
|
2676
|
-
|
|
2673
|
+
t.model.isUploading && !t.model.isEmptyElement ? (a(), l("div", Hn, [
|
|
2674
|
+
d("div", On, [
|
|
2677
2675
|
v(s(u), { is: "sv-loading-indicator" })
|
|
2678
2676
|
])
|
|
2679
2677
|
])) : p("", !0)
|
|
@@ -2686,7 +2684,7 @@ const Nt = /* @__PURE__ */ g({
|
|
|
2686
2684
|
componentName: {}
|
|
2687
2685
|
},
|
|
2688
2686
|
setup(c) {
|
|
2689
|
-
const t = c, e =
|
|
2687
|
+
const t = c, e = z(
|
|
2690
2688
|
() => new Se(
|
|
2691
2689
|
t.componentData.data,
|
|
2692
2690
|
t.componentData.question,
|
|
@@ -2695,40 +2693,40 @@ const Nt = /* @__PURE__ */ g({
|
|
|
2695
2693
|
[() => t.componentData.data, () => t.componentData.question]
|
|
2696
2694
|
);
|
|
2697
2695
|
return (o, n) => {
|
|
2698
|
-
var
|
|
2699
|
-
return a(),
|
|
2700
|
-
|
|
2701
|
-
class: _((
|
|
2696
|
+
var i, r, m, b, y, f, E, R, L;
|
|
2697
|
+
return a(), l("div", Gn, [
|
|
2698
|
+
d("div", {
|
|
2699
|
+
class: _((i = s(e)) == null ? void 0 : i.controlsClassNames)
|
|
2702
2700
|
}, [
|
|
2703
|
-
(
|
|
2701
|
+
(r = s(e)) != null && r.allowRemove ? C((a(), h(s(u), {
|
|
2704
2702
|
key: 0,
|
|
2705
2703
|
is: "sv-svg-icon",
|
|
2706
2704
|
iconName: "icon-remove_16x16",
|
|
2707
2705
|
size: "auto",
|
|
2708
2706
|
onClick: n[0] || (n[0] = (j) => {
|
|
2709
|
-
var
|
|
2710
|
-
return (
|
|
2707
|
+
var H;
|
|
2708
|
+
return (H = s(e)) == null ? void 0 : H.removeItem(s(e));
|
|
2711
2709
|
}),
|
|
2712
2710
|
class: _((m = s(e)) == null ? void 0 : m.removeClassNames),
|
|
2713
2711
|
title: (b = s(e)) == null ? void 0 : b.removeTooltip,
|
|
2714
2712
|
"aria-label": (y = s(e)) == null ? void 0 : y.removeTooltip
|
|
2715
2713
|
}, null, 8, ["class", "title", "aria-label"])), [
|
|
2716
|
-
[s(
|
|
2714
|
+
[s(N)]
|
|
2717
2715
|
]) : p("", !0),
|
|
2718
|
-
(
|
|
2716
|
+
(f = s(e)) != null && f.allowAdd ? C((a(), h(s(u), {
|
|
2719
2717
|
key: 1,
|
|
2720
2718
|
is: "sv-svg-icon",
|
|
2721
2719
|
iconName: "icon-add_16x16",
|
|
2722
2720
|
size: "auto",
|
|
2723
2721
|
onClick: n[1] || (n[1] = (j) => {
|
|
2724
|
-
var
|
|
2725
|
-
return (
|
|
2722
|
+
var H;
|
|
2723
|
+
return (H = s(e)) == null ? void 0 : H.addItem(s(e));
|
|
2726
2724
|
}),
|
|
2727
|
-
class: _((
|
|
2728
|
-
title: (
|
|
2725
|
+
class: _((E = s(e)) == null ? void 0 : E.addClassNames),
|
|
2726
|
+
title: (R = s(e)) == null ? void 0 : R.addTooltip,
|
|
2729
2727
|
"aria-label": (L = s(e)) == null ? void 0 : L.addTooltip
|
|
2730
2728
|
}, null, 8, ["class", "title", "aria-label"])), [
|
|
2731
|
-
[s(
|
|
2729
|
+
[s(N)]
|
|
2732
2730
|
]) : p("", !0)
|
|
2733
2731
|
], 2),
|
|
2734
2732
|
x(o.$slots, "default")
|
|
@@ -2744,52 +2742,52 @@ const Nt = /* @__PURE__ */ g({
|
|
|
2744
2742
|
componentData: {}
|
|
2745
2743
|
},
|
|
2746
2744
|
setup(c) {
|
|
2747
|
-
const t = c, e = k(() => t.componentData.creator), o = k(() => t.componentData.row), n = k(() => t.componentData.column),
|
|
2745
|
+
const t = c, e = k(() => t.componentData.creator), o = k(() => t.componentData.row), n = k(() => t.componentData.column), i = k(() => t.componentData.element), r = k(
|
|
2748
2746
|
() => t.componentData.question
|
|
2749
|
-
), m =
|
|
2747
|
+
), m = z(
|
|
2750
2748
|
() => {
|
|
2751
2749
|
var b;
|
|
2752
2750
|
return t.componentData ? new Be(
|
|
2753
2751
|
e.value,
|
|
2754
|
-
|
|
2755
|
-
|
|
2752
|
+
i.value,
|
|
2753
|
+
r.value,
|
|
2756
2754
|
o.value,
|
|
2757
|
-
n.value || ((b =
|
|
2755
|
+
n.value || ((b = i.value.cell) == null ? void 0 : b.column)
|
|
2758
2756
|
) : void 0;
|
|
2759
2757
|
},
|
|
2760
2758
|
[
|
|
2761
2759
|
() => e.value,
|
|
2762
2760
|
() => o.value,
|
|
2763
2761
|
() => n.value,
|
|
2764
|
-
() =>
|
|
2762
|
+
() => r.value
|
|
2765
2763
|
]
|
|
2766
2764
|
);
|
|
2767
2765
|
return (b, y) => {
|
|
2768
|
-
var
|
|
2769
|
-
return a(),
|
|
2766
|
+
var f, E;
|
|
2767
|
+
return a(), l("div", {
|
|
2770
2768
|
tabindex: "-1",
|
|
2771
2769
|
class: "svc-matrix-cell",
|
|
2772
|
-
onClick: y[1] || (y[1] = (
|
|
2770
|
+
onClick: y[1] || (y[1] = (R) => {
|
|
2773
2771
|
var L;
|
|
2774
|
-
return (L = s(m)) == null ? void 0 : L.selectContext(s(m),
|
|
2772
|
+
return (L = s(m)) == null ? void 0 : L.selectContext(s(m), R);
|
|
2775
2773
|
}),
|
|
2776
|
-
onMouseover: y[2] || (y[2] = (
|
|
2774
|
+
onMouseover: y[2] || (y[2] = (R) => {
|
|
2777
2775
|
var L;
|
|
2778
|
-
return (L = s(m)) == null ? void 0 : L.hover(
|
|
2776
|
+
return (L = s(m)) == null ? void 0 : L.hover(R, R.currentTarget);
|
|
2779
2777
|
}),
|
|
2780
|
-
onMouseleave: y[3] || (y[3] = (
|
|
2778
|
+
onMouseleave: y[3] || (y[3] = (R) => {
|
|
2781
2779
|
var L;
|
|
2782
|
-
return (L = s(m)) == null ? void 0 : L.hover(
|
|
2780
|
+
return (L = s(m)) == null ? void 0 : L.hover(R, R.currentTarget);
|
|
2783
2781
|
})
|
|
2784
2782
|
}, [
|
|
2785
|
-
|
|
2786
|
-
class: _(["svc-matrix-cell--selected", { "svc-visible": (
|
|
2783
|
+
d("div", {
|
|
2784
|
+
class: _(["svc-matrix-cell--selected", { "svc-visible": (f = s(m)) == null ? void 0 : f.isSelected }])
|
|
2787
2785
|
}, null, 2),
|
|
2788
2786
|
x(b.$slots, "default"),
|
|
2789
|
-
(
|
|
2790
|
-
C((a(),
|
|
2787
|
+
(E = s(m)) != null && E.isSupportCellEditor ? (a(), l("div", jn, [
|
|
2788
|
+
C((a(), l("span", {
|
|
2791
2789
|
class: "svc-matrix-cell__question-controls-button svc-context-button",
|
|
2792
|
-
onClick: y[0] || (y[0] = (
|
|
2790
|
+
onClick: y[0] || (y[0] = (R) => s(m).editQuestion(s(m), R))
|
|
2793
2791
|
}, [
|
|
2794
2792
|
v(s(u), {
|
|
2795
2793
|
is: "sv-svg-icon",
|
|
@@ -2797,7 +2795,7 @@ const Nt = /* @__PURE__ */ g({
|
|
|
2797
2795
|
size: "auto"
|
|
2798
2796
|
})
|
|
2799
2797
|
])), [
|
|
2800
|
-
[s(
|
|
2798
|
+
[s(N)]
|
|
2801
2799
|
])
|
|
2802
2800
|
])) : p("", !0)
|
|
2803
2801
|
], 32);
|
|
@@ -2813,13 +2811,13 @@ const Nt = /* @__PURE__ */ g({
|
|
|
2813
2811
|
const t = c, e = k(
|
|
2814
2812
|
() => t.componentData.element
|
|
2815
2813
|
);
|
|
2816
|
-
return
|
|
2817
|
-
|
|
2818
|
-
v(s(u),
|
|
2814
|
+
return T(() => e.value), (o, n) => (a(), l("div", Zn, [
|
|
2815
|
+
d("div", Xn, [
|
|
2816
|
+
v(s(u), A({ is: o.componentName }, o.componentData), null, 16, ["is"])
|
|
2819
2817
|
])
|
|
2820
2818
|
]));
|
|
2821
2819
|
}
|
|
2822
|
-
}), xn = ["data-sv-drop-target-survey-element"], ea = { class: "svc-fake-title" }, oa = /* @__PURE__ */
|
|
2820
|
+
}), xn = ["data-sv-drop-target-survey-element"], ea = { class: "svc-fake-title" }, oa = /* @__PURE__ */ d("div", { class: "svc-question__drop-indicator svc-question__drop-indicator--left" }, null, -1), sa = /* @__PURE__ */ d("div", { class: "svc-question__drop-indicator svc-question__drop-indicator--right" }, null, -1), ta = /* @__PURE__ */ d("div", { class: "svc-question__drop-indicator svc-question__drop-indicator--top" }, null, -1), na = /* @__PURE__ */ d("div", { class: "svc-question__drop-indicator svc-question__drop-indicator--bottom" }, null, -1), aa = { class: "svc-question__top-actions" }, la = {
|
|
2823
2821
|
key: 0,
|
|
2824
2822
|
class: "svc-panel__placeholder_frame-wrapper"
|
|
2825
2823
|
}, ia = { class: "svc-panel__placeholder_frame" }, ra = { class: "svc-panel__placeholder" }, da = { class: "svc-add-new-item-button__text" }, ca = {
|
|
@@ -2832,7 +2830,7 @@ const Nt = /* @__PURE__ */ g({
|
|
|
2832
2830
|
componentData: {}
|
|
2833
2831
|
},
|
|
2834
2832
|
setup(c) {
|
|
2835
|
-
const t = c, e =
|
|
2833
|
+
const t = c, e = z(
|
|
2836
2834
|
() => new ee(
|
|
2837
2835
|
t.componentData.data,
|
|
2838
2836
|
t.componentData.element,
|
|
@@ -2845,16 +2843,16 @@ const Nt = /* @__PURE__ */ g({
|
|
|
2845
2843
|
), o = (n) => {
|
|
2846
2844
|
n.stopPropagation(), e.value.addNewQuestion();
|
|
2847
2845
|
};
|
|
2848
|
-
return (n,
|
|
2846
|
+
return (n, i) => s(e) && !s(e).isDisposed ? (a(), l("div", {
|
|
2849
2847
|
key: 0,
|
|
2850
2848
|
class: _(["svc-question__adorner", s(e).rootCss()]),
|
|
2851
|
-
onDblclick:
|
|
2852
|
-
onMouseover:
|
|
2853
|
-
onMouseleave:
|
|
2849
|
+
onDblclick: i[3] || (i[3] = (r) => s(e).dblclick(r)),
|
|
2850
|
+
onMouseover: i[4] || (i[4] = (r) => s(e).hover(r, r.currentTarget)),
|
|
2851
|
+
onMouseleave: i[5] || (i[5] = (r) => s(e).hover(r, r.currentTarget)),
|
|
2854
2852
|
"data-sv-drop-target-survey-element": s(e).element.name || null,
|
|
2855
2853
|
ref: "root"
|
|
2856
2854
|
}, [
|
|
2857
|
-
s(e).showHiddenTitle ? (a(),
|
|
2855
|
+
s(e).showHiddenTitle ? (a(), l("div", {
|
|
2858
2856
|
key: 0,
|
|
2859
2857
|
class: _(s(e).cssCollapsedHiddenHeader)
|
|
2860
2858
|
}, [
|
|
@@ -2862,25 +2860,25 @@ const Nt = /* @__PURE__ */ g({
|
|
|
2862
2860
|
key: 0,
|
|
2863
2861
|
is: "survey-element-title",
|
|
2864
2862
|
element: s(e).element
|
|
2865
|
-
}, null, 8, ["element"])) : (a(),
|
|
2863
|
+
}, null, 8, ["element"])) : (a(), l("div", {
|
|
2866
2864
|
key: 1,
|
|
2867
2865
|
class: _(s(e).cssCollapsedHiddenTitle)
|
|
2868
2866
|
}, [
|
|
2869
|
-
|
|
2867
|
+
d("span", ea, $(s(e).element.name), 1)
|
|
2870
2868
|
], 2))
|
|
2871
2869
|
], 2)) : p("", !0),
|
|
2872
|
-
C((a(),
|
|
2870
|
+
C((a(), l("div", {
|
|
2873
2871
|
class: _(s(e).css()),
|
|
2874
|
-
onClick:
|
|
2872
|
+
onClick: i[2] || (i[2] = (r) => s(e).element.isInteractiveDesignElement ? s(e).select(s(e), r) : null)
|
|
2875
2873
|
}, [
|
|
2876
2874
|
oa,
|
|
2877
2875
|
sa,
|
|
2878
2876
|
ta,
|
|
2879
2877
|
na,
|
|
2880
|
-
s(e).allowDragging && s(e).element.isInteractiveDesignElement ? (a(),
|
|
2878
|
+
s(e).allowDragging && s(e).element.isInteractiveDesignElement ? (a(), l("div", {
|
|
2881
2879
|
key: 0,
|
|
2882
2880
|
class: "svc-question__drag-area",
|
|
2883
|
-
onPointerdown:
|
|
2881
|
+
onPointerdown: i[0] || (i[0] = (r) => s(e).onPointerDown(r))
|
|
2884
2882
|
}, [
|
|
2885
2883
|
v(s(u), {
|
|
2886
2884
|
is: "sv-svg-icon",
|
|
@@ -2888,7 +2886,7 @@ const Nt = /* @__PURE__ */ g({
|
|
|
2888
2886
|
iconName: "icon-drag-area-indicator_24x16",
|
|
2889
2887
|
size: "auto"
|
|
2890
2888
|
}),
|
|
2891
|
-
|
|
2889
|
+
d("div", aa, [
|
|
2892
2890
|
v(s(u), {
|
|
2893
2891
|
is: "sv-action-bar",
|
|
2894
2892
|
model: s(e).topActionContainer,
|
|
@@ -2896,12 +2894,12 @@ const Nt = /* @__PURE__ */ g({
|
|
|
2896
2894
|
}, null, 8, ["model"])
|
|
2897
2895
|
])
|
|
2898
2896
|
], 32)) : p("", !0),
|
|
2899
|
-
s(e).needToRenderContent ? (a(),
|
|
2900
|
-
v(s(u),
|
|
2901
|
-
s(e).isEmptyElement ? (a(),
|
|
2902
|
-
|
|
2903
|
-
|
|
2904
|
-
s(e).showAddQuestionButton ? C((a(),
|
|
2897
|
+
s(e).needToRenderContent ? (a(), l(w, { key: 1 }, [
|
|
2898
|
+
v(s(u), A({ is: n.componentName }, n.componentData), null, 16, ["is"]),
|
|
2899
|
+
s(e).isEmptyElement ? (a(), l("div", la, [
|
|
2900
|
+
d("div", ia, [
|
|
2901
|
+
d("div", ra, $(s(e).placeholderText), 1),
|
|
2902
|
+
s(e).showAddQuestionButton ? C((a(), l("div", {
|
|
2905
2903
|
key: 0,
|
|
2906
2904
|
class: "svc-panel__add-new-question svc-action-button",
|
|
2907
2905
|
onClick: o
|
|
@@ -2912,20 +2910,20 @@ const Nt = /* @__PURE__ */ g({
|
|
|
2912
2910
|
iconName: "icon-add_24x24",
|
|
2913
2911
|
size: "auto"
|
|
2914
2912
|
}),
|
|
2915
|
-
|
|
2913
|
+
d("span", da, $(s(e).addNewQuestionText), 1)
|
|
2916
2914
|
])), [
|
|
2917
|
-
[s(
|
|
2915
|
+
[s(N)]
|
|
2918
2916
|
]) : p("", !0)
|
|
2919
2917
|
])
|
|
2920
2918
|
])) : p("", !0),
|
|
2921
|
-
!s(e).isEmptyElement && s(e).showAddQuestionButton ? (a(),
|
|
2922
|
-
|
|
2919
|
+
!s(e).isEmptyElement && s(e).showAddQuestionButton ? (a(), l("div", ca, [
|
|
2920
|
+
d("div", ua, [
|
|
2923
2921
|
v(s(u), {
|
|
2924
2922
|
is: "sv-popup",
|
|
2925
2923
|
model: s(e).questionTypeSelectorModel.popupModel
|
|
2926
2924
|
}, null, 8, ["model"])
|
|
2927
2925
|
]),
|
|
2928
|
-
|
|
2926
|
+
d("div", pa, [
|
|
2929
2927
|
v(s(u), {
|
|
2930
2928
|
is: "svc-add-new-question-btn",
|
|
2931
2929
|
item: { data: s(e) },
|
|
@@ -2934,10 +2932,10 @@ const Nt = /* @__PURE__ */ g({
|
|
|
2934
2932
|
}, null, 8, ["item"])
|
|
2935
2933
|
])
|
|
2936
2934
|
])) : p("", !0),
|
|
2937
|
-
s(e).element.isInteractiveDesignElement ? (a(),
|
|
2935
|
+
s(e).element.isInteractiveDesignElement ? (a(), l("div", {
|
|
2938
2936
|
key: 2,
|
|
2939
2937
|
class: "svc-question__content-actions",
|
|
2940
|
-
onFocusin:
|
|
2938
|
+
onFocusin: i[1] || (i[1] = (r) => s(e).select(s(e), r))
|
|
2941
2939
|
}, [
|
|
2942
2940
|
v(s(u), {
|
|
2943
2941
|
is: "sv-action-bar",
|
|
@@ -2947,11 +2945,11 @@ const Nt = /* @__PURE__ */ g({
|
|
|
2947
2945
|
], 32)) : p("", !0)
|
|
2948
2946
|
], 64)) : p("", !0)
|
|
2949
2947
|
], 2)), [
|
|
2950
|
-
[s(
|
|
2948
|
+
[s(N), { disableTabStop: !0 }]
|
|
2951
2949
|
])
|
|
2952
2950
|
], 42, xn)) : p("", !0);
|
|
2953
2951
|
}
|
|
2954
|
-
}), ma = ["data-sv-drop-target-item-value"], _a = /* @__PURE__ */
|
|
2952
|
+
}), ma = ["data-sv-drop-target-item-value"], _a = /* @__PURE__ */ d("div", { class: "svc-item-value__ghost" }, null, -1), ga = { class: "svc-item-value-controls" }, ba = {
|
|
2955
2953
|
key: 0,
|
|
2956
2954
|
class: "svc-item-value-controls__button svc-item-value-controls__drag"
|
|
2957
2955
|
}, ya = /* @__PURE__ */ g({
|
|
@@ -2961,27 +2959,27 @@ const Nt = /* @__PURE__ */ g({
|
|
|
2961
2959
|
componentData: {}
|
|
2962
2960
|
},
|
|
2963
2961
|
setup(c) {
|
|
2964
|
-
const t = I(), e = c, o = k(() => e.componentData.data.creator), n = k(() => e.componentData.question),
|
|
2965
|
-
() =>
|
|
2962
|
+
const t = I(), e = c, o = k(() => e.componentData.data.creator), n = k(() => e.componentData.question), i = k(() => e.componentData.item), r = G(
|
|
2963
|
+
() => i.value,
|
|
2966
2964
|
(b, y) => {
|
|
2967
2965
|
b && t.value && b.setRootElement(t.value), y && y.setRootElement(void 0);
|
|
2968
2966
|
}
|
|
2969
2967
|
);
|
|
2970
|
-
|
|
2971
|
-
t.value &&
|
|
2972
|
-
}),
|
|
2973
|
-
|
|
2968
|
+
P(() => {
|
|
2969
|
+
t.value && i.value && i.value.setRootElement(t.value);
|
|
2970
|
+
}), K(() => {
|
|
2971
|
+
i.value.setRootElement(void 0);
|
|
2974
2972
|
});
|
|
2975
|
-
const m =
|
|
2976
|
-
() => new Ie(o.value, n.value,
|
|
2977
|
-
[() => o.value, () => n.value, () =>
|
|
2973
|
+
const m = z(
|
|
2974
|
+
() => new Ie(o.value, n.value, i.value),
|
|
2975
|
+
[() => o.value, () => n.value, () => i.value],
|
|
2978
2976
|
(b) => {
|
|
2979
2977
|
b.dispose();
|
|
2980
2978
|
}
|
|
2981
2979
|
);
|
|
2982
2980
|
return X(() => {
|
|
2983
|
-
|
|
2984
|
-
}), (b, y) => (a(),
|
|
2981
|
+
r();
|
|
2982
|
+
}), (b, y) => (a(), l("div", {
|
|
2985
2983
|
class: _(["svc-item-value-wrapper", {
|
|
2986
2984
|
"svc-item-value--new": s(m).isNew,
|
|
2987
2985
|
"svc-item-value--dragging": s(m).isDragging,
|
|
@@ -2989,14 +2987,14 @@ const Nt = /* @__PURE__ */ g({
|
|
|
2989
2987
|
"svc-item-value--movedown": s(m).isDragDropMoveDown,
|
|
2990
2988
|
"svc-item-value--moveup": s(m).isDragDropMoveUp
|
|
2991
2989
|
}]),
|
|
2992
|
-
onPointerdown: y[4] || (y[4] = (
|
|
2993
|
-
"data-sv-drop-target-item-value": s(m).isDraggable ?
|
|
2990
|
+
onPointerdown: y[4] || (y[4] = (f) => s(m).onPointerDown(f)),
|
|
2991
|
+
"data-sv-drop-target-item-value": s(m).isDraggable ? i.value.value : null,
|
|
2994
2992
|
ref_key: "root",
|
|
2995
2993
|
ref: t
|
|
2996
2994
|
}, [
|
|
2997
2995
|
_a,
|
|
2998
|
-
|
|
2999
|
-
s(m).isDraggable ? (a(),
|
|
2996
|
+
d("div", ga, [
|
|
2997
|
+
s(m).isDraggable ? (a(), l("span", ba, [
|
|
3000
2998
|
v(s(u), {
|
|
3001
2999
|
is: "sv-svg-icon",
|
|
3002
3000
|
class: "svc-item-value-controls__drag-icon",
|
|
@@ -3005,10 +3003,10 @@ const Nt = /* @__PURE__ */ g({
|
|
|
3005
3003
|
title: s(m).dragTooltip
|
|
3006
3004
|
}, null, 8, ["title"])
|
|
3007
3005
|
])) : p("", !0),
|
|
3008
|
-
s(m).allowAdd ? C((a(),
|
|
3006
|
+
s(m).allowAdd ? C((a(), l("span", {
|
|
3009
3007
|
key: 1,
|
|
3010
3008
|
class: "svc-item-value-controls__button svc-item-value-controls__add",
|
|
3011
|
-
onClick: y[0] || (y[0] = (
|
|
3009
|
+
onClick: y[0] || (y[0] = (f) => s(m).add(s(m))),
|
|
3012
3010
|
"aria-label": void 0
|
|
3013
3011
|
}, [
|
|
3014
3012
|
v(s(u), {
|
|
@@ -3018,13 +3016,13 @@ const Nt = /* @__PURE__ */ g({
|
|
|
3018
3016
|
title: void 0
|
|
3019
3017
|
})
|
|
3020
3018
|
])), [
|
|
3021
|
-
[s(
|
|
3019
|
+
[s(N)]
|
|
3022
3020
|
]) : p("", !0),
|
|
3023
|
-
s(m).allowRemove ? C((a(),
|
|
3021
|
+
s(m).allowRemove ? C((a(), l("span", {
|
|
3024
3022
|
key: 2,
|
|
3025
3023
|
class: "svc-item-value-controls__button svc-item-value-controls__remove",
|
|
3026
|
-
onClick: y[1] || (y[1] = (
|
|
3027
|
-
onBlur: y[2] || (y[2] = (
|
|
3024
|
+
onClick: y[1] || (y[1] = (f) => s(m).remove(s(m))),
|
|
3025
|
+
onBlur: y[2] || (y[2] = (f) => s(m).onFocusOut(f)),
|
|
3028
3026
|
"aria-label": void 0
|
|
3029
3027
|
}, [
|
|
3030
3028
|
v(s(u), {
|
|
@@ -3034,14 +3032,14 @@ const Nt = /* @__PURE__ */ g({
|
|
|
3034
3032
|
title: void 0
|
|
3035
3033
|
})
|
|
3036
3034
|
], 32)), [
|
|
3037
|
-
[s(
|
|
3035
|
+
[s(N)]
|
|
3038
3036
|
]) : p("", !0)
|
|
3039
3037
|
]),
|
|
3040
|
-
|
|
3038
|
+
d("div", {
|
|
3041
3039
|
class: "svc-item-value__item",
|
|
3042
|
-
onClick: y[3] || (y[3] = (
|
|
3040
|
+
onClick: y[3] || (y[3] = (f) => s(m).select(s(m), f))
|
|
3043
3041
|
}, [
|
|
3044
|
-
v(s(u),
|
|
3042
|
+
v(s(u), A({ is: b.componentName }, b.componentData), null, 16, ["is"])
|
|
3045
3043
|
])
|
|
3046
3044
|
], 42, ma));
|
|
3047
3045
|
}
|
|
@@ -3051,67 +3049,77 @@ const Nt = /* @__PURE__ */ g({
|
|
|
3051
3049
|
}, $a = {
|
|
3052
3050
|
key: 2,
|
|
3053
3051
|
class: "svc-context-container svc-image-item-value-controls"
|
|
3054
|
-
}, fa = { class: "sd-imagepicker__item sd-imagepicker__item--inline" },
|
|
3052
|
+
}, fa = { class: "svc-image-item-value__item" }, wa = { class: "sd-imagepicker__item sd-imagepicker__item--inline" }, Ta = { class: "sd-imagepicker__label" }, Da = {
|
|
3055
3053
|
key: 0,
|
|
3056
3054
|
class: "svc-image-item-value__loading"
|
|
3057
|
-
},
|
|
3055
|
+
}, Na = {
|
|
3056
|
+
key: 0,
|
|
3057
|
+
class: "svc-image-item-value__placeholder"
|
|
3058
|
+
}, Ma = { key: 1 }, Sa = /* @__PURE__ */ g({
|
|
3058
3059
|
__name: "ImageItemValue",
|
|
3059
3060
|
props: {
|
|
3060
3061
|
componentName: {},
|
|
3061
3062
|
componentData: {}
|
|
3062
3063
|
},
|
|
3063
3064
|
setup(c) {
|
|
3064
|
-
const t = c, e = k(() => t.componentData.data.creator), o = k(() => t.componentData.question), n = k(() => t.componentData.item),
|
|
3065
|
+
const t = c, e = k(() => t.componentData.data.creator), o = k(() => t.componentData.question), n = k(() => t.componentData.item), i = I(), r = z(
|
|
3065
3066
|
() => {
|
|
3066
|
-
const
|
|
3067
|
+
const y = new Ee(
|
|
3067
3068
|
e.value,
|
|
3068
3069
|
o.value,
|
|
3069
3070
|
n.value,
|
|
3070
3071
|
null,
|
|
3071
3072
|
null
|
|
3072
3073
|
);
|
|
3073
|
-
return
|
|
3074
|
+
return i != null && i.value && (y.itemsRoot = i.value), y;
|
|
3074
3075
|
},
|
|
3075
3076
|
[() => e.value, () => o.value, () => n.value],
|
|
3076
|
-
(
|
|
3077
|
-
|
|
3077
|
+
(y) => {
|
|
3078
|
+
y.dispose();
|
|
3078
3079
|
}
|
|
3079
|
-
), m =
|
|
3080
|
-
|
|
3080
|
+
), m = (y) => {
|
|
3081
|
+
y.preventDefault();
|
|
3082
|
+
}, b = k(() => {
|
|
3083
|
+
const y = !r.value.getIsNewItemSingle();
|
|
3081
3084
|
return {
|
|
3082
|
-
width:
|
|
3083
|
-
height:
|
|
3085
|
+
width: y ? o.value.renderedImageWidth + "px" : void 0,
|
|
3086
|
+
height: y ? o.value.renderedImageHeight + "px" : void 0
|
|
3084
3087
|
};
|
|
3085
3088
|
});
|
|
3086
|
-
return
|
|
3087
|
-
|
|
3088
|
-
}), (
|
|
3089
|
-
onPointerdown:
|
|
3090
|
-
class: _(s(
|
|
3091
|
-
"data-sv-drop-target-item-value": s(
|
|
3089
|
+
return P(() => {
|
|
3090
|
+
i.value && (r.value.itemsRoot = i.value);
|
|
3091
|
+
}), (y, f) => (a(), l("div", {
|
|
3092
|
+
onPointerdown: f[5] || (f[5] = (E) => s(r).onPointerDown(E)),
|
|
3093
|
+
class: _(s(r).getRootCss()),
|
|
3094
|
+
"data-sv-drop-target-item-value": s(r).isDraggable ? n.value.value : null,
|
|
3092
3095
|
ref_key: "root",
|
|
3093
|
-
ref:
|
|
3096
|
+
ref: i,
|
|
3097
|
+
onDragstart: m,
|
|
3098
|
+
onDragenter: f[6] || (f[6] = (E) => s(r).onDragEnter(E)),
|
|
3099
|
+
onDragover: f[7] || (f[7] = (E) => s(r).onDragOver(E)),
|
|
3100
|
+
onDragleave: f[8] || (f[8] = (E) => s(r).onDragLeave(E)),
|
|
3101
|
+
onDrop: f[9] || (f[9] = (E) => s(r).onDrop(E))
|
|
3094
3102
|
}, [
|
|
3095
|
-
|
|
3103
|
+
d("div", {
|
|
3096
3104
|
class: "svc-image-item-value-wrapper__ghost",
|
|
3097
|
-
style:
|
|
3105
|
+
style: F(b.value)
|
|
3098
3106
|
}, null, 4),
|
|
3099
|
-
|
|
3100
|
-
|
|
3107
|
+
d("div", qa, [
|
|
3108
|
+
d("input", {
|
|
3101
3109
|
type: "file",
|
|
3102
3110
|
"aria-hidden": "true",
|
|
3103
3111
|
tabindex: "-1",
|
|
3104
|
-
accept: s(
|
|
3112
|
+
accept: s(r).acceptedTypes,
|
|
3105
3113
|
class: "svc-choose-file-input"
|
|
3106
3114
|
}, null, 8, Ca),
|
|
3107
|
-
!s(
|
|
3108
|
-
s(
|
|
3109
|
-
v(s(u),
|
|
3115
|
+
!s(r).isNew && !s(r).isUploading ? (a(), l(w, { key: 0 }, [
|
|
3116
|
+
s(r).isNew ? p("", !0) : (a(), l("div", ka, [
|
|
3117
|
+
v(s(u), A({ is: y.componentName }, y.componentData), null, 16, ["is"])
|
|
3110
3118
|
])),
|
|
3111
|
-
s(
|
|
3119
|
+
s(r).isDraggable && s(r).canRenderControls ? (a(), l("span", {
|
|
3112
3120
|
key: 1,
|
|
3113
3121
|
class: "svc-context-button svc-image-item-value-controls__drag-area-indicator",
|
|
3114
|
-
onPointerdown:
|
|
3122
|
+
onPointerdown: f[0] || (f[0] = (E) => s(r).onPointerDown(E)),
|
|
3115
3123
|
title: void 0,
|
|
3116
3124
|
"aria-label": void 0
|
|
3117
3125
|
}, [
|
|
@@ -3121,10 +3129,10 @@ const Nt = /* @__PURE__ */ g({
|
|
|
3121
3129
|
size: "auto"
|
|
3122
3130
|
})
|
|
3123
3131
|
], 32)) : p("", !0),
|
|
3124
|
-
s(
|
|
3125
|
-
C((a(),
|
|
3132
|
+
s(r).canRenderControls ? (a(), l("div", $a, [
|
|
3133
|
+
C((a(), l("span", {
|
|
3126
3134
|
class: "svc-context-button",
|
|
3127
|
-
onClick:
|
|
3135
|
+
onClick: f[1] || (f[1] = (E) => s(r).chooseFile(s(r))),
|
|
3128
3136
|
title: void 0,
|
|
3129
3137
|
"aria-label": void 0
|
|
3130
3138
|
}, [
|
|
@@ -3133,14 +3141,14 @@ const Nt = /* @__PURE__ */ g({
|
|
|
3133
3141
|
role: "button",
|
|
3134
3142
|
iconName: "icon-choosefile",
|
|
3135
3143
|
size: "auto",
|
|
3136
|
-
title: s(
|
|
3144
|
+
title: s(r).selectFileTitle
|
|
3137
3145
|
}, null, 8, ["title"])
|
|
3138
3146
|
])), [
|
|
3139
|
-
[s(
|
|
3147
|
+
[s(N)]
|
|
3140
3148
|
]),
|
|
3141
|
-
C((a(),
|
|
3149
|
+
C((a(), l("span", {
|
|
3142
3150
|
class: "svc-context-button svc-context-button--danger",
|
|
3143
|
-
onClick:
|
|
3151
|
+
onClick: f[2] || (f[2] = (E) => s(r).remove(s(r))),
|
|
3144
3152
|
title: void 0,
|
|
3145
3153
|
"aria-label": void 0
|
|
3146
3154
|
}, [
|
|
@@ -3149,59 +3157,53 @@ const Nt = /* @__PURE__ */ g({
|
|
|
3149
3157
|
role: "button",
|
|
3150
3158
|
iconName: "icon-delete",
|
|
3151
3159
|
size: "auto",
|
|
3152
|
-
title: s(
|
|
3160
|
+
title: s(r).removeFileTitle
|
|
3153
3161
|
}, null, 8, ["title"])
|
|
3154
3162
|
])), [
|
|
3155
|
-
[s(
|
|
3163
|
+
[s(N)]
|
|
3156
3164
|
])
|
|
3157
3165
|
])) : p("", !0)
|
|
3158
|
-
], 64)) :
|
|
3159
|
-
|
|
3160
|
-
|
|
3161
|
-
|
|
3162
|
-
|
|
3163
|
-
|
|
3164
|
-
onDrop: y[5] || (y[5] = (N) => s(d).onDrop(N))
|
|
3165
|
-
}, [
|
|
3166
|
-
i("div", fa, [
|
|
3167
|
-
i("label", wa, [
|
|
3168
|
-
i("div", {
|
|
3169
|
-
style: z(m.value),
|
|
3166
|
+
], 64)) : (a(), l(w, { key: 1 }, [
|
|
3167
|
+
d("div", fa, [
|
|
3168
|
+
d("div", wa, [
|
|
3169
|
+
d("label", Ta, [
|
|
3170
|
+
d("div", {
|
|
3171
|
+
style: F(b.value),
|
|
3170
3172
|
class: "sd-imagepicker__image"
|
|
3171
3173
|
}, [
|
|
3172
|
-
s(
|
|
3174
|
+
s(r).isUploading ? (a(), l("div", Da, [
|
|
3173
3175
|
v(s(u), { is: "sv-loading-indicator" })
|
|
3174
3176
|
])) : p("", !0)
|
|
3175
3177
|
], 4)
|
|
3176
3178
|
])
|
|
3177
3179
|
])
|
|
3178
|
-
]
|
|
3179
|
-
|
|
3180
|
+
]),
|
|
3181
|
+
s(r).allowAdd && !s(r).isUploading ? (a(), l("div", {
|
|
3182
|
+
key: 0,
|
|
3180
3183
|
class: "svc-image-item-value-controls",
|
|
3181
|
-
onPointerdown:
|
|
3184
|
+
onPointerdown: f[4] || (f[4] = (E) => E.stopPropagation())
|
|
3182
3185
|
}, [
|
|
3183
|
-
s(
|
|
3184
|
-
|
|
3185
|
-
class:
|
|
3186
|
-
onClick:
|
|
3187
|
-
title: void 0,
|
|
3188
|
-
"aria-label": void 0
|
|
3186
|
+
s(r).showPlaceholder ? (a(), l("span", Na, $(s(r).placeholderText), 1)) : p("", !0),
|
|
3187
|
+
C((a(), l("span", {
|
|
3188
|
+
class: _(s(r).addButtonCss),
|
|
3189
|
+
onClick: f[3] || (f[3] = (E) => s(r).chooseNewFile(s(r)))
|
|
3189
3190
|
}, [
|
|
3190
|
-
|
|
3191
|
+
s(r).showChooseButtonAsIcon ? (a(), h(s(u), {
|
|
3192
|
+
key: 0,
|
|
3191
3193
|
is: "sv-svg-icon",
|
|
3192
3194
|
iconName: "icon-add-lg",
|
|
3193
3195
|
size: "auto",
|
|
3194
|
-
title: s(
|
|
3195
|
-
}, null, 8, ["title"])
|
|
3196
|
-
])), [
|
|
3197
|
-
[s(
|
|
3198
|
-
])
|
|
3199
|
-
], 32)
|
|
3200
|
-
], 64))
|
|
3196
|
+
title: s(r).addFileTitle
|
|
3197
|
+
}, null, 8, ["title"])) : (a(), l("span", Ma, $(s(r).chooseImageText), 1))
|
|
3198
|
+
], 2)), [
|
|
3199
|
+
[s(N)]
|
|
3200
|
+
])
|
|
3201
|
+
], 32)) : p("", !0)
|
|
3202
|
+
], 64))
|
|
3201
3203
|
])
|
|
3202
3204
|
], 42, ha));
|
|
3203
3205
|
}
|
|
3204
|
-
}),
|
|
3206
|
+
}), Ba = /* @__PURE__ */ g({
|
|
3205
3207
|
__name: "QuestionEditor",
|
|
3206
3208
|
props: {
|
|
3207
3209
|
survey: {},
|
|
@@ -3209,51 +3211,51 @@ const Nt = /* @__PURE__ */ g({
|
|
|
3209
3211
|
},
|
|
3210
3212
|
setup(c) {
|
|
3211
3213
|
const t = c, e = k(() => {
|
|
3212
|
-
var
|
|
3213
|
-
return (
|
|
3214
|
+
var i;
|
|
3215
|
+
return (i = t.survey) == null ? void 0 : i.getAllQuestions()[0];
|
|
3214
3216
|
}), o = k(() => {
|
|
3215
|
-
const
|
|
3216
|
-
if (
|
|
3217
|
-
const
|
|
3218
|
-
if (
|
|
3219
|
-
return
|
|
3217
|
+
const i = t.survey;
|
|
3218
|
+
if (i && e.value) {
|
|
3219
|
+
const r = i.getElementWrapperComponentName(e.value);
|
|
3220
|
+
if (r)
|
|
3221
|
+
return r;
|
|
3220
3222
|
}
|
|
3221
3223
|
return "survey-question";
|
|
3222
3224
|
}), n = k(() => {
|
|
3223
|
-
const
|
|
3224
|
-
let
|
|
3225
|
-
return
|
|
3225
|
+
const i = t.survey;
|
|
3226
|
+
let r;
|
|
3227
|
+
return i && e.value && (r = i.getElementWrapperComponentData(e.value)), {
|
|
3226
3228
|
componentName: "survey-question",
|
|
3227
3229
|
componentData: {
|
|
3228
3230
|
element: e.value,
|
|
3229
|
-
data:
|
|
3231
|
+
data: r
|
|
3230
3232
|
}
|
|
3231
3233
|
};
|
|
3232
3234
|
});
|
|
3233
|
-
return (
|
|
3234
|
-
style:
|
|
3235
|
+
return (i, r) => (a(), l("div", {
|
|
3236
|
+
style: F(t.style)
|
|
3235
3237
|
}, [
|
|
3236
|
-
v(s(u),
|
|
3238
|
+
v(s(u), A({ is: o.value }, n.value), null, 16, ["is"])
|
|
3237
3239
|
], 4));
|
|
3238
3240
|
}
|
|
3239
|
-
}),
|
|
3240
|
-
/* @__PURE__ */
|
|
3241
|
-
], -1),
|
|
3242
|
-
|
|
3243
|
-
],
|
|
3241
|
+
}), Ia = ["accept"], Ea = /* @__PURE__ */ d("svg", null, [
|
|
3242
|
+
/* @__PURE__ */ d("use", { "xlink:href": "#icon-image-48x48" })
|
|
3243
|
+
], -1), Pa = [
|
|
3244
|
+
Ea
|
|
3245
|
+
], Ra = { class: "svc-context-container svc-logo-image-controls" }, Va = {
|
|
3244
3246
|
key: 2,
|
|
3245
3247
|
class: "svc-logo-image__loading"
|
|
3246
|
-
},
|
|
3248
|
+
}, Aa = /* @__PURE__ */ g({
|
|
3247
3249
|
__name: "Logo",
|
|
3248
3250
|
props: {
|
|
3249
3251
|
data: {}
|
|
3250
3252
|
},
|
|
3251
3253
|
setup(c) {
|
|
3252
|
-
const t = c, e = k(() => t.data), o = k(() => e.value.survey), n = I(),
|
|
3254
|
+
const t = c, e = k(() => t.data), o = k(() => e.value.survey), n = I(), i = z(
|
|
3253
3255
|
() => new Pe(e.value, null),
|
|
3254
3256
|
[() => e.value]
|
|
3255
|
-
),
|
|
3256
|
-
|
|
3257
|
+
), r = I(), m = () => {
|
|
3258
|
+
r.value = o.value.locLogo.renderedHtml;
|
|
3257
3259
|
};
|
|
3258
3260
|
return G(
|
|
3259
3261
|
() => o.value.locLogo,
|
|
@@ -3263,39 +3265,39 @@ const Nt = /* @__PURE__ */ g({
|
|
|
3263
3265
|
{
|
|
3264
3266
|
immediate: !0
|
|
3265
3267
|
}
|
|
3266
|
-
),
|
|
3267
|
-
n.value && (
|
|
3268
|
-
}),
|
|
3269
|
-
|
|
3270
|
-
}), (b, y) => (a(),
|
|
3268
|
+
), P(() => {
|
|
3269
|
+
n.value && (i.value.root = n.value);
|
|
3270
|
+
}), K(() => {
|
|
3271
|
+
i.value && (i.value.root = void 0);
|
|
3272
|
+
}), (b, y) => (a(), l("div", {
|
|
3271
3273
|
class: "svc-logo-image",
|
|
3272
3274
|
ref_key: "root",
|
|
3273
3275
|
ref: n
|
|
3274
3276
|
}, [
|
|
3275
|
-
|
|
3277
|
+
d("input", {
|
|
3276
3278
|
type: "file",
|
|
3277
3279
|
"aria-hidden": "true",
|
|
3278
3280
|
tabindex: "-1",
|
|
3279
|
-
accept: s(
|
|
3281
|
+
accept: s(i).acceptedTypes,
|
|
3280
3282
|
class: "svc-choose-file-input"
|
|
3281
|
-
}, null, 8,
|
|
3282
|
-
|
|
3283
|
-
s(
|
|
3283
|
+
}, null, 8, Ia),
|
|
3284
|
+
r.value ? p("", !0) : (a(), l(w, { key: 0 }, [
|
|
3285
|
+
s(i).allowEdit && !s(i).isUploading ? C((a(), l("div", {
|
|
3284
3286
|
key: 0,
|
|
3285
3287
|
class: "svc-logo-image-placeholder",
|
|
3286
|
-
onClick: y[0] || (y[0] = (
|
|
3287
|
-
},
|
|
3288
|
-
[s(
|
|
3288
|
+
onClick: y[0] || (y[0] = (f) => s(i).chooseFile(s(i)))
|
|
3289
|
+
}, Pa)), [
|
|
3290
|
+
[s(N)]
|
|
3289
3291
|
]) : p("", !0)
|
|
3290
3292
|
], 64)),
|
|
3291
|
-
|
|
3293
|
+
r.value && !s(i).isUploading ? (a(), l("div", {
|
|
3292
3294
|
key: 1,
|
|
3293
|
-
class: _(s(
|
|
3295
|
+
class: _(s(i).containerCss)
|
|
3294
3296
|
}, [
|
|
3295
|
-
|
|
3296
|
-
C((a(),
|
|
3297
|
+
d("div", Ra, [
|
|
3298
|
+
C((a(), l("span", {
|
|
3297
3299
|
class: "svc-context-button",
|
|
3298
|
-
onClick: y[1] || (y[1] = (
|
|
3300
|
+
onClick: y[1] || (y[1] = (f) => s(i).chooseFile(s(i))),
|
|
3299
3301
|
title: void 0,
|
|
3300
3302
|
"aria-label": void 0
|
|
3301
3303
|
}, [
|
|
@@ -3305,11 +3307,11 @@ const Nt = /* @__PURE__ */ g({
|
|
|
3305
3307
|
size: "auto"
|
|
3306
3308
|
})
|
|
3307
3309
|
])), [
|
|
3308
|
-
[s(
|
|
3310
|
+
[s(N)]
|
|
3309
3311
|
]),
|
|
3310
|
-
C((a(),
|
|
3312
|
+
C((a(), l("span", {
|
|
3311
3313
|
class: "svc-context-button svc-context-button--danger",
|
|
3312
|
-
onClick: y[2] || (y[2] = (
|
|
3314
|
+
onClick: y[2] || (y[2] = (f) => s(i).remove(s(i))),
|
|
3313
3315
|
title: void 0,
|
|
3314
3316
|
"aria-label": void 0
|
|
3315
3317
|
}, [
|
|
@@ -3319,7 +3321,7 @@ const Nt = /* @__PURE__ */ g({
|
|
|
3319
3321
|
size: "auto"
|
|
3320
3322
|
})
|
|
3321
3323
|
])), [
|
|
3322
|
-
[s(
|
|
3324
|
+
[s(N)]
|
|
3323
3325
|
])
|
|
3324
3326
|
]),
|
|
3325
3327
|
v(s(u), {
|
|
@@ -3327,22 +3329,22 @@ const Nt = /* @__PURE__ */ g({
|
|
|
3327
3329
|
data: o.value
|
|
3328
3330
|
}, null, 8, ["data"])
|
|
3329
3331
|
], 2)) : p("", !0),
|
|
3330
|
-
s(
|
|
3332
|
+
s(i).isUploading ? (a(), l("div", Va, [
|
|
3331
3333
|
v(s(u), { is: "sv-loading-indicator" })
|
|
3332
3334
|
])) : p("", !0)
|
|
3333
3335
|
], 512));
|
|
3334
3336
|
}
|
|
3335
|
-
}),
|
|
3337
|
+
}), za = {
|
|
3336
3338
|
key: 0,
|
|
3337
3339
|
class: "svc-search"
|
|
3338
|
-
},
|
|
3340
|
+
}, La = { class: "svc-search__search-icon" }, Fa = ["aria-label", "placeholder"], Ka = { class: "svc-search__toolbar" }, Ua = { class: "svc-search__toolbar-counter" }, Ha = /* @__PURE__ */ g({
|
|
3339
3341
|
__name: "Search",
|
|
3340
3342
|
props: {
|
|
3341
3343
|
model: {}
|
|
3342
3344
|
},
|
|
3343
3345
|
setup(c) {
|
|
3344
3346
|
const t = c;
|
|
3345
|
-
|
|
3347
|
+
T(() => t.model);
|
|
3346
3348
|
const e = k({
|
|
3347
3349
|
get: () => t.model.filterString,
|
|
3348
3350
|
set: (o) => {
|
|
@@ -3350,25 +3352,25 @@ const Nt = /* @__PURE__ */ g({
|
|
|
3350
3352
|
n.filterString = o;
|
|
3351
3353
|
}
|
|
3352
3354
|
});
|
|
3353
|
-
return (o, n) => o.model.isVisible ? (a(),
|
|
3354
|
-
|
|
3355
|
+
return (o, n) => o.model.isVisible ? (a(), l("div", za, [
|
|
3356
|
+
d("div", La, [
|
|
3355
3357
|
v(s(u), {
|
|
3356
3358
|
is: "sv-svg-icon",
|
|
3357
3359
|
iconName: "icon-search",
|
|
3358
3360
|
size: "auto"
|
|
3359
3361
|
})
|
|
3360
3362
|
]),
|
|
3361
|
-
C(
|
|
3363
|
+
C(d("input", {
|
|
3362
3364
|
type: "text",
|
|
3363
3365
|
class: "svc-search__input",
|
|
3364
|
-
"onUpdate:modelValue": n[0] || (n[0] = (
|
|
3366
|
+
"onUpdate:modelValue": n[0] || (n[0] = (i) => e.value = i),
|
|
3365
3367
|
"aria-label": o.model.filterStringPlaceholder,
|
|
3366
3368
|
placeholder: o.model.filterStringPlaceholder
|
|
3367
|
-
}, null, 8,
|
|
3369
|
+
}, null, 8, Fa), [
|
|
3368
3370
|
[de, e.value]
|
|
3369
3371
|
]),
|
|
3370
|
-
|
|
3371
|
-
|
|
3372
|
+
d("div", Ka, [
|
|
3373
|
+
d("div", Ua, $(o.model.matchCounterText), 1),
|
|
3372
3374
|
v(s(u), {
|
|
3373
3375
|
is: "sv-action-bar",
|
|
3374
3376
|
model: o.model.searchActionBar
|
|
@@ -3376,36 +3378,36 @@ const Nt = /* @__PURE__ */ g({
|
|
|
3376
3378
|
])
|
|
3377
3379
|
])) : p("", !0);
|
|
3378
3380
|
}
|
|
3379
|
-
}),
|
|
3381
|
+
}), Oa = ["title"], Qa = /* @__PURE__ */ g({
|
|
3380
3382
|
__name: "PageNavigator",
|
|
3381
3383
|
props: {
|
|
3382
3384
|
pagesController: {},
|
|
3383
3385
|
pageEditMode: {}
|
|
3384
3386
|
},
|
|
3385
3387
|
setup(c) {
|
|
3386
|
-
const t = c, e =
|
|
3388
|
+
const t = c, e = z(
|
|
3387
3389
|
() => new Re(t.pagesController, t.pageEditMode),
|
|
3388
3390
|
[() => t.pagesController, () => t.pageEditMode]
|
|
3389
3391
|
), o = I();
|
|
3390
|
-
return
|
|
3392
|
+
return P(() => {
|
|
3391
3393
|
if (t.pageEditMode !== "bypage") {
|
|
3392
|
-
const n = o.value,
|
|
3393
|
-
n &&
|
|
3394
|
+
const n = o.value, i = e.value;
|
|
3395
|
+
n && i.attachToUI(n);
|
|
3394
3396
|
}
|
|
3395
3397
|
}), X(() => {
|
|
3396
3398
|
const n = e.value;
|
|
3397
3399
|
n.stopItemsContainerHeightObserver(), n.setScrollableContainer(void 0);
|
|
3398
|
-
}),
|
|
3400
|
+
}), K(() => {
|
|
3399
3401
|
e.value.dispose();
|
|
3400
|
-
}), (n,
|
|
3402
|
+
}), (n, i) => C((a(), l("div", {
|
|
3401
3403
|
class: "svc-page-navigator",
|
|
3402
3404
|
ref_key: "root",
|
|
3403
3405
|
ref: o
|
|
3404
3406
|
}, [
|
|
3405
|
-
C((a(),
|
|
3407
|
+
C((a(), l("div", {
|
|
3406
3408
|
role: "button",
|
|
3407
3409
|
class: _(["svc-page-navigator__selector svc-page-navigator__button", { "svc-page-navigator__button--pressed": s(e).isPopupOpened }]),
|
|
3408
|
-
onClick:
|
|
3410
|
+
onClick: i[0] || (i[0] = (r) => s(e).togglePageSelector(r)),
|
|
3409
3411
|
title: s(e).pageSelectorCaption
|
|
3410
3412
|
}, [
|
|
3411
3413
|
v(s(u), {
|
|
@@ -3418,58 +3420,58 @@ const Nt = /* @__PURE__ */ g({
|
|
|
3418
3420
|
is: "sv-popup",
|
|
3419
3421
|
model: s(e).popupModel
|
|
3420
3422
|
}, null, 8, ["model"])
|
|
3421
|
-
], 10,
|
|
3422
|
-
[s(
|
|
3423
|
+
], 10, Oa)), [
|
|
3424
|
+
[s(N)]
|
|
3423
3425
|
]),
|
|
3424
|
-
|
|
3425
|
-
(a(!0),
|
|
3426
|
+
d("div", null, [
|
|
3427
|
+
(a(!0), l(w, null, V(s(e).visibleItems, (r) => (a(), h(s(u), {
|
|
3426
3428
|
is: "svc-page-navigator-item",
|
|
3427
|
-
key:
|
|
3428
|
-
model:
|
|
3429
|
+
key: r.id,
|
|
3430
|
+
model: r
|
|
3429
3431
|
}, null, 8, ["model"]))), 128))
|
|
3430
3432
|
])
|
|
3431
3433
|
], 512)), [
|
|
3432
|
-
[
|
|
3434
|
+
[U, s(e).visible]
|
|
3433
3435
|
]);
|
|
3434
3436
|
}
|
|
3435
|
-
}),
|
|
3436
|
-
|
|
3437
|
-
],
|
|
3438
|
-
/* @__PURE__ */
|
|
3439
|
-
], -1),
|
|
3437
|
+
}), Ga = { class: "svc-page-navigator-item" }, Wa = ["title"], ja = /* @__PURE__ */ d("div", { class: "svc-page-navigator-item__dot-content" }, null, -1), Ja = [
|
|
3438
|
+
ja
|
|
3439
|
+
], Za = { class: "svc-page-navigator-item__banner" }, Xa = { class: "svc-page-navigator-item__text" }, Ya = /* @__PURE__ */ d("span", { class: "svc-page-navigator-item__dot" }, [
|
|
3440
|
+
/* @__PURE__ */ d("span", { class: "svc-page-navigator-item__dot-content" })
|
|
3441
|
+
], -1), xa = /* @__PURE__ */ g({
|
|
3440
3442
|
__name: "PageNavigatorItem",
|
|
3441
3443
|
props: {
|
|
3442
3444
|
model: {}
|
|
3443
3445
|
},
|
|
3444
3446
|
setup(c) {
|
|
3445
3447
|
const t = c;
|
|
3446
|
-
|
|
3448
|
+
T(() => t.model);
|
|
3447
3449
|
const e = (o) => {
|
|
3448
3450
|
t.model.action(), o.stopPropagation(), o.preventDefault();
|
|
3449
3451
|
};
|
|
3450
|
-
return (o, n) => (a(),
|
|
3451
|
-
C((a(),
|
|
3452
|
+
return (o, n) => (a(), l("div", Ga, [
|
|
3453
|
+
C((a(), l("div", {
|
|
3452
3454
|
role: "button",
|
|
3453
3455
|
class: _(["svc-page-navigator-item-content", {
|
|
3454
3456
|
"svc-page-navigator-item--selected": o.model.active,
|
|
3455
3457
|
"svc-page-navigator-item--disabled": o.model.disabled
|
|
3456
3458
|
}]),
|
|
3457
|
-
onClick: n[0] || (n[0] = (
|
|
3459
|
+
onClick: n[0] || (n[0] = (i) => e(i))
|
|
3458
3460
|
}, [
|
|
3459
|
-
|
|
3461
|
+
d("div", {
|
|
3460
3462
|
class: "svc-page-navigator-item__dot",
|
|
3461
3463
|
title: o.model.title
|
|
3462
|
-
},
|
|
3463
|
-
|
|
3464
|
-
|
|
3465
|
-
|
|
3464
|
+
}, Ja, 8, Wa),
|
|
3465
|
+
d("div", Za, [
|
|
3466
|
+
d("span", Xa, $(o.model.title), 1),
|
|
3467
|
+
Ya
|
|
3466
3468
|
])
|
|
3467
3469
|
], 2)), [
|
|
3468
|
-
[s(
|
|
3470
|
+
[s(N)]
|
|
3469
3471
|
])
|
|
3470
3472
|
]));
|
|
3471
3473
|
}
|
|
3472
|
-
}),
|
|
3474
|
+
}), el = { class: "svc-question__dropdown-choices--wrapper" }, ol = { class: "svc-question__dropdown-choices" }, sl = /* @__PURE__ */ g({
|
|
3473
3475
|
__name: "Dropdown",
|
|
3474
3476
|
props: {
|
|
3475
3477
|
model: {},
|
|
@@ -3484,16 +3486,16 @@ const Nt = /* @__PURE__ */ g({
|
|
|
3484
3486
|
data: t.element.getItemValueWrapperComponentData(n)
|
|
3485
3487
|
}
|
|
3486
3488
|
});
|
|
3487
|
-
return (n,
|
|
3488
|
-
|
|
3489
|
-
|
|
3490
|
-
(a(!0),
|
|
3491
|
-
key:
|
|
3489
|
+
return (n, i) => (a(), l("div", el, [
|
|
3490
|
+
d("div", null, [
|
|
3491
|
+
d("div", ol, [
|
|
3492
|
+
(a(!0), l(w, null, V(n.model.getRenderedItems(), (r) => (a(), l("div", {
|
|
3493
|
+
key: r.value,
|
|
3492
3494
|
class: _(n.model.getChoiceCss())
|
|
3493
3495
|
}, [
|
|
3494
|
-
v(s(u),
|
|
3495
|
-
is: e(
|
|
3496
|
-
}, o(
|
|
3496
|
+
v(s(u), A({
|
|
3497
|
+
is: e(r)
|
|
3498
|
+
}, o(r)), null, 16, ["is"])
|
|
3497
3499
|
], 2))), 128))
|
|
3498
3500
|
]),
|
|
3499
3501
|
n.model.needToCollapse ? (a(), h(s(u), {
|
|
@@ -3506,7 +3508,7 @@ const Nt = /* @__PURE__ */ g({
|
|
|
3506
3508
|
])
|
|
3507
3509
|
]));
|
|
3508
3510
|
}
|
|
3509
|
-
}),
|
|
3511
|
+
}), tl = /* @__PURE__ */ g({
|
|
3510
3512
|
__name: "QuestionDropdown",
|
|
3511
3513
|
props: {
|
|
3512
3514
|
componentName: {},
|
|
@@ -3526,7 +3528,7 @@ const Nt = /* @__PURE__ */ g({
|
|
|
3526
3528
|
"adorner-component": "svc-dropdown-question-adorner"
|
|
3527
3529
|
}, null, 8, ["element", "component-name", "component-data"]));
|
|
3528
3530
|
}
|
|
3529
|
-
}),
|
|
3531
|
+
}), nl = { class: "svc-question__adorner" }, al = { class: "svc-question__content svc-question__content--in-popup" }, ll = { class: "svc-question__dropdown-choices" }, le = "survey-radiogroup-item", il = /* @__PURE__ */ g({
|
|
3530
3532
|
__name: "CellQuestionDropdown",
|
|
3531
3533
|
props: {
|
|
3532
3534
|
componentName: {},
|
|
@@ -3535,23 +3537,23 @@ const Nt = /* @__PURE__ */ g({
|
|
|
3535
3537
|
setup(c) {
|
|
3536
3538
|
const t = c, e = k(
|
|
3537
3539
|
() => t.componentData.element
|
|
3538
|
-
), o = (
|
|
3540
|
+
), o = (i) => e.value.getItemValueWrapperComponentName(i) || le, n = (i) => ({
|
|
3539
3541
|
componentName: le,
|
|
3540
3542
|
componentData: {
|
|
3541
3543
|
question: e.value,
|
|
3542
|
-
item:
|
|
3543
|
-
data: e.value.getItemValueWrapperComponentData(
|
|
3544
|
+
item: i,
|
|
3545
|
+
data: e.value.getItemValueWrapperComponentData(i)
|
|
3544
3546
|
}
|
|
3545
3547
|
});
|
|
3546
|
-
return
|
|
3547
|
-
|
|
3548
|
-
v(s(u),
|
|
3549
|
-
|
|
3550
|
-
(a(!0),
|
|
3548
|
+
return T(() => e.value), (i, r) => (a(), l("div", nl, [
|
|
3549
|
+
d("div", al, [
|
|
3550
|
+
v(s(u), A({ is: i.componentName }, i.componentData), null, 16, ["is"]),
|
|
3551
|
+
d("div", ll, [
|
|
3552
|
+
(a(!0), l(w, null, V(e.value.visibleChoices, (m) => (a(), l("div", {
|
|
3551
3553
|
key: m.value,
|
|
3552
3554
|
class: "svc-question__dropdown-choice"
|
|
3553
3555
|
}, [
|
|
3554
|
-
v(s(u),
|
|
3556
|
+
v(s(u), A({
|
|
3555
3557
|
is: o(m)
|
|
3556
3558
|
}, n(m)), null, 16, ["is"])
|
|
3557
3559
|
]))), 128))
|
|
@@ -3559,25 +3561,25 @@ const Nt = /* @__PURE__ */ g({
|
|
|
3559
3561
|
])
|
|
3560
3562
|
]));
|
|
3561
3563
|
}
|
|
3562
|
-
}),
|
|
3564
|
+
}), rl = ["data-sv-drop-target-survey-element"], dl = /* @__PURE__ */ d("div", { class: "svc-question__drop-indicator svc-question__drop-indicator--left" }, null, -1), cl = /* @__PURE__ */ d("div", { class: "svc-question__drop-indicator svc-question__drop-indicator--right" }, null, -1), ul = /* @__PURE__ */ d("div", { class: "svc-question__drop-indicator svc-question__drop-indicator--top" }, null, -1), pl = /* @__PURE__ */ d("div", { class: "svc-question__drop-indicator svc-question__drop-indicator--bottom" }, null, -1), vl = { class: "svc-widget__content" }, ml = {
|
|
3563
3565
|
key: 1,
|
|
3564
3566
|
class: "svc-panel__placeholder_frame"
|
|
3565
|
-
},
|
|
3567
|
+
}, _l = /* @__PURE__ */ d("div", {
|
|
3566
3568
|
class: "svc-panel__placeholder",
|
|
3567
3569
|
"data-bind": "text: placeholderText"
|
|
3568
|
-
}, null, -1),
|
|
3569
|
-
|
|
3570
|
-
],
|
|
3570
|
+
}, null, -1), gl = [
|
|
3571
|
+
_l
|
|
3572
|
+
], bl = { class: "svc-question__content-actions" }, yl = {
|
|
3571
3573
|
key: 0,
|
|
3572
3574
|
class: "svc-panel__placeholder_frame"
|
|
3573
|
-
},
|
|
3575
|
+
}, hl = { class: "svc-panel__placeholder" }, ql = /* @__PURE__ */ g({
|
|
3574
3576
|
__name: "CustomWidget",
|
|
3575
3577
|
props: {
|
|
3576
3578
|
componentName: {},
|
|
3577
3579
|
componentData: {}
|
|
3578
3580
|
},
|
|
3579
3581
|
setup(c) {
|
|
3580
|
-
const t = c, e = I(), o =
|
|
3582
|
+
const t = c, e = I(), o = z(
|
|
3581
3583
|
() => new ee(
|
|
3582
3584
|
t.componentData.data,
|
|
3583
3585
|
t.componentData.element,
|
|
@@ -3590,31 +3592,31 @@ const Nt = /* @__PURE__ */ g({
|
|
|
3590
3592
|
);
|
|
3591
3593
|
return Y(() => {
|
|
3592
3594
|
e.value && o.value && (o.value.rootElement = e.value);
|
|
3593
|
-
}),
|
|
3595
|
+
}), P(() => {
|
|
3594
3596
|
e.value && o.value && (o.value.rootElement = e.value);
|
|
3595
|
-
}), (n,
|
|
3597
|
+
}), (n, i) => s(o) ? (a(), l("div", {
|
|
3596
3598
|
key: 0,
|
|
3597
3599
|
class: _(["svc-question__adorner", s(o).rootCss()]),
|
|
3598
|
-
onMouseover:
|
|
3599
|
-
onMouseleave:
|
|
3600
|
+
onMouseover: i[2] || (i[2] = (r) => s(o).hover(r, r.currentTarget)),
|
|
3601
|
+
onMouseleave: i[3] || (i[3] = (r) => s(o).hover(r, r.currentTarget)),
|
|
3600
3602
|
"data-sv-drop-target-survey-element": s(o).element.name || null,
|
|
3601
3603
|
ref_key: "root",
|
|
3602
3604
|
ref: e
|
|
3603
3605
|
}, [
|
|
3604
|
-
s(o).element.isInteractiveDesignElement ? C((a(),
|
|
3606
|
+
s(o).element.isInteractiveDesignElement ? C((a(), l("div", {
|
|
3605
3607
|
key: 0,
|
|
3606
3608
|
class: _(["svc-question__content", s(o).css()]),
|
|
3607
|
-
onClick:
|
|
3609
|
+
onClick: i[1] || (i[1] = (r) => s(o).select(s(o), r)),
|
|
3608
3610
|
"data-bind": "clickBubble: false"
|
|
3609
3611
|
}, [
|
|
3610
|
-
ll,
|
|
3611
|
-
il,
|
|
3612
|
-
rl,
|
|
3613
3612
|
dl,
|
|
3614
|
-
|
|
3613
|
+
cl,
|
|
3614
|
+
ul,
|
|
3615
|
+
pl,
|
|
3616
|
+
s(o).allowDragging ? (a(), l("div", {
|
|
3615
3617
|
key: 0,
|
|
3616
3618
|
class: "svc-question__drag-area",
|
|
3617
|
-
onPointerdown:
|
|
3619
|
+
onPointerdown: i[0] || (i[0] = (r) => s(o).onPointerDown(r))
|
|
3618
3620
|
}, [
|
|
3619
3621
|
v(s(u), {
|
|
3620
3622
|
is: "sv-svg-icon",
|
|
@@ -3623,11 +3625,11 @@ const Nt = /* @__PURE__ */ g({
|
|
|
3623
3625
|
size: "auto"
|
|
3624
3626
|
})
|
|
3625
3627
|
], 32)) : p("", !0),
|
|
3626
|
-
|
|
3627
|
-
v(s(u),
|
|
3628
|
+
d("div", vl, [
|
|
3629
|
+
v(s(u), A({ is: n.componentName }, n.componentData), null, 16, ["is"])
|
|
3628
3630
|
]),
|
|
3629
|
-
s(o).isEmptyElement ? (a(),
|
|
3630
|
-
|
|
3631
|
+
s(o).isEmptyElement ? (a(), l("div", ml, gl)) : p("", !0),
|
|
3632
|
+
d("div", bl, [
|
|
3631
3633
|
v(s(u), {
|
|
3632
3634
|
is: "sv-action-bar",
|
|
3633
3635
|
model: s(o).actionContainer,
|
|
@@ -3635,26 +3637,26 @@ const Nt = /* @__PURE__ */ g({
|
|
|
3635
3637
|
}, null, 8, ["model"])
|
|
3636
3638
|
])
|
|
3637
3639
|
], 2)), [
|
|
3638
|
-
[s(
|
|
3640
|
+
[s(N)]
|
|
3639
3641
|
]) : p("", !0),
|
|
3640
|
-
s(o).element.isInteractiveDesignElement ? p("", !0) : (a(),
|
|
3641
|
-
v(s(u),
|
|
3642
|
-
s(o).isEmptyElement ? (a(),
|
|
3643
|
-
|
|
3642
|
+
s(o).element.isInteractiveDesignElement ? p("", !0) : (a(), l(w, { key: 1 }, [
|
|
3643
|
+
v(s(u), A({ is: n.componentName }, n.componentData), null, 16, ["is"]),
|
|
3644
|
+
s(o).isEmptyElement ? (a(), l("div", yl, [
|
|
3645
|
+
d("div", hl, $(s(o).placeholderText), 1)
|
|
3644
3646
|
])) : p("", !0)
|
|
3645
3647
|
], 64))
|
|
3646
|
-
], 42,
|
|
3648
|
+
], 42, rl)) : p("", !0);
|
|
3647
3649
|
}
|
|
3648
|
-
}),
|
|
3650
|
+
}), Cl = { class: "svc-carry-forward-panel-wrapper" }, kl = { class: "svc-carry-forward-panel" }, $l = { class: "svc-carry-forward-panel__link" }, fl = /* @__PURE__ */ g({
|
|
3649
3651
|
__name: "QuestionBanner",
|
|
3650
3652
|
props: {
|
|
3651
3653
|
model: {}
|
|
3652
3654
|
},
|
|
3653
3655
|
setup(c) {
|
|
3654
|
-
return (t, e) => (a(),
|
|
3655
|
-
|
|
3656
|
-
|
|
3657
|
-
|
|
3656
|
+
return (t, e) => (a(), l("div", Cl, [
|
|
3657
|
+
d("div", kl, [
|
|
3658
|
+
d("span", null, $(t.model.text) + $(" "), 1),
|
|
3659
|
+
d("span", $l, [
|
|
3658
3660
|
v(s(u), {
|
|
3659
3661
|
is: "svc-action-button",
|
|
3660
3662
|
text: t.model.actionText,
|
|
@@ -3665,20 +3667,20 @@ const Nt = /* @__PURE__ */ g({
|
|
|
3665
3667
|
]));
|
|
3666
3668
|
}
|
|
3667
3669
|
});
|
|
3668
|
-
function
|
|
3670
|
+
function wl(c, t, e) {
|
|
3669
3671
|
c(t, e);
|
|
3670
3672
|
}
|
|
3671
3673
|
function pe(c) {
|
|
3672
|
-
const t =
|
|
3674
|
+
const t = wl.bind(
|
|
3673
3675
|
void 0,
|
|
3674
3676
|
c
|
|
3675
3677
|
);
|
|
3676
|
-
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", Ho), t("svc-property-grid", uo), t("svc-object-selector", co), t("svc-search",
|
|
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", Ho), t("svc-property-grid", uo), t("svc-object-selector", co), t("svc-search", Ha), t("svc-switcher", os), t("svc-action-button", Jo), t("svc-question-error", Oo), t("survey-embeddedsurvey", Gs), t("sv-logic-operator", Qs), t("survey-linkvalue", Ws), t("survey-color", ct), t("color-item", ut), t("sv-boolean-switch", Nt), t("survey-fileedit", gt), t("survey-spinedit", qt), t("survey-textwithreset", ne), t("survey-commentwithreset", ne), t("survey-widget", Q), t("survey-simulator", ns), t("svc-tab-preview", cs), t("svc-complete-page", ps), t("survey-results", $s), 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", Ht), t("svc-toolbox-item", Wt), t("svc-toolbox-item-group", jt), t(Ae, Vt), t("svc-tab-designer", pn), t("svc-page-navigator", Qa), t("svc-page-navigator-item", xa), t("svc-page", Cn), t("svc-row", Nn), t("svc-add-new-question-btn", $n), t("svc-add-question-type-selector", wn), t("svc-question", ae), t("svc-rating-question", ae), t("svc-rating-question-content", Wn), t("svc-image-question", Ln), t("svc-image-question-adorner", Qn), t("svc-matrix-cell", Jn), t("svc-cell-question", Yn), t("svc-cell-dropdown-question", il), t("svc-question-editor-content", Ba), t("svc-logo-image", Aa), t("svc-panel", va), t("svc-item-value", ya), t("svc-image-item-value", Sa), t("svc-dropdown-question", tl), t("svc-dropdown-question-adorner", sl), t("svc-widget-question", ql), t("svc-question-banner", fl);
|
|
3677
3679
|
}
|
|
3678
3680
|
pe(
|
|
3679
3681
|
(c, t) => ie.Instance.registerComponent(c, t)
|
|
3680
3682
|
);
|
|
3681
|
-
const
|
|
3683
|
+
const Sl = {
|
|
3682
3684
|
install(c) {
|
|
3683
3685
|
c.component("SurveyCreatorComponent", je), pe((t, e) => {
|
|
3684
3686
|
c.component(t, e), ie.Instance.registerComponent(t, t);
|
|
@@ -3687,5 +3689,5 @@ const Dl = {
|
|
|
3687
3689
|
};
|
|
3688
3690
|
export {
|
|
3689
3691
|
je as SurveyCreatorComponent,
|
|
3690
|
-
|
|
3692
|
+
Sl as surveyCreatorPlugin
|
|
3691
3693
|
};
|