survey-creator-vue 2.3.7 → 2.3.8
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 +505 -502
- package/survey-creator-vue.umd.js +1 -1
package/survey-creator-vue.es.js
CHANGED
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
import { useBase as
|
|
2
|
-
import { defineComponent as g, computed as $, toRaw as
|
|
3
|
-
import { editorLocalization as ce, SurveyResultsModel as
|
|
4
|
-
import { CssClassBuilder as
|
|
5
|
-
const
|
|
1
|
+
import { useBase as f, SvComponent as u, key2ClickDirective as N, SurveyComponent as O, useQuestion as H, ComponentFactory as ie } from "survey-vue3-ui";
|
|
2
|
+
import { defineComponent as g, computed as $, toRaw as _e, ref as I, onMounted as P, onUnmounted as K, openBlock as a, createElementBlock as i, Fragment as T, createVNode as v, unref as s, createElementVNode as d, normalizeClass as m, normalizeStyle as F, createCommentVNode as p, renderList as V, createBlock as y, onUpdated as G, nextTick as re, withDirectives as C, toDisplayString as k, 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 Te, ItemValueWrapperViewModel as De, ImageItemValueWrapperViewModel as Ne, LogoImageViewModel as Me, PageNavigatorViewModel as Se, QuestionDropdownAdornerViewModel as Be, editableStringRendererName as Ie } from "survey-creator-core";
|
|
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" }, Ve = { class: "svc-top-bar" }, Ae = {
|
|
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 = {
|
|
9
9
|
key: 0,
|
|
10
10
|
class: "svc-footer-bar"
|
|
11
|
-
},
|
|
11
|
+
}, Ue = ["v-show"], Qe = {
|
|
12
12
|
key: 0,
|
|
13
13
|
class: "svc-creator__banner"
|
|
14
|
-
},
|
|
14
|
+
}, He = ["innerHTML"], Oe = /* @__PURE__ */ g({
|
|
15
15
|
__name: "Creator",
|
|
16
16
|
props: {
|
|
17
17
|
model: {}
|
|
18
18
|
},
|
|
19
19
|
setup(c) {
|
|
20
|
-
const t = c, e = $(() =>
|
|
21
|
-
return
|
|
20
|
+
const t = c, e = $(() => _e(t.model)), o = I();
|
|
21
|
+
return f(
|
|
22
22
|
() => e.value,
|
|
23
23
|
(n, r) => {
|
|
24
24
|
r && r.unsubscribeRootElement(), n && o.value && n.setRootElement(o.value);
|
|
@@ -27,7 +27,7 @@ const Ae = { class: "svc-flex-column svc-flex-row__element svc-flex-row__element
|
|
|
27
27
|
o.value && t.model.setRootElement(o.value);
|
|
28
28
|
}), K(() => {
|
|
29
29
|
t.model.unsubscribeRootElement();
|
|
30
|
-
}), (n, r) => e.value.isCreatorDisposed ? p("", !0) : (a(), i(
|
|
30
|
+
}), (n, r) => e.value.isCreatorDisposed ? p("", !0) : (a(), i(T, { key: 0 }, [
|
|
31
31
|
v(s(u), { is: "survey-popup-modal" }),
|
|
32
32
|
d("div", {
|
|
33
33
|
class: m(e.value.getRootCss()),
|
|
@@ -48,9 +48,9 @@ const Ae = { class: "svc-flex-column svc-flex-row__element svc-flex-row__element
|
|
|
48
48
|
"svc-creator__side-bar--left": e.value.sidebarLocation == "left"
|
|
49
49
|
}])
|
|
50
50
|
}, [
|
|
51
|
-
d("div",
|
|
51
|
+
d("div", Re, [
|
|
52
52
|
d("div", Ve, [
|
|
53
|
-
e.value.showTabs ? (a(), i("div",
|
|
53
|
+
e.value.showTabs ? (a(), i("div", Ae, [
|
|
54
54
|
v(s(u), {
|
|
55
55
|
is: "svc-tabbed-menu",
|
|
56
56
|
model: e.value.tabbedMenu
|
|
@@ -65,15 +65,15 @@ const Ae = { class: "svc-flex-column svc-flex-row__element svc-flex-row__element
|
|
|
65
65
|
is: "sv-action-bar",
|
|
66
66
|
model: e.value.toolbar
|
|
67
67
|
}, null, 8, ["model"])
|
|
68
|
-
], 8,
|
|
68
|
+
], 8, ze)) : p("", !0)
|
|
69
69
|
]),
|
|
70
70
|
d("div", {
|
|
71
71
|
class: m(["svc-creator__content-wrapper svc-flex-row", {
|
|
72
72
|
"svc-creator__content-wrapper--footer-toolbar": e.value.isMobileView
|
|
73
73
|
}])
|
|
74
74
|
}, [
|
|
75
|
-
d("div",
|
|
76
|
-
(a(!0), i(
|
|
75
|
+
d("div", Le, [
|
|
76
|
+
(a(!0), i(T, null, V(e.value.tabs, (l) => (a(), i(T, null, [
|
|
77
77
|
e.value.viewType == l.id && l.visible ? (a(), i("div", {
|
|
78
78
|
role: "tabpanel",
|
|
79
79
|
class: m(["svc-creator-tab", {
|
|
@@ -87,11 +87,11 @@ const Ae = { class: "svc-flex-column svc-flex-row__element svc-flex-row__element
|
|
|
87
87
|
is: l.componentContent,
|
|
88
88
|
model: l.data.model
|
|
89
89
|
}, null, 8, ["is", "model"])
|
|
90
|
-
], 10,
|
|
90
|
+
], 10, Fe)) : p("", !0)
|
|
91
91
|
], 64))), 256))
|
|
92
92
|
])
|
|
93
93
|
], 2),
|
|
94
|
-
e.value.isMobileView ? (a(), i("div",
|
|
94
|
+
e.value.isMobileView ? (a(), i("div", Ke, [
|
|
95
95
|
d("div", {
|
|
96
96
|
class: "svc-toolbar-wrapper",
|
|
97
97
|
"v-show": e.value.isMobileView
|
|
@@ -100,7 +100,7 @@ const Ae = { class: "svc-flex-column svc-flex-row__element svc-flex-row__element
|
|
|
100
100
|
is: "sv-action-bar",
|
|
101
101
|
model: e.value.footerToolbar
|
|
102
102
|
}, null, 8, ["model"])
|
|
103
|
-
], 8,
|
|
103
|
+
], 8, Ue)
|
|
104
104
|
])) : p("", !0)
|
|
105
105
|
]),
|
|
106
106
|
e.value.sidebar ? (a(), y(s(u), {
|
|
@@ -109,11 +109,11 @@ const Ae = { class: "svc-flex-column svc-flex-row__element svc-flex-row__element
|
|
|
109
109
|
model: e.value.sidebar
|
|
110
110
|
}, null, 8, ["model"])) : p("", !0)
|
|
111
111
|
], 2),
|
|
112
|
-
e.value.haveCommercialLicense ? p("", !0) : (a(), i("div",
|
|
112
|
+
e.value.haveCommercialLicense ? p("", !0) : (a(), i("div", Qe, [
|
|
113
113
|
d("span", {
|
|
114
114
|
class: "svc-creator__non-commercial-text",
|
|
115
115
|
innerHTML: e.value.licenseText
|
|
116
|
-
}, null, 8,
|
|
116
|
+
}, null, 8, He)
|
|
117
117
|
])),
|
|
118
118
|
v(s(u), {
|
|
119
119
|
is: "sv-notifier",
|
|
@@ -123,14 +123,14 @@ const Ae = { class: "svc-flex-column svc-flex-row__element svc-flex-row__element
|
|
|
123
123
|
], 6)
|
|
124
124
|
], 64));
|
|
125
125
|
}
|
|
126
|
-
}),
|
|
126
|
+
}), Ge = /* @__PURE__ */ g({
|
|
127
127
|
__name: "TabbedMenu",
|
|
128
128
|
props: {
|
|
129
129
|
model: {}
|
|
130
130
|
},
|
|
131
131
|
setup(c) {
|
|
132
132
|
const t = c, e = I();
|
|
133
|
-
return
|
|
133
|
+
return f(() => t.model), G(() => {
|
|
134
134
|
t.model.initResponsivityManager(e.value);
|
|
135
135
|
}), P(() => {
|
|
136
136
|
t.model.initResponsivityManager(e.value);
|
|
@@ -143,21 +143,21 @@ const Ae = { 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(T, null, V(o.model.renderedActions, (r) => (a(), y(s(u), {
|
|
147
147
|
key: r.renderedId,
|
|
148
148
|
is: "svc-tabbed-menu-item-wrapper",
|
|
149
149
|
item: r
|
|
150
150
|
}, null, 8, ["item"]))), 128))
|
|
151
151
|
], 4));
|
|
152
152
|
}
|
|
153
|
-
}),
|
|
153
|
+
}), We = { class: "sv-action__content" }, je = /* @__PURE__ */ g({
|
|
154
154
|
__name: "TabbedMenuItemWrapper",
|
|
155
155
|
props: {
|
|
156
156
|
item: {}
|
|
157
157
|
},
|
|
158
158
|
setup(c) {
|
|
159
159
|
const t = I(), e = c;
|
|
160
|
-
return
|
|
160
|
+
return f(() => e.item), P(() => {
|
|
161
161
|
const o = e.item;
|
|
162
162
|
o.updateModeCallback = (n, r) => {
|
|
163
163
|
o.mode = n, re(() => r(n, t.value));
|
|
@@ -170,7 +170,7 @@ const Ae = { class: "svc-flex-column svc-flex-row__element svc-flex-row__element
|
|
|
170
170
|
ref_key: "root",
|
|
171
171
|
ref: t
|
|
172
172
|
}, [
|
|
173
|
-
d("div",
|
|
173
|
+
d("div", We, [
|
|
174
174
|
v(s(u), {
|
|
175
175
|
is: o.item.component || "svc-tabbed-menu-item",
|
|
176
176
|
item: o.item
|
|
@@ -178,14 +178,14 @@ const Ae = { class: "svc-flex-column svc-flex-row__element svc-flex-row__element
|
|
|
178
178
|
])
|
|
179
179
|
], 2));
|
|
180
180
|
}
|
|
181
|
-
}),
|
|
181
|
+
}), Je = ["id", "aria-selected", "aria-controls"], Ze = /* @__PURE__ */ g({
|
|
182
182
|
__name: "TabbedMenuItem",
|
|
183
183
|
props: {
|
|
184
184
|
item: {}
|
|
185
185
|
},
|
|
186
186
|
setup(c) {
|
|
187
187
|
const t = c;
|
|
188
|
-
return
|
|
188
|
+
return f(() => t.item), (e, o) => C((a(), i("div", {
|
|
189
189
|
role: "tab",
|
|
190
190
|
id: "tab-" + e.item.id,
|
|
191
191
|
"aria-selected": e.item.active,
|
|
@@ -206,18 +206,18 @@ const Ae = { class: "svc-flex-column svc-flex-row__element svc-flex-row__element
|
|
|
206
206
|
class: m(e.item.getIconCss()),
|
|
207
207
|
title: e.item.tooltip || e.item.title
|
|
208
208
|
}, null, 8, ["iconName", "class", "title"])) : p("", !0)
|
|
209
|
-
], 10,
|
|
209
|
+
], 10, Je)), [
|
|
210
210
|
[s(N)]
|
|
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({
|
|
214
214
|
__name: "SideBar",
|
|
215
215
|
props: {
|
|
216
216
|
model: {}
|
|
217
217
|
},
|
|
218
218
|
setup(c) {
|
|
219
219
|
const t = c, e = I();
|
|
220
|
-
return
|
|
220
|
+
return f(() => t.model), P(() => {
|
|
221
221
|
t.model.initResizeManager(e.value);
|
|
222
222
|
}), K(() => {
|
|
223
223
|
t.model.resetResizeManager();
|
|
@@ -230,8 +230,8 @@ const Ae = { class: "svc-flex-column svc-flex-row__element svc-flex-row__element
|
|
|
230
230
|
}, null, 512), [
|
|
231
231
|
[Q, o.model.renderContainer]
|
|
232
232
|
]),
|
|
233
|
-
d("div",
|
|
234
|
-
C(d("div",
|
|
233
|
+
d("div", Xe, [
|
|
234
|
+
C(d("div", Ye, [
|
|
235
235
|
d("div", {
|
|
236
236
|
class: "svc-side-bar__container",
|
|
237
237
|
ref_key: "root",
|
|
@@ -241,8 +241,8 @@ const Ae = { class: "svc-flex-column svc-flex-row__element svc-flex-row__element
|
|
|
241
241
|
is: o.model.header.component,
|
|
242
242
|
model: o.model.header.componentModel
|
|
243
243
|
}, null, 8, ["is", "model"]),
|
|
244
|
-
d("div",
|
|
245
|
-
(a(!0), i(
|
|
244
|
+
d("div", xe, [
|
|
245
|
+
(a(!0), i(T, null, V(o.model.pages, (r, l) => (a(), y(s(u), {
|
|
246
246
|
key: l,
|
|
247
247
|
is: "svc-side-bar-page",
|
|
248
248
|
model: r
|
|
@@ -262,60 +262,60 @@ const Ae = { class: "svc-flex-column svc-flex-row__element svc-flex-row__element
|
|
|
262
262
|
[Q, o.model.renderRoot]
|
|
263
263
|
]);
|
|
264
264
|
}
|
|
265
|
-
}),
|
|
265
|
+
}), oo = { class: "svc-side-bar__container-header" }, so = { class: "svc-side-bar__container-actions" }, to = {
|
|
266
266
|
key: 0,
|
|
267
267
|
class: "svc-side-bar__container-title"
|
|
268
|
-
},
|
|
268
|
+
}, no = /* @__PURE__ */ g({
|
|
269
269
|
__name: "SideBarDefaultHeader",
|
|
270
270
|
props: {
|
|
271
271
|
model: {}
|
|
272
272
|
},
|
|
273
273
|
setup(c) {
|
|
274
274
|
const t = c;
|
|
275
|
-
return
|
|
276
|
-
d("div",
|
|
275
|
+
return f(() => t.model), (e, o) => (a(), i("div", oo, [
|
|
276
|
+
d("div", so, [
|
|
277
277
|
v(s(u), {
|
|
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",
|
|
282
|
+
e.model.title ? (a(), i("div", to, k(e.model.title), 1)) : p("", !0)
|
|
283
283
|
]));
|
|
284
284
|
}
|
|
285
|
-
}),
|
|
285
|
+
}), ao = /* @__PURE__ */ g({
|
|
286
286
|
__name: "SideBarPage",
|
|
287
287
|
props: {
|
|
288
288
|
model: {}
|
|
289
289
|
},
|
|
290
290
|
setup(c) {
|
|
291
291
|
const t = c;
|
|
292
|
-
return
|
|
292
|
+
return f(() => t.model), (e, o) => e.model.visible ? (a(), y(s(u), {
|
|
293
293
|
key: 0,
|
|
294
294
|
is: e.model.componentName,
|
|
295
295
|
model: e.model.componentData
|
|
296
296
|
}, null, 8, ["is", "model"])) : p("", !0);
|
|
297
297
|
}
|
|
298
|
-
}),
|
|
298
|
+
}), lo = /* @__PURE__ */ g({
|
|
299
299
|
__name: "ObjectSelector",
|
|
300
300
|
props: {
|
|
301
301
|
model: {}
|
|
302
302
|
},
|
|
303
303
|
setup(c) {
|
|
304
304
|
const t = c;
|
|
305
|
-
return
|
|
305
|
+
return f(() => t.model), (e, o) => e.model.isVisible ? (a(), y(s(u), {
|
|
306
306
|
key: 0,
|
|
307
307
|
is: "sv-list",
|
|
308
308
|
model: e.model.list
|
|
309
309
|
}, null, 8, ["model"])) : p("", !0);
|
|
310
310
|
}
|
|
311
|
-
}),
|
|
311
|
+
}), io = /* @__PURE__ */ g({
|
|
312
312
|
__name: "PropertyGrid",
|
|
313
313
|
props: {
|
|
314
314
|
model: {}
|
|
315
315
|
},
|
|
316
316
|
setup(c) {
|
|
317
317
|
const t = c;
|
|
318
|
-
return
|
|
318
|
+
return f(() => t.model), (e, o) => (a(), i("div", {
|
|
319
319
|
class: m(e.model.rootCss)
|
|
320
320
|
}, [
|
|
321
321
|
v(s(u), {
|
|
@@ -328,42 +328,42 @@ const Ae = { class: "svc-flex-column svc-flex-row__element svc-flex-row__element
|
|
|
328
328
|
}, null, 8, ["survey"])) : p("", !0)
|
|
329
329
|
], 2));
|
|
330
330
|
}
|
|
331
|
-
}),
|
|
331
|
+
}), ro = /* @__PURE__ */ g({
|
|
332
332
|
__name: "Tabs",
|
|
333
333
|
props: {
|
|
334
334
|
model: {}
|
|
335
335
|
},
|
|
336
336
|
setup(c) {
|
|
337
337
|
const t = c;
|
|
338
|
-
return
|
|
338
|
+
return f(() => t.model), (e, o) => (a(!0), i(T, null, V(e.model.actions, (n, r) => (a(), y(s(u), {
|
|
339
339
|
key: r,
|
|
340
340
|
is: "svc-tab-button",
|
|
341
341
|
model: n
|
|
342
342
|
}, null, 8, ["model"]))), 128));
|
|
343
343
|
}
|
|
344
|
-
}),
|
|
344
|
+
}), co = { class: "svc-sidebar-tabs__top-container" }, uo = { class: "svc-sidebar-tabs__collapse-button" }, po = /* @__PURE__ */ d("div", { class: "svc-sidebar-tabs__separator" }, [
|
|
345
345
|
/* @__PURE__ */ d("div")
|
|
346
|
-
], -1),
|
|
346
|
+
], -1), vo = { class: "svc-sidebar-tabs__items" }, mo = { class: "svc-sidebar-tabs__bottom-container" }, _o = { class: "svc-sidebar-tabs__items" }, go = /* @__PURE__ */ g({
|
|
347
347
|
__name: "TabControl",
|
|
348
348
|
props: {
|
|
349
349
|
model: {}
|
|
350
350
|
},
|
|
351
351
|
setup(c) {
|
|
352
352
|
const t = c;
|
|
353
|
-
return
|
|
353
|
+
return f(() => t.model), (e, o) => (a(), i("div", {
|
|
354
354
|
class: m(e.model.sideBarClassName)
|
|
355
355
|
}, [
|
|
356
|
-
d("div",
|
|
357
|
-
d("div",
|
|
356
|
+
d("div", co, [
|
|
357
|
+
d("div", uo, [
|
|
358
358
|
v(s(u), {
|
|
359
359
|
is: "svc-tab-button",
|
|
360
360
|
model: e.model.expandCollapseAction
|
|
361
361
|
}, null, 8, ["model"])
|
|
362
362
|
]),
|
|
363
|
-
|
|
363
|
+
po,
|
|
364
364
|
v(s(u), { is: "sv-scroll" }, {
|
|
365
365
|
default: X(() => [
|
|
366
|
-
d("div",
|
|
366
|
+
d("div", vo, [
|
|
367
367
|
v(s(u), {
|
|
368
368
|
is: "svc-tabs",
|
|
369
369
|
model: e.model.topToolbar
|
|
@@ -373,8 +373,8 @@ const Ae = { class: "svc-flex-column svc-flex-row__element svc-flex-row__element
|
|
|
373
373
|
_: 1
|
|
374
374
|
})
|
|
375
375
|
]),
|
|
376
|
-
d("div",
|
|
377
|
-
d("div",
|
|
376
|
+
d("div", mo, [
|
|
377
|
+
d("div", _o, [
|
|
378
378
|
v(s(u), {
|
|
379
379
|
is: "svc-tabs",
|
|
380
380
|
model: e.model.bottomToolbar
|
|
@@ -383,24 +383,24 @@ const Ae = { class: "svc-flex-column svc-flex-row__element svc-flex-row__element
|
|
|
383
383
|
])
|
|
384
384
|
], 2));
|
|
385
385
|
}
|
|
386
|
-
}),
|
|
386
|
+
}), bo = {
|
|
387
387
|
key: 0,
|
|
388
388
|
class: "svc-menu-action"
|
|
389
|
-
},
|
|
389
|
+
}, yo = ["title"], ho = { class: "svc-menu-action__icon" }, Co = { class: "svc-menu-action__icon-container" }, qo = /* @__PURE__ */ g({
|
|
390
390
|
__name: "TabButton",
|
|
391
391
|
props: {
|
|
392
392
|
model: {}
|
|
393
393
|
},
|
|
394
394
|
setup(c) {
|
|
395
395
|
const t = c;
|
|
396
|
-
return
|
|
396
|
+
return f(() => t.model), (e, o) => e.model.visible ? (a(), i("div", bo, [
|
|
397
397
|
C((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
|
-
d("div",
|
|
403
|
-
d("div",
|
|
402
|
+
d("div", ho, [
|
|
403
|
+
d("div", Co, [
|
|
404
404
|
v(s(u), {
|
|
405
405
|
is: "sv-svg-icon",
|
|
406
406
|
iconName: e.model.iconName,
|
|
@@ -408,64 +408,64 @@ const Ae = { class: "svc-flex-column svc-flex-row__element svc-flex-row__element
|
|
|
408
408
|
}, null, 8, ["iconName"])
|
|
409
409
|
])
|
|
410
410
|
])
|
|
411
|
-
], 10,
|
|
411
|
+
], 10, yo)), [
|
|
412
412
|
[s(N), { processEsc: !1, disableTabStop: e.model.disableTabStop }]
|
|
413
413
|
])
|
|
414
414
|
])) : p("", !0);
|
|
415
415
|
}
|
|
416
|
-
}),
|
|
416
|
+
}), $o = { class: "svc-property-grid-placeholder" }, ko = { class: "svc-property-grid-placeholder__header" }, fo = { class: "svc-property-grid-placeholder__title" }, wo = { class: "svc-property-grid-placeholder__description" }, To = /* @__PURE__ */ d("div", { class: "svc-property-grid-placeholder__content" }, [
|
|
417
417
|
/* @__PURE__ */ d("div", { class: "svc-property-grid-placeholder__gap" }),
|
|
418
418
|
/* @__PURE__ */ d("div", { class: "svc-property-grid-placeholder__image" })
|
|
419
|
-
], -1),
|
|
419
|
+
], -1), Do = /* @__PURE__ */ g({
|
|
420
420
|
__name: "PropertyGridPlaceholder",
|
|
421
421
|
setup(c) {
|
|
422
422
|
const t = ce;
|
|
423
|
-
return (e, o) => (a(), i("div",
|
|
424
|
-
d("div",
|
|
425
|
-
d("span",
|
|
426
|
-
d("span",
|
|
423
|
+
return (e, o) => (a(), i("div", $o, [
|
|
424
|
+
d("div", ko, [
|
|
425
|
+
d("span", fo, k(s(t).getString("ed.propertyGridPlaceholderTitle")), 1),
|
|
426
|
+
d("span", wo, k(s(t).getString("ed.propertyGridPlaceholderDescription")), 1)
|
|
427
427
|
]),
|
|
428
|
-
|
|
428
|
+
To
|
|
429
429
|
]));
|
|
430
430
|
}
|
|
431
|
-
}),
|
|
431
|
+
}), No = { class: "svc-side-bar__container-header svc-sidebar__header-container" }, Mo = {
|
|
432
432
|
key: 0,
|
|
433
433
|
class: "svc-side-bar__container-title"
|
|
434
|
-
},
|
|
434
|
+
}, So = {
|
|
435
435
|
key: 1,
|
|
436
436
|
class: "svc-sidebar__header-caption"
|
|
437
|
-
},
|
|
437
|
+
}, Bo = { class: "svc-sidebar__header-title" }, Io = { class: "svc-sidebar__header-subtitle" }, Eo = /* @__PURE__ */ g({
|
|
438
438
|
__name: "SideBarHeader",
|
|
439
439
|
props: {
|
|
440
440
|
model: {}
|
|
441
441
|
},
|
|
442
442
|
setup(c) {
|
|
443
443
|
const t = c;
|
|
444
|
-
return
|
|
445
|
-
e.model.subTitle ? p("", !0) : (a(), i("div",
|
|
446
|
-
e.model.subTitle ? (a(), i("div",
|
|
447
|
-
d("span",
|
|
448
|
-
d("span",
|
|
444
|
+
return f(() => t.model), (e, o) => (a(), i("div", No, [
|
|
445
|
+
e.model.subTitle ? p("", !0) : (a(), i("div", Mo, k(e.model.title), 1)),
|
|
446
|
+
e.model.subTitle ? (a(), i("div", So, [
|
|
447
|
+
d("span", Bo, k(e.model.title), 1),
|
|
448
|
+
d("span", Io, k(e.model.subTitle), 1)
|
|
449
449
|
])) : p("", !0)
|
|
450
450
|
]));
|
|
451
451
|
}
|
|
452
|
-
}),
|
|
452
|
+
}), Po = { class: "svc-sidebar__header svc-sidebar__header--tabbed" }, Ro = { class: "svc-sidebar__header-container svc-sidebar__header-container--with-subtitle" }, Vo = { class: "svc-sidebar__header-content" }, Ao = { class: "svc-sidebar__header-caption" }, 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
457
|
setup(c) {
|
|
458
458
|
const t = c;
|
|
459
|
-
return
|
|
460
|
-
d("div",
|
|
459
|
+
return f(() => t.model), (e, o) => (a(), i("div", Po, [
|
|
460
|
+
d("div", Ro, [
|
|
461
461
|
d("div", Vo, [
|
|
462
462
|
C((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",
|
|
468
|
-
d("span",
|
|
466
|
+
d("div", Ao, [
|
|
467
|
+
d("span", zo, k(e.model.title), 1),
|
|
468
|
+
d("span", Lo, k(e.model.tooltip), 1)
|
|
469
469
|
])
|
|
470
470
|
], 2)), [
|
|
471
471
|
[s(N), { processEsc: !1 }]
|
|
@@ -478,7 +478,7 @@ const Ae = { class: "svc-flex-column svc-flex-row__element svc-flex-row__element
|
|
|
478
478
|
])
|
|
479
479
|
]));
|
|
480
480
|
}
|
|
481
|
-
}),
|
|
481
|
+
}), Ko = /* @__PURE__ */ g({
|
|
482
482
|
__name: "QuestionError",
|
|
483
483
|
props: {
|
|
484
484
|
errorKey: {},
|
|
@@ -506,7 +506,7 @@ const Ae = { class: "svc-flex-column svc-flex-row__element svc-flex-row__element
|
|
|
506
506
|
], 2)
|
|
507
507
|
]));
|
|
508
508
|
}
|
|
509
|
-
}),
|
|
509
|
+
}), Uo = ["title"], Qo = ["title"], Ho = ["title"], Oo = ["title"], Go = /* @__PURE__ */ g({
|
|
510
510
|
__name: "ActionButton",
|
|
511
511
|
props: {
|
|
512
512
|
classes: {},
|
|
@@ -521,26 +521,26 @@ const Ae = { class: "svc-flex-column svc-flex-row__element svc-flex-row__element
|
|
|
521
521
|
setup(c) {
|
|
522
522
|
const t = c, e = (n) => {
|
|
523
523
|
t.click(), t.allowBubble || n.stopPropagation();
|
|
524
|
-
}, o = () => new
|
|
525
|
-
return (n, r) => (a(), i(
|
|
526
|
-
n.iconName ? p("", !0) : (a(), i(
|
|
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(T, null, [
|
|
526
|
+
n.iconName ? p("", !0) : (a(), i(T, { 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
|
-
}, k(n.text), 11,
|
|
531
|
+
}, k(n.text), 11, Uo)) : p("", !0),
|
|
532
532
|
C((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
|
-
|
|
539
|
-
], 10,
|
|
538
|
+
ge(k(n.text), 1)
|
|
539
|
+
], 10, Qo)), [
|
|
540
540
|
[s(N)]
|
|
541
541
|
])
|
|
542
542
|
], 64)),
|
|
543
|
-
n.iconName ? (a(), i(
|
|
543
|
+
n.iconName ? (a(), i(T, { key: 1 }, [
|
|
544
544
|
n.disabled ? (a(), i("span", {
|
|
545
545
|
key: 0,
|
|
546
546
|
class: m(o()),
|
|
@@ -551,7 +551,7 @@ const Ae = { class: "svc-flex-column svc-flex-row__element svc-flex-row__element
|
|
|
551
551
|
iconName: n.iconName,
|
|
552
552
|
size: "auto"
|
|
553
553
|
}, null, 8, ["iconName"])
|
|
554
|
-
], 10,
|
|
554
|
+
], 10, Ho)) : p("", !0),
|
|
555
555
|
C((a(), i("span", {
|
|
556
556
|
role: "button",
|
|
557
557
|
onClick: e,
|
|
@@ -563,28 +563,28 @@ const Ae = { class: "svc-flex-column svc-flex-row__element svc-flex-row__element
|
|
|
563
563
|
iconName: n.iconName,
|
|
564
564
|
size: "auto"
|
|
565
565
|
}, null, 8, ["iconName"])
|
|
566
|
-
], 10,
|
|
566
|
+
], 10, Oo)), [
|
|
567
567
|
[s(N)]
|
|
568
568
|
])
|
|
569
569
|
], 64)) : p("", !0)
|
|
570
570
|
], 64));
|
|
571
571
|
}
|
|
572
|
-
}),
|
|
573
|
-
|
|
574
|
-
],
|
|
572
|
+
}), Wo = ["disabled", "title", "aria-checked", "aria-expanded", "role"], jo = /* @__PURE__ */ d("div", { class: "svc-switcher__icon-thumb" }, null, -1), Jo = [
|
|
573
|
+
jo
|
|
574
|
+
], Zo = {
|
|
575
575
|
key: 0,
|
|
576
576
|
class: "svc-switcher__title"
|
|
577
|
-
},
|
|
577
|
+
}, Xo = {
|
|
578
578
|
inheritAttrs: !1
|
|
579
|
-
},
|
|
580
|
-
...
|
|
579
|
+
}, Yo = /* @__PURE__ */ g({
|
|
580
|
+
...Xo,
|
|
581
581
|
__name: "Switcher",
|
|
582
582
|
props: {
|
|
583
583
|
item: {}
|
|
584
584
|
},
|
|
585
585
|
setup(c) {
|
|
586
586
|
const t = c;
|
|
587
|
-
return
|
|
587
|
+
return f(() => t.item), (e, o) => C((a(), i("button", {
|
|
588
588
|
class: m(e.item.getActionBarItemCss()),
|
|
589
589
|
type: "button",
|
|
590
590
|
onClick: o[0] || (o[0] = (n) => {
|
|
@@ -601,23 +601,23 @@ const Ae = { class: "svc-flex-column svc-flex-row__element svc-flex-row__element
|
|
|
601
601
|
}, [
|
|
602
602
|
d("div", {
|
|
603
603
|
class: m(e.item.getSwitcherIconCss())
|
|
604
|
-
},
|
|
605
|
-
e.item.hasTitle ? (a(), i("span",
|
|
606
|
-
], 42,
|
|
604
|
+
}, Jo, 2),
|
|
605
|
+
e.item.hasTitle ? (a(), i("span", Zo, k(e.item.title), 1)) : p("", !0)
|
|
606
|
+
], 42, Wo)), [
|
|
607
607
|
[s(N), { processEsc: !1, disableTabStop: e.item.disableTabStop }]
|
|
608
608
|
]);
|
|
609
609
|
}
|
|
610
|
-
}),
|
|
610
|
+
}), xo = {
|
|
611
611
|
key: 0,
|
|
612
612
|
class: "svd-simulator-content"
|
|
613
|
-
},
|
|
613
|
+
}, es = { class: "svd-simulator-content" }, os = /* @__PURE__ */ g({
|
|
614
614
|
__name: "Simulator",
|
|
615
615
|
props: {
|
|
616
616
|
model: {}
|
|
617
617
|
},
|
|
618
618
|
setup(c) {
|
|
619
619
|
const t = c;
|
|
620
|
-
|
|
620
|
+
f(() => t.model);
|
|
621
621
|
const e = $(() => t.model.simulatorFrame), o = () => {
|
|
622
622
|
t.model.device !== "desktop" && t.model.activateZoom();
|
|
623
623
|
}, n = () => {
|
|
@@ -629,7 +629,7 @@ const Ae = { class: "svc-flex-column svc-flex-row__element svc-flex-row__element
|
|
|
629
629
|
onMouseover: l[1] || (l[1] = (_) => o()),
|
|
630
630
|
onMouseout: l[2] || (l[2] = (_) => n())
|
|
631
631
|
}, [
|
|
632
|
-
r.model.hasFrame ? p("", !0) : (a(), i("div",
|
|
632
|
+
r.model.hasFrame ? p("", !0) : (a(), i("div", xo, [
|
|
633
633
|
v(s(u), {
|
|
634
634
|
is: "survey-widget",
|
|
635
635
|
model: r.model.survey
|
|
@@ -652,7 +652,7 @@ const Ae = { class: "svc-flex-column svc-flex-row__element svc-flex-row__element
|
|
|
652
652
|
transform: "scale(" + e.value.scale + ") translate(-50%, -50%)"
|
|
653
653
|
})
|
|
654
654
|
}, [
|
|
655
|
-
d("div",
|
|
655
|
+
d("div", es, [
|
|
656
656
|
v(s(u), {
|
|
657
657
|
is: "survey-widget",
|
|
658
658
|
model: r.model.survey
|
|
@@ -662,7 +662,7 @@ const Ae = { class: "svc-flex-column svc-flex-row__element svc-flex-row__element
|
|
|
662
662
|
], 4)) : p("", !0)
|
|
663
663
|
], 34));
|
|
664
664
|
}
|
|
665
|
-
}),
|
|
665
|
+
}), ss = { class: "svc-surface-placeholder" }, ts = { class: "svc-surface-placeholder__text" }, ns = { class: "svc-surface-placeholder__title" }, as = { class: "svc-surface-placeholder__description" }, j = /* @__PURE__ */ g({
|
|
666
666
|
__name: "SurfacePlaceholder",
|
|
667
667
|
props: {
|
|
668
668
|
name: {},
|
|
@@ -671,27 +671,27 @@ const Ae = { class: "svc-flex-column svc-flex-row__element svc-flex-row__element
|
|
|
671
671
|
},
|
|
672
672
|
setup(c) {
|
|
673
673
|
const t = c;
|
|
674
|
-
return (e, o) => (a(), i("div",
|
|
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
|
-
d("div",
|
|
679
|
-
d("div",
|
|
680
|
-
d("div",
|
|
678
|
+
d("div", ts, [
|
|
679
|
+
d("div", ns, k(t.placeholderTitleText), 1),
|
|
680
|
+
d("div", as, k(t.placeholderDescriptionText), 1)
|
|
681
681
|
])
|
|
682
682
|
]));
|
|
683
683
|
}
|
|
684
|
-
}),
|
|
684
|
+
}), ls = {
|
|
685
685
|
key: 2,
|
|
686
686
|
class: "svc-plugin-tab__content-actions svc-test-tab__content-actions"
|
|
687
|
-
},
|
|
687
|
+
}, is = /* @__PURE__ */ g({
|
|
688
688
|
__name: "Test",
|
|
689
689
|
props: {
|
|
690
690
|
model: {}
|
|
691
691
|
},
|
|
692
692
|
setup(c) {
|
|
693
693
|
const t = c;
|
|
694
|
-
return
|
|
694
|
+
return f(() => t.model), (e, o) => (a(), i("div", {
|
|
695
695
|
class: m(["svc-creator-tab__content svc-test-tab__content", {
|
|
696
696
|
"svc-creator-tab__content--with-toolbar": e.model.isPageToolbarVisible
|
|
697
697
|
}])
|
|
@@ -717,7 +717,7 @@ const Ae = { class: "svc-flex-column svc-flex-row__element svc-flex-row__element
|
|
|
717
717
|
survey: e.model.survey
|
|
718
718
|
}, null, 8, ["survey"])) : p("", !0)
|
|
719
719
|
], 32)),
|
|
720
|
-
e.model.isPageToolbarVisible ? (a(), i("div",
|
|
720
|
+
e.model.isPageToolbarVisible ? (a(), i("div", ls, [
|
|
721
721
|
v(s(u), {
|
|
722
722
|
is: "sv-action-bar",
|
|
723
723
|
model: e.model.pages
|
|
@@ -725,7 +725,7 @@ const Ae = { class: "svc-flex-column svc-flex-row__element svc-flex-row__element
|
|
|
725
725
|
])) : p("", !0)
|
|
726
726
|
], 2));
|
|
727
727
|
}
|
|
728
|
-
}),
|
|
728
|
+
}), rs = { class: "svc-btn__text" }, ds = /* @__PURE__ */ g({
|
|
729
729
|
inheritAttrs: !1,
|
|
730
730
|
__name: "TestAgain",
|
|
731
731
|
props: {
|
|
@@ -733,19 +733,19 @@ const Ae = { class: "svc-flex-column svc-flex-row__element svc-flex-row__element
|
|
|
733
733
|
},
|
|
734
734
|
setup(c) {
|
|
735
735
|
const t = c, e = $(() => t.model.testAgainAction);
|
|
736
|
-
return
|
|
736
|
+
return f(() => e.value), (o, n) => C((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",
|
|
741
|
+
d("span", rs, k(e.value.title), 1)
|
|
742
742
|
])), [
|
|
743
743
|
[s(N)]
|
|
744
744
|
]);
|
|
745
745
|
}
|
|
746
746
|
});
|
|
747
747
|
function z(c, t, e) {
|
|
748
|
-
const o =
|
|
748
|
+
const o = be(), n = W(
|
|
749
749
|
t.map((r) => () => r()),
|
|
750
750
|
() => {
|
|
751
751
|
o.value = c();
|
|
@@ -754,28 +754,28 @@ function z(c, t, e) {
|
|
|
754
754
|
immediate: !0
|
|
755
755
|
}
|
|
756
756
|
);
|
|
757
|
-
return
|
|
757
|
+
return f(() => o.value, void 0, e), Y(() => {
|
|
758
758
|
n();
|
|
759
759
|
}), o;
|
|
760
760
|
}
|
|
761
|
-
const
|
|
761
|
+
const cs = {
|
|
762
762
|
key: 0,
|
|
763
763
|
class: "svd-test-results"
|
|
764
|
-
},
|
|
764
|
+
}, us = { class: "svd-test-results__content" }, ps = { class: "svd-test-results__header" }, vs = { class: "svd-test-results__header-text" }, ms = { class: "svd-test-results__header-types" }, _s = { class: "svd-test-results__text svd-light-bg-color" }, gs = { class: "svd-test-results__table svd-light-bg-color" }, bs = { class: "svd-light-background-color" }, ys = { class: "svd-dark-border-color" }, hs = { class: "svd-dark-border-color" }, Cs = /* @__PURE__ */ g({
|
|
765
765
|
__name: "SurveyResults",
|
|
766
766
|
props: {
|
|
767
767
|
survey: {}
|
|
768
768
|
},
|
|
769
769
|
setup(c) {
|
|
770
770
|
const t = c, e = z(
|
|
771
|
-
() => t.survey ? new
|
|
771
|
+
() => t.survey ? new ye(t.survey) : void 0,
|
|
772
772
|
[() => t.survey]
|
|
773
773
|
);
|
|
774
|
-
return (o, n) => s(e) ? (a(), i("div",
|
|
775
|
-
d("div",
|
|
776
|
-
d("div",
|
|
777
|
-
d("div",
|
|
778
|
-
d("div",
|
|
774
|
+
return (o, n) => s(e) ? (a(), i("div", cs, [
|
|
775
|
+
d("div", us, [
|
|
776
|
+
d("div", ps, [
|
|
777
|
+
d("div", vs, k(s(e).surveyResultsText), 1),
|
|
778
|
+
d("div", ms, [
|
|
779
779
|
v(s(u), {
|
|
780
780
|
is: "svc-action-button",
|
|
781
781
|
text: s(e).surveyResultsTableText,
|
|
@@ -792,21 +792,21 @@ const us = {
|
|
|
792
792
|
}, null, 8, ["text", "click", "selected"])
|
|
793
793
|
])
|
|
794
794
|
]),
|
|
795
|
-
C(d("div",
|
|
795
|
+
C(d("div", _s, [
|
|
796
796
|
d("div", null, k(s(e).resultText), 1)
|
|
797
797
|
], 512), [
|
|
798
798
|
[Q, s(e).resultViewType === "text"]
|
|
799
799
|
]),
|
|
800
|
-
C(d("div",
|
|
800
|
+
C(d("div", gs, [
|
|
801
801
|
d("table", null, [
|
|
802
802
|
d("thead", null, [
|
|
803
|
-
d("tr",
|
|
804
|
-
d("th",
|
|
805
|
-
d("th",
|
|
803
|
+
d("tr", bs, [
|
|
804
|
+
d("th", ys, k(s(e).resultsTitle), 1),
|
|
805
|
+
d("th", hs, k(s(e).resultsDisplayValue), 1)
|
|
806
806
|
])
|
|
807
807
|
]),
|
|
808
808
|
d("tbody", null, [
|
|
809
|
-
(a(!0), i(
|
|
809
|
+
(a(!0), i(T, null, V(s(e).resultData, (r, l) => (a(), y(s(u), {
|
|
810
810
|
is: "survey-results-table-row",
|
|
811
811
|
model: r,
|
|
812
812
|
key: l
|
|
@@ -819,14 +819,14 @@ const us = {
|
|
|
819
819
|
])
|
|
820
820
|
])) : p("", !0);
|
|
821
821
|
}
|
|
822
|
-
}),
|
|
822
|
+
}), qs = { key: 2 }, $s = /* @__PURE__ */ g({
|
|
823
823
|
__name: "SurveyResultsRow",
|
|
824
824
|
props: {
|
|
825
825
|
model: {}
|
|
826
826
|
},
|
|
827
827
|
setup(c) {
|
|
828
828
|
const t = c;
|
|
829
|
-
return
|
|
829
|
+
return f(() => t.model), (e, o) => (a(), i(T, null, [
|
|
830
830
|
C((a(), i("tr", {
|
|
831
831
|
onClick: o[0] || (o[0] = //@ts-ignore
|
|
832
832
|
(...n) => e.model.toggle && e.model.toggle(...n))
|
|
@@ -850,7 +850,7 @@ const us = {
|
|
|
850
850
|
key: 1,
|
|
851
851
|
is: "survey-string",
|
|
852
852
|
locString: e.model.question.locTitle
|
|
853
|
-
}, null, 8, ["locString"])) : (a(), i("span",
|
|
853
|
+
}, null, 8, ["locString"])) : (a(), i("span", qs, k(e.model.title), 1))
|
|
854
854
|
], 4),
|
|
855
855
|
d("td", {
|
|
856
856
|
class: m({
|
|
@@ -861,28 +861,28 @@ const us = {
|
|
|
861
861
|
])), [
|
|
862
862
|
[s(N)]
|
|
863
863
|
]),
|
|
864
|
-
e.model.isNode && !e.model.collapsed ? (a(!0), i(
|
|
864
|
+
e.model.isNode && !e.model.collapsed ? (a(!0), i(T, { key: 0 }, V(e.model.data, (n, r) => (a(), y(s(u), {
|
|
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
|
-
}),
|
|
871
|
+
}), ks = { class: "svc-creator-tab__content" }, fs = { class: "svc-json-editor-tab__content" }, ws = { class: "svc-json-editor-tab__errros_list" }, Ts = /* @__PURE__ */ g({
|
|
872
872
|
__name: "JsonEditorAce",
|
|
873
873
|
props: {
|
|
874
874
|
model: {}
|
|
875
875
|
},
|
|
876
876
|
setup(c) {
|
|
877
877
|
const t = c, e = I();
|
|
878
|
-
return
|
|
879
|
-
d("div",
|
|
878
|
+
return f(() => t.model), P(() => t.model.init(window.ace.edit(e.value))), (o, n) => (a(), i("div", ks, [
|
|
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
|
-
C(d("div",
|
|
885
|
+
C(d("div", ws, [
|
|
886
886
|
v(s(u), {
|
|
887
887
|
is: "sv-list",
|
|
888
888
|
model: o.model.errorList
|
|
@@ -893,18 +893,18 @@ const us = {
|
|
|
893
893
|
])
|
|
894
894
|
]));
|
|
895
895
|
}
|
|
896
|
-
}),
|
|
896
|
+
}), Ds = { class: "svc-creator-tab__content" }, Ns = { class: "svc-json-editor-tab__content" }, Ms = ["aria-label", "disabled"], Ss = { class: "svc-json-editor-tab__errros_list" }, Bs = /* @__PURE__ */ g({
|
|
897
897
|
__name: "JsonEditorTextArea",
|
|
898
898
|
props: {
|
|
899
899
|
model: {}
|
|
900
900
|
},
|
|
901
901
|
setup(c) {
|
|
902
902
|
const t = c, e = I(), o = t.model;
|
|
903
|
-
return o.canShowErrors = !1,
|
|
903
|
+
return o.canShowErrors = !1, f(() => t.model), P(() => {
|
|
904
904
|
const n = t.model;
|
|
905
905
|
n.textElement = e.value;
|
|
906
|
-
}), (n, r) => (a(), i("div",
|
|
907
|
-
d("div",
|
|
906
|
+
}), (n, r) => (a(), i("div", Ds, [
|
|
907
|
+
d("div", Ns, [
|
|
908
908
|
C(d("textarea", {
|
|
909
909
|
class: "svc-json-editor-tab__content-area",
|
|
910
910
|
"aria-label": s(o).ariaLabel,
|
|
@@ -914,10 +914,10 @@ const us = {
|
|
|
914
914
|
ref_key: "inputEl",
|
|
915
915
|
ref: e
|
|
916
916
|
}, `
|
|
917
|
-
`, 40,
|
|
917
|
+
`, 40, Ms), [
|
|
918
918
|
[de, s(o).text]
|
|
919
919
|
]),
|
|
920
|
-
C(d("div",
|
|
920
|
+
C(d("div", Ss, [
|
|
921
921
|
v(s(u), {
|
|
922
922
|
is: "sv-list",
|
|
923
923
|
model: s(o).errorList
|
|
@@ -928,26 +928,26 @@ const us = {
|
|
|
928
928
|
])
|
|
929
929
|
]));
|
|
930
930
|
}
|
|
931
|
-
}),
|
|
931
|
+
}), Is = { class: "svc-json-error__container" }, Es = { class: "svc-json-error__title" }, Ps = ["title", "aria-label"], Rs = /* @__PURE__ */ g({
|
|
932
932
|
__name: "JsonEditorErrorItem",
|
|
933
933
|
props: {
|
|
934
934
|
item: {}
|
|
935
935
|
},
|
|
936
936
|
setup(c) {
|
|
937
937
|
const t = c;
|
|
938
|
-
|
|
938
|
+
f(() => t.item);
|
|
939
939
|
const e = (o) => {
|
|
940
940
|
o.stopPropagation(), t.item.data.fixError();
|
|
941
941
|
};
|
|
942
|
-
return (o, n) => (a(), i(
|
|
942
|
+
return (o, n) => (a(), i(T, null, [
|
|
943
943
|
v(s(u), {
|
|
944
944
|
is: "sv-svg-icon",
|
|
945
945
|
iconName: o.item.iconName,
|
|
946
946
|
size: o.item.iconSize,
|
|
947
947
|
class: m("svc-json-error__icon")
|
|
948
948
|
}, null, 8, ["iconName", "size"]),
|
|
949
|
-
d("div",
|
|
950
|
-
d("div",
|
|
949
|
+
d("div", Is, [
|
|
950
|
+
d("div", Es, [
|
|
951
951
|
v(s(u), {
|
|
952
952
|
is: "survey-string",
|
|
953
953
|
locString: o.item.locTitle
|
|
@@ -966,7 +966,7 @@ const us = {
|
|
|
966
966
|
iconName: o.item.data.fixButtonIcon,
|
|
967
967
|
size: "auto"
|
|
968
968
|
}, null, 8, ["iconName"])
|
|
969
|
-
], 8,
|
|
969
|
+
], 8, Ps)), [
|
|
970
970
|
[s(N)]
|
|
971
971
|
]) : p("", !0)
|
|
972
972
|
])
|
|
@@ -979,7 +979,7 @@ const us = {
|
|
|
979
979
|
},
|
|
980
980
|
setup(c) {
|
|
981
981
|
const t = c;
|
|
982
|
-
|
|
982
|
+
f(() => t.model);
|
|
983
983
|
const e = (o) => {
|
|
984
984
|
o.stopPropagation(), t.model.action();
|
|
985
985
|
};
|
|
@@ -995,21 +995,21 @@ const us = {
|
|
|
995
995
|
[s(N)]
|
|
996
996
|
]);
|
|
997
997
|
}
|
|
998
|
-
}),
|
|
998
|
+
}), As = { class: "svc-creator-tab__content" }, zs = {
|
|
999
999
|
key: 1,
|
|
1000
1000
|
class: "svc-logic-tab__content-empty"
|
|
1001
|
-
},
|
|
1001
|
+
}, Ls = /* @__PURE__ */ g({
|
|
1002
1002
|
__name: "Logic",
|
|
1003
1003
|
props: {
|
|
1004
1004
|
model: {}
|
|
1005
1005
|
},
|
|
1006
1006
|
setup(c) {
|
|
1007
1007
|
const t = c;
|
|
1008
|
-
return
|
|
1008
|
+
return f(() => t.model), (e, o) => (a(), i("div", As, [
|
|
1009
1009
|
d("div", {
|
|
1010
1010
|
class: m(["svc-plugin-tab__content svc-logic-tab__content", { "svc-logic-tab--empty": !e.model.hasItems }])
|
|
1011
1011
|
}, [
|
|
1012
|
-
e.model.hasItems ? (a(), i(
|
|
1012
|
+
e.model.hasItems ? (a(), i(T, { key: 0 }, [
|
|
1013
1013
|
v(s(O), {
|
|
1014
1014
|
model: e.model.itemsSurvey
|
|
1015
1015
|
}, null, 8, ["model"]),
|
|
@@ -1018,7 +1018,7 @@ const us = {
|
|
|
1018
1018
|
model: e.model.addNewButton
|
|
1019
1019
|
}, null, 8, ["model"]))
|
|
1020
1020
|
], 64)) : p("", !0),
|
|
1021
|
-
e.model.hasItems ? p("", !0) : (a(), i("div",
|
|
1021
|
+
e.model.hasItems ? p("", !0) : (a(), i("div", zs, [
|
|
1022
1022
|
v(j, {
|
|
1023
1023
|
name: "logic",
|
|
1024
1024
|
placeholderTitleText: e.model.placeholderTitleText,
|
|
@@ -1032,21 +1032,21 @@ const us = {
|
|
|
1032
1032
|
], 2)
|
|
1033
1033
|
]));
|
|
1034
1034
|
}
|
|
1035
|
-
}),
|
|
1035
|
+
}), Fs = ["id", "required", "tabindex", "disabled", "role", "aria-required", "aria-invalid", "aria-errormessage", "aria-expanded", "aria-label", "aria-labelledby", "aria-controls"], Ks = ["id"];
|
|
1036
1036
|
ue.Instance.registerRenderer(
|
|
1037
1037
|
"dropdown",
|
|
1038
1038
|
"logicoperator",
|
|
1039
1039
|
"sv-logic-operator"
|
|
1040
1040
|
);
|
|
1041
|
-
const
|
|
1041
|
+
const Us = /* @__PURE__ */ g({
|
|
1042
1042
|
__name: "LogicOperator",
|
|
1043
1043
|
props: {
|
|
1044
1044
|
question: {}
|
|
1045
1045
|
},
|
|
1046
1046
|
setup(c) {
|
|
1047
|
-
const t = c, e = I(), o = $(() => t.question.dropdownListModel ?? new
|
|
1047
|
+
const t = c, e = I(), o = $(() => t.question.dropdownListModel ?? new Pe(t.question));
|
|
1048
1048
|
H(t, e, (l) => {
|
|
1049
|
-
|
|
1049
|
+
he(l);
|
|
1050
1050
|
});
|
|
1051
1051
|
const n = (l) => {
|
|
1052
1052
|
var _;
|
|
@@ -1058,7 +1058,7 @@ const Qs = /* @__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(T, { key: 0 }, [
|
|
1062
1062
|
d("div", {
|
|
1063
1063
|
class: m(l.question.getControlClass()),
|
|
1064
1064
|
onClick: n,
|
|
@@ -1085,7 +1085,7 @@ const Qs = /* @__PURE__ */ g({
|
|
|
1085
1085
|
locString: l.question.locReadOnlyText
|
|
1086
1086
|
}, null, 8, ["locString"])) : p("", !0)
|
|
1087
1087
|
], 2)
|
|
1088
|
-
], 42,
|
|
1088
|
+
], 42, Fs),
|
|
1089
1089
|
v(s(u), {
|
|
1090
1090
|
is: "sv-popup",
|
|
1091
1091
|
model: l.question.popupModel
|
|
@@ -1102,10 +1102,10 @@ const Qs = /* @__PURE__ */ g({
|
|
|
1102
1102
|
is: "survey-string",
|
|
1103
1103
|
locString: l.question.locReadOnlyText
|
|
1104
1104
|
}, null, 8, ["locString"])) : p("", !0)
|
|
1105
|
-
], 10,
|
|
1105
|
+
], 10, Ks)) : p("", !0)
|
|
1106
1106
|
], 2));
|
|
1107
1107
|
}
|
|
1108
|
-
}),
|
|
1108
|
+
}), Qs = /* @__PURE__ */ g({
|
|
1109
1109
|
__name: "EmbeddedSurvey",
|
|
1110
1110
|
props: {
|
|
1111
1111
|
question: {}
|
|
@@ -1121,7 +1121,7 @@ const Qs = /* @__PURE__ */ g({
|
|
|
1121
1121
|
survey: o.value
|
|
1122
1122
|
}, null, 8, ["page", "survey"])) : p("", !0);
|
|
1123
1123
|
}
|
|
1124
|
-
}),
|
|
1124
|
+
}), Hs = /* @__PURE__ */ g({
|
|
1125
1125
|
inheritAttrs: !1,
|
|
1126
1126
|
__name: "LinkValue",
|
|
1127
1127
|
props: {
|
|
@@ -1129,7 +1129,7 @@ const Qs = /* @__PURE__ */ g({
|
|
|
1129
1129
|
},
|
|
1130
1130
|
setup(c) {
|
|
1131
1131
|
const t = c, e = I(), o = ce.getString("pe.clear");
|
|
1132
|
-
return H(t, e), (n, r) => (a(), i(
|
|
1132
|
+
return H(t, e), (n, r) => (a(), i(T, null, [
|
|
1133
1133
|
v(s(u), {
|
|
1134
1134
|
is: "svc-action-button",
|
|
1135
1135
|
text: n.question.linkValueText,
|
|
@@ -1150,17 +1150,17 @@ const Qs = /* @__PURE__ */ g({
|
|
|
1150
1150
|
}, null, 8, ["text", "click", "classes"])) : p("", !0)
|
|
1151
1151
|
], 64));
|
|
1152
1152
|
}
|
|
1153
|
-
}),
|
|
1153
|
+
}), Os = {
|
|
1154
1154
|
key: 1,
|
|
1155
1155
|
class: "st-content"
|
|
1156
|
-
},
|
|
1156
|
+
}, Gs = { class: "svc-flex-column st-strings-wrapper" }, Ws = { class: "svc-flex-row st-strings-header" }, js = { class: "svc-flex-row svc-plugin-tab__content st-strings" }, Js = /* @__PURE__ */ g({
|
|
1157
1157
|
__name: "Translation",
|
|
1158
1158
|
props: {
|
|
1159
1159
|
model: {}
|
|
1160
1160
|
},
|
|
1161
1161
|
setup(c) {
|
|
1162
1162
|
const t = c;
|
|
1163
|
-
return
|
|
1163
|
+
return f(() => t.model), (e, o) => (a(), i("div", {
|
|
1164
1164
|
class: m(["svc-creator-tab__content svc-translation-tab", e.model.isEmpty ? "svc-translation-tab--empty" : ""])
|
|
1165
1165
|
}, [
|
|
1166
1166
|
e.model.isEmpty ? (a(), y(j, {
|
|
@@ -1169,14 +1169,14 @@ const Qs = /* @__PURE__ */ g({
|
|
|
1169
1169
|
placeholderTitleText: e.model.placeholderTitleText,
|
|
1170
1170
|
placeholderDescriptionText: e.model.placeholderDescriptionText
|
|
1171
1171
|
}, null, 8, ["placeholderTitleText", "placeholderDescriptionText"])) : p("", !0),
|
|
1172
|
-
e.model.isEmpty ? p("", !0) : (a(), i("div",
|
|
1173
|
-
d("div",
|
|
1174
|
-
d("div",
|
|
1172
|
+
e.model.isEmpty ? p("", !0) : (a(), i("div", Os, [
|
|
1173
|
+
d("div", Gs, [
|
|
1174
|
+
d("div", Ws, [
|
|
1175
1175
|
v(s(O), {
|
|
1176
1176
|
model: e.model.stringsHeaderSurvey
|
|
1177
1177
|
}, null, 8, ["model"])
|
|
1178
1178
|
]),
|
|
1179
|
-
d("div",
|
|
1179
|
+
d("div", js, [
|
|
1180
1180
|
v(s(O), {
|
|
1181
1181
|
model: e.model.stringsSurvey
|
|
1182
1182
|
}, null, 8, ["model"])
|
|
@@ -1185,16 +1185,16 @@ const Qs = /* @__PURE__ */ g({
|
|
|
1185
1185
|
]))
|
|
1186
1186
|
], 2));
|
|
1187
1187
|
}
|
|
1188
|
-
}),
|
|
1188
|
+
}), Zs = (c, t) => {
|
|
1189
1189
|
const e = c.__vccOpts || c;
|
|
1190
1190
|
for (const [o, n] of t)
|
|
1191
1191
|
e[o] = n;
|
|
1192
1192
|
return e;
|
|
1193
|
-
},
|
|
1194
|
-
function
|
|
1195
|
-
return a(), i("div",
|
|
1193
|
+
}, Xs = {}, Ys = { class: "sd-translation-line-skeleton" };
|
|
1194
|
+
function xs(c, t) {
|
|
1195
|
+
return a(), i("div", Ys);
|
|
1196
1196
|
}
|
|
1197
|
-
const
|
|
1197
|
+
const et = /* @__PURE__ */ Zs(Xs, [["render", xs]]), ot = /* @__PURE__ */ g({
|
|
1198
1198
|
__name: "TranslateFromAction",
|
|
1199
1199
|
props: {
|
|
1200
1200
|
item: {}
|
|
@@ -1212,20 +1212,20 @@ const ot = /* @__PURE__ */ Xs(Ys, [["render", et]]), st = /* @__PURE__ */ g({
|
|
|
1212
1212
|
}, null, 8, ["item"])
|
|
1213
1213
|
], 2));
|
|
1214
1214
|
}
|
|
1215
|
-
}),
|
|
1215
|
+
}), st = {
|
|
1216
1216
|
key: 1,
|
|
1217
1217
|
class: "svc-plugin-tab__content"
|
|
1218
|
-
},
|
|
1218
|
+
}, tt = {
|
|
1219
1219
|
key: 2,
|
|
1220
1220
|
class: "svc-plugin-tab__content-actions svc-test-tab__content-actions"
|
|
1221
|
-
},
|
|
1221
|
+
}, nt = /* @__PURE__ */ g({
|
|
1222
1222
|
__name: "Theme",
|
|
1223
1223
|
props: {
|
|
1224
1224
|
model: {}
|
|
1225
1225
|
},
|
|
1226
1226
|
setup(c) {
|
|
1227
1227
|
const t = c;
|
|
1228
|
-
return
|
|
1228
|
+
return f(() => t.model), (e, o) => (a(), i("div", {
|
|
1229
1229
|
class: m(["svc-creator-tab__content svc-test-tab__content", {
|
|
1230
1230
|
"svc-creator-tab__content--with-toolbar": e.model.isPageToolbarVisible
|
|
1231
1231
|
}])
|
|
@@ -1236,7 +1236,7 @@ const ot = /* @__PURE__ */ Xs(Ys, [["render", et]]), st = /* @__PURE__ */ g({
|
|
|
1236
1236
|
placeholderTitleText: e.model.placeholderTitleText,
|
|
1237
1237
|
placeholderDescriptionText: e.model.placeholderDescriptionText
|
|
1238
1238
|
}, null, 8, ["placeholderTitleText", "placeholderDescriptionText"])) : p("", !0),
|
|
1239
|
-
e.model.survey.isEmpty ? p("", !0) : (a(), i("div",
|
|
1239
|
+
e.model.survey.isEmpty ? p("", !0) : (a(), i("div", st, [
|
|
1240
1240
|
v(s(u), {
|
|
1241
1241
|
is: "survey-simulator",
|
|
1242
1242
|
model: e.model.simulator
|
|
@@ -1247,7 +1247,7 @@ const ot = /* @__PURE__ */ Xs(Ys, [["render", et]]), st = /* @__PURE__ */ g({
|
|
|
1247
1247
|
survey: e.model.survey
|
|
1248
1248
|
}, null, 8, ["survey"])) : p("", !0)
|
|
1249
1249
|
])),
|
|
1250
|
-
e.model.isPageToolbarVisible ? (a(), i("div",
|
|
1250
|
+
e.model.isPageToolbarVisible ? (a(), i("div", tt, [
|
|
1251
1251
|
v(s(u), {
|
|
1252
1252
|
is: "sv-action-bar",
|
|
1253
1253
|
model: e.model.pages
|
|
@@ -1255,7 +1255,7 @@ const ot = /* @__PURE__ */ Xs(Ys, [["render", et]]), st = /* @__PURE__ */ g({
|
|
|
1255
1255
|
])) : p("", !0)
|
|
1256
1256
|
], 2));
|
|
1257
1257
|
}
|
|
1258
|
-
}),
|
|
1258
|
+
}), at = ["disabled", "value", "aria-required", "aria-labelledby", "aria-label", "aria-invalid", "aria-describedby"], lt = ["disabled", "id", "placeholder", "aria-required", "aria-labelledby", "aria-label", "aria-invalid", "aria-describedby", "value"], it = /* @__PURE__ */ g({
|
|
1259
1259
|
__name: "Color",
|
|
1260
1260
|
props: {
|
|
1261
1261
|
question: {}
|
|
@@ -1288,7 +1288,7 @@ const ot = /* @__PURE__ */ Xs(Ys, [["render", et]]), st = /* @__PURE__ */ g({
|
|
|
1288
1288
|
"aria-label": e.question.a11y_input_ariaLabel,
|
|
1289
1289
|
"aria-invalid": e.question.a11y_input_ariaInvalid,
|
|
1290
1290
|
"aria-describedby": e.question.a11y_input_ariaDescribedBy
|
|
1291
|
-
}, null, 42,
|
|
1291
|
+
}, null, 42, at)
|
|
1292
1292
|
], 6),
|
|
1293
1293
|
d("input", {
|
|
1294
1294
|
autocomplete: "off",
|
|
@@ -1310,8 +1310,8 @@ const ot = /* @__PURE__ */ Xs(Ys, [["render", et]]), st = /* @__PURE__ */ g({
|
|
|
1310
1310
|
(...n) => e.question.onBeforeInput && e.question.onBeforeInput(...n)),
|
|
1311
1311
|
value: e.question.renderedValue,
|
|
1312
1312
|
class: m(e.question.cssClasses.control)
|
|
1313
|
-
}, null, 42,
|
|
1314
|
-
e.question.showDropdownAction ? (a(), i(
|
|
1313
|
+
}, null, 42, lt),
|
|
1314
|
+
e.question.showDropdownAction ? (a(), i(T, { key: 0 }, [
|
|
1315
1315
|
d("div", {
|
|
1316
1316
|
"aria-hidden": "true",
|
|
1317
1317
|
class: m(e.question.cssClasses.choicesButtonWrapper)
|
|
@@ -1328,7 +1328,7 @@ const ot = /* @__PURE__ */ Xs(Ys, [["render", et]]), st = /* @__PURE__ */ g({
|
|
|
1328
1328
|
], 64)) : p("", !0)
|
|
1329
1329
|
], 34));
|
|
1330
1330
|
}
|
|
1331
|
-
}),
|
|
1331
|
+
}), rt = /* @__PURE__ */ g({
|
|
1332
1332
|
__name: "ColorItem",
|
|
1333
1333
|
props: {
|
|
1334
1334
|
model: {},
|
|
@@ -1336,9 +1336,9 @@ const ot = /* @__PURE__ */ Xs(Ys, [["render", et]]), st = /* @__PURE__ */ g({
|
|
|
1336
1336
|
},
|
|
1337
1337
|
setup(c) {
|
|
1338
1338
|
const t = c;
|
|
1339
|
-
|
|
1339
|
+
f(() => t.item);
|
|
1340
1340
|
const e = () => ({ backgroundColor: t.item.value });
|
|
1341
|
-
return (o, n) => (a(), i(
|
|
1341
|
+
return (o, n) => (a(), i(T, null, [
|
|
1342
1342
|
d("span", {
|
|
1343
1343
|
class: "spg-color-editor__color-swatch",
|
|
1344
1344
|
style: F(e())
|
|
@@ -1349,7 +1349,7 @@ const ot = /* @__PURE__ */ Xs(Ys, [["render", et]]), st = /* @__PURE__ */ g({
|
|
|
1349
1349
|
}, null, 8, ["locString"])
|
|
1350
1350
|
], 64));
|
|
1351
1351
|
}
|
|
1352
|
-
}),
|
|
1352
|
+
}), dt = ["disabled", "value", "placeholder"], ct = ["disabled", "id", "aria-required", "aria-label", "aria-invalid", "aria-describedby", "title", "accept"], ut = ["title", "disabled"], pt = ["for", "aria-label"], vt = /* @__PURE__ */ g({
|
|
1353
1353
|
__name: "File",
|
|
1354
1354
|
props: {
|
|
1355
1355
|
question: {}
|
|
@@ -1381,7 +1381,7 @@ const ot = /* @__PURE__ */ Xs(Ys, [["render", et]]), st = /* @__PURE__ */ g({
|
|
|
1381
1381
|
onBlur: n[1] || (n[1] = //@ts-ignore
|
|
1382
1382
|
(...r) => o.question.onInputBlur && o.question.onInputBlur(...r)),
|
|
1383
1383
|
placeholder: o.question.renderedPlaceholder
|
|
1384
|
-
}, null, 42,
|
|
1384
|
+
}, null, 42, dt),
|
|
1385
1385
|
d("input", {
|
|
1386
1386
|
type: "file",
|
|
1387
1387
|
disabled: o.question.isInputReadOnly,
|
|
@@ -1397,7 +1397,7 @@ const ot = /* @__PURE__ */ Xs(Ys, [["render", et]]), st = /* @__PURE__ */ g({
|
|
|
1397
1397
|
accept: o.question.acceptedTypes,
|
|
1398
1398
|
onChange: n[2] || (n[2] = //@ts-ignore
|
|
1399
1399
|
(...r) => o.question.onFileInputChange && o.question.onFileInputChange(...r))
|
|
1400
|
-
}, null, 42,
|
|
1400
|
+
}, null, 42, ct),
|
|
1401
1401
|
d("div", {
|
|
1402
1402
|
class: m(o.question.cssClasses.buttonsContainer)
|
|
1403
1403
|
}, [
|
|
@@ -1413,7 +1413,7 @@ const ot = /* @__PURE__ */ Xs(Ys, [["render", et]]), st = /* @__PURE__ */ g({
|
|
|
1413
1413
|
iconName: o.question.cssClasses.clearButtonIcon,
|
|
1414
1414
|
size: "auto"
|
|
1415
1415
|
}, null, 8, ["iconName"])
|
|
1416
|
-
], 10,
|
|
1416
|
+
], 10, ut)), [
|
|
1417
1417
|
[s(N)]
|
|
1418
1418
|
]),
|
|
1419
1419
|
C((a(), i("label", {
|
|
@@ -1429,13 +1429,13 @@ const ot = /* @__PURE__ */ Xs(Ys, [["render", et]]), st = /* @__PURE__ */ g({
|
|
|
1429
1429
|
size: "auto",
|
|
1430
1430
|
title: o.question.chooseButtonCaption
|
|
1431
1431
|
}, null, 8, ["iconName", "title"])
|
|
1432
|
-
], 10,
|
|
1432
|
+
], 10, pt)), [
|
|
1433
1433
|
[s(N)]
|
|
1434
1434
|
])
|
|
1435
1435
|
], 2)
|
|
1436
1436
|
], 34));
|
|
1437
1437
|
}
|
|
1438
|
-
}),
|
|
1438
|
+
}), mt = ["disabled", "id", "placeholder", "aria-required", "aria-label", "aria-labelledby", "aria-describedby", "aria-invalid", "aria-errormessage", "value"], _t = ["disabled"], gt = ["disabled"], bt = /* @__PURE__ */ g({
|
|
1439
1439
|
__name: "SpinEditor",
|
|
1440
1440
|
props: {
|
|
1441
1441
|
question: {}
|
|
@@ -1472,7 +1472,7 @@ const ot = /* @__PURE__ */ Xs(Ys, [["render", et]]), st = /* @__PURE__ */ g({
|
|
|
1472
1472
|
(...n) => e.question.onBeforeInput && e.question.onBeforeInput(...n)),
|
|
1473
1473
|
value: e.question.renderedValue,
|
|
1474
1474
|
class: m(e.question.cssClasses.control)
|
|
1475
|
-
}, null, 42,
|
|
1475
|
+
}, null, 42, mt),
|
|
1476
1476
|
d("span", {
|
|
1477
1477
|
class: m(e.question.cssClasses.buttonsContainer)
|
|
1478
1478
|
}, [
|
|
@@ -1499,7 +1499,7 @@ const ot = /* @__PURE__ */ Xs(Ys, [["render", et]]), st = /* @__PURE__ */ g({
|
|
|
1499
1499
|
iconName: e.question.cssClasses.decreaseButtonIcon,
|
|
1500
1500
|
size: "auto"
|
|
1501
1501
|
}, null, 8, ["iconName"])
|
|
1502
|
-
], 42,
|
|
1502
|
+
], 42, _t),
|
|
1503
1503
|
d("button", {
|
|
1504
1504
|
"aria-hidden": "true",
|
|
1505
1505
|
disabled: e.question.isInputReadOnly,
|
|
@@ -1523,18 +1523,21 @@ const ot = /* @__PURE__ */ Xs(Ys, [["render", et]]), st = /* @__PURE__ */ g({
|
|
|
1523
1523
|
iconName: e.question.cssClasses.increaseButtonIcon,
|
|
1524
1524
|
size: "auto"
|
|
1525
1525
|
}, null, 8, ["iconName"])
|
|
1526
|
-
], 42,
|
|
1526
|
+
], 42, gt)
|
|
1527
1527
|
], 2)
|
|
1528
1528
|
], 34));
|
|
1529
1529
|
}
|
|
1530
|
-
}),
|
|
1530
|
+
}), yt = ["disabled", "title"], ne = /* @__PURE__ */ g({
|
|
1531
1531
|
__name: "TextWithReset",
|
|
1532
1532
|
props: {
|
|
1533
1533
|
question: {}
|
|
1534
1534
|
},
|
|
1535
1535
|
setup(c) {
|
|
1536
1536
|
const t = c, e = () => "survey-" + t.question.wrappedQuestionTemplate;
|
|
1537
|
-
return H(t, I()), (
|
|
1537
|
+
return H(t, I()), f(() => {
|
|
1538
|
+
var o;
|
|
1539
|
+
return (o = t.question) == null ? void 0 : o.resetValueAdorner;
|
|
1540
|
+
}), (o, n) => (a(), i("div", {
|
|
1538
1541
|
class: m(o.question.getRootClass())
|
|
1539
1542
|
}, [
|
|
1540
1543
|
v(s(u), {
|
|
@@ -1553,23 +1556,23 @@ const ot = /* @__PURE__ */ Xs(Ys, [["render", et]]), st = /* @__PURE__ */ g({
|
|
|
1553
1556
|
iconName: o.question.cssClasses.resetButtonIcon,
|
|
1554
1557
|
size: "auto"
|
|
1555
1558
|
}, null, 8, ["iconName"])
|
|
1556
|
-
], 10,
|
|
1559
|
+
], 10, yt)
|
|
1557
1560
|
], 2));
|
|
1558
1561
|
}
|
|
1559
|
-
}),
|
|
1562
|
+
}), ht = ["aria-checked", "aria-required", "aria-label", "aria-labelledby", "aria-invalid", "aria-errormessage"], Ct = /* @__PURE__ */ d("div", { class: "spg-boolean-switch__thumb" }, [
|
|
1560
1563
|
/* @__PURE__ */ d("div", { class: "spg-boolean-switch__thumb-circle spg-boolean-switch__thumb--left" })
|
|
1561
|
-
], -1),
|
|
1564
|
+
], -1), qt = /* @__PURE__ */ d("div", { class: "spg-boolean-switch__thumb" }, [
|
|
1562
1565
|
/* @__PURE__ */ d("div", { class: "spg-boolean-switch__thumb-circle spg-boolean-switch__thumb--right" })
|
|
1563
|
-
], -1),
|
|
1564
|
-
|
|
1565
|
-
|
|
1566
|
-
],
|
|
1566
|
+
], -1), $t = [
|
|
1567
|
+
Ct,
|
|
1568
|
+
qt
|
|
1569
|
+
], kt = { class: "spg-boolean-switch__caption" }, ft = ["id"];
|
|
1567
1570
|
ue.Instance.registerRenderer(
|
|
1568
1571
|
"boolean",
|
|
1569
1572
|
"switch",
|
|
1570
1573
|
"sv-boolean-switch"
|
|
1571
1574
|
);
|
|
1572
|
-
const
|
|
1575
|
+
const wt = /* @__PURE__ */ g({
|
|
1573
1576
|
inheritAttrs: !1,
|
|
1574
1577
|
__name: "BooleanSwitch",
|
|
1575
1578
|
props: {
|
|
@@ -1601,10 +1604,10 @@ const Tt = /* @__PURE__ */ g({
|
|
|
1601
1604
|
C((a(), i("div", {
|
|
1602
1605
|
class: m(["spg-boolean-switch__button", n.question.value ? "spg-boolean-switch__button--checked" : ""]),
|
|
1603
1606
|
tabindex: "0"
|
|
1604
|
-
},
|
|
1607
|
+
}, $t, 2)), [
|
|
1605
1608
|
[s(N), { disableTabStop: !0 }]
|
|
1606
1609
|
]),
|
|
1607
|
-
d("div",
|
|
1610
|
+
d("div", kt, [
|
|
1608
1611
|
d("div", {
|
|
1609
1612
|
class: "spg-boolean-switch__title",
|
|
1610
1613
|
id: n.question.labelRenderedAriaID
|
|
@@ -1613,14 +1616,14 @@ const Tt = /* @__PURE__ */ g({
|
|
|
1613
1616
|
is: "survey-string",
|
|
1614
1617
|
locString: n.question.locTitle
|
|
1615
1618
|
}, null, 8, ["locString"])
|
|
1616
|
-
], 8,
|
|
1619
|
+
], 8, ft)
|
|
1617
1620
|
])
|
|
1618
|
-
], 8,
|
|
1621
|
+
], 8, ht));
|
|
1619
1622
|
}
|
|
1620
|
-
}),
|
|
1623
|
+
}), Tt = { class: "svc-string-editor__content" }, Dt = /* @__PURE__ */ d("div", { class: "svc-string-editor__border svc-string-editor__border--hover" }, null, -1), Nt = /* @__PURE__ */ d("div", { class: "svc-string-editor__border svc-string-editor__border--focus" }, null, -1), Mt = { class: "svc-string-editor__input" }, St = ["textContent", "aria-placeholder", "aria-label", "contenteditable", "tabindex"], Bt = ["aria-placeholder", "aria-label", "contenteditable", "tabindex", "innerHTML"], It = {
|
|
1621
1624
|
key: 0,
|
|
1622
1625
|
class: "svc-string-editor__error"
|
|
1623
|
-
},
|
|
1626
|
+
}, Et = /* @__PURE__ */ g({
|
|
1624
1627
|
__name: "StringEditor",
|
|
1625
1628
|
props: {
|
|
1626
1629
|
locString: {}
|
|
@@ -1628,7 +1631,7 @@ const Tt = /* @__PURE__ */ g({
|
|
|
1628
1631
|
setup(c) {
|
|
1629
1632
|
const t = c, e = $(() => t.locString.locStr), o = $(() => t.locString.creator), n = I(), r = I(), l = z(
|
|
1630
1633
|
() => {
|
|
1631
|
-
const h = new
|
|
1634
|
+
const h = new Ce(
|
|
1632
1635
|
e.value,
|
|
1633
1636
|
o.value
|
|
1634
1637
|
);
|
|
@@ -1649,7 +1652,7 @@ const Tt = /* @__PURE__ */ g({
|
|
|
1649
1652
|
}), b = $(() => {
|
|
1650
1653
|
var h;
|
|
1651
1654
|
return (h = l.value) == null ? void 0 : h.placeholder;
|
|
1652
|
-
}),
|
|
1655
|
+
}), w = $(() => {
|
|
1653
1656
|
var h;
|
|
1654
1657
|
return (h = l.value) == null ? void 0 : h.contentEditable;
|
|
1655
1658
|
}), E = $(() => {
|
|
@@ -1696,10 +1699,10 @@ const Tt = /* @__PURE__ */ g({
|
|
|
1696
1699
|
}), (h, D) => (a(), i("span", {
|
|
1697
1700
|
class: m(q.value)
|
|
1698
1701
|
}, [
|
|
1699
|
-
d("span",
|
|
1702
|
+
d("span", Tt, [
|
|
1703
|
+
Dt,
|
|
1700
1704
|
Nt,
|
|
1701
|
-
Mt,
|
|
1702
|
-
d("span", St, [
|
|
1705
|
+
d("span", Mt, [
|
|
1703
1706
|
e.value.hasHtml ? p("", !0) : (a(), i("span", {
|
|
1704
1707
|
key: 0,
|
|
1705
1708
|
role: "textbox",
|
|
@@ -1747,11 +1750,11 @@ const Tt = /* @__PURE__ */ g({
|
|
|
1747
1750
|
textContent: r.value,
|
|
1748
1751
|
"aria-placeholder": b.value,
|
|
1749
1752
|
"aria-label": b.value || "content editable",
|
|
1750
|
-
contenteditable:
|
|
1753
|
+
contenteditable: w.value,
|
|
1751
1754
|
tabindex: s(l).tabIndex,
|
|
1752
1755
|
ref_key: "root",
|
|
1753
1756
|
ref: n
|
|
1754
|
-
}, null, 40,
|
|
1757
|
+
}, null, 40, St)),
|
|
1755
1758
|
e.value.hasHtml ? (a(), i("span", {
|
|
1756
1759
|
key: 1,
|
|
1757
1760
|
role: "textbox",
|
|
@@ -1787,12 +1790,12 @@ const Tt = /* @__PURE__ */ g({
|
|
|
1787
1790
|
onClick: se,
|
|
1788
1791
|
"aria-placeholder": b.value,
|
|
1789
1792
|
"aria-label": b.value || "content editable",
|
|
1790
|
-
contenteditable:
|
|
1793
|
+
contenteditable: w.value,
|
|
1791
1794
|
tabindex: s(l).tabIndex,
|
|
1792
1795
|
innerHTML: r.value,
|
|
1793
1796
|
ref_key: "root",
|
|
1794
1797
|
ref: n
|
|
1795
|
-
}, null, 40,
|
|
1798
|
+
}, null, 40, Bt)) : p("", !0),
|
|
1796
1799
|
R.value ? (a(), y(s(u), {
|
|
1797
1800
|
key: 2,
|
|
1798
1801
|
is: "sv-character-counter",
|
|
@@ -1801,26 +1804,26 @@ const Tt = /* @__PURE__ */ g({
|
|
|
1801
1804
|
}, null, 8, ["counter", "remainingCharacterCounter"])) : p("", !0)
|
|
1802
1805
|
])
|
|
1803
1806
|
]),
|
|
1804
|
-
_.value ? (a(), i("span",
|
|
1807
|
+
_.value ? (a(), i("span", It, k(_.value), 1)) : p("", !0)
|
|
1805
1808
|
], 2));
|
|
1806
1809
|
}
|
|
1807
|
-
}),
|
|
1810
|
+
}), Pt = {
|
|
1808
1811
|
key: 0,
|
|
1809
1812
|
class: "svc-toolbox__search-container"
|
|
1810
|
-
},
|
|
1813
|
+
}, Rt = /* @__PURE__ */ d("div", { class: "svc-toolbox__category-separator svc-toolbox__category-separator--search" }, null, -1), Vt = {
|
|
1811
1814
|
key: 1,
|
|
1812
1815
|
class: "svc-toolbox__placeholder"
|
|
1813
|
-
},
|
|
1816
|
+
}, At = {
|
|
1814
1817
|
key: 1,
|
|
1815
1818
|
class: "svc-toolbox__category"
|
|
1816
|
-
},
|
|
1819
|
+
}, zt = /* @__PURE__ */ g({
|
|
1817
1820
|
__name: "AdaptiveToolbox",
|
|
1818
1821
|
props: {
|
|
1819
1822
|
model: {}
|
|
1820
1823
|
},
|
|
1821
1824
|
setup(c) {
|
|
1822
1825
|
const t = c, e = $(() => t.model.toolbox), o = I();
|
|
1823
|
-
|
|
1826
|
+
f(() => e.value), G(() => {
|
|
1824
1827
|
e.value.afterRender(o.value);
|
|
1825
1828
|
}), P(() => {
|
|
1826
1829
|
e.value.afterRender(o.value);
|
|
@@ -1838,7 +1841,7 @@ const Tt = /* @__PURE__ */ g({
|
|
|
1838
1841
|
onFocusout: l[0] || (l[0] = (_) => e.value.focusOut(_)),
|
|
1839
1842
|
class: "svc-toolbox__panel"
|
|
1840
1843
|
}, [
|
|
1841
|
-
e.value.showSearch ? (a(), i("div",
|
|
1844
|
+
e.value.showSearch ? (a(), i("div", Pt, [
|
|
1842
1845
|
e.value.isCompactRendered ? (a(), y(s(u), {
|
|
1843
1846
|
is: "svc-toolbox-tool",
|
|
1844
1847
|
creator: r.model,
|
|
@@ -1851,19 +1854,19 @@ const Tt = /* @__PURE__ */ g({
|
|
|
1851
1854
|
is: "svc-search",
|
|
1852
1855
|
model: e.value.searchManager
|
|
1853
1856
|
}, null, 8, ["model"]),
|
|
1854
|
-
|
|
1857
|
+
Rt
|
|
1855
1858
|
])) : p("", !0),
|
|
1856
1859
|
e.value.showPlaceholder ? (a(), i("div", Vt, k(e.value.toolboxNoResultsFound), 1)) : p("", !0),
|
|
1857
1860
|
v(s(u), { is: "sv-scroll" }, {
|
|
1858
1861
|
default: X(() => [
|
|
1859
|
-
e.value.showInSingleCategory ? p("", !0) : (a(!0), i(
|
|
1862
|
+
e.value.showInSingleCategory ? p("", !0) : (a(!0), i(T, { key: 0 }, V(e.value.categories, (_, q) => (a(), y(s(u), {
|
|
1860
1863
|
is: "svc-toolbox-category",
|
|
1861
1864
|
key: q,
|
|
1862
1865
|
category: _,
|
|
1863
1866
|
toolbox: e.value
|
|
1864
1867
|
}, null, 8, ["category", "toolbox"]))), 128)),
|
|
1865
|
-
e.value.showInSingleCategory ? (a(), i("div",
|
|
1866
|
-
(a(!0), i(
|
|
1868
|
+
e.value.showInSingleCategory ? (a(), i("div", At, [
|
|
1869
|
+
(a(!0), i(T, null, V(n.value, (_) => (a(), y(s(u), {
|
|
1867
1870
|
key: _.renderedId,
|
|
1868
1871
|
is: "svc-toolbox-tool",
|
|
1869
1872
|
creator: r.model,
|
|
@@ -1878,10 +1881,10 @@ const Tt = /* @__PURE__ */ g({
|
|
|
1878
1881
|
], 32)
|
|
1879
1882
|
], 6));
|
|
1880
1883
|
}
|
|
1881
|
-
}),
|
|
1884
|
+
}), Lt = {
|
|
1882
1885
|
key: 0,
|
|
1883
1886
|
class: "svc-toolbox__category-separator"
|
|
1884
|
-
},
|
|
1887
|
+
}, Ft = /* @__PURE__ */ g({
|
|
1885
1888
|
__name: "ToolboxTool",
|
|
1886
1889
|
props: {
|
|
1887
1890
|
creator: {},
|
|
@@ -1891,7 +1894,7 @@ const Tt = /* @__PURE__ */ g({
|
|
|
1891
1894
|
},
|
|
1892
1895
|
setup(c) {
|
|
1893
1896
|
const t = c, e = z(
|
|
1894
|
-
() => new
|
|
1897
|
+
() => new qe(
|
|
1895
1898
|
t.item,
|
|
1896
1899
|
t.creator,
|
|
1897
1900
|
t.parentModel
|
|
@@ -1909,14 +1912,14 @@ const Tt = /* @__PURE__ */ g({
|
|
|
1909
1912
|
}), K(() => {
|
|
1910
1913
|
const n = t.item;
|
|
1911
1914
|
n.updateModeCallback = void 0;
|
|
1912
|
-
}),
|
|
1915
|
+
}), f(() => t.item), (n, r) => {
|
|
1913
1916
|
var l;
|
|
1914
1917
|
return a(), i("div", {
|
|
1915
1918
|
class: m(n.item.css),
|
|
1916
1919
|
ref_key: "root",
|
|
1917
1920
|
ref: o
|
|
1918
1921
|
}, [
|
|
1919
|
-
n.item.needSeparator && !n.creator.toolbox.showCategoryTitles ? (a(), i("div",
|
|
1922
|
+
n.item.needSeparator && !n.creator.toolbox.showCategoryTitles ? (a(), i("div", Lt)) : p("", !0),
|
|
1920
1923
|
d("div", {
|
|
1921
1924
|
class: "svc-toolbox__tool-content sv-action__content",
|
|
1922
1925
|
onPointerdown: r[0] || (r[0] = //@ts-ignore
|
|
@@ -1936,10 +1939,10 @@ const Tt = /* @__PURE__ */ g({
|
|
|
1936
1939
|
], 2);
|
|
1937
1940
|
};
|
|
1938
1941
|
}
|
|
1939
|
-
}),
|
|
1942
|
+
}), Kt = ["aria-label", "title"], Ut = { class: "svc-toolbox__item-container" }, Qt = {
|
|
1940
1943
|
key: 0,
|
|
1941
1944
|
class: "svc-toolbox__item-title"
|
|
1942
|
-
},
|
|
1945
|
+
}, Ht = /* @__PURE__ */ g({
|
|
1943
1946
|
__name: "ToolboxItem",
|
|
1944
1947
|
props: {
|
|
1945
1948
|
creator: {},
|
|
@@ -1948,7 +1951,7 @@ const Tt = /* @__PURE__ */ g({
|
|
|
1948
1951
|
viewModel: {}
|
|
1949
1952
|
},
|
|
1950
1953
|
setup(c) {
|
|
1951
|
-
return (t, e) => (a(), i(
|
|
1954
|
+
return (t, e) => (a(), i(T, null, [
|
|
1952
1955
|
C((a(), i("div", {
|
|
1953
1956
|
class: m(["svc-toolbox__item", t.item.renderedCss]),
|
|
1954
1957
|
role: "button",
|
|
@@ -1956,7 +1959,7 @@ const Tt = /* @__PURE__ */ g({
|
|
|
1956
1959
|
title: t.item.tooltip,
|
|
1957
1960
|
onClick: e[0] || (e[0] = (o) => t.viewModel.click(o))
|
|
1958
1961
|
}, [
|
|
1959
|
-
d("span",
|
|
1962
|
+
d("span", Ut, [
|
|
1960
1963
|
t.item.iconName ? (a(), y(s(u), {
|
|
1961
1964
|
key: 0,
|
|
1962
1965
|
is: "sv-svg-icon",
|
|
@@ -1965,8 +1968,8 @@ const Tt = /* @__PURE__ */ g({
|
|
|
1965
1968
|
class: "svc-toolbox__item-icon"
|
|
1966
1969
|
}, null, 8, ["iconName"])) : p("", !0)
|
|
1967
1970
|
]),
|
|
1968
|
-
t.isCompact ? p("", !0) : (a(), i("span",
|
|
1969
|
-
], 10,
|
|
1971
|
+
t.isCompact ? p("", !0) : (a(), i("span", Qt, k(t.item.title), 1))
|
|
1972
|
+
], 10, Kt)), [
|
|
1970
1973
|
[s(N), { disableTabStop: !t.viewModel.toolboxItem.enabled }]
|
|
1971
1974
|
]),
|
|
1972
1975
|
t.isCompact ? (a(), i("span", {
|
|
@@ -1984,7 +1987,7 @@ const Tt = /* @__PURE__ */ g({
|
|
|
1984
1987
|
])) : p("", !0)
|
|
1985
1988
|
], 64));
|
|
1986
1989
|
}
|
|
1987
|
-
}),
|
|
1990
|
+
}), Ot = /* @__PURE__ */ g({
|
|
1988
1991
|
__name: "ToolboxItemGroup",
|
|
1989
1992
|
props: {
|
|
1990
1993
|
creator: {},
|
|
@@ -1998,7 +2001,7 @@ const Tt = /* @__PURE__ */ g({
|
|
|
1998
2001
|
}, o = (n) => {
|
|
1999
2002
|
t.viewModel.onMouseLeave(t.item, n);
|
|
2000
2003
|
};
|
|
2001
|
-
return (n, r) => (a(), i(
|
|
2004
|
+
return (n, r) => (a(), i(T, null, [
|
|
2002
2005
|
v(s(u), {
|
|
2003
2006
|
is: "svc-toolbox-item",
|
|
2004
2007
|
viewModel: n.viewModel,
|
|
@@ -2023,10 +2026,10 @@ const Tt = /* @__PURE__ */ g({
|
|
|
2023
2026
|
], 32)
|
|
2024
2027
|
], 64));
|
|
2025
2028
|
}
|
|
2026
|
-
}),
|
|
2029
|
+
}), Gt = { className: "svc-toolbox__category-header-wrapper" }, Wt = { class: "svc-toolbox__category-title" }, jt = {
|
|
2027
2030
|
key: 0,
|
|
2028
2031
|
class: "svc-toolbox__category-header__controls"
|
|
2029
|
-
},
|
|
2032
|
+
}, Jt = /* @__PURE__ */ g({
|
|
2030
2033
|
__name: "ToolboxCategory",
|
|
2031
2034
|
props: {
|
|
2032
2035
|
category: {},
|
|
@@ -2034,21 +2037,21 @@ const Tt = /* @__PURE__ */ g({
|
|
|
2034
2037
|
},
|
|
2035
2038
|
setup(c) {
|
|
2036
2039
|
const t = c;
|
|
2037
|
-
return
|
|
2040
|
+
return f(() => t.category), (e, o) => (a(), i("div", {
|
|
2038
2041
|
class: m(["svc-toolbox__category", {
|
|
2039
2042
|
"svc-toolbox__category--collapsed": e.category.collapsed,
|
|
2040
2043
|
"svc-toolbox__category--empty": e.category.empty
|
|
2041
2044
|
}])
|
|
2042
2045
|
}, [
|
|
2043
|
-
d("div",
|
|
2046
|
+
d("div", Gt, [
|
|
2044
2047
|
C((a(), i("div", {
|
|
2045
2048
|
class: m(["svc-toolbox__category-header", {
|
|
2046
2049
|
"svc-toolbox__category-header--collapsed": e.toolbox.canCollapseCategories
|
|
2047
2050
|
}]),
|
|
2048
2051
|
onClick: o[0] || (o[0] = (n) => e.category.toggleState())
|
|
2049
2052
|
}, [
|
|
2050
|
-
d("span",
|
|
2051
|
-
e.toolbox.canCollapseCategories ? (a(), i("div",
|
|
2053
|
+
d("span", Wt, k(e.category.title), 1),
|
|
2054
|
+
e.toolbox.canCollapseCategories ? (a(), i("div", jt, [
|
|
2052
2055
|
v(s(u), {
|
|
2053
2056
|
is: "sv-svg-icon",
|
|
2054
2057
|
iconName: e.category.iconName,
|
|
@@ -2060,7 +2063,7 @@ const Tt = /* @__PURE__ */ g({
|
|
|
2060
2063
|
[s(N)]
|
|
2061
2064
|
])
|
|
2062
2065
|
]),
|
|
2063
|
-
(a(!0), i(
|
|
2066
|
+
(a(!0), i(T, null, V(e.category.items, (n) => (a(), y(s(u), {
|
|
2064
2067
|
is: "svc-toolbox-tool",
|
|
2065
2068
|
item: n,
|
|
2066
2069
|
key: n.renderedId,
|
|
@@ -2070,57 +2073,57 @@ const Tt = /* @__PURE__ */ g({
|
|
|
2070
2073
|
}, null, 8, ["item", "creator", "parentModel"]))), 128))
|
|
2071
2074
|
], 2));
|
|
2072
2075
|
}
|
|
2073
|
-
}),
|
|
2076
|
+
}), Zt = /* @__PURE__ */ g({
|
|
2074
2077
|
__name: "ToolboxList",
|
|
2075
2078
|
props: {
|
|
2076
2079
|
model: {},
|
|
2077
2080
|
creator: {}
|
|
2078
2081
|
},
|
|
2079
2082
|
setup(c) {
|
|
2080
|
-
const t = c
|
|
2081
|
-
return
|
|
2082
|
-
class: m(
|
|
2083
|
+
const t = c;
|
|
2084
|
+
return f(() => t.model), (e, o) => (a(), i("div", {
|
|
2085
|
+
class: m(e.model.cssClasses.root)
|
|
2083
2086
|
}, [
|
|
2084
|
-
(a(!0), i(
|
|
2085
|
-
key:
|
|
2087
|
+
(a(!0), i(T, null, V(e.model.renderedActions, (n, r) => (a(), y(s(u), {
|
|
2088
|
+
key: r,
|
|
2086
2089
|
is: "svc-toolbox-tool",
|
|
2087
|
-
creator:
|
|
2088
|
-
item:
|
|
2089
|
-
parentModel:
|
|
2090
|
+
creator: e.creator,
|
|
2091
|
+
item: n,
|
|
2092
|
+
parentModel: e.model,
|
|
2090
2093
|
isCompact: !1
|
|
2091
2094
|
}, null, 8, ["creator", "item", "parentModel"]))), 128))
|
|
2092
2095
|
], 2));
|
|
2093
2096
|
}
|
|
2094
|
-
}),
|
|
2097
|
+
}), Xt = { class: "svc-flex-column" }, Yt = { class: "svc-tab-designer_content" }, xt = {
|
|
2095
2098
|
key: 0,
|
|
2096
2099
|
class: "svc-designer-header"
|
|
2097
|
-
},
|
|
2100
|
+
}, en = {
|
|
2098
2101
|
class: "svc-designer__placeholder-container",
|
|
2099
2102
|
"data-sv-drop-target-survey-element": "newGhostPage"
|
|
2100
|
-
},
|
|
2103
|
+
}, on = {
|
|
2101
2104
|
className: "svc-designer-placeholder-page",
|
|
2102
2105
|
"data-sv-drop-target-survey-element": "newGhostPage"
|
|
2103
|
-
},
|
|
2106
|
+
}, sn = {
|
|
2104
2107
|
key: 0,
|
|
2105
2108
|
class: "svc-designer-header"
|
|
2106
|
-
},
|
|
2109
|
+
}, tn = ["data-sv-drop-target-survey-element", "data-sv-drop-target-page"], nn = ["data-sv-drop-target-survey-element", "data-sv-drop-target-page"], an = {
|
|
2107
2110
|
key: 0,
|
|
2108
2111
|
class: "svc-tab-designer__tools"
|
|
2109
|
-
},
|
|
2112
|
+
}, ln = {
|
|
2110
2113
|
key: 0,
|
|
2111
2114
|
class: "svc-tab-designer__page-navigator"
|
|
2112
|
-
},
|
|
2115
|
+
}, rn = {
|
|
2113
2116
|
key: 1,
|
|
2114
2117
|
class: "svc-tab-designer__toolbar"
|
|
2115
|
-
},
|
|
2118
|
+
}, dn = /* @__PURE__ */ g({
|
|
2116
2119
|
__name: "Designer",
|
|
2117
2120
|
props: {
|
|
2118
2121
|
model: {}
|
|
2119
2122
|
},
|
|
2120
2123
|
setup(c) {
|
|
2121
2124
|
const t = c, e = $(() => t.model.survey);
|
|
2122
|
-
return
|
|
2123
|
-
d("div",
|
|
2125
|
+
return f(() => t.model), f(() => e.value), f(() => t.model.pagesController), (o, n) => (a(), i(T, null, [
|
|
2126
|
+
d("div", Xt, [
|
|
2124
2127
|
o.model.isToolboxVisible ? (a(), y(s(u), {
|
|
2125
2128
|
key: 0,
|
|
2126
2129
|
is: "svc-toolbox",
|
|
@@ -2134,21 +2137,21 @@ const Tt = /* @__PURE__ */ g({
|
|
|
2134
2137
|
}, [
|
|
2135
2138
|
v(s(u), { is: "sv-scroll" }, {
|
|
2136
2139
|
default: X(() => [
|
|
2137
|
-
d("div",
|
|
2138
|
-
o.model.showPlaceholder ? (a(), i(
|
|
2139
|
-
o.model.creator.showHeaderInEmptySurvey && o.model.creator.allowEditSurveyTitle ? (a(), i("div",
|
|
2140
|
+
d("div", Yt, [
|
|
2141
|
+
o.model.showPlaceholder ? (a(), i(T, { key: 0 }, [
|
|
2142
|
+
o.model.creator.showHeaderInEmptySurvey && o.model.creator.allowEditSurveyTitle ? (a(), i("div", xt, [
|
|
2140
2143
|
v(s(u), {
|
|
2141
2144
|
is: "survey-header",
|
|
2142
2145
|
survey: o.model.creator.survey
|
|
2143
2146
|
}, null, 8, ["survey"])
|
|
2144
2147
|
])) : p("", !0),
|
|
2145
|
-
d("div",
|
|
2148
|
+
d("div", en, [
|
|
2146
2149
|
v(j, {
|
|
2147
2150
|
name: "designer",
|
|
2148
2151
|
placeholderTitleText: o.model.placeholderTitleText,
|
|
2149
2152
|
placeholderDescriptionText: o.model.placeholderDescriptionText
|
|
2150
2153
|
}, null, 8, ["placeholderTitleText", "placeholderDescriptionText"]),
|
|
2151
|
-
d("div",
|
|
2154
|
+
d("div", on, [
|
|
2152
2155
|
v(s(u), {
|
|
2153
2156
|
is: "svc-page",
|
|
2154
2157
|
survey: o.model.creator.survey,
|
|
@@ -2159,7 +2162,7 @@ const Tt = /* @__PURE__ */ g({
|
|
|
2159
2162
|
])
|
|
2160
2163
|
])
|
|
2161
2164
|
], 64)) : p("", !0),
|
|
2162
|
-
o.model.showPlaceholder ? p("", !0) : (a(), i(
|
|
2165
|
+
o.model.showPlaceholder ? p("", !0) : (a(), i(T, { key: 1 }, [
|
|
2163
2166
|
d("div", {
|
|
2164
2167
|
class: m(o.model.designerCss),
|
|
2165
2168
|
style: F([
|
|
@@ -2167,13 +2170,13 @@ const Tt = /* @__PURE__ */ g({
|
|
|
2167
2170
|
o.model.surfaceCssVariables
|
|
2168
2171
|
])
|
|
2169
2172
|
}, [
|
|
2170
|
-
o.model.creator.allowEditSurveyTitle ? (a(), i("div",
|
|
2173
|
+
o.model.creator.allowEditSurveyTitle ? (a(), i("div", sn, [
|
|
2171
2174
|
v(s(u), {
|
|
2172
2175
|
is: "survey-header",
|
|
2173
2176
|
survey: o.model.creator.survey
|
|
2174
2177
|
}, null, 8, ["survey"])
|
|
2175
2178
|
])) : p("", !0),
|
|
2176
|
-
o.model.creator.pageEditMode !== "bypage" ? (a(!0), i(
|
|
2179
|
+
o.model.creator.pageEditMode !== "bypage" ? (a(!0), i(T, { key: 1 }, V(o.model.pages, (r) => (a(), i("div", {
|
|
2177
2180
|
key: r.id,
|
|
2178
2181
|
class: "svc-page",
|
|
2179
2182
|
"data-sv-drop-target-survey-element": r != o.model.newPage ? r.name : "newGhostPage",
|
|
@@ -2186,7 +2189,7 @@ const Tt = /* @__PURE__ */ g({
|
|
|
2186
2189
|
page: r,
|
|
2187
2190
|
isGhost: r == o.model.newPage
|
|
2188
2191
|
}, null, 8, ["survey", "creator", "page", "isGhost"])
|
|
2189
|
-
], 8,
|
|
2192
|
+
], 8, tn))), 128)) : p("", !0),
|
|
2190
2193
|
o.model.pagesController.page2Display && o.model.creator.pageEditMode === "bypage" ? (a(), i("div", {
|
|
2191
2194
|
key: 2,
|
|
2192
2195
|
class: "svc-page",
|
|
@@ -2199,17 +2202,17 @@ const Tt = /* @__PURE__ */ g({
|
|
|
2199
2202
|
creator: o.model.creator,
|
|
2200
2203
|
isGhost: o.model.pagesController.page2Display == o.model.newPage
|
|
2201
2204
|
}, null, 8, ["page", "creator", "isGhost"])
|
|
2202
|
-
], 8,
|
|
2205
|
+
], 8, nn)) : p("", !0)
|
|
2203
2206
|
], 6),
|
|
2204
|
-
o.model.showSurfaceTools ? (a(), i("div",
|
|
2205
|
-
o.model.creator.showPageNavigator ? (a(), i("div",
|
|
2207
|
+
o.model.showSurfaceTools ? (a(), i("div", an, [
|
|
2208
|
+
o.model.creator.showPageNavigator ? (a(), i("div", ln, [
|
|
2206
2209
|
v(s(u), {
|
|
2207
2210
|
is: "svc-page-navigator",
|
|
2208
2211
|
pagesController: o.model.pagesController,
|
|
2209
2212
|
pageEditMode: o.model.creator.pageEditMode
|
|
2210
2213
|
}, null, 8, ["pagesController", "pageEditMode"])
|
|
2211
2214
|
])) : p("", !0),
|
|
2212
|
-
o.model.showSurfaceToolbar ? (a(), i("div",
|
|
2215
|
+
o.model.showSurfaceToolbar ? (a(), i("div", rn, [
|
|
2213
2216
|
v(s(u), {
|
|
2214
2217
|
is: "sv-action-bar",
|
|
2215
2218
|
model: o.model.surfaceToolbar
|
|
@@ -2224,16 +2227,16 @@ const Tt = /* @__PURE__ */ g({
|
|
|
2224
2227
|
], 2)
|
|
2225
2228
|
], 64));
|
|
2226
2229
|
}
|
|
2227
|
-
}),
|
|
2230
|
+
}), cn = ["id", "data-sv-drop-target-survey-page"], un = /* @__PURE__ */ d("div", { class: "svc-question__drop-indicator svc-question__drop-indicator--top" }, null, -1), pn = /* @__PURE__ */ d("div", { class: "svc-question__drop-indicator svc-question__drop-indicator--bottom" }, null, -1), vn = {
|
|
2228
2231
|
key: 1,
|
|
2229
2232
|
class: "svc-page__loading-content"
|
|
2230
|
-
},
|
|
2233
|
+
}, mn = {
|
|
2231
2234
|
key: 2,
|
|
2232
2235
|
class: "svc-page__placeholder_frame"
|
|
2233
|
-
},
|
|
2236
|
+
}, _n = { class: "svc-panel__placeholder_frame" }, gn = { class: "svc-panel__placeholder" }, bn = { class: "svc-page__content-actions" }, yn = {
|
|
2234
2237
|
key: 4,
|
|
2235
2238
|
class: "svc-page__content-actions"
|
|
2236
|
-
},
|
|
2239
|
+
}, hn = /* @__PURE__ */ g({
|
|
2237
2240
|
__name: "Page",
|
|
2238
2241
|
props: {
|
|
2239
2242
|
creator: {},
|
|
@@ -2244,7 +2247,7 @@ const Tt = /* @__PURE__ */ g({
|
|
|
2244
2247
|
setup(c) {
|
|
2245
2248
|
const t = c, e = I(), o = z(
|
|
2246
2249
|
() => {
|
|
2247
|
-
const r = new
|
|
2250
|
+
const r = new $e(t.creator, t.page);
|
|
2248
2251
|
return r.isGhost = t.isGhost, r;
|
|
2249
2252
|
},
|
|
2250
2253
|
[() => t.page],
|
|
@@ -2279,20 +2282,20 @@ const Tt = /* @__PURE__ */ g({
|
|
|
2279
2282
|
onMouseover: n,
|
|
2280
2283
|
onMouseleave: n
|
|
2281
2284
|
}, [
|
|
2285
|
+
un,
|
|
2282
2286
|
pn,
|
|
2283
|
-
vn,
|
|
2284
2287
|
s(o).needRenderContent ? (a(), y(s(u), {
|
|
2285
2288
|
key: 0,
|
|
2286
2289
|
is: "survey-page",
|
|
2287
2290
|
survey: s(o).creator.survey,
|
|
2288
2291
|
page: s(o).page
|
|
2289
2292
|
}, null, 8, ["survey", "page"])) : p("", !0),
|
|
2290
|
-
s(o).needRenderContent ? p("", !0) : (a(), i("div",
|
|
2293
|
+
s(o).needRenderContent ? p("", !0) : (a(), i("div", vn, [
|
|
2291
2294
|
v(s(u), { is: "sv-loading-indicator" })
|
|
2292
2295
|
])),
|
|
2293
|
-
s(o).showPlaceholder ? (a(), i("div",
|
|
2294
|
-
d("div",
|
|
2295
|
-
d("div",
|
|
2296
|
+
s(o).showPlaceholder ? (a(), i("div", mn, [
|
|
2297
|
+
d("div", _n, [
|
|
2298
|
+
d("div", gn, k(s(o).placeholderText), 1)
|
|
2296
2299
|
])
|
|
2297
2300
|
])) : p("", !0),
|
|
2298
2301
|
s(o).allowDragging && !s(o).isGhost ? (a(), i("div", {
|
|
@@ -2300,7 +2303,7 @@ const Tt = /* @__PURE__ */ g({
|
|
|
2300
2303
|
class: "svc-question__drag-area",
|
|
2301
2304
|
onPointerdown: l[0] || (l[0] = (_) => s(o).onPointerDown(_))
|
|
2302
2305
|
}, [
|
|
2303
|
-
v(s(u),
|
|
2306
|
+
v(s(u), A({
|
|
2304
2307
|
is: "sv-svg-icon",
|
|
2305
2308
|
class: "svc-question__drag-element"
|
|
2306
2309
|
}, {
|
|
@@ -2308,7 +2311,7 @@ const Tt = /* @__PURE__ */ g({
|
|
|
2308
2311
|
iconName: "icon-drag-area-indicator_24x16",
|
|
2309
2312
|
size: "auto"
|
|
2310
2313
|
}), null, 16),
|
|
2311
|
-
d("div",
|
|
2314
|
+
d("div", bn, [
|
|
2312
2315
|
v(s(u), {
|
|
2313
2316
|
is: "sv-action-bar",
|
|
2314
2317
|
model: s(o).actionContainer
|
|
@@ -2320,7 +2323,7 @@ const Tt = /* @__PURE__ */ g({
|
|
|
2320
2323
|
}, null, 8, ["model"])) : p("", !0)
|
|
2321
2324
|
])
|
|
2322
2325
|
], 32)) : p("", !0),
|
|
2323
|
-
!s(o).allowDragging || s(o).isGhost ? (a(), i("div",
|
|
2326
|
+
!s(o).allowDragging || s(o).isGhost ? (a(), i("div", yn, [
|
|
2324
2327
|
v(s(u), {
|
|
2325
2328
|
is: "sv-action-bar",
|
|
2326
2329
|
model: s(o).actionContainer
|
|
@@ -2335,11 +2338,11 @@ const Tt = /* @__PURE__ */ g({
|
|
|
2335
2338
|
is: "sv-action-bar",
|
|
2336
2339
|
model: s(o).footerActionsBar
|
|
2337
2340
|
}, null, 8, ["model"])
|
|
2338
|
-
], 42,
|
|
2341
|
+
], 42, cn)), [
|
|
2339
2342
|
[s(N)]
|
|
2340
2343
|
]) : p("", !0);
|
|
2341
2344
|
}
|
|
2342
|
-
}),
|
|
2345
|
+
}), Cn = { class: "svc-add-new-item-button__text" }, qn = /* @__PURE__ */ g({
|
|
2343
2346
|
__name: "AddQuestion",
|
|
2344
2347
|
props: {
|
|
2345
2348
|
item: {},
|
|
@@ -2348,13 +2351,13 @@ const Tt = /* @__PURE__ */ g({
|
|
|
2348
2351
|
},
|
|
2349
2352
|
setup(c) {
|
|
2350
2353
|
const t = c;
|
|
2351
|
-
|
|
2354
|
+
f(() => t.item.data);
|
|
2352
2355
|
const e = $(
|
|
2353
2356
|
() => "svc-element__add-new-question " + (t.buttonClass || "svc-btn")
|
|
2354
2357
|
), o = $(
|
|
2355
2358
|
() => t.renderPopup === void 0 || t.renderPopup !== !1
|
|
2356
2359
|
);
|
|
2357
|
-
return (n, r) => (a(), i(
|
|
2360
|
+
return (n, r) => (a(), i(T, null, [
|
|
2358
2361
|
C((a(), i("div", {
|
|
2359
2362
|
class: m(e.value),
|
|
2360
2363
|
onClick: r[0] || (r[0] = (l) => {
|
|
@@ -2368,7 +2371,7 @@ const Tt = /* @__PURE__ */ g({
|
|
|
2368
2371
|
iconName: "icon-add_24x24",
|
|
2369
2372
|
size: "auto"
|
|
2370
2373
|
}),
|
|
2371
|
-
d("span",
|
|
2374
|
+
d("span", Cn, k(n.item.data.addNewQuestionText), 1),
|
|
2372
2375
|
o.value ? (a(), y(s(u), {
|
|
2373
2376
|
key: 0,
|
|
2374
2377
|
is: "svc-add-question-type-selector",
|
|
@@ -2386,7 +2389,7 @@ const Tt = /* @__PURE__ */ g({
|
|
|
2386
2389
|
}, null, 8, ["questionTypeSelectorModel", "renderPopup"]))
|
|
2387
2390
|
], 64));
|
|
2388
2391
|
}
|
|
2389
|
-
}),
|
|
2392
|
+
}), $n = ["title", "aria-label"], kn = /* @__PURE__ */ g({
|
|
2390
2393
|
__name: "AddQuestionTypeSelector",
|
|
2391
2394
|
props: {
|
|
2392
2395
|
questionTypeSelectorModel: {},
|
|
@@ -2394,7 +2397,7 @@ const Tt = /* @__PURE__ */ g({
|
|
|
2394
2397
|
},
|
|
2395
2398
|
setup(c) {
|
|
2396
2399
|
const t = c;
|
|
2397
|
-
return
|
|
2400
|
+
return f(() => t.questionTypeSelectorModel), (e, o) => C((a(), i("button", {
|
|
2398
2401
|
type: "button",
|
|
2399
2402
|
onClick: o[0] || (o[0] = (n) => {
|
|
2400
2403
|
e.questionTypeSelectorModel.action(), n.stopPropagation();
|
|
@@ -2403,7 +2406,7 @@ const Tt = /* @__PURE__ */ g({
|
|
|
2403
2406
|
"aria-label": e.questionTypeSelectorModel.title,
|
|
2404
2407
|
class: "svc-element__question-type-selector"
|
|
2405
2408
|
}, [
|
|
2406
|
-
v(s(u),
|
|
2409
|
+
v(s(u), A({
|
|
2407
2410
|
is: "sv-svg-icon",
|
|
2408
2411
|
class: "svc-element__question-type-selector-icon"
|
|
2409
2412
|
}, {
|
|
@@ -2416,18 +2419,18 @@ const Tt = /* @__PURE__ */ g({
|
|
|
2416
2419
|
is: "sv-popup",
|
|
2417
2420
|
model: e.questionTypeSelectorModel.popupModel
|
|
2418
2421
|
}, null, 8, ["model"])) : p("", !0)
|
|
2419
|
-
], 8,
|
|
2422
|
+
], 8, $n)), [
|
|
2420
2423
|
[s(N)]
|
|
2421
2424
|
]);
|
|
2422
2425
|
}
|
|
2423
|
-
}),
|
|
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), Tn = /* @__PURE__ */ g({
|
|
2424
2427
|
__name: "Row",
|
|
2425
2428
|
props: {
|
|
2426
2429
|
componentData: {}
|
|
2427
2430
|
},
|
|
2428
2431
|
setup(c) {
|
|
2429
2432
|
const t = c, e = $(() => t.componentData.creator), o = $(() => t.componentData.row), n = z(
|
|
2430
|
-
() => new
|
|
2433
|
+
() => new ke(e.value, o.value, void 0),
|
|
2431
2434
|
[() => e.value, () => o.value],
|
|
2432
2435
|
(r) => {
|
|
2433
2436
|
r.dispose();
|
|
@@ -2440,15 +2443,15 @@ const Tt = /* @__PURE__ */ g({
|
|
|
2440
2443
|
}), (r, l) => (a(), i("div", {
|
|
2441
2444
|
class: m(s(n).cssClasses)
|
|
2442
2445
|
}, [
|
|
2446
|
+
fn,
|
|
2443
2447
|
wn,
|
|
2444
|
-
Tn,
|
|
2445
2448
|
x(r.$slots, "default")
|
|
2446
2449
|
], 2));
|
|
2447
2450
|
}
|
|
2448
|
-
}),
|
|
2451
|
+
}), Dn = ["data-sv-drop-target-survey-element"], Nn = { class: "svc-fake-title" }, Mn = /* @__PURE__ */ d("div", { class: "svc-question__drop-indicator svc-question__drop-indicator--left" }, null, -1), Sn = /* @__PURE__ */ d("div", { class: "svc-question__drop-indicator svc-question__drop-indicator--right" }, null, -1), Bn = /* @__PURE__ */ d("div", { class: "svc-question__drop-indicator svc-question__drop-indicator--top" }, null, -1), In = /* @__PURE__ */ d("div", { class: "svc-question__drop-indicator svc-question__drop-indicator--bottom" }, null, -1), En = { class: "svc-question__top-actions" }, Pn = {
|
|
2449
2452
|
key: 0,
|
|
2450
2453
|
class: "svc-panel__placeholder_frame-wrapper"
|
|
2451
|
-
},
|
|
2454
|
+
}, Rn = { class: "svc-panel__placeholder_frame" }, Vn = {
|
|
2452
2455
|
class: "svc-panel__placeholder",
|
|
2453
2456
|
"data-bind": "text: placeholderText"
|
|
2454
2457
|
}, oe = /* @__PURE__ */ g({
|
|
@@ -2504,7 +2507,7 @@ const Tt = /* @__PURE__ */ g({
|
|
|
2504
2507
|
key: 1,
|
|
2505
2508
|
class: m(s(o).cssCollapsedHiddenTitle)
|
|
2506
2509
|
}, [
|
|
2507
|
-
d("span",
|
|
2510
|
+
d("span", Nn, k(l.element.name), 1)
|
|
2508
2511
|
], 2))
|
|
2509
2512
|
], 2)) : p("", !0),
|
|
2510
2513
|
C((a(), i("div", {
|
|
@@ -2513,16 +2516,16 @@ const Tt = /* @__PURE__ */ g({
|
|
|
2513
2516
|
}),
|
|
2514
2517
|
class: m(s(o).css())
|
|
2515
2518
|
}, [
|
|
2519
|
+
Mn,
|
|
2516
2520
|
Sn,
|
|
2517
2521
|
Bn,
|
|
2518
2522
|
In,
|
|
2519
|
-
En,
|
|
2520
2523
|
s(o).allowDragging ? (a(), i("div", {
|
|
2521
2524
|
key: 0,
|
|
2522
2525
|
class: "svc-question__drag-area",
|
|
2523
2526
|
onPointerdown: _[0] || (_[0] = (q) => s(o).onPointerDown(q))
|
|
2524
2527
|
}, [
|
|
2525
|
-
v(s(u),
|
|
2528
|
+
v(s(u), A({
|
|
2526
2529
|
is: "sv-svg-icon",
|
|
2527
2530
|
class: "svc-question__drag-element"
|
|
2528
2531
|
}, {
|
|
@@ -2530,7 +2533,7 @@ const Tt = /* @__PURE__ */ g({
|
|
|
2530
2533
|
iconName: "icon-drag-area-indicator_24x16",
|
|
2531
2534
|
size: "auto"
|
|
2532
2535
|
}), null, 16),
|
|
2533
|
-
d("div",
|
|
2536
|
+
d("div", En, [
|
|
2534
2537
|
v(s(u), {
|
|
2535
2538
|
is: "sv-action-bar",
|
|
2536
2539
|
model: s(o).topActionContainer,
|
|
@@ -2538,18 +2541,18 @@ const Tt = /* @__PURE__ */ g({
|
|
|
2538
2541
|
}, null, 8, ["model"])
|
|
2539
2542
|
])
|
|
2540
2543
|
], 32)) : p("", !0),
|
|
2541
|
-
s(o).needToRenderContent ? (a(), i(
|
|
2544
|
+
s(o).needToRenderContent ? (a(), i(T, { key: 1 }, [
|
|
2542
2545
|
v(s(u), {
|
|
2543
2546
|
is: "sv-template-renderer",
|
|
2544
2547
|
componentName: l.componentName,
|
|
2545
2548
|
componentData: l.componentData
|
|
2546
2549
|
}, null, 8, ["componentName", "componentData"]),
|
|
2547
|
-
s(o).isEmptyElement && !l.showPlaceholderComponent ? (a(), i("div",
|
|
2548
|
-
d("div",
|
|
2550
|
+
s(o).isEmptyElement && !l.showPlaceholderComponent ? (a(), i("div", Pn, [
|
|
2551
|
+
d("div", Rn, [
|
|
2549
2552
|
d("div", Vn, k(s(o).placeholderText), 1)
|
|
2550
2553
|
])
|
|
2551
2554
|
])) : p("", !0),
|
|
2552
|
-
s(o).isEmptyElement && l.showPlaceholderComponent ? (a(), y(s(u),
|
|
2555
|
+
s(o).isEmptyElement && l.showPlaceholderComponent ? (a(), y(s(u), A(
|
|
2553
2556
|
{
|
|
2554
2557
|
key: 1,
|
|
2555
2558
|
is: l.placeholderComponent
|
|
@@ -2581,7 +2584,7 @@ const Tt = /* @__PURE__ */ g({
|
|
|
2581
2584
|
], 2)), [
|
|
2582
2585
|
[s(N), { disableTabStop: !0 }]
|
|
2583
2586
|
])
|
|
2584
|
-
], 42,
|
|
2587
|
+
], 42, Dn)) : p("", !0);
|
|
2585
2588
|
}
|
|
2586
2589
|
}), ae = /* @__PURE__ */ g({
|
|
2587
2590
|
__name: "Question",
|
|
@@ -2602,14 +2605,14 @@ const Tt = /* @__PURE__ */ g({
|
|
|
2602
2605
|
"component-data": o.componentData
|
|
2603
2606
|
}, null, 8, ["element", "component-name", "component-data"]));
|
|
2604
2607
|
}
|
|
2605
|
-
}),
|
|
2608
|
+
}), An = /* @__PURE__ */ g({
|
|
2606
2609
|
__name: "QuestionImage",
|
|
2607
2610
|
props: {
|
|
2608
2611
|
componentName: {},
|
|
2609
2612
|
componentData: {}
|
|
2610
2613
|
},
|
|
2611
2614
|
setup(c) {
|
|
2612
|
-
const t = c, e = () => new
|
|
2615
|
+
const t = c, e = () => new fe(
|
|
2613
2616
|
t.componentData.data,
|
|
2614
2617
|
t.componentData.element,
|
|
2615
2618
|
null
|
|
@@ -2627,34 +2630,34 @@ const Tt = /* @__PURE__ */ g({
|
|
|
2627
2630
|
"adorner-component": "svc-image-question-adorner"
|
|
2628
2631
|
}, null, 8, ["element", "component-data", "component-name"]));
|
|
2629
2632
|
}
|
|
2630
|
-
}),
|
|
2633
|
+
}), zn = {
|
|
2631
2634
|
key: 0,
|
|
2632
2635
|
class: "svc-image-question-controls"
|
|
2633
|
-
},
|
|
2636
|
+
}, Ln = ["accept"], Fn = {
|
|
2634
2637
|
class: "svc-context-button",
|
|
2635
2638
|
title: void 0,
|
|
2636
2639
|
"aria-label": void 0
|
|
2637
|
-
},
|
|
2640
|
+
}, Kn = {
|
|
2638
2641
|
key: 1,
|
|
2639
2642
|
class: "svc-image-question__loading-placeholder"
|
|
2640
|
-
},
|
|
2643
|
+
}, Un = { class: "svc-image-question__loading" }, Qn = /* @__PURE__ */ g({
|
|
2641
2644
|
__name: "Image",
|
|
2642
2645
|
props: {
|
|
2643
2646
|
model: {},
|
|
2644
2647
|
element: {}
|
|
2645
2648
|
},
|
|
2646
2649
|
setup(c) {
|
|
2647
|
-
return (t, e) => (a(), i(
|
|
2648
|
-
!t.model.isUploading && !t.model.isEmptyElement ? (a(), i("div",
|
|
2649
|
-
t.model.allowEdit ? (a(), i(
|
|
2650
|
+
return (t, e) => (a(), i(T, null, [
|
|
2651
|
+
!t.model.isUploading && !t.model.isEmptyElement ? (a(), i("div", zn, [
|
|
2652
|
+
t.model.allowEdit ? (a(), i(T, { key: 0 }, [
|
|
2650
2653
|
d("input", {
|
|
2651
2654
|
type: "file",
|
|
2652
2655
|
"aria-hidden": "true",
|
|
2653
2656
|
tabindex: "-1",
|
|
2654
2657
|
accept: t.model.acceptedTypes,
|
|
2655
2658
|
class: "svc-choose-file-input"
|
|
2656
|
-
}, null, 8,
|
|
2657
|
-
C((a(), i("span",
|
|
2659
|
+
}, null, 8, Ln),
|
|
2660
|
+
C((a(), i("span", Fn, [
|
|
2658
2661
|
v(s(u), {
|
|
2659
2662
|
is: "sv-svg-icon",
|
|
2660
2663
|
iconName: "icon-choosefile",
|
|
@@ -2666,14 +2669,14 @@ const Tt = /* @__PURE__ */ g({
|
|
|
2666
2669
|
])
|
|
2667
2670
|
], 64)) : p("", !0)
|
|
2668
2671
|
])) : p("", !0),
|
|
2669
|
-
t.model.isUploading && !t.model.isEmptyElement ? (a(), i("div",
|
|
2670
|
-
d("div",
|
|
2672
|
+
t.model.isUploading && !t.model.isEmptyElement ? (a(), i("div", Kn, [
|
|
2673
|
+
d("div", Un, [
|
|
2671
2674
|
v(s(u), { is: "sv-loading-indicator" })
|
|
2672
2675
|
])
|
|
2673
2676
|
])) : p("", !0)
|
|
2674
2677
|
], 64));
|
|
2675
2678
|
}
|
|
2676
|
-
}),
|
|
2679
|
+
}), Hn = { class: "svc-rating-question-content" }, On = ["aria-label"], Gn = ["aria-label"], Wn = /* @__PURE__ */ g({
|
|
2677
2680
|
__name: "Rating",
|
|
2678
2681
|
props: {
|
|
2679
2682
|
componentData: {},
|
|
@@ -2681,7 +2684,7 @@ const Tt = /* @__PURE__ */ g({
|
|
|
2681
2684
|
},
|
|
2682
2685
|
setup(c) {
|
|
2683
2686
|
const t = c, e = z(
|
|
2684
|
-
() => new
|
|
2687
|
+
() => new we(
|
|
2685
2688
|
t.componentData.data,
|
|
2686
2689
|
t.componentData.question,
|
|
2687
2690
|
null
|
|
@@ -2689,8 +2692,8 @@ const Tt = /* @__PURE__ */ g({
|
|
|
2689
2692
|
[() => t.componentData.data, () => t.componentData.question]
|
|
2690
2693
|
);
|
|
2691
2694
|
return (o, n) => {
|
|
2692
|
-
var r, l, _, q, b,
|
|
2693
|
-
return a(), i("div",
|
|
2695
|
+
var r, l, _, q, b, w, E, R, L;
|
|
2696
|
+
return a(), i("div", Hn, [
|
|
2694
2697
|
d("div", {
|
|
2695
2698
|
class: m((r = s(e)) == null ? void 0 : r.controlsClassNames)
|
|
2696
2699
|
}, [
|
|
@@ -2710,10 +2713,10 @@ const Tt = /* @__PURE__ */ g({
|
|
|
2710
2713
|
size: "auto",
|
|
2711
2714
|
title: (b = s(e)) == null ? void 0 : b.removeTooltip
|
|
2712
2715
|
}, null, 8, ["title"])
|
|
2713
|
-
], 10,
|
|
2716
|
+
], 10, On)), [
|
|
2714
2717
|
[s(N)]
|
|
2715
2718
|
]) : p("", !0),
|
|
2716
|
-
(
|
|
2719
|
+
(w = s(e)) != null && w.allowAdd ? C((a(), i("span", {
|
|
2717
2720
|
key: 1,
|
|
2718
2721
|
class: m((E = s(e)) == null ? void 0 : E.addClassNames),
|
|
2719
2722
|
onClick: n[1] || (n[1] = (J) => {
|
|
@@ -2729,7 +2732,7 @@ const Tt = /* @__PURE__ */ g({
|
|
|
2729
2732
|
size: "auto",
|
|
2730
2733
|
title: (L = s(e)) == null ? void 0 : L.addTooltip
|
|
2731
2734
|
}, null, 8, ["title"])
|
|
2732
|
-
], 10,
|
|
2735
|
+
], 10, Gn)), [
|
|
2733
2736
|
[s(N)]
|
|
2734
2737
|
]) : p("", !0)
|
|
2735
2738
|
], 2),
|
|
@@ -2737,10 +2740,10 @@ const Tt = /* @__PURE__ */ g({
|
|
|
2737
2740
|
]);
|
|
2738
2741
|
};
|
|
2739
2742
|
}
|
|
2740
|
-
}),
|
|
2743
|
+
}), jn = {
|
|
2741
2744
|
key: 0,
|
|
2742
2745
|
class: "svc-matrix-cell__question-controls"
|
|
2743
|
-
},
|
|
2746
|
+
}, Jn = /* @__PURE__ */ g({
|
|
2744
2747
|
__name: "MatrixCell",
|
|
2745
2748
|
props: {
|
|
2746
2749
|
componentData: {}
|
|
@@ -2751,7 +2754,7 @@ const Tt = /* @__PURE__ */ g({
|
|
|
2751
2754
|
), _ = z(
|
|
2752
2755
|
() => {
|
|
2753
2756
|
var q;
|
|
2754
|
-
return t.componentData ? new
|
|
2757
|
+
return t.componentData ? new Te(
|
|
2755
2758
|
e.value,
|
|
2756
2759
|
r.value,
|
|
2757
2760
|
l.value,
|
|
@@ -2767,7 +2770,7 @@ const Tt = /* @__PURE__ */ g({
|
|
|
2767
2770
|
]
|
|
2768
2771
|
);
|
|
2769
2772
|
return (q, b) => {
|
|
2770
|
-
var
|
|
2773
|
+
var w, E;
|
|
2771
2774
|
return a(), i("div", {
|
|
2772
2775
|
tabindex: "-1",
|
|
2773
2776
|
class: "svc-matrix-cell",
|
|
@@ -2785,10 +2788,10 @@ const Tt = /* @__PURE__ */ g({
|
|
|
2785
2788
|
})
|
|
2786
2789
|
}, [
|
|
2787
2790
|
d("div", {
|
|
2788
|
-
class: m(["svc-matrix-cell--selected", { "svc-visible": (
|
|
2791
|
+
class: m(["svc-matrix-cell--selected", { "svc-visible": (w = s(_)) == null ? void 0 : w.isSelected }])
|
|
2789
2792
|
}, null, 2),
|
|
2790
2793
|
x(q.$slots, "default"),
|
|
2791
|
-
(E = s(_)) != null && E.isSupportCellEditor ? (a(), i("div",
|
|
2794
|
+
(E = s(_)) != null && E.isSupportCellEditor ? (a(), i("div", jn, [
|
|
2792
2795
|
C((a(), i("span", {
|
|
2793
2796
|
class: "svc-matrix-cell__question-controls-button svc-context-button",
|
|
2794
2797
|
onClick: b[0] || (b[0] = (R) => s(_).editQuestion(s(_), R))
|
|
@@ -2805,7 +2808,7 @@ const Tt = /* @__PURE__ */ g({
|
|
|
2805
2808
|
], 32);
|
|
2806
2809
|
};
|
|
2807
2810
|
}
|
|
2808
|
-
}),
|
|
2811
|
+
}), Zn = { class: "svc-question__adorner" }, Xn = { class: "svc-question__content svc-question__content--in-popup" }, Yn = /* @__PURE__ */ g({
|
|
2809
2812
|
__name: "CellQuestion",
|
|
2810
2813
|
props: {
|
|
2811
2814
|
componentName: {},
|
|
@@ -2815,19 +2818,19 @@ const Tt = /* @__PURE__ */ g({
|
|
|
2815
2818
|
const t = c, e = $(
|
|
2816
2819
|
() => t.componentData.element
|
|
2817
2820
|
);
|
|
2818
|
-
return
|
|
2819
|
-
d("div",
|
|
2820
|
-
v(s(u),
|
|
2821
|
+
return f(() => e.value), (o, n) => (a(), i("div", Zn, [
|
|
2822
|
+
d("div", Xn, [
|
|
2823
|
+
v(s(u), A({ is: o.componentName }, o.componentData), null, 16, ["is"])
|
|
2821
2824
|
])
|
|
2822
2825
|
]));
|
|
2823
2826
|
}
|
|
2824
|
-
}),
|
|
2827
|
+
}), xn = ["data-sv-drop-target-survey-element"], ea = { class: "svc-fake-title" }, oa = /* @__PURE__ */ d("div", { class: "svc-question__drop-indicator svc-question__drop-indicator--left" }, null, -1), sa = /* @__PURE__ */ d("div", { class: "svc-question__drop-indicator svc-question__drop-indicator--right" }, null, -1), ta = /* @__PURE__ */ d("div", { class: "svc-question__drop-indicator svc-question__drop-indicator--top" }, null, -1), na = /* @__PURE__ */ d("div", { class: "svc-question__drop-indicator svc-question__drop-indicator--bottom" }, null, -1), aa = { class: "svc-question__top-actions" }, la = {
|
|
2825
2828
|
key: 0,
|
|
2826
2829
|
class: "svc-panel__placeholder_frame-wrapper"
|
|
2827
|
-
},
|
|
2830
|
+
}, ia = { class: "svc-panel__placeholder_frame" }, ra = { class: "svc-panel__placeholder" }, da = { class: "svc-add-new-item-button__text" }, ca = {
|
|
2828
2831
|
key: 1,
|
|
2829
2832
|
class: "svc-panel__add-new-question-container"
|
|
2830
|
-
},
|
|
2833
|
+
}, ua = { class: "svc-panel__question-type-selector-popup" }, pa = { class: "svc-panel__add-new-question-wrapper" }, va = /* @__PURE__ */ g({
|
|
2831
2834
|
__name: "Panel",
|
|
2832
2835
|
props: {
|
|
2833
2836
|
componentName: {},
|
|
@@ -2868,17 +2871,17 @@ const Tt = /* @__PURE__ */ g({
|
|
|
2868
2871
|
key: 1,
|
|
2869
2872
|
class: m(s(e).cssCollapsedHiddenTitle)
|
|
2870
2873
|
}, [
|
|
2871
|
-
d("span",
|
|
2874
|
+
d("span", ea, k(s(e).element.name), 1)
|
|
2872
2875
|
], 2))
|
|
2873
2876
|
], 2)) : p("", !0),
|
|
2874
2877
|
C((a(), i("div", {
|
|
2875
2878
|
class: m(s(e).css()),
|
|
2876
2879
|
onClick: r[2] || (r[2] = (l) => s(e).element.isInteractiveDesignElement ? s(e).select(s(e), l) : null)
|
|
2877
2880
|
}, [
|
|
2881
|
+
oa,
|
|
2878
2882
|
sa,
|
|
2879
2883
|
ta,
|
|
2880
2884
|
na,
|
|
2881
|
-
aa,
|
|
2882
2885
|
s(e).allowDragging && s(e).element.isInteractiveDesignElement ? (a(), i("div", {
|
|
2883
2886
|
key: 0,
|
|
2884
2887
|
class: "svc-question__drag-area",
|
|
@@ -2890,7 +2893,7 @@ const Tt = /* @__PURE__ */ g({
|
|
|
2890
2893
|
iconName: "icon-drag-area-indicator_24x16",
|
|
2891
2894
|
size: "auto"
|
|
2892
2895
|
}),
|
|
2893
|
-
d("div",
|
|
2896
|
+
d("div", aa, [
|
|
2894
2897
|
v(s(u), {
|
|
2895
2898
|
is: "sv-action-bar",
|
|
2896
2899
|
model: s(e).topActionContainer,
|
|
@@ -2898,11 +2901,11 @@ const Tt = /* @__PURE__ */ g({
|
|
|
2898
2901
|
}, null, 8, ["model"])
|
|
2899
2902
|
])
|
|
2900
2903
|
], 32)) : p("", !0),
|
|
2901
|
-
s(e).needToRenderContent ? (a(), i(
|
|
2902
|
-
v(s(u),
|
|
2903
|
-
s(e).isEmptyElement ? (a(), i("div",
|
|
2904
|
-
d("div",
|
|
2905
|
-
d("div",
|
|
2904
|
+
s(e).needToRenderContent ? (a(), i(T, { key: 1 }, [
|
|
2905
|
+
v(s(u), A({ is: n.componentName }, n.componentData), null, 16, ["is"]),
|
|
2906
|
+
s(e).isEmptyElement ? (a(), i("div", la, [
|
|
2907
|
+
d("div", ia, [
|
|
2908
|
+
d("div", ra, k(s(e).placeholderText), 1),
|
|
2906
2909
|
s(e).showAddQuestionButton ? C((a(), i("div", {
|
|
2907
2910
|
key: 0,
|
|
2908
2911
|
class: "svc-panel__add-new-question svc-action-button",
|
|
@@ -2914,20 +2917,20 @@ const Tt = /* @__PURE__ */ g({
|
|
|
2914
2917
|
iconName: "icon-add_24x24",
|
|
2915
2918
|
size: "auto"
|
|
2916
2919
|
}),
|
|
2917
|
-
d("span",
|
|
2920
|
+
d("span", da, k(s(e).addNewQuestionText), 1)
|
|
2918
2921
|
])), [
|
|
2919
2922
|
[s(N)]
|
|
2920
2923
|
]) : p("", !0)
|
|
2921
2924
|
])
|
|
2922
2925
|
])) : p("", !0),
|
|
2923
|
-
!s(e).isEmptyElement && s(e).showAddQuestionButton ? (a(), i("div",
|
|
2924
|
-
d("div",
|
|
2926
|
+
!s(e).isEmptyElement && s(e).showAddQuestionButton ? (a(), i("div", ca, [
|
|
2927
|
+
d("div", ua, [
|
|
2925
2928
|
v(s(u), {
|
|
2926
2929
|
is: "sv-popup",
|
|
2927
2930
|
model: s(e).questionTypeSelectorModel.popupModel
|
|
2928
2931
|
}, null, 8, ["model"])
|
|
2929
2932
|
]),
|
|
2930
|
-
d("div",
|
|
2933
|
+
d("div", pa, [
|
|
2931
2934
|
v(s(u), {
|
|
2932
2935
|
is: "svc-add-new-question-btn",
|
|
2933
2936
|
item: { data: s(e) },
|
|
@@ -2951,12 +2954,12 @@ const Tt = /* @__PURE__ */ g({
|
|
|
2951
2954
|
], 2)), [
|
|
2952
2955
|
[s(N), { disableTabStop: !0 }]
|
|
2953
2956
|
])
|
|
2954
|
-
], 42,
|
|
2957
|
+
], 42, xn)) : p("", !0);
|
|
2955
2958
|
}
|
|
2956
|
-
}),
|
|
2959
|
+
}), 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 = {
|
|
2957
2960
|
key: 0,
|
|
2958
2961
|
class: "svc-item-value-controls__button svc-item-value-controls__drag"
|
|
2959
|
-
},
|
|
2962
|
+
}, ya = ["aria-label"], ha = ["aria-label"], Ca = /* @__PURE__ */ g({
|
|
2960
2963
|
__name: "ItemValue",
|
|
2961
2964
|
props: {
|
|
2962
2965
|
componentName: {},
|
|
@@ -2975,7 +2978,7 @@ const Tt = /* @__PURE__ */ g({
|
|
|
2975
2978
|
r.value.setRootElement(void 0);
|
|
2976
2979
|
});
|
|
2977
2980
|
const _ = z(
|
|
2978
|
-
() => new
|
|
2981
|
+
() => new De(o.value, n.value, r.value),
|
|
2979
2982
|
[() => o.value, () => n.value, () => r.value],
|
|
2980
2983
|
(q) => {
|
|
2981
2984
|
q.dispose();
|
|
@@ -2991,14 +2994,14 @@ const Tt = /* @__PURE__ */ g({
|
|
|
2991
2994
|
"svc-item-value--movedown": s(_).isDragDropMoveDown,
|
|
2992
2995
|
"svc-item-value--moveup": s(_).isDragDropMoveUp
|
|
2993
2996
|
}]),
|
|
2994
|
-
onPointerdown: b[4] || (b[4] = (
|
|
2997
|
+
onPointerdown: b[4] || (b[4] = (w) => s(_).onPointerDown(w)),
|
|
2995
2998
|
"data-sv-drop-target-item-value": s(_).isDraggable ? r.value.value : null,
|
|
2996
2999
|
ref_key: "root",
|
|
2997
3000
|
ref: t
|
|
2998
3001
|
}, [
|
|
2999
|
-
|
|
3000
|
-
d("div",
|
|
3001
|
-
s(_).isDraggable ? (a(), i("span",
|
|
3002
|
+
_a,
|
|
3003
|
+
d("div", ga, [
|
|
3004
|
+
s(_).isDraggable ? (a(), i("span", ba, [
|
|
3002
3005
|
v(s(u), {
|
|
3003
3006
|
is: "sv-svg-icon",
|
|
3004
3007
|
class: "svc-item-value-controls__drag-icon",
|
|
@@ -3010,7 +3013,7 @@ const Tt = /* @__PURE__ */ g({
|
|
|
3010
3013
|
s(_).allowAdd ? C((a(), i("span", {
|
|
3011
3014
|
key: 1,
|
|
3012
3015
|
class: "svc-item-value-controls__button svc-item-value-controls__add",
|
|
3013
|
-
onClick: b[0] || (b[0] = (
|
|
3016
|
+
onClick: b[0] || (b[0] = (w) => s(_).add(s(_))),
|
|
3014
3017
|
role: "button",
|
|
3015
3018
|
"aria-label": s(_).tooltip
|
|
3016
3019
|
}, [
|
|
@@ -3020,14 +3023,14 @@ const Tt = /* @__PURE__ */ g({
|
|
|
3020
3023
|
size: "auto",
|
|
3021
3024
|
title: s(_).tooltip
|
|
3022
3025
|
}, null, 8, ["title"])
|
|
3023
|
-
], 8,
|
|
3026
|
+
], 8, ya)), [
|
|
3024
3027
|
[s(N)]
|
|
3025
3028
|
]) : p("", !0),
|
|
3026
3029
|
s(_).allowRemove ? C((a(), i("span", {
|
|
3027
3030
|
key: 2,
|
|
3028
3031
|
class: "svc-item-value-controls__button svc-item-value-controls__remove",
|
|
3029
|
-
onClick: b[1] || (b[1] = (
|
|
3030
|
-
onBlur: b[2] || (b[2] = (
|
|
3032
|
+
onClick: b[1] || (b[1] = (w) => s(_).remove(s(_))),
|
|
3033
|
+
onBlur: b[2] || (b[2] = (w) => s(_).onFocusOut(w)),
|
|
3031
3034
|
role: "button",
|
|
3032
3035
|
"aria-label": s(_).tooltip
|
|
3033
3036
|
}, [
|
|
@@ -3037,31 +3040,31 @@ const Tt = /* @__PURE__ */ g({
|
|
|
3037
3040
|
size: "auto",
|
|
3038
3041
|
title: s(_).tooltip
|
|
3039
3042
|
}, null, 8, ["title"])
|
|
3040
|
-
], 40,
|
|
3043
|
+
], 40, ha)), [
|
|
3041
3044
|
[s(N)]
|
|
3042
3045
|
]) : p("", !0)
|
|
3043
3046
|
]),
|
|
3044
3047
|
d("div", {
|
|
3045
3048
|
class: "svc-item-value__item",
|
|
3046
|
-
onClick: b[3] || (b[3] = (
|
|
3049
|
+
onClick: b[3] || (b[3] = (w) => s(_).select(s(_), w))
|
|
3047
3050
|
}, [
|
|
3048
|
-
v(s(u),
|
|
3051
|
+
v(s(u), A({ is: q.componentName }, q.componentData), null, 16, ["is"])
|
|
3049
3052
|
])
|
|
3050
|
-
], 42,
|
|
3053
|
+
], 42, ma));
|
|
3051
3054
|
}
|
|
3052
|
-
}),
|
|
3055
|
+
}), qa = ["data-sv-drop-target-item-value"], $a = { class: "svc-image-item-value-wrapper__content" }, ka = ["accept"], fa = {
|
|
3053
3056
|
key: 0,
|
|
3054
3057
|
class: "svc-image-item-value__item"
|
|
3055
|
-
},
|
|
3058
|
+
}, wa = {
|
|
3056
3059
|
key: 2,
|
|
3057
3060
|
class: "svc-context-container svc-image-item-value-controls"
|
|
3058
|
-
},
|
|
3061
|
+
}, Ta = { class: "svc-image-item-value__item" }, Da = { class: "sd-imagepicker__item sd-imagepicker__item--inline" }, Na = { class: "sd-imagepicker__label" }, Ma = {
|
|
3059
3062
|
key: 0,
|
|
3060
3063
|
class: "svc-image-item-value__loading"
|
|
3061
|
-
},
|
|
3064
|
+
}, Sa = {
|
|
3062
3065
|
key: 0,
|
|
3063
3066
|
class: "svc-image-item-value__placeholder"
|
|
3064
|
-
},
|
|
3067
|
+
}, Ba = { key: 1 }, Ia = /* @__PURE__ */ g({
|
|
3065
3068
|
__name: "ImageItemValue",
|
|
3066
3069
|
props: {
|
|
3067
3070
|
componentName: {},
|
|
@@ -3070,7 +3073,7 @@ const Tt = /* @__PURE__ */ g({
|
|
|
3070
3073
|
setup(c) {
|
|
3071
3074
|
const t = c, e = $(() => t.componentData.data.creator), o = $(() => t.componentData.question), n = $(() => t.componentData.item), r = I(), l = z(
|
|
3072
3075
|
() => {
|
|
3073
|
-
const b = new
|
|
3076
|
+
const b = new Ne(
|
|
3074
3077
|
e.value,
|
|
3075
3078
|
o.value,
|
|
3076
3079
|
n.value,
|
|
@@ -3094,38 +3097,38 @@ const Tt = /* @__PURE__ */ g({
|
|
|
3094
3097
|
});
|
|
3095
3098
|
return P(() => {
|
|
3096
3099
|
r.value && (l.value.itemsRoot = r.value);
|
|
3097
|
-
}), (b,
|
|
3098
|
-
onPointerdown:
|
|
3100
|
+
}), (b, w) => (a(), i("div", {
|
|
3101
|
+
onPointerdown: w[5] || (w[5] = (E) => s(l).onPointerDown(E)),
|
|
3099
3102
|
class: m(s(l).getRootCss()),
|
|
3100
3103
|
"data-sv-drop-target-item-value": s(l).isDraggable ? n.value.value : null,
|
|
3101
3104
|
ref_key: "root",
|
|
3102
3105
|
ref: r,
|
|
3103
3106
|
onDragstart: _,
|
|
3104
|
-
onDragenter:
|
|
3105
|
-
onDragover:
|
|
3106
|
-
onDragleave:
|
|
3107
|
-
onDrop:
|
|
3107
|
+
onDragenter: w[6] || (w[6] = (E) => s(l).onDragEnter(E)),
|
|
3108
|
+
onDragover: w[7] || (w[7] = (E) => s(l).onDragOver(E)),
|
|
3109
|
+
onDragleave: w[8] || (w[8] = (E) => s(l).onDragLeave(E)),
|
|
3110
|
+
onDrop: w[9] || (w[9] = (E) => s(l).onDrop(E))
|
|
3108
3111
|
}, [
|
|
3109
3112
|
d("div", {
|
|
3110
3113
|
class: "svc-image-item-value-wrapper__ghost",
|
|
3111
3114
|
style: F(q.value)
|
|
3112
3115
|
}, null, 4),
|
|
3113
|
-
d("div",
|
|
3116
|
+
d("div", $a, [
|
|
3114
3117
|
d("input", {
|
|
3115
3118
|
type: "file",
|
|
3116
3119
|
"aria-hidden": "true",
|
|
3117
3120
|
tabindex: "-1",
|
|
3118
3121
|
accept: s(l).acceptedTypes,
|
|
3119
3122
|
class: "svc-choose-file-input"
|
|
3120
|
-
}, null, 8,
|
|
3121
|
-
!s(l).isNew && !s(l).isUploading ? (a(), i(
|
|
3122
|
-
s(l).isNew ? p("", !0) : (a(), i("div",
|
|
3123
|
-
v(s(u),
|
|
3123
|
+
}, null, 8, ka),
|
|
3124
|
+
!s(l).isNew && !s(l).isUploading ? (a(), i(T, { key: 0 }, [
|
|
3125
|
+
s(l).isNew ? p("", !0) : (a(), i("div", fa, [
|
|
3126
|
+
v(s(u), A({ is: b.componentName }, b.componentData), null, 16, ["is"])
|
|
3124
3127
|
])),
|
|
3125
3128
|
s(l).isDraggable && s(l).canRenderControls ? (a(), i("span", {
|
|
3126
3129
|
key: 1,
|
|
3127
3130
|
class: "svc-context-button svc-image-item-value-controls__drag-area-indicator",
|
|
3128
|
-
onPointerdown:
|
|
3131
|
+
onPointerdown: w[0] || (w[0] = (E) => s(l).onPointerDown(E)),
|
|
3129
3132
|
title: void 0,
|
|
3130
3133
|
"aria-label": void 0
|
|
3131
3134
|
}, [
|
|
@@ -3135,10 +3138,10 @@ const Tt = /* @__PURE__ */ g({
|
|
|
3135
3138
|
size: "auto"
|
|
3136
3139
|
})
|
|
3137
3140
|
], 32)) : p("", !0),
|
|
3138
|
-
s(l).canRenderControls ? (a(), i("div",
|
|
3141
|
+
s(l).canRenderControls ? (a(), i("div", wa, [
|
|
3139
3142
|
C((a(), i("span", {
|
|
3140
3143
|
class: "svc-context-button",
|
|
3141
|
-
onClick:
|
|
3144
|
+
onClick: w[1] || (w[1] = (E) => s(l).chooseFile(s(l))),
|
|
3142
3145
|
title: void 0,
|
|
3143
3146
|
"aria-label": void 0
|
|
3144
3147
|
}, [
|
|
@@ -3154,7 +3157,7 @@ const Tt = /* @__PURE__ */ g({
|
|
|
3154
3157
|
]),
|
|
3155
3158
|
C((a(), i("span", {
|
|
3156
3159
|
class: "svc-context-button svc-context-button--danger",
|
|
3157
|
-
onClick:
|
|
3160
|
+
onClick: w[2] || (w[2] = (E) => s(l).remove(s(l))),
|
|
3158
3161
|
title: void 0,
|
|
3159
3162
|
"aria-label": void 0
|
|
3160
3163
|
}, [
|
|
@@ -3169,15 +3172,15 @@ const Tt = /* @__PURE__ */ g({
|
|
|
3169
3172
|
[s(N)]
|
|
3170
3173
|
])
|
|
3171
3174
|
])) : p("", !0)
|
|
3172
|
-
], 64)) : (a(), i(
|
|
3173
|
-
d("div",
|
|
3174
|
-
d("div",
|
|
3175
|
-
d("label",
|
|
3175
|
+
], 64)) : (a(), i(T, { key: 1 }, [
|
|
3176
|
+
d("div", Ta, [
|
|
3177
|
+
d("div", Da, [
|
|
3178
|
+
d("label", Na, [
|
|
3176
3179
|
d("div", {
|
|
3177
3180
|
style: F(q.value),
|
|
3178
3181
|
class: "sd-imagepicker__image"
|
|
3179
3182
|
}, [
|
|
3180
|
-
s(l).isUploading ? (a(), i("div",
|
|
3183
|
+
s(l).isUploading ? (a(), i("div", Ma, [
|
|
3181
3184
|
v(s(u), { is: "sv-loading-indicator" })
|
|
3182
3185
|
])) : p("", !0)
|
|
3183
3186
|
], 4)
|
|
@@ -3187,12 +3190,12 @@ const Tt = /* @__PURE__ */ g({
|
|
|
3187
3190
|
s(l).allowAdd && !s(l).isUploading ? (a(), i("div", {
|
|
3188
3191
|
key: 0,
|
|
3189
3192
|
class: "svc-image-item-value-controls",
|
|
3190
|
-
onPointerdown:
|
|
3193
|
+
onPointerdown: w[4] || (w[4] = (E) => E.stopPropagation())
|
|
3191
3194
|
}, [
|
|
3192
|
-
s(l).showPlaceholder ? (a(), i("span",
|
|
3195
|
+
s(l).showPlaceholder ? (a(), i("span", Sa, k(s(l).placeholderText), 1)) : p("", !0),
|
|
3193
3196
|
C((a(), i("span", {
|
|
3194
3197
|
class: m(s(l).addButtonCss),
|
|
3195
|
-
onClick:
|
|
3198
|
+
onClick: w[3] || (w[3] = (E) => s(l).chooseNewFile(s(l)))
|
|
3196
3199
|
}, [
|
|
3197
3200
|
s(l).showChooseButtonAsIcon ? (a(), y(s(u), {
|
|
3198
3201
|
key: 0,
|
|
@@ -3200,16 +3203,16 @@ const Tt = /* @__PURE__ */ g({
|
|
|
3200
3203
|
iconName: "icon-add-lg",
|
|
3201
3204
|
size: "auto",
|
|
3202
3205
|
title: s(l).addFileTitle
|
|
3203
|
-
}, null, 8, ["title"])) : (a(), i("span",
|
|
3206
|
+
}, null, 8, ["title"])) : (a(), i("span", Ba, k(s(l).chooseImageText), 1))
|
|
3204
3207
|
], 2)), [
|
|
3205
3208
|
[s(N)]
|
|
3206
3209
|
])
|
|
3207
3210
|
], 32)) : p("", !0)
|
|
3208
3211
|
], 64))
|
|
3209
3212
|
])
|
|
3210
|
-
], 42,
|
|
3213
|
+
], 42, qa));
|
|
3211
3214
|
}
|
|
3212
|
-
}),
|
|
3215
|
+
}), Ea = /* @__PURE__ */ g({
|
|
3213
3216
|
__name: "QuestionEditor",
|
|
3214
3217
|
props: {
|
|
3215
3218
|
survey: {},
|
|
@@ -3241,24 +3244,24 @@ const Tt = /* @__PURE__ */ g({
|
|
|
3241
3244
|
return (r, l) => (a(), i("div", {
|
|
3242
3245
|
style: F(t.style)
|
|
3243
3246
|
}, [
|
|
3244
|
-
v(s(u),
|
|
3247
|
+
v(s(u), A({ is: o.value }, n.value), null, 16, ["is"])
|
|
3245
3248
|
], 4));
|
|
3246
3249
|
}
|
|
3247
|
-
}),
|
|
3250
|
+
}), Pa = ["accept"], Ra = /* @__PURE__ */ d("svg", null, [
|
|
3248
3251
|
/* @__PURE__ */ d("use", { "xlink:href": "#icon-image-48x48" })
|
|
3249
3252
|
], -1), Va = [
|
|
3250
|
-
|
|
3251
|
-
],
|
|
3253
|
+
Ra
|
|
3254
|
+
], Aa = { class: "svc-context-container svc-logo-image-controls" }, za = {
|
|
3252
3255
|
key: 2,
|
|
3253
3256
|
class: "svc-logo-image__loading"
|
|
3254
|
-
},
|
|
3257
|
+
}, La = /* @__PURE__ */ g({
|
|
3255
3258
|
__name: "Logo",
|
|
3256
3259
|
props: {
|
|
3257
3260
|
data: {}
|
|
3258
3261
|
},
|
|
3259
3262
|
setup(c) {
|
|
3260
3263
|
const t = c, e = $(() => t.data), o = $(() => e.value.survey), n = I(), r = z(
|
|
3261
|
-
() => new
|
|
3264
|
+
() => new Me(e.value, null),
|
|
3262
3265
|
[() => e.value]
|
|
3263
3266
|
), l = I(), _ = () => {
|
|
3264
3267
|
l.value = o.value.locLogo.renderedHtml;
|
|
@@ -3286,12 +3289,12 @@ const Tt = /* @__PURE__ */ g({
|
|
|
3286
3289
|
tabindex: "-1",
|
|
3287
3290
|
accept: s(r).acceptedTypes,
|
|
3288
3291
|
class: "svc-choose-file-input"
|
|
3289
|
-
}, null, 8,
|
|
3290
|
-
l.value ? p("", !0) : (a(), i(
|
|
3292
|
+
}, null, 8, Pa),
|
|
3293
|
+
l.value ? p("", !0) : (a(), i(T, { key: 0 }, [
|
|
3291
3294
|
s(r).allowEdit && !s(r).isUploading ? C((a(), i("div", {
|
|
3292
3295
|
key: 0,
|
|
3293
3296
|
class: "svc-logo-image-placeholder",
|
|
3294
|
-
onClick: b[0] || (b[0] = (
|
|
3297
|
+
onClick: b[0] || (b[0] = (w) => s(r).chooseFile(s(r)))
|
|
3295
3298
|
}, Va)), [
|
|
3296
3299
|
[s(N)]
|
|
3297
3300
|
]) : p("", !0)
|
|
@@ -3300,10 +3303,10 @@ const Tt = /* @__PURE__ */ g({
|
|
|
3300
3303
|
key: 1,
|
|
3301
3304
|
class: m(s(r).containerCss)
|
|
3302
3305
|
}, [
|
|
3303
|
-
d("div",
|
|
3306
|
+
d("div", Aa, [
|
|
3304
3307
|
C((a(), i("span", {
|
|
3305
3308
|
class: "svc-context-button",
|
|
3306
|
-
onClick: b[1] || (b[1] = (
|
|
3309
|
+
onClick: b[1] || (b[1] = (w) => s(r).chooseFile(s(r))),
|
|
3307
3310
|
title: void 0,
|
|
3308
3311
|
"aria-label": void 0
|
|
3309
3312
|
}, [
|
|
@@ -3317,7 +3320,7 @@ const Tt = /* @__PURE__ */ g({
|
|
|
3317
3320
|
]),
|
|
3318
3321
|
C((a(), i("span", {
|
|
3319
3322
|
class: "svc-context-button svc-context-button--danger",
|
|
3320
|
-
onClick: b[2] || (b[2] = (
|
|
3323
|
+
onClick: b[2] || (b[2] = (w) => s(r).remove(s(r))),
|
|
3321
3324
|
title: void 0,
|
|
3322
3325
|
"aria-label": void 0
|
|
3323
3326
|
}, [
|
|
@@ -3335,22 +3338,22 @@ const Tt = /* @__PURE__ */ g({
|
|
|
3335
3338
|
data: o.value
|
|
3336
3339
|
}, null, 8, ["data"])
|
|
3337
3340
|
], 2)) : p("", !0),
|
|
3338
|
-
s(r).isUploading ? (a(), i("div",
|
|
3341
|
+
s(r).isUploading ? (a(), i("div", za, [
|
|
3339
3342
|
v(s(u), { is: "sv-loading-indicator" })
|
|
3340
3343
|
])) : p("", !0)
|
|
3341
3344
|
], 512));
|
|
3342
3345
|
}
|
|
3343
|
-
}),
|
|
3346
|
+
}), Fa = {
|
|
3344
3347
|
key: 0,
|
|
3345
3348
|
class: "svc-search"
|
|
3346
|
-
},
|
|
3349
|
+
}, Ka = { class: "svc-search__search-icon" }, Ua = ["aria-label", "placeholder", "tabindex"], Qa = { class: "svc-search__toolbar" }, Ha = { class: "svc-search__toolbar-counter" }, Oa = /* @__PURE__ */ g({
|
|
3347
3350
|
__name: "Search",
|
|
3348
3351
|
props: {
|
|
3349
3352
|
model: {}
|
|
3350
3353
|
},
|
|
3351
3354
|
setup(c) {
|
|
3352
3355
|
const t = c;
|
|
3353
|
-
|
|
3356
|
+
f(() => t.model);
|
|
3354
3357
|
const e = $({
|
|
3355
3358
|
get: () => t.model.filterString,
|
|
3356
3359
|
set: (o) => {
|
|
@@ -3358,8 +3361,8 @@ const Tt = /* @__PURE__ */ g({
|
|
|
3358
3361
|
n.filterString = o;
|
|
3359
3362
|
}
|
|
3360
3363
|
});
|
|
3361
|
-
return (o, n) => o.model.isVisible ? (a(), i("div",
|
|
3362
|
-
d("div",
|
|
3364
|
+
return (o, n) => o.model.isVisible ? (a(), i("div", Fa, [
|
|
3365
|
+
d("div", Ka, [
|
|
3363
3366
|
v(s(u), {
|
|
3364
3367
|
is: "sv-svg-icon",
|
|
3365
3368
|
iconName: "icon-search",
|
|
@@ -3373,11 +3376,11 @@ const Tt = /* @__PURE__ */ g({
|
|
|
3373
3376
|
"aria-label": o.model.filterStringPlaceholder,
|
|
3374
3377
|
placeholder: o.model.filterStringPlaceholder,
|
|
3375
3378
|
tabindex: o.model.getTabIndex()
|
|
3376
|
-
}, null, 8,
|
|
3379
|
+
}, null, 8, Ua), [
|
|
3377
3380
|
[de, e.value]
|
|
3378
3381
|
]),
|
|
3379
|
-
d("div",
|
|
3380
|
-
d("div",
|
|
3382
|
+
d("div", Qa, [
|
|
3383
|
+
d("div", Ha, k(o.model.matchCounterText), 1),
|
|
3381
3384
|
v(s(u), {
|
|
3382
3385
|
is: "sv-action-bar",
|
|
3383
3386
|
model: o.model.searchActionBar
|
|
@@ -3385,7 +3388,7 @@ const Tt = /* @__PURE__ */ g({
|
|
|
3385
3388
|
])
|
|
3386
3389
|
])) : p("", !0);
|
|
3387
3390
|
}
|
|
3388
|
-
}),
|
|
3391
|
+
}), Ga = ["title"], Wa = /* @__PURE__ */ g({
|
|
3389
3392
|
__name: "PageNavigator",
|
|
3390
3393
|
props: {
|
|
3391
3394
|
pagesController: {},
|
|
@@ -3393,7 +3396,7 @@ const Tt = /* @__PURE__ */ g({
|
|
|
3393
3396
|
},
|
|
3394
3397
|
setup(c) {
|
|
3395
3398
|
const t = c, e = z(
|
|
3396
|
-
() => new
|
|
3399
|
+
() => new Se(t.pagesController, t.pageEditMode),
|
|
3397
3400
|
[() => t.pagesController, () => t.pageEditMode]
|
|
3398
3401
|
), o = I();
|
|
3399
3402
|
return P(() => {
|
|
@@ -3424,7 +3427,7 @@ const Tt = /* @__PURE__ */ g({
|
|
|
3424
3427
|
iconName: s(e).icon,
|
|
3425
3428
|
size: "auto"
|
|
3426
3429
|
}, null, 8, ["iconName"])
|
|
3427
|
-
], 10,
|
|
3430
|
+
], 10, Ga)), [
|
|
3428
3431
|
[s(N)]
|
|
3429
3432
|
]),
|
|
3430
3433
|
v(s(u), {
|
|
@@ -3433,7 +3436,7 @@ const Tt = /* @__PURE__ */ g({
|
|
|
3433
3436
|
}, null, 8, ["model"])
|
|
3434
3437
|
]),
|
|
3435
3438
|
d("div", null, [
|
|
3436
|
-
(a(!0), i(
|
|
3439
|
+
(a(!0), i(T, null, V(s(e).visibleItems, (l) => (a(), y(s(u), {
|
|
3437
3440
|
is: "svc-page-navigator-item",
|
|
3438
3441
|
key: l.id,
|
|
3439
3442
|
model: l
|
|
@@ -3443,22 +3446,22 @@ const Tt = /* @__PURE__ */ g({
|
|
|
3443
3446
|
[Q, s(e).visible]
|
|
3444
3447
|
]);
|
|
3445
3448
|
}
|
|
3446
|
-
}),
|
|
3447
|
-
|
|
3448
|
-
],
|
|
3449
|
+
}), ja = { class: "svc-page-navigator-item" }, Ja = ["title"], Za = /* @__PURE__ */ d("div", { class: "svc-page-navigator-item__dot-content" }, null, -1), Xa = [
|
|
3450
|
+
Za
|
|
3451
|
+
], Ya = { class: "svc-page-navigator-item__banner" }, xa = { class: "svc-page-navigator-item__text" }, el = /* @__PURE__ */ d("span", { class: "svc-page-navigator-item__dot" }, [
|
|
3449
3452
|
/* @__PURE__ */ d("span", { class: "svc-page-navigator-item__dot-content" })
|
|
3450
|
-
], -1),
|
|
3453
|
+
], -1), ol = /* @__PURE__ */ g({
|
|
3451
3454
|
__name: "PageNavigatorItem",
|
|
3452
3455
|
props: {
|
|
3453
3456
|
model: {}
|
|
3454
3457
|
},
|
|
3455
3458
|
setup(c) {
|
|
3456
3459
|
const t = c;
|
|
3457
|
-
|
|
3460
|
+
f(() => t.model);
|
|
3458
3461
|
const e = (o) => {
|
|
3459
3462
|
t.model.action(), o.stopPropagation(), o.preventDefault();
|
|
3460
3463
|
};
|
|
3461
|
-
return (o, n) => (a(), i("div",
|
|
3464
|
+
return (o, n) => (a(), i("div", ja, [
|
|
3462
3465
|
C((a(), i("div", {
|
|
3463
3466
|
role: "button",
|
|
3464
3467
|
class: m(["svc-page-navigator-item-content", {
|
|
@@ -3470,17 +3473,17 @@ const Tt = /* @__PURE__ */ g({
|
|
|
3470
3473
|
d("div", {
|
|
3471
3474
|
class: "svc-page-navigator-item__dot",
|
|
3472
3475
|
title: o.model.title
|
|
3473
|
-
},
|
|
3474
|
-
d("div",
|
|
3475
|
-
d("span",
|
|
3476
|
-
|
|
3476
|
+
}, Xa, 8, Ja),
|
|
3477
|
+
d("div", Ya, [
|
|
3478
|
+
d("span", xa, k(o.model.title), 1),
|
|
3479
|
+
el
|
|
3477
3480
|
])
|
|
3478
3481
|
], 2)), [
|
|
3479
3482
|
[s(N)]
|
|
3480
3483
|
])
|
|
3481
3484
|
]));
|
|
3482
3485
|
}
|
|
3483
|
-
}),
|
|
3486
|
+
}), sl = { class: "svc-question__dropdown-choices--wrapper" }, tl = { class: "svc-question__dropdown-choices" }, nl = /* @__PURE__ */ g({
|
|
3484
3487
|
__name: "Dropdown",
|
|
3485
3488
|
props: {
|
|
3486
3489
|
model: {},
|
|
@@ -3495,14 +3498,14 @@ const Tt = /* @__PURE__ */ g({
|
|
|
3495
3498
|
data: t.element.getItemValueWrapperComponentData(n)
|
|
3496
3499
|
}
|
|
3497
3500
|
});
|
|
3498
|
-
return (n, r) => (a(), i("div",
|
|
3501
|
+
return (n, r) => (a(), i("div", sl, [
|
|
3499
3502
|
d("div", null, [
|
|
3500
|
-
d("div",
|
|
3501
|
-
(a(!0), i(
|
|
3503
|
+
d("div", tl, [
|
|
3504
|
+
(a(!0), i(T, null, V(n.model.getRenderedItems(), (l) => (a(), i("div", {
|
|
3502
3505
|
key: l.value,
|
|
3503
3506
|
class: m(n.model.getChoiceCss())
|
|
3504
3507
|
}, [
|
|
3505
|
-
v(s(u),
|
|
3508
|
+
v(s(u), A({
|
|
3506
3509
|
is: e(l)
|
|
3507
3510
|
}, o(l)), null, 16, ["is"])
|
|
3508
3511
|
], 2))), 128))
|
|
@@ -3517,14 +3520,14 @@ const Tt = /* @__PURE__ */ g({
|
|
|
3517
3520
|
])
|
|
3518
3521
|
]));
|
|
3519
3522
|
}
|
|
3520
|
-
}),
|
|
3523
|
+
}), al = /* @__PURE__ */ g({
|
|
3521
3524
|
__name: "QuestionDropdown",
|
|
3522
3525
|
props: {
|
|
3523
3526
|
componentName: {},
|
|
3524
3527
|
componentData: {}
|
|
3525
3528
|
},
|
|
3526
3529
|
setup(c) {
|
|
3527
|
-
const t = c, e = () => new
|
|
3530
|
+
const t = c, e = () => new Be(
|
|
3528
3531
|
t.componentData.data,
|
|
3529
3532
|
t.componentData.element,
|
|
3530
3533
|
null
|
|
@@ -3537,7 +3540,7 @@ const Tt = /* @__PURE__ */ g({
|
|
|
3537
3540
|
"adorner-component": "svc-dropdown-question-adorner"
|
|
3538
3541
|
}, null, 8, ["element", "component-name", "component-data"]));
|
|
3539
3542
|
}
|
|
3540
|
-
}),
|
|
3543
|
+
}), ll = { class: "svc-question__adorner" }, il = { class: "svc-question__content svc-question__content--in-popup" }, rl = { class: "svc-question__dropdown-choices" }, le = "survey-radiogroup-item", dl = /* @__PURE__ */ g({
|
|
3541
3544
|
__name: "CellQuestionDropdown",
|
|
3542
3545
|
props: {
|
|
3543
3546
|
componentName: {},
|
|
@@ -3554,15 +3557,15 @@ const Tt = /* @__PURE__ */ g({
|
|
|
3554
3557
|
data: e.value.getItemValueWrapperComponentData(r)
|
|
3555
3558
|
}
|
|
3556
3559
|
});
|
|
3557
|
-
return
|
|
3558
|
-
d("div",
|
|
3559
|
-
v(s(u),
|
|
3560
|
-
d("div",
|
|
3561
|
-
(a(!0), i(
|
|
3560
|
+
return f(() => e.value), (r, l) => (a(), i("div", ll, [
|
|
3561
|
+
d("div", il, [
|
|
3562
|
+
v(s(u), A({ is: r.componentName }, r.componentData), null, 16, ["is"]),
|
|
3563
|
+
d("div", rl, [
|
|
3564
|
+
(a(!0), i(T, null, V(e.value.visibleChoices, (_) => (a(), i("div", {
|
|
3562
3565
|
key: _.value,
|
|
3563
3566
|
class: "svc-question__dropdown-choice"
|
|
3564
3567
|
}, [
|
|
3565
|
-
v(s(u),
|
|
3568
|
+
v(s(u), A({
|
|
3566
3569
|
is: o(_)
|
|
3567
3570
|
}, n(_)), null, 16, ["is"])
|
|
3568
3571
|
]))), 128))
|
|
@@ -3570,18 +3573,18 @@ const Tt = /* @__PURE__ */ g({
|
|
|
3570
3573
|
])
|
|
3571
3574
|
]));
|
|
3572
3575
|
}
|
|
3573
|
-
}),
|
|
3576
|
+
}), cl = ["data-sv-drop-target-survey-element"], ul = /* @__PURE__ */ d("div", { class: "svc-question__drop-indicator svc-question__drop-indicator--left" }, null, -1), pl = /* @__PURE__ */ d("div", { class: "svc-question__drop-indicator svc-question__drop-indicator--right" }, null, -1), vl = /* @__PURE__ */ d("div", { class: "svc-question__drop-indicator svc-question__drop-indicator--top" }, null, -1), ml = /* @__PURE__ */ d("div", { class: "svc-question__drop-indicator svc-question__drop-indicator--bottom" }, null, -1), _l = { class: "svc-widget__content" }, gl = {
|
|
3574
3577
|
key: 1,
|
|
3575
3578
|
class: "svc-panel__placeholder_frame"
|
|
3576
|
-
},
|
|
3579
|
+
}, bl = /* @__PURE__ */ d("div", {
|
|
3577
3580
|
class: "svc-panel__placeholder",
|
|
3578
3581
|
"data-bind": "text: placeholderText"
|
|
3579
|
-
}, null, -1),
|
|
3580
|
-
|
|
3581
|
-
],
|
|
3582
|
+
}, null, -1), yl = [
|
|
3583
|
+
bl
|
|
3584
|
+
], hl = { class: "svc-question__content-actions" }, Cl = {
|
|
3582
3585
|
key: 0,
|
|
3583
3586
|
class: "svc-panel__placeholder_frame"
|
|
3584
|
-
},
|
|
3587
|
+
}, ql = { class: "svc-panel__placeholder" }, $l = /* @__PURE__ */ g({
|
|
3585
3588
|
__name: "CustomWidget",
|
|
3586
3589
|
props: {
|
|
3587
3590
|
componentName: {},
|
|
@@ -3618,10 +3621,10 @@ const Tt = /* @__PURE__ */ g({
|
|
|
3618
3621
|
onClick: r[1] || (r[1] = (l) => s(o).select(s(o), l)),
|
|
3619
3622
|
"data-bind": "clickBubble: false"
|
|
3620
3623
|
}, [
|
|
3624
|
+
ul,
|
|
3621
3625
|
pl,
|
|
3622
3626
|
vl,
|
|
3623
3627
|
ml,
|
|
3624
|
-
_l,
|
|
3625
3628
|
s(o).allowDragging ? (a(), i("div", {
|
|
3626
3629
|
key: 0,
|
|
3627
3630
|
class: "svc-question__drag-area",
|
|
@@ -3634,11 +3637,11 @@ const Tt = /* @__PURE__ */ g({
|
|
|
3634
3637
|
size: "auto"
|
|
3635
3638
|
})
|
|
3636
3639
|
], 32)) : p("", !0),
|
|
3637
|
-
d("div",
|
|
3638
|
-
v(s(u),
|
|
3640
|
+
d("div", _l, [
|
|
3641
|
+
v(s(u), A({ is: n.componentName }, n.componentData), null, 16, ["is"])
|
|
3639
3642
|
]),
|
|
3640
|
-
s(o).isEmptyElement ? (a(), i("div",
|
|
3641
|
-
d("div",
|
|
3643
|
+
s(o).isEmptyElement ? (a(), i("div", gl, yl)) : p("", !0),
|
|
3644
|
+
d("div", hl, [
|
|
3642
3645
|
v(s(u), {
|
|
3643
3646
|
is: "sv-action-bar",
|
|
3644
3647
|
model: s(o).actionContainer,
|
|
@@ -3648,24 +3651,24 @@ const Tt = /* @__PURE__ */ g({
|
|
|
3648
3651
|
], 2)), [
|
|
3649
3652
|
[s(N)]
|
|
3650
3653
|
]) : p("", !0),
|
|
3651
|
-
s(o).element.isInteractiveDesignElement ? p("", !0) : (a(), i(
|
|
3652
|
-
v(s(u),
|
|
3653
|
-
s(o).isEmptyElement ? (a(), i("div",
|
|
3654
|
-
d("div",
|
|
3654
|
+
s(o).element.isInteractiveDesignElement ? p("", !0) : (a(), i(T, { key: 1 }, [
|
|
3655
|
+
v(s(u), A({ is: n.componentName }, n.componentData), null, 16, ["is"]),
|
|
3656
|
+
s(o).isEmptyElement ? (a(), i("div", Cl, [
|
|
3657
|
+
d("div", ql, k(s(o).placeholderText), 1)
|
|
3655
3658
|
])) : p("", !0)
|
|
3656
3659
|
], 64))
|
|
3657
|
-
], 42,
|
|
3660
|
+
], 42, cl)) : p("", !0);
|
|
3658
3661
|
}
|
|
3659
|
-
}),
|
|
3662
|
+
}), kl = { class: "svc-carry-forward-panel-wrapper" }, fl = { class: "svc-carry-forward-panel" }, wl = { class: "svc-carry-forward-panel__link" }, Tl = /* @__PURE__ */ g({
|
|
3660
3663
|
__name: "QuestionBanner",
|
|
3661
3664
|
props: {
|
|
3662
3665
|
model: {}
|
|
3663
3666
|
},
|
|
3664
3667
|
setup(c) {
|
|
3665
|
-
return (t, e) => (a(), i("div",
|
|
3666
|
-
d("div",
|
|
3668
|
+
return (t, e) => (a(), i("div", kl, [
|
|
3669
|
+
d("div", fl, [
|
|
3667
3670
|
d("span", null, k(t.model.text) + k(" "), 1),
|
|
3668
|
-
d("span",
|
|
3671
|
+
d("span", wl, [
|
|
3669
3672
|
v(s(u), {
|
|
3670
3673
|
is: "svc-action-button",
|
|
3671
3674
|
text: t.model.actionText,
|
|
@@ -3676,27 +3679,27 @@ const Tt = /* @__PURE__ */ g({
|
|
|
3676
3679
|
]));
|
|
3677
3680
|
}
|
|
3678
3681
|
});
|
|
3679
|
-
function
|
|
3682
|
+
function Dl(c, t, e) {
|
|
3680
3683
|
c(t, e);
|
|
3681
3684
|
}
|
|
3682
3685
|
function pe(c) {
|
|
3683
|
-
const t =
|
|
3686
|
+
const t = Dl.bind(
|
|
3684
3687
|
void 0,
|
|
3685
3688
|
c
|
|
3686
3689
|
);
|
|
3687
|
-
t("svc-tabbed-menu",
|
|
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", Do), t("svc-side-bar-header", Eo), t("svc-side-bar-property-grid-header", Fo), t("svc-property-grid", io), t("svc-object-selector", lo), t("svc-search", Oa), t("svc-switcher", Yo), t("svc-action-button", Go), t("svc-question-error", Ko), t("survey-embeddedsurvey", 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", Ts), t("svc-tab-translation", Js), t("sd-translation-line-skeleton", et), t("svc-translate-from-action", ot), t("svc-tab-logic", Ls), t("svc-tab-theme", nt), t("svc-toolbox", zt), t("svc-toolbox-list", Zt), t("svc-toolbox-category", Jt), t("svc-toolbox-tool", Ft), t("svc-toolbox-item", Ht), t("svc-toolbox-item-group", Ot), t(Ie, Et), t("svc-tab-designer", dn), t("svc-page-navigator", Wa), t("svc-page-navigator-item", ol), t("svc-page", hn), t("svc-row", Tn), t("svc-add-new-question-btn", qn), t("svc-add-question-type-selector", kn), t("svc-question", ae), t("svc-rating-question", ae), t("svc-rating-question-content", Wn), t("svc-image-question", An), t("svc-image-question-adorner", Qn), t("svc-matrix-cell", Jn), t("svc-cell-question", Yn), t("svc-cell-dropdown-question", dl), t("svc-question-editor-content", Ea), t("svc-logo-image", La), t("svc-panel", va), t("svc-item-value", Ca), t("svc-image-item-value", Ia), t("svc-dropdown-question", al), t("svc-dropdown-question-adorner", nl), t("svc-widget-question", $l), t("svc-question-banner", Tl);
|
|
3688
3691
|
}
|
|
3689
3692
|
pe(
|
|
3690
3693
|
(c, t) => ie.Instance.registerComponent(c, t)
|
|
3691
3694
|
);
|
|
3692
|
-
const
|
|
3695
|
+
const Il = {
|
|
3693
3696
|
install(c) {
|
|
3694
|
-
c.component("SurveyCreatorComponent",
|
|
3697
|
+
c.component("SurveyCreatorComponent", Oe), pe((t, e) => {
|
|
3695
3698
|
c.component(t, e), ie.Instance.registerComponent(t, t);
|
|
3696
3699
|
});
|
|
3697
3700
|
}
|
|
3698
3701
|
};
|
|
3699
3702
|
export {
|
|
3700
|
-
|
|
3701
|
-
|
|
3703
|
+
Oe as SurveyCreatorComponent,
|
|
3704
|
+
Il as surveyCreatorPlugin
|
|
3702
3705
|
};
|