@wg-npm/survey-response 0.5.144 → 0.5.145

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.
@@ -427,17 +427,17 @@ var __vue_render__$e = function () {var _vm=this;var _h=_vm.$createElement;var _
427
427
  message: _vm.t('survey_response.question.input_text_limit', [
428
428
  _vm.question.options.inputMinLength ]),
429
429
  trigger: 'blur',
430
- } ]}},[_c('Span',[_vm._v(_vm._s(inputAnswer.inputText))])],1):_vm._e()],1)})],2)}),1)],1)],1)};
430
+ } ]}},[(_vm.question.options.readonly || choice.readonly)?_c('Span',[_vm._v("\n "+_vm._s(inputAnswer.inputText))]):_c('Input',{model:{value:(inputAnswer.inputText),callback:function ($$v) {_vm.$set(inputAnswer, "inputText", (typeof $$v === 'string'? $$v.trim(): $$v));},expression:"inputAnswer.inputText"}})],1):_vm._e()],1)})],2)}),1)],1)],1)};
431
431
  var __vue_staticRenderFns__$e = [];
432
432
 
433
433
  /* style */
434
434
  const __vue_inject_styles__$e = function (inject) {
435
435
  if (!inject) return
436
- inject("data-v-bcd742ea_0", { source: ".ivu-row-flex-start[data-v-bcd742ea]{align-items:center}.ivu-checkbox-group-item[data-v-bcd742ea]{display:flex;flex-direction:row;align-items:center}.choice-title[data-v-bcd742ea]{margin-left:8px;margin-right:8px}.choice-score[data-v-bcd742ea]{margin-right:8px}", map: undefined, media: undefined });
436
+ inject("data-v-0ad93f1c_0", { source: ".ivu-row-flex-start[data-v-0ad93f1c]{align-items:center}.ivu-checkbox-group-item[data-v-0ad93f1c]{display:flex;flex-direction:row;align-items:center}.choice-title[data-v-0ad93f1c]{margin-left:8px;margin-right:8px}.choice-score[data-v-0ad93f1c]{margin-right:8px}", map: undefined, media: undefined });
437
437
 
438
438
  };
439
439
  /* scoped */
440
- const __vue_scope_id__$e = "data-v-bcd742ea";
440
+ const __vue_scope_id__$e = "data-v-0ad93f1c";
441
441
  /* module identifier */
442
442
  const __vue_module_identifier__$e = undefined;
443
443
  /* functional template */
@@ -665,17 +665,18 @@ var __vue_render__$c = function () {var _vm=this;var _h=_vm.$createElement;var _
665
665
  message: _vm.t('survey_response.question.input_text_limit', [
666
666
  _vm.question.options.inputMinLength ]),
667
667
  trigger: 'blur',
668
- } ]}},[_c('Span',[_vm._v(_vm._s(inputAnswer.inputText))])],1):_vm._e()],1)})],2)}),1)],1)],1)};
668
+ } ]}},[(
669
+ _vm.question.options.readonly || _vm.question.options.disabled)?_c('Span',[_vm._v("\n "+_vm._s(inputAnswer.inputText))]):_c('Input',{model:{value:(inputAnswer.inputText),callback:function ($$v) {_vm.$set(inputAnswer, "inputText", (typeof $$v === 'string'? $$v.trim(): $$v));},expression:"inputAnswer.inputText"}})],1):_vm._e()],1)})],2)}),1)],1)],1)};
669
670
  var __vue_staticRenderFns__$c = [];
670
671
 
671
672
  /* style */
672
673
  const __vue_inject_styles__$c = function (inject) {
673
674
  if (!inject) return
674
- inject("data-v-ffe6f74e_0", { source: ".ivu-row-flex-start[data-v-ffe6f74e]{align-items:center}.ivu-radio-group-item[data-v-ffe6f74e]{display:flex;flex-direction:row;align-items:center}.choice-title[data-v-ffe6f74e]{margin-left:8px;margin-right:8px}", map: undefined, media: undefined });
675
+ inject("data-v-0d55fba6_0", { source: ".ivu-row-flex-start[data-v-0d55fba6]{align-items:center}.ivu-radio-group-item[data-v-0d55fba6]{display:flex;flex-direction:row;align-items:center}.choice-title[data-v-0d55fba6]{margin-left:8px;margin-right:8px}", map: undefined, media: undefined });
675
676
 
676
677
  };
677
678
  /* scoped */
678
- const __vue_scope_id__$c = "data-v-ffe6f74e";
679
+ const __vue_scope_id__$c = "data-v-0d55fba6";
679
680
  /* module identifier */
680
681
  const __vue_module_identifier__$c = undefined;
681
682
  /* functional template */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wg-npm/survey-response",
3
- "version": "0.5.144",
3
+ "version": "0.5.145",
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.144",
16
- "@wg-npm/survey-service-api": "0.5.144",
15
+ "@wg-npm/survey-core": "0.5.145",
16
+ "@wg-npm/survey-service-api": "0.5.145",
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.144",
38
- "@wg-npm/survey-service-api": "0.5.144",
37
+ "@wg-npm/survey-core": "0.5.145",
38
+ "@wg-npm/survey-service-api": "0.5.145",
39
39
  "acorn": "^7.3.1",
40
40
  "axios": "^0.19.2",
41
41
  "babelrc-rollup": "^3.0.0",
@@ -54,7 +54,11 @@
54
54
  },
55
55
  ]"
56
56
  >
57
- <Span>{{inputAnswer.inputText}}</Span>
57
+ <Span v-if="question.options.readonly || choice.readonly">
58
+ {{inputAnswer.inputText}}</Span>
59
+ <Input v-else
60
+ v-model.trim="inputAnswer.inputText"
61
+ />
58
62
  </FormItem>
59
63
  </div>
60
64
  </Col>
@@ -56,8 +56,12 @@
56
56
  },
57
57
  ]"
58
58
  >
59
- <Span>{{inputAnswer.inputText}}</Span>
60
-
59
+ <Span v-if="
60
+ question.options.readonly || question.options.disabled">
61
+ {{inputAnswer.inputText}}</Span>
62
+ <Input v-else
63
+ v-model.trim="inputAnswer.inputText"
64
+ />
61
65
  </FormItem>
62
66
  </div>
63
67
  </Col>