survey-creator-vue 2.2.0 → 2.2.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 +603 -602
- package/survey-creator-vue.umd.js +2 -2
package/survey-creator-vue.es.js
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { useBase as T, SvComponent as u, key2ClickDirective as N, SurveyComponent as O, useQuestion as H, useComputedArray as _e, ComponentFactory as ie } from "survey-vue3-ui";
|
|
2
|
-
import { defineComponent as g, computed as $, toRaw as ge, ref as I, onMounted as P, onUnmounted as K, openBlock as a, createElementBlock as i, Fragment as w, createVNode as v, unref as s, createElementVNode as d, normalizeClass as m, normalizeStyle as F, createCommentVNode as p, renderList as V, createBlock as
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
const
|
|
2
|
+
import { defineComponent as g, computed as $, toRaw as ge, ref as I, onMounted as P, onUnmounted as K, openBlock as a, createElementBlock as i, Fragment as w, createVNode as v, unref as s, createElementVNode as d, normalizeClass as m, normalizeStyle as F, createCommentVNode as p, renderList as V, createBlock as y, onUpdated as G, nextTick as re, withDirectives as C, toDisplayString as k, vShow as Q, withCtx as X, createTextVNode as be, shallowRef as ye, watch as W, onBeforeUnmount as Y, vModelText as de, mergeProps as A, renderSlot as x } from "vue";
|
|
3
|
+
import { editorLocalization as ce, SurveyResultsModel as he, initLogicOperator as Ce, StringEditorViewModelBase as qe, ToolboxToolViewModel as $e, PageAdorner as ke, RowViewModel as fe, QuestionAdornerViewModel as ee, QuestionImageAdornerViewModel as we, QuestionRatingAdornerViewModel as Te, MatrixCellWrapperViewModel as De, ItemValueWrapperViewModel as Ne, ImageItemValueWrapperViewModel as Me, LogoImageViewModel as Se, PageNavigatorViewModel as Be, QuestionDropdownAdornerViewModel as Ie, editableStringRendererName as Ee } from "survey-creator-core";
|
|
4
|
+
import { CssClassBuilder as Pe, RendererFactory as ue, DropdownListModel as Re } from "survey-core";
|
|
5
|
+
const Ve = { class: "svc-flex-column svc-flex-row__element svc-flex-row__element--growing" }, Ae = { class: "svc-top-bar" }, ze = {
|
|
6
6
|
key: 0,
|
|
7
7
|
class: "svc-tabbed-menu-wrapper"
|
|
8
|
-
},
|
|
8
|
+
}, Le = ["v-show"], Fe = { class: "svc-creator__content-holder svc-flex-column" }, Ke = ["aria-labelledby", "id"], Ue = {
|
|
9
9
|
key: 0,
|
|
10
10
|
class: "svc-footer-bar"
|
|
11
|
-
},
|
|
11
|
+
}, Qe = ["v-show"], He = {
|
|
12
12
|
key: 0,
|
|
13
13
|
class: "svc-creator__banner"
|
|
14
|
-
},
|
|
14
|
+
}, Oe = ["innerHTML"], Ge = /* @__PURE__ */ g({
|
|
15
15
|
__name: "Creator",
|
|
16
16
|
props: {
|
|
17
17
|
model: {}
|
|
@@ -48,9 +48,9 @@ const ze = { class: "svc-flex-column svc-flex-row__element svc-flex-row__element
|
|
|
48
48
|
"svc-creator__side-bar--left": e.value.sidebarLocation == "left"
|
|
49
49
|
}])
|
|
50
50
|
}, [
|
|
51
|
-
d("div",
|
|
52
|
-
d("div",
|
|
53
|
-
e.value.showTabs ? (a(), i("div",
|
|
51
|
+
d("div", Ve, [
|
|
52
|
+
d("div", Ae, [
|
|
53
|
+
e.value.showTabs ? (a(), i("div", ze, [
|
|
54
54
|
v(s(u), {
|
|
55
55
|
is: "svc-tabbed-menu",
|
|
56
56
|
model: e.value.tabbedMenu
|
|
@@ -65,14 +65,14 @@ const ze = { class: "svc-flex-column svc-flex-row__element svc-flex-row__element
|
|
|
65
65
|
is: "sv-action-bar",
|
|
66
66
|
model: e.value.toolbar
|
|
67
67
|
}, null, 8, ["model"])
|
|
68
|
-
], 8,
|
|
68
|
+
], 8, Le)) : p("", !0)
|
|
69
69
|
]),
|
|
70
70
|
d("div", {
|
|
71
71
|
class: m(["svc-creator__content-wrapper svc-flex-row", {
|
|
72
72
|
"svc-creator__content-wrapper--footer-toolbar": e.value.isMobileView
|
|
73
73
|
}])
|
|
74
74
|
}, [
|
|
75
|
-
d("div",
|
|
75
|
+
d("div", Fe, [
|
|
76
76
|
(a(!0), i(w, null, V(e.value.tabs, (l) => (a(), i(w, null, [
|
|
77
77
|
e.value.viewType == l.id && l.visible ? (a(), i("div", {
|
|
78
78
|
role: "tabpanel",
|
|
@@ -87,11 +87,11 @@ const ze = { class: "svc-flex-column svc-flex-row__element svc-flex-row__element
|
|
|
87
87
|
is: l.componentContent,
|
|
88
88
|
model: l.data.model
|
|
89
89
|
}, null, 8, ["is", "model"])
|
|
90
|
-
], 10,
|
|
90
|
+
], 10, Ke)) : p("", !0)
|
|
91
91
|
], 64))), 256))
|
|
92
92
|
])
|
|
93
93
|
], 2),
|
|
94
|
-
e.value.isMobileView ? (a(), i("div",
|
|
94
|
+
e.value.isMobileView ? (a(), i("div", Ue, [
|
|
95
95
|
d("div", {
|
|
96
96
|
class: "svc-toolbar-wrapper",
|
|
97
97
|
"v-show": e.value.isMobileView
|
|
@@ -100,20 +100,20 @@ const ze = { class: "svc-flex-column svc-flex-row__element svc-flex-row__element
|
|
|
100
100
|
is: "sv-action-bar",
|
|
101
101
|
model: e.value.footerToolbar
|
|
102
102
|
}, null, 8, ["model"])
|
|
103
|
-
], 8,
|
|
103
|
+
], 8, Qe)
|
|
104
104
|
])) : p("", !0)
|
|
105
105
|
]),
|
|
106
|
-
e.value.sidebar ? (a(),
|
|
106
|
+
e.value.sidebar ? (a(), y(s(u), {
|
|
107
107
|
key: 0,
|
|
108
108
|
is: "svc-side-bar",
|
|
109
109
|
model: e.value.sidebar
|
|
110
110
|
}, null, 8, ["model"])) : p("", !0)
|
|
111
111
|
], 2),
|
|
112
|
-
e.value.haveCommercialLicense ? p("", !0) : (a(), i("div",
|
|
112
|
+
e.value.haveCommercialLicense ? p("", !0) : (a(), i("div", He, [
|
|
113
113
|
d("span", {
|
|
114
114
|
class: "svc-creator__non-commercial-text",
|
|
115
115
|
innerHTML: e.value.licenseText
|
|
116
|
-
}, null, 8,
|
|
116
|
+
}, null, 8, Oe)
|
|
117
117
|
])),
|
|
118
118
|
v(s(u), {
|
|
119
119
|
is: "sv-notifier",
|
|
@@ -123,33 +123,34 @@ const ze = { class: "svc-flex-column svc-flex-row__element svc-flex-row__element
|
|
|
123
123
|
], 6)
|
|
124
124
|
], 64));
|
|
125
125
|
}
|
|
126
|
-
}),
|
|
126
|
+
}), We = /* @__PURE__ */ g({
|
|
127
127
|
__name: "TabbedMenu",
|
|
128
128
|
props: {
|
|
129
129
|
model: {}
|
|
130
130
|
},
|
|
131
131
|
setup(c) {
|
|
132
|
-
const t = c;
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
e
|
|
132
|
+
const t = c, e = I();
|
|
133
|
+
return T(() => t.model), G(() => {
|
|
134
|
+
t.model.initResponsivityManager(e.value);
|
|
135
|
+
}), P(() => {
|
|
136
|
+
t.model.initResponsivityManager(e.value);
|
|
137
137
|
}), K(() => {
|
|
138
|
-
|
|
139
|
-
}), (
|
|
138
|
+
t.model.resetResponsivityManager();
|
|
139
|
+
}), (o, n) => (a(), i("div", {
|
|
140
140
|
class: "svc-tabbed-menu",
|
|
141
141
|
ref_key: "container",
|
|
142
|
-
ref:
|
|
143
|
-
role: "tablist"
|
|
142
|
+
ref: e,
|
|
143
|
+
role: "tablist",
|
|
144
|
+
style: F(o.model.getRootStyle())
|
|
144
145
|
}, [
|
|
145
|
-
(a(!0), i(w, null, V(
|
|
146
|
-
key:
|
|
146
|
+
(a(!0), i(w, null, V(o.model.renderedActions, (r) => (a(), y(s(u), {
|
|
147
|
+
key: r.renderedId,
|
|
147
148
|
is: "svc-tabbed-menu-item-wrapper",
|
|
148
|
-
item:
|
|
149
|
+
item: r
|
|
149
150
|
}, null, 8, ["item"]))), 128))
|
|
150
|
-
],
|
|
151
|
+
], 4));
|
|
151
152
|
}
|
|
152
|
-
}),
|
|
153
|
+
}), je = { class: "sv-action__content" }, Je = /* @__PURE__ */ g({
|
|
153
154
|
__name: "TabbedMenuItemWrapper",
|
|
154
155
|
props: {
|
|
155
156
|
item: {}
|
|
@@ -169,7 +170,7 @@ const ze = { class: "svc-flex-column svc-flex-row__element svc-flex-row__element
|
|
|
169
170
|
ref_key: "root",
|
|
170
171
|
ref: t
|
|
171
172
|
}, [
|
|
172
|
-
d("div",
|
|
173
|
+
d("div", je, [
|
|
173
174
|
v(s(u), {
|
|
174
175
|
is: o.item.component || "svc-tabbed-menu-item",
|
|
175
176
|
item: o.item
|
|
@@ -177,14 +178,14 @@ const ze = { class: "svc-flex-column svc-flex-row__element svc-flex-row__element
|
|
|
177
178
|
])
|
|
178
179
|
], 2));
|
|
179
180
|
}
|
|
180
|
-
}),
|
|
181
|
+
}), Ze = ["id", "aria-selected", "aria-controls"], Xe = /* @__PURE__ */ g({
|
|
181
182
|
__name: "TabbedMenuItem",
|
|
182
183
|
props: {
|
|
183
184
|
item: {}
|
|
184
185
|
},
|
|
185
186
|
setup(c) {
|
|
186
187
|
const t = c;
|
|
187
|
-
return T(() => t.item), (e, o) =>
|
|
188
|
+
return T(() => t.item), (e, o) => C((a(), i("div", {
|
|
188
189
|
role: "tab",
|
|
189
190
|
id: "tab-" + e.item.id,
|
|
190
191
|
"aria-selected": e.item.active,
|
|
@@ -197,7 +198,7 @@ const ze = { class: "svc-flex-column svc-flex-row__element svc-flex-row__element
|
|
|
197
198
|
key: 0,
|
|
198
199
|
class: m(e.item.getTitleCss())
|
|
199
200
|
}, k(e.item.title), 3)) : p("", !0),
|
|
200
|
-
e.item.hasIcon ? (a(),
|
|
201
|
+
e.item.hasIcon ? (a(), y(s(u), {
|
|
201
202
|
key: 1,
|
|
202
203
|
is: "sv-svg-icon",
|
|
203
204
|
iconName: e.item.iconName,
|
|
@@ -205,11 +206,11 @@ const ze = { class: "svc-flex-column svc-flex-row__element svc-flex-row__element
|
|
|
205
206
|
class: m(e.item.getIconCss()),
|
|
206
207
|
title: e.item.tooltip || e.item.title
|
|
207
208
|
}, null, 8, ["iconName", "class", "title"])) : p("", !0)
|
|
208
|
-
], 10,
|
|
209
|
+
], 10, Ze)), [
|
|
209
210
|
[s(N)]
|
|
210
211
|
]);
|
|
211
212
|
}
|
|
212
|
-
}),
|
|
213
|
+
}), Ye = { class: "svc-flex-row svc-side-bar__wrapper" }, xe = { class: "svc-side-bar__container-wrapper" }, eo = { class: "svc-side-bar__container-content" }, oo = /* @__PURE__ */ g({
|
|
213
214
|
__name: "SideBar",
|
|
214
215
|
props: {
|
|
215
216
|
model: {}
|
|
@@ -220,17 +221,17 @@ const ze = { class: "svc-flex-column svc-flex-row__element svc-flex-row__element
|
|
|
220
221
|
t.model.initResizeManager(e.value);
|
|
221
222
|
}), K(() => {
|
|
222
223
|
t.model.resetResizeManager();
|
|
223
|
-
}), (o, n) =>
|
|
224
|
+
}), (o, n) => C((a(), i("div", {
|
|
224
225
|
class: m(["svc-side-bar", o.model.rootCss])
|
|
225
226
|
}, [
|
|
226
|
-
|
|
227
|
+
C(d("div", {
|
|
227
228
|
class: "svc-side-bar__shadow",
|
|
228
229
|
onClick: n[0] || (n[0] = () => o.model.collapseSidebar())
|
|
229
230
|
}, null, 512), [
|
|
230
231
|
[Q, o.model.renderContainer]
|
|
231
232
|
]),
|
|
232
|
-
d("div",
|
|
233
|
-
|
|
233
|
+
d("div", Ye, [
|
|
234
|
+
C(d("div", xe, [
|
|
234
235
|
d("div", {
|
|
235
236
|
class: "svc-side-bar__container",
|
|
236
237
|
ref_key: "root",
|
|
@@ -240,8 +241,8 @@ const ze = { class: "svc-flex-column svc-flex-row__element svc-flex-row__element
|
|
|
240
241
|
is: o.model.header.component,
|
|
241
242
|
model: o.model.header.componentModel
|
|
242
243
|
}, null, 8, ["is", "model"]),
|
|
243
|
-
d("div",
|
|
244
|
-
(a(!0), i(w, null, V(o.model.pages, (r, l) => (a(),
|
|
244
|
+
d("div", eo, [
|
|
245
|
+
(a(!0), i(w, null, V(o.model.pages, (r, l) => (a(), y(s(u), {
|
|
245
246
|
key: l,
|
|
246
247
|
is: "svc-side-bar-page",
|
|
247
248
|
model: r
|
|
@@ -251,7 +252,7 @@ const ze = { class: "svc-flex-column svc-flex-row__element svc-flex-row__element
|
|
|
251
252
|
], 512), [
|
|
252
253
|
[Q, o.model.renderContainer]
|
|
253
254
|
]),
|
|
254
|
-
o.model.sideAreaComponentName ? (a(),
|
|
255
|
+
o.model.sideAreaComponentName ? (a(), y(s(u), {
|
|
255
256
|
key: 0,
|
|
256
257
|
is: o.model.sideAreaComponentName,
|
|
257
258
|
model: o.model.sideAreaComponentData
|
|
@@ -261,53 +262,53 @@ const ze = { class: "svc-flex-column svc-flex-row__element svc-flex-row__element
|
|
|
261
262
|
[Q, o.model.renderRoot]
|
|
262
263
|
]);
|
|
263
264
|
}
|
|
264
|
-
}),
|
|
265
|
+
}), so = { class: "svc-side-bar__container-header" }, to = { class: "svc-side-bar__container-actions" }, no = {
|
|
265
266
|
key: 0,
|
|
266
267
|
class: "svc-side-bar__container-title"
|
|
267
|
-
},
|
|
268
|
+
}, ao = /* @__PURE__ */ g({
|
|
268
269
|
__name: "SideBarDefaultHeader",
|
|
269
270
|
props: {
|
|
270
271
|
model: {}
|
|
271
272
|
},
|
|
272
273
|
setup(c) {
|
|
273
274
|
const t = c;
|
|
274
|
-
return T(() => t.model), (e, o) => (a(), i("div",
|
|
275
|
-
d("div",
|
|
275
|
+
return T(() => t.model), (e, o) => (a(), i("div", so, [
|
|
276
|
+
d("div", to, [
|
|
276
277
|
v(s(u), {
|
|
277
278
|
is: "sv-action-bar",
|
|
278
279
|
model: e.model.toolbar
|
|
279
280
|
}, null, 8, ["model"])
|
|
280
281
|
]),
|
|
281
|
-
e.model.title ? (a(), i("div",
|
|
282
|
+
e.model.title ? (a(), i("div", no, k(e.model.title), 1)) : p("", !0)
|
|
282
283
|
]));
|
|
283
284
|
}
|
|
284
|
-
}),
|
|
285
|
+
}), lo = /* @__PURE__ */ g({
|
|
285
286
|
__name: "SideBarPage",
|
|
286
287
|
props: {
|
|
287
288
|
model: {}
|
|
288
289
|
},
|
|
289
290
|
setup(c) {
|
|
290
291
|
const t = c;
|
|
291
|
-
return T(() => t.model), (e, o) => e.model.visible ? (a(),
|
|
292
|
+
return T(() => t.model), (e, o) => e.model.visible ? (a(), y(s(u), {
|
|
292
293
|
key: 0,
|
|
293
294
|
is: e.model.componentName,
|
|
294
295
|
model: e.model.componentData
|
|
295
296
|
}, null, 8, ["is", "model"])) : p("", !0);
|
|
296
297
|
}
|
|
297
|
-
}),
|
|
298
|
+
}), io = /* @__PURE__ */ g({
|
|
298
299
|
__name: "ObjectSelector",
|
|
299
300
|
props: {
|
|
300
301
|
model: {}
|
|
301
302
|
},
|
|
302
303
|
setup(c) {
|
|
303
304
|
const t = c;
|
|
304
|
-
return T(() => t.model), (e, o) => e.model.isVisible ? (a(),
|
|
305
|
+
return T(() => t.model), (e, o) => e.model.isVisible ? (a(), y(s(u), {
|
|
305
306
|
key: 0,
|
|
306
307
|
is: "sv-list",
|
|
307
308
|
model: e.model.list
|
|
308
309
|
}, null, 8, ["model"])) : p("", !0);
|
|
309
310
|
}
|
|
310
|
-
}),
|
|
311
|
+
}), ro = /* @__PURE__ */ g({
|
|
311
312
|
__name: "PropertyGrid",
|
|
312
313
|
props: {
|
|
313
314
|
model: {}
|
|
@@ -321,28 +322,28 @@ const ze = { class: "svc-flex-column svc-flex-row__element svc-flex-row__element
|
|
|
321
322
|
is: "svc-search",
|
|
322
323
|
model: e.model.searchManager
|
|
323
324
|
}, null, 8, ["model"]),
|
|
324
|
-
e.model.survey ? (a(),
|
|
325
|
+
e.model.survey ? (a(), y(s(O), {
|
|
325
326
|
key: 0,
|
|
326
327
|
survey: e.model.survey
|
|
327
328
|
}, null, 8, ["survey"])) : p("", !0)
|
|
328
329
|
], 2));
|
|
329
330
|
}
|
|
330
|
-
}),
|
|
331
|
+
}), co = /* @__PURE__ */ g({
|
|
331
332
|
__name: "Tabs",
|
|
332
333
|
props: {
|
|
333
334
|
model: {}
|
|
334
335
|
},
|
|
335
336
|
setup(c) {
|
|
336
337
|
const t = c;
|
|
337
|
-
return T(() => t.model), (e, o) => (a(!0), i(w, null, V(e.model.actions, (n, r) => (a(),
|
|
338
|
+
return T(() => t.model), (e, o) => (a(!0), i(w, null, V(e.model.actions, (n, r) => (a(), y(s(u), {
|
|
338
339
|
key: r,
|
|
339
340
|
is: "svc-tab-button",
|
|
340
341
|
model: n
|
|
341
342
|
}, null, 8, ["model"]))), 128));
|
|
342
343
|
}
|
|
343
|
-
}),
|
|
344
|
+
}), uo = { class: "svc-sidebar-tabs__top-container" }, po = { class: "svc-sidebar-tabs__collapse-button" }, vo = /* @__PURE__ */ d("div", { class: "svc-sidebar-tabs__separator" }, [
|
|
344
345
|
/* @__PURE__ */ d("div")
|
|
345
|
-
], -1),
|
|
346
|
+
], -1), mo = { class: "svc-sidebar-tabs__items" }, _o = { class: "svc-sidebar-tabs__bottom-container" }, go = { class: "svc-sidebar-tabs__items" }, bo = /* @__PURE__ */ g({
|
|
346
347
|
__name: "TabControl",
|
|
347
348
|
props: {
|
|
348
349
|
model: {}
|
|
@@ -352,17 +353,17 @@ const ze = { class: "svc-flex-column svc-flex-row__element svc-flex-row__element
|
|
|
352
353
|
return T(() => t.model), (e, o) => (a(), i("div", {
|
|
353
354
|
class: m(e.model.sideBarClassName)
|
|
354
355
|
}, [
|
|
355
|
-
d("div",
|
|
356
|
-
d("div",
|
|
356
|
+
d("div", uo, [
|
|
357
|
+
d("div", po, [
|
|
357
358
|
v(s(u), {
|
|
358
359
|
is: "svc-tab-button",
|
|
359
360
|
model: e.model.expandCollapseAction
|
|
360
361
|
}, null, 8, ["model"])
|
|
361
362
|
]),
|
|
362
|
-
|
|
363
|
+
vo,
|
|
363
364
|
v(s(u), { is: "sv-scroll" }, {
|
|
364
|
-
default:
|
|
365
|
-
d("div",
|
|
365
|
+
default: X(() => [
|
|
366
|
+
d("div", mo, [
|
|
366
367
|
v(s(u), {
|
|
367
368
|
is: "svc-tabs",
|
|
368
369
|
model: e.model.topToolbar
|
|
@@ -372,8 +373,8 @@ const ze = { class: "svc-flex-column svc-flex-row__element svc-flex-row__element
|
|
|
372
373
|
_: 1
|
|
373
374
|
})
|
|
374
375
|
]),
|
|
375
|
-
d("div",
|
|
376
|
-
d("div",
|
|
376
|
+
d("div", _o, [
|
|
377
|
+
d("div", go, [
|
|
377
378
|
v(s(u), {
|
|
378
379
|
is: "svc-tabs",
|
|
379
380
|
model: e.model.bottomToolbar
|
|
@@ -382,24 +383,24 @@ const ze = { class: "svc-flex-column svc-flex-row__element svc-flex-row__element
|
|
|
382
383
|
])
|
|
383
384
|
], 2));
|
|
384
385
|
}
|
|
385
|
-
}),
|
|
386
|
+
}), yo = {
|
|
386
387
|
key: 0,
|
|
387
388
|
class: "svc-menu-action"
|
|
388
|
-
},
|
|
389
|
+
}, ho = ["title"], Co = { class: "svc-menu-action__icon" }, qo = { class: "svc-menu-action__icon-container" }, $o = /* @__PURE__ */ g({
|
|
389
390
|
__name: "TabButton",
|
|
390
391
|
props: {
|
|
391
392
|
model: {}
|
|
392
393
|
},
|
|
393
394
|
setup(c) {
|
|
394
395
|
const t = c;
|
|
395
|
-
return T(() => t.model), (e, o) => e.model.visible ? (a(), i("div",
|
|
396
|
-
|
|
396
|
+
return T(() => t.model), (e, o) => e.model.visible ? (a(), i("div", yo, [
|
|
397
|
+
C((a(), i("div", {
|
|
397
398
|
class: m(e.model.buttonClassName),
|
|
398
399
|
title: e.model.tooltip,
|
|
399
400
|
onClick: o[0] || (o[0] = (n) => e.model.action())
|
|
400
401
|
}, [
|
|
401
|
-
d("div",
|
|
402
|
-
d("div",
|
|
402
|
+
d("div", Co, [
|
|
403
|
+
d("div", qo, [
|
|
403
404
|
v(s(u), {
|
|
404
405
|
is: "sv-svg-icon",
|
|
405
406
|
iconName: e.model.iconName,
|
|
@@ -407,64 +408,64 @@ const ze = { class: "svc-flex-column svc-flex-row__element svc-flex-row__element
|
|
|
407
408
|
}, null, 8, ["iconName"])
|
|
408
409
|
])
|
|
409
410
|
])
|
|
410
|
-
], 10,
|
|
411
|
+
], 10, ho)), [
|
|
411
412
|
[s(N), { processEsc: !1, disableTabStop: e.model.disableTabStop }]
|
|
412
413
|
])
|
|
413
414
|
])) : p("", !0);
|
|
414
415
|
}
|
|
415
|
-
}),
|
|
416
|
+
}), ko = { class: "svc-property-grid-placeholder" }, fo = { class: "svc-property-grid-placeholder__header" }, wo = { class: "svc-property-grid-placeholder__title" }, To = { class: "svc-property-grid-placeholder__description" }, Do = /* @__PURE__ */ d("div", { class: "svc-property-grid-placeholder__content" }, [
|
|
416
417
|
/* @__PURE__ */ d("div", { class: "svc-property-grid-placeholder__gap" }),
|
|
417
418
|
/* @__PURE__ */ d("div", { class: "svc-property-grid-placeholder__image" })
|
|
418
|
-
], -1),
|
|
419
|
+
], -1), No = /* @__PURE__ */ g({
|
|
419
420
|
__name: "PropertyGridPlaceholder",
|
|
420
421
|
setup(c) {
|
|
421
|
-
const t =
|
|
422
|
-
return (e, o) => (a(), i("div",
|
|
423
|
-
d("div",
|
|
424
|
-
d("span",
|
|
425
|
-
d("span",
|
|
422
|
+
const t = ce;
|
|
423
|
+
return (e, o) => (a(), i("div", ko, [
|
|
424
|
+
d("div", fo, [
|
|
425
|
+
d("span", wo, k(s(t).getString("ed.propertyGridPlaceholderTitle")), 1),
|
|
426
|
+
d("span", To, k(s(t).getString("ed.propertyGridPlaceholderDescription")), 1)
|
|
426
427
|
]),
|
|
427
|
-
|
|
428
|
+
Do
|
|
428
429
|
]));
|
|
429
430
|
}
|
|
430
|
-
}),
|
|
431
|
+
}), Mo = { class: "svc-side-bar__container-header svc-sidebar__header-container" }, So = {
|
|
431
432
|
key: 0,
|
|
432
433
|
class: "svc-side-bar__container-title"
|
|
433
|
-
},
|
|
434
|
+
}, Bo = {
|
|
434
435
|
key: 1,
|
|
435
436
|
class: "svc-sidebar__header-caption"
|
|
436
|
-
},
|
|
437
|
+
}, Io = { class: "svc-sidebar__header-title" }, Eo = { class: "svc-sidebar__header-subtitle" }, Po = /* @__PURE__ */ g({
|
|
437
438
|
__name: "SideBarHeader",
|
|
438
439
|
props: {
|
|
439
440
|
model: {}
|
|
440
441
|
},
|
|
441
442
|
setup(c) {
|
|
442
443
|
const t = c;
|
|
443
|
-
return T(() => t.model), (e, o) => (a(), i("div",
|
|
444
|
-
e.model.subTitle ? p("", !0) : (a(), i("div",
|
|
445
|
-
e.model.subTitle ? (a(), i("div",
|
|
446
|
-
d("span",
|
|
447
|
-
d("span",
|
|
444
|
+
return T(() => t.model), (e, o) => (a(), i("div", Mo, [
|
|
445
|
+
e.model.subTitle ? p("", !0) : (a(), i("div", So, k(e.model.title), 1)),
|
|
446
|
+
e.model.subTitle ? (a(), i("div", Bo, [
|
|
447
|
+
d("span", Io, k(e.model.title), 1),
|
|
448
|
+
d("span", Eo, k(e.model.subTitle), 1)
|
|
448
449
|
])) : p("", !0)
|
|
449
450
|
]));
|
|
450
451
|
}
|
|
451
|
-
}),
|
|
452
|
+
}), Ro = { class: "svc-sidebar__header svc-sidebar__header--tabbed" }, Vo = { class: "svc-sidebar__header-container svc-sidebar__header-container--with-subtitle" }, Ao = { class: "svc-sidebar__header-content" }, zo = { class: "svc-sidebar__header-caption" }, Lo = { class: "svc-sidebar__header-title" }, Fo = { class: "svc-sidebar__header-subtitle" }, Ko = /* @__PURE__ */ g({
|
|
452
453
|
__name: "SideBarPropertyGridHeader",
|
|
453
454
|
props: {
|
|
454
455
|
model: {}
|
|
455
456
|
},
|
|
456
457
|
setup(c) {
|
|
457
458
|
const t = c;
|
|
458
|
-
return T(() => t.model), (e, o) => (a(), i("div",
|
|
459
|
-
d("div",
|
|
460
|
-
d("div",
|
|
461
|
-
|
|
459
|
+
return T(() => t.model), (e, o) => (a(), i("div", Ro, [
|
|
460
|
+
d("div", Vo, [
|
|
461
|
+
d("div", Ao, [
|
|
462
|
+
C((a(), i("div", {
|
|
462
463
|
class: m(e.model.buttonClassName),
|
|
463
464
|
onClick: o[0] || (o[0] = (n) => e.model.action())
|
|
464
465
|
}, [
|
|
465
|
-
d("div",
|
|
466
|
-
d("span",
|
|
467
|
-
d("span",
|
|
466
|
+
d("div", zo, [
|
|
467
|
+
d("span", Lo, k(e.model.title), 1),
|
|
468
|
+
d("span", Fo, k(e.model.tooltip), 1)
|
|
468
469
|
])
|
|
469
470
|
], 2)), [
|
|
470
471
|
[s(N), { processEsc: !1 }]
|
|
@@ -477,7 +478,7 @@ const ze = { class: "svc-flex-column svc-flex-row__element svc-flex-row__element
|
|
|
477
478
|
])
|
|
478
479
|
]));
|
|
479
480
|
}
|
|
480
|
-
}),
|
|
481
|
+
}), Uo = /* @__PURE__ */ g({
|
|
481
482
|
__name: "QuestionError",
|
|
482
483
|
props: {
|
|
483
484
|
errorKey: {},
|
|
@@ -505,7 +506,7 @@ const ze = { class: "svc-flex-column svc-flex-row__element svc-flex-row__element
|
|
|
505
506
|
], 2)
|
|
506
507
|
]));
|
|
507
508
|
}
|
|
508
|
-
}),
|
|
509
|
+
}), Qo = ["title"], Ho = ["title"], Oo = ["title"], Go = ["title"], Wo = /* @__PURE__ */ g({
|
|
509
510
|
__name: "ActionButton",
|
|
510
511
|
props: {
|
|
511
512
|
classes: {},
|
|
@@ -520,22 +521,22 @@ const ze = { class: "svc-flex-column svc-flex-row__element svc-flex-row__element
|
|
|
520
521
|
setup(c) {
|
|
521
522
|
const t = c, e = (n) => {
|
|
522
523
|
t.click(), t.allowBubble || n.stopPropagation();
|
|
523
|
-
}, o = () => new
|
|
524
|
+
}, o = () => new Pe().append(t.classes || "").append("svc-action-button").append("svc-action-button--icon", !!t.iconName).append("svc-action-button--selected", !!t.selected).append("svc-action-button--disabled", !!t.disabled).toString();
|
|
524
525
|
return (n, r) => (a(), i(w, null, [
|
|
525
526
|
n.iconName ? p("", !0) : (a(), i(w, { key: 0 }, [
|
|
526
527
|
n.disabled ? (a(), i("span", {
|
|
527
528
|
key: 0,
|
|
528
529
|
class: m(["svc-action-button svc-action-button--disabled", n.classes]),
|
|
529
530
|
title: n.title
|
|
530
|
-
}, k(n.text), 11,
|
|
531
|
-
|
|
531
|
+
}, k(n.text), 11, Qo)) : p("", !0),
|
|
532
|
+
C((a(), i("span", {
|
|
532
533
|
role: "button",
|
|
533
534
|
class: m(["svc-action-button", o()]),
|
|
534
535
|
onClick: e,
|
|
535
536
|
title: n.title
|
|
536
537
|
}, [
|
|
537
538
|
be(k(n.text), 1)
|
|
538
|
-
], 10,
|
|
539
|
+
], 10, Ho)), [
|
|
539
540
|
[s(N)]
|
|
540
541
|
])
|
|
541
542
|
], 64)),
|
|
@@ -550,8 +551,8 @@ const ze = { class: "svc-flex-column svc-flex-row__element svc-flex-row__element
|
|
|
550
551
|
iconName: n.iconName,
|
|
551
552
|
size: "auto"
|
|
552
553
|
}, null, 8, ["iconName"])
|
|
553
|
-
], 10,
|
|
554
|
-
|
|
554
|
+
], 10, Oo)) : p("", !0),
|
|
555
|
+
C((a(), i("span", {
|
|
555
556
|
role: "button",
|
|
556
557
|
onClick: e,
|
|
557
558
|
class: m(o()),
|
|
@@ -562,28 +563,28 @@ const ze = { class: "svc-flex-column svc-flex-row__element svc-flex-row__element
|
|
|
562
563
|
iconName: n.iconName,
|
|
563
564
|
size: "auto"
|
|
564
565
|
}, null, 8, ["iconName"])
|
|
565
|
-
], 10,
|
|
566
|
+
], 10, Go)), [
|
|
566
567
|
[s(N)]
|
|
567
568
|
])
|
|
568
569
|
], 64)) : p("", !0)
|
|
569
570
|
], 64));
|
|
570
571
|
}
|
|
571
|
-
}),
|
|
572
|
-
|
|
573
|
-
],
|
|
572
|
+
}), jo = ["disabled", "title", "aria-checked", "aria-expanded", "role"], Jo = /* @__PURE__ */ d("div", { class: "svc-switcher__icon-thumb" }, null, -1), Zo = [
|
|
573
|
+
Jo
|
|
574
|
+
], Xo = {
|
|
574
575
|
key: 0,
|
|
575
576
|
class: "svc-switcher__title"
|
|
576
|
-
},
|
|
577
|
+
}, Yo = {
|
|
577
578
|
inheritAttrs: !1
|
|
578
|
-
},
|
|
579
|
-
...
|
|
579
|
+
}, xo = /* @__PURE__ */ g({
|
|
580
|
+
...Yo,
|
|
580
581
|
__name: "Switcher",
|
|
581
582
|
props: {
|
|
582
583
|
item: {}
|
|
583
584
|
},
|
|
584
585
|
setup(c) {
|
|
585
586
|
const t = c;
|
|
586
|
-
return T(() => t.item), (e, o) =>
|
|
587
|
+
return T(() => t.item), (e, o) => C((a(), i("button", {
|
|
587
588
|
class: m(e.item.getActionBarItemCss()),
|
|
588
589
|
type: "button",
|
|
589
590
|
onClick: o[0] || (o[0] = (n) => {
|
|
@@ -600,16 +601,16 @@ const ze = { class: "svc-flex-column svc-flex-row__element svc-flex-row__element
|
|
|
600
601
|
}, [
|
|
601
602
|
d("div", {
|
|
602
603
|
class: m(e.item.getSwitcherIconCss())
|
|
603
|
-
},
|
|
604
|
-
e.item.hasTitle ? (a(), i("span",
|
|
605
|
-
], 42,
|
|
604
|
+
}, Zo, 2),
|
|
605
|
+
e.item.hasTitle ? (a(), i("span", Xo, k(e.item.title), 1)) : p("", !0)
|
|
606
|
+
], 42, jo)), [
|
|
606
607
|
[s(N), { processEsc: !1, disableTabStop: e.item.disableTabStop }]
|
|
607
608
|
]);
|
|
608
609
|
}
|
|
609
|
-
}),
|
|
610
|
+
}), es = {
|
|
610
611
|
key: 0,
|
|
611
612
|
class: "svd-simulator-content"
|
|
612
|
-
},
|
|
613
|
+
}, os = { class: "svd-simulator-content" }, ss = /* @__PURE__ */ g({
|
|
613
614
|
__name: "Simulator",
|
|
614
615
|
props: {
|
|
615
616
|
model: {}
|
|
@@ -628,7 +629,7 @@ const ze = { class: "svc-flex-column svc-flex-row__element svc-flex-row__element
|
|
|
628
629
|
onMouseover: l[1] || (l[1] = (_) => o()),
|
|
629
630
|
onMouseout: l[2] || (l[2] = (_) => n())
|
|
630
631
|
}, [
|
|
631
|
-
r.model.hasFrame ? p("", !0) : (a(), i("div",
|
|
632
|
+
r.model.hasFrame ? p("", !0) : (a(), i("div", es, [
|
|
632
633
|
v(s(u), {
|
|
633
634
|
is: "survey-widget",
|
|
634
635
|
model: r.model.survey
|
|
@@ -651,7 +652,7 @@ const ze = { class: "svc-flex-column svc-flex-row__element svc-flex-row__element
|
|
|
651
652
|
transform: "scale(" + e.value.scale + ") translate(-50%, -50%)"
|
|
652
653
|
})
|
|
653
654
|
}, [
|
|
654
|
-
d("div",
|
|
655
|
+
d("div", os, [
|
|
655
656
|
v(s(u), {
|
|
656
657
|
is: "survey-widget",
|
|
657
658
|
model: r.model.survey
|
|
@@ -661,7 +662,7 @@ const ze = { class: "svc-flex-column svc-flex-row__element svc-flex-row__element
|
|
|
661
662
|
], 4)) : p("", !0)
|
|
662
663
|
], 34));
|
|
663
664
|
}
|
|
664
|
-
}),
|
|
665
|
+
}), ts = { class: "svc-surface-placeholder" }, ns = { class: "svc-surface-placeholder__text" }, as = { class: "svc-surface-placeholder__title" }, ls = { class: "svc-surface-placeholder__description" }, j = /* @__PURE__ */ g({
|
|
665
666
|
__name: "SurfacePlaceholder",
|
|
666
667
|
props: {
|
|
667
668
|
name: {},
|
|
@@ -670,20 +671,20 @@ const ze = { class: "svc-flex-column svc-flex-row__element svc-flex-row__element
|
|
|
670
671
|
},
|
|
671
672
|
setup(c) {
|
|
672
673
|
const t = c;
|
|
673
|
-
return (e, o) => (a(), i("div",
|
|
674
|
+
return (e, o) => (a(), i("div", ts, [
|
|
674
675
|
d("div", {
|
|
675
676
|
class: m(["svc-surface-placeholder__image", "svc-surface-placeholder__image--" + e.name])
|
|
676
677
|
}, null, 2),
|
|
677
|
-
d("div",
|
|
678
|
-
d("div",
|
|
679
|
-
d("div",
|
|
678
|
+
d("div", ns, [
|
|
679
|
+
d("div", as, k(t.placeholderTitleText), 1),
|
|
680
|
+
d("div", ls, k(t.placeholderDescriptionText), 1)
|
|
680
681
|
])
|
|
681
682
|
]));
|
|
682
683
|
}
|
|
683
|
-
}),
|
|
684
|
+
}), is = {
|
|
684
685
|
key: 2,
|
|
685
686
|
class: "svc-plugin-tab__content-actions svc-test-tab__content-actions"
|
|
686
|
-
},
|
|
687
|
+
}, rs = /* @__PURE__ */ g({
|
|
687
688
|
__name: "Test",
|
|
688
689
|
props: {
|
|
689
690
|
model: {}
|
|
@@ -695,7 +696,7 @@ const ze = { class: "svc-flex-column svc-flex-row__element svc-flex-row__element
|
|
|
695
696
|
"svc-creator-tab__content--with-toolbar": e.model.isPageToolbarVisible
|
|
696
697
|
}])
|
|
697
698
|
}, [
|
|
698
|
-
e.model.survey.isEmpty ? (a(),
|
|
699
|
+
e.model.survey.isEmpty ? (a(), y(j, {
|
|
699
700
|
key: 0,
|
|
700
701
|
name: "preview",
|
|
701
702
|
placeholderTitleText: e.model.placeholderTitleText,
|
|
@@ -710,13 +711,13 @@ const ze = { class: "svc-flex-column svc-flex-row__element svc-flex-row__element
|
|
|
710
711
|
is: "survey-simulator",
|
|
711
712
|
model: e.model.simulator
|
|
712
713
|
}, null, 8, ["model"]),
|
|
713
|
-
e.model.showResults ? (a(),
|
|
714
|
+
e.model.showResults ? (a(), y(s(u), {
|
|
714
715
|
key: 0,
|
|
715
716
|
is: "survey-results",
|
|
716
717
|
survey: e.model.survey
|
|
717
718
|
}, null, 8, ["survey"])) : p("", !0)
|
|
718
719
|
], 32)),
|
|
719
|
-
e.model.isPageToolbarVisible ? (a(), i("div",
|
|
720
|
+
e.model.isPageToolbarVisible ? (a(), i("div", is, [
|
|
720
721
|
v(s(u), {
|
|
721
722
|
is: "sv-action-bar",
|
|
722
723
|
model: e.model.pages
|
|
@@ -724,7 +725,7 @@ const ze = { class: "svc-flex-column svc-flex-row__element svc-flex-row__element
|
|
|
724
725
|
])) : p("", !0)
|
|
725
726
|
], 2));
|
|
726
727
|
}
|
|
727
|
-
}),
|
|
728
|
+
}), ds = { class: "svc-btn__text" }, cs = /* @__PURE__ */ g({
|
|
728
729
|
inheritAttrs: !1,
|
|
729
730
|
__name: "TestAgain",
|
|
730
731
|
props: {
|
|
@@ -732,19 +733,19 @@ const ze = { class: "svc-flex-column svc-flex-row__element svc-flex-row__element
|
|
|
732
733
|
},
|
|
733
734
|
setup(c) {
|
|
734
735
|
const t = c, e = $(() => t.model.testAgainAction);
|
|
735
|
-
return T(() => e.value), (o, n) =>
|
|
736
|
+
return T(() => e.value), (o, n) => C((a(), i("div", {
|
|
736
737
|
role: "button",
|
|
737
738
|
class: "svc-preview__test-again svc-btn",
|
|
738
739
|
onClick: n[0] || (n[0] = (r) => e.value.action())
|
|
739
740
|
}, [
|
|
740
|
-
d("span",
|
|
741
|
+
d("span", ds, k(e.value.title), 1)
|
|
741
742
|
])), [
|
|
742
743
|
[s(N)]
|
|
743
744
|
]);
|
|
744
745
|
}
|
|
745
746
|
});
|
|
746
747
|
function z(c, t, e) {
|
|
747
|
-
const o = ye(), n =
|
|
748
|
+
const o = ye(), n = W(
|
|
748
749
|
t.map((r) => () => r()),
|
|
749
750
|
() => {
|
|
750
751
|
o.value = c();
|
|
@@ -753,28 +754,28 @@ function z(c, t, e) {
|
|
|
753
754
|
immediate: !0
|
|
754
755
|
}
|
|
755
756
|
);
|
|
756
|
-
return T(() => o.value, void 0, e),
|
|
757
|
+
return T(() => o.value, void 0, e), Y(() => {
|
|
757
758
|
n();
|
|
758
759
|
}), o;
|
|
759
760
|
}
|
|
760
|
-
const
|
|
761
|
+
const us = {
|
|
761
762
|
key: 0,
|
|
762
763
|
class: "svd-test-results"
|
|
763
|
-
},
|
|
764
|
+
}, ps = { class: "svd-test-results__content" }, vs = { class: "svd-test-results__header" }, ms = { class: "svd-test-results__header-text" }, _s = { class: "svd-test-results__header-types" }, gs = { class: "svd-test-results__text svd-light-bg-color" }, bs = { class: "svd-test-results__table svd-light-bg-color" }, ys = { class: "svd-light-background-color" }, hs = { class: "svd-dark-border-color" }, Cs = { class: "svd-dark-border-color" }, qs = /* @__PURE__ */ g({
|
|
764
765
|
__name: "SurveyResults",
|
|
765
766
|
props: {
|
|
766
767
|
survey: {}
|
|
767
768
|
},
|
|
768
769
|
setup(c) {
|
|
769
770
|
const t = c, e = z(
|
|
770
|
-
() => t.survey ? new
|
|
771
|
+
() => t.survey ? new he(t.survey) : void 0,
|
|
771
772
|
[() => t.survey]
|
|
772
773
|
);
|
|
773
|
-
return (o, n) => s(e) ? (a(), i("div",
|
|
774
|
-
d("div",
|
|
775
|
-
d("div",
|
|
776
|
-
d("div",
|
|
777
|
-
d("div",
|
|
774
|
+
return (o, n) => s(e) ? (a(), i("div", us, [
|
|
775
|
+
d("div", ps, [
|
|
776
|
+
d("div", vs, [
|
|
777
|
+
d("div", ms, k(s(e).surveyResultsText), 1),
|
|
778
|
+
d("div", _s, [
|
|
778
779
|
v(s(u), {
|
|
779
780
|
is: "svc-action-button",
|
|
780
781
|
text: s(e).surveyResultsTableText,
|
|
@@ -791,21 +792,21 @@ const vs = {
|
|
|
791
792
|
}, null, 8, ["text", "click", "selected"])
|
|
792
793
|
])
|
|
793
794
|
]),
|
|
794
|
-
|
|
795
|
+
C(d("div", gs, [
|
|
795
796
|
d("div", null, k(s(e).resultText), 1)
|
|
796
797
|
], 512), [
|
|
797
798
|
[Q, s(e).resultViewType === "text"]
|
|
798
799
|
]),
|
|
799
|
-
|
|
800
|
+
C(d("div", bs, [
|
|
800
801
|
d("table", null, [
|
|
801
802
|
d("thead", null, [
|
|
802
|
-
d("tr",
|
|
803
|
-
d("th",
|
|
804
|
-
d("th",
|
|
803
|
+
d("tr", ys, [
|
|
804
|
+
d("th", hs, k(s(e).resultsTitle), 1),
|
|
805
|
+
d("th", Cs, k(s(e).resultsDisplayValue), 1)
|
|
805
806
|
])
|
|
806
807
|
]),
|
|
807
808
|
d("tbody", null, [
|
|
808
|
-
(a(!0), i(w, null, V(s(e).resultData, (r, l) => (a(),
|
|
809
|
+
(a(!0), i(w, null, V(s(e).resultData, (r, l) => (a(), y(s(u), {
|
|
809
810
|
is: "survey-results-table-row",
|
|
810
811
|
model: r,
|
|
811
812
|
key: l
|
|
@@ -818,7 +819,7 @@ const vs = {
|
|
|
818
819
|
])
|
|
819
820
|
])) : p("", !0);
|
|
820
821
|
}
|
|
821
|
-
}),
|
|
822
|
+
}), $s = { key: 2 }, ks = /* @__PURE__ */ g({
|
|
822
823
|
__name: "SurveyResultsRow",
|
|
823
824
|
props: {
|
|
824
825
|
model: {}
|
|
@@ -826,7 +827,7 @@ const vs = {
|
|
|
826
827
|
setup(c) {
|
|
827
828
|
const t = c;
|
|
828
829
|
return T(() => t.model), (e, o) => (a(), i(w, null, [
|
|
829
|
-
|
|
830
|
+
C((a(), i("tr", {
|
|
830
831
|
onClick: o[0] || (o[0] = //@ts-ignore
|
|
831
832
|
(...n) => e.model.toggle && e.model.toggle(...n))
|
|
832
833
|
}, [
|
|
@@ -845,11 +846,11 @@ const vs = {
|
|
|
845
846
|
size: 16
|
|
846
847
|
})
|
|
847
848
|
], 6)) : p("", !0),
|
|
848
|
-
e.model.question ? (a(),
|
|
849
|
+
e.model.question ? (a(), y(s(u), {
|
|
849
850
|
key: 1,
|
|
850
851
|
is: "survey-string",
|
|
851
852
|
locString: e.model.question.locTitle
|
|
852
|
-
}, null, 8, ["locString"])) : (a(), i("span",
|
|
853
|
+
}, null, 8, ["locString"])) : (a(), i("span", $s, k(e.model.title), 1))
|
|
853
854
|
], 4),
|
|
854
855
|
d("td", {
|
|
855
856
|
class: m({
|
|
@@ -860,28 +861,28 @@ const vs = {
|
|
|
860
861
|
])), [
|
|
861
862
|
[s(N)]
|
|
862
863
|
]),
|
|
863
|
-
e.model.isNode && !e.model.collapsed ? (a(!0), i(w, { key: 0 }, V(e.model.data, (n, r) => (a(),
|
|
864
|
+
e.model.isNode && !e.model.collapsed ? (a(!0), i(w, { key: 0 }, V(e.model.data, (n, r) => (a(), y(s(u), {
|
|
864
865
|
is: "survey-results-table-row",
|
|
865
866
|
model: n,
|
|
866
867
|
key: r + 1
|
|
867
868
|
}, null, 8, ["model"]))), 128)) : p("", !0)
|
|
868
869
|
], 64));
|
|
869
870
|
}
|
|
870
|
-
}),
|
|
871
|
+
}), fs = { class: "svc-creator-tab__content" }, ws = { class: "svc-json-editor-tab__content" }, Ts = { class: "svc-json-editor-tab__errros_list" }, Ds = /* @__PURE__ */ g({
|
|
871
872
|
__name: "JsonEditorAce",
|
|
872
873
|
props: {
|
|
873
874
|
model: {}
|
|
874
875
|
},
|
|
875
876
|
setup(c) {
|
|
876
877
|
const t = c, e = I();
|
|
877
|
-
return T(() => t.model), P(() => t.model.init(window.ace.edit(e.value))), (o, n) => (a(), i("div",
|
|
878
|
-
d("div",
|
|
878
|
+
return T(() => t.model), P(() => t.model.init(window.ace.edit(e.value))), (o, n) => (a(), i("div", fs, [
|
|
879
|
+
d("div", ws, [
|
|
879
880
|
d("div", {
|
|
880
881
|
class: "svc-json-editor-tab__ace-editor",
|
|
881
882
|
ref_key: "inputEl",
|
|
882
883
|
ref: e
|
|
883
884
|
}, null, 512),
|
|
884
|
-
|
|
885
|
+
C(d("div", Ts, [
|
|
885
886
|
v(s(u), {
|
|
886
887
|
is: "sv-list",
|
|
887
888
|
model: o.model.errorList
|
|
@@ -892,7 +893,7 @@ const vs = {
|
|
|
892
893
|
])
|
|
893
894
|
]));
|
|
894
895
|
}
|
|
895
|
-
}),
|
|
896
|
+
}), Ns = { class: "svc-creator-tab__content" }, Ms = { class: "svc-json-editor-tab__content" }, Ss = ["aria-label", "disabled"], Bs = { class: "svc-json-editor-tab__errros_list" }, Is = /* @__PURE__ */ g({
|
|
896
897
|
__name: "JsonEditorTextArea",
|
|
897
898
|
props: {
|
|
898
899
|
model: {}
|
|
@@ -902,9 +903,9 @@ const vs = {
|
|
|
902
903
|
return o.canShowErrors = !1, T(() => t.model), P(() => {
|
|
903
904
|
const n = t.model;
|
|
904
905
|
n.textElement = e.value;
|
|
905
|
-
}), (n, r) => (a(), i("div",
|
|
906
|
-
d("div",
|
|
907
|
-
|
|
906
|
+
}), (n, r) => (a(), i("div", Ns, [
|
|
907
|
+
d("div", Ms, [
|
|
908
|
+
C(d("textarea", {
|
|
908
909
|
class: "svc-json-editor-tab__content-area",
|
|
909
910
|
"aria-label": s(o).ariaLabel,
|
|
910
911
|
disabled: s(o).readOnly,
|
|
@@ -913,10 +914,10 @@ const vs = {
|
|
|
913
914
|
ref_key: "inputEl",
|
|
914
915
|
ref: e
|
|
915
916
|
}, `
|
|
916
|
-
`, 40,
|
|
917
|
+
`, 40, Ss), [
|
|
917
918
|
[de, s(o).text]
|
|
918
919
|
]),
|
|
919
|
-
|
|
920
|
+
C(d("div", Bs, [
|
|
920
921
|
v(s(u), {
|
|
921
922
|
is: "sv-list",
|
|
922
923
|
model: s(o).errorList
|
|
@@ -927,7 +928,7 @@ const vs = {
|
|
|
927
928
|
])
|
|
928
929
|
]));
|
|
929
930
|
}
|
|
930
|
-
}),
|
|
931
|
+
}), Es = { class: "svc-json-error__container" }, Ps = { class: "svc-json-error__title" }, Rs = ["title", "aria-label"], Vs = /* @__PURE__ */ g({
|
|
931
932
|
__name: "JsonEditorErrorItem",
|
|
932
933
|
props: {
|
|
933
934
|
item: {}
|
|
@@ -945,14 +946,14 @@ const vs = {
|
|
|
945
946
|
size: o.item.iconSize,
|
|
946
947
|
class: m("svc-json-error__icon")
|
|
947
948
|
}, null, 8, ["iconName", "size"]),
|
|
948
|
-
d("div",
|
|
949
|
-
d("div",
|
|
949
|
+
d("div", Es, [
|
|
950
|
+
d("div", Ps, [
|
|
950
951
|
v(s(u), {
|
|
951
952
|
is: "survey-string",
|
|
952
953
|
locString: o.item.locTitle
|
|
953
954
|
}, null, 8, ["locString"])
|
|
954
955
|
]),
|
|
955
|
-
o.item.data.showFixButton ?
|
|
956
|
+
o.item.data.showFixButton ? C((a(), i("button", {
|
|
956
957
|
key: 0,
|
|
957
958
|
type: "button",
|
|
958
959
|
onClick: e,
|
|
@@ -965,13 +966,13 @@ const vs = {
|
|
|
965
966
|
iconName: o.item.data.fixButtonIcon,
|
|
966
967
|
size: "auto"
|
|
967
968
|
}, null, 8, ["iconName"])
|
|
968
|
-
], 8,
|
|
969
|
+
], 8, Rs)), [
|
|
969
970
|
[s(N)]
|
|
970
971
|
]) : p("", !0)
|
|
971
972
|
])
|
|
972
973
|
], 64));
|
|
973
974
|
}
|
|
974
|
-
}),
|
|
975
|
+
}), As = { class: "svc-btn__text" }, te = /* @__PURE__ */ g({
|
|
975
976
|
__name: "LogicAddButton",
|
|
976
977
|
props: {
|
|
977
978
|
model: {}
|
|
@@ -982,29 +983,29 @@ const vs = {
|
|
|
982
983
|
const e = (o) => {
|
|
983
984
|
o.stopPropagation(), t.model.action();
|
|
984
985
|
};
|
|
985
|
-
return (o, n) =>
|
|
986
|
+
return (o, n) => C((a(), i("div", {
|
|
986
987
|
role: "button",
|
|
987
988
|
class: m(["svc-logic-tab__content-action svc-btn", {
|
|
988
989
|
"svc-logic-tab__content-action--disabled": o.model.enabled !== void 0 && !o.model.enabled
|
|
989
990
|
}]),
|
|
990
991
|
onClick: e
|
|
991
992
|
}, [
|
|
992
|
-
d("span",
|
|
993
|
+
d("span", As, k(o.model.title), 1)
|
|
993
994
|
], 2)), [
|
|
994
995
|
[s(N)]
|
|
995
996
|
]);
|
|
996
997
|
}
|
|
997
|
-
}),
|
|
998
|
+
}), zs = { class: "svc-creator-tab__content" }, Ls = {
|
|
998
999
|
key: 1,
|
|
999
1000
|
class: "svc-logic-tab__content-empty"
|
|
1000
|
-
},
|
|
1001
|
+
}, Fs = /* @__PURE__ */ g({
|
|
1001
1002
|
__name: "Logic",
|
|
1002
1003
|
props: {
|
|
1003
1004
|
model: {}
|
|
1004
1005
|
},
|
|
1005
1006
|
setup(c) {
|
|
1006
1007
|
const t = c;
|
|
1007
|
-
return T(() => t.model), (e, o) => (a(), i("div",
|
|
1008
|
+
return T(() => t.model), (e, o) => (a(), i("div", zs, [
|
|
1008
1009
|
d("div", {
|
|
1009
1010
|
class: m(["svc-plugin-tab__content svc-logic-tab__content", { "svc-logic-tab--empty": !e.model.hasItems }])
|
|
1010
1011
|
}, [
|
|
@@ -1012,18 +1013,18 @@ const vs = {
|
|
|
1012
1013
|
v(s(O), {
|
|
1013
1014
|
model: e.model.itemsSurvey
|
|
1014
1015
|
}, null, 8, ["model"]),
|
|
1015
|
-
e.model.readOnly ? p("", !0) : (a(),
|
|
1016
|
+
e.model.readOnly ? p("", !0) : (a(), y(te, {
|
|
1016
1017
|
key: 0,
|
|
1017
1018
|
model: e.model.addNewButton
|
|
1018
1019
|
}, null, 8, ["model"]))
|
|
1019
1020
|
], 64)) : p("", !0),
|
|
1020
|
-
e.model.hasItems ? p("", !0) : (a(), i("div",
|
|
1021
|
-
v(
|
|
1021
|
+
e.model.hasItems ? p("", !0) : (a(), i("div", Ls, [
|
|
1022
|
+
v(j, {
|
|
1022
1023
|
name: "logic",
|
|
1023
1024
|
placeholderTitleText: e.model.placeholderTitleText,
|
|
1024
1025
|
placeholderDescriptionText: e.model.placeholderDescriptionText
|
|
1025
1026
|
}, null, 8, ["placeholderTitleText", "placeholderDescriptionText"]),
|
|
1026
|
-
e.model.readOnly ? p("", !0) : (a(),
|
|
1027
|
+
e.model.readOnly ? p("", !0) : (a(), y(te, {
|
|
1027
1028
|
key: 0,
|
|
1028
1029
|
model: e.model.addNewButton
|
|
1029
1030
|
}, null, 8, ["model"]))
|
|
@@ -1031,21 +1032,21 @@ const vs = {
|
|
|
1031
1032
|
], 2)
|
|
1032
1033
|
]));
|
|
1033
1034
|
}
|
|
1034
|
-
}),
|
|
1035
|
-
|
|
1035
|
+
}), Ks = ["id", "required", "tabindex", "disabled", "role", "aria-required", "aria-invalid", "aria-errormessage", "aria-expanded", "aria-label", "aria-labelledby", "aria-controls"], Us = ["id"];
|
|
1036
|
+
ue.Instance.registerRenderer(
|
|
1036
1037
|
"dropdown",
|
|
1037
1038
|
"logicoperator",
|
|
1038
1039
|
"sv-logic-operator"
|
|
1039
1040
|
);
|
|
1040
|
-
const
|
|
1041
|
+
const Qs = /* @__PURE__ */ g({
|
|
1041
1042
|
__name: "LogicOperator",
|
|
1042
1043
|
props: {
|
|
1043
1044
|
question: {}
|
|
1044
1045
|
},
|
|
1045
1046
|
setup(c) {
|
|
1046
|
-
const t = c, e = I(), o = $(() => t.question.dropdownListModel ?? new
|
|
1047
|
+
const t = c, e = I(), o = $(() => t.question.dropdownListModel ?? new Re(t.question));
|
|
1047
1048
|
H(t, e, (l) => {
|
|
1048
|
-
|
|
1049
|
+
Ce(l);
|
|
1049
1050
|
});
|
|
1050
1051
|
const n = (l) => {
|
|
1051
1052
|
var _;
|
|
@@ -1078,13 +1079,13 @@ const Os = /* @__PURE__ */ g({
|
|
|
1078
1079
|
d("div", {
|
|
1079
1080
|
class: m(l.question.cssClasses.controlValue)
|
|
1080
1081
|
}, [
|
|
1081
|
-
l.question.locReadOnlyText ? (a(),
|
|
1082
|
+
l.question.locReadOnlyText ? (a(), y(s(u), {
|
|
1082
1083
|
key: 0,
|
|
1083
1084
|
is: "survey-string",
|
|
1084
1085
|
locString: l.question.locReadOnlyText
|
|
1085
1086
|
}, null, 8, ["locString"])) : p("", !0)
|
|
1086
1087
|
], 2)
|
|
1087
|
-
], 42,
|
|
1088
|
+
], 42, Ks),
|
|
1088
1089
|
v(s(u), {
|
|
1089
1090
|
is: "sv-popup",
|
|
1090
1091
|
model: l.question.popupModel
|
|
@@ -1096,15 +1097,15 @@ const Os = /* @__PURE__ */ g({
|
|
|
1096
1097
|
class: m(l.question.getControlClass()),
|
|
1097
1098
|
id: l.question.inputId
|
|
1098
1099
|
}, [
|
|
1099
|
-
l.question.locReadOnlyText ? (a(),
|
|
1100
|
+
l.question.locReadOnlyText ? (a(), y(s(u), {
|
|
1100
1101
|
key: 0,
|
|
1101
1102
|
is: "survey-string",
|
|
1102
1103
|
locString: l.question.locReadOnlyText
|
|
1103
1104
|
}, null, 8, ["locString"])) : p("", !0)
|
|
1104
|
-
], 10,
|
|
1105
|
+
], 10, Us)) : p("", !0)
|
|
1105
1106
|
], 2));
|
|
1106
1107
|
}
|
|
1107
|
-
}),
|
|
1108
|
+
}), Hs = /* @__PURE__ */ g({
|
|
1108
1109
|
__name: "EmbeddedSurvey",
|
|
1109
1110
|
props: {
|
|
1110
1111
|
question: {}
|
|
@@ -1113,21 +1114,21 @@ const Os = /* @__PURE__ */ g({
|
|
|
1113
1114
|
const t = c, e = I();
|
|
1114
1115
|
H(t, e);
|
|
1115
1116
|
const o = $(() => t.question.embeddedSurvey);
|
|
1116
|
-
return (n, r) => n.question && o.value && o.value.currentPage ? (a(),
|
|
1117
|
+
return (n, r) => n.question && o.value && o.value.currentPage ? (a(), y(s(u), {
|
|
1117
1118
|
key: 0,
|
|
1118
1119
|
is: "survey-page",
|
|
1119
1120
|
page: o.value.currentPage,
|
|
1120
1121
|
survey: o.value
|
|
1121
1122
|
}, null, 8, ["page", "survey"])) : p("", !0);
|
|
1122
1123
|
}
|
|
1123
|
-
}),
|
|
1124
|
+
}), Os = /* @__PURE__ */ g({
|
|
1124
1125
|
inheritAttrs: !1,
|
|
1125
1126
|
__name: "LinkValue",
|
|
1126
1127
|
props: {
|
|
1127
1128
|
question: {}
|
|
1128
1129
|
},
|
|
1129
1130
|
setup(c) {
|
|
1130
|
-
const t = c, e = I(), o =
|
|
1131
|
+
const t = c, e = I(), o = ce.getString("pe.clear");
|
|
1131
1132
|
return H(t, e), (n, r) => (a(), i(w, null, [
|
|
1132
1133
|
v(s(u), {
|
|
1133
1134
|
is: "svc-action-button",
|
|
@@ -1139,7 +1140,7 @@ const Os = /* @__PURE__ */ g({
|
|
|
1139
1140
|
title: n.question.tooltip,
|
|
1140
1141
|
iconName: n.question.iconName
|
|
1141
1142
|
}, null, 8, ["text", "click", "selected", "disabled", "classes", "title", "iconName"]),
|
|
1142
|
-
!n.question.isReadOnly && n.question.showClear ? (a(),
|
|
1143
|
+
!n.question.isReadOnly && n.question.showClear ? (a(), y(s(u), {
|
|
1143
1144
|
key: 0,
|
|
1144
1145
|
is: "svc-action-button",
|
|
1145
1146
|
text: s(o),
|
|
@@ -1149,10 +1150,10 @@ const Os = /* @__PURE__ */ g({
|
|
|
1149
1150
|
}, null, 8, ["text", "click", "classes"])) : p("", !0)
|
|
1150
1151
|
], 64));
|
|
1151
1152
|
}
|
|
1152
|
-
}),
|
|
1153
|
+
}), Gs = {
|
|
1153
1154
|
key: 1,
|
|
1154
1155
|
class: "st-content"
|
|
1155
|
-
},
|
|
1156
|
+
}, Ws = { class: "svc-flex-column st-strings-wrapper" }, js = { class: "svc-flex-row st-strings-header" }, Js = { class: "svc-flex-row svc-plugin-tab__content st-strings" }, Zs = /* @__PURE__ */ g({
|
|
1156
1157
|
__name: "Translation",
|
|
1157
1158
|
props: {
|
|
1158
1159
|
model: {}
|
|
@@ -1162,20 +1163,20 @@ const Os = /* @__PURE__ */ g({
|
|
|
1162
1163
|
return T(() => t.model), (e, o) => (a(), i("div", {
|
|
1163
1164
|
class: m(["svc-creator-tab__content svc-translation-tab", e.model.isEmpty ? "svc-translation-tab--empty" : ""])
|
|
1164
1165
|
}, [
|
|
1165
|
-
e.model.isEmpty ? (a(),
|
|
1166
|
+
e.model.isEmpty ? (a(), y(j, {
|
|
1166
1167
|
key: 0,
|
|
1167
1168
|
name: "translation",
|
|
1168
1169
|
placeholderTitleText: e.model.placeholderTitleText,
|
|
1169
1170
|
placeholderDescriptionText: e.model.placeholderDescriptionText
|
|
1170
1171
|
}, null, 8, ["placeholderTitleText", "placeholderDescriptionText"])) : p("", !0),
|
|
1171
|
-
e.model.isEmpty ? p("", !0) : (a(), i("div",
|
|
1172
|
-
d("div",
|
|
1173
|
-
d("div",
|
|
1172
|
+
e.model.isEmpty ? p("", !0) : (a(), i("div", Gs, [
|
|
1173
|
+
d("div", Ws, [
|
|
1174
|
+
d("div", js, [
|
|
1174
1175
|
v(s(O), {
|
|
1175
1176
|
model: e.model.stringsHeaderSurvey
|
|
1176
1177
|
}, null, 8, ["model"])
|
|
1177
1178
|
]),
|
|
1178
|
-
d("div",
|
|
1179
|
+
d("div", Js, [
|
|
1179
1180
|
v(s(O), {
|
|
1180
1181
|
model: e.model.stringsSurvey
|
|
1181
1182
|
}, null, 8, ["model"])
|
|
@@ -1184,16 +1185,16 @@ const Os = /* @__PURE__ */ g({
|
|
|
1184
1185
|
]))
|
|
1185
1186
|
], 2));
|
|
1186
1187
|
}
|
|
1187
|
-
}),
|
|
1188
|
+
}), Xs = (c, t) => {
|
|
1188
1189
|
const e = c.__vccOpts || c;
|
|
1189
1190
|
for (const [o, n] of t)
|
|
1190
1191
|
e[o] = n;
|
|
1191
1192
|
return e;
|
|
1192
|
-
},
|
|
1193
|
-
function
|
|
1194
|
-
return a(), i("div",
|
|
1193
|
+
}, Ys = {}, xs = { class: "sd-translation-line-skeleton" };
|
|
1194
|
+
function et(c, t) {
|
|
1195
|
+
return a(), i("div", xs);
|
|
1195
1196
|
}
|
|
1196
|
-
const
|
|
1197
|
+
const ot = /* @__PURE__ */ Xs(Ys, [["render", et]]), st = /* @__PURE__ */ g({
|
|
1197
1198
|
__name: "TranslateFromAction",
|
|
1198
1199
|
props: {
|
|
1199
1200
|
item: {}
|
|
@@ -1211,13 +1212,13 @@ const tt = /* @__PURE__ */ xs(et, [["render", st]]), nt = /* @__PURE__ */ g({
|
|
|
1211
1212
|
}, null, 8, ["item"])
|
|
1212
1213
|
], 2));
|
|
1213
1214
|
}
|
|
1214
|
-
}),
|
|
1215
|
+
}), tt = {
|
|
1215
1216
|
key: 1,
|
|
1216
1217
|
class: "svc-plugin-tab__content"
|
|
1217
|
-
},
|
|
1218
|
+
}, nt = {
|
|
1218
1219
|
key: 2,
|
|
1219
1220
|
class: "svc-plugin-tab__content-actions svc-test-tab__content-actions"
|
|
1220
|
-
},
|
|
1221
|
+
}, at = /* @__PURE__ */ g({
|
|
1221
1222
|
__name: "Theme",
|
|
1222
1223
|
props: {
|
|
1223
1224
|
model: {}
|
|
@@ -1229,24 +1230,24 @@ const tt = /* @__PURE__ */ xs(et, [["render", st]]), nt = /* @__PURE__ */ g({
|
|
|
1229
1230
|
"svc-creator-tab__content--with-toolbar": e.model.isPageToolbarVisible
|
|
1230
1231
|
}])
|
|
1231
1232
|
}, [
|
|
1232
|
-
e.model.survey.isEmpty ? (a(),
|
|
1233
|
+
e.model.survey.isEmpty ? (a(), y(j, {
|
|
1233
1234
|
key: 0,
|
|
1234
1235
|
name: "theme",
|
|
1235
1236
|
placeholderTitleText: e.model.placeholderTitleText,
|
|
1236
1237
|
placeholderDescriptionText: e.model.placeholderDescriptionText
|
|
1237
1238
|
}, null, 8, ["placeholderTitleText", "placeholderDescriptionText"])) : p("", !0),
|
|
1238
|
-
e.model.survey.isEmpty ? p("", !0) : (a(), i("div",
|
|
1239
|
+
e.model.survey.isEmpty ? p("", !0) : (a(), i("div", tt, [
|
|
1239
1240
|
v(s(u), {
|
|
1240
1241
|
is: "survey-simulator",
|
|
1241
1242
|
model: e.model.simulator
|
|
1242
1243
|
}, null, 8, ["model"]),
|
|
1243
|
-
e.model.showResults ? (a(),
|
|
1244
|
+
e.model.showResults ? (a(), y(s(u), {
|
|
1244
1245
|
key: 0,
|
|
1245
1246
|
is: "survey-results",
|
|
1246
1247
|
survey: e.model.survey
|
|
1247
1248
|
}, null, 8, ["survey"])) : p("", !0)
|
|
1248
1249
|
])),
|
|
1249
|
-
e.model.isPageToolbarVisible ? (a(), i("div",
|
|
1250
|
+
e.model.isPageToolbarVisible ? (a(), i("div", nt, [
|
|
1250
1251
|
v(s(u), {
|
|
1251
1252
|
is: "sv-action-bar",
|
|
1252
1253
|
model: e.model.pages
|
|
@@ -1254,7 +1255,7 @@ const tt = /* @__PURE__ */ xs(et, [["render", st]]), nt = /* @__PURE__ */ g({
|
|
|
1254
1255
|
])) : p("", !0)
|
|
1255
1256
|
], 2));
|
|
1256
1257
|
}
|
|
1257
|
-
}),
|
|
1258
|
+
}), lt = ["disabled", "value", "aria-required", "aria-labelledby", "aria-label", "aria-invalid", "aria-describedby"], it = ["disabled", "id", "placeholder", "aria-required", "aria-labelledby", "aria-label", "aria-invalid", "aria-describedby", "value"], rt = /* @__PURE__ */ g({
|
|
1258
1259
|
__name: "Color",
|
|
1259
1260
|
props: {
|
|
1260
1261
|
question: {}
|
|
@@ -1287,7 +1288,7 @@ const tt = /* @__PURE__ */ xs(et, [["render", st]]), nt = /* @__PURE__ */ g({
|
|
|
1287
1288
|
"aria-label": e.question.a11y_input_ariaLabel,
|
|
1288
1289
|
"aria-invalid": e.question.a11y_input_ariaInvalid,
|
|
1289
1290
|
"aria-describedby": e.question.a11y_input_ariaDescribedBy
|
|
1290
|
-
}, null, 42,
|
|
1291
|
+
}, null, 42, lt)
|
|
1291
1292
|
], 6),
|
|
1292
1293
|
d("input", {
|
|
1293
1294
|
autocomplete: "off",
|
|
@@ -1309,7 +1310,7 @@ const tt = /* @__PURE__ */ xs(et, [["render", st]]), nt = /* @__PURE__ */ g({
|
|
|
1309
1310
|
(...n) => e.question.onBeforeInput && e.question.onBeforeInput(...n)),
|
|
1310
1311
|
value: e.question.renderedValue,
|
|
1311
1312
|
class: m(e.question.cssClasses.control)
|
|
1312
|
-
}, null, 42,
|
|
1313
|
+
}, null, 42, it),
|
|
1313
1314
|
e.question.showDropdownAction ? (a(), i(w, { key: 0 }, [
|
|
1314
1315
|
d("div", {
|
|
1315
1316
|
"aria-hidden": "true",
|
|
@@ -1327,7 +1328,7 @@ const tt = /* @__PURE__ */ xs(et, [["render", st]]), nt = /* @__PURE__ */ g({
|
|
|
1327
1328
|
], 64)) : p("", !0)
|
|
1328
1329
|
], 34));
|
|
1329
1330
|
}
|
|
1330
|
-
}),
|
|
1331
|
+
}), dt = /* @__PURE__ */ g({
|
|
1331
1332
|
__name: "ColorItem",
|
|
1332
1333
|
props: {
|
|
1333
1334
|
model: {},
|
|
@@ -1348,7 +1349,7 @@ const tt = /* @__PURE__ */ xs(et, [["render", st]]), nt = /* @__PURE__ */ g({
|
|
|
1348
1349
|
}, null, 8, ["locString"])
|
|
1349
1350
|
], 64));
|
|
1350
1351
|
}
|
|
1351
|
-
}),
|
|
1352
|
+
}), ct = ["disabled", "value", "placeholder"], ut = ["disabled", "id", "aria-required", "aria-label", "aria-invalid", "aria-describedby", "title", "accept"], pt = ["title", "disabled"], vt = ["for", "aria-label"], mt = /* @__PURE__ */ g({
|
|
1352
1353
|
__name: "File",
|
|
1353
1354
|
props: {
|
|
1354
1355
|
question: {}
|
|
@@ -1380,7 +1381,7 @@ const tt = /* @__PURE__ */ xs(et, [["render", st]]), nt = /* @__PURE__ */ g({
|
|
|
1380
1381
|
onBlur: n[1] || (n[1] = //@ts-ignore
|
|
1381
1382
|
(...r) => o.question.onInputBlur && o.question.onInputBlur(...r)),
|
|
1382
1383
|
placeholder: o.question.renderedPlaceholder
|
|
1383
|
-
}, null, 42,
|
|
1384
|
+
}, null, 42, ct),
|
|
1384
1385
|
d("input", {
|
|
1385
1386
|
type: "file",
|
|
1386
1387
|
disabled: o.question.isInputReadOnly,
|
|
@@ -1396,11 +1397,11 @@ const tt = /* @__PURE__ */ xs(et, [["render", st]]), nt = /* @__PURE__ */ g({
|
|
|
1396
1397
|
accept: o.question.acceptedTypes,
|
|
1397
1398
|
onChange: n[2] || (n[2] = //@ts-ignore
|
|
1398
1399
|
(...r) => o.question.onFileInputChange && o.question.onFileInputChange(...r))
|
|
1399
|
-
}, null, 42,
|
|
1400
|
+
}, null, 42, ut),
|
|
1400
1401
|
d("div", {
|
|
1401
1402
|
class: m(o.question.cssClasses.buttonsContainer)
|
|
1402
1403
|
}, [
|
|
1403
|
-
|
|
1404
|
+
C((a(), i("button", {
|
|
1404
1405
|
title: o.question.clearButtonCaption,
|
|
1405
1406
|
class: m(o.question.cssClasses.clearButton),
|
|
1406
1407
|
disabled: o.question.getIsClearButtonDisabled(),
|
|
@@ -1412,10 +1413,10 @@ const tt = /* @__PURE__ */ xs(et, [["render", st]]), nt = /* @__PURE__ */ g({
|
|
|
1412
1413
|
iconName: o.question.cssClasses.clearButtonIcon,
|
|
1413
1414
|
size: "auto"
|
|
1414
1415
|
}, null, 8, ["iconName"])
|
|
1415
|
-
], 10,
|
|
1416
|
+
], 10, pt)), [
|
|
1416
1417
|
[s(N)]
|
|
1417
1418
|
]),
|
|
1418
|
-
|
|
1419
|
+
C((a(), i("label", {
|
|
1419
1420
|
class: m(o.question.getChooseButtonCss()),
|
|
1420
1421
|
for: o.question.inputId,
|
|
1421
1422
|
"aria-label": o.question.chooseButtonCaption,
|
|
@@ -1428,13 +1429,13 @@ const tt = /* @__PURE__ */ xs(et, [["render", st]]), nt = /* @__PURE__ */ g({
|
|
|
1428
1429
|
size: "auto",
|
|
1429
1430
|
title: o.question.chooseButtonCaption
|
|
1430
1431
|
}, null, 8, ["iconName", "title"])
|
|
1431
|
-
], 10,
|
|
1432
|
+
], 10, vt)), [
|
|
1432
1433
|
[s(N)]
|
|
1433
1434
|
])
|
|
1434
1435
|
], 2)
|
|
1435
1436
|
], 34));
|
|
1436
1437
|
}
|
|
1437
|
-
}),
|
|
1438
|
+
}), _t = ["disabled", "id", "placeholder", "aria-required", "aria-label", "aria-labelledby", "aria-describedby", "aria-invalid", "aria-errormessage", "value"], gt = ["disabled"], bt = ["disabled"], yt = /* @__PURE__ */ g({
|
|
1438
1439
|
__name: "SpinEditor",
|
|
1439
1440
|
props: {
|
|
1440
1441
|
question: {}
|
|
@@ -1471,7 +1472,7 @@ const tt = /* @__PURE__ */ xs(et, [["render", st]]), nt = /* @__PURE__ */ g({
|
|
|
1471
1472
|
(...n) => e.question.onBeforeInput && e.question.onBeforeInput(...n)),
|
|
1472
1473
|
value: e.question.renderedValue,
|
|
1473
1474
|
class: m(e.question.cssClasses.control)
|
|
1474
|
-
}, null, 42,
|
|
1475
|
+
}, null, 42, _t),
|
|
1475
1476
|
d("span", {
|
|
1476
1477
|
class: m(e.question.cssClasses.buttonsContainer)
|
|
1477
1478
|
}, [
|
|
@@ -1498,7 +1499,7 @@ const tt = /* @__PURE__ */ xs(et, [["render", st]]), nt = /* @__PURE__ */ g({
|
|
|
1498
1499
|
iconName: e.question.cssClasses.decreaseButtonIcon,
|
|
1499
1500
|
size: "auto"
|
|
1500
1501
|
}, null, 8, ["iconName"])
|
|
1501
|
-
], 42,
|
|
1502
|
+
], 42, gt),
|
|
1502
1503
|
d("button", {
|
|
1503
1504
|
"aria-hidden": "true",
|
|
1504
1505
|
disabled: e.question.isInputReadOnly,
|
|
@@ -1522,11 +1523,11 @@ const tt = /* @__PURE__ */ xs(et, [["render", st]]), nt = /* @__PURE__ */ g({
|
|
|
1522
1523
|
iconName: e.question.cssClasses.increaseButtonIcon,
|
|
1523
1524
|
size: "auto"
|
|
1524
1525
|
}, null, 8, ["iconName"])
|
|
1525
|
-
], 42,
|
|
1526
|
+
], 42, bt)
|
|
1526
1527
|
], 2)
|
|
1527
1528
|
], 34));
|
|
1528
1529
|
}
|
|
1529
|
-
}),
|
|
1530
|
+
}), ht = ["disabled", "title"], ne = /* @__PURE__ */ g({
|
|
1530
1531
|
__name: "TextWithReset",
|
|
1531
1532
|
props: {
|
|
1532
1533
|
question: {}
|
|
@@ -1552,23 +1553,23 @@ const tt = /* @__PURE__ */ xs(et, [["render", st]]), nt = /* @__PURE__ */ g({
|
|
|
1552
1553
|
iconName: o.question.cssClasses.resetButtonIcon,
|
|
1553
1554
|
size: "auto"
|
|
1554
1555
|
}, null, 8, ["iconName"])
|
|
1555
|
-
], 10,
|
|
1556
|
+
], 10, ht)
|
|
1556
1557
|
], 2));
|
|
1557
1558
|
}
|
|
1558
|
-
}),
|
|
1559
|
+
}), Ct = ["aria-checked", "aria-required", "aria-label", "aria-labelledby", "aria-invalid", "aria-errormessage"], qt = /* @__PURE__ */ d("div", { class: "spg-boolean-switch__thumb" }, [
|
|
1559
1560
|
/* @__PURE__ */ d("div", { class: "spg-boolean-switch__thumb-circle spg-boolean-switch__thumb--left" })
|
|
1560
|
-
], -1),
|
|
1561
|
+
], -1), $t = /* @__PURE__ */ d("div", { class: "spg-boolean-switch__thumb" }, [
|
|
1561
1562
|
/* @__PURE__ */ d("div", { class: "spg-boolean-switch__thumb-circle spg-boolean-switch__thumb--right" })
|
|
1562
|
-
], -1),
|
|
1563
|
-
|
|
1564
|
-
|
|
1565
|
-
],
|
|
1566
|
-
|
|
1563
|
+
], -1), kt = [
|
|
1564
|
+
qt,
|
|
1565
|
+
$t
|
|
1566
|
+
], ft = { class: "spg-boolean-switch__caption" }, wt = ["id"];
|
|
1567
|
+
ue.Instance.registerRenderer(
|
|
1567
1568
|
"boolean",
|
|
1568
1569
|
"switch",
|
|
1569
1570
|
"sv-boolean-switch"
|
|
1570
1571
|
);
|
|
1571
|
-
const
|
|
1572
|
+
const Tt = /* @__PURE__ */ g({
|
|
1572
1573
|
inheritAttrs: !1,
|
|
1573
1574
|
__name: "BooleanSwitch",
|
|
1574
1575
|
props: {
|
|
@@ -1597,13 +1598,13 @@ const Nt = /* @__PURE__ */ g({
|
|
|
1597
1598
|
"aria-errormessage": n.question.a11y_input_ariaErrormessage,
|
|
1598
1599
|
onClick: r[0] || (r[0] = (l) => o.value = !o.value)
|
|
1599
1600
|
}, [
|
|
1600
|
-
|
|
1601
|
+
C((a(), i("div", {
|
|
1601
1602
|
class: m(["spg-boolean-switch__button", n.question.value ? "spg-boolean-switch__button--checked" : ""]),
|
|
1602
1603
|
tabindex: "0"
|
|
1603
|
-
},
|
|
1604
|
+
}, kt, 2)), [
|
|
1604
1605
|
[s(N), { disableTabStop: !0 }]
|
|
1605
1606
|
]),
|
|
1606
|
-
d("div",
|
|
1607
|
+
d("div", ft, [
|
|
1607
1608
|
d("div", {
|
|
1608
1609
|
class: "spg-boolean-switch__title",
|
|
1609
1610
|
id: n.question.labelRenderedAriaID
|
|
@@ -1612,14 +1613,14 @@ const Nt = /* @__PURE__ */ g({
|
|
|
1612
1613
|
is: "survey-string",
|
|
1613
1614
|
locString: n.question.locTitle
|
|
1614
1615
|
}, null, 8, ["locString"])
|
|
1615
|
-
], 8,
|
|
1616
|
+
], 8, wt)
|
|
1616
1617
|
])
|
|
1617
|
-
], 8,
|
|
1618
|
+
], 8, Ct));
|
|
1618
1619
|
}
|
|
1619
|
-
}),
|
|
1620
|
+
}), Dt = { class: "svc-string-editor__content" }, Nt = /* @__PURE__ */ d("div", { class: "svc-string-editor__border svc-string-editor__border--hover" }, null, -1), Mt = /* @__PURE__ */ d("div", { class: "svc-string-editor__border svc-string-editor__border--focus" }, null, -1), St = { class: "svc-string-editor__input" }, Bt = ["textContent", "aria-placeholder", "aria-label", "contenteditable", "tabindex"], It = ["aria-placeholder", "aria-label", "contenteditable", "tabindex", "innerHTML"], Et = {
|
|
1620
1621
|
key: 0,
|
|
1621
1622
|
class: "svc-string-editor__error"
|
|
1622
|
-
},
|
|
1623
|
+
}, Pt = /* @__PURE__ */ g({
|
|
1623
1624
|
__name: "StringEditor",
|
|
1624
1625
|
props: {
|
|
1625
1626
|
locString: {}
|
|
@@ -1627,78 +1628,78 @@ const Nt = /* @__PURE__ */ g({
|
|
|
1627
1628
|
setup(c) {
|
|
1628
1629
|
const t = c, e = $(() => t.locString.locStr), o = $(() => t.locString.creator), n = I(), r = I(), l = z(
|
|
1629
1630
|
() => {
|
|
1630
|
-
const
|
|
1631
|
+
const h = new qe(
|
|
1631
1632
|
e.value,
|
|
1632
1633
|
o.value
|
|
1633
1634
|
);
|
|
1634
|
-
return
|
|
1635
|
+
return h.setLocString(e.value), h.blurEditor = () => {
|
|
1635
1636
|
n.value && (n.value.blur(), n.value.spellcheck = !1);
|
|
1636
|
-
},
|
|
1637
|
+
}, h.getEditorElement = () => n.value, setTimeout(() => h.afterRender()), h;
|
|
1637
1638
|
},
|
|
1638
1639
|
[() => o.value, () => e.value],
|
|
1639
|
-
(
|
|
1640
|
-
|
|
1640
|
+
(h) => {
|
|
1641
|
+
h && (h.blurEditor = void 0, h.getEditorElement = void 0, h.dispose());
|
|
1641
1642
|
}
|
|
1642
1643
|
), _ = $(() => {
|
|
1643
|
-
var
|
|
1644
|
-
return (
|
|
1645
|
-
}),
|
|
1646
|
-
var
|
|
1647
|
-
return (
|
|
1644
|
+
var h;
|
|
1645
|
+
return (h = l.value) == null ? void 0 : h.errorText;
|
|
1646
|
+
}), q = $(() => {
|
|
1647
|
+
var h;
|
|
1648
|
+
return (h = l.value) == null ? void 0 : h.className(e.value.renderedHtml);
|
|
1648
1649
|
}), b = $(() => {
|
|
1649
|
-
var
|
|
1650
|
-
return (
|
|
1650
|
+
var h;
|
|
1651
|
+
return (h = l.value) == null ? void 0 : h.placeholder;
|
|
1651
1652
|
}), f = $(() => {
|
|
1652
|
-
var
|
|
1653
|
-
return (
|
|
1653
|
+
var h;
|
|
1654
|
+
return (h = l.value) == null ? void 0 : h.contentEditable;
|
|
1654
1655
|
}), E = $(() => {
|
|
1655
|
-
var
|
|
1656
|
-
return (
|
|
1656
|
+
var h;
|
|
1657
|
+
return (h = l.value) == null ? void 0 : h.characterCounter;
|
|
1657
1658
|
}), R = $(
|
|
1658
1659
|
() => {
|
|
1659
|
-
var
|
|
1660
|
-
return (
|
|
1660
|
+
var h;
|
|
1661
|
+
return (h = l.value) == null ? void 0 : h.showCharacterCounter;
|
|
1661
1662
|
}
|
|
1662
1663
|
), L = $(
|
|
1663
1664
|
() => {
|
|
1664
|
-
var
|
|
1665
|
-
return (
|
|
1665
|
+
var h;
|
|
1666
|
+
return (h = l.value) == null ? void 0 : h.getCharacterCounterClass;
|
|
1666
1667
|
}
|
|
1667
|
-
),
|
|
1668
|
+
), J = (h) => {
|
|
1668
1669
|
var D, B;
|
|
1669
|
-
return n.value && (n.value.spellcheck = !1), e.value.__isEditing = !1, (D = l.value) == null || D.onBlur(
|
|
1670
|
-
}, U = (
|
|
1670
|
+
return n.value && (n.value.spellcheck = !1), e.value.__isEditing = !1, (D = l.value) == null || D.onBlur(h), (B = l.value) == null ? void 0 : B.errorText;
|
|
1671
|
+
}, U = (h) => {
|
|
1671
1672
|
var D;
|
|
1672
|
-
(D = l.value) == null || D.onFocus(
|
|
1673
|
-
}, ve = (
|
|
1673
|
+
(D = l.value) == null || D.onFocus(h);
|
|
1674
|
+
}, ve = (h) => {
|
|
1674
1675
|
var D;
|
|
1675
|
-
(D = l.value) == null || D.onPaste(
|
|
1676
|
-
}, se = (
|
|
1676
|
+
(D = l.value) == null || D.onPaste(h);
|
|
1677
|
+
}, se = (h) => {
|
|
1677
1678
|
var D, B;
|
|
1678
|
-
(D = n.value) == null || D.focus(), e.value.__isEditing = !0, (B = l.value) == null || B.onClick(
|
|
1679
|
-
},
|
|
1679
|
+
(D = n.value) == null || D.focus(), e.value.__isEditing = !0, (B = l.value) == null || B.onClick(h);
|
|
1680
|
+
}, Z = () => {
|
|
1680
1681
|
r.value = e.value.renderedHtml;
|
|
1681
|
-
}, me =
|
|
1682
|
+
}, me = W(
|
|
1682
1683
|
() => e.value,
|
|
1683
|
-
(
|
|
1684
|
-
D &&
|
|
1684
|
+
(h, D) => {
|
|
1685
|
+
D && h.onStringChanged.remove(Z), h && (h.onStringChanged.add(Z), Z());
|
|
1685
1686
|
},
|
|
1686
1687
|
{
|
|
1687
1688
|
immediate: !0
|
|
1688
1689
|
}
|
|
1689
1690
|
);
|
|
1690
1691
|
return P(() => {
|
|
1691
|
-
var
|
|
1692
|
-
e.value.__isEditing && ((
|
|
1692
|
+
var h;
|
|
1693
|
+
e.value.__isEditing && ((h = n.value) == null || h.focus());
|
|
1693
1694
|
}), K(() => {
|
|
1694
|
-
me(), e.value.onStringChanged.remove(
|
|
1695
|
-
}), (
|
|
1696
|
-
class: m(
|
|
1695
|
+
me(), e.value.onStringChanged.remove(Z);
|
|
1696
|
+
}), (h, D) => (a(), i("span", {
|
|
1697
|
+
class: m(q.value)
|
|
1697
1698
|
}, [
|
|
1698
|
-
d("span",
|
|
1699
|
-
|
|
1700
|
-
|
|
1701
|
-
d("span",
|
|
1699
|
+
d("span", Dt, [
|
|
1700
|
+
Nt,
|
|
1701
|
+
Mt,
|
|
1702
|
+
d("span", St, [
|
|
1702
1703
|
e.value.hasHtml ? p("", !0) : (a(), i("span", {
|
|
1703
1704
|
key: 0,
|
|
1704
1705
|
role: "textbox",
|
|
@@ -1706,7 +1707,7 @@ const Nt = /* @__PURE__ */ g({
|
|
|
1706
1707
|
spellcheck: "false",
|
|
1707
1708
|
onFocus: U,
|
|
1708
1709
|
onPaste: ve,
|
|
1709
|
-
onBlur:
|
|
1710
|
+
onBlur: J,
|
|
1710
1711
|
onInput: D[0] || (D[0] = //@ts-ignore
|
|
1711
1712
|
(...B) => {
|
|
1712
1713
|
var M, S;
|
|
@@ -1742,16 +1743,17 @@ const Nt = /* @__PURE__ */ g({
|
|
|
1742
1743
|
"aria-placeholder": b.value,
|
|
1743
1744
|
"aria-label": b.value || "content editable",
|
|
1744
1745
|
contenteditable: f.value,
|
|
1746
|
+
tabindex: s(l).tabIndex,
|
|
1745
1747
|
ref_key: "root",
|
|
1746
1748
|
ref: n
|
|
1747
|
-
}, null, 40,
|
|
1749
|
+
}, null, 40, Bt)),
|
|
1748
1750
|
e.value.hasHtml ? (a(), i("span", {
|
|
1749
1751
|
key: 1,
|
|
1750
1752
|
role: "textbox",
|
|
1751
1753
|
class: "sv-string-editor sv-string-editor--html",
|
|
1752
1754
|
spellcheck: "false",
|
|
1753
1755
|
onFocus: U,
|
|
1754
|
-
onBlur:
|
|
1756
|
+
onBlur: J,
|
|
1755
1757
|
onKeydown: D[6] || (D[6] = //@ts-ignore
|
|
1756
1758
|
(...B) => {
|
|
1757
1759
|
var M, S;
|
|
@@ -1781,11 +1783,12 @@ const Nt = /* @__PURE__ */ g({
|
|
|
1781
1783
|
"aria-placeholder": b.value,
|
|
1782
1784
|
"aria-label": b.value || "content editable",
|
|
1783
1785
|
contenteditable: f.value,
|
|
1786
|
+
tabindex: s(l).tabIndex,
|
|
1784
1787
|
innerHTML: r.value,
|
|
1785
1788
|
ref_key: "root",
|
|
1786
1789
|
ref: n
|
|
1787
|
-
}, null, 40,
|
|
1788
|
-
R.value ? (a(),
|
|
1790
|
+
}, null, 40, It)) : p("", !0),
|
|
1791
|
+
R.value ? (a(), y(s(u), {
|
|
1789
1792
|
key: 2,
|
|
1790
1793
|
is: "sv-character-counter",
|
|
1791
1794
|
counter: E.value,
|
|
@@ -1793,49 +1796,47 @@ const Nt = /* @__PURE__ */ g({
|
|
|
1793
1796
|
}, null, 8, ["counter", "remainingCharacterCounter"])) : p("", !0)
|
|
1794
1797
|
])
|
|
1795
1798
|
]),
|
|
1796
|
-
_.value ? (a(), i("span",
|
|
1799
|
+
_.value ? (a(), i("span", Et, k(_.value), 1)) : p("", !0)
|
|
1797
1800
|
], 2));
|
|
1798
1801
|
}
|
|
1799
|
-
}),
|
|
1802
|
+
}), Rt = {
|
|
1800
1803
|
key: 0,
|
|
1801
1804
|
class: "svc-toolbox__search-container"
|
|
1802
|
-
},
|
|
1805
|
+
}, Vt = /* @__PURE__ */ d("div", { class: "svc-toolbox__category-separator svc-toolbox__category-separator--search" }, null, -1), At = {
|
|
1803
1806
|
key: 1,
|
|
1804
1807
|
class: "svc-toolbox__placeholder"
|
|
1805
|
-
},
|
|
1808
|
+
}, zt = {
|
|
1806
1809
|
key: 1,
|
|
1807
1810
|
class: "svc-toolbox__category"
|
|
1808
|
-
},
|
|
1811
|
+
}, Lt = /* @__PURE__ */ g({
|
|
1809
1812
|
__name: "AdaptiveToolbox",
|
|
1810
1813
|
props: {
|
|
1811
1814
|
model: {}
|
|
1812
1815
|
},
|
|
1813
1816
|
setup(c) {
|
|
1814
1817
|
const t = c, e = $(() => t.model.toolbox), o = I();
|
|
1815
|
-
T(() => e.value)
|
|
1816
|
-
|
|
1817
|
-
P(() => {
|
|
1818
|
-
e.value.
|
|
1819
|
-
e.value.containerElement,
|
|
1820
|
-
e.value
|
|
1821
|
-
);
|
|
1818
|
+
T(() => e.value), G(() => {
|
|
1819
|
+
e.value.afterRender(o.value);
|
|
1820
|
+
}), P(() => {
|
|
1821
|
+
e.value.afterRender(o.value);
|
|
1822
1822
|
}), K(() => {
|
|
1823
|
-
|
|
1823
|
+
e.value.beforeDestroy();
|
|
1824
1824
|
});
|
|
1825
|
-
const
|
|
1826
|
-
return (
|
|
1825
|
+
const n = $(() => e.value.renderedActions);
|
|
1826
|
+
return (r, l) => (a(), i("div", {
|
|
1827
1827
|
class: m(e.value.classNames),
|
|
1828
1828
|
ref_key: "root",
|
|
1829
|
-
ref: o
|
|
1829
|
+
ref: o,
|
|
1830
|
+
style: F(e.value.getRootStyle())
|
|
1830
1831
|
}, [
|
|
1831
1832
|
d("div", {
|
|
1832
|
-
onFocusout:
|
|
1833
|
+
onFocusout: l[0] || (l[0] = (_) => e.value.focusOut(_)),
|
|
1833
1834
|
class: "svc-toolbox__panel"
|
|
1834
1835
|
}, [
|
|
1835
|
-
e.value.showSearch ? (a(), i("div",
|
|
1836
|
-
e.value.isCompactRendered ? (a(),
|
|
1836
|
+
e.value.showSearch ? (a(), i("div", Rt, [
|
|
1837
|
+
e.value.isCompactRendered ? (a(), y(s(u), {
|
|
1837
1838
|
is: "svc-toolbox-tool",
|
|
1838
|
-
creator:
|
|
1839
|
+
creator: r.model,
|
|
1839
1840
|
key: "searchitem",
|
|
1840
1841
|
item: e.value.searchItem,
|
|
1841
1842
|
parentModel: e.value,
|
|
@@ -1845,23 +1846,23 @@ const Nt = /* @__PURE__ */ g({
|
|
|
1845
1846
|
is: "svc-search",
|
|
1846
1847
|
model: e.value.searchManager
|
|
1847
1848
|
}, null, 8, ["model"]),
|
|
1848
|
-
|
|
1849
|
+
Vt
|
|
1849
1850
|
])) : p("", !0),
|
|
1850
|
-
e.value.showPlaceholder ? (a(), i("div",
|
|
1851
|
+
e.value.showPlaceholder ? (a(), i("div", At, k(e.value.toolboxNoResultsFound), 1)) : p("", !0),
|
|
1851
1852
|
v(s(u), { is: "sv-scroll" }, {
|
|
1852
|
-
default:
|
|
1853
|
-
e.value.showInSingleCategory ? p("", !0) : (a(!0), i(w, { key: 0 }, V(e.value.categories, (
|
|
1853
|
+
default: X(() => [
|
|
1854
|
+
e.value.showInSingleCategory ? p("", !0) : (a(!0), i(w, { key: 0 }, V(e.value.categories, (_, q) => (a(), y(s(u), {
|
|
1854
1855
|
is: "svc-toolbox-category",
|
|
1855
|
-
key:
|
|
1856
|
-
category:
|
|
1856
|
+
key: q,
|
|
1857
|
+
category: _,
|
|
1857
1858
|
toolbox: e.value
|
|
1858
1859
|
}, null, 8, ["category", "toolbox"]))), 128)),
|
|
1859
|
-
e.value.showInSingleCategory ? (a(), i("div",
|
|
1860
|
-
(a(!0), i(w, null, V(
|
|
1861
|
-
key:
|
|
1860
|
+
e.value.showInSingleCategory ? (a(), i("div", zt, [
|
|
1861
|
+
(a(!0), i(w, null, V(n.value, (_) => (a(), y(s(u), {
|
|
1862
|
+
key: _.renderedId,
|
|
1862
1863
|
is: "svc-toolbox-tool",
|
|
1863
|
-
creator:
|
|
1864
|
-
item:
|
|
1864
|
+
creator: r.model,
|
|
1865
|
+
item: _,
|
|
1865
1866
|
parentModel: e.value,
|
|
1866
1867
|
isCompact: e.value.isCompactRendered
|
|
1867
1868
|
}, null, 8, ["creator", "item", "parentModel", "isCompact"]))), 128))
|
|
@@ -1870,12 +1871,12 @@ const Nt = /* @__PURE__ */ g({
|
|
|
1870
1871
|
_: 1
|
|
1871
1872
|
})
|
|
1872
1873
|
], 32)
|
|
1873
|
-
],
|
|
1874
|
+
], 6));
|
|
1874
1875
|
}
|
|
1875
|
-
}),
|
|
1876
|
+
}), Ft = {
|
|
1876
1877
|
key: 0,
|
|
1877
1878
|
class: "svc-toolbox__category-separator"
|
|
1878
|
-
},
|
|
1879
|
+
}, Kt = /* @__PURE__ */ g({
|
|
1879
1880
|
__name: "ToolboxTool",
|
|
1880
1881
|
props: {
|
|
1881
1882
|
creator: {},
|
|
@@ -1885,7 +1886,7 @@ const Nt = /* @__PURE__ */ g({
|
|
|
1885
1886
|
},
|
|
1886
1887
|
setup(c) {
|
|
1887
1888
|
const t = c, e = z(
|
|
1888
|
-
() => new
|
|
1889
|
+
() => new $e(
|
|
1889
1890
|
t.item,
|
|
1890
1891
|
t.creator,
|
|
1891
1892
|
t.parentModel
|
|
@@ -1910,13 +1911,13 @@ const Nt = /* @__PURE__ */ g({
|
|
|
1910
1911
|
ref_key: "root",
|
|
1911
1912
|
ref: o
|
|
1912
1913
|
}, [
|
|
1913
|
-
n.item.needSeparator && !n.creator.toolbox.showCategoryTitles ? (a(), i("div",
|
|
1914
|
+
n.item.needSeparator && !n.creator.toolbox.showCategoryTitles ? (a(), i("div", Ft)) : p("", !0),
|
|
1914
1915
|
d("div", {
|
|
1915
1916
|
class: "svc-toolbox__tool-content sv-action__content",
|
|
1916
1917
|
onPointerdown: r[0] || (r[0] = //@ts-ignore
|
|
1917
1918
|
(..._) => {
|
|
1918
|
-
var
|
|
1919
|
-
return ((
|
|
1919
|
+
var q, b;
|
|
1920
|
+
return ((q = s(e)) == null ? void 0 : q.onPointerDown) && ((b = s(e)) == null ? void 0 : b.onPointerDown(..._));
|
|
1920
1921
|
})
|
|
1921
1922
|
}, [
|
|
1922
1923
|
v(s(u), {
|
|
@@ -1930,10 +1931,10 @@ const Nt = /* @__PURE__ */ g({
|
|
|
1930
1931
|
], 2);
|
|
1931
1932
|
};
|
|
1932
1933
|
}
|
|
1933
|
-
}),
|
|
1934
|
+
}), Ut = ["aria-label", "title"], Qt = { class: "svc-toolbox__item-container" }, Ht = {
|
|
1934
1935
|
key: 0,
|
|
1935
1936
|
class: "svc-toolbox__item-title"
|
|
1936
|
-
},
|
|
1937
|
+
}, Ot = /* @__PURE__ */ g({
|
|
1937
1938
|
__name: "ToolboxItem",
|
|
1938
1939
|
props: {
|
|
1939
1940
|
creator: {},
|
|
@@ -1943,15 +1944,15 @@ const Nt = /* @__PURE__ */ g({
|
|
|
1943
1944
|
},
|
|
1944
1945
|
setup(c) {
|
|
1945
1946
|
return (t, e) => (a(), i(w, null, [
|
|
1946
|
-
|
|
1947
|
+
C((a(), i("div", {
|
|
1947
1948
|
class: m(["svc-toolbox__item", t.item.renderedCss]),
|
|
1948
1949
|
role: "button",
|
|
1949
1950
|
"aria-label": t.item.tooltip,
|
|
1950
1951
|
title: t.item.tooltip,
|
|
1951
1952
|
onClick: e[0] || (e[0] = (o) => t.viewModel.click(o))
|
|
1952
1953
|
}, [
|
|
1953
|
-
d("span",
|
|
1954
|
-
t.item.iconName ? (a(),
|
|
1954
|
+
d("span", Qt, [
|
|
1955
|
+
t.item.iconName ? (a(), y(s(u), {
|
|
1955
1956
|
key: 0,
|
|
1956
1957
|
is: "sv-svg-icon",
|
|
1957
1958
|
iconName: t.item.iconName,
|
|
@@ -1959,8 +1960,8 @@ const Nt = /* @__PURE__ */ g({
|
|
|
1959
1960
|
class: "svc-toolbox__item-icon"
|
|
1960
1961
|
}, null, 8, ["iconName"])) : p("", !0)
|
|
1961
1962
|
]),
|
|
1962
|
-
t.isCompact ? p("", !0) : (a(), i("span",
|
|
1963
|
-
], 10,
|
|
1963
|
+
t.isCompact ? p("", !0) : (a(), i("span", Ht, k(t.item.title), 1))
|
|
1964
|
+
], 10, Ut)), [
|
|
1964
1965
|
[s(N)]
|
|
1965
1966
|
]),
|
|
1966
1967
|
t.isCompact ? (a(), i("span", {
|
|
@@ -1978,7 +1979,7 @@ const Nt = /* @__PURE__ */ g({
|
|
|
1978
1979
|
])) : p("", !0)
|
|
1979
1980
|
], 64));
|
|
1980
1981
|
}
|
|
1981
|
-
}),
|
|
1982
|
+
}), Gt = /* @__PURE__ */ g({
|
|
1982
1983
|
__name: "ToolboxItemGroup",
|
|
1983
1984
|
props: {
|
|
1984
1985
|
creator: {},
|
|
@@ -2017,10 +2018,10 @@ const Nt = /* @__PURE__ */ g({
|
|
|
2017
2018
|
], 32)
|
|
2018
2019
|
], 64));
|
|
2019
2020
|
}
|
|
2020
|
-
}),
|
|
2021
|
+
}), Wt = { className: "svc-toolbox__category-header-wrapper" }, jt = { class: "svc-toolbox__category-title" }, Jt = {
|
|
2021
2022
|
key: 0,
|
|
2022
2023
|
class: "svc-toolbox__category-header__controls"
|
|
2023
|
-
},
|
|
2024
|
+
}, Zt = /* @__PURE__ */ g({
|
|
2024
2025
|
__name: "ToolboxCategory",
|
|
2025
2026
|
props: {
|
|
2026
2027
|
category: {},
|
|
@@ -2034,15 +2035,15 @@ const Nt = /* @__PURE__ */ g({
|
|
|
2034
2035
|
"svc-toolbox__category--empty": e.category.empty
|
|
2035
2036
|
}])
|
|
2036
2037
|
}, [
|
|
2037
|
-
d("div",
|
|
2038
|
-
|
|
2038
|
+
d("div", Wt, [
|
|
2039
|
+
C((a(), i("div", {
|
|
2039
2040
|
class: m(["svc-toolbox__category-header", {
|
|
2040
2041
|
"svc-toolbox__category-header--collapsed": e.toolbox.canCollapseCategories
|
|
2041
2042
|
}]),
|
|
2042
2043
|
onClick: o[0] || (o[0] = (n) => e.category.toggleState())
|
|
2043
2044
|
}, [
|
|
2044
|
-
d("span",
|
|
2045
|
-
e.toolbox.canCollapseCategories ? (a(), i("div",
|
|
2045
|
+
d("span", jt, k(e.category.title), 1),
|
|
2046
|
+
e.toolbox.canCollapseCategories ? (a(), i("div", Jt, [
|
|
2046
2047
|
v(s(u), {
|
|
2047
2048
|
is: "sv-svg-icon",
|
|
2048
2049
|
iconName: e.category.iconName,
|
|
@@ -2054,7 +2055,7 @@ const Nt = /* @__PURE__ */ g({
|
|
|
2054
2055
|
[s(N)]
|
|
2055
2056
|
])
|
|
2056
2057
|
]),
|
|
2057
|
-
(a(!0), i(w, null, V(e.category.items, (n) => (a(),
|
|
2058
|
+
(a(!0), i(w, null, V(e.category.items, (n) => (a(), y(s(u), {
|
|
2058
2059
|
is: "svc-toolbox-tool",
|
|
2059
2060
|
item: n,
|
|
2060
2061
|
key: n.renderedId,
|
|
@@ -2064,7 +2065,7 @@ const Nt = /* @__PURE__ */ g({
|
|
|
2064
2065
|
}, null, 8, ["item", "creator", "parentModel"]))), 128))
|
|
2065
2066
|
], 2));
|
|
2066
2067
|
}
|
|
2067
|
-
}),
|
|
2068
|
+
}), Xt = /* @__PURE__ */ g({
|
|
2068
2069
|
__name: "ToolboxList",
|
|
2069
2070
|
props: {
|
|
2070
2071
|
model: {},
|
|
@@ -2075,7 +2076,7 @@ const Nt = /* @__PURE__ */ g({
|
|
|
2075
2076
|
return T(() => t.model), (o, n) => (a(), i("div", {
|
|
2076
2077
|
class: m(o.model.cssClasses.root)
|
|
2077
2078
|
}, [
|
|
2078
|
-
(a(!0), i(w, null, V(s(e), (r, l) => (a(),
|
|
2079
|
+
(a(!0), i(w, null, V(s(e), (r, l) => (a(), y(s(u), {
|
|
2079
2080
|
key: l,
|
|
2080
2081
|
is: "svc-toolbox-tool",
|
|
2081
2082
|
creator: o.creator,
|
|
@@ -2085,28 +2086,28 @@ const Nt = /* @__PURE__ */ g({
|
|
|
2085
2086
|
}, null, 8, ["creator", "item", "parentModel"]))), 128))
|
|
2086
2087
|
], 2));
|
|
2087
2088
|
}
|
|
2088
|
-
}),
|
|
2089
|
+
}), Yt = { class: "svc-flex-column" }, xt = { class: "svc-tab-designer_content" }, en = {
|
|
2089
2090
|
key: 0,
|
|
2090
2091
|
class: "svc-designer-header"
|
|
2091
|
-
},
|
|
2092
|
+
}, on = {
|
|
2092
2093
|
class: "svc-designer__placeholder-container",
|
|
2093
2094
|
"data-sv-drop-target-survey-element": "newGhostPage"
|
|
2094
|
-
},
|
|
2095
|
+
}, sn = {
|
|
2095
2096
|
className: "svc-designer-placeholder-page",
|
|
2096
2097
|
"data-sv-drop-target-survey-element": "newGhostPage"
|
|
2097
|
-
},
|
|
2098
|
+
}, tn = {
|
|
2098
2099
|
key: 0,
|
|
2099
2100
|
class: "svc-designer-header"
|
|
2100
|
-
},
|
|
2101
|
+
}, nn = ["data-sv-drop-target-survey-element", "data-sv-drop-target-page"], an = ["data-sv-drop-target-survey-element", "data-sv-drop-target-page"], ln = {
|
|
2101
2102
|
key: 0,
|
|
2102
2103
|
class: "svc-tab-designer__tools"
|
|
2103
|
-
},
|
|
2104
|
+
}, rn = {
|
|
2104
2105
|
key: 0,
|
|
2105
2106
|
class: "svc-tab-designer__page-navigator"
|
|
2106
|
-
},
|
|
2107
|
+
}, dn = {
|
|
2107
2108
|
key: 1,
|
|
2108
2109
|
class: "svc-tab-designer__toolbar"
|
|
2109
|
-
},
|
|
2110
|
+
}, cn = /* @__PURE__ */ g({
|
|
2110
2111
|
__name: "Designer",
|
|
2111
2112
|
props: {
|
|
2112
2113
|
model: {}
|
|
@@ -2114,8 +2115,8 @@ const Nt = /* @__PURE__ */ g({
|
|
|
2114
2115
|
setup(c) {
|
|
2115
2116
|
const t = c, e = $(() => t.model.survey);
|
|
2116
2117
|
return T(() => t.model), T(() => e.value), (o, n) => (a(), i(w, null, [
|
|
2117
|
-
d("div",
|
|
2118
|
-
o.model.isToolboxVisible ? (a(),
|
|
2118
|
+
d("div", Yt, [
|
|
2119
|
+
o.model.isToolboxVisible ? (a(), y(s(u), {
|
|
2119
2120
|
key: 0,
|
|
2120
2121
|
is: "svc-toolbox",
|
|
2121
2122
|
model: o.model.creator
|
|
@@ -2127,22 +2128,22 @@ const Nt = /* @__PURE__ */ g({
|
|
|
2127
2128
|
(...r) => o.model.clickDesigner && o.model.clickDesigner(...r))
|
|
2128
2129
|
}, [
|
|
2129
2130
|
v(s(u), { is: "sv-scroll" }, {
|
|
2130
|
-
default:
|
|
2131
|
-
d("div",
|
|
2131
|
+
default: X(() => [
|
|
2132
|
+
d("div", xt, [
|
|
2132
2133
|
o.model.showPlaceholder ? (a(), i(w, { key: 0 }, [
|
|
2133
|
-
o.model.creator.showHeaderInEmptySurvey && o.model.creator.allowEditSurveyTitle ? (a(), i("div",
|
|
2134
|
+
o.model.creator.showHeaderInEmptySurvey && o.model.creator.allowEditSurveyTitle ? (a(), i("div", en, [
|
|
2134
2135
|
v(s(u), {
|
|
2135
2136
|
is: "survey-header",
|
|
2136
2137
|
survey: o.model.creator.survey
|
|
2137
2138
|
}, null, 8, ["survey"])
|
|
2138
2139
|
])) : p("", !0),
|
|
2139
|
-
d("div",
|
|
2140
|
-
v(
|
|
2140
|
+
d("div", on, [
|
|
2141
|
+
v(j, {
|
|
2141
2142
|
name: "designer",
|
|
2142
2143
|
placeholderTitleText: o.model.placeholderTitleText,
|
|
2143
2144
|
placeholderDescriptionText: o.model.placeholderDescriptionText
|
|
2144
2145
|
}, null, 8, ["placeholderTitleText", "placeholderDescriptionText"]),
|
|
2145
|
-
d("div",
|
|
2146
|
+
d("div", sn, [
|
|
2146
2147
|
v(s(u), {
|
|
2147
2148
|
is: "svc-page",
|
|
2148
2149
|
survey: o.model.creator.survey,
|
|
@@ -2161,7 +2162,7 @@ const Nt = /* @__PURE__ */ g({
|
|
|
2161
2162
|
o.model.surfaceCssVariables
|
|
2162
2163
|
])
|
|
2163
2164
|
}, [
|
|
2164
|
-
o.model.creator.allowEditSurveyTitle ? (a(), i("div",
|
|
2165
|
+
o.model.creator.allowEditSurveyTitle ? (a(), i("div", tn, [
|
|
2165
2166
|
v(s(u), {
|
|
2166
2167
|
is: "survey-header",
|
|
2167
2168
|
survey: o.model.creator.survey
|
|
@@ -2180,7 +2181,7 @@ const Nt = /* @__PURE__ */ g({
|
|
|
2180
2181
|
page: r,
|
|
2181
2182
|
isGhost: r == o.model.newPage
|
|
2182
2183
|
}, null, 8, ["survey", "creator", "page", "isGhost"])
|
|
2183
|
-
], 8,
|
|
2184
|
+
], 8, nn))), 128)) : p("", !0),
|
|
2184
2185
|
o.model.pagesController.page2Display && o.model.creator.pageEditMode === "bypage" ? (a(), i("div", {
|
|
2185
2186
|
key: 2,
|
|
2186
2187
|
class: "svc-page",
|
|
@@ -2193,17 +2194,17 @@ const Nt = /* @__PURE__ */ g({
|
|
|
2193
2194
|
creator: o.model.creator,
|
|
2194
2195
|
isGhost: o.model.pagesController.page2Display == o.model.newPage
|
|
2195
2196
|
}, null, 8, ["page", "creator", "isGhost"])
|
|
2196
|
-
], 8,
|
|
2197
|
+
], 8, an)) : p("", !0)
|
|
2197
2198
|
], 6),
|
|
2198
|
-
o.model.showSurfaceTools ? (a(), i("div",
|
|
2199
|
-
o.model.creator.showPageNavigator ? (a(), i("div",
|
|
2199
|
+
o.model.showSurfaceTools ? (a(), i("div", ln, [
|
|
2200
|
+
o.model.creator.showPageNavigator ? (a(), i("div", rn, [
|
|
2200
2201
|
v(s(u), {
|
|
2201
2202
|
is: "svc-page-navigator",
|
|
2202
2203
|
pagesController: o.model.pagesController,
|
|
2203
2204
|
pageEditMode: o.model.creator.pageEditMode
|
|
2204
2205
|
}, null, 8, ["pagesController", "pageEditMode"])
|
|
2205
2206
|
])) : p("", !0),
|
|
2206
|
-
o.model.showSurfaceToolbar ? (a(), i("div",
|
|
2207
|
+
o.model.showSurfaceToolbar ? (a(), i("div", dn, [
|
|
2207
2208
|
v(s(u), {
|
|
2208
2209
|
is: "sv-action-bar",
|
|
2209
2210
|
model: o.model.surfaceToolbar
|
|
@@ -2218,16 +2219,16 @@ const Nt = /* @__PURE__ */ g({
|
|
|
2218
2219
|
], 2)
|
|
2219
2220
|
], 64));
|
|
2220
2221
|
}
|
|
2221
|
-
}),
|
|
2222
|
+
}), un = ["id", "data-sv-drop-target-survey-page"], pn = /* @__PURE__ */ d("div", { class: "svc-question__drop-indicator svc-question__drop-indicator--top" }, null, -1), vn = /* @__PURE__ */ d("div", { class: "svc-question__drop-indicator svc-question__drop-indicator--bottom" }, null, -1), mn = {
|
|
2222
2223
|
key: 1,
|
|
2223
2224
|
class: "svc-page__loading-content"
|
|
2224
|
-
},
|
|
2225
|
+
}, _n = {
|
|
2225
2226
|
key: 2,
|
|
2226
2227
|
class: "svc-page__placeholder_frame"
|
|
2227
|
-
},
|
|
2228
|
+
}, gn = { class: "svc-panel__placeholder_frame" }, bn = { class: "svc-panel__placeholder" }, yn = { class: "svc-page__content-actions" }, hn = {
|
|
2228
2229
|
key: 4,
|
|
2229
2230
|
class: "svc-page__content-actions"
|
|
2230
|
-
},
|
|
2231
|
+
}, Cn = /* @__PURE__ */ g({
|
|
2231
2232
|
__name: "Page",
|
|
2232
2233
|
props: {
|
|
2233
2234
|
creator: {},
|
|
@@ -2238,7 +2239,7 @@ const Nt = /* @__PURE__ */ g({
|
|
|
2238
2239
|
setup(c) {
|
|
2239
2240
|
const t = c, e = I(), o = z(
|
|
2240
2241
|
() => {
|
|
2241
|
-
const r = new
|
|
2242
|
+
const r = new ke(t.creator, t.page);
|
|
2242
2243
|
return r.isGhost = t.isGhost, r;
|
|
2243
2244
|
},
|
|
2244
2245
|
[() => t.page],
|
|
@@ -2246,12 +2247,12 @@ const Nt = /* @__PURE__ */ g({
|
|
|
2246
2247
|
r.dispose();
|
|
2247
2248
|
}
|
|
2248
2249
|
);
|
|
2249
|
-
|
|
2250
|
+
W(
|
|
2250
2251
|
() => t.isGhost,
|
|
2251
2252
|
() => {
|
|
2252
2253
|
o.value && (o.value.isGhost = t.isGhost);
|
|
2253
2254
|
}
|
|
2254
|
-
),
|
|
2255
|
+
), G(() => {
|
|
2255
2256
|
e.value && o.value && (o.value.rootElement = e.value);
|
|
2256
2257
|
}), P(() => {
|
|
2257
2258
|
e.value && o.value && o.value.setRootElement(e.value);
|
|
@@ -2259,7 +2260,7 @@ const Nt = /* @__PURE__ */ g({
|
|
|
2259
2260
|
const n = (r) => {
|
|
2260
2261
|
o.value.hover(r, r.currentTarget);
|
|
2261
2262
|
};
|
|
2262
|
-
return (r, l) => s(o).page ?
|
|
2263
|
+
return (r, l) => s(o).page ? C((a(), i("div", {
|
|
2263
2264
|
key: s(o).page.id,
|
|
2264
2265
|
id: s(o).page.id,
|
|
2265
2266
|
class: m(["svc-page__content", s(o).css]),
|
|
@@ -2273,20 +2274,20 @@ const Nt = /* @__PURE__ */ g({
|
|
|
2273
2274
|
onMouseover: n,
|
|
2274
2275
|
onMouseleave: n
|
|
2275
2276
|
}, [
|
|
2276
|
-
|
|
2277
|
-
|
|
2278
|
-
s(o).needRenderContent ? (a(),
|
|
2277
|
+
pn,
|
|
2278
|
+
vn,
|
|
2279
|
+
s(o).needRenderContent ? (a(), y(s(u), {
|
|
2279
2280
|
key: 0,
|
|
2280
2281
|
is: "survey-page",
|
|
2281
2282
|
survey: s(o).creator.survey,
|
|
2282
2283
|
page: s(o).page
|
|
2283
2284
|
}, null, 8, ["survey", "page"])) : p("", !0),
|
|
2284
|
-
s(o).needRenderContent ? p("", !0) : (a(), i("div",
|
|
2285
|
+
s(o).needRenderContent ? p("", !0) : (a(), i("div", mn, [
|
|
2285
2286
|
v(s(u), { is: "sv-loading-indicator" })
|
|
2286
2287
|
])),
|
|
2287
|
-
s(o).showPlaceholder ? (a(), i("div",
|
|
2288
|
-
d("div",
|
|
2289
|
-
d("div",
|
|
2288
|
+
s(o).showPlaceholder ? (a(), i("div", _n, [
|
|
2289
|
+
d("div", gn, [
|
|
2290
|
+
d("div", bn, k(s(o).placeholderText), 1)
|
|
2290
2291
|
])
|
|
2291
2292
|
])) : p("", !0),
|
|
2292
2293
|
s(o).allowDragging && !s(o).isGhost ? (a(), i("div", {
|
|
@@ -2302,24 +2303,24 @@ const Nt = /* @__PURE__ */ g({
|
|
|
2302
2303
|
iconName: "icon-drag-area-indicator_24x16",
|
|
2303
2304
|
size: "auto"
|
|
2304
2305
|
}), null, 16),
|
|
2305
|
-
d("div",
|
|
2306
|
+
d("div", yn, [
|
|
2306
2307
|
v(s(u), {
|
|
2307
2308
|
is: "sv-action-bar",
|
|
2308
2309
|
model: s(o).actionContainer
|
|
2309
2310
|
}, null, 8, ["model"]),
|
|
2310
|
-
s(o).topActionContainer.hasActions ? (a(),
|
|
2311
|
+
s(o).topActionContainer.hasActions ? (a(), y(s(u), {
|
|
2311
2312
|
key: 0,
|
|
2312
2313
|
is: "sv-action-bar",
|
|
2313
2314
|
model: s(o).topActionContainer
|
|
2314
2315
|
}, null, 8, ["model"])) : p("", !0)
|
|
2315
2316
|
])
|
|
2316
2317
|
], 32)) : p("", !0),
|
|
2317
|
-
!s(o).allowDragging || s(o).isGhost ? (a(), i("div",
|
|
2318
|
+
!s(o).allowDragging || s(o).isGhost ? (a(), i("div", hn, [
|
|
2318
2319
|
v(s(u), {
|
|
2319
2320
|
is: "sv-action-bar",
|
|
2320
2321
|
model: s(o).actionContainer
|
|
2321
2322
|
}, null, 8, ["model"]),
|
|
2322
|
-
s(o).topActionContainer.hasActions ? (a(),
|
|
2323
|
+
s(o).topActionContainer.hasActions ? (a(), y(s(u), {
|
|
2323
2324
|
key: 0,
|
|
2324
2325
|
is: "sv-action-bar",
|
|
2325
2326
|
model: s(o).topActionContainer
|
|
@@ -2329,11 +2330,11 @@ const Nt = /* @__PURE__ */ g({
|
|
|
2329
2330
|
is: "sv-action-bar",
|
|
2330
2331
|
model: s(o).footerActionsBar
|
|
2331
2332
|
}, null, 8, ["model"])
|
|
2332
|
-
], 42,
|
|
2333
|
+
], 42, un)), [
|
|
2333
2334
|
[s(N)]
|
|
2334
2335
|
]) : p("", !0);
|
|
2335
2336
|
}
|
|
2336
|
-
}),
|
|
2337
|
+
}), qn = { class: "svc-add-new-item-button__text" }, $n = /* @__PURE__ */ g({
|
|
2337
2338
|
__name: "AddQuestion",
|
|
2338
2339
|
props: {
|
|
2339
2340
|
item: {},
|
|
@@ -2349,7 +2350,7 @@ const Nt = /* @__PURE__ */ g({
|
|
|
2349
2350
|
() => t.renderPopup === void 0 || t.renderPopup !== !1
|
|
2350
2351
|
);
|
|
2351
2352
|
return (n, r) => (a(), i(w, null, [
|
|
2352
|
-
|
|
2353
|
+
C((a(), i("div", {
|
|
2353
2354
|
class: m(e.value),
|
|
2354
2355
|
onClick: r[0] || (r[0] = (l) => {
|
|
2355
2356
|
n.item.data.addNewQuestion(n.item, l), l.stopPropagation();
|
|
@@ -2362,8 +2363,8 @@ const Nt = /* @__PURE__ */ g({
|
|
|
2362
2363
|
iconName: "icon-add_24x24",
|
|
2363
2364
|
size: "auto"
|
|
2364
2365
|
}),
|
|
2365
|
-
d("span",
|
|
2366
|
-
o.value ? (a(),
|
|
2366
|
+
d("span", qn, k(n.item.data.addNewQuestionText), 1),
|
|
2367
|
+
o.value ? (a(), y(s(u), {
|
|
2367
2368
|
key: 0,
|
|
2368
2369
|
is: "svc-add-question-type-selector",
|
|
2369
2370
|
questionTypeSelectorModel: n.item.data.questionTypeSelectorModel,
|
|
@@ -2372,7 +2373,7 @@ const Nt = /* @__PURE__ */ g({
|
|
|
2372
2373
|
], 34)), [
|
|
2373
2374
|
[s(N)]
|
|
2374
2375
|
]),
|
|
2375
|
-
o.value ? p("", !0) : (a(),
|
|
2376
|
+
o.value ? p("", !0) : (a(), y(s(u), {
|
|
2376
2377
|
key: 0,
|
|
2377
2378
|
is: "svc-add-question-type-selector",
|
|
2378
2379
|
questionTypeSelectorModel: n.item.data.questionTypeSelectorModel,
|
|
@@ -2380,7 +2381,7 @@ const Nt = /* @__PURE__ */ g({
|
|
|
2380
2381
|
}, null, 8, ["questionTypeSelectorModel", "renderPopup"]))
|
|
2381
2382
|
], 64));
|
|
2382
2383
|
}
|
|
2383
|
-
}),
|
|
2384
|
+
}), kn = ["title", "aria-label"], fn = /* @__PURE__ */ g({
|
|
2384
2385
|
__name: "AddQuestionTypeSelector",
|
|
2385
2386
|
props: {
|
|
2386
2387
|
questionTypeSelectorModel: {},
|
|
@@ -2388,7 +2389,7 @@ const Nt = /* @__PURE__ */ g({
|
|
|
2388
2389
|
},
|
|
2389
2390
|
setup(c) {
|
|
2390
2391
|
const t = c;
|
|
2391
|
-
return T(() => t.questionTypeSelectorModel), (e, o) =>
|
|
2392
|
+
return T(() => t.questionTypeSelectorModel), (e, o) => C((a(), i("button", {
|
|
2392
2393
|
type: "button",
|
|
2393
2394
|
onClick: o[0] || (o[0] = (n) => {
|
|
2394
2395
|
e.questionTypeSelectorModel.action(), n.stopPropagation();
|
|
@@ -2405,23 +2406,23 @@ const Nt = /* @__PURE__ */ g({
|
|
|
2405
2406
|
size: "auto",
|
|
2406
2407
|
title: e.questionTypeSelectorModel.title
|
|
2407
2408
|
}), null, 16),
|
|
2408
|
-
e.renderPopup ? (a(),
|
|
2409
|
+
e.renderPopup ? (a(), y(s(u), {
|
|
2409
2410
|
key: 0,
|
|
2410
2411
|
is: "sv-popup",
|
|
2411
2412
|
model: e.questionTypeSelectorModel.popupModel
|
|
2412
2413
|
}, null, 8, ["model"])) : p("", !0)
|
|
2413
|
-
], 8,
|
|
2414
|
+
], 8, kn)), [
|
|
2414
2415
|
[s(N)]
|
|
2415
2416
|
]);
|
|
2416
2417
|
}
|
|
2417
|
-
}),
|
|
2418
|
+
}), wn = /* @__PURE__ */ d("div", { class: "svc-row__drop-indicator svc-row__drop-indicator--top" }, null, -1), Tn = /* @__PURE__ */ d("div", { class: "svc-row__drop-indicator svc-row__drop-indicator--bottom" }, null, -1), Dn = /* @__PURE__ */ g({
|
|
2418
2419
|
__name: "Row",
|
|
2419
2420
|
props: {
|
|
2420
2421
|
componentData: {}
|
|
2421
2422
|
},
|
|
2422
2423
|
setup(c) {
|
|
2423
2424
|
const t = c, e = $(() => t.componentData.creator), o = $(() => t.componentData.row), n = z(
|
|
2424
|
-
() => new
|
|
2425
|
+
() => new fe(e.value, o.value, void 0),
|
|
2425
2426
|
[() => e.value, () => o.value],
|
|
2426
2427
|
(r) => {
|
|
2427
2428
|
r.dispose();
|
|
@@ -2434,15 +2435,15 @@ const Nt = /* @__PURE__ */ g({
|
|
|
2434
2435
|
}), (r, l) => (a(), i("div", {
|
|
2435
2436
|
class: m(s(n).cssClasses)
|
|
2436
2437
|
}, [
|
|
2437
|
-
|
|
2438
|
-
|
|
2438
|
+
wn,
|
|
2439
|
+
Tn,
|
|
2439
2440
|
x(r.$slots, "default")
|
|
2440
2441
|
], 2));
|
|
2441
2442
|
}
|
|
2442
|
-
}),
|
|
2443
|
+
}), Nn = ["data-sv-drop-target-survey-element"], Mn = { class: "svc-fake-title" }, Sn = /* @__PURE__ */ d("div", { class: "svc-question__drop-indicator svc-question__drop-indicator--left" }, null, -1), Bn = /* @__PURE__ */ d("div", { class: "svc-question__drop-indicator svc-question__drop-indicator--right" }, null, -1), In = /* @__PURE__ */ d("div", { class: "svc-question__drop-indicator svc-question__drop-indicator--top" }, null, -1), En = /* @__PURE__ */ d("div", { class: "svc-question__drop-indicator svc-question__drop-indicator--bottom" }, null, -1), Pn = { class: "svc-question__top-actions" }, Rn = {
|
|
2443
2444
|
key: 0,
|
|
2444
2445
|
class: "svc-panel__placeholder_frame-wrapper"
|
|
2445
|
-
},
|
|
2446
|
+
}, Vn = { class: "svc-panel__placeholder_frame" }, An = {
|
|
2446
2447
|
class: "svc-panel__placeholder",
|
|
2447
2448
|
"data-bind": "text: placeholderText"
|
|
2448
2449
|
}, oe = /* @__PURE__ */ g({
|
|
@@ -2467,7 +2468,7 @@ const Nt = /* @__PURE__ */ g({
|
|
|
2467
2468
|
), n = $(
|
|
2468
2469
|
() => o.value.isBannerShowing ? o.value.createBannerParams() : null
|
|
2469
2470
|
);
|
|
2470
|
-
|
|
2471
|
+
G(() => {
|
|
2471
2472
|
e.value && o.value && (o.value.rootElement = e.value);
|
|
2472
2473
|
}), P(() => {
|
|
2473
2474
|
e.value && o.value && (o.value.rootElement = e.value);
|
|
@@ -2480,9 +2481,9 @@ const Nt = /* @__PURE__ */ g({
|
|
|
2480
2481
|
class: m(["svc-question__adorner", s(o).rootCss()]),
|
|
2481
2482
|
ref_key: "root",
|
|
2482
2483
|
ref: e,
|
|
2483
|
-
onDblclick: _[2] || (_[2] = (
|
|
2484
|
-
onMouseover: _[3] || (_[3] = (
|
|
2485
|
-
onMouseleave: _[4] || (_[4] = (
|
|
2484
|
+
onDblclick: _[2] || (_[2] = (q) => s(o).dblclick(q)),
|
|
2485
|
+
onMouseover: _[3] || (_[3] = (q) => s(o).hover(q, q.currentTarget)),
|
|
2486
|
+
onMouseleave: _[4] || (_[4] = (q) => s(o).hover(q, q.currentTarget)),
|
|
2486
2487
|
"data-sv-drop-target-survey-element": s(o).element.name || null,
|
|
2487
2488
|
"data-bind": "css: rootCss(), attr: { 'data-sv-drop-target-survey-element': element.name || null }, event: { mouseover: function(m, e) { hover(e, $element); }, mouseleave: function(m, e) { hover(e, $element); } }"
|
|
2488
2489
|
}, [
|
|
@@ -2490,7 +2491,7 @@ const Nt = /* @__PURE__ */ g({
|
|
|
2490
2491
|
key: 0,
|
|
2491
2492
|
class: m(s(o).cssCollapsedHiddenHeader)
|
|
2492
2493
|
}, [
|
|
2493
|
-
l.element.hasTitle ? (a(),
|
|
2494
|
+
l.element.hasTitle ? (a(), y(s(u), {
|
|
2494
2495
|
key: 0,
|
|
2495
2496
|
is: "survey-element-title",
|
|
2496
2497
|
element: l.element
|
|
@@ -2498,23 +2499,23 @@ const Nt = /* @__PURE__ */ g({
|
|
|
2498
2499
|
key: 1,
|
|
2499
2500
|
class: m(s(o).cssCollapsedHiddenTitle)
|
|
2500
2501
|
}, [
|
|
2501
|
-
d("span",
|
|
2502
|
+
d("span", Mn, k(l.element.name), 1)
|
|
2502
2503
|
], 2))
|
|
2503
2504
|
], 2)) : p("", !0),
|
|
2504
|
-
|
|
2505
|
-
onClick: _[1] || (_[1] = (
|
|
2506
|
-
s(o).select(s(o),
|
|
2505
|
+
C((a(), i("div", {
|
|
2506
|
+
onClick: _[1] || (_[1] = (q) => {
|
|
2507
|
+
s(o).select(s(o), q), q.stopPropagation();
|
|
2507
2508
|
}),
|
|
2508
2509
|
class: m(s(o).css())
|
|
2509
2510
|
}, [
|
|
2511
|
+
Sn,
|
|
2512
|
+
Bn,
|
|
2510
2513
|
In,
|
|
2511
2514
|
En,
|
|
2512
|
-
Pn,
|
|
2513
|
-
Rn,
|
|
2514
2515
|
s(o).allowDragging ? (a(), i("div", {
|
|
2515
2516
|
key: 0,
|
|
2516
2517
|
class: "svc-question__drag-area",
|
|
2517
|
-
onPointerdown: _[0] || (_[0] = (
|
|
2518
|
+
onPointerdown: _[0] || (_[0] = (q) => s(o).onPointerDown(q))
|
|
2518
2519
|
}, [
|
|
2519
2520
|
v(s(u), A({
|
|
2520
2521
|
is: "sv-svg-icon",
|
|
@@ -2524,7 +2525,7 @@ const Nt = /* @__PURE__ */ g({
|
|
|
2524
2525
|
iconName: "icon-drag-area-indicator_24x16",
|
|
2525
2526
|
size: "auto"
|
|
2526
2527
|
}), null, 16),
|
|
2527
|
-
d("div",
|
|
2528
|
+
d("div", Pn, [
|
|
2528
2529
|
v(s(u), {
|
|
2529
2530
|
is: "sv-action-bar",
|
|
2530
2531
|
model: s(o).topActionContainer,
|
|
@@ -2538,25 +2539,25 @@ const Nt = /* @__PURE__ */ g({
|
|
|
2538
2539
|
componentName: l.componentName,
|
|
2539
2540
|
componentData: l.componentData
|
|
2540
2541
|
}, null, 8, ["componentName", "componentData"]),
|
|
2541
|
-
s(o).isEmptyElement && !l.showPlaceholderComponent ? (a(), i("div",
|
|
2542
|
-
d("div",
|
|
2543
|
-
d("div",
|
|
2542
|
+
s(o).isEmptyElement && !l.showPlaceholderComponent ? (a(), i("div", Rn, [
|
|
2543
|
+
d("div", Vn, [
|
|
2544
|
+
d("div", An, k(s(o).placeholderText), 1)
|
|
2544
2545
|
])
|
|
2545
2546
|
])) : p("", !0),
|
|
2546
|
-
s(o).isEmptyElement && l.showPlaceholderComponent ? (a(),
|
|
2547
|
+
s(o).isEmptyElement && l.showPlaceholderComponent ? (a(), y(s(u), A(
|
|
2547
2548
|
{
|
|
2548
2549
|
key: 1,
|
|
2549
2550
|
is: l.placeholderComponent
|
|
2550
2551
|
},
|
|
2551
2552
|
l.getPlaceholderComponentData && l.getPlaceholderComponentData(s(o))
|
|
2552
2553
|
), null, 16, ["is"])) : p("", !0),
|
|
2553
|
-
l.adornerComponent ? (a(),
|
|
2554
|
+
l.adornerComponent ? (a(), y(s(u), {
|
|
2554
2555
|
key: 2,
|
|
2555
2556
|
is: l.adornerComponent,
|
|
2556
2557
|
model: s(o),
|
|
2557
2558
|
element: l.element
|
|
2558
2559
|
}, null, 8, ["is", "model", "element"])) : p("", !0),
|
|
2559
|
-
s(o).isBannerShowing ? (a(),
|
|
2560
|
+
s(o).isBannerShowing ? (a(), y(s(u), {
|
|
2560
2561
|
key: 3,
|
|
2561
2562
|
is: "svc-question-banner",
|
|
2562
2563
|
model: n.value
|
|
@@ -2575,7 +2576,7 @@ const Nt = /* @__PURE__ */ g({
|
|
|
2575
2576
|
], 2)), [
|
|
2576
2577
|
[s(N), { disableTabStop: !0 }]
|
|
2577
2578
|
])
|
|
2578
|
-
], 42,
|
|
2579
|
+
], 42, Nn)) : p("", !0);
|
|
2579
2580
|
}
|
|
2580
2581
|
}), ae = /* @__PURE__ */ g({
|
|
2581
2582
|
__name: "Question",
|
|
@@ -2589,28 +2590,28 @@ const Nt = /* @__PURE__ */ g({
|
|
|
2589
2590
|
t.componentData.element,
|
|
2590
2591
|
null
|
|
2591
2592
|
);
|
|
2592
|
-
return (o, n) => (a(),
|
|
2593
|
+
return (o, n) => (a(), y(oe, {
|
|
2593
2594
|
createModel: e,
|
|
2594
2595
|
element: o.componentData.element,
|
|
2595
2596
|
"component-name": o.componentName,
|
|
2596
2597
|
"component-data": o.componentData
|
|
2597
2598
|
}, null, 8, ["element", "component-name", "component-data"]));
|
|
2598
2599
|
}
|
|
2599
|
-
}),
|
|
2600
|
+
}), zn = /* @__PURE__ */ g({
|
|
2600
2601
|
__name: "QuestionImage",
|
|
2601
2602
|
props: {
|
|
2602
2603
|
componentName: {},
|
|
2603
2604
|
componentData: {}
|
|
2604
2605
|
},
|
|
2605
2606
|
setup(c) {
|
|
2606
|
-
const t = c, e = () => new
|
|
2607
|
+
const t = c, e = () => new we(
|
|
2607
2608
|
t.componentData.data,
|
|
2608
2609
|
t.componentData.element,
|
|
2609
2610
|
null
|
|
2610
2611
|
), o = (n) => ({
|
|
2611
2612
|
question: n == null ? void 0 : n.filePresentationModel
|
|
2612
2613
|
});
|
|
2613
|
-
return (n, r) => (a(),
|
|
2614
|
+
return (n, r) => (a(), y(oe, {
|
|
2614
2615
|
"create-model": e,
|
|
2615
2616
|
element: t.componentData.element,
|
|
2616
2617
|
"show-placeholder-component": !0,
|
|
@@ -2621,17 +2622,17 @@ const Nt = /* @__PURE__ */ g({
|
|
|
2621
2622
|
"adorner-component": "svc-image-question-adorner"
|
|
2622
2623
|
}, null, 8, ["element", "component-data", "component-name"]));
|
|
2623
2624
|
}
|
|
2624
|
-
}),
|
|
2625
|
+
}), Ln = {
|
|
2625
2626
|
key: 0,
|
|
2626
2627
|
class: "svc-image-question-controls"
|
|
2627
|
-
},
|
|
2628
|
+
}, Fn = ["accept"], Kn = {
|
|
2628
2629
|
class: "svc-context-button",
|
|
2629
2630
|
title: void 0,
|
|
2630
2631
|
"aria-label": void 0
|
|
2631
|
-
},
|
|
2632
|
+
}, Un = {
|
|
2632
2633
|
key: 1,
|
|
2633
2634
|
class: "svc-image-question__loading-placeholder"
|
|
2634
|
-
},
|
|
2635
|
+
}, Qn = { class: "svc-image-question__loading" }, Hn = /* @__PURE__ */ g({
|
|
2635
2636
|
__name: "Image",
|
|
2636
2637
|
props: {
|
|
2637
2638
|
model: {},
|
|
@@ -2639,7 +2640,7 @@ const Nt = /* @__PURE__ */ g({
|
|
|
2639
2640
|
},
|
|
2640
2641
|
setup(c) {
|
|
2641
2642
|
return (t, e) => (a(), i(w, null, [
|
|
2642
|
-
!t.model.isUploading && !t.model.isEmptyElement ? (a(), i("div",
|
|
2643
|
+
!t.model.isUploading && !t.model.isEmptyElement ? (a(), i("div", Ln, [
|
|
2643
2644
|
t.model.allowEdit ? (a(), i(w, { key: 0 }, [
|
|
2644
2645
|
d("input", {
|
|
2645
2646
|
type: "file",
|
|
@@ -2647,8 +2648,8 @@ const Nt = /* @__PURE__ */ g({
|
|
|
2647
2648
|
tabindex: "-1",
|
|
2648
2649
|
accept: t.model.acceptedTypes,
|
|
2649
2650
|
class: "svc-choose-file-input"
|
|
2650
|
-
}, null, 8,
|
|
2651
|
-
|
|
2651
|
+
}, null, 8, Fn),
|
|
2652
|
+
C((a(), i("span", Kn, [
|
|
2652
2653
|
v(s(u), {
|
|
2653
2654
|
is: "sv-svg-icon",
|
|
2654
2655
|
iconName: "icon-choosefile",
|
|
@@ -2660,14 +2661,14 @@ const Nt = /* @__PURE__ */ g({
|
|
|
2660
2661
|
])
|
|
2661
2662
|
], 64)) : p("", !0)
|
|
2662
2663
|
])) : p("", !0),
|
|
2663
|
-
t.model.isUploading && !t.model.isEmptyElement ? (a(), i("div",
|
|
2664
|
-
d("div",
|
|
2664
|
+
t.model.isUploading && !t.model.isEmptyElement ? (a(), i("div", Un, [
|
|
2665
|
+
d("div", Qn, [
|
|
2665
2666
|
v(s(u), { is: "sv-loading-indicator" })
|
|
2666
2667
|
])
|
|
2667
2668
|
])) : p("", !0)
|
|
2668
2669
|
], 64));
|
|
2669
2670
|
}
|
|
2670
|
-
}),
|
|
2671
|
+
}), On = { class: "svc-rating-question-content" }, Gn = ["aria-label"], Wn = ["aria-label"], jn = /* @__PURE__ */ g({
|
|
2671
2672
|
__name: "Rating",
|
|
2672
2673
|
props: {
|
|
2673
2674
|
componentData: {},
|
|
@@ -2675,7 +2676,7 @@ const Nt = /* @__PURE__ */ g({
|
|
|
2675
2676
|
},
|
|
2676
2677
|
setup(c) {
|
|
2677
2678
|
const t = c, e = z(
|
|
2678
|
-
() => new
|
|
2679
|
+
() => new Te(
|
|
2679
2680
|
t.componentData.data,
|
|
2680
2681
|
t.componentData.question,
|
|
2681
2682
|
null
|
|
@@ -2683,20 +2684,20 @@ const Nt = /* @__PURE__ */ g({
|
|
|
2683
2684
|
[() => t.componentData.data, () => t.componentData.question]
|
|
2684
2685
|
);
|
|
2685
2686
|
return (o, n) => {
|
|
2686
|
-
var r, l, _,
|
|
2687
|
-
return a(), i("div",
|
|
2687
|
+
var r, l, _, q, b, f, E, R, L;
|
|
2688
|
+
return a(), i("div", On, [
|
|
2688
2689
|
d("div", {
|
|
2689
2690
|
class: m((r = s(e)) == null ? void 0 : r.controlsClassNames)
|
|
2690
2691
|
}, [
|
|
2691
|
-
(l = s(e)) != null && l.allowRemove ?
|
|
2692
|
+
(l = s(e)) != null && l.allowRemove ? C((a(), i("span", {
|
|
2692
2693
|
key: 0,
|
|
2693
2694
|
class: m((_ = s(e)) == null ? void 0 : _.removeClassNames),
|
|
2694
|
-
onClick: n[0] || (n[0] = (
|
|
2695
|
+
onClick: n[0] || (n[0] = (J) => {
|
|
2695
2696
|
var U;
|
|
2696
2697
|
return (U = s(e)) == null ? void 0 : U.removeItem(s(e));
|
|
2697
2698
|
}),
|
|
2698
2699
|
role: "button",
|
|
2699
|
-
"aria-label": (
|
|
2700
|
+
"aria-label": (q = s(e)) == null ? void 0 : q.removeTooltip
|
|
2700
2701
|
}, [
|
|
2701
2702
|
v(s(u), {
|
|
2702
2703
|
is: "sv-svg-icon",
|
|
@@ -2704,13 +2705,13 @@ const Nt = /* @__PURE__ */ g({
|
|
|
2704
2705
|
size: "auto",
|
|
2705
2706
|
title: (b = s(e)) == null ? void 0 : b.removeTooltip
|
|
2706
2707
|
}, null, 8, ["title"])
|
|
2707
|
-
], 10,
|
|
2708
|
+
], 10, Gn)), [
|
|
2708
2709
|
[s(N)]
|
|
2709
2710
|
]) : p("", !0),
|
|
2710
|
-
(f = s(e)) != null && f.allowAdd ?
|
|
2711
|
+
(f = s(e)) != null && f.allowAdd ? C((a(), i("span", {
|
|
2711
2712
|
key: 1,
|
|
2712
2713
|
class: m((E = s(e)) == null ? void 0 : E.addClassNames),
|
|
2713
|
-
onClick: n[1] || (n[1] = (
|
|
2714
|
+
onClick: n[1] || (n[1] = (J) => {
|
|
2714
2715
|
var U;
|
|
2715
2716
|
return (U = s(e)) == null ? void 0 : U.addItem(s(e));
|
|
2716
2717
|
}),
|
|
@@ -2723,7 +2724,7 @@ const Nt = /* @__PURE__ */ g({
|
|
|
2723
2724
|
size: "auto",
|
|
2724
2725
|
title: (L = s(e)) == null ? void 0 : L.addTooltip
|
|
2725
2726
|
}, null, 8, ["title"])
|
|
2726
|
-
], 10,
|
|
2727
|
+
], 10, Wn)), [
|
|
2727
2728
|
[s(N)]
|
|
2728
2729
|
]) : p("", !0)
|
|
2729
2730
|
], 2),
|
|
@@ -2731,10 +2732,10 @@ const Nt = /* @__PURE__ */ g({
|
|
|
2731
2732
|
]);
|
|
2732
2733
|
};
|
|
2733
2734
|
}
|
|
2734
|
-
}),
|
|
2735
|
+
}), Jn = {
|
|
2735
2736
|
key: 0,
|
|
2736
2737
|
class: "svc-matrix-cell__question-controls"
|
|
2737
|
-
},
|
|
2738
|
+
}, Zn = /* @__PURE__ */ g({
|
|
2738
2739
|
__name: "MatrixCell",
|
|
2739
2740
|
props: {
|
|
2740
2741
|
componentData: {}
|
|
@@ -2744,13 +2745,13 @@ const Nt = /* @__PURE__ */ g({
|
|
|
2744
2745
|
() => t.componentData.question
|
|
2745
2746
|
), _ = z(
|
|
2746
2747
|
() => {
|
|
2747
|
-
var
|
|
2748
|
-
return t.componentData ? new
|
|
2748
|
+
var q;
|
|
2749
|
+
return t.componentData ? new De(
|
|
2749
2750
|
e.value,
|
|
2750
2751
|
r.value,
|
|
2751
2752
|
l.value,
|
|
2752
2753
|
o.value,
|
|
2753
|
-
n.value || ((
|
|
2754
|
+
n.value || ((q = r.value.cell) == null ? void 0 : q.column)
|
|
2754
2755
|
) : void 0;
|
|
2755
2756
|
},
|
|
2756
2757
|
[
|
|
@@ -2760,7 +2761,7 @@ const Nt = /* @__PURE__ */ g({
|
|
|
2760
2761
|
() => l.value
|
|
2761
2762
|
]
|
|
2762
2763
|
);
|
|
2763
|
-
return (
|
|
2764
|
+
return (q, b) => {
|
|
2764
2765
|
var f, E;
|
|
2765
2766
|
return a(), i("div", {
|
|
2766
2767
|
tabindex: "-1",
|
|
@@ -2781,9 +2782,9 @@ const Nt = /* @__PURE__ */ g({
|
|
|
2781
2782
|
d("div", {
|
|
2782
2783
|
class: m(["svc-matrix-cell--selected", { "svc-visible": (f = s(_)) == null ? void 0 : f.isSelected }])
|
|
2783
2784
|
}, null, 2),
|
|
2784
|
-
x(
|
|
2785
|
-
(E = s(_)) != null && E.isSupportCellEditor ? (a(), i("div",
|
|
2786
|
-
|
|
2785
|
+
x(q.$slots, "default"),
|
|
2786
|
+
(E = s(_)) != null && E.isSupportCellEditor ? (a(), i("div", Jn, [
|
|
2787
|
+
C((a(), i("span", {
|
|
2787
2788
|
class: "svc-matrix-cell__question-controls-button svc-context-button",
|
|
2788
2789
|
onClick: b[0] || (b[0] = (R) => s(_).editQuestion(s(_), R))
|
|
2789
2790
|
}, [
|
|
@@ -2799,7 +2800,7 @@ const Nt = /* @__PURE__ */ g({
|
|
|
2799
2800
|
], 32);
|
|
2800
2801
|
};
|
|
2801
2802
|
}
|
|
2802
|
-
}),
|
|
2803
|
+
}), Xn = { class: "svc-question__adorner" }, Yn = { class: "svc-question__content svc-question__content--in-popup" }, xn = /* @__PURE__ */ g({
|
|
2803
2804
|
__name: "CellQuestion",
|
|
2804
2805
|
props: {
|
|
2805
2806
|
componentName: {},
|
|
@@ -2809,19 +2810,19 @@ const Nt = /* @__PURE__ */ g({
|
|
|
2809
2810
|
const t = c, e = $(
|
|
2810
2811
|
() => t.componentData.element
|
|
2811
2812
|
);
|
|
2812
|
-
return T(() => e.value), (o, n) => (a(), i("div",
|
|
2813
|
-
d("div",
|
|
2813
|
+
return T(() => e.value), (o, n) => (a(), i("div", Xn, [
|
|
2814
|
+
d("div", Yn, [
|
|
2814
2815
|
v(s(u), A({ is: o.componentName }, o.componentData), null, 16, ["is"])
|
|
2815
2816
|
])
|
|
2816
2817
|
]));
|
|
2817
2818
|
}
|
|
2818
|
-
}),
|
|
2819
|
+
}), ea = ["data-sv-drop-target-survey-element"], oa = { class: "svc-fake-title" }, sa = /* @__PURE__ */ d("div", { class: "svc-question__drop-indicator svc-question__drop-indicator--left" }, null, -1), ta = /* @__PURE__ */ d("div", { class: "svc-question__drop-indicator svc-question__drop-indicator--right" }, null, -1), na = /* @__PURE__ */ d("div", { class: "svc-question__drop-indicator svc-question__drop-indicator--top" }, null, -1), aa = /* @__PURE__ */ d("div", { class: "svc-question__drop-indicator svc-question__drop-indicator--bottom" }, null, -1), la = { class: "svc-question__top-actions" }, ia = {
|
|
2819
2820
|
key: 0,
|
|
2820
2821
|
class: "svc-panel__placeholder_frame-wrapper"
|
|
2821
|
-
},
|
|
2822
|
+
}, ra = { class: "svc-panel__placeholder_frame" }, da = { class: "svc-panel__placeholder" }, ca = { class: "svc-add-new-item-button__text" }, ua = {
|
|
2822
2823
|
key: 1,
|
|
2823
2824
|
class: "svc-panel__add-new-question-container"
|
|
2824
|
-
},
|
|
2825
|
+
}, pa = { class: "svc-panel__question-type-selector-popup" }, va = { class: "svc-panel__add-new-question-wrapper" }, ma = /* @__PURE__ */ g({
|
|
2825
2826
|
__name: "Panel",
|
|
2826
2827
|
props: {
|
|
2827
2828
|
componentName: {},
|
|
@@ -2854,7 +2855,7 @@ const Nt = /* @__PURE__ */ g({
|
|
|
2854
2855
|
key: 0,
|
|
2855
2856
|
class: m(s(e).cssCollapsedHiddenHeader)
|
|
2856
2857
|
}, [
|
|
2857
|
-
s(e).element.hasTitle ? (a(),
|
|
2858
|
+
s(e).element.hasTitle ? (a(), y(s(u), {
|
|
2858
2859
|
key: 0,
|
|
2859
2860
|
is: "survey-element-title",
|
|
2860
2861
|
element: s(e).element
|
|
@@ -2862,17 +2863,17 @@ const Nt = /* @__PURE__ */ g({
|
|
|
2862
2863
|
key: 1,
|
|
2863
2864
|
class: m(s(e).cssCollapsedHiddenTitle)
|
|
2864
2865
|
}, [
|
|
2865
|
-
d("span",
|
|
2866
|
+
d("span", oa, k(s(e).element.name), 1)
|
|
2866
2867
|
], 2))
|
|
2867
2868
|
], 2)) : p("", !0),
|
|
2868
|
-
|
|
2869
|
+
C((a(), i("div", {
|
|
2869
2870
|
class: m(s(e).css()),
|
|
2870
2871
|
onClick: r[2] || (r[2] = (l) => s(e).element.isInteractiveDesignElement ? s(e).select(s(e), l) : null)
|
|
2871
2872
|
}, [
|
|
2873
|
+
sa,
|
|
2874
|
+
ta,
|
|
2872
2875
|
na,
|
|
2873
2876
|
aa,
|
|
2874
|
-
la,
|
|
2875
|
-
ia,
|
|
2876
2877
|
s(e).allowDragging && s(e).element.isInteractiveDesignElement ? (a(), i("div", {
|
|
2877
2878
|
key: 0,
|
|
2878
2879
|
class: "svc-question__drag-area",
|
|
@@ -2884,7 +2885,7 @@ const Nt = /* @__PURE__ */ g({
|
|
|
2884
2885
|
iconName: "icon-drag-area-indicator_24x16",
|
|
2885
2886
|
size: "auto"
|
|
2886
2887
|
}),
|
|
2887
|
-
d("div",
|
|
2888
|
+
d("div", la, [
|
|
2888
2889
|
v(s(u), {
|
|
2889
2890
|
is: "sv-action-bar",
|
|
2890
2891
|
model: s(e).topActionContainer,
|
|
@@ -2894,10 +2895,10 @@ const Nt = /* @__PURE__ */ g({
|
|
|
2894
2895
|
], 32)) : p("", !0),
|
|
2895
2896
|
s(e).needToRenderContent ? (a(), i(w, { key: 1 }, [
|
|
2896
2897
|
v(s(u), A({ is: n.componentName }, n.componentData), null, 16, ["is"]),
|
|
2897
|
-
s(e).isEmptyElement ? (a(), i("div",
|
|
2898
|
-
d("div",
|
|
2899
|
-
d("div",
|
|
2900
|
-
s(e).showAddQuestionButton ?
|
|
2898
|
+
s(e).isEmptyElement ? (a(), i("div", ia, [
|
|
2899
|
+
d("div", ra, [
|
|
2900
|
+
d("div", da, k(s(e).placeholderText), 1),
|
|
2901
|
+
s(e).showAddQuestionButton ? C((a(), i("div", {
|
|
2901
2902
|
key: 0,
|
|
2902
2903
|
class: "svc-panel__add-new-question svc-action-button",
|
|
2903
2904
|
onClick: o
|
|
@@ -2908,20 +2909,20 @@ const Nt = /* @__PURE__ */ g({
|
|
|
2908
2909
|
iconName: "icon-add_24x24",
|
|
2909
2910
|
size: "auto"
|
|
2910
2911
|
}),
|
|
2911
|
-
d("span",
|
|
2912
|
+
d("span", ca, k(s(e).addNewQuestionText), 1)
|
|
2912
2913
|
])), [
|
|
2913
2914
|
[s(N)]
|
|
2914
2915
|
]) : p("", !0)
|
|
2915
2916
|
])
|
|
2916
2917
|
])) : p("", !0),
|
|
2917
|
-
!s(e).isEmptyElement && s(e).showAddQuestionButton ? (a(), i("div",
|
|
2918
|
-
d("div",
|
|
2918
|
+
!s(e).isEmptyElement && s(e).showAddQuestionButton ? (a(), i("div", ua, [
|
|
2919
|
+
d("div", pa, [
|
|
2919
2920
|
v(s(u), {
|
|
2920
2921
|
is: "sv-popup",
|
|
2921
2922
|
model: s(e).questionTypeSelectorModel.popupModel
|
|
2922
2923
|
}, null, 8, ["model"])
|
|
2923
2924
|
]),
|
|
2924
|
-
d("div",
|
|
2925
|
+
d("div", va, [
|
|
2925
2926
|
v(s(u), {
|
|
2926
2927
|
is: "svc-add-new-question-btn",
|
|
2927
2928
|
item: { data: s(e) },
|
|
@@ -2945,22 +2946,22 @@ const Nt = /* @__PURE__ */ g({
|
|
|
2945
2946
|
], 2)), [
|
|
2946
2947
|
[s(N), { disableTabStop: !0 }]
|
|
2947
2948
|
])
|
|
2948
|
-
], 42,
|
|
2949
|
+
], 42, ea)) : p("", !0);
|
|
2949
2950
|
}
|
|
2950
|
-
}),
|
|
2951
|
+
}), _a = ["data-sv-drop-target-item-value"], ga = /* @__PURE__ */ d("div", { class: "svc-item-value__ghost" }, null, -1), ba = { class: "svc-item-value-controls" }, ya = {
|
|
2951
2952
|
key: 0,
|
|
2952
2953
|
class: "svc-item-value-controls__button svc-item-value-controls__drag"
|
|
2953
|
-
},
|
|
2954
|
+
}, ha = ["aria-label"], Ca = ["aria-label"], qa = /* @__PURE__ */ g({
|
|
2954
2955
|
__name: "ItemValue",
|
|
2955
2956
|
props: {
|
|
2956
2957
|
componentName: {},
|
|
2957
2958
|
componentData: {}
|
|
2958
2959
|
},
|
|
2959
2960
|
setup(c) {
|
|
2960
|
-
const t = I(), e = c, o = $(() => e.componentData.data.creator), n = $(() => e.componentData.question), r = $(() => e.componentData.item), l =
|
|
2961
|
+
const t = I(), e = c, o = $(() => e.componentData.data.creator), n = $(() => e.componentData.question), r = $(() => e.componentData.item), l = W(
|
|
2961
2962
|
() => r.value,
|
|
2962
|
-
(
|
|
2963
|
-
|
|
2963
|
+
(q, b) => {
|
|
2964
|
+
q && t.value && q.setRootElement(t.value), b && b.setRootElement(void 0);
|
|
2964
2965
|
}
|
|
2965
2966
|
);
|
|
2966
2967
|
P(() => {
|
|
@@ -2969,15 +2970,15 @@ const Nt = /* @__PURE__ */ g({
|
|
|
2969
2970
|
r.value.setRootElement(void 0);
|
|
2970
2971
|
});
|
|
2971
2972
|
const _ = z(
|
|
2972
|
-
() => new
|
|
2973
|
+
() => new Ne(o.value, n.value, r.value),
|
|
2973
2974
|
[() => o.value, () => n.value, () => r.value],
|
|
2974
|
-
(
|
|
2975
|
-
|
|
2975
|
+
(q) => {
|
|
2976
|
+
q.dispose();
|
|
2976
2977
|
}
|
|
2977
2978
|
);
|
|
2978
|
-
return
|
|
2979
|
+
return Y(() => {
|
|
2979
2980
|
l();
|
|
2980
|
-
}), (
|
|
2981
|
+
}), (q, b) => (a(), i("div", {
|
|
2981
2982
|
class: m(["svc-item-value-wrapper", {
|
|
2982
2983
|
"svc-item-value--new": s(_).isNew,
|
|
2983
2984
|
"svc-item-value--dragging": s(_).isDragging,
|
|
@@ -2990,9 +2991,9 @@ const Nt = /* @__PURE__ */ g({
|
|
|
2990
2991
|
ref_key: "root",
|
|
2991
2992
|
ref: t
|
|
2992
2993
|
}, [
|
|
2993
|
-
|
|
2994
|
-
d("div",
|
|
2995
|
-
s(_).isDraggable ? (a(), i("span",
|
|
2994
|
+
ga,
|
|
2995
|
+
d("div", ba, [
|
|
2996
|
+
s(_).isDraggable ? (a(), i("span", ya, [
|
|
2996
2997
|
v(s(u), {
|
|
2997
2998
|
is: "sv-svg-icon",
|
|
2998
2999
|
class: "svc-item-value-controls__drag-icon",
|
|
@@ -3001,7 +3002,7 @@ const Nt = /* @__PURE__ */ g({
|
|
|
3001
3002
|
title: s(_).dragTooltip
|
|
3002
3003
|
}, null, 8, ["title"])
|
|
3003
3004
|
])) : p("", !0),
|
|
3004
|
-
s(_).allowAdd ?
|
|
3005
|
+
s(_).allowAdd ? C((a(), i("span", {
|
|
3005
3006
|
key: 1,
|
|
3006
3007
|
class: "svc-item-value-controls__button svc-item-value-controls__add",
|
|
3007
3008
|
onClick: b[0] || (b[0] = (f) => s(_).add(s(_))),
|
|
@@ -3014,10 +3015,10 @@ const Nt = /* @__PURE__ */ g({
|
|
|
3014
3015
|
size: "auto",
|
|
3015
3016
|
title: s(_).tooltip
|
|
3016
3017
|
}, null, 8, ["title"])
|
|
3017
|
-
], 8,
|
|
3018
|
+
], 8, ha)), [
|
|
3018
3019
|
[s(N)]
|
|
3019
3020
|
]) : p("", !0),
|
|
3020
|
-
s(_).allowRemove ?
|
|
3021
|
+
s(_).allowRemove ? C((a(), i("span", {
|
|
3021
3022
|
key: 2,
|
|
3022
3023
|
class: "svc-item-value-controls__button svc-item-value-controls__remove",
|
|
3023
3024
|
onClick: b[1] || (b[1] = (f) => s(_).remove(s(_))),
|
|
@@ -3031,7 +3032,7 @@ const Nt = /* @__PURE__ */ g({
|
|
|
3031
3032
|
size: "auto",
|
|
3032
3033
|
title: s(_).tooltip
|
|
3033
3034
|
}, null, 8, ["title"])
|
|
3034
|
-
], 40,
|
|
3035
|
+
], 40, Ca)), [
|
|
3035
3036
|
[s(N)]
|
|
3036
3037
|
]) : p("", !0)
|
|
3037
3038
|
]),
|
|
@@ -3039,23 +3040,23 @@ const Nt = /* @__PURE__ */ g({
|
|
|
3039
3040
|
class: "svc-item-value__item",
|
|
3040
3041
|
onClick: b[3] || (b[3] = (f) => s(_).select(s(_), f))
|
|
3041
3042
|
}, [
|
|
3042
|
-
v(s(u), A({ is:
|
|
3043
|
+
v(s(u), A({ is: q.componentName }, q.componentData), null, 16, ["is"])
|
|
3043
3044
|
])
|
|
3044
|
-
], 42,
|
|
3045
|
+
], 42, _a));
|
|
3045
3046
|
}
|
|
3046
|
-
}),
|
|
3047
|
+
}), $a = ["data-sv-drop-target-item-value"], ka = { class: "svc-image-item-value-wrapper__content" }, fa = ["accept"], wa = {
|
|
3047
3048
|
key: 0,
|
|
3048
3049
|
class: "svc-image-item-value__item"
|
|
3049
|
-
},
|
|
3050
|
+
}, Ta = {
|
|
3050
3051
|
key: 2,
|
|
3051
3052
|
class: "svc-context-container svc-image-item-value-controls"
|
|
3052
|
-
},
|
|
3053
|
+
}, Da = { class: "svc-image-item-value__item" }, Na = { class: "sd-imagepicker__item sd-imagepicker__item--inline" }, Ma = { class: "sd-imagepicker__label" }, Sa = {
|
|
3053
3054
|
key: 0,
|
|
3054
3055
|
class: "svc-image-item-value__loading"
|
|
3055
|
-
},
|
|
3056
|
+
}, Ba = {
|
|
3056
3057
|
key: 0,
|
|
3057
3058
|
class: "svc-image-item-value__placeholder"
|
|
3058
|
-
},
|
|
3059
|
+
}, Ia = { key: 1 }, Ea = /* @__PURE__ */ g({
|
|
3059
3060
|
__name: "ImageItemValue",
|
|
3060
3061
|
props: {
|
|
3061
3062
|
componentName: {},
|
|
@@ -3064,7 +3065,7 @@ const Nt = /* @__PURE__ */ g({
|
|
|
3064
3065
|
setup(c) {
|
|
3065
3066
|
const t = c, e = $(() => t.componentData.data.creator), o = $(() => t.componentData.question), n = $(() => t.componentData.item), r = I(), l = z(
|
|
3066
3067
|
() => {
|
|
3067
|
-
const b = new
|
|
3068
|
+
const b = new Me(
|
|
3068
3069
|
e.value,
|
|
3069
3070
|
o.value,
|
|
3070
3071
|
n.value,
|
|
@@ -3079,7 +3080,7 @@ const Nt = /* @__PURE__ */ g({
|
|
|
3079
3080
|
}
|
|
3080
3081
|
), _ = (b) => {
|
|
3081
3082
|
b.preventDefault();
|
|
3082
|
-
},
|
|
3083
|
+
}, q = $(() => {
|
|
3083
3084
|
const b = !l.value.getIsNewItemSingle();
|
|
3084
3085
|
return {
|
|
3085
3086
|
width: b ? o.value.renderedImageWidth + "px" : void 0,
|
|
@@ -3102,18 +3103,18 @@ const Nt = /* @__PURE__ */ g({
|
|
|
3102
3103
|
}, [
|
|
3103
3104
|
d("div", {
|
|
3104
3105
|
class: "svc-image-item-value-wrapper__ghost",
|
|
3105
|
-
style: F(
|
|
3106
|
+
style: F(q.value)
|
|
3106
3107
|
}, null, 4),
|
|
3107
|
-
d("div",
|
|
3108
|
+
d("div", ka, [
|
|
3108
3109
|
d("input", {
|
|
3109
3110
|
type: "file",
|
|
3110
3111
|
"aria-hidden": "true",
|
|
3111
3112
|
tabindex: "-1",
|
|
3112
3113
|
accept: s(l).acceptedTypes,
|
|
3113
3114
|
class: "svc-choose-file-input"
|
|
3114
|
-
}, null, 8,
|
|
3115
|
+
}, null, 8, fa),
|
|
3115
3116
|
!s(l).isNew && !s(l).isUploading ? (a(), i(w, { key: 0 }, [
|
|
3116
|
-
s(l).isNew ? p("", !0) : (a(), i("div",
|
|
3117
|
+
s(l).isNew ? p("", !0) : (a(), i("div", wa, [
|
|
3117
3118
|
v(s(u), A({ is: b.componentName }, b.componentData), null, 16, ["is"])
|
|
3118
3119
|
])),
|
|
3119
3120
|
s(l).isDraggable && s(l).canRenderControls ? (a(), i("span", {
|
|
@@ -3129,8 +3130,8 @@ const Nt = /* @__PURE__ */ g({
|
|
|
3129
3130
|
size: "auto"
|
|
3130
3131
|
})
|
|
3131
3132
|
], 32)) : p("", !0),
|
|
3132
|
-
s(l).canRenderControls ? (a(), i("div",
|
|
3133
|
-
|
|
3133
|
+
s(l).canRenderControls ? (a(), i("div", Ta, [
|
|
3134
|
+
C((a(), i("span", {
|
|
3134
3135
|
class: "svc-context-button",
|
|
3135
3136
|
onClick: f[1] || (f[1] = (E) => s(l).chooseFile(s(l))),
|
|
3136
3137
|
title: void 0,
|
|
@@ -3146,7 +3147,7 @@ const Nt = /* @__PURE__ */ g({
|
|
|
3146
3147
|
])), [
|
|
3147
3148
|
[s(N)]
|
|
3148
3149
|
]),
|
|
3149
|
-
|
|
3150
|
+
C((a(), i("span", {
|
|
3150
3151
|
class: "svc-context-button svc-context-button--danger",
|
|
3151
3152
|
onClick: f[2] || (f[2] = (E) => s(l).remove(s(l))),
|
|
3152
3153
|
title: void 0,
|
|
@@ -3164,14 +3165,14 @@ const Nt = /* @__PURE__ */ g({
|
|
|
3164
3165
|
])
|
|
3165
3166
|
])) : p("", !0)
|
|
3166
3167
|
], 64)) : (a(), i(w, { key: 1 }, [
|
|
3167
|
-
d("div",
|
|
3168
|
-
d("div",
|
|
3169
|
-
d("label",
|
|
3168
|
+
d("div", Da, [
|
|
3169
|
+
d("div", Na, [
|
|
3170
|
+
d("label", Ma, [
|
|
3170
3171
|
d("div", {
|
|
3171
|
-
style: F(
|
|
3172
|
+
style: F(q.value),
|
|
3172
3173
|
class: "sd-imagepicker__image"
|
|
3173
3174
|
}, [
|
|
3174
|
-
s(l).isUploading ? (a(), i("div",
|
|
3175
|
+
s(l).isUploading ? (a(), i("div", Sa, [
|
|
3175
3176
|
v(s(u), { is: "sv-loading-indicator" })
|
|
3176
3177
|
])) : p("", !0)
|
|
3177
3178
|
], 4)
|
|
@@ -3183,27 +3184,27 @@ const Nt = /* @__PURE__ */ g({
|
|
|
3183
3184
|
class: "svc-image-item-value-controls",
|
|
3184
3185
|
onPointerdown: f[4] || (f[4] = (E) => E.stopPropagation())
|
|
3185
3186
|
}, [
|
|
3186
|
-
s(l).showPlaceholder ? (a(), i("span",
|
|
3187
|
-
|
|
3187
|
+
s(l).showPlaceholder ? (a(), i("span", Ba, k(s(l).placeholderText), 1)) : p("", !0),
|
|
3188
|
+
C((a(), i("span", {
|
|
3188
3189
|
class: m(s(l).addButtonCss),
|
|
3189
3190
|
onClick: f[3] || (f[3] = (E) => s(l).chooseNewFile(s(l)))
|
|
3190
3191
|
}, [
|
|
3191
|
-
s(l).showChooseButtonAsIcon ? (a(),
|
|
3192
|
+
s(l).showChooseButtonAsIcon ? (a(), y(s(u), {
|
|
3192
3193
|
key: 0,
|
|
3193
3194
|
is: "sv-svg-icon",
|
|
3194
3195
|
iconName: "icon-add-lg",
|
|
3195
3196
|
size: "auto",
|
|
3196
3197
|
title: s(l).addFileTitle
|
|
3197
|
-
}, null, 8, ["title"])) : (a(), i("span",
|
|
3198
|
+
}, null, 8, ["title"])) : (a(), i("span", Ia, k(s(l).chooseImageText), 1))
|
|
3198
3199
|
], 2)), [
|
|
3199
3200
|
[s(N)]
|
|
3200
3201
|
])
|
|
3201
3202
|
], 32)) : p("", !0)
|
|
3202
3203
|
], 64))
|
|
3203
3204
|
])
|
|
3204
|
-
], 42,
|
|
3205
|
+
], 42, $a));
|
|
3205
3206
|
}
|
|
3206
|
-
}),
|
|
3207
|
+
}), Pa = /* @__PURE__ */ g({
|
|
3207
3208
|
__name: "QuestionEditor",
|
|
3208
3209
|
props: {
|
|
3209
3210
|
survey: {},
|
|
@@ -3238,29 +3239,29 @@ const Nt = /* @__PURE__ */ g({
|
|
|
3238
3239
|
v(s(u), A({ is: o.value }, n.value), null, 16, ["is"])
|
|
3239
3240
|
], 4));
|
|
3240
3241
|
}
|
|
3241
|
-
}),
|
|
3242
|
+
}), Ra = ["accept"], Va = /* @__PURE__ */ d("svg", null, [
|
|
3242
3243
|
/* @__PURE__ */ d("use", { "xlink:href": "#icon-image-48x48" })
|
|
3243
|
-
], -1),
|
|
3244
|
-
|
|
3245
|
-
],
|
|
3244
|
+
], -1), Aa = [
|
|
3245
|
+
Va
|
|
3246
|
+
], za = { class: "svc-context-container svc-logo-image-controls" }, La = {
|
|
3246
3247
|
key: 2,
|
|
3247
3248
|
class: "svc-logo-image__loading"
|
|
3248
|
-
},
|
|
3249
|
+
}, Fa = /* @__PURE__ */ g({
|
|
3249
3250
|
__name: "Logo",
|
|
3250
3251
|
props: {
|
|
3251
3252
|
data: {}
|
|
3252
3253
|
},
|
|
3253
3254
|
setup(c) {
|
|
3254
3255
|
const t = c, e = $(() => t.data), o = $(() => e.value.survey), n = I(), r = z(
|
|
3255
|
-
() => new
|
|
3256
|
+
() => new Se(e.value, null),
|
|
3256
3257
|
[() => e.value]
|
|
3257
3258
|
), l = I(), _ = () => {
|
|
3258
3259
|
l.value = o.value.locLogo.renderedHtml;
|
|
3259
3260
|
};
|
|
3260
|
-
return
|
|
3261
|
+
return W(
|
|
3261
3262
|
() => o.value.locLogo,
|
|
3262
|
-
(
|
|
3263
|
-
_(),
|
|
3263
|
+
(q, b) => {
|
|
3264
|
+
_(), q && q.onStringChanged.add(_), b && q.onStringChanged.remove(_);
|
|
3264
3265
|
},
|
|
3265
3266
|
{
|
|
3266
3267
|
immediate: !0
|
|
@@ -3269,7 +3270,7 @@ const Nt = /* @__PURE__ */ g({
|
|
|
3269
3270
|
n.value && (r.value.root = n.value);
|
|
3270
3271
|
}), K(() => {
|
|
3271
3272
|
r.value && (r.value.root = void 0);
|
|
3272
|
-
}), (
|
|
3273
|
+
}), (q, b) => (a(), i("div", {
|
|
3273
3274
|
class: "svc-logo-image",
|
|
3274
3275
|
ref_key: "root",
|
|
3275
3276
|
ref: n
|
|
@@ -3280,13 +3281,13 @@ const Nt = /* @__PURE__ */ g({
|
|
|
3280
3281
|
tabindex: "-1",
|
|
3281
3282
|
accept: s(r).acceptedTypes,
|
|
3282
3283
|
class: "svc-choose-file-input"
|
|
3283
|
-
}, null, 8,
|
|
3284
|
+
}, null, 8, Ra),
|
|
3284
3285
|
l.value ? p("", !0) : (a(), i(w, { key: 0 }, [
|
|
3285
|
-
s(r).allowEdit && !s(r).isUploading ?
|
|
3286
|
+
s(r).allowEdit && !s(r).isUploading ? C((a(), i("div", {
|
|
3286
3287
|
key: 0,
|
|
3287
3288
|
class: "svc-logo-image-placeholder",
|
|
3288
3289
|
onClick: b[0] || (b[0] = (f) => s(r).chooseFile(s(r)))
|
|
3289
|
-
},
|
|
3290
|
+
}, Aa)), [
|
|
3290
3291
|
[s(N)]
|
|
3291
3292
|
]) : p("", !0)
|
|
3292
3293
|
], 64)),
|
|
@@ -3294,8 +3295,8 @@ const Nt = /* @__PURE__ */ g({
|
|
|
3294
3295
|
key: 1,
|
|
3295
3296
|
class: m(s(r).containerCss)
|
|
3296
3297
|
}, [
|
|
3297
|
-
d("div",
|
|
3298
|
-
|
|
3298
|
+
d("div", za, [
|
|
3299
|
+
C((a(), i("span", {
|
|
3299
3300
|
class: "svc-context-button",
|
|
3300
3301
|
onClick: b[1] || (b[1] = (f) => s(r).chooseFile(s(r))),
|
|
3301
3302
|
title: void 0,
|
|
@@ -3309,7 +3310,7 @@ const Nt = /* @__PURE__ */ g({
|
|
|
3309
3310
|
])), [
|
|
3310
3311
|
[s(N)]
|
|
3311
3312
|
]),
|
|
3312
|
-
|
|
3313
|
+
C((a(), i("span", {
|
|
3313
3314
|
class: "svc-context-button svc-context-button--danger",
|
|
3314
3315
|
onClick: b[2] || (b[2] = (f) => s(r).remove(s(r))),
|
|
3315
3316
|
title: void 0,
|
|
@@ -3329,15 +3330,15 @@ const Nt = /* @__PURE__ */ g({
|
|
|
3329
3330
|
data: o.value
|
|
3330
3331
|
}, null, 8, ["data"])
|
|
3331
3332
|
], 2)) : p("", !0),
|
|
3332
|
-
s(r).isUploading ? (a(), i("div",
|
|
3333
|
+
s(r).isUploading ? (a(), i("div", La, [
|
|
3333
3334
|
v(s(u), { is: "sv-loading-indicator" })
|
|
3334
3335
|
])) : p("", !0)
|
|
3335
3336
|
], 512));
|
|
3336
3337
|
}
|
|
3337
|
-
}),
|
|
3338
|
+
}), Ka = {
|
|
3338
3339
|
key: 0,
|
|
3339
3340
|
class: "svc-search"
|
|
3340
|
-
},
|
|
3341
|
+
}, Ua = { class: "svc-search__search-icon" }, Qa = ["aria-label", "placeholder"], Ha = { class: "svc-search__toolbar" }, Oa = { class: "svc-search__toolbar-counter" }, Ga = /* @__PURE__ */ g({
|
|
3341
3342
|
__name: "Search",
|
|
3342
3343
|
props: {
|
|
3343
3344
|
model: {}
|
|
@@ -3352,25 +3353,25 @@ const Nt = /* @__PURE__ */ g({
|
|
|
3352
3353
|
n.filterString = o;
|
|
3353
3354
|
}
|
|
3354
3355
|
});
|
|
3355
|
-
return (o, n) => o.model.isVisible ? (a(), i("div",
|
|
3356
|
-
d("div",
|
|
3356
|
+
return (o, n) => o.model.isVisible ? (a(), i("div", Ka, [
|
|
3357
|
+
d("div", Ua, [
|
|
3357
3358
|
v(s(u), {
|
|
3358
3359
|
is: "sv-svg-icon",
|
|
3359
3360
|
iconName: "icon-search",
|
|
3360
3361
|
size: "auto"
|
|
3361
3362
|
})
|
|
3362
3363
|
]),
|
|
3363
|
-
|
|
3364
|
+
C(d("input", {
|
|
3364
3365
|
type: "text",
|
|
3365
3366
|
class: "svc-search__input",
|
|
3366
3367
|
"onUpdate:modelValue": n[0] || (n[0] = (r) => e.value = r),
|
|
3367
3368
|
"aria-label": o.model.filterStringPlaceholder,
|
|
3368
3369
|
placeholder: o.model.filterStringPlaceholder
|
|
3369
|
-
}, null, 8,
|
|
3370
|
+
}, null, 8, Qa), [
|
|
3370
3371
|
[de, e.value]
|
|
3371
3372
|
]),
|
|
3372
|
-
d("div",
|
|
3373
|
-
d("div",
|
|
3373
|
+
d("div", Ha, [
|
|
3374
|
+
d("div", Oa, k(o.model.matchCounterText), 1),
|
|
3374
3375
|
v(s(u), {
|
|
3375
3376
|
is: "sv-action-bar",
|
|
3376
3377
|
model: o.model.searchActionBar
|
|
@@ -3378,7 +3379,7 @@ const Nt = /* @__PURE__ */ g({
|
|
|
3378
3379
|
])
|
|
3379
3380
|
])) : p("", !0);
|
|
3380
3381
|
}
|
|
3381
|
-
}),
|
|
3382
|
+
}), Wa = ["title"], ja = /* @__PURE__ */ g({
|
|
3382
3383
|
__name: "PageNavigator",
|
|
3383
3384
|
props: {
|
|
3384
3385
|
pagesController: {},
|
|
@@ -3386,7 +3387,7 @@ const Nt = /* @__PURE__ */ g({
|
|
|
3386
3387
|
},
|
|
3387
3388
|
setup(c) {
|
|
3388
3389
|
const t = c, e = z(
|
|
3389
|
-
() => new
|
|
3390
|
+
() => new Be(t.pagesController, t.pageEditMode),
|
|
3390
3391
|
[() => t.pagesController, () => t.pageEditMode]
|
|
3391
3392
|
), o = I();
|
|
3392
3393
|
return P(() => {
|
|
@@ -3394,18 +3395,18 @@ const Nt = /* @__PURE__ */ g({
|
|
|
3394
3395
|
const n = o.value, r = e.value;
|
|
3395
3396
|
n && r.attachToUI(n);
|
|
3396
3397
|
}
|
|
3397
|
-
}),
|
|
3398
|
+
}), Y(() => {
|
|
3398
3399
|
const n = e.value;
|
|
3399
3400
|
n.stopItemsContainerHeightObserver(), n.setScrollableContainer(void 0);
|
|
3400
3401
|
}), K(() => {
|
|
3401
3402
|
e.value.dispose();
|
|
3402
|
-
}), (n, r) =>
|
|
3403
|
+
}), (n, r) => C((a(), i("div", {
|
|
3403
3404
|
class: "svc-page-navigator",
|
|
3404
3405
|
ref_key: "root",
|
|
3405
3406
|
ref: o
|
|
3406
3407
|
}, [
|
|
3407
3408
|
d("div", null, [
|
|
3408
|
-
|
|
3409
|
+
C((a(), i("div", {
|
|
3409
3410
|
role: "button",
|
|
3410
3411
|
class: m(["svc-page-navigator__selector svc-page-navigator__button", { "svc-page-navigator__button--pressed": s(e).isPopupOpened }]),
|
|
3411
3412
|
onClick: r[0] || (r[0] = (l) => s(e).togglePageSelector(l)),
|
|
@@ -3417,7 +3418,7 @@ const Nt = /* @__PURE__ */ g({
|
|
|
3417
3418
|
iconName: s(e).icon,
|
|
3418
3419
|
size: "auto"
|
|
3419
3420
|
}, null, 8, ["iconName"])
|
|
3420
|
-
], 10,
|
|
3421
|
+
], 10, Wa)), [
|
|
3421
3422
|
[s(N)]
|
|
3422
3423
|
]),
|
|
3423
3424
|
v(s(u), {
|
|
@@ -3426,7 +3427,7 @@ const Nt = /* @__PURE__ */ g({
|
|
|
3426
3427
|
}, null, 8, ["model"])
|
|
3427
3428
|
]),
|
|
3428
3429
|
d("div", null, [
|
|
3429
|
-
(a(!0), i(w, null, V(s(e).visibleItems, (l) => (a(),
|
|
3430
|
+
(a(!0), i(w, null, V(s(e).visibleItems, (l) => (a(), y(s(u), {
|
|
3430
3431
|
is: "svc-page-navigator-item",
|
|
3431
3432
|
key: l.id,
|
|
3432
3433
|
model: l
|
|
@@ -3436,11 +3437,11 @@ const Nt = /* @__PURE__ */ g({
|
|
|
3436
3437
|
[Q, s(e).visible]
|
|
3437
3438
|
]);
|
|
3438
3439
|
}
|
|
3439
|
-
}),
|
|
3440
|
-
|
|
3441
|
-
],
|
|
3440
|
+
}), Ja = { class: "svc-page-navigator-item" }, Za = ["title"], Xa = /* @__PURE__ */ d("div", { class: "svc-page-navigator-item__dot-content" }, null, -1), Ya = [
|
|
3441
|
+
Xa
|
|
3442
|
+
], xa = { class: "svc-page-navigator-item__banner" }, el = { class: "svc-page-navigator-item__text" }, ol = /* @__PURE__ */ d("span", { class: "svc-page-navigator-item__dot" }, [
|
|
3442
3443
|
/* @__PURE__ */ d("span", { class: "svc-page-navigator-item__dot-content" })
|
|
3443
|
-
], -1),
|
|
3444
|
+
], -1), sl = /* @__PURE__ */ g({
|
|
3444
3445
|
__name: "PageNavigatorItem",
|
|
3445
3446
|
props: {
|
|
3446
3447
|
model: {}
|
|
@@ -3451,8 +3452,8 @@ const Nt = /* @__PURE__ */ g({
|
|
|
3451
3452
|
const e = (o) => {
|
|
3452
3453
|
t.model.action(), o.stopPropagation(), o.preventDefault();
|
|
3453
3454
|
};
|
|
3454
|
-
return (o, n) => (a(), i("div",
|
|
3455
|
-
|
|
3455
|
+
return (o, n) => (a(), i("div", Ja, [
|
|
3456
|
+
C((a(), i("div", {
|
|
3456
3457
|
role: "button",
|
|
3457
3458
|
class: m(["svc-page-navigator-item-content", {
|
|
3458
3459
|
"svc-page-navigator-item--selected": o.model.active,
|
|
@@ -3463,17 +3464,17 @@ const Nt = /* @__PURE__ */ g({
|
|
|
3463
3464
|
d("div", {
|
|
3464
3465
|
class: "svc-page-navigator-item__dot",
|
|
3465
3466
|
title: o.model.title
|
|
3466
|
-
},
|
|
3467
|
-
d("div",
|
|
3468
|
-
d("span",
|
|
3469
|
-
|
|
3467
|
+
}, Ya, 8, Za),
|
|
3468
|
+
d("div", xa, [
|
|
3469
|
+
d("span", el, k(o.model.title), 1),
|
|
3470
|
+
ol
|
|
3470
3471
|
])
|
|
3471
3472
|
], 2)), [
|
|
3472
3473
|
[s(N)]
|
|
3473
3474
|
])
|
|
3474
3475
|
]));
|
|
3475
3476
|
}
|
|
3476
|
-
}),
|
|
3477
|
+
}), tl = { class: "svc-question__dropdown-choices--wrapper" }, nl = { class: "svc-question__dropdown-choices" }, al = /* @__PURE__ */ g({
|
|
3477
3478
|
__name: "Dropdown",
|
|
3478
3479
|
props: {
|
|
3479
3480
|
model: {},
|
|
@@ -3488,9 +3489,9 @@ const Nt = /* @__PURE__ */ g({
|
|
|
3488
3489
|
data: t.element.getItemValueWrapperComponentData(n)
|
|
3489
3490
|
}
|
|
3490
3491
|
});
|
|
3491
|
-
return (n, r) => (a(), i("div",
|
|
3492
|
+
return (n, r) => (a(), i("div", tl, [
|
|
3492
3493
|
d("div", null, [
|
|
3493
|
-
d("div",
|
|
3494
|
+
d("div", nl, [
|
|
3494
3495
|
(a(!0), i(w, null, V(n.model.getRenderedItems(), (l) => (a(), i("div", {
|
|
3495
3496
|
key: l.value,
|
|
3496
3497
|
class: m(n.model.getChoiceCss())
|
|
@@ -3500,7 +3501,7 @@ const Nt = /* @__PURE__ */ g({
|
|
|
3500
3501
|
}, o(l)), null, 16, ["is"])
|
|
3501
3502
|
], 2))), 128))
|
|
3502
3503
|
]),
|
|
3503
|
-
n.model.needToCollapse ? (a(),
|
|
3504
|
+
n.model.needToCollapse ? (a(), y(s(u), {
|
|
3504
3505
|
key: 0,
|
|
3505
3506
|
is: "svc-action-button",
|
|
3506
3507
|
text: n.model.getButtonText(),
|
|
@@ -3510,19 +3511,19 @@ const Nt = /* @__PURE__ */ g({
|
|
|
3510
3511
|
])
|
|
3511
3512
|
]));
|
|
3512
3513
|
}
|
|
3513
|
-
}),
|
|
3514
|
+
}), ll = /* @__PURE__ */ g({
|
|
3514
3515
|
__name: "QuestionDropdown",
|
|
3515
3516
|
props: {
|
|
3516
3517
|
componentName: {},
|
|
3517
3518
|
componentData: {}
|
|
3518
3519
|
},
|
|
3519
3520
|
setup(c) {
|
|
3520
|
-
const t = c, e = () => new
|
|
3521
|
+
const t = c, e = () => new Ie(
|
|
3521
3522
|
t.componentData.data,
|
|
3522
3523
|
t.componentData.element,
|
|
3523
3524
|
null
|
|
3524
3525
|
);
|
|
3525
|
-
return (o, n) => (a(),
|
|
3526
|
+
return (o, n) => (a(), y(oe, {
|
|
3526
3527
|
"create-model": e,
|
|
3527
3528
|
element: o.componentData.element,
|
|
3528
3529
|
"component-name": o.componentName,
|
|
@@ -3530,7 +3531,7 @@ const Nt = /* @__PURE__ */ g({
|
|
|
3530
3531
|
"adorner-component": "svc-dropdown-question-adorner"
|
|
3531
3532
|
}, null, 8, ["element", "component-name", "component-data"]));
|
|
3532
3533
|
}
|
|
3533
|
-
}),
|
|
3534
|
+
}), il = { class: "svc-question__adorner" }, rl = { class: "svc-question__content svc-question__content--in-popup" }, dl = { class: "svc-question__dropdown-choices" }, le = "survey-radiogroup-item", cl = /* @__PURE__ */ g({
|
|
3534
3535
|
__name: "CellQuestionDropdown",
|
|
3535
3536
|
props: {
|
|
3536
3537
|
componentName: {},
|
|
@@ -3547,10 +3548,10 @@ const Nt = /* @__PURE__ */ g({
|
|
|
3547
3548
|
data: e.value.getItemValueWrapperComponentData(r)
|
|
3548
3549
|
}
|
|
3549
3550
|
});
|
|
3550
|
-
return T(() => e.value), (r, l) => (a(), i("div",
|
|
3551
|
-
d("div",
|
|
3551
|
+
return T(() => e.value), (r, l) => (a(), i("div", il, [
|
|
3552
|
+
d("div", rl, [
|
|
3552
3553
|
v(s(u), A({ is: r.componentName }, r.componentData), null, 16, ["is"]),
|
|
3553
|
-
d("div",
|
|
3554
|
+
d("div", dl, [
|
|
3554
3555
|
(a(!0), i(w, null, V(e.value.visibleChoices, (_) => (a(), i("div", {
|
|
3555
3556
|
key: _.value,
|
|
3556
3557
|
class: "svc-question__dropdown-choice"
|
|
@@ -3563,18 +3564,18 @@ const Nt = /* @__PURE__ */ g({
|
|
|
3563
3564
|
])
|
|
3564
3565
|
]));
|
|
3565
3566
|
}
|
|
3566
|
-
}),
|
|
3567
|
+
}), ul = ["data-sv-drop-target-survey-element"], pl = /* @__PURE__ */ d("div", { class: "svc-question__drop-indicator svc-question__drop-indicator--left" }, null, -1), vl = /* @__PURE__ */ d("div", { class: "svc-question__drop-indicator svc-question__drop-indicator--right" }, null, -1), ml = /* @__PURE__ */ d("div", { class: "svc-question__drop-indicator svc-question__drop-indicator--top" }, null, -1), _l = /* @__PURE__ */ d("div", { class: "svc-question__drop-indicator svc-question__drop-indicator--bottom" }, null, -1), gl = { class: "svc-widget__content" }, bl = {
|
|
3567
3568
|
key: 1,
|
|
3568
3569
|
class: "svc-panel__placeholder_frame"
|
|
3569
|
-
},
|
|
3570
|
+
}, yl = /* @__PURE__ */ d("div", {
|
|
3570
3571
|
class: "svc-panel__placeholder",
|
|
3571
3572
|
"data-bind": "text: placeholderText"
|
|
3572
|
-
}, null, -1),
|
|
3573
|
-
|
|
3574
|
-
],
|
|
3573
|
+
}, null, -1), hl = [
|
|
3574
|
+
yl
|
|
3575
|
+
], Cl = { class: "svc-question__content-actions" }, ql = {
|
|
3575
3576
|
key: 0,
|
|
3576
3577
|
class: "svc-panel__placeholder_frame"
|
|
3577
|
-
},
|
|
3578
|
+
}, $l = { class: "svc-panel__placeholder" }, kl = /* @__PURE__ */ g({
|
|
3578
3579
|
__name: "CustomWidget",
|
|
3579
3580
|
props: {
|
|
3580
3581
|
componentName: {},
|
|
@@ -3592,7 +3593,7 @@ const Nt = /* @__PURE__ */ g({
|
|
|
3592
3593
|
n.dispose();
|
|
3593
3594
|
}
|
|
3594
3595
|
);
|
|
3595
|
-
return
|
|
3596
|
+
return G(() => {
|
|
3596
3597
|
e.value && o.value && (o.value.rootElement = e.value);
|
|
3597
3598
|
}), P(() => {
|
|
3598
3599
|
e.value && o.value && (o.value.rootElement = e.value);
|
|
@@ -3605,16 +3606,16 @@ const Nt = /* @__PURE__ */ g({
|
|
|
3605
3606
|
ref_key: "root",
|
|
3606
3607
|
ref: e
|
|
3607
3608
|
}, [
|
|
3608
|
-
s(o).element.isInteractiveDesignElement ?
|
|
3609
|
+
s(o).element.isInteractiveDesignElement ? C((a(), i("div", {
|
|
3609
3610
|
key: 0,
|
|
3610
3611
|
class: m(["svc-question__content", s(o).css()]),
|
|
3611
3612
|
onClick: r[1] || (r[1] = (l) => s(o).select(s(o), l)),
|
|
3612
3613
|
"data-bind": "clickBubble: false"
|
|
3613
3614
|
}, [
|
|
3615
|
+
pl,
|
|
3616
|
+
vl,
|
|
3614
3617
|
ml,
|
|
3615
3618
|
_l,
|
|
3616
|
-
gl,
|
|
3617
|
-
bl,
|
|
3618
3619
|
s(o).allowDragging ? (a(), i("div", {
|
|
3619
3620
|
key: 0,
|
|
3620
3621
|
class: "svc-question__drag-area",
|
|
@@ -3627,11 +3628,11 @@ const Nt = /* @__PURE__ */ g({
|
|
|
3627
3628
|
size: "auto"
|
|
3628
3629
|
})
|
|
3629
3630
|
], 32)) : p("", !0),
|
|
3630
|
-
d("div",
|
|
3631
|
+
d("div", gl, [
|
|
3631
3632
|
v(s(u), A({ is: n.componentName }, n.componentData), null, 16, ["is"])
|
|
3632
3633
|
]),
|
|
3633
|
-
s(o).isEmptyElement ? (a(), i("div",
|
|
3634
|
-
d("div",
|
|
3634
|
+
s(o).isEmptyElement ? (a(), i("div", bl, hl)) : p("", !0),
|
|
3635
|
+
d("div", Cl, [
|
|
3635
3636
|
v(s(u), {
|
|
3636
3637
|
is: "sv-action-bar",
|
|
3637
3638
|
model: s(o).actionContainer,
|
|
@@ -3643,22 +3644,22 @@ const Nt = /* @__PURE__ */ g({
|
|
|
3643
3644
|
]) : p("", !0),
|
|
3644
3645
|
s(o).element.isInteractiveDesignElement ? p("", !0) : (a(), i(w, { key: 1 }, [
|
|
3645
3646
|
v(s(u), A({ is: n.componentName }, n.componentData), null, 16, ["is"]),
|
|
3646
|
-
s(o).isEmptyElement ? (a(), i("div",
|
|
3647
|
-
d("div",
|
|
3647
|
+
s(o).isEmptyElement ? (a(), i("div", ql, [
|
|
3648
|
+
d("div", $l, k(s(o).placeholderText), 1)
|
|
3648
3649
|
])) : p("", !0)
|
|
3649
3650
|
], 64))
|
|
3650
|
-
], 42,
|
|
3651
|
+
], 42, ul)) : p("", !0);
|
|
3651
3652
|
}
|
|
3652
|
-
}),
|
|
3653
|
+
}), fl = { class: "svc-carry-forward-panel-wrapper" }, wl = { class: "svc-carry-forward-panel" }, Tl = { class: "svc-carry-forward-panel__link" }, Dl = /* @__PURE__ */ g({
|
|
3653
3654
|
__name: "QuestionBanner",
|
|
3654
3655
|
props: {
|
|
3655
3656
|
model: {}
|
|
3656
3657
|
},
|
|
3657
3658
|
setup(c) {
|
|
3658
|
-
return (t, e) => (a(), i("div",
|
|
3659
|
-
d("div",
|
|
3659
|
+
return (t, e) => (a(), i("div", fl, [
|
|
3660
|
+
d("div", wl, [
|
|
3660
3661
|
d("span", null, k(t.model.text) + k(" "), 1),
|
|
3661
|
-
d("span",
|
|
3662
|
+
d("span", Tl, [
|
|
3662
3663
|
v(s(u), {
|
|
3663
3664
|
is: "svc-action-button",
|
|
3664
3665
|
text: t.model.actionText,
|
|
@@ -3669,27 +3670,27 @@ const Nt = /* @__PURE__ */ g({
|
|
|
3669
3670
|
]));
|
|
3670
3671
|
}
|
|
3671
3672
|
});
|
|
3672
|
-
function
|
|
3673
|
+
function Nl(c, t, e) {
|
|
3673
3674
|
c(t, e);
|
|
3674
3675
|
}
|
|
3675
3676
|
function pe(c) {
|
|
3676
|
-
const t =
|
|
3677
|
+
const t = Nl.bind(
|
|
3677
3678
|
void 0,
|
|
3678
3679
|
c
|
|
3679
3680
|
);
|
|
3680
|
-
t("svc-tabbed-menu",
|
|
3681
|
+
t("svc-tabbed-menu", We), t("svc-tabbed-menu-item-wrapper", Je), t("svc-tabbed-menu-item", Xe), t("svc-side-bar", oo), t("svc-side-bar-default-header", ao), t("svc-side-bar-page", lo), t("svc-tabs", co), t("svc-tab-control", bo), t("svc-tab-button", $o), t("svc-property-grid-placeholder", No), t("svc-side-bar-header", Po), t("svc-side-bar-property-grid-header", Ko), t("svc-property-grid", ro), t("svc-object-selector", io), t("svc-search", Ga), t("svc-switcher", xo), t("svc-action-button", Wo), t("svc-question-error", Uo), t("survey-embeddedsurvey", Hs), t("sv-logic-operator", Qs), t("survey-linkvalue", Os), t("survey-color", rt), t("color-item", dt), t("sv-boolean-switch", Tt), t("survey-fileedit", mt), t("survey-spinedit", yt), t("survey-textwithreset", ne), t("survey-commentwithreset", ne), t("survey-widget", O), t("survey-simulator", ss), t("svc-tab-preview", rs), t("svc-complete-page", cs), t("survey-results", qs), t("survey-results-table-row", ks), t("json-error-item", Vs), t("svc-tab-json-editor-textarea", Is), t("svc-tab-json-editor-ace", Ds), t("svc-tab-translation", Zs), t("sd-translation-line-skeleton", ot), t("svc-translate-from-action", st), t("svc-tab-logic", Fs), t("svc-tab-theme", at), t("svc-toolbox", Lt), t("svc-toolbox-list", Xt), t("svc-toolbox-category", Zt), t("svc-toolbox-tool", Kt), t("svc-toolbox-item", Ot), t("svc-toolbox-item-group", Gt), t(Ee, Pt), t("svc-tab-designer", cn), t("svc-page-navigator", ja), t("svc-page-navigator-item", sl), t("svc-page", Cn), t("svc-row", Dn), t("svc-add-new-question-btn", $n), t("svc-add-question-type-selector", fn), t("svc-question", ae), t("svc-rating-question", ae), t("svc-rating-question-content", jn), t("svc-image-question", zn), t("svc-image-question-adorner", Hn), t("svc-matrix-cell", Zn), t("svc-cell-question", xn), t("svc-cell-dropdown-question", cl), t("svc-question-editor-content", Pa), t("svc-logo-image", Fa), t("svc-panel", ma), t("svc-item-value", qa), t("svc-image-item-value", Ea), t("svc-dropdown-question", ll), t("svc-dropdown-question-adorner", al), t("svc-widget-question", kl), t("svc-question-banner", Dl);
|
|
3681
3682
|
}
|
|
3682
3683
|
pe(
|
|
3683
3684
|
(c, t) => ie.Instance.registerComponent(c, t)
|
|
3684
3685
|
);
|
|
3685
|
-
const
|
|
3686
|
+
const El = {
|
|
3686
3687
|
install(c) {
|
|
3687
|
-
c.component("SurveyCreatorComponent",
|
|
3688
|
+
c.component("SurveyCreatorComponent", Ge), pe((t, e) => {
|
|
3688
3689
|
c.component(t, e), ie.Instance.registerComponent(t, t);
|
|
3689
3690
|
});
|
|
3690
3691
|
}
|
|
3691
3692
|
};
|
|
3692
3693
|
export {
|
|
3693
|
-
|
|
3694
|
-
|
|
3694
|
+
Ge as SurveyCreatorComponent,
|
|
3695
|
+
El as surveyCreatorPlugin
|
|
3695
3696
|
};
|