@wg-npm/survey-response 0.5.148 → 0.5.149
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.
|
@@ -4,7 +4,7 @@ import { Row, Icon, FormItem, CheckboxGroup, Checkbox, Col, Input, RadioGroup, R
|
|
|
4
4
|
import { showInput, formatTitle, translate } from '@wg-npm/survey-core';
|
|
5
5
|
import deepmerge from 'deepmerge';
|
|
6
6
|
|
|
7
|
-
var script$
|
|
7
|
+
var script$h = Vue.extend({
|
|
8
8
|
name: "empty-question",
|
|
9
9
|
components: {
|
|
10
10
|
Row,
|
|
@@ -142,44 +142,44 @@ function addStyle(id, css) {
|
|
|
142
142
|
}
|
|
143
143
|
|
|
144
144
|
/* script */
|
|
145
|
-
const __vue_script__$
|
|
146
|
-
var __vue_render__$
|
|
147
|
-
var __vue_staticRenderFns__$
|
|
145
|
+
const __vue_script__$h = script$h;
|
|
146
|
+
var __vue_render__$h = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"fill-width mb20 no-data"},[_c('Row',[_c('img',{staticClass:"empty_box-copy",attrs:{"src":__$_require_images_empty_box_copy_svg__}})]),_vm._v(" "),_c('Row',[_c('span',{staticClass:"no-data-span"},[_vm._v(_vm._s(_vm.$t("survey_response.question.noQuestion")))])])],1)};
|
|
147
|
+
var __vue_staticRenderFns__$h = [];
|
|
148
148
|
|
|
149
149
|
/* style */
|
|
150
|
-
const __vue_inject_styles__$
|
|
150
|
+
const __vue_inject_styles__$h = function (inject) {
|
|
151
151
|
if (!inject) return
|
|
152
152
|
inject("data-v-9b95ccca_0", { source: ".fill-width[data-v-9b95ccca]{width:100%;text-align:center}.no-data span[data-v-9b95ccca]{text-align:center;color:rgba(0,0,0,.65)}.no-data .no-data-span[data-v-9b95ccca]{font-size:24px}", map: undefined, media: undefined });
|
|
153
153
|
|
|
154
154
|
};
|
|
155
155
|
/* scoped */
|
|
156
|
-
const __vue_scope_id__$
|
|
156
|
+
const __vue_scope_id__$h = "data-v-9b95ccca";
|
|
157
157
|
/* module identifier */
|
|
158
|
-
const __vue_module_identifier__$
|
|
158
|
+
const __vue_module_identifier__$h = undefined;
|
|
159
159
|
/* functional template */
|
|
160
|
-
const __vue_is_functional_template__$
|
|
160
|
+
const __vue_is_functional_template__$h = false;
|
|
161
161
|
/* style inject SSR */
|
|
162
162
|
|
|
163
163
|
/* style inject shadow dom */
|
|
164
164
|
|
|
165
165
|
|
|
166
166
|
|
|
167
|
-
const __vue_component__$
|
|
168
|
-
{ render: __vue_render__$
|
|
169
|
-
__vue_inject_styles__$
|
|
170
|
-
__vue_script__$
|
|
171
|
-
__vue_scope_id__$
|
|
172
|
-
__vue_is_functional_template__$
|
|
173
|
-
__vue_module_identifier__$
|
|
167
|
+
const __vue_component__$h = /*#__PURE__*/normalizeComponent(
|
|
168
|
+
{ render: __vue_render__$h, staticRenderFns: __vue_staticRenderFns__$h },
|
|
169
|
+
__vue_inject_styles__$h,
|
|
170
|
+
__vue_script__$h,
|
|
171
|
+
__vue_scope_id__$h,
|
|
172
|
+
__vue_is_functional_template__$h,
|
|
173
|
+
__vue_module_identifier__$h,
|
|
174
174
|
false,
|
|
175
175
|
createInjector,
|
|
176
176
|
undefined,
|
|
177
177
|
undefined
|
|
178
178
|
);
|
|
179
179
|
|
|
180
|
-
var EmptyQuestion = __vue_component__$
|
|
180
|
+
var EmptyQuestion = __vue_component__$h;
|
|
181
181
|
|
|
182
|
-
var script$
|
|
182
|
+
var script$g = Vue.extend({
|
|
183
183
|
name: "question-title",
|
|
184
184
|
components: { Icon },
|
|
185
185
|
inject: ["$rootComponent"],
|
|
@@ -222,10 +222,10 @@ var script$f = Vue.extend({
|
|
|
222
222
|
});
|
|
223
223
|
|
|
224
224
|
/* script */
|
|
225
|
-
const __vue_script__$
|
|
225
|
+
const __vue_script__$g = script$g;
|
|
226
226
|
|
|
227
227
|
/* template */
|
|
228
|
-
var __vue_render__$
|
|
228
|
+
var __vue_render__$g = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"question-title"},[(_vm.question.type !== 'text_title')?_c('span',{staticClass:"pr-sm"},[(_vm.question.options.required)?_c('label',{staticClass:"require-label"},[_vm._v("*")]):_vm._e(),_vm._v(" "),(_vm.question.header.number)?_c('label',{staticClass:"number"},[_vm._v(_vm._s(_vm.question.header.number)+".")]):_vm._e()]):_vm._e(),_vm._v(" "),_vm._l((_vm.getTitle(_vm.question)),function(title,index){return _c('div',{key:index,staticClass:"flex"},[(title !== '')?_c('span',{staticClass:"content"},[_vm._v(_vm._s(title))]):_vm._e(),_vm._v(" "),_vm._l((_vm.customFilledTitle),function(customTitle){return _c('div',{key:index + customTitle.index},[(title === '' && index === customTitle.index)?_c('span',{staticClass:"content"},[_vm._v(_vm._s(customTitle.title))]):_c('div',[(
|
|
229
229
|
_vm.getShowInput(index, _vm.getTitle(_vm.question)) &&
|
|
230
230
|
index === customTitle.index
|
|
231
231
|
)?_c('span',{staticClass:"content"},[_vm._v(_vm._s(customTitle.title))]):_vm._e()])])})],2)}),_vm._v(" "),(_vm.haveStar)?_c('span',{staticClass:"options-explain"},[(_vm.isSingleSelection)?_c('span',[_vm._v("\n ("+_vm._s(_vm.t(
|
|
@@ -241,40 +241,40 @@ var __vue_render__$f = function () {var _vm=this;var _h=_vm.$createElement;var _
|
|
|
241
241
|
"survey_creator.question.star_multi_suffix",
|
|
242
242
|
_vm.$rootComponent.currentLanguage
|
|
243
243
|
))+"\n )\n ")],1)]):_vm._e()],2)};
|
|
244
|
-
var __vue_staticRenderFns__$
|
|
244
|
+
var __vue_staticRenderFns__$g = [];
|
|
245
245
|
|
|
246
246
|
/* style */
|
|
247
|
-
const __vue_inject_styles__$
|
|
247
|
+
const __vue_inject_styles__$g = function (inject) {
|
|
248
248
|
if (!inject) return
|
|
249
249
|
inject("data-v-32eb22f3_0", { source: ".flex[data-v-32eb22f3]{display:flex;align-items:center;white-space:nowrap}.pr-sm[data-v-32eb22f3]{padding-right:4px}", map: undefined, media: undefined });
|
|
250
250
|
|
|
251
251
|
};
|
|
252
252
|
/* scoped */
|
|
253
|
-
const __vue_scope_id__$
|
|
253
|
+
const __vue_scope_id__$g = "data-v-32eb22f3";
|
|
254
254
|
/* module identifier */
|
|
255
|
-
const __vue_module_identifier__$
|
|
255
|
+
const __vue_module_identifier__$g = undefined;
|
|
256
256
|
/* functional template */
|
|
257
|
-
const __vue_is_functional_template__$
|
|
257
|
+
const __vue_is_functional_template__$g = false;
|
|
258
258
|
/* style inject SSR */
|
|
259
259
|
|
|
260
260
|
/* style inject shadow dom */
|
|
261
261
|
|
|
262
262
|
|
|
263
263
|
|
|
264
|
-
const __vue_component__$
|
|
265
|
-
{ render: __vue_render__$
|
|
266
|
-
__vue_inject_styles__$
|
|
267
|
-
__vue_script__$
|
|
268
|
-
__vue_scope_id__$
|
|
269
|
-
__vue_is_functional_template__$
|
|
270
|
-
__vue_module_identifier__$
|
|
264
|
+
const __vue_component__$g = /*#__PURE__*/normalizeComponent(
|
|
265
|
+
{ render: __vue_render__$g, staticRenderFns: __vue_staticRenderFns__$g },
|
|
266
|
+
__vue_inject_styles__$g,
|
|
267
|
+
__vue_script__$g,
|
|
268
|
+
__vue_scope_id__$g,
|
|
269
|
+
__vue_is_functional_template__$g,
|
|
270
|
+
__vue_module_identifier__$g,
|
|
271
271
|
false,
|
|
272
272
|
createInjector,
|
|
273
273
|
undefined,
|
|
274
274
|
undefined
|
|
275
275
|
);
|
|
276
276
|
|
|
277
|
-
var QuestionTitle = __vue_component__$
|
|
277
|
+
var QuestionTitle = __vue_component__$g;
|
|
278
278
|
|
|
279
279
|
var OptionLayoutMixin = Vue.extend({
|
|
280
280
|
methods: {
|
|
@@ -315,7 +315,7 @@ var QuestionMixin = Vue.extend({
|
|
|
315
315
|
methods: {},
|
|
316
316
|
});
|
|
317
317
|
|
|
318
|
-
var script$
|
|
318
|
+
var script$f = Vue.extend({
|
|
319
319
|
name: "multi-selection",
|
|
320
320
|
inject: ["responseStatus", "$rootComponent"],
|
|
321
321
|
mixins: [OptionLayoutMixin, QuestionMixin],
|
|
@@ -402,10 +402,10 @@ var script$e = Vue.extend({
|
|
|
402
402
|
});
|
|
403
403
|
|
|
404
404
|
/* script */
|
|
405
|
-
const __vue_script__$
|
|
405
|
+
const __vue_script__$f = script$f;
|
|
406
406
|
|
|
407
407
|
/* template */
|
|
408
|
-
var __vue_render__$
|
|
408
|
+
var __vue_render__$f = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('FormItem',{attrs:{"prop":_vm.answerProp,"rules":{
|
|
409
409
|
required: _vm.question.options.required && !_vm.question.options.disabled,
|
|
410
410
|
type: 'array',
|
|
411
411
|
min: 1,
|
|
@@ -428,42 +428,42 @@ var __vue_render__$e = function () {var _vm=this;var _h=_vm.$createElement;var _
|
|
|
428
428
|
_vm.question.options.inputMinLength ]),
|
|
429
429
|
trigger: 'blur',
|
|
430
430
|
} ]}},[(_vm.responseStatus=='ENABLED')?_c('Span',[_vm._v("\n "+_vm._s(inputAnswer.inputText))]):_vm._e(),_vm._v(" "),(_vm.responseStatus=='DRAFT')?_c('Input',{model:{value:(inputAnswer.inputText),callback:function ($$v) {_vm.$set(inputAnswer, "inputText", (typeof $$v === 'string'? $$v.trim(): $$v));},expression:"inputAnswer.inputText"}}):_vm._e()],1):_vm._e()],1)})],2)}),1)],1)],1)};
|
|
431
|
-
var __vue_staticRenderFns__$
|
|
431
|
+
var __vue_staticRenderFns__$f = [];
|
|
432
432
|
|
|
433
433
|
/* style */
|
|
434
|
-
const __vue_inject_styles__$
|
|
434
|
+
const __vue_inject_styles__$f = function (inject) {
|
|
435
435
|
if (!inject) return
|
|
436
436
|
inject("data-v-5766f8ca_0", { source: ".ivu-row-flex-start[data-v-5766f8ca]{align-items:center}.ivu-checkbox-group-item[data-v-5766f8ca]{display:flex;flex-direction:row;align-items:center}.choice-title[data-v-5766f8ca]{margin-left:8px;margin-right:8px}.choice-score[data-v-5766f8ca]{margin-right:8px}", map: undefined, media: undefined });
|
|
437
437
|
|
|
438
438
|
};
|
|
439
439
|
/* scoped */
|
|
440
|
-
const __vue_scope_id__$
|
|
440
|
+
const __vue_scope_id__$f = "data-v-5766f8ca";
|
|
441
441
|
/* module identifier */
|
|
442
|
-
const __vue_module_identifier__$
|
|
442
|
+
const __vue_module_identifier__$f = undefined;
|
|
443
443
|
/* functional template */
|
|
444
|
-
const __vue_is_functional_template__$
|
|
444
|
+
const __vue_is_functional_template__$f = false;
|
|
445
445
|
/* style inject SSR */
|
|
446
446
|
|
|
447
447
|
/* style inject shadow dom */
|
|
448
448
|
|
|
449
449
|
|
|
450
450
|
|
|
451
|
-
const __vue_component__$
|
|
452
|
-
{ render: __vue_render__$
|
|
453
|
-
__vue_inject_styles__$
|
|
454
|
-
__vue_script__$
|
|
455
|
-
__vue_scope_id__$
|
|
456
|
-
__vue_is_functional_template__$
|
|
457
|
-
__vue_module_identifier__$
|
|
451
|
+
const __vue_component__$f = /*#__PURE__*/normalizeComponent(
|
|
452
|
+
{ render: __vue_render__$f, staticRenderFns: __vue_staticRenderFns__$f },
|
|
453
|
+
__vue_inject_styles__$f,
|
|
454
|
+
__vue_script__$f,
|
|
455
|
+
__vue_scope_id__$f,
|
|
456
|
+
__vue_is_functional_template__$f,
|
|
457
|
+
__vue_module_identifier__$f,
|
|
458
458
|
false,
|
|
459
459
|
createInjector,
|
|
460
460
|
undefined,
|
|
461
461
|
undefined
|
|
462
462
|
);
|
|
463
463
|
|
|
464
|
-
var MultiSelection = __vue_component__$
|
|
464
|
+
var MultiSelection = __vue_component__$f;
|
|
465
465
|
|
|
466
|
-
var script$
|
|
466
|
+
var script$e = Vue.extend({
|
|
467
467
|
name: "short-answer",
|
|
468
468
|
mixins: [QuestionMixin],
|
|
469
469
|
components: {
|
|
@@ -517,49 +517,49 @@ var script$d = Vue.extend({
|
|
|
517
517
|
});
|
|
518
518
|
|
|
519
519
|
/* script */
|
|
520
|
-
const __vue_script__$
|
|
520
|
+
const __vue_script__$e = script$e;
|
|
521
521
|
|
|
522
522
|
/* template */
|
|
523
|
-
var __vue_render__$
|
|
523
|
+
var __vue_render__$e = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[(_vm.readonly || _vm.question.options.disabled)?_c('div',{staticClass:"processed-answer",domProps:{"innerHTML":_vm._s(_vm.decodeHTML(_vm.value))}}):_c('FormItem',{attrs:{"prop":_vm.answerProp,"rules":{
|
|
524
524
|
required: _vm.question.options.required,
|
|
525
525
|
message: _vm.t('survey_response.question.question_required'),
|
|
526
526
|
}}},[(_vm.question.options && _vm.question.options.wordLimit)?_c('Input',{attrs:{"type":"textarea","rows":4,"show-word-limit":"","placeholder":_vm.placeholder,"maxlength":_vm.question.options.wordLimit,"disabled":_vm.question.options.readonly},model:{value:(_vm.value.answer),callback:function ($$v) {_vm.$set(_vm.value, "answer", (typeof $$v === 'string'? $$v.trim(): $$v));},expression:"value.answer"}}):_c('Input',{attrs:{"type":"textarea","rows":4,"placeholder":_vm.placeholder,"disabled":_vm.question.options.readonly},model:{value:(_vm.value.answer),callback:function ($$v) {_vm.$set(_vm.value, "answer", (typeof $$v === 'string'? $$v.trim(): $$v));},expression:"value.answer"}})],1)],1)};
|
|
527
|
-
var __vue_staticRenderFns__$
|
|
527
|
+
var __vue_staticRenderFns__$e = [];
|
|
528
528
|
|
|
529
529
|
/* style */
|
|
530
|
-
const __vue_inject_styles__$
|
|
530
|
+
const __vue_inject_styles__$e = function (inject) {
|
|
531
531
|
if (!inject) return
|
|
532
532
|
inject("data-v-17e80611_0", { source: ".processed-answer[data-v-17e80611]{background-color:#f3f3f3;opacity:1;cursor:not-allowed;color:#ccc;width:100%;min-height:94px;border:1px solid #dcdee2;border-radius:4px;padding:4px 8px;line-height:1.5}", map: undefined, media: undefined });
|
|
533
533
|
|
|
534
534
|
};
|
|
535
535
|
/* scoped */
|
|
536
|
-
const __vue_scope_id__$
|
|
536
|
+
const __vue_scope_id__$e = "data-v-17e80611";
|
|
537
537
|
/* module identifier */
|
|
538
|
-
const __vue_module_identifier__$
|
|
538
|
+
const __vue_module_identifier__$e = undefined;
|
|
539
539
|
/* functional template */
|
|
540
|
-
const __vue_is_functional_template__$
|
|
540
|
+
const __vue_is_functional_template__$e = false;
|
|
541
541
|
/* style inject SSR */
|
|
542
542
|
|
|
543
543
|
/* style inject shadow dom */
|
|
544
544
|
|
|
545
545
|
|
|
546
546
|
|
|
547
|
-
const __vue_component__$
|
|
548
|
-
{ render: __vue_render__$
|
|
549
|
-
__vue_inject_styles__$
|
|
550
|
-
__vue_script__$
|
|
551
|
-
__vue_scope_id__$
|
|
552
|
-
__vue_is_functional_template__$
|
|
553
|
-
__vue_module_identifier__$
|
|
547
|
+
const __vue_component__$e = /*#__PURE__*/normalizeComponent(
|
|
548
|
+
{ render: __vue_render__$e, staticRenderFns: __vue_staticRenderFns__$e },
|
|
549
|
+
__vue_inject_styles__$e,
|
|
550
|
+
__vue_script__$e,
|
|
551
|
+
__vue_scope_id__$e,
|
|
552
|
+
__vue_is_functional_template__$e,
|
|
553
|
+
__vue_module_identifier__$e,
|
|
554
554
|
false,
|
|
555
555
|
createInjector,
|
|
556
556
|
undefined,
|
|
557
557
|
undefined
|
|
558
558
|
);
|
|
559
559
|
|
|
560
|
-
var ShortAnswer = __vue_component__$
|
|
560
|
+
var ShortAnswer = __vue_component__$e;
|
|
561
561
|
|
|
562
|
-
var script$
|
|
562
|
+
var script$d = Vue.extend({
|
|
563
563
|
name: "single-selection",
|
|
564
564
|
components: {
|
|
565
565
|
FormItem,
|
|
@@ -645,10 +645,10 @@ var script$c = Vue.extend({
|
|
|
645
645
|
});
|
|
646
646
|
|
|
647
647
|
/* script */
|
|
648
|
-
const __vue_script__$
|
|
648
|
+
const __vue_script__$d = script$d;
|
|
649
649
|
|
|
650
650
|
/* template */
|
|
651
|
-
var __vue_render__$
|
|
651
|
+
var __vue_render__$d = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('FormItem',{attrs:{"prop":_vm.answerProp,"rules":{
|
|
652
652
|
required: _vm.question.options.required && !_vm.question.options.disabled,
|
|
653
653
|
message: _vm.t('survey_response.question.question_required'),
|
|
654
654
|
}}},[_c('RadioGroup',{staticClass:"question-choice",on:{"on-change":_vm.selChange},model:{value:(_vm.value.answer),callback:function ($$v) {_vm.$set(_vm.value, "answer", $$v);},expression:"value.answer"}},[_c('Row',{attrs:{"type":"flex","justify":"start","gutter":60}},_vm._l((_vm.question.choices),function(choice){return _c('Col',{key:choice.id,class:_vm.optionLayout,staticStyle:{"display":"flex"}},[_c('Radio',{key:choice.id,attrs:{"disabled":_vm.question.options.readonly || _vm.question.options.disabled,"label":choice.id},nativeOn:{"click":function($event){return _vm.toggleAnswer($event, choice.id, _vm.question.options.disabled)}}},[(_vm.haveStar(choice))?_c('span',[_c('Icon',{attrs:{"type":"md-star","color":"orange","size":16}})],1):_vm._e(),_vm._v(" "),_c('span',[_vm._v(_vm._s(_vm.i18nText(choice.text)))])]),_vm._v(" "),_vm._l((_vm.value.inputAnswers),function(inputAnswer,inputIndex){return _c('div',{key:inputIndex},[(
|
|
@@ -666,42 +666,42 @@ var __vue_render__$c = function () {var _vm=this;var _h=_vm.$createElement;var _
|
|
|
666
666
|
_vm.question.options.inputMinLength ]),
|
|
667
667
|
trigger: 'blur',
|
|
668
668
|
} ]}},[(_vm.responseStatus=='ENABLED')?_c('Span',[_vm._v("\n "+_vm._s(inputAnswer.inputText))]):_vm._e(),_vm._v(" "),(_vm.responseStatus=='DRAFT')?_c('Input',{model:{value:(inputAnswer.inputText),callback:function ($$v) {_vm.$set(inputAnswer, "inputText", (typeof $$v === 'string'? $$v.trim(): $$v));},expression:"inputAnswer.inputText"}}):_vm._e()],1):_vm._e()],1)})],2)}),1)],1)],1)};
|
|
669
|
-
var __vue_staticRenderFns__$
|
|
669
|
+
var __vue_staticRenderFns__$d = [];
|
|
670
670
|
|
|
671
671
|
/* style */
|
|
672
|
-
const __vue_inject_styles__$
|
|
672
|
+
const __vue_inject_styles__$d = function (inject) {
|
|
673
673
|
if (!inject) return
|
|
674
674
|
inject("data-v-781fd590_0", { source: ".ivu-row-flex-start[data-v-781fd590]{align-items:center}.ivu-radio-group-item[data-v-781fd590]{display:flex;flex-direction:row;align-items:center}.choice-title[data-v-781fd590]{margin-left:8px;margin-right:8px}", map: undefined, media: undefined });
|
|
675
675
|
|
|
676
676
|
};
|
|
677
677
|
/* scoped */
|
|
678
|
-
const __vue_scope_id__$
|
|
678
|
+
const __vue_scope_id__$d = "data-v-781fd590";
|
|
679
679
|
/* module identifier */
|
|
680
|
-
const __vue_module_identifier__$
|
|
680
|
+
const __vue_module_identifier__$d = undefined;
|
|
681
681
|
/* functional template */
|
|
682
|
-
const __vue_is_functional_template__$
|
|
682
|
+
const __vue_is_functional_template__$d = false;
|
|
683
683
|
/* style inject SSR */
|
|
684
684
|
|
|
685
685
|
/* style inject shadow dom */
|
|
686
686
|
|
|
687
687
|
|
|
688
688
|
|
|
689
|
-
const __vue_component__$
|
|
690
|
-
{ render: __vue_render__$
|
|
691
|
-
__vue_inject_styles__$
|
|
692
|
-
__vue_script__$
|
|
693
|
-
__vue_scope_id__$
|
|
694
|
-
__vue_is_functional_template__$
|
|
695
|
-
__vue_module_identifier__$
|
|
689
|
+
const __vue_component__$d = /*#__PURE__*/normalizeComponent(
|
|
690
|
+
{ render: __vue_render__$d, staticRenderFns: __vue_staticRenderFns__$d },
|
|
691
|
+
__vue_inject_styles__$d,
|
|
692
|
+
__vue_script__$d,
|
|
693
|
+
__vue_scope_id__$d,
|
|
694
|
+
__vue_is_functional_template__$d,
|
|
695
|
+
__vue_module_identifier__$d,
|
|
696
696
|
false,
|
|
697
697
|
createInjector,
|
|
698
698
|
undefined,
|
|
699
699
|
undefined
|
|
700
700
|
);
|
|
701
701
|
|
|
702
|
-
var SingleSelection = __vue_component__$
|
|
702
|
+
var SingleSelection = __vue_component__$d;
|
|
703
703
|
|
|
704
|
-
var script$
|
|
704
|
+
var script$c = Vue.extend({
|
|
705
705
|
name: "matrix",
|
|
706
706
|
mixins: [OptionLayoutMixin],
|
|
707
707
|
inject: ["responseStatus", "$rootComponent"],
|
|
@@ -790,23 +790,23 @@ var script$b = Vue.extend({
|
|
|
790
790
|
});
|
|
791
791
|
|
|
792
792
|
/* script */
|
|
793
|
-
const __vue_script__$
|
|
793
|
+
const __vue_script__$c = script$c;
|
|
794
794
|
|
|
795
795
|
/* template */
|
|
796
|
-
var __vue_render__$
|
|
796
|
+
var __vue_render__$c = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',_vm._l((_vm.question.subQuestions),function(subQuestion,subIndex){return _c('div',{key:subIndex,staticClass:"sub-question"},[_c('span',{staticClass:"number"},[_vm._v("\n "+_vm._s(_vm.question.header.number)+"-"+_vm._s(subQuestion.number)+".")]),_vm._v(" "),_c('span',{staticClass:"title"},[_vm._v(" "+_vm._s(_vm.i18nText(subQuestion.text))+" ")]),_vm._v(" "),_c('FormItem',{attrs:{"prop":_vm.answerProp(subIndex),"rules":{
|
|
797
797
|
required: _vm.question.options.required && !_vm.question.options.disabled,
|
|
798
798
|
message: _vm.t('survey_response.question.question_required'),
|
|
799
799
|
}}},[_c('RadioGroup',{on:{"on-change":_vm.selChange},model:{value:(_vm.value.answer[subIndex].answer),callback:function ($$v) {_vm.$set(_vm.value.answer[subIndex], "answer", $$v);},expression:"value.answer[subIndex].answer"}},[_c('Row',{attrs:{"type":"flex","justify":"start","gutter":60}},_vm._l((_vm.question.choices),function(choice){return _c('Col',{key:choice.id,class:_vm.optionLayout},[_c('Radio',{key:choice.id,attrs:{"label":choice.id,"disabled":subQuestion.options.readonly || _vm.question.options.disabled},nativeOn:{"click":function($event){return _vm.toggleAnswer(choice.id, subIndex)}}},[_c('span',[_vm._v(_vm._s(_vm.i18nText(choice.text)))])])],1)}),1)],1)],1)],1)}),0)};
|
|
800
|
-
var __vue_staticRenderFns__$
|
|
800
|
+
var __vue_staticRenderFns__$c = [];
|
|
801
801
|
|
|
802
802
|
/* style */
|
|
803
|
-
const __vue_inject_styles__$
|
|
803
|
+
const __vue_inject_styles__$c = undefined;
|
|
804
804
|
/* scoped */
|
|
805
|
-
const __vue_scope_id__$
|
|
805
|
+
const __vue_scope_id__$c = undefined;
|
|
806
806
|
/* module identifier */
|
|
807
|
-
const __vue_module_identifier__$
|
|
807
|
+
const __vue_module_identifier__$c = undefined;
|
|
808
808
|
/* functional template */
|
|
809
|
-
const __vue_is_functional_template__$
|
|
809
|
+
const __vue_is_functional_template__$c = false;
|
|
810
810
|
/* style inject */
|
|
811
811
|
|
|
812
812
|
/* style inject SSR */
|
|
@@ -815,38 +815,38 @@ var __vue_staticRenderFns__$b = [];
|
|
|
815
815
|
|
|
816
816
|
|
|
817
817
|
|
|
818
|
-
const __vue_component__$
|
|
819
|
-
{ render: __vue_render__$
|
|
820
|
-
__vue_inject_styles__$
|
|
821
|
-
__vue_script__$
|
|
822
|
-
__vue_scope_id__$
|
|
823
|
-
__vue_is_functional_template__$
|
|
824
|
-
__vue_module_identifier__$
|
|
818
|
+
const __vue_component__$c = /*#__PURE__*/normalizeComponent(
|
|
819
|
+
{ render: __vue_render__$c, staticRenderFns: __vue_staticRenderFns__$c },
|
|
820
|
+
__vue_inject_styles__$c,
|
|
821
|
+
__vue_script__$c,
|
|
822
|
+
__vue_scope_id__$c,
|
|
823
|
+
__vue_is_functional_template__$c,
|
|
824
|
+
__vue_module_identifier__$c,
|
|
825
825
|
false,
|
|
826
826
|
undefined,
|
|
827
827
|
undefined,
|
|
828
828
|
undefined
|
|
829
829
|
);
|
|
830
830
|
|
|
831
|
-
var Matrix = __vue_component__$
|
|
831
|
+
var Matrix = __vue_component__$c;
|
|
832
832
|
|
|
833
|
-
var script$
|
|
833
|
+
var script$b = Vue.extend({});
|
|
834
834
|
|
|
835
835
|
/* script */
|
|
836
|
-
const __vue_script__$
|
|
836
|
+
const __vue_script__$b = script$b;
|
|
837
837
|
|
|
838
838
|
/* template */
|
|
839
|
-
var __vue_render__$
|
|
840
|
-
var __vue_staticRenderFns__$
|
|
839
|
+
var __vue_render__$b = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div')};
|
|
840
|
+
var __vue_staticRenderFns__$b = [];
|
|
841
841
|
|
|
842
842
|
/* style */
|
|
843
|
-
const __vue_inject_styles__$
|
|
843
|
+
const __vue_inject_styles__$b = undefined;
|
|
844
844
|
/* scoped */
|
|
845
|
-
const __vue_scope_id__$
|
|
845
|
+
const __vue_scope_id__$b = undefined;
|
|
846
846
|
/* module identifier */
|
|
847
|
-
const __vue_module_identifier__$
|
|
847
|
+
const __vue_module_identifier__$b = undefined;
|
|
848
848
|
/* functional template */
|
|
849
|
-
const __vue_is_functional_template__$
|
|
849
|
+
const __vue_is_functional_template__$b = false;
|
|
850
850
|
/* style inject */
|
|
851
851
|
|
|
852
852
|
/* style inject SSR */
|
|
@@ -855,22 +855,22 @@ var __vue_staticRenderFns__$a = [];
|
|
|
855
855
|
|
|
856
856
|
|
|
857
857
|
|
|
858
|
-
const __vue_component__$
|
|
859
|
-
{ render: __vue_render__$
|
|
860
|
-
__vue_inject_styles__$
|
|
861
|
-
__vue_script__$
|
|
862
|
-
__vue_scope_id__$
|
|
863
|
-
__vue_is_functional_template__$
|
|
864
|
-
__vue_module_identifier__$
|
|
858
|
+
const __vue_component__$b = /*#__PURE__*/normalizeComponent(
|
|
859
|
+
{ render: __vue_render__$b, staticRenderFns: __vue_staticRenderFns__$b },
|
|
860
|
+
__vue_inject_styles__$b,
|
|
861
|
+
__vue_script__$b,
|
|
862
|
+
__vue_scope_id__$b,
|
|
863
|
+
__vue_is_functional_template__$b,
|
|
864
|
+
__vue_module_identifier__$b,
|
|
865
865
|
false,
|
|
866
866
|
undefined,
|
|
867
867
|
undefined,
|
|
868
868
|
undefined
|
|
869
869
|
);
|
|
870
870
|
|
|
871
|
-
var TextTitle = __vue_component__$
|
|
871
|
+
var TextTitle = __vue_component__$b;
|
|
872
872
|
|
|
873
|
-
var script$
|
|
873
|
+
var script$a = Vue.extend({
|
|
874
874
|
name: "fill-blank",
|
|
875
875
|
components: {
|
|
876
876
|
FormItem,
|
|
@@ -924,47 +924,47 @@ var script$9 = Vue.extend({
|
|
|
924
924
|
});
|
|
925
925
|
|
|
926
926
|
/* script */
|
|
927
|
-
const __vue_script__$
|
|
927
|
+
const __vue_script__$a = script$a;
|
|
928
928
|
|
|
929
929
|
/* template */
|
|
930
|
-
var __vue_render__$
|
|
930
|
+
var __vue_render__$a = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[(_vm.readonly || _vm.question.options.disabled)?_c('div',{staticClass:"processed-answer",domProps:{"innerHTML":_vm._s(_vm.decodeHTML(_vm.value))}}):_c('FormItem',{attrs:{"prop":_vm.answerProp,"rules":{
|
|
931
931
|
required: _vm.question.options.required,
|
|
932
932
|
message: _vm.t('survey_response.question.question_required'),
|
|
933
933
|
}}},[_c('Input',{attrs:{"placeholder":_vm.placeholder,"disabled":_vm.question.options.readonly},model:{value:(_vm.value.answer),callback:function ($$v) {_vm.$set(_vm.value, "answer", (typeof $$v === 'string'? $$v.trim(): $$v));},expression:"value.answer"}})],1)],1)};
|
|
934
|
-
var __vue_staticRenderFns__$
|
|
934
|
+
var __vue_staticRenderFns__$a = [];
|
|
935
935
|
|
|
936
936
|
/* style */
|
|
937
|
-
const __vue_inject_styles__$
|
|
937
|
+
const __vue_inject_styles__$a = function (inject) {
|
|
938
938
|
if (!inject) return
|
|
939
939
|
inject("data-v-b766bdae_0", { source: ".processed-answer[data-v-b766bdae]{background-color:#f3f3f3;opacity:1;cursor:not-allowed;color:#ccc;width:100%;height:32px;border:1px solid #dcdee2;border-radius:4px;padding:4px 8px;line-height:1.5}", map: undefined, media: undefined });
|
|
940
940
|
|
|
941
941
|
};
|
|
942
942
|
/* scoped */
|
|
943
|
-
const __vue_scope_id__$
|
|
943
|
+
const __vue_scope_id__$a = "data-v-b766bdae";
|
|
944
944
|
/* module identifier */
|
|
945
|
-
const __vue_module_identifier__$
|
|
945
|
+
const __vue_module_identifier__$a = undefined;
|
|
946
946
|
/* functional template */
|
|
947
|
-
const __vue_is_functional_template__$
|
|
947
|
+
const __vue_is_functional_template__$a = false;
|
|
948
948
|
/* style inject SSR */
|
|
949
949
|
|
|
950
950
|
/* style inject shadow dom */
|
|
951
951
|
|
|
952
952
|
|
|
953
953
|
|
|
954
|
-
const __vue_component__$
|
|
955
|
-
{ render: __vue_render__$
|
|
956
|
-
__vue_inject_styles__$
|
|
957
|
-
__vue_script__$
|
|
958
|
-
__vue_scope_id__$
|
|
959
|
-
__vue_is_functional_template__$
|
|
960
|
-
__vue_module_identifier__$
|
|
954
|
+
const __vue_component__$a = /*#__PURE__*/normalizeComponent(
|
|
955
|
+
{ render: __vue_render__$a, staticRenderFns: __vue_staticRenderFns__$a },
|
|
956
|
+
__vue_inject_styles__$a,
|
|
957
|
+
__vue_script__$a,
|
|
958
|
+
__vue_scope_id__$a,
|
|
959
|
+
__vue_is_functional_template__$a,
|
|
960
|
+
__vue_module_identifier__$a,
|
|
961
961
|
false,
|
|
962
962
|
createInjector,
|
|
963
963
|
undefined,
|
|
964
964
|
undefined
|
|
965
965
|
);
|
|
966
966
|
|
|
967
|
-
var FillBlank = __vue_component__$
|
|
967
|
+
var FillBlank = __vue_component__$a;
|
|
968
968
|
|
|
969
969
|
var defaultLang = {
|
|
970
970
|
survey_response: {
|
|
@@ -1045,7 +1045,7 @@ var LocaleMixin = Vue.extend({
|
|
|
1045
1045
|
},
|
|
1046
1046
|
});
|
|
1047
1047
|
|
|
1048
|
-
var script$
|
|
1048
|
+
var script$9 = Vue.extend({
|
|
1049
1049
|
name: "star",
|
|
1050
1050
|
mixins: [LocaleMixin],
|
|
1051
1051
|
props: {
|
|
@@ -1071,20 +1071,20 @@ var script$8 = Vue.extend({
|
|
|
1071
1071
|
});
|
|
1072
1072
|
|
|
1073
1073
|
/* script */
|
|
1074
|
-
const __vue_script__$
|
|
1074
|
+
const __vue_script__$9 = script$9;
|
|
1075
1075
|
|
|
1076
1076
|
/* template */
|
|
1077
|
-
var __vue_render__$
|
|
1078
|
-
var __vue_staticRenderFns__$
|
|
1077
|
+
var __vue_render__$9 = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('span',{staticClass:"desc"},[_vm._v(_vm._s(_vm.getDesc()))])};
|
|
1078
|
+
var __vue_staticRenderFns__$9 = [];
|
|
1079
1079
|
|
|
1080
1080
|
/* style */
|
|
1081
|
-
const __vue_inject_styles__$
|
|
1081
|
+
const __vue_inject_styles__$9 = undefined;
|
|
1082
1082
|
/* scoped */
|
|
1083
|
-
const __vue_scope_id__$
|
|
1083
|
+
const __vue_scope_id__$9 = undefined;
|
|
1084
1084
|
/* module identifier */
|
|
1085
|
-
const __vue_module_identifier__$
|
|
1085
|
+
const __vue_module_identifier__$9 = undefined;
|
|
1086
1086
|
/* functional template */
|
|
1087
|
-
const __vue_is_functional_template__$
|
|
1087
|
+
const __vue_is_functional_template__$9 = false;
|
|
1088
1088
|
/* style inject */
|
|
1089
1089
|
|
|
1090
1090
|
/* style inject SSR */
|
|
@@ -1093,20 +1093,20 @@ var __vue_staticRenderFns__$8 = [];
|
|
|
1093
1093
|
|
|
1094
1094
|
|
|
1095
1095
|
|
|
1096
|
-
const __vue_component__$
|
|
1097
|
-
{ render: __vue_render__$
|
|
1098
|
-
__vue_inject_styles__$
|
|
1099
|
-
__vue_script__$
|
|
1100
|
-
__vue_scope_id__$
|
|
1101
|
-
__vue_is_functional_template__$
|
|
1102
|
-
__vue_module_identifier__$
|
|
1096
|
+
const __vue_component__$9 = /*#__PURE__*/normalizeComponent(
|
|
1097
|
+
{ render: __vue_render__$9, staticRenderFns: __vue_staticRenderFns__$9 },
|
|
1098
|
+
__vue_inject_styles__$9,
|
|
1099
|
+
__vue_script__$9,
|
|
1100
|
+
__vue_scope_id__$9,
|
|
1101
|
+
__vue_is_functional_template__$9,
|
|
1102
|
+
__vue_module_identifier__$9,
|
|
1103
1103
|
false,
|
|
1104
1104
|
undefined,
|
|
1105
1105
|
undefined,
|
|
1106
1106
|
undefined
|
|
1107
1107
|
);
|
|
1108
1108
|
|
|
1109
|
-
var Star = __vue_component__$
|
|
1109
|
+
var Star = __vue_component__$9;
|
|
1110
1110
|
|
|
1111
1111
|
class ExprEvaluationQuestion {
|
|
1112
1112
|
questions;
|
|
@@ -1218,7 +1218,7 @@ class ExprEvaluationQuestion {
|
|
|
1218
1218
|
}
|
|
1219
1219
|
|
|
1220
1220
|
const SPLIT_LENGTH = 50;
|
|
1221
|
-
var script$
|
|
1221
|
+
var script$8 = Vue.extend({
|
|
1222
1222
|
name: "expr-if",
|
|
1223
1223
|
components: { Tooltip },
|
|
1224
1224
|
mixins: [LocaleMixin],
|
|
@@ -1303,11 +1303,59 @@ var script$7 = Vue.extend({
|
|
|
1303
1303
|
},
|
|
1304
1304
|
});
|
|
1305
1305
|
|
|
1306
|
+
/* script */
|
|
1307
|
+
const __vue_script__$8 = script$8;
|
|
1308
|
+
|
|
1309
|
+
/* template */
|
|
1310
|
+
var __vue_render__$8 = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('Tooltip',{attrs:{"max-width":"200"}},[_c('span',{attrs:{"slot":"content"},domProps:{"innerHTML":_vm._s(this.descTitle)},slot:"content"}),_vm._v(" "),_c('span',{staticClass:"desc",domProps:{"innerHTML":_vm._s(this.desc)}})])};
|
|
1311
|
+
var __vue_staticRenderFns__$8 = [];
|
|
1312
|
+
|
|
1313
|
+
/* style */
|
|
1314
|
+
const __vue_inject_styles__$8 = undefined;
|
|
1315
|
+
/* scoped */
|
|
1316
|
+
const __vue_scope_id__$8 = undefined;
|
|
1317
|
+
/* module identifier */
|
|
1318
|
+
const __vue_module_identifier__$8 = undefined;
|
|
1319
|
+
/* functional template */
|
|
1320
|
+
const __vue_is_functional_template__$8 = false;
|
|
1321
|
+
/* style inject */
|
|
1322
|
+
|
|
1323
|
+
/* style inject SSR */
|
|
1324
|
+
|
|
1325
|
+
/* style inject shadow dom */
|
|
1326
|
+
|
|
1327
|
+
|
|
1328
|
+
|
|
1329
|
+
const __vue_component__$8 = /*#__PURE__*/normalizeComponent(
|
|
1330
|
+
{ render: __vue_render__$8, staticRenderFns: __vue_staticRenderFns__$8 },
|
|
1331
|
+
__vue_inject_styles__$8,
|
|
1332
|
+
__vue_script__$8,
|
|
1333
|
+
__vue_scope_id__$8,
|
|
1334
|
+
__vue_is_functional_template__$8,
|
|
1335
|
+
__vue_module_identifier__$8,
|
|
1336
|
+
false,
|
|
1337
|
+
undefined,
|
|
1338
|
+
undefined,
|
|
1339
|
+
undefined
|
|
1340
|
+
);
|
|
1341
|
+
|
|
1342
|
+
var If = __vue_component__$8;
|
|
1343
|
+
|
|
1344
|
+
var script$7 = Vue.extend({
|
|
1345
|
+
name: "expr-else",
|
|
1346
|
+
mixins: [LocaleMixin],
|
|
1347
|
+
props: {
|
|
1348
|
+
conditions: {
|
|
1349
|
+
type: Array,
|
|
1350
|
+
},
|
|
1351
|
+
},
|
|
1352
|
+
});
|
|
1353
|
+
|
|
1306
1354
|
/* script */
|
|
1307
1355
|
const __vue_script__$7 = script$7;
|
|
1308
1356
|
|
|
1309
1357
|
/* template */
|
|
1310
|
-
var __vue_render__$7 = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('
|
|
1358
|
+
var __vue_render__$7 = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('p',{staticClass:"desc",domProps:{"innerHTML":_vm._s(_vm.t('survey_creator.question.evaluation.condition.other'))}})};
|
|
1311
1359
|
var __vue_staticRenderFns__$7 = [];
|
|
1312
1360
|
|
|
1313
1361
|
/* style */
|
|
@@ -1339,23 +1387,27 @@ var __vue_staticRenderFns__$7 = [];
|
|
|
1339
1387
|
undefined
|
|
1340
1388
|
);
|
|
1341
1389
|
|
|
1342
|
-
var
|
|
1390
|
+
var Else = __vue_component__$7;
|
|
1343
1391
|
|
|
1344
1392
|
var script$6 = Vue.extend({
|
|
1345
|
-
name: "expr
|
|
1346
|
-
mixins: [LocaleMixin],
|
|
1393
|
+
name: "expr",
|
|
1347
1394
|
props: {
|
|
1348
|
-
|
|
1349
|
-
type:
|
|
1395
|
+
item: {
|
|
1396
|
+
type: Object,
|
|
1397
|
+
required: true,
|
|
1350
1398
|
},
|
|
1351
1399
|
},
|
|
1400
|
+
components: {
|
|
1401
|
+
IF: If,
|
|
1402
|
+
ELSE: Else,
|
|
1403
|
+
},
|
|
1352
1404
|
});
|
|
1353
1405
|
|
|
1354
1406
|
/* script */
|
|
1355
1407
|
const __vue_script__$6 = script$6;
|
|
1356
1408
|
|
|
1357
1409
|
/* template */
|
|
1358
|
-
var __vue_render__$6 = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c(
|
|
1410
|
+
var __vue_render__$6 = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c(_vm.item.type,{tag:"component",attrs:{"conditions":_vm.item.conditions}})};
|
|
1359
1411
|
var __vue_staticRenderFns__$6 = [];
|
|
1360
1412
|
|
|
1361
1413
|
/* style */
|
|
@@ -1387,19 +1439,42 @@ var __vue_staticRenderFns__$6 = [];
|
|
|
1387
1439
|
undefined
|
|
1388
1440
|
);
|
|
1389
1441
|
|
|
1390
|
-
var
|
|
1442
|
+
var Expr = __vue_component__$6;
|
|
1391
1443
|
|
|
1392
1444
|
var script$5 = Vue.extend({
|
|
1393
|
-
name: "
|
|
1445
|
+
name: "Evaluation",
|
|
1446
|
+
components: {
|
|
1447
|
+
Row,
|
|
1448
|
+
Col,
|
|
1449
|
+
Card,
|
|
1450
|
+
Icon,
|
|
1451
|
+
Tooltip,
|
|
1452
|
+
STAR: Star,
|
|
1453
|
+
EXPR: Expr,
|
|
1454
|
+
},
|
|
1455
|
+
mixins: [LocaleMixin],
|
|
1456
|
+
inject: ["$rootComponent"],
|
|
1394
1457
|
props: {
|
|
1395
|
-
|
|
1458
|
+
question: {
|
|
1459
|
+
type: Object,
|
|
1460
|
+
required: true,
|
|
1461
|
+
},
|
|
1462
|
+
answer: {
|
|
1396
1463
|
type: Object,
|
|
1397
1464
|
required: true,
|
|
1398
1465
|
},
|
|
1399
1466
|
},
|
|
1400
|
-
|
|
1401
|
-
|
|
1402
|
-
|
|
1467
|
+
methods: {
|
|
1468
|
+
iconType(id) {
|
|
1469
|
+
return this.answer.answer == id
|
|
1470
|
+
? "ios-checkmark-circle"
|
|
1471
|
+
: "ios-checkmark-circle-outline";
|
|
1472
|
+
},
|
|
1473
|
+
cardClasses(id) {
|
|
1474
|
+
return this.answer.answer == id
|
|
1475
|
+
? "evaluation-cards evaluation-cards-current"
|
|
1476
|
+
: "evaluation-cards";
|
|
1477
|
+
},
|
|
1403
1478
|
},
|
|
1404
1479
|
});
|
|
1405
1480
|
|
|
@@ -1407,7 +1482,7 @@ var script$5 = Vue.extend({
|
|
|
1407
1482
|
const __vue_script__$5 = script$5;
|
|
1408
1483
|
|
|
1409
1484
|
/* template */
|
|
1410
|
-
var __vue_render__$5 = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c(_vm.item.type,{
|
|
1485
|
+
var __vue_render__$5 = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[(_vm.question.evaluationItems.length > 0)?_c('Row',{attrs:{"type":"flex","justify":"start","gutter":24}},_vm._l((_vm.question.evaluationItems),function(item){return _c('Col',{key:item.id,staticClass:"evaluation-item",attrs:{"xs":24,"sm":_vm.$rootComponent.layout === 'vertical' ? 24 : 6,"xl":_vm.$rootComponent.layout === 'vertical' ? 24 : 6,"md":_vm.$rootComponent.layout === 'vertical' ? 24 : 6,"lg":_vm.$rootComponent.layout === 'vertical' ? 24 : 6}},[_c('Card',{class:_vm.cardClasses(item.id),attrs:{"dis-hover":""}},[_c('div',{staticClass:"card-title",attrs:{"slot":"title"},slot:"title"},[_c('Icon',{staticClass:"icon",attrs:{"type":_vm.iconType(item.id),"size":36}})],1),_vm._v(" "),_c('div',{staticClass:"card-content"},[_c('Tooltip',{attrs:{"max-width":"200"}},[_c('p',{attrs:{"slot":"content"},slot:"content"},[_vm._v(_vm._s(_vm.i18nText(item.text)))]),_vm._v(" "),_c('p',{staticClass:"text"},[_vm._v(_vm._s(_vm.i18nText(item.text)))])]),_vm._v(" "),_c(_vm.question.options.evaluationType,{tag:"component",attrs:{"item":item}})],1)])],1)}),1):_vm._e()],1)};
|
|
1411
1486
|
var __vue_staticRenderFns__$5 = [];
|
|
1412
1487
|
|
|
1413
1488
|
/* style */
|
|
@@ -1439,41 +1514,71 @@ var __vue_staticRenderFns__$5 = [];
|
|
|
1439
1514
|
undefined
|
|
1440
1515
|
);
|
|
1441
1516
|
|
|
1442
|
-
var
|
|
1517
|
+
var Evaluation = __vue_component__$5;
|
|
1443
1518
|
|
|
1444
1519
|
var script$4 = Vue.extend({
|
|
1445
|
-
name: "
|
|
1446
|
-
components: {
|
|
1447
|
-
Row,
|
|
1448
|
-
Col,
|
|
1449
|
-
Card,
|
|
1450
|
-
Icon,
|
|
1451
|
-
Tooltip,
|
|
1452
|
-
STAR: Star,
|
|
1453
|
-
EXPR: Expr,
|
|
1454
|
-
},
|
|
1455
|
-
mixins: [LocaleMixin],
|
|
1456
|
-
inject: ["$rootComponent"],
|
|
1520
|
+
name: "slider-input-number",
|
|
1521
|
+
components: { Slider, InputNumber, FormItem },
|
|
1457
1522
|
props: {
|
|
1458
|
-
|
|
1459
|
-
type:
|
|
1523
|
+
value: {
|
|
1524
|
+
type: Number,
|
|
1525
|
+
},
|
|
1526
|
+
required: {
|
|
1527
|
+
type: Boolean,
|
|
1528
|
+
default: true,
|
|
1529
|
+
},
|
|
1530
|
+
formItemProp: {
|
|
1531
|
+
type: String,
|
|
1532
|
+
},
|
|
1533
|
+
requiredDesc: {
|
|
1534
|
+
type: String,
|
|
1535
|
+
},
|
|
1536
|
+
min: {
|
|
1537
|
+
type: Number,
|
|
1538
|
+
default: 0,
|
|
1460
1539
|
required: true,
|
|
1461
1540
|
},
|
|
1462
|
-
|
|
1463
|
-
type:
|
|
1541
|
+
max: {
|
|
1542
|
+
type: Number,
|
|
1543
|
+
default: 0,
|
|
1544
|
+
required: true,
|
|
1545
|
+
},
|
|
1546
|
+
precision: {
|
|
1547
|
+
type: Number,
|
|
1548
|
+
default: 1,
|
|
1464
1549
|
required: true,
|
|
1465
1550
|
},
|
|
1551
|
+
sliderStep: {
|
|
1552
|
+
type: Number,
|
|
1553
|
+
required: true,
|
|
1554
|
+
default: 1,
|
|
1555
|
+
},
|
|
1556
|
+
disabled: {
|
|
1557
|
+
type: Boolean,
|
|
1558
|
+
default: false,
|
|
1559
|
+
},
|
|
1560
|
+
showLabel: {
|
|
1561
|
+
type: Boolean,
|
|
1562
|
+
default: false,
|
|
1563
|
+
},
|
|
1564
|
+
minLabel: {
|
|
1565
|
+
type: String,
|
|
1566
|
+
},
|
|
1567
|
+
maxLabel: {
|
|
1568
|
+
type: String,
|
|
1569
|
+
},
|
|
1570
|
+
},
|
|
1571
|
+
data() {
|
|
1572
|
+
return {
|
|
1573
|
+
inputValue: null,
|
|
1574
|
+
};
|
|
1466
1575
|
},
|
|
1467
1576
|
methods: {
|
|
1468
|
-
|
|
1469
|
-
|
|
1470
|
-
? "ios-checkmark-circle"
|
|
1471
|
-
: "ios-checkmark-circle-outline";
|
|
1577
|
+
onSliderChange(value) {
|
|
1578
|
+
this.$emit("input", value);
|
|
1472
1579
|
},
|
|
1473
|
-
|
|
1474
|
-
|
|
1475
|
-
? "evaluation-cards evaluation-cards-current"
|
|
1476
|
-
: "evaluation-cards";
|
|
1580
|
+
onInputChange(value) {
|
|
1581
|
+
this.$emit("input", value);
|
|
1477
1582
|
},
|
|
1478
1583
|
},
|
|
1479
1584
|
});
|
|
@@ -1482,19 +1587,25 @@ var script$4 = Vue.extend({
|
|
|
1482
1587
|
const __vue_script__$4 = script$4;
|
|
1483
1588
|
|
|
1484
1589
|
/* template */
|
|
1485
|
-
var __vue_render__$4 = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[
|
|
1590
|
+
var __vue_render__$4 = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('div',{staticClass:"slider-container"},[_c('Slider',{staticClass:"slider",attrs:{"min":_vm.min,"max":_vm.max,"step":_vm.sliderStep,"show-tips":"always","disabled":_vm.disabled},on:{"on-change":_vm.onSliderChange},model:{value:(_vm.inputValue),callback:function ($$v) {_vm.inputValue=$$v;},expression:"inputValue"}}),_vm._v(" "),_c('FormItem',{staticStyle:{"display":"flex"},attrs:{"prop":_vm.formItemProp,"rules":[
|
|
1591
|
+
{
|
|
1592
|
+
required: _vm.required,
|
|
1593
|
+
message: _vm.requiredDesc,
|
|
1594
|
+
} ]}},[_c('InputNumber',{staticStyle:{"float":"left"},attrs:{"precision":_vm.precision,"min":_vm.min,"max":_vm.max,"readonly":_vm.disabled},on:{"on-change":_vm.onInputChange},model:{value:(_vm.inputValue),callback:function ($$v) {_vm.inputValue=$$v;},expression:"inputValue"}})],1)],1),_vm._v(" "),_c('div',{directives:[{name:"show",rawName:"v-show",value:(_vm.showLabel),expression:"showLabel"}],staticClass:"text-desc"},[_c('span',[_vm._v(_vm._s(_vm.minLabel))]),_vm._v(" "),_c('span',[_vm._v(_vm._s(_vm.maxLabel))])])])};
|
|
1486
1595
|
var __vue_staticRenderFns__$4 = [];
|
|
1487
1596
|
|
|
1488
1597
|
/* style */
|
|
1489
|
-
const __vue_inject_styles__$4 =
|
|
1598
|
+
const __vue_inject_styles__$4 = function (inject) {
|
|
1599
|
+
if (!inject) return
|
|
1600
|
+
inject("data-v-5a931538_0", { source: ".slider-container[data-v-5a931538]{margin-top:16px;margin-bottom:16px;width:100%;display:flex}.slider-container[data-v-5a931538] .ivu-form-item{margin-bottom:unset}.slider[data-v-5a931538]{width:100%;margin-left:16px;margin-right:16px}.text-desc[data-v-5a931538]{display:flex;justify-content:space-between;width:100%;padding-right:80px}", map: undefined, media: undefined });
|
|
1601
|
+
|
|
1602
|
+
};
|
|
1490
1603
|
/* scoped */
|
|
1491
|
-
const __vue_scope_id__$4 =
|
|
1604
|
+
const __vue_scope_id__$4 = "data-v-5a931538";
|
|
1492
1605
|
/* module identifier */
|
|
1493
1606
|
const __vue_module_identifier__$4 = undefined;
|
|
1494
1607
|
/* functional template */
|
|
1495
1608
|
const __vue_is_functional_template__$4 = false;
|
|
1496
|
-
/* style inject */
|
|
1497
|
-
|
|
1498
1609
|
/* style inject SSR */
|
|
1499
1610
|
|
|
1500
1611
|
/* style inject shadow dom */
|
|
@@ -1509,12 +1620,12 @@ var __vue_staticRenderFns__$4 = [];
|
|
|
1509
1620
|
__vue_is_functional_template__$4,
|
|
1510
1621
|
__vue_module_identifier__$4,
|
|
1511
1622
|
false,
|
|
1512
|
-
|
|
1623
|
+
createInjector,
|
|
1513
1624
|
undefined,
|
|
1514
1625
|
undefined
|
|
1515
1626
|
);
|
|
1516
1627
|
|
|
1517
|
-
var
|
|
1628
|
+
var SliderInputNumber = __vue_component__$4;
|
|
1518
1629
|
|
|
1519
1630
|
var script$3 = Vue.extend({
|
|
1520
1631
|
name: "scoring",
|
|
@@ -1522,10 +1633,8 @@ var script$3 = Vue.extend({
|
|
|
1522
1633
|
inject: ["responseStatus", "$rootComponent"],
|
|
1523
1634
|
components: {
|
|
1524
1635
|
Row,
|
|
1525
|
-
Slider,
|
|
1526
|
-
FormItem,
|
|
1527
|
-
InputNumber,
|
|
1528
1636
|
Col,
|
|
1637
|
+
SliderInputNumber,
|
|
1529
1638
|
},
|
|
1530
1639
|
props: {
|
|
1531
1640
|
question: {
|
|
@@ -1606,39 +1715,27 @@ var script$3 = Vue.extend({
|
|
|
1606
1715
|
const __vue_script__$3 = script$3;
|
|
1607
1716
|
|
|
1608
1717
|
/* template */
|
|
1609
|
-
var __vue_render__$3 = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[(_vm.showQuestionScoreSlider)?_c('Row',[_c('Col',{attrs:{"xs":24,"sm":_vm.$rootComponent.layout === 'vertical' ? 24 : 12,"xl":_vm.$rootComponent.layout === 'vertical' ? 24 : 12,"md":_vm.$rootComponent.layout === 'vertical' ? 24 : 12,"lg":_vm.$rootComponent.layout === 'vertical' ? 24 : 12}},[_c('
|
|
1610
|
-
|
|
1611
|
-
|
|
1612
|
-
|
|
1613
|
-
|
|
1614
|
-
} ]}},[_c('InputNumber',{staticStyle:{"float":"left"},attrs:{"precision":_vm.question.options.decimalPlaces,"min":_vm.question.options.minRange,"max":_vm.question.options.maxRange},model:{value:(_vm.value.score),callback:function ($$v) {_vm.$set(_vm.value, "score", $$v);},expression:"value.score"}})],1)],1),_vm._v(" "),_c('div',{directives:[{name:"show",rawName:"v-show",value:(_vm.extremeValueLabelSelected),expression:"extremeValueLabelSelected"}],staticClass:"text-desc"},[_c('span',[_vm._v("\n "+_vm._s(_vm.t(
|
|
1718
|
+
var __vue_render__$3 = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[(_vm.showQuestionScoreSlider)?_c('Row',[_c('Col',{attrs:{"xs":24,"sm":_vm.$rootComponent.layout === 'vertical' ? 24 : 12,"xl":_vm.$rootComponent.layout === 'vertical' ? 24 : 12,"md":_vm.$rootComponent.layout === 'vertical' ? 24 : 12,"lg":_vm.$rootComponent.layout === 'vertical' ? 24 : 12}},[_c('slider-input-number',{attrs:{"min":_vm.question.options.minRange,"max":_vm.question.options.maxRange,"slider-step":_vm.sliderStep,"form-item-prop":_vm.answerProp,"disabled":_vm.question.options.readonly || _vm.question.options.disabled,"precision":_vm.question.options.decimalPlaces,"show-label":_vm.extremeValueLabelSelected,"required":_vm.question.options.required && !_vm.question.options.disabled,"required-desc":_vm.t('survey_response.question.question_required'),"min-label":_vm.t(
|
|
1719
|
+
("survey_creator.question.scoring.extreme_value_labels." + (_vm.question.options.extremeValueLabel) + ".minValue")
|
|
1720
|
+
),"max-label":_vm.t(
|
|
1721
|
+
("survey_creator.question.scoring.extreme_value_labels." + (_vm.question.options.extremeValueLabel) + ".maxValue")
|
|
1722
|
+
)},model:{value:(_vm.value.score),callback:function ($$v) {_vm.$set(_vm.value, "score", $$v);},expression:"value.score"}})],1)],1):_vm._l((_vm.question.subQuestions),function(subQuestion,subIndex){return _c('div',{key:subIndex,staticClass:"sub-question"},[_c('span',{staticClass:"number"},[_vm._v("\n "+_vm._s(_vm.question.header.number)+"-"+_vm._s(subQuestion.number)+".")]),_vm._v(" "),_c('span',{staticClass:"title"},[_vm._v(" "+_vm._s(_vm.i18nText(subQuestion.text))+" ")]),_vm._v(" "),_c('Row',[_c('Col',{attrs:{"xs":24,"sm":_vm.$rootComponent.layout === 'vertical' ? 24 : 12,"xl":_vm.$rootComponent.layout === 'vertical' ? 24 : 12,"md":_vm.$rootComponent.layout === 'vertical' ? 24 : 12,"lg":_vm.$rootComponent.layout === 'vertical' ? 24 : 12}},[_c('slider-input-number',{attrs:{"min":_vm.question.options.minRange,"max":_vm.question.options.maxRange,"slider-step":_vm.sliderStep,"form-item-prop":_vm.subAnswerProp(subIndex),"disabled":subQuestion.options.readonly || _vm.question.options.disabled,"precision":_vm.question.options.decimalPlaces,"show-label":_vm.extremeValueLabelSelected,"required":_vm.question.options.required && !_vm.question.options.disabled,"required-desc":_vm.t('survey_response.question.question_required'),"min-label":_vm.t(
|
|
1615
1723
|
("survey_creator.question.scoring.extreme_value_labels." + (_vm.question.options.extremeValueLabel) + ".minValue")
|
|
1616
|
-
)
|
|
1724
|
+
),"max-label":_vm.t(
|
|
1617
1725
|
("survey_creator.question.scoring.extreme_value_labels." + (_vm.question.options.extremeValueLabel) + ".maxValue")
|
|
1618
|
-
)
|
|
1619
|
-
{
|
|
1620
|
-
required:
|
|
1621
|
-
_vm.question.options.required && !_vm.question.options.disabled,
|
|
1622
|
-
message: _vm.t('survey_response.question.question_required'),
|
|
1623
|
-
} ]}},[_c('InputNumber',{staticStyle:{"float":"left"},attrs:{"precision":_vm.question.options.decimalPlaces,"min":_vm.question.options.minRange,"max":_vm.question.options.maxRange},model:{value:(_vm.value.answer[subIndex].score),callback:function ($$v) {_vm.$set(_vm.value.answer[subIndex], "score", $$v);},expression:"value.answer[subIndex].score"}})],1)],1),_vm._v(" "),_c('div',{directives:[{name:"show",rawName:"v-show",value:(_vm.extremeValueLabelSelected),expression:"extremeValueLabelSelected"}],staticClass:"text-desc"},[_c('span',[_vm._v("\n "+_vm._s(_vm.t(
|
|
1624
|
-
("survey_creator.question.scoring.extreme_value_labels." + (_vm.question.options.extremeValueLabel) + ".minValue")
|
|
1625
|
-
))+"\n ")]),_vm._v(" "),_c('span',[_vm._v("\n "+_vm._s(_vm.t(
|
|
1626
|
-
("survey_creator.question.scoring.extreme_value_labels." + (_vm.question.options.extremeValueLabel) + ".maxValue")
|
|
1627
|
-
))+"\n ")])])])],1)],1)})],2)};
|
|
1726
|
+
)},model:{value:(_vm.value.answer[subIndex].score),callback:function ($$v) {_vm.$set(_vm.value.answer[subIndex], "score", $$v);},expression:"value.answer[subIndex].score"}})],1)],1)],1)})],2)};
|
|
1628
1727
|
var __vue_staticRenderFns__$3 = [];
|
|
1629
1728
|
|
|
1630
1729
|
/* style */
|
|
1631
|
-
const __vue_inject_styles__$3 =
|
|
1632
|
-
if (!inject) return
|
|
1633
|
-
inject("data-v-2ca59b8e_0", { source: ".slider-container[data-v-2ca59b8e]{margin-top:16px;margin-bottom:16px;width:100%;display:flex}.slider-container[data-v-2ca59b8e] .ivu-form-item{margin-bottom:unset}.slider[data-v-2ca59b8e]{width:100%;margin-left:16px;margin-right:16px}.text-desc[data-v-2ca59b8e]{display:flex;justify-content:space-between;width:100%;padding-right:80px}", map: undefined, media: undefined });
|
|
1634
|
-
|
|
1635
|
-
};
|
|
1730
|
+
const __vue_inject_styles__$3 = undefined;
|
|
1636
1731
|
/* scoped */
|
|
1637
|
-
const __vue_scope_id__$3 =
|
|
1732
|
+
const __vue_scope_id__$3 = undefined;
|
|
1638
1733
|
/* module identifier */
|
|
1639
1734
|
const __vue_module_identifier__$3 = undefined;
|
|
1640
1735
|
/* functional template */
|
|
1641
1736
|
const __vue_is_functional_template__$3 = false;
|
|
1737
|
+
/* style inject */
|
|
1738
|
+
|
|
1642
1739
|
/* style inject SSR */
|
|
1643
1740
|
|
|
1644
1741
|
/* style inject shadow dom */
|
|
@@ -1653,7 +1750,7 @@ var __vue_staticRenderFns__$3 = [];
|
|
|
1653
1750
|
__vue_is_functional_template__$3,
|
|
1654
1751
|
__vue_module_identifier__$3,
|
|
1655
1752
|
false,
|
|
1656
|
-
|
|
1753
|
+
undefined,
|
|
1657
1754
|
undefined,
|
|
1658
1755
|
undefined
|
|
1659
1756
|
);
|