@wg-npm/survey-response 0.3.22845 → 0.3.22846

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.
@@ -1502,7 +1502,7 @@ var script$2 = Vue.extend({
1502
1502
  : {
1503
1503
  answer: null,
1504
1504
  question_id: question.id,
1505
- score: 0,
1505
+ score: null,
1506
1506
  question_type: "SCORING",
1507
1507
  };
1508
1508
  this.value.answer.push(_answer);
@@ -1534,7 +1534,7 @@ var script$2 = Vue.extend({
1534
1534
  const __vue_script__$2 = script$2;
1535
1535
 
1536
1536
  /* template */
1537
- var __vue_render__$2 = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('Row',{directives:[{name:"show",rawName:"v-show",value:(_vm.showQuestionScoreSlider),expression:"showQuestionScoreSlider"}]},[_c('div',{staticStyle:{"margin-right":"134px","margin-bottom":"18px"}},[_c('FormItem',{staticStyle:{"display":"flex"},attrs:{"prop":("answers[" + _vm.index + "].score"),"rules":[
1537
+ var __vue_render__$2 = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[(_vm.showQuestionScoreSlider)?_c('Row',[_c('div',{staticStyle:{"margin-right":"134px","margin-bottom":"18px"}},[_c('FormItem',{staticStyle:{"display":"flex"},attrs:{"prop":("answers[" + _vm.index + "].score"),"rules":[
1538
1538
  {
1539
1539
  required: _vm.question.options.required && !_vm.question.options.disabled,
1540
1540
  message: _vm.t('survey_response.question.question_required'),
@@ -1542,7 +1542,7 @@ var __vue_render__$2 = function () {var _vm=this;var _h=_vm.$createElement;var _
1542
1542
  ("survey_creator.question.scoring.extreme_value_labels." + (_vm.question.options.extremeValueLabel) + ".minValue")
1543
1543
  ))+"\n ")]),_vm._v(" "),_c('span',{staticStyle:{"float":"right","align-items":"flex-end","margin-right":"88px"}},[_vm._v("\n "+_vm._s(_vm.t(
1544
1544
  ("survey_creator.question.scoring.extreme_value_labels." + (_vm.question.options.extremeValueLabel) + ".maxValue")
1545
- ))+"\n ")])])],1)]),_vm._v(" "),_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('div',{staticStyle:{"margin-right":"134px","margin-bottom":"18px"}},[_c('FormItem',{staticStyle:{"display":"flex"},attrs:{"prop":("answers[" + _vm.index + "].answer[" + subIndex + "].score"),"rules":[
1545
+ ))+"\n ")])])],1)]):_vm._e(),_vm._v(" "),_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('div',{staticStyle:{"margin-right":"134px","margin-bottom":"18px"}},[_c('FormItem',{staticStyle:{"display":"flex"},attrs:{"prop":("answers[" + _vm.index + "].answer[" + subIndex + "].score"),"rules":[
1546
1546
  {
1547
1547
  required:
1548
1548
  _vm.question.options.required && !_vm.question.options.disabled,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wg-npm/survey-response",
3
- "version": "0.3.22845",
3
+ "version": "0.3.22846",
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.3.22845",
16
- "@wg-npm/survey-service-api": "0.3.22845",
15
+ "@wg-npm/survey-core": "0.3.22846",
16
+ "@wg-npm/survey-service-api": "0.3.22846",
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.3.22845",
38
- "@wg-npm/survey-service-api": "0.3.22845",
37
+ "@wg-npm/survey-core": "0.3.22846",
38
+ "@wg-npm/survey-service-api": "0.3.22846",
39
39
  "acorn": "^7.3.1",
40
40
  "axios": "^0.19.2",
41
41
  "babelrc-rollup": "^3.0.0",
@@ -72,7 +72,7 @@
72
72
  "publishConfig": {
73
73
  "access": "public"
74
74
  },
75
- "gitHead": "1c4867b3db8d5c50091fc0e0df4845b4ffb3c66f",
75
+ "gitHead": "bbb5d08de82e836bf283f80ea67529b3c3449748",
76
76
  "rollup": {
77
77
  "external": [
78
78
  "vue",
@@ -1,7 +1,7 @@
1
1
  <template>
2
2
  <div>
3
3
  <!-- question slider -->
4
- <Row v-show="showQuestionScoreSlider">
4
+ <Row v-if="showQuestionScoreSlider">
5
5
  <div style="margin-right: 134px; margin-bottom: 18px">
6
6
  <FormItem
7
7
  style="display: flex"
@@ -163,7 +163,7 @@ export default Vue.extend({
163
163
  : {
164
164
  answer: null,
165
165
  question_id: question.id,
166
- score: 0,
166
+ score: null,
167
167
  question_type: "SCORING",
168
168
  };
169
169
  // @ts-ignore