@wg-npm/survey-creator 0.5.140 → 0.5.142
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.
|
@@ -1114,11 +1114,11 @@ var __vue_staticRenderFns__$J = [];
|
|
|
1114
1114
|
/* style */
|
|
1115
1115
|
const __vue_inject_styles__$J = function (inject) {
|
|
1116
1116
|
if (!inject) return
|
|
1117
|
-
inject("data-v-
|
|
1117
|
+
inject("data-v-7735ccc6_0", { source: ".flex[data-v-7735ccc6]{display:flex;align-items:center}.pl-sm[data-v-7735ccc6]{padding-left:4px}", map: undefined, media: undefined });
|
|
1118
1118
|
|
|
1119
1119
|
};
|
|
1120
1120
|
/* scoped */
|
|
1121
|
-
const __vue_scope_id__$J = "data-v-
|
|
1121
|
+
const __vue_scope_id__$J = "data-v-7735ccc6";
|
|
1122
1122
|
/* module identifier */
|
|
1123
1123
|
const __vue_module_identifier__$J = undefined;
|
|
1124
1124
|
/* functional template */
|
|
@@ -2385,30 +2385,32 @@ var script$u = Vue.extend({
|
|
|
2385
2385
|
const __vue_script__$u = script$u;
|
|
2386
2386
|
|
|
2387
2387
|
/* template */
|
|
2388
|
-
var __vue_render__$u = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"question"},[_c('Row',{directives:[{name:"show",rawName:"v-show",value:(_vm.showQuestionScoreSlider),expression:"showQuestionScoreSlider"}]},[_c('div',{
|
|
2388
|
+
var __vue_render__$u = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"question"},[_c('Row',{directives:[{name:"show",rawName:"v-show",value:(_vm.showQuestionScoreSlider),expression:"showQuestionScoreSlider"}]},[_c('div',{staticClass:"slider-container"},[_c('Slider',{staticClass:"slider",attrs:{"min":_vm.question.options.minRange,"max":_vm.question.options.maxRange,"step":_vm.sliderStep,"show-input":"","show-tips":"always"}}),_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(
|
|
2389
2389
|
("survey_creator.question.scoring.extreme_value_labels." + (_vm.question.options.extremeValueLabel) + ".minValue")
|
|
2390
|
-
))+"\n ")]),_vm._v(" "),_c('span',
|
|
2390
|
+
))+"\n ")]),_vm._v(" "),_c('span',[_vm._v("\n "+_vm._s(_vm.t(
|
|
2391
2391
|
("survey_creator.question.scoring.extreme_value_labels." + (_vm.question.options.extremeValueLabel) + ".maxValue")
|
|
2392
2392
|
))+"\n ")])])],1)]),_vm._v(" "),_vm._l((_vm.question.subQuestions),function(subQuestion,index){return _c('div',{key:index},[(!_vm.isPreview)?_c('Divider',{staticClass:"question-type-desc",attrs:{"orientation":"left","size":"small"}},[_vm._v(_vm._s(_vm.t(
|
|
2393
2393
|
"survey_creator.question.sub_questions",
|
|
2394
2394
|
_vm.$rootComponent.currentLanguage
|
|
2395
|
-
))+"\n ")]):_vm._e(),_vm._v(" "),_c('div',{staticClass:"sub-question-title"},[_c('span',{staticClass:"number"},[_vm._v(_vm._s(_vm.question.header.number)+"."+_vm._s(subQuestion.number))]),_vm._v(" "),_c('span',{staticClass:"content"},[_vm._v(_vm._s(_vm._f("translate")(subQuestion.text,true)))]),_vm._v(" "),_c('Row',[_c('div',{
|
|
2395
|
+
))+"\n ")]):_vm._e(),_vm._v(" "),_c('div',{staticClass:"sub-question-title"},[_c('span',{staticClass:"number"},[_vm._v(_vm._s(_vm.question.header.number)+"."+_vm._s(subQuestion.number))]),_vm._v(" "),_c('span',{staticClass:"content"},[_vm._v(_vm._s(_vm._f("translate")(subQuestion.text,true)))]),_vm._v(" "),_c('Row',[_c('div',{staticClass:"slider-container"},[_c('Slider',{staticClass:"slider",attrs:{"min":_vm.question.options.minRange,"max":_vm.question.options.maxRange,"step":_vm.sliderStep,"show-input":"","show-tips":"always"}}),_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(
|
|
2396
2396
|
("survey_creator.question.scoring.extreme_value_labels." + (_vm.question.options.extremeValueLabel) + ".minValue")
|
|
2397
|
-
))+"\n ")]),_vm._v(" "),_c('span',
|
|
2397
|
+
))+"\n ")]),_vm._v(" "),_c('span',[_vm._v("\n "+_vm._s(_vm.t(
|
|
2398
2398
|
("survey_creator.question.scoring.extreme_value_labels." + (_vm.question.options.extremeValueLabel) + ".maxValue")
|
|
2399
2399
|
))+"\n ")])])],1)])],1)],1)})],2)};
|
|
2400
2400
|
var __vue_staticRenderFns__$u = [];
|
|
2401
2401
|
|
|
2402
2402
|
/* style */
|
|
2403
|
-
const __vue_inject_styles__$u =
|
|
2403
|
+
const __vue_inject_styles__$u = function (inject) {
|
|
2404
|
+
if (!inject) return
|
|
2405
|
+
inject("data-v-013e301f_0", { source: ".slider-container[data-v-013e301f]{margin-bottom:18px;width:100%}.slider[data-v-013e301f]{width:85%;margin-left:66px;margin-right:134px;margin-top:16px}.text-desc[data-v-013e301f]{display:flex;justify-content:space-between;width:85%;padding-left:50px}", map: undefined, media: undefined });
|
|
2406
|
+
|
|
2407
|
+
};
|
|
2404
2408
|
/* scoped */
|
|
2405
|
-
const __vue_scope_id__$u =
|
|
2409
|
+
const __vue_scope_id__$u = "data-v-013e301f";
|
|
2406
2410
|
/* module identifier */
|
|
2407
2411
|
const __vue_module_identifier__$u = undefined;
|
|
2408
2412
|
/* functional template */
|
|
2409
2413
|
const __vue_is_functional_template__$u = false;
|
|
2410
|
-
/* style inject */
|
|
2411
|
-
|
|
2412
2414
|
/* style inject SSR */
|
|
2413
2415
|
|
|
2414
2416
|
/* style inject shadow dom */
|
|
@@ -2423,7 +2425,7 @@ var __vue_staticRenderFns__$u = [];
|
|
|
2423
2425
|
__vue_is_functional_template__$u,
|
|
2424
2426
|
__vue_module_identifier__$u,
|
|
2425
2427
|
false,
|
|
2426
|
-
|
|
2428
|
+
createInjector,
|
|
2427
2429
|
undefined,
|
|
2428
2430
|
undefined
|
|
2429
2431
|
);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wg-npm/survey-creator",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.142",
|
|
4
4
|
"description": "",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"scripts": {
|
|
@@ -12,8 +12,8 @@
|
|
|
12
12
|
"lint-fix": "eslint \"**/*.ts\" \"**/*.vue\" --fix --no-error-on-unmatched-pattern"
|
|
13
13
|
},
|
|
14
14
|
"peerDependencies": {
|
|
15
|
-
"@wg-npm/survey-core": "0.5.
|
|
16
|
-
"@wg-npm/survey-service-api": "0.5.
|
|
15
|
+
"@wg-npm/survey-core": "0.5.142",
|
|
16
|
+
"@wg-npm/survey-service-api": "0.5.142",
|
|
17
17
|
"axios": "^0.19.2",
|
|
18
18
|
"camelcase": "^6.0.0",
|
|
19
19
|
"deepmerge": "^4.2.2",
|
|
@@ -38,8 +38,8 @@
|
|
|
38
38
|
"@typescript-eslint/eslint-plugin": "^3.6.0",
|
|
39
39
|
"@typescript-eslint/parser": "^3.6.0",
|
|
40
40
|
"@vue/eslint-config-prettier": "^6.0.0",
|
|
41
|
-
"@wg-npm/survey-core": "0.5.
|
|
42
|
-
"@wg-npm/survey-service-api": "0.5.
|
|
41
|
+
"@wg-npm/survey-core": "0.5.142",
|
|
42
|
+
"@wg-npm/survey-service-api": "0.5.142",
|
|
43
43
|
"acorn": "^7.3.1",
|
|
44
44
|
"axios": "^0.19.2",
|
|
45
45
|
"babelrc-rollup": "^3.0.0",
|
|
@@ -1,31 +1,24 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div class="question">
|
|
3
3
|
<Row v-show="showQuestionScoreSlider">
|
|
4
|
-
<div
|
|
4
|
+
<div class="slider-container">
|
|
5
5
|
<Slider
|
|
6
|
-
|
|
7
|
-
width: 562px;
|
|
8
|
-
margin-left: 66px;
|
|
9
|
-
margin-right: 134px;
|
|
10
|
-
margin-top: 16px;
|
|
11
|
-
"
|
|
6
|
+
class="slider"
|
|
12
7
|
:min="question.options.minRange"
|
|
13
8
|
:max="question.options.maxRange"
|
|
14
9
|
:step="sliderStep"
|
|
15
10
|
show-input
|
|
16
11
|
show-tips="always"
|
|
17
12
|
></Slider>
|
|
18
|
-
<div v-show="extremeValueLabelSelected">
|
|
19
|
-
<span
|
|
13
|
+
<div class="text-desc" v-show="extremeValueLabelSelected">
|
|
14
|
+
<span>
|
|
20
15
|
{{
|
|
21
16
|
t(
|
|
22
17
|
`survey_creator.question.scoring.extreme_value_labels.${question.options.extremeValueLabel}.minValue`
|
|
23
18
|
)
|
|
24
19
|
}}
|
|
25
20
|
</span>
|
|
26
|
-
<span
|
|
27
|
-
style="margin-right: 230px; float: right; align-items: flex-end"
|
|
28
|
-
>
|
|
21
|
+
<span>
|
|
29
22
|
{{
|
|
30
23
|
t(
|
|
31
24
|
`survey_creator.question.scoring.extreme_value_labels.${question.options.extremeValueLabel}.maxValue`
|
|
@@ -55,31 +48,24 @@
|
|
|
55
48
|
<span class="content">{{ subQuestion.text | translate(true) }}</span>
|
|
56
49
|
<!-- slider & input & label -->
|
|
57
50
|
<Row>
|
|
58
|
-
<div
|
|
51
|
+
<div class="slider-container">
|
|
59
52
|
<Slider
|
|
60
|
-
|
|
61
|
-
width: 562px;
|
|
62
|
-
margin-left: 66px;
|
|
63
|
-
margin-right: 134px;
|
|
64
|
-
margin-top: 16px;
|
|
65
|
-
"
|
|
53
|
+
class="slider"
|
|
66
54
|
:min="question.options.minRange"
|
|
67
55
|
:max="question.options.maxRange"
|
|
68
56
|
:step="sliderStep"
|
|
69
57
|
show-input
|
|
70
58
|
show-tips="always"
|
|
71
59
|
></Slider>
|
|
72
|
-
<div v-show="extremeValueLabelSelected">
|
|
73
|
-
<span
|
|
60
|
+
<div class="text-desc" v-show="extremeValueLabelSelected">
|
|
61
|
+
<span>
|
|
74
62
|
{{
|
|
75
63
|
t(
|
|
76
64
|
`survey_creator.question.scoring.extreme_value_labels.${question.options.extremeValueLabel}.minValue`
|
|
77
65
|
)
|
|
78
66
|
}}
|
|
79
67
|
</span>
|
|
80
|
-
<span
|
|
81
|
-
style="margin-right: 230px; float: right; align-items: flex-end"
|
|
82
|
-
>
|
|
68
|
+
<span>
|
|
83
69
|
{{
|
|
84
70
|
t(
|
|
85
71
|
`survey_creator.question.scoring.extreme_value_labels.${question.options.extremeValueLabel}.maxValue`
|
|
@@ -133,3 +119,24 @@ export default Vue.extend({
|
|
|
133
119
|
},
|
|
134
120
|
});
|
|
135
121
|
</script>
|
|
122
|
+
|
|
123
|
+
<style lang="less" scoped>
|
|
124
|
+
.slider-container {
|
|
125
|
+
margin-bottom: 18px;
|
|
126
|
+
width: 100%;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
.slider {
|
|
130
|
+
width: 85%;
|
|
131
|
+
margin-left: 66px;
|
|
132
|
+
margin-right: 134px;
|
|
133
|
+
margin-top: 16px;
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
.text-desc {
|
|
137
|
+
display: flex;
|
|
138
|
+
justify-content: space-between;
|
|
139
|
+
width: 85%;
|
|
140
|
+
padding-left: 50px;
|
|
141
|
+
}
|
|
142
|
+
</style>
|