survey-creator-vue 2.2.1 → 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 +601 -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;
|
|
@@ -1745,14 +1746,14 @@ const Nt = /* @__PURE__ */ g({
|
|
|
1745
1746
|
tabindex: s(l).tabIndex,
|
|
1746
1747
|
ref_key: "root",
|
|
1747
1748
|
ref: n
|
|
1748
|
-
}, null, 40,
|
|
1749
|
+
}, null, 40, Bt)),
|
|
1749
1750
|
e.value.hasHtml ? (a(), i("span", {
|
|
1750
1751
|
key: 1,
|
|
1751
1752
|
role: "textbox",
|
|
1752
1753
|
class: "sv-string-editor sv-string-editor--html",
|
|
1753
1754
|
spellcheck: "false",
|
|
1754
1755
|
onFocus: U,
|
|
1755
|
-
onBlur:
|
|
1756
|
+
onBlur: J,
|
|
1756
1757
|
onKeydown: D[6] || (D[6] = //@ts-ignore
|
|
1757
1758
|
(...B) => {
|
|
1758
1759
|
var M, S;
|
|
@@ -1786,8 +1787,8 @@ const Nt = /* @__PURE__ */ g({
|
|
|
1786
1787
|
innerHTML: r.value,
|
|
1787
1788
|
ref_key: "root",
|
|
1788
1789
|
ref: n
|
|
1789
|
-
}, null, 40,
|
|
1790
|
-
R.value ? (a(),
|
|
1790
|
+
}, null, 40, It)) : p("", !0),
|
|
1791
|
+
R.value ? (a(), y(s(u), {
|
|
1791
1792
|
key: 2,
|
|
1792
1793
|
is: "sv-character-counter",
|
|
1793
1794
|
counter: E.value,
|
|
@@ -1795,49 +1796,47 @@ const Nt = /* @__PURE__ */ g({
|
|
|
1795
1796
|
}, null, 8, ["counter", "remainingCharacterCounter"])) : p("", !0)
|
|
1796
1797
|
])
|
|
1797
1798
|
]),
|
|
1798
|
-
_.value ? (a(), i("span",
|
|
1799
|
+
_.value ? (a(), i("span", Et, k(_.value), 1)) : p("", !0)
|
|
1799
1800
|
], 2));
|
|
1800
1801
|
}
|
|
1801
|
-
}),
|
|
1802
|
+
}), Rt = {
|
|
1802
1803
|
key: 0,
|
|
1803
1804
|
class: "svc-toolbox__search-container"
|
|
1804
|
-
},
|
|
1805
|
+
}, Vt = /* @__PURE__ */ d("div", { class: "svc-toolbox__category-separator svc-toolbox__category-separator--search" }, null, -1), At = {
|
|
1805
1806
|
key: 1,
|
|
1806
1807
|
class: "svc-toolbox__placeholder"
|
|
1807
|
-
},
|
|
1808
|
+
}, zt = {
|
|
1808
1809
|
key: 1,
|
|
1809
1810
|
class: "svc-toolbox__category"
|
|
1810
|
-
},
|
|
1811
|
+
}, Lt = /* @__PURE__ */ g({
|
|
1811
1812
|
__name: "AdaptiveToolbox",
|
|
1812
1813
|
props: {
|
|
1813
1814
|
model: {}
|
|
1814
1815
|
},
|
|
1815
1816
|
setup(c) {
|
|
1816
1817
|
const t = c, e = $(() => t.model.toolbox), o = I();
|
|
1817
|
-
T(() => e.value)
|
|
1818
|
-
|
|
1819
|
-
P(() => {
|
|
1820
|
-
e.value.
|
|
1821
|
-
e.value.containerElement,
|
|
1822
|
-
e.value
|
|
1823
|
-
);
|
|
1818
|
+
T(() => e.value), G(() => {
|
|
1819
|
+
e.value.afterRender(o.value);
|
|
1820
|
+
}), P(() => {
|
|
1821
|
+
e.value.afterRender(o.value);
|
|
1824
1822
|
}), K(() => {
|
|
1825
|
-
|
|
1823
|
+
e.value.beforeDestroy();
|
|
1826
1824
|
});
|
|
1827
|
-
const
|
|
1828
|
-
return (
|
|
1825
|
+
const n = $(() => e.value.renderedActions);
|
|
1826
|
+
return (r, l) => (a(), i("div", {
|
|
1829
1827
|
class: m(e.value.classNames),
|
|
1830
1828
|
ref_key: "root",
|
|
1831
|
-
ref: o
|
|
1829
|
+
ref: o,
|
|
1830
|
+
style: F(e.value.getRootStyle())
|
|
1832
1831
|
}, [
|
|
1833
1832
|
d("div", {
|
|
1834
|
-
onFocusout:
|
|
1833
|
+
onFocusout: l[0] || (l[0] = (_) => e.value.focusOut(_)),
|
|
1835
1834
|
class: "svc-toolbox__panel"
|
|
1836
1835
|
}, [
|
|
1837
|
-
e.value.showSearch ? (a(), i("div",
|
|
1838
|
-
e.value.isCompactRendered ? (a(),
|
|
1836
|
+
e.value.showSearch ? (a(), i("div", Rt, [
|
|
1837
|
+
e.value.isCompactRendered ? (a(), y(s(u), {
|
|
1839
1838
|
is: "svc-toolbox-tool",
|
|
1840
|
-
creator:
|
|
1839
|
+
creator: r.model,
|
|
1841
1840
|
key: "searchitem",
|
|
1842
1841
|
item: e.value.searchItem,
|
|
1843
1842
|
parentModel: e.value,
|
|
@@ -1847,23 +1846,23 @@ const Nt = /* @__PURE__ */ g({
|
|
|
1847
1846
|
is: "svc-search",
|
|
1848
1847
|
model: e.value.searchManager
|
|
1849
1848
|
}, null, 8, ["model"]),
|
|
1850
|
-
|
|
1849
|
+
Vt
|
|
1851
1850
|
])) : p("", !0),
|
|
1852
|
-
e.value.showPlaceholder ? (a(), i("div",
|
|
1851
|
+
e.value.showPlaceholder ? (a(), i("div", At, k(e.value.toolboxNoResultsFound), 1)) : p("", !0),
|
|
1853
1852
|
v(s(u), { is: "sv-scroll" }, {
|
|
1854
|
-
default:
|
|
1855
|
-
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), {
|
|
1856
1855
|
is: "svc-toolbox-category",
|
|
1857
|
-
key:
|
|
1858
|
-
category:
|
|
1856
|
+
key: q,
|
|
1857
|
+
category: _,
|
|
1859
1858
|
toolbox: e.value
|
|
1860
1859
|
}, null, 8, ["category", "toolbox"]))), 128)),
|
|
1861
|
-
e.value.showInSingleCategory ? (a(), i("div",
|
|
1862
|
-
(a(!0), i(w, null, V(
|
|
1863
|
-
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,
|
|
1864
1863
|
is: "svc-toolbox-tool",
|
|
1865
|
-
creator:
|
|
1866
|
-
item:
|
|
1864
|
+
creator: r.model,
|
|
1865
|
+
item: _,
|
|
1867
1866
|
parentModel: e.value,
|
|
1868
1867
|
isCompact: e.value.isCompactRendered
|
|
1869
1868
|
}, null, 8, ["creator", "item", "parentModel", "isCompact"]))), 128))
|
|
@@ -1872,12 +1871,12 @@ const Nt = /* @__PURE__ */ g({
|
|
|
1872
1871
|
_: 1
|
|
1873
1872
|
})
|
|
1874
1873
|
], 32)
|
|
1875
|
-
],
|
|
1874
|
+
], 6));
|
|
1876
1875
|
}
|
|
1877
|
-
}),
|
|
1876
|
+
}), Ft = {
|
|
1878
1877
|
key: 0,
|
|
1879
1878
|
class: "svc-toolbox__category-separator"
|
|
1880
|
-
},
|
|
1879
|
+
}, Kt = /* @__PURE__ */ g({
|
|
1881
1880
|
__name: "ToolboxTool",
|
|
1882
1881
|
props: {
|
|
1883
1882
|
creator: {},
|
|
@@ -1887,7 +1886,7 @@ const Nt = /* @__PURE__ */ g({
|
|
|
1887
1886
|
},
|
|
1888
1887
|
setup(c) {
|
|
1889
1888
|
const t = c, e = z(
|
|
1890
|
-
() => new
|
|
1889
|
+
() => new $e(
|
|
1891
1890
|
t.item,
|
|
1892
1891
|
t.creator,
|
|
1893
1892
|
t.parentModel
|
|
@@ -1912,13 +1911,13 @@ const Nt = /* @__PURE__ */ g({
|
|
|
1912
1911
|
ref_key: "root",
|
|
1913
1912
|
ref: o
|
|
1914
1913
|
}, [
|
|
1915
|
-
n.item.needSeparator && !n.creator.toolbox.showCategoryTitles ? (a(), i("div",
|
|
1914
|
+
n.item.needSeparator && !n.creator.toolbox.showCategoryTitles ? (a(), i("div", Ft)) : p("", !0),
|
|
1916
1915
|
d("div", {
|
|
1917
1916
|
class: "svc-toolbox__tool-content sv-action__content",
|
|
1918
1917
|
onPointerdown: r[0] || (r[0] = //@ts-ignore
|
|
1919
1918
|
(..._) => {
|
|
1920
|
-
var
|
|
1921
|
-
return ((
|
|
1919
|
+
var q, b;
|
|
1920
|
+
return ((q = s(e)) == null ? void 0 : q.onPointerDown) && ((b = s(e)) == null ? void 0 : b.onPointerDown(..._));
|
|
1922
1921
|
})
|
|
1923
1922
|
}, [
|
|
1924
1923
|
v(s(u), {
|
|
@@ -1932,10 +1931,10 @@ const Nt = /* @__PURE__ */ g({
|
|
|
1932
1931
|
], 2);
|
|
1933
1932
|
};
|
|
1934
1933
|
}
|
|
1935
|
-
}),
|
|
1934
|
+
}), Ut = ["aria-label", "title"], Qt = { class: "svc-toolbox__item-container" }, Ht = {
|
|
1936
1935
|
key: 0,
|
|
1937
1936
|
class: "svc-toolbox__item-title"
|
|
1938
|
-
},
|
|
1937
|
+
}, Ot = /* @__PURE__ */ g({
|
|
1939
1938
|
__name: "ToolboxItem",
|
|
1940
1939
|
props: {
|
|
1941
1940
|
creator: {},
|
|
@@ -1945,15 +1944,15 @@ const Nt = /* @__PURE__ */ g({
|
|
|
1945
1944
|
},
|
|
1946
1945
|
setup(c) {
|
|
1947
1946
|
return (t, e) => (a(), i(w, null, [
|
|
1948
|
-
|
|
1947
|
+
C((a(), i("div", {
|
|
1949
1948
|
class: m(["svc-toolbox__item", t.item.renderedCss]),
|
|
1950
1949
|
role: "button",
|
|
1951
1950
|
"aria-label": t.item.tooltip,
|
|
1952
1951
|
title: t.item.tooltip,
|
|
1953
1952
|
onClick: e[0] || (e[0] = (o) => t.viewModel.click(o))
|
|
1954
1953
|
}, [
|
|
1955
|
-
d("span",
|
|
1956
|
-
t.item.iconName ? (a(),
|
|
1954
|
+
d("span", Qt, [
|
|
1955
|
+
t.item.iconName ? (a(), y(s(u), {
|
|
1957
1956
|
key: 0,
|
|
1958
1957
|
is: "sv-svg-icon",
|
|
1959
1958
|
iconName: t.item.iconName,
|
|
@@ -1961,8 +1960,8 @@ const Nt = /* @__PURE__ */ g({
|
|
|
1961
1960
|
class: "svc-toolbox__item-icon"
|
|
1962
1961
|
}, null, 8, ["iconName"])) : p("", !0)
|
|
1963
1962
|
]),
|
|
1964
|
-
t.isCompact ? p("", !0) : (a(), i("span",
|
|
1965
|
-
], 10,
|
|
1963
|
+
t.isCompact ? p("", !0) : (a(), i("span", Ht, k(t.item.title), 1))
|
|
1964
|
+
], 10, Ut)), [
|
|
1966
1965
|
[s(N)]
|
|
1967
1966
|
]),
|
|
1968
1967
|
t.isCompact ? (a(), i("span", {
|
|
@@ -1980,7 +1979,7 @@ const Nt = /* @__PURE__ */ g({
|
|
|
1980
1979
|
])) : p("", !0)
|
|
1981
1980
|
], 64));
|
|
1982
1981
|
}
|
|
1983
|
-
}),
|
|
1982
|
+
}), Gt = /* @__PURE__ */ g({
|
|
1984
1983
|
__name: "ToolboxItemGroup",
|
|
1985
1984
|
props: {
|
|
1986
1985
|
creator: {},
|
|
@@ -2019,10 +2018,10 @@ const Nt = /* @__PURE__ */ g({
|
|
|
2019
2018
|
], 32)
|
|
2020
2019
|
], 64));
|
|
2021
2020
|
}
|
|
2022
|
-
}),
|
|
2021
|
+
}), Wt = { className: "svc-toolbox__category-header-wrapper" }, jt = { class: "svc-toolbox__category-title" }, Jt = {
|
|
2023
2022
|
key: 0,
|
|
2024
2023
|
class: "svc-toolbox__category-header__controls"
|
|
2025
|
-
},
|
|
2024
|
+
}, Zt = /* @__PURE__ */ g({
|
|
2026
2025
|
__name: "ToolboxCategory",
|
|
2027
2026
|
props: {
|
|
2028
2027
|
category: {},
|
|
@@ -2036,15 +2035,15 @@ const Nt = /* @__PURE__ */ g({
|
|
|
2036
2035
|
"svc-toolbox__category--empty": e.category.empty
|
|
2037
2036
|
}])
|
|
2038
2037
|
}, [
|
|
2039
|
-
d("div",
|
|
2040
|
-
|
|
2038
|
+
d("div", Wt, [
|
|
2039
|
+
C((a(), i("div", {
|
|
2041
2040
|
class: m(["svc-toolbox__category-header", {
|
|
2042
2041
|
"svc-toolbox__category-header--collapsed": e.toolbox.canCollapseCategories
|
|
2043
2042
|
}]),
|
|
2044
2043
|
onClick: o[0] || (o[0] = (n) => e.category.toggleState())
|
|
2045
2044
|
}, [
|
|
2046
|
-
d("span",
|
|
2047
|
-
e.toolbox.canCollapseCategories ? (a(), i("div",
|
|
2045
|
+
d("span", jt, k(e.category.title), 1),
|
|
2046
|
+
e.toolbox.canCollapseCategories ? (a(), i("div", Jt, [
|
|
2048
2047
|
v(s(u), {
|
|
2049
2048
|
is: "sv-svg-icon",
|
|
2050
2049
|
iconName: e.category.iconName,
|
|
@@ -2056,7 +2055,7 @@ const Nt = /* @__PURE__ */ g({
|
|
|
2056
2055
|
[s(N)]
|
|
2057
2056
|
])
|
|
2058
2057
|
]),
|
|
2059
|
-
(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), {
|
|
2060
2059
|
is: "svc-toolbox-tool",
|
|
2061
2060
|
item: n,
|
|
2062
2061
|
key: n.renderedId,
|
|
@@ -2066,7 +2065,7 @@ const Nt = /* @__PURE__ */ g({
|
|
|
2066
2065
|
}, null, 8, ["item", "creator", "parentModel"]))), 128))
|
|
2067
2066
|
], 2));
|
|
2068
2067
|
}
|
|
2069
|
-
}),
|
|
2068
|
+
}), Xt = /* @__PURE__ */ g({
|
|
2070
2069
|
__name: "ToolboxList",
|
|
2071
2070
|
props: {
|
|
2072
2071
|
model: {},
|
|
@@ -2077,7 +2076,7 @@ const Nt = /* @__PURE__ */ g({
|
|
|
2077
2076
|
return T(() => t.model), (o, n) => (a(), i("div", {
|
|
2078
2077
|
class: m(o.model.cssClasses.root)
|
|
2079
2078
|
}, [
|
|
2080
|
-
(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), {
|
|
2081
2080
|
key: l,
|
|
2082
2081
|
is: "svc-toolbox-tool",
|
|
2083
2082
|
creator: o.creator,
|
|
@@ -2087,28 +2086,28 @@ const Nt = /* @__PURE__ */ g({
|
|
|
2087
2086
|
}, null, 8, ["creator", "item", "parentModel"]))), 128))
|
|
2088
2087
|
], 2));
|
|
2089
2088
|
}
|
|
2090
|
-
}),
|
|
2089
|
+
}), Yt = { class: "svc-flex-column" }, xt = { class: "svc-tab-designer_content" }, en = {
|
|
2091
2090
|
key: 0,
|
|
2092
2091
|
class: "svc-designer-header"
|
|
2093
|
-
},
|
|
2092
|
+
}, on = {
|
|
2094
2093
|
class: "svc-designer__placeholder-container",
|
|
2095
2094
|
"data-sv-drop-target-survey-element": "newGhostPage"
|
|
2096
|
-
},
|
|
2095
|
+
}, sn = {
|
|
2097
2096
|
className: "svc-designer-placeholder-page",
|
|
2098
2097
|
"data-sv-drop-target-survey-element": "newGhostPage"
|
|
2099
|
-
},
|
|
2098
|
+
}, tn = {
|
|
2100
2099
|
key: 0,
|
|
2101
2100
|
class: "svc-designer-header"
|
|
2102
|
-
},
|
|
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 = {
|
|
2103
2102
|
key: 0,
|
|
2104
2103
|
class: "svc-tab-designer__tools"
|
|
2105
|
-
},
|
|
2104
|
+
}, rn = {
|
|
2106
2105
|
key: 0,
|
|
2107
2106
|
class: "svc-tab-designer__page-navigator"
|
|
2108
|
-
},
|
|
2107
|
+
}, dn = {
|
|
2109
2108
|
key: 1,
|
|
2110
2109
|
class: "svc-tab-designer__toolbar"
|
|
2111
|
-
},
|
|
2110
|
+
}, cn = /* @__PURE__ */ g({
|
|
2112
2111
|
__name: "Designer",
|
|
2113
2112
|
props: {
|
|
2114
2113
|
model: {}
|
|
@@ -2116,8 +2115,8 @@ const Nt = /* @__PURE__ */ g({
|
|
|
2116
2115
|
setup(c) {
|
|
2117
2116
|
const t = c, e = $(() => t.model.survey);
|
|
2118
2117
|
return T(() => t.model), T(() => e.value), (o, n) => (a(), i(w, null, [
|
|
2119
|
-
d("div",
|
|
2120
|
-
o.model.isToolboxVisible ? (a(),
|
|
2118
|
+
d("div", Yt, [
|
|
2119
|
+
o.model.isToolboxVisible ? (a(), y(s(u), {
|
|
2121
2120
|
key: 0,
|
|
2122
2121
|
is: "svc-toolbox",
|
|
2123
2122
|
model: o.model.creator
|
|
@@ -2129,22 +2128,22 @@ const Nt = /* @__PURE__ */ g({
|
|
|
2129
2128
|
(...r) => o.model.clickDesigner && o.model.clickDesigner(...r))
|
|
2130
2129
|
}, [
|
|
2131
2130
|
v(s(u), { is: "sv-scroll" }, {
|
|
2132
|
-
default:
|
|
2133
|
-
d("div",
|
|
2131
|
+
default: X(() => [
|
|
2132
|
+
d("div", xt, [
|
|
2134
2133
|
o.model.showPlaceholder ? (a(), i(w, { key: 0 }, [
|
|
2135
|
-
o.model.creator.showHeaderInEmptySurvey && o.model.creator.allowEditSurveyTitle ? (a(), i("div",
|
|
2134
|
+
o.model.creator.showHeaderInEmptySurvey && o.model.creator.allowEditSurveyTitle ? (a(), i("div", en, [
|
|
2136
2135
|
v(s(u), {
|
|
2137
2136
|
is: "survey-header",
|
|
2138
2137
|
survey: o.model.creator.survey
|
|
2139
2138
|
}, null, 8, ["survey"])
|
|
2140
2139
|
])) : p("", !0),
|
|
2141
|
-
d("div",
|
|
2142
|
-
v(
|
|
2140
|
+
d("div", on, [
|
|
2141
|
+
v(j, {
|
|
2143
2142
|
name: "designer",
|
|
2144
2143
|
placeholderTitleText: o.model.placeholderTitleText,
|
|
2145
2144
|
placeholderDescriptionText: o.model.placeholderDescriptionText
|
|
2146
2145
|
}, null, 8, ["placeholderTitleText", "placeholderDescriptionText"]),
|
|
2147
|
-
d("div",
|
|
2146
|
+
d("div", sn, [
|
|
2148
2147
|
v(s(u), {
|
|
2149
2148
|
is: "svc-page",
|
|
2150
2149
|
survey: o.model.creator.survey,
|
|
@@ -2163,7 +2162,7 @@ const Nt = /* @__PURE__ */ g({
|
|
|
2163
2162
|
o.model.surfaceCssVariables
|
|
2164
2163
|
])
|
|
2165
2164
|
}, [
|
|
2166
|
-
o.model.creator.allowEditSurveyTitle ? (a(), i("div",
|
|
2165
|
+
o.model.creator.allowEditSurveyTitle ? (a(), i("div", tn, [
|
|
2167
2166
|
v(s(u), {
|
|
2168
2167
|
is: "survey-header",
|
|
2169
2168
|
survey: o.model.creator.survey
|
|
@@ -2182,7 +2181,7 @@ const Nt = /* @__PURE__ */ g({
|
|
|
2182
2181
|
page: r,
|
|
2183
2182
|
isGhost: r == o.model.newPage
|
|
2184
2183
|
}, null, 8, ["survey", "creator", "page", "isGhost"])
|
|
2185
|
-
], 8,
|
|
2184
|
+
], 8, nn))), 128)) : p("", !0),
|
|
2186
2185
|
o.model.pagesController.page2Display && o.model.creator.pageEditMode === "bypage" ? (a(), i("div", {
|
|
2187
2186
|
key: 2,
|
|
2188
2187
|
class: "svc-page",
|
|
@@ -2195,17 +2194,17 @@ const Nt = /* @__PURE__ */ g({
|
|
|
2195
2194
|
creator: o.model.creator,
|
|
2196
2195
|
isGhost: o.model.pagesController.page2Display == o.model.newPage
|
|
2197
2196
|
}, null, 8, ["page", "creator", "isGhost"])
|
|
2198
|
-
], 8,
|
|
2197
|
+
], 8, an)) : p("", !0)
|
|
2199
2198
|
], 6),
|
|
2200
|
-
o.model.showSurfaceTools ? (a(), i("div",
|
|
2201
|
-
o.model.creator.showPageNavigator ? (a(), i("div",
|
|
2199
|
+
o.model.showSurfaceTools ? (a(), i("div", ln, [
|
|
2200
|
+
o.model.creator.showPageNavigator ? (a(), i("div", rn, [
|
|
2202
2201
|
v(s(u), {
|
|
2203
2202
|
is: "svc-page-navigator",
|
|
2204
2203
|
pagesController: o.model.pagesController,
|
|
2205
2204
|
pageEditMode: o.model.creator.pageEditMode
|
|
2206
2205
|
}, null, 8, ["pagesController", "pageEditMode"])
|
|
2207
2206
|
])) : p("", !0),
|
|
2208
|
-
o.model.showSurfaceToolbar ? (a(), i("div",
|
|
2207
|
+
o.model.showSurfaceToolbar ? (a(), i("div", dn, [
|
|
2209
2208
|
v(s(u), {
|
|
2210
2209
|
is: "sv-action-bar",
|
|
2211
2210
|
model: o.model.surfaceToolbar
|
|
@@ -2220,16 +2219,16 @@ const Nt = /* @__PURE__ */ g({
|
|
|
2220
2219
|
], 2)
|
|
2221
2220
|
], 64));
|
|
2222
2221
|
}
|
|
2223
|
-
}),
|
|
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 = {
|
|
2224
2223
|
key: 1,
|
|
2225
2224
|
class: "svc-page__loading-content"
|
|
2226
|
-
},
|
|
2225
|
+
}, _n = {
|
|
2227
2226
|
key: 2,
|
|
2228
2227
|
class: "svc-page__placeholder_frame"
|
|
2229
|
-
},
|
|
2228
|
+
}, gn = { class: "svc-panel__placeholder_frame" }, bn = { class: "svc-panel__placeholder" }, yn = { class: "svc-page__content-actions" }, hn = {
|
|
2230
2229
|
key: 4,
|
|
2231
2230
|
class: "svc-page__content-actions"
|
|
2232
|
-
},
|
|
2231
|
+
}, Cn = /* @__PURE__ */ g({
|
|
2233
2232
|
__name: "Page",
|
|
2234
2233
|
props: {
|
|
2235
2234
|
creator: {},
|
|
@@ -2240,7 +2239,7 @@ const Nt = /* @__PURE__ */ g({
|
|
|
2240
2239
|
setup(c) {
|
|
2241
2240
|
const t = c, e = I(), o = z(
|
|
2242
2241
|
() => {
|
|
2243
|
-
const r = new
|
|
2242
|
+
const r = new ke(t.creator, t.page);
|
|
2244
2243
|
return r.isGhost = t.isGhost, r;
|
|
2245
2244
|
},
|
|
2246
2245
|
[() => t.page],
|
|
@@ -2248,12 +2247,12 @@ const Nt = /* @__PURE__ */ g({
|
|
|
2248
2247
|
r.dispose();
|
|
2249
2248
|
}
|
|
2250
2249
|
);
|
|
2251
|
-
|
|
2250
|
+
W(
|
|
2252
2251
|
() => t.isGhost,
|
|
2253
2252
|
() => {
|
|
2254
2253
|
o.value && (o.value.isGhost = t.isGhost);
|
|
2255
2254
|
}
|
|
2256
|
-
),
|
|
2255
|
+
), G(() => {
|
|
2257
2256
|
e.value && o.value && (o.value.rootElement = e.value);
|
|
2258
2257
|
}), P(() => {
|
|
2259
2258
|
e.value && o.value && o.value.setRootElement(e.value);
|
|
@@ -2261,7 +2260,7 @@ const Nt = /* @__PURE__ */ g({
|
|
|
2261
2260
|
const n = (r) => {
|
|
2262
2261
|
o.value.hover(r, r.currentTarget);
|
|
2263
2262
|
};
|
|
2264
|
-
return (r, l) => s(o).page ?
|
|
2263
|
+
return (r, l) => s(o).page ? C((a(), i("div", {
|
|
2265
2264
|
key: s(o).page.id,
|
|
2266
2265
|
id: s(o).page.id,
|
|
2267
2266
|
class: m(["svc-page__content", s(o).css]),
|
|
@@ -2275,20 +2274,20 @@ const Nt = /* @__PURE__ */ g({
|
|
|
2275
2274
|
onMouseover: n,
|
|
2276
2275
|
onMouseleave: n
|
|
2277
2276
|
}, [
|
|
2278
|
-
|
|
2279
|
-
|
|
2280
|
-
s(o).needRenderContent ? (a(),
|
|
2277
|
+
pn,
|
|
2278
|
+
vn,
|
|
2279
|
+
s(o).needRenderContent ? (a(), y(s(u), {
|
|
2281
2280
|
key: 0,
|
|
2282
2281
|
is: "survey-page",
|
|
2283
2282
|
survey: s(o).creator.survey,
|
|
2284
2283
|
page: s(o).page
|
|
2285
2284
|
}, null, 8, ["survey", "page"])) : p("", !0),
|
|
2286
|
-
s(o).needRenderContent ? p("", !0) : (a(), i("div",
|
|
2285
|
+
s(o).needRenderContent ? p("", !0) : (a(), i("div", mn, [
|
|
2287
2286
|
v(s(u), { is: "sv-loading-indicator" })
|
|
2288
2287
|
])),
|
|
2289
|
-
s(o).showPlaceholder ? (a(), i("div",
|
|
2290
|
-
d("div",
|
|
2291
|
-
d("div",
|
|
2288
|
+
s(o).showPlaceholder ? (a(), i("div", _n, [
|
|
2289
|
+
d("div", gn, [
|
|
2290
|
+
d("div", bn, k(s(o).placeholderText), 1)
|
|
2292
2291
|
])
|
|
2293
2292
|
])) : p("", !0),
|
|
2294
2293
|
s(o).allowDragging && !s(o).isGhost ? (a(), i("div", {
|
|
@@ -2304,24 +2303,24 @@ const Nt = /* @__PURE__ */ g({
|
|
|
2304
2303
|
iconName: "icon-drag-area-indicator_24x16",
|
|
2305
2304
|
size: "auto"
|
|
2306
2305
|
}), null, 16),
|
|
2307
|
-
d("div",
|
|
2306
|
+
d("div", yn, [
|
|
2308
2307
|
v(s(u), {
|
|
2309
2308
|
is: "sv-action-bar",
|
|
2310
2309
|
model: s(o).actionContainer
|
|
2311
2310
|
}, null, 8, ["model"]),
|
|
2312
|
-
s(o).topActionContainer.hasActions ? (a(),
|
|
2311
|
+
s(o).topActionContainer.hasActions ? (a(), y(s(u), {
|
|
2313
2312
|
key: 0,
|
|
2314
2313
|
is: "sv-action-bar",
|
|
2315
2314
|
model: s(o).topActionContainer
|
|
2316
2315
|
}, null, 8, ["model"])) : p("", !0)
|
|
2317
2316
|
])
|
|
2318
2317
|
], 32)) : p("", !0),
|
|
2319
|
-
!s(o).allowDragging || s(o).isGhost ? (a(), i("div",
|
|
2318
|
+
!s(o).allowDragging || s(o).isGhost ? (a(), i("div", hn, [
|
|
2320
2319
|
v(s(u), {
|
|
2321
2320
|
is: "sv-action-bar",
|
|
2322
2321
|
model: s(o).actionContainer
|
|
2323
2322
|
}, null, 8, ["model"]),
|
|
2324
|
-
s(o).topActionContainer.hasActions ? (a(),
|
|
2323
|
+
s(o).topActionContainer.hasActions ? (a(), y(s(u), {
|
|
2325
2324
|
key: 0,
|
|
2326
2325
|
is: "sv-action-bar",
|
|
2327
2326
|
model: s(o).topActionContainer
|
|
@@ -2331,11 +2330,11 @@ const Nt = /* @__PURE__ */ g({
|
|
|
2331
2330
|
is: "sv-action-bar",
|
|
2332
2331
|
model: s(o).footerActionsBar
|
|
2333
2332
|
}, null, 8, ["model"])
|
|
2334
|
-
], 42,
|
|
2333
|
+
], 42, un)), [
|
|
2335
2334
|
[s(N)]
|
|
2336
2335
|
]) : p("", !0);
|
|
2337
2336
|
}
|
|
2338
|
-
}),
|
|
2337
|
+
}), qn = { class: "svc-add-new-item-button__text" }, $n = /* @__PURE__ */ g({
|
|
2339
2338
|
__name: "AddQuestion",
|
|
2340
2339
|
props: {
|
|
2341
2340
|
item: {},
|
|
@@ -2351,7 +2350,7 @@ const Nt = /* @__PURE__ */ g({
|
|
|
2351
2350
|
() => t.renderPopup === void 0 || t.renderPopup !== !1
|
|
2352
2351
|
);
|
|
2353
2352
|
return (n, r) => (a(), i(w, null, [
|
|
2354
|
-
|
|
2353
|
+
C((a(), i("div", {
|
|
2355
2354
|
class: m(e.value),
|
|
2356
2355
|
onClick: r[0] || (r[0] = (l) => {
|
|
2357
2356
|
n.item.data.addNewQuestion(n.item, l), l.stopPropagation();
|
|
@@ -2364,8 +2363,8 @@ const Nt = /* @__PURE__ */ g({
|
|
|
2364
2363
|
iconName: "icon-add_24x24",
|
|
2365
2364
|
size: "auto"
|
|
2366
2365
|
}),
|
|
2367
|
-
d("span",
|
|
2368
|
-
o.value ? (a(),
|
|
2366
|
+
d("span", qn, k(n.item.data.addNewQuestionText), 1),
|
|
2367
|
+
o.value ? (a(), y(s(u), {
|
|
2369
2368
|
key: 0,
|
|
2370
2369
|
is: "svc-add-question-type-selector",
|
|
2371
2370
|
questionTypeSelectorModel: n.item.data.questionTypeSelectorModel,
|
|
@@ -2374,7 +2373,7 @@ const Nt = /* @__PURE__ */ g({
|
|
|
2374
2373
|
], 34)), [
|
|
2375
2374
|
[s(N)]
|
|
2376
2375
|
]),
|
|
2377
|
-
o.value ? p("", !0) : (a(),
|
|
2376
|
+
o.value ? p("", !0) : (a(), y(s(u), {
|
|
2378
2377
|
key: 0,
|
|
2379
2378
|
is: "svc-add-question-type-selector",
|
|
2380
2379
|
questionTypeSelectorModel: n.item.data.questionTypeSelectorModel,
|
|
@@ -2382,7 +2381,7 @@ const Nt = /* @__PURE__ */ g({
|
|
|
2382
2381
|
}, null, 8, ["questionTypeSelectorModel", "renderPopup"]))
|
|
2383
2382
|
], 64));
|
|
2384
2383
|
}
|
|
2385
|
-
}),
|
|
2384
|
+
}), kn = ["title", "aria-label"], fn = /* @__PURE__ */ g({
|
|
2386
2385
|
__name: "AddQuestionTypeSelector",
|
|
2387
2386
|
props: {
|
|
2388
2387
|
questionTypeSelectorModel: {},
|
|
@@ -2390,7 +2389,7 @@ const Nt = /* @__PURE__ */ g({
|
|
|
2390
2389
|
},
|
|
2391
2390
|
setup(c) {
|
|
2392
2391
|
const t = c;
|
|
2393
|
-
return T(() => t.questionTypeSelectorModel), (e, o) =>
|
|
2392
|
+
return T(() => t.questionTypeSelectorModel), (e, o) => C((a(), i("button", {
|
|
2394
2393
|
type: "button",
|
|
2395
2394
|
onClick: o[0] || (o[0] = (n) => {
|
|
2396
2395
|
e.questionTypeSelectorModel.action(), n.stopPropagation();
|
|
@@ -2407,23 +2406,23 @@ const Nt = /* @__PURE__ */ g({
|
|
|
2407
2406
|
size: "auto",
|
|
2408
2407
|
title: e.questionTypeSelectorModel.title
|
|
2409
2408
|
}), null, 16),
|
|
2410
|
-
e.renderPopup ? (a(),
|
|
2409
|
+
e.renderPopup ? (a(), y(s(u), {
|
|
2411
2410
|
key: 0,
|
|
2412
2411
|
is: "sv-popup",
|
|
2413
2412
|
model: e.questionTypeSelectorModel.popupModel
|
|
2414
2413
|
}, null, 8, ["model"])) : p("", !0)
|
|
2415
|
-
], 8,
|
|
2414
|
+
], 8, kn)), [
|
|
2416
2415
|
[s(N)]
|
|
2417
2416
|
]);
|
|
2418
2417
|
}
|
|
2419
|
-
}),
|
|
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({
|
|
2420
2419
|
__name: "Row",
|
|
2421
2420
|
props: {
|
|
2422
2421
|
componentData: {}
|
|
2423
2422
|
},
|
|
2424
2423
|
setup(c) {
|
|
2425
2424
|
const t = c, e = $(() => t.componentData.creator), o = $(() => t.componentData.row), n = z(
|
|
2426
|
-
() => new
|
|
2425
|
+
() => new fe(e.value, o.value, void 0),
|
|
2427
2426
|
[() => e.value, () => o.value],
|
|
2428
2427
|
(r) => {
|
|
2429
2428
|
r.dispose();
|
|
@@ -2436,15 +2435,15 @@ const Nt = /* @__PURE__ */ g({
|
|
|
2436
2435
|
}), (r, l) => (a(), i("div", {
|
|
2437
2436
|
class: m(s(n).cssClasses)
|
|
2438
2437
|
}, [
|
|
2439
|
-
|
|
2440
|
-
|
|
2438
|
+
wn,
|
|
2439
|
+
Tn,
|
|
2441
2440
|
x(r.$slots, "default")
|
|
2442
2441
|
], 2));
|
|
2443
2442
|
}
|
|
2444
|
-
}),
|
|
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 = {
|
|
2445
2444
|
key: 0,
|
|
2446
2445
|
class: "svc-panel__placeholder_frame-wrapper"
|
|
2447
|
-
},
|
|
2446
|
+
}, Vn = { class: "svc-panel__placeholder_frame" }, An = {
|
|
2448
2447
|
class: "svc-panel__placeholder",
|
|
2449
2448
|
"data-bind": "text: placeholderText"
|
|
2450
2449
|
}, oe = /* @__PURE__ */ g({
|
|
@@ -2469,7 +2468,7 @@ const Nt = /* @__PURE__ */ g({
|
|
|
2469
2468
|
), n = $(
|
|
2470
2469
|
() => o.value.isBannerShowing ? o.value.createBannerParams() : null
|
|
2471
2470
|
);
|
|
2472
|
-
|
|
2471
|
+
G(() => {
|
|
2473
2472
|
e.value && o.value && (o.value.rootElement = e.value);
|
|
2474
2473
|
}), P(() => {
|
|
2475
2474
|
e.value && o.value && (o.value.rootElement = e.value);
|
|
@@ -2482,9 +2481,9 @@ const Nt = /* @__PURE__ */ g({
|
|
|
2482
2481
|
class: m(["svc-question__adorner", s(o).rootCss()]),
|
|
2483
2482
|
ref_key: "root",
|
|
2484
2483
|
ref: e,
|
|
2485
|
-
onDblclick: _[2] || (_[2] = (
|
|
2486
|
-
onMouseover: _[3] || (_[3] = (
|
|
2487
|
-
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)),
|
|
2488
2487
|
"data-sv-drop-target-survey-element": s(o).element.name || null,
|
|
2489
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); } }"
|
|
2490
2489
|
}, [
|
|
@@ -2492,7 +2491,7 @@ const Nt = /* @__PURE__ */ g({
|
|
|
2492
2491
|
key: 0,
|
|
2493
2492
|
class: m(s(o).cssCollapsedHiddenHeader)
|
|
2494
2493
|
}, [
|
|
2495
|
-
l.element.hasTitle ? (a(),
|
|
2494
|
+
l.element.hasTitle ? (a(), y(s(u), {
|
|
2496
2495
|
key: 0,
|
|
2497
2496
|
is: "survey-element-title",
|
|
2498
2497
|
element: l.element
|
|
@@ -2500,23 +2499,23 @@ const Nt = /* @__PURE__ */ g({
|
|
|
2500
2499
|
key: 1,
|
|
2501
2500
|
class: m(s(o).cssCollapsedHiddenTitle)
|
|
2502
2501
|
}, [
|
|
2503
|
-
d("span",
|
|
2502
|
+
d("span", Mn, k(l.element.name), 1)
|
|
2504
2503
|
], 2))
|
|
2505
2504
|
], 2)) : p("", !0),
|
|
2506
|
-
|
|
2507
|
-
onClick: _[1] || (_[1] = (
|
|
2508
|
-
s(o).select(s(o),
|
|
2505
|
+
C((a(), i("div", {
|
|
2506
|
+
onClick: _[1] || (_[1] = (q) => {
|
|
2507
|
+
s(o).select(s(o), q), q.stopPropagation();
|
|
2509
2508
|
}),
|
|
2510
2509
|
class: m(s(o).css())
|
|
2511
2510
|
}, [
|
|
2511
|
+
Sn,
|
|
2512
|
+
Bn,
|
|
2512
2513
|
In,
|
|
2513
2514
|
En,
|
|
2514
|
-
Pn,
|
|
2515
|
-
Rn,
|
|
2516
2515
|
s(o).allowDragging ? (a(), i("div", {
|
|
2517
2516
|
key: 0,
|
|
2518
2517
|
class: "svc-question__drag-area",
|
|
2519
|
-
onPointerdown: _[0] || (_[0] = (
|
|
2518
|
+
onPointerdown: _[0] || (_[0] = (q) => s(o).onPointerDown(q))
|
|
2520
2519
|
}, [
|
|
2521
2520
|
v(s(u), A({
|
|
2522
2521
|
is: "sv-svg-icon",
|
|
@@ -2526,7 +2525,7 @@ const Nt = /* @__PURE__ */ g({
|
|
|
2526
2525
|
iconName: "icon-drag-area-indicator_24x16",
|
|
2527
2526
|
size: "auto"
|
|
2528
2527
|
}), null, 16),
|
|
2529
|
-
d("div",
|
|
2528
|
+
d("div", Pn, [
|
|
2530
2529
|
v(s(u), {
|
|
2531
2530
|
is: "sv-action-bar",
|
|
2532
2531
|
model: s(o).topActionContainer,
|
|
@@ -2540,25 +2539,25 @@ const Nt = /* @__PURE__ */ g({
|
|
|
2540
2539
|
componentName: l.componentName,
|
|
2541
2540
|
componentData: l.componentData
|
|
2542
2541
|
}, null, 8, ["componentName", "componentData"]),
|
|
2543
|
-
s(o).isEmptyElement && !l.showPlaceholderComponent ? (a(), i("div",
|
|
2544
|
-
d("div",
|
|
2545
|
-
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)
|
|
2546
2545
|
])
|
|
2547
2546
|
])) : p("", !0),
|
|
2548
|
-
s(o).isEmptyElement && l.showPlaceholderComponent ? (a(),
|
|
2547
|
+
s(o).isEmptyElement && l.showPlaceholderComponent ? (a(), y(s(u), A(
|
|
2549
2548
|
{
|
|
2550
2549
|
key: 1,
|
|
2551
2550
|
is: l.placeholderComponent
|
|
2552
2551
|
},
|
|
2553
2552
|
l.getPlaceholderComponentData && l.getPlaceholderComponentData(s(o))
|
|
2554
2553
|
), null, 16, ["is"])) : p("", !0),
|
|
2555
|
-
l.adornerComponent ? (a(),
|
|
2554
|
+
l.adornerComponent ? (a(), y(s(u), {
|
|
2556
2555
|
key: 2,
|
|
2557
2556
|
is: l.adornerComponent,
|
|
2558
2557
|
model: s(o),
|
|
2559
2558
|
element: l.element
|
|
2560
2559
|
}, null, 8, ["is", "model", "element"])) : p("", !0),
|
|
2561
|
-
s(o).isBannerShowing ? (a(),
|
|
2560
|
+
s(o).isBannerShowing ? (a(), y(s(u), {
|
|
2562
2561
|
key: 3,
|
|
2563
2562
|
is: "svc-question-banner",
|
|
2564
2563
|
model: n.value
|
|
@@ -2577,7 +2576,7 @@ const Nt = /* @__PURE__ */ g({
|
|
|
2577
2576
|
], 2)), [
|
|
2578
2577
|
[s(N), { disableTabStop: !0 }]
|
|
2579
2578
|
])
|
|
2580
|
-
], 42,
|
|
2579
|
+
], 42, Nn)) : p("", !0);
|
|
2581
2580
|
}
|
|
2582
2581
|
}), ae = /* @__PURE__ */ g({
|
|
2583
2582
|
__name: "Question",
|
|
@@ -2591,28 +2590,28 @@ const Nt = /* @__PURE__ */ g({
|
|
|
2591
2590
|
t.componentData.element,
|
|
2592
2591
|
null
|
|
2593
2592
|
);
|
|
2594
|
-
return (o, n) => (a(),
|
|
2593
|
+
return (o, n) => (a(), y(oe, {
|
|
2595
2594
|
createModel: e,
|
|
2596
2595
|
element: o.componentData.element,
|
|
2597
2596
|
"component-name": o.componentName,
|
|
2598
2597
|
"component-data": o.componentData
|
|
2599
2598
|
}, null, 8, ["element", "component-name", "component-data"]));
|
|
2600
2599
|
}
|
|
2601
|
-
}),
|
|
2600
|
+
}), zn = /* @__PURE__ */ g({
|
|
2602
2601
|
__name: "QuestionImage",
|
|
2603
2602
|
props: {
|
|
2604
2603
|
componentName: {},
|
|
2605
2604
|
componentData: {}
|
|
2606
2605
|
},
|
|
2607
2606
|
setup(c) {
|
|
2608
|
-
const t = c, e = () => new
|
|
2607
|
+
const t = c, e = () => new we(
|
|
2609
2608
|
t.componentData.data,
|
|
2610
2609
|
t.componentData.element,
|
|
2611
2610
|
null
|
|
2612
2611
|
), o = (n) => ({
|
|
2613
2612
|
question: n == null ? void 0 : n.filePresentationModel
|
|
2614
2613
|
});
|
|
2615
|
-
return (n, r) => (a(),
|
|
2614
|
+
return (n, r) => (a(), y(oe, {
|
|
2616
2615
|
"create-model": e,
|
|
2617
2616
|
element: t.componentData.element,
|
|
2618
2617
|
"show-placeholder-component": !0,
|
|
@@ -2623,17 +2622,17 @@ const Nt = /* @__PURE__ */ g({
|
|
|
2623
2622
|
"adorner-component": "svc-image-question-adorner"
|
|
2624
2623
|
}, null, 8, ["element", "component-data", "component-name"]));
|
|
2625
2624
|
}
|
|
2626
|
-
}),
|
|
2625
|
+
}), Ln = {
|
|
2627
2626
|
key: 0,
|
|
2628
2627
|
class: "svc-image-question-controls"
|
|
2629
|
-
},
|
|
2628
|
+
}, Fn = ["accept"], Kn = {
|
|
2630
2629
|
class: "svc-context-button",
|
|
2631
2630
|
title: void 0,
|
|
2632
2631
|
"aria-label": void 0
|
|
2633
|
-
},
|
|
2632
|
+
}, Un = {
|
|
2634
2633
|
key: 1,
|
|
2635
2634
|
class: "svc-image-question__loading-placeholder"
|
|
2636
|
-
},
|
|
2635
|
+
}, Qn = { class: "svc-image-question__loading" }, Hn = /* @__PURE__ */ g({
|
|
2637
2636
|
__name: "Image",
|
|
2638
2637
|
props: {
|
|
2639
2638
|
model: {},
|
|
@@ -2641,7 +2640,7 @@ const Nt = /* @__PURE__ */ g({
|
|
|
2641
2640
|
},
|
|
2642
2641
|
setup(c) {
|
|
2643
2642
|
return (t, e) => (a(), i(w, null, [
|
|
2644
|
-
!t.model.isUploading && !t.model.isEmptyElement ? (a(), i("div",
|
|
2643
|
+
!t.model.isUploading && !t.model.isEmptyElement ? (a(), i("div", Ln, [
|
|
2645
2644
|
t.model.allowEdit ? (a(), i(w, { key: 0 }, [
|
|
2646
2645
|
d("input", {
|
|
2647
2646
|
type: "file",
|
|
@@ -2649,8 +2648,8 @@ const Nt = /* @__PURE__ */ g({
|
|
|
2649
2648
|
tabindex: "-1",
|
|
2650
2649
|
accept: t.model.acceptedTypes,
|
|
2651
2650
|
class: "svc-choose-file-input"
|
|
2652
|
-
}, null, 8,
|
|
2653
|
-
|
|
2651
|
+
}, null, 8, Fn),
|
|
2652
|
+
C((a(), i("span", Kn, [
|
|
2654
2653
|
v(s(u), {
|
|
2655
2654
|
is: "sv-svg-icon",
|
|
2656
2655
|
iconName: "icon-choosefile",
|
|
@@ -2662,14 +2661,14 @@ const Nt = /* @__PURE__ */ g({
|
|
|
2662
2661
|
])
|
|
2663
2662
|
], 64)) : p("", !0)
|
|
2664
2663
|
])) : p("", !0),
|
|
2665
|
-
t.model.isUploading && !t.model.isEmptyElement ? (a(), i("div",
|
|
2666
|
-
d("div",
|
|
2664
|
+
t.model.isUploading && !t.model.isEmptyElement ? (a(), i("div", Un, [
|
|
2665
|
+
d("div", Qn, [
|
|
2667
2666
|
v(s(u), { is: "sv-loading-indicator" })
|
|
2668
2667
|
])
|
|
2669
2668
|
])) : p("", !0)
|
|
2670
2669
|
], 64));
|
|
2671
2670
|
}
|
|
2672
|
-
}),
|
|
2671
|
+
}), On = { class: "svc-rating-question-content" }, Gn = ["aria-label"], Wn = ["aria-label"], jn = /* @__PURE__ */ g({
|
|
2673
2672
|
__name: "Rating",
|
|
2674
2673
|
props: {
|
|
2675
2674
|
componentData: {},
|
|
@@ -2677,7 +2676,7 @@ const Nt = /* @__PURE__ */ g({
|
|
|
2677
2676
|
},
|
|
2678
2677
|
setup(c) {
|
|
2679
2678
|
const t = c, e = z(
|
|
2680
|
-
() => new
|
|
2679
|
+
() => new Te(
|
|
2681
2680
|
t.componentData.data,
|
|
2682
2681
|
t.componentData.question,
|
|
2683
2682
|
null
|
|
@@ -2685,20 +2684,20 @@ const Nt = /* @__PURE__ */ g({
|
|
|
2685
2684
|
[() => t.componentData.data, () => t.componentData.question]
|
|
2686
2685
|
);
|
|
2687
2686
|
return (o, n) => {
|
|
2688
|
-
var r, l, _,
|
|
2689
|
-
return a(), i("div",
|
|
2687
|
+
var r, l, _, q, b, f, E, R, L;
|
|
2688
|
+
return a(), i("div", On, [
|
|
2690
2689
|
d("div", {
|
|
2691
2690
|
class: m((r = s(e)) == null ? void 0 : r.controlsClassNames)
|
|
2692
2691
|
}, [
|
|
2693
|
-
(l = s(e)) != null && l.allowRemove ?
|
|
2692
|
+
(l = s(e)) != null && l.allowRemove ? C((a(), i("span", {
|
|
2694
2693
|
key: 0,
|
|
2695
2694
|
class: m((_ = s(e)) == null ? void 0 : _.removeClassNames),
|
|
2696
|
-
onClick: n[0] || (n[0] = (
|
|
2695
|
+
onClick: n[0] || (n[0] = (J) => {
|
|
2697
2696
|
var U;
|
|
2698
2697
|
return (U = s(e)) == null ? void 0 : U.removeItem(s(e));
|
|
2699
2698
|
}),
|
|
2700
2699
|
role: "button",
|
|
2701
|
-
"aria-label": (
|
|
2700
|
+
"aria-label": (q = s(e)) == null ? void 0 : q.removeTooltip
|
|
2702
2701
|
}, [
|
|
2703
2702
|
v(s(u), {
|
|
2704
2703
|
is: "sv-svg-icon",
|
|
@@ -2706,13 +2705,13 @@ const Nt = /* @__PURE__ */ g({
|
|
|
2706
2705
|
size: "auto",
|
|
2707
2706
|
title: (b = s(e)) == null ? void 0 : b.removeTooltip
|
|
2708
2707
|
}, null, 8, ["title"])
|
|
2709
|
-
], 10,
|
|
2708
|
+
], 10, Gn)), [
|
|
2710
2709
|
[s(N)]
|
|
2711
2710
|
]) : p("", !0),
|
|
2712
|
-
(f = s(e)) != null && f.allowAdd ?
|
|
2711
|
+
(f = s(e)) != null && f.allowAdd ? C((a(), i("span", {
|
|
2713
2712
|
key: 1,
|
|
2714
2713
|
class: m((E = s(e)) == null ? void 0 : E.addClassNames),
|
|
2715
|
-
onClick: n[1] || (n[1] = (
|
|
2714
|
+
onClick: n[1] || (n[1] = (J) => {
|
|
2716
2715
|
var U;
|
|
2717
2716
|
return (U = s(e)) == null ? void 0 : U.addItem(s(e));
|
|
2718
2717
|
}),
|
|
@@ -2725,7 +2724,7 @@ const Nt = /* @__PURE__ */ g({
|
|
|
2725
2724
|
size: "auto",
|
|
2726
2725
|
title: (L = s(e)) == null ? void 0 : L.addTooltip
|
|
2727
2726
|
}, null, 8, ["title"])
|
|
2728
|
-
], 10,
|
|
2727
|
+
], 10, Wn)), [
|
|
2729
2728
|
[s(N)]
|
|
2730
2729
|
]) : p("", !0)
|
|
2731
2730
|
], 2),
|
|
@@ -2733,10 +2732,10 @@ const Nt = /* @__PURE__ */ g({
|
|
|
2733
2732
|
]);
|
|
2734
2733
|
};
|
|
2735
2734
|
}
|
|
2736
|
-
}),
|
|
2735
|
+
}), Jn = {
|
|
2737
2736
|
key: 0,
|
|
2738
2737
|
class: "svc-matrix-cell__question-controls"
|
|
2739
|
-
},
|
|
2738
|
+
}, Zn = /* @__PURE__ */ g({
|
|
2740
2739
|
__name: "MatrixCell",
|
|
2741
2740
|
props: {
|
|
2742
2741
|
componentData: {}
|
|
@@ -2746,13 +2745,13 @@ const Nt = /* @__PURE__ */ g({
|
|
|
2746
2745
|
() => t.componentData.question
|
|
2747
2746
|
), _ = z(
|
|
2748
2747
|
() => {
|
|
2749
|
-
var
|
|
2750
|
-
return t.componentData ? new
|
|
2748
|
+
var q;
|
|
2749
|
+
return t.componentData ? new De(
|
|
2751
2750
|
e.value,
|
|
2752
2751
|
r.value,
|
|
2753
2752
|
l.value,
|
|
2754
2753
|
o.value,
|
|
2755
|
-
n.value || ((
|
|
2754
|
+
n.value || ((q = r.value.cell) == null ? void 0 : q.column)
|
|
2756
2755
|
) : void 0;
|
|
2757
2756
|
},
|
|
2758
2757
|
[
|
|
@@ -2762,7 +2761,7 @@ const Nt = /* @__PURE__ */ g({
|
|
|
2762
2761
|
() => l.value
|
|
2763
2762
|
]
|
|
2764
2763
|
);
|
|
2765
|
-
return (
|
|
2764
|
+
return (q, b) => {
|
|
2766
2765
|
var f, E;
|
|
2767
2766
|
return a(), i("div", {
|
|
2768
2767
|
tabindex: "-1",
|
|
@@ -2783,9 +2782,9 @@ const Nt = /* @__PURE__ */ g({
|
|
|
2783
2782
|
d("div", {
|
|
2784
2783
|
class: m(["svc-matrix-cell--selected", { "svc-visible": (f = s(_)) == null ? void 0 : f.isSelected }])
|
|
2785
2784
|
}, null, 2),
|
|
2786
|
-
x(
|
|
2787
|
-
(E = s(_)) != null && E.isSupportCellEditor ? (a(), i("div",
|
|
2788
|
-
|
|
2785
|
+
x(q.$slots, "default"),
|
|
2786
|
+
(E = s(_)) != null && E.isSupportCellEditor ? (a(), i("div", Jn, [
|
|
2787
|
+
C((a(), i("span", {
|
|
2789
2788
|
class: "svc-matrix-cell__question-controls-button svc-context-button",
|
|
2790
2789
|
onClick: b[0] || (b[0] = (R) => s(_).editQuestion(s(_), R))
|
|
2791
2790
|
}, [
|
|
@@ -2801,7 +2800,7 @@ const Nt = /* @__PURE__ */ g({
|
|
|
2801
2800
|
], 32);
|
|
2802
2801
|
};
|
|
2803
2802
|
}
|
|
2804
|
-
}),
|
|
2803
|
+
}), Xn = { class: "svc-question__adorner" }, Yn = { class: "svc-question__content svc-question__content--in-popup" }, xn = /* @__PURE__ */ g({
|
|
2805
2804
|
__name: "CellQuestion",
|
|
2806
2805
|
props: {
|
|
2807
2806
|
componentName: {},
|
|
@@ -2811,19 +2810,19 @@ const Nt = /* @__PURE__ */ g({
|
|
|
2811
2810
|
const t = c, e = $(
|
|
2812
2811
|
() => t.componentData.element
|
|
2813
2812
|
);
|
|
2814
|
-
return T(() => e.value), (o, n) => (a(), i("div",
|
|
2815
|
-
d("div",
|
|
2813
|
+
return T(() => e.value), (o, n) => (a(), i("div", Xn, [
|
|
2814
|
+
d("div", Yn, [
|
|
2816
2815
|
v(s(u), A({ is: o.componentName }, o.componentData), null, 16, ["is"])
|
|
2817
2816
|
])
|
|
2818
2817
|
]));
|
|
2819
2818
|
}
|
|
2820
|
-
}),
|
|
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 = {
|
|
2821
2820
|
key: 0,
|
|
2822
2821
|
class: "svc-panel__placeholder_frame-wrapper"
|
|
2823
|
-
},
|
|
2822
|
+
}, ra = { class: "svc-panel__placeholder_frame" }, da = { class: "svc-panel__placeholder" }, ca = { class: "svc-add-new-item-button__text" }, ua = {
|
|
2824
2823
|
key: 1,
|
|
2825
2824
|
class: "svc-panel__add-new-question-container"
|
|
2826
|
-
},
|
|
2825
|
+
}, pa = { class: "svc-panel__question-type-selector-popup" }, va = { class: "svc-panel__add-new-question-wrapper" }, ma = /* @__PURE__ */ g({
|
|
2827
2826
|
__name: "Panel",
|
|
2828
2827
|
props: {
|
|
2829
2828
|
componentName: {},
|
|
@@ -2856,7 +2855,7 @@ const Nt = /* @__PURE__ */ g({
|
|
|
2856
2855
|
key: 0,
|
|
2857
2856
|
class: m(s(e).cssCollapsedHiddenHeader)
|
|
2858
2857
|
}, [
|
|
2859
|
-
s(e).element.hasTitle ? (a(),
|
|
2858
|
+
s(e).element.hasTitle ? (a(), y(s(u), {
|
|
2860
2859
|
key: 0,
|
|
2861
2860
|
is: "survey-element-title",
|
|
2862
2861
|
element: s(e).element
|
|
@@ -2864,17 +2863,17 @@ const Nt = /* @__PURE__ */ g({
|
|
|
2864
2863
|
key: 1,
|
|
2865
2864
|
class: m(s(e).cssCollapsedHiddenTitle)
|
|
2866
2865
|
}, [
|
|
2867
|
-
d("span",
|
|
2866
|
+
d("span", oa, k(s(e).element.name), 1)
|
|
2868
2867
|
], 2))
|
|
2869
2868
|
], 2)) : p("", !0),
|
|
2870
|
-
|
|
2869
|
+
C((a(), i("div", {
|
|
2871
2870
|
class: m(s(e).css()),
|
|
2872
2871
|
onClick: r[2] || (r[2] = (l) => s(e).element.isInteractiveDesignElement ? s(e).select(s(e), l) : null)
|
|
2873
2872
|
}, [
|
|
2873
|
+
sa,
|
|
2874
|
+
ta,
|
|
2874
2875
|
na,
|
|
2875
2876
|
aa,
|
|
2876
|
-
la,
|
|
2877
|
-
ia,
|
|
2878
2877
|
s(e).allowDragging && s(e).element.isInteractiveDesignElement ? (a(), i("div", {
|
|
2879
2878
|
key: 0,
|
|
2880
2879
|
class: "svc-question__drag-area",
|
|
@@ -2886,7 +2885,7 @@ const Nt = /* @__PURE__ */ g({
|
|
|
2886
2885
|
iconName: "icon-drag-area-indicator_24x16",
|
|
2887
2886
|
size: "auto"
|
|
2888
2887
|
}),
|
|
2889
|
-
d("div",
|
|
2888
|
+
d("div", la, [
|
|
2890
2889
|
v(s(u), {
|
|
2891
2890
|
is: "sv-action-bar",
|
|
2892
2891
|
model: s(e).topActionContainer,
|
|
@@ -2896,10 +2895,10 @@ const Nt = /* @__PURE__ */ g({
|
|
|
2896
2895
|
], 32)) : p("", !0),
|
|
2897
2896
|
s(e).needToRenderContent ? (a(), i(w, { key: 1 }, [
|
|
2898
2897
|
v(s(u), A({ is: n.componentName }, n.componentData), null, 16, ["is"]),
|
|
2899
|
-
s(e).isEmptyElement ? (a(), i("div",
|
|
2900
|
-
d("div",
|
|
2901
|
-
d("div",
|
|
2902
|
-
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", {
|
|
2903
2902
|
key: 0,
|
|
2904
2903
|
class: "svc-panel__add-new-question svc-action-button",
|
|
2905
2904
|
onClick: o
|
|
@@ -2910,20 +2909,20 @@ const Nt = /* @__PURE__ */ g({
|
|
|
2910
2909
|
iconName: "icon-add_24x24",
|
|
2911
2910
|
size: "auto"
|
|
2912
2911
|
}),
|
|
2913
|
-
d("span",
|
|
2912
|
+
d("span", ca, k(s(e).addNewQuestionText), 1)
|
|
2914
2913
|
])), [
|
|
2915
2914
|
[s(N)]
|
|
2916
2915
|
]) : p("", !0)
|
|
2917
2916
|
])
|
|
2918
2917
|
])) : p("", !0),
|
|
2919
|
-
!s(e).isEmptyElement && s(e).showAddQuestionButton ? (a(), i("div",
|
|
2920
|
-
d("div",
|
|
2918
|
+
!s(e).isEmptyElement && s(e).showAddQuestionButton ? (a(), i("div", ua, [
|
|
2919
|
+
d("div", pa, [
|
|
2921
2920
|
v(s(u), {
|
|
2922
2921
|
is: "sv-popup",
|
|
2923
2922
|
model: s(e).questionTypeSelectorModel.popupModel
|
|
2924
2923
|
}, null, 8, ["model"])
|
|
2925
2924
|
]),
|
|
2926
|
-
d("div",
|
|
2925
|
+
d("div", va, [
|
|
2927
2926
|
v(s(u), {
|
|
2928
2927
|
is: "svc-add-new-question-btn",
|
|
2929
2928
|
item: { data: s(e) },
|
|
@@ -2947,22 +2946,22 @@ const Nt = /* @__PURE__ */ g({
|
|
|
2947
2946
|
], 2)), [
|
|
2948
2947
|
[s(N), { disableTabStop: !0 }]
|
|
2949
2948
|
])
|
|
2950
|
-
], 42,
|
|
2949
|
+
], 42, ea)) : p("", !0);
|
|
2951
2950
|
}
|
|
2952
|
-
}),
|
|
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 = {
|
|
2953
2952
|
key: 0,
|
|
2954
2953
|
class: "svc-item-value-controls__button svc-item-value-controls__drag"
|
|
2955
|
-
},
|
|
2954
|
+
}, ha = ["aria-label"], Ca = ["aria-label"], qa = /* @__PURE__ */ g({
|
|
2956
2955
|
__name: "ItemValue",
|
|
2957
2956
|
props: {
|
|
2958
2957
|
componentName: {},
|
|
2959
2958
|
componentData: {}
|
|
2960
2959
|
},
|
|
2961
2960
|
setup(c) {
|
|
2962
|
-
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(
|
|
2963
2962
|
() => r.value,
|
|
2964
|
-
(
|
|
2965
|
-
|
|
2963
|
+
(q, b) => {
|
|
2964
|
+
q && t.value && q.setRootElement(t.value), b && b.setRootElement(void 0);
|
|
2966
2965
|
}
|
|
2967
2966
|
);
|
|
2968
2967
|
P(() => {
|
|
@@ -2971,15 +2970,15 @@ const Nt = /* @__PURE__ */ g({
|
|
|
2971
2970
|
r.value.setRootElement(void 0);
|
|
2972
2971
|
});
|
|
2973
2972
|
const _ = z(
|
|
2974
|
-
() => new
|
|
2973
|
+
() => new Ne(o.value, n.value, r.value),
|
|
2975
2974
|
[() => o.value, () => n.value, () => r.value],
|
|
2976
|
-
(
|
|
2977
|
-
|
|
2975
|
+
(q) => {
|
|
2976
|
+
q.dispose();
|
|
2978
2977
|
}
|
|
2979
2978
|
);
|
|
2980
|
-
return
|
|
2979
|
+
return Y(() => {
|
|
2981
2980
|
l();
|
|
2982
|
-
}), (
|
|
2981
|
+
}), (q, b) => (a(), i("div", {
|
|
2983
2982
|
class: m(["svc-item-value-wrapper", {
|
|
2984
2983
|
"svc-item-value--new": s(_).isNew,
|
|
2985
2984
|
"svc-item-value--dragging": s(_).isDragging,
|
|
@@ -2992,9 +2991,9 @@ const Nt = /* @__PURE__ */ g({
|
|
|
2992
2991
|
ref_key: "root",
|
|
2993
2992
|
ref: t
|
|
2994
2993
|
}, [
|
|
2995
|
-
|
|
2996
|
-
d("div",
|
|
2997
|
-
s(_).isDraggable ? (a(), i("span",
|
|
2994
|
+
ga,
|
|
2995
|
+
d("div", ba, [
|
|
2996
|
+
s(_).isDraggable ? (a(), i("span", ya, [
|
|
2998
2997
|
v(s(u), {
|
|
2999
2998
|
is: "sv-svg-icon",
|
|
3000
2999
|
class: "svc-item-value-controls__drag-icon",
|
|
@@ -3003,7 +3002,7 @@ const Nt = /* @__PURE__ */ g({
|
|
|
3003
3002
|
title: s(_).dragTooltip
|
|
3004
3003
|
}, null, 8, ["title"])
|
|
3005
3004
|
])) : p("", !0),
|
|
3006
|
-
s(_).allowAdd ?
|
|
3005
|
+
s(_).allowAdd ? C((a(), i("span", {
|
|
3007
3006
|
key: 1,
|
|
3008
3007
|
class: "svc-item-value-controls__button svc-item-value-controls__add",
|
|
3009
3008
|
onClick: b[0] || (b[0] = (f) => s(_).add(s(_))),
|
|
@@ -3016,10 +3015,10 @@ const Nt = /* @__PURE__ */ g({
|
|
|
3016
3015
|
size: "auto",
|
|
3017
3016
|
title: s(_).tooltip
|
|
3018
3017
|
}, null, 8, ["title"])
|
|
3019
|
-
], 8,
|
|
3018
|
+
], 8, ha)), [
|
|
3020
3019
|
[s(N)]
|
|
3021
3020
|
]) : p("", !0),
|
|
3022
|
-
s(_).allowRemove ?
|
|
3021
|
+
s(_).allowRemove ? C((a(), i("span", {
|
|
3023
3022
|
key: 2,
|
|
3024
3023
|
class: "svc-item-value-controls__button svc-item-value-controls__remove",
|
|
3025
3024
|
onClick: b[1] || (b[1] = (f) => s(_).remove(s(_))),
|
|
@@ -3033,7 +3032,7 @@ const Nt = /* @__PURE__ */ g({
|
|
|
3033
3032
|
size: "auto",
|
|
3034
3033
|
title: s(_).tooltip
|
|
3035
3034
|
}, null, 8, ["title"])
|
|
3036
|
-
], 40,
|
|
3035
|
+
], 40, Ca)), [
|
|
3037
3036
|
[s(N)]
|
|
3038
3037
|
]) : p("", !0)
|
|
3039
3038
|
]),
|
|
@@ -3041,23 +3040,23 @@ const Nt = /* @__PURE__ */ g({
|
|
|
3041
3040
|
class: "svc-item-value__item",
|
|
3042
3041
|
onClick: b[3] || (b[3] = (f) => s(_).select(s(_), f))
|
|
3043
3042
|
}, [
|
|
3044
|
-
v(s(u), A({ is:
|
|
3043
|
+
v(s(u), A({ is: q.componentName }, q.componentData), null, 16, ["is"])
|
|
3045
3044
|
])
|
|
3046
|
-
], 42,
|
|
3045
|
+
], 42, _a));
|
|
3047
3046
|
}
|
|
3048
|
-
}),
|
|
3047
|
+
}), $a = ["data-sv-drop-target-item-value"], ka = { class: "svc-image-item-value-wrapper__content" }, fa = ["accept"], wa = {
|
|
3049
3048
|
key: 0,
|
|
3050
3049
|
class: "svc-image-item-value__item"
|
|
3051
|
-
},
|
|
3050
|
+
}, Ta = {
|
|
3052
3051
|
key: 2,
|
|
3053
3052
|
class: "svc-context-container svc-image-item-value-controls"
|
|
3054
|
-
},
|
|
3053
|
+
}, Da = { class: "svc-image-item-value__item" }, Na = { class: "sd-imagepicker__item sd-imagepicker__item--inline" }, Ma = { class: "sd-imagepicker__label" }, Sa = {
|
|
3055
3054
|
key: 0,
|
|
3056
3055
|
class: "svc-image-item-value__loading"
|
|
3057
|
-
},
|
|
3056
|
+
}, Ba = {
|
|
3058
3057
|
key: 0,
|
|
3059
3058
|
class: "svc-image-item-value__placeholder"
|
|
3060
|
-
},
|
|
3059
|
+
}, Ia = { key: 1 }, Ea = /* @__PURE__ */ g({
|
|
3061
3060
|
__name: "ImageItemValue",
|
|
3062
3061
|
props: {
|
|
3063
3062
|
componentName: {},
|
|
@@ -3066,7 +3065,7 @@ const Nt = /* @__PURE__ */ g({
|
|
|
3066
3065
|
setup(c) {
|
|
3067
3066
|
const t = c, e = $(() => t.componentData.data.creator), o = $(() => t.componentData.question), n = $(() => t.componentData.item), r = I(), l = z(
|
|
3068
3067
|
() => {
|
|
3069
|
-
const b = new
|
|
3068
|
+
const b = new Me(
|
|
3070
3069
|
e.value,
|
|
3071
3070
|
o.value,
|
|
3072
3071
|
n.value,
|
|
@@ -3081,7 +3080,7 @@ const Nt = /* @__PURE__ */ g({
|
|
|
3081
3080
|
}
|
|
3082
3081
|
), _ = (b) => {
|
|
3083
3082
|
b.preventDefault();
|
|
3084
|
-
},
|
|
3083
|
+
}, q = $(() => {
|
|
3085
3084
|
const b = !l.value.getIsNewItemSingle();
|
|
3086
3085
|
return {
|
|
3087
3086
|
width: b ? o.value.renderedImageWidth + "px" : void 0,
|
|
@@ -3104,18 +3103,18 @@ const Nt = /* @__PURE__ */ g({
|
|
|
3104
3103
|
}, [
|
|
3105
3104
|
d("div", {
|
|
3106
3105
|
class: "svc-image-item-value-wrapper__ghost",
|
|
3107
|
-
style: F(
|
|
3106
|
+
style: F(q.value)
|
|
3108
3107
|
}, null, 4),
|
|
3109
|
-
d("div",
|
|
3108
|
+
d("div", ka, [
|
|
3110
3109
|
d("input", {
|
|
3111
3110
|
type: "file",
|
|
3112
3111
|
"aria-hidden": "true",
|
|
3113
3112
|
tabindex: "-1",
|
|
3114
3113
|
accept: s(l).acceptedTypes,
|
|
3115
3114
|
class: "svc-choose-file-input"
|
|
3116
|
-
}, null, 8,
|
|
3115
|
+
}, null, 8, fa),
|
|
3117
3116
|
!s(l).isNew && !s(l).isUploading ? (a(), i(w, { key: 0 }, [
|
|
3118
|
-
s(l).isNew ? p("", !0) : (a(), i("div",
|
|
3117
|
+
s(l).isNew ? p("", !0) : (a(), i("div", wa, [
|
|
3119
3118
|
v(s(u), A({ is: b.componentName }, b.componentData), null, 16, ["is"])
|
|
3120
3119
|
])),
|
|
3121
3120
|
s(l).isDraggable && s(l).canRenderControls ? (a(), i("span", {
|
|
@@ -3131,8 +3130,8 @@ const Nt = /* @__PURE__ */ g({
|
|
|
3131
3130
|
size: "auto"
|
|
3132
3131
|
})
|
|
3133
3132
|
], 32)) : p("", !0),
|
|
3134
|
-
s(l).canRenderControls ? (a(), i("div",
|
|
3135
|
-
|
|
3133
|
+
s(l).canRenderControls ? (a(), i("div", Ta, [
|
|
3134
|
+
C((a(), i("span", {
|
|
3136
3135
|
class: "svc-context-button",
|
|
3137
3136
|
onClick: f[1] || (f[1] = (E) => s(l).chooseFile(s(l))),
|
|
3138
3137
|
title: void 0,
|
|
@@ -3148,7 +3147,7 @@ const Nt = /* @__PURE__ */ g({
|
|
|
3148
3147
|
])), [
|
|
3149
3148
|
[s(N)]
|
|
3150
3149
|
]),
|
|
3151
|
-
|
|
3150
|
+
C((a(), i("span", {
|
|
3152
3151
|
class: "svc-context-button svc-context-button--danger",
|
|
3153
3152
|
onClick: f[2] || (f[2] = (E) => s(l).remove(s(l))),
|
|
3154
3153
|
title: void 0,
|
|
@@ -3166,14 +3165,14 @@ const Nt = /* @__PURE__ */ g({
|
|
|
3166
3165
|
])
|
|
3167
3166
|
])) : p("", !0)
|
|
3168
3167
|
], 64)) : (a(), i(w, { key: 1 }, [
|
|
3169
|
-
d("div",
|
|
3170
|
-
d("div",
|
|
3171
|
-
d("label",
|
|
3168
|
+
d("div", Da, [
|
|
3169
|
+
d("div", Na, [
|
|
3170
|
+
d("label", Ma, [
|
|
3172
3171
|
d("div", {
|
|
3173
|
-
style: F(
|
|
3172
|
+
style: F(q.value),
|
|
3174
3173
|
class: "sd-imagepicker__image"
|
|
3175
3174
|
}, [
|
|
3176
|
-
s(l).isUploading ? (a(), i("div",
|
|
3175
|
+
s(l).isUploading ? (a(), i("div", Sa, [
|
|
3177
3176
|
v(s(u), { is: "sv-loading-indicator" })
|
|
3178
3177
|
])) : p("", !0)
|
|
3179
3178
|
], 4)
|
|
@@ -3185,27 +3184,27 @@ const Nt = /* @__PURE__ */ g({
|
|
|
3185
3184
|
class: "svc-image-item-value-controls",
|
|
3186
3185
|
onPointerdown: f[4] || (f[4] = (E) => E.stopPropagation())
|
|
3187
3186
|
}, [
|
|
3188
|
-
s(l).showPlaceholder ? (a(), i("span",
|
|
3189
|
-
|
|
3187
|
+
s(l).showPlaceholder ? (a(), i("span", Ba, k(s(l).placeholderText), 1)) : p("", !0),
|
|
3188
|
+
C((a(), i("span", {
|
|
3190
3189
|
class: m(s(l).addButtonCss),
|
|
3191
3190
|
onClick: f[3] || (f[3] = (E) => s(l).chooseNewFile(s(l)))
|
|
3192
3191
|
}, [
|
|
3193
|
-
s(l).showChooseButtonAsIcon ? (a(),
|
|
3192
|
+
s(l).showChooseButtonAsIcon ? (a(), y(s(u), {
|
|
3194
3193
|
key: 0,
|
|
3195
3194
|
is: "sv-svg-icon",
|
|
3196
3195
|
iconName: "icon-add-lg",
|
|
3197
3196
|
size: "auto",
|
|
3198
3197
|
title: s(l).addFileTitle
|
|
3199
|
-
}, null, 8, ["title"])) : (a(), i("span",
|
|
3198
|
+
}, null, 8, ["title"])) : (a(), i("span", Ia, k(s(l).chooseImageText), 1))
|
|
3200
3199
|
], 2)), [
|
|
3201
3200
|
[s(N)]
|
|
3202
3201
|
])
|
|
3203
3202
|
], 32)) : p("", !0)
|
|
3204
3203
|
], 64))
|
|
3205
3204
|
])
|
|
3206
|
-
], 42,
|
|
3205
|
+
], 42, $a));
|
|
3207
3206
|
}
|
|
3208
|
-
}),
|
|
3207
|
+
}), Pa = /* @__PURE__ */ g({
|
|
3209
3208
|
__name: "QuestionEditor",
|
|
3210
3209
|
props: {
|
|
3211
3210
|
survey: {},
|
|
@@ -3240,29 +3239,29 @@ const Nt = /* @__PURE__ */ g({
|
|
|
3240
3239
|
v(s(u), A({ is: o.value }, n.value), null, 16, ["is"])
|
|
3241
3240
|
], 4));
|
|
3242
3241
|
}
|
|
3243
|
-
}),
|
|
3242
|
+
}), Ra = ["accept"], Va = /* @__PURE__ */ d("svg", null, [
|
|
3244
3243
|
/* @__PURE__ */ d("use", { "xlink:href": "#icon-image-48x48" })
|
|
3245
|
-
], -1),
|
|
3246
|
-
|
|
3247
|
-
],
|
|
3244
|
+
], -1), Aa = [
|
|
3245
|
+
Va
|
|
3246
|
+
], za = { class: "svc-context-container svc-logo-image-controls" }, La = {
|
|
3248
3247
|
key: 2,
|
|
3249
3248
|
class: "svc-logo-image__loading"
|
|
3250
|
-
},
|
|
3249
|
+
}, Fa = /* @__PURE__ */ g({
|
|
3251
3250
|
__name: "Logo",
|
|
3252
3251
|
props: {
|
|
3253
3252
|
data: {}
|
|
3254
3253
|
},
|
|
3255
3254
|
setup(c) {
|
|
3256
3255
|
const t = c, e = $(() => t.data), o = $(() => e.value.survey), n = I(), r = z(
|
|
3257
|
-
() => new
|
|
3256
|
+
() => new Se(e.value, null),
|
|
3258
3257
|
[() => e.value]
|
|
3259
3258
|
), l = I(), _ = () => {
|
|
3260
3259
|
l.value = o.value.locLogo.renderedHtml;
|
|
3261
3260
|
};
|
|
3262
|
-
return
|
|
3261
|
+
return W(
|
|
3263
3262
|
() => o.value.locLogo,
|
|
3264
|
-
(
|
|
3265
|
-
_(),
|
|
3263
|
+
(q, b) => {
|
|
3264
|
+
_(), q && q.onStringChanged.add(_), b && q.onStringChanged.remove(_);
|
|
3266
3265
|
},
|
|
3267
3266
|
{
|
|
3268
3267
|
immediate: !0
|
|
@@ -3271,7 +3270,7 @@ const Nt = /* @__PURE__ */ g({
|
|
|
3271
3270
|
n.value && (r.value.root = n.value);
|
|
3272
3271
|
}), K(() => {
|
|
3273
3272
|
r.value && (r.value.root = void 0);
|
|
3274
|
-
}), (
|
|
3273
|
+
}), (q, b) => (a(), i("div", {
|
|
3275
3274
|
class: "svc-logo-image",
|
|
3276
3275
|
ref_key: "root",
|
|
3277
3276
|
ref: n
|
|
@@ -3282,13 +3281,13 @@ const Nt = /* @__PURE__ */ g({
|
|
|
3282
3281
|
tabindex: "-1",
|
|
3283
3282
|
accept: s(r).acceptedTypes,
|
|
3284
3283
|
class: "svc-choose-file-input"
|
|
3285
|
-
}, null, 8,
|
|
3284
|
+
}, null, 8, Ra),
|
|
3286
3285
|
l.value ? p("", !0) : (a(), i(w, { key: 0 }, [
|
|
3287
|
-
s(r).allowEdit && !s(r).isUploading ?
|
|
3286
|
+
s(r).allowEdit && !s(r).isUploading ? C((a(), i("div", {
|
|
3288
3287
|
key: 0,
|
|
3289
3288
|
class: "svc-logo-image-placeholder",
|
|
3290
3289
|
onClick: b[0] || (b[0] = (f) => s(r).chooseFile(s(r)))
|
|
3291
|
-
},
|
|
3290
|
+
}, Aa)), [
|
|
3292
3291
|
[s(N)]
|
|
3293
3292
|
]) : p("", !0)
|
|
3294
3293
|
], 64)),
|
|
@@ -3296,8 +3295,8 @@ const Nt = /* @__PURE__ */ g({
|
|
|
3296
3295
|
key: 1,
|
|
3297
3296
|
class: m(s(r).containerCss)
|
|
3298
3297
|
}, [
|
|
3299
|
-
d("div",
|
|
3300
|
-
|
|
3298
|
+
d("div", za, [
|
|
3299
|
+
C((a(), i("span", {
|
|
3301
3300
|
class: "svc-context-button",
|
|
3302
3301
|
onClick: b[1] || (b[1] = (f) => s(r).chooseFile(s(r))),
|
|
3303
3302
|
title: void 0,
|
|
@@ -3311,7 +3310,7 @@ const Nt = /* @__PURE__ */ g({
|
|
|
3311
3310
|
])), [
|
|
3312
3311
|
[s(N)]
|
|
3313
3312
|
]),
|
|
3314
|
-
|
|
3313
|
+
C((a(), i("span", {
|
|
3315
3314
|
class: "svc-context-button svc-context-button--danger",
|
|
3316
3315
|
onClick: b[2] || (b[2] = (f) => s(r).remove(s(r))),
|
|
3317
3316
|
title: void 0,
|
|
@@ -3331,15 +3330,15 @@ const Nt = /* @__PURE__ */ g({
|
|
|
3331
3330
|
data: o.value
|
|
3332
3331
|
}, null, 8, ["data"])
|
|
3333
3332
|
], 2)) : p("", !0),
|
|
3334
|
-
s(r).isUploading ? (a(), i("div",
|
|
3333
|
+
s(r).isUploading ? (a(), i("div", La, [
|
|
3335
3334
|
v(s(u), { is: "sv-loading-indicator" })
|
|
3336
3335
|
])) : p("", !0)
|
|
3337
3336
|
], 512));
|
|
3338
3337
|
}
|
|
3339
|
-
}),
|
|
3338
|
+
}), Ka = {
|
|
3340
3339
|
key: 0,
|
|
3341
3340
|
class: "svc-search"
|
|
3342
|
-
},
|
|
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({
|
|
3343
3342
|
__name: "Search",
|
|
3344
3343
|
props: {
|
|
3345
3344
|
model: {}
|
|
@@ -3354,25 +3353,25 @@ const Nt = /* @__PURE__ */ g({
|
|
|
3354
3353
|
n.filterString = o;
|
|
3355
3354
|
}
|
|
3356
3355
|
});
|
|
3357
|
-
return (o, n) => o.model.isVisible ? (a(), i("div",
|
|
3358
|
-
d("div",
|
|
3356
|
+
return (o, n) => o.model.isVisible ? (a(), i("div", Ka, [
|
|
3357
|
+
d("div", Ua, [
|
|
3359
3358
|
v(s(u), {
|
|
3360
3359
|
is: "sv-svg-icon",
|
|
3361
3360
|
iconName: "icon-search",
|
|
3362
3361
|
size: "auto"
|
|
3363
3362
|
})
|
|
3364
3363
|
]),
|
|
3365
|
-
|
|
3364
|
+
C(d("input", {
|
|
3366
3365
|
type: "text",
|
|
3367
3366
|
class: "svc-search__input",
|
|
3368
3367
|
"onUpdate:modelValue": n[0] || (n[0] = (r) => e.value = r),
|
|
3369
3368
|
"aria-label": o.model.filterStringPlaceholder,
|
|
3370
3369
|
placeholder: o.model.filterStringPlaceholder
|
|
3371
|
-
}, null, 8,
|
|
3370
|
+
}, null, 8, Qa), [
|
|
3372
3371
|
[de, e.value]
|
|
3373
3372
|
]),
|
|
3374
|
-
d("div",
|
|
3375
|
-
d("div",
|
|
3373
|
+
d("div", Ha, [
|
|
3374
|
+
d("div", Oa, k(o.model.matchCounterText), 1),
|
|
3376
3375
|
v(s(u), {
|
|
3377
3376
|
is: "sv-action-bar",
|
|
3378
3377
|
model: o.model.searchActionBar
|
|
@@ -3380,7 +3379,7 @@ const Nt = /* @__PURE__ */ g({
|
|
|
3380
3379
|
])
|
|
3381
3380
|
])) : p("", !0);
|
|
3382
3381
|
}
|
|
3383
|
-
}),
|
|
3382
|
+
}), Wa = ["title"], ja = /* @__PURE__ */ g({
|
|
3384
3383
|
__name: "PageNavigator",
|
|
3385
3384
|
props: {
|
|
3386
3385
|
pagesController: {},
|
|
@@ -3388,7 +3387,7 @@ const Nt = /* @__PURE__ */ g({
|
|
|
3388
3387
|
},
|
|
3389
3388
|
setup(c) {
|
|
3390
3389
|
const t = c, e = z(
|
|
3391
|
-
() => new
|
|
3390
|
+
() => new Be(t.pagesController, t.pageEditMode),
|
|
3392
3391
|
[() => t.pagesController, () => t.pageEditMode]
|
|
3393
3392
|
), o = I();
|
|
3394
3393
|
return P(() => {
|
|
@@ -3396,18 +3395,18 @@ const Nt = /* @__PURE__ */ g({
|
|
|
3396
3395
|
const n = o.value, r = e.value;
|
|
3397
3396
|
n && r.attachToUI(n);
|
|
3398
3397
|
}
|
|
3399
|
-
}),
|
|
3398
|
+
}), Y(() => {
|
|
3400
3399
|
const n = e.value;
|
|
3401
3400
|
n.stopItemsContainerHeightObserver(), n.setScrollableContainer(void 0);
|
|
3402
3401
|
}), K(() => {
|
|
3403
3402
|
e.value.dispose();
|
|
3404
|
-
}), (n, r) =>
|
|
3403
|
+
}), (n, r) => C((a(), i("div", {
|
|
3405
3404
|
class: "svc-page-navigator",
|
|
3406
3405
|
ref_key: "root",
|
|
3407
3406
|
ref: o
|
|
3408
3407
|
}, [
|
|
3409
3408
|
d("div", null, [
|
|
3410
|
-
|
|
3409
|
+
C((a(), i("div", {
|
|
3411
3410
|
role: "button",
|
|
3412
3411
|
class: m(["svc-page-navigator__selector svc-page-navigator__button", { "svc-page-navigator__button--pressed": s(e).isPopupOpened }]),
|
|
3413
3412
|
onClick: r[0] || (r[0] = (l) => s(e).togglePageSelector(l)),
|
|
@@ -3419,7 +3418,7 @@ const Nt = /* @__PURE__ */ g({
|
|
|
3419
3418
|
iconName: s(e).icon,
|
|
3420
3419
|
size: "auto"
|
|
3421
3420
|
}, null, 8, ["iconName"])
|
|
3422
|
-
], 10,
|
|
3421
|
+
], 10, Wa)), [
|
|
3423
3422
|
[s(N)]
|
|
3424
3423
|
]),
|
|
3425
3424
|
v(s(u), {
|
|
@@ -3428,7 +3427,7 @@ const Nt = /* @__PURE__ */ g({
|
|
|
3428
3427
|
}, null, 8, ["model"])
|
|
3429
3428
|
]),
|
|
3430
3429
|
d("div", null, [
|
|
3431
|
-
(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), {
|
|
3432
3431
|
is: "svc-page-navigator-item",
|
|
3433
3432
|
key: l.id,
|
|
3434
3433
|
model: l
|
|
@@ -3438,11 +3437,11 @@ const Nt = /* @__PURE__ */ g({
|
|
|
3438
3437
|
[Q, s(e).visible]
|
|
3439
3438
|
]);
|
|
3440
3439
|
}
|
|
3441
|
-
}),
|
|
3442
|
-
|
|
3443
|
-
],
|
|
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" }, [
|
|
3444
3443
|
/* @__PURE__ */ d("span", { class: "svc-page-navigator-item__dot-content" })
|
|
3445
|
-
], -1),
|
|
3444
|
+
], -1), sl = /* @__PURE__ */ g({
|
|
3446
3445
|
__name: "PageNavigatorItem",
|
|
3447
3446
|
props: {
|
|
3448
3447
|
model: {}
|
|
@@ -3453,8 +3452,8 @@ const Nt = /* @__PURE__ */ g({
|
|
|
3453
3452
|
const e = (o) => {
|
|
3454
3453
|
t.model.action(), o.stopPropagation(), o.preventDefault();
|
|
3455
3454
|
};
|
|
3456
|
-
return (o, n) => (a(), i("div",
|
|
3457
|
-
|
|
3455
|
+
return (o, n) => (a(), i("div", Ja, [
|
|
3456
|
+
C((a(), i("div", {
|
|
3458
3457
|
role: "button",
|
|
3459
3458
|
class: m(["svc-page-navigator-item-content", {
|
|
3460
3459
|
"svc-page-navigator-item--selected": o.model.active,
|
|
@@ -3465,17 +3464,17 @@ const Nt = /* @__PURE__ */ g({
|
|
|
3465
3464
|
d("div", {
|
|
3466
3465
|
class: "svc-page-navigator-item__dot",
|
|
3467
3466
|
title: o.model.title
|
|
3468
|
-
},
|
|
3469
|
-
d("div",
|
|
3470
|
-
d("span",
|
|
3471
|
-
|
|
3467
|
+
}, Ya, 8, Za),
|
|
3468
|
+
d("div", xa, [
|
|
3469
|
+
d("span", el, k(o.model.title), 1),
|
|
3470
|
+
ol
|
|
3472
3471
|
])
|
|
3473
3472
|
], 2)), [
|
|
3474
3473
|
[s(N)]
|
|
3475
3474
|
])
|
|
3476
3475
|
]));
|
|
3477
3476
|
}
|
|
3478
|
-
}),
|
|
3477
|
+
}), tl = { class: "svc-question__dropdown-choices--wrapper" }, nl = { class: "svc-question__dropdown-choices" }, al = /* @__PURE__ */ g({
|
|
3479
3478
|
__name: "Dropdown",
|
|
3480
3479
|
props: {
|
|
3481
3480
|
model: {},
|
|
@@ -3490,9 +3489,9 @@ const Nt = /* @__PURE__ */ g({
|
|
|
3490
3489
|
data: t.element.getItemValueWrapperComponentData(n)
|
|
3491
3490
|
}
|
|
3492
3491
|
});
|
|
3493
|
-
return (n, r) => (a(), i("div",
|
|
3492
|
+
return (n, r) => (a(), i("div", tl, [
|
|
3494
3493
|
d("div", null, [
|
|
3495
|
-
d("div",
|
|
3494
|
+
d("div", nl, [
|
|
3496
3495
|
(a(!0), i(w, null, V(n.model.getRenderedItems(), (l) => (a(), i("div", {
|
|
3497
3496
|
key: l.value,
|
|
3498
3497
|
class: m(n.model.getChoiceCss())
|
|
@@ -3502,7 +3501,7 @@ const Nt = /* @__PURE__ */ g({
|
|
|
3502
3501
|
}, o(l)), null, 16, ["is"])
|
|
3503
3502
|
], 2))), 128))
|
|
3504
3503
|
]),
|
|
3505
|
-
n.model.needToCollapse ? (a(),
|
|
3504
|
+
n.model.needToCollapse ? (a(), y(s(u), {
|
|
3506
3505
|
key: 0,
|
|
3507
3506
|
is: "svc-action-button",
|
|
3508
3507
|
text: n.model.getButtonText(),
|
|
@@ -3512,19 +3511,19 @@ const Nt = /* @__PURE__ */ g({
|
|
|
3512
3511
|
])
|
|
3513
3512
|
]));
|
|
3514
3513
|
}
|
|
3515
|
-
}),
|
|
3514
|
+
}), ll = /* @__PURE__ */ g({
|
|
3516
3515
|
__name: "QuestionDropdown",
|
|
3517
3516
|
props: {
|
|
3518
3517
|
componentName: {},
|
|
3519
3518
|
componentData: {}
|
|
3520
3519
|
},
|
|
3521
3520
|
setup(c) {
|
|
3522
|
-
const t = c, e = () => new
|
|
3521
|
+
const t = c, e = () => new Ie(
|
|
3523
3522
|
t.componentData.data,
|
|
3524
3523
|
t.componentData.element,
|
|
3525
3524
|
null
|
|
3526
3525
|
);
|
|
3527
|
-
return (o, n) => (a(),
|
|
3526
|
+
return (o, n) => (a(), y(oe, {
|
|
3528
3527
|
"create-model": e,
|
|
3529
3528
|
element: o.componentData.element,
|
|
3530
3529
|
"component-name": o.componentName,
|
|
@@ -3532,7 +3531,7 @@ const Nt = /* @__PURE__ */ g({
|
|
|
3532
3531
|
"adorner-component": "svc-dropdown-question-adorner"
|
|
3533
3532
|
}, null, 8, ["element", "component-name", "component-data"]));
|
|
3534
3533
|
}
|
|
3535
|
-
}),
|
|
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({
|
|
3536
3535
|
__name: "CellQuestionDropdown",
|
|
3537
3536
|
props: {
|
|
3538
3537
|
componentName: {},
|
|
@@ -3549,10 +3548,10 @@ const Nt = /* @__PURE__ */ g({
|
|
|
3549
3548
|
data: e.value.getItemValueWrapperComponentData(r)
|
|
3550
3549
|
}
|
|
3551
3550
|
});
|
|
3552
|
-
return T(() => e.value), (r, l) => (a(), i("div",
|
|
3553
|
-
d("div",
|
|
3551
|
+
return T(() => e.value), (r, l) => (a(), i("div", il, [
|
|
3552
|
+
d("div", rl, [
|
|
3554
3553
|
v(s(u), A({ is: r.componentName }, r.componentData), null, 16, ["is"]),
|
|
3555
|
-
d("div",
|
|
3554
|
+
d("div", dl, [
|
|
3556
3555
|
(a(!0), i(w, null, V(e.value.visibleChoices, (_) => (a(), i("div", {
|
|
3557
3556
|
key: _.value,
|
|
3558
3557
|
class: "svc-question__dropdown-choice"
|
|
@@ -3565,18 +3564,18 @@ const Nt = /* @__PURE__ */ g({
|
|
|
3565
3564
|
])
|
|
3566
3565
|
]));
|
|
3567
3566
|
}
|
|
3568
|
-
}),
|
|
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 = {
|
|
3569
3568
|
key: 1,
|
|
3570
3569
|
class: "svc-panel__placeholder_frame"
|
|
3571
|
-
},
|
|
3570
|
+
}, yl = /* @__PURE__ */ d("div", {
|
|
3572
3571
|
class: "svc-panel__placeholder",
|
|
3573
3572
|
"data-bind": "text: placeholderText"
|
|
3574
|
-
}, null, -1),
|
|
3575
|
-
|
|
3576
|
-
],
|
|
3573
|
+
}, null, -1), hl = [
|
|
3574
|
+
yl
|
|
3575
|
+
], Cl = { class: "svc-question__content-actions" }, ql = {
|
|
3577
3576
|
key: 0,
|
|
3578
3577
|
class: "svc-panel__placeholder_frame"
|
|
3579
|
-
},
|
|
3578
|
+
}, $l = { class: "svc-panel__placeholder" }, kl = /* @__PURE__ */ g({
|
|
3580
3579
|
__name: "CustomWidget",
|
|
3581
3580
|
props: {
|
|
3582
3581
|
componentName: {},
|
|
@@ -3594,7 +3593,7 @@ const Nt = /* @__PURE__ */ g({
|
|
|
3594
3593
|
n.dispose();
|
|
3595
3594
|
}
|
|
3596
3595
|
);
|
|
3597
|
-
return
|
|
3596
|
+
return G(() => {
|
|
3598
3597
|
e.value && o.value && (o.value.rootElement = e.value);
|
|
3599
3598
|
}), P(() => {
|
|
3600
3599
|
e.value && o.value && (o.value.rootElement = e.value);
|
|
@@ -3607,16 +3606,16 @@ const Nt = /* @__PURE__ */ g({
|
|
|
3607
3606
|
ref_key: "root",
|
|
3608
3607
|
ref: e
|
|
3609
3608
|
}, [
|
|
3610
|
-
s(o).element.isInteractiveDesignElement ?
|
|
3609
|
+
s(o).element.isInteractiveDesignElement ? C((a(), i("div", {
|
|
3611
3610
|
key: 0,
|
|
3612
3611
|
class: m(["svc-question__content", s(o).css()]),
|
|
3613
3612
|
onClick: r[1] || (r[1] = (l) => s(o).select(s(o), l)),
|
|
3614
3613
|
"data-bind": "clickBubble: false"
|
|
3615
3614
|
}, [
|
|
3615
|
+
pl,
|
|
3616
|
+
vl,
|
|
3616
3617
|
ml,
|
|
3617
3618
|
_l,
|
|
3618
|
-
gl,
|
|
3619
|
-
bl,
|
|
3620
3619
|
s(o).allowDragging ? (a(), i("div", {
|
|
3621
3620
|
key: 0,
|
|
3622
3621
|
class: "svc-question__drag-area",
|
|
@@ -3629,11 +3628,11 @@ const Nt = /* @__PURE__ */ g({
|
|
|
3629
3628
|
size: "auto"
|
|
3630
3629
|
})
|
|
3631
3630
|
], 32)) : p("", !0),
|
|
3632
|
-
d("div",
|
|
3631
|
+
d("div", gl, [
|
|
3633
3632
|
v(s(u), A({ is: n.componentName }, n.componentData), null, 16, ["is"])
|
|
3634
3633
|
]),
|
|
3635
|
-
s(o).isEmptyElement ? (a(), i("div",
|
|
3636
|
-
d("div",
|
|
3634
|
+
s(o).isEmptyElement ? (a(), i("div", bl, hl)) : p("", !0),
|
|
3635
|
+
d("div", Cl, [
|
|
3637
3636
|
v(s(u), {
|
|
3638
3637
|
is: "sv-action-bar",
|
|
3639
3638
|
model: s(o).actionContainer,
|
|
@@ -3645,22 +3644,22 @@ const Nt = /* @__PURE__ */ g({
|
|
|
3645
3644
|
]) : p("", !0),
|
|
3646
3645
|
s(o).element.isInteractiveDesignElement ? p("", !0) : (a(), i(w, { key: 1 }, [
|
|
3647
3646
|
v(s(u), A({ is: n.componentName }, n.componentData), null, 16, ["is"]),
|
|
3648
|
-
s(o).isEmptyElement ? (a(), i("div",
|
|
3649
|
-
d("div",
|
|
3647
|
+
s(o).isEmptyElement ? (a(), i("div", ql, [
|
|
3648
|
+
d("div", $l, k(s(o).placeholderText), 1)
|
|
3650
3649
|
])) : p("", !0)
|
|
3651
3650
|
], 64))
|
|
3652
|
-
], 42,
|
|
3651
|
+
], 42, ul)) : p("", !0);
|
|
3653
3652
|
}
|
|
3654
|
-
}),
|
|
3653
|
+
}), fl = { class: "svc-carry-forward-panel-wrapper" }, wl = { class: "svc-carry-forward-panel" }, Tl = { class: "svc-carry-forward-panel__link" }, Dl = /* @__PURE__ */ g({
|
|
3655
3654
|
__name: "QuestionBanner",
|
|
3656
3655
|
props: {
|
|
3657
3656
|
model: {}
|
|
3658
3657
|
},
|
|
3659
3658
|
setup(c) {
|
|
3660
|
-
return (t, e) => (a(), i("div",
|
|
3661
|
-
d("div",
|
|
3659
|
+
return (t, e) => (a(), i("div", fl, [
|
|
3660
|
+
d("div", wl, [
|
|
3662
3661
|
d("span", null, k(t.model.text) + k(" "), 1),
|
|
3663
|
-
d("span",
|
|
3662
|
+
d("span", Tl, [
|
|
3664
3663
|
v(s(u), {
|
|
3665
3664
|
is: "svc-action-button",
|
|
3666
3665
|
text: t.model.actionText,
|
|
@@ -3671,27 +3670,27 @@ const Nt = /* @__PURE__ */ g({
|
|
|
3671
3670
|
]));
|
|
3672
3671
|
}
|
|
3673
3672
|
});
|
|
3674
|
-
function
|
|
3673
|
+
function Nl(c, t, e) {
|
|
3675
3674
|
c(t, e);
|
|
3676
3675
|
}
|
|
3677
3676
|
function pe(c) {
|
|
3678
|
-
const t =
|
|
3677
|
+
const t = Nl.bind(
|
|
3679
3678
|
void 0,
|
|
3680
3679
|
c
|
|
3681
3680
|
);
|
|
3682
|
-
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);
|
|
3683
3682
|
}
|
|
3684
3683
|
pe(
|
|
3685
3684
|
(c, t) => ie.Instance.registerComponent(c, t)
|
|
3686
3685
|
);
|
|
3687
|
-
const
|
|
3686
|
+
const El = {
|
|
3688
3687
|
install(c) {
|
|
3689
|
-
c.component("SurveyCreatorComponent",
|
|
3688
|
+
c.component("SurveyCreatorComponent", Ge), pe((t, e) => {
|
|
3690
3689
|
c.component(t, e), ie.Instance.registerComponent(t, t);
|
|
3691
3690
|
});
|
|
3692
3691
|
}
|
|
3693
3692
|
};
|
|
3694
3693
|
export {
|
|
3695
|
-
|
|
3696
|
-
|
|
3694
|
+
Ge as SurveyCreatorComponent,
|
|
3695
|
+
El as surveyCreatorPlugin
|
|
3697
3696
|
};
|