@wg-npm/survey-creator 0.3.13 → 0.3.377-8.develop
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/dist/survey-creator.esm.js +893 -667
- package/package.json +5 -5
- package/src/components/common/question/evaluation/expr-if.vue +55 -30
- package/src/components/editor/forms/evaluation/expr/auto.vue +1 -1
- package/src/components/editor/forms/evaluation/expr/condition.vue +61 -48
- package/src/components/editor/forms/evaluation/expr/if.vue +252 -164
- package/src/components/editor/forms/evaluation/expr/score.vue +135 -0
- package/src/locale/index.ts +1 -1
- package/src/locale/lang/en-US.ts +174 -170
- package/src/locale/lang/zh-CN.ts +174 -171
|
@@ -6,178 +6,183 @@ import draggable from 'vuedraggable';
|
|
|
6
6
|
|
|
7
7
|
var defaultLang = {
|
|
8
8
|
survey_creator: {
|
|
9
|
-
locale:
|
|
9
|
+
locale: "zh-CN",
|
|
10
10
|
common: {
|
|
11
|
-
back: "
|
|
12
|
-
save: "
|
|
13
|
-
copy: "
|
|
14
|
-
cancel: "
|
|
15
|
-
operation: "
|
|
16
|
-
delete: "
|
|
11
|
+
back: "返回",
|
|
12
|
+
save: "保存",
|
|
13
|
+
copy: "复制",
|
|
14
|
+
cancel: "取消",
|
|
15
|
+
operation: "操作",
|
|
16
|
+
delete: "删除",
|
|
17
17
|
languages: {
|
|
18
18
|
"zh-CN": "简体中文",
|
|
19
19
|
"zh-TW": "繁体中文",
|
|
20
|
-
"en-US": "English"
|
|
20
|
+
"en-US": "English",
|
|
21
21
|
},
|
|
22
22
|
layout: {
|
|
23
|
-
HORIZONTAL: "
|
|
24
|
-
VERTICAL: "
|
|
23
|
+
HORIZONTAL: "水平",
|
|
24
|
+
VERTICAL: "垂直",
|
|
25
25
|
},
|
|
26
26
|
settings: {
|
|
27
|
-
translate: "
|
|
28
|
-
preview: "
|
|
27
|
+
translate: "多语言翻译",
|
|
28
|
+
preview: "预览",
|
|
29
29
|
},
|
|
30
30
|
tips: {
|
|
31
|
-
edit: "
|
|
32
|
-
copy: "
|
|
33
|
-
delete: "
|
|
34
|
-
please_input_answer: "
|
|
31
|
+
edit: "编辑",
|
|
32
|
+
copy: "复制",
|
|
33
|
+
delete: "删除",
|
|
34
|
+
please_input_answer: "请输入回答",
|
|
35
35
|
},
|
|
36
36
|
tab: {
|
|
37
|
-
question_setting: "
|
|
38
|
-
language: "
|
|
39
|
-
}
|
|
37
|
+
question_setting: "题目设置",
|
|
38
|
+
language: "多语言翻译",
|
|
39
|
+
},
|
|
40
40
|
},
|
|
41
41
|
survey: {
|
|
42
|
-
question_count: "
|
|
43
|
-
total_score: "
|
|
44
|
-
layout: "
|
|
42
|
+
question_count: "题目数",
|
|
43
|
+
total_score: "总配分",
|
|
44
|
+
layout: "布局",
|
|
45
45
|
},
|
|
46
46
|
question: {
|
|
47
|
-
no_data: "
|
|
48
|
-
create: "
|
|
49
|
-
max_score: "
|
|
50
|
-
star_single: "
|
|
51
|
-
star_multi_prefix: "
|
|
52
|
-
star_multi_suffix: "
|
|
53
|
-
type: "
|
|
47
|
+
no_data: "还未创建题目",
|
|
48
|
+
create: "新增题目",
|
|
49
|
+
max_score: "最高分值:",
|
|
50
|
+
star_single: "此题计星",
|
|
51
|
+
star_multi_prefix: "当选择",
|
|
52
|
+
star_multi_suffix: "项及以上时计星",
|
|
53
|
+
type: "题型",
|
|
54
54
|
types: {
|
|
55
|
-
SINGLE_SELECTION: "
|
|
56
|
-
MULTI_SELECTION: "
|
|
57
|
-
FILL_BLANK: "
|
|
58
|
-
SHORT_ANSWER: "
|
|
59
|
-
MATRIX: "
|
|
60
|
-
TEXT_TITLE: "
|
|
61
|
-
EVALUATION: "
|
|
55
|
+
SINGLE_SELECTION: "单选题",
|
|
56
|
+
MULTI_SELECTION: "多选题",
|
|
57
|
+
FILL_BLANK: "填空题",
|
|
58
|
+
SHORT_ANSWER: "简答题",
|
|
59
|
+
MATRIX: "分数量表",
|
|
60
|
+
TEXT_TITLE: "文字说明",
|
|
61
|
+
EVALUATION: "统计题",
|
|
62
62
|
},
|
|
63
|
-
optional: "
|
|
64
|
-
sub_questions:
|
|
65
|
-
score: "
|
|
66
|
-
scores: "
|
|
67
|
-
questionRequired: "
|
|
68
|
-
titleRequiredTip: "
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
63
|
+
optional: "选项",
|
|
64
|
+
sub_questions: "子题",
|
|
65
|
+
score: "分值",
|
|
66
|
+
scores: "分",
|
|
67
|
+
questionRequired: "此题必填",
|
|
68
|
+
titleRequiredTip: "请填写题目名称",
|
|
69
|
+
textTitleRequiredTip: "请填写文字说明",
|
|
70
|
+
scoreRequiredTip: "分值不能为空",
|
|
71
|
+
subQuestionRequiredTip: "子題不能为空",
|
|
72
|
+
optionalRequiredTip: "选项不能为空",
|
|
73
|
+
commitRequiredTip: "描述不能为空",
|
|
74
|
+
levelRequiredTip: "等级不能为空",
|
|
75
|
+
addItem: "新增子题",
|
|
76
|
+
noQuestion: "还未添加题目!",
|
|
77
|
+
noQuestionTip: "新增题目请按右上角「新增题目按钮」",
|
|
78
|
+
wordCountLimit: "字数限制",
|
|
79
|
+
multi_selection: "多选题",
|
|
80
|
+
single_selection: "单选题",
|
|
81
|
+
remote_selection: "单选题",
|
|
82
|
+
short_answer: "简答题",
|
|
83
|
+
fill_blank: "填空题",
|
|
84
|
+
matrix: "分数量表",
|
|
85
|
+
text_title: "文字说明",
|
|
86
|
+
group: "题组",
|
|
87
|
+
level: "量表范围",
|
|
88
|
+
matrixLevel1: "非常不同意",
|
|
89
|
+
matrixLevel2: "不同意",
|
|
90
|
+
matrixLevel3: "部分同意",
|
|
91
|
+
matrixLevel4: "同意",
|
|
92
|
+
matrixLevel5: "非常同意",
|
|
92
93
|
scoreErrorTip: "分值只能填写1000以内两位小数",
|
|
93
|
-
notEmpty: "
|
|
94
|
-
pleaseEnter: "
|
|
95
|
-
wordsLimit: "
|
|
96
|
-
noDesc: "
|
|
97
|
-
noSubDesc: "
|
|
98
|
-
noQuestionDesc: "
|
|
99
|
-
unSave: "
|
|
100
|
-
surveyConfirmContent: "
|
|
101
|
-
unSaveConfirm: "
|
|
102
|
-
scoringEnabled: "
|
|
103
|
-
starEnabled: "
|
|
104
|
-
optionalStarTip: "
|
|
105
|
-
starLeastOneTip: "
|
|
106
|
-
starMinCountPrefix: "
|
|
107
|
-
starMinCountSuffix: "
|
|
108
|
-
maxScore: "
|
|
109
|
-
enableMultiSelect: "
|
|
94
|
+
notEmpty: "不能为空",
|
|
95
|
+
pleaseEnter: "请填写",
|
|
96
|
+
wordsLimit: "字数限制:",
|
|
97
|
+
noDesc: "无选项描述",
|
|
98
|
+
noSubDesc: "暂无子题描述",
|
|
99
|
+
noQuestionDesc: "暂无题目描述",
|
|
100
|
+
unSave: "未保存",
|
|
101
|
+
surveyConfirmContent: "确认要提交?提交后问卷即锁定不可再修改!",
|
|
102
|
+
unSaveConfirm: "有未保存的题目,确定要返回吗?",
|
|
103
|
+
scoringEnabled: "此题占分",
|
|
104
|
+
starEnabled: "此题计星",
|
|
105
|
+
optionalStarTip: "此项得星",
|
|
106
|
+
starLeastOneTip: "至少一项得星",
|
|
107
|
+
starMinCountPrefix: "当选择",
|
|
108
|
+
starMinCountSuffix: "项及以上时计星",
|
|
109
|
+
maxScore: "最高分值:",
|
|
110
|
+
enableMultiSelect: "可复选",
|
|
110
111
|
evaluation: {
|
|
111
112
|
level: {
|
|
112
|
-
"1": "
|
|
113
|
-
"2": "
|
|
114
|
-
"3": "
|
|
115
|
-
"4": "
|
|
116
|
-
"5": "
|
|
113
|
+
"1": "好",
|
|
114
|
+
"2": "较好",
|
|
115
|
+
"3": "一般",
|
|
116
|
+
"4": "较差",
|
|
117
|
+
"5": "差",
|
|
117
118
|
},
|
|
118
119
|
type: {
|
|
119
|
-
STAR: "
|
|
120
|
-
EXPR: "
|
|
120
|
+
STAR: "计星",
|
|
121
|
+
EXPR: "条件判断",
|
|
121
122
|
},
|
|
122
|
-
levelNameLabel: "
|
|
123
|
-
levelLabel: "
|
|
124
|
-
selectedType: "
|
|
123
|
+
levelNameLabel: "评价等级",
|
|
124
|
+
levelLabel: "评价标准",
|
|
125
|
+
selectedType: "统计方式",
|
|
125
126
|
desc: {
|
|
126
|
-
atPoint: "{0}
|
|
127
|
-
inRange: "{0}-{1}
|
|
128
|
-
outOfRange: "{0}
|
|
127
|
+
atPoint: "{0}星",
|
|
128
|
+
inRange: "{0}-{1}星",
|
|
129
|
+
outOfRange: "{0}星以上",
|
|
129
130
|
},
|
|
130
131
|
condition: {
|
|
131
|
-
if: "
|
|
132
|
-
else: "
|
|
133
|
-
add_if_template: "
|
|
134
|
-
requirements: "
|
|
132
|
+
if: "如果",
|
|
133
|
+
else: "否则",
|
|
134
|
+
add_if_template: "添加如果模板",
|
|
135
|
+
requirements: "满足条件",
|
|
136
|
+
score_condition_title: "总分数范围为",
|
|
135
137
|
type: {
|
|
136
|
-
ASSIGN: "
|
|
137
|
-
AUTO: "
|
|
138
|
+
ASSIGN: "题目范围为__的结果为__的数量__",
|
|
139
|
+
AUTO: "题目范围为__的结果为__",
|
|
140
|
+
SCORE: "总分数范围为__",
|
|
138
141
|
},
|
|
139
|
-
evaluation_label: "
|
|
140
|
-
evaluation_require_tip: "
|
|
141
|
-
question: "
|
|
142
|
-
question_scope: "
|
|
143
|
-
question_result: "
|
|
144
|
-
question_count: "
|
|
145
|
-
choose_result: "
|
|
146
|
-
operator: "
|
|
147
|
-
other: "
|
|
148
|
-
assign_template: `{0}
|
|
149
|
-
auto_template: `{0}
|
|
150
|
-
|
|
142
|
+
evaluation_label: "设置总体评价为",
|
|
143
|
+
evaluation_require_tip: "总体评价不能为空",
|
|
144
|
+
question: "题目",
|
|
145
|
+
question_scope: "题目范围",
|
|
146
|
+
question_result: "的结果为",
|
|
147
|
+
question_count: "的数量",
|
|
148
|
+
choose_result: "选择结果",
|
|
149
|
+
operator: "运算符",
|
|
150
|
+
other: "其他",
|
|
151
|
+
assign_template: `{0} 项为 {1} {2} {3}项`,
|
|
152
|
+
auto_template: `{0} 项为 {1}`,
|
|
153
|
+
score_template: `总分数范围为: {0}分{1}, {2}分`,
|
|
154
|
+
},
|
|
151
155
|
},
|
|
152
156
|
},
|
|
153
157
|
page: {
|
|
154
|
-
question: "
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
158
|
+
question: "题目",
|
|
159
|
+
textTitle: "说明",
|
|
160
|
+
subQuestion: "子题",
|
|
161
|
+
matrixQuestion: "主题标题",
|
|
162
|
+
count: "题目数",
|
|
163
|
+
arrangement: "选项排列",
|
|
164
|
+
horizontal: "横向",
|
|
165
|
+
vertical: "纵向",
|
|
166
|
+
totalScore: "总配分",
|
|
162
167
|
},
|
|
163
168
|
translator: {
|
|
164
|
-
save: "
|
|
165
|
-
cancel: "
|
|
169
|
+
save: "保存",
|
|
170
|
+
cancel: "取消",
|
|
166
171
|
table: {
|
|
167
|
-
header_type: "
|
|
168
|
-
header_primary_name: "
|
|
172
|
+
header_type: "类型",
|
|
173
|
+
header_primary_name: "(默认语言)",
|
|
169
174
|
header_zhCn: "简体中文",
|
|
170
175
|
header_enUs: "English",
|
|
171
176
|
header_zhTw: "繁体中文",
|
|
172
|
-
}
|
|
177
|
+
},
|
|
173
178
|
},
|
|
174
179
|
message: {
|
|
175
|
-
saveSuccess: "
|
|
176
|
-
saveFailed: "
|
|
177
|
-
surveyLocaleNoSettingCompleted: "
|
|
178
|
-
noSettingLocale: "
|
|
179
|
-
}
|
|
180
|
-
}
|
|
180
|
+
saveSuccess: "保存成功",
|
|
181
|
+
saveFailed: "保存失败",
|
|
182
|
+
surveyLocaleNoSettingCompleted: "问卷题目翻译不完全,是否继续?",
|
|
183
|
+
noSettingLocale: "未设置多国语言!",
|
|
184
|
+
},
|
|
185
|
+
},
|
|
181
186
|
};
|
|
182
187
|
|
|
183
188
|
let lang = defaultLang;
|
|
@@ -621,7 +626,7 @@ const questionTypes = [
|
|
|
621
626
|
"TEXT_TITLE",
|
|
622
627
|
"EVALUATION",
|
|
623
628
|
];
|
|
624
|
-
var script$
|
|
629
|
+
var script$H = Vue.extend({
|
|
625
630
|
name: "create-question-dropdown",
|
|
626
631
|
mixins: [LocaleMixin],
|
|
627
632
|
inject: ["$rootComponent"],
|
|
@@ -714,20 +719,20 @@ function normalizeComponent(template, style, script, scopeId, isFunctionalTempla
|
|
|
714
719
|
}
|
|
715
720
|
|
|
716
721
|
/* script */
|
|
717
|
-
const __vue_script__$
|
|
722
|
+
const __vue_script__$H = script$H;
|
|
718
723
|
|
|
719
724
|
/* template */
|
|
720
|
-
var __vue_render__$
|
|
721
|
-
var __vue_staticRenderFns__$
|
|
725
|
+
var __vue_render__$H = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('Dropdown',{attrs:{"transfer":true}},[_c('Button',{attrs:{"icon":"md-add","type":"primary"}},[_vm._v(_vm._s(_vm.t('survey_creator.question.create')))]),_vm._v(" "),_c('DropdownMenu',{attrs:{"slot":"list"},slot:"list"},_vm._l((_vm.questionTypes),function(questionType){return _c('DropdownItem',{key:questionType,staticClass:"dropdown_item",nativeOn:{"click":function($event){return _vm.onCreate(questionType)}}},[_vm._v(_vm._s(_vm.t(("survey_creator.question.types." + questionType))))])}),1)],1)};
|
|
726
|
+
var __vue_staticRenderFns__$H = [];
|
|
722
727
|
|
|
723
728
|
/* style */
|
|
724
|
-
const __vue_inject_styles__$
|
|
729
|
+
const __vue_inject_styles__$H = undefined;
|
|
725
730
|
/* scoped */
|
|
726
|
-
const __vue_scope_id__$
|
|
731
|
+
const __vue_scope_id__$H = undefined;
|
|
727
732
|
/* module identifier */
|
|
728
|
-
const __vue_module_identifier__$
|
|
733
|
+
const __vue_module_identifier__$H = undefined;
|
|
729
734
|
/* functional template */
|
|
730
|
-
const __vue_is_functional_template__$
|
|
735
|
+
const __vue_is_functional_template__$H = false;
|
|
731
736
|
/* style inject */
|
|
732
737
|
|
|
733
738
|
/* style inject SSR */
|
|
@@ -736,20 +741,22 @@ var __vue_staticRenderFns__$G = [];
|
|
|
736
741
|
|
|
737
742
|
|
|
738
743
|
|
|
739
|
-
const __vue_component__$
|
|
740
|
-
{ render: __vue_render__$
|
|
741
|
-
__vue_inject_styles__$
|
|
742
|
-
__vue_script__$
|
|
743
|
-
__vue_scope_id__$
|
|
744
|
-
__vue_is_functional_template__$
|
|
745
|
-
__vue_module_identifier__$
|
|
744
|
+
const __vue_component__$H = /*#__PURE__*/normalizeComponent(
|
|
745
|
+
{ render: __vue_render__$H, staticRenderFns: __vue_staticRenderFns__$H },
|
|
746
|
+
__vue_inject_styles__$H,
|
|
747
|
+
__vue_script__$H,
|
|
748
|
+
__vue_scope_id__$H,
|
|
749
|
+
__vue_is_functional_template__$H,
|
|
750
|
+
__vue_module_identifier__$H,
|
|
746
751
|
false,
|
|
747
752
|
undefined,
|
|
748
753
|
undefined,
|
|
749
754
|
undefined
|
|
750
755
|
);
|
|
751
756
|
|
|
752
|
-
var
|
|
757
|
+
var CreateQuestionDropdown = __vue_component__$H;
|
|
758
|
+
|
|
759
|
+
var script$G = Vue.extend({
|
|
753
760
|
name: "change-language",
|
|
754
761
|
mixins: [LocaleMixin],
|
|
755
762
|
inject: ["$rootComponent"],
|
|
@@ -774,20 +781,20 @@ var script$F = Vue.extend({
|
|
|
774
781
|
});
|
|
775
782
|
|
|
776
783
|
/* script */
|
|
777
|
-
const __vue_script__$
|
|
784
|
+
const __vue_script__$G = script$G;
|
|
778
785
|
|
|
779
786
|
/* template */
|
|
780
|
-
var __vue_render__$
|
|
781
|
-
var __vue_staticRenderFns__$
|
|
787
|
+
var __vue_render__$G = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('Dropdown',[_c('Button',{attrs:{"type":"primary"}},[_vm._v("\n "+_vm._s(_vm.t(("survey_creator.common.languages." + (this.language))))+"\n "),_c('Icon',{attrs:{"type":"ios-arrow-down"}})],1),_vm._v(" "),_c('DropdownMenu',{attrs:{"slot":"list"},slot:"list"},_vm._l((_vm.languages),function(language){return _c('DropdownItem',{key:language,attrs:{"transfer":true},nativeOn:{"click":function($event){return _vm.onChangeLanguage(language)}}},[_vm._v(_vm._s(_vm.t(("survey_creator.common.languages." + language))))])}),1)],1)};
|
|
788
|
+
var __vue_staticRenderFns__$G = [];
|
|
782
789
|
|
|
783
790
|
/* style */
|
|
784
|
-
const __vue_inject_styles__$
|
|
791
|
+
const __vue_inject_styles__$G = undefined;
|
|
785
792
|
/* scoped */
|
|
786
|
-
const __vue_scope_id__$
|
|
793
|
+
const __vue_scope_id__$G = undefined;
|
|
787
794
|
/* module identifier */
|
|
788
|
-
const __vue_module_identifier__$
|
|
795
|
+
const __vue_module_identifier__$G = undefined;
|
|
789
796
|
/* functional template */
|
|
790
|
-
const __vue_is_functional_template__$
|
|
797
|
+
const __vue_is_functional_template__$G = false;
|
|
791
798
|
/* style inject */
|
|
792
799
|
|
|
793
800
|
/* style inject SSR */
|
|
@@ -796,24 +803,26 @@ var __vue_staticRenderFns__$F = [];
|
|
|
796
803
|
|
|
797
804
|
|
|
798
805
|
|
|
799
|
-
const __vue_component__$
|
|
800
|
-
{ render: __vue_render__$
|
|
801
|
-
__vue_inject_styles__$
|
|
802
|
-
__vue_script__$
|
|
803
|
-
__vue_scope_id__$
|
|
804
|
-
__vue_is_functional_template__$
|
|
805
|
-
__vue_module_identifier__$
|
|
806
|
+
const __vue_component__$G = /*#__PURE__*/normalizeComponent(
|
|
807
|
+
{ render: __vue_render__$G, staticRenderFns: __vue_staticRenderFns__$G },
|
|
808
|
+
__vue_inject_styles__$G,
|
|
809
|
+
__vue_script__$G,
|
|
810
|
+
__vue_scope_id__$G,
|
|
811
|
+
__vue_is_functional_template__$G,
|
|
812
|
+
__vue_module_identifier__$G,
|
|
806
813
|
false,
|
|
807
814
|
undefined,
|
|
808
815
|
undefined,
|
|
809
816
|
undefined
|
|
810
817
|
);
|
|
811
818
|
|
|
812
|
-
var
|
|
819
|
+
var ChangeLanguage = __vue_component__$G;
|
|
820
|
+
|
|
821
|
+
var script$F = Vue.extend({
|
|
813
822
|
name: 'toolbar',
|
|
814
823
|
mixins: [LocaleMixin],
|
|
815
824
|
inject: ['$rootComponent'],
|
|
816
|
-
components: { Row, Col, Button, CreateQuestionDropdown
|
|
825
|
+
components: { Row, Col, Button, CreateQuestionDropdown, ChangeLanguage },
|
|
817
826
|
props: {
|
|
818
827
|
survey: {
|
|
819
828
|
type: Object,
|
|
@@ -848,20 +857,20 @@ var script$E = Vue.extend({
|
|
|
848
857
|
});
|
|
849
858
|
|
|
850
859
|
/* script */
|
|
851
|
-
const __vue_script__$
|
|
860
|
+
const __vue_script__$F = script$F;
|
|
852
861
|
|
|
853
862
|
/* template */
|
|
854
|
-
var __vue_render__$
|
|
855
|
-
var __vue_staticRenderFns__$
|
|
863
|
+
var __vue_render__$F = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('Row',{staticClass:"toolbar-wrapper",attrs:{"type":"flex","justify":"end","align":"middle","gutter":20}},[(_vm.preview)?_c('Col',[_c('Button',{attrs:{"icon":"ios-search","type":"primary"},on:{"click":this.$rootComponent.onPreview}},[_vm._v(_vm._s(_vm.t('survey_creator.common.settings.preview'))+"\n ")])],1):_vm._e(),_vm._v(" "),(_vm.changeLanguage)?_c('Col',[_c('change-language',{attrs:{"languages":_vm.survey.options.languages}})],1):_vm._e()],1)};
|
|
864
|
+
var __vue_staticRenderFns__$F = [];
|
|
856
865
|
|
|
857
866
|
/* style */
|
|
858
|
-
const __vue_inject_styles__$
|
|
867
|
+
const __vue_inject_styles__$F = undefined;
|
|
859
868
|
/* scoped */
|
|
860
|
-
const __vue_scope_id__$
|
|
869
|
+
const __vue_scope_id__$F = undefined;
|
|
861
870
|
/* module identifier */
|
|
862
|
-
const __vue_module_identifier__$
|
|
871
|
+
const __vue_module_identifier__$F = undefined;
|
|
863
872
|
/* functional template */
|
|
864
|
-
const __vue_is_functional_template__$
|
|
873
|
+
const __vue_is_functional_template__$F = false;
|
|
865
874
|
/* style inject */
|
|
866
875
|
|
|
867
876
|
/* style inject SSR */
|
|
@@ -870,20 +879,22 @@ var __vue_staticRenderFns__$E = [];
|
|
|
870
879
|
|
|
871
880
|
|
|
872
881
|
|
|
873
|
-
const __vue_component__$
|
|
874
|
-
{ render: __vue_render__$
|
|
875
|
-
__vue_inject_styles__$
|
|
876
|
-
__vue_script__$
|
|
877
|
-
__vue_scope_id__$
|
|
878
|
-
__vue_is_functional_template__$
|
|
879
|
-
__vue_module_identifier__$
|
|
882
|
+
const __vue_component__$F = /*#__PURE__*/normalizeComponent(
|
|
883
|
+
{ render: __vue_render__$F, staticRenderFns: __vue_staticRenderFns__$F },
|
|
884
|
+
__vue_inject_styles__$F,
|
|
885
|
+
__vue_script__$F,
|
|
886
|
+
__vue_scope_id__$F,
|
|
887
|
+
__vue_is_functional_template__$F,
|
|
888
|
+
__vue_module_identifier__$F,
|
|
880
889
|
false,
|
|
881
890
|
undefined,
|
|
882
891
|
undefined,
|
|
883
892
|
undefined
|
|
884
893
|
);
|
|
885
894
|
|
|
886
|
-
var
|
|
895
|
+
var Toolbar = __vue_component__$F;
|
|
896
|
+
|
|
897
|
+
var script$E = Vue.extend({
|
|
887
898
|
name: "question-title",
|
|
888
899
|
components: { Icon },
|
|
889
900
|
mixins: [LocaleMixin],
|
|
@@ -912,20 +923,20 @@ var script$D = Vue.extend({
|
|
|
912
923
|
});
|
|
913
924
|
|
|
914
925
|
/* script */
|
|
915
|
-
const __vue_script__$
|
|
926
|
+
const __vue_script__$E = script$E;
|
|
916
927
|
|
|
917
928
|
/* template */
|
|
918
|
-
var __vue_render__$
|
|
919
|
-
var __vue_staticRenderFns__$
|
|
929
|
+
var __vue_render__$E = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"question-title"},[_c('label',{staticClass:"star"},[_vm._v(_vm._s(_vm.question.options.required ? '*' : ''))]),_vm._v(" "),(_vm.question.header.number)?_c('span',{staticClass:"number"},[_vm._v(_vm._s(_vm.question.header.number)+".")]):_vm._e(),_vm._v(" "),_c('span',{staticClass:"content"},[_vm._v(_vm._s(_vm._f("translate")(_vm.question.header.text,true)))]),_vm._v(" "),(_vm.haveMaxScore)?_c('span',{staticClass:"options-explain"},[_vm._v("("+_vm._s(_vm.t("survey_creator.question.max_score", _vm.$rootComponent.currentLanguage))+_vm._s(_vm.maxScore)+")")]):_vm._e(),_vm._v(" "),(_vm.haveStar)?_c('span',{staticClass:"options-explain"},[(_vm.isSingleSelection)?_c('span',[_vm._v("\n ("+_vm._s(_vm.t("survey_creator.question.star_single", _vm.$rootComponent.currentLanguage))+"\n "),_c('span',[_c('Icon',{attrs:{"type":"md-star","color":"orange","size":16}})],1),_vm._v(")\n ")]):_c('span',[_vm._v("\n (\n "+_vm._s(_vm.t("survey_creator.question.star_single", _vm.$rootComponent.currentLanguage))+"\n "),_c('Icon',{attrs:{"type":"md-star","color":"orange","size":16}}),_vm._v("\n "+_vm._s(_vm.t("survey_creator.question.star_multi_prefix", _vm.$rootComponent.currentLanguage))+"\n "+_vm._s(_vm.question.options.starMinCount)+"\n "+_vm._s(_vm.t("survey_creator.question.star_multi_suffix", _vm.$rootComponent.currentLanguage))+"\n )\n ")],1)]):_vm._e()])};
|
|
930
|
+
var __vue_staticRenderFns__$E = [];
|
|
920
931
|
|
|
921
932
|
/* style */
|
|
922
|
-
const __vue_inject_styles__$
|
|
933
|
+
const __vue_inject_styles__$E = undefined;
|
|
923
934
|
/* scoped */
|
|
924
|
-
const __vue_scope_id__$
|
|
935
|
+
const __vue_scope_id__$E = undefined;
|
|
925
936
|
/* module identifier */
|
|
926
|
-
const __vue_module_identifier__$
|
|
937
|
+
const __vue_module_identifier__$E = undefined;
|
|
927
938
|
/* functional template */
|
|
928
|
-
const __vue_is_functional_template__$
|
|
939
|
+
const __vue_is_functional_template__$E = false;
|
|
929
940
|
/* style inject */
|
|
930
941
|
|
|
931
942
|
/* style inject SSR */
|
|
@@ -934,20 +945,22 @@ var __vue_staticRenderFns__$D = [];
|
|
|
934
945
|
|
|
935
946
|
|
|
936
947
|
|
|
937
|
-
const __vue_component__$
|
|
938
|
-
{ render: __vue_render__$
|
|
939
|
-
__vue_inject_styles__$
|
|
940
|
-
__vue_script__$
|
|
941
|
-
__vue_scope_id__$
|
|
942
|
-
__vue_is_functional_template__$
|
|
943
|
-
__vue_module_identifier__$
|
|
948
|
+
const __vue_component__$E = /*#__PURE__*/normalizeComponent(
|
|
949
|
+
{ render: __vue_render__$E, staticRenderFns: __vue_staticRenderFns__$E },
|
|
950
|
+
__vue_inject_styles__$E,
|
|
951
|
+
__vue_script__$E,
|
|
952
|
+
__vue_scope_id__$E,
|
|
953
|
+
__vue_is_functional_template__$E,
|
|
954
|
+
__vue_module_identifier__$E,
|
|
944
955
|
false,
|
|
945
956
|
undefined,
|
|
946
957
|
undefined,
|
|
947
958
|
undefined
|
|
948
959
|
);
|
|
949
960
|
|
|
950
|
-
var
|
|
961
|
+
var QuestionTitle = __vue_component__$E;
|
|
962
|
+
|
|
963
|
+
var script$D = Vue.extend({
|
|
951
964
|
name: "clickable-icon",
|
|
952
965
|
components: { Tooltip, Icon },
|
|
953
966
|
props: {
|
|
@@ -1029,46 +1042,48 @@ function addStyle(id, css) {
|
|
|
1029
1042
|
}
|
|
1030
1043
|
|
|
1031
1044
|
/* script */
|
|
1032
|
-
const __vue_script__$
|
|
1045
|
+
const __vue_script__$D = script$D;
|
|
1033
1046
|
|
|
1034
1047
|
/* template */
|
|
1035
|
-
var __vue_render__$
|
|
1036
|
-
var __vue_staticRenderFns__$
|
|
1048
|
+
var __vue_render__$D = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return (_vm.tooltip)?_c('Tooltip',{attrs:{"content":_vm.tooltip,"transfer":true}},[_c('span',{staticClass:"icon-button hover-able",on:{"click":_vm.click}},[_c('Icon',{attrs:{"type":_vm.type,"custom":_vm.custom,"size":_vm.size}})],1)]):_c('span',{staticClass:"icon-button hover-able"},[_c('Icon',{attrs:{"type":_vm.type,"custom":_vm.custom,"size":_vm.size},on:{"click":_vm.click}})],1)};
|
|
1049
|
+
var __vue_staticRenderFns__$D = [];
|
|
1037
1050
|
|
|
1038
1051
|
/* style */
|
|
1039
|
-
const __vue_inject_styles__$
|
|
1052
|
+
const __vue_inject_styles__$D = function (inject) {
|
|
1040
1053
|
if (!inject) return
|
|
1041
1054
|
inject("data-v-6e22f2ee_0", { source: ".icon-button{cursor:pointer;line-height:1.5}", map: undefined, media: undefined });
|
|
1042
1055
|
|
|
1043
1056
|
};
|
|
1044
1057
|
/* scoped */
|
|
1045
|
-
const __vue_scope_id__$
|
|
1058
|
+
const __vue_scope_id__$D = undefined;
|
|
1046
1059
|
/* module identifier */
|
|
1047
|
-
const __vue_module_identifier__$
|
|
1060
|
+
const __vue_module_identifier__$D = undefined;
|
|
1048
1061
|
/* functional template */
|
|
1049
|
-
const __vue_is_functional_template__$
|
|
1062
|
+
const __vue_is_functional_template__$D = false;
|
|
1050
1063
|
/* style inject SSR */
|
|
1051
1064
|
|
|
1052
1065
|
/* style inject shadow dom */
|
|
1053
1066
|
|
|
1054
1067
|
|
|
1055
1068
|
|
|
1056
|
-
const __vue_component__$
|
|
1057
|
-
{ render: __vue_render__$
|
|
1058
|
-
__vue_inject_styles__$
|
|
1059
|
-
__vue_script__$
|
|
1060
|
-
__vue_scope_id__$
|
|
1061
|
-
__vue_is_functional_template__$
|
|
1062
|
-
__vue_module_identifier__$
|
|
1069
|
+
const __vue_component__$D = /*#__PURE__*/normalizeComponent(
|
|
1070
|
+
{ render: __vue_render__$D, staticRenderFns: __vue_staticRenderFns__$D },
|
|
1071
|
+
__vue_inject_styles__$D,
|
|
1072
|
+
__vue_script__$D,
|
|
1073
|
+
__vue_scope_id__$D,
|
|
1074
|
+
__vue_is_functional_template__$D,
|
|
1075
|
+
__vue_module_identifier__$D,
|
|
1063
1076
|
false,
|
|
1064
1077
|
createInjector,
|
|
1065
1078
|
undefined,
|
|
1066
1079
|
undefined
|
|
1067
1080
|
);
|
|
1068
1081
|
|
|
1069
|
-
var
|
|
1082
|
+
var ClickableIcon = __vue_component__$D;
|
|
1083
|
+
|
|
1084
|
+
var script$C = Vue.extend({
|
|
1070
1085
|
name: "editor-question-toolbar",
|
|
1071
|
-
components: { Row, Col, Icon, ClickableIcon
|
|
1086
|
+
components: { Row, Col, Icon, ClickableIcon },
|
|
1072
1087
|
mixins: [LocaleMixin],
|
|
1073
1088
|
props: {
|
|
1074
1089
|
edit: {
|
|
@@ -1101,20 +1116,20 @@ var script$B = Vue.extend({
|
|
|
1101
1116
|
});
|
|
1102
1117
|
|
|
1103
1118
|
/* script */
|
|
1104
|
-
const __vue_script__$
|
|
1119
|
+
const __vue_script__$C = script$C;
|
|
1105
1120
|
|
|
1106
1121
|
/* template */
|
|
1107
|
-
var __vue_render__$
|
|
1108
|
-
var __vue_staticRenderFns__$
|
|
1122
|
+
var __vue_render__$C = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('Row',{staticClass:"editor-question-toolbar",attrs:{"type":"flex","justify":"center","align":"middle"}},[(_vm.edit)?_c('Col',[_c('clickable-icon',{attrs:{"tooltip":_vm.t('survey_creator.common.tips.edit'),"type":"ios-create-outline"},on:{"click":_vm.onEdit}})],1):_vm._e(),_vm._v(" "),(_vm.copy)?_c('Col',[_c('clickable-icon',{attrs:{"tooltip":_vm.t('survey_creator.common.tips.copy'),"type":"ios-copy-outline"},on:{"click":_vm.onCopy}})],1):_vm._e(),_vm._v(" "),(_vm.enableDelete)?_c('Col',[_c('clickable-icon',{attrs:{"tooltip":_vm.t('survey_creator.common.tips.delete'),"type":"ios-trash-outline"},on:{"click":_vm.onDelete}})],1):_vm._e()],1)};
|
|
1123
|
+
var __vue_staticRenderFns__$C = [];
|
|
1109
1124
|
|
|
1110
1125
|
/* style */
|
|
1111
|
-
const __vue_inject_styles__$
|
|
1126
|
+
const __vue_inject_styles__$C = undefined;
|
|
1112
1127
|
/* scoped */
|
|
1113
|
-
const __vue_scope_id__$
|
|
1128
|
+
const __vue_scope_id__$C = undefined;
|
|
1114
1129
|
/* module identifier */
|
|
1115
|
-
const __vue_module_identifier__$
|
|
1130
|
+
const __vue_module_identifier__$C = undefined;
|
|
1116
1131
|
/* functional template */
|
|
1117
|
-
const __vue_is_functional_template__$
|
|
1132
|
+
const __vue_is_functional_template__$C = false;
|
|
1118
1133
|
/* style inject */
|
|
1119
1134
|
|
|
1120
1135
|
/* style inject SSR */
|
|
@@ -1123,22 +1138,24 @@ var __vue_staticRenderFns__$B = [];
|
|
|
1123
1138
|
|
|
1124
1139
|
|
|
1125
1140
|
|
|
1126
|
-
const __vue_component__$
|
|
1127
|
-
{ render: __vue_render__$
|
|
1128
|
-
__vue_inject_styles__$
|
|
1129
|
-
__vue_script__$
|
|
1130
|
-
__vue_scope_id__$
|
|
1131
|
-
__vue_is_functional_template__$
|
|
1132
|
-
__vue_module_identifier__$
|
|
1141
|
+
const __vue_component__$C = /*#__PURE__*/normalizeComponent(
|
|
1142
|
+
{ render: __vue_render__$C, staticRenderFns: __vue_staticRenderFns__$C },
|
|
1143
|
+
__vue_inject_styles__$C,
|
|
1144
|
+
__vue_script__$C,
|
|
1145
|
+
__vue_scope_id__$C,
|
|
1146
|
+
__vue_is_functional_template__$C,
|
|
1147
|
+
__vue_module_identifier__$C,
|
|
1133
1148
|
false,
|
|
1134
1149
|
undefined,
|
|
1135
1150
|
undefined,
|
|
1136
1151
|
undefined
|
|
1137
1152
|
);
|
|
1138
1153
|
|
|
1139
|
-
var
|
|
1154
|
+
var EditQuestionToolbar = __vue_component__$C;
|
|
1155
|
+
|
|
1156
|
+
var script$B = Vue.extend({
|
|
1140
1157
|
name: "question-default-layout",
|
|
1141
|
-
components: { Row, Col, QuestionTitle
|
|
1158
|
+
components: { Row, Col, QuestionTitle, EditQuestionToolbar },
|
|
1142
1159
|
mixins: [LocaleMixin],
|
|
1143
1160
|
inject: ["$rootComponent"],
|
|
1144
1161
|
props: {
|
|
@@ -1161,20 +1178,20 @@ var script$A = Vue.extend({
|
|
|
1161
1178
|
});
|
|
1162
1179
|
|
|
1163
1180
|
/* script */
|
|
1164
|
-
const __vue_script__$
|
|
1181
|
+
const __vue_script__$B = script$B;
|
|
1165
1182
|
|
|
1166
1183
|
/* template */
|
|
1167
|
-
var __vue_render__$
|
|
1168
|
-
var __vue_staticRenderFns__$
|
|
1184
|
+
var __vue_render__$B = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"question"},[_c('Row',{attrs:{"type":"flex","justify":"space-between","align":"middle"}},[_c('Col',[_c('question-title',{attrs:{"question":_vm.question,"max-score":true}})],1),_vm._v(" "),_c('Col',[_c('edit-question-toolbar',{on:{"on-edit":_vm.onEdit,"on-copy":_vm.onCopy,"on-delete":_vm.onDelete}})],1)],1),_vm._v(" "),_vm._t("default")],2)};
|
|
1185
|
+
var __vue_staticRenderFns__$B = [];
|
|
1169
1186
|
|
|
1170
1187
|
/* style */
|
|
1171
|
-
const __vue_inject_styles__$
|
|
1188
|
+
const __vue_inject_styles__$B = undefined;
|
|
1172
1189
|
/* scoped */
|
|
1173
|
-
const __vue_scope_id__$
|
|
1190
|
+
const __vue_scope_id__$B = undefined;
|
|
1174
1191
|
/* module identifier */
|
|
1175
|
-
const __vue_module_identifier__$
|
|
1192
|
+
const __vue_module_identifier__$B = undefined;
|
|
1176
1193
|
/* functional template */
|
|
1177
|
-
const __vue_is_functional_template__$
|
|
1194
|
+
const __vue_is_functional_template__$B = false;
|
|
1178
1195
|
/* style inject */
|
|
1179
1196
|
|
|
1180
1197
|
/* style inject SSR */
|
|
@@ -1183,20 +1200,22 @@ var __vue_staticRenderFns__$A = [];
|
|
|
1183
1200
|
|
|
1184
1201
|
|
|
1185
1202
|
|
|
1186
|
-
const __vue_component__$
|
|
1187
|
-
{ render: __vue_render__$
|
|
1188
|
-
__vue_inject_styles__$
|
|
1189
|
-
__vue_script__$
|
|
1190
|
-
__vue_scope_id__$
|
|
1191
|
-
__vue_is_functional_template__$
|
|
1192
|
-
__vue_module_identifier__$
|
|
1203
|
+
const __vue_component__$B = /*#__PURE__*/normalizeComponent(
|
|
1204
|
+
{ render: __vue_render__$B, staticRenderFns: __vue_staticRenderFns__$B },
|
|
1205
|
+
__vue_inject_styles__$B,
|
|
1206
|
+
__vue_script__$B,
|
|
1207
|
+
__vue_scope_id__$B,
|
|
1208
|
+
__vue_is_functional_template__$B,
|
|
1209
|
+
__vue_module_identifier__$B,
|
|
1193
1210
|
false,
|
|
1194
1211
|
undefined,
|
|
1195
1212
|
undefined,
|
|
1196
1213
|
undefined
|
|
1197
1214
|
);
|
|
1198
1215
|
|
|
1199
|
-
var
|
|
1216
|
+
var QuestionDefaultLayout = __vue_component__$B;
|
|
1217
|
+
|
|
1218
|
+
var script$A = Vue.extend({
|
|
1200
1219
|
name: "single-selection",
|
|
1201
1220
|
components: { Row, Col, Radio, RadioGroup, Icon },
|
|
1202
1221
|
mixins: [LocaleMixin],
|
|
@@ -1238,20 +1257,20 @@ var script$z = Vue.extend({
|
|
|
1238
1257
|
});
|
|
1239
1258
|
|
|
1240
1259
|
/* script */
|
|
1241
|
-
const __vue_script__$
|
|
1260
|
+
const __vue_script__$A = script$A;
|
|
1242
1261
|
|
|
1243
1262
|
/* template */
|
|
1244
|
-
var __vue_render__$
|
|
1245
|
-
var __vue_staticRenderFns__$
|
|
1263
|
+
var __vue_render__$A = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('RadioGroup',{attrs:{"vertical":_vm.vertical}},[_c('Row',{attrs:{"type":"flex","justify":"start","gutter":50}},_vm._l((_vm.question.choices),function(choice){return _c('Col',{key:choice.id,class:_vm.choiceClasses},[_c('Radio',{attrs:{"label":choice.id}},[(_vm.haveStar(choice))?_c('span',[_c('Icon',{attrs:{"type":"md-star","color":"orange","size":16}})],1):_vm._e(),_vm._v(" "),_c('span',{staticClass:"choice-title"},[_vm._v(_vm._s(_vm._f("translate")(choice.text,true)))]),_vm._v(" "),(_vm.haveMaxScore)?_c('span',{staticClass:"choice-score"},[_vm._v(_vm._s(("(" + (choice.options.score || 0) + " " + (_vm.t('survey_creator.question.scores', _vm.$rootComponent.currentLanguage)) + ")")))]):_vm._e()])],1)}),1)],1)};
|
|
1264
|
+
var __vue_staticRenderFns__$A = [];
|
|
1246
1265
|
|
|
1247
1266
|
/* style */
|
|
1248
|
-
const __vue_inject_styles__$
|
|
1267
|
+
const __vue_inject_styles__$A = undefined;
|
|
1249
1268
|
/* scoped */
|
|
1250
|
-
const __vue_scope_id__$
|
|
1269
|
+
const __vue_scope_id__$A = undefined;
|
|
1251
1270
|
/* module identifier */
|
|
1252
|
-
const __vue_module_identifier__$
|
|
1271
|
+
const __vue_module_identifier__$A = undefined;
|
|
1253
1272
|
/* functional template */
|
|
1254
|
-
const __vue_is_functional_template__$
|
|
1273
|
+
const __vue_is_functional_template__$A = false;
|
|
1255
1274
|
/* style inject */
|
|
1256
1275
|
|
|
1257
1276
|
/* style inject SSR */
|
|
@@ -1260,20 +1279,22 @@ var __vue_staticRenderFns__$z = [];
|
|
|
1260
1279
|
|
|
1261
1280
|
|
|
1262
1281
|
|
|
1263
|
-
const __vue_component__$
|
|
1264
|
-
{ render: __vue_render__$
|
|
1265
|
-
__vue_inject_styles__$
|
|
1266
|
-
__vue_script__$
|
|
1267
|
-
__vue_scope_id__$
|
|
1268
|
-
__vue_is_functional_template__$
|
|
1269
|
-
__vue_module_identifier__$
|
|
1282
|
+
const __vue_component__$A = /*#__PURE__*/normalizeComponent(
|
|
1283
|
+
{ render: __vue_render__$A, staticRenderFns: __vue_staticRenderFns__$A },
|
|
1284
|
+
__vue_inject_styles__$A,
|
|
1285
|
+
__vue_script__$A,
|
|
1286
|
+
__vue_scope_id__$A,
|
|
1287
|
+
__vue_is_functional_template__$A,
|
|
1288
|
+
__vue_module_identifier__$A,
|
|
1270
1289
|
false,
|
|
1271
1290
|
undefined,
|
|
1272
1291
|
undefined,
|
|
1273
1292
|
undefined
|
|
1274
1293
|
);
|
|
1275
1294
|
|
|
1276
|
-
var
|
|
1295
|
+
var SingleSelection = __vue_component__$A;
|
|
1296
|
+
|
|
1297
|
+
var script$z = Vue.extend({
|
|
1277
1298
|
name: "multi-selection",
|
|
1278
1299
|
components: { Row, Col, Checkbox, CheckboxGroup },
|
|
1279
1300
|
mixins: [LocaleMixin],
|
|
@@ -1312,20 +1333,20 @@ var script$y = Vue.extend({
|
|
|
1312
1333
|
});
|
|
1313
1334
|
|
|
1314
1335
|
/* script */
|
|
1315
|
-
const __vue_script__$
|
|
1336
|
+
const __vue_script__$z = script$z;
|
|
1316
1337
|
|
|
1317
1338
|
/* template */
|
|
1318
|
-
var __vue_render__$
|
|
1319
|
-
var __vue_staticRenderFns__$
|
|
1339
|
+
var __vue_render__$z = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('CheckboxGroup',[_c('Row',{attrs:{"type":"flex","justify":"start","gutter":50}},_vm._l((_vm.question.choices),function(choice){return _c('Col',{key:choice.id,class:_vm.choiceClasses},[_c('Checkbox',{attrs:{"label":choice.id}},[_c('span',{staticClass:"choice-title"},[_vm._v(_vm._s(_vm._f("translate")(choice.text,true)))]),_vm._v(" "),(_vm.haveMaxScore)?_c('span',{staticClass:"choice-score"},[_vm._v(_vm._s(("(" + (choice.options.score || 0) + " " + (_vm.t('survey_creator.question.scores', _vm.$rootComponent.currentLanguage)) + ")")))]):_vm._e()])],1)}),1)],1)};
|
|
1340
|
+
var __vue_staticRenderFns__$z = [];
|
|
1320
1341
|
|
|
1321
1342
|
/* style */
|
|
1322
|
-
const __vue_inject_styles__$
|
|
1343
|
+
const __vue_inject_styles__$z = undefined;
|
|
1323
1344
|
/* scoped */
|
|
1324
|
-
const __vue_scope_id__$
|
|
1345
|
+
const __vue_scope_id__$z = undefined;
|
|
1325
1346
|
/* module identifier */
|
|
1326
|
-
const __vue_module_identifier__$
|
|
1347
|
+
const __vue_module_identifier__$z = undefined;
|
|
1327
1348
|
/* functional template */
|
|
1328
|
-
const __vue_is_functional_template__$
|
|
1349
|
+
const __vue_is_functional_template__$z = false;
|
|
1329
1350
|
/* style inject */
|
|
1330
1351
|
|
|
1331
1352
|
/* style inject SSR */
|
|
@@ -1334,20 +1355,22 @@ var __vue_staticRenderFns__$y = [];
|
|
|
1334
1355
|
|
|
1335
1356
|
|
|
1336
1357
|
|
|
1337
|
-
const __vue_component__$
|
|
1338
|
-
{ render: __vue_render__$
|
|
1339
|
-
__vue_inject_styles__$
|
|
1340
|
-
__vue_script__$
|
|
1341
|
-
__vue_scope_id__$
|
|
1342
|
-
__vue_is_functional_template__$
|
|
1343
|
-
__vue_module_identifier__$
|
|
1358
|
+
const __vue_component__$z = /*#__PURE__*/normalizeComponent(
|
|
1359
|
+
{ render: __vue_render__$z, staticRenderFns: __vue_staticRenderFns__$z },
|
|
1360
|
+
__vue_inject_styles__$z,
|
|
1361
|
+
__vue_script__$z,
|
|
1362
|
+
__vue_scope_id__$z,
|
|
1363
|
+
__vue_is_functional_template__$z,
|
|
1364
|
+
__vue_module_identifier__$z,
|
|
1344
1365
|
false,
|
|
1345
1366
|
undefined,
|
|
1346
1367
|
undefined,
|
|
1347
1368
|
undefined
|
|
1348
1369
|
);
|
|
1349
1370
|
|
|
1350
|
-
var
|
|
1371
|
+
var MultiSelection = __vue_component__$z;
|
|
1372
|
+
|
|
1373
|
+
var script$y = Vue.extend({
|
|
1351
1374
|
name: "short-answer",
|
|
1352
1375
|
components: { Row, Col, Radio, Input },
|
|
1353
1376
|
mixins: [LocaleMixin],
|
|
@@ -1361,20 +1384,20 @@ var script$x = Vue.extend({
|
|
|
1361
1384
|
});
|
|
1362
1385
|
|
|
1363
1386
|
/* script */
|
|
1364
|
-
const __vue_script__$
|
|
1387
|
+
const __vue_script__$y = script$y;
|
|
1365
1388
|
|
|
1366
1389
|
/* template */
|
|
1367
|
-
var __vue_render__$
|
|
1368
|
-
var __vue_staticRenderFns__$
|
|
1390
|
+
var __vue_render__$y = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('Input',{attrs:{"maxlength":_vm.question.options.wordLimit,"type":"textarea","rows":4,"show-word-limit":_vm.question.options.wordLimit && _vm.question.options.wordLimit > 0,"placeholder":_vm.t('survey_creator.common.tips.please_input_answer', _vm.$rootComponent.currentLanguage)}})};
|
|
1391
|
+
var __vue_staticRenderFns__$y = [];
|
|
1369
1392
|
|
|
1370
1393
|
/* style */
|
|
1371
|
-
const __vue_inject_styles__$
|
|
1394
|
+
const __vue_inject_styles__$y = undefined;
|
|
1372
1395
|
/* scoped */
|
|
1373
|
-
const __vue_scope_id__$
|
|
1396
|
+
const __vue_scope_id__$y = undefined;
|
|
1374
1397
|
/* module identifier */
|
|
1375
|
-
const __vue_module_identifier__$
|
|
1398
|
+
const __vue_module_identifier__$y = undefined;
|
|
1376
1399
|
/* functional template */
|
|
1377
|
-
const __vue_is_functional_template__$
|
|
1400
|
+
const __vue_is_functional_template__$y = false;
|
|
1378
1401
|
/* style inject */
|
|
1379
1402
|
|
|
1380
1403
|
/* style inject SSR */
|
|
@@ -1383,20 +1406,22 @@ var __vue_staticRenderFns__$x = [];
|
|
|
1383
1406
|
|
|
1384
1407
|
|
|
1385
1408
|
|
|
1386
|
-
const __vue_component__$
|
|
1387
|
-
{ render: __vue_render__$
|
|
1388
|
-
__vue_inject_styles__$
|
|
1389
|
-
__vue_script__$
|
|
1390
|
-
__vue_scope_id__$
|
|
1391
|
-
__vue_is_functional_template__$
|
|
1392
|
-
__vue_module_identifier__$
|
|
1409
|
+
const __vue_component__$y = /*#__PURE__*/normalizeComponent(
|
|
1410
|
+
{ render: __vue_render__$y, staticRenderFns: __vue_staticRenderFns__$y },
|
|
1411
|
+
__vue_inject_styles__$y,
|
|
1412
|
+
__vue_script__$y,
|
|
1413
|
+
__vue_scope_id__$y,
|
|
1414
|
+
__vue_is_functional_template__$y,
|
|
1415
|
+
__vue_module_identifier__$y,
|
|
1393
1416
|
false,
|
|
1394
1417
|
undefined,
|
|
1395
1418
|
undefined,
|
|
1396
1419
|
undefined
|
|
1397
1420
|
);
|
|
1398
1421
|
|
|
1399
|
-
var
|
|
1422
|
+
var ShortAnswer = __vue_component__$y;
|
|
1423
|
+
|
|
1424
|
+
var script$x = Vue.extend({
|
|
1400
1425
|
name: "fill-blank",
|
|
1401
1426
|
components: { Row, Col, Radio, Input },
|
|
1402
1427
|
inject: ["$rootComponent"],
|
|
@@ -1410,20 +1435,20 @@ var script$w = Vue.extend({
|
|
|
1410
1435
|
});
|
|
1411
1436
|
|
|
1412
1437
|
/* script */
|
|
1413
|
-
const __vue_script__$
|
|
1438
|
+
const __vue_script__$x = script$x;
|
|
1414
1439
|
|
|
1415
1440
|
/* template */
|
|
1416
|
-
var __vue_render__$
|
|
1417
|
-
var __vue_staticRenderFns__$
|
|
1441
|
+
var __vue_render__$x = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('Input',{attrs:{"maxlength":_vm.question.options.wordLimit,"show-word-limit":_vm.question.options.wordLimit && _vm.question.options.wordLimit > 0,"placeholder":_vm.t('survey_creator.common.tips.please_input_answer', _vm.$rootComponent.currentLanguage)}})};
|
|
1442
|
+
var __vue_staticRenderFns__$x = [];
|
|
1418
1443
|
|
|
1419
1444
|
/* style */
|
|
1420
|
-
const __vue_inject_styles__$
|
|
1445
|
+
const __vue_inject_styles__$x = undefined;
|
|
1421
1446
|
/* scoped */
|
|
1422
|
-
const __vue_scope_id__$
|
|
1447
|
+
const __vue_scope_id__$x = undefined;
|
|
1423
1448
|
/* module identifier */
|
|
1424
|
-
const __vue_module_identifier__$
|
|
1449
|
+
const __vue_module_identifier__$x = undefined;
|
|
1425
1450
|
/* functional template */
|
|
1426
|
-
const __vue_is_functional_template__$
|
|
1451
|
+
const __vue_is_functional_template__$x = false;
|
|
1427
1452
|
/* style inject */
|
|
1428
1453
|
|
|
1429
1454
|
/* style inject SSR */
|
|
@@ -1432,42 +1457,44 @@ var __vue_staticRenderFns__$w = [];
|
|
|
1432
1457
|
|
|
1433
1458
|
|
|
1434
1459
|
|
|
1435
|
-
const __vue_component__$
|
|
1436
|
-
{ render: __vue_render__$
|
|
1437
|
-
__vue_inject_styles__$
|
|
1438
|
-
__vue_script__$
|
|
1439
|
-
__vue_scope_id__$
|
|
1440
|
-
__vue_is_functional_template__$
|
|
1441
|
-
__vue_module_identifier__$
|
|
1460
|
+
const __vue_component__$x = /*#__PURE__*/normalizeComponent(
|
|
1461
|
+
{ render: __vue_render__$x, staticRenderFns: __vue_staticRenderFns__$x },
|
|
1462
|
+
__vue_inject_styles__$x,
|
|
1463
|
+
__vue_script__$x,
|
|
1464
|
+
__vue_scope_id__$x,
|
|
1465
|
+
__vue_is_functional_template__$x,
|
|
1466
|
+
__vue_module_identifier__$x,
|
|
1442
1467
|
false,
|
|
1443
1468
|
undefined,
|
|
1444
1469
|
undefined,
|
|
1445
1470
|
undefined
|
|
1446
1471
|
);
|
|
1447
1472
|
|
|
1473
|
+
var FillBlank = __vue_component__$x;
|
|
1474
|
+
|
|
1448
1475
|
//
|
|
1449
1476
|
//
|
|
1450
1477
|
//
|
|
1451
1478
|
//
|
|
1452
|
-
var script$
|
|
1479
|
+
var script$w = {
|
|
1453
1480
|
name: "text-title"
|
|
1454
1481
|
};
|
|
1455
1482
|
|
|
1456
1483
|
/* script */
|
|
1457
|
-
const __vue_script__$
|
|
1484
|
+
const __vue_script__$w = script$w;
|
|
1458
1485
|
|
|
1459
1486
|
/* template */
|
|
1460
|
-
var __vue_render__$
|
|
1461
|
-
var __vue_staticRenderFns__$
|
|
1487
|
+
var __vue_render__$w = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div')};
|
|
1488
|
+
var __vue_staticRenderFns__$w = [];
|
|
1462
1489
|
|
|
1463
1490
|
/* style */
|
|
1464
|
-
const __vue_inject_styles__$
|
|
1491
|
+
const __vue_inject_styles__$w = undefined;
|
|
1465
1492
|
/* scoped */
|
|
1466
|
-
const __vue_scope_id__$
|
|
1493
|
+
const __vue_scope_id__$w = undefined;
|
|
1467
1494
|
/* module identifier */
|
|
1468
|
-
const __vue_module_identifier__$
|
|
1495
|
+
const __vue_module_identifier__$w = undefined;
|
|
1469
1496
|
/* functional template */
|
|
1470
|
-
const __vue_is_functional_template__$
|
|
1497
|
+
const __vue_is_functional_template__$w = false;
|
|
1471
1498
|
/* style inject */
|
|
1472
1499
|
|
|
1473
1500
|
/* style inject SSR */
|
|
@@ -1476,20 +1503,22 @@ var __vue_staticRenderFns__$v = [];
|
|
|
1476
1503
|
|
|
1477
1504
|
|
|
1478
1505
|
|
|
1479
|
-
const __vue_component__$
|
|
1480
|
-
{ render: __vue_render__$
|
|
1481
|
-
__vue_inject_styles__$
|
|
1482
|
-
__vue_script__$
|
|
1483
|
-
__vue_scope_id__$
|
|
1484
|
-
__vue_is_functional_template__$
|
|
1485
|
-
__vue_module_identifier__$
|
|
1506
|
+
const __vue_component__$w = /*#__PURE__*/normalizeComponent(
|
|
1507
|
+
{ render: __vue_render__$w, staticRenderFns: __vue_staticRenderFns__$w },
|
|
1508
|
+
__vue_inject_styles__$w,
|
|
1509
|
+
__vue_script__$w,
|
|
1510
|
+
__vue_scope_id__$w,
|
|
1511
|
+
__vue_is_functional_template__$w,
|
|
1512
|
+
__vue_module_identifier__$w,
|
|
1486
1513
|
false,
|
|
1487
1514
|
undefined,
|
|
1488
1515
|
undefined,
|
|
1489
1516
|
undefined
|
|
1490
1517
|
);
|
|
1491
1518
|
|
|
1492
|
-
var
|
|
1519
|
+
var TextTitle = __vue_component__$w;
|
|
1520
|
+
|
|
1521
|
+
var script$v = Vue.extend({
|
|
1493
1522
|
name: "matrix",
|
|
1494
1523
|
components: { Row, Col, Radio, RadioGroup, Divider },
|
|
1495
1524
|
mixins: [LocaleMixin],
|
|
@@ -1535,20 +1564,20 @@ var script$u = Vue.extend({
|
|
|
1535
1564
|
});
|
|
1536
1565
|
|
|
1537
1566
|
/* script */
|
|
1538
|
-
const __vue_script__$
|
|
1567
|
+
const __vue_script__$v = script$v;
|
|
1539
1568
|
|
|
1540
1569
|
/* template */
|
|
1541
|
-
var __vue_render__$
|
|
1542
|
-
var __vue_staticRenderFns__$
|
|
1570
|
+
var __vue_render__$v = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"question"},_vm._l((_vm.question.subQuestions),function(subQuestion,index){return _c('div',{key:index},[(!_vm.isPreview)?_c('Divider',{staticClass:"question-type-desc",attrs:{"orientation":"left","size":"small"}},[_vm._v(_vm._s(_vm.t('survey_creator.question.sub_questions', _vm.$rootComponent.currentLanguage)))]):_vm._e(),_vm._v(" "),_c('div',{staticClass:"sub-question-title"},[_c('span',{staticClass:"number"},[_vm._v(_vm._s(_vm.question.header.number)+"."+_vm._s(subQuestion.number))]),_vm._v(" "),_c('span',{staticClass:"content"},[_vm._v(_vm._s(_vm._f("translate")(subQuestion.text,true)))]),_vm._v(" "),(_vm.maxScore && _vm.choiceMaxScore)?_c('span',{staticClass:"sub-max-score"},[_vm._v("("+_vm._s(_vm.t("survey_creator.question.max_score", _vm.$rootComponent.currentLanguage))+_vm._s(_vm.choiceMaxScore)+")")]):_vm._e()]),_vm._v(" "),_c('RadioGroup',[_c('Row',{attrs:{"type":"flex","justify":"start","gutter":50,"align":"middle"}},_vm._l((_vm.question.choices),function(choice){return _c('Col',{key:choice.id,class:_vm.choiceClasses},[_c('Radio',{attrs:{"label":choice.id}},[_c('span',{staticClass:"choice-title"},[_vm._v(_vm._s(_vm._f("translate")(choice.text,true)))]),_vm._v(" "),(_vm.haveMaxScore)?_c('span',{staticClass:"choice-score"},[_vm._v(_vm._s(("(" + (choice.options.score || 0) + " " + (_vm.t('survey_creator.question.scores', _vm.$rootComponent.currentLanguage)) + ")")))]):_vm._e()])],1)}),1)],1)],1)}),0)};
|
|
1571
|
+
var __vue_staticRenderFns__$v = [];
|
|
1543
1572
|
|
|
1544
1573
|
/* style */
|
|
1545
|
-
const __vue_inject_styles__$
|
|
1574
|
+
const __vue_inject_styles__$v = undefined;
|
|
1546
1575
|
/* scoped */
|
|
1547
|
-
const __vue_scope_id__$
|
|
1576
|
+
const __vue_scope_id__$v = undefined;
|
|
1548
1577
|
/* module identifier */
|
|
1549
|
-
const __vue_module_identifier__$
|
|
1578
|
+
const __vue_module_identifier__$v = undefined;
|
|
1550
1579
|
/* functional template */
|
|
1551
|
-
const __vue_is_functional_template__$
|
|
1580
|
+
const __vue_is_functional_template__$v = false;
|
|
1552
1581
|
/* style inject */
|
|
1553
1582
|
|
|
1554
1583
|
/* style inject SSR */
|
|
@@ -1557,20 +1586,22 @@ var __vue_staticRenderFns__$u = [];
|
|
|
1557
1586
|
|
|
1558
1587
|
|
|
1559
1588
|
|
|
1560
|
-
const __vue_component__$
|
|
1561
|
-
{ render: __vue_render__$
|
|
1562
|
-
__vue_inject_styles__$
|
|
1563
|
-
__vue_script__$
|
|
1564
|
-
__vue_scope_id__$
|
|
1565
|
-
__vue_is_functional_template__$
|
|
1566
|
-
__vue_module_identifier__$
|
|
1589
|
+
const __vue_component__$v = /*#__PURE__*/normalizeComponent(
|
|
1590
|
+
{ render: __vue_render__$v, staticRenderFns: __vue_staticRenderFns__$v },
|
|
1591
|
+
__vue_inject_styles__$v,
|
|
1592
|
+
__vue_script__$v,
|
|
1593
|
+
__vue_scope_id__$v,
|
|
1594
|
+
__vue_is_functional_template__$v,
|
|
1595
|
+
__vue_module_identifier__$v,
|
|
1567
1596
|
false,
|
|
1568
1597
|
undefined,
|
|
1569
1598
|
undefined,
|
|
1570
1599
|
undefined
|
|
1571
1600
|
);
|
|
1572
1601
|
|
|
1573
|
-
var
|
|
1602
|
+
var Matrix = __vue_component__$v;
|
|
1603
|
+
|
|
1604
|
+
var script$u = Vue.extend({
|
|
1574
1605
|
name: "star",
|
|
1575
1606
|
mixins: [LocaleMixin],
|
|
1576
1607
|
props: {
|
|
@@ -1593,20 +1624,20 @@ var script$t = Vue.extend({
|
|
|
1593
1624
|
});
|
|
1594
1625
|
|
|
1595
1626
|
/* script */
|
|
1596
|
-
const __vue_script__$
|
|
1627
|
+
const __vue_script__$u = script$u;
|
|
1597
1628
|
|
|
1598
1629
|
/* template */
|
|
1599
|
-
var __vue_render__$
|
|
1600
|
-
var __vue_staticRenderFns__$
|
|
1630
|
+
var __vue_render__$u = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('p',{staticClass:"desc"},[_vm._v(_vm._s(_vm.getDesc()))])};
|
|
1631
|
+
var __vue_staticRenderFns__$u = [];
|
|
1601
1632
|
|
|
1602
1633
|
/* style */
|
|
1603
|
-
const __vue_inject_styles__$
|
|
1634
|
+
const __vue_inject_styles__$u = undefined;
|
|
1604
1635
|
/* scoped */
|
|
1605
|
-
const __vue_scope_id__$
|
|
1636
|
+
const __vue_scope_id__$u = undefined;
|
|
1606
1637
|
/* module identifier */
|
|
1607
|
-
const __vue_module_identifier__$
|
|
1638
|
+
const __vue_module_identifier__$u = undefined;
|
|
1608
1639
|
/* functional template */
|
|
1609
|
-
const __vue_is_functional_template__$
|
|
1640
|
+
const __vue_is_functional_template__$u = false;
|
|
1610
1641
|
/* style inject */
|
|
1611
1642
|
|
|
1612
1643
|
/* style inject SSR */
|
|
@@ -1615,19 +1646,21 @@ var __vue_staticRenderFns__$t = [];
|
|
|
1615
1646
|
|
|
1616
1647
|
|
|
1617
1648
|
|
|
1618
|
-
const __vue_component__$
|
|
1619
|
-
{ render: __vue_render__$
|
|
1620
|
-
__vue_inject_styles__$
|
|
1621
|
-
__vue_script__$
|
|
1622
|
-
__vue_scope_id__$
|
|
1623
|
-
__vue_is_functional_template__$
|
|
1624
|
-
__vue_module_identifier__$
|
|
1649
|
+
const __vue_component__$u = /*#__PURE__*/normalizeComponent(
|
|
1650
|
+
{ render: __vue_render__$u, staticRenderFns: __vue_staticRenderFns__$u },
|
|
1651
|
+
__vue_inject_styles__$u,
|
|
1652
|
+
__vue_script__$u,
|
|
1653
|
+
__vue_scope_id__$u,
|
|
1654
|
+
__vue_is_functional_template__$u,
|
|
1655
|
+
__vue_module_identifier__$u,
|
|
1625
1656
|
false,
|
|
1626
1657
|
undefined,
|
|
1627
1658
|
undefined,
|
|
1628
1659
|
undefined
|
|
1629
1660
|
);
|
|
1630
1661
|
|
|
1662
|
+
var Star$1 = __vue_component__$u;
|
|
1663
|
+
|
|
1631
1664
|
class ExprEvaluationQuestion {
|
|
1632
1665
|
questions;
|
|
1633
1666
|
scope;
|
|
@@ -1738,7 +1771,7 @@ class ExprEvaluationQuestion {
|
|
|
1738
1771
|
}
|
|
1739
1772
|
|
|
1740
1773
|
const SPLIT_LENGTH = 60;
|
|
1741
|
-
var script$
|
|
1774
|
+
var script$t = Vue.extend({
|
|
1742
1775
|
name: "expr-if",
|
|
1743
1776
|
mixins: [LocaleMixin],
|
|
1744
1777
|
components: { Tooltip },
|
|
@@ -1746,7 +1779,7 @@ var script$s = Vue.extend({
|
|
|
1746
1779
|
data() {
|
|
1747
1780
|
return {
|
|
1748
1781
|
desc: "",
|
|
1749
|
-
descTitle: ""
|
|
1782
|
+
descTitle: "",
|
|
1750
1783
|
};
|
|
1751
1784
|
},
|
|
1752
1785
|
created() {
|
|
@@ -1755,31 +1788,41 @@ var script$s = Vue.extend({
|
|
|
1755
1788
|
props: {
|
|
1756
1789
|
conditions: {
|
|
1757
1790
|
type: Array,
|
|
1758
|
-
required: true
|
|
1759
|
-
}
|
|
1791
|
+
required: true,
|
|
1792
|
+
},
|
|
1760
1793
|
},
|
|
1761
1794
|
computed: {
|
|
1762
1795
|
questions() {
|
|
1763
1796
|
return _.cloneDeep(this.$rootComponent.currentSurvey.questions);
|
|
1764
|
-
}
|
|
1797
|
+
},
|
|
1765
1798
|
},
|
|
1766
1799
|
methods: {
|
|
1767
1800
|
getDesc(condition) {
|
|
1768
1801
|
let payload = condition.payload;
|
|
1769
|
-
|
|
1770
|
-
|
|
1771
|
-
if (_.isArray(_.head(number))) {
|
|
1772
|
-
return _.join(_.map(number, e => _.join(e, "-")), ", ");
|
|
1773
|
-
}
|
|
1774
|
-
return _.join(number, "-");
|
|
1775
|
-
}), ", ");
|
|
1776
|
-
if (condition.type == "ASSIGN") {
|
|
1777
|
-
return this.t('survey_creator.question.evaluation.condition.assign_template', [scope, _.join(payload.values, "、"), _.unescape(payload.operator), payload.size]);
|
|
1802
|
+
if (condition.type == "SCORE") {
|
|
1803
|
+
return this.t("survey_creator.question.evaluation.condition.score_template", [payload.minScore, payload.operator, payload.maxScore]);
|
|
1778
1804
|
}
|
|
1779
|
-
else
|
|
1780
|
-
|
|
1805
|
+
else {
|
|
1806
|
+
let numbers = new ExprEvaluationQuestion(this.questions, payload.scope).calculateNumbers();
|
|
1807
|
+
let scope = _.join(_.map(numbers, (number) => {
|
|
1808
|
+
if (_.isArray(_.head(number))) {
|
|
1809
|
+
return _.join(_.map(number, (e) => _.join(e, "-")), ", ");
|
|
1810
|
+
}
|
|
1811
|
+
return _.join(number, "-");
|
|
1812
|
+
}), ", ");
|
|
1813
|
+
if (condition.type == "ASSIGN") {
|
|
1814
|
+
return this.t("survey_creator.question.evaluation.condition.assign_template", [
|
|
1815
|
+
scope,
|
|
1816
|
+
_.join(payload.values, "、"),
|
|
1817
|
+
_.unescape(payload.operator),
|
|
1818
|
+
payload.size,
|
|
1819
|
+
]);
|
|
1820
|
+
}
|
|
1821
|
+
else if (condition.type == "AUTO") {
|
|
1822
|
+
return this.t("survey_creator.question.evaluation.condition.auto_template", [scope, _.join(payload.values, "、")]);
|
|
1823
|
+
}
|
|
1824
|
+
return "";
|
|
1781
1825
|
}
|
|
1782
|
-
return "";
|
|
1783
1826
|
},
|
|
1784
1827
|
getChineseLength(_str) {
|
|
1785
1828
|
_str = _.trim(_str);
|
|
@@ -1791,18 +1834,67 @@ var script$s = Vue.extend({
|
|
|
1791
1834
|
return chinese ? chinese.length : 0;
|
|
1792
1835
|
},
|
|
1793
1836
|
initialDesc() {
|
|
1794
|
-
let desc =
|
|
1837
|
+
let desc = "";
|
|
1795
1838
|
let ds = _.map(this.conditions, (c) => {
|
|
1796
1839
|
return this.getDesc(c);
|
|
1797
1840
|
});
|
|
1798
|
-
desc = _.join(ds,
|
|
1841
|
+
desc = _.join(ds, "<br>");
|
|
1799
1842
|
this.desc = desc;
|
|
1800
1843
|
let strLength = desc.length;
|
|
1801
1844
|
let cLength = this.getChineseLength(desc.substring(0, SPLIT_LENGTH));
|
|
1802
1845
|
if (strLength > SPLIT_LENGTH) {
|
|
1803
|
-
this.desc =
|
|
1846
|
+
this.desc =
|
|
1847
|
+
desc.substring(0, SPLIT_LENGTH - _.ceil(cLength / 2)) + "...";
|
|
1804
1848
|
}
|
|
1805
1849
|
this.descTitle = desc;
|
|
1850
|
+
},
|
|
1851
|
+
},
|
|
1852
|
+
});
|
|
1853
|
+
|
|
1854
|
+
/* script */
|
|
1855
|
+
const __vue_script__$t = script$t;
|
|
1856
|
+
|
|
1857
|
+
/* template */
|
|
1858
|
+
var __vue_render__$t = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('Tooltip',{attrs:{"max-width":"200"}},[_c('span',{attrs:{"slot":"content"},domProps:{"innerHTML":_vm._s(this.descTitle)},slot:"content"}),_vm._v(" "),_c('span',{staticClass:"desc",domProps:{"innerHTML":_vm._s(this.desc)}})])};
|
|
1859
|
+
var __vue_staticRenderFns__$t = [];
|
|
1860
|
+
|
|
1861
|
+
/* style */
|
|
1862
|
+
const __vue_inject_styles__$t = undefined;
|
|
1863
|
+
/* scoped */
|
|
1864
|
+
const __vue_scope_id__$t = undefined;
|
|
1865
|
+
/* module identifier */
|
|
1866
|
+
const __vue_module_identifier__$t = undefined;
|
|
1867
|
+
/* functional template */
|
|
1868
|
+
const __vue_is_functional_template__$t = false;
|
|
1869
|
+
/* style inject */
|
|
1870
|
+
|
|
1871
|
+
/* style inject SSR */
|
|
1872
|
+
|
|
1873
|
+
/* style inject shadow dom */
|
|
1874
|
+
|
|
1875
|
+
|
|
1876
|
+
|
|
1877
|
+
const __vue_component__$t = /*#__PURE__*/normalizeComponent(
|
|
1878
|
+
{ render: __vue_render__$t, staticRenderFns: __vue_staticRenderFns__$t },
|
|
1879
|
+
__vue_inject_styles__$t,
|
|
1880
|
+
__vue_script__$t,
|
|
1881
|
+
__vue_scope_id__$t,
|
|
1882
|
+
__vue_is_functional_template__$t,
|
|
1883
|
+
__vue_module_identifier__$t,
|
|
1884
|
+
false,
|
|
1885
|
+
undefined,
|
|
1886
|
+
undefined,
|
|
1887
|
+
undefined
|
|
1888
|
+
);
|
|
1889
|
+
|
|
1890
|
+
var If$1 = __vue_component__$t;
|
|
1891
|
+
|
|
1892
|
+
var script$s = Vue.extend({
|
|
1893
|
+
name: "expr-else",
|
|
1894
|
+
mixins: [LocaleMixin],
|
|
1895
|
+
props: {
|
|
1896
|
+
conditions: {
|
|
1897
|
+
type: Array
|
|
1806
1898
|
}
|
|
1807
1899
|
}
|
|
1808
1900
|
});
|
|
@@ -1811,7 +1903,7 @@ var script$s = Vue.extend({
|
|
|
1811
1903
|
const __vue_script__$s = script$s;
|
|
1812
1904
|
|
|
1813
1905
|
/* template */
|
|
1814
|
-
var __vue_render__$s = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('
|
|
1906
|
+
var __vue_render__$s = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('p',{staticClass:"desc",domProps:{"innerHTML":_vm._s(_vm.t('survey_creator.question.evaluation.condition.other'))}})};
|
|
1815
1907
|
var __vue_staticRenderFns__$s = [];
|
|
1816
1908
|
|
|
1817
1909
|
/* style */
|
|
@@ -1843,13 +1935,19 @@ var __vue_staticRenderFns__$s = [];
|
|
|
1843
1935
|
undefined
|
|
1844
1936
|
);
|
|
1845
1937
|
|
|
1938
|
+
var Else$1 = __vue_component__$s;
|
|
1939
|
+
|
|
1846
1940
|
var script$r = Vue.extend({
|
|
1847
|
-
name: "expr
|
|
1848
|
-
mixins: [LocaleMixin],
|
|
1941
|
+
name: "expr",
|
|
1849
1942
|
props: {
|
|
1850
|
-
|
|
1851
|
-
type:
|
|
1943
|
+
item: {
|
|
1944
|
+
type: Object,
|
|
1945
|
+
required: true
|
|
1852
1946
|
}
|
|
1947
|
+
},
|
|
1948
|
+
components: {
|
|
1949
|
+
IF: If$1,
|
|
1950
|
+
ELSE: Else$1
|
|
1853
1951
|
}
|
|
1854
1952
|
});
|
|
1855
1953
|
|
|
@@ -1857,7 +1955,7 @@ var script$r = Vue.extend({
|
|
|
1857
1955
|
const __vue_script__$r = script$r;
|
|
1858
1956
|
|
|
1859
1957
|
/* template */
|
|
1860
|
-
var __vue_render__$r = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c(
|
|
1958
|
+
var __vue_render__$r = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c(_vm.item.type,{tag:"component",attrs:{"conditions":_vm.item.conditions}})};
|
|
1861
1959
|
var __vue_staticRenderFns__$r = [];
|
|
1862
1960
|
|
|
1863
1961
|
/* style */
|
|
@@ -1889,17 +1987,21 @@ var __vue_staticRenderFns__$r = [];
|
|
|
1889
1987
|
undefined
|
|
1890
1988
|
);
|
|
1891
1989
|
|
|
1990
|
+
var Expr$1 = __vue_component__$r;
|
|
1991
|
+
|
|
1892
1992
|
var script$q = Vue.extend({
|
|
1893
|
-
name: "
|
|
1993
|
+
name: "Evaluation",
|
|
1994
|
+
components: {
|
|
1995
|
+
Row, Col, Checkbox, CheckboxGroup, Card, Icon,
|
|
1996
|
+
STAR: Star$1,
|
|
1997
|
+
EXPR: Expr$1,
|
|
1998
|
+
},
|
|
1999
|
+
mixins: [LocaleMixin],
|
|
1894
2000
|
props: {
|
|
1895
|
-
|
|
2001
|
+
question: {
|
|
1896
2002
|
type: Object,
|
|
1897
2003
|
required: true
|
|
1898
2004
|
}
|
|
1899
|
-
},
|
|
1900
|
-
components: {
|
|
1901
|
-
IF: __vue_component__$s,
|
|
1902
|
-
ELSE: __vue_component__$r
|
|
1903
2005
|
}
|
|
1904
2006
|
});
|
|
1905
2007
|
|
|
@@ -1907,7 +2009,7 @@ var script$q = Vue.extend({
|
|
|
1907
2009
|
const __vue_script__$q = script$q;
|
|
1908
2010
|
|
|
1909
2011
|
/* template */
|
|
1910
|
-
var __vue_render__$q = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c(_vm.item.type,{tag:"component",attrs:{"
|
|
2012
|
+
var __vue_render__$q = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[(_vm.question.evaluationItems.length > 0)?_c('Row',{attrs:{"type":"flex","justify":"start","gutter":24}},_vm._l((_vm.question.evaluationItems),function(item){return _c('Col',{key:item.id,staticClass:"col-padding"},[_c('Card',{staticClass:"evaluation-cards-default",attrs:{"dis-hover":""}},[_c('div',{staticClass:"card-title",attrs:{"slot":"title"},slot:"title"},[_c('Icon',{staticClass:"icon",attrs:{"type":"ios-checkmark-circle-outline","size":36}})],1),_vm._v(" "),_c('div',{staticClass:"card-content"},[_c('p',{staticClass:"text"},[_vm._v(_vm._s(_vm._f("translate")(item.text,true)))]),_vm._v(" "),_c(_vm.question.options.evaluationType,{tag:"component",attrs:{"item":item}})],1)])],1)}),1):_vm._e()],1)};
|
|
1911
2013
|
var __vue_staticRenderFns__$q = [];
|
|
1912
2014
|
|
|
1913
2015
|
/* style */
|
|
@@ -1939,18 +2041,35 @@ var __vue_staticRenderFns__$q = [];
|
|
|
1939
2041
|
undefined
|
|
1940
2042
|
);
|
|
1941
2043
|
|
|
2044
|
+
var Evaluation = __vue_component__$q;
|
|
2045
|
+
|
|
1942
2046
|
var script$p = Vue.extend({
|
|
1943
|
-
name: "
|
|
2047
|
+
name: "editor-question-row",
|
|
1944
2048
|
components: {
|
|
1945
|
-
Row,
|
|
1946
|
-
|
|
1947
|
-
|
|
2049
|
+
Row,
|
|
2050
|
+
Col,
|
|
2051
|
+
Divider,
|
|
2052
|
+
Card,
|
|
2053
|
+
Icon,
|
|
2054
|
+
QuestionDefaultLayout,
|
|
2055
|
+
["SINGLE_SELECTION"]: SingleSelection,
|
|
2056
|
+
["MULTI_SELECTION"]: MultiSelection,
|
|
2057
|
+
["SHORT_ANSWER"]: ShortAnswer,
|
|
2058
|
+
["FILL_BLANK"]: FillBlank,
|
|
2059
|
+
["TEXT_TITLE"]: TextTitle,
|
|
2060
|
+
["MATRIX"]: Matrix,
|
|
2061
|
+
["EVALUATION"]: Evaluation
|
|
1948
2062
|
},
|
|
1949
2063
|
mixins: [LocaleMixin],
|
|
2064
|
+
inject: ["$rootComponent"],
|
|
1950
2065
|
props: {
|
|
1951
2066
|
question: {
|
|
1952
2067
|
type: Object,
|
|
1953
2068
|
required: true
|
|
2069
|
+
},
|
|
2070
|
+
index: {
|
|
2071
|
+
type: Number,
|
|
2072
|
+
required: true
|
|
1954
2073
|
}
|
|
1955
2074
|
}
|
|
1956
2075
|
});
|
|
@@ -1959,7 +2078,7 @@ var script$p = Vue.extend({
|
|
|
1959
2078
|
const __vue_script__$p = script$p;
|
|
1960
2079
|
|
|
1961
2080
|
/* template */
|
|
1962
|
-
var __vue_render__$p = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('
|
|
2081
|
+
var __vue_render__$p = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('Card',{staticClass:"question-row",attrs:{"padding":0,"bordered":false,"dis-hover":true}},[_c('Divider',{staticClass:"question-type-desc",attrs:{"orientation":"left"}},[_vm._v("\n "+_vm._s(_vm.t(("survey_creator.question.types." + (_vm.question.type))))+"\n ")]),_vm._v(" "),_c('Row',{attrs:{"type":"flex","justify":"start","align":"middle","gutter":20}},[_c('Col',{staticClass:"question-row-move"},[_c('Icon',{attrs:{"custom":"i-icon icon-activity-drag","size":"15","color":"#dcdee2"}})],1),_vm._v(" "),_c('Col',{staticClass:"question-row-content"},[_c('question-default-layout',{attrs:{"question":_vm.question}},[_c(_vm.question.type,{tag:"component",attrs:{"question":_vm.question}})],1)],1)],1)],1)};
|
|
1963
2082
|
var __vue_staticRenderFns__$p = [];
|
|
1964
2083
|
|
|
1965
2084
|
/* style */
|
|
@@ -1991,42 +2110,36 @@ var __vue_staticRenderFns__$p = [];
|
|
|
1991
2110
|
undefined
|
|
1992
2111
|
);
|
|
1993
2112
|
|
|
2113
|
+
var EditorQuestionRow = __vue_component__$p;
|
|
2114
|
+
|
|
1994
2115
|
var script$o = Vue.extend({
|
|
1995
|
-
name: "editor-
|
|
1996
|
-
components: {
|
|
1997
|
-
Row,
|
|
1998
|
-
Col,
|
|
1999
|
-
Divider,
|
|
2000
|
-
Card,
|
|
2001
|
-
Icon,
|
|
2002
|
-
QuestionDefaultLayout: __vue_component__$A,
|
|
2003
|
-
["SINGLE_SELECTION"]: __vue_component__$z,
|
|
2004
|
-
["MULTI_SELECTION"]: __vue_component__$y,
|
|
2005
|
-
["SHORT_ANSWER"]: __vue_component__$x,
|
|
2006
|
-
["FILL_BLANK"]: __vue_component__$w,
|
|
2007
|
-
["TEXT_TITLE"]: __vue_component__$v,
|
|
2008
|
-
["MATRIX"]: __vue_component__$u,
|
|
2009
|
-
["EVALUATION"]: __vue_component__$p
|
|
2010
|
-
},
|
|
2116
|
+
name: "editor-questions",
|
|
2117
|
+
components: { EditorQuestionRow, draggable },
|
|
2011
2118
|
mixins: [LocaleMixin],
|
|
2012
|
-
inject: ["$rootComponent"],
|
|
2013
2119
|
props: {
|
|
2014
|
-
|
|
2120
|
+
survey: {
|
|
2015
2121
|
type: Object,
|
|
2016
2122
|
required: true
|
|
2123
|
+
}
|
|
2124
|
+
},
|
|
2125
|
+
methods: {
|
|
2126
|
+
dragEnd(event) {
|
|
2127
|
+
if (event.newIndex === event.oldIndex) {
|
|
2128
|
+
return;
|
|
2129
|
+
}
|
|
2130
|
+
BaseQuestionModel.rebuildQuestionNumber(this.survey.questions);
|
|
2017
2131
|
},
|
|
2018
|
-
|
|
2019
|
-
|
|
2020
|
-
required: true
|
|
2132
|
+
chooseQuestion(question) {
|
|
2133
|
+
BaseQuestionModel.setActiveQuestion(question, this.survey.questions);
|
|
2021
2134
|
}
|
|
2022
2135
|
}
|
|
2023
2136
|
});
|
|
2024
2137
|
|
|
2138
|
+
var __$_require_images_empty_svg__ = "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI4NiIgaGVpZ2h0PSI4MCIgdmlld0JveD0iMCAwIDg2IDgwIj4KICAgIDxnIGZpbGw9Im5vbmUiIGZpbGwtcnVsZT0iZXZlbm9kZCI+CiAgICAgICAgPHBhdGggZmlsbD0iI0Y1RjVGNyIgZD0iTTc5IDY1LjY4djIuOTJjMCAyLjc2LTIuMjM5IDUtNSA1SDEyYy0yLjc2MiAwLTUtMi4yNC01LTV2LTIuOTJjLTQuNDIgMS40MTQtNyAzLjEwNC03IDQuOTIgMCA0Ljk3IDE5LjI1MSA5IDQzIDkgMjMuNzQ4IDAgNDMtNC4wMyA0My05IDAtMS44MTYtMi41NzktMy41MDYtNy00LjkyIi8+CiAgICAgICAgPHBhdGggZmlsbD0iI0RDREVFOCIgZD0iTTU3LjQxNCA1Mi4xNDljLS4yNDUuODU5LTEuMDMgMS40NS0xLjkyMyAxLjQ1SDMwLjUwOGMtLjg5MyAwLTEuNjc4LS41OTEtMS45MjMtMS40NWwtLjU0OS0xLjkyM2MtLjYxMy0yLjE0Ni0yLjU3NS0zLjYyNi00LjgwNy0zLjYyNkg3djIyYzAgMi43NjIgMi4yMzggNSA1IDVoNjJjMi43NjEgMCA1LTIuMjM4IDUtNXYtMjJINjIuNzcyYy0yLjIzMyAwLTQuMTk1IDEuNDgtNC44MDggMy42MjZsLS41NSAxLjkyM3oiLz4KICAgICAgICA8cGF0aCBmaWxsPSIjRjBGMkY1IiBkPSJNNTkgNDMuNkgyN2MtLjU1MyAwLTEtLjQ0OC0xLTEgMC0uNTUzLjQ0Ny0xIDEtMWgzMmMuNTUyIDAgMSAuNDQ3IDEgMSAwIC41NTItLjQ0OCAxLTEgMXptMC05SDI3Yy0uNTUzIDAtMS0uNDQ4LTEtMSAwLS41NTMuNDQ3LTEgMS0xaDMyYy41NTIgMCAxIC40NDcgMSAxIDAgLjU1Mi0uNDQ4IDEtMSAxem0tMzEtOGMtMS4xMDQgMC0yLS44OTYtMi0ydi0xNGMwLTEuMTA0Ljg5Ni0yIDItMmgzMGMxLjEwNCAwIDIgLjg5NiAyIDJ2MTRjMCAxLjEwNC0uODk2IDItMiAySDI4eiIvPgogICAgICAgIDxwYXRoIGZpbGw9IiM5MTk2QUEiIGQ9Ik02OC42IDQ2LjZ2LTEuNUg2OHYtMi41ODRoLjZ2LTIuOTVINjhWMzcuMDFoLjZWMzQuNmwxMC40IDEySDY4LjZ6TTE3LjQgMzQuNTk5djIuNDM5aC42djIuNTU2aC0uNnYyLjk0OWguNlY0NS4xaC0uNnYxLjVIN2wxMC40LTEyLjAwMXoiLz4KICAgICAgICA8cGF0aCBmaWxsPSIjRENERUU4IiBkPSJNMTcuNDAxIDQ2LjZ2LTEuNUgxOC42djEuNWgtMS4xOTl6TTI3Ljc0OSAxLjJWMGgyLjk0OXYxLjJoLTIuOTQ5em01LjUwNiAwVjBoMi45NDl2MS4yaC0yLjk0OXptNS41MDQgMFYwaDIuOTQ5djEuMmgtMi45NDl6bTUuNTA2IDBWMGgyLjk0OXYxLjJoLTIuOTQ5em01LjUwNSAwVjBoMi45NDl2MS4ySDQ5Ljc3em01LjUwNiAwVjBoMi45NDl2MS4yaC0yLjk0OXptOC4zNjMuMDQ2QzYzLjQzIDEuMjE0IDYzLjIxNyAxLjIgNjMgMS4yaC0yLjIxOVYwSDYzYy4yNzggMCAuNTQ5LjAyLjgxNS4wNThsLS4xNzYgMS4xODh6bS00MS4zMDMuMDA0TDIyLjE1Ny4wNjJDMjIuNDMyLjAyMiAyMi43MTQgMCAyMyAwaDIuMTkzdjEuMkgyM2MtLjIyNSAwLS40NDcuMDE2LS42NjQuMDV6bTQ0LjgzNiAyLjk0N2MtLjI3OC0uODI2LS43OTItMS41NDYtMS40ODYtMi4wODNsLjczNC0uOTQ5Yy44ODMuNjgyIDEuNTM2IDEuNTk4IDEuODg5IDIuNjVsLTEuMTM3LjM4MnpNMTguODIgNC4yMmwtMS4xMzktLjM3N2MuMzQ4LTEuMDUyLjk5NS0xLjk3MiAxLjg3NC0yLjY1OWwuNzM4Ljk0NWMtLjY5LjU0LTEuMiAxLjI2My0xLjQ3MyAyLjA5MXptNDguNTgxIDUuMjYzVjYuNTM0SDY4LjZ2Mi45NWgtMS4xOTl6bS01MCAuMDI3VjYuNTYxSDE4LjZ2Mi45NWgtMS4xOTl6bTUwIDUuNDc4VjEyLjA0SDY4LjZ2Mi45NWgtMS4xOTl6bS01MCAuMDI4di0yLjk1SDE4LjZ2Mi45NWgtMS4xOTl6bTUwIDUuNDc4di0yLjk0OUg2OC42djIuOTVoLTEuMTk5em0tNTAgLjAyN3YtMi45NDlIMTguNnYyLjk1aC0xLjE5OXptNTAgNS40NzhWMjMuMDVINjguNlYyNmgtMS4xOTl6bS01MCAuMDI4di0yLjk1SDE4LjZ2Mi45NWgtMS4xOTl6bTUwIDUuNDc3di0yLjk0OUg2OC42djIuOTVoLTEuMTk5em0tNTAgLjAyOHYtMi45NDlIMTguNnYyLjk1aC0xLjE5OXptNTAgNS40NzdWMzQuMDZINjguNnYyLjk1aC0xLjE5OXptLTUwIC4wM3YtMi45NUgxOC42djIuOTVoLTEuMTk5em01MCA1LjQ3NnYtMi45NDlINjguNnYyLjk1aC0xLjE5OXptLTUwIC4wMjh2LTIuOTQ5SDE4LjZ2Mi45NWgtMS4xOTl6bTUwIDQuMDU2di0xLjVINjguNnYxLjVoLTEuMTk5eiIvPgogICAgPC9nPgo8L3N2Zz4K";
|
|
2139
|
+
|
|
2025
2140
|
/* script */
|
|
2026
2141
|
const __vue_script__$o = script$o;
|
|
2027
|
-
|
|
2028
|
-
/* template */
|
|
2029
|
-
var __vue_render__$o = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('Card',{staticClass:"question-row",attrs:{"padding":0,"bordered":false,"dis-hover":true}},[_c('Divider',{staticClass:"question-type-desc",attrs:{"orientation":"left"}},[_vm._v("\n "+_vm._s(_vm.t(("survey_creator.question.types." + (_vm.question.type))))+"\n ")]),_vm._v(" "),_c('Row',{attrs:{"type":"flex","justify":"start","align":"middle","gutter":20}},[_c('Col',{staticClass:"question-row-move"},[_c('Icon',{attrs:{"custom":"i-icon icon-activity-drag","size":"15","color":"#dcdee2"}})],1),_vm._v(" "),_c('Col',{staticClass:"question-row-content"},[_c('question-default-layout',{attrs:{"question":_vm.question}},[_c(_vm.question.type,{tag:"component",attrs:{"question":_vm.question}})],1)],1)],1)],1)};
|
|
2142
|
+
var __vue_render__$o = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[(_vm.survey.questions.length > 0)?_c('draggable',{staticClass:"questions-wrapper",attrs:{"draggable":".question-row"},on:{"start":function($event){_vm.drag=true;},"end":_vm.dragEnd},model:{value:(_vm.survey.questions),callback:function ($$v) {_vm.$set(_vm.survey, "questions", $$v);},expression:"survey.questions"}},[_c('transition-group',_vm._l((_vm.survey.questions),function(question,index){return _c('editor-question-row',{key:question.id,class:{'question-row-active': question.active},attrs:{"question":question,"index":index,"id":question.id},nativeOn:{"click":function($event){return _vm.chooseQuestion(question)}}})}),1)],1):_c('div',{staticClass:"no-data"},[_c('img',{staticClass:"empty-icon",attrs:{"src":__$_require_images_empty_svg__}}),_vm._v(" "),_c('p',{staticClass:"empty-desc"},[_vm._v(_vm._s(_vm.t('survey_creator.question.no_data')))])])],1)};
|
|
2030
2143
|
var __vue_staticRenderFns__$o = [];
|
|
2031
2144
|
|
|
2032
2145
|
/* style */
|
|
@@ -2058,34 +2171,29 @@ var __vue_staticRenderFns__$o = [];
|
|
|
2058
2171
|
undefined
|
|
2059
2172
|
);
|
|
2060
2173
|
|
|
2174
|
+
var EditQuestions = __vue_component__$o;
|
|
2175
|
+
|
|
2061
2176
|
var script$n = Vue.extend({
|
|
2062
|
-
name: "editor
|
|
2063
|
-
components: { EditorQuestionRow: __vue_component__$o, draggable },
|
|
2177
|
+
name: "survey-editor",
|
|
2064
2178
|
mixins: [LocaleMixin],
|
|
2179
|
+
components: { Card, Row, Col, Button, EditQuestions },
|
|
2065
2180
|
props: {
|
|
2066
2181
|
survey: {
|
|
2067
2182
|
type: Object,
|
|
2068
2183
|
required: true
|
|
2069
|
-
}
|
|
2070
|
-
},
|
|
2071
|
-
methods: {
|
|
2072
|
-
dragEnd(event) {
|
|
2073
|
-
if (event.newIndex === event.oldIndex) {
|
|
2074
|
-
return;
|
|
2075
|
-
}
|
|
2076
|
-
BaseQuestionModel.rebuildQuestionNumber(this.survey.questions);
|
|
2077
2184
|
},
|
|
2078
|
-
|
|
2079
|
-
|
|
2185
|
+
options: {
|
|
2186
|
+
type: Object,
|
|
2187
|
+
required: true
|
|
2080
2188
|
}
|
|
2081
2189
|
}
|
|
2082
2190
|
});
|
|
2083
2191
|
|
|
2084
|
-
var __$_require_images_empty_svg__ = "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI4NiIgaGVpZ2h0PSI4MCIgdmlld0JveD0iMCAwIDg2IDgwIj4KICAgIDxnIGZpbGw9Im5vbmUiIGZpbGwtcnVsZT0iZXZlbm9kZCI+CiAgICAgICAgPHBhdGggZmlsbD0iI0Y1RjVGNyIgZD0iTTc5IDY1LjY4djIuOTJjMCAyLjc2LTIuMjM5IDUtNSA1SDEyYy0yLjc2MiAwLTUtMi4yNC01LTV2LTIuOTJjLTQuNDIgMS40MTQtNyAzLjEwNC03IDQuOTIgMCA0Ljk3IDE5LjI1MSA5IDQzIDkgMjMuNzQ4IDAgNDMtNC4wMyA0My05IDAtMS44MTYtMi41NzktMy41MDYtNy00LjkyIi8+CiAgICAgICAgPHBhdGggZmlsbD0iI0RDREVFOCIgZD0iTTU3LjQxNCA1Mi4xNDljLS4yNDUuODU5LTEuMDMgMS40NS0xLjkyMyAxLjQ1SDMwLjUwOGMtLjg5MyAwLTEuNjc4LS41OTEtMS45MjMtMS40NWwtLjU0OS0xLjkyM2MtLjYxMy0yLjE0Ni0yLjU3NS0zLjYyNi00LjgwNy0zLjYyNkg3djIyYzAgMi43NjIgMi4yMzggNSA1IDVoNjJjMi43NjEgMCA1LTIuMjM4IDUtNXYtMjJINjIuNzcyYy0yLjIzMyAwLTQuMTk1IDEuNDgtNC44MDggMy42MjZsLS41NSAxLjkyM3oiLz4KICAgICAgICA8cGF0aCBmaWxsPSIjRjBGMkY1IiBkPSJNNTkgNDMuNkgyN2MtLjU1MyAwLTEtLjQ0OC0xLTEgMC0uNTUzLjQ0Ny0xIDEtMWgzMmMuNTUyIDAgMSAuNDQ3IDEgMSAwIC41NTItLjQ0OCAxLTEgMXptMC05SDI3Yy0uNTUzIDAtMS0uNDQ4LTEtMSAwLS41NTMuNDQ3LTEgMS0xaDMyYy41NTIgMCAxIC40NDcgMSAxIDAgLjU1Mi0uNDQ4IDEtMSAxem0tMzEtOGMtMS4xMDQgMC0yLS44OTYtMi0ydi0xNGMwLTEuMTA0Ljg5Ni0yIDItMmgzMGMxLjEwNCAwIDIgLjg5NiAyIDJ2MTRjMCAxLjEwNC0uODk2IDItMiAySDI4eiIvPgogICAgICAgIDxwYXRoIGZpbGw9IiM5MTk2QUEiIGQ9Ik02OC42IDQ2LjZ2LTEuNUg2OHYtMi41ODRoLjZ2LTIuOTVINjhWMzcuMDFoLjZWMzQuNmwxMC40IDEySDY4LjZ6TTE3LjQgMzQuNTk5djIuNDM5aC42djIuNTU2aC0uNnYyLjk0OWguNlY0NS4xaC0uNnYxLjVIN2wxMC40LTEyLjAwMXoiLz4KICAgICAgICA8cGF0aCBmaWxsPSIjRENERUU4IiBkPSJNMTcuNDAxIDQ2LjZ2LTEuNUgxOC42djEuNWgtMS4xOTl6TTI3Ljc0OSAxLjJWMGgyLjk0OXYxLjJoLTIuOTQ5em01LjUwNiAwVjBoMi45NDl2MS4yaC0yLjk0OXptNS41MDQgMFYwaDIuOTQ5djEuMmgtMi45NDl6bTUuNTA2IDBWMGgyLjk0OXYxLjJoLTIuOTQ5em01LjUwNSAwVjBoMi45NDl2MS4ySDQ5Ljc3em01LjUwNiAwVjBoMi45NDl2MS4yaC0yLjk0OXptOC4zNjMuMDQ2QzYzLjQzIDEuMjE0IDYzLjIxNyAxLjIgNjMgMS4yaC0yLjIxOVYwSDYzYy4yNzggMCAuNTQ5LjAyLjgxNS4wNThsLS4xNzYgMS4xODh6bS00MS4zMDMuMDA0TDIyLjE1Ny4wNjJDMjIuNDMyLjAyMiAyMi43MTQgMCAyMyAwaDIuMTkzdjEuMkgyM2MtLjIyNSAwLS40NDcuMDE2LS42NjQuMDV6bTQ0LjgzNiAyLjk0N2MtLjI3OC0uODI2LS43OTItMS41NDYtMS40ODYtMi4wODNsLjczNC0uOTQ5Yy44ODMuNjgyIDEuNTM2IDEuNTk4IDEuODg5IDIuNjVsLTEuMTM3LjM4MnpNMTguODIgNC4yMmwtMS4xMzktLjM3N2MuMzQ4LTEuMDUyLjk5NS0xLjk3MiAxLjg3NC0yLjY1OWwuNzM4Ljk0NWMtLjY5LjU0LTEuMiAxLjI2My0xLjQ3MyAyLjA5MXptNDguNTgxIDUuMjYzVjYuNTM0SDY4LjZ2Mi45NWgtMS4xOTl6bS01MCAuMDI3VjYuNTYxSDE4LjZ2Mi45NWgtMS4xOTl6bTUwIDUuNDc4VjEyLjA0SDY4LjZ2Mi45NWgtMS4xOTl6bS01MCAuMDI4di0yLjk1SDE4LjZ2Mi45NWgtMS4xOTl6bTUwIDUuNDc4di0yLjk0OUg2OC42djIuOTVoLTEuMTk5em0tNTAgLjAyN3YtMi45NDlIMTguNnYyLjk1aC0xLjE5OXptNTAgNS40NzhWMjMuMDVINjguNlYyNmgtMS4xOTl6bS01MCAuMDI4di0yLjk1SDE4LjZ2Mi45NWgtMS4xOTl6bTUwIDUuNDc3di0yLjk0OUg2OC42djIuOTVoLTEuMTk5em0tNTAgLjAyOHYtMi45NDlIMTguNnYyLjk1aC0xLjE5OXptNTAgNS40NzdWMzQuMDZINjguNnYyLjk1aC0xLjE5OXptLTUwIC4wM3YtMi45NUgxOC42djIuOTVoLTEuMTk5em01MCA1LjQ3NnYtMi45NDlINjguNnYyLjk1aC0xLjE5OXptLTUwIC4wMjh2LTIuOTQ5SDE4LjZ2Mi45NWgtMS4xOTl6bTUwIDQuMDU2di0xLjVINjguNnYxLjVoLTEuMTk5eiIvPgogICAgPC9nPgo8L3N2Zz4K";
|
|
2085
|
-
|
|
2086
2192
|
/* script */
|
|
2087
2193
|
const __vue_script__$n = script$n;
|
|
2088
|
-
|
|
2194
|
+
|
|
2195
|
+
/* template */
|
|
2196
|
+
var __vue_render__$n = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"survey-editor-wrapper"},[_c('Card',{attrs:{"shadow":""}},[_c('edit-questions',{attrs:{"survey":_vm.survey}})],1)],1)};
|
|
2089
2197
|
var __vue_staticRenderFns__$n = [];
|
|
2090
2198
|
|
|
2091
2199
|
/* style */
|
|
@@ -2117,57 +2225,7 @@ var __vue_staticRenderFns__$n = [];
|
|
|
2117
2225
|
undefined
|
|
2118
2226
|
);
|
|
2119
2227
|
|
|
2120
|
-
var
|
|
2121
|
-
name: "survey-editor",
|
|
2122
|
-
mixins: [LocaleMixin],
|
|
2123
|
-
components: { Card, Row, Col, Button, EditQuestions: __vue_component__$n },
|
|
2124
|
-
props: {
|
|
2125
|
-
survey: {
|
|
2126
|
-
type: Object,
|
|
2127
|
-
required: true
|
|
2128
|
-
},
|
|
2129
|
-
options: {
|
|
2130
|
-
type: Object,
|
|
2131
|
-
required: true
|
|
2132
|
-
}
|
|
2133
|
-
}
|
|
2134
|
-
});
|
|
2135
|
-
|
|
2136
|
-
/* script */
|
|
2137
|
-
const __vue_script__$m = script$m;
|
|
2138
|
-
|
|
2139
|
-
/* template */
|
|
2140
|
-
var __vue_render__$m = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"survey-editor-wrapper"},[_c('Card',{attrs:{"shadow":""}},[_c('edit-questions',{attrs:{"survey":_vm.survey}})],1)],1)};
|
|
2141
|
-
var __vue_staticRenderFns__$m = [];
|
|
2142
|
-
|
|
2143
|
-
/* style */
|
|
2144
|
-
const __vue_inject_styles__$m = undefined;
|
|
2145
|
-
/* scoped */
|
|
2146
|
-
const __vue_scope_id__$m = undefined;
|
|
2147
|
-
/* module identifier */
|
|
2148
|
-
const __vue_module_identifier__$m = undefined;
|
|
2149
|
-
/* functional template */
|
|
2150
|
-
const __vue_is_functional_template__$m = false;
|
|
2151
|
-
/* style inject */
|
|
2152
|
-
|
|
2153
|
-
/* style inject SSR */
|
|
2154
|
-
|
|
2155
|
-
/* style inject shadow dom */
|
|
2156
|
-
|
|
2157
|
-
|
|
2158
|
-
|
|
2159
|
-
const __vue_component__$m = /*#__PURE__*/normalizeComponent(
|
|
2160
|
-
{ render: __vue_render__$m, staticRenderFns: __vue_staticRenderFns__$m },
|
|
2161
|
-
__vue_inject_styles__$m,
|
|
2162
|
-
__vue_script__$m,
|
|
2163
|
-
__vue_scope_id__$m,
|
|
2164
|
-
__vue_is_functional_template__$m,
|
|
2165
|
-
__vue_module_identifier__$m,
|
|
2166
|
-
false,
|
|
2167
|
-
undefined,
|
|
2168
|
-
undefined,
|
|
2169
|
-
undefined
|
|
2170
|
-
);
|
|
2228
|
+
var SurveyEditor = __vue_component__$n;
|
|
2171
2229
|
|
|
2172
2230
|
var questionFormMixin = Vue.extend({
|
|
2173
2231
|
inject: ["$rootComponent"],
|
|
@@ -2193,7 +2251,7 @@ var questionFormMixin = Vue.extend({
|
|
|
2193
2251
|
methods: {}
|
|
2194
2252
|
});
|
|
2195
2253
|
|
|
2196
|
-
var script$
|
|
2254
|
+
var script$m = Vue.extend({
|
|
2197
2255
|
name: "single-selection-form",
|
|
2198
2256
|
components: {
|
|
2199
2257
|
Form,
|
|
@@ -2264,10 +2322,10 @@ var script$l = Vue.extend({
|
|
|
2264
2322
|
});
|
|
2265
2323
|
|
|
2266
2324
|
/* script */
|
|
2267
|
-
const __vue_script__$
|
|
2325
|
+
const __vue_script__$m = script$m;
|
|
2268
2326
|
|
|
2269
2327
|
/* template */
|
|
2270
|
-
var __vue_render__$
|
|
2328
|
+
var __vue_render__$m = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('Form',{ref:"questionForm",attrs:{"model":_vm.editQuestion,"label-colon":false}},[_c('Row',{staticClass:"question-options"},[_c('Checkbox',{model:{value:(_vm.editQuestion.options.required),callback:function ($$v) {_vm.$set(_vm.editQuestion.options, "required", $$v);},expression:"editQuestion.options.required"}},[_vm._v("\n "+_vm._s(_vm.t('survey_creator.question.questionRequired'))+"\n ")]),_vm._v(" "),_c('Checkbox',{on:{"on-change":_vm.scoringEnabledChange},model:{value:(_vm.editQuestion.options.scoringEnabled),callback:function ($$v) {_vm.$set(_vm.editQuestion.options, "scoringEnabled", $$v);},expression:"editQuestion.options.scoringEnabled"}},[_vm._v("\n "+_vm._s(_vm.t('survey_creator.question.scoringEnabled'))+"\n ")]),_vm._v(" "),_c('Checkbox',{on:{"on-change":_vm.starEnabledChange},model:{value:(_vm.editQuestion.options.starEnabled),callback:function ($$v) {_vm.$set(_vm.editQuestion.options, "starEnabled", $$v);},expression:"editQuestion.options.starEnabled"}},[_c('span',[_vm._v("\n "+_vm._s(_vm.t('survey_creator.question.starEnabled'))+"\n "),_c('Icon',{attrs:{"type":"md-star","color":"orange","size":16}})],1)])],1),_vm._v(" "),_c('Row',[_c('Form-item',{attrs:{"label-width":80,"label":_vm.t('survey_creator.page.question'),"prop":'header.text.' + _vm.primaryLanguage,"rules":{required: true, message: _vm.t('survey_creator.question.titleRequiredTip')}}},[_c('Row',[_c('Col',{attrs:{"span":"23"}},[_c('Input',{attrs:{"maxlength":500,"placeholder":_vm.t('survey_creator.question.titleRequiredTip')},model:{value:(_vm.editQuestion.header.text[_vm.primaryLanguage]),callback:function ($$v) {_vm.$set(_vm.editQuestion.header.text, _vm.primaryLanguage, $$v);},expression:"editQuestion.header.text[primaryLanguage]"}})],1)],1)],1)],1),_vm._v(" "),_c('draggable',{staticClass:"question-choices-wrapper",attrs:{"draggable":".question-choice"},on:{"start":function($event){_vm.drag=true;},"end":function($event){_vm.drag=false;}},model:{value:(_vm.editQuestion.choices),callback:function ($$v) {_vm.$set(_vm.editQuestion, "choices", $$v);},expression:"editQuestion.choices"}},_vm._l((_vm.editQuestion.choices),function(option,index){return _c('div',{key:index,staticClass:"question-choice"},[_c('FormItem',{attrs:{"label-width":80,"label":_vm.t('survey_creator.question.optional'),"prop":'choices.' + index + '.text.' + _vm.primaryLanguage,"rules":{required: true, message: _vm.t('survey_creator.question.optionalRequiredTip')}}},[_c('Row',[_c('Col',{attrs:{"span":"12"}},[_c('Input',{model:{value:(option.text[_vm.primaryLanguage]),callback:function ($$v) {_vm.$set(option.text, _vm.primaryLanguage, (typeof $$v === 'string'? $$v.trim(): $$v));},expression:"option.text[primaryLanguage]"}})],1),_vm._v(" "),_c('Col',{attrs:{"span":"3"}},[_c('ButtonGroup',[(_vm.editQuestion.choices.length < _vm.choiceLimit.max)?_c('Button',{attrs:{"icon":"md-add"},nativeOn:{"click":function($event){return _vm.addOption()}}}):_vm._e(),_vm._v(" "),(_vm.editQuestion.choices.length > _vm.choiceLimit.min)?_c('Button',{attrs:{"icon":"md-remove"},nativeOn:{"click":function($event){return _vm.deleteOption(index)}}}):_vm._e()],1)],1),_vm._v(" "),_c('Col',{attrs:{"span":"4"}},[_c('Form-item',{directives:[{name:"show",rawName:"v-show",value:(_vm.editQuestion.options.scoringEnabled),expression:"editQuestion.options.scoringEnabled"}],attrs:{"prop":'choices.' + index + '.options.score',"label-width":80,"rules":[
|
|
2271
2329
|
{ required: _vm.editQuestion.options.scoringEnabled,
|
|
2272
2330
|
message: _vm.t('survey_creator.question.scoreRequiredTip')},
|
|
2273
2331
|
{ pattern: /^(([1-9][0-9][0-9]|[1-9][0-9]|[0-9])(\.\d{1,2})?|0\.\d{1,2})$/,
|
|
@@ -2276,40 +2334,42 @@ var __vue_render__$l = function () {var _vm=this;var _h=_vm.$createElement;var _
|
|
|
2276
2334
|
{ message: _vm.t('survey_creator.question.starLeastOneTip'),
|
|
2277
2335
|
validator:_vm.validatedStar}
|
|
2278
2336
|
]}},[_c('Checkbox',{on:{"on-change":function($event){return _vm.starChange(option.id)}},model:{value:(option.options.star),callback:function ($$v) {_vm.$set(option.options, "star", $$v);},expression:"option.options.star"}},[_vm._v("\n "+_vm._s(_vm.t('survey_creator.question.optionalStarTip'))+"\n ")])],1)],1)],1)],1)],1)}),0)],1)};
|
|
2279
|
-
var __vue_staticRenderFns__$
|
|
2337
|
+
var __vue_staticRenderFns__$m = [];
|
|
2280
2338
|
|
|
2281
2339
|
/* style */
|
|
2282
|
-
const __vue_inject_styles__$
|
|
2340
|
+
const __vue_inject_styles__$m = function (inject) {
|
|
2283
2341
|
if (!inject) return
|
|
2284
2342
|
inject("data-v-281b8cd1_0", { source: ".question-options[data-v-281b8cd1]{padding-bottom:10px;padding-left:80px}", map: undefined, media: undefined });
|
|
2285
2343
|
|
|
2286
2344
|
};
|
|
2287
2345
|
/* scoped */
|
|
2288
|
-
const __vue_scope_id__$
|
|
2346
|
+
const __vue_scope_id__$m = "data-v-281b8cd1";
|
|
2289
2347
|
/* module identifier */
|
|
2290
|
-
const __vue_module_identifier__$
|
|
2348
|
+
const __vue_module_identifier__$m = undefined;
|
|
2291
2349
|
/* functional template */
|
|
2292
|
-
const __vue_is_functional_template__$
|
|
2350
|
+
const __vue_is_functional_template__$m = false;
|
|
2293
2351
|
/* style inject SSR */
|
|
2294
2352
|
|
|
2295
2353
|
/* style inject shadow dom */
|
|
2296
2354
|
|
|
2297
2355
|
|
|
2298
2356
|
|
|
2299
|
-
const __vue_component__$
|
|
2300
|
-
{ render: __vue_render__$
|
|
2301
|
-
__vue_inject_styles__$
|
|
2302
|
-
__vue_script__$
|
|
2303
|
-
__vue_scope_id__$
|
|
2304
|
-
__vue_is_functional_template__$
|
|
2305
|
-
__vue_module_identifier__$
|
|
2357
|
+
const __vue_component__$m = /*#__PURE__*/normalizeComponent(
|
|
2358
|
+
{ render: __vue_render__$m, staticRenderFns: __vue_staticRenderFns__$m },
|
|
2359
|
+
__vue_inject_styles__$m,
|
|
2360
|
+
__vue_script__$m,
|
|
2361
|
+
__vue_scope_id__$m,
|
|
2362
|
+
__vue_is_functional_template__$m,
|
|
2363
|
+
__vue_module_identifier__$m,
|
|
2306
2364
|
false,
|
|
2307
2365
|
createInjector,
|
|
2308
2366
|
undefined,
|
|
2309
2367
|
undefined
|
|
2310
2368
|
);
|
|
2311
2369
|
|
|
2312
|
-
var
|
|
2370
|
+
var SingleSelectionForm = __vue_component__$m;
|
|
2371
|
+
|
|
2372
|
+
var script$l = Vue.extend({
|
|
2313
2373
|
name: "multi-selection-form",
|
|
2314
2374
|
components: {
|
|
2315
2375
|
Form,
|
|
@@ -2377,49 +2437,51 @@ var script$k = Vue.extend({
|
|
|
2377
2437
|
});
|
|
2378
2438
|
|
|
2379
2439
|
/* script */
|
|
2380
|
-
const __vue_script__$
|
|
2440
|
+
const __vue_script__$l = script$l;
|
|
2381
2441
|
|
|
2382
2442
|
/* template */
|
|
2383
|
-
var __vue_render__$
|
|
2443
|
+
var __vue_render__$l = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('Form',{ref:"questionForm",attrs:{"model":_vm.editQuestion,"label-colon":false}},[_c('Row',{staticClass:"question-options"},[_c('Checkbox',{model:{value:(_vm.editQuestion.options.required),callback:function ($$v) {_vm.$set(_vm.editQuestion.options, "required", $$v);},expression:"editQuestion.options.required"}},[_vm._v("\n "+_vm._s(_vm.t('survey_creator.question.questionRequired'))+"\n ")]),_vm._v(" "),_c('Checkbox',{on:{"on-change":_vm.scoringEnabledChange},model:{value:(_vm.editQuestion.options.scoringEnabled),callback:function ($$v) {_vm.$set(_vm.editQuestion.options, "scoringEnabled", $$v);},expression:"editQuestion.options.scoringEnabled"}},[_vm._v("\n "+_vm._s(_vm.t('survey_creator.question.scoringEnabled'))+"\n ")]),_vm._v(" "),_c('Checkbox',{on:{"on-change":_vm.starEnabledChange},model:{value:(_vm.editQuestion.options.starEnabled),callback:function ($$v) {_vm.$set(_vm.editQuestion.options, "starEnabled", $$v);},expression:"editQuestion.options.starEnabled"}},[_c('span',[_vm._v("\n "+_vm._s(_vm.t('survey_creator.question.starEnabled'))+"\n "),_c('Icon',{attrs:{"type":"md-star","color":"orange","size":16}})],1)]),_vm._v(" "),(_vm.editQuestion.options.starEnabled)?_c('div',{staticStyle:{"display":"inline"}},[_c('span',[_vm._v("\n "+_vm._s(_vm.t('survey_creator.question.starMinCountPrefix'))+"\n ")]),_vm._v(" "),_c('Select',{staticStyle:{"width":"50px"},attrs:{"size":"small"},model:{value:(_vm.editQuestion.options.starMinCount),callback:function ($$v) {_vm.$set(_vm.editQuestion.options, "starMinCount", $$v);},expression:"editQuestion.options.starMinCount"}},_vm._l((_vm.selectStarList),function(item){return _c('Option',{key:item.value,attrs:{"value":item.value}},[_vm._v(_vm._s(item.label)+"\n ")])}),1),_vm._v(" "),_c('span',[_vm._v("\n "+_vm._s(_vm.t('survey_creator.question.starMinCountSuffix'))+"\n ")])],1):_vm._e()],1),_vm._v(" "),_c('Row',[_c('Form-item',{attrs:{"label-width":80,"label":_vm.t('survey_creator.page.question'),"prop":'header.text.' + _vm.primaryLanguage,"rules":{required: true, message: _vm.t('survey_creator.question.titleRequiredTip')}}},[_c('Row',[_c('Col',{attrs:{"span":"23"}},[_c('Input',{attrs:{"maxlength":500,"placeholder":_vm.t('survey_creator.question.titleRequiredTip')},model:{value:(_vm.editQuestion.header.text[_vm.primaryLanguage]),callback:function ($$v) {_vm.$set(_vm.editQuestion.header.text, _vm.primaryLanguage, $$v);},expression:"editQuestion.header.text[primaryLanguage]"}})],1)],1)],1)],1),_vm._v(" "),_c('draggable',{staticClass:"question-choices-wrapper",attrs:{"draggable":".question-choice"},on:{"start":function($event){_vm.drag=true;},"end":function($event){_vm.drag=false;}},model:{value:(_vm.editQuestion.choices),callback:function ($$v) {_vm.$set(_vm.editQuestion, "choices", $$v);},expression:"editQuestion.choices"}},_vm._l((_vm.editQuestion.choices),function(option,index){return _c('div',{key:index,staticClass:"question-choice"},[_c('FormItem',{attrs:{"label-width":80,"label":_vm.t('survey_creator.question.optional'),"prop":'choices.' + index + '.text.' + _vm.primaryLanguage,"rules":{required: true, message: _vm.t('survey_creator.question.optionalRequiredTip')}}},[_c('Row',[_c('Col',{attrs:{"span":"16"}},[_c('Input',{model:{value:(option.text[_vm.primaryLanguage]),callback:function ($$v) {_vm.$set(option.text, _vm.primaryLanguage, (typeof $$v === 'string'? $$v.trim(): $$v));},expression:"option.text[primaryLanguage]"}})],1),_vm._v(" "),_c('Col',{attrs:{"span":"3"}},[_c('ButtonGroup',[(_vm.editQuestion.choices.length < _vm.choiceLimit.max)?_c('Button',{attrs:{"icon":"md-add"},nativeOn:{"click":function($event){return _vm.addOption()}}}):_vm._e(),_vm._v(" "),(_vm.editQuestion.choices.length > _vm.choiceLimit.min)?_c('Button',{attrs:{"icon":"md-remove"},nativeOn:{"click":function($event){return _vm.deleteOption(index)}}}):_vm._e()],1)],1),_vm._v(" "),_c('Col',{attrs:{"span":"4"}},[_c('Form-item',{directives:[{name:"show",rawName:"v-show",value:(_vm.editQuestion.options.scoringEnabled),expression:"editQuestion.options.scoringEnabled"}],attrs:{"prop":'choices.' + index + '.options.score',"label-width":80,"rules":[
|
|
2384
2444
|
{ required: _vm.editQuestion.options.scoringEnabled,
|
|
2385
2445
|
message: _vm.t('survey_creator.question.scoreRequiredTip')},
|
|
2386
2446
|
{ pattern: /^(([1-9][0-9][0-9]|[1-9][0-9]|[0-9])(\.\d{1,2})?|0\.\d{1,2})$/,
|
|
2387
2447
|
message: _vm.t('survey_creator.question.scoreErrorTip')}
|
|
2388
2448
|
]}},[_c('Input',{staticStyle:{"width":"95%"},attrs:{"type":"number"},model:{value:(option.options.score),callback:function ($$v) {_vm.$set(option.options, "score", $$v);},expression:"option.options.score"}},[_c('span',{attrs:{"slot":"prepend"},slot:"prepend"},[_vm._v(_vm._s(_vm.t('survey_creator.question.score')))])])],1)],1)],1)],1)],1)}),0)],1)};
|
|
2389
|
-
var __vue_staticRenderFns__$
|
|
2449
|
+
var __vue_staticRenderFns__$l = [];
|
|
2390
2450
|
|
|
2391
2451
|
/* style */
|
|
2392
|
-
const __vue_inject_styles__$
|
|
2452
|
+
const __vue_inject_styles__$l = function (inject) {
|
|
2393
2453
|
if (!inject) return
|
|
2394
2454
|
inject("data-v-2ff2d3ea_0", { source: ".question-options[data-v-2ff2d3ea]{padding-bottom:10px;padding-left:80px}", map: undefined, media: undefined });
|
|
2395
2455
|
|
|
2396
2456
|
};
|
|
2397
2457
|
/* scoped */
|
|
2398
|
-
const __vue_scope_id__$
|
|
2458
|
+
const __vue_scope_id__$l = "data-v-2ff2d3ea";
|
|
2399
2459
|
/* module identifier */
|
|
2400
|
-
const __vue_module_identifier__$
|
|
2460
|
+
const __vue_module_identifier__$l = undefined;
|
|
2401
2461
|
/* functional template */
|
|
2402
|
-
const __vue_is_functional_template__$
|
|
2462
|
+
const __vue_is_functional_template__$l = false;
|
|
2403
2463
|
/* style inject SSR */
|
|
2404
2464
|
|
|
2405
2465
|
/* style inject shadow dom */
|
|
2406
2466
|
|
|
2407
2467
|
|
|
2408
2468
|
|
|
2409
|
-
const __vue_component__$
|
|
2410
|
-
{ render: __vue_render__$
|
|
2411
|
-
__vue_inject_styles__$
|
|
2412
|
-
__vue_script__$
|
|
2413
|
-
__vue_scope_id__$
|
|
2414
|
-
__vue_is_functional_template__$
|
|
2415
|
-
__vue_module_identifier__$
|
|
2469
|
+
const __vue_component__$l = /*#__PURE__*/normalizeComponent(
|
|
2470
|
+
{ render: __vue_render__$l, staticRenderFns: __vue_staticRenderFns__$l },
|
|
2471
|
+
__vue_inject_styles__$l,
|
|
2472
|
+
__vue_script__$l,
|
|
2473
|
+
__vue_scope_id__$l,
|
|
2474
|
+
__vue_is_functional_template__$l,
|
|
2475
|
+
__vue_module_identifier__$l,
|
|
2416
2476
|
false,
|
|
2417
2477
|
createInjector,
|
|
2418
2478
|
undefined,
|
|
2419
2479
|
undefined
|
|
2420
2480
|
);
|
|
2421
2481
|
|
|
2422
|
-
var
|
|
2482
|
+
var MultiSelectionForm = __vue_component__$l;
|
|
2483
|
+
|
|
2484
|
+
var script$k = Vue.extend({
|
|
2423
2485
|
name: "short-answer-form",
|
|
2424
2486
|
components: {
|
|
2425
2487
|
Form,
|
|
@@ -2433,43 +2495,45 @@ var script$j = Vue.extend({
|
|
|
2433
2495
|
});
|
|
2434
2496
|
|
|
2435
2497
|
/* script */
|
|
2436
|
-
const __vue_script__$
|
|
2498
|
+
const __vue_script__$k = script$k;
|
|
2437
2499
|
|
|
2438
2500
|
/* template */
|
|
2439
|
-
var __vue_render__$
|
|
2501
|
+
var __vue_render__$k = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('Form',{ref:"questionForm",attrs:{"model":_vm.editQuestion,"label-colon":false}},[_c('Form-item',{attrs:{"prop":'header.text.' + _vm.primaryLanguage,"rules":{required: true,
|
|
2440
2502
|
message: _vm.t('survey_creator.question.titleRequiredTip')}}},[_c('label',{attrs:{"slot":"label"},slot:"label"},[_c('span'),_vm._v(" "),_c('span',[_vm._v(_vm._s(_vm.t('survey_creator.page.question')))])]),_vm._v(" "),_c('Checkbox',{model:{value:(_vm.editQuestion.options.required),callback:function ($$v) {_vm.$set(_vm.editQuestion.options, "required", $$v);},expression:"editQuestion.options.required"}},[_vm._v(_vm._s(_vm.t('survey_creator.question.questionRequired')))]),_vm._v(" "),_c('Input',{attrs:{"placeholder":_vm.t('survey_creator.question.titleRequiredTip')},model:{value:(_vm.editQuestion.header.text[_vm.primaryLanguage]),callback:function ($$v) {_vm.$set(_vm.editQuestion.header.text, _vm.primaryLanguage, (typeof $$v === 'string'? $$v.trim(): $$v));},expression:"editQuestion.header.text[primaryLanguage]"}})],1)],1)};
|
|
2441
|
-
var __vue_staticRenderFns__$
|
|
2503
|
+
var __vue_staticRenderFns__$k = [];
|
|
2442
2504
|
|
|
2443
2505
|
/* style */
|
|
2444
|
-
const __vue_inject_styles__$
|
|
2506
|
+
const __vue_inject_styles__$k = undefined;
|
|
2445
2507
|
/* scoped */
|
|
2446
|
-
const __vue_scope_id__$
|
|
2508
|
+
const __vue_scope_id__$k = undefined;
|
|
2447
2509
|
/* module identifier */
|
|
2448
|
-
const __vue_module_identifier__$
|
|
2510
|
+
const __vue_module_identifier__$k = undefined;
|
|
2449
2511
|
/* functional template */
|
|
2450
|
-
const __vue_is_functional_template__$
|
|
2512
|
+
const __vue_is_functional_template__$k = false;
|
|
2451
2513
|
/* style inject */
|
|
2452
2514
|
|
|
2453
2515
|
/* style inject SSR */
|
|
2454
2516
|
|
|
2455
|
-
/* style inject shadow dom */
|
|
2456
|
-
|
|
2457
|
-
|
|
2458
|
-
|
|
2459
|
-
const __vue_component__$
|
|
2460
|
-
{ render: __vue_render__$
|
|
2461
|
-
__vue_inject_styles__$
|
|
2462
|
-
__vue_script__$
|
|
2463
|
-
__vue_scope_id__$
|
|
2464
|
-
__vue_is_functional_template__$
|
|
2465
|
-
__vue_module_identifier__$
|
|
2517
|
+
/* style inject shadow dom */
|
|
2518
|
+
|
|
2519
|
+
|
|
2520
|
+
|
|
2521
|
+
const __vue_component__$k = /*#__PURE__*/normalizeComponent(
|
|
2522
|
+
{ render: __vue_render__$k, staticRenderFns: __vue_staticRenderFns__$k },
|
|
2523
|
+
__vue_inject_styles__$k,
|
|
2524
|
+
__vue_script__$k,
|
|
2525
|
+
__vue_scope_id__$k,
|
|
2526
|
+
__vue_is_functional_template__$k,
|
|
2527
|
+
__vue_module_identifier__$k,
|
|
2466
2528
|
false,
|
|
2467
2529
|
undefined,
|
|
2468
2530
|
undefined,
|
|
2469
2531
|
undefined
|
|
2470
2532
|
);
|
|
2471
2533
|
|
|
2472
|
-
var
|
|
2534
|
+
var ShortAnswerForm = __vue_component__$k;
|
|
2535
|
+
|
|
2536
|
+
var script$j = Vue.extend({
|
|
2473
2537
|
name: "matrix-form",
|
|
2474
2538
|
components: {
|
|
2475
2539
|
Form,
|
|
@@ -2563,20 +2627,20 @@ var script$i = Vue.extend({
|
|
|
2563
2627
|
});
|
|
2564
2628
|
|
|
2565
2629
|
/* script */
|
|
2566
|
-
const __vue_script__$
|
|
2630
|
+
const __vue_script__$j = script$j;
|
|
2567
2631
|
|
|
2568
2632
|
/* template */
|
|
2569
|
-
var __vue_render__$
|
|
2570
|
-
var __vue_staticRenderFns__$
|
|
2633
|
+
var __vue_render__$j = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('Form',{ref:"questionForm",attrs:{"model":_vm.editQuestion,"label-colon":false}},[_c('Row',[_c('Form-item',{attrs:{"prop":'header.text.' + _vm.primaryLanguage,"rules":{required: true, message: _vm.t('survey_creator.question.titleRequiredTip')},"label":_vm.t('survey_creator.page.matrixQuestion')}},[_c('Checkbox',{model:{value:(_vm.editQuestion.options.required),callback:function ($$v) {_vm.$set(_vm.editQuestion.options, "required", $$v);},expression:"editQuestion.options.required"}},[_vm._v(_vm._s(_vm.t('survey_creator.question.questionRequired')))]),_vm._v(" "),_c('Row',[_c('Col',{attrs:{"span":23,"offset":-1}},[_c('Input',{attrs:{"placeholder":_vm.t('survey_creator.question.titleRequiredTip')},model:{value:(_vm.editQuestion.header.text[_vm.primaryLanguage]),callback:function ($$v) {_vm.$set(_vm.editQuestion.header.text, _vm.primaryLanguage, (typeof $$v === 'string'? $$v.trim(): $$v));},expression:"editQuestion.header.text[primaryLanguage]"}})],1)],1)],1)],1),_vm._v(" "),_c('Row',[_c('Form-item',{attrs:{"label":_vm.t('survey_creator.question.level'),"label-width":_vm.labelWidth}},[_c('InputNumber',{attrs:{"min":2,"max":10},on:{"on-change":_vm.levelChange},model:{value:(_vm.editQuestion.options.level),callback:function ($$v) {_vm.$set(_vm.editQuestion.options, "level", $$v);},expression:"editQuestion.options.level"}})],1)],1),_vm._v(" "),_vm._l((_vm.editQuestion.choices),function(choice,index){return _c('FormItem',{key:choice.id,attrs:{"label":_vm.t('survey_creator.question.optional'),"label-width":_vm.labelWidth}},[_c('Row',[_c('Col',{attrs:{"span":"4"}},[_c('FormItem',{attrs:{"prop":'choices.' + index + '.options.score',"rules":{required: true, message: _vm.t('survey_creator.question.scoreRequiredTip')}}},[_c('InputNumber',{attrs:{"min":0},model:{value:(choice.options.score),callback:function ($$v) {_vm.$set(choice.options, "score", $$v);},expression:"choice.options.score"}})],1)],1),_vm._v(" "),_c('Col',{attrs:{"span":"19"}},[_c('FormItem',{attrs:{"prop":'choices.' + index + '.text.' + _vm.primaryLanguage,"rules":{required: true, message: _vm.t('survey_creator.question.commitRequiredTip')}}},[_c('Input',{model:{value:(choice.text[_vm.primaryLanguage]),callback:function ($$v) {_vm.$set(choice.text, _vm.primaryLanguage, (typeof $$v === 'string'? $$v.trim(): $$v));},expression:"choice.text[primaryLanguage]"}})],1)],1)],1)],1)}),_vm._v(" "),_vm._l((_vm.editQuestion.subQuestions),function(subQuestion,index){return _c('div',{key:index,attrs:{"id":'subQuestion-' + index}},[_c('FormItem',{attrs:{"label-width":_vm.labelWidth,"label":_vm.t('survey_creator.question.sub_questions'),"prop":'subQuestions.' + + index + '.text.' + _vm.primaryLanguage,"rules":{required: true, message: _vm.t('survey_creator.question.subQuestionRequiredTip')}}},[_c('Row',{attrs:{"type":"flex","justify":"space-between"}},[_c('Col',{attrs:{"span":"20"}},[_c('Input',{model:{value:(subQuestion.text[_vm.primaryLanguage]),callback:function ($$v) {_vm.$set(subQuestion.text, _vm.primaryLanguage, (typeof $$v === 'string'? $$v.trim(): $$v));},expression:"subQuestion.text[primaryLanguage]"}})],1),_vm._v(" "),_c('Col',{attrs:{"span":"3"}},[_c('ButtonGroup',[(_vm.editQuestion.subQuestions.length)?_c('Button',{attrs:{"icon":"md-add"},nativeOn:{"click":function($event){return _vm.addItem()}}}):_vm._e(),_vm._v(" "),(_vm.editQuestion.subQuestions.length > 1)?_c('Button',{attrs:{"icon":"md-remove"},nativeOn:{"click":function($event){return _vm.deleteSubQuestion(index)}}}):_vm._e()],1)],1)],1)],1)],1)})],2)};
|
|
2634
|
+
var __vue_staticRenderFns__$j = [];
|
|
2571
2635
|
|
|
2572
2636
|
/* style */
|
|
2573
|
-
const __vue_inject_styles__$
|
|
2637
|
+
const __vue_inject_styles__$j = undefined;
|
|
2574
2638
|
/* scoped */
|
|
2575
|
-
const __vue_scope_id__$
|
|
2639
|
+
const __vue_scope_id__$j = undefined;
|
|
2576
2640
|
/* module identifier */
|
|
2577
|
-
const __vue_module_identifier__$
|
|
2641
|
+
const __vue_module_identifier__$j = undefined;
|
|
2578
2642
|
/* functional template */
|
|
2579
|
-
const __vue_is_functional_template__$
|
|
2643
|
+
const __vue_is_functional_template__$j = false;
|
|
2580
2644
|
/* style inject */
|
|
2581
2645
|
|
|
2582
2646
|
/* style inject SSR */
|
|
@@ -2585,20 +2649,22 @@ var __vue_staticRenderFns__$i = [];
|
|
|
2585
2649
|
|
|
2586
2650
|
|
|
2587
2651
|
|
|
2588
|
-
const __vue_component__$
|
|
2589
|
-
{ render: __vue_render__$
|
|
2590
|
-
__vue_inject_styles__$
|
|
2591
|
-
__vue_script__$
|
|
2592
|
-
__vue_scope_id__$
|
|
2593
|
-
__vue_is_functional_template__$
|
|
2594
|
-
__vue_module_identifier__$
|
|
2652
|
+
const __vue_component__$j = /*#__PURE__*/normalizeComponent(
|
|
2653
|
+
{ render: __vue_render__$j, staticRenderFns: __vue_staticRenderFns__$j },
|
|
2654
|
+
__vue_inject_styles__$j,
|
|
2655
|
+
__vue_script__$j,
|
|
2656
|
+
__vue_scope_id__$j,
|
|
2657
|
+
__vue_is_functional_template__$j,
|
|
2658
|
+
__vue_module_identifier__$j,
|
|
2595
2659
|
false,
|
|
2596
2660
|
undefined,
|
|
2597
2661
|
undefined,
|
|
2598
2662
|
undefined
|
|
2599
2663
|
);
|
|
2600
2664
|
|
|
2601
|
-
var
|
|
2665
|
+
var MatrixForm = __vue_component__$j;
|
|
2666
|
+
|
|
2667
|
+
var script$i = Vue.extend({
|
|
2602
2668
|
name: "title-form",
|
|
2603
2669
|
components: {
|
|
2604
2670
|
Form,
|
|
@@ -2611,20 +2677,20 @@ var script$h = Vue.extend({
|
|
|
2611
2677
|
});
|
|
2612
2678
|
|
|
2613
2679
|
/* script */
|
|
2614
|
-
const __vue_script__$
|
|
2680
|
+
const __vue_script__$i = script$i;
|
|
2615
2681
|
|
|
2616
2682
|
/* template */
|
|
2617
|
-
var __vue_render__$
|
|
2618
|
-
var __vue_staticRenderFns__$
|
|
2683
|
+
var __vue_render__$i = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('Form',{ref:"questionForm",attrs:{"model":_vm.editQuestion,"label-colon":false}},[_c('Form-item',{attrs:{"prop":'header.text.' + _vm.primaryLanguage,"rules":{required: true, message: _vm.t('survey_creator.question.textTitleRequiredTip')}}},[_c('label',{attrs:{"slot":"label"},slot:"label"},[_c('span'),_vm._v(" "),_c('span',[_vm._v(_vm._s(_vm.t('survey_creator.page.textTitle')))])]),_vm._v(" "),_c('Input',{attrs:{"autosize":{ minRows: 3, maxRows: 3 },"type":"textarea","placeholder":_vm.t('survey_creator.question.textTitleRequiredTip')},model:{value:(_vm.editQuestion.header.text[_vm.primaryLanguage]),callback:function ($$v) {_vm.$set(_vm.editQuestion.header.text, _vm.primaryLanguage, (typeof $$v === 'string'? $$v.trim(): $$v));},expression:"editQuestion.header.text[primaryLanguage]"}})],1)],1)};
|
|
2684
|
+
var __vue_staticRenderFns__$i = [];
|
|
2619
2685
|
|
|
2620
2686
|
/* style */
|
|
2621
|
-
const __vue_inject_styles__$
|
|
2687
|
+
const __vue_inject_styles__$i = undefined;
|
|
2622
2688
|
/* scoped */
|
|
2623
|
-
const __vue_scope_id__$
|
|
2689
|
+
const __vue_scope_id__$i = undefined;
|
|
2624
2690
|
/* module identifier */
|
|
2625
|
-
const __vue_module_identifier__$
|
|
2691
|
+
const __vue_module_identifier__$i = undefined;
|
|
2626
2692
|
/* functional template */
|
|
2627
|
-
const __vue_is_functional_template__$
|
|
2693
|
+
const __vue_is_functional_template__$i = false;
|
|
2628
2694
|
/* style inject */
|
|
2629
2695
|
|
|
2630
2696
|
/* style inject SSR */
|
|
@@ -2633,20 +2699,22 @@ var __vue_staticRenderFns__$h = [];
|
|
|
2633
2699
|
|
|
2634
2700
|
|
|
2635
2701
|
|
|
2636
|
-
const __vue_component__$
|
|
2637
|
-
{ render: __vue_render__$
|
|
2638
|
-
__vue_inject_styles__$
|
|
2639
|
-
__vue_script__$
|
|
2640
|
-
__vue_scope_id__$
|
|
2641
|
-
__vue_is_functional_template__$
|
|
2642
|
-
__vue_module_identifier__$
|
|
2702
|
+
const __vue_component__$i = /*#__PURE__*/normalizeComponent(
|
|
2703
|
+
{ render: __vue_render__$i, staticRenderFns: __vue_staticRenderFns__$i },
|
|
2704
|
+
__vue_inject_styles__$i,
|
|
2705
|
+
__vue_script__$i,
|
|
2706
|
+
__vue_scope_id__$i,
|
|
2707
|
+
__vue_is_functional_template__$i,
|
|
2708
|
+
__vue_module_identifier__$i,
|
|
2643
2709
|
false,
|
|
2644
2710
|
undefined,
|
|
2645
2711
|
undefined,
|
|
2646
2712
|
undefined
|
|
2647
2713
|
);
|
|
2648
2714
|
|
|
2649
|
-
var
|
|
2715
|
+
var TitleForm = __vue_component__$i;
|
|
2716
|
+
|
|
2717
|
+
var script$h = Vue.extend({
|
|
2650
2718
|
name: "star",
|
|
2651
2719
|
mixins: [questionFormMixin],
|
|
2652
2720
|
components: {
|
|
@@ -2740,10 +2808,10 @@ var script$g = Vue.extend({
|
|
|
2740
2808
|
});
|
|
2741
2809
|
|
|
2742
2810
|
/* script */
|
|
2743
|
-
const __vue_script__$
|
|
2811
|
+
const __vue_script__$h = script$h;
|
|
2744
2812
|
|
|
2745
2813
|
/* template */
|
|
2746
|
-
var __vue_render__$
|
|
2814
|
+
var __vue_render__$h = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('Table',{ref:"myTable",attrs:{"size":"small","border":"","data":_vm.evaluationItems,"columns":_vm.realColumns},scopedSlots:_vm._u([{key:"levelName",fn:function(ref){
|
|
2747
2815
|
var row = ref.row;
|
|
2748
2816
|
ref.column;
|
|
2749
2817
|
return [_c('FormItem',{attrs:{"prop":'evaluationItems[' + row._index + '].text.' + _vm.primaryLanguage,"rules":{required: true, message: _vm.t('survey_creator.question.commitRequiredTip')}}},[_c('Input',{model:{value:(_vm.evaluationItems[row._index].text[_vm.primaryLanguage]),callback:function ($$v) {_vm.$set(_vm.evaluationItems[row._index].text, _vm.primaryLanguage, (typeof $$v === 'string'? $$v.trim(): $$v));},expression:"evaluationItems[row._index].text[primaryLanguage]"}})],1)]}},{key:"level",fn:function(ref){
|
|
@@ -2753,16 +2821,16 @@ return [_c('FormItem',{attrs:{"prop":'evaluationItems[' + row._index + '].level'
|
|
|
2753
2821
|
var row = ref.row;
|
|
2754
2822
|
ref.column;
|
|
2755
2823
|
return [(_vm.evaluationItems.length)?_c('Button',{attrs:{"icon":"md-add"},nativeOn:{"click":function($event){return _vm.addItem()}}}):_vm._e(),_vm._v(" "),(_vm.evaluationItems.length > 1)?_c('Button',{attrs:{"icon":"md-remove"},nativeOn:{"click":function($event){return _vm.deleteItem(row._index)}}}):_vm._e()]}}])})};
|
|
2756
|
-
var __vue_staticRenderFns__$
|
|
2824
|
+
var __vue_staticRenderFns__$h = [];
|
|
2757
2825
|
|
|
2758
2826
|
/* style */
|
|
2759
|
-
const __vue_inject_styles__$
|
|
2827
|
+
const __vue_inject_styles__$h = undefined;
|
|
2760
2828
|
/* scoped */
|
|
2761
|
-
const __vue_scope_id__$
|
|
2829
|
+
const __vue_scope_id__$h = undefined;
|
|
2762
2830
|
/* module identifier */
|
|
2763
|
-
const __vue_module_identifier__$
|
|
2831
|
+
const __vue_module_identifier__$h = undefined;
|
|
2764
2832
|
/* functional template */
|
|
2765
|
-
const __vue_is_functional_template__$
|
|
2833
|
+
const __vue_is_functional_template__$h = false;
|
|
2766
2834
|
/* style inject */
|
|
2767
2835
|
|
|
2768
2836
|
/* style inject SSR */
|
|
@@ -2771,19 +2839,21 @@ var __vue_staticRenderFns__$g = [];
|
|
|
2771
2839
|
|
|
2772
2840
|
|
|
2773
2841
|
|
|
2774
|
-
const __vue_component__$
|
|
2775
|
-
{ render: __vue_render__$
|
|
2776
|
-
__vue_inject_styles__$
|
|
2777
|
-
__vue_script__$
|
|
2778
|
-
__vue_scope_id__$
|
|
2779
|
-
__vue_is_functional_template__$
|
|
2780
|
-
__vue_module_identifier__$
|
|
2842
|
+
const __vue_component__$h = /*#__PURE__*/normalizeComponent(
|
|
2843
|
+
{ render: __vue_render__$h, staticRenderFns: __vue_staticRenderFns__$h },
|
|
2844
|
+
__vue_inject_styles__$h,
|
|
2845
|
+
__vue_script__$h,
|
|
2846
|
+
__vue_scope_id__$h,
|
|
2847
|
+
__vue_is_functional_template__$h,
|
|
2848
|
+
__vue_module_identifier__$h,
|
|
2781
2849
|
false,
|
|
2782
2850
|
undefined,
|
|
2783
2851
|
undefined,
|
|
2784
2852
|
undefined
|
|
2785
2853
|
);
|
|
2786
2854
|
|
|
2855
|
+
var Star = __vue_component__$h;
|
|
2856
|
+
|
|
2787
2857
|
var ExprMixin = Vue.extend({
|
|
2788
2858
|
inject: ["$rootComponent"],
|
|
2789
2859
|
props: {
|
|
@@ -2847,7 +2917,7 @@ var ExprMixin = Vue.extend({
|
|
|
2847
2917
|
}
|
|
2848
2918
|
});
|
|
2849
2919
|
|
|
2850
|
-
var script$
|
|
2920
|
+
var script$g = Vue.extend({
|
|
2851
2921
|
name: "question-select",
|
|
2852
2922
|
components: { Select, Option, Tooltip },
|
|
2853
2923
|
mixins: [questionFormMixin],
|
|
@@ -2897,23 +2967,92 @@ var script$f = Vue.extend({
|
|
|
2897
2967
|
}
|
|
2898
2968
|
});
|
|
2899
2969
|
|
|
2970
|
+
/* script */
|
|
2971
|
+
const __vue_script__$g = script$g;
|
|
2972
|
+
|
|
2973
|
+
/* template */
|
|
2974
|
+
var __vue_render__$g = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('Select',{attrs:{"placeholder":_vm.t('survey_creator.question.evaluation.condition.question_scope'),"multiple":"","max-tag-count":0,"max-tag-placeholder":_vm.numbers},on:{"on-change":_vm.onChange},model:{value:(_vm.scope),callback:function ($$v) {_vm.scope=$$v;},expression:"scope"}},[_vm._l((_vm.questions),function(question){return [(question.type == 'SINGLE_SELECTION')?_c('Option',{key:question.id,attrs:{"value":question.id,"tag":question.header.number}},[_c('Tooltip',{attrs:{"transfer":true,"content":_vm.getSingleOptionContent(question),"max-width":"500","placement":"top-start"}},[_vm._v("\n "+_vm._s(question.header.number)+" "+_vm._s(_vm._f("title")(question.header.text[_vm.primaryLanguage]))+"\n ")])],1):_vm._e(),_vm._v(" "),(question.type == 'MATRIX')?_vm._l((question.subQuestions),function(subQuestion){return _c('Option',{key:subQuestion.id,attrs:{"value":subQuestion.id,"tag":question.header.number + '.' + subQuestion.number}},[_c('Tooltip',{attrs:{"transfer":true,"content":_vm.getMatrixOptionContent(question,subQuestion),"max-width":"500","placement":"top-start"}},[_vm._v("\n "+_vm._s(question.header.number)+"."+_vm._s(subQuestion.number)+" "+_vm._s(_vm._f("title")(subQuestion.text[_vm.primaryLanguage]))+"\n ")])],1)}):_vm._e()]})],2)};
|
|
2975
|
+
var __vue_staticRenderFns__$g = [];
|
|
2976
|
+
|
|
2977
|
+
/* style */
|
|
2978
|
+
const __vue_inject_styles__$g = undefined;
|
|
2979
|
+
/* scoped */
|
|
2980
|
+
const __vue_scope_id__$g = undefined;
|
|
2981
|
+
/* module identifier */
|
|
2982
|
+
const __vue_module_identifier__$g = undefined;
|
|
2983
|
+
/* functional template */
|
|
2984
|
+
const __vue_is_functional_template__$g = false;
|
|
2985
|
+
/* style inject */
|
|
2986
|
+
|
|
2987
|
+
/* style inject SSR */
|
|
2988
|
+
|
|
2989
|
+
/* style inject shadow dom */
|
|
2990
|
+
|
|
2991
|
+
|
|
2992
|
+
|
|
2993
|
+
const __vue_component__$g = /*#__PURE__*/normalizeComponent(
|
|
2994
|
+
{ render: __vue_render__$g, staticRenderFns: __vue_staticRenderFns__$g },
|
|
2995
|
+
__vue_inject_styles__$g,
|
|
2996
|
+
__vue_script__$g,
|
|
2997
|
+
__vue_scope_id__$g,
|
|
2998
|
+
__vue_is_functional_template__$g,
|
|
2999
|
+
__vue_module_identifier__$g,
|
|
3000
|
+
false,
|
|
3001
|
+
undefined,
|
|
3002
|
+
undefined,
|
|
3003
|
+
undefined
|
|
3004
|
+
);
|
|
3005
|
+
|
|
3006
|
+
var QuestionSelect = __vue_component__$g;
|
|
3007
|
+
|
|
3008
|
+
var script$f = Vue.extend({
|
|
3009
|
+
name: "assign",
|
|
3010
|
+
mixins: [questionFormMixin, ExprMixin],
|
|
3011
|
+
components: {
|
|
3012
|
+
Row,
|
|
3013
|
+
Col,
|
|
3014
|
+
Select,
|
|
3015
|
+
OptionGroup,
|
|
3016
|
+
Option,
|
|
3017
|
+
FormItem,
|
|
3018
|
+
InputNumber,
|
|
3019
|
+
QuestionSelect
|
|
3020
|
+
},
|
|
3021
|
+
created() {
|
|
3022
|
+
this.value.operator = _.unescape(this.value.operator);
|
|
3023
|
+
},
|
|
3024
|
+
methods: {
|
|
3025
|
+
generateExpr() {
|
|
3026
|
+
let ids = `${_.map(this.value.scope, e => {
|
|
3027
|
+
return `"` + e + `"`;
|
|
3028
|
+
})}`;
|
|
3029
|
+
let answers = `${_.map(this.value.values, e => {
|
|
3030
|
+
return `"` + e + `"`;
|
|
3031
|
+
})}`;
|
|
3032
|
+
return `$count($[id in [${ids}]][answer in [${answers}]]) ${this.value.operator} ${this.value.size}`;
|
|
3033
|
+
}
|
|
3034
|
+
}
|
|
3035
|
+
});
|
|
3036
|
+
|
|
2900
3037
|
/* script */
|
|
2901
3038
|
const __vue_script__$f = script$f;
|
|
2902
3039
|
|
|
2903
3040
|
/* template */
|
|
2904
|
-
var __vue_render__$f = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('
|
|
3041
|
+
var __vue_render__$f = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('Row',{attrs:{"type":"flex","justify":"start","gutter":6,"align":"middle"}},[_c('Col',{staticClass:"label"},[_vm._v("\n "+_vm._s(_vm.t('survey_creator.question.evaluation.condition.question'))+"\n ")]),_vm._v(" "),_c('Col',{attrs:{"span":5}},[_c('FormItem',{attrs:{"prop":("evaluationItems[" + _vm.itemIndex + "].conditions[" + _vm.index + "].payload.scope"),"rules":{ required: true, type: 'array', trigger: 'change', min: 1, message: _vm.t('survey_creator.question.notEmpty') }}},[_c('question-select',{attrs:{"question":_vm.question},model:{value:(_vm.value.scope),callback:function ($$v) {_vm.$set(_vm.value, "scope", $$v);},expression:"value.scope"}})],1)],1),_vm._v(" "),_c('Col',{staticClass:"label"},[_vm._v("\n "+_vm._s(_vm.t('survey_creator.question.evaluation.condition.question_result'))+"\n ")]),_vm._v(" "),_c('Col',{attrs:{"span":5}},[_c('FormItem',{attrs:{"prop":("evaluationItems[" + _vm.itemIndex + "].conditions[" + _vm.index + "].payload.values"),"rules":{ required: true, type: 'array', trigger: 'change', min: 1, message: _vm.t('survey_creator.question.notEmpty') }}},[_c('Select',{attrs:{"placeholder":_vm.t('survey_creator.question.evaluation.condition.choose_result'),"max-tag-count":1,"multiple":""},model:{value:(_vm.value.values),callback:function ($$v) {_vm.$set(_vm.value, "values", $$v);},expression:"value.values"}},_vm._l((_vm.choices),function(choice,index){return _c('Option',{key:index,attrs:{"value":choice}},[_vm._v("\n "+_vm._s(choice)+"\n ")])}),1)],1)],1),_vm._v(" "),_c('Col',{staticClass:"label"},[_vm._v("\n "+_vm._s(_vm.t('survey_creator.question.evaluation.condition.question_count'))+"\n ")]),_vm._v(" "),_c('Col',{attrs:{"span":3}},[_c('FormItem',{attrs:{"prop":("evaluationItems[" + _vm.itemIndex + "].conditions[" + _vm.index + "].payload.operator"),"rules":{ required: true, trigger: 'change', message: _vm.t('survey_creator.question.notEmpty') }}},[_c('Select',{attrs:{"placeholder":_vm.t('survey_creator.question.evaluation.condition.operator')},model:{value:(_vm.value.operator),callback:function ($$v) {_vm.$set(_vm.value, "operator", $$v);},expression:"value.operator"}},_vm._l((_vm.operators),function(operator,index){return _c('Option',{key:index,attrs:{"value":operator}},[_vm._v("\n "+_vm._s(operator)+"\n ")])}),1)],1)],1),_vm._v(" "),_c('Col',{attrs:{"span":3}},[_c('FormItem',{attrs:{"prop":("evaluationItems[" + _vm.itemIndex + "].conditions[" + _vm.index + "].payload.size"),"rules":{ required: true, type: 'number', trigger: 'change', message: _vm.t('survey_creator.question.notEmpty') }}},[_c('InputNumber',{attrs:{"min":0,"max":_vm.value.scope.length},model:{value:(_vm.value.size),callback:function ($$v) {_vm.$set(_vm.value, "size", $$v);},expression:"value.size"}})],1)],1)],1)};
|
|
2905
3042
|
var __vue_staticRenderFns__$f = [];
|
|
2906
3043
|
|
|
2907
3044
|
/* style */
|
|
2908
|
-
const __vue_inject_styles__$f =
|
|
3045
|
+
const __vue_inject_styles__$f = function (inject) {
|
|
3046
|
+
if (!inject) return
|
|
3047
|
+
inject("data-v-c3e890de_0", { source: ".label[data-v-c3e890de]{text-align:right;margin-bottom:24px;padding-right:2px}", map: undefined, media: undefined });
|
|
3048
|
+
|
|
3049
|
+
};
|
|
2909
3050
|
/* scoped */
|
|
2910
|
-
const __vue_scope_id__$f =
|
|
3051
|
+
const __vue_scope_id__$f = "data-v-c3e890de";
|
|
2911
3052
|
/* module identifier */
|
|
2912
3053
|
const __vue_module_identifier__$f = undefined;
|
|
2913
3054
|
/* functional template */
|
|
2914
3055
|
const __vue_is_functional_template__$f = false;
|
|
2915
|
-
/* style inject */
|
|
2916
|
-
|
|
2917
3056
|
/* style inject SSR */
|
|
2918
3057
|
|
|
2919
3058
|
/* style inject shadow dom */
|
|
@@ -2928,26 +3067,23 @@ var __vue_staticRenderFns__$f = [];
|
|
|
2928
3067
|
__vue_is_functional_template__$f,
|
|
2929
3068
|
__vue_module_identifier__$f,
|
|
2930
3069
|
false,
|
|
2931
|
-
|
|
3070
|
+
createInjector,
|
|
2932
3071
|
undefined,
|
|
2933
3072
|
undefined
|
|
2934
3073
|
);
|
|
2935
3074
|
|
|
3075
|
+
var Assign = __vue_component__$f;
|
|
3076
|
+
|
|
2936
3077
|
var script$e = Vue.extend({
|
|
2937
|
-
name: "
|
|
2938
|
-
mixins: [
|
|
3078
|
+
name: "auto",
|
|
3079
|
+
mixins: [ExprMixin, questionFormMixin],
|
|
2939
3080
|
components: {
|
|
2940
3081
|
Row,
|
|
2941
3082
|
Col,
|
|
2942
3083
|
Select,
|
|
2943
|
-
OptionGroup,
|
|
2944
3084
|
Option,
|
|
2945
3085
|
FormItem,
|
|
2946
|
-
|
|
2947
|
-
QuestionSelect: __vue_component__$f
|
|
2948
|
-
},
|
|
2949
|
-
created() {
|
|
2950
|
-
this.value.operator = _.unescape(this.value.operator);
|
|
3086
|
+
QuestionSelect
|
|
2951
3087
|
},
|
|
2952
3088
|
methods: {
|
|
2953
3089
|
generateExpr() {
|
|
@@ -2957,7 +3093,7 @@ var script$e = Vue.extend({
|
|
|
2957
3093
|
let answers = `${_.map(this.value.values, e => {
|
|
2958
3094
|
return `"` + e + `"`;
|
|
2959
3095
|
})}`;
|
|
2960
|
-
return `$count($[id in [${ids}]][answer in [${answers}]]) ${
|
|
3096
|
+
return `$count($[id in [${ids}]][answer in [${answers}]]) = ${_.size(this.value.scope)}`;
|
|
2961
3097
|
}
|
|
2962
3098
|
}
|
|
2963
3099
|
});
|
|
@@ -2966,17 +3102,17 @@ var script$e = Vue.extend({
|
|
|
2966
3102
|
const __vue_script__$e = script$e;
|
|
2967
3103
|
|
|
2968
3104
|
/* template */
|
|
2969
|
-
var __vue_render__$e = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('Row',{attrs:{"type":"flex","justify":"start","gutter":6,"align":"middle"}},[_c('Col',{staticClass:"label"},[_vm._v("\n "+_vm._s(_vm.t('survey_creator.question.evaluation.condition.
|
|
3105
|
+
var __vue_render__$e = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('Row',{attrs:{"type":"flex","justify":"start","gutter":6,"align":"middle"}},[_c('Col',{staticClass:"label"},[_vm._v("\n "+_vm._s(_vm.t('survey_creator.question.evaluation.condition.type.SCORE'))+"\n ")]),_vm._v(" "),_c('Col',{attrs:{"span":5}},[_c('FormItem',{attrs:{"prop":("evaluationItems[" + _vm.itemIndex + "].conditions[" + _vm.index + "].payload.scope"),"rules":{ required: true, type: 'array', trigger: 'change', min: 1, message: _vm.t('survey_creator.question.notEmpty') }}},[_c('question-select',{attrs:{"question":_vm.question},model:{value:(_vm.value.scope),callback:function ($$v) {_vm.$set(_vm.value, "scope", $$v);},expression:"value.scope"}})],1)],1),_vm._v(" "),_c('Col',{staticClass:"label"},[_vm._v("\n "+_vm._s(_vm.t('survey_creator.question.evaluation.condition.question_result'))+"\n ")]),_vm._v(" "),_c('Col',{attrs:{"span":8}},[_c('FormItem',{attrs:{"prop":("evaluationItems[" + _vm.itemIndex + "].conditions[" + _vm.index + "].payload.values"),"rules":{ required: true, type: 'array', trigger: 'change', min: 1, message: _vm.t('survey_creator.question.notEmpty') }}},[_c('Select',{attrs:{"placeholder":_vm.t('survey_creator.question.evaluation.condition.choose_result'),"max-tag-count":1,"multiple":""},model:{value:(_vm.value.values),callback:function ($$v) {_vm.$set(_vm.value, "values", $$v);},expression:"value.values"}},_vm._l((_vm.choices),function(choice,index){return _c('Option',{key:index,attrs:{"value":choice}},[_vm._v("\n "+_vm._s(choice)+"\n ")])}),1)],1)],1)],1)};
|
|
2970
3106
|
var __vue_staticRenderFns__$e = [];
|
|
2971
3107
|
|
|
2972
3108
|
/* style */
|
|
2973
3109
|
const __vue_inject_styles__$e = function (inject) {
|
|
2974
3110
|
if (!inject) return
|
|
2975
|
-
inject("data-v-
|
|
3111
|
+
inject("data-v-1b7846c4_0", { source: ".label[data-v-1b7846c4]{text-align:right;margin-bottom:24px}", map: undefined, media: undefined });
|
|
2976
3112
|
|
|
2977
3113
|
};
|
|
2978
3114
|
/* scoped */
|
|
2979
|
-
const __vue_scope_id__$e = "data-v-
|
|
3115
|
+
const __vue_scope_id__$e = "data-v-1b7846c4";
|
|
2980
3116
|
/* module identifier */
|
|
2981
3117
|
const __vue_module_identifier__$e = undefined;
|
|
2982
3118
|
/* functional template */
|
|
@@ -3000,45 +3136,74 @@ var __vue_staticRenderFns__$e = [];
|
|
|
3000
3136
|
undefined
|
|
3001
3137
|
);
|
|
3002
3138
|
|
|
3139
|
+
var Auto = __vue_component__$e;
|
|
3140
|
+
|
|
3003
3141
|
var script$d = Vue.extend({
|
|
3004
|
-
name: "
|
|
3005
|
-
mixins: [ExprMixin,
|
|
3142
|
+
name: "score",
|
|
3143
|
+
mixins: [ExprMixin, LocaleMixin],
|
|
3006
3144
|
components: {
|
|
3007
3145
|
Row,
|
|
3008
3146
|
Col,
|
|
3009
3147
|
Select,
|
|
3010
3148
|
Option,
|
|
3011
3149
|
FormItem,
|
|
3012
|
-
|
|
3150
|
+
InputNumber,
|
|
3151
|
+
},
|
|
3152
|
+
data() {
|
|
3153
|
+
return {
|
|
3154
|
+
operators: ["<=", "<"],
|
|
3155
|
+
};
|
|
3156
|
+
},
|
|
3157
|
+
computed: {
|
|
3158
|
+
totalScore() {
|
|
3159
|
+
return this.$rootComponent.currentSurvey.statistics.maxScore;
|
|
3160
|
+
},
|
|
3013
3161
|
},
|
|
3014
3162
|
methods: {
|
|
3015
3163
|
generateExpr() {
|
|
3016
|
-
let
|
|
3017
|
-
|
|
3018
|
-
}
|
|
3019
|
-
|
|
3020
|
-
|
|
3021
|
-
|
|
3022
|
-
|
|
3023
|
-
|
|
3024
|
-
}
|
|
3164
|
+
let minScore = this.value.minScore;
|
|
3165
|
+
let maxScore = this.value.maxScore;
|
|
3166
|
+
return `$totalScore ${minScore} ${this.value.operator} ${maxScore}`;
|
|
3167
|
+
},
|
|
3168
|
+
rangeChange() {
|
|
3169
|
+
console.log("222");
|
|
3170
|
+
},
|
|
3171
|
+
},
|
|
3025
3172
|
});
|
|
3026
3173
|
|
|
3027
3174
|
/* script */
|
|
3028
3175
|
const __vue_script__$d = script$d;
|
|
3029
3176
|
|
|
3030
3177
|
/* template */
|
|
3031
|
-
var __vue_render__$d = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('Row',{attrs:{"type":"flex","justify":"start","gutter":6,"align":"middle"}},[_c('Col',{staticClass:"label"},[_vm._v("\n
|
|
3178
|
+
var __vue_render__$d = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('Row',{attrs:{"type":"flex","justify":"start","gutter":6,"align":"middle"}},[_c('Col',{staticClass:"label"},[_vm._v("\n "+_vm._s(_vm.t("survey_creator.question.evaluation.condition.score_condition_title"))+"\n ")]),_vm._v(" "),_c('Col',{attrs:{"span":3}},[_c('FormItem',{attrs:{"prop":("evaluationItems[" + _vm.itemIndex + "].conditions[" + _vm.index + "].payload.minScore"),"rules":{
|
|
3179
|
+
required: true,
|
|
3180
|
+
type: 'number',
|
|
3181
|
+
trigger: 'change',
|
|
3182
|
+
min: 0,
|
|
3183
|
+
max: this.totalScore,
|
|
3184
|
+
message: _vm.t('分值不能为空'),
|
|
3185
|
+
}}},[_c('InputNumber',{attrs:{"min":0,"max":_vm.value.maxScore},on:{"on-change":_vm.rangeChange},model:{value:(_vm.value.minScore),callback:function ($$v) {_vm.$set(_vm.value, "minScore", $$v);},expression:"value.minScore"}})],1)],1),_vm._v(" "),_c('Col',{staticClass:"label"},[_vm._v("\n "+_vm._s(_vm.t("survey_creator.question.scores"))+"\n ")]),_vm._v(" "),_c('Col',{attrs:{"span":3}},[_c('FormItem',{attrs:{"prop":("evaluationItems[" + _vm.itemIndex + "].conditions[" + _vm.index + "].payload.operator"),"rules":{
|
|
3186
|
+
required: true,
|
|
3187
|
+
trigger: 'change',
|
|
3188
|
+
message: _vm.t('survey_creator.question.notEmpty'),
|
|
3189
|
+
}}},[_c('Select',{attrs:{"placeholder":_vm.t('survey_creator.question.evaluation.condition.operator')},model:{value:(_vm.value.operator),callback:function ($$v) {_vm.$set(_vm.value, "operator", $$v);},expression:"value.operator"}},_vm._l((_vm.operators),function(operator,index){return _c('Option',{key:index,attrs:{"value":operator}},[_vm._v("\n "+_vm._s(operator)+"\n ")])}),1)],1)],1),_vm._v(" "),_c('Col',{attrs:{"span":3}},[_c('FormItem',{attrs:{"prop":("evaluationItems[" + _vm.itemIndex + "].conditions[" + _vm.index + "].payload.maxScore"),"rules":{
|
|
3190
|
+
required: true,
|
|
3191
|
+
type: 'number',
|
|
3192
|
+
trigger: 'change',
|
|
3193
|
+
min: 0,
|
|
3194
|
+
max: this.totalScore,
|
|
3195
|
+
message: _vm.t('分值不能为空'),
|
|
3196
|
+
}}},[_c('InputNumber',{attrs:{"min":_vm.value.minScore,"max":_vm.totalScore},on:{"on-change":_vm.rangeChange},model:{value:(_vm.value.maxScore),callback:function ($$v) {_vm.$set(_vm.value, "maxScore", $$v);},expression:"value.maxScore"}})],1)],1),_vm._v(" "),_c('Col',{staticClass:"label"},[_vm._v("\n "+_vm._s(_vm.t("survey_creator.question.scores"))+"\n ")])],1)};
|
|
3032
3197
|
var __vue_staticRenderFns__$d = [];
|
|
3033
3198
|
|
|
3034
3199
|
/* style */
|
|
3035
3200
|
const __vue_inject_styles__$d = function (inject) {
|
|
3036
3201
|
if (!inject) return
|
|
3037
|
-
inject("data-v-
|
|
3202
|
+
inject("data-v-595ef9bc_0", { source: ".label[data-v-595ef9bc]{text-align:right;margin-bottom:24px}", map: undefined, media: undefined });
|
|
3038
3203
|
|
|
3039
3204
|
};
|
|
3040
3205
|
/* scoped */
|
|
3041
|
-
const __vue_scope_id__$d = "data-v-
|
|
3206
|
+
const __vue_scope_id__$d = "data-v-595ef9bc";
|
|
3042
3207
|
/* module identifier */
|
|
3043
3208
|
const __vue_module_identifier__$d = undefined;
|
|
3044
3209
|
/* functional template */
|
|
@@ -3062,46 +3227,53 @@ var __vue_staticRenderFns__$d = [];
|
|
|
3062
3227
|
undefined
|
|
3063
3228
|
);
|
|
3064
3229
|
|
|
3230
|
+
var Score = __vue_component__$d;
|
|
3231
|
+
|
|
3065
3232
|
var script$c = Vue.extend({
|
|
3066
3233
|
name: "condition",
|
|
3067
3234
|
mixins: [questionFormMixin],
|
|
3068
3235
|
components: {
|
|
3069
|
-
ASSIGN:
|
|
3070
|
-
AUTO:
|
|
3236
|
+
ASSIGN: Assign,
|
|
3237
|
+
AUTO: Auto,
|
|
3238
|
+
SCORE: Score,
|
|
3071
3239
|
},
|
|
3072
3240
|
props: {
|
|
3073
3241
|
type: {
|
|
3074
3242
|
type: String,
|
|
3075
|
-
required: true
|
|
3243
|
+
required: true,
|
|
3076
3244
|
},
|
|
3077
3245
|
value: {
|
|
3078
3246
|
type: Object,
|
|
3079
|
-
required: true
|
|
3247
|
+
required: true,
|
|
3080
3248
|
},
|
|
3081
3249
|
index: {
|
|
3082
3250
|
type: Number,
|
|
3083
|
-
required: true
|
|
3251
|
+
required: true,
|
|
3084
3252
|
},
|
|
3085
3253
|
evaluationItems: {
|
|
3086
3254
|
type: Array,
|
|
3087
|
-
required: true
|
|
3255
|
+
required: true,
|
|
3088
3256
|
},
|
|
3089
3257
|
itemIndex: {
|
|
3090
3258
|
type: Number,
|
|
3091
|
-
required: true
|
|
3092
|
-
}
|
|
3259
|
+
required: true,
|
|
3260
|
+
},
|
|
3093
3261
|
},
|
|
3094
3262
|
data() {
|
|
3095
3263
|
return {
|
|
3096
3264
|
exprConditionType: "AUTO",
|
|
3097
|
-
exprConditionTypes: [
|
|
3265
|
+
exprConditionTypes: [
|
|
3266
|
+
"AUTO",
|
|
3267
|
+
"ASSIGN",
|
|
3268
|
+
"SCORE",
|
|
3269
|
+
],
|
|
3098
3270
|
};
|
|
3099
3271
|
},
|
|
3100
3272
|
methods: {
|
|
3101
3273
|
expr(value) {
|
|
3102
3274
|
this.$emit("expr", this.index, value);
|
|
3103
|
-
}
|
|
3104
|
-
}
|
|
3275
|
+
},
|
|
3276
|
+
},
|
|
3105
3277
|
});
|
|
3106
3278
|
|
|
3107
3279
|
/* script */
|
|
@@ -3140,6 +3312,8 @@ var __vue_staticRenderFns__$c = [];
|
|
|
3140
3312
|
undefined
|
|
3141
3313
|
);
|
|
3142
3314
|
|
|
3315
|
+
var Condition = __vue_component__$c;
|
|
3316
|
+
|
|
3143
3317
|
var script$b = Vue.extend({
|
|
3144
3318
|
name: "if",
|
|
3145
3319
|
mixins: [questionFormMixin],
|
|
@@ -3151,82 +3325,111 @@ var script$b = Vue.extend({
|
|
|
3151
3325
|
Option,
|
|
3152
3326
|
Button,
|
|
3153
3327
|
Icon,
|
|
3154
|
-
Condition
|
|
3328
|
+
Condition,
|
|
3155
3329
|
FormItem,
|
|
3156
|
-
Input
|
|
3330
|
+
Input,
|
|
3157
3331
|
},
|
|
3158
3332
|
props: {
|
|
3159
3333
|
value: {
|
|
3160
3334
|
type: Array,
|
|
3161
|
-
required: true
|
|
3335
|
+
required: true,
|
|
3162
3336
|
},
|
|
3163
3337
|
position: {
|
|
3164
3338
|
type: Number,
|
|
3165
|
-
required: true
|
|
3166
|
-
}
|
|
3339
|
+
required: true,
|
|
3340
|
+
},
|
|
3167
3341
|
},
|
|
3168
3342
|
data() {
|
|
3169
3343
|
return {
|
|
3170
3344
|
evaluationItems: this.value,
|
|
3171
3345
|
exprConditionType: "AUTO",
|
|
3172
|
-
exprConditionTypes: [
|
|
3346
|
+
exprConditionTypes: [
|
|
3347
|
+
"AUTO",
|
|
3348
|
+
"ASSIGN",
|
|
3349
|
+
"SCORE",
|
|
3350
|
+
],
|
|
3173
3351
|
};
|
|
3174
3352
|
},
|
|
3175
3353
|
computed: {
|
|
3176
3354
|
deletable() {
|
|
3177
|
-
return _.size(_.filter(this.evaluationItems, item => item.type == "IF")) > 1;
|
|
3178
|
-
}
|
|
3355
|
+
return (_.size(_.filter(this.evaluationItems, (item) => item.type == "IF")) > 1);
|
|
3356
|
+
},
|
|
3357
|
+
disableAddConditionBtn() {
|
|
3358
|
+
let conditions = this.evaluationItems[this.position].conditions;
|
|
3359
|
+
let scoreConditions = _.size(_.filter(conditions, (item) => item.type == "SCORE"));
|
|
3360
|
+
return (this.exprConditionType == "SCORE" && scoreConditions > 0);
|
|
3361
|
+
},
|
|
3179
3362
|
},
|
|
3180
3363
|
methods: {
|
|
3181
3364
|
onAdd() {
|
|
3182
3365
|
this.evaluationItems.splice(this.position + 1, 0, {
|
|
3183
|
-
|
|
3184
|
-
|
|
3185
|
-
|
|
3186
|
-
"zh-CN": ""
|
|
3366
|
+
id: `Evaluation-Item-${_.now()}-${_.random(0, 9999999)}`,
|
|
3367
|
+
type: "IF",
|
|
3368
|
+
text: {
|
|
3369
|
+
"zh-CN": "",
|
|
3187
3370
|
},
|
|
3188
|
-
|
|
3371
|
+
conditions: [],
|
|
3189
3372
|
});
|
|
3190
3373
|
},
|
|
3191
3374
|
onDelete() {
|
|
3192
3375
|
this.evaluationItems.splice(this.position, 1);
|
|
3193
3376
|
},
|
|
3194
3377
|
addCondition() {
|
|
3195
|
-
this.evaluationItems[this.position].conditions ||
|
|
3378
|
+
this.evaluationItems[this.position].conditions ||
|
|
3379
|
+
this.$set(this.evaluationItems[this.position], "conditions", []);
|
|
3196
3380
|
this.evaluationItems[this.position].conditions.push({
|
|
3197
3381
|
type: this.exprConditionType,
|
|
3382
|
+
payload: this.buildPayloadByType(this.exprConditionType),
|
|
3383
|
+
});
|
|
3384
|
+
},
|
|
3385
|
+
buildPayloadByType(type) {
|
|
3386
|
+
if (type == "SCORE") {
|
|
3387
|
+
return {
|
|
3388
|
+
payload: {
|
|
3389
|
+
minScore: 0,
|
|
3390
|
+
operator: "<",
|
|
3391
|
+
maxScore: 0,
|
|
3392
|
+
},
|
|
3393
|
+
};
|
|
3394
|
+
}
|
|
3395
|
+
return {
|
|
3198
3396
|
payload: {
|
|
3199
3397
|
scope: [],
|
|
3200
3398
|
operator: "=",
|
|
3201
3399
|
values: [],
|
|
3202
|
-
size: 0
|
|
3203
|
-
}
|
|
3204
|
-
}
|
|
3400
|
+
size: 0,
|
|
3401
|
+
},
|
|
3402
|
+
};
|
|
3205
3403
|
},
|
|
3206
3404
|
removeCondition(index) {
|
|
3207
3405
|
this.evaluationItems[this.position].conditions.splice(index, 1);
|
|
3208
3406
|
},
|
|
3209
3407
|
expr(index, value) {
|
|
3210
3408
|
_.set(this.evaluationItems[this.position].conditions[index], "expr", value);
|
|
3211
|
-
}
|
|
3212
|
-
}
|
|
3409
|
+
},
|
|
3410
|
+
},
|
|
3213
3411
|
});
|
|
3214
3412
|
|
|
3215
3413
|
/* script */
|
|
3216
3414
|
const __vue_script__$b = script$b;
|
|
3217
3415
|
|
|
3218
3416
|
/* template */
|
|
3219
|
-
var __vue_render__$b = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('Card',{attrs:{"dis-hover":""}},[_c('Row',{attrs:{"slot":"title","type":"flex","gutter":6},slot:"title"},[_c('Col',[_c('div',{staticClass:"text"},[_vm._v("\n
|
|
3417
|
+
var __vue_render__$b = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('Card',{attrs:{"dis-hover":""}},[_c('Row',{attrs:{"slot":"title","type":"flex","gutter":6},slot:"title"},[_c('Col',[_c('div',{staticClass:"text"},[_vm._v("\n "+_vm._s(_vm.t("survey_creator.question.evaluation.condition.if"))+"\n ")])]),_vm._v(" "),_c('Col',[_c('Button',{attrs:{"type":"primary","icon":"md-add"},on:{"click":_vm.onAdd}},[_vm._v("\n "+_vm._s(_vm.t("survey_creator.question.evaluation.condition.add_if_template"))+"\n ")])],1)],1),_vm._v(" "),_c('a',{directives:[{name:"show",rawName:"v-show",value:(_vm.deletable),expression:"deletable"}],attrs:{"slot":"extra","href":"#"},on:{"click":function($event){$event.preventDefault();return _vm.onDelete.apply(null, arguments)}},slot:"extra"},[_vm._v("\n "+_vm._s(_vm.t("survey_creator.common.delete"))+"\n ")]),_vm._v(" "),_c('Row',{attrs:{"type":"flex","justify":"start","align":"middle"}},[_c('Col',{attrs:{"span":22}},[_c('Row',{attrs:{"type":"flex","justify":"start","align":"middle"}},[_c('Col',{staticClass:"label"},[_c('Icon',{attrs:{"type":"ios-arrow-forward","color":"#2d8cf0"}}),_vm._v("\n "+_vm._s(_vm.t("survey_creator.question.evaluation.condition.requirements"))+"\n ")],1),_vm._v(" "),_c('Col',{attrs:{"span":16}},[_c('Select',{model:{value:(_vm.exprConditionType),callback:function ($$v) {_vm.exprConditionType=$$v;},expression:"exprConditionType"}},_vm._l((_vm.exprConditionTypes),function(type){return _c('Option',{key:type,attrs:{"value":type}},[_vm._v("\n "+_vm._s(_vm.t(("survey_creator.question.evaluation.condition.type." + type)))+"\n ")])}),1)],1)],1)],1),_vm._v(" "),_c('Col',{attrs:{"span":2}},[_c('Button',{staticClass:"action",attrs:{"icon":"md-add","disabled":_vm.disableAddConditionBtn},on:{"click":_vm.addCondition}})],1)],1),_vm._v(" "),_vm._l((_vm.evaluationItems[_vm.position].conditions),function(condition,index){return _c('Row',{key:index,staticClass:"mt-base",attrs:{"type":"flex","justify":"space-between","align":"middle"}},[_c('Col',{attrs:{"span":22}},[_c('condition',{key:index,attrs:{"index":index,"type":condition.type,"question":_vm.question,"evaluation-items":_vm.evaluationItems,"item-index":_vm.position},on:{"expr":_vm.expr},model:{value:(condition.payload),callback:function ($$v) {_vm.$set(condition, "payload", $$v);},expression:"condition.payload"}})],1),_vm._v(" "),_c('Col',{attrs:{"span":2}},[_c('Button',{staticClass:"action",staticStyle:{"margin-bottom":"24px"},attrs:{"icon":"md-remove"},on:{"click":function($event){return _vm.removeCondition(index)}}})],1)],1)}),_vm._v(" "),_c('Row',{staticClass:"mt-base",attrs:{"type":"flex","justify":"end","align":"middle"}},[_c('Col',[_c('FormItem',{attrs:{"prop":'evaluationItems[' + _vm.position + '].text.' + _vm.primaryLanguage,"rules":{
|
|
3418
|
+
required: true,
|
|
3419
|
+
message: _vm.t(
|
|
3420
|
+
'survey_creator.question.evaluation.condition.evaluation_require_tip'
|
|
3421
|
+
),
|
|
3422
|
+
}}},[_vm._v(_vm._s(_vm.t("survey_creator.question.evaluation.condition.evaluation_label"))+"\n "),_c('Input',{staticClass:"input",model:{value:(_vm.evaluationItems[_vm.position].text[_vm.primaryLanguage]),callback:function ($$v) {_vm.$set(_vm.evaluationItems[_vm.position].text, _vm.primaryLanguage, (typeof $$v === 'string'? $$v.trim(): $$v));},expression:"evaluationItems[position].text[primaryLanguage]"}})],1)],1)],1)],2)};
|
|
3220
3423
|
var __vue_staticRenderFns__$b = [];
|
|
3221
3424
|
|
|
3222
3425
|
/* style */
|
|
3223
3426
|
const __vue_inject_styles__$b = function (inject) {
|
|
3224
3427
|
if (!inject) return
|
|
3225
|
-
inject("data-v-
|
|
3428
|
+
inject("data-v-25df9b0d_0", { source: ".mt-base[data-v-25df9b0d]{margin-top:12px}.action[data-v-25df9b0d]{float:right}.input[data-v-25df9b0d]{width:100px}.label[data-v-25df9b0d]{text-align:right;padding-right:4px}.text[data-v-25df9b0d]{background-color:#ebf7ff;height:32px;padding:8px 18px;font-weight:500;color:#515a6e}[data-v-25df9b0d] .ivu-card .ivu-form-item{margin-bottom:4px;margin-top:0}[data-v-25df9b0d] .ivu-card .ivu-form-item-error{margin-bottom:24px;margin-top:0}", map: undefined, media: undefined });
|
|
3226
3429
|
|
|
3227
3430
|
};
|
|
3228
3431
|
/* scoped */
|
|
3229
|
-
const __vue_scope_id__$b = "data-v-
|
|
3432
|
+
const __vue_scope_id__$b = "data-v-25df9b0d";
|
|
3230
3433
|
/* module identifier */
|
|
3231
3434
|
const __vue_module_identifier__$b = undefined;
|
|
3232
3435
|
/* functional template */
|
|
@@ -3250,6 +3453,8 @@ var __vue_staticRenderFns__$b = [];
|
|
|
3250
3453
|
undefined
|
|
3251
3454
|
);
|
|
3252
3455
|
|
|
3456
|
+
var If = __vue_component__$b;
|
|
3457
|
+
|
|
3253
3458
|
var script$a = Vue.extend({
|
|
3254
3459
|
name: "else",
|
|
3255
3460
|
mixins: [questionFormMixin],
|
|
@@ -3318,12 +3523,14 @@ var __vue_staticRenderFns__$a = [];
|
|
|
3318
3523
|
undefined
|
|
3319
3524
|
);
|
|
3320
3525
|
|
|
3526
|
+
var Else = __vue_component__$a;
|
|
3527
|
+
|
|
3321
3528
|
var script$9 = Vue.extend({
|
|
3322
3529
|
name: "expr",
|
|
3323
3530
|
mixins: [questionFormMixin],
|
|
3324
3531
|
components: {
|
|
3325
|
-
IF:
|
|
3326
|
-
ELSE:
|
|
3532
|
+
IF: If,
|
|
3533
|
+
ELSE: Else
|
|
3327
3534
|
},
|
|
3328
3535
|
props: {
|
|
3329
3536
|
value: {
|
|
@@ -3371,14 +3578,16 @@ var __vue_staticRenderFns__$9 = [];
|
|
|
3371
3578
|
undefined
|
|
3372
3579
|
);
|
|
3373
3580
|
|
|
3581
|
+
var Expr = __vue_component__$9;
|
|
3582
|
+
|
|
3374
3583
|
var script$8 = Vue.extend({
|
|
3375
3584
|
name: "evaluation-form",
|
|
3376
3585
|
components: {
|
|
3377
3586
|
Form, FormItem, Row,
|
|
3378
3587
|
Col, draggable, Option,
|
|
3379
3588
|
Select, Checkbox, Input,
|
|
3380
|
-
["STAR"]:
|
|
3381
|
-
["EXPR"]:
|
|
3589
|
+
["STAR"]: Star,
|
|
3590
|
+
["EXPR"]: Expr
|
|
3382
3591
|
},
|
|
3383
3592
|
mixins: [questionFormMixin],
|
|
3384
3593
|
data() {
|
|
@@ -3444,6 +3653,8 @@ var __vue_staticRenderFns__$8 = [];
|
|
|
3444
3653
|
undefined
|
|
3445
3654
|
);
|
|
3446
3655
|
|
|
3656
|
+
var EvaluationForm = __vue_component__$8;
|
|
3657
|
+
|
|
3447
3658
|
const QUESTION_OPERATION_TYPE_COPY$1 = "copy";
|
|
3448
3659
|
var script$7 = Vue.extend({
|
|
3449
3660
|
name: "question-edit-drawer",
|
|
@@ -3452,13 +3663,13 @@ var script$7 = Vue.extend({
|
|
|
3452
3663
|
ButtonGroup,
|
|
3453
3664
|
Button,
|
|
3454
3665
|
Card,
|
|
3455
|
-
["SINGLE_SELECTION"]:
|
|
3456
|
-
["MULTI_SELECTION"]:
|
|
3457
|
-
["SHORT_ANSWER"]:
|
|
3458
|
-
["FILL_BLANK"]:
|
|
3459
|
-
["MATRIX"]:
|
|
3460
|
-
["TEXT_TITLE"]:
|
|
3461
|
-
["EVALUATION"]:
|
|
3666
|
+
["SINGLE_SELECTION"]: SingleSelectionForm,
|
|
3667
|
+
["MULTI_SELECTION"]: MultiSelectionForm,
|
|
3668
|
+
["SHORT_ANSWER"]: ShortAnswerForm,
|
|
3669
|
+
["FILL_BLANK"]: ShortAnswerForm,
|
|
3670
|
+
["MATRIX"]: MatrixForm,
|
|
3671
|
+
["TEXT_TITLE"]: TitleForm,
|
|
3672
|
+
["EVALUATION"]: EvaluationForm
|
|
3462
3673
|
},
|
|
3463
3674
|
inject: ["$rootComponent"],
|
|
3464
3675
|
mixins: [LocaleMixin],
|
|
@@ -3570,6 +3781,8 @@ var __vue_staticRenderFns__$7 = [function () {var _vm=this;var _h=_vm.$createEle
|
|
|
3570
3781
|
undefined
|
|
3571
3782
|
);
|
|
3572
3783
|
|
|
3784
|
+
var QuestionEditDrawer = __vue_component__$7;
|
|
3785
|
+
|
|
3573
3786
|
var script$6 = Vue.extend({
|
|
3574
3787
|
name: "translation-table",
|
|
3575
3788
|
components: { Input, Table },
|
|
@@ -3655,9 +3868,11 @@ var __vue_staticRenderFns__$6 = [];
|
|
|
3655
3868
|
undefined
|
|
3656
3869
|
);
|
|
3657
3870
|
|
|
3871
|
+
var TranslationTable = __vue_component__$6;
|
|
3872
|
+
|
|
3658
3873
|
var script$5 = Vue.extend({
|
|
3659
3874
|
name: 'survey-translator',
|
|
3660
|
-
components: { TranslationTable
|
|
3875
|
+
components: { TranslationTable },
|
|
3661
3876
|
mixins: [LocaleMixin, SurveyTranslatorMixin],
|
|
3662
3877
|
props: {
|
|
3663
3878
|
survey: {
|
|
@@ -3766,6 +3981,8 @@ var __vue_staticRenderFns__$5 = [];
|
|
|
3766
3981
|
undefined
|
|
3767
3982
|
);
|
|
3768
3983
|
|
|
3984
|
+
var SurveyTranslator = __vue_component__$5;
|
|
3985
|
+
|
|
3769
3986
|
var script$4 = Vue.extend({
|
|
3770
3987
|
name: "previewer-question-row",
|
|
3771
3988
|
components: {
|
|
@@ -3773,14 +3990,14 @@ var script$4 = Vue.extend({
|
|
|
3773
3990
|
Col,
|
|
3774
3991
|
Divider,
|
|
3775
3992
|
Card,
|
|
3776
|
-
QuestionTitle
|
|
3777
|
-
["SINGLE_SELECTION"]:
|
|
3778
|
-
["MULTI_SELECTION"]:
|
|
3779
|
-
["SHORT_ANSWER"]:
|
|
3780
|
-
["FILL_BLANK"]:
|
|
3781
|
-
["TEXT_TITLE"]:
|
|
3782
|
-
["MATRIX"]:
|
|
3783
|
-
["EVALUATION"]:
|
|
3993
|
+
QuestionTitle,
|
|
3994
|
+
["SINGLE_SELECTION"]: SingleSelection,
|
|
3995
|
+
["MULTI_SELECTION"]: MultiSelection,
|
|
3996
|
+
["SHORT_ANSWER"]: ShortAnswer,
|
|
3997
|
+
["FILL_BLANK"]: FillBlank,
|
|
3998
|
+
["TEXT_TITLE"]: TextTitle,
|
|
3999
|
+
["MATRIX"]: Matrix,
|
|
4000
|
+
["EVALUATION"]: Evaluation
|
|
3784
4001
|
},
|
|
3785
4002
|
mixins: [LocaleMixin],
|
|
3786
4003
|
inject: ["$rootComponent"],
|
|
@@ -3828,9 +4045,11 @@ var __vue_staticRenderFns__$4 = [];
|
|
|
3828
4045
|
undefined
|
|
3829
4046
|
);
|
|
3830
4047
|
|
|
4048
|
+
var PreviewerQuestionRow = __vue_component__$4;
|
|
4049
|
+
|
|
3831
4050
|
var script$3 = Vue.extend({
|
|
3832
4051
|
name: 'survey-internal-previewer',
|
|
3833
|
-
components: { Card, PreviewerQuestionRow
|
|
4052
|
+
components: { Card, PreviewerQuestionRow },
|
|
3834
4053
|
props: {
|
|
3835
4054
|
survey: {
|
|
3836
4055
|
type: Object,
|
|
@@ -3875,6 +4094,8 @@ var __vue_staticRenderFns__$3 = [];
|
|
|
3875
4094
|
undefined
|
|
3876
4095
|
);
|
|
3877
4096
|
|
|
4097
|
+
var SurveyInternalPreviewer = __vue_component__$3;
|
|
4098
|
+
|
|
3878
4099
|
var script$2 = Vue.extend({
|
|
3879
4100
|
name: "editor-options",
|
|
3880
4101
|
components: { Row, Col, Icon, RadioGroup, Radio },
|
|
@@ -3942,6 +4163,8 @@ var __vue_staticRenderFns__$2 = [];
|
|
|
3942
4163
|
undefined
|
|
3943
4164
|
);
|
|
3944
4165
|
|
|
4166
|
+
var EditOptions = __vue_component__$2;
|
|
4167
|
+
|
|
3945
4168
|
var Mode;
|
|
3946
4169
|
(function (Mode) {
|
|
3947
4170
|
Mode[Mode["EDIT"] = 0] = "EDIT";
|
|
@@ -3958,18 +4181,18 @@ var script$1 = Vue.extend({
|
|
|
3958
4181
|
Row,
|
|
3959
4182
|
Col,
|
|
3960
4183
|
Button,
|
|
3961
|
-
SurveyEditor
|
|
3962
|
-
SurveyTranslator
|
|
3963
|
-
SurveyInternalPreviewer
|
|
3964
|
-
QuestionEditDrawer
|
|
3965
|
-
Toolbar
|
|
4184
|
+
SurveyEditor,
|
|
4185
|
+
SurveyTranslator,
|
|
4186
|
+
SurveyInternalPreviewer,
|
|
4187
|
+
QuestionEditDrawer,
|
|
4188
|
+
Toolbar,
|
|
3966
4189
|
Modal,
|
|
3967
4190
|
Tabs,
|
|
3968
4191
|
TabPane,
|
|
3969
4192
|
Icon,
|
|
3970
4193
|
Scroll,
|
|
3971
|
-
CreateQuestionDropdown
|
|
3972
|
-
EditOptions
|
|
4194
|
+
CreateQuestionDropdown,
|
|
4195
|
+
EditOptions
|
|
3973
4196
|
},
|
|
3974
4197
|
mixins: [LocaleMixin, SurveyTranslatorMixin],
|
|
3975
4198
|
provide() {
|
|
@@ -4180,10 +4403,12 @@ var __vue_staticRenderFns__$1 = [];
|
|
|
4180
4403
|
undefined
|
|
4181
4404
|
);
|
|
4182
4405
|
|
|
4406
|
+
var SurveyCreator = __vue_component__$1;
|
|
4407
|
+
|
|
4183
4408
|
var script = Vue.extend({
|
|
4184
4409
|
name: 'survey-previewer',
|
|
4185
4410
|
mixins: [LocaleMixin],
|
|
4186
|
-
components: { Card, Row, Col, Button, Toolbar
|
|
4411
|
+
components: { Card, Row, Col, Button, Toolbar, SurveyInternalPreviewer },
|
|
4187
4412
|
provide() {
|
|
4188
4413
|
return {
|
|
4189
4414
|
$rootComponent: this
|
|
@@ -4256,6 +4481,8 @@ var __vue_staticRenderFns__ = [];
|
|
|
4256
4481
|
undefined
|
|
4257
4482
|
);
|
|
4258
4483
|
|
|
4484
|
+
var SurveyPreviewer = __vue_component__;
|
|
4485
|
+
|
|
4259
4486
|
class SurveyCreatorOptions {
|
|
4260
4487
|
}
|
|
4261
4488
|
class SurveyCreatorPlugin {
|
|
@@ -4263,10 +4490,9 @@ class SurveyCreatorPlugin {
|
|
|
4263
4490
|
locale.use(options.locale);
|
|
4264
4491
|
locale.i18n(options.i18n);
|
|
4265
4492
|
Vue.$surveyLanguage = options.locale;
|
|
4266
|
-
Vue.component('survey-creator',
|
|
4267
|
-
Vue.component('survey-previewer',
|
|
4493
|
+
Vue.component('survey-creator', SurveyCreator);
|
|
4494
|
+
Vue.component('survey-previewer', SurveyPreviewer);
|
|
4268
4495
|
}
|
|
4269
4496
|
}
|
|
4270
4497
|
|
|
4271
|
-
export default
|
|
4272
|
-
export { __vue_component__$1 as SurveyCreator, SurveyCreatorOptions };
|
|
4498
|
+
export { SurveyCreator, SurveyCreatorOptions, SurveyCreatorPlugin as default };
|