survey-creator-vue 2.0.3 → 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 +668 -654
- package/survey-creator-vue.umd.js +2 -2
package/survey-creator-vue.es.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
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
|
|
3
|
-
import { ResponsivityManager as he, CssClassBuilder as
|
|
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
|
|
5
|
-
const
|
|
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 = {
|
|
@@ -17,7 +17,7 @@ const ze = { class: "svc-flex-column svc-flex-row__element svc-flex-row__element
|
|
|
17
17
|
model: {}
|
|
18
18
|
},
|
|
19
19
|
setup(u) {
|
|
20
|
-
const t = u, e = k(() => ge(t.model)), o =
|
|
20
|
+
const t = u, e = k(() => ge(t.model)), o = I();
|
|
21
21
|
return f(
|
|
22
22
|
() => e.value,
|
|
23
23
|
(n, r) => {
|
|
@@ -25,38 +25,38 @@ const ze = { 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) : (
|
|
30
|
+
}), (n, r) => e.value.isCreatorDisposed ? p("", !0) : (a(), i(w, { key: 0 }, [
|
|
31
31
|
v(s(c), { is: "survey-popup-modal" }),
|
|
32
|
-
|
|
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
|
-
|
|
38
|
+
l("div", null, [
|
|
39
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 ? (
|
|
51
|
+
l("div", Le, [
|
|
52
|
+
l("div", ze, [
|
|
53
|
+
e.value.showTabs ? (a(), i("div", Fe, [
|
|
54
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
|
|
@@ -67,14 +67,14 @@ const ze = { class: "svc-flex-column svc-flex-row__element svc-flex-row__element
|
|
|
67
67
|
}, null, 8, ["model"])
|
|
68
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"
|
|
@@ -91,8 +91,8 @@ const ze = { class: "svc-flex-column svc-flex-row__element svc-flex-row__element
|
|
|
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
|
}, [
|
|
@@ -103,14 +103,14 @@ const ze = { class: "svc-flex-column svc-flex-row__element svc-flex-row__element
|
|
|
103
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
116
|
}, null, 8, We)
|
|
@@ -131,18 +131,18 @@ const ze = { class: "svc-flex-column svc-flex-row__element svc-flex-row__element
|
|
|
131
131
|
setup(u) {
|
|
132
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
|
|
@@ -155,21 +155,21 @@ const ze = { class: "svc-flex-column svc-flex-row__element svc-flex-row__element
|
|
|
155
155
|
item: {}
|
|
156
156
|
},
|
|
157
157
|
setup(u) {
|
|
158
|
-
const t =
|
|
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
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
|
-
|
|
172
|
+
l("div", Ze, [
|
|
173
173
|
v(s(c), {
|
|
174
174
|
is: o.item.component || "svc-tabbed-menu-item",
|
|
175
175
|
item: o.item
|
|
@@ -184,7 +184,7 @@ const ze = { class: "svc-flex-column svc-flex-row__element svc-flex-row__element
|
|
|
184
184
|
},
|
|
185
185
|
setup(u) {
|
|
186
186
|
const t = u;
|
|
187
|
-
return f(() => t.item), (e, o) =>
|
|
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 ze = { 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
199
|
}, $(e.item.title), 3)) : p("", !0),
|
|
200
|
-
e.item.hasIcon ? (
|
|
200
|
+
e.item.hasIcon ? (a(), h(s(c), {
|
|
201
201
|
key: 1,
|
|
202
202
|
is: "sv-svg-icon",
|
|
203
203
|
iconName: e.item.iconName,
|
|
@@ -215,23 +215,23 @@ const ze = { class: "svc-flex-column svc-flex-row__element svc-flex-row__element
|
|
|
215
215
|
model: {}
|
|
216
216
|
},
|
|
217
217
|
setup(u) {
|
|
218
|
-
const t = u, e =
|
|
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
|
|
@@ -240,8 +240,8 @@ const ze = { class: "svc-flex-column svc-flex-row__element svc-flex-row__element
|
|
|
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,19 +249,19 @@ const ze = { 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
|
-
}), no = { class: "svc-side-bar__container-header" },
|
|
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({
|
|
@@ -271,14 +271,14 @@ const ze = { class: "svc-flex-column svc-flex-row__element svc-flex-row__element
|
|
|
271
271
|
},
|
|
272
272
|
setup(u) {
|
|
273
273
|
const t = u;
|
|
274
|
-
return f(() => t.model), (e, o) => (
|
|
275
|
-
|
|
274
|
+
return f(() => t.model), (e, o) => (a(), i("div", no, [
|
|
275
|
+
l("div", ao, [
|
|
276
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({
|
|
@@ -288,7 +288,7 @@ const ze = { class: "svc-flex-column svc-flex-row__element svc-flex-row__element
|
|
|
288
288
|
},
|
|
289
289
|
setup(u) {
|
|
290
290
|
const t = u;
|
|
291
|
-
return f(() => t.model), (e, o) => e.model.visible ? (
|
|
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
|
|
@@ -301,7 +301,7 @@ const ze = { class: "svc-flex-column svc-flex-row__element svc-flex-row__element
|
|
|
301
301
|
},
|
|
302
302
|
setup(u) {
|
|
303
303
|
const t = u;
|
|
304
|
-
return f(() => t.model), (e, o) => e.model.isVisible ? (
|
|
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
|
|
@@ -314,14 +314,14 @@ const ze = { class: "svc-flex-column svc-flex-row__element svc-flex-row__element
|
|
|
314
314
|
},
|
|
315
315
|
setup(u) {
|
|
316
316
|
const t = u;
|
|
317
|
-
return f(() => t.model), (e, o) => (
|
|
317
|
+
return f(() => t.model), (e, o) => (a(), i("div", {
|
|
318
318
|
class: _(e.model.rootCss)
|
|
319
319
|
}, [
|
|
320
320
|
v(s(c), {
|
|
321
321
|
is: "svc-search",
|
|
322
322
|
model: e.model.searchManager
|
|
323
323
|
}, null, 8, ["model"]),
|
|
324
|
-
e.model.survey ? (
|
|
324
|
+
e.model.survey ? (a(), h(s(Q), {
|
|
325
325
|
key: 0,
|
|
326
326
|
survey: e.model.survey
|
|
327
327
|
}, null, 8, ["survey"])) : p("", !0)
|
|
@@ -334,14 +334,14 @@ const ze = { class: "svc-flex-column svc-flex-row__element svc-flex-row__element
|
|
|
334
334
|
},
|
|
335
335
|
setup(u) {
|
|
336
336
|
const t = u;
|
|
337
|
-
return f(() => t.model), (e, o) => (
|
|
337
|
+
return f(() => t.model), (e, o) => (a(!0), i(w, null, R(e.model.actions, (n, r) => (a(), h(s(c), {
|
|
338
338
|
key: r,
|
|
339
339
|
is: "svc-tab-button",
|
|
340
340
|
model: n
|
|
341
341
|
}, null, 8, ["model"]))), 128));
|
|
342
342
|
}
|
|
343
|
-
}), vo = { class: "svc-sidebar-tabs__top-container" }, mo = { class: "svc-sidebar-tabs__collapse-button" }, _o = /* @__PURE__ */
|
|
344
|
-
/* @__PURE__ */
|
|
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
345
|
], -1), go = { class: "svc-sidebar-tabs__items" }, bo = { class: "svc-sidebar-tabs__bottom-container" }, yo = { class: "svc-sidebar-tabs__items" }, ho = /* @__PURE__ */ g({
|
|
346
346
|
__name: "TabControl",
|
|
347
347
|
props: {
|
|
@@ -349,11 +349,11 @@ const ze = { class: "svc-flex-column svc-flex-row__element svc-flex-row__element
|
|
|
349
349
|
},
|
|
350
350
|
setup(u) {
|
|
351
351
|
const t = u;
|
|
352
|
-
return f(() => t.model), (e, o) => (
|
|
352
|
+
return f(() => t.model), (e, o) => (a(), i("div", {
|
|
353
353
|
class: _(e.model.sideBarClassName)
|
|
354
354
|
}, [
|
|
355
|
-
|
|
356
|
-
|
|
355
|
+
l("div", vo, [
|
|
356
|
+
l("div", mo, [
|
|
357
357
|
v(s(c), {
|
|
358
358
|
is: "svc-tab-button",
|
|
359
359
|
model: e.model.expandCollapseAction
|
|
@@ -362,7 +362,7 @@ const ze = { class: "svc-flex-column svc-flex-row__element svc-flex-row__element
|
|
|
362
362
|
_o,
|
|
363
363
|
v(s(c), { is: "sv-scroll" }, {
|
|
364
364
|
default: Z(() => [
|
|
365
|
-
|
|
365
|
+
l("div", go, [
|
|
366
366
|
v(s(c), {
|
|
367
367
|
is: "svc-tabs",
|
|
368
368
|
model: e.model.topToolbar
|
|
@@ -372,8 +372,8 @@ const ze = { class: "svc-flex-column svc-flex-row__element svc-flex-row__element
|
|
|
372
372
|
_: 1
|
|
373
373
|
})
|
|
374
374
|
]),
|
|
375
|
-
|
|
376
|
-
|
|
375
|
+
l("div", bo, [
|
|
376
|
+
l("div", yo, [
|
|
377
377
|
v(s(c), {
|
|
378
378
|
is: "svc-tabs",
|
|
379
379
|
model: e.model.bottomToolbar
|
|
@@ -382,24 +382,24 @@ const ze = { class: "svc-flex-column svc-flex-row__element svc-flex-row__element
|
|
|
382
382
|
])
|
|
383
383
|
], 2));
|
|
384
384
|
}
|
|
385
|
-
}),
|
|
385
|
+
}), qo = {
|
|
386
386
|
key: 0,
|
|
387
387
|
class: "svc-menu-action"
|
|
388
|
-
},
|
|
388
|
+
}, Co = ["title"], ko = { class: "svc-menu-action__icon" }, $o = { class: "svc-menu-action__icon-container" }, wo = /* @__PURE__ */ g({
|
|
389
389
|
__name: "TabButton",
|
|
390
390
|
props: {
|
|
391
391
|
model: {}
|
|
392
392
|
},
|
|
393
393
|
setup(u) {
|
|
394
394
|
const t = u;
|
|
395
|
-
return f(() => t.model), (e, o) => e.model.visible ? (
|
|
396
|
-
|
|
395
|
+
return f(() => t.model), (e, o) => e.model.visible ? (a(), i("div", qo, [
|
|
396
|
+
C((a(), i("div", {
|
|
397
397
|
class: _(e.model.buttonClassName),
|
|
398
398
|
title: e.model.tooltip,
|
|
399
399
|
onClick: o[0] || (o[0] = (n) => e.model.action())
|
|
400
400
|
}, [
|
|
401
|
-
|
|
402
|
-
|
|
401
|
+
l("div", ko, [
|
|
402
|
+
l("div", $o, [
|
|
403
403
|
v(s(c), {
|
|
404
404
|
is: "sv-svg-icon",
|
|
405
405
|
iconName: e.model.iconName,
|
|
@@ -407,27 +407,27 @@ const ze = { class: "svc-flex-column svc-flex-row__element svc-flex-row__element
|
|
|
407
407
|
}, null, 8, ["iconName"])
|
|
408
408
|
])
|
|
409
409
|
])
|
|
410
|
-
], 10,
|
|
410
|
+
], 10, Co)), [
|
|
411
411
|
[s(D), { processEsc: !1, disableTabStop: e.model.disableTabStop }]
|
|
412
412
|
])
|
|
413
413
|
])) : p("", !0);
|
|
414
414
|
}
|
|
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__ */
|
|
416
|
-
/* @__PURE__ */
|
|
417
|
-
/* @__PURE__ */
|
|
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
418
|
], -1), So = /* @__PURE__ */ g({
|
|
419
419
|
__name: "PropertyGridPlaceholder",
|
|
420
420
|
setup(u) {
|
|
421
421
|
const t = ue;
|
|
422
|
-
return (e, o) => (
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
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)
|
|
426
426
|
]),
|
|
427
427
|
Mo
|
|
428
428
|
]));
|
|
429
429
|
}
|
|
430
|
-
}),
|
|
430
|
+
}), Bo = { class: "svc-side-bar__container-header svc-sidebar__header-container" }, Io = {
|
|
431
431
|
key: 0,
|
|
432
432
|
class: "svc-side-bar__container-title"
|
|
433
433
|
}, Eo = {
|
|
@@ -440,31 +440,31 @@ const ze = { class: "svc-flex-column svc-flex-row__element svc-flex-row__element
|
|
|
440
440
|
},
|
|
441
441
|
setup(u) {
|
|
442
442
|
const t = u;
|
|
443
|
-
return f(() => t.model), (e, o) => (
|
|
444
|
-
e.model.subTitle ? p("", !0) : (
|
|
445
|
-
e.model.subTitle ? (
|
|
446
|
-
|
|
447
|
-
|
|
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)
|
|
448
448
|
])) : p("", !0)
|
|
449
449
|
]));
|
|
450
450
|
}
|
|
451
|
-
}), Ao = { class: "svc-sidebar__header svc-sidebar__header--tabbed" },
|
|
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({
|
|
452
452
|
__name: "SideBarPropertyGridHeader",
|
|
453
453
|
props: {
|
|
454
454
|
model: {}
|
|
455
455
|
},
|
|
456
456
|
setup(u) {
|
|
457
457
|
const t = u;
|
|
458
|
-
return f(() => t.model), (e, o) => (
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
458
|
+
return f(() => t.model), (e, o) => (a(), i("div", Ao, [
|
|
459
|
+
l("div", Lo, [
|
|
460
|
+
l("div", zo, [
|
|
461
|
+
C((a(), i("div", {
|
|
462
462
|
class: _(e.model.buttonClassName),
|
|
463
463
|
onClick: o[0] || (o[0] = (n) => e.model.action())
|
|
464
464
|
}, [
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
465
|
+
l("div", Fo, [
|
|
466
|
+
l("span", Ko, $(e.model.title), 1),
|
|
467
|
+
l("span", Uo, $(e.model.tooltip), 1)
|
|
468
468
|
])
|
|
469
469
|
], 2)), [
|
|
470
470
|
[s(D), { processEsc: !1 }]
|
|
@@ -486,14 +486,14 @@ const ze = { class: "svc-flex-column svc-flex-row__element svc-flex-row__element
|
|
|
486
486
|
element: {}
|
|
487
487
|
},
|
|
488
488
|
setup(u) {
|
|
489
|
-
return (t, e) => (
|
|
489
|
+
return (t, e) => (a(), i("div", { key: t.errorKey }, [
|
|
490
490
|
v(s(c), {
|
|
491
491
|
is: "sv-svg-icon",
|
|
492
492
|
class: _(t.cssClasses.error.icon),
|
|
493
493
|
iconName: "icon-alert_24x24",
|
|
494
494
|
size: "auto"
|
|
495
495
|
}, null, 8, ["class"]),
|
|
496
|
-
|
|
496
|
+
l("span", {
|
|
497
497
|
class: _(
|
|
498
498
|
t.cssClasses ? t.cssClasses.error.item || void 0 : "panel-error-item"
|
|
499
499
|
)
|
|
@@ -520,15 +520,15 @@ const ze = { class: "svc-flex-column svc-flex-row__element svc-flex-row__element
|
|
|
520
520
|
setup(u) {
|
|
521
521
|
const t = u, e = (n) => {
|
|
522
522
|
t.click(), t.allowBubble || n.stopPropagation();
|
|
523
|
-
}, o = () => new
|
|
524
|
-
return (n, r) => (
|
|
525
|
-
n.iconName ? p("", !0) : (
|
|
526
|
-
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", {
|
|
527
527
|
key: 0,
|
|
528
528
|
class: _(["svc-action-button svc-action-button--disabled", n.classes]),
|
|
529
529
|
title: n.title
|
|
530
530
|
}, $(n.text), 11, Qo)) : p("", !0),
|
|
531
|
-
|
|
531
|
+
C((a(), i("span", {
|
|
532
532
|
role: "button",
|
|
533
533
|
class: _(["svc-action-button", o()]),
|
|
534
534
|
onClick: e,
|
|
@@ -539,8 +539,8 @@ const ze = { class: "svc-flex-column svc-flex-row__element svc-flex-row__element
|
|
|
539
539
|
[s(D)]
|
|
540
540
|
])
|
|
541
541
|
], 64)),
|
|
542
|
-
n.iconName ? (
|
|
543
|
-
n.disabled ? (
|
|
542
|
+
n.iconName ? (a(), i(w, { key: 1 }, [
|
|
543
|
+
n.disabled ? (a(), i("span", {
|
|
544
544
|
key: 0,
|
|
545
545
|
class: _(o()),
|
|
546
546
|
title: n.title
|
|
@@ -551,7 +551,7 @@ const ze = { class: "svc-flex-column svc-flex-row__element svc-flex-row__element
|
|
|
551
551
|
size: "auto"
|
|
552
552
|
}, null, 8, ["iconName"])
|
|
553
553
|
], 10, Wo)) : p("", !0),
|
|
554
|
-
|
|
554
|
+
C((a(), i("span", {
|
|
555
555
|
role: "button",
|
|
556
556
|
onClick: e,
|
|
557
557
|
class: _(o()),
|
|
@@ -568,7 +568,7 @@ const ze = { class: "svc-flex-column svc-flex-row__element svc-flex-row__element
|
|
|
568
568
|
], 64)) : p("", !0)
|
|
569
569
|
], 64));
|
|
570
570
|
}
|
|
571
|
-
}), Zo = ["disabled", "title", "aria-checked", "aria-expanded", "role"], Xo = /* @__PURE__ */
|
|
571
|
+
}), Zo = ["disabled", "title", "aria-checked", "aria-expanded", "role"], Xo = /* @__PURE__ */ l("div", { class: "svc-switcher__icon-thumb" }, null, -1), Yo = [
|
|
572
572
|
Xo
|
|
573
573
|
], xo = {
|
|
574
574
|
key: 0,
|
|
@@ -583,7 +583,7 @@ const ze = { class: "svc-flex-column svc-flex-row__element svc-flex-row__element
|
|
|
583
583
|
},
|
|
584
584
|
setup(u) {
|
|
585
585
|
const t = u;
|
|
586
|
-
return f(() => t.item), (e, o) =>
|
|
586
|
+
return f(() => t.item), (e, o) => C((a(), i("button", {
|
|
587
587
|
class: _(e.item.getActionBarItemCss()),
|
|
588
588
|
type: "button",
|
|
589
589
|
onClick: o[0] || (o[0] = (n) => {
|
|
@@ -598,10 +598,10 @@ const ze = { class: "svc-flex-column svc-flex-row__element svc-flex-row__element
|
|
|
598
598
|
"aria-expanded": e.item.ariaExpanded,
|
|
599
599
|
role: e.item.ariaRole
|
|
600
600
|
}, [
|
|
601
|
-
|
|
601
|
+
l("div", {
|
|
602
602
|
class: _(e.item.getSwitcherIconCss())
|
|
603
603
|
}, Yo, 2),
|
|
604
|
-
e.item.hasTitle ? (
|
|
604
|
+
e.item.hasTitle ? (a(), i("span", xo, $(e.item.title), 1)) : p("", !0)
|
|
605
605
|
], 42, Zo)), [
|
|
606
606
|
[s(D), { processEsc: !1, disableTabStop: e.item.disableTabStop }]
|
|
607
607
|
]);
|
|
@@ -622,36 +622,36 @@ const ze = { class: "svc-flex-column svc-flex-row__element svc-flex-row__element
|
|
|
622
622
|
}, n = () => {
|
|
623
623
|
t.model.device !== "desktop" && t.model.deactivateZoom();
|
|
624
624
|
};
|
|
625
|
-
return (r, d) => (
|
|
625
|
+
return (r, d) => (a(), i("div", {
|
|
626
626
|
class: _(r.model.getRootCss()),
|
|
627
627
|
onKeydown: d[0] || (d[0] = (m) => r.model.tryToZoom(void 0, m)),
|
|
628
628
|
onMouseover: d[1] || (d[1] = (m) => o()),
|
|
629
629
|
onMouseout: d[2] || (d[2] = (m) => n())
|
|
630
630
|
}, [
|
|
631
|
-
r.model.hasFrame ? p("", !0) : (
|
|
631
|
+
r.model.hasFrame ? p("", !0) : (a(), i("div", ss, [
|
|
632
632
|
v(s(c), {
|
|
633
633
|
is: "survey-widget",
|
|
634
634
|
model: r.model.survey
|
|
635
635
|
}, null, 8, ["model"])
|
|
636
636
|
])),
|
|
637
|
-
r.model.hasFrame ? (
|
|
637
|
+
r.model.hasFrame ? (a(), i("div", {
|
|
638
638
|
key: 1,
|
|
639
639
|
class: "svd-simulator-wrapper",
|
|
640
640
|
id: "svd-simulator-wrapper",
|
|
641
|
-
style:
|
|
641
|
+
style: z({
|
|
642
642
|
width: e.value.frameWidth + "px",
|
|
643
643
|
height: e.value.frameHeight + "px"
|
|
644
644
|
})
|
|
645
645
|
}, [
|
|
646
|
-
|
|
646
|
+
l("div", {
|
|
647
647
|
class: "svd-simulator",
|
|
648
|
-
style:
|
|
648
|
+
style: z({
|
|
649
649
|
width: e.value.deviceWidth + "px",
|
|
650
650
|
height: e.value.deviceHeight + "px",
|
|
651
651
|
transform: "scale(" + e.value.scale + ") translate(-50%, -50%)"
|
|
652
652
|
})
|
|
653
653
|
}, [
|
|
654
|
-
|
|
654
|
+
l("div", ts, [
|
|
655
655
|
v(s(c), {
|
|
656
656
|
is: "survey-widget",
|
|
657
657
|
model: r.model.survey
|
|
@@ -661,7 +661,7 @@ const ze = { class: "svc-flex-column svc-flex-row__element svc-flex-row__element
|
|
|
661
661
|
], 4)) : p("", !0)
|
|
662
662
|
], 34));
|
|
663
663
|
}
|
|
664
|
-
}),
|
|
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({
|
|
665
665
|
__name: "SurfacePlaceholder",
|
|
666
666
|
props: {
|
|
667
667
|
name: {},
|
|
@@ -669,13 +669,13 @@ const ze = { class: "svc-flex-column svc-flex-row__element svc-flex-row__element
|
|
|
669
669
|
placeholderDescriptionText: {}
|
|
670
670
|
},
|
|
671
671
|
setup(u) {
|
|
672
|
-
return (t, e) => (
|
|
673
|
-
|
|
672
|
+
return (t, e) => (a(), i("div", as, [
|
|
673
|
+
l("div", {
|
|
674
674
|
class: _(["svc-surface-placeholder__image", "svc-surface-placeholder__image--" + t.name])
|
|
675
675
|
}, null, 2),
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
676
|
+
l("div", ls, [
|
|
677
|
+
l("div", is, $(t.placeholderTitleText), 1),
|
|
678
|
+
l("div", rs, $(t.placeholderDescriptionText), 1)
|
|
679
679
|
])
|
|
680
680
|
]));
|
|
681
681
|
}
|
|
@@ -689,18 +689,18 @@ const ze = { class: "svc-flex-column svc-flex-row__element svc-flex-row__element
|
|
|
689
689
|
},
|
|
690
690
|
setup(u) {
|
|
691
691
|
const t = u;
|
|
692
|
-
return f(() => t.model), (e, o) => (
|
|
692
|
+
return f(() => t.model), (e, o) => (a(), i("div", {
|
|
693
693
|
class: _(["svc-creator-tab__content svc-test-tab__content", {
|
|
694
694
|
"svc-creator-tab__content--with-toolbar": e.model.isPageToolbarVisible
|
|
695
695
|
}])
|
|
696
696
|
}, [
|
|
697
|
-
e.model.survey.isEmpty ? (
|
|
697
|
+
e.model.survey.isEmpty ? (a(), h(W, {
|
|
698
698
|
key: 0,
|
|
699
699
|
name: "preview",
|
|
700
700
|
placeholderTitleText: e.model.placeholderTitleText,
|
|
701
701
|
placeholderDescriptionText: e.model.placeholderDescriptionText
|
|
702
702
|
}, null, 8, ["placeholderTitleText", "placeholderDescriptionText"])) : p("", !0),
|
|
703
|
-
e.model.survey.isEmpty ? p("", !0) : (
|
|
703
|
+
e.model.survey.isEmpty ? p("", !0) : (a(), i("div", {
|
|
704
704
|
key: 1,
|
|
705
705
|
class: "svc-plugin-tab__content",
|
|
706
706
|
onScroll: o[0] || (o[0] = (n) => e.model.onScroll())
|
|
@@ -709,13 +709,13 @@ const ze = { class: "svc-flex-column svc-flex-row__element svc-flex-row__element
|
|
|
709
709
|
is: "survey-simulator",
|
|
710
710
|
model: e.model.simulator
|
|
711
711
|
}, null, 8, ["model"]),
|
|
712
|
-
e.model.showResults ? (
|
|
712
|
+
e.model.showResults ? (a(), h(s(c), {
|
|
713
713
|
key: 0,
|
|
714
714
|
is: "survey-results",
|
|
715
715
|
survey: e.model.survey
|
|
716
716
|
}, null, 8, ["survey"])) : p("", !0)
|
|
717
717
|
], 32)),
|
|
718
|
-
e.model.isPageToolbarVisible ? (
|
|
718
|
+
e.model.isPageToolbarVisible ? (a(), i("div", ds, [
|
|
719
719
|
v(s(c), {
|
|
720
720
|
is: "sv-action-bar",
|
|
721
721
|
model: e.model.pages
|
|
@@ -731,12 +731,12 @@ const ze = { class: "svc-flex-column svc-flex-row__element svc-flex-row__element
|
|
|
731
731
|
},
|
|
732
732
|
setup(u) {
|
|
733
733
|
const t = u, e = k(() => t.model.testAgainAction);
|
|
734
|
-
return f(() => e.value), (o, n) =>
|
|
734
|
+
return f(() => e.value), (o, n) => C((a(), i("div", {
|
|
735
735
|
role: "button",
|
|
736
736
|
class: "svc-preview__test-again svc-btn",
|
|
737
737
|
onClick: n[0] || (n[0] = (r) => e.value.action())
|
|
738
738
|
}, [
|
|
739
|
-
|
|
739
|
+
l("span", us, $(e.value.title), 1)
|
|
740
740
|
])), [
|
|
741
741
|
[s(D)]
|
|
742
742
|
]);
|
|
@@ -759,7 +759,7 @@ function A(u, t, e) {
|
|
|
759
759
|
const vs = {
|
|
760
760
|
key: 0,
|
|
761
761
|
class: "svd-test-results"
|
|
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" },
|
|
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({
|
|
763
763
|
__name: "SurveyResults",
|
|
764
764
|
props: {
|
|
765
765
|
survey: {}
|
|
@@ -769,11 +769,11 @@ const vs = {
|
|
|
769
769
|
() => t.survey ? new $e(t.survey) : void 0,
|
|
770
770
|
[() => t.survey]
|
|
771
771
|
);
|
|
772
|
-
return (o, n) => s(e) ? (
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
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
777
|
v(s(c), {
|
|
778
778
|
is: "svc-action-button",
|
|
779
779
|
text: s(e).surveyResultsTableText,
|
|
@@ -790,21 +790,21 @@ const vs = {
|
|
|
790
790
|
}, null, 8, ["text", "click", "selected"])
|
|
791
791
|
])
|
|
792
792
|
]),
|
|
793
|
-
|
|
794
|
-
|
|
793
|
+
C(l("div", ys, [
|
|
794
|
+
l("div", null, $(s(e).resultText), 1)
|
|
795
795
|
], 512), [
|
|
796
|
-
[
|
|
796
|
+
[K, s(e).resultViewType === "text"]
|
|
797
797
|
]),
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
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)
|
|
804
804
|
])
|
|
805
805
|
]),
|
|
806
|
-
|
|
807
|
-
(
|
|
806
|
+
l("tbody", null, [
|
|
807
|
+
(a(!0), i(w, null, R(s(e).resultData, (r, d) => (a(), h(s(c), {
|
|
808
808
|
is: "survey-results-table-row",
|
|
809
809
|
model: r,
|
|
810
810
|
key: d
|
|
@@ -812,7 +812,7 @@ const vs = {
|
|
|
812
812
|
])
|
|
813
813
|
])
|
|
814
814
|
], 512), [
|
|
815
|
-
[
|
|
815
|
+
[K, s(e).resultViewType === "table"]
|
|
816
816
|
])
|
|
817
817
|
])
|
|
818
818
|
])) : p("", !0);
|
|
@@ -824,19 +824,19 @@ const vs = {
|
|
|
824
824
|
},
|
|
825
825
|
setup(u) {
|
|
826
826
|
const t = u;
|
|
827
|
-
return f(() => t.model), (e, o) => (
|
|
828
|
-
|
|
827
|
+
return f(() => t.model), (e, o) => (a(), i(w, null, [
|
|
828
|
+
C((a(), i("tr", {
|
|
829
829
|
onClick: o[0] || (o[0] = //@ts-ignore
|
|
830
830
|
(...n) => e.model.toggle && e.model.toggle(...n))
|
|
831
831
|
}, [
|
|
832
|
-
|
|
832
|
+
l("td", {
|
|
833
833
|
class: "svd-dark-border-color",
|
|
834
|
-
style:
|
|
834
|
+
style: z({ paddingLeft: e.model.textMargin })
|
|
835
835
|
}, [
|
|
836
|
-
e.model.isNode ? (
|
|
836
|
+
e.model.isNode ? (a(), i("span", {
|
|
837
837
|
key: 0,
|
|
838
838
|
class: _(["svd-test-results__marker", { "svd-test-results__marker--expanded": !e.model.collapsed }]),
|
|
839
|
-
style:
|
|
839
|
+
style: z({ left: e.model.markerMargin })
|
|
840
840
|
}, [
|
|
841
841
|
v(s(c), {
|
|
842
842
|
is: "sv-svg-icon",
|
|
@@ -844,13 +844,13 @@ const vs = {
|
|
|
844
844
|
size: 16
|
|
845
845
|
})
|
|
846
846
|
], 6)) : p("", !0),
|
|
847
|
-
e.model.question ? (
|
|
847
|
+
e.model.question ? (a(), h(s(c), {
|
|
848
848
|
key: 1,
|
|
849
849
|
is: "survey-string",
|
|
850
850
|
locString: e.model.question.locTitle
|
|
851
|
-
}, null, 8, ["locString"])) : (
|
|
851
|
+
}, null, 8, ["locString"])) : (a(), i("span", ws, $(e.model.title), 1))
|
|
852
852
|
], 4),
|
|
853
|
-
|
|
853
|
+
l("td", {
|
|
854
854
|
class: _({
|
|
855
855
|
"svd-test-results__node-value": e.model.isNode,
|
|
856
856
|
"svd-dark-border-color": !e.model.isNode
|
|
@@ -859,7 +859,7 @@ const vs = {
|
|
|
859
859
|
])), [
|
|
860
860
|
[s(D)]
|
|
861
861
|
]),
|
|
862
|
-
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), {
|
|
863
863
|
is: "survey-results-table-row",
|
|
864
864
|
model: n,
|
|
865
865
|
key: r + 1
|
|
@@ -872,38 +872,38 @@ const vs = {
|
|
|
872
872
|
model: {}
|
|
873
873
|
},
|
|
874
874
|
setup(u) {
|
|
875
|
-
const t = u, e =
|
|
876
|
-
return f(() => t.model), E(() => t.model.init(window.ace.edit(e.value))), (o, n) => (
|
|
877
|
-
|
|
878
|
-
|
|
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", {
|
|
879
879
|
class: "svc-json-editor-tab__ace-editor",
|
|
880
880
|
ref_key: "inputEl",
|
|
881
881
|
ref: e
|
|
882
882
|
}, null, 512),
|
|
883
|
-
|
|
883
|
+
C(l("div", Ns, [
|
|
884
884
|
v(s(c), {
|
|
885
885
|
is: "sv-list",
|
|
886
886
|
model: o.model.errorList
|
|
887
887
|
}, null, 8, ["model"])
|
|
888
888
|
], 512), [
|
|
889
|
-
[
|
|
889
|
+
[K, o.model.hasErrors]
|
|
890
890
|
])
|
|
891
891
|
])
|
|
892
892
|
]));
|
|
893
893
|
}
|
|
894
|
-
}), Ss = { class: "svc-creator-tab__content" },
|
|
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({
|
|
895
895
|
__name: "JsonEditorTextArea",
|
|
896
896
|
props: {
|
|
897
897
|
model: {}
|
|
898
898
|
},
|
|
899
899
|
setup(u) {
|
|
900
|
-
const t = u, e =
|
|
900
|
+
const t = u, e = I(), o = t.model;
|
|
901
901
|
return o.canShowErrors = !1, f(() => t.model), E(() => {
|
|
902
902
|
const n = t.model;
|
|
903
903
|
n.textElement = e.value;
|
|
904
|
-
}), (n, r) => (
|
|
905
|
-
|
|
906
|
-
|
|
904
|
+
}), (n, r) => (a(), i("div", Ss, [
|
|
905
|
+
l("div", Bs, [
|
|
906
|
+
C(l("textarea", {
|
|
907
907
|
class: "svc-json-editor-tab__content-area",
|
|
908
908
|
"aria-label": s(o).ariaLabel,
|
|
909
909
|
disabled: s(o).readOnly,
|
|
@@ -912,21 +912,21 @@ const vs = {
|
|
|
912
912
|
ref_key: "inputEl",
|
|
913
913
|
ref: e
|
|
914
914
|
}, `
|
|
915
|
-
`, 40,
|
|
915
|
+
`, 40, Is), [
|
|
916
916
|
[de, s(o).text]
|
|
917
917
|
]),
|
|
918
|
-
|
|
918
|
+
C(l("div", Es, [
|
|
919
919
|
v(s(c), {
|
|
920
920
|
is: "sv-list",
|
|
921
921
|
model: s(o).errorList
|
|
922
922
|
}, null, 8, ["model"])
|
|
923
923
|
], 512), [
|
|
924
|
-
[
|
|
924
|
+
[K, s(o).hasErrors]
|
|
925
925
|
])
|
|
926
926
|
])
|
|
927
927
|
]));
|
|
928
928
|
}
|
|
929
|
-
}), Rs = { class: "svc-json-error__container" }, Vs = { class: "svc-json-error__title" }, As = ["title", "aria-label"],
|
|
929
|
+
}), Rs = { class: "svc-json-error__container" }, Vs = { class: "svc-json-error__title" }, As = ["title", "aria-label"], Ls = /* @__PURE__ */ g({
|
|
930
930
|
__name: "JsonEditorErrorItem",
|
|
931
931
|
props: {
|
|
932
932
|
item: {}
|
|
@@ -937,21 +937,21 @@ const vs = {
|
|
|
937
937
|
const e = (o) => {
|
|
938
938
|
o.stopPropagation(), t.item.data.fixError();
|
|
939
939
|
};
|
|
940
|
-
return (o, n) => (
|
|
940
|
+
return (o, n) => (a(), i(w, null, [
|
|
941
941
|
v(s(c), {
|
|
942
942
|
is: "sv-svg-icon",
|
|
943
943
|
iconName: o.item.iconName,
|
|
944
944
|
size: o.item.iconSize,
|
|
945
945
|
class: _("svc-json-error__icon")
|
|
946
946
|
}, null, 8, ["iconName", "size"]),
|
|
947
|
-
|
|
948
|
-
|
|
947
|
+
l("div", Rs, [
|
|
948
|
+
l("div", Vs, [
|
|
949
949
|
v(s(c), {
|
|
950
950
|
is: "survey-string",
|
|
951
951
|
locString: o.item.locTitle
|
|
952
952
|
}, null, 8, ["locString"])
|
|
953
953
|
]),
|
|
954
|
-
o.item.data.showFixButton ?
|
|
954
|
+
o.item.data.showFixButton ? C((a(), i("button", {
|
|
955
955
|
key: 0,
|
|
956
956
|
type: "button",
|
|
957
957
|
onClick: e,
|
|
@@ -970,7 +970,7 @@ const vs = {
|
|
|
970
970
|
])
|
|
971
971
|
], 64));
|
|
972
972
|
}
|
|
973
|
-
}),
|
|
973
|
+
}), zs = { class: "svc-btn__text" }, te = /* @__PURE__ */ g({
|
|
974
974
|
__name: "LogicAddButton",
|
|
975
975
|
props: {
|
|
976
976
|
model: {}
|
|
@@ -981,14 +981,14 @@ const vs = {
|
|
|
981
981
|
const e = (o) => {
|
|
982
982
|
o.stopPropagation(), t.model.action();
|
|
983
983
|
};
|
|
984
|
-
return (o, n) =>
|
|
984
|
+
return (o, n) => C((a(), i("div", {
|
|
985
985
|
role: "button",
|
|
986
986
|
class: _(["svc-logic-tab__content-action svc-btn", {
|
|
987
987
|
"svc-logic-tab__content-action--disabled": o.model.enabled !== void 0 && !o.model.enabled
|
|
988
988
|
}]),
|
|
989
989
|
onClick: e
|
|
990
990
|
}, [
|
|
991
|
-
|
|
991
|
+
l("span", zs, $(o.model.title), 1)
|
|
992
992
|
], 2)), [
|
|
993
993
|
[s(D)]
|
|
994
994
|
]);
|
|
@@ -1003,26 +1003,26 @@ const vs = {
|
|
|
1003
1003
|
},
|
|
1004
1004
|
setup(u) {
|
|
1005
1005
|
const t = u;
|
|
1006
|
-
return f(() => t.model), (e, o) => (
|
|
1007
|
-
|
|
1006
|
+
return f(() => t.model), (e, o) => (a(), i("div", Fs, [
|
|
1007
|
+
l("div", {
|
|
1008
1008
|
class: _(["svc-plugin-tab__content svc-logic-tab__content", { "svc-logic-tab--empty": !e.model.hasItems }])
|
|
1009
1009
|
}, [
|
|
1010
|
-
e.model.hasItems ? (
|
|
1010
|
+
e.model.hasItems ? (a(), i(w, { key: 0 }, [
|
|
1011
1011
|
v(s(Q), {
|
|
1012
1012
|
model: e.model.itemsSurvey
|
|
1013
1013
|
}, null, 8, ["model"]),
|
|
1014
|
-
e.model.readOnly ? p("", !0) : (
|
|
1014
|
+
e.model.readOnly ? p("", !0) : (a(), h(te, {
|
|
1015
1015
|
key: 0,
|
|
1016
1016
|
model: e.model.addNewButton
|
|
1017
1017
|
}, null, 8, ["model"]))
|
|
1018
1018
|
], 64)) : p("", !0),
|
|
1019
|
-
e.model.hasItems ? p("", !0) : (
|
|
1019
|
+
e.model.hasItems ? p("", !0) : (a(), i("div", Ks, [
|
|
1020
1020
|
v(W, {
|
|
1021
1021
|
name: "logic",
|
|
1022
1022
|
placeholderTitleText: e.model.placeholderTitleText,
|
|
1023
1023
|
placeholderDescriptionText: e.model.placeholderDescriptionText
|
|
1024
1024
|
}, null, 8, ["placeholderTitleText", "placeholderDescriptionText"]),
|
|
1025
|
-
e.model.readOnly ? p("", !0) : (
|
|
1025
|
+
e.model.readOnly ? p("", !0) : (a(), h(te, {
|
|
1026
1026
|
key: 0,
|
|
1027
1027
|
model: e.model.addNewButton
|
|
1028
1028
|
}, null, 8, ["model"]))
|
|
@@ -1030,7 +1030,7 @@ const vs = {
|
|
|
1030
1030
|
], 2)
|
|
1031
1031
|
]));
|
|
1032
1032
|
}
|
|
1033
|
-
}), Hs = ["id", "required", "tabindex", "disabled", "role", "aria-required", "aria-label", "aria-invalid", "aria-
|
|
1033
|
+
}), Hs = ["id", "required", "tabindex", "disabled", "role", "aria-required", "aria-label", "aria-labelledby", "aria-invalid", "aria-errormessage", "aria-expanded"], Os = ["id"];
|
|
1034
1034
|
ce.Instance.registerRenderer(
|
|
1035
1035
|
"dropdown",
|
|
1036
1036
|
"logicoperator",
|
|
@@ -1042,7 +1042,7 @@ const Qs = /* @__PURE__ */ g({
|
|
|
1042
1042
|
question: {}
|
|
1043
1043
|
},
|
|
1044
1044
|
setup(u) {
|
|
1045
|
-
const t = u, e =
|
|
1045
|
+
const t = u, e = I(), o = k(() => t.question.dropdownListModel ?? new Ce(t.question));
|
|
1046
1046
|
H(t, e, (m) => {
|
|
1047
1047
|
we(m);
|
|
1048
1048
|
});
|
|
@@ -1056,11 +1056,11 @@ const Qs = /* @__PURE__ */ g({
|
|
|
1056
1056
|
var b;
|
|
1057
1057
|
(b = o.value) == null || b.keyHandler(m);
|
|
1058
1058
|
};
|
|
1059
|
-
return (m, b) => (
|
|
1059
|
+
return (m, b) => (a(), i("div", {
|
|
1060
1060
|
class: _(m.question.cssClasses.selectWrapper)
|
|
1061
1061
|
}, [
|
|
1062
|
-
m.question.isReadOnly ? p("", !0) : (
|
|
1063
|
-
|
|
1062
|
+
m.question.isReadOnly ? p("", !0) : (a(), i(w, { key: 0 }, [
|
|
1063
|
+
l("div", {
|
|
1064
1064
|
class: _(m.question.getControlClass()),
|
|
1065
1065
|
onClick: n,
|
|
1066
1066
|
onKeyup: d,
|
|
@@ -1071,20 +1071,22 @@ const Qs = /* @__PURE__ */ g({
|
|
|
1071
1071
|
role: m.question.ariaRole,
|
|
1072
1072
|
"aria-required": m.question.ariaRequired,
|
|
1073
1073
|
"aria-label": m.question.ariaLabel,
|
|
1074
|
+
"aria-labelledby": m.question.ariaLabelledBy,
|
|
1074
1075
|
"aria-invalid": m.question.ariaInvalid,
|
|
1075
|
-
"aria-
|
|
1076
|
+
"aria-errormessage": m.question.ariaErrormessage,
|
|
1077
|
+
"aria-expanded": m.question.ariaExpanded
|
|
1076
1078
|
}, [
|
|
1077
|
-
|
|
1079
|
+
l("div", {
|
|
1078
1080
|
class: _(m.question.cssClasses.controlValue)
|
|
1079
1081
|
}, [
|
|
1080
|
-
m.question.selectedItemLocText ? (
|
|
1082
|
+
m.question.selectedItemLocText ? (a(), h(s(c), {
|
|
1081
1083
|
key: 0,
|
|
1082
1084
|
is: "survey-string",
|
|
1083
1085
|
locString: m.question.selectedItemLocText
|
|
1084
1086
|
}, null, 8, ["locString"])) : p("", !0),
|
|
1085
|
-
|
|
1087
|
+
l("div", null, $(m.question.readOnlyText), 1)
|
|
1086
1088
|
], 2),
|
|
1087
|
-
m.question.allowClear && m.question.cssClasses.cleanButtonIconId ?
|
|
1089
|
+
m.question.allowClear && m.question.cssClasses.cleanButtonIconId ? C((a(), i("div", {
|
|
1088
1090
|
key: 0,
|
|
1089
1091
|
class: _(m.question.cssClasses.cleanButton),
|
|
1090
1092
|
onClick: r
|
|
@@ -1097,7 +1099,7 @@ const Qs = /* @__PURE__ */ g({
|
|
|
1097
1099
|
title: m.question.clearCaption
|
|
1098
1100
|
}, null, 8, ["class", "iconName", "title"])
|
|
1099
1101
|
], 2)), [
|
|
1100
|
-
[
|
|
1102
|
+
[K, !m.question.isEmpty()]
|
|
1101
1103
|
]) : p("", !0)
|
|
1102
1104
|
], 42, Hs),
|
|
1103
1105
|
v(s(c), {
|
|
@@ -1105,18 +1107,18 @@ const Qs = /* @__PURE__ */ g({
|
|
|
1105
1107
|
model: m.question.popupModel
|
|
1106
1108
|
}, null, 8, ["model"])
|
|
1107
1109
|
], 64)),
|
|
1108
|
-
m.question.isReadOnly ? (
|
|
1110
|
+
m.question.isReadOnly ? (a(), i("div", {
|
|
1109
1111
|
key: 1,
|
|
1110
1112
|
disabled: "",
|
|
1111
1113
|
class: _(m.question.getControlClass()),
|
|
1112
1114
|
id: m.question.inputId
|
|
1113
1115
|
}, [
|
|
1114
|
-
m.question.selectedItemLocText ? (
|
|
1116
|
+
m.question.selectedItemLocText ? (a(), h(s(c), {
|
|
1115
1117
|
key: 0,
|
|
1116
1118
|
is: "survey-string",
|
|
1117
1119
|
locString: m.question.selectedItemLocText
|
|
1118
1120
|
}, null, 8, ["locString"])) : p("", !0),
|
|
1119
|
-
|
|
1121
|
+
l("div", null, $(m.question.readOnlyText), 1)
|
|
1120
1122
|
], 10, Os)) : p("", !0)
|
|
1121
1123
|
], 2));
|
|
1122
1124
|
}
|
|
@@ -1126,10 +1128,10 @@ const Qs = /* @__PURE__ */ g({
|
|
|
1126
1128
|
question: {}
|
|
1127
1129
|
},
|
|
1128
1130
|
setup(u) {
|
|
1129
|
-
const t = u, e =
|
|
1131
|
+
const t = u, e = I();
|
|
1130
1132
|
H(t, e);
|
|
1131
1133
|
const o = k(() => t.question.embeddedSurvey);
|
|
1132
|
-
return (n, r) => n.question && o.value && o.value.currentPage ? (
|
|
1134
|
+
return (n, r) => n.question && o.value && o.value.currentPage ? (a(), h(s(c), {
|
|
1133
1135
|
key: 0,
|
|
1134
1136
|
is: "survey-page",
|
|
1135
1137
|
page: o.value.currentPage,
|
|
@@ -1143,8 +1145,8 @@ const Qs = /* @__PURE__ */ g({
|
|
|
1143
1145
|
question: {}
|
|
1144
1146
|
},
|
|
1145
1147
|
setup(u) {
|
|
1146
|
-
const t = u, e =
|
|
1147
|
-
return H(t, e), (n, r) => (
|
|
1148
|
+
const t = u, e = I(), o = ue.getString("pe.clear");
|
|
1149
|
+
return H(t, e), (n, r) => (a(), i(w, null, [
|
|
1148
1150
|
v(s(c), {
|
|
1149
1151
|
is: "svc-action-button",
|
|
1150
1152
|
text: n.question.linkValueText,
|
|
@@ -1155,7 +1157,7 @@ const Qs = /* @__PURE__ */ g({
|
|
|
1155
1157
|
title: n.question.tooltip,
|
|
1156
1158
|
iconName: n.question.iconName
|
|
1157
1159
|
}, null, 8, ["text", "click", "selected", "disabled", "classes", "title", "iconName"]),
|
|
1158
|
-
!n.question.isReadOnly && n.question.showClear ? (
|
|
1160
|
+
!n.question.isReadOnly && n.question.showClear ? (a(), h(s(c), {
|
|
1159
1161
|
key: 0,
|
|
1160
1162
|
is: "svc-action-button",
|
|
1161
1163
|
text: s(o),
|
|
@@ -1175,23 +1177,23 @@ const Qs = /* @__PURE__ */ g({
|
|
|
1175
1177
|
},
|
|
1176
1178
|
setup(u) {
|
|
1177
1179
|
const t = u;
|
|
1178
|
-
return f(() => t.model), (e, o) => (
|
|
1180
|
+
return f(() => t.model), (e, o) => (a(), i("div", {
|
|
1179
1181
|
class: _(["svc-creator-tab__content svc-translation-tab", e.model.isEmpty ? "svc-translation-tab--empty" : ""])
|
|
1180
1182
|
}, [
|
|
1181
|
-
e.model.isEmpty ? (
|
|
1183
|
+
e.model.isEmpty ? (a(), h(W, {
|
|
1182
1184
|
key: 0,
|
|
1183
1185
|
name: "translation",
|
|
1184
1186
|
placeholderTitleText: e.model.placeholderTitleText,
|
|
1185
1187
|
placeholderDescriptionText: e.model.placeholderDescriptionText
|
|
1186
1188
|
}, null, 8, ["placeholderTitleText", "placeholderDescriptionText"])) : p("", !0),
|
|
1187
|
-
e.model.isEmpty ? p("", !0) : (
|
|
1188
|
-
|
|
1189
|
-
|
|
1189
|
+
e.model.isEmpty ? p("", !0) : (a(), i("div", js, [
|
|
1190
|
+
l("div", Js, [
|
|
1191
|
+
l("div", Zs, [
|
|
1190
1192
|
v(s(Q), {
|
|
1191
1193
|
model: e.model.stringsHeaderSurvey
|
|
1192
1194
|
}, null, 8, ["model"])
|
|
1193
1195
|
]),
|
|
1194
|
-
|
|
1196
|
+
l("div", Xs, [
|
|
1195
1197
|
v(s(Q), {
|
|
1196
1198
|
model: e.model.stringsSurvey
|
|
1197
1199
|
}, null, 8, ["model"])
|
|
@@ -1207,7 +1209,7 @@ const Qs = /* @__PURE__ */ g({
|
|
|
1207
1209
|
return e;
|
|
1208
1210
|
}, et = {}, ot = { class: "sd-translation-line-skeleton" };
|
|
1209
1211
|
function st(u, t) {
|
|
1210
|
-
return
|
|
1212
|
+
return a(), i("div", ot);
|
|
1211
1213
|
}
|
|
1212
1214
|
const tt = /* @__PURE__ */ xs(et, [["render", st]]), nt = /* @__PURE__ */ g({
|
|
1213
1215
|
__name: "TranslateFromAction",
|
|
@@ -1215,10 +1217,10 @@ const tt = /* @__PURE__ */ xs(et, [["render", st]]), nt = /* @__PURE__ */ g({
|
|
|
1215
1217
|
item: {}
|
|
1216
1218
|
},
|
|
1217
1219
|
setup(u) {
|
|
1218
|
-
return (t, e) => (
|
|
1220
|
+
return (t, e) => (a(), i("div", {
|
|
1219
1221
|
class: _(t.item.data.containerCss)
|
|
1220
1222
|
}, [
|
|
1221
|
-
|
|
1223
|
+
l("span", {
|
|
1222
1224
|
class: _(t.item.data.additionalTitleCss)
|
|
1223
1225
|
}, $(t.item.data.additionalTitle), 3),
|
|
1224
1226
|
v(s(c), {
|
|
@@ -1227,10 +1229,10 @@ const tt = /* @__PURE__ */ xs(et, [["render", st]]), nt = /* @__PURE__ */ g({
|
|
|
1227
1229
|
}, null, 8, ["item"])
|
|
1228
1230
|
], 2));
|
|
1229
1231
|
}
|
|
1230
|
-
}),
|
|
1232
|
+
}), at = {
|
|
1231
1233
|
key: 1,
|
|
1232
1234
|
class: "svc-plugin-tab__content"
|
|
1233
|
-
},
|
|
1235
|
+
}, lt = {
|
|
1234
1236
|
key: 2,
|
|
1235
1237
|
class: "svc-plugin-tab__content-actions svc-test-tab__content-actions"
|
|
1236
1238
|
}, it = /* @__PURE__ */ g({
|
|
@@ -1240,29 +1242,29 @@ const tt = /* @__PURE__ */ xs(et, [["render", st]]), nt = /* @__PURE__ */ g({
|
|
|
1240
1242
|
},
|
|
1241
1243
|
setup(u) {
|
|
1242
1244
|
const t = u;
|
|
1243
|
-
return f(() => t.model), (e, o) => (
|
|
1245
|
+
return f(() => t.model), (e, o) => (a(), i("div", {
|
|
1244
1246
|
class: _(["svc-creator-tab__content svc-test-tab__content", {
|
|
1245
1247
|
"svc-creator-tab__content--with-toolbar": e.model.isPageToolbarVisible
|
|
1246
1248
|
}])
|
|
1247
1249
|
}, [
|
|
1248
|
-
e.model.survey.isEmpty ? (
|
|
1250
|
+
e.model.survey.isEmpty ? (a(), h(W, {
|
|
1249
1251
|
key: 0,
|
|
1250
1252
|
name: "theme",
|
|
1251
1253
|
placeholderTitleText: e.model.placeholderTitleText,
|
|
1252
1254
|
placeholderDescriptionText: e.model.placeholderDescriptionText
|
|
1253
1255
|
}, null, 8, ["placeholderTitleText", "placeholderDescriptionText"])) : p("", !0),
|
|
1254
|
-
e.model.survey.isEmpty ? p("", !0) : (
|
|
1256
|
+
e.model.survey.isEmpty ? p("", !0) : (a(), i("div", at, [
|
|
1255
1257
|
v(s(c), {
|
|
1256
1258
|
is: "survey-simulator",
|
|
1257
1259
|
model: e.model.simulator
|
|
1258
1260
|
}, null, 8, ["model"]),
|
|
1259
|
-
e.model.showResults ? (
|
|
1261
|
+
e.model.showResults ? (a(), h(s(c), {
|
|
1260
1262
|
key: 0,
|
|
1261
1263
|
is: "survey-results",
|
|
1262
1264
|
survey: e.model.survey
|
|
1263
1265
|
}, null, 8, ["survey"])) : p("", !0)
|
|
1264
1266
|
])),
|
|
1265
|
-
e.model.isPageToolbarVisible ? (
|
|
1267
|
+
e.model.isPageToolbarVisible ? (a(), i("div", lt, [
|
|
1266
1268
|
v(s(c), {
|
|
1267
1269
|
is: "sv-action-bar",
|
|
1268
1270
|
model: e.model.pages
|
|
@@ -1270,45 +1272,51 @@ const tt = /* @__PURE__ */ xs(et, [["render", st]]), nt = /* @__PURE__ */ g({
|
|
|
1270
1272
|
])) : p("", !0)
|
|
1271
1273
|
], 2));
|
|
1272
1274
|
}
|
|
1273
|
-
}), rt = ["disabled", "value"], dt = ["disabled", "id", "placeholder", "aria-required", "aria-label", "aria-invalid", "aria-describedby", "value"], ct = /* @__PURE__ */ g({
|
|
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({
|
|
1274
1276
|
__name: "Color",
|
|
1275
1277
|
props: {
|
|
1276
1278
|
question: {}
|
|
1277
1279
|
},
|
|
1278
1280
|
setup(u) {
|
|
1279
|
-
return H(u,
|
|
1281
|
+
return H(u, I()), (e, o) => (a(), i("div", {
|
|
1280
1282
|
class: _(e.question.cssClasses.root),
|
|
1281
1283
|
onKeydown: o[5] || (o[5] = //@ts-ignore
|
|
1282
1284
|
(...n) => e.question.onKeyDown && e.question.onKeyDown(...n))
|
|
1283
1285
|
}, [
|
|
1284
|
-
|
|
1286
|
+
l("label", {
|
|
1285
1287
|
class: _(e.question.getSwatchCss()),
|
|
1286
|
-
style:
|
|
1288
|
+
style: z(e.question.getSwatchStyle())
|
|
1287
1289
|
}, [
|
|
1288
1290
|
v(s(c), {
|
|
1289
1291
|
is: "sv-svg-icon",
|
|
1290
1292
|
iconName: e.question.cssClasses.swatchIcon,
|
|
1291
1293
|
size: "auto"
|
|
1292
1294
|
}, null, 8, ["iconName"]),
|
|
1293
|
-
|
|
1295
|
+
l("input", {
|
|
1294
1296
|
type: "color",
|
|
1295
1297
|
disabled: e.question.isInputReadOnly,
|
|
1296
1298
|
class: _(e.question.cssClasses.colorInput),
|
|
1297
1299
|
value: e.question.renderedColorValue,
|
|
1298
1300
|
tabindex: "-1",
|
|
1299
1301
|
onChange: o[0] || (o[0] = //@ts-ignore
|
|
1300
|
-
(...n) => e.question.onColorInputChange && e.question.onColorInputChange(...n))
|
|
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
|
|
1301
1308
|
}, null, 42, rt)
|
|
1302
1309
|
], 6),
|
|
1303
|
-
|
|
1310
|
+
l("input", {
|
|
1304
1311
|
autocomplete: "off",
|
|
1305
1312
|
disabled: e.question.isInputReadOnly,
|
|
1306
1313
|
id: e.question.inputId,
|
|
1307
1314
|
placeholder: e.question.renderedPlaceholder,
|
|
1308
|
-
"aria-required": e.question.
|
|
1309
|
-
"aria-
|
|
1310
|
-
"aria-
|
|
1311
|
-
"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,
|
|
1312
1320
|
onChange: o[1] || (o[1] = //@ts-ignore
|
|
1313
1321
|
(...n) => e.question.onChange && e.question.onChange(...n)),
|
|
1314
1322
|
onKeyup: o[2] || (o[2] = //@ts-ignore
|
|
@@ -1320,11 +1328,16 @@ const tt = /* @__PURE__ */ xs(et, [["render", st]]), nt = /* @__PURE__ */ g({
|
|
|
1320
1328
|
value: e.question.renderedValue,
|
|
1321
1329
|
class: _(e.question.cssClasses.control)
|
|
1322
1330
|
}, null, 42, dt),
|
|
1323
|
-
e.question.showDropdownAction ? (
|
|
1324
|
-
|
|
1325
|
-
|
|
1326
|
-
|
|
1327
|
-
},
|
|
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),
|
|
1328
1341
|
v(s(c), {
|
|
1329
1342
|
is: "sv-popup",
|
|
1330
1343
|
model: e.question.dropdownAction.popupModel
|
|
@@ -1342,10 +1355,10 @@ const tt = /* @__PURE__ */ xs(et, [["render", st]]), nt = /* @__PURE__ */ g({
|
|
|
1342
1355
|
const t = u;
|
|
1343
1356
|
f(() => t.item);
|
|
1344
1357
|
const e = () => ({ backgroundColor: t.item.value });
|
|
1345
|
-
return (o, n) => (
|
|
1346
|
-
|
|
1358
|
+
return (o, n) => (a(), i(w, null, [
|
|
1359
|
+
l("span", {
|
|
1347
1360
|
class: "spg-color-editor__color-swatch",
|
|
1348
|
-
style:
|
|
1361
|
+
style: z(e())
|
|
1349
1362
|
}, null, 4),
|
|
1350
1363
|
v(s(c), {
|
|
1351
1364
|
is: "survey-string",
|
|
@@ -1353,14 +1366,14 @@ const tt = /* @__PURE__ */ xs(et, [["render", st]]), nt = /* @__PURE__ */ g({
|
|
|
1353
1366
|
}, null, 8, ["locString"])
|
|
1354
1367
|
], 64));
|
|
1355
1368
|
}
|
|
1356
|
-
}), pt = ["disabled", "value", "placeholder"], vt = ["disabled", "id", "aria-required", "aria-label", "aria-invalid", "aria-describedby", "title", "accept"], mt = ["disabled"], _t = ["for", "aria-label"], gt = /* @__PURE__ */ g({
|
|
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({
|
|
1357
1370
|
__name: "File",
|
|
1358
1371
|
props: {
|
|
1359
1372
|
question: {}
|
|
1360
1373
|
},
|
|
1361
1374
|
setup(u) {
|
|
1362
|
-
const t =
|
|
1363
|
-
return H(u, t), (o, n) => (
|
|
1375
|
+
const t = I();
|
|
1376
|
+
return H(u, t), (o, n) => (a(), i("div", {
|
|
1364
1377
|
class: _(o.question.cssClasses.root),
|
|
1365
1378
|
onDragenter: n[5] || (n[5] = //@ts-ignore
|
|
1366
1379
|
(...r) => o.question.onDragEnter && o.question.onDragEnter(...r)),
|
|
@@ -1375,7 +1388,7 @@ const tt = /* @__PURE__ */ xs(et, [["render", st]]), nt = /* @__PURE__ */ g({
|
|
|
1375
1388
|
ref_key: "root",
|
|
1376
1389
|
ref: t
|
|
1377
1390
|
}, [
|
|
1378
|
-
|
|
1391
|
+
l("input", {
|
|
1379
1392
|
type: "text",
|
|
1380
1393
|
disabled: o.question.isInputReadOnly,
|
|
1381
1394
|
class: _(o.question.cssClasses.control),
|
|
@@ -1386,7 +1399,7 @@ const tt = /* @__PURE__ */ xs(et, [["render", st]]), nt = /* @__PURE__ */ g({
|
|
|
1386
1399
|
(...r) => o.question.onInputBlur && o.question.onInputBlur(...r)),
|
|
1387
1400
|
placeholder: o.question.renderedPlaceholder
|
|
1388
1401
|
}, null, 42, pt),
|
|
1389
|
-
|
|
1402
|
+
l("input", {
|
|
1390
1403
|
type: "file",
|
|
1391
1404
|
disabled: o.question.isInputReadOnly,
|
|
1392
1405
|
class: _(o.question.cssClasses.fileInput),
|
|
@@ -1402,11 +1415,11 @@ const tt = /* @__PURE__ */ xs(et, [["render", st]]), nt = /* @__PURE__ */ g({
|
|
|
1402
1415
|
onChange: n[2] || (n[2] = //@ts-ignore
|
|
1403
1416
|
(...r) => o.question.onFileInputChange && o.question.onFileInputChange(...r))
|
|
1404
1417
|
}, null, 42, vt),
|
|
1405
|
-
|
|
1418
|
+
l("div", {
|
|
1406
1419
|
class: _(o.question.cssClasses.buttonsContainer)
|
|
1407
1420
|
}, [
|
|
1408
|
-
|
|
1409
|
-
|
|
1421
|
+
C((a(), i("button", {
|
|
1422
|
+
title: o.question.clearButtonCaption,
|
|
1410
1423
|
class: _(o.question.cssClasses.clearButton),
|
|
1411
1424
|
disabled: o.question.getIsClearButtonDisabled(),
|
|
1412
1425
|
onClick: n[3] || (n[3] = //@ts-ignore
|
|
@@ -1415,14 +1428,12 @@ const tt = /* @__PURE__ */ xs(et, [["render", st]]), nt = /* @__PURE__ */ g({
|
|
|
1415
1428
|
v(s(c), {
|
|
1416
1429
|
is: "sv-svg-icon",
|
|
1417
1430
|
iconName: o.question.cssClasses.clearButtonIcon,
|
|
1418
|
-
size: "auto"
|
|
1419
|
-
|
|
1420
|
-
}, null, 8, ["iconName", "title"])
|
|
1431
|
+
size: "auto"
|
|
1432
|
+
}, null, 8, ["iconName"])
|
|
1421
1433
|
], 10, mt)), [
|
|
1422
1434
|
[s(D)]
|
|
1423
1435
|
]),
|
|
1424
|
-
|
|
1425
|
-
role: "button",
|
|
1436
|
+
C((a(), i("label", {
|
|
1426
1437
|
class: _(o.question.getChooseButtonCss()),
|
|
1427
1438
|
for: o.question.inputId,
|
|
1428
1439
|
"aria-label": o.question.chooseButtonCaption,
|
|
@@ -1441,26 +1452,29 @@ const tt = /* @__PURE__ */ xs(et, [["render", st]]), nt = /* @__PURE__ */ g({
|
|
|
1441
1452
|
], 2)
|
|
1442
1453
|
], 34));
|
|
1443
1454
|
}
|
|
1444
|
-
}), bt = ["disabled", "id", "placeholder", "aria-required", "aria-label", "aria-
|
|
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({
|
|
1445
1456
|
__name: "SpinEditor",
|
|
1446
1457
|
props: {
|
|
1447
1458
|
question: {}
|
|
1448
1459
|
},
|
|
1449
1460
|
setup(u) {
|
|
1450
|
-
return H(u,
|
|
1461
|
+
return H(u, I()), (e, o) => (a(), i("div", {
|
|
1451
1462
|
class: _(e.question.cssClasses.root),
|
|
1452
1463
|
onKeydown: o[18] || (o[18] = //@ts-ignore
|
|
1453
1464
|
(...n) => e.question.onKeyDown && e.question.onKeyDown(...n))
|
|
1454
1465
|
}, [
|
|
1455
|
-
|
|
1466
|
+
l("input", {
|
|
1467
|
+
role: "spinbutton",
|
|
1456
1468
|
autocomplete: "off",
|
|
1457
1469
|
disabled: e.question.isInputReadOnly,
|
|
1458
1470
|
id: e.question.inputId,
|
|
1459
1471
|
placeholder: e.question.renderedPlaceholder,
|
|
1460
|
-
"aria-required": e.question.
|
|
1461
|
-
"aria-label": e.question.
|
|
1462
|
-
"aria-
|
|
1463
|
-
"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,
|
|
1464
1478
|
onChange: o[0] || (o[0] = //@ts-ignore
|
|
1465
1479
|
(...n) => e.question.onChange && e.question.onChange(...n)),
|
|
1466
1480
|
onKeydown: o[1] || (o[1] = //@ts-ignore
|
|
@@ -1476,10 +1490,11 @@ const tt = /* @__PURE__ */ xs(et, [["render", st]]), nt = /* @__PURE__ */ g({
|
|
|
1476
1490
|
value: e.question.renderedValue,
|
|
1477
1491
|
class: _(e.question.cssClasses.control)
|
|
1478
1492
|
}, null, 42, bt),
|
|
1479
|
-
|
|
1493
|
+
l("span", {
|
|
1480
1494
|
class: _(e.question.cssClasses.buttonsContainer)
|
|
1481
1495
|
}, [
|
|
1482
|
-
|
|
1496
|
+
l("button", {
|
|
1497
|
+
"aria-hidden": "true",
|
|
1483
1498
|
disabled: e.question.isInputReadOnly,
|
|
1484
1499
|
class: _(e.question.cssClasses.arrowButton),
|
|
1485
1500
|
onClick: o[6] || (o[6] = //@ts-ignore
|
|
@@ -1502,7 +1517,8 @@ const tt = /* @__PURE__ */ xs(et, [["render", st]]), nt = /* @__PURE__ */ g({
|
|
|
1502
1517
|
size: "auto"
|
|
1503
1518
|
}, null, 8, ["iconName"])
|
|
1504
1519
|
], 42, yt),
|
|
1505
|
-
|
|
1520
|
+
l("button", {
|
|
1521
|
+
"aria-hidden": "true",
|
|
1506
1522
|
disabled: e.question.isInputReadOnly,
|
|
1507
1523
|
class: _(e.question.cssClasses.arrowButton),
|
|
1508
1524
|
onClick: o[12] || (o[12] = //@ts-ignore
|
|
@@ -1528,21 +1544,21 @@ const tt = /* @__PURE__ */ xs(et, [["render", st]]), nt = /* @__PURE__ */ g({
|
|
|
1528
1544
|
], 2)
|
|
1529
1545
|
], 34));
|
|
1530
1546
|
}
|
|
1531
|
-
}),
|
|
1547
|
+
}), Ct = ["disabled", "title"], ne = /* @__PURE__ */ g({
|
|
1532
1548
|
__name: "TextWithReset",
|
|
1533
1549
|
props: {
|
|
1534
1550
|
question: {}
|
|
1535
1551
|
},
|
|
1536
1552
|
setup(u) {
|
|
1537
1553
|
const t = u, e = () => "survey-" + t.question.wrappedQuestionTemplate;
|
|
1538
|
-
return H(t,
|
|
1554
|
+
return H(t, I()), (o, n) => (a(), i("div", {
|
|
1539
1555
|
class: _(o.question.getRootClass())
|
|
1540
1556
|
}, [
|
|
1541
1557
|
v(s(c), {
|
|
1542
1558
|
is: e(),
|
|
1543
1559
|
question: o.question
|
|
1544
1560
|
}, null, 8, ["is", "question"]),
|
|
1545
|
-
|
|
1561
|
+
l("button", {
|
|
1546
1562
|
class: _(o.question.cssClasses.resetButton),
|
|
1547
1563
|
disabled: o.question.resetValueAdorner.isDisabled,
|
|
1548
1564
|
onClick: n[0] || (n[0] = //@ts-ignore
|
|
@@ -1554,17 +1570,17 @@ const tt = /* @__PURE__ */ xs(et, [["render", st]]), nt = /* @__PURE__ */ g({
|
|
|
1554
1570
|
iconName: o.question.cssClasses.resetButtonIcon,
|
|
1555
1571
|
size: "auto"
|
|
1556
1572
|
}, null, 8, ["iconName"])
|
|
1557
|
-
], 10,
|
|
1573
|
+
], 10, Ct)
|
|
1558
1574
|
], 2));
|
|
1559
1575
|
}
|
|
1560
|
-
}), kt = ["aria-required", "aria-label", "aria-invalid", "aria-errormessage"], $t = /* @__PURE__ */
|
|
1561
|
-
/* @__PURE__ */
|
|
1562
|
-
], -1), wt = /* @__PURE__ */
|
|
1563
|
-
/* @__PURE__ */
|
|
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" })
|
|
1564
1580
|
], -1), ft = [
|
|
1565
1581
|
$t,
|
|
1566
1582
|
wt
|
|
1567
|
-
], Tt = { class: "spg-boolean-switch__caption" }, Dt =
|
|
1583
|
+
], Tt = { class: "spg-boolean-switch__caption" }, Dt = ["id"];
|
|
1568
1584
|
ce.Instance.registerRenderer(
|
|
1569
1585
|
"boolean",
|
|
1570
1586
|
"switch",
|
|
@@ -1577,33 +1593,38 @@ const Nt = /* @__PURE__ */ g({
|
|
|
1577
1593
|
question: {}
|
|
1578
1594
|
},
|
|
1579
1595
|
setup(u) {
|
|
1580
|
-
const t = u, e =
|
|
1581
|
-
return H(t, e), (o, n) => (
|
|
1596
|
+
const t = u, e = I(null);
|
|
1597
|
+
return H(t, e), (o, n) => (a(), i("div", {
|
|
1582
1598
|
class: "spg-boolean-switch",
|
|
1583
1599
|
role: "checkbox",
|
|
1584
|
-
"aria-
|
|
1585
|
-
"aria-
|
|
1586
|
-
"aria-
|
|
1587
|
-
"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,
|
|
1588
1606
|
onClick: n[0] || (n[0] = (r) => o.question.value = !o.question.value)
|
|
1589
1607
|
}, [
|
|
1590
|
-
|
|
1608
|
+
C((a(), i("div", {
|
|
1591
1609
|
class: _(["spg-boolean-switch__button", o.question.value ? "spg-boolean-switch__button--checked" : ""]),
|
|
1592
1610
|
tabindex: "0"
|
|
1593
1611
|
}, ft, 2)), [
|
|
1594
1612
|
[s(D), { disableTabStop: !0 }]
|
|
1595
1613
|
]),
|
|
1596
|
-
|
|
1597
|
-
|
|
1614
|
+
l("div", Tt, [
|
|
1615
|
+
l("div", {
|
|
1616
|
+
class: "spg-boolean-switch__title",
|
|
1617
|
+
id: o.question.labelRenderedAriaID
|
|
1618
|
+
}, [
|
|
1598
1619
|
v(s(c), {
|
|
1599
1620
|
is: "survey-string",
|
|
1600
1621
|
locString: o.question.locTitle
|
|
1601
1622
|
}, null, 8, ["locString"])
|
|
1602
|
-
])
|
|
1623
|
+
], 8, Dt)
|
|
1603
1624
|
])
|
|
1604
1625
|
], 8, kt));
|
|
1605
1626
|
}
|
|
1606
|
-
}), Mt = { class: "svc-string-editor__content" }, St = /* @__PURE__ */
|
|
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 = {
|
|
1607
1628
|
key: 0,
|
|
1608
1629
|
class: "svc-string-editor__error"
|
|
1609
1630
|
}, Vt = /* @__PURE__ */ g({
|
|
@@ -1612,7 +1633,7 @@ const Nt = /* @__PURE__ */ g({
|
|
|
1612
1633
|
locString: {}
|
|
1613
1634
|
},
|
|
1614
1635
|
setup(u) {
|
|
1615
|
-
const t = u, e = k(() => t.locString.locStr), o = k(() => t.locString.creator), n =
|
|
1636
|
+
const t = u, e = k(() => t.locString.locStr), o = k(() => t.locString.creator), n = I(), r = I(), d = A(
|
|
1616
1637
|
() => {
|
|
1617
1638
|
const q = new fe(
|
|
1618
1639
|
e.value,
|
|
@@ -1646,14 +1667,14 @@ const Nt = /* @__PURE__ */ g({
|
|
|
1646
1667
|
var q;
|
|
1647
1668
|
return (q = d.value) == null ? void 0 : q.showCharacterCounter;
|
|
1648
1669
|
}
|
|
1649
|
-
),
|
|
1670
|
+
), L = k(
|
|
1650
1671
|
() => {
|
|
1651
1672
|
var q;
|
|
1652
1673
|
return (q = d.value) == null ? void 0 : q.getCharacterCounterClass;
|
|
1653
1674
|
}
|
|
1654
1675
|
), j = (q) => {
|
|
1655
|
-
var T,
|
|
1656
|
-
return n.value && (n.value.spellcheck = !1), e.value.__isEditing = !1, (T = d.value) == null || T.onBlur(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;
|
|
1657
1678
|
}, U = (q) => {
|
|
1658
1679
|
var T;
|
|
1659
1680
|
(T = d.value) == null || T.onFocus(q);
|
|
@@ -1661,8 +1682,8 @@ const Nt = /* @__PURE__ */ g({
|
|
|
1661
1682
|
var T;
|
|
1662
1683
|
(T = d.value) == null || T.onPaste(q);
|
|
1663
1684
|
}, se = (q) => {
|
|
1664
|
-
var T,
|
|
1665
|
-
(T = n.value) == null || T.focus(), e.value.__isEditing = !0, (
|
|
1685
|
+
var T, B;
|
|
1686
|
+
(T = n.value) == null || T.focus(), e.value.__isEditing = !0, (B = d.value) == null || B.onClick(q);
|
|
1666
1687
|
}, J = () => {
|
|
1667
1688
|
r.value = e.value.renderedHtml;
|
|
1668
1689
|
}, me = G(
|
|
@@ -1677,16 +1698,16 @@ const Nt = /* @__PURE__ */ g({
|
|
|
1677
1698
|
return E(() => {
|
|
1678
1699
|
var q;
|
|
1679
1700
|
e.value.__isEditing && ((q = n.value) == null || q.focus());
|
|
1680
|
-
}),
|
|
1701
|
+
}), F(() => {
|
|
1681
1702
|
me(), e.value.onStringChanged.remove(J);
|
|
1682
|
-
}), (q, T) => (
|
|
1703
|
+
}), (q, T) => (a(), i("span", {
|
|
1683
1704
|
class: _(b.value)
|
|
1684
1705
|
}, [
|
|
1685
|
-
|
|
1706
|
+
l("span", Mt, [
|
|
1686
1707
|
St,
|
|
1687
|
-
|
|
1688
|
-
|
|
1689
|
-
e.value.hasHtml ? p("", !0) : (
|
|
1708
|
+
Bt,
|
|
1709
|
+
l("span", It, [
|
|
1710
|
+
e.value.hasHtml ? p("", !0) : (a(), i("span", {
|
|
1690
1711
|
key: 0,
|
|
1691
1712
|
role: "textbox",
|
|
1692
1713
|
class: "sv-string-editor",
|
|
@@ -1695,43 +1716,44 @@ const Nt = /* @__PURE__ */ g({
|
|
|
1695
1716
|
onPaste: ve,
|
|
1696
1717
|
onBlur: j,
|
|
1697
1718
|
onInput: T[0] || (T[0] = //@ts-ignore
|
|
1698
|
-
(...
|
|
1719
|
+
(...B) => {
|
|
1699
1720
|
var M, S;
|
|
1700
|
-
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));
|
|
1701
1722
|
}),
|
|
1702
1723
|
onKeydown: T[1] || (T[1] = //@ts-ignore
|
|
1703
|
-
(...
|
|
1724
|
+
(...B) => {
|
|
1704
1725
|
var M, S;
|
|
1705
|
-
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));
|
|
1706
1727
|
}),
|
|
1707
1728
|
onKeyup: T[2] || (T[2] = //@ts-ignore
|
|
1708
|
-
(...
|
|
1729
|
+
(...B) => {
|
|
1709
1730
|
var M, S;
|
|
1710
|
-
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));
|
|
1711
1732
|
}),
|
|
1712
1733
|
onCompositionstart: T[3] || (T[3] = //@ts-ignore
|
|
1713
|
-
(...
|
|
1734
|
+
(...B) => {
|
|
1714
1735
|
var M, S;
|
|
1715
|
-
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));
|
|
1716
1737
|
}),
|
|
1717
1738
|
onCompositionend: T[4] || (T[4] = //@ts-ignore
|
|
1718
|
-
(...
|
|
1739
|
+
(...B) => {
|
|
1719
1740
|
var M, S;
|
|
1720
|
-
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));
|
|
1721
1742
|
}),
|
|
1722
1743
|
onMouseup: T[5] || (T[5] = //@ts-ignore
|
|
1723
|
-
(...
|
|
1744
|
+
(...B) => {
|
|
1724
1745
|
var M, S;
|
|
1725
|
-
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));
|
|
1726
1747
|
}),
|
|
1727
1748
|
onClick: se,
|
|
1728
1749
|
textContent: r.value,
|
|
1729
1750
|
"aria-placeholder": y.value,
|
|
1751
|
+
"aria-label": y.value || "content editable",
|
|
1730
1752
|
contenteditable: N.value,
|
|
1731
1753
|
ref_key: "root",
|
|
1732
1754
|
ref: n
|
|
1733
1755
|
}, null, 40, Et)),
|
|
1734
|
-
e.value.hasHtml ? (
|
|
1756
|
+
e.value.hasHtml ? (a(), i("span", {
|
|
1735
1757
|
key: 1,
|
|
1736
1758
|
role: "textbox",
|
|
1737
1759
|
class: "sv-string-editor sv-string-editor--html",
|
|
@@ -1739,52 +1761,53 @@ const Nt = /* @__PURE__ */ g({
|
|
|
1739
1761
|
onFocus: U,
|
|
1740
1762
|
onBlur: j,
|
|
1741
1763
|
onKeydown: T[6] || (T[6] = //@ts-ignore
|
|
1742
|
-
(...
|
|
1764
|
+
(...B) => {
|
|
1743
1765
|
var M, S;
|
|
1744
|
-
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));
|
|
1745
1767
|
}),
|
|
1746
1768
|
onKeyup: T[7] || (T[7] = //@ts-ignore
|
|
1747
|
-
(...
|
|
1769
|
+
(...B) => {
|
|
1748
1770
|
var M, S;
|
|
1749
|
-
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));
|
|
1750
1772
|
}),
|
|
1751
1773
|
onCompositionstart: T[8] || (T[8] = //@ts-ignore
|
|
1752
|
-
(...
|
|
1774
|
+
(...B) => {
|
|
1753
1775
|
var M, S;
|
|
1754
|
-
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));
|
|
1755
1777
|
}),
|
|
1756
1778
|
onCompositionend: T[9] || (T[9] = //@ts-ignore
|
|
1757
|
-
(...
|
|
1779
|
+
(...B) => {
|
|
1758
1780
|
var M, S;
|
|
1759
|
-
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));
|
|
1760
1782
|
}),
|
|
1761
1783
|
onMouseup: T[10] || (T[10] = //@ts-ignore
|
|
1762
|
-
(...
|
|
1784
|
+
(...B) => {
|
|
1763
1785
|
var M, S;
|
|
1764
|
-
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));
|
|
1765
1787
|
}),
|
|
1766
1788
|
onClick: se,
|
|
1767
1789
|
"aria-placeholder": y.value,
|
|
1790
|
+
"aria-label": y.value || "content editable",
|
|
1768
1791
|
contenteditable: N.value,
|
|
1769
1792
|
innerHTML: r.value,
|
|
1770
1793
|
ref_key: "root",
|
|
1771
1794
|
ref: n
|
|
1772
1795
|
}, null, 40, Pt)) : p("", !0),
|
|
1773
|
-
P.value ? (
|
|
1796
|
+
P.value ? (a(), h(s(c), {
|
|
1774
1797
|
key: 2,
|
|
1775
1798
|
is: "sv-character-counter",
|
|
1776
1799
|
counter: O.value,
|
|
1777
|
-
remainingCharacterCounter:
|
|
1800
|
+
remainingCharacterCounter: L.value
|
|
1778
1801
|
}, null, 8, ["counter", "remainingCharacterCounter"])) : p("", !0)
|
|
1779
1802
|
])
|
|
1780
1803
|
]),
|
|
1781
|
-
m.value ? (
|
|
1804
|
+
m.value ? (a(), i("span", Rt, $(m.value), 1)) : p("", !0)
|
|
1782
1805
|
], 2));
|
|
1783
1806
|
}
|
|
1784
1807
|
}), At = {
|
|
1785
1808
|
key: 0,
|
|
1786
1809
|
class: "svc-toolbox__search-container"
|
|
1787
|
-
},
|
|
1810
|
+
}, Lt = /* @__PURE__ */ l("div", { class: "svc-toolbox__category-separator svc-toolbox__category-separator--search" }, null, -1), zt = {
|
|
1788
1811
|
key: 1,
|
|
1789
1812
|
class: "svc-toolbox__placeholder"
|
|
1790
1813
|
}, Ft = {
|
|
@@ -1796,7 +1819,7 @@ const Nt = /* @__PURE__ */ g({
|
|
|
1796
1819
|
model: {}
|
|
1797
1820
|
},
|
|
1798
1821
|
setup(u) {
|
|
1799
|
-
const t = u, e = k(() => t.model.toolbox), o =
|
|
1822
|
+
const t = u, e = k(() => t.model.toolbox), o = I();
|
|
1800
1823
|
f(() => e.value);
|
|
1801
1824
|
let n;
|
|
1802
1825
|
E(() => {
|
|
@@ -1804,21 +1827,21 @@ const Nt = /* @__PURE__ */ g({
|
|
|
1804
1827
|
e.value.containerElement,
|
|
1805
1828
|
e.value
|
|
1806
1829
|
);
|
|
1807
|
-
}),
|
|
1830
|
+
}), F(() => {
|
|
1808
1831
|
n == null || n.dispose(), e.value.setRootElement(void 0);
|
|
1809
1832
|
});
|
|
1810
1833
|
const r = k(() => e.value.renderedActions);
|
|
1811
|
-
return (d, m) => (
|
|
1834
|
+
return (d, m) => (a(), i("div", {
|
|
1812
1835
|
class: _(e.value.classNames),
|
|
1813
1836
|
ref_key: "root",
|
|
1814
1837
|
ref: o
|
|
1815
1838
|
}, [
|
|
1816
|
-
|
|
1839
|
+
l("div", {
|
|
1817
1840
|
onFocusout: m[0] || (m[0] = (b) => e.value.focusOut(b)),
|
|
1818
1841
|
class: "svc-toolbox__panel"
|
|
1819
1842
|
}, [
|
|
1820
|
-
e.value.showSearch ? (
|
|
1821
|
-
e.value.isCompactRendered ? (
|
|
1843
|
+
e.value.showSearch ? (a(), i("div", At, [
|
|
1844
|
+
e.value.isCompactRendered ? (a(), h(s(c), {
|
|
1822
1845
|
is: "svc-toolbox-tool",
|
|
1823
1846
|
creator: d.model,
|
|
1824
1847
|
key: "searchitem",
|
|
@@ -1830,19 +1853,19 @@ const Nt = /* @__PURE__ */ g({
|
|
|
1830
1853
|
is: "svc-search",
|
|
1831
1854
|
model: e.value.searchManager
|
|
1832
1855
|
}, null, 8, ["model"]),
|
|
1833
|
-
|
|
1856
|
+
Lt
|
|
1834
1857
|
])) : p("", !0),
|
|
1835
|
-
e.value.showPlaceholder ? (
|
|
1858
|
+
e.value.showPlaceholder ? (a(), i("div", zt, $(e.value.toolboxNoResultsFound), 1)) : p("", !0),
|
|
1836
1859
|
v(s(c), { is: "sv-scroll" }, {
|
|
1837
1860
|
default: Z(() => [
|
|
1838
|
-
e.value.showInSingleCategory ? p("", !0) : (
|
|
1861
|
+
e.value.showInSingleCategory ? p("", !0) : (a(!0), i(w, { key: 0 }, R(e.value.categories, (b, y) => (a(), h(s(c), {
|
|
1839
1862
|
is: "svc-toolbox-category",
|
|
1840
1863
|
key: y,
|
|
1841
1864
|
category: b,
|
|
1842
1865
|
toolbox: e.value
|
|
1843
1866
|
}, null, 8, ["category", "toolbox"]))), 128)),
|
|
1844
|
-
e.value.showInSingleCategory ? (
|
|
1845
|
-
(
|
|
1867
|
+
e.value.showInSingleCategory ? (a(), i("div", Ft, [
|
|
1868
|
+
(a(!0), i(w, null, R(r.value, (b) => (a(), h(s(c), {
|
|
1846
1869
|
key: b.renderedId,
|
|
1847
1870
|
is: "svc-toolbox-tool",
|
|
1848
1871
|
creator: d.model,
|
|
@@ -1879,24 +1902,24 @@ const Nt = /* @__PURE__ */ g({
|
|
|
1879
1902
|
(n) => {
|
|
1880
1903
|
n.dispose();
|
|
1881
1904
|
}
|
|
1882
|
-
), o =
|
|
1905
|
+
), o = I();
|
|
1883
1906
|
return E(() => {
|
|
1884
1907
|
const n = t.item;
|
|
1885
1908
|
n.updateModeCallback = (r, d) => {
|
|
1886
1909
|
n.mode = r, re(() => d(r, o.value));
|
|
1887
1910
|
}, n.afterRender();
|
|
1888
|
-
}),
|
|
1911
|
+
}), F(() => {
|
|
1889
1912
|
const n = t.item;
|
|
1890
1913
|
n.updateModeCallback = void 0;
|
|
1891
1914
|
}), f(() => t.item), (n, r) => {
|
|
1892
1915
|
var d;
|
|
1893
|
-
return
|
|
1916
|
+
return a(), i("div", {
|
|
1894
1917
|
class: _(n.item.css),
|
|
1895
1918
|
ref_key: "root",
|
|
1896
1919
|
ref: o
|
|
1897
1920
|
}, [
|
|
1898
|
-
n.item.needSeparator && !n.creator.toolbox.showCategoryTitles ? (
|
|
1899
|
-
|
|
1921
|
+
n.item.needSeparator && !n.creator.toolbox.showCategoryTitles ? (a(), i("div", Ut)) : p("", !0),
|
|
1922
|
+
l("div", {
|
|
1900
1923
|
class: "svc-toolbox__tool-content sv-action__content",
|
|
1901
1924
|
onPointerdown: r[0] || (r[0] = //@ts-ignore
|
|
1902
1925
|
(...m) => {
|
|
@@ -1927,16 +1950,16 @@ const Nt = /* @__PURE__ */ g({
|
|
|
1927
1950
|
viewModel: {}
|
|
1928
1951
|
},
|
|
1929
1952
|
setup(u) {
|
|
1930
|
-
return (t, e) => (
|
|
1931
|
-
|
|
1953
|
+
return (t, e) => (a(), i(w, null, [
|
|
1954
|
+
C((a(), i("div", {
|
|
1932
1955
|
class: _(["svc-toolbox__item", t.item.renderedCss]),
|
|
1933
1956
|
role: "button",
|
|
1934
1957
|
"aria-label": t.item.tooltip,
|
|
1935
1958
|
title: t.item.tooltip,
|
|
1936
1959
|
onClick: e[0] || (e[0] = (o) => t.viewModel.click(o))
|
|
1937
1960
|
}, [
|
|
1938
|
-
|
|
1939
|
-
t.item.iconName ? (
|
|
1961
|
+
l("span", Qt, [
|
|
1962
|
+
t.item.iconName ? (a(), h(s(c), {
|
|
1940
1963
|
key: 0,
|
|
1941
1964
|
is: "sv-svg-icon",
|
|
1942
1965
|
iconName: t.item.iconName,
|
|
@@ -1944,11 +1967,11 @@ const Nt = /* @__PURE__ */ g({
|
|
|
1944
1967
|
class: "svc-toolbox__item-icon"
|
|
1945
1968
|
}, null, 8, ["iconName"])) : p("", !0)
|
|
1946
1969
|
]),
|
|
1947
|
-
t.isCompact ? p("", !0) : (
|
|
1970
|
+
t.isCompact ? p("", !0) : (a(), i("span", Gt, $(t.item.title), 1))
|
|
1948
1971
|
], 10, Ot)), [
|
|
1949
1972
|
[s(D)]
|
|
1950
1973
|
]),
|
|
1951
|
-
t.isCompact ? (
|
|
1974
|
+
t.isCompact ? (a(), i("span", {
|
|
1952
1975
|
key: 0,
|
|
1953
1976
|
class: "svc-toolbox__item-banner",
|
|
1954
1977
|
onClick: e[1] || (e[1] = (o) => t.viewModel.click(o))
|
|
@@ -1959,7 +1982,7 @@ const Nt = /* @__PURE__ */ g({
|
|
|
1959
1982
|
size: 24,
|
|
1960
1983
|
class: "svc-toolbox__item-icon"
|
|
1961
1984
|
}, null, 8, ["iconName"]),
|
|
1962
|
-
|
|
1985
|
+
l("span", null, $(t.item.title), 1)
|
|
1963
1986
|
])) : p("", !0)
|
|
1964
1987
|
], 64));
|
|
1965
1988
|
}
|
|
@@ -1977,7 +2000,7 @@ const Nt = /* @__PURE__ */ g({
|
|
|
1977
2000
|
}, o = (n) => {
|
|
1978
2001
|
t.viewModel.onMouseLeave(t.item, n);
|
|
1979
2002
|
};
|
|
1980
|
-
return (n, r) => (
|
|
2003
|
+
return (n, r) => (a(), i(w, null, [
|
|
1981
2004
|
v(s(c), {
|
|
1982
2005
|
is: "svc-toolbox-item",
|
|
1983
2006
|
viewModel: n.viewModel,
|
|
@@ -1985,7 +2008,7 @@ const Nt = /* @__PURE__ */ g({
|
|
|
1985
2008
|
creator: n.creator,
|
|
1986
2009
|
isCompact: n.isCompact
|
|
1987
2010
|
}, null, 8, ["viewModel", "item", "creator", "isCompact"]),
|
|
1988
|
-
|
|
2011
|
+
l("div", {
|
|
1989
2012
|
class: "svc-toolbox__item-submenu-button",
|
|
1990
2013
|
onMouseover: e,
|
|
1991
2014
|
onMouseleave: o
|
|
@@ -2005,7 +2028,7 @@ const Nt = /* @__PURE__ */ g({
|
|
|
2005
2028
|
}), Jt = { className: "svc-toolbox__category-header-wrapper" }, Zt = { class: "svc-toolbox__category-title" }, Xt = {
|
|
2006
2029
|
key: 0,
|
|
2007
2030
|
class: "svc-toolbox__category-header__controls"
|
|
2008
|
-
}, Yt =
|
|
2031
|
+
}, Yt = /* @__PURE__ */ g({
|
|
2009
2032
|
__name: "ToolboxCategory",
|
|
2010
2033
|
props: {
|
|
2011
2034
|
category: {},
|
|
@@ -2013,45 +2036,33 @@ const Nt = /* @__PURE__ */ g({
|
|
|
2013
2036
|
},
|
|
2014
2037
|
setup(u) {
|
|
2015
2038
|
const t = u;
|
|
2016
|
-
return f(() => t.category), (e, o) => (
|
|
2039
|
+
return f(() => t.category), (e, o) => (a(), i("div", {
|
|
2017
2040
|
class: _(["svc-toolbox__category", {
|
|
2018
2041
|
"svc-toolbox__category--collapsed": e.category.collapsed,
|
|
2019
2042
|
"svc-toolbox__category--empty": e.category.empty
|
|
2020
2043
|
}])
|
|
2021
2044
|
}, [
|
|
2022
|
-
|
|
2023
|
-
|
|
2045
|
+
l("div", Jt, [
|
|
2046
|
+
C((a(), i("div", {
|
|
2024
2047
|
class: _(["svc-toolbox__category-header", {
|
|
2025
2048
|
"svc-toolbox__category-header--collapsed": e.toolbox.canCollapseCategories
|
|
2026
2049
|
}]),
|
|
2027
2050
|
onClick: o[0] || (o[0] = (n) => e.category.toggleState())
|
|
2028
2051
|
}, [
|
|
2029
|
-
|
|
2030
|
-
e.toolbox.canCollapseCategories ? (
|
|
2031
|
-
|
|
2032
|
-
h(v(s(c), {
|
|
2033
|
-
is: "sv-svg-icon",
|
|
2034
|
-
iconName: "icon-arrow-down",
|
|
2035
|
-
class: "svc-toolbox__category-header__button svc-string-editor__button--expand",
|
|
2036
|
-
size: "auto"
|
|
2037
|
-
}, null, 512), [
|
|
2038
|
-
[L, e.category.collapsed]
|
|
2039
|
-
])
|
|
2040
|
-
]),
|
|
2041
|
-
h(v(s(c), {
|
|
2052
|
+
l("span", Zt, $(e.category.title), 1),
|
|
2053
|
+
e.toolbox.canCollapseCategories ? (a(), i("div", Xt, [
|
|
2054
|
+
v(s(c), {
|
|
2042
2055
|
is: "sv-svg-icon",
|
|
2043
|
-
iconName:
|
|
2044
|
-
class:
|
|
2056
|
+
iconName: e.category.iconName,
|
|
2057
|
+
class: _(e.category.iconClassName),
|
|
2045
2058
|
size: "auto"
|
|
2046
|
-
}, null,
|
|
2047
|
-
[L, !e.category.collapsed]
|
|
2048
|
-
])
|
|
2059
|
+
}, null, 8, ["iconName", "class"])
|
|
2049
2060
|
])) : p("", !0)
|
|
2050
2061
|
], 2)), [
|
|
2051
2062
|
[s(D)]
|
|
2052
2063
|
])
|
|
2053
2064
|
]),
|
|
2054
|
-
(
|
|
2065
|
+
(a(!0), i(w, null, R(e.category.items, (n) => (a(), h(s(c), {
|
|
2055
2066
|
is: "svc-toolbox-tool",
|
|
2056
2067
|
item: n,
|
|
2057
2068
|
key: n.renderedId,
|
|
@@ -2061,7 +2072,7 @@ const Nt = /* @__PURE__ */ g({
|
|
|
2061
2072
|
}, null, 8, ["item", "creator", "parentModel"]))), 128))
|
|
2062
2073
|
], 2));
|
|
2063
2074
|
}
|
|
2064
|
-
}),
|
|
2075
|
+
}), xt = /* @__PURE__ */ g({
|
|
2065
2076
|
__name: "ToolboxList",
|
|
2066
2077
|
props: {
|
|
2067
2078
|
model: {},
|
|
@@ -2069,10 +2080,10 @@ const Nt = /* @__PURE__ */ g({
|
|
|
2069
2080
|
},
|
|
2070
2081
|
setup(u) {
|
|
2071
2082
|
const t = u;
|
|
2072
|
-
return _e(() => t.model.renderedActions), f(() => t.model), (e, o) => (
|
|
2083
|
+
return _e(() => t.model.renderedActions), f(() => t.model), (e, o) => (a(), i("div", {
|
|
2073
2084
|
class: _(e.model.cssClasses.root)
|
|
2074
2085
|
}, [
|
|
2075
|
-
(
|
|
2086
|
+
(a(!0), i(w, null, R(e.model.renderedActions, (n, r) => (a(), h(s(c), {
|
|
2076
2087
|
key: r,
|
|
2077
2088
|
is: "svc-toolbox-tool",
|
|
2078
2089
|
creator: e.creator,
|
|
@@ -2082,64 +2093,64 @@ const Nt = /* @__PURE__ */ g({
|
|
|
2082
2093
|
}, null, 8, ["creator", "item", "parentModel"]))), 128))
|
|
2083
2094
|
], 2));
|
|
2084
2095
|
}
|
|
2085
|
-
}),
|
|
2096
|
+
}), en = { class: "svc-flex-column" }, on = { class: "svc-tab-designer_content" }, sn = {
|
|
2086
2097
|
key: 0,
|
|
2087
2098
|
class: "svc-designer-header"
|
|
2088
|
-
},
|
|
2099
|
+
}, tn = {
|
|
2089
2100
|
class: "svc-designer__placeholder-container",
|
|
2090
2101
|
"data-sv-drop-target-survey-element": "newGhostPage"
|
|
2091
|
-
},
|
|
2102
|
+
}, nn = {
|
|
2092
2103
|
className: "svc-designer-placeholder-page",
|
|
2093
2104
|
"data-sv-drop-target-survey-element": "newGhostPage"
|
|
2094
2105
|
}, an = {
|
|
2095
2106
|
key: 0,
|
|
2096
2107
|
class: "svc-designer-header"
|
|
2097
|
-
},
|
|
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 = {
|
|
2098
2109
|
key: 0,
|
|
2099
2110
|
class: "svc-tab-designer__tools"
|
|
2100
|
-
},
|
|
2111
|
+
}, cn = {
|
|
2101
2112
|
key: 0,
|
|
2102
2113
|
class: "svc-tab-designer__page-navigator"
|
|
2103
|
-
},
|
|
2114
|
+
}, un = {
|
|
2104
2115
|
key: 1,
|
|
2105
2116
|
class: "svc-tab-designer__toolbar"
|
|
2106
|
-
},
|
|
2117
|
+
}, pn = /* @__PURE__ */ g({
|
|
2107
2118
|
__name: "Designer",
|
|
2108
2119
|
props: {
|
|
2109
2120
|
model: {}
|
|
2110
2121
|
},
|
|
2111
2122
|
setup(u) {
|
|
2112
2123
|
const t = u, e = k(() => t.model.survey);
|
|
2113
|
-
return f(() => t.model), f(() => e.value), (o, n) => (
|
|
2114
|
-
|
|
2115
|
-
o.model.isToolboxVisible ? (
|
|
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), {
|
|
2116
2127
|
key: 0,
|
|
2117
2128
|
is: "svc-toolbox",
|
|
2118
2129
|
model: o.model.creator
|
|
2119
2130
|
}, null, 8, ["model"])) : p("", !0)
|
|
2120
2131
|
]),
|
|
2121
|
-
|
|
2132
|
+
l("div", {
|
|
2122
2133
|
class: _(["svc-tab-designer", o.model.getRootCss()]),
|
|
2123
2134
|
onClick: n[0] || (n[0] = //@ts-ignore
|
|
2124
2135
|
(...r) => o.model.clickDesigner && o.model.clickDesigner(...r))
|
|
2125
2136
|
}, [
|
|
2126
2137
|
v(s(c), { is: "sv-scroll" }, {
|
|
2127
2138
|
default: Z(() => [
|
|
2128
|
-
|
|
2129
|
-
o.model.showPlaceholder ? (
|
|
2130
|
-
o.model.creator.showHeaderInEmptySurvey && o.model.creator.allowEditSurveyTitle ? (
|
|
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, [
|
|
2131
2142
|
v(s(c), {
|
|
2132
2143
|
is: "survey-header",
|
|
2133
2144
|
survey: o.model.creator.survey
|
|
2134
2145
|
}, null, 8, ["survey"])
|
|
2135
2146
|
])) : p("", !0),
|
|
2136
|
-
|
|
2147
|
+
l("div", tn, [
|
|
2137
2148
|
v(W, {
|
|
2138
2149
|
name: "designer",
|
|
2139
2150
|
placeholderTitleText: o.model.placeholderTitleText,
|
|
2140
2151
|
placeholderDescriptionText: o.model.placeholderDescriptionText
|
|
2141
2152
|
}, null, 8, ["placeholderTitleText", "placeholderDescriptionText"]),
|
|
2142
|
-
|
|
2153
|
+
l("div", nn, [
|
|
2143
2154
|
v(s(c), {
|
|
2144
2155
|
is: "svc-page",
|
|
2145
2156
|
survey: o.model.creator.survey,
|
|
@@ -2150,21 +2161,21 @@ const Nt = /* @__PURE__ */ g({
|
|
|
2150
2161
|
])
|
|
2151
2162
|
])
|
|
2152
2163
|
], 64)) : p("", !0),
|
|
2153
|
-
o.model.showPlaceholder ? p("", !0) : (
|
|
2154
|
-
|
|
2164
|
+
o.model.showPlaceholder ? p("", !0) : (a(), i(w, { key: 1 }, [
|
|
2165
|
+
l("div", {
|
|
2155
2166
|
class: _(o.model.designerCss),
|
|
2156
|
-
style:
|
|
2167
|
+
style: z([
|
|
2157
2168
|
{ maxWidth: o.model.survey.renderedWidth },
|
|
2158
2169
|
o.model.surfaceCssVariables
|
|
2159
2170
|
])
|
|
2160
2171
|
}, [
|
|
2161
|
-
o.model.creator.allowEditSurveyTitle ? (
|
|
2172
|
+
o.model.creator.allowEditSurveyTitle ? (a(), i("div", an, [
|
|
2162
2173
|
v(s(c), {
|
|
2163
2174
|
is: "survey-header",
|
|
2164
2175
|
survey: o.model.creator.survey
|
|
2165
2176
|
}, null, 8, ["survey"])
|
|
2166
2177
|
])) : p("", !0),
|
|
2167
|
-
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", {
|
|
2168
2179
|
key: r.id,
|
|
2169
2180
|
class: "svc-page",
|
|
2170
2181
|
"data-sv-drop-target-survey-element": r != o.model.newPage ? r.name : "newGhostPage",
|
|
@@ -2177,8 +2188,8 @@ const Nt = /* @__PURE__ */ g({
|
|
|
2177
2188
|
page: r,
|
|
2178
2189
|
isGhost: r == o.model.newPage
|
|
2179
2190
|
}, null, 8, ["survey", "creator", "page", "isGhost"])
|
|
2180
|
-
], 8,
|
|
2181
|
-
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", {
|
|
2182
2193
|
key: 2,
|
|
2183
2194
|
class: "svc-page",
|
|
2184
2195
|
"data-sv-drop-target-survey-element": o.model.displayPageDropTarget,
|
|
@@ -2190,17 +2201,17 @@ const Nt = /* @__PURE__ */ g({
|
|
|
2190
2201
|
creator: o.model.creator,
|
|
2191
2202
|
isGhost: o.model.pagesController.page2Display == o.model.newPage
|
|
2192
2203
|
}, null, 8, ["page", "creator", "isGhost"])
|
|
2193
|
-
], 8,
|
|
2204
|
+
], 8, rn)) : p("", !0)
|
|
2194
2205
|
], 6),
|
|
2195
|
-
o.model.showSurfaceTools ? (
|
|
2196
|
-
o.model.creator.showPageNavigator ? (
|
|
2206
|
+
o.model.showSurfaceTools ? (a(), i("div", dn, [
|
|
2207
|
+
o.model.creator.showPageNavigator ? (a(), i("div", cn, [
|
|
2197
2208
|
v(s(c), {
|
|
2198
2209
|
is: "svc-page-navigator",
|
|
2199
2210
|
pagesController: o.model.pagesController,
|
|
2200
2211
|
pageEditMode: o.model.creator.pageEditMode
|
|
2201
2212
|
}, null, 8, ["pagesController", "pageEditMode"])
|
|
2202
2213
|
])) : p("", !0),
|
|
2203
|
-
o.model.showSurfaceToolbar ? (
|
|
2214
|
+
o.model.showSurfaceToolbar ? (a(), i("div", un, [
|
|
2204
2215
|
v(s(c), {
|
|
2205
2216
|
is: "sv-action-bar",
|
|
2206
2217
|
model: o.model.surfaceToolbar
|
|
@@ -2215,13 +2226,13 @@ const Nt = /* @__PURE__ */ g({
|
|
|
2215
2226
|
], 2)
|
|
2216
2227
|
], 64));
|
|
2217
2228
|
}
|
|
2218
|
-
}),
|
|
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 = {
|
|
2219
2230
|
key: 0,
|
|
2220
2231
|
class: "svc-page__placeholder_frame"
|
|
2221
|
-
},
|
|
2232
|
+
}, bn = { class: "svc-panel__placeholder_frame" }, yn = { class: "svc-panel__placeholder" }, hn = { class: "svc-page__content-actions" }, qn = {
|
|
2222
2233
|
key: 2,
|
|
2223
2234
|
class: "svc-page__content-actions"
|
|
2224
|
-
},
|
|
2235
|
+
}, Cn = /* @__PURE__ */ g({
|
|
2225
2236
|
__name: "Page",
|
|
2226
2237
|
props: {
|
|
2227
2238
|
creator: {},
|
|
@@ -2230,7 +2241,7 @@ const Nt = /* @__PURE__ */ g({
|
|
|
2230
2241
|
isGhost: { type: Boolean }
|
|
2231
2242
|
},
|
|
2232
2243
|
setup(u) {
|
|
2233
|
-
const t = u, e =
|
|
2244
|
+
const t = u, e = I(), o = A(
|
|
2234
2245
|
() => {
|
|
2235
2246
|
const r = new De(t.creator, t.page);
|
|
2236
2247
|
return r.isGhost = t.isGhost, r;
|
|
@@ -2253,7 +2264,7 @@ const Nt = /* @__PURE__ */ g({
|
|
|
2253
2264
|
const n = (r) => {
|
|
2254
2265
|
o.value.hover(r, r.currentTarget);
|
|
2255
2266
|
};
|
|
2256
|
-
return (r, d) => s(o).page ?
|
|
2267
|
+
return (r, d) => s(o).page ? C((a(), i("div", {
|
|
2257
2268
|
key: s(o).page.id,
|
|
2258
2269
|
id: s(o).page.id,
|
|
2259
2270
|
class: _(["svc-page__content", s(o).css]),
|
|
@@ -2267,19 +2278,19 @@ const Nt = /* @__PURE__ */ g({
|
|
|
2267
2278
|
onMouseover: n,
|
|
2268
2279
|
onMouseleave: n
|
|
2269
2280
|
}, [
|
|
2281
|
+
mn,
|
|
2270
2282
|
_n,
|
|
2271
|
-
gn,
|
|
2272
2283
|
v(s(c), {
|
|
2273
2284
|
is: "survey-page",
|
|
2274
2285
|
survey: s(o).creator.survey,
|
|
2275
2286
|
page: s(o).page
|
|
2276
2287
|
}, null, 8, ["survey", "page"]),
|
|
2277
|
-
s(o).showPlaceholder ? (
|
|
2278
|
-
|
|
2279
|
-
|
|
2288
|
+
s(o).showPlaceholder ? (a(), i("div", gn, [
|
|
2289
|
+
l("div", bn, [
|
|
2290
|
+
l("div", yn, $(s(o).placeholderText), 1)
|
|
2280
2291
|
])
|
|
2281
2292
|
])) : p("", !0),
|
|
2282
|
-
s(o).allowDragging && !s(o).isGhost ? (
|
|
2293
|
+
s(o).allowDragging && !s(o).isGhost ? (a(), i("div", {
|
|
2283
2294
|
key: 1,
|
|
2284
2295
|
class: "svc-question__drag-area",
|
|
2285
2296
|
onPointerdown: d[0] || (d[0] = (m) => s(o).onPointerDown(m))
|
|
@@ -2292,24 +2303,24 @@ const Nt = /* @__PURE__ */ g({
|
|
|
2292
2303
|
iconName: "icon-drag-area-indicator_24x16",
|
|
2293
2304
|
size: "auto"
|
|
2294
2305
|
}), null, 16),
|
|
2295
|
-
|
|
2306
|
+
l("div", hn, [
|
|
2296
2307
|
v(s(c), {
|
|
2297
2308
|
is: "sv-action-bar",
|
|
2298
2309
|
model: s(o).actionContainer
|
|
2299
2310
|
}, null, 8, ["model"]),
|
|
2300
|
-
s(o).topActionContainer.hasActions ? (
|
|
2311
|
+
s(o).topActionContainer.hasActions ? (a(), h(s(c), {
|
|
2301
2312
|
key: 0,
|
|
2302
2313
|
is: "sv-action-bar",
|
|
2303
2314
|
model: s(o).topActionContainer
|
|
2304
2315
|
}, null, 8, ["model"])) : p("", !0)
|
|
2305
2316
|
])
|
|
2306
2317
|
], 32)) : p("", !0),
|
|
2307
|
-
!s(o).allowDragging || s(o).isGhost ? (
|
|
2318
|
+
!s(o).allowDragging || s(o).isGhost ? (a(), i("div", qn, [
|
|
2308
2319
|
v(s(c), {
|
|
2309
2320
|
is: "sv-action-bar",
|
|
2310
2321
|
model: s(o).actionContainer
|
|
2311
2322
|
}, null, 8, ["model"]),
|
|
2312
|
-
s(o).topActionContainer.hasActions ? (
|
|
2323
|
+
s(o).topActionContainer.hasActions ? (a(), h(s(c), {
|
|
2313
2324
|
key: 0,
|
|
2314
2325
|
is: "sv-action-bar",
|
|
2315
2326
|
model: s(o).topActionContainer
|
|
@@ -2319,11 +2330,11 @@ const Nt = /* @__PURE__ */ g({
|
|
|
2319
2330
|
is: "sv-action-bar",
|
|
2320
2331
|
model: s(o).footerActionsBar
|
|
2321
2332
|
}, null, 8, ["model"])
|
|
2322
|
-
], 42,
|
|
2333
|
+
], 42, vn)), [
|
|
2323
2334
|
[s(D)]
|
|
2324
2335
|
]) : p("", !0);
|
|
2325
2336
|
}
|
|
2326
|
-
}),
|
|
2337
|
+
}), kn = { class: "svc-add-new-item-button__text" }, $n = /* @__PURE__ */ g({
|
|
2327
2338
|
__name: "AddQuestion",
|
|
2328
2339
|
props: {
|
|
2329
2340
|
item: {},
|
|
@@ -2333,15 +2344,18 @@ const Nt = /* @__PURE__ */ g({
|
|
|
2333
2344
|
setup(u) {
|
|
2334
2345
|
const t = u;
|
|
2335
2346
|
f(() => t.item.data);
|
|
2336
|
-
const e = k(
|
|
2337
|
-
|
|
2338
|
-
|
|
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", {
|
|
2339
2354
|
class: _(e.value),
|
|
2340
2355
|
onClick: r[0] || (r[0] = (d) => {
|
|
2341
2356
|
n.item.data.addNewQuestion(n.item, d), d.stopPropagation();
|
|
2342
2357
|
}),
|
|
2343
|
-
onMouseover: r[1] || (r[1] = (d) => n.item.data.hoverStopper && n.item.data.hoverStopper(d, d.currentTarget))
|
|
2344
|
-
role: "button"
|
|
2358
|
+
onMouseover: r[1] || (r[1] = (d) => n.item.data.hoverStopper && n.item.data.hoverStopper(d, d.currentTarget))
|
|
2345
2359
|
}, [
|
|
2346
2360
|
v(s(c), {
|
|
2347
2361
|
is: "sv-svg-icon",
|
|
@@ -2349,8 +2363,8 @@ const Nt = /* @__PURE__ */ g({
|
|
|
2349
2363
|
iconName: "icon-add_24x24",
|
|
2350
2364
|
size: "auto"
|
|
2351
2365
|
}),
|
|
2352
|
-
|
|
2353
|
-
o.value ? (
|
|
2366
|
+
l("span", kn, $(n.item.data.addNewQuestionText), 1),
|
|
2367
|
+
o.value ? (a(), h(s(c), {
|
|
2354
2368
|
key: 0,
|
|
2355
2369
|
is: "svc-add-question-type-selector",
|
|
2356
2370
|
questionTypeSelectorModel: n.item.data.questionTypeSelectorModel,
|
|
@@ -2359,7 +2373,7 @@ const Nt = /* @__PURE__ */ g({
|
|
|
2359
2373
|
], 34)), [
|
|
2360
2374
|
[s(D)]
|
|
2361
2375
|
]),
|
|
2362
|
-
o.value ? p("", !0) : (
|
|
2376
|
+
o.value ? p("", !0) : (a(), h(s(c), {
|
|
2363
2377
|
key: 0,
|
|
2364
2378
|
is: "svc-add-question-type-selector",
|
|
2365
2379
|
questionTypeSelectorModel: n.item.data.questionTypeSelectorModel,
|
|
@@ -2367,7 +2381,7 @@ const Nt = /* @__PURE__ */ g({
|
|
|
2367
2381
|
}, null, 8, ["questionTypeSelectorModel", "renderPopup"]))
|
|
2368
2382
|
], 64));
|
|
2369
2383
|
}
|
|
2370
|
-
}),
|
|
2384
|
+
}), wn = ["title", "aria-label"], fn = /* @__PURE__ */ g({
|
|
2371
2385
|
__name: "AddQuestionTypeSelector",
|
|
2372
2386
|
props: {
|
|
2373
2387
|
questionTypeSelectorModel: {},
|
|
@@ -2375,7 +2389,7 @@ const Nt = /* @__PURE__ */ g({
|
|
|
2375
2389
|
},
|
|
2376
2390
|
setup(u) {
|
|
2377
2391
|
const t = u;
|
|
2378
|
-
return f(() => t.questionTypeSelectorModel), (e, o) =>
|
|
2392
|
+
return f(() => t.questionTypeSelectorModel), (e, o) => C((a(), i("button", {
|
|
2379
2393
|
type: "button",
|
|
2380
2394
|
onClick: o[0] || (o[0] = (n) => {
|
|
2381
2395
|
e.questionTypeSelectorModel.action(), n.stopPropagation();
|
|
@@ -2392,16 +2406,16 @@ const Nt = /* @__PURE__ */ g({
|
|
|
2392
2406
|
size: "auto",
|
|
2393
2407
|
title: e.questionTypeSelectorModel.title
|
|
2394
2408
|
}), null, 16),
|
|
2395
|
-
e.renderPopup ? (
|
|
2409
|
+
e.renderPopup ? (a(), h(s(c), {
|
|
2396
2410
|
key: 0,
|
|
2397
2411
|
is: "sv-popup",
|
|
2398
2412
|
model: e.questionTypeSelectorModel.popupModel
|
|
2399
2413
|
}, null, 8, ["model"])) : p("", !0)
|
|
2400
|
-
], 8,
|
|
2414
|
+
], 8, wn)), [
|
|
2401
2415
|
[s(D)]
|
|
2402
2416
|
]);
|
|
2403
2417
|
}
|
|
2404
|
-
}),
|
|
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({
|
|
2405
2419
|
__name: "Row",
|
|
2406
2420
|
props: {
|
|
2407
2421
|
componentData: {}
|
|
@@ -2416,20 +2430,20 @@ const Nt = /* @__PURE__ */ g({
|
|
|
2416
2430
|
);
|
|
2417
2431
|
return E(() => {
|
|
2418
2432
|
n.value && n.value.subscribeElementChanges();
|
|
2419
|
-
}),
|
|
2433
|
+
}), F(() => {
|
|
2420
2434
|
n.value && n.value.unsubscribeElementChanges();
|
|
2421
|
-
}), (r, d) => (
|
|
2435
|
+
}), (r, d) => (a(), i("div", {
|
|
2422
2436
|
class: _(s(n).cssClasses)
|
|
2423
2437
|
}, [
|
|
2438
|
+
Tn,
|
|
2424
2439
|
Dn,
|
|
2425
|
-
Nn,
|
|
2426
2440
|
x(r.$slots, "default")
|
|
2427
2441
|
], 2));
|
|
2428
2442
|
}
|
|
2429
|
-
}),
|
|
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 = {
|
|
2430
2444
|
key: 0,
|
|
2431
2445
|
class: "svc-panel__placeholder_frame-wrapper"
|
|
2432
|
-
},
|
|
2446
|
+
}, An = { class: "svc-panel__placeholder_frame" }, Ln = {
|
|
2433
2447
|
class: "svc-panel__placeholder",
|
|
2434
2448
|
"data-bind": "text: placeholderText"
|
|
2435
2449
|
}, oe = /* @__PURE__ */ g({
|
|
@@ -2445,7 +2459,7 @@ const Nt = /* @__PURE__ */ g({
|
|
|
2445
2459
|
componentData: {}
|
|
2446
2460
|
},
|
|
2447
2461
|
setup(u) {
|
|
2448
|
-
const t = u, e =
|
|
2462
|
+
const t = u, e = I(), o = A(
|
|
2449
2463
|
() => t.createModel(),
|
|
2450
2464
|
[() => t.componentName, () => t.componentData],
|
|
2451
2465
|
(d) => {
|
|
@@ -2462,7 +2476,7 @@ const Nt = /* @__PURE__ */ g({
|
|
|
2462
2476
|
const r = (d) => {
|
|
2463
2477
|
o.value.select(o.value, d), d.stopPropagation();
|
|
2464
2478
|
};
|
|
2465
|
-
return (d, m) => s(o) ? (
|
|
2479
|
+
return (d, m) => s(o) ? (a(), i("div", {
|
|
2466
2480
|
key: 0,
|
|
2467
2481
|
class: _(["svc-question__adorner", s(o).rootCss()]),
|
|
2468
2482
|
ref_key: "root",
|
|
@@ -2473,32 +2487,32 @@ const Nt = /* @__PURE__ */ g({
|
|
|
2473
2487
|
"data-sv-drop-target-survey-element": s(o).element.name || null,
|
|
2474
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); } }"
|
|
2475
2489
|
}, [
|
|
2476
|
-
s(o).showHiddenTitle ? (
|
|
2490
|
+
s(o).showHiddenTitle ? (a(), i("div", {
|
|
2477
2491
|
key: 0,
|
|
2478
2492
|
class: _(s(o).cssCollapsedHiddenHeader)
|
|
2479
2493
|
}, [
|
|
2480
|
-
d.element.hasTitle ? (
|
|
2494
|
+
d.element.hasTitle ? (a(), h(s(c), {
|
|
2481
2495
|
key: 0,
|
|
2482
2496
|
is: "survey-element-title",
|
|
2483
2497
|
element: d.element
|
|
2484
|
-
}, null, 8, ["element"])) : (
|
|
2498
|
+
}, null, 8, ["element"])) : (a(), i("div", {
|
|
2485
2499
|
key: 1,
|
|
2486
2500
|
class: _(s(o).cssCollapsedHiddenTitle)
|
|
2487
2501
|
}, [
|
|
2488
|
-
|
|
2502
|
+
l("span", Sn, $(d.element.name), 1)
|
|
2489
2503
|
], 2))
|
|
2490
2504
|
], 2)) : p("", !0),
|
|
2491
|
-
|
|
2505
|
+
C((a(), i("div", {
|
|
2492
2506
|
onClick: m[1] || (m[1] = (b) => {
|
|
2493
2507
|
s(o).select(s(o), b), b.stopPropagation();
|
|
2494
2508
|
}),
|
|
2495
2509
|
class: _(s(o).css())
|
|
2496
2510
|
}, [
|
|
2497
2511
|
Bn,
|
|
2512
|
+
In,
|
|
2498
2513
|
En,
|
|
2499
2514
|
Pn,
|
|
2500
|
-
|
|
2501
|
-
s(o).allowDragging ? (l(), i("div", {
|
|
2515
|
+
s(o).allowDragging ? (a(), i("div", {
|
|
2502
2516
|
key: 0,
|
|
2503
2517
|
class: "svc-question__drag-area",
|
|
2504
2518
|
onPointerdown: m[0] || (m[0] = (b) => s(o).onPointerDown(b))
|
|
@@ -2511,7 +2525,7 @@ const Nt = /* @__PURE__ */ g({
|
|
|
2511
2525
|
iconName: "icon-drag-area-indicator_24x16",
|
|
2512
2526
|
size: "auto"
|
|
2513
2527
|
}), null, 16),
|
|
2514
|
-
|
|
2528
|
+
l("div", Rn, [
|
|
2515
2529
|
v(s(c), {
|
|
2516
2530
|
is: "sv-action-bar",
|
|
2517
2531
|
model: s(o).topActionContainer,
|
|
@@ -2519,36 +2533,36 @@ const Nt = /* @__PURE__ */ g({
|
|
|
2519
2533
|
}, null, 8, ["model"])
|
|
2520
2534
|
])
|
|
2521
2535
|
], 32)) : p("", !0),
|
|
2522
|
-
s(o).needToRenderContent ? (
|
|
2536
|
+
s(o).needToRenderContent ? (a(), i(w, { key: 1 }, [
|
|
2523
2537
|
v(s(c), {
|
|
2524
2538
|
is: "sv-template-renderer",
|
|
2525
2539
|
componentName: d.componentName,
|
|
2526
2540
|
componentData: d.componentData
|
|
2527
2541
|
}, null, 8, ["componentName", "componentData"]),
|
|
2528
|
-
s(o).isEmptyElement && !d.showPlaceholderComponent ? (
|
|
2529
|
-
|
|
2530
|
-
|
|
2542
|
+
s(o).isEmptyElement && !d.showPlaceholderComponent ? (a(), i("div", Vn, [
|
|
2543
|
+
l("div", An, [
|
|
2544
|
+
l("div", Ln, $(s(o).placeholderText), 1)
|
|
2531
2545
|
])
|
|
2532
2546
|
])) : p("", !0),
|
|
2533
|
-
s(o).isEmptyElement && d.showPlaceholderComponent ? (
|
|
2547
|
+
s(o).isEmptyElement && d.showPlaceholderComponent ? (a(), h(s(c), V(
|
|
2534
2548
|
{
|
|
2535
2549
|
key: 1,
|
|
2536
2550
|
is: d.placeholderComponent
|
|
2537
2551
|
},
|
|
2538
2552
|
d.getPlaceholderComponentData && d.getPlaceholderComponentData(s(o))
|
|
2539
2553
|
), null, 16, ["is"])) : p("", !0),
|
|
2540
|
-
d.adornerComponent ? (
|
|
2554
|
+
d.adornerComponent ? (a(), h(s(c), {
|
|
2541
2555
|
key: 2,
|
|
2542
2556
|
is: d.adornerComponent,
|
|
2543
2557
|
model: s(o),
|
|
2544
2558
|
element: d.element
|
|
2545
2559
|
}, null, 8, ["is", "model", "element"])) : p("", !0),
|
|
2546
|
-
s(o).isBannerShowing ? (
|
|
2560
|
+
s(o).isBannerShowing ? (a(), h(s(c), {
|
|
2547
2561
|
key: 3,
|
|
2548
2562
|
is: "svc-question-banner",
|
|
2549
2563
|
model: n.value
|
|
2550
2564
|
}, null, 8, ["model"])) : p("", !0),
|
|
2551
|
-
|
|
2565
|
+
l("div", {
|
|
2552
2566
|
class: "svc-question__content-actions",
|
|
2553
2567
|
onFocusin: r
|
|
2554
2568
|
}, [
|
|
@@ -2562,9 +2576,9 @@ const Nt = /* @__PURE__ */ g({
|
|
|
2562
2576
|
], 2)), [
|
|
2563
2577
|
[s(D), { disableTabStop: !0 }]
|
|
2564
2578
|
])
|
|
2565
|
-
], 42,
|
|
2579
|
+
], 42, Mn)) : p("", !0);
|
|
2566
2580
|
}
|
|
2567
|
-
}),
|
|
2581
|
+
}), ae = /* @__PURE__ */ g({
|
|
2568
2582
|
__name: "Question",
|
|
2569
2583
|
props: {
|
|
2570
2584
|
componentName: {},
|
|
@@ -2576,14 +2590,14 @@ const Nt = /* @__PURE__ */ g({
|
|
|
2576
2590
|
t.componentData.element,
|
|
2577
2591
|
null
|
|
2578
2592
|
);
|
|
2579
|
-
return (o, n) => (
|
|
2593
|
+
return (o, n) => (a(), h(oe, {
|
|
2580
2594
|
createModel: e,
|
|
2581
2595
|
element: o.componentData.element,
|
|
2582
2596
|
"component-name": o.componentName,
|
|
2583
2597
|
"component-data": o.componentData
|
|
2584
2598
|
}, null, 8, ["element", "component-name", "component-data"]));
|
|
2585
2599
|
}
|
|
2586
|
-
}),
|
|
2600
|
+
}), zn = /* @__PURE__ */ g({
|
|
2587
2601
|
__name: "QuestionImage",
|
|
2588
2602
|
props: {
|
|
2589
2603
|
componentName: {},
|
|
@@ -2597,7 +2611,7 @@ const Nt = /* @__PURE__ */ g({
|
|
|
2597
2611
|
), o = (n) => ({
|
|
2598
2612
|
question: n == null ? void 0 : n.filePresentationModel
|
|
2599
2613
|
});
|
|
2600
|
-
return (n, r) => (
|
|
2614
|
+
return (n, r) => (a(), h(oe, {
|
|
2601
2615
|
"create-model": e,
|
|
2602
2616
|
element: t.componentData.element,
|
|
2603
2617
|
"show-placeholder-component": !0,
|
|
@@ -2608,34 +2622,34 @@ const Nt = /* @__PURE__ */ g({
|
|
|
2608
2622
|
"adorner-component": "svc-image-question-adorner"
|
|
2609
2623
|
}, null, 8, ["element", "component-data", "component-name"]));
|
|
2610
2624
|
}
|
|
2611
|
-
}),
|
|
2625
|
+
}), Fn = {
|
|
2612
2626
|
key: 0,
|
|
2613
2627
|
class: "svc-image-question-controls"
|
|
2614
|
-
},
|
|
2628
|
+
}, Kn = ["accept"], Un = {
|
|
2615
2629
|
class: "svc-context-button",
|
|
2616
2630
|
title: void 0,
|
|
2617
2631
|
"aria-label": void 0
|
|
2618
|
-
},
|
|
2632
|
+
}, Hn = {
|
|
2619
2633
|
key: 1,
|
|
2620
2634
|
class: "svc-image-question__loading-placeholder"
|
|
2621
|
-
},
|
|
2635
|
+
}, On = { class: "svc-image-question__loading" }, Qn = /* @__PURE__ */ g({
|
|
2622
2636
|
__name: "Image",
|
|
2623
2637
|
props: {
|
|
2624
2638
|
model: {},
|
|
2625
2639
|
element: {}
|
|
2626
2640
|
},
|
|
2627
2641
|
setup(u) {
|
|
2628
|
-
return (t, e) => (
|
|
2629
|
-
!t.model.isUploading && !t.model.isEmptyElement ? (
|
|
2630
|
-
t.model.allowEdit ? (
|
|
2631
|
-
|
|
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", {
|
|
2632
2646
|
type: "file",
|
|
2633
2647
|
"aria-hidden": "true",
|
|
2634
2648
|
tabindex: "-1",
|
|
2635
2649
|
accept: t.model.acceptedTypes,
|
|
2636
2650
|
class: "svc-choose-file-input"
|
|
2637
|
-
}, null, 8,
|
|
2638
|
-
|
|
2651
|
+
}, null, 8, Kn),
|
|
2652
|
+
C((a(), i("span", Un, [
|
|
2639
2653
|
v(s(c), {
|
|
2640
2654
|
is: "sv-svg-icon",
|
|
2641
2655
|
iconName: "icon-choosefile",
|
|
@@ -2647,14 +2661,14 @@ const Nt = /* @__PURE__ */ g({
|
|
|
2647
2661
|
])
|
|
2648
2662
|
], 64)) : p("", !0)
|
|
2649
2663
|
])) : p("", !0),
|
|
2650
|
-
t.model.isUploading && !t.model.isEmptyElement ? (
|
|
2651
|
-
|
|
2664
|
+
t.model.isUploading && !t.model.isEmptyElement ? (a(), i("div", Hn, [
|
|
2665
|
+
l("div", On, [
|
|
2652
2666
|
v(s(c), { is: "sv-loading-indicator" })
|
|
2653
2667
|
])
|
|
2654
2668
|
])) : p("", !0)
|
|
2655
2669
|
], 64));
|
|
2656
2670
|
}
|
|
2657
|
-
}),
|
|
2671
|
+
}), Gn = { class: "svc-rating-question-content" }, Wn = /* @__PURE__ */ g({
|
|
2658
2672
|
__name: "Rating",
|
|
2659
2673
|
props: {
|
|
2660
2674
|
componentData: {},
|
|
@@ -2670,12 +2684,12 @@ const Nt = /* @__PURE__ */ g({
|
|
|
2670
2684
|
[() => t.componentData.data, () => t.componentData.question]
|
|
2671
2685
|
);
|
|
2672
2686
|
return (o, n) => {
|
|
2673
|
-
var r, d, m, b, y, N, O, P,
|
|
2674
|
-
return
|
|
2675
|
-
|
|
2687
|
+
var r, d, m, b, y, N, O, P, L;
|
|
2688
|
+
return a(), i("div", Gn, [
|
|
2689
|
+
l("div", {
|
|
2676
2690
|
class: _((r = s(e)) == null ? void 0 : r.controlsClassNames)
|
|
2677
2691
|
}, [
|
|
2678
|
-
(d = s(e)) != null && d.allowRemove ?
|
|
2692
|
+
(d = s(e)) != null && d.allowRemove ? C((a(), h(s(c), {
|
|
2679
2693
|
key: 0,
|
|
2680
2694
|
is: "sv-svg-icon",
|
|
2681
2695
|
iconName: "icon-remove_16x16",
|
|
@@ -2690,7 +2704,7 @@ const Nt = /* @__PURE__ */ g({
|
|
|
2690
2704
|
}, null, 8, ["class", "title", "aria-label"])), [
|
|
2691
2705
|
[s(D)]
|
|
2692
2706
|
]) : p("", !0),
|
|
2693
|
-
(N = s(e)) != null && N.allowAdd ?
|
|
2707
|
+
(N = s(e)) != null && N.allowAdd ? C((a(), h(s(c), {
|
|
2694
2708
|
key: 1,
|
|
2695
2709
|
is: "sv-svg-icon",
|
|
2696
2710
|
iconName: "icon-add_16x16",
|
|
@@ -2701,7 +2715,7 @@ const Nt = /* @__PURE__ */ g({
|
|
|
2701
2715
|
}),
|
|
2702
2716
|
class: _((O = s(e)) == null ? void 0 : O.addClassNames),
|
|
2703
2717
|
title: (P = s(e)) == null ? void 0 : P.addTooltip,
|
|
2704
|
-
"aria-label": (
|
|
2718
|
+
"aria-label": (L = s(e)) == null ? void 0 : L.addTooltip
|
|
2705
2719
|
}, null, 8, ["class", "title", "aria-label"])), [
|
|
2706
2720
|
[s(D)]
|
|
2707
2721
|
]) : p("", !0)
|
|
@@ -2710,10 +2724,10 @@ const Nt = /* @__PURE__ */ g({
|
|
|
2710
2724
|
]);
|
|
2711
2725
|
};
|
|
2712
2726
|
}
|
|
2713
|
-
}),
|
|
2727
|
+
}), jn = {
|
|
2714
2728
|
key: 0,
|
|
2715
2729
|
class: "svc-matrix-cell__question-controls"
|
|
2716
|
-
},
|
|
2730
|
+
}, Jn = /* @__PURE__ */ g({
|
|
2717
2731
|
__name: "MatrixCell",
|
|
2718
2732
|
props: {
|
|
2719
2733
|
componentData: {}
|
|
@@ -2724,7 +2738,7 @@ const Nt = /* @__PURE__ */ g({
|
|
|
2724
2738
|
), m = A(
|
|
2725
2739
|
() => {
|
|
2726
2740
|
var b;
|
|
2727
|
-
return t.componentData ? new
|
|
2741
|
+
return t.componentData ? new Be(
|
|
2728
2742
|
e.value,
|
|
2729
2743
|
r.value,
|
|
2730
2744
|
d.value,
|
|
@@ -2741,28 +2755,28 @@ const Nt = /* @__PURE__ */ g({
|
|
|
2741
2755
|
);
|
|
2742
2756
|
return (b, y) => {
|
|
2743
2757
|
var N, O;
|
|
2744
|
-
return
|
|
2758
|
+
return a(), i("div", {
|
|
2745
2759
|
tabindex: "-1",
|
|
2746
2760
|
class: "svc-matrix-cell",
|
|
2747
2761
|
onClick: y[1] || (y[1] = (P) => {
|
|
2748
|
-
var
|
|
2749
|
-
return (
|
|
2762
|
+
var L;
|
|
2763
|
+
return (L = s(m)) == null ? void 0 : L.selectContext(s(m), P);
|
|
2750
2764
|
}),
|
|
2751
2765
|
onMouseover: y[2] || (y[2] = (P) => {
|
|
2752
|
-
var
|
|
2753
|
-
return (
|
|
2766
|
+
var L;
|
|
2767
|
+
return (L = s(m)) == null ? void 0 : L.hover(P, P.currentTarget);
|
|
2754
2768
|
}),
|
|
2755
2769
|
onMouseleave: y[3] || (y[3] = (P) => {
|
|
2756
|
-
var
|
|
2757
|
-
return (
|
|
2770
|
+
var L;
|
|
2771
|
+
return (L = s(m)) == null ? void 0 : L.hover(P, P.currentTarget);
|
|
2758
2772
|
})
|
|
2759
2773
|
}, [
|
|
2760
|
-
|
|
2774
|
+
l("div", {
|
|
2761
2775
|
class: _(["svc-matrix-cell--selected", { "svc-visible": (N = s(m)) == null ? void 0 : N.isSelected }])
|
|
2762
2776
|
}, null, 2),
|
|
2763
2777
|
x(b.$slots, "default"),
|
|
2764
|
-
(O = s(m)) != null && O.isSupportCellEditor ? (
|
|
2765
|
-
|
|
2778
|
+
(O = s(m)) != null && O.isSupportCellEditor ? (a(), i("div", jn, [
|
|
2779
|
+
C((a(), i("span", {
|
|
2766
2780
|
class: "svc-matrix-cell__question-controls-button svc-context-button",
|
|
2767
2781
|
onClick: y[0] || (y[0] = (P) => s(m).editQuestion(s(m), P))
|
|
2768
2782
|
}, [
|
|
@@ -2778,7 +2792,7 @@ const Nt = /* @__PURE__ */ g({
|
|
|
2778
2792
|
], 32);
|
|
2779
2793
|
};
|
|
2780
2794
|
}
|
|
2781
|
-
}),
|
|
2795
|
+
}), Zn = { class: "svc-question__adorner" }, Xn = { class: "svc-question__content svc-question__content--in-popup" }, Yn = /* @__PURE__ */ g({
|
|
2782
2796
|
__name: "CellQuestion",
|
|
2783
2797
|
props: {
|
|
2784
2798
|
componentName: {},
|
|
@@ -2788,19 +2802,19 @@ const Nt = /* @__PURE__ */ g({
|
|
|
2788
2802
|
const t = u, e = k(
|
|
2789
2803
|
() => t.componentData.element
|
|
2790
2804
|
);
|
|
2791
|
-
return f(() => e.value), (o, n) => (
|
|
2792
|
-
|
|
2805
|
+
return f(() => e.value), (o, n) => (a(), i("div", Zn, [
|
|
2806
|
+
l("div", Xn, [
|
|
2793
2807
|
v(s(c), V({ is: o.componentName }, o.componentData), null, 16, ["is"])
|
|
2794
2808
|
])
|
|
2795
2809
|
]));
|
|
2796
2810
|
}
|
|
2797
|
-
}),
|
|
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 = {
|
|
2798
2812
|
key: 0,
|
|
2799
2813
|
class: "svc-panel__placeholder_frame-wrapper"
|
|
2800
|
-
},
|
|
2814
|
+
}, ia = { class: "svc-panel__placeholder_frame" }, ra = { class: "svc-panel__placeholder" }, da = { class: "svc-add-new-item-button__text" }, ca = {
|
|
2801
2815
|
key: 1,
|
|
2802
2816
|
class: "svc-panel__add-new-question-container"
|
|
2803
|
-
},
|
|
2817
|
+
}, ua = { class: "svc-panel__question-type-selector-popup" }, pa = { class: "svc-panel__add-new-question-wrapper" }, va = /* @__PURE__ */ g({
|
|
2804
2818
|
__name: "Panel",
|
|
2805
2819
|
props: {
|
|
2806
2820
|
componentName: {},
|
|
@@ -2820,7 +2834,7 @@ const Nt = /* @__PURE__ */ g({
|
|
|
2820
2834
|
), o = (n) => {
|
|
2821
2835
|
n.stopPropagation(), e.value.addNewQuestion();
|
|
2822
2836
|
};
|
|
2823
|
-
return (n, r) => s(e) && !s(e).isDisposed ? (
|
|
2837
|
+
return (n, r) => s(e) && !s(e).isDisposed ? (a(), i("div", {
|
|
2824
2838
|
key: 0,
|
|
2825
2839
|
class: _(["svc-question__adorner", s(e).rootCss()]),
|
|
2826
2840
|
onDblclick: r[3] || (r[3] = (d) => s(e).dblclick(d)),
|
|
@@ -2829,30 +2843,30 @@ const Nt = /* @__PURE__ */ g({
|
|
|
2829
2843
|
"data-sv-drop-target-survey-element": s(e).element.name || null,
|
|
2830
2844
|
ref: "root"
|
|
2831
2845
|
}, [
|
|
2832
|
-
s(e).showHiddenTitle ? (
|
|
2846
|
+
s(e).showHiddenTitle ? (a(), i("div", {
|
|
2833
2847
|
key: 0,
|
|
2834
2848
|
class: _(s(e).cssCollapsedHiddenHeader)
|
|
2835
2849
|
}, [
|
|
2836
|
-
s(e).element.hasTitle ? (
|
|
2850
|
+
s(e).element.hasTitle ? (a(), h(s(c), {
|
|
2837
2851
|
key: 0,
|
|
2838
2852
|
is: "survey-element-title",
|
|
2839
2853
|
element: s(e).element
|
|
2840
|
-
}, null, 8, ["element"])) : (
|
|
2854
|
+
}, null, 8, ["element"])) : (a(), i("div", {
|
|
2841
2855
|
key: 1,
|
|
2842
2856
|
class: _(s(e).cssCollapsedHiddenTitle)
|
|
2843
2857
|
}, [
|
|
2844
|
-
|
|
2858
|
+
l("span", ea, $(s(e).element.name), 1)
|
|
2845
2859
|
], 2))
|
|
2846
2860
|
], 2)) : p("", !0),
|
|
2847
|
-
|
|
2861
|
+
C((a(), i("div", {
|
|
2848
2862
|
class: _(s(e).css()),
|
|
2849
2863
|
onClick: r[2] || (r[2] = (d) => s(e).element.isInteractiveDesignElement ? s(e).select(s(e), d) : null)
|
|
2850
2864
|
}, [
|
|
2851
|
-
|
|
2852
|
-
|
|
2853
|
-
|
|
2854
|
-
|
|
2855
|
-
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", {
|
|
2856
2870
|
key: 0,
|
|
2857
2871
|
class: "svc-question__drag-area",
|
|
2858
2872
|
onPointerdown: r[0] || (r[0] = (d) => s(e).onPointerDown(d))
|
|
@@ -2863,7 +2877,7 @@ const Nt = /* @__PURE__ */ g({
|
|
|
2863
2877
|
iconName: "icon-drag-area-indicator_24x16",
|
|
2864
2878
|
size: "auto"
|
|
2865
2879
|
}),
|
|
2866
|
-
|
|
2880
|
+
l("div", aa, [
|
|
2867
2881
|
v(s(c), {
|
|
2868
2882
|
is: "sv-action-bar",
|
|
2869
2883
|
model: s(e).topActionContainer,
|
|
@@ -2871,12 +2885,12 @@ const Nt = /* @__PURE__ */ g({
|
|
|
2871
2885
|
}, null, 8, ["model"])
|
|
2872
2886
|
])
|
|
2873
2887
|
], 32)) : p("", !0),
|
|
2874
|
-
s(e).needToRenderContent ? (
|
|
2888
|
+
s(e).needToRenderContent ? (a(), i(w, { key: 1 }, [
|
|
2875
2889
|
v(s(c), V({ is: n.componentName }, n.componentData), null, 16, ["is"]),
|
|
2876
|
-
s(e).isEmptyElement ? (
|
|
2877
|
-
|
|
2878
|
-
|
|
2879
|
-
s(e).showAddQuestionButton ?
|
|
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", {
|
|
2880
2894
|
key: 0,
|
|
2881
2895
|
class: "svc-panel__add-new-question svc-action-button",
|
|
2882
2896
|
onClick: o
|
|
@@ -2887,20 +2901,20 @@ const Nt = /* @__PURE__ */ g({
|
|
|
2887
2901
|
iconName: "icon-add_24x24",
|
|
2888
2902
|
size: "auto"
|
|
2889
2903
|
}),
|
|
2890
|
-
|
|
2904
|
+
l("span", da, $(s(e).addNewQuestionText), 1)
|
|
2891
2905
|
])), [
|
|
2892
2906
|
[s(D)]
|
|
2893
2907
|
]) : p("", !0)
|
|
2894
2908
|
])
|
|
2895
2909
|
])) : p("", !0),
|
|
2896
|
-
!s(e).isEmptyElement && s(e).showAddQuestionButton ? (
|
|
2897
|
-
|
|
2910
|
+
!s(e).isEmptyElement && s(e).showAddQuestionButton ? (a(), i("div", ca, [
|
|
2911
|
+
l("div", ua, [
|
|
2898
2912
|
v(s(c), {
|
|
2899
2913
|
is: "sv-popup",
|
|
2900
2914
|
model: s(e).questionTypeSelectorModel.popupModel
|
|
2901
2915
|
}, null, 8, ["model"])
|
|
2902
2916
|
]),
|
|
2903
|
-
|
|
2917
|
+
l("div", pa, [
|
|
2904
2918
|
v(s(c), {
|
|
2905
2919
|
is: "svc-add-new-question-btn",
|
|
2906
2920
|
item: { data: s(e) },
|
|
@@ -2909,7 +2923,7 @@ const Nt = /* @__PURE__ */ g({
|
|
|
2909
2923
|
}, null, 8, ["item"])
|
|
2910
2924
|
])
|
|
2911
2925
|
])) : p("", !0),
|
|
2912
|
-
s(e).element.isInteractiveDesignElement ? (
|
|
2926
|
+
s(e).element.isInteractiveDesignElement ? (a(), i("div", {
|
|
2913
2927
|
key: 2,
|
|
2914
2928
|
class: "svc-question__content-actions",
|
|
2915
2929
|
onFocusin: r[1] || (r[1] = (d) => s(e).select(s(e), d))
|
|
@@ -2924,19 +2938,19 @@ const Nt = /* @__PURE__ */ g({
|
|
|
2924
2938
|
], 2)), [
|
|
2925
2939
|
[s(D), { disableTabStop: !0 }]
|
|
2926
2940
|
])
|
|
2927
|
-
], 42,
|
|
2941
|
+
], 42, xn)) : p("", !0);
|
|
2928
2942
|
}
|
|
2929
|
-
}),
|
|
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 = {
|
|
2930
2944
|
key: 0,
|
|
2931
2945
|
class: "svc-item-value-controls__button svc-item-value-controls__drag"
|
|
2932
|
-
},
|
|
2946
|
+
}, ya = /* @__PURE__ */ g({
|
|
2933
2947
|
__name: "ItemValue",
|
|
2934
2948
|
props: {
|
|
2935
2949
|
componentName: {},
|
|
2936
2950
|
componentData: {}
|
|
2937
2951
|
},
|
|
2938
2952
|
setup(u) {
|
|
2939
|
-
const t =
|
|
2953
|
+
const t = I(), e = u, o = k(() => e.componentData.data.creator), n = k(() => e.componentData.question), r = k(() => e.componentData.item), d = G(
|
|
2940
2954
|
() => r.value,
|
|
2941
2955
|
(b, y) => {
|
|
2942
2956
|
b && t.value && b.setRootElement(t.value), y && y.setRootElement(void 0);
|
|
@@ -2944,11 +2958,11 @@ const Nt = /* @__PURE__ */ g({
|
|
|
2944
2958
|
);
|
|
2945
2959
|
E(() => {
|
|
2946
2960
|
t.value && r.value && r.value.setRootElement(t.value);
|
|
2947
|
-
}),
|
|
2961
|
+
}), F(() => {
|
|
2948
2962
|
r.value.setRootElement(void 0);
|
|
2949
2963
|
});
|
|
2950
2964
|
const m = A(
|
|
2951
|
-
() => new
|
|
2965
|
+
() => new Ie(o.value, n.value, r.value),
|
|
2952
2966
|
[() => o.value, () => n.value, () => r.value],
|
|
2953
2967
|
(b) => {
|
|
2954
2968
|
b.dispose();
|
|
@@ -2956,7 +2970,7 @@ const Nt = /* @__PURE__ */ g({
|
|
|
2956
2970
|
);
|
|
2957
2971
|
return X(() => {
|
|
2958
2972
|
d();
|
|
2959
|
-
}), (b, y) => (
|
|
2973
|
+
}), (b, y) => (a(), i("div", {
|
|
2960
2974
|
class: _(["svc-item-value-wrapper", {
|
|
2961
2975
|
"svc-item-value--new": s(m).isNew,
|
|
2962
2976
|
"svc-item-value--dragging": s(m).isDragging,
|
|
@@ -2969,9 +2983,9 @@ const Nt = /* @__PURE__ */ g({
|
|
|
2969
2983
|
ref_key: "root",
|
|
2970
2984
|
ref: t
|
|
2971
2985
|
}, [
|
|
2972
|
-
|
|
2973
|
-
|
|
2974
|
-
s(m).isDraggable ? (
|
|
2986
|
+
_a,
|
|
2987
|
+
l("div", ga, [
|
|
2988
|
+
s(m).isDraggable ? (a(), i("span", ba, [
|
|
2975
2989
|
v(s(c), {
|
|
2976
2990
|
is: "sv-svg-icon",
|
|
2977
2991
|
class: "svc-item-value-controls__drag-icon",
|
|
@@ -2980,7 +2994,7 @@ const Nt = /* @__PURE__ */ g({
|
|
|
2980
2994
|
title: s(m).dragTooltip
|
|
2981
2995
|
}, null, 8, ["title"])
|
|
2982
2996
|
])) : p("", !0),
|
|
2983
|
-
s(m).allowAdd ?
|
|
2997
|
+
s(m).allowAdd ? C((a(), i("span", {
|
|
2984
2998
|
key: 1,
|
|
2985
2999
|
class: "svc-item-value-controls__button svc-item-value-controls__add",
|
|
2986
3000
|
onClick: y[0] || (y[0] = (N) => s(m).add(s(m))),
|
|
@@ -2995,7 +3009,7 @@ const Nt = /* @__PURE__ */ g({
|
|
|
2995
3009
|
])), [
|
|
2996
3010
|
[s(D)]
|
|
2997
3011
|
]) : p("", !0),
|
|
2998
|
-
s(m).allowRemove ?
|
|
3012
|
+
s(m).allowRemove ? C((a(), i("span", {
|
|
2999
3013
|
key: 2,
|
|
3000
3014
|
class: "svc-item-value-controls__button svc-item-value-controls__remove",
|
|
3001
3015
|
onClick: y[1] || (y[1] = (N) => s(m).remove(s(m))),
|
|
@@ -3012,31 +3026,31 @@ const Nt = /* @__PURE__ */ g({
|
|
|
3012
3026
|
[s(D)]
|
|
3013
3027
|
]) : p("", !0)
|
|
3014
3028
|
]),
|
|
3015
|
-
|
|
3029
|
+
l("div", {
|
|
3016
3030
|
class: "svc-item-value__item",
|
|
3017
3031
|
onClick: y[3] || (y[3] = (N) => s(m).select(s(m), N))
|
|
3018
3032
|
}, [
|
|
3019
3033
|
v(s(c), V({ is: b.componentName }, b.componentData), null, 16, ["is"])
|
|
3020
3034
|
])
|
|
3021
|
-
], 42,
|
|
3035
|
+
], 42, ma));
|
|
3022
3036
|
}
|
|
3023
|
-
}),
|
|
3037
|
+
}), ha = ["data-sv-drop-target-item-value"], qa = { class: "svc-image-item-value-wrapper__content" }, Ca = ["accept"], ka = {
|
|
3024
3038
|
key: 0,
|
|
3025
3039
|
class: "svc-image-item-value__item"
|
|
3026
|
-
},
|
|
3040
|
+
}, $a = {
|
|
3027
3041
|
key: 2,
|
|
3028
3042
|
class: "svc-context-container svc-image-item-value-controls"
|
|
3029
|
-
},
|
|
3043
|
+
}, wa = { class: "sd-imagepicker__item sd-imagepicker__item--inline" }, fa = { class: "sd-imagepicker__label" }, Ta = {
|
|
3030
3044
|
key: 0,
|
|
3031
3045
|
class: "svc-image-item-value__loading"
|
|
3032
|
-
},
|
|
3046
|
+
}, Da = /* @__PURE__ */ g({
|
|
3033
3047
|
__name: "ImageItemValue",
|
|
3034
3048
|
props: {
|
|
3035
3049
|
componentName: {},
|
|
3036
3050
|
componentData: {}
|
|
3037
3051
|
},
|
|
3038
3052
|
setup(u) {
|
|
3039
|
-
const t = u, e = k(() => t.componentData.data.creator), o = k(() => t.componentData.question), n = k(() => t.componentData.item), r =
|
|
3053
|
+
const t = u, e = k(() => t.componentData.data.creator), o = k(() => t.componentData.question), n = k(() => t.componentData.item), r = I(), d = A(
|
|
3040
3054
|
() => {
|
|
3041
3055
|
const b = new Ee(
|
|
3042
3056
|
e.value,
|
|
@@ -3060,30 +3074,30 @@ const Nt = /* @__PURE__ */ g({
|
|
|
3060
3074
|
});
|
|
3061
3075
|
return E(() => {
|
|
3062
3076
|
r.value && (d.value.itemsRoot = r.value);
|
|
3063
|
-
}), (b, y) => (
|
|
3077
|
+
}), (b, y) => (a(), i("div", {
|
|
3064
3078
|
onPointerdown: y[8] || (y[8] = (N) => s(d).onPointerDown(N)),
|
|
3065
3079
|
class: _(s(d).getRootCss()),
|
|
3066
3080
|
"data-sv-drop-target-item-value": s(d).isDraggable ? n.value.value : null,
|
|
3067
3081
|
ref_key: "root",
|
|
3068
3082
|
ref: r
|
|
3069
3083
|
}, [
|
|
3070
|
-
|
|
3084
|
+
l("div", {
|
|
3071
3085
|
class: "svc-image-item-value-wrapper__ghost",
|
|
3072
|
-
style:
|
|
3086
|
+
style: z(m.value)
|
|
3073
3087
|
}, null, 4),
|
|
3074
|
-
|
|
3075
|
-
|
|
3088
|
+
l("div", qa, [
|
|
3089
|
+
l("input", {
|
|
3076
3090
|
type: "file",
|
|
3077
3091
|
"aria-hidden": "true",
|
|
3078
3092
|
tabindex: "-1",
|
|
3079
3093
|
accept: s(d).acceptedTypes,
|
|
3080
3094
|
class: "svc-choose-file-input"
|
|
3081
|
-
}, null, 8,
|
|
3082
|
-
!s(d).isNew && !s(d).isUploading ? (
|
|
3083
|
-
s(d).isNew ? p("", !0) : (
|
|
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, [
|
|
3084
3098
|
v(s(c), V({ is: b.componentName }, b.componentData), null, 16, ["is"])
|
|
3085
3099
|
])),
|
|
3086
|
-
s(d).isDraggable && s(d).canRenderControls ? (
|
|
3100
|
+
s(d).isDraggable && s(d).canRenderControls ? (a(), i("span", {
|
|
3087
3101
|
key: 1,
|
|
3088
3102
|
class: "svc-context-button svc-image-item-value-controls__drag-area-indicator",
|
|
3089
3103
|
onPointerdown: y[0] || (y[0] = (N) => s(d).onPointerDown(N)),
|
|
@@ -3096,8 +3110,8 @@ const Nt = /* @__PURE__ */ g({
|
|
|
3096
3110
|
size: "auto"
|
|
3097
3111
|
})
|
|
3098
3112
|
], 32)) : p("", !0),
|
|
3099
|
-
s(d).canRenderControls ? (
|
|
3100
|
-
|
|
3113
|
+
s(d).canRenderControls ? (a(), i("div", $a, [
|
|
3114
|
+
C((a(), i("span", {
|
|
3101
3115
|
class: "svc-context-button",
|
|
3102
3116
|
onClick: y[1] || (y[1] = (N) => s(d).chooseFile(s(d))),
|
|
3103
3117
|
title: void 0,
|
|
@@ -3113,7 +3127,7 @@ const Nt = /* @__PURE__ */ g({
|
|
|
3113
3127
|
])), [
|
|
3114
3128
|
[s(D)]
|
|
3115
3129
|
]),
|
|
3116
|
-
|
|
3130
|
+
C((a(), i("span", {
|
|
3117
3131
|
class: "svc-context-button svc-context-button--danger",
|
|
3118
3132
|
onClick: y[2] || (y[2] = (N) => s(d).remove(s(d))),
|
|
3119
3133
|
title: void 0,
|
|
@@ -3131,31 +3145,31 @@ const Nt = /* @__PURE__ */ g({
|
|
|
3131
3145
|
])
|
|
3132
3146
|
])) : p("", !0)
|
|
3133
3147
|
], 64)) : p("", !0),
|
|
3134
|
-
s(d).isNew || s(d).isUploading ? (
|
|
3135
|
-
|
|
3148
|
+
s(d).isNew || s(d).isUploading ? (a(), i(w, { key: 1 }, [
|
|
3149
|
+
l("div", {
|
|
3136
3150
|
class: "svc-image-item-value__item",
|
|
3137
3151
|
onDragover: y[3] || (y[3] = (N) => s(d).onDragOver(N)),
|
|
3138
3152
|
onDragleave: y[4] || (y[4] = (N) => s(d).onDragLeave(N)),
|
|
3139
3153
|
onDrop: y[5] || (y[5] = (N) => s(d).onDrop(N))
|
|
3140
3154
|
}, [
|
|
3141
|
-
|
|
3142
|
-
|
|
3143
|
-
|
|
3144
|
-
style:
|
|
3155
|
+
l("div", wa, [
|
|
3156
|
+
l("label", fa, [
|
|
3157
|
+
l("div", {
|
|
3158
|
+
style: z(m.value),
|
|
3145
3159
|
class: "sd-imagepicker__image"
|
|
3146
3160
|
}, [
|
|
3147
|
-
s(d).isUploading ? (
|
|
3161
|
+
s(d).isUploading ? (a(), i("div", Ta, [
|
|
3148
3162
|
v(s(c), { is: "sv-loading-indicator" })
|
|
3149
3163
|
])) : p("", !0)
|
|
3150
3164
|
], 4)
|
|
3151
3165
|
])
|
|
3152
3166
|
])
|
|
3153
3167
|
], 32),
|
|
3154
|
-
|
|
3168
|
+
l("div", {
|
|
3155
3169
|
class: "svc-image-item-value-controls",
|
|
3156
3170
|
onPointerdown: y[7] || (y[7] = (N) => N.stopPropagation())
|
|
3157
3171
|
}, [
|
|
3158
|
-
s(d).allowAdd && !s(d).isUploading ?
|
|
3172
|
+
s(d).allowAdd && !s(d).isUploading ? C((a(), i("span", {
|
|
3159
3173
|
key: 0,
|
|
3160
3174
|
class: "svc-context-button svc-image-item-value-controls__add",
|
|
3161
3175
|
onClick: y[6] || (y[6] = (N) => s(d).chooseNewFile(s(d))),
|
|
@@ -3174,9 +3188,9 @@ const Nt = /* @__PURE__ */ g({
|
|
|
3174
3188
|
], 32)
|
|
3175
3189
|
], 64)) : p("", !0)
|
|
3176
3190
|
])
|
|
3177
|
-
], 42,
|
|
3191
|
+
], 42, ha));
|
|
3178
3192
|
}
|
|
3179
|
-
}),
|
|
3193
|
+
}), Na = /* @__PURE__ */ g({
|
|
3180
3194
|
__name: "QuestionEditor",
|
|
3181
3195
|
props: {
|
|
3182
3196
|
survey: {},
|
|
@@ -3205,29 +3219,29 @@ const Nt = /* @__PURE__ */ g({
|
|
|
3205
3219
|
}
|
|
3206
3220
|
};
|
|
3207
3221
|
});
|
|
3208
|
-
return (r, d) => (
|
|
3209
|
-
style:
|
|
3222
|
+
return (r, d) => (a(), i("div", {
|
|
3223
|
+
style: z(t.style)
|
|
3210
3224
|
}, [
|
|
3211
3225
|
v(s(c), V({ is: o.value }, n.value), null, 16, ["is"])
|
|
3212
3226
|
], 4));
|
|
3213
3227
|
}
|
|
3214
|
-
}),
|
|
3215
|
-
/* @__PURE__ */
|
|
3216
|
-
], -1),
|
|
3217
|
-
|
|
3218
|
-
],
|
|
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 = {
|
|
3219
3233
|
key: 2,
|
|
3220
3234
|
class: "svc-logo-image__loading"
|
|
3221
|
-
},
|
|
3235
|
+
}, Pa = /* @__PURE__ */ g({
|
|
3222
3236
|
__name: "Logo",
|
|
3223
3237
|
props: {
|
|
3224
3238
|
data: {}
|
|
3225
3239
|
},
|
|
3226
3240
|
setup(u) {
|
|
3227
|
-
const t = u, e = k(() => t.data), o = k(() => e.value.survey), n =
|
|
3241
|
+
const t = u, e = k(() => t.data), o = k(() => e.value.survey), n = I(), r = A(
|
|
3228
3242
|
() => new Pe(e.value, null),
|
|
3229
3243
|
[() => e.value]
|
|
3230
|
-
), d =
|
|
3244
|
+
), d = I(), m = () => {
|
|
3231
3245
|
d.value = o.value.locLogo.renderedHtml;
|
|
3232
3246
|
};
|
|
3233
3247
|
return G(
|
|
@@ -3240,35 +3254,35 @@ const Nt = /* @__PURE__ */ g({
|
|
|
3240
3254
|
}
|
|
3241
3255
|
), E(() => {
|
|
3242
3256
|
n.value && (r.value.root = n.value);
|
|
3243
|
-
}),
|
|
3257
|
+
}), F(() => {
|
|
3244
3258
|
r.value && (r.value.root = void 0);
|
|
3245
|
-
}), (b, y) => (
|
|
3259
|
+
}), (b, y) => (a(), i("div", {
|
|
3246
3260
|
class: "svc-logo-image",
|
|
3247
3261
|
ref_key: "root",
|
|
3248
3262
|
ref: n
|
|
3249
3263
|
}, [
|
|
3250
|
-
|
|
3264
|
+
l("input", {
|
|
3251
3265
|
type: "file",
|
|
3252
3266
|
"aria-hidden": "true",
|
|
3253
3267
|
tabindex: "-1",
|
|
3254
3268
|
accept: s(r).acceptedTypes,
|
|
3255
3269
|
class: "svc-choose-file-input"
|
|
3256
|
-
}, null, 8,
|
|
3257
|
-
d.value ? p("", !0) : (
|
|
3258
|
-
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", {
|
|
3259
3273
|
key: 0,
|
|
3260
3274
|
class: "svc-logo-image-placeholder",
|
|
3261
3275
|
onClick: y[0] || (y[0] = (N) => s(r).chooseFile(s(r)))
|
|
3262
|
-
},
|
|
3276
|
+
}, Ba)), [
|
|
3263
3277
|
[s(D)]
|
|
3264
3278
|
]) : p("", !0)
|
|
3265
3279
|
], 64)),
|
|
3266
|
-
d.value && !s(r).isUploading ? (
|
|
3280
|
+
d.value && !s(r).isUploading ? (a(), i("div", {
|
|
3267
3281
|
key: 1,
|
|
3268
3282
|
class: _(s(r).containerCss)
|
|
3269
3283
|
}, [
|
|
3270
|
-
|
|
3271
|
-
|
|
3284
|
+
l("div", Ia, [
|
|
3285
|
+
C((a(), i("span", {
|
|
3272
3286
|
class: "svc-context-button",
|
|
3273
3287
|
onClick: y[1] || (y[1] = (N) => s(r).chooseFile(s(r))),
|
|
3274
3288
|
title: void 0,
|
|
@@ -3282,7 +3296,7 @@ const Nt = /* @__PURE__ */ g({
|
|
|
3282
3296
|
])), [
|
|
3283
3297
|
[s(D)]
|
|
3284
3298
|
]),
|
|
3285
|
-
|
|
3299
|
+
C((a(), i("span", {
|
|
3286
3300
|
class: "svc-context-button svc-context-button--danger",
|
|
3287
3301
|
onClick: y[2] || (y[2] = (N) => s(r).remove(s(r))),
|
|
3288
3302
|
title: void 0,
|
|
@@ -3302,15 +3316,15 @@ const Nt = /* @__PURE__ */ g({
|
|
|
3302
3316
|
data: o.value
|
|
3303
3317
|
}, null, 8, ["data"])
|
|
3304
3318
|
], 2)) : p("", !0),
|
|
3305
|
-
s(r).isUploading ? (
|
|
3319
|
+
s(r).isUploading ? (a(), i("div", Ea, [
|
|
3306
3320
|
v(s(c), { is: "sv-loading-indicator" })
|
|
3307
3321
|
])) : p("", !0)
|
|
3308
3322
|
], 512));
|
|
3309
3323
|
}
|
|
3310
|
-
}),
|
|
3324
|
+
}), Ra = {
|
|
3311
3325
|
key: 0,
|
|
3312
3326
|
class: "svc-search"
|
|
3313
|
-
},
|
|
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({
|
|
3314
3328
|
__name: "Search",
|
|
3315
3329
|
props: {
|
|
3316
3330
|
model: {}
|
|
@@ -3325,25 +3339,25 @@ const Nt = /* @__PURE__ */ g({
|
|
|
3325
3339
|
n.filterString = o;
|
|
3326
3340
|
}
|
|
3327
3341
|
});
|
|
3328
|
-
return (o, n) => o.model.isVisible ? (
|
|
3329
|
-
|
|
3342
|
+
return (o, n) => o.model.isVisible ? (a(), i("div", Ra, [
|
|
3343
|
+
l("div", Va, [
|
|
3330
3344
|
v(s(c), {
|
|
3331
3345
|
is: "sv-svg-icon",
|
|
3332
3346
|
iconName: "icon-search",
|
|
3333
3347
|
size: "auto"
|
|
3334
3348
|
})
|
|
3335
3349
|
]),
|
|
3336
|
-
|
|
3350
|
+
C(l("input", {
|
|
3337
3351
|
type: "text",
|
|
3338
3352
|
class: "svc-search__input",
|
|
3339
3353
|
"onUpdate:modelValue": n[0] || (n[0] = (r) => e.value = r),
|
|
3340
3354
|
"aria-label": o.model.filterStringPlaceholder,
|
|
3341
3355
|
placeholder: o.model.filterStringPlaceholder
|
|
3342
|
-
}, null, 8,
|
|
3356
|
+
}, null, 8, Aa), [
|
|
3343
3357
|
[de, e.value]
|
|
3344
3358
|
]),
|
|
3345
|
-
|
|
3346
|
-
|
|
3359
|
+
l("div", La, [
|
|
3360
|
+
l("div", za, $(o.model.matchCounterText), 1),
|
|
3347
3361
|
v(s(c), {
|
|
3348
3362
|
is: "sv-action-bar",
|
|
3349
3363
|
model: o.model.searchActionBar
|
|
@@ -3351,7 +3365,7 @@ const Nt = /* @__PURE__ */ g({
|
|
|
3351
3365
|
])
|
|
3352
3366
|
])) : p("", !0);
|
|
3353
3367
|
}
|
|
3354
|
-
}),
|
|
3368
|
+
}), Ka = ["title"], Ua = /* @__PURE__ */ g({
|
|
3355
3369
|
__name: "PageNavigator",
|
|
3356
3370
|
props: {
|
|
3357
3371
|
pagesController: {},
|
|
@@ -3361,7 +3375,7 @@ const Nt = /* @__PURE__ */ g({
|
|
|
3361
3375
|
const t = u, e = A(
|
|
3362
3376
|
() => new Re(t.pagesController, t.pageEditMode),
|
|
3363
3377
|
[() => t.pagesController, () => t.pageEditMode]
|
|
3364
|
-
), o =
|
|
3378
|
+
), o = I();
|
|
3365
3379
|
return E(() => {
|
|
3366
3380
|
if (t.pageEditMode !== "bypage") {
|
|
3367
3381
|
const n = o.value;
|
|
@@ -3371,14 +3385,14 @@ const Nt = /* @__PURE__ */ g({
|
|
|
3371
3385
|
o.value;
|
|
3372
3386
|
const n = e.value;
|
|
3373
3387
|
n.stopItemsContainerHeightObserver(), n.setScrollableContainer(void 0);
|
|
3374
|
-
}),
|
|
3388
|
+
}), F(() => {
|
|
3375
3389
|
e.value.dispose();
|
|
3376
|
-
}), (n, r) =>
|
|
3390
|
+
}), (n, r) => C((a(), i("div", {
|
|
3377
3391
|
class: "svc-page-navigator",
|
|
3378
3392
|
ref_key: "root",
|
|
3379
3393
|
ref: o
|
|
3380
3394
|
}, [
|
|
3381
|
-
|
|
3395
|
+
C((a(), i("div", {
|
|
3382
3396
|
role: "button",
|
|
3383
3397
|
class: _(["svc-page-navigator__selector svc-page-navigator__button", { "svc-page-navigator__button--pressed": s(e).isPopupOpened }]),
|
|
3384
3398
|
onClick: r[0] || (r[0] = (d) => s(e).togglePageSelector(d)),
|
|
@@ -3394,25 +3408,25 @@ const Nt = /* @__PURE__ */ g({
|
|
|
3394
3408
|
is: "sv-popup",
|
|
3395
3409
|
model: s(e).popupModel
|
|
3396
3410
|
}, null, 8, ["model"])
|
|
3397
|
-
], 10,
|
|
3411
|
+
], 10, Ka)), [
|
|
3398
3412
|
[s(D)]
|
|
3399
3413
|
]),
|
|
3400
|
-
|
|
3401
|
-
(
|
|
3414
|
+
l("div", null, [
|
|
3415
|
+
(a(!0), i(w, null, R(s(e).visibleItems, (d) => (a(), h(s(c), {
|
|
3402
3416
|
is: "svc-page-navigator-item",
|
|
3403
3417
|
key: d.id,
|
|
3404
3418
|
model: d
|
|
3405
3419
|
}, null, 8, ["model"]))), 128))
|
|
3406
3420
|
])
|
|
3407
3421
|
], 512)), [
|
|
3408
|
-
[
|
|
3422
|
+
[K, s(e).visible]
|
|
3409
3423
|
]);
|
|
3410
3424
|
}
|
|
3411
|
-
}),
|
|
3412
|
-
|
|
3413
|
-
],
|
|
3414
|
-
/* @__PURE__ */
|
|
3415
|
-
], -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({
|
|
3416
3430
|
__name: "PageNavigatorItem",
|
|
3417
3431
|
props: {
|
|
3418
3432
|
model: {}
|
|
@@ -3423,8 +3437,8 @@ const Nt = /* @__PURE__ */ g({
|
|
|
3423
3437
|
const e = (o) => {
|
|
3424
3438
|
t.model.action(), o.stopPropagation(), o.preventDefault();
|
|
3425
3439
|
};
|
|
3426
|
-
return (o, n) => (
|
|
3427
|
-
|
|
3440
|
+
return (o, n) => (a(), i("div", Ha, [
|
|
3441
|
+
C((a(), i("div", {
|
|
3428
3442
|
role: "button",
|
|
3429
3443
|
class: _(["svc-page-navigator-item-content", {
|
|
3430
3444
|
"svc-page-navigator-item--selected": o.model.active,
|
|
@@ -3432,20 +3446,20 @@ const Nt = /* @__PURE__ */ g({
|
|
|
3432
3446
|
}]),
|
|
3433
3447
|
onClick: n[0] || (n[0] = (r) => e(r))
|
|
3434
3448
|
}, [
|
|
3435
|
-
|
|
3449
|
+
l("div", {
|
|
3436
3450
|
class: "svc-page-navigator-item__dot",
|
|
3437
3451
|
title: o.model.title
|
|
3438
|
-
},
|
|
3439
|
-
|
|
3440
|
-
|
|
3441
|
-
|
|
3452
|
+
}, Ga, 8, Oa),
|
|
3453
|
+
l("div", Wa, [
|
|
3454
|
+
l("span", ja, $(o.model.title), 1),
|
|
3455
|
+
Ja
|
|
3442
3456
|
])
|
|
3443
3457
|
], 2)), [
|
|
3444
3458
|
[s(D)]
|
|
3445
3459
|
])
|
|
3446
3460
|
]));
|
|
3447
3461
|
}
|
|
3448
|
-
}),
|
|
3462
|
+
}), Xa = { class: "svc-question__dropdown-choices--wrapper" }, Ya = { class: "svc-question__dropdown-choices" }, xa = /* @__PURE__ */ g({
|
|
3449
3463
|
__name: "Dropdown",
|
|
3450
3464
|
props: {
|
|
3451
3465
|
model: {},
|
|
@@ -3460,10 +3474,10 @@ const Nt = /* @__PURE__ */ g({
|
|
|
3460
3474
|
data: t.element.getItemValueWrapperComponentData(n)
|
|
3461
3475
|
}
|
|
3462
3476
|
});
|
|
3463
|
-
return (n, r) => (
|
|
3464
|
-
|
|
3465
|
-
|
|
3466
|
-
(
|
|
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", {
|
|
3467
3481
|
key: d.value,
|
|
3468
3482
|
class: _(n.model.getChoiceCss())
|
|
3469
3483
|
}, [
|
|
@@ -3472,7 +3486,7 @@ const Nt = /* @__PURE__ */ g({
|
|
|
3472
3486
|
}, o(d)), null, 16, ["is"])
|
|
3473
3487
|
], 2))), 128))
|
|
3474
3488
|
]),
|
|
3475
|
-
n.model.needToCollapse ? (
|
|
3489
|
+
n.model.needToCollapse ? (a(), h(s(c), {
|
|
3476
3490
|
key: 0,
|
|
3477
3491
|
is: "svc-action-button",
|
|
3478
3492
|
text: n.model.getButtonText(),
|
|
@@ -3482,7 +3496,7 @@ const Nt = /* @__PURE__ */ g({
|
|
|
3482
3496
|
])
|
|
3483
3497
|
]));
|
|
3484
3498
|
}
|
|
3485
|
-
}),
|
|
3499
|
+
}), el = /* @__PURE__ */ g({
|
|
3486
3500
|
__name: "QuestionDropdown",
|
|
3487
3501
|
props: {
|
|
3488
3502
|
componentName: {},
|
|
@@ -3494,7 +3508,7 @@ const Nt = /* @__PURE__ */ g({
|
|
|
3494
3508
|
t.componentData.element,
|
|
3495
3509
|
null
|
|
3496
3510
|
);
|
|
3497
|
-
return (o, n) => (
|
|
3511
|
+
return (o, n) => (a(), h(oe, {
|
|
3498
3512
|
"create-model": e,
|
|
3499
3513
|
element: o.componentData.element,
|
|
3500
3514
|
"component-name": o.componentName,
|
|
@@ -3502,7 +3516,7 @@ const Nt = /* @__PURE__ */ g({
|
|
|
3502
3516
|
"adorner-component": "svc-dropdown-question-adorner"
|
|
3503
3517
|
}, null, 8, ["element", "component-name", "component-data"]));
|
|
3504
3518
|
}
|
|
3505
|
-
}),
|
|
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({
|
|
3506
3520
|
__name: "CellQuestionDropdown",
|
|
3507
3521
|
props: {
|
|
3508
3522
|
componentName: {},
|
|
@@ -3511,19 +3525,19 @@ const Nt = /* @__PURE__ */ g({
|
|
|
3511
3525
|
setup(u) {
|
|
3512
3526
|
const t = u, e = k(
|
|
3513
3527
|
() => t.componentData.element
|
|
3514
|
-
), o = (r) => e.value.getItemValueWrapperComponentName(r) ||
|
|
3515
|
-
componentName:
|
|
3528
|
+
), o = (r) => e.value.getItemValueWrapperComponentName(r) || le, n = (r) => ({
|
|
3529
|
+
componentName: le,
|
|
3516
3530
|
componentData: {
|
|
3517
3531
|
question: e.value,
|
|
3518
3532
|
item: r,
|
|
3519
3533
|
data: e.value.getItemValueWrapperComponentData(r)
|
|
3520
3534
|
}
|
|
3521
3535
|
});
|
|
3522
|
-
return f(() => e.value), (r, d) => (
|
|
3523
|
-
|
|
3536
|
+
return f(() => e.value), (r, d) => (a(), i("div", ol, [
|
|
3537
|
+
l("div", sl, [
|
|
3524
3538
|
v(s(c), V({ is: r.componentName }, r.componentData), null, 16, ["is"]),
|
|
3525
|
-
|
|
3526
|
-
(
|
|
3539
|
+
l("div", tl, [
|
|
3540
|
+
(a(!0), i(w, null, R(e.value.visibleChoices, (m) => (a(), i("div", {
|
|
3527
3541
|
key: m.value,
|
|
3528
3542
|
class: "svc-question__dropdown-choice"
|
|
3529
3543
|
}, [
|
|
@@ -3535,25 +3549,25 @@ const Nt = /* @__PURE__ */ g({
|
|
|
3535
3549
|
])
|
|
3536
3550
|
]));
|
|
3537
3551
|
}
|
|
3538
|
-
}),
|
|
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 = {
|
|
3539
3553
|
key: 1,
|
|
3540
3554
|
class: "svc-panel__placeholder_frame"
|
|
3541
|
-
},
|
|
3555
|
+
}, pl = /* @__PURE__ */ l("div", {
|
|
3542
3556
|
class: "svc-panel__placeholder",
|
|
3543
3557
|
"data-bind": "text: placeholderText"
|
|
3544
|
-
}, null, -1),
|
|
3545
|
-
|
|
3546
|
-
],
|
|
3558
|
+
}, null, -1), vl = [
|
|
3559
|
+
pl
|
|
3560
|
+
], ml = { class: "svc-question__content-actions" }, _l = {
|
|
3547
3561
|
key: 0,
|
|
3548
3562
|
class: "svc-panel__placeholder_frame"
|
|
3549
|
-
},
|
|
3563
|
+
}, gl = { class: "svc-panel__placeholder" }, bl = /* @__PURE__ */ g({
|
|
3550
3564
|
__name: "CustomWidget",
|
|
3551
3565
|
props: {
|
|
3552
3566
|
componentName: {},
|
|
3553
3567
|
componentData: {}
|
|
3554
3568
|
},
|
|
3555
3569
|
setup(u) {
|
|
3556
|
-
const t = u, e =
|
|
3570
|
+
const t = u, e = I(), o = A(
|
|
3557
3571
|
() => new ee(
|
|
3558
3572
|
t.componentData.data,
|
|
3559
3573
|
t.componentData.element,
|
|
@@ -3568,7 +3582,7 @@ const Nt = /* @__PURE__ */ g({
|
|
|
3568
3582
|
e.value && o.value && (o.value.rootElement = e.value);
|
|
3569
3583
|
}), E(() => {
|
|
3570
3584
|
e.value && o.value && (o.value.rootElement = e.value);
|
|
3571
|
-
}), (n, r) => s(o) ? (
|
|
3585
|
+
}), (n, r) => s(o) ? (a(), i("div", {
|
|
3572
3586
|
key: 0,
|
|
3573
3587
|
class: _(["svc-question__adorner", s(o).rootCss()]),
|
|
3574
3588
|
onMouseover: r[2] || (r[2] = (d) => s(o).hover(d, d.currentTarget)),
|
|
@@ -3577,17 +3591,17 @@ const Nt = /* @__PURE__ */ g({
|
|
|
3577
3591
|
ref_key: "root",
|
|
3578
3592
|
ref: e
|
|
3579
3593
|
}, [
|
|
3580
|
-
s(o).element.isInteractiveDesignElement ?
|
|
3594
|
+
s(o).element.isInteractiveDesignElement ? C((a(), i("div", {
|
|
3581
3595
|
key: 0,
|
|
3582
3596
|
class: _(["svc-question__content", s(o).css()]),
|
|
3583
3597
|
onClick: r[1] || (r[1] = (d) => s(o).select(s(o), d)),
|
|
3584
3598
|
"data-bind": "clickBubble: false"
|
|
3585
3599
|
}, [
|
|
3586
|
-
|
|
3587
|
-
|
|
3588
|
-
|
|
3589
|
-
|
|
3590
|
-
s(o).allowDragging ? (
|
|
3600
|
+
ll,
|
|
3601
|
+
il,
|
|
3602
|
+
rl,
|
|
3603
|
+
dl,
|
|
3604
|
+
s(o).allowDragging ? (a(), i("div", {
|
|
3591
3605
|
key: 0,
|
|
3592
3606
|
class: "svc-question__drag-area",
|
|
3593
3607
|
onPointerdown: r[0] || (r[0] = (d) => s(o).onPointerDown(d))
|
|
@@ -3599,11 +3613,11 @@ const Nt = /* @__PURE__ */ g({
|
|
|
3599
3613
|
size: "auto"
|
|
3600
3614
|
})
|
|
3601
3615
|
], 32)) : p("", !0),
|
|
3602
|
-
|
|
3616
|
+
l("div", cl, [
|
|
3603
3617
|
v(s(c), V({ is: n.componentName }, n.componentData), null, 16, ["is"])
|
|
3604
3618
|
]),
|
|
3605
|
-
s(o).isEmptyElement ? (
|
|
3606
|
-
|
|
3619
|
+
s(o).isEmptyElement ? (a(), i("div", ul, vl)) : p("", !0),
|
|
3620
|
+
l("div", ml, [
|
|
3607
3621
|
v(s(c), {
|
|
3608
3622
|
is: "sv-action-bar",
|
|
3609
3623
|
model: s(o).actionContainer,
|
|
@@ -3613,24 +3627,24 @@ const Nt = /* @__PURE__ */ g({
|
|
|
3613
3627
|
], 2)), [
|
|
3614
3628
|
[s(D)]
|
|
3615
3629
|
]) : p("", !0),
|
|
3616
|
-
s(o).element.isInteractiveDesignElement ? p("", !0) : (
|
|
3630
|
+
s(o).element.isInteractiveDesignElement ? p("", !0) : (a(), i(w, { key: 1 }, [
|
|
3617
3631
|
v(s(c), V({ is: n.componentName }, n.componentData), null, 16, ["is"]),
|
|
3618
|
-
s(o).isEmptyElement ? (
|
|
3619
|
-
|
|
3632
|
+
s(o).isEmptyElement ? (a(), i("div", _l, [
|
|
3633
|
+
l("div", gl, $(s(o).placeholderText), 1)
|
|
3620
3634
|
])) : p("", !0)
|
|
3621
3635
|
], 64))
|
|
3622
|
-
], 42,
|
|
3636
|
+
], 42, al)) : p("", !0);
|
|
3623
3637
|
}
|
|
3624
|
-
}),
|
|
3638
|
+
}), yl = { class: "svc-carry-forward-panel-wrapper" }, hl = { class: "svc-carry-forward-panel" }, ql = { class: "svc-carry-forward-panel__link" }, Cl = /* @__PURE__ */ g({
|
|
3625
3639
|
__name: "QuestionBanner",
|
|
3626
3640
|
props: {
|
|
3627
3641
|
model: {}
|
|
3628
3642
|
},
|
|
3629
3643
|
setup(u) {
|
|
3630
|
-
return (t, e) => (
|
|
3631
|
-
|
|
3632
|
-
|
|
3633
|
-
|
|
3644
|
+
return (t, e) => (a(), i("div", yl, [
|
|
3645
|
+
l("div", hl, [
|
|
3646
|
+
l("span", null, $(t.model.text) + $(" "), 1),
|
|
3647
|
+
l("span", ql, [
|
|
3634
3648
|
v(s(c), {
|
|
3635
3649
|
is: "svc-action-button",
|
|
3636
3650
|
text: t.model.actionText,
|
|
@@ -3641,20 +3655,20 @@ const Nt = /* @__PURE__ */ g({
|
|
|
3641
3655
|
]));
|
|
3642
3656
|
}
|
|
3643
3657
|
});
|
|
3644
|
-
function
|
|
3658
|
+
function kl(u, t, e) {
|
|
3645
3659
|
u(t, e);
|
|
3646
3660
|
}
|
|
3647
3661
|
function pe(u) {
|
|
3648
|
-
const t =
|
|
3662
|
+
const t = kl.bind(
|
|
3649
3663
|
void 0,
|
|
3650
3664
|
u
|
|
3651
3665
|
);
|
|
3652
|
-
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",
|
|
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);
|
|
3653
3667
|
}
|
|
3654
3668
|
pe(
|
|
3655
3669
|
(u, t) => ie.Instance.registerComponent(u, t)
|
|
3656
3670
|
);
|
|
3657
|
-
const
|
|
3671
|
+
const Dl = {
|
|
3658
3672
|
install(u) {
|
|
3659
3673
|
u.component("SurveyCreatorComponent", je), pe((t, e) => {
|
|
3660
3674
|
u.component(t, e), ie.Instance.registerComponent(t, t);
|
|
@@ -3663,5 +3677,5 @@ const Na = {
|
|
|
3663
3677
|
};
|
|
3664
3678
|
export {
|
|
3665
3679
|
je as SurveyCreatorComponent,
|
|
3666
|
-
|
|
3680
|
+
Dl as surveyCreatorPlugin
|
|
3667
3681
|
};
|