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