survey-creator-vue 2.0.0 → 2.0.2
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 +511 -493
- package/survey-creator-vue.umd.js +2 -2
- package/types/QuestionEditor.vue.d.ts +1 -0
package/survey-creator-vue.es.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { useBase as f, SvComponent as u, key2ClickDirective as D, SurveyComponent as Q, useQuestion as H, ComponentFactory as re } from "survey-vue3-ui";
|
|
2
|
-
import { defineComponent as g, computed as $, toRaw as ge, ref as B, onMounted as E, onUnmounted as L, openBlock as l, createElementBlock as i, Fragment as
|
|
2
|
+
import { defineComponent as g, computed as $, toRaw as ge, ref as B, onMounted as E, onUnmounted as L, openBlock as l, createElementBlock as i, Fragment as w, createVNode as v, unref as s, createElementVNode as a, normalizeClass as _, normalizeStyle as K, createCommentVNode as p, renderList as R, createBlock as C, nextTick as de, withDirectives as h, toDisplayString as k, vShow as F, renderSlot as X, withCtx as Y, createTextVNode as be, shallowRef as ye, watch as G, onBeforeUnmount as x, vModelText as ce, onUpdated as ee, mergeProps as V } from "vue";
|
|
3
3
|
import { ResponsivityManager as he, CssClassBuilder as Ce, RendererFactory as ue, DropdownListModel as qe, VerticalResponsivityManager as $e } from "survey-core";
|
|
4
|
-
import { ScrollViewModel as
|
|
4
|
+
import { ScrollViewModel as ke, editorLocalization as pe, SurveyResultsModel as we, initLogicOperator as fe, StringEditorViewModelBase as Te, ToolboxToolViewModel as De, PageAdorner as Ne, RowViewModel as Me, QuestionAdornerViewModel as oe, QuestionImageAdornerViewModel as Se, QuestionRatingAdornerViewModel as Ie, MatrixCellWrapperViewModel as Be, ItemValueWrapperViewModel as Ee, ImageItemValueWrapperViewModel as Pe, LogoImageViewModel as Re, PageNavigatorViewModel as Ve, QuestionDropdownAdornerViewModel as Ae, editableStringRendererName as ze } from "survey-creator-core";
|
|
5
5
|
const Le = { class: "svc-flex-column svc-flex-row__element svc-flex-row__element--growing" }, Fe = { class: "svc-top-bar" }, Ke = {
|
|
6
6
|
key: 0,
|
|
7
7
|
class: "svc-tabbed-menu-wrapper"
|
|
8
|
-
}, Ue = ["v-show"], He = { class: "svc-creator__content-holder svc-flex-column" }, Oe = ["id"], Qe = {
|
|
8
|
+
}, Ue = ["v-show"], He = { class: "svc-creator__content-holder svc-flex-column" }, Oe = ["aria-labelledby", "id"], Qe = {
|
|
9
9
|
key: 0,
|
|
10
10
|
class: "svc-footer-bar"
|
|
11
11
|
}, Ge = ["v-show"], We = {
|
|
@@ -27,7 +27,7 @@ const Le = { class: "svc-flex-column svc-flex-row__element svc-flex-row__element
|
|
|
27
27
|
o.value && t.model.setRootElement(o.value);
|
|
28
28
|
}), L(() => {
|
|
29
29
|
t.model.unsubscribeRootElement();
|
|
30
|
-
}), (n, r) => e.value.isCreatorDisposed ? p("", !0) : (l(), i(
|
|
30
|
+
}), (n, r) => e.value.isCreatorDisposed ? p("", !0) : (l(), i(w, { key: 0 }, [
|
|
31
31
|
v(s(u), { is: "survey-popup-modal" }),
|
|
32
32
|
a("div", {
|
|
33
33
|
class: _(e.value.getRootCss()),
|
|
@@ -73,12 +73,14 @@ const Le = { class: "svc-flex-column svc-flex-row__element svc-flex-row__element
|
|
|
73
73
|
}])
|
|
74
74
|
}, [
|
|
75
75
|
a("div", He, [
|
|
76
|
-
(l(!0), i(
|
|
76
|
+
(l(!0), i(w, null, R(e.value.tabs, (d) => (l(), i(w, null, [
|
|
77
77
|
e.value.viewType == d.id && d.visible ? (l(), i("div", {
|
|
78
|
+
role: "tabpanel",
|
|
78
79
|
class: _(["svc-creator-tab", {
|
|
79
80
|
"svc-creator__toolbox--right": e.value.toolboxLocation == "right"
|
|
80
81
|
}]),
|
|
81
82
|
key: d.id,
|
|
83
|
+
"aria-labelledby": "tab-" + d.id,
|
|
82
84
|
id: "scrollableDiv-" + d.id
|
|
83
85
|
}, [
|
|
84
86
|
v(s(u), {
|
|
@@ -101,7 +103,7 @@ const Le = { class: "svc-flex-column svc-flex-row__element svc-flex-row__element
|
|
|
101
103
|
], 8, Ge)
|
|
102
104
|
])) : p("", !0)
|
|
103
105
|
]),
|
|
104
|
-
e.value.sidebar ? (l(),
|
|
106
|
+
e.value.sidebar ? (l(), C(s(u), {
|
|
105
107
|
key: 0,
|
|
106
108
|
is: "svc-side-bar",
|
|
107
109
|
model: e.value.sidebar
|
|
@@ -137,9 +139,10 @@ const Le = { class: "svc-flex-column svc-flex-row__element svc-flex-row__element
|
|
|
137
139
|
}), (n, r) => (l(), i("div", {
|
|
138
140
|
class: "svc-tabbed-menu",
|
|
139
141
|
ref_key: "container",
|
|
140
|
-
ref: o
|
|
142
|
+
ref: o,
|
|
143
|
+
role: "tablist"
|
|
141
144
|
}, [
|
|
142
|
-
(l(!0), i(
|
|
145
|
+
(l(!0), i(w, null, R(n.model.renderedActions, (d) => (l(), C(s(u), {
|
|
143
146
|
key: d.renderedId,
|
|
144
147
|
is: "svc-tabbed-menu-item-wrapper",
|
|
145
148
|
item: d
|
|
@@ -174,14 +177,18 @@ const Le = { class: "svc-flex-column svc-flex-row__element svc-flex-row__element
|
|
|
174
177
|
])
|
|
175
178
|
], 2));
|
|
176
179
|
}
|
|
177
|
-
}), xe = /* @__PURE__ */ g({
|
|
180
|
+
}), xe = ["id", "aria-selected", "aria-controls"], eo = /* @__PURE__ */ g({
|
|
178
181
|
__name: "TabbedMenuItem",
|
|
179
182
|
props: {
|
|
180
183
|
item: {}
|
|
181
184
|
},
|
|
182
185
|
setup(c) {
|
|
183
186
|
const t = c;
|
|
184
|
-
return f(() => t.item), (e, o) =>
|
|
187
|
+
return f(() => t.item), (e, o) => h((l(), i("div", {
|
|
188
|
+
role: "tab",
|
|
189
|
+
id: "tab-" + e.item.id,
|
|
190
|
+
"aria-selected": e.item.active,
|
|
191
|
+
"aria-controls": "scrollableDiv-" + e.item.id,
|
|
185
192
|
class: _(["svc-tabbed-menu-item", e.item.getRootCss()]),
|
|
186
193
|
onClick: o[0] || (o[0] = //@ts-ignore
|
|
187
194
|
(...n) => e.item.action && e.item.action(...n))
|
|
@@ -189,8 +196,8 @@ const Le = { class: "svc-flex-column svc-flex-row__element svc-flex-row__element
|
|
|
189
196
|
e.item.hasTitle ? (l(), i("span", {
|
|
190
197
|
key: 0,
|
|
191
198
|
class: _(e.item.getTitleCss())
|
|
192
|
-
},
|
|
193
|
-
e.item.hasIcon ? (l(),
|
|
199
|
+
}, k(e.item.title), 3)) : p("", !0),
|
|
200
|
+
e.item.hasIcon ? (l(), C(s(u), {
|
|
194
201
|
key: 1,
|
|
195
202
|
is: "sv-svg-icon",
|
|
196
203
|
iconName: e.item.iconName,
|
|
@@ -198,11 +205,11 @@ const Le = { class: "svc-flex-column svc-flex-row__element svc-flex-row__element
|
|
|
198
205
|
class: _(e.item.getIconCss()),
|
|
199
206
|
title: e.item.tooltip || e.item.title
|
|
200
207
|
}, null, 8, ["iconName", "class", "title"])) : p("", !0)
|
|
201
|
-
],
|
|
208
|
+
], 10, xe)), [
|
|
202
209
|
[s(D)]
|
|
203
210
|
]);
|
|
204
211
|
}
|
|
205
|
-
}),
|
|
212
|
+
}), oo = { class: "svc-flex-row svc-side-bar__wrapper" }, so = { class: "svc-side-bar__container-wrapper" }, to = { class: "svc-side-bar__container-content" }, no = /* @__PURE__ */ g({
|
|
206
213
|
__name: "SideBar",
|
|
207
214
|
props: {
|
|
208
215
|
model: {}
|
|
@@ -213,17 +220,17 @@ const Le = { class: "svc-flex-column svc-flex-row__element svc-flex-row__element
|
|
|
213
220
|
t.model.initResizeManager(e.value);
|
|
214
221
|
}), L(() => {
|
|
215
222
|
t.model.resetResizeManager();
|
|
216
|
-
}), (o, n) =>
|
|
223
|
+
}), (o, n) => h((l(), i("div", {
|
|
217
224
|
class: _(["svc-side-bar", o.model.rootCss])
|
|
218
225
|
}, [
|
|
219
|
-
|
|
226
|
+
h(a("div", {
|
|
220
227
|
class: "svc-side-bar__shadow",
|
|
221
228
|
onClick: n[0] || (n[0] = () => o.model.collapseSidebar())
|
|
222
229
|
}, null, 512), [
|
|
223
230
|
[F, o.model.renderContainer]
|
|
224
231
|
]),
|
|
225
|
-
a("div",
|
|
226
|
-
|
|
232
|
+
a("div", oo, [
|
|
233
|
+
h(a("div", so, [
|
|
227
234
|
a("div", {
|
|
228
235
|
class: "svc-side-bar__container",
|
|
229
236
|
ref_key: "root",
|
|
@@ -233,8 +240,8 @@ const Le = { class: "svc-flex-column svc-flex-row__element svc-flex-row__element
|
|
|
233
240
|
is: o.model.header.component,
|
|
234
241
|
model: o.model.header.componentModel
|
|
235
242
|
}, null, 8, ["is", "model"]),
|
|
236
|
-
a("div",
|
|
237
|
-
(l(!0), i(
|
|
243
|
+
a("div", to, [
|
|
244
|
+
(l(!0), i(w, null, R(o.model.pages, (r, d) => (l(), C(s(u), {
|
|
238
245
|
key: d,
|
|
239
246
|
is: "svc-side-bar-page",
|
|
240
247
|
model: r
|
|
@@ -244,7 +251,7 @@ const Le = { class: "svc-flex-column svc-flex-row__element svc-flex-row__element
|
|
|
244
251
|
], 512), [
|
|
245
252
|
[F, o.model.renderContainer]
|
|
246
253
|
]),
|
|
247
|
-
o.model.sideAreaComponentName ? (l(),
|
|
254
|
+
o.model.sideAreaComponentName ? (l(), C(s(u), {
|
|
248
255
|
key: 0,
|
|
249
256
|
is: o.model.sideAreaComponentName,
|
|
250
257
|
model: o.model.sideAreaComponentData
|
|
@@ -254,58 +261,58 @@ const Le = { class: "svc-flex-column svc-flex-row__element svc-flex-row__element
|
|
|
254
261
|
[F, o.model.renderRoot]
|
|
255
262
|
]);
|
|
256
263
|
}
|
|
257
|
-
}),
|
|
264
|
+
}), lo = { class: "svc-side-bar__container-header" }, ao = { class: "svc-side-bar__container-actions" }, io = {
|
|
258
265
|
key: 0,
|
|
259
266
|
class: "svc-side-bar__container-title"
|
|
260
|
-
},
|
|
267
|
+
}, ro = /* @__PURE__ */ g({
|
|
261
268
|
__name: "SideBarDefaultHeader",
|
|
262
269
|
props: {
|
|
263
270
|
model: {}
|
|
264
271
|
},
|
|
265
272
|
setup(c) {
|
|
266
273
|
const t = c;
|
|
267
|
-
return f(() => t.model), (e, o) => (l(), i("div",
|
|
268
|
-
a("div",
|
|
274
|
+
return f(() => t.model), (e, o) => (l(), i("div", lo, [
|
|
275
|
+
a("div", ao, [
|
|
269
276
|
v(s(u), {
|
|
270
277
|
is: "sv-action-bar",
|
|
271
278
|
model: e.model.toolbar
|
|
272
279
|
}, null, 8, ["model"])
|
|
273
280
|
]),
|
|
274
|
-
e.model.title ? (l(), i("div",
|
|
281
|
+
e.model.title ? (l(), i("div", io, k(e.model.title), 1)) : p("", !0)
|
|
275
282
|
]));
|
|
276
283
|
}
|
|
277
|
-
}),
|
|
284
|
+
}), co = /* @__PURE__ */ g({
|
|
278
285
|
__name: "SideBarPage",
|
|
279
286
|
props: {
|
|
280
287
|
model: {}
|
|
281
288
|
},
|
|
282
289
|
setup(c) {
|
|
283
290
|
const t = c;
|
|
284
|
-
return f(() => t.model), (e, o) => e.model.visible ? (l(),
|
|
291
|
+
return f(() => t.model), (e, o) => e.model.visible ? (l(), C(s(u), {
|
|
285
292
|
key: 0,
|
|
286
293
|
is: e.model.componentName,
|
|
287
294
|
model: e.model.componentData
|
|
288
295
|
}, null, 8, ["is", "model"])) : p("", !0);
|
|
289
296
|
}
|
|
290
|
-
}),
|
|
297
|
+
}), uo = /* @__PURE__ */ g({
|
|
291
298
|
__name: "ObjectSelector",
|
|
292
299
|
props: {
|
|
293
300
|
model: {}
|
|
294
301
|
},
|
|
295
302
|
setup(c) {
|
|
296
303
|
const t = c;
|
|
297
|
-
return f(() => t.model), (e, o) => e.model.isVisible ? (l(),
|
|
304
|
+
return f(() => t.model), (e, o) => e.model.isVisible ? (l(), C(s(u), {
|
|
298
305
|
key: 0,
|
|
299
306
|
is: "sv-list",
|
|
300
307
|
model: e.model.list
|
|
301
308
|
}, null, 8, ["model"])) : p("", !0);
|
|
302
309
|
}
|
|
303
|
-
}),
|
|
304
|
-
|
|
310
|
+
}), po = { class: "svc-scroll__container" }, vo = /* @__PURE__ */ a("div", { class: "svc-scroll__scrollbar-sizer" }, null, -1), mo = [
|
|
311
|
+
vo
|
|
305
312
|
], W = /* @__PURE__ */ g({
|
|
306
313
|
__name: "Scroll",
|
|
307
314
|
setup(c) {
|
|
308
|
-
const t = new
|
|
315
|
+
const t = new ke(), e = B();
|
|
309
316
|
return E(() => {
|
|
310
317
|
t.setRootElement(e.value);
|
|
311
318
|
}), L(() => {
|
|
@@ -319,17 +326,17 @@ const Le = { class: "svc-flex-column svc-flex-row__element svc-flex-row__element
|
|
|
319
326
|
class: "svc-scroll__scroller sv-drag-target-skipped",
|
|
320
327
|
onScroll: n[0] || (n[0] = () => s(t).onScrollContainer())
|
|
321
328
|
}, [
|
|
322
|
-
a("div",
|
|
329
|
+
a("div", po, [
|
|
323
330
|
X(o.$slots, "default")
|
|
324
331
|
])
|
|
325
332
|
], 32),
|
|
326
333
|
a("div", {
|
|
327
334
|
class: "svc-scroll__scrollbar",
|
|
328
335
|
onScroll: n[1] || (n[1] = () => s(t).onScrollScrollbar())
|
|
329
|
-
},
|
|
336
|
+
}, mo, 32)
|
|
330
337
|
], 512));
|
|
331
338
|
}
|
|
332
|
-
}),
|
|
339
|
+
}), _o = /* @__PURE__ */ g({
|
|
333
340
|
__name: "PropertyGrid",
|
|
334
341
|
props: {
|
|
335
342
|
model: {}
|
|
@@ -345,7 +352,7 @@ const Le = { class: "svc-flex-column svc-flex-row__element svc-flex-row__element
|
|
|
345
352
|
}, null, 8, ["model"]),
|
|
346
353
|
v(W, null, {
|
|
347
354
|
default: Y(() => [
|
|
348
|
-
e.model.survey ? (l(),
|
|
355
|
+
e.model.survey ? (l(), C(s(Q), {
|
|
349
356
|
key: 0,
|
|
350
357
|
survey: e.model.survey
|
|
351
358
|
}, null, 8, ["survey"])) : p("", !0)
|
|
@@ -354,22 +361,22 @@ const Le = { class: "svc-flex-column svc-flex-row__element svc-flex-row__element
|
|
|
354
361
|
})
|
|
355
362
|
], 2));
|
|
356
363
|
}
|
|
357
|
-
}),
|
|
364
|
+
}), go = /* @__PURE__ */ g({
|
|
358
365
|
__name: "Tabs",
|
|
359
366
|
props: {
|
|
360
367
|
model: {}
|
|
361
368
|
},
|
|
362
369
|
setup(c) {
|
|
363
370
|
const t = c;
|
|
364
|
-
return f(() => t.model), (e, o) => (l(!0), i(
|
|
371
|
+
return f(() => t.model), (e, o) => (l(!0), i(w, null, R(e.model.actions, (n, r) => (l(), C(s(u), {
|
|
365
372
|
key: r,
|
|
366
373
|
is: "svc-tab-button",
|
|
367
374
|
model: n
|
|
368
375
|
}, null, 8, ["model"]))), 128));
|
|
369
376
|
}
|
|
370
|
-
}),
|
|
377
|
+
}), bo = { class: "svc-sidebar-tabs__top-container" }, yo = { class: "svc-sidebar-tabs__collapse-button" }, ho = /* @__PURE__ */ a("div", { class: "svc-sidebar-tabs__separator" }, [
|
|
371
378
|
/* @__PURE__ */ a("div")
|
|
372
|
-
], -1),
|
|
379
|
+
], -1), Co = { class: "svc-sidebar-tabs__items" }, qo = { class: "svc-sidebar-tabs__bottom-container" }, $o = { class: "svc-sidebar-tabs__items" }, ko = /* @__PURE__ */ g({
|
|
373
380
|
__name: "TabControl",
|
|
374
381
|
props: {
|
|
375
382
|
model: {}
|
|
@@ -379,17 +386,17 @@ const Le = { class: "svc-flex-column svc-flex-row__element svc-flex-row__element
|
|
|
379
386
|
return f(() => t.model), (e, o) => (l(), i("div", {
|
|
380
387
|
class: _(e.model.sideBarClassName)
|
|
381
388
|
}, [
|
|
382
|
-
a("div",
|
|
383
|
-
a("div",
|
|
389
|
+
a("div", bo, [
|
|
390
|
+
a("div", yo, [
|
|
384
391
|
v(s(u), {
|
|
385
392
|
is: "svc-tab-button",
|
|
386
393
|
model: e.model.expandCollapseAction
|
|
387
394
|
}, null, 8, ["model"])
|
|
388
395
|
]),
|
|
389
|
-
|
|
396
|
+
ho,
|
|
390
397
|
v(W, null, {
|
|
391
398
|
default: Y(() => [
|
|
392
|
-
a("div",
|
|
399
|
+
a("div", Co, [
|
|
393
400
|
v(s(u), {
|
|
394
401
|
is: "svc-tabs",
|
|
395
402
|
model: e.model.topToolbar
|
|
@@ -399,8 +406,8 @@ const Le = { class: "svc-flex-column svc-flex-row__element svc-flex-row__element
|
|
|
399
406
|
_: 1
|
|
400
407
|
})
|
|
401
408
|
]),
|
|
402
|
-
a("div",
|
|
403
|
-
a("div",
|
|
409
|
+
a("div", qo, [
|
|
410
|
+
a("div", $o, [
|
|
404
411
|
v(s(u), {
|
|
405
412
|
is: "svc-tabs",
|
|
406
413
|
model: e.model.bottomToolbar
|
|
@@ -409,21 +416,24 @@ const Le = { class: "svc-flex-column svc-flex-row__element svc-flex-row__element
|
|
|
409
416
|
])
|
|
410
417
|
], 2));
|
|
411
418
|
}
|
|
412
|
-
}), wo = {
|
|
419
|
+
}), wo = {
|
|
420
|
+
key: 0,
|
|
421
|
+
class: "svc-menu-action"
|
|
422
|
+
}, fo = ["title"], To = { class: "svc-menu-action__icon" }, Do = { class: "svc-menu-action__icon-container" }, No = /* @__PURE__ */ g({
|
|
413
423
|
__name: "TabButton",
|
|
414
424
|
props: {
|
|
415
425
|
model: {}
|
|
416
426
|
},
|
|
417
427
|
setup(c) {
|
|
418
428
|
const t = c;
|
|
419
|
-
return f(() => t.model), (e, o) => (l(), i("div", wo, [
|
|
420
|
-
|
|
429
|
+
return f(() => t.model), (e, o) => e.model.visible ? (l(), i("div", wo, [
|
|
430
|
+
h((l(), i("div", {
|
|
421
431
|
class: _(e.model.buttonClassName),
|
|
422
432
|
title: e.model.tooltip,
|
|
423
433
|
onClick: o[0] || (o[0] = (n) => e.model.action())
|
|
424
434
|
}, [
|
|
425
|
-
a("div",
|
|
426
|
-
a("div",
|
|
435
|
+
a("div", To, [
|
|
436
|
+
a("div", Do, [
|
|
427
437
|
v(s(u), {
|
|
428
438
|
is: "sv-svg-icon",
|
|
429
439
|
iconName: e.model.iconName,
|
|
@@ -431,64 +441,64 @@ const Le = { class: "svc-flex-column svc-flex-row__element svc-flex-row__element
|
|
|
431
441
|
}, null, 8, ["iconName"])
|
|
432
442
|
])
|
|
433
443
|
])
|
|
434
|
-
], 10,
|
|
444
|
+
], 10, fo)), [
|
|
435
445
|
[s(D), { processEsc: !1, disableTabStop: e.model.disableTabStop }]
|
|
436
446
|
])
|
|
437
|
-
]));
|
|
447
|
+
])) : p("", !0);
|
|
438
448
|
}
|
|
439
|
-
}),
|
|
449
|
+
}), Mo = { class: "svc-property-grid-placeholder" }, So = { class: "svc-property-grid-placeholder__header" }, Io = { class: "svc-property-grid-placeholder__title" }, Bo = { class: "svc-property-grid-placeholder__description" }, Eo = /* @__PURE__ */ a("div", { class: "svc-property-grid-placeholder__content" }, [
|
|
440
450
|
/* @__PURE__ */ a("div", { class: "svc-property-grid-placeholder__gap" }),
|
|
441
451
|
/* @__PURE__ */ a("div", { class: "svc-property-grid-placeholder__image" })
|
|
442
|
-
], -1),
|
|
452
|
+
], -1), Po = /* @__PURE__ */ g({
|
|
443
453
|
__name: "PropertyGridPlaceholder",
|
|
444
454
|
setup(c) {
|
|
445
455
|
const t = pe;
|
|
446
|
-
return (e, o) => (l(), i("div",
|
|
447
|
-
a("div",
|
|
448
|
-
a("span",
|
|
449
|
-
a("span",
|
|
456
|
+
return (e, o) => (l(), i("div", Mo, [
|
|
457
|
+
a("div", So, [
|
|
458
|
+
a("span", Io, k(s(t).getString("ed.propertyGridPlaceholderTitle")), 1),
|
|
459
|
+
a("span", Bo, k(s(t).getString("ed.propertyGridPlaceholderDescription")), 1)
|
|
450
460
|
]),
|
|
451
|
-
|
|
461
|
+
Eo
|
|
452
462
|
]));
|
|
453
463
|
}
|
|
454
|
-
}),
|
|
464
|
+
}), Ro = { class: "svc-side-bar__container-header svc-sidebar__header-container" }, Vo = {
|
|
455
465
|
key: 0,
|
|
456
466
|
class: "svc-side-bar__container-title"
|
|
457
|
-
},
|
|
467
|
+
}, Ao = {
|
|
458
468
|
key: 1,
|
|
459
469
|
class: "svc-sidebar__header-caption"
|
|
460
|
-
},
|
|
470
|
+
}, zo = { class: "svc-sidebar__header-title" }, Lo = { class: "svc-sidebar__header-subtitle" }, Fo = /* @__PURE__ */ g({
|
|
461
471
|
__name: "SideBarHeader",
|
|
462
472
|
props: {
|
|
463
473
|
model: {}
|
|
464
474
|
},
|
|
465
475
|
setup(c) {
|
|
466
476
|
const t = c;
|
|
467
|
-
return f(() => t.model), (e, o) => (l(), i("div",
|
|
468
|
-
e.model.subTitle ? p("", !0) : (l(), i("div",
|
|
469
|
-
e.model.subTitle ? (l(), i("div",
|
|
470
|
-
a("span",
|
|
471
|
-
a("span",
|
|
477
|
+
return f(() => t.model), (e, o) => (l(), i("div", Ro, [
|
|
478
|
+
e.model.subTitle ? p("", !0) : (l(), i("div", Vo, k(e.model.title), 1)),
|
|
479
|
+
e.model.subTitle ? (l(), i("div", Ao, [
|
|
480
|
+
a("span", zo, k(e.model.title), 1),
|
|
481
|
+
a("span", Lo, k(e.model.subTitle), 1)
|
|
472
482
|
])) : p("", !0)
|
|
473
483
|
]));
|
|
474
484
|
}
|
|
475
|
-
}),
|
|
485
|
+
}), Ko = { class: "svc-sidebar__header svc-sidebar__header--tabbed" }, Uo = { class: "svc-sidebar__header-container svc-sidebar__header-container--with-subtitle" }, Ho = { class: "svc-sidebar__header-content" }, Oo = { class: "svc-sidebar__header-caption" }, Qo = { class: "svc-sidebar__header-title" }, Go = { class: "svc-sidebar__header-subtitle" }, Wo = /* @__PURE__ */ g({
|
|
476
486
|
__name: "SideBarPropertyGridHeader",
|
|
477
487
|
props: {
|
|
478
488
|
model: {}
|
|
479
489
|
},
|
|
480
490
|
setup(c) {
|
|
481
491
|
const t = c;
|
|
482
|
-
return f(() => t.model), (e, o) => (l(), i("div",
|
|
483
|
-
a("div",
|
|
484
|
-
a("div",
|
|
485
|
-
|
|
492
|
+
return f(() => t.model), (e, o) => (l(), i("div", Ko, [
|
|
493
|
+
a("div", Uo, [
|
|
494
|
+
a("div", Ho, [
|
|
495
|
+
h((l(), i("div", {
|
|
486
496
|
class: _(e.model.buttonClassName),
|
|
487
497
|
onClick: o[0] || (o[0] = (n) => e.model.action())
|
|
488
498
|
}, [
|
|
489
|
-
a("div",
|
|
490
|
-
a("span",
|
|
491
|
-
a("span",
|
|
499
|
+
a("div", Oo, [
|
|
500
|
+
a("span", Qo, k(e.model.title), 1),
|
|
501
|
+
a("span", Go, k(e.model.tooltip), 1)
|
|
492
502
|
])
|
|
493
503
|
], 2)), [
|
|
494
504
|
[s(D), { processEsc: !1 }]
|
|
@@ -501,7 +511,7 @@ const Le = { class: "svc-flex-column svc-flex-row__element svc-flex-row__element
|
|
|
501
511
|
])
|
|
502
512
|
]));
|
|
503
513
|
}
|
|
504
|
-
}),
|
|
514
|
+
}), jo = /* @__PURE__ */ g({
|
|
505
515
|
__name: "QuestionError",
|
|
506
516
|
props: {
|
|
507
517
|
errorKey: {},
|
|
@@ -529,7 +539,7 @@ const Le = { class: "svc-flex-column svc-flex-row__element svc-flex-row__element
|
|
|
529
539
|
], 2)
|
|
530
540
|
]));
|
|
531
541
|
}
|
|
532
|
-
}),
|
|
542
|
+
}), Jo = ["title"], Zo = ["title"], Xo = ["title"], Yo = ["title"], xo = /* @__PURE__ */ g({
|
|
533
543
|
__name: "ActionButton",
|
|
534
544
|
props: {
|
|
535
545
|
classes: {},
|
|
@@ -545,25 +555,25 @@ const Le = { class: "svc-flex-column svc-flex-row__element svc-flex-row__element
|
|
|
545
555
|
const t = c, e = (n) => {
|
|
546
556
|
t.click(), t.allowBubble || n.stopPropagation();
|
|
547
557
|
}, o = () => new Ce().append(t.classes || "").append("svc-action-button").append("svc-action-button--icon", !!t.iconName).append("svc-action-button--selected", !!t.selected).append("svc-action-button--disabled", !!t.disabled).toString();
|
|
548
|
-
return (n, r) => (l(), i(
|
|
549
|
-
n.iconName ? p("", !0) : (l(), i(
|
|
558
|
+
return (n, r) => (l(), i(w, null, [
|
|
559
|
+
n.iconName ? p("", !0) : (l(), i(w, { key: 0 }, [
|
|
550
560
|
n.disabled ? (l(), i("span", {
|
|
551
561
|
key: 0,
|
|
552
562
|
class: _(["svc-action-button svc-action-button--disabled", n.classes]),
|
|
553
563
|
title: n.title
|
|
554
|
-
},
|
|
555
|
-
|
|
564
|
+
}, k(n.text), 11, Jo)) : p("", !0),
|
|
565
|
+
h((l(), i("span", {
|
|
556
566
|
role: "button",
|
|
557
567
|
class: _(["svc-action-button", o()]),
|
|
558
568
|
onClick: e,
|
|
559
569
|
title: n.title
|
|
560
570
|
}, [
|
|
561
|
-
be(
|
|
562
|
-
], 10,
|
|
571
|
+
be(k(n.text), 1)
|
|
572
|
+
], 10, Zo)), [
|
|
563
573
|
[s(D)]
|
|
564
574
|
])
|
|
565
575
|
], 64)),
|
|
566
|
-
n.iconName ? (l(), i(
|
|
576
|
+
n.iconName ? (l(), i(w, { key: 1 }, [
|
|
567
577
|
n.disabled ? (l(), i("span", {
|
|
568
578
|
key: 0,
|
|
569
579
|
class: _(o()),
|
|
@@ -574,8 +584,8 @@ const Le = { class: "svc-flex-column svc-flex-row__element svc-flex-row__element
|
|
|
574
584
|
iconName: n.iconName,
|
|
575
585
|
size: "auto"
|
|
576
586
|
}, null, 8, ["iconName"])
|
|
577
|
-
], 10,
|
|
578
|
-
|
|
587
|
+
], 10, Xo)) : p("", !0),
|
|
588
|
+
h((l(), i("span", {
|
|
579
589
|
role: "button",
|
|
580
590
|
onClick: e,
|
|
581
591
|
class: _(o()),
|
|
@@ -586,28 +596,28 @@ const Le = { class: "svc-flex-column svc-flex-row__element svc-flex-row__element
|
|
|
586
596
|
iconName: n.iconName,
|
|
587
597
|
size: "auto"
|
|
588
598
|
}, null, 8, ["iconName"])
|
|
589
|
-
], 10,
|
|
599
|
+
], 10, Yo)), [
|
|
590
600
|
[s(D)]
|
|
591
601
|
])
|
|
592
602
|
], 64)) : p("", !0)
|
|
593
603
|
], 64));
|
|
594
604
|
}
|
|
595
|
-
}),
|
|
596
|
-
|
|
597
|
-
],
|
|
605
|
+
}), es = ["disabled", "title", "aria-checked", "aria-expanded", "role"], os = /* @__PURE__ */ a("div", { class: "svc-switcher__icon-thumb" }, null, -1), ss = [
|
|
606
|
+
os
|
|
607
|
+
], ts = {
|
|
598
608
|
key: 0,
|
|
599
609
|
class: "svc-switcher__title"
|
|
600
|
-
},
|
|
610
|
+
}, ns = {
|
|
601
611
|
inheritAttrs: !1
|
|
602
|
-
},
|
|
603
|
-
...
|
|
612
|
+
}, ls = /* @__PURE__ */ g({
|
|
613
|
+
...ns,
|
|
604
614
|
__name: "Switcher",
|
|
605
615
|
props: {
|
|
606
616
|
item: {}
|
|
607
617
|
},
|
|
608
618
|
setup(c) {
|
|
609
619
|
const t = c;
|
|
610
|
-
return f(() => t.item), (e, o) =>
|
|
620
|
+
return f(() => t.item), (e, o) => h((l(), i("button", {
|
|
611
621
|
class: _(e.item.getActionBarItemCss()),
|
|
612
622
|
type: "button",
|
|
613
623
|
onClick: o[0] || (o[0] = (n) => {
|
|
@@ -624,16 +634,16 @@ const Le = { class: "svc-flex-column svc-flex-row__element svc-flex-row__element
|
|
|
624
634
|
}, [
|
|
625
635
|
a("div", {
|
|
626
636
|
class: _(e.item.getSwitcherIconCss())
|
|
627
|
-
},
|
|
628
|
-
e.item.hasTitle ? (l(), i("span",
|
|
629
|
-
], 42,
|
|
637
|
+
}, ss, 2),
|
|
638
|
+
e.item.hasTitle ? (l(), i("span", ts, k(e.item.title), 1)) : p("", !0)
|
|
639
|
+
], 42, es)), [
|
|
630
640
|
[s(D), { processEsc: !1, disableTabStop: e.item.disableTabStop }]
|
|
631
641
|
]);
|
|
632
642
|
}
|
|
633
|
-
}),
|
|
643
|
+
}), as = {
|
|
634
644
|
key: 0,
|
|
635
645
|
class: "svd-simulator-content"
|
|
636
|
-
},
|
|
646
|
+
}, is = { class: "svd-simulator-content" }, rs = /* @__PURE__ */ g({
|
|
637
647
|
__name: "Simulator",
|
|
638
648
|
props: {
|
|
639
649
|
model: {}
|
|
@@ -652,7 +662,7 @@ const Le = { class: "svc-flex-column svc-flex-row__element svc-flex-row__element
|
|
|
652
662
|
onMouseover: d[1] || (d[1] = (m) => o()),
|
|
653
663
|
onMouseout: d[2] || (d[2] = (m) => n())
|
|
654
664
|
}, [
|
|
655
|
-
r.model.hasFrame ? p("", !0) : (l(), i("div",
|
|
665
|
+
r.model.hasFrame ? p("", !0) : (l(), i("div", as, [
|
|
656
666
|
v(s(u), {
|
|
657
667
|
is: "survey-widget",
|
|
658
668
|
model: r.model.survey
|
|
@@ -675,7 +685,7 @@ const Le = { class: "svc-flex-column svc-flex-row__element svc-flex-row__element
|
|
|
675
685
|
transform: "scale(" + e.value.scale + ") translate(-50%, -50%)"
|
|
676
686
|
})
|
|
677
687
|
}, [
|
|
678
|
-
a("div",
|
|
688
|
+
a("div", is, [
|
|
679
689
|
v(s(u), {
|
|
680
690
|
is: "survey-widget",
|
|
681
691
|
model: r.model.survey
|
|
@@ -685,7 +695,7 @@ const Le = { class: "svc-flex-column svc-flex-row__element svc-flex-row__element
|
|
|
685
695
|
], 4)) : p("", !0)
|
|
686
696
|
], 34));
|
|
687
697
|
}
|
|
688
|
-
}),
|
|
698
|
+
}), ds = { class: "svc-surface-placeholder" }, cs = { class: "svc-surface-placeholder__text" }, us = { class: "svc-surface-placeholder__title" }, ps = { class: "svc-surface-placeholder__description" }, j = /* @__PURE__ */ g({
|
|
689
699
|
__name: "SurfacePlaceholder",
|
|
690
700
|
props: {
|
|
691
701
|
name: {},
|
|
@@ -693,20 +703,20 @@ const Le = { class: "svc-flex-column svc-flex-row__element svc-flex-row__element
|
|
|
693
703
|
placeholderDescriptionText: {}
|
|
694
704
|
},
|
|
695
705
|
setup(c) {
|
|
696
|
-
return (t, e) => (l(), i("div",
|
|
706
|
+
return (t, e) => (l(), i("div", ds, [
|
|
697
707
|
a("div", {
|
|
698
708
|
class: _(["svc-surface-placeholder__image", "svc-surface-placeholder__image--" + t.name])
|
|
699
709
|
}, null, 2),
|
|
700
|
-
a("div",
|
|
701
|
-
a("div",
|
|
702
|
-
a("div",
|
|
710
|
+
a("div", cs, [
|
|
711
|
+
a("div", us, k(t.placeholderTitleText), 1),
|
|
712
|
+
a("div", ps, k(t.placeholderDescriptionText), 1)
|
|
703
713
|
])
|
|
704
714
|
]));
|
|
705
715
|
}
|
|
706
|
-
}),
|
|
716
|
+
}), vs = {
|
|
707
717
|
key: 2,
|
|
708
718
|
class: "svc-plugin-tab__content-actions svc-test-tab__content-actions"
|
|
709
|
-
},
|
|
719
|
+
}, ms = /* @__PURE__ */ g({
|
|
710
720
|
__name: "Test",
|
|
711
721
|
props: {
|
|
712
722
|
model: {}
|
|
@@ -718,7 +728,7 @@ const Le = { class: "svc-flex-column svc-flex-row__element svc-flex-row__element
|
|
|
718
728
|
"svc-creator-tab__content--with-toolbar": e.model.isPageToolbarVisible
|
|
719
729
|
}])
|
|
720
730
|
}, [
|
|
721
|
-
e.model.survey.isEmpty ? (l(),
|
|
731
|
+
e.model.survey.isEmpty ? (l(), C(j, {
|
|
722
732
|
key: 0,
|
|
723
733
|
name: "preview",
|
|
724
734
|
placeholderTitleText: e.model.placeholderTitleText,
|
|
@@ -733,13 +743,13 @@ const Le = { class: "svc-flex-column svc-flex-row__element svc-flex-row__element
|
|
|
733
743
|
is: "survey-simulator",
|
|
734
744
|
model: e.model.simulator
|
|
735
745
|
}, null, 8, ["model"]),
|
|
736
|
-
e.model.showResults ? (l(),
|
|
746
|
+
e.model.showResults ? (l(), C(s(u), {
|
|
737
747
|
key: 0,
|
|
738
748
|
is: "survey-results",
|
|
739
749
|
survey: e.model.survey
|
|
740
750
|
}, null, 8, ["survey"])) : p("", !0)
|
|
741
751
|
], 32)),
|
|
742
|
-
e.model.isPageToolbarVisible ? (l(), i("div",
|
|
752
|
+
e.model.isPageToolbarVisible ? (l(), i("div", vs, [
|
|
743
753
|
v(s(u), {
|
|
744
754
|
is: "sv-action-bar",
|
|
745
755
|
model: e.model.pages
|
|
@@ -747,7 +757,7 @@ const Le = { class: "svc-flex-column svc-flex-row__element svc-flex-row__element
|
|
|
747
757
|
])) : p("", !0)
|
|
748
758
|
], 2));
|
|
749
759
|
}
|
|
750
|
-
}),
|
|
760
|
+
}), _s = { class: "svc-btn__text" }, gs = /* @__PURE__ */ g({
|
|
751
761
|
inheritAttrs: !1,
|
|
752
762
|
__name: "TestAgain",
|
|
753
763
|
props: {
|
|
@@ -755,12 +765,12 @@ const Le = { class: "svc-flex-column svc-flex-row__element svc-flex-row__element
|
|
|
755
765
|
},
|
|
756
766
|
setup(c) {
|
|
757
767
|
const t = c, e = $(() => t.model.testAgainAction);
|
|
758
|
-
return f(() => e.value), (o, n) =>
|
|
768
|
+
return f(() => e.value), (o, n) => h((l(), i("div", {
|
|
759
769
|
role: "button",
|
|
760
770
|
class: "svc-preview__test-again svc-btn",
|
|
761
771
|
onClick: n[0] || (n[0] = (r) => e.value.action())
|
|
762
772
|
}, [
|
|
763
|
-
a("span",
|
|
773
|
+
a("span", _s, k(e.value.title), 1)
|
|
764
774
|
])), [
|
|
765
775
|
[s(D)]
|
|
766
776
|
]);
|
|
@@ -780,24 +790,24 @@ function A(c, t, e) {
|
|
|
780
790
|
n();
|
|
781
791
|
}), o;
|
|
782
792
|
}
|
|
783
|
-
const
|
|
793
|
+
const bs = {
|
|
784
794
|
key: 0,
|
|
785
795
|
class: "svd-test-results"
|
|
786
|
-
},
|
|
796
|
+
}, ys = { class: "svd-test-results__content" }, hs = { class: "svd-test-results__header" }, Cs = { class: "svd-test-results__header-text" }, qs = { class: "svd-test-results__header-types" }, $s = { class: "svd-test-results__text svd-light-bg-color" }, ks = { class: "svd-test-results__table svd-light-bg-color" }, ws = { class: "svd-light-background-color" }, fs = { class: "svd-dark-border-color" }, Ts = { class: "svd-dark-border-color" }, Ds = /* @__PURE__ */ g({
|
|
787
797
|
__name: "SurveyResults",
|
|
788
798
|
props: {
|
|
789
799
|
survey: {}
|
|
790
800
|
},
|
|
791
801
|
setup(c) {
|
|
792
802
|
const t = c, e = A(
|
|
793
|
-
() => t.survey ? new
|
|
803
|
+
() => t.survey ? new we(t.survey) : void 0,
|
|
794
804
|
[() => t.survey]
|
|
795
805
|
);
|
|
796
|
-
return (o, n) => s(e) ? (l(), i("div",
|
|
797
|
-
a("div",
|
|
798
|
-
a("div",
|
|
799
|
-
a("div",
|
|
800
|
-
a("div",
|
|
806
|
+
return (o, n) => s(e) ? (l(), i("div", bs, [
|
|
807
|
+
a("div", ys, [
|
|
808
|
+
a("div", hs, [
|
|
809
|
+
a("div", Cs, k(s(e).surveyResultsText), 1),
|
|
810
|
+
a("div", qs, [
|
|
801
811
|
v(s(u), {
|
|
802
812
|
is: "svc-action-button",
|
|
803
813
|
text: s(e).surveyResultsTableText,
|
|
@@ -814,21 +824,21 @@ const gs = {
|
|
|
814
824
|
}, null, 8, ["text", "click", "selected"])
|
|
815
825
|
])
|
|
816
826
|
]),
|
|
817
|
-
|
|
818
|
-
a("div", null,
|
|
827
|
+
h(a("div", $s, [
|
|
828
|
+
a("div", null, k(s(e).resultText), 1)
|
|
819
829
|
], 512), [
|
|
820
830
|
[F, s(e).resultViewType === "text"]
|
|
821
831
|
]),
|
|
822
|
-
|
|
832
|
+
h(a("div", ks, [
|
|
823
833
|
a("table", null, [
|
|
824
834
|
a("thead", null, [
|
|
825
835
|
a("tr", ws, [
|
|
826
|
-
a("th",
|
|
827
|
-
a("th",
|
|
836
|
+
a("th", fs, k(s(e).resultsTitle), 1),
|
|
837
|
+
a("th", Ts, k(s(e).resultsDisplayValue), 1)
|
|
828
838
|
])
|
|
829
839
|
]),
|
|
830
840
|
a("tbody", null, [
|
|
831
|
-
(l(!0), i(
|
|
841
|
+
(l(!0), i(w, null, R(s(e).resultData, (r, d) => (l(), C(s(u), {
|
|
832
842
|
is: "survey-results-table-row",
|
|
833
843
|
model: r,
|
|
834
844
|
key: d
|
|
@@ -841,15 +851,15 @@ const gs = {
|
|
|
841
851
|
])
|
|
842
852
|
])) : p("", !0);
|
|
843
853
|
}
|
|
844
|
-
}),
|
|
854
|
+
}), Ns = { key: 2 }, Ms = /* @__PURE__ */ g({
|
|
845
855
|
__name: "SurveyResultsRow",
|
|
846
856
|
props: {
|
|
847
857
|
model: {}
|
|
848
858
|
},
|
|
849
859
|
setup(c) {
|
|
850
860
|
const t = c;
|
|
851
|
-
return f(() => t.model), (e, o) => (l(), i(
|
|
852
|
-
|
|
861
|
+
return f(() => t.model), (e, o) => (l(), i(w, null, [
|
|
862
|
+
h((l(), i("tr", {
|
|
853
863
|
onClick: o[0] || (o[0] = //@ts-ignore
|
|
854
864
|
(...n) => e.model.toggle && e.model.toggle(...n))
|
|
855
865
|
}, [
|
|
@@ -868,43 +878,43 @@ const gs = {
|
|
|
868
878
|
size: 16
|
|
869
879
|
})
|
|
870
880
|
], 6)) : p("", !0),
|
|
871
|
-
e.model.question ? (l(),
|
|
881
|
+
e.model.question ? (l(), C(s(u), {
|
|
872
882
|
key: 1,
|
|
873
883
|
is: "survey-string",
|
|
874
884
|
locString: e.model.question.locTitle
|
|
875
|
-
}, null, 8, ["locString"])) : (l(), i("span",
|
|
885
|
+
}, null, 8, ["locString"])) : (l(), i("span", Ns, k(e.model.title), 1))
|
|
876
886
|
], 4),
|
|
877
887
|
a("td", {
|
|
878
888
|
class: _({
|
|
879
889
|
"svd-test-results__node-value": e.model.isNode,
|
|
880
890
|
"svd-dark-border-color": !e.model.isNode
|
|
881
891
|
})
|
|
882
|
-
},
|
|
892
|
+
}, k(e.model.getString(e.model.displayValue)), 3)
|
|
883
893
|
])), [
|
|
884
894
|
[s(D)]
|
|
885
895
|
]),
|
|
886
|
-
e.model.isNode && !e.model.collapsed ? (l(!0), i(
|
|
896
|
+
e.model.isNode && !e.model.collapsed ? (l(!0), i(w, { key: 0 }, R(e.model.data, (n, r) => (l(), C(s(u), {
|
|
887
897
|
is: "survey-results-table-row",
|
|
888
898
|
model: n,
|
|
889
899
|
key: r + 1
|
|
890
900
|
}, null, 8, ["model"]))), 128)) : p("", !0)
|
|
891
901
|
], 64));
|
|
892
902
|
}
|
|
893
|
-
}),
|
|
903
|
+
}), Ss = { class: "svc-creator-tab__content" }, Is = { class: "svc-json-editor-tab__content" }, Bs = { class: "svc-json-editor-tab__errros_list" }, Es = /* @__PURE__ */ g({
|
|
894
904
|
__name: "JsonEditorAce",
|
|
895
905
|
props: {
|
|
896
906
|
model: {}
|
|
897
907
|
},
|
|
898
908
|
setup(c) {
|
|
899
909
|
const t = c, e = B();
|
|
900
|
-
return f(() => t.model), E(() => t.model.init(window.ace.edit(e.value))), (o, n) => (l(), i("div",
|
|
901
|
-
a("div",
|
|
910
|
+
return f(() => t.model), E(() => t.model.init(window.ace.edit(e.value))), (o, n) => (l(), i("div", Ss, [
|
|
911
|
+
a("div", Is, [
|
|
902
912
|
a("div", {
|
|
903
913
|
class: "svc-json-editor-tab__ace-editor",
|
|
904
914
|
ref_key: "inputEl",
|
|
905
915
|
ref: e
|
|
906
916
|
}, null, 512),
|
|
907
|
-
|
|
917
|
+
h(a("div", Bs, [
|
|
908
918
|
v(s(u), {
|
|
909
919
|
is: "sv-list",
|
|
910
920
|
model: o.model.errorList
|
|
@@ -915,7 +925,7 @@ const gs = {
|
|
|
915
925
|
])
|
|
916
926
|
]));
|
|
917
927
|
}
|
|
918
|
-
}),
|
|
928
|
+
}), Ps = { class: "svc-creator-tab__content" }, Rs = { class: "svc-json-editor-tab__content" }, Vs = ["aria-label", "disabled"], As = { class: "svc-json-editor-tab__errros_list" }, zs = /* @__PURE__ */ g({
|
|
919
929
|
__name: "JsonEditorTextArea",
|
|
920
930
|
props: {
|
|
921
931
|
model: {}
|
|
@@ -925,9 +935,9 @@ const gs = {
|
|
|
925
935
|
return o.canShowErrors = !1, f(() => t.model), E(() => {
|
|
926
936
|
const n = t.model;
|
|
927
937
|
n.textElement = e.value;
|
|
928
|
-
}), (n, r) => (l(), i("div",
|
|
929
|
-
a("div",
|
|
930
|
-
|
|
938
|
+
}), (n, r) => (l(), i("div", Ps, [
|
|
939
|
+
a("div", Rs, [
|
|
940
|
+
h(a("textarea", {
|
|
931
941
|
class: "svc-json-editor-tab__content-area",
|
|
932
942
|
"aria-label": s(o).ariaLabel,
|
|
933
943
|
disabled: s(o).readOnly,
|
|
@@ -936,10 +946,10 @@ const gs = {
|
|
|
936
946
|
ref_key: "inputEl",
|
|
937
947
|
ref: e
|
|
938
948
|
}, `
|
|
939
|
-
`, 40,
|
|
949
|
+
`, 40, Vs), [
|
|
940
950
|
[ce, s(o).text]
|
|
941
951
|
]),
|
|
942
|
-
|
|
952
|
+
h(a("div", As, [
|
|
943
953
|
v(s(u), {
|
|
944
954
|
is: "sv-list",
|
|
945
955
|
model: s(o).errorList
|
|
@@ -950,7 +960,7 @@ const gs = {
|
|
|
950
960
|
])
|
|
951
961
|
]));
|
|
952
962
|
}
|
|
953
|
-
}),
|
|
963
|
+
}), Ls = { class: "svc-json-error__container" }, Fs = { class: "svc-json-error__title" }, Ks = ["title", "aria-label"], Us = /* @__PURE__ */ g({
|
|
954
964
|
__name: "JsonEditorErrorItem",
|
|
955
965
|
props: {
|
|
956
966
|
item: {}
|
|
@@ -961,21 +971,21 @@ const gs = {
|
|
|
961
971
|
const e = (o) => {
|
|
962
972
|
o.stopPropagation(), t.item.data.fixError();
|
|
963
973
|
};
|
|
964
|
-
return (o, n) => (l(), i(
|
|
974
|
+
return (o, n) => (l(), i(w, null, [
|
|
965
975
|
v(s(u), {
|
|
966
976
|
is: "sv-svg-icon",
|
|
967
977
|
iconName: o.item.iconName,
|
|
968
978
|
size: o.item.iconSize,
|
|
969
979
|
class: _("svc-json-error__icon")
|
|
970
980
|
}, null, 8, ["iconName", "size"]),
|
|
971
|
-
a("div",
|
|
972
|
-
a("div",
|
|
981
|
+
a("div", Ls, [
|
|
982
|
+
a("div", Fs, [
|
|
973
983
|
v(s(u), {
|
|
974
984
|
is: "survey-string",
|
|
975
985
|
locString: o.item.locTitle
|
|
976
986
|
}, null, 8, ["locString"])
|
|
977
987
|
]),
|
|
978
|
-
o.item.data.showFixButton ?
|
|
988
|
+
o.item.data.showFixButton ? h((l(), i("button", {
|
|
979
989
|
key: 0,
|
|
980
990
|
type: "button",
|
|
981
991
|
onClick: e,
|
|
@@ -988,13 +998,13 @@ const gs = {
|
|
|
988
998
|
iconName: o.item.data.fixButtonIcon,
|
|
989
999
|
size: "auto"
|
|
990
1000
|
}, null, 8, ["iconName"])
|
|
991
|
-
], 8,
|
|
1001
|
+
], 8, Ks)), [
|
|
992
1002
|
[s(D)]
|
|
993
1003
|
]) : p("", !0)
|
|
994
1004
|
])
|
|
995
1005
|
], 64));
|
|
996
1006
|
}
|
|
997
|
-
}),
|
|
1007
|
+
}), Hs = { class: "svc-btn__text" }, ne = /* @__PURE__ */ g({
|
|
998
1008
|
__name: "LogicAddButton",
|
|
999
1009
|
props: {
|
|
1000
1010
|
model: {}
|
|
@@ -1005,48 +1015,48 @@ const gs = {
|
|
|
1005
1015
|
const e = (o) => {
|
|
1006
1016
|
o.stopPropagation(), t.model.action();
|
|
1007
1017
|
};
|
|
1008
|
-
return (o, n) =>
|
|
1018
|
+
return (o, n) => h((l(), i("div", {
|
|
1009
1019
|
role: "button",
|
|
1010
1020
|
class: _(["svc-logic-tab__content-action svc-btn", {
|
|
1011
1021
|
"svc-logic-tab__content-action--disabled": o.model.enabled !== void 0 && !o.model.enabled
|
|
1012
1022
|
}]),
|
|
1013
1023
|
onClick: e
|
|
1014
1024
|
}, [
|
|
1015
|
-
a("span",
|
|
1025
|
+
a("span", Hs, k(o.model.title), 1)
|
|
1016
1026
|
], 2)), [
|
|
1017
1027
|
[s(D)]
|
|
1018
1028
|
]);
|
|
1019
1029
|
}
|
|
1020
|
-
}),
|
|
1030
|
+
}), Os = { class: "svc-creator-tab__content" }, Qs = {
|
|
1021
1031
|
key: 1,
|
|
1022
1032
|
class: "svc-logic-tab__content-empty"
|
|
1023
|
-
},
|
|
1033
|
+
}, Gs = /* @__PURE__ */ g({
|
|
1024
1034
|
__name: "Logic",
|
|
1025
1035
|
props: {
|
|
1026
1036
|
model: {}
|
|
1027
1037
|
},
|
|
1028
1038
|
setup(c) {
|
|
1029
1039
|
const t = c;
|
|
1030
|
-
return f(() => t.model), (e, o) => (l(), i("div",
|
|
1040
|
+
return f(() => t.model), (e, o) => (l(), i("div", Os, [
|
|
1031
1041
|
a("div", {
|
|
1032
1042
|
class: _(["svc-plugin-tab__content svc-logic-tab__content", { "svc-logic-tab--empty": !e.model.hasItems }])
|
|
1033
1043
|
}, [
|
|
1034
|
-
e.model.hasItems ? (l(), i(
|
|
1044
|
+
e.model.hasItems ? (l(), i(w, { key: 0 }, [
|
|
1035
1045
|
v(s(Q), {
|
|
1036
1046
|
model: e.model.itemsSurvey
|
|
1037
1047
|
}, null, 8, ["model"]),
|
|
1038
|
-
e.model.readOnly ? p("", !0) : (l(),
|
|
1048
|
+
e.model.readOnly ? p("", !0) : (l(), C(ne, {
|
|
1039
1049
|
key: 0,
|
|
1040
1050
|
model: e.model.addNewButton
|
|
1041
1051
|
}, null, 8, ["model"]))
|
|
1042
1052
|
], 64)) : p("", !0),
|
|
1043
|
-
e.model.hasItems ? p("", !0) : (l(), i("div",
|
|
1053
|
+
e.model.hasItems ? p("", !0) : (l(), i("div", Qs, [
|
|
1044
1054
|
v(j, {
|
|
1045
1055
|
name: "logic",
|
|
1046
1056
|
placeholderTitleText: e.model.placeholderTitleText,
|
|
1047
1057
|
placeholderDescriptionText: e.model.placeholderDescriptionText
|
|
1048
1058
|
}, null, 8, ["placeholderTitleText", "placeholderDescriptionText"]),
|
|
1049
|
-
e.model.readOnly ? p("", !0) : (l(),
|
|
1059
|
+
e.model.readOnly ? p("", !0) : (l(), C(ne, {
|
|
1050
1060
|
key: 0,
|
|
1051
1061
|
model: e.model.addNewButton
|
|
1052
1062
|
}, null, 8, ["model"]))
|
|
@@ -1054,13 +1064,13 @@ const gs = {
|
|
|
1054
1064
|
], 2)
|
|
1055
1065
|
]));
|
|
1056
1066
|
}
|
|
1057
|
-
}),
|
|
1067
|
+
}), Ws = ["id", "required", "tabindex", "disabled", "role", "aria-required", "aria-label", "aria-invalid", "aria-describedby"], js = ["id"];
|
|
1058
1068
|
ue.Instance.registerRenderer(
|
|
1059
1069
|
"dropdown",
|
|
1060
1070
|
"logicoperator",
|
|
1061
1071
|
"sv-logic-operator"
|
|
1062
1072
|
);
|
|
1063
|
-
const
|
|
1073
|
+
const Js = /* @__PURE__ */ g({
|
|
1064
1074
|
__name: "LogicOperator",
|
|
1065
1075
|
props: {
|
|
1066
1076
|
question: {}
|
|
@@ -1083,7 +1093,7 @@ const js = /* @__PURE__ */ g({
|
|
|
1083
1093
|
return (m, b) => (l(), i("div", {
|
|
1084
1094
|
class: _(m.question.cssClasses.selectWrapper)
|
|
1085
1095
|
}, [
|
|
1086
|
-
m.question.isReadOnly ? p("", !0) : (l(), i(
|
|
1096
|
+
m.question.isReadOnly ? p("", !0) : (l(), i(w, { key: 0 }, [
|
|
1087
1097
|
a("div", {
|
|
1088
1098
|
class: _(m.question.getControlClass()),
|
|
1089
1099
|
onClick: n,
|
|
@@ -1101,14 +1111,14 @@ const js = /* @__PURE__ */ g({
|
|
|
1101
1111
|
a("div", {
|
|
1102
1112
|
class: _(m.question.cssClasses.controlValue)
|
|
1103
1113
|
}, [
|
|
1104
|
-
m.question.selectedItemLocText ? (l(),
|
|
1114
|
+
m.question.selectedItemLocText ? (l(), C(s(u), {
|
|
1105
1115
|
key: 0,
|
|
1106
1116
|
is: "survey-string",
|
|
1107
1117
|
locString: m.question.selectedItemLocText
|
|
1108
1118
|
}, null, 8, ["locString"])) : p("", !0),
|
|
1109
|
-
a("div", null,
|
|
1119
|
+
a("div", null, k(m.question.readOnlyText), 1)
|
|
1110
1120
|
], 2),
|
|
1111
|
-
m.question.allowClear && m.question.cssClasses.cleanButtonIconId ?
|
|
1121
|
+
m.question.allowClear && m.question.cssClasses.cleanButtonIconId ? h((l(), i("div", {
|
|
1112
1122
|
key: 0,
|
|
1113
1123
|
class: _(m.question.cssClasses.cleanButton),
|
|
1114
1124
|
onClick: r
|
|
@@ -1123,7 +1133,7 @@ const js = /* @__PURE__ */ g({
|
|
|
1123
1133
|
], 2)), [
|
|
1124
1134
|
[F, !m.question.isEmpty()]
|
|
1125
1135
|
]) : p("", !0)
|
|
1126
|
-
], 42,
|
|
1136
|
+
], 42, Ws),
|
|
1127
1137
|
v(s(u), {
|
|
1128
1138
|
is: "sv-popup",
|
|
1129
1139
|
model: m.question.popupModel
|
|
@@ -1135,16 +1145,16 @@ const js = /* @__PURE__ */ g({
|
|
|
1135
1145
|
class: _(m.question.getControlClass()),
|
|
1136
1146
|
id: m.question.inputId
|
|
1137
1147
|
}, [
|
|
1138
|
-
m.question.selectedItemLocText ? (l(),
|
|
1148
|
+
m.question.selectedItemLocText ? (l(), C(s(u), {
|
|
1139
1149
|
key: 0,
|
|
1140
1150
|
is: "survey-string",
|
|
1141
1151
|
locString: m.question.selectedItemLocText
|
|
1142
1152
|
}, null, 8, ["locString"])) : p("", !0),
|
|
1143
|
-
a("div", null,
|
|
1144
|
-
], 10,
|
|
1153
|
+
a("div", null, k(m.question.readOnlyText), 1)
|
|
1154
|
+
], 10, js)) : p("", !0)
|
|
1145
1155
|
], 2));
|
|
1146
1156
|
}
|
|
1147
|
-
}),
|
|
1157
|
+
}), Zs = /* @__PURE__ */ g({
|
|
1148
1158
|
__name: "EmbeddedSurvey",
|
|
1149
1159
|
props: {
|
|
1150
1160
|
question: {}
|
|
@@ -1153,14 +1163,14 @@ const js = /* @__PURE__ */ g({
|
|
|
1153
1163
|
const t = c, e = B();
|
|
1154
1164
|
H(t, e);
|
|
1155
1165
|
const o = $(() => t.question.embeddedSurvey);
|
|
1156
|
-
return (n, r) => n.question && o.value && o.value.currentPage ? (l(),
|
|
1166
|
+
return (n, r) => n.question && o.value && o.value.currentPage ? (l(), C(s(u), {
|
|
1157
1167
|
key: 0,
|
|
1158
1168
|
is: "survey-page",
|
|
1159
1169
|
page: o.value.currentPage,
|
|
1160
1170
|
survey: o.value
|
|
1161
1171
|
}, null, 8, ["page", "survey"])) : p("", !0);
|
|
1162
1172
|
}
|
|
1163
|
-
}),
|
|
1173
|
+
}), Xs = /* @__PURE__ */ g({
|
|
1164
1174
|
inheritAttrs: !1,
|
|
1165
1175
|
__name: "LinkValue",
|
|
1166
1176
|
props: {
|
|
@@ -1168,7 +1178,7 @@ const js = /* @__PURE__ */ g({
|
|
|
1168
1178
|
},
|
|
1169
1179
|
setup(c) {
|
|
1170
1180
|
const t = c, e = B(), o = pe.getString("pe.clear");
|
|
1171
|
-
return H(t, e), (n, r) => (l(), i(
|
|
1181
|
+
return H(t, e), (n, r) => (l(), i(w, null, [
|
|
1172
1182
|
v(s(u), {
|
|
1173
1183
|
is: "svc-action-button",
|
|
1174
1184
|
text: n.question.linkValueText,
|
|
@@ -1179,7 +1189,7 @@ const js = /* @__PURE__ */ g({
|
|
|
1179
1189
|
title: n.question.tooltip,
|
|
1180
1190
|
iconName: n.question.iconName
|
|
1181
1191
|
}, null, 8, ["text", "click", "selected", "disabled", "classes", "title", "iconName"]),
|
|
1182
|
-
!n.question.isReadOnly && n.question.showClear ? (l(),
|
|
1192
|
+
!n.question.isReadOnly && n.question.showClear ? (l(), C(s(u), {
|
|
1183
1193
|
key: 0,
|
|
1184
1194
|
is: "svc-action-button",
|
|
1185
1195
|
text: s(o),
|
|
@@ -1189,10 +1199,10 @@ const js = /* @__PURE__ */ g({
|
|
|
1189
1199
|
}, null, 8, ["text", "click", "classes"])) : p("", !0)
|
|
1190
1200
|
], 64));
|
|
1191
1201
|
}
|
|
1192
|
-
}),
|
|
1202
|
+
}), Ys = {
|
|
1193
1203
|
key: 1,
|
|
1194
1204
|
class: "st-content"
|
|
1195
|
-
},
|
|
1205
|
+
}, xs = { class: "svc-flex-column st-strings-wrapper" }, et = { class: "svc-flex-row st-strings-header" }, ot = { class: "svc-flex-row svc-plugin-tab__content st-strings" }, st = /* @__PURE__ */ g({
|
|
1196
1206
|
__name: "Translation",
|
|
1197
1207
|
props: {
|
|
1198
1208
|
model: {}
|
|
@@ -1202,20 +1212,20 @@ const js = /* @__PURE__ */ g({
|
|
|
1202
1212
|
return f(() => t.model), (e, o) => (l(), i("div", {
|
|
1203
1213
|
class: _(["svc-creator-tab__content svc-translation-tab", e.model.isEmpty ? "svc-translation-tab--empty" : ""])
|
|
1204
1214
|
}, [
|
|
1205
|
-
e.model.isEmpty ? (l(),
|
|
1215
|
+
e.model.isEmpty ? (l(), C(j, {
|
|
1206
1216
|
key: 0,
|
|
1207
1217
|
name: "translation",
|
|
1208
1218
|
placeholderTitleText: e.model.placeholderTitleText,
|
|
1209
1219
|
placeholderDescriptionText: e.model.placeholderDescriptionText
|
|
1210
1220
|
}, null, 8, ["placeholderTitleText", "placeholderDescriptionText"])) : p("", !0),
|
|
1211
|
-
e.model.isEmpty ? p("", !0) : (l(), i("div",
|
|
1212
|
-
a("div",
|
|
1213
|
-
a("div",
|
|
1221
|
+
e.model.isEmpty ? p("", !0) : (l(), i("div", Ys, [
|
|
1222
|
+
a("div", xs, [
|
|
1223
|
+
a("div", et, [
|
|
1214
1224
|
v(s(Q), {
|
|
1215
1225
|
model: e.model.stringsHeaderSurvey
|
|
1216
1226
|
}, null, 8, ["model"])
|
|
1217
1227
|
]),
|
|
1218
|
-
a("div",
|
|
1228
|
+
a("div", ot, [
|
|
1219
1229
|
v(s(Q), {
|
|
1220
1230
|
model: e.model.stringsSurvey
|
|
1221
1231
|
}, null, 8, ["model"])
|
|
@@ -1224,16 +1234,16 @@ const js = /* @__PURE__ */ g({
|
|
|
1224
1234
|
]))
|
|
1225
1235
|
], 2));
|
|
1226
1236
|
}
|
|
1227
|
-
}),
|
|
1237
|
+
}), tt = (c, t) => {
|
|
1228
1238
|
const e = c.__vccOpts || c;
|
|
1229
1239
|
for (const [o, n] of t)
|
|
1230
1240
|
e[o] = n;
|
|
1231
1241
|
return e;
|
|
1232
|
-
},
|
|
1233
|
-
function
|
|
1234
|
-
return l(), i("div",
|
|
1242
|
+
}, nt = {}, lt = { class: "sd-translation-line-skeleton" };
|
|
1243
|
+
function at(c, t) {
|
|
1244
|
+
return l(), i("div", lt);
|
|
1235
1245
|
}
|
|
1236
|
-
const
|
|
1246
|
+
const it = /* @__PURE__ */ tt(nt, [["render", at]]), rt = /* @__PURE__ */ g({
|
|
1237
1247
|
__name: "TranslateFromAction",
|
|
1238
1248
|
props: {
|
|
1239
1249
|
item: {}
|
|
@@ -1244,20 +1254,20 @@ const at = /* @__PURE__ */ st(tt, [["render", lt]]), it = /* @__PURE__ */ g({
|
|
|
1244
1254
|
}, [
|
|
1245
1255
|
a("span", {
|
|
1246
1256
|
class: _(t.item.data.additionalTitleCss)
|
|
1247
|
-
},
|
|
1257
|
+
}, k(t.item.data.additionalTitle), 3),
|
|
1248
1258
|
v(s(u), {
|
|
1249
1259
|
is: "sv-action-bar-item-dropdown",
|
|
1250
1260
|
item: t.item
|
|
1251
1261
|
}, null, 8, ["item"])
|
|
1252
1262
|
], 2));
|
|
1253
1263
|
}
|
|
1254
|
-
}),
|
|
1264
|
+
}), dt = {
|
|
1255
1265
|
key: 1,
|
|
1256
1266
|
class: "svc-plugin-tab__content"
|
|
1257
|
-
},
|
|
1267
|
+
}, ct = {
|
|
1258
1268
|
key: 2,
|
|
1259
1269
|
class: "svc-plugin-tab__content-actions svc-test-tab__content-actions"
|
|
1260
|
-
},
|
|
1270
|
+
}, ut = /* @__PURE__ */ g({
|
|
1261
1271
|
__name: "Theme",
|
|
1262
1272
|
props: {
|
|
1263
1273
|
model: {}
|
|
@@ -1269,24 +1279,24 @@ const at = /* @__PURE__ */ st(tt, [["render", lt]]), it = /* @__PURE__ */ g({
|
|
|
1269
1279
|
"svc-creator-tab__content--with-toolbar": e.model.isPageToolbarVisible
|
|
1270
1280
|
}])
|
|
1271
1281
|
}, [
|
|
1272
|
-
e.model.survey.isEmpty ? (l(),
|
|
1282
|
+
e.model.survey.isEmpty ? (l(), C(j, {
|
|
1273
1283
|
key: 0,
|
|
1274
1284
|
name: "theme",
|
|
1275
1285
|
placeholderTitleText: e.model.placeholderTitleText,
|
|
1276
1286
|
placeholderDescriptionText: e.model.placeholderDescriptionText
|
|
1277
1287
|
}, null, 8, ["placeholderTitleText", "placeholderDescriptionText"])) : p("", !0),
|
|
1278
|
-
e.model.survey.isEmpty ? p("", !0) : (l(), i("div",
|
|
1288
|
+
e.model.survey.isEmpty ? p("", !0) : (l(), i("div", dt, [
|
|
1279
1289
|
v(s(u), {
|
|
1280
1290
|
is: "survey-simulator",
|
|
1281
1291
|
model: e.model.simulator
|
|
1282
1292
|
}, null, 8, ["model"]),
|
|
1283
|
-
e.model.showResults ? (l(),
|
|
1293
|
+
e.model.showResults ? (l(), C(s(u), {
|
|
1284
1294
|
key: 0,
|
|
1285
1295
|
is: "survey-results",
|
|
1286
1296
|
survey: e.model.survey
|
|
1287
1297
|
}, null, 8, ["survey"])) : p("", !0)
|
|
1288
1298
|
])),
|
|
1289
|
-
e.model.isPageToolbarVisible ? (l(), i("div",
|
|
1299
|
+
e.model.isPageToolbarVisible ? (l(), i("div", ct, [
|
|
1290
1300
|
v(s(u), {
|
|
1291
1301
|
is: "sv-action-bar",
|
|
1292
1302
|
model: e.model.pages
|
|
@@ -1294,7 +1304,7 @@ const at = /* @__PURE__ */ st(tt, [["render", lt]]), it = /* @__PURE__ */ g({
|
|
|
1294
1304
|
])) : p("", !0)
|
|
1295
1305
|
], 2));
|
|
1296
1306
|
}
|
|
1297
|
-
}),
|
|
1307
|
+
}), pt = ["disabled", "value"], vt = ["disabled", "id", "placeholder", "aria-required", "aria-label", "aria-invalid", "aria-describedby", "value"], mt = /* @__PURE__ */ g({
|
|
1298
1308
|
__name: "Color",
|
|
1299
1309
|
props: {
|
|
1300
1310
|
question: {}
|
|
@@ -1322,7 +1332,7 @@ const at = /* @__PURE__ */ st(tt, [["render", lt]]), it = /* @__PURE__ */ g({
|
|
|
1322
1332
|
tabindex: "-1",
|
|
1323
1333
|
onChange: o[0] || (o[0] = //@ts-ignore
|
|
1324
1334
|
(...n) => e.question.onColorInputChange && e.question.onColorInputChange(...n))
|
|
1325
|
-
}, null, 42,
|
|
1335
|
+
}, null, 42, pt)
|
|
1326
1336
|
], 6),
|
|
1327
1337
|
a("input", {
|
|
1328
1338
|
autocomplete: "off",
|
|
@@ -1343,8 +1353,8 @@ const at = /* @__PURE__ */ st(tt, [["render", lt]]), it = /* @__PURE__ */ g({
|
|
|
1343
1353
|
(...n) => e.question.onBeforeInput && e.question.onBeforeInput(...n)),
|
|
1344
1354
|
value: e.question.renderedValue,
|
|
1345
1355
|
class: _(e.question.cssClasses.control)
|
|
1346
|
-
}, null, 42,
|
|
1347
|
-
e.question.showDropdownAction ? (l(), i(
|
|
1356
|
+
}, null, 42, vt),
|
|
1357
|
+
e.question.showDropdownAction ? (l(), i(w, { key: 0 }, [
|
|
1348
1358
|
v(s(u), {
|
|
1349
1359
|
is: "sv-action-bar-item",
|
|
1350
1360
|
item: e.question.dropdownAction
|
|
@@ -1356,7 +1366,7 @@ const at = /* @__PURE__ */ st(tt, [["render", lt]]), it = /* @__PURE__ */ g({
|
|
|
1356
1366
|
], 64)) : p("", !0)
|
|
1357
1367
|
], 34));
|
|
1358
1368
|
}
|
|
1359
|
-
}),
|
|
1369
|
+
}), _t = /* @__PURE__ */ g({
|
|
1360
1370
|
__name: "ColorItem",
|
|
1361
1371
|
props: {
|
|
1362
1372
|
model: {},
|
|
@@ -1366,7 +1376,7 @@ const at = /* @__PURE__ */ st(tt, [["render", lt]]), it = /* @__PURE__ */ g({
|
|
|
1366
1376
|
const t = c;
|
|
1367
1377
|
f(() => t.item);
|
|
1368
1378
|
const e = () => ({ backgroundColor: t.item.value });
|
|
1369
|
-
return (o, n) => (l(), i(
|
|
1379
|
+
return (o, n) => (l(), i(w, null, [
|
|
1370
1380
|
a("span", {
|
|
1371
1381
|
class: "spg-color-editor__color-swatch",
|
|
1372
1382
|
style: K(e())
|
|
@@ -1377,7 +1387,7 @@ const at = /* @__PURE__ */ st(tt, [["render", lt]]), it = /* @__PURE__ */ g({
|
|
|
1377
1387
|
}, null, 8, ["locString"])
|
|
1378
1388
|
], 64));
|
|
1379
1389
|
}
|
|
1380
|
-
}),
|
|
1390
|
+
}), gt = ["disabled", "value", "placeholder"], bt = ["disabled", "id", "aria-required", "aria-label", "aria-invalid", "aria-describedby", "title", "accept"], yt = ["disabled"], ht = ["for", "aria-label"], Ct = /* @__PURE__ */ g({
|
|
1381
1391
|
__name: "File",
|
|
1382
1392
|
props: {
|
|
1383
1393
|
question: {}
|
|
@@ -1409,7 +1419,7 @@ const at = /* @__PURE__ */ st(tt, [["render", lt]]), it = /* @__PURE__ */ g({
|
|
|
1409
1419
|
onBlur: n[1] || (n[1] = //@ts-ignore
|
|
1410
1420
|
(...r) => o.question.onInputBlur && o.question.onInputBlur(...r)),
|
|
1411
1421
|
placeholder: o.question.renderedPlaceholder
|
|
1412
|
-
}, null, 42,
|
|
1422
|
+
}, null, 42, gt),
|
|
1413
1423
|
a("input", {
|
|
1414
1424
|
type: "file",
|
|
1415
1425
|
disabled: o.question.isInputReadOnly,
|
|
@@ -1425,11 +1435,11 @@ const at = /* @__PURE__ */ st(tt, [["render", lt]]), it = /* @__PURE__ */ g({
|
|
|
1425
1435
|
accept: o.question.acceptedTypes,
|
|
1426
1436
|
onChange: n[2] || (n[2] = //@ts-ignore
|
|
1427
1437
|
(...r) => o.question.onFileInputChange && o.question.onFileInputChange(...r))
|
|
1428
|
-
}, null, 42,
|
|
1438
|
+
}, null, 42, bt),
|
|
1429
1439
|
a("div", {
|
|
1430
1440
|
class: _(o.question.cssClasses.buttonsContainer)
|
|
1431
1441
|
}, [
|
|
1432
|
-
|
|
1442
|
+
h((l(), i("button", {
|
|
1433
1443
|
type: "button",
|
|
1434
1444
|
class: _(o.question.cssClasses.clearButton),
|
|
1435
1445
|
disabled: o.question.getIsClearButtonDisabled(),
|
|
@@ -1442,10 +1452,10 @@ const at = /* @__PURE__ */ st(tt, [["render", lt]]), it = /* @__PURE__ */ g({
|
|
|
1442
1452
|
size: "auto",
|
|
1443
1453
|
title: o.question.clearButtonCaption
|
|
1444
1454
|
}, null, 8, ["iconName", "title"])
|
|
1445
|
-
], 10,
|
|
1455
|
+
], 10, yt)), [
|
|
1446
1456
|
[s(D)]
|
|
1447
1457
|
]),
|
|
1448
|
-
|
|
1458
|
+
h((l(), i("label", {
|
|
1449
1459
|
role: "button",
|
|
1450
1460
|
class: _(o.question.getChooseButtonCss()),
|
|
1451
1461
|
for: o.question.inputId,
|
|
@@ -1459,13 +1469,13 @@ const at = /* @__PURE__ */ st(tt, [["render", lt]]), it = /* @__PURE__ */ g({
|
|
|
1459
1469
|
size: "auto",
|
|
1460
1470
|
title: o.question.chooseButtonCaption
|
|
1461
1471
|
}, null, 8, ["iconName", "title"])
|
|
1462
|
-
], 10,
|
|
1472
|
+
], 10, ht)), [
|
|
1463
1473
|
[s(D)]
|
|
1464
1474
|
])
|
|
1465
1475
|
], 2)
|
|
1466
1476
|
], 34));
|
|
1467
1477
|
}
|
|
1468
|
-
}),
|
|
1478
|
+
}), qt = ["disabled", "id", "placeholder", "aria-required", "aria-label", "aria-invalid", "aria-describedby", "value"], $t = ["disabled"], kt = ["disabled"], wt = /* @__PURE__ */ g({
|
|
1469
1479
|
__name: "SpinEditor",
|
|
1470
1480
|
props: {
|
|
1471
1481
|
question: {}
|
|
@@ -1499,7 +1509,7 @@ const at = /* @__PURE__ */ st(tt, [["render", lt]]), it = /* @__PURE__ */ g({
|
|
|
1499
1509
|
(...n) => e.question.onBeforeInput && e.question.onBeforeInput(...n)),
|
|
1500
1510
|
value: e.question.renderedValue,
|
|
1501
1511
|
class: _(e.question.cssClasses.control)
|
|
1502
|
-
}, null, 42,
|
|
1512
|
+
}, null, 42, qt),
|
|
1503
1513
|
a("span", {
|
|
1504
1514
|
class: _(e.question.cssClasses.buttonsContainer)
|
|
1505
1515
|
}, [
|
|
@@ -1525,7 +1535,7 @@ const at = /* @__PURE__ */ st(tt, [["render", lt]]), it = /* @__PURE__ */ g({
|
|
|
1525
1535
|
iconName: e.question.cssClasses.decreaseButtonIcon,
|
|
1526
1536
|
size: "auto"
|
|
1527
1537
|
}, null, 8, ["iconName"])
|
|
1528
|
-
], 42,
|
|
1538
|
+
], 42, $t),
|
|
1529
1539
|
a("button", {
|
|
1530
1540
|
disabled: e.question.isInputReadOnly,
|
|
1531
1541
|
class: _(e.question.cssClasses.arrowButton),
|
|
@@ -1548,11 +1558,11 @@ const at = /* @__PURE__ */ st(tt, [["render", lt]]), it = /* @__PURE__ */ g({
|
|
|
1548
1558
|
iconName: e.question.cssClasses.increaseButtonIcon,
|
|
1549
1559
|
size: "auto"
|
|
1550
1560
|
}, null, 8, ["iconName"])
|
|
1551
|
-
], 42,
|
|
1561
|
+
], 42, kt)
|
|
1552
1562
|
], 2)
|
|
1553
1563
|
], 34));
|
|
1554
1564
|
}
|
|
1555
|
-
}),
|
|
1565
|
+
}), ft = ["disabled", "title"], le = /* @__PURE__ */ g({
|
|
1556
1566
|
__name: "TextWithReset",
|
|
1557
1567
|
props: {
|
|
1558
1568
|
question: {}
|
|
@@ -1578,23 +1588,23 @@ const at = /* @__PURE__ */ st(tt, [["render", lt]]), it = /* @__PURE__ */ g({
|
|
|
1578
1588
|
iconName: o.question.cssClasses.resetButtonIcon,
|
|
1579
1589
|
size: "auto"
|
|
1580
1590
|
}, null, 8, ["iconName"])
|
|
1581
|
-
], 10,
|
|
1591
|
+
], 10, ft)
|
|
1582
1592
|
], 2));
|
|
1583
1593
|
}
|
|
1584
|
-
}),
|
|
1594
|
+
}), Tt = ["aria-required", "aria-label", "aria-invalid", "aria-errormessage"], Dt = /* @__PURE__ */ a("div", { class: "spg-boolean-switch__thumb" }, [
|
|
1585
1595
|
/* @__PURE__ */ a("div", { class: "spg-boolean-switch__thumb-circle spg-boolean-switch__thumb--left" })
|
|
1586
|
-
], -1),
|
|
1596
|
+
], -1), Nt = /* @__PURE__ */ a("div", { class: "spg-boolean-switch__thumb" }, [
|
|
1587
1597
|
/* @__PURE__ */ a("div", { class: "spg-boolean-switch__thumb-circle spg-boolean-switch__thumb--right" })
|
|
1588
|
-
], -1),
|
|
1589
|
-
|
|
1590
|
-
|
|
1591
|
-
],
|
|
1598
|
+
], -1), Mt = [
|
|
1599
|
+
Dt,
|
|
1600
|
+
Nt
|
|
1601
|
+
], St = { class: "spg-boolean-switch__caption" }, It = { class: "spg-boolean-switch__title" };
|
|
1592
1602
|
ue.Instance.registerRenderer(
|
|
1593
1603
|
"boolean",
|
|
1594
1604
|
"switch",
|
|
1595
1605
|
"sv-boolean-switch"
|
|
1596
1606
|
);
|
|
1597
|
-
const
|
|
1607
|
+
const Bt = /* @__PURE__ */ g({
|
|
1598
1608
|
inheritAttrs: !1,
|
|
1599
1609
|
__name: "BooleanSwitch",
|
|
1600
1610
|
props: {
|
|
@@ -1611,26 +1621,26 @@ const It = /* @__PURE__ */ g({
|
|
|
1611
1621
|
"aria-errormessage": o.question.ariaErrormessage,
|
|
1612
1622
|
onClick: n[0] || (n[0] = (r) => o.question.value = !o.question.value)
|
|
1613
1623
|
}, [
|
|
1614
|
-
|
|
1624
|
+
h((l(), i("div", {
|
|
1615
1625
|
class: _(["spg-boolean-switch__button", o.question.value ? "spg-boolean-switch__button--checked" : ""]),
|
|
1616
1626
|
tabindex: "0"
|
|
1617
|
-
},
|
|
1627
|
+
}, Mt, 2)), [
|
|
1618
1628
|
[s(D), { disableTabStop: !0 }]
|
|
1619
1629
|
]),
|
|
1620
|
-
a("div",
|
|
1621
|
-
a("div",
|
|
1630
|
+
a("div", St, [
|
|
1631
|
+
a("div", It, [
|
|
1622
1632
|
v(s(u), {
|
|
1623
1633
|
is: "survey-string",
|
|
1624
1634
|
locString: o.question.locTitle
|
|
1625
1635
|
}, null, 8, ["locString"])
|
|
1626
1636
|
])
|
|
1627
1637
|
])
|
|
1628
|
-
], 8,
|
|
1638
|
+
], 8, Tt));
|
|
1629
1639
|
}
|
|
1630
|
-
}),
|
|
1640
|
+
}), Et = { class: "svc-string-editor__content" }, Pt = /* @__PURE__ */ a("div", { class: "svc-string-editor__border svc-string-editor__border--hover" }, null, -1), Rt = /* @__PURE__ */ a("div", { class: "svc-string-editor__border svc-string-editor__border--focus" }, null, -1), Vt = { class: "svc-string-editor__input" }, At = ["textContent", "aria-placeholder", "contenteditable"], zt = ["aria-placeholder", "contenteditable", "innerHTML"], Lt = {
|
|
1631
1641
|
key: 0,
|
|
1632
1642
|
class: "svc-string-editor__error"
|
|
1633
|
-
},
|
|
1643
|
+
}, Ft = /* @__PURE__ */ g({
|
|
1634
1644
|
__name: "StringEditor",
|
|
1635
1645
|
props: {
|
|
1636
1646
|
locString: {}
|
|
@@ -1706,10 +1716,10 @@ const It = /* @__PURE__ */ g({
|
|
|
1706
1716
|
}), (q, T) => (l(), i("span", {
|
|
1707
1717
|
class: _(b.value)
|
|
1708
1718
|
}, [
|
|
1709
|
-
a("span",
|
|
1710
|
-
Et,
|
|
1719
|
+
a("span", Et, [
|
|
1711
1720
|
Pt,
|
|
1712
|
-
|
|
1721
|
+
Rt,
|
|
1722
|
+
a("span", Vt, [
|
|
1713
1723
|
e.value.hasHtml ? p("", !0) : (l(), i("span", {
|
|
1714
1724
|
key: 0,
|
|
1715
1725
|
role: "textbox",
|
|
@@ -1754,7 +1764,7 @@ const It = /* @__PURE__ */ g({
|
|
|
1754
1764
|
contenteditable: N.value,
|
|
1755
1765
|
ref_key: "root",
|
|
1756
1766
|
ref: n
|
|
1757
|
-
}, null, 40,
|
|
1767
|
+
}, null, 40, At)),
|
|
1758
1768
|
e.value.hasHtml ? (l(), i("span", {
|
|
1759
1769
|
key: 1,
|
|
1760
1770
|
role: "textbox",
|
|
@@ -1793,8 +1803,8 @@ const It = /* @__PURE__ */ g({
|
|
|
1793
1803
|
innerHTML: r.value,
|
|
1794
1804
|
ref_key: "root",
|
|
1795
1805
|
ref: n
|
|
1796
|
-
}, null, 40,
|
|
1797
|
-
P.value ? (l(),
|
|
1806
|
+
}, null, 40, zt)) : p("", !0),
|
|
1807
|
+
P.value ? (l(), C(s(u), {
|
|
1798
1808
|
key: 2,
|
|
1799
1809
|
is: "sv-character-counter",
|
|
1800
1810
|
counter: O.value,
|
|
@@ -1802,19 +1812,19 @@ const It = /* @__PURE__ */ g({
|
|
|
1802
1812
|
}, null, 8, ["counter", "remainingCharacterCounter"])) : p("", !0)
|
|
1803
1813
|
])
|
|
1804
1814
|
]),
|
|
1805
|
-
m.value ? (l(), i("span",
|
|
1815
|
+
m.value ? (l(), i("span", Lt, k(m.value), 1)) : p("", !0)
|
|
1806
1816
|
], 2));
|
|
1807
1817
|
}
|
|
1808
|
-
}),
|
|
1818
|
+
}), Kt = {
|
|
1809
1819
|
key: 0,
|
|
1810
1820
|
class: "svc-toolbox__search-container"
|
|
1811
|
-
},
|
|
1821
|
+
}, Ut = /* @__PURE__ */ a("div", { class: "svc-toolbox__category-separator svc-toolbox__category-separator--search" }, null, -1), Ht = {
|
|
1812
1822
|
key: 1,
|
|
1813
1823
|
class: "svc-toolbox__placeholder"
|
|
1814
|
-
},
|
|
1824
|
+
}, Ot = {
|
|
1815
1825
|
key: 1,
|
|
1816
1826
|
class: "svc-toolbox__category"
|
|
1817
|
-
},
|
|
1827
|
+
}, Qt = /* @__PURE__ */ g({
|
|
1818
1828
|
__name: "AdaptiveToolbox",
|
|
1819
1829
|
props: {
|
|
1820
1830
|
model: {}
|
|
@@ -1841,8 +1851,8 @@ const It = /* @__PURE__ */ g({
|
|
|
1841
1851
|
onFocusout: m[0] || (m[0] = (b) => e.value.focusOut(b)),
|
|
1842
1852
|
class: "svc-toolbox__panel"
|
|
1843
1853
|
}, [
|
|
1844
|
-
e.value.showSearch ? (l(), i("div",
|
|
1845
|
-
e.value.isCompactRendered ? (l(),
|
|
1854
|
+
e.value.showSearch ? (l(), i("div", Kt, [
|
|
1855
|
+
e.value.isCompactRendered ? (l(), C(s(u), {
|
|
1846
1856
|
is: "svc-toolbox-tool",
|
|
1847
1857
|
creator: d.model,
|
|
1848
1858
|
key: "searchitem",
|
|
@@ -1854,19 +1864,19 @@ const It = /* @__PURE__ */ g({
|
|
|
1854
1864
|
is: "svc-search",
|
|
1855
1865
|
model: e.value.searchManager
|
|
1856
1866
|
}, null, 8, ["model"]),
|
|
1857
|
-
|
|
1867
|
+
Ut
|
|
1858
1868
|
])) : p("", !0),
|
|
1859
|
-
e.value.showPlaceholder ? (l(), i("div",
|
|
1869
|
+
e.value.showPlaceholder ? (l(), i("div", Ht, k(e.value.toolboxNoResultsFound), 1)) : p("", !0),
|
|
1860
1870
|
v(W, null, {
|
|
1861
1871
|
default: Y(() => [
|
|
1862
|
-
e.value.showInSingleCategory ? p("", !0) : (l(!0), i(
|
|
1872
|
+
e.value.showInSingleCategory ? p("", !0) : (l(!0), i(w, { key: 0 }, R(e.value.categories, (b, y) => (l(), C(s(u), {
|
|
1863
1873
|
is: "svc-toolbox-category",
|
|
1864
1874
|
key: y,
|
|
1865
1875
|
category: b,
|
|
1866
1876
|
toolbox: e.value
|
|
1867
1877
|
}, null, 8, ["category", "toolbox"]))), 128)),
|
|
1868
|
-
e.value.showInSingleCategory ? (l(), i("div",
|
|
1869
|
-
(l(!0), i(
|
|
1878
|
+
e.value.showInSingleCategory ? (l(), i("div", Ot, [
|
|
1879
|
+
(l(!0), i(w, null, R(r.value, (b) => (l(), C(s(u), {
|
|
1870
1880
|
key: b.renderedId,
|
|
1871
1881
|
is: "svc-toolbox-tool",
|
|
1872
1882
|
creator: d.model,
|
|
@@ -1881,10 +1891,10 @@ const It = /* @__PURE__ */ g({
|
|
|
1881
1891
|
], 32)
|
|
1882
1892
|
], 2));
|
|
1883
1893
|
}
|
|
1884
|
-
}),
|
|
1894
|
+
}), Gt = {
|
|
1885
1895
|
key: 0,
|
|
1886
1896
|
class: "svc-toolbox__category-separator"
|
|
1887
|
-
},
|
|
1897
|
+
}, Wt = /* @__PURE__ */ g({
|
|
1888
1898
|
__name: "ToolboxTool",
|
|
1889
1899
|
props: {
|
|
1890
1900
|
creator: {},
|
|
@@ -1919,7 +1929,7 @@ const It = /* @__PURE__ */ g({
|
|
|
1919
1929
|
ref_key: "root",
|
|
1920
1930
|
ref: o
|
|
1921
1931
|
}, [
|
|
1922
|
-
n.item.needSeparator && !n.creator.toolbox.showCategoryTitles ? (l(), i("div",
|
|
1932
|
+
n.item.needSeparator && !n.creator.toolbox.showCategoryTitles ? (l(), i("div", Gt)) : p("", !0),
|
|
1923
1933
|
a("div", {
|
|
1924
1934
|
class: "svc-toolbox__tool-content sv-action__content",
|
|
1925
1935
|
onPointerdown: r[0] || (r[0] = //@ts-ignore
|
|
@@ -1939,10 +1949,10 @@ const It = /* @__PURE__ */ g({
|
|
|
1939
1949
|
], 2);
|
|
1940
1950
|
};
|
|
1941
1951
|
}
|
|
1942
|
-
}),
|
|
1952
|
+
}), jt = ["aria-label", "title"], Jt = { class: "svc-toolbox__item-container" }, Zt = {
|
|
1943
1953
|
key: 0,
|
|
1944
1954
|
class: "svc-toolbox__item-title"
|
|
1945
|
-
},
|
|
1955
|
+
}, Xt = /* @__PURE__ */ g({
|
|
1946
1956
|
__name: "ToolboxItem",
|
|
1947
1957
|
props: {
|
|
1948
1958
|
creator: {},
|
|
@@ -1951,16 +1961,16 @@ const It = /* @__PURE__ */ g({
|
|
|
1951
1961
|
viewModel: {}
|
|
1952
1962
|
},
|
|
1953
1963
|
setup(c) {
|
|
1954
|
-
return (t, e) => (l(), i(
|
|
1955
|
-
|
|
1964
|
+
return (t, e) => (l(), i(w, null, [
|
|
1965
|
+
h((l(), i("div", {
|
|
1956
1966
|
class: _(["svc-toolbox__item", t.item.renderedCss]),
|
|
1957
1967
|
role: "button",
|
|
1958
1968
|
"aria-label": t.item.tooltip,
|
|
1959
1969
|
title: t.item.tooltip,
|
|
1960
1970
|
onClick: e[0] || (e[0] = (o) => t.viewModel.click(o))
|
|
1961
1971
|
}, [
|
|
1962
|
-
a("span",
|
|
1963
|
-
t.item.iconName ? (l(),
|
|
1972
|
+
a("span", Jt, [
|
|
1973
|
+
t.item.iconName ? (l(), C(s(u), {
|
|
1964
1974
|
key: 0,
|
|
1965
1975
|
is: "sv-svg-icon",
|
|
1966
1976
|
iconName: t.item.iconName,
|
|
@@ -1968,8 +1978,8 @@ const It = /* @__PURE__ */ g({
|
|
|
1968
1978
|
class: "svc-toolbox__item-icon"
|
|
1969
1979
|
}, null, 8, ["iconName"])) : p("", !0)
|
|
1970
1980
|
]),
|
|
1971
|
-
t.isCompact ? p("", !0) : (l(), i("span",
|
|
1972
|
-
], 10,
|
|
1981
|
+
t.isCompact ? p("", !0) : (l(), i("span", Zt, k(t.item.title), 1))
|
|
1982
|
+
], 10, jt)), [
|
|
1973
1983
|
[s(D)]
|
|
1974
1984
|
]),
|
|
1975
1985
|
t.isCompact ? (l(), i("span", {
|
|
@@ -1983,11 +1993,11 @@ const It = /* @__PURE__ */ g({
|
|
|
1983
1993
|
size: 24,
|
|
1984
1994
|
class: "svc-toolbox__item-icon"
|
|
1985
1995
|
}, null, 8, ["iconName"]),
|
|
1986
|
-
a("span", null,
|
|
1996
|
+
a("span", null, k(t.item.title), 1)
|
|
1987
1997
|
])) : p("", !0)
|
|
1988
1998
|
], 64));
|
|
1989
1999
|
}
|
|
1990
|
-
}),
|
|
2000
|
+
}), Yt = /* @__PURE__ */ g({
|
|
1991
2001
|
__name: "ToolboxItemGroup",
|
|
1992
2002
|
props: {
|
|
1993
2003
|
creator: {},
|
|
@@ -2001,7 +2011,7 @@ const It = /* @__PURE__ */ g({
|
|
|
2001
2011
|
}, o = (n) => {
|
|
2002
2012
|
t.viewModel.onMouseLeave(t.item, n);
|
|
2003
2013
|
};
|
|
2004
|
-
return (n, r) => (l(), i(
|
|
2014
|
+
return (n, r) => (l(), i(w, null, [
|
|
2005
2015
|
v(s(u), {
|
|
2006
2016
|
is: "svc-toolbox-item",
|
|
2007
2017
|
viewModel: n.viewModel,
|
|
@@ -2026,10 +2036,10 @@ const It = /* @__PURE__ */ g({
|
|
|
2026
2036
|
], 32)
|
|
2027
2037
|
], 64));
|
|
2028
2038
|
}
|
|
2029
|
-
}),
|
|
2039
|
+
}), xt = { className: "svc-toolbox__category-header-wrapper" }, en = { class: "svc-toolbox__category-title" }, on = {
|
|
2030
2040
|
key: 0,
|
|
2031
2041
|
class: "svc-toolbox__category-header__controls"
|
|
2032
|
-
},
|
|
2042
|
+
}, sn = { className: "svc-toolbox__category-header-wrapper" }, tn = /* @__PURE__ */ g({
|
|
2033
2043
|
__name: "ToolboxCategory",
|
|
2034
2044
|
props: {
|
|
2035
2045
|
category: {},
|
|
@@ -2043,17 +2053,17 @@ const It = /* @__PURE__ */ g({
|
|
|
2043
2053
|
"svc-toolbox__category--empty": e.category.empty
|
|
2044
2054
|
}])
|
|
2045
2055
|
}, [
|
|
2046
|
-
a("div",
|
|
2047
|
-
|
|
2056
|
+
a("div", xt, [
|
|
2057
|
+
h((l(), i("div", {
|
|
2048
2058
|
class: _(["svc-toolbox__category-header", {
|
|
2049
2059
|
"svc-toolbox__category-header--collapsed": e.toolbox.canCollapseCategories
|
|
2050
2060
|
}]),
|
|
2051
2061
|
onClick: o[0] || (o[0] = (n) => e.category.toggleState())
|
|
2052
2062
|
}, [
|
|
2053
|
-
a("span",
|
|
2054
|
-
e.toolbox.canCollapseCategories ? (l(), i("div",
|
|
2055
|
-
a("div",
|
|
2056
|
-
|
|
2063
|
+
a("span", en, k(e.category.title), 1),
|
|
2064
|
+
e.toolbox.canCollapseCategories ? (l(), i("div", on, [
|
|
2065
|
+
a("div", sn, [
|
|
2066
|
+
h(v(s(u), {
|
|
2057
2067
|
is: "sv-svg-icon",
|
|
2058
2068
|
iconName: "icon-arrow-down",
|
|
2059
2069
|
class: "svc-toolbox__category-header__button svc-string-editor__button--expand",
|
|
@@ -2062,7 +2072,7 @@ const It = /* @__PURE__ */ g({
|
|
|
2062
2072
|
[F, e.category.collapsed]
|
|
2063
2073
|
])
|
|
2064
2074
|
]),
|
|
2065
|
-
|
|
2075
|
+
h(v(s(u), {
|
|
2066
2076
|
is: "sv-svg-icon",
|
|
2067
2077
|
iconName: "icon-arrow-up",
|
|
2068
2078
|
class: "svc-toolbox__category-header__button svc-string-editor__button--collapse",
|
|
@@ -2075,7 +2085,7 @@ const It = /* @__PURE__ */ g({
|
|
|
2075
2085
|
[s(D)]
|
|
2076
2086
|
])
|
|
2077
2087
|
]),
|
|
2078
|
-
(l(!0), i(
|
|
2088
|
+
(l(!0), i(w, null, R(e.category.items, (n) => (l(), C(s(u), {
|
|
2079
2089
|
is: "svc-toolbox-tool",
|
|
2080
2090
|
item: n,
|
|
2081
2091
|
key: n.renderedId,
|
|
@@ -2085,7 +2095,7 @@ const It = /* @__PURE__ */ g({
|
|
|
2085
2095
|
}, null, 8, ["item", "creator", "parentModel"]))), 128))
|
|
2086
2096
|
], 2));
|
|
2087
2097
|
}
|
|
2088
|
-
}),
|
|
2098
|
+
}), nn = /* @__PURE__ */ g({
|
|
2089
2099
|
__name: "ToolboxList",
|
|
2090
2100
|
props: {
|
|
2091
2101
|
model: {},
|
|
@@ -2095,7 +2105,7 @@ const It = /* @__PURE__ */ g({
|
|
|
2095
2105
|
return (t, e) => (l(), i("div", {
|
|
2096
2106
|
class: _(t.model.cssClasses.root)
|
|
2097
2107
|
}, [
|
|
2098
|
-
(l(!0), i(
|
|
2108
|
+
(l(!0), i(w, null, R(t.model.renderedActions, (o, n) => (l(), C(s(u), {
|
|
2099
2109
|
key: n,
|
|
2100
2110
|
is: "svc-toolbox-tool",
|
|
2101
2111
|
creator: t.creator,
|
|
@@ -2105,37 +2115,37 @@ const It = /* @__PURE__ */ g({
|
|
|
2105
2115
|
}, null, 8, ["creator", "item", "parentModel"]))), 128))
|
|
2106
2116
|
], 2));
|
|
2107
2117
|
}
|
|
2108
|
-
}),
|
|
2118
|
+
}), ln = { class: "svc-flex-column" }, an = { class: "svc-tab-designer_content" }, rn = {
|
|
2109
2119
|
key: 0,
|
|
2110
2120
|
class: "svc-designer-header"
|
|
2111
|
-
},
|
|
2121
|
+
}, dn = {
|
|
2112
2122
|
class: "svc-designer__placeholder-container",
|
|
2113
2123
|
"data-sv-drop-target-survey-element": "newGhostPage"
|
|
2114
|
-
},
|
|
2124
|
+
}, cn = {
|
|
2115
2125
|
className: "svc-designer-placeholder-page",
|
|
2116
2126
|
"data-sv-drop-target-survey-element": "newGhostPage"
|
|
2117
|
-
},
|
|
2127
|
+
}, un = {
|
|
2118
2128
|
key: 0,
|
|
2119
2129
|
class: "svc-designer-header"
|
|
2120
|
-
},
|
|
2130
|
+
}, pn = ["data-sv-drop-target-survey-element", "data-sv-drop-target-page"], vn = ["data-sv-drop-target-survey-element", "data-sv-drop-target-page"], mn = {
|
|
2121
2131
|
key: 0,
|
|
2122
2132
|
class: "svc-tab-designer__tools"
|
|
2123
|
-
},
|
|
2133
|
+
}, _n = {
|
|
2124
2134
|
key: 0,
|
|
2125
2135
|
class: "svc-tab-designer__page-navigator"
|
|
2126
|
-
},
|
|
2136
|
+
}, gn = {
|
|
2127
2137
|
key: 1,
|
|
2128
2138
|
class: "svc-tab-designer__toolbar"
|
|
2129
|
-
},
|
|
2139
|
+
}, bn = /* @__PURE__ */ g({
|
|
2130
2140
|
__name: "Designer",
|
|
2131
2141
|
props: {
|
|
2132
2142
|
model: {}
|
|
2133
2143
|
},
|
|
2134
2144
|
setup(c) {
|
|
2135
2145
|
const t = c, e = $(() => t.model.survey);
|
|
2136
|
-
return f(() => t.model), f(() => e.value), (o, n) => (l(), i(
|
|
2137
|
-
a("div",
|
|
2138
|
-
o.model.isToolboxVisible ? (l(),
|
|
2146
|
+
return f(() => t.model), f(() => e.value), (o, n) => (l(), i(w, null, [
|
|
2147
|
+
a("div", ln, [
|
|
2148
|
+
o.model.isToolboxVisible ? (l(), C(s(u), {
|
|
2139
2149
|
key: 0,
|
|
2140
2150
|
is: "svc-toolbox",
|
|
2141
2151
|
model: o.model.creator
|
|
@@ -2148,21 +2158,21 @@ const It = /* @__PURE__ */ g({
|
|
|
2148
2158
|
}, [
|
|
2149
2159
|
v(W, null, {
|
|
2150
2160
|
default: Y(() => [
|
|
2151
|
-
a("div",
|
|
2152
|
-
o.model.showPlaceholder ? (l(), i(
|
|
2153
|
-
o.model.creator.showHeaderInEmptySurvey && o.model.creator.allowEditSurveyTitle ? (l(), i("div",
|
|
2161
|
+
a("div", an, [
|
|
2162
|
+
o.model.showPlaceholder ? (l(), i(w, { key: 0 }, [
|
|
2163
|
+
o.model.creator.showHeaderInEmptySurvey && o.model.creator.allowEditSurveyTitle ? (l(), i("div", rn, [
|
|
2154
2164
|
v(s(u), {
|
|
2155
2165
|
is: "survey-header",
|
|
2156
2166
|
survey: o.model.creator.survey
|
|
2157
2167
|
}, null, 8, ["survey"])
|
|
2158
2168
|
])) : p("", !0),
|
|
2159
|
-
a("div",
|
|
2169
|
+
a("div", dn, [
|
|
2160
2170
|
v(j, {
|
|
2161
2171
|
name: "designer",
|
|
2162
2172
|
placeholderTitleText: o.model.placeholderTitleText,
|
|
2163
2173
|
placeholderDescriptionText: o.model.placeholderDescriptionText
|
|
2164
2174
|
}, null, 8, ["placeholderTitleText", "placeholderDescriptionText"]),
|
|
2165
|
-
a("div",
|
|
2175
|
+
a("div", cn, [
|
|
2166
2176
|
v(s(u), {
|
|
2167
2177
|
is: "svc-page",
|
|
2168
2178
|
survey: o.model.creator.survey,
|
|
@@ -2173,7 +2183,7 @@ const It = /* @__PURE__ */ g({
|
|
|
2173
2183
|
])
|
|
2174
2184
|
])
|
|
2175
2185
|
], 64)) : p("", !0),
|
|
2176
|
-
o.model.showPlaceholder ? p("", !0) : (l(), i(
|
|
2186
|
+
o.model.showPlaceholder ? p("", !0) : (l(), i(w, { key: 1 }, [
|
|
2177
2187
|
a("div", {
|
|
2178
2188
|
class: _(o.model.designerCss),
|
|
2179
2189
|
style: K([
|
|
@@ -2181,13 +2191,13 @@ const It = /* @__PURE__ */ g({
|
|
|
2181
2191
|
o.model.surfaceCssVariables
|
|
2182
2192
|
])
|
|
2183
2193
|
}, [
|
|
2184
|
-
o.model.creator.allowEditSurveyTitle ? (l(), i("div",
|
|
2194
|
+
o.model.creator.allowEditSurveyTitle ? (l(), i("div", un, [
|
|
2185
2195
|
v(s(u), {
|
|
2186
2196
|
is: "survey-header",
|
|
2187
2197
|
survey: o.model.creator.survey
|
|
2188
2198
|
}, null, 8, ["survey"])
|
|
2189
2199
|
])) : p("", !0),
|
|
2190
|
-
o.model.creator.pageEditMode !== "bypage" ? (l(!0), i(
|
|
2200
|
+
o.model.creator.pageEditMode !== "bypage" ? (l(!0), i(w, { key: 1 }, R(o.model.pages, (r) => (l(), i("div", {
|
|
2191
2201
|
key: r.id,
|
|
2192
2202
|
class: "svc-page",
|
|
2193
2203
|
"data-sv-drop-target-survey-element": r != o.model.newPage ? r.name : "newGhostPage",
|
|
@@ -2200,7 +2210,7 @@ const It = /* @__PURE__ */ g({
|
|
|
2200
2210
|
page: r,
|
|
2201
2211
|
isGhost: r == o.model.newPage
|
|
2202
2212
|
}, null, 8, ["survey", "creator", "page", "isGhost"])
|
|
2203
|
-
], 8,
|
|
2213
|
+
], 8, pn))), 128)) : p("", !0),
|
|
2204
2214
|
o.model.pagesController.page2Display && o.model.creator.pageEditMode === "bypage" ? (l(), i("div", {
|
|
2205
2215
|
key: 2,
|
|
2206
2216
|
class: "svc-page",
|
|
@@ -2213,17 +2223,17 @@ const It = /* @__PURE__ */ g({
|
|
|
2213
2223
|
creator: o.model.creator,
|
|
2214
2224
|
isGhost: o.model.pagesController.page2Display == o.model.newPage
|
|
2215
2225
|
}, null, 8, ["page", "creator", "isGhost"])
|
|
2216
|
-
], 8,
|
|
2226
|
+
], 8, vn)) : p("", !0)
|
|
2217
2227
|
], 6),
|
|
2218
|
-
o.model.showSurfaceTools ? (l(), i("div",
|
|
2219
|
-
o.model.creator.showPageNavigator ? (l(), i("div",
|
|
2228
|
+
o.model.showSurfaceTools ? (l(), i("div", mn, [
|
|
2229
|
+
o.model.creator.showPageNavigator ? (l(), i("div", _n, [
|
|
2220
2230
|
v(s(u), {
|
|
2221
2231
|
is: "svc-page-navigator",
|
|
2222
2232
|
pagesController: o.model.pagesController,
|
|
2223
2233
|
pageEditMode: o.model.creator.pageEditMode
|
|
2224
2234
|
}, null, 8, ["pagesController", "pageEditMode"])
|
|
2225
2235
|
])) : p("", !0),
|
|
2226
|
-
o.model.showSurfaceToolbar ? (l(), i("div",
|
|
2236
|
+
o.model.showSurfaceToolbar ? (l(), i("div", gn, [
|
|
2227
2237
|
v(s(u), {
|
|
2228
2238
|
is: "sv-action-bar",
|
|
2229
2239
|
model: o.model.surfaceToolbar
|
|
@@ -2238,13 +2248,13 @@ const It = /* @__PURE__ */ g({
|
|
|
2238
2248
|
], 2)
|
|
2239
2249
|
], 64));
|
|
2240
2250
|
}
|
|
2241
|
-
}),
|
|
2242
|
-
key:
|
|
2243
|
-
class: "svc-page__content-actions"
|
|
2244
|
-
}, $n = {
|
|
2245
|
-
key: 2,
|
|
2251
|
+
}), yn = ["id", "data-sv-drop-target-survey-page"], hn = /* @__PURE__ */ a("div", { class: "svc-question__drop-indicator svc-question__drop-indicator--top" }, null, -1), Cn = /* @__PURE__ */ a("div", { class: "svc-question__drop-indicator svc-question__drop-indicator--bottom" }, null, -1), qn = {
|
|
2252
|
+
key: 0,
|
|
2246
2253
|
class: "svc-page__placeholder_frame"
|
|
2247
|
-
},
|
|
2254
|
+
}, $n = { class: "svc-panel__placeholder_frame" }, kn = { class: "svc-panel__placeholder" }, wn = { class: "svc-page__content-actions" }, fn = {
|
|
2255
|
+
key: 2,
|
|
2256
|
+
class: "svc-page__content-actions"
|
|
2257
|
+
}, Tn = /* @__PURE__ */ g({
|
|
2248
2258
|
__name: "Page",
|
|
2249
2259
|
props: {
|
|
2250
2260
|
creator: {},
|
|
@@ -2276,7 +2286,7 @@ const It = /* @__PURE__ */ g({
|
|
|
2276
2286
|
const n = (r) => {
|
|
2277
2287
|
o.value.hover(r, r.currentTarget);
|
|
2278
2288
|
};
|
|
2279
|
-
return (r, d) => s(o).page ?
|
|
2289
|
+
return (r, d) => s(o).page ? h((l(), i("div", {
|
|
2280
2290
|
key: s(o).page.id,
|
|
2281
2291
|
id: s(o).page.id,
|
|
2282
2292
|
class: _(["svc-page__content", s(o).css]),
|
|
@@ -2290,10 +2300,20 @@ const It = /* @__PURE__ */ g({
|
|
|
2290
2300
|
onMouseover: n,
|
|
2291
2301
|
onMouseleave: n
|
|
2292
2302
|
}, [
|
|
2293
|
-
yn,
|
|
2294
2303
|
hn,
|
|
2304
|
+
Cn,
|
|
2305
|
+
v(s(u), {
|
|
2306
|
+
is: "survey-page",
|
|
2307
|
+
survey: s(o).creator.survey,
|
|
2308
|
+
page: s(o).page
|
|
2309
|
+
}, null, 8, ["survey", "page"]),
|
|
2310
|
+
s(o).showPlaceholder ? (l(), i("div", qn, [
|
|
2311
|
+
a("div", $n, [
|
|
2312
|
+
a("div", kn, k(s(o).placeholderText), 1)
|
|
2313
|
+
])
|
|
2314
|
+
])) : p("", !0),
|
|
2295
2315
|
s(o).allowDragging && !s(o).isGhost ? (l(), i("div", {
|
|
2296
|
-
key:
|
|
2316
|
+
key: 1,
|
|
2297
2317
|
class: "svc-question__drag-area",
|
|
2298
2318
|
onPointerdown: d[0] || (d[0] = (m) => s(o).onPointerDown(m))
|
|
2299
2319
|
}, [
|
|
@@ -2305,48 +2325,38 @@ const It = /* @__PURE__ */ g({
|
|
|
2305
2325
|
iconName: "icon-drag-area-indicator_24x16",
|
|
2306
2326
|
size: "auto"
|
|
2307
2327
|
}), null, 16),
|
|
2308
|
-
a("div",
|
|
2328
|
+
a("div", wn, [
|
|
2309
2329
|
v(s(u), {
|
|
2310
2330
|
is: "sv-action-bar",
|
|
2311
2331
|
model: s(o).actionContainer
|
|
2312
2332
|
}, null, 8, ["model"]),
|
|
2313
|
-
s(o).topActionContainer.hasActions ? (l(),
|
|
2333
|
+
s(o).topActionContainer.hasActions ? (l(), C(s(u), {
|
|
2314
2334
|
key: 0,
|
|
2315
2335
|
is: "sv-action-bar",
|
|
2316
2336
|
model: s(o).topActionContainer
|
|
2317
2337
|
}, null, 8, ["model"])) : p("", !0)
|
|
2318
2338
|
])
|
|
2319
2339
|
], 32)) : p("", !0),
|
|
2320
|
-
!s(o).allowDragging || s(o).isGhost ? (l(), i("div",
|
|
2340
|
+
!s(o).allowDragging || s(o).isGhost ? (l(), i("div", fn, [
|
|
2321
2341
|
v(s(u), {
|
|
2322
2342
|
is: "sv-action-bar",
|
|
2323
2343
|
model: s(o).actionContainer
|
|
2324
2344
|
}, null, 8, ["model"]),
|
|
2325
|
-
s(o).topActionContainer.hasActions ? (l(),
|
|
2345
|
+
s(o).topActionContainer.hasActions ? (l(), C(s(u), {
|
|
2326
2346
|
key: 0,
|
|
2327
2347
|
is: "sv-action-bar",
|
|
2328
2348
|
model: s(o).topActionContainer
|
|
2329
2349
|
}, null, 8, ["model"])) : p("", !0)
|
|
2330
2350
|
])) : p("", !0),
|
|
2331
|
-
v(s(u), {
|
|
2332
|
-
is: "survey-page",
|
|
2333
|
-
survey: s(o).creator.survey,
|
|
2334
|
-
page: s(o).page
|
|
2335
|
-
}, null, 8, ["survey", "page"]),
|
|
2336
|
-
s(o).showPlaceholder ? (l(), i("div", $n, [
|
|
2337
|
-
a("div", wn, [
|
|
2338
|
-
a("div", kn, w(s(o).placeholderText), 1)
|
|
2339
|
-
])
|
|
2340
|
-
])) : p("", !0),
|
|
2341
2351
|
v(s(u), {
|
|
2342
2352
|
is: "sv-action-bar",
|
|
2343
2353
|
model: s(o).footerActionsBar
|
|
2344
2354
|
}, null, 8, ["model"])
|
|
2345
|
-
], 42,
|
|
2355
|
+
], 42, yn)), [
|
|
2346
2356
|
[s(D)]
|
|
2347
2357
|
]) : p("", !0);
|
|
2348
2358
|
}
|
|
2349
|
-
}),
|
|
2359
|
+
}), Dn = { class: "svc-add-new-item-button__text" }, Nn = /* @__PURE__ */ g({
|
|
2350
2360
|
__name: "AddQuestion",
|
|
2351
2361
|
props: {
|
|
2352
2362
|
item: {},
|
|
@@ -2357,13 +2367,14 @@ const It = /* @__PURE__ */ g({
|
|
|
2357
2367
|
const t = c;
|
|
2358
2368
|
f(() => t.item.data);
|
|
2359
2369
|
const e = $(() => "svc-element__add-new-question " + (t.buttonClass || "svc-btn")), o = $(() => t.renderPopup === void 0 || t.renderPopup !== !1);
|
|
2360
|
-
return (n, r) => (l(), i(
|
|
2361
|
-
|
|
2370
|
+
return (n, r) => (l(), i(w, null, [
|
|
2371
|
+
h((l(), i("div", {
|
|
2362
2372
|
class: _(e.value),
|
|
2363
2373
|
onClick: r[0] || (r[0] = (d) => {
|
|
2364
2374
|
n.item.data.addNewQuestion(n.item, d), d.stopPropagation();
|
|
2365
2375
|
}),
|
|
2366
|
-
onMouseover: r[1] || (r[1] = (d) => n.item.data.hoverStopper && n.item.data.hoverStopper(d, d.currentTarget))
|
|
2376
|
+
onMouseover: r[1] || (r[1] = (d) => n.item.data.hoverStopper && n.item.data.hoverStopper(d, d.currentTarget)),
|
|
2377
|
+
role: "button"
|
|
2367
2378
|
}, [
|
|
2368
2379
|
v(s(u), {
|
|
2369
2380
|
is: "sv-svg-icon",
|
|
@@ -2371,8 +2382,8 @@ const It = /* @__PURE__ */ g({
|
|
|
2371
2382
|
iconName: "icon-add_24x24",
|
|
2372
2383
|
size: "auto"
|
|
2373
2384
|
}),
|
|
2374
|
-
a("span",
|
|
2375
|
-
o.value ? (l(),
|
|
2385
|
+
a("span", Dn, k(n.item.data.addNewQuestionText), 1),
|
|
2386
|
+
o.value ? (l(), C(s(u), {
|
|
2376
2387
|
key: 0,
|
|
2377
2388
|
is: "svc-add-question-type-selector",
|
|
2378
2389
|
questionTypeSelectorModel: n.item.data.questionTypeSelectorModel,
|
|
@@ -2381,7 +2392,7 @@ const It = /* @__PURE__ */ g({
|
|
|
2381
2392
|
], 34)), [
|
|
2382
2393
|
[s(D)]
|
|
2383
2394
|
]),
|
|
2384
|
-
o.value ? p("", !0) : (l(),
|
|
2395
|
+
o.value ? p("", !0) : (l(), C(s(u), {
|
|
2385
2396
|
key: 0,
|
|
2386
2397
|
is: "svc-add-question-type-selector",
|
|
2387
2398
|
questionTypeSelectorModel: n.item.data.questionTypeSelectorModel,
|
|
@@ -2389,7 +2400,7 @@ const It = /* @__PURE__ */ g({
|
|
|
2389
2400
|
}, null, 8, ["questionTypeSelectorModel", "renderPopup"]))
|
|
2390
2401
|
], 64));
|
|
2391
2402
|
}
|
|
2392
|
-
}),
|
|
2403
|
+
}), Mn = ["title", "aria-label"], Sn = /* @__PURE__ */ g({
|
|
2393
2404
|
__name: "AddQuestionTypeSelector",
|
|
2394
2405
|
props: {
|
|
2395
2406
|
questionTypeSelectorModel: {},
|
|
@@ -2397,7 +2408,7 @@ const It = /* @__PURE__ */ g({
|
|
|
2397
2408
|
},
|
|
2398
2409
|
setup(c) {
|
|
2399
2410
|
const t = c;
|
|
2400
|
-
return f(() => t.questionTypeSelectorModel), (e, o) =>
|
|
2411
|
+
return f(() => t.questionTypeSelectorModel), (e, o) => h((l(), i("button", {
|
|
2401
2412
|
type: "button",
|
|
2402
2413
|
onClick: o[0] || (o[0] = (n) => {
|
|
2403
2414
|
e.questionTypeSelectorModel.action(), n.stopPropagation();
|
|
@@ -2414,16 +2425,16 @@ const It = /* @__PURE__ */ g({
|
|
|
2414
2425
|
size: "auto",
|
|
2415
2426
|
title: e.questionTypeSelectorModel.title
|
|
2416
2427
|
}), null, 16),
|
|
2417
|
-
e.renderPopup ? (l(),
|
|
2428
|
+
e.renderPopup ? (l(), C(s(u), {
|
|
2418
2429
|
key: 0,
|
|
2419
2430
|
is: "sv-popup",
|
|
2420
2431
|
model: e.questionTypeSelectorModel.popupModel
|
|
2421
2432
|
}, null, 8, ["model"])) : p("", !0)
|
|
2422
|
-
], 8,
|
|
2433
|
+
], 8, Mn)), [
|
|
2423
2434
|
[s(D)]
|
|
2424
2435
|
]);
|
|
2425
2436
|
}
|
|
2426
|
-
}),
|
|
2437
|
+
}), In = /* @__PURE__ */ a("div", { class: "svc-row__drop-indicator svc-row__drop-indicator--top" }, null, -1), Bn = /* @__PURE__ */ a("div", { class: "svc-row__drop-indicator svc-row__drop-indicator--bottom" }, null, -1), En = /* @__PURE__ */ g({
|
|
2427
2438
|
__name: "Row",
|
|
2428
2439
|
props: {
|
|
2429
2440
|
componentData: {}
|
|
@@ -2443,15 +2454,15 @@ const It = /* @__PURE__ */ g({
|
|
|
2443
2454
|
}), (r, d) => (l(), i("div", {
|
|
2444
2455
|
class: _(s(n).cssClasses)
|
|
2445
2456
|
}, [
|
|
2446
|
-
Sn,
|
|
2447
2457
|
In,
|
|
2458
|
+
Bn,
|
|
2448
2459
|
X(r.$slots, "default")
|
|
2449
2460
|
], 2));
|
|
2450
2461
|
}
|
|
2451
|
-
}),
|
|
2462
|
+
}), Pn = ["data-sv-drop-target-survey-element"], Rn = { class: "svc-fake-title" }, Vn = /* @__PURE__ */ a("div", { class: "svc-question__drop-indicator svc-question__drop-indicator--left" }, null, -1), An = /* @__PURE__ */ a("div", { class: "svc-question__drop-indicator svc-question__drop-indicator--right" }, null, -1), zn = /* @__PURE__ */ a("div", { class: "svc-question__drop-indicator svc-question__drop-indicator--top" }, null, -1), Ln = /* @__PURE__ */ a("div", { class: "svc-question__drop-indicator svc-question__drop-indicator--bottom" }, null, -1), Fn = { class: "svc-question__top-actions" }, Kn = {
|
|
2452
2463
|
key: 0,
|
|
2453
2464
|
class: "svc-panel__placeholder_frame-wrapper"
|
|
2454
|
-
},
|
|
2465
|
+
}, Un = { class: "svc-panel__placeholder_frame" }, Hn = {
|
|
2455
2466
|
class: "svc-panel__placeholder",
|
|
2456
2467
|
"data-bind": "text: placeholderText"
|
|
2457
2468
|
}, se = /* @__PURE__ */ g({
|
|
@@ -2499,7 +2510,7 @@ const It = /* @__PURE__ */ g({
|
|
|
2499
2510
|
key: 0,
|
|
2500
2511
|
class: _(s(o).cssCollapsedHiddenHeader)
|
|
2501
2512
|
}, [
|
|
2502
|
-
d.element.hasTitle ? (l(),
|
|
2513
|
+
d.element.hasTitle ? (l(), C(s(u), {
|
|
2503
2514
|
key: 0,
|
|
2504
2515
|
is: "survey-element-title",
|
|
2505
2516
|
element: d.element
|
|
@@ -2507,19 +2518,19 @@ const It = /* @__PURE__ */ g({
|
|
|
2507
2518
|
key: 1,
|
|
2508
2519
|
class: _(s(o).cssCollapsedHiddenTitle)
|
|
2509
2520
|
}, [
|
|
2510
|
-
a("span",
|
|
2521
|
+
a("span", Rn, k(d.element.name), 1)
|
|
2511
2522
|
], 2))
|
|
2512
2523
|
], 2)) : p("", !0),
|
|
2513
|
-
|
|
2524
|
+
h((l(), i("div", {
|
|
2514
2525
|
onClick: m[1] || (m[1] = (b) => {
|
|
2515
2526
|
s(o).select(s(o), b), b.stopPropagation();
|
|
2516
2527
|
}),
|
|
2517
2528
|
class: _(s(o).css())
|
|
2518
2529
|
}, [
|
|
2519
|
-
Rn,
|
|
2520
2530
|
Vn,
|
|
2521
2531
|
An,
|
|
2522
2532
|
zn,
|
|
2533
|
+
Ln,
|
|
2523
2534
|
s(o).allowDragging ? (l(), i("div", {
|
|
2524
2535
|
key: 0,
|
|
2525
2536
|
class: "svc-question__drag-area",
|
|
@@ -2533,7 +2544,7 @@ const It = /* @__PURE__ */ g({
|
|
|
2533
2544
|
iconName: "icon-drag-area-indicator_24x16",
|
|
2534
2545
|
size: "auto"
|
|
2535
2546
|
}), null, 16),
|
|
2536
|
-
a("div",
|
|
2547
|
+
a("div", Fn, [
|
|
2537
2548
|
v(s(u), {
|
|
2538
2549
|
is: "sv-action-bar",
|
|
2539
2550
|
model: s(o).topActionContainer,
|
|
@@ -2541,31 +2552,31 @@ const It = /* @__PURE__ */ g({
|
|
|
2541
2552
|
}, null, 8, ["model"])
|
|
2542
2553
|
])
|
|
2543
2554
|
], 32)) : p("", !0),
|
|
2544
|
-
s(o).needToRenderContent ? (l(), i(
|
|
2555
|
+
s(o).needToRenderContent ? (l(), i(w, { key: 1 }, [
|
|
2545
2556
|
v(s(u), {
|
|
2546
2557
|
is: "sv-template-renderer",
|
|
2547
2558
|
componentName: d.componentName,
|
|
2548
2559
|
componentData: d.componentData
|
|
2549
2560
|
}, null, 8, ["componentName", "componentData"]),
|
|
2550
|
-
s(o).isEmptyElement && !d.showPlaceholderComponent ? (l(), i("div",
|
|
2551
|
-
a("div",
|
|
2552
|
-
a("div",
|
|
2561
|
+
s(o).isEmptyElement && !d.showPlaceholderComponent ? (l(), i("div", Kn, [
|
|
2562
|
+
a("div", Un, [
|
|
2563
|
+
a("div", Hn, k(s(o).placeholderText), 1)
|
|
2553
2564
|
])
|
|
2554
2565
|
])) : p("", !0),
|
|
2555
|
-
s(o).isEmptyElement && d.showPlaceholderComponent ? (l(),
|
|
2566
|
+
s(o).isEmptyElement && d.showPlaceholderComponent ? (l(), C(s(u), V(
|
|
2556
2567
|
{
|
|
2557
2568
|
key: 1,
|
|
2558
2569
|
is: d.placeholderComponent
|
|
2559
2570
|
},
|
|
2560
2571
|
d.getPlaceholderComponentData && d.getPlaceholderComponentData(s(o))
|
|
2561
2572
|
), null, 16, ["is"])) : p("", !0),
|
|
2562
|
-
d.adornerComponent ? (l(),
|
|
2573
|
+
d.adornerComponent ? (l(), C(s(u), {
|
|
2563
2574
|
key: 2,
|
|
2564
2575
|
is: d.adornerComponent,
|
|
2565
2576
|
model: s(o),
|
|
2566
2577
|
element: d.element
|
|
2567
2578
|
}, null, 8, ["is", "model", "element"])) : p("", !0),
|
|
2568
|
-
s(o).isBannerShowing ? (l(),
|
|
2579
|
+
s(o).isBannerShowing ? (l(), C(s(u), {
|
|
2569
2580
|
key: 3,
|
|
2570
2581
|
is: "svc-question-banner",
|
|
2571
2582
|
model: n.value
|
|
@@ -2584,7 +2595,7 @@ const It = /* @__PURE__ */ g({
|
|
|
2584
2595
|
], 2)), [
|
|
2585
2596
|
[s(D), { disableTabStop: !0 }]
|
|
2586
2597
|
])
|
|
2587
|
-
], 42,
|
|
2598
|
+
], 42, Pn)) : p("", !0);
|
|
2588
2599
|
}
|
|
2589
2600
|
}), ae = /* @__PURE__ */ g({
|
|
2590
2601
|
__name: "Question",
|
|
@@ -2598,14 +2609,14 @@ const It = /* @__PURE__ */ g({
|
|
|
2598
2609
|
t.componentData.element,
|
|
2599
2610
|
null
|
|
2600
2611
|
);
|
|
2601
|
-
return (o, n) => (l(),
|
|
2612
|
+
return (o, n) => (l(), C(se, {
|
|
2602
2613
|
createModel: e,
|
|
2603
2614
|
element: o.componentData.element,
|
|
2604
2615
|
"component-name": o.componentName,
|
|
2605
2616
|
"component-data": o.componentData
|
|
2606
2617
|
}, null, 8, ["element", "component-name", "component-data"]));
|
|
2607
2618
|
}
|
|
2608
|
-
}),
|
|
2619
|
+
}), On = /* @__PURE__ */ g({
|
|
2609
2620
|
__name: "QuestionImage",
|
|
2610
2621
|
props: {
|
|
2611
2622
|
componentName: {},
|
|
@@ -2619,7 +2630,7 @@ const It = /* @__PURE__ */ g({
|
|
|
2619
2630
|
), o = (n) => ({
|
|
2620
2631
|
question: n == null ? void 0 : n.filePresentationModel
|
|
2621
2632
|
});
|
|
2622
|
-
return (n, r) => (l(),
|
|
2633
|
+
return (n, r) => (l(), C(se, {
|
|
2623
2634
|
"create-model": e,
|
|
2624
2635
|
element: t.componentData.element,
|
|
2625
2636
|
"show-placeholder-component": !0,
|
|
@@ -2630,34 +2641,34 @@ const It = /* @__PURE__ */ g({
|
|
|
2630
2641
|
"adorner-component": "svc-image-question-adorner"
|
|
2631
2642
|
}, null, 8, ["element", "component-data", "component-name"]));
|
|
2632
2643
|
}
|
|
2633
|
-
}),
|
|
2644
|
+
}), Qn = {
|
|
2634
2645
|
key: 0,
|
|
2635
2646
|
class: "svc-image-question-controls"
|
|
2636
|
-
},
|
|
2647
|
+
}, Gn = ["accept"], Wn = {
|
|
2637
2648
|
class: "svc-context-button",
|
|
2638
2649
|
title: void 0,
|
|
2639
2650
|
"aria-label": void 0
|
|
2640
|
-
},
|
|
2651
|
+
}, jn = {
|
|
2641
2652
|
key: 1,
|
|
2642
2653
|
class: "svc-image-question__loading-placeholder"
|
|
2643
|
-
},
|
|
2654
|
+
}, Jn = { class: "svc-image-question__loading" }, Zn = /* @__PURE__ */ g({
|
|
2644
2655
|
__name: "Image",
|
|
2645
2656
|
props: {
|
|
2646
2657
|
model: {},
|
|
2647
2658
|
element: {}
|
|
2648
2659
|
},
|
|
2649
2660
|
setup(c) {
|
|
2650
|
-
return (t, e) => (l(), i(
|
|
2651
|
-
!t.model.isUploading && !t.model.isEmptyElement ? (l(), i("div",
|
|
2652
|
-
t.model.allowEdit ? (l(), i(
|
|
2661
|
+
return (t, e) => (l(), i(w, null, [
|
|
2662
|
+
!t.model.isUploading && !t.model.isEmptyElement ? (l(), i("div", Qn, [
|
|
2663
|
+
t.model.allowEdit ? (l(), i(w, { key: 0 }, [
|
|
2653
2664
|
a("input", {
|
|
2654
2665
|
type: "file",
|
|
2655
2666
|
"aria-hidden": "true",
|
|
2656
2667
|
tabindex: "-1",
|
|
2657
2668
|
accept: t.model.acceptedTypes,
|
|
2658
2669
|
class: "svc-choose-file-input"
|
|
2659
|
-
}, null, 8,
|
|
2660
|
-
|
|
2670
|
+
}, null, 8, Gn),
|
|
2671
|
+
h((l(), i("span", Wn, [
|
|
2661
2672
|
v(s(u), {
|
|
2662
2673
|
is: "sv-svg-icon",
|
|
2663
2674
|
iconName: "icon-choosefile",
|
|
@@ -2669,14 +2680,14 @@ const It = /* @__PURE__ */ g({
|
|
|
2669
2680
|
])
|
|
2670
2681
|
], 64)) : p("", !0)
|
|
2671
2682
|
])) : p("", !0),
|
|
2672
|
-
t.model.isUploading && !t.model.isEmptyElement ? (l(), i("div",
|
|
2673
|
-
a("div",
|
|
2683
|
+
t.model.isUploading && !t.model.isEmptyElement ? (l(), i("div", jn, [
|
|
2684
|
+
a("div", Jn, [
|
|
2674
2685
|
v(s(u), { is: "sv-loading-indicator" })
|
|
2675
2686
|
])
|
|
2676
2687
|
])) : p("", !0)
|
|
2677
2688
|
], 64));
|
|
2678
2689
|
}
|
|
2679
|
-
}),
|
|
2690
|
+
}), Xn = { class: "svc-rating-question-content" }, Yn = /* @__PURE__ */ g({
|
|
2680
2691
|
__name: "Rating",
|
|
2681
2692
|
props: {
|
|
2682
2693
|
componentData: {},
|
|
@@ -2693,11 +2704,11 @@ const It = /* @__PURE__ */ g({
|
|
|
2693
2704
|
);
|
|
2694
2705
|
return (o, n) => {
|
|
2695
2706
|
var r, d, m, b, y, N, O, P, z;
|
|
2696
|
-
return l(), i("div",
|
|
2707
|
+
return l(), i("div", Xn, [
|
|
2697
2708
|
a("div", {
|
|
2698
2709
|
class: _((r = s(e)) == null ? void 0 : r.controlsClassNames)
|
|
2699
2710
|
}, [
|
|
2700
|
-
(d = s(e)) != null && d.allowRemove ?
|
|
2711
|
+
(d = s(e)) != null && d.allowRemove ? h((l(), C(s(u), {
|
|
2701
2712
|
key: 0,
|
|
2702
2713
|
is: "sv-svg-icon",
|
|
2703
2714
|
iconName: "icon-remove_16x16",
|
|
@@ -2712,7 +2723,7 @@ const It = /* @__PURE__ */ g({
|
|
|
2712
2723
|
}, null, 8, ["class", "title", "aria-label"])), [
|
|
2713
2724
|
[s(D)]
|
|
2714
2725
|
]) : p("", !0),
|
|
2715
|
-
(N = s(e)) != null && N.allowAdd ?
|
|
2726
|
+
(N = s(e)) != null && N.allowAdd ? h((l(), C(s(u), {
|
|
2716
2727
|
key: 1,
|
|
2717
2728
|
is: "sv-svg-icon",
|
|
2718
2729
|
iconName: "icon-add_16x16",
|
|
@@ -2732,10 +2743,10 @@ const It = /* @__PURE__ */ g({
|
|
|
2732
2743
|
]);
|
|
2733
2744
|
};
|
|
2734
2745
|
}
|
|
2735
|
-
}),
|
|
2746
|
+
}), xn = {
|
|
2736
2747
|
key: 0,
|
|
2737
2748
|
class: "svc-matrix-cell__question-controls"
|
|
2738
|
-
},
|
|
2749
|
+
}, el = /* @__PURE__ */ g({
|
|
2739
2750
|
__name: "MatrixCell",
|
|
2740
2751
|
props: {
|
|
2741
2752
|
componentData: {}
|
|
@@ -2783,8 +2794,8 @@ const It = /* @__PURE__ */ g({
|
|
|
2783
2794
|
class: _(["svc-matrix-cell--selected", { "svc-visible": (N = s(m)) == null ? void 0 : N.isSelected }])
|
|
2784
2795
|
}, null, 2),
|
|
2785
2796
|
X(b.$slots, "default"),
|
|
2786
|
-
(O = s(m)) != null && O.isSupportCellEditor ? (l(), i("div",
|
|
2787
|
-
|
|
2797
|
+
(O = s(m)) != null && O.isSupportCellEditor ? (l(), i("div", xn, [
|
|
2798
|
+
h((l(), i("span", {
|
|
2788
2799
|
class: "svc-matrix-cell__question-controls-button svc-context-button",
|
|
2789
2800
|
onClick: y[0] || (y[0] = (P) => s(m).editQuestion(s(m), P))
|
|
2790
2801
|
}, [
|
|
@@ -2800,7 +2811,7 @@ const It = /* @__PURE__ */ g({
|
|
|
2800
2811
|
], 32);
|
|
2801
2812
|
};
|
|
2802
2813
|
}
|
|
2803
|
-
}),
|
|
2814
|
+
}), ol = { class: "svc-question__adorner" }, sl = { class: "svc-question__content svc-question__content--in-popup" }, tl = /* @__PURE__ */ g({
|
|
2804
2815
|
__name: "CellQuestion",
|
|
2805
2816
|
props: {
|
|
2806
2817
|
componentName: {},
|
|
@@ -2810,19 +2821,19 @@ const It = /* @__PURE__ */ g({
|
|
|
2810
2821
|
const t = c, e = $(
|
|
2811
2822
|
() => t.componentData.element
|
|
2812
2823
|
);
|
|
2813
|
-
return f(() => e.value), (o, n) => (l(), i("div",
|
|
2814
|
-
a("div",
|
|
2824
|
+
return f(() => e.value), (o, n) => (l(), i("div", ol, [
|
|
2825
|
+
a("div", sl, [
|
|
2815
2826
|
v(s(u), V({ is: o.componentName }, o.componentData), null, 16, ["is"])
|
|
2816
2827
|
])
|
|
2817
2828
|
]));
|
|
2818
2829
|
}
|
|
2819
|
-
}),
|
|
2830
|
+
}), nl = ["data-sv-drop-target-survey-element"], ll = { class: "svc-fake-title" }, al = /* @__PURE__ */ a("div", { class: "svc-question__drop-indicator svc-question__drop-indicator--left" }, null, -1), il = /* @__PURE__ */ a("div", { class: "svc-question__drop-indicator svc-question__drop-indicator--right" }, null, -1), rl = /* @__PURE__ */ a("div", { class: "svc-question__drop-indicator svc-question__drop-indicator--top" }, null, -1), dl = /* @__PURE__ */ a("div", { class: "svc-question__drop-indicator svc-question__drop-indicator--bottom" }, null, -1), cl = { class: "svc-question__top-actions" }, ul = {
|
|
2820
2831
|
key: 0,
|
|
2821
2832
|
class: "svc-panel__placeholder_frame-wrapper"
|
|
2822
|
-
},
|
|
2833
|
+
}, pl = { class: "svc-panel__placeholder_frame" }, vl = { class: "svc-panel__placeholder" }, ml = { class: "svc-add-new-item-button__text" }, _l = {
|
|
2823
2834
|
key: 1,
|
|
2824
2835
|
class: "svc-panel__add-new-question-container"
|
|
2825
|
-
},
|
|
2836
|
+
}, gl = { class: "svc-panel__question-type-selector-popup" }, bl = { class: "svc-panel__add-new-question-wrapper" }, yl = /* @__PURE__ */ g({
|
|
2826
2837
|
__name: "Panel",
|
|
2827
2838
|
props: {
|
|
2828
2839
|
componentName: {},
|
|
@@ -2855,7 +2866,7 @@ const It = /* @__PURE__ */ g({
|
|
|
2855
2866
|
key: 0,
|
|
2856
2867
|
class: _(s(e).cssCollapsedHiddenHeader)
|
|
2857
2868
|
}, [
|
|
2858
|
-
s(e).element.hasTitle ? (l(),
|
|
2869
|
+
s(e).element.hasTitle ? (l(), C(s(u), {
|
|
2859
2870
|
key: 0,
|
|
2860
2871
|
is: "survey-element-title",
|
|
2861
2872
|
element: s(e).element
|
|
@@ -2863,17 +2874,17 @@ const It = /* @__PURE__ */ g({
|
|
|
2863
2874
|
key: 1,
|
|
2864
2875
|
class: _(s(e).cssCollapsedHiddenTitle)
|
|
2865
2876
|
}, [
|
|
2866
|
-
a("span",
|
|
2877
|
+
a("span", ll, k(s(e).element.name), 1)
|
|
2867
2878
|
], 2))
|
|
2868
2879
|
], 2)) : p("", !0),
|
|
2869
|
-
|
|
2880
|
+
h((l(), i("div", {
|
|
2870
2881
|
class: _(s(e).css()),
|
|
2871
2882
|
onClick: r[2] || (r[2] = (d) => s(e).element.isInteractiveDesignElement ? s(e).select(s(e), d) : null)
|
|
2872
2883
|
}, [
|
|
2873
|
-
ll,
|
|
2874
2884
|
al,
|
|
2875
2885
|
il,
|
|
2876
2886
|
rl,
|
|
2887
|
+
dl,
|
|
2877
2888
|
s(e).allowDragging && s(e).element.isInteractiveDesignElement ? (l(), i("div", {
|
|
2878
2889
|
key: 0,
|
|
2879
2890
|
class: "svc-question__drag-area",
|
|
@@ -2885,7 +2896,7 @@ const It = /* @__PURE__ */ g({
|
|
|
2885
2896
|
iconName: "icon-drag-area-indicator_24x16",
|
|
2886
2897
|
size: "auto"
|
|
2887
2898
|
}),
|
|
2888
|
-
a("div",
|
|
2899
|
+
a("div", cl, [
|
|
2889
2900
|
v(s(u), {
|
|
2890
2901
|
is: "sv-action-bar",
|
|
2891
2902
|
model: s(e).topActionContainer,
|
|
@@ -2893,12 +2904,12 @@ const It = /* @__PURE__ */ g({
|
|
|
2893
2904
|
}, null, 8, ["model"])
|
|
2894
2905
|
])
|
|
2895
2906
|
], 32)) : p("", !0),
|
|
2896
|
-
s(e).needToRenderContent ? (l(), i(
|
|
2907
|
+
s(e).needToRenderContent ? (l(), i(w, { key: 1 }, [
|
|
2897
2908
|
v(s(u), V({ is: n.componentName }, n.componentData), null, 16, ["is"]),
|
|
2898
|
-
s(e).isEmptyElement ? (l(), i("div",
|
|
2899
|
-
a("div",
|
|
2900
|
-
a("div",
|
|
2901
|
-
s(e).showAddQuestionButton ?
|
|
2909
|
+
s(e).isEmptyElement ? (l(), i("div", ul, [
|
|
2910
|
+
a("div", pl, [
|
|
2911
|
+
a("div", vl, k(s(e).placeholderText), 1),
|
|
2912
|
+
s(e).showAddQuestionButton ? h((l(), i("div", {
|
|
2902
2913
|
key: 0,
|
|
2903
2914
|
class: "svc-panel__add-new-question svc-action-button",
|
|
2904
2915
|
onClick: o
|
|
@@ -2909,20 +2920,20 @@ const It = /* @__PURE__ */ g({
|
|
|
2909
2920
|
iconName: "icon-add_24x24",
|
|
2910
2921
|
size: "auto"
|
|
2911
2922
|
}),
|
|
2912
|
-
a("span",
|
|
2923
|
+
a("span", ml, k(s(e).addNewQuestionText), 1)
|
|
2913
2924
|
])), [
|
|
2914
2925
|
[s(D)]
|
|
2915
2926
|
]) : p("", !0)
|
|
2916
2927
|
])
|
|
2917
2928
|
])) : p("", !0),
|
|
2918
|
-
!s(e).isEmptyElement && s(e).showAddQuestionButton ? (l(), i("div",
|
|
2919
|
-
a("div",
|
|
2929
|
+
!s(e).isEmptyElement && s(e).showAddQuestionButton ? (l(), i("div", _l, [
|
|
2930
|
+
a("div", gl, [
|
|
2920
2931
|
v(s(u), {
|
|
2921
2932
|
is: "sv-popup",
|
|
2922
2933
|
model: s(e).questionTypeSelectorModel.popupModel
|
|
2923
2934
|
}, null, 8, ["model"])
|
|
2924
2935
|
]),
|
|
2925
|
-
a("div",
|
|
2936
|
+
a("div", bl, [
|
|
2926
2937
|
v(s(u), {
|
|
2927
2938
|
is: "svc-add-new-question-btn",
|
|
2928
2939
|
item: { data: s(e) },
|
|
@@ -2946,12 +2957,12 @@ const It = /* @__PURE__ */ g({
|
|
|
2946
2957
|
], 2)), [
|
|
2947
2958
|
[s(D), { disableTabStop: !0 }]
|
|
2948
2959
|
])
|
|
2949
|
-
], 42,
|
|
2960
|
+
], 42, nl)) : p("", !0);
|
|
2950
2961
|
}
|
|
2951
|
-
}),
|
|
2962
|
+
}), hl = ["data-sv-drop-target-item-value"], Cl = /* @__PURE__ */ a("div", { class: "svc-item-value__ghost" }, null, -1), ql = { class: "svc-item-value-controls" }, $l = {
|
|
2952
2963
|
key: 0,
|
|
2953
2964
|
class: "svc-item-value-controls__button svc-item-value-controls__drag"
|
|
2954
|
-
},
|
|
2965
|
+
}, kl = /* @__PURE__ */ g({
|
|
2955
2966
|
__name: "ItemValue",
|
|
2956
2967
|
props: {
|
|
2957
2968
|
componentName: {},
|
|
@@ -2991,9 +3002,9 @@ const It = /* @__PURE__ */ g({
|
|
|
2991
3002
|
ref_key: "root",
|
|
2992
3003
|
ref: t
|
|
2993
3004
|
}, [
|
|
2994
|
-
|
|
2995
|
-
a("div",
|
|
2996
|
-
s(m).isDraggable ? (l(), i("span",
|
|
3005
|
+
Cl,
|
|
3006
|
+
a("div", ql, [
|
|
3007
|
+
s(m).isDraggable ? (l(), i("span", $l, [
|
|
2997
3008
|
v(s(u), {
|
|
2998
3009
|
is: "sv-svg-icon",
|
|
2999
3010
|
class: "svc-item-value-controls__drag-icon",
|
|
@@ -3002,7 +3013,7 @@ const It = /* @__PURE__ */ g({
|
|
|
3002
3013
|
title: s(m).dragTooltip
|
|
3003
3014
|
}, null, 8, ["title"])
|
|
3004
3015
|
])) : p("", !0),
|
|
3005
|
-
s(m).allowAdd ?
|
|
3016
|
+
s(m).allowAdd ? h((l(), i("span", {
|
|
3006
3017
|
key: 1,
|
|
3007
3018
|
class: "svc-item-value-controls__button svc-item-value-controls__add",
|
|
3008
3019
|
onClick: y[0] || (y[0] = (N) => s(m).add(s(m))),
|
|
@@ -3017,7 +3028,7 @@ const It = /* @__PURE__ */ g({
|
|
|
3017
3028
|
])), [
|
|
3018
3029
|
[s(D)]
|
|
3019
3030
|
]) : p("", !0),
|
|
3020
|
-
s(m).allowRemove ?
|
|
3031
|
+
s(m).allowRemove ? h((l(), i("span", {
|
|
3021
3032
|
key: 2,
|
|
3022
3033
|
class: "svc-item-value-controls__button svc-item-value-controls__remove",
|
|
3023
3034
|
onClick: y[1] || (y[1] = (N) => s(m).remove(s(m))),
|
|
@@ -3040,18 +3051,18 @@ const It = /* @__PURE__ */ g({
|
|
|
3040
3051
|
}, [
|
|
3041
3052
|
v(s(u), V({ is: b.componentName }, b.componentData), null, 16, ["is"])
|
|
3042
3053
|
])
|
|
3043
|
-
], 42,
|
|
3054
|
+
], 42, hl));
|
|
3044
3055
|
}
|
|
3045
|
-
}), wl = ["data-sv-drop-target-item-value"],
|
|
3056
|
+
}), wl = ["data-sv-drop-target-item-value"], fl = { class: "svc-image-item-value-wrapper__content" }, Tl = ["accept"], Dl = {
|
|
3046
3057
|
key: 0,
|
|
3047
3058
|
class: "svc-image-item-value__item"
|
|
3048
|
-
},
|
|
3059
|
+
}, Nl = {
|
|
3049
3060
|
key: 2,
|
|
3050
3061
|
class: "svc-context-container svc-image-item-value-controls"
|
|
3051
|
-
},
|
|
3062
|
+
}, Ml = { class: "sd-imagepicker__item sd-imagepicker__item--inline" }, Sl = { class: "sd-imagepicker__label" }, Il = {
|
|
3052
3063
|
key: 0,
|
|
3053
3064
|
class: "svc-image-item-value__loading"
|
|
3054
|
-
},
|
|
3065
|
+
}, Bl = /* @__PURE__ */ g({
|
|
3055
3066
|
__name: "ImageItemValue",
|
|
3056
3067
|
props: {
|
|
3057
3068
|
componentName: {},
|
|
@@ -3093,16 +3104,16 @@ const It = /* @__PURE__ */ g({
|
|
|
3093
3104
|
class: "svc-image-item-value-wrapper__ghost",
|
|
3094
3105
|
style: K(m.value)
|
|
3095
3106
|
}, null, 4),
|
|
3096
|
-
a("div",
|
|
3107
|
+
a("div", fl, [
|
|
3097
3108
|
a("input", {
|
|
3098
3109
|
type: "file",
|
|
3099
3110
|
"aria-hidden": "true",
|
|
3100
3111
|
tabindex: "-1",
|
|
3101
3112
|
accept: s(d).acceptedTypes,
|
|
3102
3113
|
class: "svc-choose-file-input"
|
|
3103
|
-
}, null, 8,
|
|
3104
|
-
!s(d).isNew && !s(d).isUploading ? (l(), i(
|
|
3105
|
-
s(d).isNew ? p("", !0) : (l(), i("div",
|
|
3114
|
+
}, null, 8, Tl),
|
|
3115
|
+
!s(d).isNew && !s(d).isUploading ? (l(), i(w, { key: 0 }, [
|
|
3116
|
+
s(d).isNew ? p("", !0) : (l(), i("div", Dl, [
|
|
3106
3117
|
v(s(u), V({ is: b.componentName }, b.componentData), null, 16, ["is"])
|
|
3107
3118
|
])),
|
|
3108
3119
|
s(d).isDraggable && s(d).canRenderControls ? (l(), i("span", {
|
|
@@ -3118,8 +3129,8 @@ const It = /* @__PURE__ */ g({
|
|
|
3118
3129
|
size: "auto"
|
|
3119
3130
|
})
|
|
3120
3131
|
], 32)) : p("", !0),
|
|
3121
|
-
s(d).canRenderControls ? (l(), i("div",
|
|
3122
|
-
|
|
3132
|
+
s(d).canRenderControls ? (l(), i("div", Nl, [
|
|
3133
|
+
h((l(), i("span", {
|
|
3123
3134
|
class: "svc-context-button",
|
|
3124
3135
|
onClick: y[1] || (y[1] = (N) => s(d).chooseFile(s(d))),
|
|
3125
3136
|
title: void 0,
|
|
@@ -3135,7 +3146,7 @@ const It = /* @__PURE__ */ g({
|
|
|
3135
3146
|
])), [
|
|
3136
3147
|
[s(D)]
|
|
3137
3148
|
]),
|
|
3138
|
-
|
|
3149
|
+
h((l(), i("span", {
|
|
3139
3150
|
class: "svc-context-button svc-context-button--danger",
|
|
3140
3151
|
onClick: y[2] || (y[2] = (N) => s(d).remove(s(d))),
|
|
3141
3152
|
title: void 0,
|
|
@@ -3153,20 +3164,20 @@ const It = /* @__PURE__ */ g({
|
|
|
3153
3164
|
])
|
|
3154
3165
|
])) : p("", !0)
|
|
3155
3166
|
], 64)) : p("", !0),
|
|
3156
|
-
s(d).isNew || s(d).isUploading ? (l(), i(
|
|
3167
|
+
s(d).isNew || s(d).isUploading ? (l(), i(w, { key: 1 }, [
|
|
3157
3168
|
a("div", {
|
|
3158
3169
|
class: "svc-image-item-value__item",
|
|
3159
3170
|
onDragover: y[3] || (y[3] = (N) => s(d).onDragOver(N)),
|
|
3160
3171
|
onDragleave: y[4] || (y[4] = (N) => s(d).onDragLeave(N)),
|
|
3161
3172
|
onDrop: y[5] || (y[5] = (N) => s(d).onDrop(N))
|
|
3162
3173
|
}, [
|
|
3163
|
-
a("div",
|
|
3164
|
-
a("label",
|
|
3174
|
+
a("div", Ml, [
|
|
3175
|
+
a("label", Sl, [
|
|
3165
3176
|
a("div", {
|
|
3166
3177
|
style: K(m.value),
|
|
3167
3178
|
class: "sd-imagepicker__image"
|
|
3168
3179
|
}, [
|
|
3169
|
-
s(d).isUploading ? (l(), i("div",
|
|
3180
|
+
s(d).isUploading ? (l(), i("div", Il, [
|
|
3170
3181
|
v(s(u), { is: "sv-loading-indicator" })
|
|
3171
3182
|
])) : p("", !0)
|
|
3172
3183
|
], 4)
|
|
@@ -3177,7 +3188,7 @@ const It = /* @__PURE__ */ g({
|
|
|
3177
3188
|
class: "svc-image-item-value-controls",
|
|
3178
3189
|
onPointerdown: y[7] || (y[7] = (N) => N.stopPropagation())
|
|
3179
3190
|
}, [
|
|
3180
|
-
s(d).allowAdd && !s(d).isUploading ?
|
|
3191
|
+
s(d).allowAdd && !s(d).isUploading ? h((l(), i("span", {
|
|
3181
3192
|
key: 0,
|
|
3182
3193
|
class: "svc-context-button svc-image-item-value-controls__add",
|
|
3183
3194
|
onClick: y[6] || (y[6] = (N) => s(d).chooseNewFile(s(d))),
|
|
@@ -3198,10 +3209,11 @@ const It = /* @__PURE__ */ g({
|
|
|
3198
3209
|
])
|
|
3199
3210
|
], 42, wl));
|
|
3200
3211
|
}
|
|
3201
|
-
}),
|
|
3212
|
+
}), El = /* @__PURE__ */ g({
|
|
3202
3213
|
__name: "QuestionEditor",
|
|
3203
3214
|
props: {
|
|
3204
|
-
survey: {}
|
|
3215
|
+
survey: {},
|
|
3216
|
+
style: {}
|
|
3205
3217
|
},
|
|
3206
3218
|
setup(c) {
|
|
3207
3219
|
const t = c, e = $(() => {
|
|
@@ -3226,16 +3238,20 @@ const It = /* @__PURE__ */ g({
|
|
|
3226
3238
|
}
|
|
3227
3239
|
};
|
|
3228
3240
|
});
|
|
3229
|
-
return (r, d) => (l(),
|
|
3241
|
+
return (r, d) => (l(), i("div", {
|
|
3242
|
+
style: K(t.style)
|
|
3243
|
+
}, [
|
|
3244
|
+
v(s(u), V({ is: o.value }, n.value), null, 16, ["is"])
|
|
3245
|
+
], 4));
|
|
3230
3246
|
}
|
|
3231
|
-
}),
|
|
3247
|
+
}), Pl = ["accept"], Rl = /* @__PURE__ */ a("svg", null, [
|
|
3232
3248
|
/* @__PURE__ */ a("use", { "xlink:href": "#icon-image-48x48" })
|
|
3233
|
-
], -1),
|
|
3234
|
-
|
|
3235
|
-
],
|
|
3249
|
+
], -1), Vl = [
|
|
3250
|
+
Rl
|
|
3251
|
+
], Al = { class: "svc-context-container svc-logo-image-controls" }, zl = {
|
|
3236
3252
|
key: 2,
|
|
3237
3253
|
class: "svc-logo-image__loading"
|
|
3238
|
-
},
|
|
3254
|
+
}, Ll = /* @__PURE__ */ g({
|
|
3239
3255
|
__name: "Logo",
|
|
3240
3256
|
props: {
|
|
3241
3257
|
data: {}
|
|
@@ -3270,13 +3286,13 @@ const It = /* @__PURE__ */ g({
|
|
|
3270
3286
|
tabindex: "-1",
|
|
3271
3287
|
accept: s(r).acceptedTypes,
|
|
3272
3288
|
class: "svc-choose-file-input"
|
|
3273
|
-
}, null, 8,
|
|
3274
|
-
d.value ? p("", !0) : (l(), i(
|
|
3275
|
-
s(r).allowEdit && !s(r).isUploading ?
|
|
3289
|
+
}, null, 8, Pl),
|
|
3290
|
+
d.value ? p("", !0) : (l(), i(w, { key: 0 }, [
|
|
3291
|
+
s(r).allowEdit && !s(r).isUploading ? h((l(), i("div", {
|
|
3276
3292
|
key: 0,
|
|
3277
3293
|
class: "svc-logo-image-placeholder",
|
|
3278
3294
|
onClick: y[0] || (y[0] = (N) => s(r).chooseFile(s(r)))
|
|
3279
|
-
},
|
|
3295
|
+
}, Vl)), [
|
|
3280
3296
|
[s(D)]
|
|
3281
3297
|
]) : p("", !0)
|
|
3282
3298
|
], 64)),
|
|
@@ -3284,8 +3300,8 @@ const It = /* @__PURE__ */ g({
|
|
|
3284
3300
|
key: 1,
|
|
3285
3301
|
class: _(s(r).containerCss)
|
|
3286
3302
|
}, [
|
|
3287
|
-
a("div",
|
|
3288
|
-
|
|
3303
|
+
a("div", Al, [
|
|
3304
|
+
h((l(), i("span", {
|
|
3289
3305
|
class: "svc-context-button",
|
|
3290
3306
|
onClick: y[1] || (y[1] = (N) => s(r).chooseFile(s(r))),
|
|
3291
3307
|
title: void 0,
|
|
@@ -3299,7 +3315,7 @@ const It = /* @__PURE__ */ g({
|
|
|
3299
3315
|
])), [
|
|
3300
3316
|
[s(D)]
|
|
3301
3317
|
]),
|
|
3302
|
-
|
|
3318
|
+
h((l(), i("span", {
|
|
3303
3319
|
class: "svc-context-button svc-context-button--danger",
|
|
3304
3320
|
onClick: y[2] || (y[2] = (N) => s(r).remove(s(r))),
|
|
3305
3321
|
title: void 0,
|
|
@@ -3319,15 +3335,15 @@ const It = /* @__PURE__ */ g({
|
|
|
3319
3335
|
data: o.value
|
|
3320
3336
|
}, null, 8, ["data"])
|
|
3321
3337
|
], 2)) : p("", !0),
|
|
3322
|
-
s(r).isUploading ? (l(), i("div",
|
|
3338
|
+
s(r).isUploading ? (l(), i("div", zl, [
|
|
3323
3339
|
v(s(u), { is: "sv-loading-indicator" })
|
|
3324
3340
|
])) : p("", !0)
|
|
3325
3341
|
], 512));
|
|
3326
3342
|
}
|
|
3327
|
-
}),
|
|
3343
|
+
}), Fl = {
|
|
3328
3344
|
key: 0,
|
|
3329
3345
|
class: "svc-search"
|
|
3330
|
-
},
|
|
3346
|
+
}, Kl = { class: "svc-search__search-icon" }, Ul = ["aria-label", "placeholder"], Hl = { class: "svc-search__toolbar" }, Ol = { class: "svc-search__toolbar-counter" }, Ql = /* @__PURE__ */ g({
|
|
3331
3347
|
__name: "Search",
|
|
3332
3348
|
props: {
|
|
3333
3349
|
model: {}
|
|
@@ -3342,25 +3358,25 @@ const It = /* @__PURE__ */ g({
|
|
|
3342
3358
|
n.filterString = o;
|
|
3343
3359
|
}
|
|
3344
3360
|
});
|
|
3345
|
-
return (o, n) => o.model.isVisible ? (l(), i("div",
|
|
3346
|
-
a("div",
|
|
3361
|
+
return (o, n) => o.model.isVisible ? (l(), i("div", Fl, [
|
|
3362
|
+
a("div", Kl, [
|
|
3347
3363
|
v(s(u), {
|
|
3348
3364
|
is: "sv-svg-icon",
|
|
3349
3365
|
iconName: "icon-search",
|
|
3350
3366
|
size: "auto"
|
|
3351
3367
|
})
|
|
3352
3368
|
]),
|
|
3353
|
-
|
|
3369
|
+
h(a("input", {
|
|
3354
3370
|
type: "text",
|
|
3355
3371
|
class: "svc-search__input",
|
|
3356
3372
|
"onUpdate:modelValue": n[0] || (n[0] = (r) => e.value = r),
|
|
3357
3373
|
"aria-label": o.model.filterStringPlaceholder,
|
|
3358
3374
|
placeholder: o.model.filterStringPlaceholder
|
|
3359
|
-
}, null, 8,
|
|
3375
|
+
}, null, 8, Ul), [
|
|
3360
3376
|
[ce, e.value]
|
|
3361
3377
|
]),
|
|
3362
|
-
a("div",
|
|
3363
|
-
a("div",
|
|
3378
|
+
a("div", Hl, [
|
|
3379
|
+
a("div", Ol, k(o.model.matchCounterText), 1),
|
|
3364
3380
|
v(s(u), {
|
|
3365
3381
|
is: "sv-action-bar",
|
|
3366
3382
|
model: o.model.searchActionBar
|
|
@@ -3368,7 +3384,7 @@ const It = /* @__PURE__ */ g({
|
|
|
3368
3384
|
])
|
|
3369
3385
|
])) : p("", !0);
|
|
3370
3386
|
}
|
|
3371
|
-
}),
|
|
3387
|
+
}), Gl = ["title"], Wl = /* @__PURE__ */ g({
|
|
3372
3388
|
__name: "PageNavigator",
|
|
3373
3389
|
props: {
|
|
3374
3390
|
pagesController: {},
|
|
@@ -3390,12 +3406,13 @@ const It = /* @__PURE__ */ g({
|
|
|
3390
3406
|
n.stopItemsContainerHeightObserver(), n.setScrollableContainer(void 0);
|
|
3391
3407
|
}), L(() => {
|
|
3392
3408
|
e.value.dispose();
|
|
3393
|
-
}), (n, r) =>
|
|
3409
|
+
}), (n, r) => h((l(), i("div", {
|
|
3394
3410
|
class: "svc-page-navigator",
|
|
3395
3411
|
ref_key: "root",
|
|
3396
3412
|
ref: o
|
|
3397
3413
|
}, [
|
|
3398
|
-
|
|
3414
|
+
h((l(), i("div", {
|
|
3415
|
+
role: "button",
|
|
3399
3416
|
class: _(["svc-page-navigator__selector svc-page-navigator__button", { "svc-page-navigator__button--pressed": s(e).isPopupOpened }]),
|
|
3400
3417
|
onClick: r[0] || (r[0] = (d) => s(e).togglePageSelector(d)),
|
|
3401
3418
|
title: s(e).pageSelectorCaption
|
|
@@ -3410,11 +3427,11 @@ const It = /* @__PURE__ */ g({
|
|
|
3410
3427
|
is: "sv-popup",
|
|
3411
3428
|
model: s(e).popupModel
|
|
3412
3429
|
}, null, 8, ["model"])
|
|
3413
|
-
], 10,
|
|
3430
|
+
], 10, Gl)), [
|
|
3414
3431
|
[s(D)]
|
|
3415
3432
|
]),
|
|
3416
3433
|
a("div", null, [
|
|
3417
|
-
(l(!0), i(
|
|
3434
|
+
(l(!0), i(w, null, R(s(e).visibleItems, (d) => (l(), C(s(u), {
|
|
3418
3435
|
is: "svc-page-navigator-item",
|
|
3419
3436
|
key: d.id,
|
|
3420
3437
|
model: d
|
|
@@ -3424,11 +3441,11 @@ const It = /* @__PURE__ */ g({
|
|
|
3424
3441
|
[F, s(e).visible]
|
|
3425
3442
|
]);
|
|
3426
3443
|
}
|
|
3427
|
-
}),
|
|
3428
|
-
|
|
3429
|
-
],
|
|
3444
|
+
}), jl = { class: "svc-page-navigator-item" }, Jl = ["title"], Zl = /* @__PURE__ */ a("div", { class: "svc-page-navigator-item__dot-content" }, null, -1), Xl = [
|
|
3445
|
+
Zl
|
|
3446
|
+
], Yl = { class: "svc-page-navigator-item__banner" }, xl = { class: "svc-page-navigator-item__text" }, ea = /* @__PURE__ */ a("span", { class: "svc-page-navigator-item__dot" }, [
|
|
3430
3447
|
/* @__PURE__ */ a("span", { class: "svc-page-navigator-item__dot-content" })
|
|
3431
|
-
], -1),
|
|
3448
|
+
], -1), oa = /* @__PURE__ */ g({
|
|
3432
3449
|
__name: "PageNavigatorItem",
|
|
3433
3450
|
props: {
|
|
3434
3451
|
model: {}
|
|
@@ -3439,8 +3456,9 @@ const It = /* @__PURE__ */ g({
|
|
|
3439
3456
|
const e = (o) => {
|
|
3440
3457
|
t.model.action(), o.stopPropagation(), o.preventDefault();
|
|
3441
3458
|
};
|
|
3442
|
-
return (o, n) => (l(), i("div",
|
|
3443
|
-
|
|
3459
|
+
return (o, n) => (l(), i("div", jl, [
|
|
3460
|
+
h((l(), i("div", {
|
|
3461
|
+
role: "button",
|
|
3444
3462
|
class: _(["svc-page-navigator-item-content", {
|
|
3445
3463
|
"svc-page-navigator-item--selected": o.model.active,
|
|
3446
3464
|
"svc-page-navigator-item--disabled": o.model.disabled
|
|
@@ -3450,17 +3468,17 @@ const It = /* @__PURE__ */ g({
|
|
|
3450
3468
|
a("div", {
|
|
3451
3469
|
class: "svc-page-navigator-item__dot",
|
|
3452
3470
|
title: o.model.title
|
|
3453
|
-
},
|
|
3454
|
-
a("div",
|
|
3455
|
-
a("span",
|
|
3456
|
-
|
|
3471
|
+
}, Xl, 8, Jl),
|
|
3472
|
+
a("div", Yl, [
|
|
3473
|
+
a("span", xl, k(o.model.title), 1),
|
|
3474
|
+
ea
|
|
3457
3475
|
])
|
|
3458
3476
|
], 2)), [
|
|
3459
3477
|
[s(D)]
|
|
3460
3478
|
])
|
|
3461
3479
|
]));
|
|
3462
3480
|
}
|
|
3463
|
-
}),
|
|
3481
|
+
}), sa = { class: "svc-question__dropdown-choices--wrapper" }, ta = { class: "svc-question__dropdown-choices" }, na = /* @__PURE__ */ g({
|
|
3464
3482
|
__name: "Dropdown",
|
|
3465
3483
|
props: {
|
|
3466
3484
|
model: {},
|
|
@@ -3475,10 +3493,10 @@ const It = /* @__PURE__ */ g({
|
|
|
3475
3493
|
data: t.element.getItemValueWrapperComponentData(n)
|
|
3476
3494
|
}
|
|
3477
3495
|
});
|
|
3478
|
-
return (n, r) => (l(), i("div",
|
|
3496
|
+
return (n, r) => (l(), i("div", sa, [
|
|
3479
3497
|
a("div", null, [
|
|
3480
|
-
a("div",
|
|
3481
|
-
(l(!0), i(
|
|
3498
|
+
a("div", ta, [
|
|
3499
|
+
(l(!0), i(w, null, R(n.model.getRenderedItems(), (d) => (l(), i("div", {
|
|
3482
3500
|
key: d.value,
|
|
3483
3501
|
class: _(n.model.getChoiceCss())
|
|
3484
3502
|
}, [
|
|
@@ -3487,7 +3505,7 @@ const It = /* @__PURE__ */ g({
|
|
|
3487
3505
|
}, o(d)), null, 16, ["is"])
|
|
3488
3506
|
], 2))), 128))
|
|
3489
3507
|
]),
|
|
3490
|
-
n.model.needToCollapse ? (l(),
|
|
3508
|
+
n.model.needToCollapse ? (l(), C(s(u), {
|
|
3491
3509
|
key: 0,
|
|
3492
3510
|
is: "svc-action-button",
|
|
3493
3511
|
text: n.model.getButtonText(),
|
|
@@ -3497,7 +3515,7 @@ const It = /* @__PURE__ */ g({
|
|
|
3497
3515
|
])
|
|
3498
3516
|
]));
|
|
3499
3517
|
}
|
|
3500
|
-
}),
|
|
3518
|
+
}), la = /* @__PURE__ */ g({
|
|
3501
3519
|
__name: "QuestionDropdown",
|
|
3502
3520
|
props: {
|
|
3503
3521
|
componentName: {},
|
|
@@ -3509,7 +3527,7 @@ const It = /* @__PURE__ */ g({
|
|
|
3509
3527
|
t.componentData.element,
|
|
3510
3528
|
null
|
|
3511
3529
|
);
|
|
3512
|
-
return (o, n) => (l(),
|
|
3530
|
+
return (o, n) => (l(), C(se, {
|
|
3513
3531
|
"create-model": e,
|
|
3514
3532
|
element: o.componentData.element,
|
|
3515
3533
|
"component-name": o.componentName,
|
|
@@ -3517,7 +3535,7 @@ const It = /* @__PURE__ */ g({
|
|
|
3517
3535
|
"adorner-component": "svc-dropdown-question-adorner"
|
|
3518
3536
|
}, null, 8, ["element", "component-name", "component-data"]));
|
|
3519
3537
|
}
|
|
3520
|
-
}),
|
|
3538
|
+
}), aa = { class: "svc-question__adorner" }, ia = { class: "svc-question__content svc-question__content--in-popup" }, ra = { class: "svc-question__dropdown-choices" }, ie = "survey-radiogroup-item", da = /* @__PURE__ */ g({
|
|
3521
3539
|
__name: "CellQuestionDropdown",
|
|
3522
3540
|
props: {
|
|
3523
3541
|
componentName: {},
|
|
@@ -3534,11 +3552,11 @@ const It = /* @__PURE__ */ g({
|
|
|
3534
3552
|
data: e.value.getItemValueWrapperComponentData(r)
|
|
3535
3553
|
}
|
|
3536
3554
|
});
|
|
3537
|
-
return f(() => e.value), (r, d) => (l(), i("div",
|
|
3538
|
-
a("div",
|
|
3555
|
+
return f(() => e.value), (r, d) => (l(), i("div", aa, [
|
|
3556
|
+
a("div", ia, [
|
|
3539
3557
|
v(s(u), V({ is: r.componentName }, r.componentData), null, 16, ["is"]),
|
|
3540
|
-
a("div",
|
|
3541
|
-
(l(!0), i(
|
|
3558
|
+
a("div", ra, [
|
|
3559
|
+
(l(!0), i(w, null, R(e.value.visibleChoices, (m) => (l(), i("div", {
|
|
3542
3560
|
key: m.value,
|
|
3543
3561
|
class: "svc-question__dropdown-choice"
|
|
3544
3562
|
}, [
|
|
@@ -3550,18 +3568,18 @@ const It = /* @__PURE__ */ g({
|
|
|
3550
3568
|
])
|
|
3551
3569
|
]));
|
|
3552
3570
|
}
|
|
3553
|
-
}),
|
|
3571
|
+
}), ca = ["data-sv-drop-target-survey-element"], ua = /* @__PURE__ */ a("div", { class: "svc-question__drop-indicator svc-question__drop-indicator--left" }, null, -1), pa = /* @__PURE__ */ a("div", { class: "svc-question__drop-indicator svc-question__drop-indicator--right" }, null, -1), va = /* @__PURE__ */ a("div", { class: "svc-question__drop-indicator svc-question__drop-indicator--top" }, null, -1), ma = /* @__PURE__ */ a("div", { class: "svc-question__drop-indicator svc-question__drop-indicator--bottom" }, null, -1), _a = { class: "svc-widget__content" }, ga = {
|
|
3554
3572
|
key: 1,
|
|
3555
3573
|
class: "svc-panel__placeholder_frame"
|
|
3556
|
-
},
|
|
3574
|
+
}, ba = /* @__PURE__ */ a("div", {
|
|
3557
3575
|
class: "svc-panel__placeholder",
|
|
3558
3576
|
"data-bind": "text: placeholderText"
|
|
3559
|
-
}, null, -1),
|
|
3560
|
-
|
|
3561
|
-
],
|
|
3577
|
+
}, null, -1), ya = [
|
|
3578
|
+
ba
|
|
3579
|
+
], ha = { class: "svc-question__content-actions" }, Ca = {
|
|
3562
3580
|
key: 0,
|
|
3563
3581
|
class: "svc-panel__placeholder_frame"
|
|
3564
|
-
},
|
|
3582
|
+
}, qa = { class: "svc-panel__placeholder" }, $a = /* @__PURE__ */ g({
|
|
3565
3583
|
__name: "CustomWidget",
|
|
3566
3584
|
props: {
|
|
3567
3585
|
componentName: {},
|
|
@@ -3592,16 +3610,16 @@ const It = /* @__PURE__ */ g({
|
|
|
3592
3610
|
ref_key: "root",
|
|
3593
3611
|
ref: e
|
|
3594
3612
|
}, [
|
|
3595
|
-
s(o).element.isInteractiveDesignElement ?
|
|
3613
|
+
s(o).element.isInteractiveDesignElement ? h((l(), i("div", {
|
|
3596
3614
|
key: 0,
|
|
3597
3615
|
class: _(["svc-question__content", s(o).css()]),
|
|
3598
3616
|
onClick: r[1] || (r[1] = (d) => s(o).select(s(o), d)),
|
|
3599
3617
|
"data-bind": "clickBubble: false"
|
|
3600
3618
|
}, [
|
|
3601
|
-
ca,
|
|
3602
3619
|
ua,
|
|
3603
3620
|
pa,
|
|
3604
3621
|
va,
|
|
3622
|
+
ma,
|
|
3605
3623
|
s(o).allowDragging ? (l(), i("div", {
|
|
3606
3624
|
key: 0,
|
|
3607
3625
|
class: "svc-question__drag-area",
|
|
@@ -3614,11 +3632,11 @@ const It = /* @__PURE__ */ g({
|
|
|
3614
3632
|
size: "auto"
|
|
3615
3633
|
})
|
|
3616
3634
|
], 32)) : p("", !0),
|
|
3617
|
-
a("div",
|
|
3635
|
+
a("div", _a, [
|
|
3618
3636
|
v(s(u), V({ is: n.componentName }, n.componentData), null, 16, ["is"])
|
|
3619
3637
|
]),
|
|
3620
|
-
s(o).isEmptyElement ? (l(), i("div",
|
|
3621
|
-
a("div",
|
|
3638
|
+
s(o).isEmptyElement ? (l(), i("div", ga, ya)) : p("", !0),
|
|
3639
|
+
a("div", ha, [
|
|
3622
3640
|
v(s(u), {
|
|
3623
3641
|
is: "sv-action-bar",
|
|
3624
3642
|
model: s(o).actionContainer,
|
|
@@ -3628,24 +3646,24 @@ const It = /* @__PURE__ */ g({
|
|
|
3628
3646
|
], 2)), [
|
|
3629
3647
|
[s(D)]
|
|
3630
3648
|
]) : p("", !0),
|
|
3631
|
-
s(o).element.isInteractiveDesignElement ? p("", !0) : (l(), i(
|
|
3649
|
+
s(o).element.isInteractiveDesignElement ? p("", !0) : (l(), i(w, { key: 1 }, [
|
|
3632
3650
|
v(s(u), V({ is: n.componentName }, n.componentData), null, 16, ["is"]),
|
|
3633
|
-
s(o).isEmptyElement ? (l(), i("div",
|
|
3634
|
-
a("div",
|
|
3651
|
+
s(o).isEmptyElement ? (l(), i("div", Ca, [
|
|
3652
|
+
a("div", qa, k(s(o).placeholderText), 1)
|
|
3635
3653
|
])) : p("", !0)
|
|
3636
3654
|
], 64))
|
|
3637
|
-
], 42,
|
|
3655
|
+
], 42, ca)) : p("", !0);
|
|
3638
3656
|
}
|
|
3639
|
-
}),
|
|
3657
|
+
}), ka = { class: "svc-carry-forward-panel-wrapper" }, wa = { class: "svc-carry-forward-panel" }, fa = { class: "svc-carry-forward-panel__link" }, Ta = /* @__PURE__ */ g({
|
|
3640
3658
|
__name: "QuestionBanner",
|
|
3641
3659
|
props: {
|
|
3642
3660
|
model: {}
|
|
3643
3661
|
},
|
|
3644
3662
|
setup(c) {
|
|
3645
|
-
return (t, e) => (l(), i("div",
|
|
3663
|
+
return (t, e) => (l(), i("div", ka, [
|
|
3646
3664
|
a("div", wa, [
|
|
3647
|
-
a("span", null,
|
|
3648
|
-
a("span",
|
|
3665
|
+
a("span", null, k(t.model.text) + k(" "), 1),
|
|
3666
|
+
a("span", fa, [
|
|
3649
3667
|
v(s(u), {
|
|
3650
3668
|
is: "svc-action-button",
|
|
3651
3669
|
text: t.model.actionText,
|
|
@@ -3656,20 +3674,20 @@ const It = /* @__PURE__ */ g({
|
|
|
3656
3674
|
]));
|
|
3657
3675
|
}
|
|
3658
3676
|
});
|
|
3659
|
-
function
|
|
3677
|
+
function Da(c, t, e) {
|
|
3660
3678
|
c(t, e);
|
|
3661
3679
|
}
|
|
3662
3680
|
function ve(c) {
|
|
3663
|
-
const t =
|
|
3681
|
+
const t = Da.bind(
|
|
3664
3682
|
void 0,
|
|
3665
3683
|
c
|
|
3666
3684
|
);
|
|
3667
|
-
t("svc-tabbed-menu", Ze), t("svc-tabbed-menu-item-wrapper", Ye), t("svc-tabbed-menu-item",
|
|
3685
|
+
t("svc-tabbed-menu", Ze), t("svc-tabbed-menu-item-wrapper", Ye), t("svc-tabbed-menu-item", eo), t("svc-side-bar", no), t("svc-side-bar-default-header", ro), t("svc-side-bar-page", co), t("svc-tabs", go), t("svc-tab-control", ko), t("svc-tab-button", No), t("svc-property-grid-placeholder", Po), t("svc-side-bar-header", Fo), t("svc-side-bar-property-grid-header", Wo), t("svc-property-grid", _o), t("svc-object-selector", uo), t("svc-search", Ql), t("svc-scroll", W), t("svc-switcher", ls), t("svc-action-button", xo), t("svc-question-error", jo), t("survey-embeddedsurvey", Zs), t("sv-logic-operator", Js), t("survey-linkvalue", Xs), t("survey-color", mt), t("color-item", _t), t("sv-boolean-switch", Bt), t("survey-fileedit", Ct), t("survey-spinedit", wt), t("survey-textwithreset", le), t("survey-commentwithreset", le), t("survey-widget", Q), t("survey-simulator", rs), t("svc-tab-preview", ms), t("svc-complete-page", gs), t("survey-results", Ds), t("survey-results-table-row", Ms), t("json-error-item", Us), t("svc-tab-json-editor-textarea", zs), t("svc-tab-json-editor-ace", Es), t("svc-tab-translation", st), t("sd-translation-line-skeleton", it), t("svc-translate-from-action", rt), t("svc-tab-logic", Gs), t("svc-tab-theme", ut), t("svc-toolbox", Qt), t("svc-toolbox-list", nn), t("svc-toolbox-category", tn), t("svc-toolbox-tool", Wt), t("svc-toolbox-item", Xt), t("svc-toolbox-item-group", Yt), t(ze, Ft), t("svc-tab-designer", bn), t("svc-page-navigator", Wl), t("svc-page-navigator-item", oa), t("svc-page", Tn), t("svc-row", En), t("svc-add-new-question-btn", Nn), t("svc-add-question-type-selector", Sn), t("svc-question", ae), t("svc-rating-question", ae), t("svc-rating-question-content", Yn), t("svc-image-question", On), t("svc-image-question-adorner", Zn), t("svc-matrix-cell", el), t("svc-cell-question", tl), t("svc-cell-dropdown-question", da), t("svc-question-editor-content", El), t("svc-logo-image", Ll), t("svc-panel", yl), t("svc-item-value", kl), t("svc-image-item-value", Bl), t("svc-dropdown-question", la), t("svc-dropdown-question-adorner", na), t("svc-widget-question", $a), t("svc-question-banner", Ta);
|
|
3668
3686
|
}
|
|
3669
3687
|
ve(
|
|
3670
3688
|
(c, t) => re.Instance.registerComponent(c, t)
|
|
3671
3689
|
);
|
|
3672
|
-
const
|
|
3690
|
+
const Ba = {
|
|
3673
3691
|
install(c) {
|
|
3674
3692
|
c.component("SurveyCreatorComponent", Je), ve((t, e) => {
|
|
3675
3693
|
c.component(t, e), re.Instance.registerComponent(t, t);
|
|
@@ -3678,5 +3696,5 @@ const Ia = {
|
|
|
3678
3696
|
};
|
|
3679
3697
|
export {
|
|
3680
3698
|
Je as SurveyCreatorComponent,
|
|
3681
|
-
|
|
3699
|
+
Ba as surveyCreatorPlugin
|
|
3682
3700
|
};
|