@wg-npm/survey-creator 1.77.2271400 → 1.78.511800

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.
@@ -92,6 +92,9 @@ var defaultLang = {
92
92
  inputEnabledTip: "用户选中该项后可输入",
93
93
  textTitleRequiredTip: "请填写文字说明",
94
94
  scoreRequiredTip: "分值不能为空",
95
+ scoreExceedTotalTip: "分数不能超过总分",
96
+ minScoreGreaterThanMaxTip: "最小分值不能大于最大分值",
97
+ maxScoreLessThanMinTip: "最大分值不能小于最小分值",
95
98
  subQuestionRequiredTip: "子題不能为空",
96
99
  optionalRequiredTip: "选项不能为空",
97
100
  commitRequiredTip: "描述不能为空",
@@ -133,6 +136,11 @@ var defaultLang = {
133
136
  starMinCountSuffix: "项及以上时计星",
134
137
  maxScore: "最高分值:",
135
138
  enableMultiSelect: "可复选",
139
+ evaluation_tag: {
140
+ label: "评价对象",
141
+ TEACHER: "评教师",
142
+ COURSE: "评课程",
143
+ },
136
144
  evaluation: {
137
145
  level: {
138
146
  "1": "好",
@@ -260,6 +268,10 @@ var defaultLang = {
260
268
  header_zhTw: "繁体中文",
261
269
  },
262
270
  },
271
+ previewer: {
272
+ counter_total: "(共 {0} 道题) 已选",
273
+ counter_suffix: "题",
274
+ },
263
275
  message: {
264
276
  saveSuccess: "保存成功",
265
277
  saveFailed: "保存失败",
@@ -4175,7 +4187,7 @@ function setCacheAdd(value) {
4175
4187
  * @name has
4176
4188
  * @memberOf SetCache
4177
4189
  * @param {*} value The value to search for.
4178
- * @returns {number} Returns `true` if `value` is found, else `false`.
4190
+ * @returns {boolean} Returns `true` if `value` is found, else `false`.
4179
4191
  */
4180
4192
  function setCacheHas(value) {
4181
4193
  return this.__data__.has(value);
@@ -17486,9 +17498,7 @@ class PresetReplyBlot extends Embed$1 {
17486
17498
  const EventBus = new Vue();
17487
17499
 
17488
17500
  class Constants {
17489
- constructor() {
17490
- this.RICH_TEXT_IMAGE_COUNT_LIMIT = 20;
17491
- }
17501
+ RICH_TEXT_IMAGE_COUNT_LIMIT = 20;
17492
17502
  }
17493
17503
  const consts = new Constants();
17494
17504
 
@@ -18990,6 +19000,8 @@ var script$p = Vue.extend({
18990
19000
  Button,
18991
19001
  Input: Input$1,
18992
19002
  Checkbox,
19003
+ Radio,
19004
+ RadioGroup,
18993
19005
  Row,
18994
19006
  Col,
18995
19007
  Icon,
@@ -19009,13 +19021,18 @@ var script$p = Vue.extend({
19009
19021
  layoutOptions: ["HORIZONTAL", "VERTICAL"],
19010
19022
  enabledInputChoice: false,
19011
19023
  enabledRichText: false,
19012
- enabledSpeciallyQuestions: true
19024
+ enabledSpeciallyQuestions: true,
19025
+ enabledEvaluationTag: false,
19013
19026
  };
19014
19027
  },
19015
19028
  created() {
19016
19029
  this.enabledInputChoice = _$1.get(this.$rootComponent, "options.enabledInputChoice", false);
19017
19030
  this.enabledRichText = _$1.get(this.$rootComponent, "options.enabledPlanSurveyTeacherSetting", false);
19018
19031
  this.enabledSpeciallyQuestions = _$1.get(this.$rootComponent, "options.enabledSpeciallyQuestions", true);
19032
+ this.enabledEvaluationTag = _$1.get(this.$rootComponent, "options.enabledEvaluationTag", false);
19033
+ if (this.enabledEvaluationTag && !this.editQuestion.options.evaluationTag) {
19034
+ this.$set(this.editQuestion.options, "evaluationTag", "COURSE");
19035
+ }
19019
19036
  this.editQuestion.options.richTextEnabled = this.enabledRichText;
19020
19037
  },
19021
19038
  methods: {
@@ -19120,7 +19137,7 @@ var script$p = Vue.extend({
19120
19137
  const __vue_script__$p = script$p;
19121
19138
 
19122
19139
  /* template */
19123
- var __vue_render__$o = 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},on:{"on-validate":_vm.onValidate}},[_c('div',{staticClass:"options-container",style:(_vm.enabledSpeciallyQuestions||_vm.enabledInputChoice?'grid-template-columns: 50% 50%':'grid-template-columns: 100%')},[_c('div',{staticClass:"options-row"},[_c('div',{staticClass:"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',{staticClass:"option",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 ")])],1)]),_vm._v(" "),_c('div',{staticClass:"options-row before-border"},[(_vm.enabledSpeciallyQuestions)?_c('div',{staticClass:"options"},[_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.enabledInputChoice)?_c('div',[_c('Checkbox',{staticClass:"option",on:{"on-change":_vm.inputEnabledChange},model:{value:(_vm.editQuestion.options.inputtedEnabled),callback:function ($$v) {_vm.$set(_vm.editQuestion.options, "inputtedEnabled", $$v);},expression:"editQuestion.options.inputtedEnabled"}},[_vm._v("\n "+_vm._s(_vm.t("survey_creator.question.inputted_enabled"))+"\n ")]),_vm._v(" "),_c('div',{directives:[{name:"show",rawName:"v-show",value:(_vm.editQuestion.options.inputtedEnabled),expression:"editQuestion.options.inputtedEnabled"}],staticClass:"option-expand"},[_c('span',[_vm._v(_vm._s(_vm.t("survey_creator.question.inputted_enabled_prefix")))]),_vm._v(" "),_c('InputNumber',{staticClass:"inputing",attrs:{"max":999,"min":1,"precision":0},model:{value:(_vm.editQuestion.options.inputMinLength),callback:function ($$v) {_vm.$set(_vm.editQuestion.options, "inputMinLength", $$v);},expression:"editQuestion.options.inputMinLength"}}),_vm._v(" "),_c('span',[_vm._v(_vm._s(_vm.t("survey_creator.question.inputted_enabled_suffix")))])],1)],1):_vm._e()],1):_c('div',{staticClass:"options"},[(_vm.enabledInputChoice)?_c('div',[_c('Checkbox',{staticClass:"option",staticStyle:{"margin-top":"0px"},on:{"on-change":_vm.inputEnabledChange},model:{value:(_vm.editQuestion.options.inputtedEnabled),callback:function ($$v) {_vm.$set(_vm.editQuestion.options, "inputtedEnabled", $$v);},expression:"editQuestion.options.inputtedEnabled"}},[_vm._v("\n "+_vm._s(_vm.t("survey_creator.question.inputted_enabled"))+"\n ")]),_vm._v(" "),_c('div',{directives:[{name:"show",rawName:"v-show",value:(_vm.editQuestion.options.inputtedEnabled),expression:"editQuestion.options.inputtedEnabled"}],staticClass:"option-expand"},[_c('span',[_vm._v(_vm._s(_vm.t("survey_creator.question.inputted_enabled_prefix")))]),_vm._v(" "),_c('InputNumber',{staticClass:"inputing",attrs:{"max":999,"min":1,"precision":0},model:{value:(_vm.editQuestion.options.inputMinLength),callback:function ($$v) {_vm.$set(_vm.editQuestion.options, "inputMinLength", $$v);},expression:"editQuestion.options.inputMinLength"}}),_vm._v(" "),_c('span',[_vm._v(_vm._s(_vm.t("survey_creator.question.inputted_enabled_suffix")))])],1)],1):_vm._e()])])]),_vm._v(" "),(_vm.enabledRichText)?_c('Alert',{attrs:{"show-icon":""}},[_vm._v(_vm._s(_vm.t("survey_creator.question.rich_text.alert"))+"\n ")]):_vm._e(),_vm._v(" "),_c('Row',[_c('Form-item',{attrs:{"label-width":80,"label":_vm.t('survey_creator.page.question'),"prop":'header.text.' + _vm.primaryLanguage,"rules":{
19140
+ var __vue_render__$o = 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},on:{"on-validate":_vm.onValidate}},[_c('div',{staticClass:"options-container",style:(_vm.enabledSpeciallyQuestions||_vm.enabledInputChoice?'grid-template-columns: 50% 50%':'grid-template-columns: 100%')},[_c('div',{staticClass:"options-row"},[_c('div',{staticClass:"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',{staticClass:"option",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 ")])],1)]),_vm._v(" "),_c('div',{staticClass:"options-row before-border"},[(_vm.enabledSpeciallyQuestions)?_c('div',{staticClass:"options"},[_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.enabledInputChoice)?_c('div',[_c('Checkbox',{staticClass:"option",on:{"on-change":_vm.inputEnabledChange},model:{value:(_vm.editQuestion.options.inputtedEnabled),callback:function ($$v) {_vm.$set(_vm.editQuestion.options, "inputtedEnabled", $$v);},expression:"editQuestion.options.inputtedEnabled"}},[_vm._v("\n "+_vm._s(_vm.t("survey_creator.question.inputted_enabled"))+"\n ")]),_vm._v(" "),_c('div',{directives:[{name:"show",rawName:"v-show",value:(_vm.editQuestion.options.inputtedEnabled),expression:"editQuestion.options.inputtedEnabled"}],staticClass:"option-expand"},[_c('span',[_vm._v(_vm._s(_vm.t("survey_creator.question.inputted_enabled_prefix")))]),_vm._v(" "),_c('InputNumber',{staticClass:"inputing",attrs:{"max":999,"min":1,"precision":0},model:{value:(_vm.editQuestion.options.inputMinLength),callback:function ($$v) {_vm.$set(_vm.editQuestion.options, "inputMinLength", $$v);},expression:"editQuestion.options.inputMinLength"}}),_vm._v(" "),_c('span',[_vm._v(_vm._s(_vm.t("survey_creator.question.inputted_enabled_suffix")))])],1)],1):_vm._e()],1):_c('div',{staticClass:"options"},[(_vm.enabledInputChoice)?_c('div',[_c('Checkbox',{staticClass:"option",staticStyle:{"margin-top":"0px"},on:{"on-change":_vm.inputEnabledChange},model:{value:(_vm.editQuestion.options.inputtedEnabled),callback:function ($$v) {_vm.$set(_vm.editQuestion.options, "inputtedEnabled", $$v);},expression:"editQuestion.options.inputtedEnabled"}},[_vm._v("\n "+_vm._s(_vm.t("survey_creator.question.inputted_enabled"))+"\n ")]),_vm._v(" "),_c('div',{directives:[{name:"show",rawName:"v-show",value:(_vm.editQuestion.options.inputtedEnabled),expression:"editQuestion.options.inputtedEnabled"}],staticClass:"option-expand"},[_c('span',[_vm._v(_vm._s(_vm.t("survey_creator.question.inputted_enabled_prefix")))]),_vm._v(" "),_c('InputNumber',{staticClass:"inputing",attrs:{"max":999,"min":1,"precision":0},model:{value:(_vm.editQuestion.options.inputMinLength),callback:function ($$v) {_vm.$set(_vm.editQuestion.options, "inputMinLength", $$v);},expression:"editQuestion.options.inputMinLength"}}),_vm._v(" "),_c('span',[_vm._v(_vm._s(_vm.t("survey_creator.question.inputted_enabled_suffix")))])],1)],1):_vm._e()])])]),_vm._v(" "),(_vm.enabledEvaluationTag)?_c('div',{staticClass:"evaluation-tag-row"},[_c('span',{staticClass:"evaluation-tag-label"},[_vm._v(_vm._s(_vm.t("survey_creator.question.evaluation_tag.label"))+":")]),_vm._v(" "),_c('RadioGroup',{model:{value:(_vm.editQuestion.options.evaluationTag),callback:function ($$v) {_vm.$set(_vm.editQuestion.options, "evaluationTag", $$v);},expression:"editQuestion.options.evaluationTag"}},[_c('Radio',{attrs:{"label":"TEACHER"}},[_vm._v(_vm._s(_vm.t("survey_creator.question.evaluation_tag.TEACHER")))]),_vm._v(" "),_c('Radio',{attrs:{"label":"COURSE"}},[_vm._v(_vm._s(_vm.t("survey_creator.question.evaluation_tag.COURSE")))])],1)],1):_vm._e(),_vm._v(" "),(_vm.enabledRichText)?_c('Alert',{attrs:{"show-icon":""}},[_vm._v(_vm._s(_vm.t("survey_creator.question.rich_text.alert"))+"\n ")]):_vm._e(),_vm._v(" "),_c('Row',[_c('Form-item',{attrs:{"label-width":80,"label":_vm.t('survey_creator.page.question'),"prop":'header.text.' + _vm.primaryLanguage,"rules":{
19124
19141
  required: true,
19125
19142
  message: _vm.t('survey_creator.question.titleRequiredTip'),
19126
19143
  }}},[_c('Row',[_c('Col',{attrs:{"span":"24"}},[(_vm.enabledRichText)?_c('rich-text',{ref:"richText",attrs:{"placeholder":_vm.t('survey_creator.question.titleRequiredTip')},on:{"input":_vm.onRichTextInput},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]"}}):_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('div',{staticClass:"option-header"},[_c('div',{staticClass:"choice"},[_vm._v("\n "+_vm._s(_vm.t("survey_creator.question.option_header_choice"))+"\n ")]),_vm._v(" "),_c('div',{directives:[{name:"show",rawName:"v-show",value:(_vm.editQuestion.options.scoringEnabled),expression:"editQuestion.options.scoringEnabled"}],staticClass:"scoring"},[_vm._v("\n "+_vm._s(_vm.t("survey_creator.question.option_header_scoring"))+"\n ")]),_vm._v(" "),_c('div',{directives:[{name:"show",rawName:"v-show",value:(_vm.editQuestion.options.inputtedEnabled),expression:"editQuestion.options.inputtedEnabled"}],staticClass:"inputing"},[_vm._v("\n "+_vm._s(_vm.t("survey_creator.question.option_header_inputing"))+"\n ")]),_vm._v(" "),_c('div',{directives:[{name:"show",rawName:"v-show",value:(_vm.editQuestion.options.starEnabled),expression:"editQuestion.options.starEnabled"}],staticClass:"inputing"},[_vm._v("\n "+_vm._s(_vm.t("survey_creator.question.starEnabled"))+"\n ")])]),_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},[_c('FormItem',{attrs:{"label-width":80,"label":_vm.t('survey_creator.question.optional'),"prop":'choices.' + index + '.text.' + _vm.primaryLanguage,"rules":{
@@ -19149,11 +19166,11 @@ var __vue_staticRenderFns__$o = [];
19149
19166
  /* style */
19150
19167
  const __vue_inject_styles__$p = function (inject) {
19151
19168
  if (!inject) return
19152
- inject("data-v-c5186a78_0", { source: ".options-container[data-v-c5186a78]{margin:0 8px 16px;border-bottom:1px solid #e8eaec;display:grid}.options-container .options-row[data-v-c5186a78]{display:flex;flex-direction:row;margin-bottom:16px}.options-container .options-row .options[data-v-c5186a78]{display:flex;flex-direction:column}.options-container .options-row .options .option[data-v-c5186a78]{margin-top:24px}.options-container .options-row .options .option-expand[data-v-c5186a78]{display:flex;align-items:center;margin-top:10px;padding:8px;border-radius:4px;background:#f7f7f7}.options-container .options-row .options .option-expand .inputing[data-v-c5186a78]{width:64px}.options-container .before-border[data-v-c5186a78]{border-left:1px solid #e8eaec;padding-left:16px}.option-header[data-v-c5186a78]{background:#f0f1f3;border-radius:4px;width:100%;height:32px;margin-bottom:24px;display:flex;flex-direction:row;color:#70748c;align-items:center;padding:0 8px 0 16px}.option-header .choice[data-v-c5186a78]{width:100%}.option-header .scoring[data-v-c5186a78]{width:100px;display:flex;justify-content:center}.option-header .inputing[data-v-c5186a78]{width:145px;min-width:42px;display:flex;justify-content:center}.question-choice[data-v-c5186a78]{display:flex;flex-direction:row;align-items:center;padding-right:8px}.question-choice .choice[data-v-c5186a78]{display:flex;flex-direction:row;width:100%;margin-right:8px}.question-choice .choice .button[data-v-c5186a78]{margin-left:8px}.question-choice .scoring[data-v-c5186a78]{width:85px}.question-choice .inputing[data-v-c5186a78]{width:145px;text-align:center}.question-choice .inputing .ivu-checkbox-wrapper[data-v-c5186a78]{margin-right:0}[data-v-c5186a78] .ivu-form-item{width:100%}.option-input[data-v-c5186a78]{margin:0 50px 30px 80px}[data-v-c5186a78] .ivu-form-item-error-tip{min-width:170px}", map: undefined, media: undefined });
19169
+ inject("data-v-4214b994_0", { source: ".options-container[data-v-4214b994]{margin:0 8px 16px;border-bottom:1px solid #e8eaec;display:grid}.options-container .options-row[data-v-4214b994]{display:flex;flex-direction:row;margin-bottom:16px}.options-container .options-row .options[data-v-4214b994]{display:flex;flex-direction:column}.options-container .options-row .options .option[data-v-4214b994]{margin-top:24px}.options-container .options-row .options .option-expand[data-v-4214b994]{display:flex;align-items:center;margin-top:10px;padding:8px;border-radius:4px;background:#f7f7f7}.options-container .options-row .options .option-expand .inputing[data-v-4214b994]{width:64px}.options-container .before-border[data-v-4214b994]{border-left:1px solid #e8eaec;padding-left:16px}.evaluation-tag-row[data-v-4214b994]{display:flex;align-items:center;padding:8px 8px 12px;border-bottom:1px solid #e8eaec;margin-bottom:16px}.evaluation-tag-row .evaluation-tag-label[data-v-4214b994]{margin-right:8px;font-size:14px;color:#262833;white-space:nowrap}.option-header[data-v-4214b994]{background:#f0f1f3;border-radius:4px;width:100%;height:32px;margin-bottom:24px;display:flex;flex-direction:row;color:#70748c;align-items:center;padding:0 8px 0 16px}.option-header .choice[data-v-4214b994]{width:100%}.option-header .scoring[data-v-4214b994]{width:100px;display:flex;justify-content:center}.option-header .inputing[data-v-4214b994]{width:145px;min-width:42px;display:flex;justify-content:center}.question-choice[data-v-4214b994]{display:flex;flex-direction:row;align-items:center;padding-right:8px}.question-choice .choice[data-v-4214b994]{display:flex;flex-direction:row;width:100%;margin-right:8px}.question-choice .choice .button[data-v-4214b994]{margin-left:8px}.question-choice .scoring[data-v-4214b994]{width:85px}.question-choice .inputing[data-v-4214b994]{width:145px;text-align:center}.question-choice .inputing .ivu-checkbox-wrapper[data-v-4214b994]{margin-right:0}[data-v-4214b994] .ivu-form-item{width:100%}.option-input[data-v-4214b994]{margin:0 50px 30px 80px}[data-v-4214b994] .ivu-form-item-error-tip{min-width:170px}", map: undefined, media: undefined });
19153
19170
 
19154
19171
  };
19155
19172
  /* scoped */
19156
- const __vue_scope_id__$p = "data-v-c5186a78";
19173
+ const __vue_scope_id__$p = "data-v-4214b994";
19157
19174
  /* module identifier */
19158
19175
  const __vue_module_identifier__$p = undefined;
19159
19176
  /* functional template */
@@ -19186,6 +19203,8 @@ var script$q = Vue.extend({
19186
19203
  Button,
19187
19204
  Input: Input$1,
19188
19205
  Checkbox,
19206
+ Radio,
19207
+ RadioGroup,
19189
19208
  Row,
19190
19209
  Col,
19191
19210
  Icon,
@@ -19209,7 +19228,8 @@ var script$q = Vue.extend({
19209
19228
  enabledExclusiveChoice: false,
19210
19229
  enabledInputChoice: false,
19211
19230
  enabledRichText: false,
19212
- enabledSpeciallyQuestions: true
19231
+ enabledSpeciallyQuestions: true,
19232
+ enabledEvaluationTag: false,
19213
19233
  };
19214
19234
  },
19215
19235
  created() {
@@ -19219,6 +19239,10 @@ var script$q = Vue.extend({
19219
19239
  this.enabledRichText = _$1.get(this.$rootComponent, "options.enabledPlanSurveyTeacherSetting", false);
19220
19240
  this.editQuestion.options.richTextEnabled = this.enabledRichText;
19221
19241
  this.enabledSpeciallyQuestions = _$1.get(this.$rootComponent, "options.enabledSpeciallyQuestions", true);
19242
+ this.enabledEvaluationTag = _$1.get(this.$rootComponent, "options.enabledEvaluationTag", false);
19243
+ if (this.enabledEvaluationTag && !this.editQuestion.options.evaluationTag) {
19244
+ this.$set(this.editQuestion.options, "evaluationTag", "COURSE");
19245
+ }
19222
19246
  },
19223
19247
  computed: {
19224
19248
  gridTemplateColumns() {
@@ -19338,7 +19362,7 @@ var script$q = Vue.extend({
19338
19362
  const __vue_script__$q = script$q;
19339
19363
 
19340
19364
  /* template */
19341
- var __vue_render__$p = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('Form',{ref:"questionForm",staticClass:"multi-selection-form",attrs:{"model":_vm.editQuestion,"label-colon":false},on:{"on-validate":_vm.onValidate}},[_c('div',{staticClass:"options-container",style:(_vm.gridTemplateColumns>2?'grid-template-columns: 30% 40% 30%':'grid-template-columns: 50% 50%')},[_c('div',{staticClass:"options-row"},[_c('div',{staticClass:"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',{staticClass:"option",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 ")])],1)]),_vm._v(" "),(_vm.gridTemplateColumns>0)?_c('div',{staticClass:"options-row before-border"},[(_vm.enabledSpeciallyQuestions)?_c('div',{staticClass:"options"},[_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(" "),_c('div',{directives:[{name:"show",rawName:"v-show",value:(_vm.editQuestion.options.starEnabled),expression:"editQuestion.options.starEnabled"}],staticClass:"option-expand"},[_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._v(" "),(_vm.enabledInputChoice)?_c('div',[_c('Checkbox',{staticClass:"option",on:{"on-change":_vm.inputEnabledChange},model:{value:(_vm.editQuestion.options.inputtedEnabled),callback:function ($$v) {_vm.$set(_vm.editQuestion.options, "inputtedEnabled", $$v);},expression:"editQuestion.options.inputtedEnabled"}},[_vm._v("\n "+_vm._s(_vm.t("survey_creator.question.inputted_enabled"))+"\n ")]),_vm._v(" "),_c('div',{directives:[{name:"show",rawName:"v-show",value:(_vm.editQuestion.options.inputtedEnabled),expression:"editQuestion.options.inputtedEnabled"}],staticClass:"option-expand"},[_c('span',[_vm._v(_vm._s(_vm.t("survey_creator.question.inputted_enabled_prefix")))]),_vm._v(" "),_c('InputNumber',{staticClass:"inputing",attrs:{"max":999,"min":1,"precision":0},model:{value:(_vm.editQuestion.options.inputMinLength),callback:function ($$v) {_vm.$set(_vm.editQuestion.options, "inputMinLength", $$v);},expression:"editQuestion.options.inputMinLength"}}),_vm._v(" "),_c('span',[_vm._v(_vm._s(_vm.t("survey_creator.question.inputted_enabled_suffix")))])],1)],1):_vm._e(),_vm._v(" "),(_vm.enabledExclusiveChoice&&!_vm.enabledInputChoice)?_c('div',{staticClass:"options"},[_c('Checkbox',{staticClass:"option",on:{"on-change":_vm.exclusiveEnabledChange},model:{value:(_vm.editQuestion.options.exclusiveEnabled),callback:function ($$v) {_vm.$set(_vm.editQuestion.options, "exclusiveEnabled", $$v);},expression:"editQuestion.options.exclusiveEnabled"}},[_c('span',[_vm._v("\n "+_vm._s(_vm.t("survey_creator.question.exclusive_enabled"))+"\n "),_c('Tooltip',{attrs:{"max-width":"200","content":_vm.t('survey_creator.question.exclusive_option_tooltip'),"placement":"bottom"}},[_c('Icon',{attrs:{"custom":"i-icon icon-exclamation-mark-outline","size":"16"}})],1)],1)])],1):_vm._e()],1):_c('div',{staticClass:"options"},[(_vm.enabledInputChoice)?_c('div',[_c('Checkbox',{staticClass:"option",staticStyle:{"margin-top":"0px"},on:{"on-change":_vm.inputEnabledChange},model:{value:(_vm.editQuestion.options.inputtedEnabled),callback:function ($$v) {_vm.$set(_vm.editQuestion.options, "inputtedEnabled", $$v);},expression:"editQuestion.options.inputtedEnabled"}},[_vm._v("\n "+_vm._s(_vm.t("survey_creator.question.inputted_enabled"))+"\n ")]),_vm._v(" "),_c('div',{directives:[{name:"show",rawName:"v-show",value:(_vm.editQuestion.options.inputtedEnabled),expression:"editQuestion.options.inputtedEnabled"}],staticClass:"option-expand"},[_c('span',[_vm._v(_vm._s(_vm.t("survey_creator.question.inputted_enabled_prefix")))]),_vm._v(" "),_c('InputNumber',{staticClass:"inputing",attrs:{"max":999,"min":1,"precision":0},model:{value:(_vm.editQuestion.options.inputMinLength),callback:function ($$v) {_vm.$set(_vm.editQuestion.options, "inputMinLength", $$v);},expression:"editQuestion.options.inputMinLength"}}),_vm._v(" "),_c('span',[_vm._v(_vm._s(_vm.t("survey_creator.question.inputted_enabled_suffix")))])],1)],1):_vm._e(),_vm._v(" "),(_vm.enabledExclusiveChoice)?_c('Checkbox',{staticClass:"option",style:(_vm.enabledInputChoice?'margin-top: 24px':'margin-top: 0px'),on:{"on-change":_vm.exclusiveEnabledChange},model:{value:(_vm.editQuestion.options.exclusiveEnabled),callback:function ($$v) {_vm.$set(_vm.editQuestion.options, "exclusiveEnabled", $$v);},expression:"editQuestion.options.exclusiveEnabled"}},[_c('span',[_vm._v("\n "+_vm._s(_vm.t("survey_creator.question.exclusive_enabled"))+"\n "),_c('Tooltip',{attrs:{"max-width":"200","content":_vm.t('survey_creator.question.exclusive_option_tooltip'),"placement":"bottom"}},[_c('Icon',{attrs:{"custom":"i-icon icon-exclamation-mark-outline","size":"16"}})],1)],1)]):_vm._e()],1)]):_vm._e(),_vm._v(" "),(_vm.gridTemplateColumns>2)?_c('div',{staticClass:"options-row before-border"},[_c('div',{staticClass:"options"},[_c('Checkbox',{on:{"on-change":_vm.exclusiveEnabledChange},model:{value:(_vm.editQuestion.options.exclusiveEnabled),callback:function ($$v) {_vm.$set(_vm.editQuestion.options, "exclusiveEnabled", $$v);},expression:"editQuestion.options.exclusiveEnabled"}},[_c('span',[_vm._v("\n "+_vm._s(_vm.t("survey_creator.question.exclusive_enabled"))+"\n "),_c('Tooltip',{attrs:{"max-width":"200","content":_vm.t('survey_creator.question.exclusive_option_tooltip'),"placement":"bottom"}},[_c('Icon',{attrs:{"custom":"i-icon icon-exclamation-mark-outline","size":"16"}})],1)],1)])],1)]):_vm._e()]),_vm._v(" "),(_vm.enabledRichText)?_c('Alert',{attrs:{"show-icon":""}},[_vm._v(_vm._s(_vm.t("survey_creator.question.rich_text.alert"))+"\n ")]):_vm._e(),_vm._v(" "),_c('Row',[_c('Form-item',{attrs:{"label-width":60,"label":_vm.t('survey_creator.page.question'),"prop":'header.text.' + _vm.primaryLanguage,"rules":{
19365
+ var __vue_render__$p = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('Form',{ref:"questionForm",staticClass:"multi-selection-form",attrs:{"model":_vm.editQuestion,"label-colon":false},on:{"on-validate":_vm.onValidate}},[_c('div',{staticClass:"options-container",style:(_vm.gridTemplateColumns>2?'grid-template-columns: 30% 40% 30%':'grid-template-columns: 50% 50%')},[_c('div',{staticClass:"options-row"},[_c('div',{staticClass:"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',{staticClass:"option",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 ")])],1)]),_vm._v(" "),(_vm.gridTemplateColumns>0)?_c('div',{staticClass:"options-row before-border"},[(_vm.enabledSpeciallyQuestions)?_c('div',{staticClass:"options"},[_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(" "),_c('div',{directives:[{name:"show",rawName:"v-show",value:(_vm.editQuestion.options.starEnabled),expression:"editQuestion.options.starEnabled"}],staticClass:"option-expand"},[_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._v(" "),(_vm.enabledInputChoice)?_c('div',[_c('Checkbox',{staticClass:"option",on:{"on-change":_vm.inputEnabledChange},model:{value:(_vm.editQuestion.options.inputtedEnabled),callback:function ($$v) {_vm.$set(_vm.editQuestion.options, "inputtedEnabled", $$v);},expression:"editQuestion.options.inputtedEnabled"}},[_vm._v("\n "+_vm._s(_vm.t("survey_creator.question.inputted_enabled"))+"\n ")]),_vm._v(" "),_c('div',{directives:[{name:"show",rawName:"v-show",value:(_vm.editQuestion.options.inputtedEnabled),expression:"editQuestion.options.inputtedEnabled"}],staticClass:"option-expand"},[_c('span',[_vm._v(_vm._s(_vm.t("survey_creator.question.inputted_enabled_prefix")))]),_vm._v(" "),_c('InputNumber',{staticClass:"inputing",attrs:{"max":999,"min":1,"precision":0},model:{value:(_vm.editQuestion.options.inputMinLength),callback:function ($$v) {_vm.$set(_vm.editQuestion.options, "inputMinLength", $$v);},expression:"editQuestion.options.inputMinLength"}}),_vm._v(" "),_c('span',[_vm._v(_vm._s(_vm.t("survey_creator.question.inputted_enabled_suffix")))])],1)],1):_vm._e(),_vm._v(" "),(_vm.enabledExclusiveChoice&&!_vm.enabledInputChoice)?_c('div',{staticClass:"options"},[_c('Checkbox',{staticClass:"option",on:{"on-change":_vm.exclusiveEnabledChange},model:{value:(_vm.editQuestion.options.exclusiveEnabled),callback:function ($$v) {_vm.$set(_vm.editQuestion.options, "exclusiveEnabled", $$v);},expression:"editQuestion.options.exclusiveEnabled"}},[_c('span',[_vm._v("\n "+_vm._s(_vm.t("survey_creator.question.exclusive_enabled"))+"\n "),_c('Tooltip',{attrs:{"max-width":"200","content":_vm.t('survey_creator.question.exclusive_option_tooltip'),"placement":"bottom"}},[_c('Icon',{attrs:{"custom":"i-icon icon-exclamation-mark-outline","size":"16"}})],1)],1)])],1):_vm._e()],1):_c('div',{staticClass:"options"},[(_vm.enabledInputChoice)?_c('div',[_c('Checkbox',{staticClass:"option",staticStyle:{"margin-top":"0px"},on:{"on-change":_vm.inputEnabledChange},model:{value:(_vm.editQuestion.options.inputtedEnabled),callback:function ($$v) {_vm.$set(_vm.editQuestion.options, "inputtedEnabled", $$v);},expression:"editQuestion.options.inputtedEnabled"}},[_vm._v("\n "+_vm._s(_vm.t("survey_creator.question.inputted_enabled"))+"\n ")]),_vm._v(" "),_c('div',{directives:[{name:"show",rawName:"v-show",value:(_vm.editQuestion.options.inputtedEnabled),expression:"editQuestion.options.inputtedEnabled"}],staticClass:"option-expand"},[_c('span',[_vm._v(_vm._s(_vm.t("survey_creator.question.inputted_enabled_prefix")))]),_vm._v(" "),_c('InputNumber',{staticClass:"inputing",attrs:{"max":999,"min":1,"precision":0},model:{value:(_vm.editQuestion.options.inputMinLength),callback:function ($$v) {_vm.$set(_vm.editQuestion.options, "inputMinLength", $$v);},expression:"editQuestion.options.inputMinLength"}}),_vm._v(" "),_c('span',[_vm._v(_vm._s(_vm.t("survey_creator.question.inputted_enabled_suffix")))])],1)],1):_vm._e(),_vm._v(" "),(_vm.enabledExclusiveChoice)?_c('Checkbox',{staticClass:"option",style:(_vm.enabledInputChoice?'margin-top: 24px':'margin-top: 0px'),on:{"on-change":_vm.exclusiveEnabledChange},model:{value:(_vm.editQuestion.options.exclusiveEnabled),callback:function ($$v) {_vm.$set(_vm.editQuestion.options, "exclusiveEnabled", $$v);},expression:"editQuestion.options.exclusiveEnabled"}},[_c('span',[_vm._v("\n "+_vm._s(_vm.t("survey_creator.question.exclusive_enabled"))+"\n "),_c('Tooltip',{attrs:{"max-width":"200","content":_vm.t('survey_creator.question.exclusive_option_tooltip'),"placement":"bottom"}},[_c('Icon',{attrs:{"custom":"i-icon icon-exclamation-mark-outline","size":"16"}})],1)],1)]):_vm._e()],1)]):_vm._e(),_vm._v(" "),(_vm.gridTemplateColumns>2)?_c('div',{staticClass:"options-row before-border"},[_c('div',{staticClass:"options"},[_c('Checkbox',{on:{"on-change":_vm.exclusiveEnabledChange},model:{value:(_vm.editQuestion.options.exclusiveEnabled),callback:function ($$v) {_vm.$set(_vm.editQuestion.options, "exclusiveEnabled", $$v);},expression:"editQuestion.options.exclusiveEnabled"}},[_c('span',[_vm._v("\n "+_vm._s(_vm.t("survey_creator.question.exclusive_enabled"))+"\n "),_c('Tooltip',{attrs:{"max-width":"200","content":_vm.t('survey_creator.question.exclusive_option_tooltip'),"placement":"bottom"}},[_c('Icon',{attrs:{"custom":"i-icon icon-exclamation-mark-outline","size":"16"}})],1)],1)])],1)]):_vm._e()]),_vm._v(" "),(_vm.enabledEvaluationTag)?_c('div',{staticClass:"evaluation-tag-row"},[_c('span',{staticClass:"evaluation-tag-label"},[_vm._v(_vm._s(_vm.t("survey_creator.question.evaluation_tag.label"))+":")]),_vm._v(" "),_c('RadioGroup',{model:{value:(_vm.editQuestion.options.evaluationTag),callback:function ($$v) {_vm.$set(_vm.editQuestion.options, "evaluationTag", $$v);},expression:"editQuestion.options.evaluationTag"}},[_c('Radio',{attrs:{"label":"TEACHER"}},[_vm._v(_vm._s(_vm.t("survey_creator.question.evaluation_tag.TEACHER")))]),_vm._v(" "),_c('Radio',{attrs:{"label":"COURSE"}},[_vm._v(_vm._s(_vm.t("survey_creator.question.evaluation_tag.COURSE")))])],1)],1):_vm._e(),_vm._v(" "),(_vm.enabledRichText)?_c('Alert',{attrs:{"show-icon":""}},[_vm._v(_vm._s(_vm.t("survey_creator.question.rich_text.alert"))+"\n ")]):_vm._e(),_vm._v(" "),_c('Row',[_c('Form-item',{attrs:{"label-width":60,"label":_vm.t('survey_creator.page.question'),"prop":'header.text.' + _vm.primaryLanguage,"rules":{
19342
19366
  required: true,
19343
19367
  message: _vm.t('survey_creator.question.titleRequiredTip'),
19344
19368
  }}},[_c('Row',[_c('Col',{attrs:{"span":"24"}},[(_vm.enabledRichText)?_c('rich-text',{ref:"richText",attrs:{"placeholder":_vm.t('survey_creator.question.titleRequiredTip')},on:{"input":_vm.onRichTextInput},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]"}}):_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('div',{staticClass:"option-header"},[_c('div',{staticClass:"choice"},[_vm._v("\n "+_vm._s(_vm.t("survey_creator.question.option_header_choice"))+"\n ")]),_vm._v(" "),_c('div',{directives:[{name:"show",rawName:"v-show",value:(_vm.editQuestion.options.scoringEnabled),expression:"editQuestion.options.scoringEnabled"}],staticClass:"scoring"},[_vm._v("\n "+_vm._s(_vm.t("survey_creator.question.option_header_scoring"))+"\n ")]),_vm._v(" "),_c('div',{directives:[{name:"show",rawName:"v-show",value:(_vm.editQuestion.options.inputtedEnabled),expression:"editQuestion.options.inputtedEnabled"}],staticClass:"inputing"},[_vm._v("\n "+_vm._s(_vm.t("survey_creator.question.option_header_inputing"))+"\n ")])]),_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},[(!option.options.exclusiveEnabled)?_c('div',{staticClass:"choice-row"},[_c('FormItem',{attrs:{"label-width":60,"label":_vm.t('survey_creator.question.optional'),"prop":'choices.' + index + '.text.' + _vm.primaryLanguage,"rules":{
@@ -19379,11 +19403,11 @@ var __vue_staticRenderFns__$p = [];
19379
19403
  /* style */
19380
19404
  const __vue_inject_styles__$q = function (inject) {
19381
19405
  if (!inject) return
19382
- inject("data-v-b2b61c96_0", { source: ".multi-selection-form .options-container[data-v-b2b61c96]{margin:0 8px 16px;border-bottom:1px solid #e8eaec;display:grid}.multi-selection-form .options-container .options-row[data-v-b2b61c96]{display:flex;flex-direction:row;margin-bottom:16px}.multi-selection-form .options-container .options-row .options[data-v-b2b61c96]{display:flex;flex-direction:column}.multi-selection-form .options-container .options-row .options .option[data-v-b2b61c96]{margin-top:24px}.multi-selection-form .options-container .options-row .options .option-expand[data-v-b2b61c96]{display:flex;align-items:center;margin-top:10px;padding:8px;border-radius:4px;background:#f7f7f7}.multi-selection-form .options-container .options-row .options .option-expand .inputing[data-v-b2b61c96]{width:64px}.multi-selection-form .options-container .before-border[data-v-b2b61c96]{border-left:1px solid #e8eaec;padding-left:16px}.multi-selection-form .question-options[data-v-b2b61c96]{padding-bottom:10px;padding-left:80px}.multi-selection-form[data-v-b2b61c96] .ivu-form-item{width:100%}.multi-selection-form .option-header[data-v-b2b61c96]{background:#f0f1f3;border-radius:4px;width:100%;height:32px;margin-bottom:24px;display:flex;flex-direction:row;color:#70748c;align-items:center;padding:0 8px 0 16px}.multi-selection-form .option-header .choice[data-v-b2b61c96]{width:100%}.multi-selection-form .option-header .scoring[data-v-b2b61c96]{width:100px;display:flex;justify-content:center}.multi-selection-form .option-header .inputing[data-v-b2b61c96]{width:145px;min-width:42px;display:flex;justify-content:center}.multi-selection-form .choice-row .question-choice[data-v-b2b61c96]{display:flex;flex-direction:row;align-items:center;padding-right:8px}.multi-selection-form .choice-row .question-choice .choice[data-v-b2b61c96]{display:flex;flex-direction:row;width:100%;margin-right:8px}.multi-selection-form .choice-row .question-choice .choice .button[data-v-b2b61c96]{margin-left:8px}.multi-selection-form .choice-row .question-choice .scoring[data-v-b2b61c96]{width:85px}.multi-selection-form .choice-row .question-choice .inputing[data-v-b2b61c96]{width:145px;text-align:center}.multi-selection-form .choice-row .question-choice .inputing .ivu-checkbox-wrapper[data-v-b2b61c96]{margin-right:0}.multi-selection-form .exclusive-choice[data-v-b2b61c96]{border-top:1px solid #e8eaec;padding-top:16px}.multi-selection-form .option-input[data-v-b2b61c96]{margin:0 50px 30px 60px}[data-v-b2b61c96] .ivu-form-item-error-tip{min-width:170px}", map: undefined, media: undefined });
19406
+ inject("data-v-45217913_0", { source: ".multi-selection-form .options-container[data-v-45217913]{margin:0 8px 16px;border-bottom:1px solid #e8eaec;display:grid}.multi-selection-form .options-container .options-row[data-v-45217913]{display:flex;flex-direction:row;margin-bottom:16px}.multi-selection-form .options-container .options-row .options[data-v-45217913]{display:flex;flex-direction:column}.multi-selection-form .options-container .options-row .options .option[data-v-45217913]{margin-top:24px}.multi-selection-form .options-container .options-row .options .option-expand[data-v-45217913]{display:flex;align-items:center;margin-top:10px;padding:8px;border-radius:4px;background:#f7f7f7}.multi-selection-form .options-container .options-row .options .option-expand .inputing[data-v-45217913]{width:64px}.multi-selection-form .options-container .before-border[data-v-45217913]{border-left:1px solid #e8eaec;padding-left:16px}.multi-selection-form .question-options[data-v-45217913]{padding-bottom:10px;padding-left:80px}.multi-selection-form[data-v-45217913] .ivu-form-item{width:100%}.multi-selection-form .evaluation-tag-row[data-v-45217913]{display:flex;align-items:center;padding:8px 8px 12px;border-bottom:1px solid #e8eaec;margin-bottom:16px}.multi-selection-form .evaluation-tag-row .evaluation-tag-label[data-v-45217913]{margin-right:8px;font-size:14px;color:#262833;white-space:nowrap}.multi-selection-form .option-header[data-v-45217913]{background:#f0f1f3;border-radius:4px;width:100%;height:32px;margin-bottom:24px;display:flex;flex-direction:row;color:#70748c;align-items:center;padding:0 8px 0 16px}.multi-selection-form .option-header .choice[data-v-45217913]{width:100%}.multi-selection-form .option-header .scoring[data-v-45217913]{width:100px;display:flex;justify-content:center}.multi-selection-form .option-header .inputing[data-v-45217913]{width:145px;min-width:42px;display:flex;justify-content:center}.multi-selection-form .choice-row .question-choice[data-v-45217913]{display:flex;flex-direction:row;align-items:center;padding-right:8px}.multi-selection-form .choice-row .question-choice .choice[data-v-45217913]{display:flex;flex-direction:row;width:100%;margin-right:8px}.multi-selection-form .choice-row .question-choice .choice .button[data-v-45217913]{margin-left:8px}.multi-selection-form .choice-row .question-choice .scoring[data-v-45217913]{width:85px}.multi-selection-form .choice-row .question-choice .inputing[data-v-45217913]{width:145px;text-align:center}.multi-selection-form .choice-row .question-choice .inputing .ivu-checkbox-wrapper[data-v-45217913]{margin-right:0}.multi-selection-form .exclusive-choice[data-v-45217913]{border-top:1px solid #e8eaec;padding-top:16px}.multi-selection-form .option-input[data-v-45217913]{margin:0 50px 30px 60px}[data-v-45217913] .ivu-form-item-error-tip{min-width:170px}", map: undefined, media: undefined });
19383
19407
 
19384
19408
  };
19385
19409
  /* scoped */
19386
- const __vue_scope_id__$q = "data-v-b2b61c96";
19410
+ const __vue_scope_id__$q = "data-v-45217913";
19387
19411
  /* module identifier */
19388
19412
  const __vue_module_identifier__$q = undefined;
19389
19413
  /* functional template */
@@ -19416,12 +19440,15 @@ var script$r = Vue.extend({
19416
19440
  Button,
19417
19441
  Input: Input$1,
19418
19442
  Checkbox,
19443
+ Radio,
19444
+ RadioGroup,
19419
19445
  Icon,
19420
19446
  },
19421
19447
  mixins: [questionFormMixin],
19422
19448
  data() {
19423
19449
  return {
19424
19450
  enabledPresetReplies: false,
19451
+ enabledEvaluationTag: false,
19425
19452
  };
19426
19453
  },
19427
19454
  computed: {
@@ -19440,9 +19467,13 @@ var script$r = Vue.extend({
19440
19467
  },
19441
19468
  created() {
19442
19469
  this.enabledPresetReplies = _$1.get(this.$rootComponent, "options.enabledPresetReplies", false);
19470
+ this.enabledEvaluationTag = _$1.get(this.$rootComponent, "options.enabledEvaluationTag", false);
19443
19471
  if (!this.editQuestion.options.presetReplies) {
19444
19472
  this.$set(this.editQuestion.options, "presetReplies", []);
19445
19473
  }
19474
+ if (this.enabledEvaluationTag && !this.editQuestion.options.evaluationTag) {
19475
+ this.$set(this.editQuestion.options, "evaluationTag", "COURSE");
19476
+ }
19446
19477
  },
19447
19478
  methods: {
19448
19479
  addPresetReply() {
@@ -19482,7 +19513,7 @@ const __vue_script__$r = script$r;
19482
19513
  var __vue_render__$q = 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":{
19483
19514
  required: true,
19484
19515
  message: _vm.t('survey_creator.question.titleRequiredTip'),
19485
- }}},[_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("\n "+_vm._s(_vm.t("survey_creator.question.questionRequired"))+"\n ")]),_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),_vm._v(" "),(_vm.showPresetReplies)?_c('div',{staticClass:"preset-replies"},[_c('Button',{attrs:{"type":"primary","icon":"md-add","disabled":_vm.hasEmptyReply},on:{"click":_vm.addPresetReply}},[_vm._v(_vm._s(_vm.t("survey_creator.question.addPresetReply"))+"\n ")]),_vm._v(" "),_c('div',{staticClass:"preset-reply-list"},_vm._l((_vm.editQuestion.options.presetReplies),function(reply,index){return _c('Form-item',{key:index,staticClass:"preset-reply-item",attrs:{"prop":'options.presetReplies.' + index,"rules":[
19516
+ }}},[_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("\n "+_vm._s(_vm.t("survey_creator.question.questionRequired"))+"\n ")]),_vm._v(" "),(_vm.enabledEvaluationTag)?_c('div',{staticClass:"evaluation-tag-row"},[_c('span',{staticClass:"evaluation-tag-label"},[_vm._v(_vm._s(_vm.t("survey_creator.question.evaluation_tag.label"))+":")]),_vm._v(" "),_c('RadioGroup',{model:{value:(_vm.editQuestion.options.evaluationTag),callback:function ($$v) {_vm.$set(_vm.editQuestion.options, "evaluationTag", $$v);},expression:"editQuestion.options.evaluationTag"}},[_c('Radio',{attrs:{"label":"TEACHER"}},[_vm._v(_vm._s(_vm.t("survey_creator.question.evaluation_tag.TEACHER")))]),_vm._v(" "),_c('Radio',{attrs:{"label":"COURSE"}},[_vm._v(_vm._s(_vm.t("survey_creator.question.evaluation_tag.COURSE")))])],1)],1):_vm._e(),_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),_vm._v(" "),(_vm.showPresetReplies)?_c('div',{staticClass:"preset-replies"},[_c('Button',{attrs:{"type":"primary","icon":"md-add","disabled":_vm.hasEmptyReply},on:{"click":_vm.addPresetReply}},[_vm._v(_vm._s(_vm.t("survey_creator.question.addPresetReply"))+"\n ")]),_vm._v(" "),_c('div',{staticClass:"preset-reply-list"},_vm._l((_vm.editQuestion.options.presetReplies),function(reply,index){return _c('Form-item',{key:index,staticClass:"preset-reply-item",attrs:{"prop":'options.presetReplies.' + index,"rules":[
19486
19517
  {
19487
19518
  required: true,
19488
19519
  message: _vm.t('survey_creator.question.presetReplyRequiredTip'),
@@ -19495,11 +19526,11 @@ var __vue_staticRenderFns__$q = [];
19495
19526
  /* style */
19496
19527
  const __vue_inject_styles__$r = function (inject) {
19497
19528
  if (!inject) return
19498
- inject("data-v-167a318b_0", { source: "[data-v-167a318b] .ivu-form-item{width:100%}.preset-replies .preset-reply-list[data-v-167a318b]{display:flex;flex-wrap:wrap;gap:8px;margin-top:20px}.preset-replies .preset-reply-list[data-v-167a318b] .ivu-form-item{margin-bottom:14px}.preset-replies .preset-reply-item[data-v-167a318b] .ivu-form-item{margin-bottom:0}.preset-replies .preset-reply-item[data-v-167a318b] .ivu-form-item .ivu-form-item-error-tip{white-space:nowrap}.preset-replies .preset-reply-item .preset-reply-input[data-v-167a318b]{position:relative;min-width:200px}.preset-replies .preset-reply-item .preset-reply-input[data-v-167a318b] .ivu-input{padding-right:28px}.preset-replies .preset-reply-item .preset-reply-input .preset-reply-close[data-v-167a318b]{position:absolute;right:8px;top:50%;transform:translateY(-50%);font-size:16px;cursor:pointer;color:#999}.preset-replies .preset-reply-item .preset-reply-input .preset-reply-close[data-v-167a318b]:hover{color:#ed4014}", map: undefined, media: undefined });
19529
+ inject("data-v-4d1aeb95_0", { source: "[data-v-4d1aeb95] .ivu-form-item{width:100%}.evaluation-tag-row[data-v-4d1aeb95]{display:flex;align-items:center;padding:8px 0 12px;margin-bottom:8px}.evaluation-tag-row .evaluation-tag-label[data-v-4d1aeb95]{margin-right:8px;font-size:14px;color:#262833;white-space:nowrap}.preset-replies .preset-reply-list[data-v-4d1aeb95]{display:flex;flex-wrap:wrap;gap:8px;margin-top:20px}.preset-replies .preset-reply-list[data-v-4d1aeb95] .ivu-form-item{margin-bottom:14px}.preset-replies .preset-reply-item[data-v-4d1aeb95] .ivu-form-item{margin-bottom:0}.preset-replies .preset-reply-item[data-v-4d1aeb95] .ivu-form-item .ivu-form-item-error-tip{white-space:nowrap}.preset-replies .preset-reply-item .preset-reply-input[data-v-4d1aeb95]{position:relative;min-width:200px}.preset-replies .preset-reply-item .preset-reply-input[data-v-4d1aeb95] .ivu-input{padding-right:28px}.preset-replies .preset-reply-item .preset-reply-input .preset-reply-close[data-v-4d1aeb95]{position:absolute;right:8px;top:50%;transform:translateY(-50%);font-size:16px;cursor:pointer;color:#999}.preset-replies .preset-reply-item .preset-reply-input .preset-reply-close[data-v-4d1aeb95]:hover{color:#ed4014}", map: undefined, media: undefined });
19499
19530
 
19500
19531
  };
19501
19532
  /* scoped */
19502
- const __vue_scope_id__$r = "data-v-167a318b";
19533
+ const __vue_scope_id__$r = "data-v-4d1aeb95";
19503
19534
  /* module identifier */
19504
19535
  const __vue_module_identifier__$r = undefined;
19505
19536
  /* functional template */
@@ -19532,6 +19563,8 @@ var script$s = Vue.extend({
19532
19563
  Button,
19533
19564
  Input: Input$1,
19534
19565
  Checkbox,
19566
+ Radio,
19567
+ RadioGroup,
19535
19568
  InputNumber,
19536
19569
  Row,
19537
19570
  Col,
@@ -19543,8 +19576,15 @@ var script$s = Vue.extend({
19543
19576
  labelWidth: 80,
19544
19577
  defaultLevel: 5,
19545
19578
  layoutOptions: ["HORIZONTAL", "VERTICAL"],
19579
+ enabledEvaluationTag: false,
19546
19580
  };
19547
19581
  },
19582
+ created() {
19583
+ this.enabledEvaluationTag = _$1.get(this.$rootComponent, "options.enabledEvaluationTag", false);
19584
+ if (this.enabledEvaluationTag && !this.editQuestion.options.evaluationTag) {
19585
+ this.$set(this.editQuestion.options, "evaluationTag", "COURSE");
19586
+ }
19587
+ },
19548
19588
  mounted() {
19549
19589
  this.initData();
19550
19590
  },
@@ -19619,7 +19659,7 @@ var script$s = Vue.extend({
19619
19659
  const __vue_script__$s = script$s;
19620
19660
 
19621
19661
  /* template */
19622
- var __vue_render__$r = 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":{
19662
+ var __vue_render__$r = 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}},[(_vm.enabledEvaluationTag)?_c('div',{staticClass:"evaluation-tag-row"},[_c('span',{staticClass:"evaluation-tag-label"},[_vm._v(_vm._s(_vm.t("survey_creator.question.evaluation_tag.label"))+":")]),_vm._v(" "),_c('RadioGroup',{model:{value:(_vm.editQuestion.options.evaluationTag),callback:function ($$v) {_vm.$set(_vm.editQuestion.options, "evaluationTag", $$v);},expression:"editQuestion.options.evaluationTag"}},[_c('Radio',{attrs:{"label":"TEACHER"}},[_vm._v(_vm._s(_vm.t("survey_creator.question.evaluation_tag.TEACHER")))]),_vm._v(" "),_c('Radio',{attrs:{"label":"COURSE"}},[_vm._v(_vm._s(_vm.t("survey_creator.question.evaluation_tag.COURSE")))])],1)],1):_vm._e(),_vm._v(" "),_c('Row',[_c('Form-item',{attrs:{"prop":'header.text.' + _vm.primaryLanguage,"rules":{
19623
19663
  required: true,
19624
19664
  message: _vm.t('survey_creator.question.titleRequiredTip'),
19625
19665
  },"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":20},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":{
@@ -19637,11 +19677,11 @@ var __vue_staticRenderFns__$r = [];
19637
19677
  /* style */
19638
19678
  const __vue_inject_styles__$s = function (inject) {
19639
19679
  if (!inject) return
19640
- inject("data-v-7747703b_0", { source: "[data-v-7747703b] .ivu-form-item{width:100%}", map: undefined, media: undefined });
19680
+ inject("data-v-9e7e18a0_0", { source: "[data-v-9e7e18a0] .ivu-form-item{width:100%}.evaluation-tag-row[data-v-9e7e18a0]{display:flex;align-items:center;padding:8px 8px 12px;border-bottom:1px solid #e8eaec;margin-bottom:16px}.evaluation-tag-row .evaluation-tag-label[data-v-9e7e18a0]{margin-right:8px;font-size:14px;color:#262833;white-space:nowrap}", map: undefined, media: undefined });
19641
19681
 
19642
19682
  };
19643
19683
  /* scoped */
19644
- const __vue_scope_id__$s = "data-v-7747703b";
19684
+ const __vue_scope_id__$s = "data-v-9e7e18a0";
19645
19685
  /* module identifier */
19646
19686
  const __vue_module_identifier__$s = undefined;
19647
19687
  /* functional template */
@@ -19672,6 +19712,8 @@ var script$t = Vue.extend({
19672
19712
  FormItem,
19673
19713
  Input: Input$1,
19674
19714
  Checkbox,
19715
+ Radio,
19716
+ RadioGroup,
19675
19717
  Row,
19676
19718
  Col,
19677
19719
  Select,
@@ -19695,10 +19737,15 @@ var script$t = Vue.extend({
19695
19737
  ],
19696
19738
  scoreRange: [],
19697
19739
  decimalPlaceOptions: [0, 1],
19740
+ enabledEvaluationTag: false,
19698
19741
  };
19699
19742
  },
19700
19743
  created() {
19701
19744
  this.initData();
19745
+ this.enabledEvaluationTag = _$1.get(this.$rootComponent, "options.enabledEvaluationTag", false);
19746
+ if (this.enabledEvaluationTag && !this.editQuestion.options.evaluationTags) {
19747
+ this.$set(this.editQuestion.options, "evaluationTags", ["COURSE"]);
19748
+ }
19702
19749
  },
19703
19750
  computed: {
19704
19751
  disableLabelSelector() {
@@ -19804,7 +19851,7 @@ const __vue_script__$t = script$t;
19804
19851
  /* template */
19805
19852
  var __vue_render__$s = 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',{staticStyle:{"margin-left":"24px"}},[_c('Col',[_c('Form-item',[_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"))+"\n ")])],1),_vm._v(" "),_c('Row',[_c('Form-item',[_c('Checkbox',{model:{value:(_vm.editQuestion.options.extremeValueLabelEnabled),callback:function ($$v) {_vm.$set(_vm.editQuestion.options, "extremeValueLabelEnabled", $$v);},expression:"editQuestion.options.extremeValueLabelEnabled"}},[_vm._v(_vm._s(_vm.t("survey_creator.question.scoring.extreme_value_label"))+"\n ")]),_vm._v(" "),_c('Select',{staticStyle:{"width":"160px"},attrs:{"disabled":_vm.disableLabelSelector,"default-label":_vm.extremeValueLabels[0]},model:{value:(_vm.editQuestion.options.extremeValueLabel),callback:function ($$v) {_vm.$set(_vm.editQuestion.options, "extremeValueLabel", $$v);},expression:"editQuestion.options.extremeValueLabel"}},_vm._l((_vm.extremeValueLabels),function(item){return _c('Option',{key:item,attrs:{"value":item}},[_vm._v(_vm._s(_vm.t(
19806
19853
  ("survey_creator.question.scoring.extreme_value_labels." + item + ".label")
19807
- ))+"\n ")])}),1)],1)],1)],1),_vm._v(" "),_c('Col',[_c('Divider',{staticStyle:{"height":"90px","margin-right":"16px"},attrs:{"type":"vertical"}})],1),_vm._v(" "),_c('Col',[_c('div',[_c('span',[_vm._v("\n "+_vm._s(_vm.t("survey_creator.question.scoring.setScoringRange"))+"\n ")]),_vm._v(" "),_c('Select',{staticStyle:{"width":"80px"},model:{value:(_vm.editQuestion.options.minRange),callback:function ($$v) {_vm.$set(_vm.editQuestion.options, "minRange", $$v);},expression:"editQuestion.options.minRange"}},_vm._l((_vm.scoreRange),function(item){return _c('Option',{key:item,attrs:{"value":item,"disabled":_vm.disableMinRangeOption(item)}},[_vm._v(_vm._s(item)+"\n ")])}),1),_vm._v("\n -\n "),_c('Select',{staticStyle:{"width":"80px"},model:{value:(_vm.editQuestion.options.maxRange),callback:function ($$v) {_vm.$set(_vm.editQuestion.options, "maxRange", $$v);},expression:"editQuestion.options.maxRange"}},_vm._l((_vm.scoreRange),function(item){return _c('Option',{key:item,attrs:{"value":item,"disabled":_vm.disableMaxRangeOption(item)}},[_vm._v(_vm._s(item)+"\n ")])}),1)],1),_vm._v(" "),_c('div',{staticStyle:{"margin-top":"24px"}},[_c('span',[_vm._v("\n "+_vm._s(_vm.t("survey_creator.question.scoring.retainDecimal"))+"\n ")]),_vm._v(" "),_c('Select',{staticStyle:{"width":"80px"},attrs:{"default-label":_vm.decimalPlaceOptions[0]},model:{value:(_vm.editQuestion.options.decimalPlaces),callback:function ($$v) {_vm.$set(_vm.editQuestion.options, "decimalPlaces", $$v);},expression:"editQuestion.options.decimalPlaces"}},_vm._l((_vm.decimalPlaceOptions),function(item){return _c('Option',{key:item,attrs:{"value":item}},[_vm._v(_vm._s(item)+"\n ")])}),1),_vm._v(" "),_c('span',[_vm._v("\n "+_vm._s(_vm.t("survey_creator.question.scoring.decimalPlaces"))+"\n ")])],1)])],1),_vm._v(" "),_c('Divider',{staticStyle:{"margin-top":"-9px"}}),_vm._v(" "),_c('Row',[_c('Form-item',{attrs:{"prop":'header.text.' + _vm.primaryLanguage,"rules":{
19854
+ ))+"\n ")])}),1)],1)],1)],1),_vm._v(" "),_c('Col',[_c('Divider',{staticStyle:{"height":"90px","margin-right":"16px"},attrs:{"type":"vertical"}})],1),_vm._v(" "),_c('Col',[_c('div',[_c('span',[_vm._v("\n "+_vm._s(_vm.t("survey_creator.question.scoring.setScoringRange"))+"\n ")]),_vm._v(" "),_c('Select',{staticStyle:{"width":"80px"},model:{value:(_vm.editQuestion.options.minRange),callback:function ($$v) {_vm.$set(_vm.editQuestion.options, "minRange", $$v);},expression:"editQuestion.options.minRange"}},_vm._l((_vm.scoreRange),function(item){return _c('Option',{key:item,attrs:{"value":item,"disabled":_vm.disableMinRangeOption(item)}},[_vm._v(_vm._s(item)+"\n ")])}),1),_vm._v("\n -\n "),_c('Select',{staticStyle:{"width":"80px"},model:{value:(_vm.editQuestion.options.maxRange),callback:function ($$v) {_vm.$set(_vm.editQuestion.options, "maxRange", $$v);},expression:"editQuestion.options.maxRange"}},_vm._l((_vm.scoreRange),function(item){return _c('Option',{key:item,attrs:{"value":item,"disabled":_vm.disableMaxRangeOption(item)}},[_vm._v(_vm._s(item)+"\n ")])}),1)],1),_vm._v(" "),_c('div',{staticStyle:{"margin-top":"24px"}},[_c('span',[_vm._v("\n "+_vm._s(_vm.t("survey_creator.question.scoring.retainDecimal"))+"\n ")]),_vm._v(" "),_c('Select',{staticStyle:{"width":"80px"},attrs:{"default-label":_vm.decimalPlaceOptions[0]},model:{value:(_vm.editQuestion.options.decimalPlaces),callback:function ($$v) {_vm.$set(_vm.editQuestion.options, "decimalPlaces", $$v);},expression:"editQuestion.options.decimalPlaces"}},_vm._l((_vm.decimalPlaceOptions),function(item){return _c('Option',{key:item,attrs:{"value":item}},[_vm._v(_vm._s(item)+"\n ")])}),1),_vm._v(" "),_c('span',[_vm._v("\n "+_vm._s(_vm.t("survey_creator.question.scoring.decimalPlaces"))+"\n ")])],1)])],1),_vm._v(" "),_c('Divider',{staticStyle:{"margin-top":"-9px"}}),_vm._v(" "),(_vm.enabledEvaluationTag)?_c('div',{staticClass:"evaluation-tag-row"},[_c('span',{staticClass:"evaluation-tag-label"},[_vm._v(_vm._s(_vm.t("survey_creator.question.evaluation_tag.label"))+":")]),_vm._v(" "),_c('RadioGroup',{model:{value:(_vm.editQuestion.options.evaluationTag),callback:function ($$v) {_vm.$set(_vm.editQuestion.options, "evaluationTag", $$v);},expression:"editQuestion.options.evaluationTag"}},[_c('Radio',{attrs:{"label":"TEACHER"}},[_vm._v(_vm._s(_vm.t("survey_creator.question.evaluation_tag.TEACHER")))]),_vm._v(" "),_c('Radio',{attrs:{"label":"COURSE"}},[_vm._v(_vm._s(_vm.t("survey_creator.question.evaluation_tag.COURSE")))])],1)],1):_vm._e(),_vm._v(" "),_c('Row',[_c('Form-item',{attrs:{"prop":'header.text.' + _vm.primaryLanguage,"rules":{
19808
19855
  required: true,
19809
19856
  message: _vm.t('survey_creator.question.titleRequiredTip'),
19810
19857
  },"label":_vm.t('survey_creator.page.question')}},[_c('Row',[_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),_vm._v(" "),_c('Row',{directives:[{name:"show",rawName:"v-show",value:(_vm.showQuestionScoreSlider),expression:"showQuestionScoreSlider"}]},[_c('div',{staticStyle:{"margin-right":"134px","margin-bottom":"18px"}},[_c('Slider',{staticStyle:{"width":"562px","margin-left":"66px","margin-right":"134px","margin-top":"16px"},attrs:{"min":_vm.editQuestion.options.minRange,"max":_vm.editQuestion.options.maxRange,"step":_vm.sliderStep,"show-input":"","show-tips":"always"},model:{value:(_vm.editQuestion.options.sliderValue),callback:function ($$v) {_vm.$set(_vm.editQuestion.options, "sliderValue", $$v);},expression:"editQuestion.options.sliderValue"}}),_vm._v(" "),_c('div',{directives:[{name:"show",rawName:"v-show",value:(_vm.extremeValueLabelSelected),expression:"extremeValueLabelSelected"}]},[_c('span',{staticStyle:{"margin-left":"66px","float":"left"}},[_vm._v("\n "+_vm._s(_vm.t(
@@ -19824,11 +19871,11 @@ var __vue_staticRenderFns__$s = [];
19824
19871
  /* style */
19825
19872
  const __vue_inject_styles__$t = function (inject) {
19826
19873
  if (!inject) return
19827
- inject("data-v-d5d2676e_0", { source: "[data-v-d5d2676e] .ivu-form-item{width:100%}.btn-container[data-v-d5d2676e]{padding-left:8px}.btn-container .icon[data-v-d5d2676e]{display:flex;float:left;font-size:18px}.btn-container .label[data-v-d5d2676e]{display:flex;float:left;align-items:center;font-weight:500;font-size:14px;line-height:22px}.btn-container .disabled[data-v-d5d2676e]{color:#c5c8ce}.btn-container .enabled[data-v-d5d2676e]{color:#1890ff;cursor:pointer}", map: undefined, media: undefined });
19874
+ inject("data-v-2f49f423_0", { source: "[data-v-2f49f423] .ivu-form-item{width:100%}.evaluation-tag-row[data-v-2f49f423]{display:flex;align-items:center;padding:8px 8px 12px;border-bottom:1px solid #e8eaec;margin-bottom:16px}.evaluation-tag-row .evaluation-tag-label[data-v-2f49f423]{margin-right:8px;font-size:14px;color:#262833;white-space:nowrap}.btn-container[data-v-2f49f423]{padding-left:8px}.btn-container .icon[data-v-2f49f423]{display:flex;float:left;font-size:18px}.btn-container .label[data-v-2f49f423]{display:flex;float:left;align-items:center;font-weight:500;font-size:14px;line-height:22px}.btn-container .disabled[data-v-2f49f423]{color:#c5c8ce}.btn-container .enabled[data-v-2f49f423]{color:#1890ff;cursor:pointer}", map: undefined, media: undefined });
19828
19875
 
19829
19876
  };
19830
19877
  /* scoped */
19831
- const __vue_scope_id__$t = "data-v-d5d2676e";
19878
+ const __vue_scope_id__$t = "data-v-2f49f423";
19832
19879
  /* module identifier */
19833
19880
  const __vue_module_identifier__$t = undefined;
19834
19881
  /* functional template */
@@ -19860,30 +19907,46 @@ var script$u = Vue.extend({
19860
19907
  ButtonGroup,
19861
19908
  Button,
19862
19909
  Input: Input$1,
19910
+ Checkbox,
19911
+ Radio,
19912
+ RadioGroup,
19863
19913
  },
19864
19914
  mixins: [questionFormMixin],
19915
+ data() {
19916
+ return {
19917
+ enabledEvaluationTag: false,
19918
+ };
19919
+ },
19920
+ created() {
19921
+ this.enabledEvaluationTag = _$1.get(this.$rootComponent, "options.enabledEvaluationTag", false);
19922
+ if (this.enabledEvaluationTag && !this.editQuestion.options.evaluationTag) {
19923
+ this.$set(this.editQuestion.options, "evaluationTag", "COURSE");
19924
+ }
19925
+ },
19865
19926
  });
19866
19927
 
19867
19928
  /* script */
19868
19929
  const __vue_script__$u = script$u;
19869
19930
 
19870
19931
  /* template */
19871
- var __vue_render__$t = 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":{
19932
+ var __vue_render__$t = 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}},[(_vm.enabledEvaluationTag)?_c('div',{staticClass:"evaluation-tag-row"},[_c('span',{staticClass:"evaluation-tag-label"},[_vm._v(_vm._s(_vm.t("survey_creator.question.evaluation_tag.label"))+":")]),_vm._v(" "),_c('RadioGroup',{model:{value:(_vm.editQuestion.options.evaluationTag),callback:function ($$v) {_vm.$set(_vm.editQuestion.options, "evaluationTag", $$v);},expression:"editQuestion.options.evaluationTag"}},[_c('Radio',{attrs:{"label":"TEACHER"}},[_vm._v(_vm._s(_vm.t("survey_creator.question.evaluation_tag.TEACHER")))]),_vm._v(" "),_c('Radio',{attrs:{"label":"COURSE"}},[_vm._v(_vm._s(_vm.t("survey_creator.question.evaluation_tag.COURSE")))])],1)],1):_vm._e(),_vm._v(" "),_c('Form-item',{attrs:{"prop":'header.text.' + _vm.primaryLanguage,"rules":{
19872
19933
  required: true,
19873
19934
  message: _vm.t('survey_creator.question.textTitleRequiredTip'),
19874
19935
  }}},[_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)};
19875
19936
  var __vue_staticRenderFns__$t = [];
19876
19937
 
19877
19938
  /* style */
19878
- const __vue_inject_styles__$u = undefined;
19939
+ const __vue_inject_styles__$u = function (inject) {
19940
+ if (!inject) return
19941
+ inject("data-v-356bf7dc_0", { source: ".evaluation-tag-row[data-v-356bf7dc]{display:flex;align-items:center;padding:8px 8px 12px;border-bottom:1px solid #e8eaec;margin-bottom:16px}.evaluation-tag-row .evaluation-tag-label[data-v-356bf7dc]{margin-right:8px;font-size:14px;color:#262833;white-space:nowrap}", map: undefined, media: undefined });
19942
+
19943
+ };
19879
19944
  /* scoped */
19880
- const __vue_scope_id__$u = undefined;
19945
+ const __vue_scope_id__$u = "data-v-356bf7dc";
19881
19946
  /* module identifier */
19882
19947
  const __vue_module_identifier__$u = undefined;
19883
19948
  /* functional template */
19884
19949
  const __vue_is_functional_template__$u = false;
19885
- /* style inject */
19886
-
19887
19950
  /* style inject SSR */
19888
19951
 
19889
19952
  /* style inject shadow dom */
@@ -19898,7 +19961,7 @@ var __vue_staticRenderFns__$t = [];
19898
19961
  __vue_is_functional_template__$u,
19899
19962
  __vue_module_identifier__$u,
19900
19963
  false,
19901
- undefined,
19964
+ createInjector,
19902
19965
  undefined,
19903
19966
  undefined
19904
19967
  );
@@ -20383,7 +20446,6 @@ var script$z = Vue.extend({
20383
20446
  Select,
20384
20447
  Option,
20385
20448
  FormItem,
20386
- InputNumber,
20387
20449
  },
20388
20450
  data() {
20389
20451
  return {
@@ -20438,7 +20500,101 @@ var script$z = Vue.extend({
20438
20500
  };
20439
20501
  });
20440
20502
  },
20441
- resetScoreOptions(options) {
20503
+ resetLeftScoreOptions() {
20504
+ this.resetScoreOptions(this.leftScores, "left");
20505
+ },
20506
+ resetRightScoreOptions() {
20507
+ this.resetScoreOptions(this.rightScores, "right");
20508
+ },
20509
+ getScoreOptions(type) {
20510
+ return type === "left" ? this.leftScores : this.rightScores;
20511
+ },
20512
+ getScoreValue(type) {
20513
+ return type === "left" ? this.value.minScore : this.value.maxScore;
20514
+ },
20515
+ getScoreSelectRef(type) {
20516
+ return type === "left"
20517
+ ? this.$refs.leftScoreSelect
20518
+ : this.$refs.rightScoreSelect;
20519
+ },
20520
+ findAvailableScoreOptionByValue(options, value) {
20521
+ return _$1.find(options, (option) => {
20522
+ return !option.disabled && option.value === value;
20523
+ });
20524
+ },
20525
+ findMatchedScoreOption(options, query) {
20526
+ const normalizedQuery = String(query == null ? "" : query).trim();
20527
+ const enabledOptions = _$1.filter(options, (option) => !option.disabled);
20528
+ if (!enabledOptions.length) {
20529
+ return null;
20530
+ }
20531
+ if (!normalizedQuery) {
20532
+ return enabledOptions[0];
20533
+ }
20534
+ return (_$1.find(enabledOptions, (option) => String(option.value) === normalizedQuery) ||
20535
+ _$1.find(enabledOptions, (option) => String(option.value).indexOf(normalizedQuery) === 0) ||
20536
+ null);
20537
+ },
20538
+ updateScoreSelectFocus(type, targetValue, fallbackToFirst = false) {
20539
+ const select = this.getScoreSelectRef(type);
20540
+ if (!select) {
20541
+ return;
20542
+ }
20543
+ const matchedOption = targetValue;
20544
+ if (!matchedOption) {
20545
+ if (!fallbackToFirst) {
20546
+ select.focusIndex = -1;
20547
+ return;
20548
+ }
20549
+ const firstEnabledOption = _$1.find(this.getScoreOptions(type), (option) => !option.disabled);
20550
+ if (!firstEnabledOption) {
20551
+ select.focusIndex = -1;
20552
+ return;
20553
+ }
20554
+ return this.updateScoreSelectFocus(type, firstEnabledOption, false);
20555
+ }
20556
+ const focusIndex = _$1.findIndex(select.flatOptions, (option) => {
20557
+ const propsData = option &&
20558
+ option.componentOptions &&
20559
+ option.componentOptions.propsData;
20560
+ return propsData && propsData.value === matchedOption.value;
20561
+ });
20562
+ if (focusIndex === -1) {
20563
+ if (fallbackToFirst) {
20564
+ const firstEnabledOption = _$1.find(this.getScoreOptions(type), (option) => !option.disabled);
20565
+ const matchedValue = matchedOption ? matchedOption.value : null;
20566
+ if (firstEnabledOption && firstEnabledOption.value !== matchedValue) {
20567
+ this.updateScoreSelectFocus(type, firstEnabledOption, false);
20568
+ }
20569
+ }
20570
+ return;
20571
+ }
20572
+ select.focusIndex = focusIndex;
20573
+ },
20574
+ handleScoreSelectOpenChange(type, visible) {
20575
+ if (type === "left") {
20576
+ this.resetLeftScoreOptions();
20577
+ }
20578
+ else {
20579
+ this.resetRightScoreOptions();
20580
+ }
20581
+ if (!visible) {
20582
+ return;
20583
+ }
20584
+ const currentValue = this.getScoreValue(type);
20585
+ const currentOption = this.findAvailableScoreOptionByValue(this.getScoreOptions(type), currentValue);
20586
+ this.$nextTick(() => {
20587
+ this.updateScoreSelectFocus(type, currentOption, true);
20588
+ });
20589
+ },
20590
+ handleScoreQueryChange(type, query) {
20591
+ const options = this.getScoreOptions(type);
20592
+ const matchedOption = this.findMatchedScoreOption(options, query);
20593
+ this.$nextTick(() => {
20594
+ this.updateScoreSelectFocus(type, matchedOption, false);
20595
+ });
20596
+ },
20597
+ resetScoreOptions(options, type) {
20442
20598
  let otherRange = _$1.map(this.otherConditions, (item) => {
20443
20599
  return {
20444
20600
  min: _$1.get(item, "payload.minScore", 0),
@@ -20448,11 +20604,19 @@ var script$z = Vue.extend({
20448
20604
  let currentMinScore = this.value.minScore == null ? 0 : this.value.minScore;
20449
20605
  let currentMaxScore = this.value.maxScore == null ? this.totalScore : this.value.maxScore;
20450
20606
  _$1.forEach(options, function (o) {
20451
- o.disabled = _$1.some(otherRange, function (or) {
20607
+ let disabledByOtherRange = _$1.some(otherRange, function (or) {
20452
20608
  let condition_a = o.value >= or.min && o.value <= or.max;
20453
20609
  let condition_b = o.value >= currentMinScore && o.value <= currentMaxScore;
20454
20610
  return condition_a && condition_b;
20455
20611
  });
20612
+ let disabledByCurrentRange = false;
20613
+ if (type === "left" && currentMaxScore != null) {
20614
+ disabledByCurrentRange = o.value > currentMaxScore;
20615
+ }
20616
+ if (type === "right" && currentMinScore != null) {
20617
+ disabledByCurrentRange = o.value < currentMinScore;
20618
+ }
20619
+ o.disabled = disabledByOtherRange || disabledByCurrentRange;
20456
20620
  });
20457
20621
  },
20458
20622
  generateExpr() {
@@ -20460,6 +20624,58 @@ var script$z = Vue.extend({
20460
20624
  let maxScore = this.value.maxScore;
20461
20625
  return `${minScore} ${this.value.leftOperator} score and score ${this.value.rightOperator} ${maxScore}`;
20462
20626
  },
20627
+ validateMinScore(rule, value, callback) {
20628
+ if (value == null || value === '') {
20629
+ callback(new Error(this.t('survey_creator.question.scoreRequiredTip')));
20630
+ return;
20631
+ }
20632
+ if (value < 1) {
20633
+ callback(new Error(this.t('survey_creator.question.scoreRequiredTip')));
20634
+ return;
20635
+ }
20636
+ if (value > this.totalScore) {
20637
+ callback(new Error(`${this.t('survey_creator.question.scoreExceedTotalTip')} ${this.totalScore}`));
20638
+ return;
20639
+ }
20640
+ if (this.value.maxScore != null && value > this.value.maxScore) {
20641
+ callback(new Error(this.t('survey_creator.question.minScoreGreaterThanMaxTip')));
20642
+ return;
20643
+ }
20644
+ callback();
20645
+ },
20646
+ validateMaxScore(rule, value, callback) {
20647
+ if (value == null || value === '') {
20648
+ callback(new Error(this.t('survey_creator.question.scoreRequiredTip')));
20649
+ return;
20650
+ }
20651
+ if (value < 1) {
20652
+ callback(new Error(this.t('survey_creator.question.scoreRequiredTip')));
20653
+ return;
20654
+ }
20655
+ if (value > this.totalScore) {
20656
+ callback(new Error(`${this.t('survey_creator.question.scoreExceedTotalTip')} ${this.totalScore}`));
20657
+ return;
20658
+ }
20659
+ if (this.value.minScore != null && value < this.value.minScore) {
20660
+ callback(new Error(this.t('survey_creator.question.maxScoreLessThanMinTip')));
20661
+ return;
20662
+ }
20663
+ callback();
20664
+ },
20665
+ handleMinScoreChange(value) {
20666
+ if (this.value.maxScore != null && value > this.value.maxScore) {
20667
+ this.value.maxScore = value;
20668
+ }
20669
+ this.resetLeftScoreOptions();
20670
+ this.resetRightScoreOptions();
20671
+ },
20672
+ handleMaxScoreChange(value) {
20673
+ if (this.value.minScore != null && value < this.value.minScore) {
20674
+ this.value.maxScore = this.value.minScore;
20675
+ }
20676
+ this.resetLeftScoreOptions();
20677
+ this.resetRightScoreOptions();
20678
+ },
20463
20679
  },
20464
20680
  });
20465
20681
 
@@ -20467,12 +20683,18 @@ var script$z = Vue.extend({
20467
20683
  const __vue_script__$z = script$z;
20468
20684
 
20469
20685
  /* template */
20470
- var __vue_render__$y = 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":4}},[_c('FormItem',{attrs:{"prop":("evaluationItems[" + _vm.itemIndex + "].conditions[" + _vm.index + "].payload.minScore"),"rules":{
20471
- required: true,
20472
- type: 'number',
20473
- trigger: 'change',
20474
- message: _vm.t('survey_creator.question.scoreRequiredTip'),
20475
- }}},[_c('Select',{attrs:{"placeholder":_vm.t('survey_creator.question.selectScore')},on:{"on-open-change":function($event){return _vm.resetScoreOptions(_vm.leftScores)}},model:{value:(_vm.value.minScore),callback:function ($$v) {_vm.$set(_vm.value, "minScore", $$v);},expression:"value.minScore"}},_vm._l((_vm.leftScores),function(score){return _c('Option',{key:score.value,attrs:{"value":score.value,"disabled":score.disabled}},[_vm._v("\n "+_vm._s(score.value)+"\n ")])}),1)],1)],1),_vm._v(" "),_c('Col',{attrs:{"span":3}},[_c('FormItem',{attrs:{"prop":("evaluationItems[" + _vm.itemIndex + "].conditions[" + _vm.index + "].payload.leftOperator"),"rules":{
20686
+ var __vue_render__$y = 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":4}},[_c('FormItem',{attrs:{"prop":("evaluationItems[" + _vm.itemIndex + "].conditions[" + _vm.index + "].payload.minScore"),"rules":[
20687
+ {
20688
+ required: true,
20689
+ type: 'number',
20690
+ trigger: 'change',
20691
+ message: _vm.t('survey_creator.question.scoreRequiredTip'),
20692
+ },
20693
+ {
20694
+ validator: _vm.validateMinScore,
20695
+ trigger: 'change',
20696
+ }
20697
+ ]}},[_c('Select',{ref:"leftScoreSelect",attrs:{"filterable":"","placeholder":_vm.t('survey_creator.question.selectScore')},on:{"on-open-change":function($event){return _vm.handleScoreSelectOpenChange('left', $event)},"on-change":_vm.handleMinScoreChange,"on-query-change":function($event){return _vm.handleScoreQueryChange('left', $event)}},model:{value:(_vm.value.minScore),callback:function ($$v) {_vm.$set(_vm.value, "minScore", $$v);},expression:"value.minScore"}},_vm._l((_vm.leftScores),function(score){return _c('Option',{key:score.value,attrs:{"value":score.value,"label":String(score.value),"disabled":score.disabled}},[_vm._v("\n "+_vm._s(score.value)+"\n ")])}),1)],1)],1),_vm._v(" "),_c('Col',{attrs:{"span":3}},[_c('FormItem',{attrs:{"prop":("evaluationItems[" + _vm.itemIndex + "].conditions[" + _vm.index + "].payload.leftOperator"),"rules":{
20476
20698
  required: true,
20477
20699
  trigger: 'change',
20478
20700
  message: _vm.t('survey_creator.question.notEmpty'),
@@ -20480,22 +20702,28 @@ var __vue_render__$y = function () {var _vm=this;var _h=_vm.$createElement;var _
20480
20702
  required: true,
20481
20703
  trigger: 'change',
20482
20704
  message: _vm.t('survey_creator.question.notEmpty'),
20483
- }}},[_c('Select',{staticClass:"operator",attrs:{"placeholder":_vm.t('survey_creator.question.evaluation.condition.operator')},model:{value:(_vm.value.rightOperator),callback:function ($$v) {_vm.$set(_vm.value, "rightOperator", $$v);},expression:"value.rightOperator"}},_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":4}},[_c('FormItem',{attrs:{"prop":("evaluationItems[" + _vm.itemIndex + "].conditions[" + _vm.index + "].payload.maxScore"),"rules":{
20484
- required: true,
20485
- type: 'number',
20486
- trigger: 'change',
20487
- message: _vm.t('survey_creator.question.scoreRequiredTip'),
20488
- }}},[_c('Select',{attrs:{"placeholder":_vm.t('survey_creator.question.selectScore')},on:{"on-open-change":function($event){return _vm.resetScoreOptions(_vm.rightScores)}},model:{value:(_vm.value.maxScore),callback:function ($$v) {_vm.$set(_vm.value, "maxScore", $$v);},expression:"value.maxScore"}},_vm._l((_vm.rightScores),function(score){return _c('Option',{key:score.value,attrs:{"value":score.value,"disabled":score.disabled}},[_vm._v("\n "+_vm._s(score.value)+"\n ")])}),1)],1)],1)],1)};
20705
+ }}},[_c('Select',{staticClass:"operator",attrs:{"placeholder":_vm.t('survey_creator.question.evaluation.condition.operator')},model:{value:(_vm.value.rightOperator),callback:function ($$v) {_vm.$set(_vm.value, "rightOperator", $$v);},expression:"value.rightOperator"}},_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":4}},[_c('FormItem',{attrs:{"prop":("evaluationItems[" + _vm.itemIndex + "].conditions[" + _vm.index + "].payload.maxScore"),"rules":[
20706
+ {
20707
+ required: true,
20708
+ type: 'number',
20709
+ trigger: 'change',
20710
+ message: _vm.t('survey_creator.question.scoreRequiredTip'),
20711
+ },
20712
+ {
20713
+ validator: _vm.validateMaxScore,
20714
+ trigger: 'change',
20715
+ }
20716
+ ]}},[_c('Select',{ref:"rightScoreSelect",attrs:{"filterable":"","placeholder":_vm.t('survey_creator.question.selectScore')},on:{"on-open-change":function($event){return _vm.handleScoreSelectOpenChange('right', $event)},"on-change":_vm.handleMaxScoreChange,"on-query-change":function($event){return _vm.handleScoreQueryChange('right', $event)}},model:{value:(_vm.value.maxScore),callback:function ($$v) {_vm.$set(_vm.value, "maxScore", $$v);},expression:"value.maxScore"}},_vm._l((_vm.rightScores),function(score){return _c('Option',{key:score.value,attrs:{"value":score.value,"label":String(score.value),"disabled":score.disabled}},[_vm._v("\n "+_vm._s(score.value)+"\n ")])}),1)],1)],1)],1)};
20489
20717
  var __vue_staticRenderFns__$y = [];
20490
20718
 
20491
20719
  /* style */
20492
20720
  const __vue_inject_styles__$z = function (inject) {
20493
20721
  if (!inject) return
20494
- inject("data-v-794d462e_0", { source: ".label[data-v-794d462e]{text-align:right;margin-bottom:24px}[data-v-794d462e] .operator .ivu-select-selected-value{height:28px;line-height:28px}", map: undefined, media: undefined });
20722
+ inject("data-v-514fa778_0", { source: ".label[data-v-514fa778]{text-align:right;margin-bottom:24px}[data-v-514fa778] .operator .ivu-select-selected-value{height:28px;line-height:28px}", map: undefined, media: undefined });
20495
20723
 
20496
20724
  };
20497
20725
  /* scoped */
20498
- const __vue_scope_id__$z = "data-v-794d462e";
20726
+ const __vue_scope_id__$z = "data-v-514fa778";
20499
20727
  /* module identifier */
20500
20728
  const __vue_module_identifier__$z = undefined;
20501
20729
  /* functional template */
@@ -21277,6 +21505,10 @@ var __vue_staticRenderFns__$G = [];
21277
21505
  undefined
21278
21506
  );
21279
21507
 
21508
+ var arrowUpSvg = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iMTQiIHZpZXdCb3g9IjAgMCAxNCAxNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGcgY2xpcC1wYXRoPSJ1cmwoI2NsaXAwXzYyMzNfMjQxNjgpIj4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0wLjc1NjIxNCA3LjUxMTI1QzEuMDQ4NzcgNy44MDM1OSAxLjUyMjc4IDcuODAzNTkgMS44MTQ5IDcuNTExMjVMNy4wMTg0OCAyLjMwNzY3TDEyLjIyMTggNy41MTEyNUMxMi41MTQyIDcuODAzNTkgMTIuOTg4MiA3LjgwMzU5IDEzLjI4MDcgNy41MTEyNUMxMy41NzMxIDcuMjE4NjkgMTMuNTczMSA2Ljc0NDY4IDEzLjI4MDcgNi40NTIzNEw3LjU0ODYzIDAuNzIwMjAyQzcuNDAxNzcgMC41NzMxMzggNy4yMTAwMSAwLjUwMDExIDcuMDE4NDggMC41MDAxMUM2LjgyNjczIDAuNTAwMTEgNi42MzUyIDAuNTczMTM4IDYuNDg4OTIgMC43MTk0MTlDNi40ODg0NyAwLjcxOTg2NyA2LjQ4ODI0IDAuNzIwNTM4IDYuNDg3OCAwLjcyMDk4NkwwLjc1NjIxNCA2LjQ1MjM0QzAuNDYzODc4IDYuNzQ0NjggMC40NjM4NzggNy4yMTg2OSAwLjc1NjIxNCA3LjUxMTI1Wk0wLjcxOTI1MiAxMi45Mjg1QzEuMDExODEgMTMuMjIwOCAxLjQ4NTgyIDEzLjIyMDggMS43Nzc5MyAxMi45Mjg1TDYuOTgxNTIgNy43MjQ4N0wxMi4xODQ5IDEyLjkyODVDMTIuNDc3NCAxMy4yMjA4IDEyLjk1MTIgMTMuMjIwOCAxMy4yNDM4IDEyLjkyODVDMTMuNTM2MyAxMi42MzYxIDEzLjUzNjMgMTIuMTYyMSAxMy4yNDM4IDExLjg2OTVMNy41MTE2NyA2LjEzNzQ5QzcuMzY0OCA1Ljk5MDM0IDcuMTczMDUgNS45MTczMSA2Ljk4MTUyIDUuOTE3MzFDNi43ODk3NiA1LjkxNzMxIDYuNTk4MjMgNS45OTAzNCA2LjQ1MjE4IDYuMTM2NjJMMC43MTkyNTIgMTEuODY5NUMwLjQyNjkxNiAxMi4xNjIxIDAuNDI2OTE2IDEyLjYzNjEgMC43MTkyNTIgMTIuOTI4NVoiIGZpbGw9IiM3MzczNzMiLz4KPC9nPgo8ZGVmcz4KPGNsaXBQYXRoIGlkPSJjbGlwMF82MjMzXzI0MTY4Ij4KPHJlY3Qgd2lkdGg9IjE0IiBoZWlnaHQ9IjE0IiBmaWxsPSJ3aGl0ZSIvPgo8L2NsaXBQYXRoPgo8L2RlZnM+Cjwvc3ZnPgo=";
21509
+
21510
+ var arrowDownSvg = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iMTQiIHZpZXdCb3g9IjAgMCAxNCAxNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGcgY2xpcC1wYXRoPSJ1cmwoI2NsaXAwXzYzNDBfMzk1NSkiPgo8cGF0aCBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGNsaXAtcnVsZT0iZXZlbm9kZCIgZD0iTTAuNzU2MjE0IDYuMTM2NDVDMS4wNDg3NyA1Ljg0NDEyIDEuNTIyNzggNS44NDQxMiAxLjgxNDkgNi4xMzY0NUw3LjAxODQ4IDExLjM0TDEyLjIyMTggNi4xMzY0NUMxMi41MTQyIDUuODQ0MTIgMTIuOTg4MiA1Ljg0NDEyIDEzLjI4MDcgNi4xMzY0NUMxMy41NzMxIDYuNDI5MDEgMTMuNTczMSA2LjkwMzAzIDEzLjI4MDcgNy4xOTUzNkw3LjU0ODYzIDEyLjkyNzVDNy40MDE3NyAxMy4wNzQ2IDcuMjEwMDEgMTMuMTQ3NiA3LjAxODQ4IDEzLjE0NzZDNi44MjY3MyAxMy4xNDc2IDYuNjM1MiAxMy4wNzQ2IDYuNDg4OTIgMTIuOTI4M0M2LjQ4ODQ3IDEyLjkyNzggNi40ODgyNCAxMi45MjcyIDYuNDg3OCAxMi45MjY3TDAuNzU2MjE0IDcuMTk1MzZDMC40NjM4NzggNi45MDMwMyAwLjQ2Mzg3OCA2LjQyOTAxIDAuNzU2MjE0IDYuMTM2NDVaTTAuNzE5MjUyIDAuNzE5MjUyQzEuMDExODEgMC40MjY5MTYgMS40ODU4MiAwLjQyNjkxNiAxLjc3NzkzIDAuNzE5MjUyTDYuOTgxNTIgNS45MjI4NEwxMi4xODQ5IDAuNzE5MjUyQzEyLjQ3NzQgMC40MjY5MTYgMTIuOTUxMiAwLjQyNjkxNiAxMy4yNDM4IDAuNzE5MjUyQzEzLjUzNjMgMS4wMTE1OSAxMy41MzYzIDEuNDg1NiAxMy4yNDM4IDEuNzc4MTZMNy41MTE2NyA3LjUxMDIyQzcuMzY0OCA3LjY1NzM2IDcuMTczMDUgNy43MzAzOSA2Ljk4MTUyIDcuNzMwMzlDNi43ODk3NiA3LjczMDM5IDYuNTk4MjMgNy42NTczNiA2LjQ1MjE4IDcuNTExMDhMMC43MTkyNTIgMS43NzgxNkMwLjQyNjkxNiAxLjQ4NTYgMC40MjY5MTYgMS4wMTE1OSAwLjcxOTI1MiAwLjcxOTI1MloiIGZpbGw9IiM3MzczNzMiLz4KPC9nPgo8ZGVmcz4KPGNsaXBQYXRoIGlkPSJjbGlwMF82MzQwXzM5NTUiPgo8cmVjdCB3aWR0aD0iMTQiIGhlaWdodD0iMTQiIGZpbGw9IndoaXRlIi8+CjwvY2xpcFBhdGg+CjwvZGVmcz4KPC9zdmc+Cg==";
21511
+
21280
21512
  var script$I = Vue.extend({
21281
21513
  name: "previewer-question-row",
21282
21514
  components: {
@@ -21285,6 +21517,7 @@ var script$I = Vue.extend({
21285
21517
  Col,
21286
21518
  Divider,
21287
21519
  Card,
21520
+ Icon,
21288
21521
  QuestionTitle: __vue_component__$4,
21289
21522
  ["SINGLE_SELECTION"]: __vue_component__$8,
21290
21523
  ["MULTI_SELECTION"]: __vue_component__$9,
@@ -21310,17 +21543,31 @@ var script$I = Vue.extend({
21310
21543
  type: Object,
21311
21544
  required: false,
21312
21545
  },
21546
+ expanded: {
21547
+ type: Boolean,
21548
+ default: true,
21549
+ },
21313
21550
  },
21314
21551
  data() {
21315
21552
  return {
21316
21553
  enabledSelectQuestion: false,
21317
21554
  isSelectedQuestion: false,
21318
21555
  currentCustomQuestion: this.customQuestion,
21556
+ collapsible: false,
21557
+ isCheckboxDisabled: false,
21319
21558
  };
21320
21559
  },
21321
21560
  created() {
21322
21561
  this.enabledSelectQuestion = _$1.get(this.$rootComponent, "options.enabledSelectQuestion", false);
21323
21562
  this.enabledQuestionTitleIncompleteTips = _$1.get(this.$rootComponent, "options.enabledQuestionTitleIncompleteTips", false);
21563
+ if (_$1.get(this.$rootComponent, "options.questionReadonly", false)) {
21564
+ this.$set(this.question.options, "readonly", true);
21565
+ this.collapsible = true;
21566
+ }
21567
+ if (_$1.get(this.$rootComponent, "options.disabledInitQuestions", false)) {
21568
+ const initIds = _$1.get(this.$rootComponent, "initQuestionIds", []);
21569
+ this.isCheckboxDisabled = initIds.includes(this.question.id);
21570
+ }
21324
21571
  },
21325
21572
  computed: {
21326
21573
  getClassStyle() {
@@ -21349,6 +21596,9 @@ var script$I = Vue.extend({
21349
21596
  onSelectQuestion(seleccted) {
21350
21597
  this.$emit("onSelectQuestion", seleccted, this.question);
21351
21598
  },
21599
+ toggleExpand() {
21600
+ this.$emit("toggle-expand");
21601
+ },
21352
21602
  },
21353
21603
  });
21354
21604
 
@@ -21356,10 +21606,10 @@ var script$I = Vue.extend({
21356
21606
  const __vue_script__$I = script$I;
21357
21607
 
21358
21608
  /* template */
21359
- var __vue_render__$H = 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('div',{staticClass:"question-row-container",class:_vm.getClassStyle},[(_vm.enabledSelectQuestion)?_c('div',{staticClass:"question-row-container-left"},[_c('Checkbox',{on:{"on-change":_vm.onSelectQuestion},model:{value:(_vm.isSelectedQuestion),callback:function ($$v) {_vm.isSelectedQuestion=$$v;},expression:"isSelectedQuestion"}})],1):_vm._e(),_vm._v(" "),_c('div',{staticClass:"question-row-container-right"},[_c('span',{directives:[{name:"show",rawName:"v-show",value:(!_vm.questionTitleIncomplete),expression:"!questionTitleIncomplete"}],staticClass:"incomplete-tips"},[_vm._v("\n "+_vm._s(_vm.t("survey_creator.question.incomplete_tips"))+"\n ")]),_vm._v(" "),_c('Divider',{staticClass:"question-type-desc",attrs:{"orientation":"left"}},[_vm._v("\n "+_vm._s(_vm.t(
21609
+ var __vue_render__$H = 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('div',{class:['question-row-container',{ 'question-row--selected': _vm.isSelectedQuestion }, _vm.getClassStyle]},[(_vm.enabledSelectQuestion)?_c('div',{staticClass:"question-row-container-left"},[_c('Checkbox',{attrs:{"disabled":_vm.isCheckboxDisabled},on:{"on-change":_vm.onSelectQuestion},model:{value:(_vm.isSelectedQuestion),callback:function ($$v) {_vm.isSelectedQuestion=$$v;},expression:"isSelectedQuestion"}})],1):_vm._e(),_vm._v(" "),_c('div',{staticClass:"question-row-container-right"},[_c('span',{directives:[{name:"show",rawName:"v-show",value:(!_vm.questionTitleIncomplete),expression:"!questionTitleIncomplete"}],staticClass:"incomplete-tips"},[_vm._v("\n "+_vm._s(_vm.t("survey_creator.question.incomplete_tips"))+"\n ")]),_vm._v(" "),_c('Divider',{staticClass:"question-type-desc",attrs:{"orientation":"left"}},[_vm._v("\n "+_vm._s(_vm.t(
21360
21610
  ("survey_creator.question.types." + (_vm.question.type)),
21361
21611
  _vm.$rootComponent.currentLanguage
21362
- ))+"\n ")]),_vm._v(" "),_c('question-title',{staticStyle:{"align-items":"flex-start"},attrs:{"question":_vm.question,"max-score":true,"custom-question":_vm.currentCustomQuestion}}),_vm._v(" "),_c('div',{staticClass:"question-row-content"},[_c(_vm.question.type,{tag:"component",staticClass:"question",attrs:{"question":_vm.question,"survey":_vm.survey},on:{"singleQuestion":_vm.getJumpRules}})],1)],1)])])};
21612
+ ))+"\n ")]),_vm._v(" "),_c('div',{staticClass:"question-title-header"},[_c('question-title',{staticStyle:{"align-items":"flex-start","flex":"1"},attrs:{"question":_vm.question,"max-score":true,"custom-question":_vm.currentCustomQuestion}}),_vm._v(" "),(_vm.collapsible)?_c('Icon',{class:['collapse-toggle', { 'collapse-toggle--collapsed': !_vm.expanded }],attrs:{"type":"ios-arrow-up"},on:{"click":function($event){$event.stopPropagation();return _vm.toggleExpand.apply(null, arguments)}}}):_vm._e()],1),_vm._v(" "),_c('div',{directives:[{name:"show",rawName:"v-show",value:(_vm.expanded),expression:"expanded"}],staticClass:"question-row-content"},[_c(_vm.question.type,{tag:"component",staticClass:"question",attrs:{"question":_vm.question,"survey":_vm.survey},on:{"singleQuestion":_vm.getJumpRules}})],1)],1)])])};
21363
21613
  var __vue_staticRenderFns__$H = [];
21364
21614
 
21365
21615
  /* style */
@@ -21393,7 +21643,11 @@ var __vue_staticRenderFns__$H = [];
21393
21643
 
21394
21644
  var script$J = Vue.extend({
21395
21645
  name: "survey-internal-previewer",
21396
- components: { Card, PreviewerQuestionRow: __vue_component__$I },
21646
+ components: { Card, Checkbox, PreviewerQuestionRow: __vue_component__$I },
21647
+ mixins: [LocaleMixin],
21648
+ inject: {
21649
+ $rootComponent: { default: null },
21650
+ },
21397
21651
  props: {
21398
21652
  survey: {
21399
21653
  type: Object,
@@ -21412,6 +21666,9 @@ var script$J = Vue.extend({
21412
21666
  return {
21413
21667
  sortQuestions: this.survey.questions,
21414
21668
  selectedQuestions: [],
21669
+ expandedMap: Object.fromEntries(this.survey.questions.map((q) => [q.id, true])),
21670
+ arrowUpSvg,
21671
+ arrowDownSvg,
21415
21672
  };
21416
21673
  },
21417
21674
  mounted() {
@@ -21424,6 +21681,26 @@ var script$J = Vue.extend({
21424
21681
  questionIds() {
21425
21682
  return this.selectedQuestions.map((question) => question.id);
21426
21683
  },
21684
+ showSelectionCounter() {
21685
+ return _$1.get(this.$rootComponent, "options.enabledSelectQuestion", false);
21686
+ },
21687
+ showCollapseToggle() {
21688
+ return _$1.get(this.$rootComponent, "options.questionReadonly", false);
21689
+ },
21690
+ allExpanded() {
21691
+ return this.sortQuestions.every((q) => this.expandedMap[q.id] !== false);
21692
+ },
21693
+ allSelected() {
21694
+ return this.sortQuestions.length > 0 && this.selectedQuestions.length === this.sortQuestions.length;
21695
+ },
21696
+ someSelected() {
21697
+ return this.selectedQuestions.length > 0 && this.selectedQuestions.length < this.sortQuestions.length;
21698
+ },
21699
+ disabledQuestionIds() {
21700
+ return _$1.get(this.$rootComponent, "options.disabledInitQuestions", false)
21701
+ ? _$1.get(this.$rootComponent, "initQuestionIds", [])
21702
+ : [];
21703
+ },
21427
21704
  },
21428
21705
  methods: {
21429
21706
  surveyCustomQuestion(questionId) {
@@ -21517,6 +21794,31 @@ var script$J = Vue.extend({
21517
21794
  }
21518
21795
  });
21519
21796
  },
21797
+ toggleSelectAll(checked) {
21798
+ if (checked) {
21799
+ this.sortQuestions
21800
+ .filter((q) => !this.selectedQuestions.find((i) => i.id === q.id))
21801
+ .forEach((q) => this.selectQuestionHandler(true, q));
21802
+ }
21803
+ else {
21804
+ this.sortQuestions
21805
+ .filter((q) => !this.disabledQuestionIds.includes(q.id))
21806
+ .forEach((q) => this.$refs[`question${q.id}`][0]?.selectQuestion(false));
21807
+ const kept = this.selectedQuestions.filter((q) => this.disabledQuestionIds.includes(q.id));
21808
+ this.selectedQuestions.splice(0, Infinity, ...kept);
21809
+ }
21810
+ this.sortSelectedQuestions();
21811
+ this.$emit("selected-question-ids", this.questionIds);
21812
+ },
21813
+ onToggleExpand(questionId) {
21814
+ this.$set(this.expandedMap, questionId, !this.expandedMap[questionId]);
21815
+ },
21816
+ toggleAllExpand() {
21817
+ const newState = !this.allExpanded;
21818
+ this.sortQuestions.forEach((q) => {
21819
+ this.$set(this.expandedMap, q.id, newState);
21820
+ });
21821
+ },
21520
21822
  sortSelectedQuestions() {
21521
21823
  this.selectedQuestions.sort((first, second) => {
21522
21824
  if (first.header.number > second.header.number) {
@@ -21535,7 +21837,7 @@ var script$J = Vue.extend({
21535
21837
  const __vue_script__$J = script$J;
21536
21838
 
21537
21839
  /* template */
21538
- var __vue_render__$I = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"survey-internal-previewer-wrapper"},_vm._l((_vm.sortQuestions),function(question){return _c('previewer-question-row',{key:question.id,ref:("question" + (question.id)),refInFor:true,attrs:{"question":question,"survey":_vm.survey,"custom-question":_vm.surveyCustomQuestion(question.id)},on:{"singleQuestion":_vm.handleSelected,"onSelectQuestion":_vm.onSelectQuestion}})}),1)};
21840
+ var __vue_render__$I = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"survey-internal-previewer-wrapper"},[(_vm.showSelectionCounter || _vm.showCollapseToggle)?_c('div',{staticClass:"question-selection-counter"},[(_vm.showCollapseToggle)?_c('img',{staticClass:"collapse-toggle-all",attrs:{"src":_vm.allExpanded ? _vm.arrowUpSvg : _vm.arrowDownSvg},on:{"click":_vm.toggleAllExpand}}):_vm._e(),_vm._v(" "),(_vm.showSelectionCounter)?_c('Checkbox',{attrs:{"value":_vm.allSelected,"indeterminate":_vm.someSelected},on:{"on-change":_vm.toggleSelectAll}}):_vm._e(),_vm._v(" "),(_vm.showSelectionCounter)?[_vm._v("\n "+_vm._s(_vm.t("survey_creator.previewer.counter_total", [_vm.sortQuestions.length]))+"\n "),_c('span',{staticClass:"question-selection-counter__num"},[_vm._v(_vm._s(_vm.selectedQuestions.length))]),_vm._v("\n "+_vm._s(_vm.t("survey_creator.previewer.counter_suffix"))+"\n ")]:_vm._e()],2):_vm._e(),_vm._v(" "),_vm._l((_vm.sortQuestions),function(question){return _c('previewer-question-row',{key:question.id,ref:("question" + (question.id)),refInFor:true,attrs:{"question":question,"survey":_vm.survey,"expanded":_vm.expandedMap[question.id],"custom-question":_vm.surveyCustomQuestion(question.id)},on:{"singleQuestion":_vm.handleSelected,"onSelectQuestion":_vm.onSelectQuestion,"toggle-expand":function($event){return _vm.onToggleExpand(question.id)}}})})],2)};
21539
21841
  var __vue_staticRenderFns__$I = [];
21540
21842
 
21541
21843
  /* style */
@@ -22315,6 +22617,8 @@ var __vue_staticRenderFns__$N = [];
22315
22617
  );
22316
22618
 
22317
22619
  class SurveyCreatorOptions {
22620
+ locale;
22621
+ i18n;
22318
22622
  }
22319
22623
  class SurveyCreatorPlugin {
22320
22624
  static install(Vue, options) {