@wg-npm/survey-response 0.5.150 → 0.5.152

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.
@@ -1594,17 +1594,17 @@ var __vue_render__$4 = function () {var _vm=this;var _h=_vm.$createElement;var _
1594
1594
  {
1595
1595
  required: _vm.required,
1596
1596
  message: _vm.requiredDesc,
1597
- } ]}},[_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.inputNumberValue),callback:function ($$v) {_vm.inputNumberValue=$$v;},expression:"inputNumberValue"}})],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))])])])};
1597
+ } ]}},[_c('InputNumber',{staticStyle:{"float":"left"},attrs:{"precision":_vm.precision,"step":_vm.sliderStep,"min":_vm.min,"max":_vm.max,"readonly":_vm.disabled},on:{"on-change":_vm.onInputChange},model:{value:(_vm.inputNumberValue),callback:function ($$v) {_vm.inputNumberValue=$$v;},expression:"inputNumberValue"}})],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))])])])};
1598
1598
  var __vue_staticRenderFns__$4 = [];
1599
1599
 
1600
1600
  /* style */
1601
1601
  const __vue_inject_styles__$4 = function (inject) {
1602
1602
  if (!inject) return
1603
- inject("data-v-171b6ab8_0", { source: ".slider-container[data-v-171b6ab8]{margin-top:16px;margin-bottom:16px;width:100%;display:flex}.slider-container[data-v-171b6ab8] .ivu-form-item{margin-bottom:unset}.slider[data-v-171b6ab8]{width:100%;margin-left:16px;margin-right:16px}.text-desc[data-v-171b6ab8]{display:flex;justify-content:space-between;width:100%;padding-right:80px}", map: undefined, media: undefined });
1603
+ inject("data-v-e1e453ea_0", { source: ".slider-container[data-v-e1e453ea]{margin-top:16px;margin-bottom:16px;width:100%;display:flex}.slider-container[data-v-e1e453ea] .ivu-form-item{margin-bottom:unset}.slider[data-v-e1e453ea]{width:100%;margin-left:8px;margin-right:16px}.text-desc[data-v-e1e453ea]{display:flex;justify-content:space-between;width:100%;padding-right:80px}", map: undefined, media: undefined });
1604
1604
 
1605
1605
  };
1606
1606
  /* scoped */
1607
- const __vue_scope_id__$4 = "data-v-171b6ab8";
1607
+ const __vue_scope_id__$4 = "data-v-e1e453ea";
1608
1608
  /* module identifier */
1609
1609
  const __vue_module_identifier__$4 = undefined;
1610
1610
  /* functional template */
@@ -1722,7 +1722,7 @@ var __vue_render__$3 = function () {var _vm=this;var _h=_vm.$createElement;var _
1722
1722
  ("survey_creator.question.scoring.extreme_value_labels." + (_vm.question.options.extremeValueLabel) + ".minValue")
1723
1723
  ),"max-label":_vm.t(
1724
1724
  ("survey_creator.question.scoring.extreme_value_labels." + (_vm.question.options.extremeValueLabel) + ".maxValue")
1725
- )},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(
1725
+ )},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",class:subIndex > 0 ? 'score-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(
1726
1726
  ("survey_creator.question.scoring.extreme_value_labels." + (_vm.question.options.extremeValueLabel) + ".minValue")
1727
1727
  ),"max-label":_vm.t(
1728
1728
  ("survey_creator.question.scoring.extreme_value_labels." + (_vm.question.options.extremeValueLabel) + ".maxValue")
@@ -1730,15 +1730,17 @@ var __vue_render__$3 = function () {var _vm=this;var _h=_vm.$createElement;var _
1730
1730
  var __vue_staticRenderFns__$3 = [];
1731
1731
 
1732
1732
  /* style */
1733
- const __vue_inject_styles__$3 = undefined;
1733
+ const __vue_inject_styles__$3 = function (inject) {
1734
+ if (!inject) return
1735
+ inject("data-v-cd4cd85a_0", { source: ".score-sub-question[data-v-cd4cd85a]{padding-top:24px}", map: undefined, media: undefined });
1736
+
1737
+ };
1734
1738
  /* scoped */
1735
- const __vue_scope_id__$3 = undefined;
1739
+ const __vue_scope_id__$3 = "data-v-cd4cd85a";
1736
1740
  /* module identifier */
1737
1741
  const __vue_module_identifier__$3 = undefined;
1738
1742
  /* functional template */
1739
1743
  const __vue_is_functional_template__$3 = false;
1740
- /* style inject */
1741
-
1742
1744
  /* style inject SSR */
1743
1745
 
1744
1746
  /* style inject shadow dom */
@@ -1753,7 +1755,7 @@ var __vue_staticRenderFns__$3 = [];
1753
1755
  __vue_is_functional_template__$3,
1754
1756
  __vue_module_identifier__$3,
1755
1757
  false,
1756
- undefined,
1758
+ createInjector,
1757
1759
  undefined,
1758
1760
  undefined
1759
1761
  );
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wg-npm/survey-response",
3
- "version": "0.5.150",
3
+ "version": "0.5.152",
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.150",
16
- "@wg-npm/survey-service-api": "0.5.150",
15
+ "@wg-npm/survey-core": "0.5.152",
16
+ "@wg-npm/survey-service-api": "0.5.152",
17
17
  "axios": "^0.19.2",
18
18
  "deepmerge": "^4.2.2",
19
19
  "lodash": "^4.17.15",
@@ -34,8 +34,8 @@
34
34
  "@typescript-eslint/parser": "^3.6.0",
35
35
  "@vue/eslint-config-prettier": "^6.0.0",
36
36
  "@vue/eslint-config-typescript": "^5.0.2",
37
- "@wg-npm/survey-core": "0.5.150",
38
- "@wg-npm/survey-service-api": "0.5.150",
37
+ "@wg-npm/survey-core": "0.5.152",
38
+ "@wg-npm/survey-service-api": "0.5.152",
39
39
  "acorn": "^7.3.1",
40
40
  "axios": "^0.19.2",
41
41
  "babelrc-rollup": "^3.0.0",
@@ -38,6 +38,7 @@
38
38
  v-for="(subQuestion, subIndex) in question.subQuestions"
39
39
  :key="subIndex"
40
40
  class="sub-question"
41
+ :class="subIndex > 0 ? 'score-sub-question' : ''"
41
42
  >
42
43
  <span class="number">
43
44
  {{ question.header.number }}-{{ subQuestion.number }}.</span
@@ -182,3 +183,9 @@ export default Vue.extend({
182
183
  },
183
184
  });
184
185
  </script>
186
+
187
+ <style lang="less" scoped>
188
+ .score-sub-question {
189
+ padding-top: 24px;
190
+ }
191
+ </style>
@@ -25,6 +25,7 @@
25
25
  style="float: left"
26
26
  v-model="inputNumberValue"
27
27
  :precision="precision"
28
+ :step="sliderStep"
28
29
  :min="min"
29
30
  :max="max"
30
31
  :readonly="disabled"
@@ -128,7 +129,7 @@ export default Vue.extend({
128
129
 
129
130
  .slider {
130
131
  width: 100%;
131
- margin-left: 16px;
132
+ margin-left: 8px;
132
133
  margin-right: 16px;
133
134
  }
134
135