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