survey-creator-vue 2.3.10 → 2.3.11
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 +883 -837
- package/survey-creator-vue.umd.js +2 -2
package/survey-creator-vue.es.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { useBase as
|
|
2
|
-
import { defineComponent as g, computed as
|
|
3
|
-
import { editorLocalization as ce, SurveyResultsModel as ye, initLogicOperator as he, StringEditorViewModelBase as Ce, ToolboxToolViewModel as qe, PageAdorner as $e, RowViewModel as ke, QuestionAdornerViewModel as ee, QuestionImageAdornerViewModel as fe, QuestionRatingAdornerViewModel as we, MatrixCellWrapperViewModel as
|
|
1
|
+
import { useBase as w, SvComponent as c, key2ClickDirective as M, SurveyComponent as O, useQuestion as H, ComponentFactory as ie } from "survey-vue3-ui";
|
|
2
|
+
import { defineComponent as g, computed as k, toRaw as _e, ref as P, onMounted as R, onUnmounted as K, openBlock as a, createElementBlock as i, Fragment as D, createVNode as v, unref as s, createElementVNode as d, normalizeClass as m, normalizeStyle as F, createCommentVNode as p, renderList as V, createBlock as b, onUpdated as G, nextTick as re, withDirectives as h, toDisplayString as f, vShow as Q, withCtx as X, createTextVNode as ge, shallowRef as be, watch as W, onBeforeUnmount as Y, vModelText as de, mergeProps as A, renderSlot as x } from "vue";
|
|
3
|
+
import { editorLocalization as ce, SurveyResultsModel as ye, initLogicOperator as he, StringEditorViewModelBase as Ce, ToolboxToolViewModel as qe, PageAdorner as $e, RowViewModel as ke, QuestionAdornerViewModel as ee, QuestionImageAdornerViewModel as fe, QuestionRatingAdornerViewModel as we, MatrixCellWrapperViewModel as De, ItemValueWrapperViewModel as Te, ImageItemValueWrapperViewModel as Ne, LogoImageViewModel as Me, PageNavigatorViewModel as Se, QuestionDropdownAdornerViewModel as Be, editableStringRendererName as Ie } from "survey-creator-core";
|
|
4
4
|
import { CssClassBuilder as Ee, RendererFactory as ue, DropdownListModel as Pe } from "survey-core";
|
|
5
|
-
const Re = { class: "svc-flex-column svc-flex-row__element svc-flex-row__element--growing" },
|
|
5
|
+
const Re = { class: "svc-flex-column svc-flex-row__element svc-flex-row__element--growing" }, Ae = { class: "svc-top-bar" }, Ve = {
|
|
6
6
|
key: 0,
|
|
7
7
|
class: "svc-tabbed-menu-wrapper"
|
|
8
8
|
}, ze = ["v-show"], Le = { class: "svc-creator__content-holder svc-flex-column" }, Fe = ["aria-labelledby", "id"], Ke = {
|
|
@@ -16,19 +16,19 @@ 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 =
|
|
21
|
-
return
|
|
19
|
+
setup(u) {
|
|
20
|
+
const t = u, e = k(() => _e(t.model)), o = P();
|
|
21
|
+
return w(
|
|
22
22
|
() => e.value,
|
|
23
23
|
(n, r) => {
|
|
24
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, r) => e.value.isCreatorDisposed ? p("", !0) : (a(), i(
|
|
31
|
-
v(s(
|
|
30
|
+
}), (n, r) => e.value.isCreatorDisposed ? p("", !0) : (a(), i(D, { key: 0 }, [
|
|
31
|
+
v(s(c), { is: "survey-popup-modal" }),
|
|
32
32
|
d("div", {
|
|
33
33
|
class: m(e.value.getRootCss()),
|
|
34
34
|
style: F(e.value.themeVariables),
|
|
@@ -36,7 +36,7 @@ const Re = { class: "svc-flex-column svc-flex-row__element svc-flex-row__element
|
|
|
36
36
|
ref: o
|
|
37
37
|
}, [
|
|
38
38
|
d("div", null, [
|
|
39
|
-
v(s(
|
|
39
|
+
v(s(c), { is: "sv-svg-bundle" })
|
|
40
40
|
]),
|
|
41
41
|
d("div", {
|
|
42
42
|
class: m(["svc-full-container svc-creator__area svc-flex-column", {
|
|
@@ -49,9 +49,9 @@ const Re = { class: "svc-flex-column svc-flex-row__element svc-flex-row__element
|
|
|
49
49
|
}])
|
|
50
50
|
}, [
|
|
51
51
|
d("div", Re, [
|
|
52
|
-
d("div",
|
|
53
|
-
e.value.showTabs ? (a(), i("div",
|
|
54
|
-
v(s(
|
|
52
|
+
d("div", Ae, [
|
|
53
|
+
e.value.showTabs ? (a(), i("div", Ve, [
|
|
54
|
+
v(s(c), {
|
|
55
55
|
is: "svc-tabbed-menu",
|
|
56
56
|
model: e.value.tabbedMenu
|
|
57
57
|
}, null, 8, ["model"])
|
|
@@ -61,7 +61,7 @@ const Re = { class: "svc-flex-column svc-flex-row__element svc-flex-row__element
|
|
|
61
61
|
class: "svc-toolbar-wrapper",
|
|
62
62
|
"v-show": e.value.showToolbar
|
|
63
63
|
}, [
|
|
64
|
-
v(s(
|
|
64
|
+
v(s(c), {
|
|
65
65
|
is: "sv-action-bar",
|
|
66
66
|
model: e.value.toolbar
|
|
67
67
|
}, null, 8, ["model"])
|
|
@@ -73,7 +73,7 @@ const Re = { class: "svc-flex-column svc-flex-row__element svc-flex-row__element
|
|
|
73
73
|
}])
|
|
74
74
|
}, [
|
|
75
75
|
d("div", Le, [
|
|
76
|
-
(a(!0), i(
|
|
76
|
+
(a(!0), i(D, null, V(e.value.tabs, (l) => (a(), i(D, null, [
|
|
77
77
|
e.value.viewType == l.id && l.visible ? (a(), i("div", {
|
|
78
78
|
role: "tabpanel",
|
|
79
79
|
class: m(["svc-creator-tab", {
|
|
@@ -83,7 +83,7 @@ const Re = { class: "svc-flex-column svc-flex-row__element svc-flex-row__element
|
|
|
83
83
|
"aria-labelledby": "tab-" + l.id,
|
|
84
84
|
id: "scrollableDiv-" + l.id
|
|
85
85
|
}, [
|
|
86
|
-
v(s(
|
|
86
|
+
v(s(c), {
|
|
87
87
|
is: l.componentContent,
|
|
88
88
|
model: l.data.model
|
|
89
89
|
}, null, 8, ["is", "model"])
|
|
@@ -96,14 +96,14 @@ const Re = { class: "svc-flex-column svc-flex-row__element svc-flex-row__element
|
|
|
96
96
|
class: "svc-toolbar-wrapper",
|
|
97
97
|
"v-show": e.value.isMobileView
|
|
98
98
|
}, [
|
|
99
|
-
v(s(
|
|
99
|
+
v(s(c), {
|
|
100
100
|
is: "sv-action-bar",
|
|
101
101
|
model: e.value.footerToolbar
|
|
102
102
|
}, null, 8, ["model"])
|
|
103
103
|
], 8, Ue)
|
|
104
104
|
])) : p("", !0)
|
|
105
105
|
]),
|
|
106
|
-
e.value.sidebar ? (a(),
|
|
106
|
+
e.value.sidebar ? (a(), b(s(c), {
|
|
107
107
|
key: 0,
|
|
108
108
|
is: "svc-side-bar",
|
|
109
109
|
model: e.value.sidebar
|
|
@@ -115,7 +115,7 @@ const Re = { class: "svc-flex-column svc-flex-row__element svc-flex-row__element
|
|
|
115
115
|
innerHTML: e.value.licenseText
|
|
116
116
|
}, null, 8, He)
|
|
117
117
|
])),
|
|
118
|
-
v(s(
|
|
118
|
+
v(s(c), {
|
|
119
119
|
is: "sv-notifier",
|
|
120
120
|
model: e.value.notifier
|
|
121
121
|
}, null, 8, ["model"])
|
|
@@ -128,11 +128,11 @@ const Re = { class: "svc-flex-column svc-flex-row__element svc-flex-row__element
|
|
|
128
128
|
props: {
|
|
129
129
|
model: {}
|
|
130
130
|
},
|
|
131
|
-
setup(
|
|
132
|
-
const t =
|
|
133
|
-
return
|
|
131
|
+
setup(u) {
|
|
132
|
+
const t = u, e = P();
|
|
133
|
+
return w(() => t.model), G(() => {
|
|
134
134
|
t.model.initResponsivityManager(e.value);
|
|
135
|
-
}),
|
|
135
|
+
}), R(() => {
|
|
136
136
|
t.model.initResponsivityManager(e.value);
|
|
137
137
|
}), K(() => {
|
|
138
138
|
t.model.resetResponsivityManager();
|
|
@@ -143,7 +143,7 @@ const Re = { class: "svc-flex-column svc-flex-row__element svc-flex-row__element
|
|
|
143
143
|
role: "tablist",
|
|
144
144
|
style: F(o.model.getRootStyle())
|
|
145
145
|
}, [
|
|
146
|
-
(a(!0), i(
|
|
146
|
+
(a(!0), i(D, null, V(o.model.renderedActions, (r) => (a(), b(s(c), {
|
|
147
147
|
key: r.renderedId,
|
|
148
148
|
is: "svc-tabbed-menu-item-wrapper",
|
|
149
149
|
item: r
|
|
@@ -155,9 +155,9 @@ const Re = { class: "svc-flex-column svc-flex-row__element svc-flex-row__element
|
|
|
155
155
|
props: {
|
|
156
156
|
item: {}
|
|
157
157
|
},
|
|
158
|
-
setup(
|
|
159
|
-
const t =
|
|
160
|
-
return
|
|
158
|
+
setup(u) {
|
|
159
|
+
const t = P(), e = u;
|
|
160
|
+
return w(() => e.item), R(() => {
|
|
161
161
|
const o = e.item;
|
|
162
162
|
o.updateModeCallback = (n, r) => {
|
|
163
163
|
o.mode = n, re(() => r(n, t.value));
|
|
@@ -171,7 +171,7 @@ const Re = { class: "svc-flex-column svc-flex-row__element svc-flex-row__element
|
|
|
171
171
|
ref: t
|
|
172
172
|
}, [
|
|
173
173
|
d("div", We, [
|
|
174
|
-
v(s(
|
|
174
|
+
v(s(c), {
|
|
175
175
|
is: o.item.component || "svc-tabbed-menu-item",
|
|
176
176
|
item: o.item
|
|
177
177
|
}, null, 8, ["is", "item"])
|
|
@@ -183,9 +183,9 @@ const Re = { class: "svc-flex-column svc-flex-row__element svc-flex-row__element
|
|
|
183
183
|
props: {
|
|
184
184
|
item: {}
|
|
185
185
|
},
|
|
186
|
-
setup(
|
|
187
|
-
const t =
|
|
188
|
-
return
|
|
186
|
+
setup(u) {
|
|
187
|
+
const t = u;
|
|
188
|
+
return w(() => t.item), (e, o) => h((a(), i("div", {
|
|
189
189
|
role: "tab",
|
|
190
190
|
id: "tab-" + e.item.id,
|
|
191
191
|
"aria-selected": e.item.active,
|
|
@@ -197,8 +197,8 @@ const Re = { class: "svc-flex-column svc-flex-row__element svc-flex-row__element
|
|
|
197
197
|
e.item.hasTitle ? (a(), i("span", {
|
|
198
198
|
key: 0,
|
|
199
199
|
class: m(e.item.getTitleCss())
|
|
200
|
-
},
|
|
201
|
-
e.item.hasIcon ? (a(),
|
|
200
|
+
}, f(e.item.title), 3)) : p("", !0),
|
|
201
|
+
e.item.hasIcon ? (a(), b(s(c), {
|
|
202
202
|
key: 1,
|
|
203
203
|
is: "sv-svg-icon",
|
|
204
204
|
iconName: e.item.iconName,
|
|
@@ -207,7 +207,7 @@ const Re = { class: "svc-flex-column svc-flex-row__element svc-flex-row__element
|
|
|
207
207
|
title: e.item.tooltip || e.item.title
|
|
208
208
|
}, null, 8, ["iconName", "class", "title"])) : p("", !0)
|
|
209
209
|
], 10, Je)), [
|
|
210
|
-
[s(
|
|
210
|
+
[s(M)]
|
|
211
211
|
]);
|
|
212
212
|
}
|
|
213
213
|
}), Xe = { class: "svc-flex-row svc-side-bar__wrapper" }, Ye = { class: "svc-side-bar__container-wrapper" }, xe = { class: "svc-side-bar__container-content" }, eo = /* @__PURE__ */ g({
|
|
@@ -215,34 +215,34 @@ const Re = { class: "svc-flex-column svc-flex-row__element svc-flex-row__element
|
|
|
215
215
|
props: {
|
|
216
216
|
model: {}
|
|
217
217
|
},
|
|
218
|
-
setup(
|
|
219
|
-
const t =
|
|
220
|
-
return
|
|
218
|
+
setup(u) {
|
|
219
|
+
const t = u, e = P();
|
|
220
|
+
return w(() => t.model), R(() => {
|
|
221
221
|
t.model.initResizeManager(e.value);
|
|
222
222
|
}), K(() => {
|
|
223
223
|
t.model.resetResizeManager();
|
|
224
|
-
}), (o, n) =>
|
|
224
|
+
}), (o, n) => h((a(), i("div", {
|
|
225
225
|
class: m(["svc-side-bar", o.model.rootCss])
|
|
226
226
|
}, [
|
|
227
|
-
|
|
227
|
+
h(d("div", {
|
|
228
228
|
class: "svc-side-bar__shadow",
|
|
229
229
|
onClick: n[0] || (n[0] = () => o.model.collapseSidebar())
|
|
230
230
|
}, null, 512), [
|
|
231
231
|
[Q, o.model.renderContainer]
|
|
232
232
|
]),
|
|
233
233
|
d("div", Xe, [
|
|
234
|
-
|
|
234
|
+
h(d("div", Ye, [
|
|
235
235
|
d("div", {
|
|
236
236
|
class: "svc-side-bar__container",
|
|
237
237
|
ref_key: "root",
|
|
238
238
|
ref: e
|
|
239
239
|
}, [
|
|
240
|
-
v(s(
|
|
240
|
+
v(s(c), {
|
|
241
241
|
is: o.model.header.component,
|
|
242
242
|
model: o.model.header.componentModel
|
|
243
243
|
}, null, 8, ["is", "model"]),
|
|
244
244
|
d("div", xe, [
|
|
245
|
-
(a(!0), i(
|
|
245
|
+
(a(!0), i(D, null, V(o.model.pages, (r, l) => (a(), b(s(c), {
|
|
246
246
|
key: l,
|
|
247
247
|
is: "svc-side-bar-page",
|
|
248
248
|
model: r
|
|
@@ -252,7 +252,7 @@ const Re = { class: "svc-flex-column svc-flex-row__element svc-flex-row__element
|
|
|
252
252
|
], 512), [
|
|
253
253
|
[Q, o.model.renderContainer]
|
|
254
254
|
]),
|
|
255
|
-
o.model.sideAreaComponentName ? (a(),
|
|
255
|
+
o.model.sideAreaComponentName ? (a(), b(s(c), {
|
|
256
256
|
key: 0,
|
|
257
257
|
is: o.model.sideAreaComponentName,
|
|
258
258
|
model: o.model.sideAreaComponentData
|
|
@@ -270,16 +270,16 @@ const Re = { class: "svc-flex-column svc-flex-row__element svc-flex-row__element
|
|
|
270
270
|
props: {
|
|
271
271
|
model: {}
|
|
272
272
|
},
|
|
273
|
-
setup(
|
|
274
|
-
const t =
|
|
275
|
-
return
|
|
273
|
+
setup(u) {
|
|
274
|
+
const t = u;
|
|
275
|
+
return w(() => t.model), (e, o) => (a(), i("div", oo, [
|
|
276
276
|
d("div", so, [
|
|
277
|
-
v(s(
|
|
277
|
+
v(s(c), {
|
|
278
278
|
is: "sv-action-bar",
|
|
279
279
|
model: e.model.toolbar
|
|
280
280
|
}, null, 8, ["model"])
|
|
281
281
|
]),
|
|
282
|
-
e.model.title ? (a(), i("div", to,
|
|
282
|
+
e.model.title ? (a(), i("div", to, f(e.model.title), 1)) : p("", !0)
|
|
283
283
|
]));
|
|
284
284
|
}
|
|
285
285
|
}), ao = /* @__PURE__ */ g({
|
|
@@ -287,9 +287,9 @@ const Re = { class: "svc-flex-column svc-flex-row__element svc-flex-row__element
|
|
|
287
287
|
props: {
|
|
288
288
|
model: {}
|
|
289
289
|
},
|
|
290
|
-
setup(
|
|
291
|
-
const t =
|
|
292
|
-
return
|
|
290
|
+
setup(u) {
|
|
291
|
+
const t = u;
|
|
292
|
+
return w(() => t.model), (e, o) => e.model.visible ? (a(), b(s(c), {
|
|
293
293
|
key: 0,
|
|
294
294
|
is: e.model.componentName,
|
|
295
295
|
model: e.model.componentData
|
|
@@ -300,9 +300,9 @@ const Re = { class: "svc-flex-column svc-flex-row__element svc-flex-row__element
|
|
|
300
300
|
props: {
|
|
301
301
|
model: {}
|
|
302
302
|
},
|
|
303
|
-
setup(
|
|
304
|
-
const t =
|
|
305
|
-
return
|
|
303
|
+
setup(u) {
|
|
304
|
+
const t = u;
|
|
305
|
+
return w(() => t.model), (e, o) => e.model.isVisible ? (a(), b(s(c), {
|
|
306
306
|
key: 0,
|
|
307
307
|
is: "sv-list",
|
|
308
308
|
model: e.model.list
|
|
@@ -313,16 +313,16 @@ const Re = { class: "svc-flex-column svc-flex-row__element svc-flex-row__element
|
|
|
313
313
|
props: {
|
|
314
314
|
model: {}
|
|
315
315
|
},
|
|
316
|
-
setup(
|
|
317
|
-
const t =
|
|
318
|
-
return
|
|
316
|
+
setup(u) {
|
|
317
|
+
const t = u;
|
|
318
|
+
return w(() => t.model), (e, o) => (a(), i("div", {
|
|
319
319
|
class: m(e.model.rootCss)
|
|
320
320
|
}, [
|
|
321
|
-
v(s(
|
|
321
|
+
v(s(c), {
|
|
322
322
|
is: "svc-search",
|
|
323
323
|
model: e.model.searchManager
|
|
324
324
|
}, null, 8, ["model"]),
|
|
325
|
-
e.model.survey ? (a(),
|
|
325
|
+
e.model.survey ? (a(), b(s(O), {
|
|
326
326
|
key: 0,
|
|
327
327
|
survey: e.model.survey
|
|
328
328
|
}, null, 8, ["survey"])) : p("", !0)
|
|
@@ -333,9 +333,9 @@ const Re = { class: "svc-flex-column svc-flex-row__element svc-flex-row__element
|
|
|
333
333
|
props: {
|
|
334
334
|
model: {}
|
|
335
335
|
},
|
|
336
|
-
setup(
|
|
337
|
-
const t =
|
|
338
|
-
return
|
|
336
|
+
setup(u) {
|
|
337
|
+
const t = u;
|
|
338
|
+
return w(() => t.model), (e, o) => (a(!0), i(D, null, V(e.model.actions, (n, r) => (a(), b(s(c), {
|
|
339
339
|
key: r,
|
|
340
340
|
is: "svc-tab-button",
|
|
341
341
|
model: n
|
|
@@ -348,23 +348,23 @@ const Re = { class: "svc-flex-column svc-flex-row__element svc-flex-row__element
|
|
|
348
348
|
props: {
|
|
349
349
|
model: {}
|
|
350
350
|
},
|
|
351
|
-
setup(
|
|
352
|
-
const t =
|
|
353
|
-
return
|
|
351
|
+
setup(u) {
|
|
352
|
+
const t = u;
|
|
353
|
+
return w(() => t.model), (e, o) => (a(), i("div", {
|
|
354
354
|
class: m(e.model.sideBarClassName)
|
|
355
355
|
}, [
|
|
356
356
|
d("div", co, [
|
|
357
357
|
d("div", uo, [
|
|
358
|
-
v(s(
|
|
358
|
+
v(s(c), {
|
|
359
359
|
is: "svc-tab-button",
|
|
360
360
|
model: e.model.expandCollapseAction
|
|
361
361
|
}, null, 8, ["model"])
|
|
362
362
|
]),
|
|
363
363
|
po,
|
|
364
|
-
v(s(
|
|
364
|
+
v(s(c), { is: "sv-scroll" }, {
|
|
365
365
|
default: X(() => [
|
|
366
366
|
d("div", vo, [
|
|
367
|
-
v(s(
|
|
367
|
+
v(s(c), {
|
|
368
368
|
is: "svc-tabs",
|
|
369
369
|
model: e.model.topToolbar
|
|
370
370
|
}, null, 8, ["model"])
|
|
@@ -375,7 +375,7 @@ const Re = { class: "svc-flex-column svc-flex-row__element svc-flex-row__element
|
|
|
375
375
|
]),
|
|
376
376
|
d("div", mo, [
|
|
377
377
|
d("div", _o, [
|
|
378
|
-
v(s(
|
|
378
|
+
v(s(c), {
|
|
379
379
|
is: "svc-tabs",
|
|
380
380
|
model: e.model.bottomToolbar
|
|
381
381
|
}, null, 8, ["model"])
|
|
@@ -391,17 +391,17 @@ const Re = { class: "svc-flex-column svc-flex-row__element svc-flex-row__element
|
|
|
391
391
|
props: {
|
|
392
392
|
model: {}
|
|
393
393
|
},
|
|
394
|
-
setup(
|
|
395
|
-
const t =
|
|
396
|
-
return
|
|
397
|
-
|
|
394
|
+
setup(u) {
|
|
395
|
+
const t = u;
|
|
396
|
+
return w(() => t.model), (e, o) => e.model.visible ? (a(), i("div", bo, [
|
|
397
|
+
h((a(), i("div", {
|
|
398
398
|
class: m(e.model.buttonClassName),
|
|
399
399
|
title: e.model.tooltip,
|
|
400
400
|
onClick: o[0] || (o[0] = (n) => e.model.action())
|
|
401
401
|
}, [
|
|
402
402
|
d("div", ho, [
|
|
403
403
|
d("div", Co, [
|
|
404
|
-
v(s(
|
|
404
|
+
v(s(c), {
|
|
405
405
|
is: "sv-svg-icon",
|
|
406
406
|
iconName: e.model.iconName,
|
|
407
407
|
size: "auto"
|
|
@@ -409,23 +409,23 @@ const Re = { class: "svc-flex-column svc-flex-row__element svc-flex-row__element
|
|
|
409
409
|
])
|
|
410
410
|
])
|
|
411
411
|
], 10, yo)), [
|
|
412
|
-
[s(
|
|
412
|
+
[s(M), { processEsc: !1, disableTabStop: e.model.disableTabStop }]
|
|
413
413
|
])
|
|
414
414
|
])) : p("", !0);
|
|
415
415
|
}
|
|
416
|
-
}), $o = { class: "svc-property-grid-placeholder" }, ko = { class: "svc-property-grid-placeholder__header" }, fo = { class: "svc-property-grid-placeholder__title" }, wo = { class: "svc-property-grid-placeholder__description" },
|
|
416
|
+
}), $o = { class: "svc-property-grid-placeholder" }, ko = { class: "svc-property-grid-placeholder__header" }, fo = { class: "svc-property-grid-placeholder__title" }, wo = { class: "svc-property-grid-placeholder__description" }, Do = /* @__PURE__ */ d("div", { class: "svc-property-grid-placeholder__content" }, [
|
|
417
417
|
/* @__PURE__ */ d("div", { class: "svc-property-grid-placeholder__gap" }),
|
|
418
418
|
/* @__PURE__ */ d("div", { class: "svc-property-grid-placeholder__image" })
|
|
419
|
-
], -1),
|
|
419
|
+
], -1), To = /* @__PURE__ */ g({
|
|
420
420
|
__name: "PropertyGridPlaceholder",
|
|
421
|
-
setup(
|
|
421
|
+
setup(u) {
|
|
422
422
|
const t = ce;
|
|
423
423
|
return (e, o) => (a(), i("div", $o, [
|
|
424
424
|
d("div", ko, [
|
|
425
|
-
d("span", fo,
|
|
426
|
-
d("span", wo,
|
|
425
|
+
d("span", fo, f(s(t).getString("ed.propertyGridPlaceholderTitle")), 1),
|
|
426
|
+
d("span", wo, f(s(t).getString("ed.propertyGridPlaceholderDescription")), 1)
|
|
427
427
|
]),
|
|
428
|
-
|
|
428
|
+
Do
|
|
429
429
|
]));
|
|
430
430
|
}
|
|
431
431
|
}), No = { class: "svc-side-bar__container-header svc-sidebar__header-container" }, Mo = {
|
|
@@ -439,38 +439,38 @@ const Re = { class: "svc-flex-column svc-flex-row__element svc-flex-row__element
|
|
|
439
439
|
props: {
|
|
440
440
|
model: {}
|
|
441
441
|
},
|
|
442
|
-
setup(
|
|
443
|
-
const t =
|
|
444
|
-
return
|
|
445
|
-
e.model.subTitle ? p("", !0) : (a(), i("div", Mo,
|
|
442
|
+
setup(u) {
|
|
443
|
+
const t = u;
|
|
444
|
+
return w(() => t.model), (e, o) => (a(), i("div", No, [
|
|
445
|
+
e.model.subTitle ? p("", !0) : (a(), i("div", Mo, f(e.model.title), 1)),
|
|
446
446
|
e.model.subTitle ? (a(), i("div", So, [
|
|
447
|
-
d("span", Bo,
|
|
448
|
-
d("span", Io,
|
|
447
|
+
d("span", Bo, f(e.model.title), 1),
|
|
448
|
+
d("span", Io, f(e.model.subTitle), 1)
|
|
449
449
|
])) : p("", !0)
|
|
450
450
|
]));
|
|
451
451
|
}
|
|
452
|
-
}), Po = { class: "svc-sidebar__header svc-sidebar__header--tabbed" }, Ro = { class: "svc-sidebar__header-container svc-sidebar__header-container--with-subtitle" },
|
|
452
|
+
}), Po = { class: "svc-sidebar__header svc-sidebar__header--tabbed" }, Ro = { class: "svc-sidebar__header-container svc-sidebar__header-container--with-subtitle" }, Ao = { class: "svc-sidebar__header-content" }, Vo = { class: "svc-sidebar__header-caption" }, zo = { class: "svc-sidebar__header-title" }, Lo = { class: "svc-sidebar__header-subtitle" }, Fo = /* @__PURE__ */ g({
|
|
453
453
|
__name: "SideBarPropertyGridHeader",
|
|
454
454
|
props: {
|
|
455
455
|
model: {}
|
|
456
456
|
},
|
|
457
|
-
setup(
|
|
458
|
-
const t =
|
|
459
|
-
return
|
|
457
|
+
setup(u) {
|
|
458
|
+
const t = u;
|
|
459
|
+
return w(() => t.model), (e, o) => (a(), i("div", Po, [
|
|
460
460
|
d("div", Ro, [
|
|
461
|
-
d("div",
|
|
462
|
-
|
|
461
|
+
d("div", Ao, [
|
|
462
|
+
h((a(), i("div", {
|
|
463
463
|
class: m(e.model.buttonClassName),
|
|
464
464
|
onClick: o[0] || (o[0] = (n) => e.model.action())
|
|
465
465
|
}, [
|
|
466
|
-
d("div",
|
|
467
|
-
d("span", zo,
|
|
468
|
-
d("span", Lo,
|
|
466
|
+
d("div", Vo, [
|
|
467
|
+
d("span", zo, f(e.model.title), 1),
|
|
468
|
+
d("span", Lo, f(e.model.tooltip), 1)
|
|
469
469
|
])
|
|
470
470
|
], 2)), [
|
|
471
|
-
[s(
|
|
471
|
+
[s(M), { processEsc: !1 }]
|
|
472
472
|
]),
|
|
473
|
-
v(s(
|
|
473
|
+
v(s(c), {
|
|
474
474
|
is: "sv-popup",
|
|
475
475
|
model: e.model.popupModel
|
|
476
476
|
}, null, 8, ["model"])
|
|
@@ -486,9 +486,9 @@ const Re = { class: "svc-flex-column svc-flex-row__element svc-flex-row__element
|
|
|
486
486
|
cssClasses: {},
|
|
487
487
|
element: {}
|
|
488
488
|
},
|
|
489
|
-
setup(
|
|
489
|
+
setup(u) {
|
|
490
490
|
return (t, e) => (a(), i("div", { key: t.errorKey }, [
|
|
491
|
-
v(s(
|
|
491
|
+
v(s(c), {
|
|
492
492
|
is: "sv-svg-icon",
|
|
493
493
|
class: m(t.cssClasses.error.icon),
|
|
494
494
|
iconName: "icon-alert_24x24",
|
|
@@ -499,7 +499,7 @@ const Re = { class: "svc-flex-column svc-flex-row__element svc-flex-row__element
|
|
|
499
499
|
t.cssClasses ? t.cssClasses.error.item || void 0 : "panel-error-item"
|
|
500
500
|
)
|
|
501
501
|
}, [
|
|
502
|
-
v(s(
|
|
502
|
+
v(s(c), {
|
|
503
503
|
is: "survey-string",
|
|
504
504
|
locString: t.error.locText
|
|
505
505
|
}, null, 8, ["locString"])
|
|
@@ -518,53 +518,53 @@ const Re = { class: "svc-flex-column svc-flex-row__element svc-flex-row__element
|
|
|
518
518
|
click: { type: Function },
|
|
519
519
|
iconName: {}
|
|
520
520
|
},
|
|
521
|
-
setup(
|
|
522
|
-
const t =
|
|
521
|
+
setup(u) {
|
|
522
|
+
const t = u, e = (n) => {
|
|
523
523
|
t.click(), t.allowBubble || n.stopPropagation();
|
|
524
524
|
}, o = () => new Ee().append(t.classes || "").append("svc-action-button").append("svc-action-button--icon", !!t.iconName).append("svc-action-button--selected", !!t.selected).append("svc-action-button--disabled", !!t.disabled).toString();
|
|
525
|
-
return (n, r) => (a(), i(
|
|
526
|
-
n.iconName ? p("", !0) : (a(), i(
|
|
525
|
+
return (n, r) => (a(), i(D, null, [
|
|
526
|
+
n.iconName ? p("", !0) : (a(), i(D, { key: 0 }, [
|
|
527
527
|
n.disabled ? (a(), i("span", {
|
|
528
528
|
key: 0,
|
|
529
529
|
class: m(["svc-action-button svc-action-button--disabled", n.classes]),
|
|
530
530
|
title: n.title
|
|
531
|
-
},
|
|
532
|
-
|
|
531
|
+
}, f(n.text), 11, Uo)) : p("", !0),
|
|
532
|
+
h((a(), i("span", {
|
|
533
533
|
role: "button",
|
|
534
534
|
class: m(["svc-action-button", o()]),
|
|
535
535
|
onClick: e,
|
|
536
536
|
title: n.title
|
|
537
537
|
}, [
|
|
538
|
-
ge(
|
|
538
|
+
ge(f(n.text), 1)
|
|
539
539
|
], 10, Qo)), [
|
|
540
|
-
[s(
|
|
540
|
+
[s(M)]
|
|
541
541
|
])
|
|
542
542
|
], 64)),
|
|
543
|
-
n.iconName ? (a(), i(
|
|
543
|
+
n.iconName ? (a(), i(D, { key: 1 }, [
|
|
544
544
|
n.disabled ? (a(), i("span", {
|
|
545
545
|
key: 0,
|
|
546
546
|
class: m(o()),
|
|
547
547
|
title: n.title
|
|
548
548
|
}, [
|
|
549
|
-
v(s(
|
|
549
|
+
v(s(c), {
|
|
550
550
|
is: "sv-svg-icon",
|
|
551
551
|
iconName: n.iconName,
|
|
552
552
|
size: "auto"
|
|
553
553
|
}, null, 8, ["iconName"])
|
|
554
554
|
], 10, Ho)) : p("", !0),
|
|
555
|
-
|
|
555
|
+
h((a(), i("span", {
|
|
556
556
|
role: "button",
|
|
557
557
|
onClick: e,
|
|
558
558
|
class: m(o()),
|
|
559
559
|
title: n.title
|
|
560
560
|
}, [
|
|
561
|
-
v(s(
|
|
561
|
+
v(s(c), {
|
|
562
562
|
is: "sv-svg-icon",
|
|
563
563
|
iconName: n.iconName,
|
|
564
564
|
size: "auto"
|
|
565
565
|
}, null, 8, ["iconName"])
|
|
566
566
|
], 10, Oo)), [
|
|
567
|
-
[s(
|
|
567
|
+
[s(M)]
|
|
568
568
|
])
|
|
569
569
|
], 64)) : p("", !0)
|
|
570
570
|
], 64));
|
|
@@ -582,9 +582,9 @@ const Re = { class: "svc-flex-column svc-flex-row__element svc-flex-row__element
|
|
|
582
582
|
props: {
|
|
583
583
|
item: {}
|
|
584
584
|
},
|
|
585
|
-
setup(
|
|
586
|
-
const t =
|
|
587
|
-
return
|
|
585
|
+
setup(u) {
|
|
586
|
+
const t = u;
|
|
587
|
+
return w(() => t.item), (e, o) => h((a(), i("button", {
|
|
588
588
|
class: m(e.item.getActionBarItemCss()),
|
|
589
589
|
type: "button",
|
|
590
590
|
onClick: o[0] || (o[0] = (n) => {
|
|
@@ -602,9 +602,9 @@ const Re = { class: "svc-flex-column svc-flex-row__element svc-flex-row__element
|
|
|
602
602
|
d("div", {
|
|
603
603
|
class: m(e.item.getSwitcherIconCss())
|
|
604
604
|
}, Jo, 2),
|
|
605
|
-
e.item.hasTitle ? (a(), i("span", Zo,
|
|
605
|
+
e.item.hasTitle ? (a(), i("span", Zo, f(e.item.title), 1)) : p("", !0)
|
|
606
606
|
], 42, Wo)), [
|
|
607
|
-
[s(
|
|
607
|
+
[s(M), { processEsc: !1, disableTabStop: e.item.disableTabStop }]
|
|
608
608
|
]);
|
|
609
609
|
}
|
|
610
610
|
}), xo = {
|
|
@@ -615,10 +615,10 @@ const Re = { class: "svc-flex-column svc-flex-row__element svc-flex-row__element
|
|
|
615
615
|
props: {
|
|
616
616
|
model: {}
|
|
617
617
|
},
|
|
618
|
-
setup(
|
|
619
|
-
const t =
|
|
620
|
-
|
|
621
|
-
const e =
|
|
618
|
+
setup(u) {
|
|
619
|
+
const t = u;
|
|
620
|
+
w(() => t.model);
|
|
621
|
+
const e = k(() => t.model.simulatorFrame), o = () => {
|
|
622
622
|
t.model.device !== "desktop" && t.model.activateZoom();
|
|
623
623
|
}, n = () => {
|
|
624
624
|
t.model.device !== "desktop" && t.model.deactivateZoom();
|
|
@@ -630,7 +630,7 @@ const Re = { class: "svc-flex-column svc-flex-row__element svc-flex-row__element
|
|
|
630
630
|
onMouseout: l[2] || (l[2] = (_) => n())
|
|
631
631
|
}, [
|
|
632
632
|
r.model.hasFrame ? p("", !0) : (a(), i("div", xo, [
|
|
633
|
-
v(s(
|
|
633
|
+
v(s(c), {
|
|
634
634
|
is: "survey-widget",
|
|
635
635
|
model: r.model.survey
|
|
636
636
|
}, null, 8, ["model"])
|
|
@@ -653,7 +653,7 @@ const Re = { class: "svc-flex-column svc-flex-row__element svc-flex-row__element
|
|
|
653
653
|
})
|
|
654
654
|
}, [
|
|
655
655
|
d("div", es, [
|
|
656
|
-
v(s(
|
|
656
|
+
v(s(c), {
|
|
657
657
|
is: "survey-widget",
|
|
658
658
|
model: r.model.survey
|
|
659
659
|
}, null, 8, ["model"])
|
|
@@ -669,15 +669,15 @@ const Re = { class: "svc-flex-column svc-flex-row__element svc-flex-row__element
|
|
|
669
669
|
placeholderTitleText: {},
|
|
670
670
|
placeholderDescriptionText: {}
|
|
671
671
|
},
|
|
672
|
-
setup(
|
|
673
|
-
const t =
|
|
672
|
+
setup(u) {
|
|
673
|
+
const t = u;
|
|
674
674
|
return (e, o) => (a(), i("div", ss, [
|
|
675
675
|
d("div", {
|
|
676
676
|
class: m(["svc-surface-placeholder__image", "svc-surface-placeholder__image--" + e.name])
|
|
677
677
|
}, null, 2),
|
|
678
678
|
d("div", ts, [
|
|
679
|
-
d("div", ns,
|
|
680
|
-
d("div", as,
|
|
679
|
+
d("div", ns, f(t.placeholderTitleText), 1),
|
|
680
|
+
d("div", as, f(t.placeholderDescriptionText), 1)
|
|
681
681
|
])
|
|
682
682
|
]));
|
|
683
683
|
}
|
|
@@ -689,14 +689,14 @@ const Re = { class: "svc-flex-column svc-flex-row__element svc-flex-row__element
|
|
|
689
689
|
props: {
|
|
690
690
|
model: {}
|
|
691
691
|
},
|
|
692
|
-
setup(
|
|
693
|
-
const t =
|
|
694
|
-
return
|
|
692
|
+
setup(u) {
|
|
693
|
+
const t = u;
|
|
694
|
+
return w(() => t.model), (e, o) => (a(), i("div", {
|
|
695
695
|
class: m(["svc-creator-tab__content svc-test-tab__content", {
|
|
696
696
|
"svc-creator-tab__content--with-toolbar": e.model.isPageToolbarVisible
|
|
697
697
|
}])
|
|
698
698
|
}, [
|
|
699
|
-
e.model.survey.isEmpty ? (a(),
|
|
699
|
+
e.model.survey.isEmpty ? (a(), b(j, {
|
|
700
700
|
key: 0,
|
|
701
701
|
name: "preview",
|
|
702
702
|
placeholderTitleText: e.model.placeholderTitleText,
|
|
@@ -707,18 +707,18 @@ const Re = { class: "svc-flex-column svc-flex-row__element svc-flex-row__element
|
|
|
707
707
|
class: "svc-plugin-tab__content",
|
|
708
708
|
onScroll: o[0] || (o[0] = (n) => e.model.onScroll())
|
|
709
709
|
}, [
|
|
710
|
-
v(s(
|
|
710
|
+
v(s(c), {
|
|
711
711
|
is: "survey-simulator",
|
|
712
712
|
model: e.model.simulator
|
|
713
713
|
}, null, 8, ["model"]),
|
|
714
|
-
e.model.showResults ? (a(),
|
|
714
|
+
e.model.showResults ? (a(), b(s(c), {
|
|
715
715
|
key: 0,
|
|
716
716
|
is: "survey-results",
|
|
717
717
|
survey: e.model.survey
|
|
718
718
|
}, null, 8, ["survey"])) : p("", !0)
|
|
719
719
|
], 32)),
|
|
720
720
|
e.model.isPageToolbarVisible ? (a(), i("div", ls, [
|
|
721
|
-
v(s(
|
|
721
|
+
v(s(c), {
|
|
722
722
|
is: "sv-action-bar",
|
|
723
723
|
model: e.model.pages
|
|
724
724
|
}, null, 8, ["model"])
|
|
@@ -731,30 +731,30 @@ const Re = { class: "svc-flex-column svc-flex-row__element svc-flex-row__element
|
|
|
731
731
|
props: {
|
|
732
732
|
model: {}
|
|
733
733
|
},
|
|
734
|
-
setup(
|
|
735
|
-
const t =
|
|
736
|
-
return
|
|
734
|
+
setup(u) {
|
|
735
|
+
const t = u, e = k(() => t.model.testAgainAction);
|
|
736
|
+
return w(() => e.value), (o, n) => h((a(), i("div", {
|
|
737
737
|
role: "button",
|
|
738
738
|
class: "svc-preview__test-again svc-btn",
|
|
739
739
|
onClick: n[0] || (n[0] = (r) => e.value.action())
|
|
740
740
|
}, [
|
|
741
|
-
d("span", rs,
|
|
741
|
+
d("span", rs, f(e.value.title), 1)
|
|
742
742
|
])), [
|
|
743
|
-
[s(
|
|
743
|
+
[s(M)]
|
|
744
744
|
]);
|
|
745
745
|
}
|
|
746
746
|
});
|
|
747
|
-
function z(
|
|
747
|
+
function z(u, t, e) {
|
|
748
748
|
const o = be(), n = W(
|
|
749
749
|
t.map((r) => () => r()),
|
|
750
750
|
() => {
|
|
751
|
-
o.value =
|
|
751
|
+
o.value = u();
|
|
752
752
|
},
|
|
753
753
|
{
|
|
754
754
|
immediate: !0
|
|
755
755
|
}
|
|
756
756
|
);
|
|
757
|
-
return
|
|
757
|
+
return w(() => o.value, void 0, e), Y(() => {
|
|
758
758
|
n();
|
|
759
759
|
}), o;
|
|
760
760
|
}
|
|
@@ -766,24 +766,24 @@ const cs = {
|
|
|
766
766
|
props: {
|
|
767
767
|
survey: {}
|
|
768
768
|
},
|
|
769
|
-
setup(
|
|
770
|
-
const t =
|
|
769
|
+
setup(u) {
|
|
770
|
+
const t = u, e = z(
|
|
771
771
|
() => t.survey ? new ye(t.survey) : void 0,
|
|
772
772
|
[() => t.survey]
|
|
773
773
|
);
|
|
774
774
|
return (o, n) => s(e) ? (a(), i("div", cs, [
|
|
775
775
|
d("div", us, [
|
|
776
776
|
d("div", ps, [
|
|
777
|
-
d("div", vs,
|
|
777
|
+
d("div", vs, f(s(e).surveyResultsText), 1),
|
|
778
778
|
d("div", ms, [
|
|
779
|
-
v(s(
|
|
779
|
+
v(s(c), {
|
|
780
780
|
is: "svc-action-button",
|
|
781
781
|
text: s(e).surveyResultsTableText,
|
|
782
782
|
click: s(e).selectTableClick,
|
|
783
783
|
disabled: !1,
|
|
784
784
|
selected: s(e).isTableSelected
|
|
785
785
|
}, null, 8, ["text", "click", "selected"]),
|
|
786
|
-
v(s(
|
|
786
|
+
v(s(c), {
|
|
787
787
|
is: "svc-action-button",
|
|
788
788
|
text: s(e).surveyResultsJsonText,
|
|
789
789
|
click: s(e).selectJsonClick,
|
|
@@ -792,21 +792,21 @@ const cs = {
|
|
|
792
792
|
}, null, 8, ["text", "click", "selected"])
|
|
793
793
|
])
|
|
794
794
|
]),
|
|
795
|
-
|
|
796
|
-
d("div", null,
|
|
795
|
+
h(d("div", _s, [
|
|
796
|
+
d("div", null, f(s(e).resultText), 1)
|
|
797
797
|
], 512), [
|
|
798
798
|
[Q, s(e).resultViewType === "text"]
|
|
799
799
|
]),
|
|
800
|
-
|
|
800
|
+
h(d("div", gs, [
|
|
801
801
|
d("table", null, [
|
|
802
802
|
d("thead", null, [
|
|
803
803
|
d("tr", bs, [
|
|
804
|
-
d("th", ys,
|
|
805
|
-
d("th", hs,
|
|
804
|
+
d("th", ys, f(s(e).resultsTitle), 1),
|
|
805
|
+
d("th", hs, f(s(e).resultsDisplayValue), 1)
|
|
806
806
|
])
|
|
807
807
|
]),
|
|
808
808
|
d("tbody", null, [
|
|
809
|
-
(a(!0), i(
|
|
809
|
+
(a(!0), i(D, null, V(s(e).resultData, (r, l) => (a(), b(s(c), {
|
|
810
810
|
is: "survey-results-table-row",
|
|
811
811
|
model: r,
|
|
812
812
|
key: l
|
|
@@ -824,10 +824,10 @@ const cs = {
|
|
|
824
824
|
props: {
|
|
825
825
|
model: {}
|
|
826
826
|
},
|
|
827
|
-
setup(
|
|
828
|
-
const t =
|
|
829
|
-
return
|
|
830
|
-
|
|
827
|
+
setup(u) {
|
|
828
|
+
const t = u;
|
|
829
|
+
return w(() => t.model), (e, o) => (a(), i(D, null, [
|
|
830
|
+
h((a(), i("tr", {
|
|
831
831
|
onClick: o[0] || (o[0] = //@ts-ignore
|
|
832
832
|
(...n) => e.model.toggle && e.model.toggle(...n))
|
|
833
833
|
}, [
|
|
@@ -840,50 +840,50 @@ const cs = {
|
|
|
840
840
|
class: m(["svd-test-results__marker", { "svd-test-results__marker--expanded": !e.model.collapsed }]),
|
|
841
841
|
style: F({ left: e.model.markerMargin })
|
|
842
842
|
}, [
|
|
843
|
-
v(s(
|
|
843
|
+
v(s(c), {
|
|
844
844
|
is: "sv-svg-icon",
|
|
845
845
|
iconName: "icon-expand_16x16",
|
|
846
846
|
size: 16
|
|
847
847
|
})
|
|
848
848
|
], 6)) : p("", !0),
|
|
849
|
-
e.model.question ? (a(),
|
|
849
|
+
e.model.question ? (a(), b(s(c), {
|
|
850
850
|
key: 1,
|
|
851
851
|
is: "survey-string",
|
|
852
852
|
locString: e.model.question.locTitle
|
|
853
|
-
}, null, 8, ["locString"])) : (a(), i("span", qs,
|
|
853
|
+
}, null, 8, ["locString"])) : (a(), i("span", qs, f(e.model.title), 1))
|
|
854
854
|
], 4),
|
|
855
855
|
d("td", {
|
|
856
856
|
class: m({
|
|
857
857
|
"svd-test-results__node-value": e.model.isNode,
|
|
858
858
|
"svd-dark-border-color": !e.model.isNode
|
|
859
859
|
})
|
|
860
|
-
},
|
|
860
|
+
}, f(e.model.getString(e.model.displayValue)), 3)
|
|
861
861
|
])), [
|
|
862
|
-
[s(
|
|
862
|
+
[s(M)]
|
|
863
863
|
]),
|
|
864
|
-
e.model.isNode && !e.model.collapsed ? (a(!0), i(
|
|
864
|
+
e.model.isNode && !e.model.collapsed ? (a(!0), i(D, { key: 0 }, V(e.model.data, (n, r) => (a(), b(s(c), {
|
|
865
865
|
is: "survey-results-table-row",
|
|
866
866
|
model: n,
|
|
867
867
|
key: r + 1
|
|
868
868
|
}, null, 8, ["model"]))), 128)) : p("", !0)
|
|
869
869
|
], 64));
|
|
870
870
|
}
|
|
871
|
-
}), ks = { class: "svc-creator-tab__content" }, fs = { class: "svc-json-editor-tab__content" }, ws = { class: "svc-json-editor-tab__errros_list" },
|
|
871
|
+
}), ks = { class: "svc-creator-tab__content" }, fs = { class: "svc-json-editor-tab__content" }, ws = { class: "svc-json-editor-tab__errros_list" }, Ds = /* @__PURE__ */ g({
|
|
872
872
|
__name: "JsonEditorAce",
|
|
873
873
|
props: {
|
|
874
874
|
model: {}
|
|
875
875
|
},
|
|
876
|
-
setup(
|
|
877
|
-
const t =
|
|
878
|
-
return
|
|
876
|
+
setup(u) {
|
|
877
|
+
const t = u, e = P();
|
|
878
|
+
return w(() => t.model), R(() => t.model.init(window.ace.edit(e.value))), (o, n) => (a(), i("div", ks, [
|
|
879
879
|
d("div", fs, [
|
|
880
880
|
d("div", {
|
|
881
881
|
class: "svc-json-editor-tab__ace-editor",
|
|
882
882
|
ref_key: "inputEl",
|
|
883
883
|
ref: e
|
|
884
884
|
}, null, 512),
|
|
885
|
-
|
|
886
|
-
v(s(
|
|
885
|
+
h(d("div", ws, [
|
|
886
|
+
v(s(c), {
|
|
887
887
|
is: "sv-list",
|
|
888
888
|
model: o.model.errorList
|
|
889
889
|
}, null, 8, ["model"])
|
|
@@ -893,19 +893,19 @@ const cs = {
|
|
|
893
893
|
])
|
|
894
894
|
]));
|
|
895
895
|
}
|
|
896
|
-
}),
|
|
896
|
+
}), Ts = { class: "svc-creator-tab__content" }, Ns = { class: "svc-json-editor-tab__content" }, Ms = ["aria-label", "disabled"], Ss = { class: "svc-json-editor-tab__errros_list" }, Bs = /* @__PURE__ */ g({
|
|
897
897
|
__name: "JsonEditorTextArea",
|
|
898
898
|
props: {
|
|
899
899
|
model: {}
|
|
900
900
|
},
|
|
901
|
-
setup(
|
|
902
|
-
const t =
|
|
903
|
-
return o.canShowErrors = !1,
|
|
901
|
+
setup(u) {
|
|
902
|
+
const t = u, e = P(), o = t.model;
|
|
903
|
+
return o.canShowErrors = !1, w(() => t.model), R(() => {
|
|
904
904
|
const n = t.model;
|
|
905
905
|
n.textElement = e.value;
|
|
906
|
-
}), (n, r) => (a(), i("div",
|
|
906
|
+
}), (n, r) => (a(), i("div", Ts, [
|
|
907
907
|
d("div", Ns, [
|
|
908
|
-
|
|
908
|
+
h(d("textarea", {
|
|
909
909
|
class: "svc-json-editor-tab__content-area",
|
|
910
910
|
"aria-label": s(o).ariaLabel,
|
|
911
911
|
disabled: s(o).readOnly,
|
|
@@ -917,8 +917,8 @@ const cs = {
|
|
|
917
917
|
`, 40, Ms), [
|
|
918
918
|
[de, s(o).text]
|
|
919
919
|
]),
|
|
920
|
-
|
|
921
|
-
v(s(
|
|
920
|
+
h(d("div", Ss, [
|
|
921
|
+
v(s(c), {
|
|
922
922
|
is: "sv-list",
|
|
923
923
|
model: s(o).errorList
|
|
924
924
|
}, null, 8, ["model"])
|
|
@@ -933,14 +933,14 @@ const cs = {
|
|
|
933
933
|
props: {
|
|
934
934
|
item: {}
|
|
935
935
|
},
|
|
936
|
-
setup(
|
|
937
|
-
const t =
|
|
938
|
-
|
|
936
|
+
setup(u) {
|
|
937
|
+
const t = u;
|
|
938
|
+
w(() => t.item);
|
|
939
939
|
const e = (o) => {
|
|
940
940
|
o.stopPropagation(), t.item.data.fixError();
|
|
941
941
|
};
|
|
942
|
-
return (o, n) => (a(), i(
|
|
943
|
-
v(s(
|
|
942
|
+
return (o, n) => (a(), i(D, null, [
|
|
943
|
+
v(s(c), {
|
|
944
944
|
is: "sv-svg-icon",
|
|
945
945
|
iconName: o.item.iconName,
|
|
946
946
|
size: o.item.iconSize,
|
|
@@ -948,12 +948,12 @@ const cs = {
|
|
|
948
948
|
}, null, 8, ["iconName", "size"]),
|
|
949
949
|
d("div", Is, [
|
|
950
950
|
d("div", Es, [
|
|
951
|
-
v(s(
|
|
951
|
+
v(s(c), {
|
|
952
952
|
is: "survey-string",
|
|
953
953
|
locString: o.item.locTitle
|
|
954
954
|
}, null, 8, ["locString"])
|
|
955
955
|
]),
|
|
956
|
-
o.item.data.showFixButton ?
|
|
956
|
+
o.item.data.showFixButton ? h((a(), i("button", {
|
|
957
957
|
key: 0,
|
|
958
958
|
type: "button",
|
|
959
959
|
onClick: e,
|
|
@@ -961,41 +961,41 @@ const cs = {
|
|
|
961
961
|
"aria-label": o.item.data.fixButtonTitle,
|
|
962
962
|
class: "svc-json-error__fix-button"
|
|
963
963
|
}, [
|
|
964
|
-
v(s(
|
|
964
|
+
v(s(c), {
|
|
965
965
|
is: "sv-svg-icon",
|
|
966
966
|
iconName: o.item.data.fixButtonIcon,
|
|
967
967
|
size: "auto"
|
|
968
968
|
}, null, 8, ["iconName"])
|
|
969
969
|
], 8, Ps)), [
|
|
970
|
-
[s(
|
|
970
|
+
[s(M)]
|
|
971
971
|
]) : p("", !0)
|
|
972
972
|
])
|
|
973
973
|
], 64));
|
|
974
974
|
}
|
|
975
|
-
}),
|
|
975
|
+
}), As = { class: "svc-btn__text" }, te = /* @__PURE__ */ g({
|
|
976
976
|
__name: "LogicAddButton",
|
|
977
977
|
props: {
|
|
978
978
|
model: {}
|
|
979
979
|
},
|
|
980
|
-
setup(
|
|
981
|
-
const t =
|
|
982
|
-
|
|
980
|
+
setup(u) {
|
|
981
|
+
const t = u;
|
|
982
|
+
w(() => t.model);
|
|
983
983
|
const e = (o) => {
|
|
984
984
|
o.stopPropagation(), t.model.action();
|
|
985
985
|
};
|
|
986
|
-
return (o, n) =>
|
|
986
|
+
return (o, n) => h((a(), i("div", {
|
|
987
987
|
role: "button",
|
|
988
988
|
class: m(["svc-logic-tab__content-action svc-btn", {
|
|
989
989
|
"svc-logic-tab__content-action--disabled": o.model.enabled !== void 0 && !o.model.enabled
|
|
990
990
|
}]),
|
|
991
991
|
onClick: e
|
|
992
992
|
}, [
|
|
993
|
-
d("span",
|
|
993
|
+
d("span", As, f(o.model.title), 1)
|
|
994
994
|
], 2)), [
|
|
995
|
-
[s(
|
|
995
|
+
[s(M)]
|
|
996
996
|
]);
|
|
997
997
|
}
|
|
998
|
-
}),
|
|
998
|
+
}), Vs = { class: "svc-creator-tab__content" }, zs = {
|
|
999
999
|
key: 1,
|
|
1000
1000
|
class: "svc-logic-tab__content-empty"
|
|
1001
1001
|
}, Ls = /* @__PURE__ */ g({
|
|
@@ -1003,17 +1003,17 @@ const cs = {
|
|
|
1003
1003
|
props: {
|
|
1004
1004
|
model: {}
|
|
1005
1005
|
},
|
|
1006
|
-
setup(
|
|
1007
|
-
const t =
|
|
1008
|
-
return
|
|
1006
|
+
setup(u) {
|
|
1007
|
+
const t = u;
|
|
1008
|
+
return w(() => t.model), (e, o) => (a(), i("div", Vs, [
|
|
1009
1009
|
d("div", {
|
|
1010
1010
|
class: m(["svc-plugin-tab__content svc-logic-tab__content", { "svc-logic-tab--empty": !e.model.hasItems }])
|
|
1011
1011
|
}, [
|
|
1012
|
-
e.model.hasItems ? (a(), i(
|
|
1012
|
+
e.model.hasItems ? (a(), i(D, { key: 0 }, [
|
|
1013
1013
|
v(s(O), {
|
|
1014
1014
|
model: e.model.itemsSurvey
|
|
1015
1015
|
}, null, 8, ["model"]),
|
|
1016
|
-
e.model.readOnly ? p("", !0) : (a(),
|
|
1016
|
+
e.model.readOnly ? p("", !0) : (a(), b(te, {
|
|
1017
1017
|
key: 0,
|
|
1018
1018
|
model: e.model.addNewButton
|
|
1019
1019
|
}, null, 8, ["model"]))
|
|
@@ -1024,7 +1024,7 @@ const cs = {
|
|
|
1024
1024
|
placeholderTitleText: e.model.placeholderTitleText,
|
|
1025
1025
|
placeholderDescriptionText: e.model.placeholderDescriptionText
|
|
1026
1026
|
}, null, 8, ["placeholderTitleText", "placeholderDescriptionText"]),
|
|
1027
|
-
e.model.readOnly ? p("", !0) : (a(),
|
|
1027
|
+
e.model.readOnly ? p("", !0) : (a(), b(te, {
|
|
1028
1028
|
key: 0,
|
|
1029
1029
|
model: e.model.addNewButton
|
|
1030
1030
|
}, null, 8, ["model"]))
|
|
@@ -1043,8 +1043,8 @@ const Us = /* @__PURE__ */ g({
|
|
|
1043
1043
|
props: {
|
|
1044
1044
|
question: {}
|
|
1045
1045
|
},
|
|
1046
|
-
setup(
|
|
1047
|
-
const t =
|
|
1046
|
+
setup(u) {
|
|
1047
|
+
const t = u, e = P(), o = k(() => t.question.dropdownListModel ?? new Pe(t.question));
|
|
1048
1048
|
H(t, e, (l) => {
|
|
1049
1049
|
he(l);
|
|
1050
1050
|
});
|
|
@@ -1058,7 +1058,7 @@ const Us = /* @__PURE__ */ g({
|
|
|
1058
1058
|
return (l, _) => (a(), i("div", {
|
|
1059
1059
|
class: m(l.question.cssClasses.selectWrapper)
|
|
1060
1060
|
}, [
|
|
1061
|
-
l.question.isReadOnly ? p("", !0) : (a(), i(
|
|
1061
|
+
l.question.isReadOnly ? p("", !0) : (a(), i(D, { key: 0 }, [
|
|
1062
1062
|
d("div", {
|
|
1063
1063
|
class: m(l.question.getControlClass()),
|
|
1064
1064
|
onClick: n,
|
|
@@ -1079,14 +1079,14 @@ const Us = /* @__PURE__ */ g({
|
|
|
1079
1079
|
d("div", {
|
|
1080
1080
|
class: m(l.question.cssClasses.controlValue)
|
|
1081
1081
|
}, [
|
|
1082
|
-
l.question.locReadOnlyText ? (a(),
|
|
1082
|
+
l.question.locReadOnlyText ? (a(), b(s(c), {
|
|
1083
1083
|
key: 0,
|
|
1084
1084
|
is: "survey-string",
|
|
1085
1085
|
locString: l.question.locReadOnlyText
|
|
1086
1086
|
}, null, 8, ["locString"])) : p("", !0)
|
|
1087
1087
|
], 2)
|
|
1088
1088
|
], 42, Fs),
|
|
1089
|
-
v(s(
|
|
1089
|
+
v(s(c), {
|
|
1090
1090
|
is: "sv-popup",
|
|
1091
1091
|
model: l.question.popupModel
|
|
1092
1092
|
}, null, 8, ["model"])
|
|
@@ -1097,7 +1097,7 @@ const Us = /* @__PURE__ */ g({
|
|
|
1097
1097
|
class: m(l.question.getControlClass()),
|
|
1098
1098
|
id: l.question.inputId
|
|
1099
1099
|
}, [
|
|
1100
|
-
l.question.locReadOnlyText ? (a(),
|
|
1100
|
+
l.question.locReadOnlyText ? (a(), b(s(c), {
|
|
1101
1101
|
key: 0,
|
|
1102
1102
|
is: "survey-string",
|
|
1103
1103
|
locString: l.question.locReadOnlyText
|
|
@@ -1110,11 +1110,11 @@ const Us = /* @__PURE__ */ g({
|
|
|
1110
1110
|
props: {
|
|
1111
1111
|
question: {}
|
|
1112
1112
|
},
|
|
1113
|
-
setup(
|
|
1114
|
-
const t =
|
|
1113
|
+
setup(u) {
|
|
1114
|
+
const t = u, e = P();
|
|
1115
1115
|
H(t, e);
|
|
1116
|
-
const o =
|
|
1117
|
-
return (n, r) => n.question && o.value && o.value.currentPage ? (a(),
|
|
1116
|
+
const o = k(() => t.question.embeddedSurvey);
|
|
1117
|
+
return (n, r) => n.question && o.value && o.value.currentPage ? (a(), b(s(c), {
|
|
1118
1118
|
key: 0,
|
|
1119
1119
|
is: "sv-page",
|
|
1120
1120
|
page: o.value.currentPage,
|
|
@@ -1127,10 +1127,10 @@ const Us = /* @__PURE__ */ g({
|
|
|
1127
1127
|
props: {
|
|
1128
1128
|
question: {}
|
|
1129
1129
|
},
|
|
1130
|
-
setup(
|
|
1131
|
-
const t =
|
|
1132
|
-
return H(t, e), (n, r) => (a(), i(
|
|
1133
|
-
v(s(
|
|
1130
|
+
setup(u) {
|
|
1131
|
+
const t = u, e = P(), o = ce.getString("pe.clear");
|
|
1132
|
+
return H(t, e), (n, r) => (a(), i(D, null, [
|
|
1133
|
+
v(s(c), {
|
|
1134
1134
|
is: "svc-action-button",
|
|
1135
1135
|
text: n.question.linkValueText,
|
|
1136
1136
|
click: n.question.doLinkClick.bind(n.question),
|
|
@@ -1140,7 +1140,7 @@ const Us = /* @__PURE__ */ g({
|
|
|
1140
1140
|
title: n.question.tooltip,
|
|
1141
1141
|
iconName: n.question.iconName
|
|
1142
1142
|
}, null, 8, ["text", "click", "selected", "disabled", "classes", "title", "iconName"]),
|
|
1143
|
-
!n.question.isReadOnly && n.question.showClear ? (a(),
|
|
1143
|
+
!n.question.isReadOnly && n.question.showClear ? (a(), b(s(c), {
|
|
1144
1144
|
key: 0,
|
|
1145
1145
|
is: "svc-action-button",
|
|
1146
1146
|
text: s(o),
|
|
@@ -1158,12 +1158,12 @@ const Us = /* @__PURE__ */ g({
|
|
|
1158
1158
|
props: {
|
|
1159
1159
|
model: {}
|
|
1160
1160
|
},
|
|
1161
|
-
setup(
|
|
1162
|
-
const t =
|
|
1163
|
-
return
|
|
1161
|
+
setup(u) {
|
|
1162
|
+
const t = u;
|
|
1163
|
+
return w(() => t.model), (e, o) => (a(), i("div", {
|
|
1164
1164
|
class: m(["svc-creator-tab__content svc-translation-tab", e.model.isEmpty ? "svc-translation-tab--empty" : ""])
|
|
1165
1165
|
}, [
|
|
1166
|
-
e.model.isEmpty ? (a(),
|
|
1166
|
+
e.model.isEmpty ? (a(), b(j, {
|
|
1167
1167
|
key: 0,
|
|
1168
1168
|
name: "translation",
|
|
1169
1169
|
placeholderTitleText: e.model.placeholderTitleText,
|
|
@@ -1185,13 +1185,13 @@ const Us = /* @__PURE__ */ g({
|
|
|
1185
1185
|
]))
|
|
1186
1186
|
], 2));
|
|
1187
1187
|
}
|
|
1188
|
-
}), Zs = (
|
|
1189
|
-
const e =
|
|
1188
|
+
}), Zs = (u, t) => {
|
|
1189
|
+
const e = u.__vccOpts || u;
|
|
1190
1190
|
for (const [o, n] of t)
|
|
1191
1191
|
e[o] = n;
|
|
1192
1192
|
return e;
|
|
1193
1193
|
}, Xs = {}, Ys = { class: "sd-translation-line-skeleton" };
|
|
1194
|
-
function xs(
|
|
1194
|
+
function xs(u, t) {
|
|
1195
1195
|
return a(), i("div", Ys);
|
|
1196
1196
|
}
|
|
1197
1197
|
const et = /* @__PURE__ */ Zs(Xs, [["render", xs]]), ot = /* @__PURE__ */ g({
|
|
@@ -1199,14 +1199,14 @@ const et = /* @__PURE__ */ Zs(Xs, [["render", xs]]), ot = /* @__PURE__ */ g({
|
|
|
1199
1199
|
props: {
|
|
1200
1200
|
item: {}
|
|
1201
1201
|
},
|
|
1202
|
-
setup(
|
|
1202
|
+
setup(u) {
|
|
1203
1203
|
return (t, e) => (a(), i("div", {
|
|
1204
1204
|
class: m(t.item.data.containerCss)
|
|
1205
1205
|
}, [
|
|
1206
1206
|
d("span", {
|
|
1207
1207
|
class: m(t.item.data.additionalTitleCss)
|
|
1208
|
-
},
|
|
1209
|
-
v(s(
|
|
1208
|
+
}, f(t.item.data.additionalTitle), 3),
|
|
1209
|
+
v(s(c), {
|
|
1210
1210
|
is: "sv-action-bar-item-dropdown",
|
|
1211
1211
|
item: t.item
|
|
1212
1212
|
}, null, 8, ["item"])
|
|
@@ -1223,32 +1223,32 @@ const et = /* @__PURE__ */ Zs(Xs, [["render", xs]]), ot = /* @__PURE__ */ g({
|
|
|
1223
1223
|
props: {
|
|
1224
1224
|
model: {}
|
|
1225
1225
|
},
|
|
1226
|
-
setup(
|
|
1227
|
-
const t =
|
|
1228
|
-
return
|
|
1226
|
+
setup(u) {
|
|
1227
|
+
const t = u;
|
|
1228
|
+
return w(() => t.model), (e, o) => (a(), i("div", {
|
|
1229
1229
|
class: m(["svc-creator-tab__content svc-test-tab__content", {
|
|
1230
1230
|
"svc-creator-tab__content--with-toolbar": e.model.isPageToolbarVisible
|
|
1231
1231
|
}])
|
|
1232
1232
|
}, [
|
|
1233
|
-
e.model.survey.isEmpty ? (a(),
|
|
1233
|
+
e.model.survey.isEmpty ? (a(), b(j, {
|
|
1234
1234
|
key: 0,
|
|
1235
1235
|
name: "theme",
|
|
1236
1236
|
placeholderTitleText: e.model.placeholderTitleText,
|
|
1237
1237
|
placeholderDescriptionText: e.model.placeholderDescriptionText
|
|
1238
1238
|
}, null, 8, ["placeholderTitleText", "placeholderDescriptionText"])) : p("", !0),
|
|
1239
1239
|
e.model.survey.isEmpty ? p("", !0) : (a(), i("div", st, [
|
|
1240
|
-
v(s(
|
|
1240
|
+
v(s(c), {
|
|
1241
1241
|
is: "survey-simulator",
|
|
1242
1242
|
model: e.model.simulator
|
|
1243
1243
|
}, null, 8, ["model"]),
|
|
1244
|
-
e.model.showResults ? (a(),
|
|
1244
|
+
e.model.showResults ? (a(), b(s(c), {
|
|
1245
1245
|
key: 0,
|
|
1246
1246
|
is: "survey-results",
|
|
1247
1247
|
survey: e.model.survey
|
|
1248
1248
|
}, null, 8, ["survey"])) : p("", !0)
|
|
1249
1249
|
])),
|
|
1250
1250
|
e.model.isPageToolbarVisible ? (a(), i("div", tt, [
|
|
1251
|
-
v(s(
|
|
1251
|
+
v(s(c), {
|
|
1252
1252
|
is: "sv-action-bar",
|
|
1253
1253
|
model: e.model.pages
|
|
1254
1254
|
}, null, 8, ["model"])
|
|
@@ -1260,8 +1260,8 @@ const et = /* @__PURE__ */ Zs(Xs, [["render", xs]]), ot = /* @__PURE__ */ g({
|
|
|
1260
1260
|
props: {
|
|
1261
1261
|
question: {}
|
|
1262
1262
|
},
|
|
1263
|
-
setup(
|
|
1264
|
-
return H(
|
|
1263
|
+
setup(u) {
|
|
1264
|
+
return H(u, P()), (e, o) => (a(), i("div", {
|
|
1265
1265
|
class: m(e.question.cssClasses.root),
|
|
1266
1266
|
onKeydown: o[5] || (o[5] = //@ts-ignore
|
|
1267
1267
|
(...n) => e.question.onKeyDown && e.question.onKeyDown(...n))
|
|
@@ -1270,7 +1270,7 @@ const et = /* @__PURE__ */ Zs(Xs, [["render", xs]]), ot = /* @__PURE__ */ g({
|
|
|
1270
1270
|
class: m(e.question.getSwatchCss()),
|
|
1271
1271
|
style: F(e.question.getSwatchStyle())
|
|
1272
1272
|
}, [
|
|
1273
|
-
v(s(
|
|
1273
|
+
v(s(c), {
|
|
1274
1274
|
is: "sv-svg-icon",
|
|
1275
1275
|
iconName: e.question.cssClasses.swatchIcon,
|
|
1276
1276
|
size: "auto"
|
|
@@ -1311,17 +1311,17 @@ const et = /* @__PURE__ */ Zs(Xs, [["render", xs]]), ot = /* @__PURE__ */ g({
|
|
|
1311
1311
|
value: e.question.renderedValue,
|
|
1312
1312
|
class: m(e.question.cssClasses.control)
|
|
1313
1313
|
}, null, 42, lt),
|
|
1314
|
-
e.question.showDropdownAction ? (a(), i(
|
|
1314
|
+
e.question.showDropdownAction ? (a(), i(D, { key: 0 }, [
|
|
1315
1315
|
d("div", {
|
|
1316
1316
|
"aria-hidden": "true",
|
|
1317
1317
|
class: m(e.question.cssClasses.choicesButtonWrapper)
|
|
1318
1318
|
}, [
|
|
1319
|
-
v(s(
|
|
1319
|
+
v(s(c), {
|
|
1320
1320
|
is: "sv-action-bar-item",
|
|
1321
1321
|
item: e.question.dropdownAction
|
|
1322
1322
|
}, null, 8, ["item"])
|
|
1323
1323
|
], 2),
|
|
1324
|
-
v(s(
|
|
1324
|
+
v(s(c), {
|
|
1325
1325
|
is: "sv-popup",
|
|
1326
1326
|
model: e.question.dropdownAction.popupModel
|
|
1327
1327
|
}, null, 8, ["model"])
|
|
@@ -1334,16 +1334,16 @@ const et = /* @__PURE__ */ Zs(Xs, [["render", xs]]), ot = /* @__PURE__ */ g({
|
|
|
1334
1334
|
model: {},
|
|
1335
1335
|
item: {}
|
|
1336
1336
|
},
|
|
1337
|
-
setup(
|
|
1338
|
-
const t =
|
|
1339
|
-
|
|
1337
|
+
setup(u) {
|
|
1338
|
+
const t = u;
|
|
1339
|
+
w(() => t.item);
|
|
1340
1340
|
const e = () => ({ backgroundColor: t.item.value });
|
|
1341
|
-
return (o, n) => (a(), i(
|
|
1341
|
+
return (o, n) => (a(), i(D, null, [
|
|
1342
1342
|
d("span", {
|
|
1343
1343
|
class: "spg-color-editor__color-swatch",
|
|
1344
1344
|
style: F(e())
|
|
1345
1345
|
}, null, 4),
|
|
1346
|
-
v(s(
|
|
1346
|
+
v(s(c), {
|
|
1347
1347
|
is: "survey-string",
|
|
1348
1348
|
locString: o.item.locTitle
|
|
1349
1349
|
}, null, 8, ["locString"])
|
|
@@ -1354,9 +1354,9 @@ const et = /* @__PURE__ */ Zs(Xs, [["render", xs]]), ot = /* @__PURE__ */ g({
|
|
|
1354
1354
|
props: {
|
|
1355
1355
|
question: {}
|
|
1356
1356
|
},
|
|
1357
|
-
setup(
|
|
1358
|
-
const t =
|
|
1359
|
-
return H(
|
|
1357
|
+
setup(u) {
|
|
1358
|
+
const t = P();
|
|
1359
|
+
return H(u, t), (o, n) => (a(), i("div", {
|
|
1360
1360
|
class: m(o.question.cssClasses.root),
|
|
1361
1361
|
onDragenter: n[5] || (n[5] = //@ts-ignore
|
|
1362
1362
|
(...r) => o.question.onDragEnter && o.question.onDragEnter(...r)),
|
|
@@ -1401,36 +1401,36 @@ const et = /* @__PURE__ */ Zs(Xs, [["render", xs]]), ot = /* @__PURE__ */ g({
|
|
|
1401
1401
|
d("div", {
|
|
1402
1402
|
class: m(o.question.cssClasses.buttonsContainer)
|
|
1403
1403
|
}, [
|
|
1404
|
-
|
|
1404
|
+
h((a(), i("button", {
|
|
1405
1405
|
title: o.question.clearButtonCaption,
|
|
1406
1406
|
class: m(o.question.cssClasses.clearButton),
|
|
1407
1407
|
disabled: o.question.getIsClearButtonDisabled(),
|
|
1408
1408
|
onClick: n[3] || (n[3] = //@ts-ignore
|
|
1409
1409
|
(...r) => o.question.doClean && o.question.doClean(...r))
|
|
1410
1410
|
}, [
|
|
1411
|
-
v(s(
|
|
1411
|
+
v(s(c), {
|
|
1412
1412
|
is: "sv-svg-icon",
|
|
1413
1413
|
iconName: o.question.cssClasses.clearButtonIcon,
|
|
1414
1414
|
size: "auto"
|
|
1415
1415
|
}, null, 8, ["iconName"])
|
|
1416
1416
|
], 10, ut)), [
|
|
1417
|
-
[s(
|
|
1417
|
+
[s(M)]
|
|
1418
1418
|
]),
|
|
1419
|
-
|
|
1419
|
+
h((a(), i("label", {
|
|
1420
1420
|
class: m(o.question.getChooseButtonCss()),
|
|
1421
1421
|
for: o.question.inputId,
|
|
1422
1422
|
"aria-label": o.question.chooseButtonCaption,
|
|
1423
1423
|
onClick: n[4] || (n[4] = //@ts-ignore
|
|
1424
1424
|
(...r) => o.question.chooseFiles && o.question.chooseFiles(...r))
|
|
1425
1425
|
}, [
|
|
1426
|
-
v(s(
|
|
1426
|
+
v(s(c), {
|
|
1427
1427
|
is: "sv-svg-icon",
|
|
1428
1428
|
iconName: o.question.cssClasses.chooseButtonIcon,
|
|
1429
1429
|
size: "auto",
|
|
1430
1430
|
title: o.question.chooseButtonCaption
|
|
1431
1431
|
}, null, 8, ["iconName", "title"])
|
|
1432
1432
|
], 10, pt)), [
|
|
1433
|
-
[s(
|
|
1433
|
+
[s(M)]
|
|
1434
1434
|
])
|
|
1435
1435
|
], 2)
|
|
1436
1436
|
], 34));
|
|
@@ -1440,8 +1440,8 @@ const et = /* @__PURE__ */ Zs(Xs, [["render", xs]]), ot = /* @__PURE__ */ g({
|
|
|
1440
1440
|
props: {
|
|
1441
1441
|
question: {}
|
|
1442
1442
|
},
|
|
1443
|
-
setup(
|
|
1444
|
-
return H(
|
|
1443
|
+
setup(u) {
|
|
1444
|
+
return H(u, P()), (e, o) => (a(), i("div", {
|
|
1445
1445
|
class: m(e.question.cssClasses.root),
|
|
1446
1446
|
onKeydown: o[18] || (o[18] = //@ts-ignore
|
|
1447
1447
|
(...n) => e.question.onKeyDown && e.question.onKeyDown(...n))
|
|
@@ -1494,7 +1494,7 @@ const et = /* @__PURE__ */ Zs(Xs, [["render", xs]]), ot = /* @__PURE__ */ g({
|
|
|
1494
1494
|
(...n) => e.question.onFocus && e.question.onFocus(...n)),
|
|
1495
1495
|
tabindex: "-1"
|
|
1496
1496
|
}, [
|
|
1497
|
-
v(s(
|
|
1497
|
+
v(s(c), {
|
|
1498
1498
|
is: "sv-svg-icon",
|
|
1499
1499
|
iconName: e.question.cssClasses.decreaseButtonIcon,
|
|
1500
1500
|
size: "auto"
|
|
@@ -1518,7 +1518,7 @@ const et = /* @__PURE__ */ Zs(Xs, [["render", xs]]), ot = /* @__PURE__ */ g({
|
|
|
1518
1518
|
(...n) => e.question.onFocus && e.question.onFocus(...n)),
|
|
1519
1519
|
tabindex: "-1"
|
|
1520
1520
|
}, [
|
|
1521
|
-
v(s(
|
|
1521
|
+
v(s(c), {
|
|
1522
1522
|
is: "sv-svg-icon",
|
|
1523
1523
|
iconName: e.question.cssClasses.increaseButtonIcon,
|
|
1524
1524
|
size: "auto"
|
|
@@ -1532,15 +1532,15 @@ const et = /* @__PURE__ */ Zs(Xs, [["render", xs]]), ot = /* @__PURE__ */ g({
|
|
|
1532
1532
|
props: {
|
|
1533
1533
|
question: {}
|
|
1534
1534
|
},
|
|
1535
|
-
setup(
|
|
1536
|
-
const t =
|
|
1537
|
-
return H(t,
|
|
1535
|
+
setup(u) {
|
|
1536
|
+
const t = u, e = () => "survey-" + t.question.wrappedQuestionTemplate;
|
|
1537
|
+
return H(t, P()), w(() => {
|
|
1538
1538
|
var o;
|
|
1539
1539
|
return (o = t.question) == null ? void 0 : o.resetValueAdorner;
|
|
1540
1540
|
}), (o, n) => (a(), i("div", {
|
|
1541
1541
|
class: m(o.question.getRootClass())
|
|
1542
1542
|
}, [
|
|
1543
|
-
v(s(
|
|
1543
|
+
v(s(c), {
|
|
1544
1544
|
is: e(),
|
|
1545
1545
|
question: o.question
|
|
1546
1546
|
}, null, 8, ["is", "question"]),
|
|
@@ -1551,7 +1551,7 @@ const et = /* @__PURE__ */ Zs(Xs, [["render", xs]]), ot = /* @__PURE__ */ g({
|
|
|
1551
1551
|
(...r) => o.question.resetValueAdorner.resetValue && o.question.resetValueAdorner.resetValue(...r)),
|
|
1552
1552
|
title: o.question.resetValueAdorner.caption
|
|
1553
1553
|
}, [
|
|
1554
|
-
v(s(
|
|
1554
|
+
v(s(c), {
|
|
1555
1555
|
is: "sv-svg-icon",
|
|
1556
1556
|
iconName: o.question.cssClasses.resetButtonIcon,
|
|
1557
1557
|
size: "auto"
|
|
@@ -1578,10 +1578,10 @@ const wt = /* @__PURE__ */ g({
|
|
|
1578
1578
|
props: {
|
|
1579
1579
|
question: {}
|
|
1580
1580
|
},
|
|
1581
|
-
setup(
|
|
1582
|
-
const t =
|
|
1581
|
+
setup(u) {
|
|
1582
|
+
const t = u, e = P(null);
|
|
1583
1583
|
H(t, e);
|
|
1584
|
-
const o =
|
|
1584
|
+
const o = k({
|
|
1585
1585
|
get() {
|
|
1586
1586
|
return t.question.value;
|
|
1587
1587
|
},
|
|
@@ -1601,18 +1601,18 @@ const wt = /* @__PURE__ */ g({
|
|
|
1601
1601
|
"aria-errormessage": n.question.a11y_input_ariaErrormessage,
|
|
1602
1602
|
onClick: r[0] || (r[0] = (l) => o.value = !o.value)
|
|
1603
1603
|
}, [
|
|
1604
|
-
|
|
1604
|
+
h((a(), i("div", {
|
|
1605
1605
|
class: m(["spg-boolean-switch__button", n.question.value ? "spg-boolean-switch__button--checked" : ""]),
|
|
1606
1606
|
tabindex: "0"
|
|
1607
1607
|
}, $t, 2)), [
|
|
1608
|
-
[s(
|
|
1608
|
+
[s(M), { disableTabStop: !0 }]
|
|
1609
1609
|
]),
|
|
1610
1610
|
d("div", kt, [
|
|
1611
1611
|
d("div", {
|
|
1612
1612
|
class: "spg-boolean-switch__title",
|
|
1613
1613
|
id: n.question.labelRenderedAriaID
|
|
1614
1614
|
}, [
|
|
1615
|
-
v(s(
|
|
1615
|
+
v(s(c), {
|
|
1616
1616
|
is: "survey-string",
|
|
1617
1617
|
locString: n.question.locTitle
|
|
1618
1618
|
}, null, 8, ["locString"])
|
|
@@ -1620,7 +1620,7 @@ const wt = /* @__PURE__ */ g({
|
|
|
1620
1620
|
])
|
|
1621
1621
|
], 8, ht));
|
|
1622
1622
|
}
|
|
1623
|
-
}),
|
|
1623
|
+
}), Dt = { class: "svc-string-editor__content" }, Tt = /* @__PURE__ */ d("div", { class: "svc-string-editor__border svc-string-editor__border--hover" }, null, -1), Nt = /* @__PURE__ */ d("div", { class: "svc-string-editor__border svc-string-editor__border--focus" }, null, -1), Mt = { class: "svc-string-editor__input" }, St = ["textContent", "aria-placeholder", "aria-label", "contenteditable", "tabindex"], Bt = ["aria-placeholder", "aria-label", "contenteditable", "tabindex", "innerHTML"], It = {
|
|
1624
1624
|
key: 0,
|
|
1625
1625
|
class: "svc-string-editor__error"
|
|
1626
1626
|
}, Et = /* @__PURE__ */ g({
|
|
@@ -1628,79 +1628,79 @@ const wt = /* @__PURE__ */ g({
|
|
|
1628
1628
|
props: {
|
|
1629
1629
|
locString: {}
|
|
1630
1630
|
},
|
|
1631
|
-
setup(
|
|
1632
|
-
const t =
|
|
1631
|
+
setup(u) {
|
|
1632
|
+
const t = u, e = k(() => t.locString.locStr), o = k(() => t.locString.creator), n = P(), r = P(), l = z(
|
|
1633
1633
|
() => {
|
|
1634
|
-
const
|
|
1634
|
+
const y = new Ce(
|
|
1635
1635
|
e.value,
|
|
1636
1636
|
o.value
|
|
1637
1637
|
);
|
|
1638
|
-
return
|
|
1638
|
+
return y.setLocString(e.value), y.blurEditor = () => {
|
|
1639
1639
|
n.value && (n.value.blur(), n.value.spellcheck = !1);
|
|
1640
|
-
},
|
|
1640
|
+
}, y.getEditorElement = () => n.value, setTimeout(() => y.afterRender()), y;
|
|
1641
1641
|
},
|
|
1642
1642
|
[() => o.value, () => e.value],
|
|
1643
|
-
(
|
|
1644
|
-
|
|
1643
|
+
(y) => {
|
|
1644
|
+
y && (y.blurEditor = void 0, y.getEditorElement = void 0, y.dispose());
|
|
1645
1645
|
}
|
|
1646
|
-
), _ =
|
|
1647
|
-
var
|
|
1648
|
-
return (
|
|
1649
|
-
}),
|
|
1650
|
-
var
|
|
1651
|
-
return (
|
|
1652
|
-
}),
|
|
1653
|
-
var
|
|
1654
|
-
return (
|
|
1655
|
-
}),
|
|
1656
|
-
var
|
|
1657
|
-
return (
|
|
1658
|
-
}),
|
|
1659
|
-
var
|
|
1660
|
-
return (
|
|
1661
|
-
}),
|
|
1646
|
+
), _ = k(() => {
|
|
1647
|
+
var y;
|
|
1648
|
+
return (y = l.value) == null ? void 0 : y.errorText;
|
|
1649
|
+
}), N = k(() => {
|
|
1650
|
+
var y;
|
|
1651
|
+
return (y = l.value) == null ? void 0 : y.className(e.value.renderedHtml);
|
|
1652
|
+
}), $ = k(() => {
|
|
1653
|
+
var y;
|
|
1654
|
+
return (y = l.value) == null ? void 0 : y.placeholder;
|
|
1655
|
+
}), q = k(() => {
|
|
1656
|
+
var y;
|
|
1657
|
+
return (y = l.value) == null ? void 0 : y.contentEditable;
|
|
1658
|
+
}), C = k(() => {
|
|
1659
|
+
var y;
|
|
1660
|
+
return (y = l.value) == null ? void 0 : y.characterCounter;
|
|
1661
|
+
}), I = k(
|
|
1662
1662
|
() => {
|
|
1663
|
-
var
|
|
1664
|
-
return (
|
|
1663
|
+
var y;
|
|
1664
|
+
return (y = l.value) == null ? void 0 : y.showCharacterCounter;
|
|
1665
1665
|
}
|
|
1666
|
-
), L =
|
|
1666
|
+
), L = k(
|
|
1667
1667
|
() => {
|
|
1668
|
-
var
|
|
1669
|
-
return (
|
|
1668
|
+
var y;
|
|
1669
|
+
return (y = l.value) == null ? void 0 : y.getCharacterCounterClass;
|
|
1670
1670
|
}
|
|
1671
|
-
), J = (
|
|
1672
|
-
var
|
|
1673
|
-
return n.value && (n.value.spellcheck = !1), e.value.__isEditing = !1, (
|
|
1674
|
-
}, U = (
|
|
1675
|
-
var
|
|
1676
|
-
(
|
|
1677
|
-
}, ve = (
|
|
1678
|
-
var
|
|
1679
|
-
(
|
|
1680
|
-
}, se = (
|
|
1681
|
-
var
|
|
1682
|
-
(
|
|
1671
|
+
), J = (y) => {
|
|
1672
|
+
var T, E;
|
|
1673
|
+
return n.value && (n.value.spellcheck = !1), e.value.__isEditing = !1, (T = l.value) == null || T.onBlur(y), (E = l.value) == null ? void 0 : E.errorText;
|
|
1674
|
+
}, U = (y) => {
|
|
1675
|
+
var T;
|
|
1676
|
+
(T = l.value) == null || T.onFocus(y);
|
|
1677
|
+
}, ve = (y) => {
|
|
1678
|
+
var T;
|
|
1679
|
+
(T = l.value) == null || T.onPaste(y);
|
|
1680
|
+
}, se = (y) => {
|
|
1681
|
+
var T, E;
|
|
1682
|
+
(T = n.value) == null || T.focus(), e.value.__isEditing = !0, (E = l.value) == null || E.onClick(y);
|
|
1683
1683
|
}, Z = () => {
|
|
1684
1684
|
r.value = e.value.renderedHtml;
|
|
1685
1685
|
}, me = W(
|
|
1686
1686
|
() => e.value,
|
|
1687
|
-
(
|
|
1688
|
-
|
|
1687
|
+
(y, T) => {
|
|
1688
|
+
T && y.onStringChanged.remove(Z), y && (y.onStringChanged.add(Z), Z());
|
|
1689
1689
|
},
|
|
1690
1690
|
{
|
|
1691
1691
|
immediate: !0
|
|
1692
1692
|
}
|
|
1693
1693
|
);
|
|
1694
|
-
return
|
|
1695
|
-
var
|
|
1696
|
-
e.value.__isEditing && ((
|
|
1694
|
+
return R(() => {
|
|
1695
|
+
var y;
|
|
1696
|
+
e.value.__isEditing && ((y = n.value) == null || y.focus());
|
|
1697
1697
|
}), K(() => {
|
|
1698
1698
|
me(), e.value.onStringChanged.remove(Z);
|
|
1699
|
-
}), (
|
|
1700
|
-
class: m(
|
|
1699
|
+
}), (y, T) => (a(), i("span", {
|
|
1700
|
+
class: m(N.value)
|
|
1701
1701
|
}, [
|
|
1702
|
-
d("span",
|
|
1703
|
-
|
|
1702
|
+
d("span", Dt, [
|
|
1703
|
+
Tt,
|
|
1704
1704
|
Nt,
|
|
1705
1705
|
d("span", Mt, [
|
|
1706
1706
|
e.value.hasHtml ? p("", !0) : (a(), i("span", {
|
|
@@ -1711,46 +1711,46 @@ const wt = /* @__PURE__ */ g({
|
|
|
1711
1711
|
onFocus: U,
|
|
1712
1712
|
onPaste: ve,
|
|
1713
1713
|
onBlur: J,
|
|
1714
|
-
onInput:
|
|
1715
|
-
(...
|
|
1716
|
-
var
|
|
1717
|
-
return ((
|
|
1714
|
+
onInput: T[0] || (T[0] = //@ts-ignore
|
|
1715
|
+
(...E) => {
|
|
1716
|
+
var S, B;
|
|
1717
|
+
return ((S = s(l)) == null ? void 0 : S.onInput) && ((B = s(l)) == null ? void 0 : B.onInput(...E));
|
|
1718
1718
|
}),
|
|
1719
|
-
onBeforeinput:
|
|
1720
|
-
(...
|
|
1721
|
-
var
|
|
1722
|
-
return ((
|
|
1719
|
+
onBeforeinput: T[1] || (T[1] = //@ts-ignore
|
|
1720
|
+
(...E) => {
|
|
1721
|
+
var S, B;
|
|
1722
|
+
return ((S = s(l)) == null ? void 0 : S.onBeforeInput) && ((B = s(l)) == null ? void 0 : B.onBeforeInput(...E));
|
|
1723
1723
|
}),
|
|
1724
|
-
onKeydown:
|
|
1725
|
-
(...
|
|
1726
|
-
var
|
|
1727
|
-
return ((
|
|
1724
|
+
onKeydown: T[2] || (T[2] = //@ts-ignore
|
|
1725
|
+
(...E) => {
|
|
1726
|
+
var S, B;
|
|
1727
|
+
return ((S = s(l)) == null ? void 0 : S.onKeyDown) && ((B = s(l)) == null ? void 0 : B.onKeyDown(...E));
|
|
1728
1728
|
}),
|
|
1729
|
-
onKeyup:
|
|
1730
|
-
(...
|
|
1731
|
-
var
|
|
1732
|
-
return ((
|
|
1729
|
+
onKeyup: T[3] || (T[3] = //@ts-ignore
|
|
1730
|
+
(...E) => {
|
|
1731
|
+
var S, B;
|
|
1732
|
+
return ((S = s(l)) == null ? void 0 : S.onKeyUp) && ((B = s(l)) == null ? void 0 : B.onKeyUp(...E));
|
|
1733
1733
|
}),
|
|
1734
|
-
onCompositionstart:
|
|
1735
|
-
(...
|
|
1736
|
-
var
|
|
1737
|
-
return ((
|
|
1734
|
+
onCompositionstart: T[4] || (T[4] = //@ts-ignore
|
|
1735
|
+
(...E) => {
|
|
1736
|
+
var S, B;
|
|
1737
|
+
return ((S = s(l)) == null ? void 0 : S.onCompositionStart) && ((B = s(l)) == null ? void 0 : B.onCompositionStart(...E));
|
|
1738
1738
|
}),
|
|
1739
|
-
onCompositionend:
|
|
1740
|
-
(...
|
|
1741
|
-
var
|
|
1742
|
-
return ((
|
|
1739
|
+
onCompositionend: T[5] || (T[5] = //@ts-ignore
|
|
1740
|
+
(...E) => {
|
|
1741
|
+
var S, B;
|
|
1742
|
+
return ((S = s(l)) == null ? void 0 : S.onCompositionEnd) && ((B = s(l)) == null ? void 0 : B.onCompositionEnd(...E));
|
|
1743
1743
|
}),
|
|
1744
|
-
onMouseup:
|
|
1745
|
-
(...
|
|
1746
|
-
var
|
|
1747
|
-
return ((
|
|
1744
|
+
onMouseup: T[6] || (T[6] = //@ts-ignore
|
|
1745
|
+
(...E) => {
|
|
1746
|
+
var S, B;
|
|
1747
|
+
return ((S = s(l)) == null ? void 0 : S.onMouseUp) && ((B = s(l)) == null ? void 0 : B.onMouseUp(...E));
|
|
1748
1748
|
}),
|
|
1749
1749
|
onClick: se,
|
|
1750
1750
|
textContent: r.value,
|
|
1751
|
-
"aria-placeholder":
|
|
1752
|
-
"aria-label":
|
|
1753
|
-
contenteditable:
|
|
1751
|
+
"aria-placeholder": $.value,
|
|
1752
|
+
"aria-label": $.value || "content editable",
|
|
1753
|
+
contenteditable: q.value,
|
|
1754
1754
|
tabindex: s(l).tabIndex,
|
|
1755
1755
|
ref_key: "root",
|
|
1756
1756
|
ref: n
|
|
@@ -1762,58 +1762,58 @@ const wt = /* @__PURE__ */ g({
|
|
|
1762
1762
|
spellcheck: "false",
|
|
1763
1763
|
onFocus: U,
|
|
1764
1764
|
onBlur: J,
|
|
1765
|
-
onKeydown:
|
|
1766
|
-
(...
|
|
1767
|
-
var
|
|
1768
|
-
return ((
|
|
1765
|
+
onKeydown: T[7] || (T[7] = //@ts-ignore
|
|
1766
|
+
(...E) => {
|
|
1767
|
+
var S, B;
|
|
1768
|
+
return ((S = s(l)) == null ? void 0 : S.onKeyDown) && ((B = s(l)) == null ? void 0 : B.onKeyDown(...E));
|
|
1769
1769
|
}),
|
|
1770
|
-
onKeyup:
|
|
1771
|
-
(...
|
|
1772
|
-
var
|
|
1773
|
-
return ((
|
|
1770
|
+
onKeyup: T[8] || (T[8] = //@ts-ignore
|
|
1771
|
+
(...E) => {
|
|
1772
|
+
var S, B;
|
|
1773
|
+
return ((S = s(l)) == null ? void 0 : S.onKeyUp) && ((B = s(l)) == null ? void 0 : B.onKeyUp(...E));
|
|
1774
1774
|
}),
|
|
1775
|
-
onCompositionstart:
|
|
1776
|
-
(...
|
|
1777
|
-
var
|
|
1778
|
-
return ((
|
|
1775
|
+
onCompositionstart: T[9] || (T[9] = //@ts-ignore
|
|
1776
|
+
(...E) => {
|
|
1777
|
+
var S, B;
|
|
1778
|
+
return ((S = s(l)) == null ? void 0 : S.onCompositionStart) && ((B = s(l)) == null ? void 0 : B.onCompositionStart(...E));
|
|
1779
1779
|
}),
|
|
1780
|
-
onCompositionend:
|
|
1781
|
-
(...
|
|
1782
|
-
var
|
|
1783
|
-
return ((
|
|
1780
|
+
onCompositionend: T[10] || (T[10] = //@ts-ignore
|
|
1781
|
+
(...E) => {
|
|
1782
|
+
var S, B;
|
|
1783
|
+
return ((S = s(l)) == null ? void 0 : S.onCompositionEnd) && ((B = s(l)) == null ? void 0 : B.onCompositionEnd(...E));
|
|
1784
1784
|
}),
|
|
1785
|
-
onMouseup:
|
|
1786
|
-
(...
|
|
1787
|
-
var
|
|
1788
|
-
return ((
|
|
1785
|
+
onMouseup: T[11] || (T[11] = //@ts-ignore
|
|
1786
|
+
(...E) => {
|
|
1787
|
+
var S, B;
|
|
1788
|
+
return ((S = s(l)) == null ? void 0 : S.onMouseUp) && ((B = s(l)) == null ? void 0 : B.onMouseUp(...E));
|
|
1789
1789
|
}),
|
|
1790
1790
|
onClick: se,
|
|
1791
|
-
"aria-placeholder":
|
|
1792
|
-
"aria-label":
|
|
1793
|
-
contenteditable:
|
|
1791
|
+
"aria-placeholder": $.value,
|
|
1792
|
+
"aria-label": $.value || "content editable",
|
|
1793
|
+
contenteditable: q.value,
|
|
1794
1794
|
tabindex: s(l).tabIndex,
|
|
1795
1795
|
innerHTML: r.value,
|
|
1796
1796
|
ref_key: "root",
|
|
1797
1797
|
ref: n
|
|
1798
1798
|
}, null, 40, Bt)) : p("", !0),
|
|
1799
|
-
|
|
1799
|
+
I.value ? (a(), b(s(c), {
|
|
1800
1800
|
key: 2,
|
|
1801
1801
|
is: "sv-character-counter",
|
|
1802
|
-
counter:
|
|
1802
|
+
counter: C.value,
|
|
1803
1803
|
remainingCharacterCounter: L.value
|
|
1804
1804
|
}, null, 8, ["counter", "remainingCharacterCounter"])) : p("", !0)
|
|
1805
1805
|
])
|
|
1806
1806
|
]),
|
|
1807
|
-
_.value ? (a(), i("span", It,
|
|
1807
|
+
_.value ? (a(), i("span", It, f(_.value), 1)) : p("", !0)
|
|
1808
1808
|
], 2));
|
|
1809
1809
|
}
|
|
1810
1810
|
}), Pt = {
|
|
1811
1811
|
key: 0,
|
|
1812
1812
|
class: "svc-toolbox__search-container"
|
|
1813
|
-
}, Rt = /* @__PURE__ */ d("div", { class: "svc-toolbox__category-separator svc-toolbox__category-separator--search" }, null, -1),
|
|
1813
|
+
}, Rt = /* @__PURE__ */ d("div", { class: "svc-toolbox__category-separator svc-toolbox__category-separator--search" }, null, -1), At = {
|
|
1814
1814
|
key: 1,
|
|
1815
1815
|
class: "svc-toolbox__placeholder"
|
|
1816
|
-
},
|
|
1816
|
+
}, Vt = {
|
|
1817
1817
|
key: 1,
|
|
1818
1818
|
class: "svc-toolbox__category"
|
|
1819
1819
|
}, zt = /* @__PURE__ */ g({
|
|
@@ -1821,16 +1821,16 @@ const wt = /* @__PURE__ */ g({
|
|
|
1821
1821
|
props: {
|
|
1822
1822
|
model: {}
|
|
1823
1823
|
},
|
|
1824
|
-
setup(
|
|
1825
|
-
const t =
|
|
1826
|
-
|
|
1824
|
+
setup(u) {
|
|
1825
|
+
const t = u, e = k(() => t.model.toolbox), o = P();
|
|
1826
|
+
w(() => e.value), G(() => {
|
|
1827
1827
|
e.value.afterRender(o.value);
|
|
1828
|
-
}),
|
|
1828
|
+
}), R(() => {
|
|
1829
1829
|
e.value.afterRender(o.value);
|
|
1830
1830
|
}), K(() => {
|
|
1831
1831
|
e.value.beforeDestroy();
|
|
1832
1832
|
});
|
|
1833
|
-
const n =
|
|
1833
|
+
const n = k(() => e.value.renderedActions);
|
|
1834
1834
|
return (r, l) => (a(), i("div", {
|
|
1835
1835
|
class: m(e.value.classNames),
|
|
1836
1836
|
ref_key: "root",
|
|
@@ -1842,7 +1842,7 @@ const wt = /* @__PURE__ */ g({
|
|
|
1842
1842
|
class: "svc-toolbox__panel"
|
|
1843
1843
|
}, [
|
|
1844
1844
|
e.value.showSearch ? (a(), i("div", Pt, [
|
|
1845
|
-
e.value.isCompactRendered ? (a(),
|
|
1845
|
+
e.value.isCompactRendered ? (a(), b(s(c), {
|
|
1846
1846
|
is: "svc-toolbox-tool",
|
|
1847
1847
|
creator: r.model,
|
|
1848
1848
|
key: "searchitem",
|
|
@@ -1850,23 +1850,23 @@ const wt = /* @__PURE__ */ g({
|
|
|
1850
1850
|
parentModel: e.value,
|
|
1851
1851
|
isCompact: e.value.isCompactRendered
|
|
1852
1852
|
}, null, 8, ["creator", "item", "parentModel", "isCompact"])) : p("", !0),
|
|
1853
|
-
v(s(
|
|
1853
|
+
v(s(c), {
|
|
1854
1854
|
is: "svc-search",
|
|
1855
1855
|
model: e.value.searchManager
|
|
1856
1856
|
}, null, 8, ["model"]),
|
|
1857
1857
|
Rt
|
|
1858
1858
|
])) : p("", !0),
|
|
1859
|
-
e.value.showPlaceholder ? (a(), i("div",
|
|
1860
|
-
v(s(
|
|
1859
|
+
e.value.showPlaceholder ? (a(), i("div", At, f(e.value.toolboxNoResultsFound), 1)) : p("", !0),
|
|
1860
|
+
v(s(c), { is: "sv-scroll" }, {
|
|
1861
1861
|
default: X(() => [
|
|
1862
|
-
e.value.showInSingleCategory ? p("", !0) : (a(!0), i(
|
|
1862
|
+
e.value.showInSingleCategory ? p("", !0) : (a(!0), i(D, { key: 0 }, V(e.value.categories, (_, N) => (a(), b(s(c), {
|
|
1863
1863
|
is: "svc-toolbox-category",
|
|
1864
|
-
key:
|
|
1864
|
+
key: N,
|
|
1865
1865
|
category: _,
|
|
1866
1866
|
toolbox: e.value
|
|
1867
1867
|
}, null, 8, ["category", "toolbox"]))), 128)),
|
|
1868
|
-
e.value.showInSingleCategory ? (a(), i("div",
|
|
1869
|
-
(a(!0), i(
|
|
1868
|
+
e.value.showInSingleCategory ? (a(), i("div", Vt, [
|
|
1869
|
+
(a(!0), i(D, null, V(n.value, (_) => (a(), b(s(c), {
|
|
1870
1870
|
key: _.renderedId,
|
|
1871
1871
|
is: "svc-toolbox-tool",
|
|
1872
1872
|
creator: r.model,
|
|
@@ -1892,8 +1892,8 @@ const wt = /* @__PURE__ */ g({
|
|
|
1892
1892
|
parentModel: {},
|
|
1893
1893
|
isCompact: { type: Boolean }
|
|
1894
1894
|
},
|
|
1895
|
-
setup(
|
|
1896
|
-
const t =
|
|
1895
|
+
setup(u) {
|
|
1896
|
+
const t = u, e = z(
|
|
1897
1897
|
() => new qe(
|
|
1898
1898
|
t.item,
|
|
1899
1899
|
t.creator,
|
|
@@ -1903,8 +1903,8 @@ const wt = /* @__PURE__ */ g({
|
|
|
1903
1903
|
(n) => {
|
|
1904
1904
|
n.dispose();
|
|
1905
1905
|
}
|
|
1906
|
-
), o =
|
|
1907
|
-
return
|
|
1906
|
+
), o = P();
|
|
1907
|
+
return R(() => {
|
|
1908
1908
|
const n = t.item;
|
|
1909
1909
|
n.updateModeCallback = (r, l) => {
|
|
1910
1910
|
n.mode = r, re(() => l(r, o.value));
|
|
@@ -1912,7 +1912,7 @@ const wt = /* @__PURE__ */ g({
|
|
|
1912
1912
|
}), K(() => {
|
|
1913
1913
|
const n = t.item;
|
|
1914
1914
|
n.updateModeCallback = void 0;
|
|
1915
|
-
}),
|
|
1915
|
+
}), w(() => t.item), (n, r) => {
|
|
1916
1916
|
var l;
|
|
1917
1917
|
return a(), i("div", {
|
|
1918
1918
|
class: m(n.item.css),
|
|
@@ -1924,11 +1924,11 @@ const wt = /* @__PURE__ */ g({
|
|
|
1924
1924
|
class: "svc-toolbox__tool-content sv-action__content",
|
|
1925
1925
|
onPointerdown: r[0] || (r[0] = //@ts-ignore
|
|
1926
1926
|
(..._) => {
|
|
1927
|
-
var
|
|
1928
|
-
return ((
|
|
1927
|
+
var N, $;
|
|
1928
|
+
return ((N = s(e)) == null ? void 0 : N.onPointerDown) && (($ = s(e)) == null ? void 0 : $.onPointerDown(..._));
|
|
1929
1929
|
})
|
|
1930
1930
|
}, [
|
|
1931
|
-
v(s(
|
|
1931
|
+
v(s(c), {
|
|
1932
1932
|
viewModel: s(e),
|
|
1933
1933
|
is: (l = s(e)) == null ? void 0 : l.itemComponent,
|
|
1934
1934
|
item: n.item,
|
|
@@ -1950,9 +1950,9 @@ const wt = /* @__PURE__ */ g({
|
|
|
1950
1950
|
isCompact: { type: Boolean },
|
|
1951
1951
|
viewModel: {}
|
|
1952
1952
|
},
|
|
1953
|
-
setup(
|
|
1954
|
-
return (t, e) => (a(), i(
|
|
1955
|
-
|
|
1953
|
+
setup(u) {
|
|
1954
|
+
return (t, e) => (a(), i(D, null, [
|
|
1955
|
+
h((a(), i("div", {
|
|
1956
1956
|
class: m(["svc-toolbox__item", t.item.renderedCss]),
|
|
1957
1957
|
role: "button",
|
|
1958
1958
|
"aria-label": t.item.tooltip,
|
|
@@ -1960,7 +1960,7 @@ const wt = /* @__PURE__ */ g({
|
|
|
1960
1960
|
onClick: e[0] || (e[0] = (o) => t.viewModel.click(o))
|
|
1961
1961
|
}, [
|
|
1962
1962
|
d("span", Ut, [
|
|
1963
|
-
t.item.iconName ? (a(),
|
|
1963
|
+
t.item.iconName ? (a(), b(s(c), {
|
|
1964
1964
|
key: 0,
|
|
1965
1965
|
is: "sv-svg-icon",
|
|
1966
1966
|
iconName: t.item.iconName,
|
|
@@ -1968,22 +1968,22 @@ const wt = /* @__PURE__ */ g({
|
|
|
1968
1968
|
class: "svc-toolbox__item-icon"
|
|
1969
1969
|
}, null, 8, ["iconName"])) : p("", !0)
|
|
1970
1970
|
]),
|
|
1971
|
-
t.isCompact ? p("", !0) : (a(), i("span", Qt,
|
|
1971
|
+
t.isCompact ? p("", !0) : (a(), i("span", Qt, f(t.item.title), 1))
|
|
1972
1972
|
], 10, Kt)), [
|
|
1973
|
-
[s(
|
|
1973
|
+
[s(M), { disableTabStop: !t.viewModel.toolboxItem.enabled }]
|
|
1974
1974
|
]),
|
|
1975
1975
|
t.isCompact ? (a(), i("span", {
|
|
1976
1976
|
key: 0,
|
|
1977
1977
|
class: "svc-toolbox__item-banner",
|
|
1978
1978
|
onClick: e[1] || (e[1] = (o) => t.viewModel.click(o))
|
|
1979
1979
|
}, [
|
|
1980
|
-
v(s(
|
|
1980
|
+
v(s(c), {
|
|
1981
1981
|
is: "sv-svg-icon",
|
|
1982
1982
|
iconName: t.item.iconName,
|
|
1983
1983
|
size: 24,
|
|
1984
1984
|
class: "svc-toolbox__item-icon"
|
|
1985
1985
|
}, null, 8, ["iconName"]),
|
|
1986
|
-
d("span", null,
|
|
1986
|
+
d("span", null, f(t.item.title), 1)
|
|
1987
1987
|
])) : p("", !0)
|
|
1988
1988
|
], 64));
|
|
1989
1989
|
}
|
|
@@ -1995,14 +1995,14 @@ const wt = /* @__PURE__ */ g({
|
|
|
1995
1995
|
isCompact: { type: Boolean },
|
|
1996
1996
|
viewModel: {}
|
|
1997
1997
|
},
|
|
1998
|
-
setup(
|
|
1999
|
-
const t =
|
|
1998
|
+
setup(u) {
|
|
1999
|
+
const t = u, e = (n) => {
|
|
2000
2000
|
t.viewModel.onMouseOver(t.item, n);
|
|
2001
2001
|
}, o = (n) => {
|
|
2002
2002
|
t.viewModel.onMouseLeave(t.item, n);
|
|
2003
2003
|
};
|
|
2004
|
-
return (n, r) => (a(), i(
|
|
2005
|
-
v(s(
|
|
2004
|
+
return (n, r) => (a(), i(D, null, [
|
|
2005
|
+
v(s(c), {
|
|
2006
2006
|
is: "svc-toolbox-item",
|
|
2007
2007
|
viewModel: n.viewModel,
|
|
2008
2008
|
item: n.item,
|
|
@@ -2014,12 +2014,12 @@ const wt = /* @__PURE__ */ g({
|
|
|
2014
2014
|
onMouseover: e,
|
|
2015
2015
|
onMouseleave: o
|
|
2016
2016
|
}, [
|
|
2017
|
-
v(s(
|
|
2017
|
+
v(s(c), {
|
|
2018
2018
|
is: "sv-svg-icon",
|
|
2019
2019
|
iconName: n.item.subitemsButtonIcon,
|
|
2020
2020
|
size: "auto"
|
|
2021
2021
|
}, null, 8, ["iconName"]),
|
|
2022
|
-
v(s(
|
|
2022
|
+
v(s(c), {
|
|
2023
2023
|
is: "sv-popup",
|
|
2024
2024
|
model: n.item.popupModel
|
|
2025
2025
|
}, null, 8, ["model"])
|
|
@@ -2035,24 +2035,24 @@ const wt = /* @__PURE__ */ g({
|
|
|
2035
2035
|
category: {},
|
|
2036
2036
|
toolbox: {}
|
|
2037
2037
|
},
|
|
2038
|
-
setup(
|
|
2039
|
-
const t =
|
|
2040
|
-
return
|
|
2038
|
+
setup(u) {
|
|
2039
|
+
const t = u;
|
|
2040
|
+
return w(() => t.category), (e, o) => (a(), i("div", {
|
|
2041
2041
|
class: m(["svc-toolbox__category", {
|
|
2042
2042
|
"svc-toolbox__category--collapsed": e.category.collapsed,
|
|
2043
2043
|
"svc-toolbox__category--empty": e.category.empty
|
|
2044
2044
|
}])
|
|
2045
2045
|
}, [
|
|
2046
2046
|
d("div", Gt, [
|
|
2047
|
-
|
|
2047
|
+
h((a(), i("div", {
|
|
2048
2048
|
class: m(["svc-toolbox__category-header", {
|
|
2049
2049
|
"svc-toolbox__category-header--collapsed": e.toolbox.canCollapseCategories
|
|
2050
2050
|
}]),
|
|
2051
2051
|
onClick: o[0] || (o[0] = (n) => e.category.toggleState())
|
|
2052
2052
|
}, [
|
|
2053
|
-
d("span", Wt,
|
|
2053
|
+
d("span", Wt, f(e.category.title), 1),
|
|
2054
2054
|
e.toolbox.canCollapseCategories ? (a(), i("div", jt, [
|
|
2055
|
-
v(s(
|
|
2055
|
+
v(s(c), {
|
|
2056
2056
|
is: "sv-svg-icon",
|
|
2057
2057
|
iconName: e.category.iconName,
|
|
2058
2058
|
class: m(e.category.iconClassName),
|
|
@@ -2060,10 +2060,10 @@ const wt = /* @__PURE__ */ g({
|
|
|
2060
2060
|
}, null, 8, ["iconName", "class"])
|
|
2061
2061
|
])) : p("", !0)
|
|
2062
2062
|
], 2)), [
|
|
2063
|
-
[s(
|
|
2063
|
+
[s(M)]
|
|
2064
2064
|
])
|
|
2065
2065
|
]),
|
|
2066
|
-
(a(!0), i(
|
|
2066
|
+
(a(!0), i(D, null, V(e.category.items, (n) => (a(), b(s(c), {
|
|
2067
2067
|
is: "svc-toolbox-tool",
|
|
2068
2068
|
item: n,
|
|
2069
2069
|
key: n.renderedId,
|
|
@@ -2079,12 +2079,12 @@ const wt = /* @__PURE__ */ g({
|
|
|
2079
2079
|
model: {},
|
|
2080
2080
|
creator: {}
|
|
2081
2081
|
},
|
|
2082
|
-
setup(
|
|
2083
|
-
const t =
|
|
2084
|
-
return
|
|
2082
|
+
setup(u) {
|
|
2083
|
+
const t = u;
|
|
2084
|
+
return w(() => t.model), (e, o) => (a(), i("div", {
|
|
2085
2085
|
class: m(e.model.cssClasses.root)
|
|
2086
2086
|
}, [
|
|
2087
|
-
(a(!0), i(
|
|
2087
|
+
(a(!0), i(D, null, V(e.model.renderedActions, (n, r) => (a(), b(s(c), {
|
|
2088
2088
|
key: r,
|
|
2089
2089
|
is: "svc-toolbox-tool",
|
|
2090
2090
|
creator: e.creator,
|
|
@@ -2120,11 +2120,11 @@ const wt = /* @__PURE__ */ g({
|
|
|
2120
2120
|
props: {
|
|
2121
2121
|
model: {}
|
|
2122
2122
|
},
|
|
2123
|
-
setup(
|
|
2124
|
-
const t =
|
|
2125
|
-
return
|
|
2123
|
+
setup(u) {
|
|
2124
|
+
const t = u, e = k(() => t.model.survey);
|
|
2125
|
+
return w(() => t.model), w(() => e.value), w(() => t.model.pagesController), (o, n) => (a(), i(D, null, [
|
|
2126
2126
|
d("div", Xt, [
|
|
2127
|
-
o.model.isToolboxVisible ? (a(),
|
|
2127
|
+
o.model.isToolboxVisible ? (a(), b(s(c), {
|
|
2128
2128
|
key: 0,
|
|
2129
2129
|
is: "svc-toolbox",
|
|
2130
2130
|
model: o.model.creator
|
|
@@ -2135,12 +2135,12 @@ const wt = /* @__PURE__ */ g({
|
|
|
2135
2135
|
onClick: n[0] || (n[0] = //@ts-ignore
|
|
2136
2136
|
(...r) => o.model.clickDesigner && o.model.clickDesigner(...r))
|
|
2137
2137
|
}, [
|
|
2138
|
-
v(s(
|
|
2138
|
+
v(s(c), { is: "sv-scroll" }, {
|
|
2139
2139
|
default: X(() => [
|
|
2140
2140
|
d("div", Yt, [
|
|
2141
|
-
o.model.showPlaceholder ? (a(), i(
|
|
2141
|
+
o.model.showPlaceholder ? (a(), i(D, { key: 0 }, [
|
|
2142
2142
|
o.model.creator.showHeaderInEmptySurvey && o.model.creator.allowEditSurveyTitle ? (a(), i("div", xt, [
|
|
2143
|
-
v(s(
|
|
2143
|
+
v(s(c), {
|
|
2144
2144
|
is: "survey-header",
|
|
2145
2145
|
survey: o.model.creator.survey
|
|
2146
2146
|
}, null, 8, ["survey"])
|
|
@@ -2152,7 +2152,7 @@ const wt = /* @__PURE__ */ g({
|
|
|
2152
2152
|
placeholderDescriptionText: o.model.placeholderDescriptionText
|
|
2153
2153
|
}, null, 8, ["placeholderTitleText", "placeholderDescriptionText"]),
|
|
2154
2154
|
d("div", on, [
|
|
2155
|
-
v(s(
|
|
2155
|
+
v(s(c), {
|
|
2156
2156
|
is: "svc-page",
|
|
2157
2157
|
survey: o.model.creator.survey,
|
|
2158
2158
|
creator: o.model.creator,
|
|
@@ -2162,7 +2162,7 @@ const wt = /* @__PURE__ */ g({
|
|
|
2162
2162
|
])
|
|
2163
2163
|
])
|
|
2164
2164
|
], 64)) : p("", !0),
|
|
2165
|
-
o.model.showPlaceholder ? p("", !0) : (a(), i(
|
|
2165
|
+
o.model.showPlaceholder ? p("", !0) : (a(), i(D, { key: 1 }, [
|
|
2166
2166
|
d("div", {
|
|
2167
2167
|
class: m(o.model.designerCss),
|
|
2168
2168
|
style: F([
|
|
@@ -2171,18 +2171,18 @@ const wt = /* @__PURE__ */ g({
|
|
|
2171
2171
|
])
|
|
2172
2172
|
}, [
|
|
2173
2173
|
o.model.creator.allowEditSurveyTitle ? (a(), i("div", sn, [
|
|
2174
|
-
v(s(
|
|
2174
|
+
v(s(c), {
|
|
2175
2175
|
is: "survey-header",
|
|
2176
2176
|
survey: o.model.creator.survey
|
|
2177
2177
|
}, null, 8, ["survey"])
|
|
2178
2178
|
])) : p("", !0),
|
|
2179
|
-
o.model.creator.pageEditMode !== "bypage" ? (a(!0), i(
|
|
2179
|
+
o.model.creator.pageEditMode !== "bypage" ? (a(!0), i(D, { key: 1 }, V(o.model.pages, (r) => (a(), i("div", {
|
|
2180
2180
|
key: r.id,
|
|
2181
2181
|
class: "svc-page",
|
|
2182
2182
|
"data-sv-drop-target-survey-element": r != o.model.newPage ? r.name : "newGhostPage",
|
|
2183
2183
|
"data-sv-drop-target-page": r.name
|
|
2184
2184
|
}, [
|
|
2185
|
-
v(s(
|
|
2185
|
+
v(s(c), {
|
|
2186
2186
|
is: "svc-page",
|
|
2187
2187
|
survey: o.model.creator.survey,
|
|
2188
2188
|
creator: o.model.creator,
|
|
@@ -2196,7 +2196,7 @@ const wt = /* @__PURE__ */ g({
|
|
|
2196
2196
|
"data-sv-drop-target-survey-element": o.model.displayPageDropTarget,
|
|
2197
2197
|
"data-sv-drop-target-page": o.model.pagesController.page2Display.name
|
|
2198
2198
|
}, [
|
|
2199
|
-
v(s(
|
|
2199
|
+
v(s(c), {
|
|
2200
2200
|
is: "svc-page",
|
|
2201
2201
|
page: o.model.pagesController.page2Display,
|
|
2202
2202
|
creator: o.model.creator,
|
|
@@ -2206,14 +2206,14 @@ const wt = /* @__PURE__ */ g({
|
|
|
2206
2206
|
], 6),
|
|
2207
2207
|
o.model.showSurfaceTools ? (a(), i("div", an, [
|
|
2208
2208
|
o.model.creator.showPageNavigator ? (a(), i("div", ln, [
|
|
2209
|
-
v(s(
|
|
2209
|
+
v(s(c), {
|
|
2210
2210
|
is: "svc-page-navigator",
|
|
2211
2211
|
pagesController: o.model.pagesController,
|
|
2212
2212
|
pageEditMode: o.model.creator.pageEditMode
|
|
2213
2213
|
}, null, 8, ["pagesController", "pageEditMode"])
|
|
2214
2214
|
])) : p("", !0),
|
|
2215
2215
|
o.model.showSurfaceToolbar ? (a(), i("div", rn, [
|
|
2216
|
-
v(s(
|
|
2216
|
+
v(s(c), {
|
|
2217
2217
|
is: "sv-action-bar",
|
|
2218
2218
|
model: o.model.surfaceToolbar
|
|
2219
2219
|
}, null, 8, ["model"])
|
|
@@ -2244,8 +2244,8 @@ const wt = /* @__PURE__ */ g({
|
|
|
2244
2244
|
page: {},
|
|
2245
2245
|
isGhost: { type: Boolean }
|
|
2246
2246
|
},
|
|
2247
|
-
setup(
|
|
2248
|
-
const t =
|
|
2247
|
+
setup(u) {
|
|
2248
|
+
const t = u, e = P(), o = z(
|
|
2249
2249
|
() => {
|
|
2250
2250
|
const r = new $e(t.creator, t.page);
|
|
2251
2251
|
return r.isGhost = t.isGhost, r;
|
|
@@ -2262,13 +2262,13 @@ const wt = /* @__PURE__ */ g({
|
|
|
2262
2262
|
}
|
|
2263
2263
|
), G(() => {
|
|
2264
2264
|
e.value && o.value && (o.value.rootElement = e.value);
|
|
2265
|
-
}),
|
|
2265
|
+
}), R(() => {
|
|
2266
2266
|
e.value && o.value && o.value.setRootElement(e.value);
|
|
2267
2267
|
});
|
|
2268
2268
|
const n = (r) => {
|
|
2269
2269
|
o.value.hover(r, r.currentTarget);
|
|
2270
2270
|
};
|
|
2271
|
-
return (r, l) => s(o).page ?
|
|
2271
|
+
return (r, l) => s(o).page ? h((a(), i("div", {
|
|
2272
2272
|
key: s(o).page.id,
|
|
2273
2273
|
id: s(o).page.id,
|
|
2274
2274
|
class: m(["svc-page__content", s(o).css]),
|
|
@@ -2284,18 +2284,18 @@ const wt = /* @__PURE__ */ g({
|
|
|
2284
2284
|
}, [
|
|
2285
2285
|
un,
|
|
2286
2286
|
pn,
|
|
2287
|
-
s(o).needRenderContent ? (a(),
|
|
2287
|
+
s(o).needRenderContent ? (a(), b(s(c), {
|
|
2288
2288
|
key: 0,
|
|
2289
2289
|
is: "sv-page",
|
|
2290
2290
|
survey: s(o).creator.survey,
|
|
2291
2291
|
page: s(o).page
|
|
2292
2292
|
}, null, 8, ["survey", "page"])) : p("", !0),
|
|
2293
2293
|
s(o).needRenderContent ? p("", !0) : (a(), i("div", vn, [
|
|
2294
|
-
v(s(
|
|
2294
|
+
v(s(c), { is: "sv-loading-indicator" })
|
|
2295
2295
|
])),
|
|
2296
2296
|
s(o).showPlaceholder ? (a(), i("div", mn, [
|
|
2297
2297
|
d("div", _n, [
|
|
2298
|
-
d("div", gn,
|
|
2298
|
+
d("div", gn, f(s(o).placeholderText), 1)
|
|
2299
2299
|
])
|
|
2300
2300
|
])) : p("", !0),
|
|
2301
2301
|
s(o).allowDragging && !s(o).isGhost ? (a(), i("div", {
|
|
@@ -2303,7 +2303,7 @@ const wt = /* @__PURE__ */ g({
|
|
|
2303
2303
|
class: "svc-question__drag-area",
|
|
2304
2304
|
onPointerdown: l[0] || (l[0] = (_) => s(o).onPointerDown(_))
|
|
2305
2305
|
}, [
|
|
2306
|
-
v(s(
|
|
2306
|
+
v(s(c), A({
|
|
2307
2307
|
is: "sv-svg-icon",
|
|
2308
2308
|
class: "svc-question__drag-element"
|
|
2309
2309
|
}, {
|
|
@@ -2312,11 +2312,11 @@ const wt = /* @__PURE__ */ g({
|
|
|
2312
2312
|
size: "auto"
|
|
2313
2313
|
}), null, 16),
|
|
2314
2314
|
d("div", bn, [
|
|
2315
|
-
v(s(
|
|
2315
|
+
v(s(c), {
|
|
2316
2316
|
is: "sv-action-bar",
|
|
2317
2317
|
model: s(o).actionContainer
|
|
2318
2318
|
}, null, 8, ["model"]),
|
|
2319
|
-
s(o).topActionContainer.hasActions ? (a(),
|
|
2319
|
+
s(o).topActionContainer.hasActions ? (a(), b(s(c), {
|
|
2320
2320
|
key: 0,
|
|
2321
2321
|
is: "sv-action-bar",
|
|
2322
2322
|
model: s(o).topActionContainer
|
|
@@ -2324,22 +2324,22 @@ const wt = /* @__PURE__ */ g({
|
|
|
2324
2324
|
])
|
|
2325
2325
|
], 32)) : p("", !0),
|
|
2326
2326
|
!s(o).allowDragging || s(o).isGhost ? (a(), i("div", yn, [
|
|
2327
|
-
v(s(
|
|
2327
|
+
v(s(c), {
|
|
2328
2328
|
is: "sv-action-bar",
|
|
2329
2329
|
model: s(o).actionContainer
|
|
2330
2330
|
}, null, 8, ["model"]),
|
|
2331
|
-
s(o).topActionContainer.hasActions ? (a(),
|
|
2331
|
+
s(o).topActionContainer.hasActions ? (a(), b(s(c), {
|
|
2332
2332
|
key: 0,
|
|
2333
2333
|
is: "sv-action-bar",
|
|
2334
2334
|
model: s(o).topActionContainer
|
|
2335
2335
|
}, null, 8, ["model"])) : p("", !0)
|
|
2336
2336
|
])) : p("", !0),
|
|
2337
|
-
v(s(
|
|
2337
|
+
v(s(c), {
|
|
2338
2338
|
is: "sv-action-bar",
|
|
2339
2339
|
model: s(o).footerActionsBar
|
|
2340
2340
|
}, null, 8, ["model"])
|
|
2341
2341
|
], 42, cn)), [
|
|
2342
|
-
[s(
|
|
2342
|
+
[s(M)]
|
|
2343
2343
|
]) : p("", !0);
|
|
2344
2344
|
}
|
|
2345
2345
|
}), Cn = { class: "svc-add-new-item-button__text" }, qn = /* @__PURE__ */ g({
|
|
@@ -2349,39 +2349,39 @@ const wt = /* @__PURE__ */ g({
|
|
|
2349
2349
|
buttonClass: {},
|
|
2350
2350
|
renderPopup: {}
|
|
2351
2351
|
},
|
|
2352
|
-
setup(
|
|
2353
|
-
const t =
|
|
2354
|
-
|
|
2355
|
-
const e =
|
|
2352
|
+
setup(u) {
|
|
2353
|
+
const t = u;
|
|
2354
|
+
w(() => t.item.data);
|
|
2355
|
+
const e = k(
|
|
2356
2356
|
() => "svc-element__add-new-question " + (t.buttonClass || "svc-btn")
|
|
2357
|
-
), o =
|
|
2357
|
+
), o = k(
|
|
2358
2358
|
() => t.renderPopup === void 0 || t.renderPopup !== !1
|
|
2359
2359
|
);
|
|
2360
|
-
return (n, r) => (a(), i(
|
|
2361
|
-
|
|
2360
|
+
return (n, r) => (a(), i(D, null, [
|
|
2361
|
+
h((a(), i("div", {
|
|
2362
2362
|
class: m(e.value),
|
|
2363
2363
|
onClick: r[0] || (r[0] = (l) => {
|
|
2364
2364
|
n.item.data.addNewQuestion(n.item, l), l.stopPropagation();
|
|
2365
2365
|
}),
|
|
2366
2366
|
onMouseover: r[1] || (r[1] = (l) => n.item.data.hoverStopper && n.item.data.hoverStopper(l, l.currentTarget))
|
|
2367
2367
|
}, [
|
|
2368
|
-
v(s(
|
|
2368
|
+
v(s(c), {
|
|
2369
2369
|
is: "sv-svg-icon",
|
|
2370
2370
|
class: "svc-panel__add-new-question-icon",
|
|
2371
2371
|
iconName: "icon-add_24x24",
|
|
2372
2372
|
size: "auto"
|
|
2373
2373
|
}),
|
|
2374
|
-
d("span", Cn,
|
|
2375
|
-
o.value ? (a(),
|
|
2374
|
+
d("span", Cn, f(n.item.data.addNewQuestionText), 1),
|
|
2375
|
+
o.value ? (a(), b(s(c), {
|
|
2376
2376
|
key: 0,
|
|
2377
2377
|
is: "svc-add-question-type-selector",
|
|
2378
2378
|
questionTypeSelectorModel: n.item.data.questionTypeSelectorModel,
|
|
2379
2379
|
renderPopup: o.value
|
|
2380
2380
|
}, null, 8, ["questionTypeSelectorModel", "renderPopup"])) : p("", !0)
|
|
2381
2381
|
], 34)), [
|
|
2382
|
-
[s(
|
|
2382
|
+
[s(M)]
|
|
2383
2383
|
]),
|
|
2384
|
-
o.value ? p("", !0) : (a(),
|
|
2384
|
+
o.value ? p("", !0) : (a(), b(s(c), {
|
|
2385
2385
|
key: 0,
|
|
2386
2386
|
is: "svc-add-question-type-selector",
|
|
2387
2387
|
questionTypeSelectorModel: n.item.data.questionTypeSelectorModel,
|
|
@@ -2395,9 +2395,9 @@ const wt = /* @__PURE__ */ g({
|
|
|
2395
2395
|
questionTypeSelectorModel: {},
|
|
2396
2396
|
renderPopup: {}
|
|
2397
2397
|
},
|
|
2398
|
-
setup(
|
|
2399
|
-
const t =
|
|
2400
|
-
return
|
|
2398
|
+
setup(u) {
|
|
2399
|
+
const t = u;
|
|
2400
|
+
return w(() => t.questionTypeSelectorModel), (e, o) => h((a(), i("button", {
|
|
2401
2401
|
type: "button",
|
|
2402
2402
|
onClick: o[0] || (o[0] = (n) => {
|
|
2403
2403
|
e.questionTypeSelectorModel.action(), n.stopPropagation();
|
|
@@ -2406,7 +2406,7 @@ const wt = /* @__PURE__ */ g({
|
|
|
2406
2406
|
"aria-label": e.questionTypeSelectorModel.title,
|
|
2407
2407
|
class: "svc-element__question-type-selector"
|
|
2408
2408
|
}, [
|
|
2409
|
-
v(s(
|
|
2409
|
+
v(s(c), A({
|
|
2410
2410
|
is: "sv-svg-icon",
|
|
2411
2411
|
class: "svc-element__question-type-selector-icon"
|
|
2412
2412
|
}, {
|
|
@@ -2414,29 +2414,29 @@ const wt = /* @__PURE__ */ g({
|
|
|
2414
2414
|
size: "auto",
|
|
2415
2415
|
title: e.questionTypeSelectorModel.title
|
|
2416
2416
|
}), null, 16),
|
|
2417
|
-
e.renderPopup ? (a(),
|
|
2417
|
+
e.renderPopup ? (a(), b(s(c), {
|
|
2418
2418
|
key: 0,
|
|
2419
2419
|
is: "sv-popup",
|
|
2420
2420
|
model: e.questionTypeSelectorModel.popupModel
|
|
2421
2421
|
}, null, 8, ["model"])) : p("", !0)
|
|
2422
2422
|
], 8, $n)), [
|
|
2423
|
-
[s(
|
|
2423
|
+
[s(M)]
|
|
2424
2424
|
]);
|
|
2425
2425
|
}
|
|
2426
|
-
}), fn = /* @__PURE__ */ d("div", { class: "svc-row__drop-indicator svc-row__drop-indicator--top" }, null, -1), wn = /* @__PURE__ */ d("div", { class: "svc-row__drop-indicator svc-row__drop-indicator--bottom" }, null, -1),
|
|
2426
|
+
}), fn = /* @__PURE__ */ d("div", { class: "svc-row__drop-indicator svc-row__drop-indicator--top" }, null, -1), wn = /* @__PURE__ */ d("div", { class: "svc-row__drop-indicator svc-row__drop-indicator--bottom" }, null, -1), Dn = /* @__PURE__ */ g({
|
|
2427
2427
|
__name: "Row",
|
|
2428
2428
|
props: {
|
|
2429
2429
|
componentData: {}
|
|
2430
2430
|
},
|
|
2431
|
-
setup(
|
|
2432
|
-
const t =
|
|
2431
|
+
setup(u) {
|
|
2432
|
+
const t = u, e = k(() => t.componentData.creator), o = k(() => t.componentData.row), n = z(
|
|
2433
2433
|
() => new ke(e.value, o.value, void 0),
|
|
2434
2434
|
[() => e.value, () => o.value],
|
|
2435
2435
|
(r) => {
|
|
2436
2436
|
r.dispose();
|
|
2437
2437
|
}
|
|
2438
2438
|
);
|
|
2439
|
-
return
|
|
2439
|
+
return R(() => {
|
|
2440
2440
|
n.value && n.value.subscribeElementChanges();
|
|
2441
2441
|
}), K(() => {
|
|
2442
2442
|
n.value && n.value.unsubscribeElementChanges();
|
|
@@ -2448,10 +2448,10 @@ const wt = /* @__PURE__ */ g({
|
|
|
2448
2448
|
x(r.$slots, "default")
|
|
2449
2449
|
], 2));
|
|
2450
2450
|
}
|
|
2451
|
-
}),
|
|
2451
|
+
}), Tn = ["data-sv-drop-target-survey-element"], Nn = { class: "svc-fake-title" }, Mn = /* @__PURE__ */ d("div", { class: "svc-question__drop-indicator svc-question__drop-indicator--left" }, null, -1), Sn = /* @__PURE__ */ d("div", { class: "svc-question__drop-indicator svc-question__drop-indicator--right" }, null, -1), Bn = /* @__PURE__ */ d("div", { class: "svc-question__drop-indicator svc-question__drop-indicator--top" }, null, -1), In = /* @__PURE__ */ d("div", { class: "svc-question__drop-indicator svc-question__drop-indicator--bottom" }, null, -1), En = { class: "svc-question__top-actions" }, Pn = {
|
|
2452
2452
|
key: 0,
|
|
2453
2453
|
class: "svc-panel__placeholder_frame-wrapper"
|
|
2454
|
-
}, Rn = { class: "svc-panel__placeholder_frame" },
|
|
2454
|
+
}, Rn = { class: "svc-panel__placeholder_frame" }, An = {
|
|
2455
2455
|
class: "svc-panel__placeholder",
|
|
2456
2456
|
"data-bind": "text: placeholderText"
|
|
2457
2457
|
}, oe = /* @__PURE__ */ g({
|
|
@@ -2466,19 +2466,19 @@ const wt = /* @__PURE__ */ g({
|
|
|
2466
2466
|
componentName: {},
|
|
2467
2467
|
componentData: {}
|
|
2468
2468
|
},
|
|
2469
|
-
setup(
|
|
2470
|
-
const t =
|
|
2469
|
+
setup(u) {
|
|
2470
|
+
const t = u, e = P(), o = z(
|
|
2471
2471
|
() => t.createModel(),
|
|
2472
2472
|
[() => t.componentName, () => t.componentData.data, () => t.componentData.element],
|
|
2473
2473
|
(l) => {
|
|
2474
2474
|
l.dispose();
|
|
2475
2475
|
}
|
|
2476
|
-
), n =
|
|
2476
|
+
), n = k(
|
|
2477
2477
|
() => o.value.isBannerShowing ? o.value.createBannerParams() : null
|
|
2478
2478
|
);
|
|
2479
2479
|
G(() => {
|
|
2480
2480
|
e.value && o.value && (o.value.rootElement = e.value);
|
|
2481
|
-
}),
|
|
2481
|
+
}), R(() => {
|
|
2482
2482
|
e.value && o.value && (o.value.rootElement = e.value);
|
|
2483
2483
|
});
|
|
2484
2484
|
const r = (l) => {
|
|
@@ -2489,9 +2489,9 @@ const wt = /* @__PURE__ */ g({
|
|
|
2489
2489
|
class: m(["svc-question__adorner", s(o).rootCss()]),
|
|
2490
2490
|
ref_key: "root",
|
|
2491
2491
|
ref: e,
|
|
2492
|
-
onDblclick: _[2] || (_[2] = (
|
|
2493
|
-
onMouseover: _[3] || (_[3] = (
|
|
2494
|
-
onMouseleave: _[4] || (_[4] = (
|
|
2492
|
+
onDblclick: _[2] || (_[2] = (N) => s(o).dblclick(N)),
|
|
2493
|
+
onMouseover: _[3] || (_[3] = (N) => s(o).hover(N, N.currentTarget)),
|
|
2494
|
+
onMouseleave: _[4] || (_[4] = (N) => s(o).hover(N, N.currentTarget)),
|
|
2495
2495
|
"data-sv-drop-target-survey-element": s(o).element.name || null,
|
|
2496
2496
|
"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); } }"
|
|
2497
2497
|
}, [
|
|
@@ -2499,20 +2499,21 @@ const wt = /* @__PURE__ */ g({
|
|
|
2499
2499
|
key: 0,
|
|
2500
2500
|
class: m(s(o).cssCollapsedHiddenHeader)
|
|
2501
2501
|
}, [
|
|
2502
|
-
l.element.hasTitle ? (a(),
|
|
2502
|
+
l.element.hasTitle ? (a(), b(s(c), {
|
|
2503
2503
|
key: 0,
|
|
2504
2504
|
is: "survey-element-title",
|
|
2505
|
-
element: l.element
|
|
2505
|
+
element: l.element,
|
|
2506
|
+
renderActions: !1
|
|
2506
2507
|
}, null, 8, ["element"])) : (a(), i("div", {
|
|
2507
2508
|
key: 1,
|
|
2508
2509
|
class: m(s(o).cssCollapsedHiddenTitle)
|
|
2509
2510
|
}, [
|
|
2510
|
-
d("span", Nn,
|
|
2511
|
+
d("span", Nn, f(l.element.name), 1)
|
|
2511
2512
|
], 2))
|
|
2512
2513
|
], 2)) : p("", !0),
|
|
2513
|
-
|
|
2514
|
-
onClick: _[1] || (_[1] = (
|
|
2515
|
-
s(o).select(s(o),
|
|
2514
|
+
h((a(), i("div", {
|
|
2515
|
+
onClick: _[1] || (_[1] = (N) => {
|
|
2516
|
+
s(o).select(s(o), N), N.stopPropagation();
|
|
2516
2517
|
}),
|
|
2517
2518
|
class: m(s(o).css())
|
|
2518
2519
|
}, [
|
|
@@ -2523,9 +2524,9 @@ const wt = /* @__PURE__ */ g({
|
|
|
2523
2524
|
s(o).allowDragging ? (a(), i("div", {
|
|
2524
2525
|
key: 0,
|
|
2525
2526
|
class: "svc-question__drag-area",
|
|
2526
|
-
onPointerdown: _[0] || (_[0] = (
|
|
2527
|
+
onPointerdown: _[0] || (_[0] = (N) => s(o).onPointerDown(N))
|
|
2527
2528
|
}, [
|
|
2528
|
-
v(s(
|
|
2529
|
+
v(s(c), A({
|
|
2529
2530
|
is: "sv-svg-icon",
|
|
2530
2531
|
class: "svc-question__drag-element"
|
|
2531
2532
|
}, {
|
|
@@ -2534,38 +2535,38 @@ const wt = /* @__PURE__ */ g({
|
|
|
2534
2535
|
size: "auto"
|
|
2535
2536
|
}), null, 16),
|
|
2536
2537
|
d("div", En, [
|
|
2537
|
-
v(s(
|
|
2538
|
+
v(s(c), {
|
|
2538
2539
|
is: "sv-action-bar",
|
|
2539
2540
|
model: s(o).topActionContainer,
|
|
2540
2541
|
handleClick: !1
|
|
2541
2542
|
}, null, 8, ["model"])
|
|
2542
2543
|
])
|
|
2543
2544
|
], 32)) : p("", !0),
|
|
2544
|
-
s(o).needToRenderContent ? (a(), i(
|
|
2545
|
-
v(s(
|
|
2545
|
+
s(o).needToRenderContent ? (a(), i(D, { key: 1 }, [
|
|
2546
|
+
v(s(c), {
|
|
2546
2547
|
is: "sv-template-renderer",
|
|
2547
2548
|
componentName: l.componentName,
|
|
2548
2549
|
componentData: l.componentData
|
|
2549
2550
|
}, null, 8, ["componentName", "componentData"]),
|
|
2550
2551
|
s(o).isEmptyElement && !l.showPlaceholderComponent ? (a(), i("div", Pn, [
|
|
2551
2552
|
d("div", Rn, [
|
|
2552
|
-
d("div",
|
|
2553
|
+
d("div", An, f(s(o).placeholderText), 1)
|
|
2553
2554
|
])
|
|
2554
2555
|
])) : p("", !0),
|
|
2555
|
-
s(o).isEmptyElement && l.showPlaceholderComponent ? (a(),
|
|
2556
|
+
s(o).isEmptyElement && l.showPlaceholderComponent ? (a(), b(s(c), A(
|
|
2556
2557
|
{
|
|
2557
2558
|
key: 1,
|
|
2558
2559
|
is: l.placeholderComponent
|
|
2559
2560
|
},
|
|
2560
2561
|
l.getPlaceholderComponentData && l.getPlaceholderComponentData(s(o))
|
|
2561
2562
|
), null, 16, ["is"])) : p("", !0),
|
|
2562
|
-
l.adornerComponent ? (a(),
|
|
2563
|
+
l.adornerComponent ? (a(), b(s(c), {
|
|
2563
2564
|
key: 2,
|
|
2564
2565
|
is: l.adornerComponent,
|
|
2565
2566
|
model: s(o),
|
|
2566
2567
|
element: l.element
|
|
2567
2568
|
}, null, 8, ["is", "model", "element"])) : p("", !0),
|
|
2568
|
-
s(o).isBannerShowing ? (a(),
|
|
2569
|
+
s(o).isBannerShowing ? (a(), b(s(c), {
|
|
2569
2570
|
key: 3,
|
|
2570
2571
|
is: "svc-question-banner",
|
|
2571
2572
|
model: n.value
|
|
@@ -2574,7 +2575,7 @@ const wt = /* @__PURE__ */ g({
|
|
|
2574
2575
|
class: "svc-question__content-actions",
|
|
2575
2576
|
onFocusin: r
|
|
2576
2577
|
}, [
|
|
2577
|
-
v(s(
|
|
2578
|
+
v(s(c), {
|
|
2578
2579
|
is: "sv-action-bar",
|
|
2579
2580
|
model: s(o).actionContainer,
|
|
2580
2581
|
handleClick: !1
|
|
@@ -2582,9 +2583,9 @@ const wt = /* @__PURE__ */ g({
|
|
|
2582
2583
|
], 32)
|
|
2583
2584
|
], 64)) : p("", !0)
|
|
2584
2585
|
], 2)), [
|
|
2585
|
-
[s(
|
|
2586
|
+
[s(M), { disableTabStop: !0 }]
|
|
2586
2587
|
])
|
|
2587
|
-
], 42,
|
|
2588
|
+
], 42, Tn)) : p("", !0);
|
|
2588
2589
|
}
|
|
2589
2590
|
}), ae = /* @__PURE__ */ g({
|
|
2590
2591
|
__name: "Question",
|
|
@@ -2592,34 +2593,34 @@ const wt = /* @__PURE__ */ g({
|
|
|
2592
2593
|
componentName: {},
|
|
2593
2594
|
componentData: {}
|
|
2594
2595
|
},
|
|
2595
|
-
setup(
|
|
2596
|
-
const t =
|
|
2596
|
+
setup(u) {
|
|
2597
|
+
const t = u, e = () => new ee(
|
|
2597
2598
|
t.componentData.data,
|
|
2598
2599
|
t.componentData.element,
|
|
2599
2600
|
null
|
|
2600
2601
|
);
|
|
2601
|
-
return (o, n) => (a(),
|
|
2602
|
+
return (o, n) => (a(), b(oe, {
|
|
2602
2603
|
createModel: e,
|
|
2603
2604
|
element: o.componentData.element,
|
|
2604
2605
|
"component-name": o.componentName,
|
|
2605
2606
|
"component-data": o.componentData
|
|
2606
2607
|
}, null, 8, ["element", "component-name", "component-data"]));
|
|
2607
2608
|
}
|
|
2608
|
-
}),
|
|
2609
|
+
}), Vn = /* @__PURE__ */ g({
|
|
2609
2610
|
__name: "QuestionImage",
|
|
2610
2611
|
props: {
|
|
2611
2612
|
componentName: {},
|
|
2612
2613
|
componentData: {}
|
|
2613
2614
|
},
|
|
2614
|
-
setup(
|
|
2615
|
-
const t =
|
|
2615
|
+
setup(u) {
|
|
2616
|
+
const t = u, e = () => new fe(
|
|
2616
2617
|
t.componentData.data,
|
|
2617
2618
|
t.componentData.element,
|
|
2618
2619
|
null
|
|
2619
2620
|
), o = (n) => ({
|
|
2620
2621
|
question: n == null ? void 0 : n.filePresentationModel
|
|
2621
2622
|
});
|
|
2622
|
-
return (n, r) => (a(),
|
|
2623
|
+
return (n, r) => (a(), b(oe, {
|
|
2623
2624
|
"create-model": e,
|
|
2624
2625
|
element: t.componentData.element,
|
|
2625
2626
|
"show-placeholder-component": !0,
|
|
@@ -2646,10 +2647,10 @@ const wt = /* @__PURE__ */ g({
|
|
|
2646
2647
|
model: {},
|
|
2647
2648
|
element: {}
|
|
2648
2649
|
},
|
|
2649
|
-
setup(
|
|
2650
|
-
return (t, e) => (a(), i(
|
|
2650
|
+
setup(u) {
|
|
2651
|
+
return (t, e) => (a(), i(D, null, [
|
|
2651
2652
|
!t.model.isUploading && !t.model.isEmptyElement ? (a(), i("div", zn, [
|
|
2652
|
-
t.model.allowEdit ? (a(), i(
|
|
2653
|
+
t.model.allowEdit ? (a(), i(D, { key: 0 }, [
|
|
2653
2654
|
d("input", {
|
|
2654
2655
|
type: "file",
|
|
2655
2656
|
"aria-hidden": "true",
|
|
@@ -2657,21 +2658,21 @@ const wt = /* @__PURE__ */ g({
|
|
|
2657
2658
|
accept: t.model.acceptedTypes,
|
|
2658
2659
|
class: "svc-choose-file-input"
|
|
2659
2660
|
}, null, 8, Ln),
|
|
2660
|
-
|
|
2661
|
-
v(s(
|
|
2661
|
+
h((a(), i("span", Fn, [
|
|
2662
|
+
v(s(c), {
|
|
2662
2663
|
is: "sv-svg-icon",
|
|
2663
2664
|
iconName: "icon-choosefile",
|
|
2664
2665
|
size: "auto",
|
|
2665
2666
|
onClick: e[0] || (e[0] = (o) => t.model.chooseFile(t.model))
|
|
2666
2667
|
})
|
|
2667
2668
|
])), [
|
|
2668
|
-
[s(
|
|
2669
|
+
[s(M)]
|
|
2669
2670
|
])
|
|
2670
2671
|
], 64)) : p("", !0)
|
|
2671
2672
|
])) : p("", !0),
|
|
2672
2673
|
t.model.isUploading && !t.model.isEmptyElement ? (a(), i("div", Kn, [
|
|
2673
2674
|
d("div", Un, [
|
|
2674
|
-
v(s(
|
|
2675
|
+
v(s(c), { is: "sv-loading-indicator" })
|
|
2675
2676
|
])
|
|
2676
2677
|
])) : p("", !0)
|
|
2677
2678
|
], 64));
|
|
@@ -2682,8 +2683,8 @@ const wt = /* @__PURE__ */ g({
|
|
|
2682
2683
|
componentData: {},
|
|
2683
2684
|
componentName: {}
|
|
2684
2685
|
},
|
|
2685
|
-
setup(
|
|
2686
|
-
const t =
|
|
2686
|
+
setup(u) {
|
|
2687
|
+
const t = u, e = z(
|
|
2687
2688
|
() => new we(
|
|
2688
2689
|
t.componentData.data,
|
|
2689
2690
|
t.componentData.question,
|
|
@@ -2692,12 +2693,12 @@ const wt = /* @__PURE__ */ g({
|
|
|
2692
2693
|
[() => t.componentData.data, () => t.componentData.question]
|
|
2693
2694
|
);
|
|
2694
2695
|
return (o, n) => {
|
|
2695
|
-
var r, l, _,
|
|
2696
|
+
var r, l, _, N, $, q, C, I, L;
|
|
2696
2697
|
return a(), i("div", Hn, [
|
|
2697
2698
|
d("div", {
|
|
2698
2699
|
class: m((r = s(e)) == null ? void 0 : r.controlsClassNames)
|
|
2699
2700
|
}, [
|
|
2700
|
-
(l = s(e)) != null && l.allowRemove ?
|
|
2701
|
+
(l = s(e)) != null && l.allowRemove ? h((a(), i("span", {
|
|
2701
2702
|
key: 0,
|
|
2702
2703
|
class: m((_ = s(e)) == null ? void 0 : _.removeClassNames),
|
|
2703
2704
|
onClick: n[0] || (n[0] = (J) => {
|
|
@@ -2705,35 +2706,35 @@ const wt = /* @__PURE__ */ g({
|
|
|
2705
2706
|
return (U = s(e)) == null ? void 0 : U.removeItem(s(e));
|
|
2706
2707
|
}),
|
|
2707
2708
|
role: "button",
|
|
2708
|
-
"aria-label": (
|
|
2709
|
+
"aria-label": (N = s(e)) == null ? void 0 : N.removeTooltip
|
|
2709
2710
|
}, [
|
|
2710
|
-
v(s(
|
|
2711
|
+
v(s(c), {
|
|
2711
2712
|
is: "sv-svg-icon",
|
|
2712
2713
|
iconName: "icon-remove_16x16",
|
|
2713
2714
|
size: "auto",
|
|
2714
|
-
title: (
|
|
2715
|
+
title: ($ = s(e)) == null ? void 0 : $.removeTooltip
|
|
2715
2716
|
}, null, 8, ["title"])
|
|
2716
2717
|
], 10, On)), [
|
|
2717
|
-
[s(
|
|
2718
|
+
[s(M)]
|
|
2718
2719
|
]) : p("", !0),
|
|
2719
|
-
(
|
|
2720
|
+
(q = s(e)) != null && q.allowAdd ? h((a(), i("span", {
|
|
2720
2721
|
key: 1,
|
|
2721
|
-
class: m((
|
|
2722
|
+
class: m((C = s(e)) == null ? void 0 : C.addClassNames),
|
|
2722
2723
|
onClick: n[1] || (n[1] = (J) => {
|
|
2723
2724
|
var U;
|
|
2724
2725
|
return (U = s(e)) == null ? void 0 : U.addItem(s(e));
|
|
2725
2726
|
}),
|
|
2726
2727
|
role: "button",
|
|
2727
|
-
"aria-label": (
|
|
2728
|
+
"aria-label": (I = s(e)) == null ? void 0 : I.addTooltip
|
|
2728
2729
|
}, [
|
|
2729
|
-
v(s(
|
|
2730
|
+
v(s(c), {
|
|
2730
2731
|
is: "sv-svg-icon",
|
|
2731
2732
|
iconName: "icon-add_16x16",
|
|
2732
2733
|
size: "auto",
|
|
2733
2734
|
title: (L = s(e)) == null ? void 0 : L.addTooltip
|
|
2734
2735
|
}, null, 8, ["title"])
|
|
2735
2736
|
], 10, Gn)), [
|
|
2736
|
-
[s(
|
|
2737
|
+
[s(M)]
|
|
2737
2738
|
]) : p("", !0)
|
|
2738
2739
|
], 2),
|
|
2739
2740
|
x(o.$slots, "default")
|
|
@@ -2748,18 +2749,18 @@ const wt = /* @__PURE__ */ g({
|
|
|
2748
2749
|
props: {
|
|
2749
2750
|
componentData: {}
|
|
2750
2751
|
},
|
|
2751
|
-
setup(
|
|
2752
|
-
const t =
|
|
2752
|
+
setup(u) {
|
|
2753
|
+
const t = u, e = k(() => t.componentData.creator), o = k(() => t.componentData.row), n = k(() => t.componentData.column), r = k(() => t.componentData.element), l = k(
|
|
2753
2754
|
() => t.componentData.question
|
|
2754
2755
|
), _ = z(
|
|
2755
2756
|
() => {
|
|
2756
|
-
var
|
|
2757
|
-
return t.componentData ? new
|
|
2757
|
+
var N;
|
|
2758
|
+
return t.componentData ? new De(
|
|
2758
2759
|
e.value,
|
|
2759
2760
|
r.value,
|
|
2760
2761
|
l.value,
|
|
2761
2762
|
o.value,
|
|
2762
|
-
n.value || ((
|
|
2763
|
+
n.value || ((N = r.value.cell) == null ? void 0 : N.column)
|
|
2763
2764
|
) : void 0;
|
|
2764
2765
|
},
|
|
2765
2766
|
[
|
|
@@ -2769,40 +2770,40 @@ const wt = /* @__PURE__ */ g({
|
|
|
2769
2770
|
() => l.value
|
|
2770
2771
|
]
|
|
2771
2772
|
);
|
|
2772
|
-
return (
|
|
2773
|
-
var
|
|
2773
|
+
return (N, $) => {
|
|
2774
|
+
var q, C;
|
|
2774
2775
|
return a(), i("div", {
|
|
2775
2776
|
tabindex: "-1",
|
|
2776
2777
|
class: "svc-matrix-cell",
|
|
2777
|
-
onClick:
|
|
2778
|
+
onClick: $[1] || ($[1] = (I) => {
|
|
2778
2779
|
var L;
|
|
2779
|
-
return (L = s(_)) == null ? void 0 : L.selectContext(s(_),
|
|
2780
|
+
return (L = s(_)) == null ? void 0 : L.selectContext(s(_), I);
|
|
2780
2781
|
}),
|
|
2781
|
-
onMouseover:
|
|
2782
|
+
onMouseover: $[2] || ($[2] = (I) => {
|
|
2782
2783
|
var L;
|
|
2783
|
-
return (L = s(_)) == null ? void 0 : L.hover(
|
|
2784
|
+
return (L = s(_)) == null ? void 0 : L.hover(I, I.currentTarget);
|
|
2784
2785
|
}),
|
|
2785
|
-
onMouseleave:
|
|
2786
|
+
onMouseleave: $[3] || ($[3] = (I) => {
|
|
2786
2787
|
var L;
|
|
2787
|
-
return (L = s(_)) == null ? void 0 : L.hover(
|
|
2788
|
+
return (L = s(_)) == null ? void 0 : L.hover(I, I.currentTarget);
|
|
2788
2789
|
})
|
|
2789
2790
|
}, [
|
|
2790
2791
|
d("div", {
|
|
2791
|
-
class: m(["svc-matrix-cell--selected", { "svc-visible": (
|
|
2792
|
+
class: m(["svc-matrix-cell--selected", { "svc-visible": (q = s(_)) == null ? void 0 : q.isSelected }])
|
|
2792
2793
|
}, null, 2),
|
|
2793
|
-
x(
|
|
2794
|
-
(
|
|
2795
|
-
|
|
2794
|
+
x(N.$slots, "default"),
|
|
2795
|
+
(C = s(_)) != null && C.isSupportCellEditor ? (a(), i("div", jn, [
|
|
2796
|
+
h((a(), i("span", {
|
|
2796
2797
|
class: "svc-matrix-cell__question-controls-button svc-context-button",
|
|
2797
|
-
onClick:
|
|
2798
|
+
onClick: $[0] || ($[0] = (I) => s(_).editQuestion(s(_), I))
|
|
2798
2799
|
}, [
|
|
2799
|
-
v(s(
|
|
2800
|
+
v(s(c), {
|
|
2800
2801
|
is: "sv-svg-icon",
|
|
2801
2802
|
iconName: "icon-edit",
|
|
2802
2803
|
size: "auto"
|
|
2803
2804
|
})
|
|
2804
2805
|
])), [
|
|
2805
|
-
[s(
|
|
2806
|
+
[s(M)]
|
|
2806
2807
|
])
|
|
2807
2808
|
])) : p("", !0)
|
|
2808
2809
|
], 32);
|
|
@@ -2814,13 +2815,13 @@ const wt = /* @__PURE__ */ g({
|
|
|
2814
2815
|
componentName: {},
|
|
2815
2816
|
componentData: {}
|
|
2816
2817
|
},
|
|
2817
|
-
setup(
|
|
2818
|
-
const t =
|
|
2818
|
+
setup(u) {
|
|
2819
|
+
const t = u, e = k(
|
|
2819
2820
|
() => t.componentData.element
|
|
2820
2821
|
);
|
|
2821
|
-
return
|
|
2822
|
+
return w(() => e.value), (o, n) => (a(), i("div", Zn, [
|
|
2822
2823
|
d("div", Xn, [
|
|
2823
|
-
v(s(
|
|
2824
|
+
v(s(c), A({ is: o.componentName }, o.componentData), null, 16, ["is"])
|
|
2824
2825
|
])
|
|
2825
2826
|
]));
|
|
2826
2827
|
}
|
|
@@ -2836,8 +2837,8 @@ const wt = /* @__PURE__ */ g({
|
|
|
2836
2837
|
componentName: {},
|
|
2837
2838
|
componentData: {}
|
|
2838
2839
|
},
|
|
2839
|
-
setup(
|
|
2840
|
-
const t =
|
|
2840
|
+
setup(u) {
|
|
2841
|
+
const t = u, e = z(
|
|
2841
2842
|
() => new ee(
|
|
2842
2843
|
t.componentData.data,
|
|
2843
2844
|
t.componentData.element,
|
|
@@ -2863,18 +2864,19 @@ const wt = /* @__PURE__ */ g({
|
|
|
2863
2864
|
key: 0,
|
|
2864
2865
|
class: m(s(e).cssCollapsedHiddenHeader)
|
|
2865
2866
|
}, [
|
|
2866
|
-
s(e).element.hasTitle ? (a(),
|
|
2867
|
+
s(e).element.hasTitle ? (a(), b(s(c), {
|
|
2867
2868
|
key: 0,
|
|
2868
2869
|
is: "survey-element-title",
|
|
2869
|
-
element: s(e).element
|
|
2870
|
+
element: s(e).element,
|
|
2871
|
+
renderActions: !1
|
|
2870
2872
|
}, null, 8, ["element"])) : (a(), i("div", {
|
|
2871
2873
|
key: 1,
|
|
2872
2874
|
class: m(s(e).cssCollapsedHiddenTitle)
|
|
2873
2875
|
}, [
|
|
2874
|
-
d("span", ea,
|
|
2876
|
+
d("span", ea, f(s(e).element.name), 1)
|
|
2875
2877
|
], 2))
|
|
2876
2878
|
], 2)) : p("", !0),
|
|
2877
|
-
|
|
2879
|
+
h((a(), i("div", {
|
|
2878
2880
|
class: m(s(e).css()),
|
|
2879
2881
|
onClick: r[2] || (r[2] = (l) => s(e).element.isInteractiveDesignElement ? s(e).select(s(e), l) : null)
|
|
2880
2882
|
}, [
|
|
@@ -2887,51 +2889,51 @@ const wt = /* @__PURE__ */ g({
|
|
|
2887
2889
|
class: "svc-question__drag-area",
|
|
2888
2890
|
onPointerdown: r[0] || (r[0] = (l) => s(e).onPointerDown(l))
|
|
2889
2891
|
}, [
|
|
2890
|
-
v(s(
|
|
2892
|
+
v(s(c), {
|
|
2891
2893
|
is: "sv-svg-icon",
|
|
2892
2894
|
class: "svc-question__drag-element",
|
|
2893
2895
|
iconName: "icon-drag-area-indicator_24x16",
|
|
2894
2896
|
size: "auto"
|
|
2895
2897
|
}),
|
|
2896
2898
|
d("div", aa, [
|
|
2897
|
-
v(s(
|
|
2899
|
+
v(s(c), {
|
|
2898
2900
|
is: "sv-action-bar",
|
|
2899
2901
|
model: s(e).topActionContainer,
|
|
2900
2902
|
handleClick: !1
|
|
2901
2903
|
}, null, 8, ["model"])
|
|
2902
2904
|
])
|
|
2903
2905
|
], 32)) : p("", !0),
|
|
2904
|
-
s(e).needToRenderContent ? (a(), i(
|
|
2905
|
-
v(s(
|
|
2906
|
+
s(e).needToRenderContent ? (a(), i(D, { key: 1 }, [
|
|
2907
|
+
v(s(c), A({ is: n.componentName }, n.componentData), null, 16, ["is"]),
|
|
2906
2908
|
s(e).isEmptyElement ? (a(), i("div", la, [
|
|
2907
2909
|
d("div", ia, [
|
|
2908
|
-
d("div", ra,
|
|
2909
|
-
s(e).showAddQuestionButton ?
|
|
2910
|
+
d("div", ra, f(s(e).placeholderText), 1),
|
|
2911
|
+
s(e).showAddQuestionButton ? h((a(), i("div", {
|
|
2910
2912
|
key: 0,
|
|
2911
2913
|
class: "svc-panel__add-new-question svc-action-button",
|
|
2912
2914
|
onClick: o
|
|
2913
2915
|
}, [
|
|
2914
|
-
v(s(
|
|
2916
|
+
v(s(c), {
|
|
2915
2917
|
is: "sv-svg-icon",
|
|
2916
2918
|
class: "svc-panel__add-new-question-icon",
|
|
2917
2919
|
iconName: "icon-add_24x24",
|
|
2918
2920
|
size: "auto"
|
|
2919
2921
|
}),
|
|
2920
|
-
d("span", da,
|
|
2922
|
+
d("span", da, f(s(e).addNewQuestionText), 1)
|
|
2921
2923
|
])), [
|
|
2922
|
-
[s(
|
|
2924
|
+
[s(M)]
|
|
2923
2925
|
]) : p("", !0)
|
|
2924
2926
|
])
|
|
2925
2927
|
])) : p("", !0),
|
|
2926
2928
|
!s(e).isEmptyElement && s(e).showAddQuestionButton ? (a(), i("div", ca, [
|
|
2927
2929
|
d("div", ua, [
|
|
2928
|
-
v(s(
|
|
2930
|
+
v(s(c), {
|
|
2929
2931
|
is: "sv-popup",
|
|
2930
2932
|
model: s(e).questionTypeSelectorModel.popupModel
|
|
2931
2933
|
}, null, 8, ["model"])
|
|
2932
2934
|
]),
|
|
2933
2935
|
d("div", pa, [
|
|
2934
|
-
v(s(
|
|
2936
|
+
v(s(c), {
|
|
2935
2937
|
is: "svc-add-new-question-btn",
|
|
2936
2938
|
item: { data: s(e) },
|
|
2937
2939
|
buttonClass: "svc-action-button",
|
|
@@ -2944,7 +2946,7 @@ const wt = /* @__PURE__ */ g({
|
|
|
2944
2946
|
class: "svc-question__content-actions",
|
|
2945
2947
|
onFocusin: r[1] || (r[1] = (l) => s(e).select(s(e), l))
|
|
2946
2948
|
}, [
|
|
2947
|
-
v(s(
|
|
2949
|
+
v(s(c), {
|
|
2948
2950
|
is: "sv-action-bar",
|
|
2949
2951
|
model: s(e).actionContainer,
|
|
2950
2952
|
handleClick: !1
|
|
@@ -2952,200 +2954,244 @@ const wt = /* @__PURE__ */ g({
|
|
|
2952
2954
|
], 32)) : p("", !0)
|
|
2953
2955
|
], 64)) : p("", !0)
|
|
2954
2956
|
], 2)), [
|
|
2955
|
-
[s(
|
|
2957
|
+
[s(M), { disableTabStop: !0 }]
|
|
2956
2958
|
])
|
|
2957
2959
|
], 42, xn)) : p("", !0);
|
|
2958
2960
|
}
|
|
2959
2961
|
}), ma = ["data-sv-drop-target-item-value"], _a = /* @__PURE__ */ d("div", { class: "svc-item-value__ghost" }, null, -1), ga = { class: "svc-item-value-controls" }, ba = {
|
|
2960
2962
|
key: 0,
|
|
2961
2963
|
class: "svc-item-value-controls__button svc-item-value-controls__drag"
|
|
2962
|
-
}, ya = ["aria-label"], ha = ["aria-label"], Ca =
|
|
2964
|
+
}, ya = ["aria-label"], ha = ["aria-label"], Ca = {
|
|
2965
|
+
key: 0,
|
|
2966
|
+
class: "svc-item-value-controls svc-choice-elements-button-container"
|
|
2967
|
+
}, qa = /* @__PURE__ */ g({
|
|
2963
2968
|
__name: "ItemValue",
|
|
2964
2969
|
props: {
|
|
2965
2970
|
componentName: {},
|
|
2966
2971
|
componentData: {}
|
|
2967
2972
|
},
|
|
2968
|
-
setup(
|
|
2969
|
-
const t =
|
|
2973
|
+
setup(u) {
|
|
2974
|
+
const t = P(), e = u, o = k(() => e.componentData.data.creator), n = k(() => e.componentData.question), r = k(() => e.componentData.item), l = W(
|
|
2970
2975
|
() => r.value,
|
|
2971
|
-
(q,
|
|
2972
|
-
q && t.value && q.setRootElement(t.value),
|
|
2976
|
+
(q, C) => {
|
|
2977
|
+
q && t.value && q.setRootElement(t.value), C && C.setRootElement(void 0);
|
|
2973
2978
|
}
|
|
2974
2979
|
);
|
|
2975
|
-
|
|
2980
|
+
R(() => {
|
|
2976
2981
|
t.value && r.value && r.value.setRootElement(t.value);
|
|
2977
2982
|
}), K(() => {
|
|
2978
2983
|
r.value.setRootElement(void 0);
|
|
2979
2984
|
});
|
|
2980
2985
|
const _ = z(
|
|
2981
|
-
() => new
|
|
2986
|
+
() => new Te(o.value, n.value, r.value),
|
|
2982
2987
|
[() => o.value, () => n.value, () => r.value],
|
|
2983
2988
|
(q) => {
|
|
2984
2989
|
q.dispose();
|
|
2985
2990
|
}
|
|
2986
2991
|
);
|
|
2987
|
-
|
|
2992
|
+
Y(() => {
|
|
2988
2993
|
l();
|
|
2989
|
-
})
|
|
2990
|
-
|
|
2991
|
-
|
|
2992
|
-
|
|
2993
|
-
|
|
2994
|
-
|
|
2995
|
-
|
|
2996
|
-
}
|
|
2997
|
-
|
|
2998
|
-
|
|
2999
|
-
|
|
3000
|
-
|
|
3001
|
-
|
|
3002
|
-
|
|
3003
|
-
|
|
3004
|
-
|
|
3005
|
-
|
|
3006
|
-
|
|
3007
|
-
|
|
3008
|
-
|
|
3009
|
-
|
|
3010
|
-
title: s(_).dragTooltip
|
|
3011
|
-
}, null, 8, ["title"])
|
|
3012
|
-
])) : p("", !0),
|
|
3013
|
-
s(_).allowAdd ? C((a(), i("span", {
|
|
3014
|
-
key: 1,
|
|
3015
|
-
class: "svc-item-value-controls__button svc-item-value-controls__add",
|
|
3016
|
-
onClick: b[0] || (b[0] = (w) => s(_).add(s(_))),
|
|
3017
|
-
role: "button",
|
|
3018
|
-
"aria-label": s(_).tooltip
|
|
3019
|
-
}, [
|
|
3020
|
-
v(s(u), {
|
|
3021
|
-
is: "sv-svg-icon",
|
|
3022
|
-
iconName: "icon-add_16x16",
|
|
3023
|
-
size: "auto",
|
|
3024
|
-
title: s(_).tooltip
|
|
3025
|
-
}, null, 8, ["title"])
|
|
3026
|
-
], 8, ya)), [
|
|
3027
|
-
[s(N)]
|
|
3028
|
-
]) : p("", !0),
|
|
3029
|
-
s(_).allowRemove ? C((a(), i("span", {
|
|
3030
|
-
key: 2,
|
|
3031
|
-
class: "svc-item-value-controls__button svc-item-value-controls__remove",
|
|
3032
|
-
onClick: b[1] || (b[1] = (w) => s(_).remove(s(_))),
|
|
3033
|
-
onBlur: b[2] || (b[2] = (w) => s(_).onFocusOut(w)),
|
|
3034
|
-
role: "button",
|
|
3035
|
-
"aria-label": s(_).tooltip
|
|
3036
|
-
}, [
|
|
3037
|
-
v(s(u), {
|
|
3038
|
-
is: "sv-svg-icon",
|
|
3039
|
-
iconName: "icon-remove_16x16",
|
|
3040
|
-
size: "auto",
|
|
3041
|
-
title: s(_).tooltip
|
|
3042
|
-
}, null, 8, ["title"])
|
|
3043
|
-
], 40, ha)), [
|
|
3044
|
-
[s(N)]
|
|
3045
|
-
]) : p("", !0)
|
|
3046
|
-
]),
|
|
2994
|
+
});
|
|
2995
|
+
const N = (q) => {
|
|
2996
|
+
const C = o.value.survey;
|
|
2997
|
+
if (C) {
|
|
2998
|
+
const I = C.getElementWrapperComponentName(q);
|
|
2999
|
+
if (I)
|
|
3000
|
+
return I;
|
|
3001
|
+
}
|
|
3002
|
+
return "panel";
|
|
3003
|
+
}, $ = (q) => {
|
|
3004
|
+
const C = o.value.survey;
|
|
3005
|
+
let I;
|
|
3006
|
+
return C && (I = C.getElementWrapperComponentData(q)), {
|
|
3007
|
+
componentName: "survey-panel",
|
|
3008
|
+
componentData: {
|
|
3009
|
+
element: q,
|
|
3010
|
+
data: I
|
|
3011
|
+
}
|
|
3012
|
+
};
|
|
3013
|
+
};
|
|
3014
|
+
return (q, C) => (a(), i(D, null, [
|
|
3047
3015
|
d("div", {
|
|
3048
|
-
class: "svc-item-
|
|
3049
|
-
|
|
3016
|
+
class: m(["svc-item-value-wrapper", {
|
|
3017
|
+
"svc-item-value--new": s(_).isNew,
|
|
3018
|
+
"svc-item-value--dragging": s(_).isDragging,
|
|
3019
|
+
"svc-item-value--ghost": s(_).isDragDropGhost,
|
|
3020
|
+
"svc-item-value--movedown": s(_).isDragDropMoveDown,
|
|
3021
|
+
"svc-item-value--moveup": s(_).isDragDropMoveUp
|
|
3022
|
+
}]),
|
|
3023
|
+
onPointerdown: C[5] || (C[5] = (I) => s(_).onPointerDown(I)),
|
|
3024
|
+
"data-sv-drop-target-item-value": s(_).isDraggable ? r.value.value : null,
|
|
3025
|
+
ref_key: "root",
|
|
3026
|
+
ref: t
|
|
3050
3027
|
}, [
|
|
3051
|
-
|
|
3052
|
-
|
|
3053
|
-
|
|
3028
|
+
_a,
|
|
3029
|
+
d("div", ga, [
|
|
3030
|
+
s(_).isDraggable ? (a(), i("span", ba, [
|
|
3031
|
+
v(s(c), {
|
|
3032
|
+
is: "sv-svg-icon",
|
|
3033
|
+
class: "svc-item-value-controls__drag-icon",
|
|
3034
|
+
iconName: "icon-drag-24x24",
|
|
3035
|
+
size: "auto",
|
|
3036
|
+
title: s(_).dragTooltip
|
|
3037
|
+
}, null, 8, ["title"])
|
|
3038
|
+
])) : p("", !0),
|
|
3039
|
+
s(_).allowAdd ? h((a(), i("span", {
|
|
3040
|
+
key: 1,
|
|
3041
|
+
class: "svc-item-value-controls__button svc-item-value-controls__add",
|
|
3042
|
+
onClick: C[0] || (C[0] = (I) => s(_).add(s(_))),
|
|
3043
|
+
role: "button",
|
|
3044
|
+
"aria-label": s(_).tooltip
|
|
3045
|
+
}, [
|
|
3046
|
+
v(s(c), {
|
|
3047
|
+
is: "sv-svg-icon",
|
|
3048
|
+
iconName: "icon-add_16x16",
|
|
3049
|
+
size: "auto",
|
|
3050
|
+
title: s(_).tooltip
|
|
3051
|
+
}, null, 8, ["title"])
|
|
3052
|
+
], 8, ya)), [
|
|
3053
|
+
[s(M)]
|
|
3054
|
+
]) : p("", !0),
|
|
3055
|
+
s(_).allowRemove ? h((a(), i("span", {
|
|
3056
|
+
key: 2,
|
|
3057
|
+
class: "svc-item-value-controls__button svc-item-value-controls__remove",
|
|
3058
|
+
onClick: C[1] || (C[1] = (I) => s(_).remove(s(_))),
|
|
3059
|
+
onBlur: C[2] || (C[2] = (I) => s(_).onFocusOut(I)),
|
|
3060
|
+
role: "button",
|
|
3061
|
+
"aria-label": s(_).tooltip
|
|
3062
|
+
}, [
|
|
3063
|
+
v(s(c), {
|
|
3064
|
+
is: "sv-svg-icon",
|
|
3065
|
+
iconName: "icon-remove_16x16",
|
|
3066
|
+
size: "auto",
|
|
3067
|
+
title: s(_).tooltip
|
|
3068
|
+
}, null, 8, ["title"])
|
|
3069
|
+
], 40, ha)), [
|
|
3070
|
+
[s(M)]
|
|
3071
|
+
]) : p("", !0)
|
|
3072
|
+
]),
|
|
3073
|
+
d("div", {
|
|
3074
|
+
class: "svc-item-value__item",
|
|
3075
|
+
onClick: C[3] || (C[3] = (I) => s(_).select(s(_), I))
|
|
3076
|
+
}, [
|
|
3077
|
+
v(s(c), A({ is: q.componentName }, q.componentData), null, 16, ["is"])
|
|
3078
|
+
]),
|
|
3079
|
+
s(_).canShowPanel() ? (a(), i("div", Ca, [
|
|
3080
|
+
h((a(), i("span", {
|
|
3081
|
+
role: "button",
|
|
3082
|
+
class: "svc-item-value-controls__button svc-item-value-controls__add svc-choice-elements-button",
|
|
3083
|
+
onClick: C[4] || (C[4] = (I) => s(_).togglePanel())
|
|
3084
|
+
}, [
|
|
3085
|
+
v(s(c), {
|
|
3086
|
+
is: "sv-svg-icon",
|
|
3087
|
+
iconName: s(_).showPanel ? "icon-collapsepanel-16x16" : "icon-expandpanel-16x16",
|
|
3088
|
+
size: "auto"
|
|
3089
|
+
}, null, 8, ["iconName"])
|
|
3090
|
+
])), [
|
|
3091
|
+
[s(M)]
|
|
3092
|
+
])
|
|
3093
|
+
])) : p("", !0)
|
|
3094
|
+
], 42, ma),
|
|
3095
|
+
s(_).showPanel ? (a(), b(s(c), A({
|
|
3096
|
+
key: 0,
|
|
3097
|
+
is: N(r.value.panel)
|
|
3098
|
+
}, $(r.value.panel)), null, 16, ["is"])) : p("", !0)
|
|
3099
|
+
], 64));
|
|
3054
3100
|
}
|
|
3055
|
-
}),
|
|
3101
|
+
}), $a = ["data-sv-drop-target-item-value"], ka = { class: "svc-image-item-value-wrapper__content" }, fa = ["accept"], wa = {
|
|
3056
3102
|
key: 0,
|
|
3057
3103
|
class: "svc-image-item-value__item"
|
|
3058
|
-
},
|
|
3104
|
+
}, Da = {
|
|
3059
3105
|
key: 2,
|
|
3060
3106
|
class: "svc-context-container svc-image-item-value-controls"
|
|
3061
|
-
}, Ta = { class: "svc-image-item-value__item" },
|
|
3107
|
+
}, Ta = { class: "svc-image-item-value__item" }, Na = { class: "sd-imagepicker__item sd-imagepicker__item--inline" }, Ma = { class: "sd-imagepicker__label" }, Sa = {
|
|
3062
3108
|
key: 0,
|
|
3063
3109
|
class: "svc-image-item-value__loading"
|
|
3064
|
-
},
|
|
3110
|
+
}, Ba = {
|
|
3065
3111
|
key: 0,
|
|
3066
3112
|
class: "svc-image-item-value__placeholder"
|
|
3067
|
-
},
|
|
3113
|
+
}, Ia = { key: 1 }, Ea = /* @__PURE__ */ g({
|
|
3068
3114
|
__name: "ImageItemValue",
|
|
3069
3115
|
props: {
|
|
3070
3116
|
componentName: {},
|
|
3071
3117
|
componentData: {}
|
|
3072
3118
|
},
|
|
3073
|
-
setup(
|
|
3074
|
-
const t =
|
|
3119
|
+
setup(u) {
|
|
3120
|
+
const t = u, e = k(() => t.componentData.data.creator), o = k(() => t.componentData.question), n = k(() => t.componentData.item), r = P(), l = z(
|
|
3075
3121
|
() => {
|
|
3076
|
-
const
|
|
3122
|
+
const $ = new Ne(
|
|
3077
3123
|
e.value,
|
|
3078
3124
|
o.value,
|
|
3079
3125
|
n.value,
|
|
3080
3126
|
null,
|
|
3081
3127
|
null
|
|
3082
3128
|
);
|
|
3083
|
-
return r != null && r.value && (
|
|
3129
|
+
return r != null && r.value && ($.itemsRoot = r.value), $;
|
|
3084
3130
|
},
|
|
3085
3131
|
[() => e.value, () => o.value, () => n.value],
|
|
3086
|
-
(
|
|
3087
|
-
|
|
3132
|
+
($) => {
|
|
3133
|
+
$.dispose();
|
|
3088
3134
|
}
|
|
3089
|
-
), _ = (
|
|
3090
|
-
|
|
3091
|
-
},
|
|
3092
|
-
const
|
|
3135
|
+
), _ = ($) => {
|
|
3136
|
+
$.preventDefault();
|
|
3137
|
+
}, N = k(() => {
|
|
3138
|
+
const $ = !l.value.getIsNewItemSingle();
|
|
3093
3139
|
return {
|
|
3094
|
-
width:
|
|
3095
|
-
height:
|
|
3140
|
+
width: $ ? o.value.renderedImageWidth + "px" : void 0,
|
|
3141
|
+
height: $ ? o.value.renderedImageHeight + "px" : void 0
|
|
3096
3142
|
};
|
|
3097
3143
|
});
|
|
3098
|
-
return
|
|
3144
|
+
return R(() => {
|
|
3099
3145
|
r.value && (l.value.itemsRoot = r.value);
|
|
3100
|
-
}), (
|
|
3101
|
-
onPointerdown:
|
|
3146
|
+
}), ($, q) => (a(), i("div", {
|
|
3147
|
+
onPointerdown: q[5] || (q[5] = (C) => s(l).onPointerDown(C)),
|
|
3102
3148
|
class: m(s(l).getRootCss()),
|
|
3103
3149
|
"data-sv-drop-target-item-value": s(l).isDraggable ? n.value.value : null,
|
|
3104
3150
|
ref_key: "root",
|
|
3105
3151
|
ref: r,
|
|
3106
3152
|
onDragstart: _,
|
|
3107
|
-
onDragenter:
|
|
3108
|
-
onDragover:
|
|
3109
|
-
onDragleave:
|
|
3110
|
-
onDrop:
|
|
3153
|
+
onDragenter: q[6] || (q[6] = (C) => s(l).onDragEnter(C)),
|
|
3154
|
+
onDragover: q[7] || (q[7] = (C) => s(l).onDragOver(C)),
|
|
3155
|
+
onDragleave: q[8] || (q[8] = (C) => s(l).onDragLeave(C)),
|
|
3156
|
+
onDrop: q[9] || (q[9] = (C) => s(l).onDrop(C))
|
|
3111
3157
|
}, [
|
|
3112
3158
|
d("div", {
|
|
3113
3159
|
class: "svc-image-item-value-wrapper__ghost",
|
|
3114
|
-
style: F(
|
|
3160
|
+
style: F(N.value)
|
|
3115
3161
|
}, null, 4),
|
|
3116
|
-
d("div",
|
|
3162
|
+
d("div", ka, [
|
|
3117
3163
|
d("input", {
|
|
3118
3164
|
type: "file",
|
|
3119
3165
|
"aria-hidden": "true",
|
|
3120
3166
|
tabindex: "-1",
|
|
3121
3167
|
accept: s(l).acceptedTypes,
|
|
3122
3168
|
class: "svc-choose-file-input"
|
|
3123
|
-
}, null, 8,
|
|
3124
|
-
!s(l).isNew && !s(l).isUploading ? (a(), i(
|
|
3125
|
-
s(l).isNew ? p("", !0) : (a(), i("div",
|
|
3126
|
-
v(s(
|
|
3169
|
+
}, null, 8, fa),
|
|
3170
|
+
!s(l).isNew && !s(l).isUploading ? (a(), i(D, { key: 0 }, [
|
|
3171
|
+
s(l).isNew ? p("", !0) : (a(), i("div", wa, [
|
|
3172
|
+
v(s(c), A({ is: $.componentName }, $.componentData), null, 16, ["is"])
|
|
3127
3173
|
])),
|
|
3128
3174
|
s(l).isDraggable && s(l).canRenderControls ? (a(), i("span", {
|
|
3129
3175
|
key: 1,
|
|
3130
3176
|
class: "svc-context-button svc-image-item-value-controls__drag-area-indicator",
|
|
3131
|
-
onPointerdown:
|
|
3177
|
+
onPointerdown: q[0] || (q[0] = (C) => s(l).onPointerDown(C)),
|
|
3132
3178
|
title: void 0,
|
|
3133
3179
|
"aria-label": void 0
|
|
3134
3180
|
}, [
|
|
3135
|
-
v(s(
|
|
3181
|
+
v(s(c), {
|
|
3136
3182
|
is: "sv-svg-icon",
|
|
3137
3183
|
iconName: "icon-drag-24x24",
|
|
3138
3184
|
size: "auto"
|
|
3139
3185
|
})
|
|
3140
3186
|
], 32)) : p("", !0),
|
|
3141
|
-
s(l).canRenderControls ? (a(), i("div",
|
|
3142
|
-
|
|
3187
|
+
s(l).canRenderControls ? (a(), i("div", Da, [
|
|
3188
|
+
h((a(), i("span", {
|
|
3143
3189
|
class: "svc-context-button",
|
|
3144
|
-
onClick:
|
|
3190
|
+
onClick: q[1] || (q[1] = (C) => s(l).chooseFile(s(l))),
|
|
3145
3191
|
title: void 0,
|
|
3146
3192
|
"aria-label": void 0
|
|
3147
3193
|
}, [
|
|
3148
|
-
v(s(
|
|
3194
|
+
v(s(c), {
|
|
3149
3195
|
is: "sv-svg-icon",
|
|
3150
3196
|
role: "button",
|
|
3151
3197
|
iconName: "icon-choosefile",
|
|
@@ -3153,15 +3199,15 @@ const wt = /* @__PURE__ */ g({
|
|
|
3153
3199
|
title: s(l).selectFileTitle
|
|
3154
3200
|
}, null, 8, ["title"])
|
|
3155
3201
|
])), [
|
|
3156
|
-
[s(
|
|
3202
|
+
[s(M)]
|
|
3157
3203
|
]),
|
|
3158
|
-
|
|
3204
|
+
h((a(), i("span", {
|
|
3159
3205
|
class: "svc-context-button svc-context-button--danger",
|
|
3160
|
-
onClick:
|
|
3206
|
+
onClick: q[2] || (q[2] = (C) => s(l).remove(s(l))),
|
|
3161
3207
|
title: void 0,
|
|
3162
3208
|
"aria-label": void 0
|
|
3163
3209
|
}, [
|
|
3164
|
-
v(s(
|
|
3210
|
+
v(s(c), {
|
|
3165
3211
|
is: "sv-svg-icon",
|
|
3166
3212
|
role: "button",
|
|
3167
3213
|
iconName: "icon-delete",
|
|
@@ -3169,19 +3215,19 @@ const wt = /* @__PURE__ */ g({
|
|
|
3169
3215
|
title: s(l).removeFileTitle
|
|
3170
3216
|
}, null, 8, ["title"])
|
|
3171
3217
|
])), [
|
|
3172
|
-
[s(
|
|
3218
|
+
[s(M)]
|
|
3173
3219
|
])
|
|
3174
3220
|
])) : p("", !0)
|
|
3175
|
-
], 64)) : (a(), i(
|
|
3221
|
+
], 64)) : (a(), i(D, { key: 1 }, [
|
|
3176
3222
|
d("div", Ta, [
|
|
3177
|
-
d("div",
|
|
3178
|
-
d("label",
|
|
3223
|
+
d("div", Na, [
|
|
3224
|
+
d("label", Ma, [
|
|
3179
3225
|
d("div", {
|
|
3180
|
-
style: F(
|
|
3226
|
+
style: F(N.value),
|
|
3181
3227
|
class: "sd-imagepicker__image"
|
|
3182
3228
|
}, [
|
|
3183
|
-
s(l).isUploading ? (a(), i("div",
|
|
3184
|
-
v(s(
|
|
3229
|
+
s(l).isUploading ? (a(), i("div", Sa, [
|
|
3230
|
+
v(s(c), { is: "sv-loading-indicator" })
|
|
3185
3231
|
])) : p("", !0)
|
|
3186
3232
|
], 4)
|
|
3187
3233
|
])
|
|
@@ -3190,39 +3236,39 @@ const wt = /* @__PURE__ */ g({
|
|
|
3190
3236
|
s(l).allowAdd && !s(l).isUploading ? (a(), i("div", {
|
|
3191
3237
|
key: 0,
|
|
3192
3238
|
class: "svc-image-item-value-controls",
|
|
3193
|
-
onPointerdown:
|
|
3239
|
+
onPointerdown: q[4] || (q[4] = (C) => C.stopPropagation())
|
|
3194
3240
|
}, [
|
|
3195
|
-
s(l).showPlaceholder ? (a(), i("span",
|
|
3196
|
-
|
|
3241
|
+
s(l).showPlaceholder ? (a(), i("span", Ba, f(s(l).placeholderText), 1)) : p("", !0),
|
|
3242
|
+
h((a(), i("span", {
|
|
3197
3243
|
class: m(s(l).addButtonCss),
|
|
3198
|
-
onClick:
|
|
3244
|
+
onClick: q[3] || (q[3] = (C) => s(l).chooseNewFile(s(l)))
|
|
3199
3245
|
}, [
|
|
3200
|
-
s(l).showChooseButtonAsIcon ? (a(),
|
|
3246
|
+
s(l).showChooseButtonAsIcon ? (a(), b(s(c), {
|
|
3201
3247
|
key: 0,
|
|
3202
3248
|
is: "sv-svg-icon",
|
|
3203
3249
|
iconName: "icon-add-lg",
|
|
3204
3250
|
size: "auto",
|
|
3205
3251
|
title: s(l).addFileTitle
|
|
3206
|
-
}, null, 8, ["title"])) : (a(), i("span",
|
|
3252
|
+
}, null, 8, ["title"])) : (a(), i("span", Ia, f(s(l).chooseImageText), 1))
|
|
3207
3253
|
], 2)), [
|
|
3208
|
-
[s(
|
|
3254
|
+
[s(M)]
|
|
3209
3255
|
])
|
|
3210
3256
|
], 32)) : p("", !0)
|
|
3211
3257
|
], 64))
|
|
3212
3258
|
])
|
|
3213
|
-
], 42,
|
|
3259
|
+
], 42, $a));
|
|
3214
3260
|
}
|
|
3215
|
-
}),
|
|
3261
|
+
}), Pa = /* @__PURE__ */ g({
|
|
3216
3262
|
__name: "QuestionEditor",
|
|
3217
3263
|
props: {
|
|
3218
3264
|
survey: {},
|
|
3219
3265
|
style: {}
|
|
3220
3266
|
},
|
|
3221
|
-
setup(
|
|
3222
|
-
const t =
|
|
3267
|
+
setup(u) {
|
|
3268
|
+
const t = u, e = k(() => {
|
|
3223
3269
|
var r;
|
|
3224
3270
|
return (r = t.survey) == null ? void 0 : r.getAllQuestions()[0];
|
|
3225
|
-
}), o =
|
|
3271
|
+
}), o = k(() => {
|
|
3226
3272
|
const r = t.survey;
|
|
3227
3273
|
if (r && e.value) {
|
|
3228
3274
|
const l = r.getElementWrapperComponentName(e.value);
|
|
@@ -3230,7 +3276,7 @@ const wt = /* @__PURE__ */ g({
|
|
|
3230
3276
|
return l;
|
|
3231
3277
|
}
|
|
3232
3278
|
return "survey-question";
|
|
3233
|
-
}), n =
|
|
3279
|
+
}), n = k(() => {
|
|
3234
3280
|
const r = t.survey;
|
|
3235
3281
|
let l;
|
|
3236
3282
|
return r && e.value && (l = r.getElementWrapperComponentData(e.value)), {
|
|
@@ -3244,41 +3290,41 @@ const wt = /* @__PURE__ */ g({
|
|
|
3244
3290
|
return (r, l) => (a(), i("div", {
|
|
3245
3291
|
style: F(t.style)
|
|
3246
3292
|
}, [
|
|
3247
|
-
v(s(
|
|
3293
|
+
v(s(c), A({ is: o.value }, n.value), null, 16, ["is"])
|
|
3248
3294
|
], 4));
|
|
3249
3295
|
}
|
|
3250
|
-
}),
|
|
3296
|
+
}), Ra = ["accept"], Aa = /* @__PURE__ */ d("svg", null, [
|
|
3251
3297
|
/* @__PURE__ */ d("use", { "xlink:href": "#icon-image-48x48" })
|
|
3252
3298
|
], -1), Va = [
|
|
3253
|
-
|
|
3254
|
-
],
|
|
3299
|
+
Aa
|
|
3300
|
+
], za = { class: "svc-context-container svc-logo-image-controls" }, La = {
|
|
3255
3301
|
key: 2,
|
|
3256
3302
|
class: "svc-logo-image__loading"
|
|
3257
|
-
},
|
|
3303
|
+
}, Fa = /* @__PURE__ */ g({
|
|
3258
3304
|
__name: "Logo",
|
|
3259
3305
|
props: {
|
|
3260
3306
|
data: {}
|
|
3261
3307
|
},
|
|
3262
|
-
setup(
|
|
3263
|
-
const t =
|
|
3308
|
+
setup(u) {
|
|
3309
|
+
const t = u, e = k(() => t.data), o = k(() => e.value.survey), n = P(), r = z(
|
|
3264
3310
|
() => new Me(e.value, null),
|
|
3265
3311
|
[() => e.value]
|
|
3266
|
-
), l =
|
|
3312
|
+
), l = P(), _ = () => {
|
|
3267
3313
|
l.value = o.value.locLogo.renderedHtml;
|
|
3268
3314
|
};
|
|
3269
3315
|
return W(
|
|
3270
3316
|
() => o.value.locLogo,
|
|
3271
|
-
(
|
|
3272
|
-
_(),
|
|
3317
|
+
(N, $) => {
|
|
3318
|
+
_(), N && N.onStringChanged.add(_), $ && N.onStringChanged.remove(_);
|
|
3273
3319
|
},
|
|
3274
3320
|
{
|
|
3275
3321
|
immediate: !0
|
|
3276
3322
|
}
|
|
3277
|
-
),
|
|
3323
|
+
), R(() => {
|
|
3278
3324
|
n.value && (r.value.root = n.value);
|
|
3279
3325
|
}), K(() => {
|
|
3280
3326
|
r.value && (r.value.root = void 0);
|
|
3281
|
-
}), (
|
|
3327
|
+
}), (N, $) => (a(), i("div", {
|
|
3282
3328
|
class: "svc-logo-image",
|
|
3283
3329
|
ref_key: "root",
|
|
3284
3330
|
ref: n
|
|
@@ -3289,117 +3335,117 @@ const wt = /* @__PURE__ */ g({
|
|
|
3289
3335
|
tabindex: "-1",
|
|
3290
3336
|
accept: s(r).acceptedTypes,
|
|
3291
3337
|
class: "svc-choose-file-input"
|
|
3292
|
-
}, null, 8,
|
|
3293
|
-
l.value ? p("", !0) : (a(), i(
|
|
3294
|
-
s(r).allowEdit && !s(r).isUploading ?
|
|
3338
|
+
}, null, 8, Ra),
|
|
3339
|
+
l.value ? p("", !0) : (a(), i(D, { key: 0 }, [
|
|
3340
|
+
s(r).allowEdit && !s(r).isUploading ? h((a(), i("div", {
|
|
3295
3341
|
key: 0,
|
|
3296
3342
|
class: "svc-logo-image-placeholder",
|
|
3297
|
-
onClick:
|
|
3343
|
+
onClick: $[0] || ($[0] = (q) => s(r).chooseFile(s(r)))
|
|
3298
3344
|
}, Va)), [
|
|
3299
|
-
[s(
|
|
3345
|
+
[s(M)]
|
|
3300
3346
|
]) : p("", !0)
|
|
3301
3347
|
], 64)),
|
|
3302
3348
|
l.value && !s(r).isUploading ? (a(), i("div", {
|
|
3303
3349
|
key: 1,
|
|
3304
3350
|
class: m(s(r).containerCss)
|
|
3305
3351
|
}, [
|
|
3306
|
-
d("div",
|
|
3307
|
-
|
|
3352
|
+
d("div", za, [
|
|
3353
|
+
h((a(), i("span", {
|
|
3308
3354
|
class: "svc-context-button",
|
|
3309
|
-
onClick:
|
|
3355
|
+
onClick: $[1] || ($[1] = (q) => s(r).chooseFile(s(r))),
|
|
3310
3356
|
title: void 0,
|
|
3311
3357
|
"aria-label": void 0
|
|
3312
3358
|
}, [
|
|
3313
|
-
v(s(
|
|
3359
|
+
v(s(c), {
|
|
3314
3360
|
is: "sv-svg-icon",
|
|
3315
3361
|
iconName: "icon-choosefile",
|
|
3316
3362
|
size: "auto"
|
|
3317
3363
|
})
|
|
3318
3364
|
])), [
|
|
3319
|
-
[s(
|
|
3365
|
+
[s(M)]
|
|
3320
3366
|
]),
|
|
3321
|
-
|
|
3367
|
+
h((a(), i("span", {
|
|
3322
3368
|
class: "svc-context-button svc-context-button--danger",
|
|
3323
|
-
onClick:
|
|
3369
|
+
onClick: $[2] || ($[2] = (q) => s(r).remove(s(r))),
|
|
3324
3370
|
title: void 0,
|
|
3325
3371
|
"aria-label": void 0
|
|
3326
3372
|
}, [
|
|
3327
|
-
v(s(
|
|
3373
|
+
v(s(c), {
|
|
3328
3374
|
is: "sv-svg-icon",
|
|
3329
3375
|
iconName: "icon-clear",
|
|
3330
3376
|
size: "auto"
|
|
3331
3377
|
})
|
|
3332
3378
|
])), [
|
|
3333
|
-
[s(
|
|
3379
|
+
[s(M)]
|
|
3334
3380
|
])
|
|
3335
3381
|
]),
|
|
3336
|
-
v(s(
|
|
3382
|
+
v(s(c), {
|
|
3337
3383
|
is: "sv-logo-image",
|
|
3338
3384
|
data: o.value
|
|
3339
3385
|
}, null, 8, ["data"])
|
|
3340
3386
|
], 2)) : p("", !0),
|
|
3341
|
-
s(r).isUploading ? (a(), i("div",
|
|
3342
|
-
v(s(
|
|
3387
|
+
s(r).isUploading ? (a(), i("div", La, [
|
|
3388
|
+
v(s(c), { is: "sv-loading-indicator" })
|
|
3343
3389
|
])) : p("", !0)
|
|
3344
3390
|
], 512));
|
|
3345
3391
|
}
|
|
3346
|
-
}),
|
|
3392
|
+
}), Ka = {
|
|
3347
3393
|
key: 0,
|
|
3348
3394
|
class: "svc-search"
|
|
3349
|
-
},
|
|
3395
|
+
}, Ua = { class: "svc-search__search-icon" }, Qa = ["aria-label", "placeholder", "tabindex"], Ha = { class: "svc-search__toolbar" }, Oa = { class: "svc-search__toolbar-counter" }, Ga = /* @__PURE__ */ g({
|
|
3350
3396
|
__name: "Search",
|
|
3351
3397
|
props: {
|
|
3352
3398
|
model: {}
|
|
3353
3399
|
},
|
|
3354
|
-
setup(
|
|
3355
|
-
const t =
|
|
3356
|
-
|
|
3357
|
-
const e =
|
|
3400
|
+
setup(u) {
|
|
3401
|
+
const t = u;
|
|
3402
|
+
w(() => t.model);
|
|
3403
|
+
const e = k({
|
|
3358
3404
|
get: () => t.model.filterString,
|
|
3359
3405
|
set: (o) => {
|
|
3360
3406
|
const n = t.model;
|
|
3361
3407
|
n.filterString = o;
|
|
3362
3408
|
}
|
|
3363
3409
|
});
|
|
3364
|
-
return (o, n) => o.model.isVisible ? (a(), i("div",
|
|
3365
|
-
d("div",
|
|
3366
|
-
v(s(
|
|
3410
|
+
return (o, n) => o.model.isVisible ? (a(), i("div", Ka, [
|
|
3411
|
+
d("div", Ua, [
|
|
3412
|
+
v(s(c), {
|
|
3367
3413
|
is: "sv-svg-icon",
|
|
3368
3414
|
iconName: "icon-search",
|
|
3369
3415
|
size: "auto"
|
|
3370
3416
|
})
|
|
3371
3417
|
]),
|
|
3372
|
-
|
|
3418
|
+
h(d("input", {
|
|
3373
3419
|
type: "text",
|
|
3374
3420
|
class: "svc-search__input",
|
|
3375
3421
|
"onUpdate:modelValue": n[0] || (n[0] = (r) => e.value = r),
|
|
3376
3422
|
"aria-label": o.model.filterStringPlaceholder,
|
|
3377
3423
|
placeholder: o.model.filterStringPlaceholder,
|
|
3378
3424
|
tabindex: o.model.getTabIndex()
|
|
3379
|
-
}, null, 8,
|
|
3425
|
+
}, null, 8, Qa), [
|
|
3380
3426
|
[de, e.value]
|
|
3381
3427
|
]),
|
|
3382
|
-
d("div",
|
|
3383
|
-
d("div",
|
|
3384
|
-
v(s(
|
|
3428
|
+
d("div", Ha, [
|
|
3429
|
+
d("div", Oa, f(o.model.matchCounterText), 1),
|
|
3430
|
+
v(s(c), {
|
|
3385
3431
|
is: "sv-action-bar",
|
|
3386
3432
|
model: o.model.searchActionBar
|
|
3387
3433
|
}, null, 8, ["model"])
|
|
3388
3434
|
])
|
|
3389
3435
|
])) : p("", !0);
|
|
3390
3436
|
}
|
|
3391
|
-
}),
|
|
3437
|
+
}), Wa = ["title"], ja = /* @__PURE__ */ g({
|
|
3392
3438
|
__name: "PageNavigator",
|
|
3393
3439
|
props: {
|
|
3394
3440
|
pagesController: {},
|
|
3395
3441
|
pageEditMode: {}
|
|
3396
3442
|
},
|
|
3397
|
-
setup(
|
|
3398
|
-
const t =
|
|
3443
|
+
setup(u) {
|
|
3444
|
+
const t = u, e = z(
|
|
3399
3445
|
() => new Se(t.pagesController, t.pageEditMode),
|
|
3400
3446
|
[() => t.pagesController, () => t.pageEditMode]
|
|
3401
|
-
), o =
|
|
3402
|
-
return
|
|
3447
|
+
), o = P();
|
|
3448
|
+
return R(() => {
|
|
3403
3449
|
if (t.pageEditMode !== "bypage") {
|
|
3404
3450
|
const n = o.value, r = e.value;
|
|
3405
3451
|
n && r.attachToUI(n);
|
|
@@ -3409,34 +3455,34 @@ const wt = /* @__PURE__ */ g({
|
|
|
3409
3455
|
n.stopItemsContainerHeightObserver(), n.setScrollableContainer(void 0);
|
|
3410
3456
|
}), K(() => {
|
|
3411
3457
|
e.value.dispose();
|
|
3412
|
-
}), (n, r) =>
|
|
3458
|
+
}), (n, r) => h((a(), i("div", {
|
|
3413
3459
|
class: "svc-page-navigator",
|
|
3414
3460
|
ref_key: "root",
|
|
3415
3461
|
ref: o
|
|
3416
3462
|
}, [
|
|
3417
3463
|
d("div", null, [
|
|
3418
|
-
|
|
3464
|
+
h((a(), i("div", {
|
|
3419
3465
|
role: "button",
|
|
3420
3466
|
class: m(["svc-page-navigator__selector svc-page-navigator__button", { "svc-page-navigator__button--pressed": s(e).isPopupOpened }]),
|
|
3421
3467
|
onClick: r[0] || (r[0] = (l) => s(e).togglePageSelector(l)),
|
|
3422
3468
|
title: s(e).pageSelectorCaption
|
|
3423
3469
|
}, [
|
|
3424
|
-
v(s(
|
|
3470
|
+
v(s(c), {
|
|
3425
3471
|
is: "sv-svg-icon",
|
|
3426
3472
|
class: "svc-page-navigator__button-icon",
|
|
3427
3473
|
iconName: s(e).icon,
|
|
3428
3474
|
size: "auto"
|
|
3429
3475
|
}, null, 8, ["iconName"])
|
|
3430
|
-
], 10,
|
|
3431
|
-
[s(
|
|
3476
|
+
], 10, Wa)), [
|
|
3477
|
+
[s(M)]
|
|
3432
3478
|
]),
|
|
3433
|
-
v(s(
|
|
3479
|
+
v(s(c), {
|
|
3434
3480
|
is: "sv-popup",
|
|
3435
3481
|
model: s(e).popupModel
|
|
3436
3482
|
}, null, 8, ["model"])
|
|
3437
3483
|
]),
|
|
3438
3484
|
d("div", null, [
|
|
3439
|
-
(a(!0), i(
|
|
3485
|
+
(a(!0), i(D, null, V(s(e).visibleItems, (l) => (a(), b(s(c), {
|
|
3440
3486
|
is: "svc-page-navigator-item",
|
|
3441
3487
|
key: l.id,
|
|
3442
3488
|
model: l
|
|
@@ -3446,23 +3492,23 @@ const wt = /* @__PURE__ */ g({
|
|
|
3446
3492
|
[Q, s(e).visible]
|
|
3447
3493
|
]);
|
|
3448
3494
|
}
|
|
3449
|
-
}),
|
|
3450
|
-
|
|
3451
|
-
],
|
|
3495
|
+
}), Ja = { class: "svc-page-navigator-item" }, Za = ["title"], Xa = /* @__PURE__ */ d("div", { class: "svc-page-navigator-item__dot-content" }, null, -1), Ya = [
|
|
3496
|
+
Xa
|
|
3497
|
+
], xa = { class: "svc-page-navigator-item__banner" }, el = { class: "svc-page-navigator-item__text" }, ol = /* @__PURE__ */ d("span", { class: "svc-page-navigator-item__dot" }, [
|
|
3452
3498
|
/* @__PURE__ */ d("span", { class: "svc-page-navigator-item__dot-content" })
|
|
3453
|
-
], -1),
|
|
3499
|
+
], -1), sl = /* @__PURE__ */ g({
|
|
3454
3500
|
__name: "PageNavigatorItem",
|
|
3455
3501
|
props: {
|
|
3456
3502
|
model: {}
|
|
3457
3503
|
},
|
|
3458
|
-
setup(
|
|
3459
|
-
const t =
|
|
3460
|
-
|
|
3504
|
+
setup(u) {
|
|
3505
|
+
const t = u;
|
|
3506
|
+
w(() => t.model);
|
|
3461
3507
|
const e = (o) => {
|
|
3462
3508
|
t.model.action(), o.stopPropagation(), o.preventDefault();
|
|
3463
3509
|
};
|
|
3464
|
-
return (o, n) => (a(), i("div",
|
|
3465
|
-
|
|
3510
|
+
return (o, n) => (a(), i("div", Ja, [
|
|
3511
|
+
h((a(), i("div", {
|
|
3466
3512
|
role: "button",
|
|
3467
3513
|
class: m(["svc-page-navigator-item-content", {
|
|
3468
3514
|
"svc-page-navigator-item--selected": o.model.active,
|
|
@@ -3473,24 +3519,24 @@ const wt = /* @__PURE__ */ g({
|
|
|
3473
3519
|
d("div", {
|
|
3474
3520
|
class: "svc-page-navigator-item__dot",
|
|
3475
3521
|
title: o.model.title
|
|
3476
|
-
},
|
|
3477
|
-
d("div",
|
|
3478
|
-
d("span",
|
|
3479
|
-
|
|
3522
|
+
}, Ya, 8, Za),
|
|
3523
|
+
d("div", xa, [
|
|
3524
|
+
d("span", el, f(o.model.title), 1),
|
|
3525
|
+
ol
|
|
3480
3526
|
])
|
|
3481
3527
|
], 2)), [
|
|
3482
|
-
[s(
|
|
3528
|
+
[s(M)]
|
|
3483
3529
|
])
|
|
3484
3530
|
]));
|
|
3485
3531
|
}
|
|
3486
|
-
}),
|
|
3532
|
+
}), tl = { class: "svc-question__dropdown-choices--wrapper" }, nl = { class: "svc-question__dropdown-choices" }, al = /* @__PURE__ */ g({
|
|
3487
3533
|
__name: "Dropdown",
|
|
3488
3534
|
props: {
|
|
3489
3535
|
model: {},
|
|
3490
3536
|
element: {}
|
|
3491
3537
|
},
|
|
3492
|
-
setup(
|
|
3493
|
-
const t =
|
|
3538
|
+
setup(u) {
|
|
3539
|
+
const t = u, e = (n) => t.element.getItemValueWrapperComponentName(n) || t.model.itemComponent, o = (n) => ({
|
|
3494
3540
|
componentName: t.model.itemComponent,
|
|
3495
3541
|
componentData: {
|
|
3496
3542
|
question: t.element,
|
|
@@ -3498,19 +3544,19 @@ const wt = /* @__PURE__ */ g({
|
|
|
3498
3544
|
data: t.element.getItemValueWrapperComponentData(n)
|
|
3499
3545
|
}
|
|
3500
3546
|
});
|
|
3501
|
-
return (n, r) => (a(), i("div",
|
|
3547
|
+
return (n, r) => (a(), i("div", tl, [
|
|
3502
3548
|
d("div", null, [
|
|
3503
|
-
d("div",
|
|
3504
|
-
(a(!0), i(
|
|
3549
|
+
d("div", nl, [
|
|
3550
|
+
(a(!0), i(D, null, V(n.model.getRenderedItems(), (l) => (a(), i("div", {
|
|
3505
3551
|
key: l.value,
|
|
3506
3552
|
class: m(n.model.getChoiceCss())
|
|
3507
3553
|
}, [
|
|
3508
|
-
v(s(
|
|
3554
|
+
v(s(c), A({
|
|
3509
3555
|
is: e(l)
|
|
3510
3556
|
}, o(l)), null, 16, ["is"])
|
|
3511
3557
|
], 2))), 128))
|
|
3512
3558
|
]),
|
|
3513
|
-
n.model.needToCollapse ? (a(),
|
|
3559
|
+
n.model.needToCollapse ? (a(), b(s(c), {
|
|
3514
3560
|
key: 0,
|
|
3515
3561
|
is: "svc-action-button",
|
|
3516
3562
|
text: n.model.getButtonText(),
|
|
@@ -3520,19 +3566,19 @@ const wt = /* @__PURE__ */ g({
|
|
|
3520
3566
|
])
|
|
3521
3567
|
]));
|
|
3522
3568
|
}
|
|
3523
|
-
}),
|
|
3569
|
+
}), ll = /* @__PURE__ */ g({
|
|
3524
3570
|
__name: "QuestionDropdown",
|
|
3525
3571
|
props: {
|
|
3526
3572
|
componentName: {},
|
|
3527
3573
|
componentData: {}
|
|
3528
3574
|
},
|
|
3529
|
-
setup(
|
|
3530
|
-
const t =
|
|
3575
|
+
setup(u) {
|
|
3576
|
+
const t = u, e = () => new Be(
|
|
3531
3577
|
t.componentData.data,
|
|
3532
3578
|
t.componentData.element,
|
|
3533
3579
|
null
|
|
3534
3580
|
);
|
|
3535
|
-
return (o, n) => (a(),
|
|
3581
|
+
return (o, n) => (a(), b(oe, {
|
|
3536
3582
|
"create-model": e,
|
|
3537
3583
|
element: o.componentData.element,
|
|
3538
3584
|
"component-name": o.componentName,
|
|
@@ -3540,14 +3586,14 @@ const wt = /* @__PURE__ */ g({
|
|
|
3540
3586
|
"adorner-component": "svc-dropdown-question-adorner"
|
|
3541
3587
|
}, null, 8, ["element", "component-name", "component-data"]));
|
|
3542
3588
|
}
|
|
3543
|
-
}),
|
|
3589
|
+
}), il = { class: "svc-question__adorner" }, rl = { class: "svc-question__content svc-question__content--in-popup" }, dl = { class: "svc-question__dropdown-choices" }, le = "survey-radiogroup-item", cl = /* @__PURE__ */ g({
|
|
3544
3590
|
__name: "CellQuestionDropdown",
|
|
3545
3591
|
props: {
|
|
3546
3592
|
componentName: {},
|
|
3547
3593
|
componentData: {}
|
|
3548
3594
|
},
|
|
3549
|
-
setup(
|
|
3550
|
-
const t =
|
|
3595
|
+
setup(u) {
|
|
3596
|
+
const t = u, e = k(
|
|
3551
3597
|
() => t.componentData.element
|
|
3552
3598
|
), o = (r) => e.value.getItemValueWrapperComponentName(r) || le, n = (r) => ({
|
|
3553
3599
|
componentName: le,
|
|
@@ -3557,15 +3603,15 @@ const wt = /* @__PURE__ */ g({
|
|
|
3557
3603
|
data: e.value.getItemValueWrapperComponentData(r)
|
|
3558
3604
|
}
|
|
3559
3605
|
});
|
|
3560
|
-
return
|
|
3561
|
-
d("div",
|
|
3562
|
-
v(s(
|
|
3563
|
-
d("div",
|
|
3564
|
-
(a(!0), i(
|
|
3606
|
+
return w(() => e.value), (r, l) => (a(), i("div", il, [
|
|
3607
|
+
d("div", rl, [
|
|
3608
|
+
v(s(c), A({ is: r.componentName }, r.componentData), null, 16, ["is"]),
|
|
3609
|
+
d("div", dl, [
|
|
3610
|
+
(a(!0), i(D, null, V(e.value.visibleChoices, (_) => (a(), i("div", {
|
|
3565
3611
|
key: _.value,
|
|
3566
3612
|
class: "svc-question__dropdown-choice"
|
|
3567
3613
|
}, [
|
|
3568
|
-
v(s(
|
|
3614
|
+
v(s(c), A({
|
|
3569
3615
|
is: o(_)
|
|
3570
3616
|
}, n(_)), null, 16, ["is"])
|
|
3571
3617
|
]))), 128))
|
|
@@ -3573,25 +3619,25 @@ const wt = /* @__PURE__ */ g({
|
|
|
3573
3619
|
])
|
|
3574
3620
|
]));
|
|
3575
3621
|
}
|
|
3576
|
-
}),
|
|
3622
|
+
}), ul = ["data-sv-drop-target-survey-element"], pl = /* @__PURE__ */ d("div", { class: "svc-question__drop-indicator svc-question__drop-indicator--left" }, null, -1), vl = /* @__PURE__ */ d("div", { class: "svc-question__drop-indicator svc-question__drop-indicator--right" }, null, -1), ml = /* @__PURE__ */ d("div", { class: "svc-question__drop-indicator svc-question__drop-indicator--top" }, null, -1), _l = /* @__PURE__ */ d("div", { class: "svc-question__drop-indicator svc-question__drop-indicator--bottom" }, null, -1), gl = { class: "svc-widget__content" }, bl = {
|
|
3577
3623
|
key: 1,
|
|
3578
3624
|
class: "svc-panel__placeholder_frame"
|
|
3579
|
-
},
|
|
3625
|
+
}, yl = /* @__PURE__ */ d("div", {
|
|
3580
3626
|
class: "svc-panel__placeholder",
|
|
3581
3627
|
"data-bind": "text: placeholderText"
|
|
3582
|
-
}, null, -1),
|
|
3583
|
-
|
|
3584
|
-
],
|
|
3628
|
+
}, null, -1), hl = [
|
|
3629
|
+
yl
|
|
3630
|
+
], Cl = { class: "svc-question__content-actions" }, ql = {
|
|
3585
3631
|
key: 0,
|
|
3586
3632
|
class: "svc-panel__placeholder_frame"
|
|
3587
|
-
},
|
|
3633
|
+
}, $l = { class: "svc-panel__placeholder" }, kl = /* @__PURE__ */ g({
|
|
3588
3634
|
__name: "CustomWidget",
|
|
3589
3635
|
props: {
|
|
3590
3636
|
componentName: {},
|
|
3591
3637
|
componentData: {}
|
|
3592
3638
|
},
|
|
3593
|
-
setup(
|
|
3594
|
-
const t =
|
|
3639
|
+
setup(u) {
|
|
3640
|
+
const t = u, e = P(), o = z(
|
|
3595
3641
|
() => new ee(
|
|
3596
3642
|
t.componentData.data,
|
|
3597
3643
|
t.componentData.element,
|
|
@@ -3604,7 +3650,7 @@ const wt = /* @__PURE__ */ g({
|
|
|
3604
3650
|
);
|
|
3605
3651
|
return G(() => {
|
|
3606
3652
|
e.value && o.value && (o.value.rootElement = e.value);
|
|
3607
|
-
}),
|
|
3653
|
+
}), R(() => {
|
|
3608
3654
|
e.value && o.value && (o.value.rootElement = e.value);
|
|
3609
3655
|
}), (n, r) => s(o) ? (a(), i("div", {
|
|
3610
3656
|
key: 0,
|
|
@@ -3615,61 +3661,61 @@ const wt = /* @__PURE__ */ g({
|
|
|
3615
3661
|
ref_key: "root",
|
|
3616
3662
|
ref: e
|
|
3617
3663
|
}, [
|
|
3618
|
-
s(o).element.isInteractiveDesignElement ?
|
|
3664
|
+
s(o).element.isInteractiveDesignElement ? h((a(), i("div", {
|
|
3619
3665
|
key: 0,
|
|
3620
3666
|
class: m(["svc-question__content", s(o).css()]),
|
|
3621
3667
|
onClick: r[1] || (r[1] = (l) => s(o).select(s(o), l)),
|
|
3622
3668
|
"data-bind": "clickBubble: false"
|
|
3623
3669
|
}, [
|
|
3624
|
-
ul,
|
|
3625
3670
|
pl,
|
|
3626
3671
|
vl,
|
|
3627
3672
|
ml,
|
|
3673
|
+
_l,
|
|
3628
3674
|
s(o).allowDragging ? (a(), i("div", {
|
|
3629
3675
|
key: 0,
|
|
3630
3676
|
class: "svc-question__drag-area",
|
|
3631
3677
|
onPointerdown: r[0] || (r[0] = (l) => s(o).onPointerDown(l))
|
|
3632
3678
|
}, [
|
|
3633
|
-
v(s(
|
|
3679
|
+
v(s(c), {
|
|
3634
3680
|
is: "sv-svg-icon",
|
|
3635
3681
|
class: "svc-question__drag-element",
|
|
3636
3682
|
iconName: "icon-drag-area-indicator_24x16",
|
|
3637
3683
|
size: "auto"
|
|
3638
3684
|
})
|
|
3639
3685
|
], 32)) : p("", !0),
|
|
3640
|
-
d("div",
|
|
3641
|
-
v(s(
|
|
3686
|
+
d("div", gl, [
|
|
3687
|
+
v(s(c), A({ is: n.componentName }, n.componentData), null, 16, ["is"])
|
|
3642
3688
|
]),
|
|
3643
|
-
s(o).isEmptyElement ? (a(), i("div",
|
|
3644
|
-
d("div",
|
|
3645
|
-
v(s(
|
|
3689
|
+
s(o).isEmptyElement ? (a(), i("div", bl, hl)) : p("", !0),
|
|
3690
|
+
d("div", Cl, [
|
|
3691
|
+
v(s(c), {
|
|
3646
3692
|
is: "sv-action-bar",
|
|
3647
3693
|
model: s(o).actionContainer,
|
|
3648
3694
|
handleClick: !1
|
|
3649
3695
|
}, null, 8, ["model"])
|
|
3650
3696
|
])
|
|
3651
3697
|
], 2)), [
|
|
3652
|
-
[s(
|
|
3698
|
+
[s(M)]
|
|
3653
3699
|
]) : p("", !0),
|
|
3654
|
-
s(o).element.isInteractiveDesignElement ? p("", !0) : (a(), i(
|
|
3655
|
-
v(s(
|
|
3656
|
-
s(o).isEmptyElement ? (a(), i("div",
|
|
3657
|
-
d("div",
|
|
3700
|
+
s(o).element.isInteractiveDesignElement ? p("", !0) : (a(), i(D, { key: 1 }, [
|
|
3701
|
+
v(s(c), A({ is: n.componentName }, n.componentData), null, 16, ["is"]),
|
|
3702
|
+
s(o).isEmptyElement ? (a(), i("div", ql, [
|
|
3703
|
+
d("div", $l, f(s(o).placeholderText), 1)
|
|
3658
3704
|
])) : p("", !0)
|
|
3659
3705
|
], 64))
|
|
3660
|
-
], 42,
|
|
3706
|
+
], 42, ul)) : p("", !0);
|
|
3661
3707
|
}
|
|
3662
|
-
}),
|
|
3708
|
+
}), fl = { class: "svc-carry-forward-panel-wrapper" }, wl = { class: "svc-carry-forward-panel" }, Dl = { class: "svc-carry-forward-panel__link" }, Tl = /* @__PURE__ */ g({
|
|
3663
3709
|
__name: "QuestionBanner",
|
|
3664
3710
|
props: {
|
|
3665
3711
|
model: {}
|
|
3666
3712
|
},
|
|
3667
|
-
setup(
|
|
3668
|
-
return (t, e) => (a(), i("div",
|
|
3669
|
-
d("div",
|
|
3670
|
-
d("span", null,
|
|
3671
|
-
d("span",
|
|
3672
|
-
v(s(
|
|
3713
|
+
setup(u) {
|
|
3714
|
+
return (t, e) => (a(), i("div", fl, [
|
|
3715
|
+
d("div", wl, [
|
|
3716
|
+
d("span", null, f(t.model.text) + f(" "), 1),
|
|
3717
|
+
d("span", Dl, [
|
|
3718
|
+
v(s(c), {
|
|
3673
3719
|
is: "svc-action-button",
|
|
3674
3720
|
text: t.model.actionText,
|
|
3675
3721
|
click: t.model.onClick.bind(t.model)
|
|
@@ -3679,27 +3725,27 @@ const wt = /* @__PURE__ */ g({
|
|
|
3679
3725
|
]));
|
|
3680
3726
|
}
|
|
3681
3727
|
});
|
|
3682
|
-
function
|
|
3683
|
-
|
|
3728
|
+
function Nl(u, t, e) {
|
|
3729
|
+
u(t, e);
|
|
3684
3730
|
}
|
|
3685
|
-
function pe(
|
|
3686
|
-
const t =
|
|
3731
|
+
function pe(u) {
|
|
3732
|
+
const t = Nl.bind(
|
|
3687
3733
|
void 0,
|
|
3688
|
-
|
|
3734
|
+
u
|
|
3689
3735
|
);
|
|
3690
|
-
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",
|
|
3736
|
+
t("svc-tabbed-menu", Ge), t("svc-tabbed-menu-item-wrapper", je), t("svc-tabbed-menu-item", Ze), t("svc-side-bar", eo), t("svc-side-bar-default-header", no), t("svc-side-bar-page", ao), t("svc-tabs", ro), t("svc-tab-control", go), t("svc-tab-button", qo), t("svc-property-grid-placeholder", To), t("svc-side-bar-header", Eo), t("svc-side-bar-property-grid-header", Fo), t("svc-property-grid", io), t("svc-object-selector", lo), t("svc-search", Ga), t("svc-switcher", Yo), t("svc-action-button", Go), t("svc-question-error", Ko), t("survey-embeddedsurvey", Qs), t("sv-logic-operator", Us), t("survey-linkvalue", Hs), t("survey-color", it), t("color-item", rt), t("sv-boolean-switch", wt), t("survey-fileedit", vt), t("survey-spinedit", bt), t("survey-textwithreset", ne), t("survey-commentwithreset", ne), t("survey-widget", O), t("survey-simulator", os), t("svc-tab-preview", is), t("svc-complete-page", ds), t("survey-results", Cs), t("survey-results-table-row", $s), t("json-error-item", Rs), t("svc-tab-json-editor-textarea", Bs), t("svc-tab-json-editor-ace", Ds), t("svc-tab-translation", Js), t("sd-translation-line-skeleton", et), t("svc-translate-from-action", ot), t("svc-tab-logic", Ls), t("svc-tab-theme", nt), t("svc-toolbox", zt), t("svc-toolbox-list", Zt), t("svc-toolbox-category", Jt), t("svc-toolbox-tool", Ft), t("svc-toolbox-item", Ht), t("svc-toolbox-item-group", Ot), t(Ie, Et), t("svc-tab-designer", dn), t("svc-page-navigator", ja), t("svc-page-navigator-item", sl), t("svc-page", hn), t("svc-row", Dn), t("svc-add-new-question-btn", qn), t("svc-add-question-type-selector", kn), t("svc-question", ae), t("svc-rating-question", ae), t("svc-rating-question-content", Wn), t("svc-image-question", Vn), t("svc-image-question-adorner", Qn), t("svc-matrix-cell", Jn), t("svc-cell-question", Yn), t("svc-cell-dropdown-question", cl), t("svc-question-editor-content", Pa), t("svc-logo-image", Fa), t("svc-panel", va), t("svc-item-value", qa), t("svc-image-item-value", Ea), t("svc-dropdown-question", ll), t("svc-dropdown-question-adorner", al), t("svc-widget-question", kl), t("svc-question-banner", Tl);
|
|
3691
3737
|
}
|
|
3692
3738
|
pe(
|
|
3693
|
-
(
|
|
3739
|
+
(u, t) => ie.Instance.registerComponent(u, t)
|
|
3694
3740
|
);
|
|
3695
|
-
const
|
|
3696
|
-
install(
|
|
3697
|
-
|
|
3698
|
-
|
|
3741
|
+
const El = {
|
|
3742
|
+
install(u) {
|
|
3743
|
+
u.component("SurveyCreatorComponent", Oe), pe((t, e) => {
|
|
3744
|
+
u.component(t, e), ie.Instance.registerComponent(t, t);
|
|
3699
3745
|
});
|
|
3700
3746
|
}
|
|
3701
3747
|
};
|
|
3702
3748
|
export {
|
|
3703
3749
|
Oe as SurveyCreatorComponent,
|
|
3704
|
-
|
|
3750
|
+
El as surveyCreatorPlugin
|
|
3705
3751
|
};
|