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