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