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