@wg-npm/survey-response 0.5.146 → 0.5.148

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.
@@ -317,7 +317,7 @@ var QuestionMixin = Vue.extend({
317
317
 
318
318
  var script$e = Vue.extend({
319
319
  name: "multi-selection",
320
- inject: ["$rootComponent"],
320
+ inject: ["responseStatus", "$rootComponent"],
321
321
  mixins: [OptionLayoutMixin, QuestionMixin],
322
322
  components: {
323
323
  FormItem,
@@ -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
- } ]}},[(_vm.question.options.readonly || choice.readonly)?_c('Span',[_vm._v("\n "+_vm._s(inputAnswer.inputText))]):_vm._e(),_vm._v(" "),(!_vm.question.options.readonly && !_vm.question.options.disabled)?_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)};
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
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-7e78fd8e_0", { source: ".ivu-row-flex-start[data-v-7e78fd8e]{align-items:center}.ivu-checkbox-group-item[data-v-7e78fd8e]{display:flex;flex-direction:row;align-items:center}.choice-title[data-v-7e78fd8e]{margin-left:8px;margin-right:8px}.choice-score[data-v-7e78fd8e]{margin-right:8px}", map: undefined, media: undefined });
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__$e = "data-v-7e78fd8e";
440
+ const __vue_scope_id__$e = "data-v-5766f8ca";
441
441
  /* module identifier */
442
442
  const __vue_module_identifier__$e = undefined;
443
443
  /* functional template */
@@ -665,18 +665,17 @@ 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
- } ]}},[(
669
- _vm.question.options.readonly || _vm.question.options.disabled)?_c('Span',[_vm._v("\n "+_vm._s(inputAnswer.inputText))]):_vm._e(),_vm._v(" "),(!_vm.question.options.readonly && !_vm.question.options.disabled)?_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)};
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)};
670
669
  var __vue_staticRenderFns__$c = [];
671
670
 
672
671
  /* style */
673
672
  const __vue_inject_styles__$c = function (inject) {
674
673
  if (!inject) return
675
- inject("data-v-46e368de_0", { source: ".ivu-row-flex-start[data-v-46e368de]{align-items:center}.ivu-radio-group-item[data-v-46e368de]{display:flex;flex-direction:row;align-items:center}.choice-title[data-v-46e368de]{margin-left:8px;margin-right:8px}", map: undefined, media: undefined });
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 });
676
675
 
677
676
  };
678
677
  /* scoped */
679
- const __vue_scope_id__$c = "data-v-46e368de";
678
+ const __vue_scope_id__$c = "data-v-781fd590";
680
679
  /* module identifier */
681
680
  const __vue_module_identifier__$c = undefined;
682
681
  /* functional template */
@@ -1631,11 +1630,11 @@ var __vue_staticRenderFns__$3 = [];
1631
1630
  /* style */
1632
1631
  const __vue_inject_styles__$3 = function (inject) {
1633
1632
  if (!inject) return
1634
- inject("data-v-7bd4b64c_0", { source: ".slider-container[data-v-7bd4b64c]{margin-top:16px;margin-bottom:16px;width:100%;display:flex}.slider-container[data-v-7bd4b64c] .ivu-form-item{margin-bottom:unset}.slider[data-v-7bd4b64c]{width:100%;margin-left:30px;margin-right:16px}.text-desc[data-v-7bd4b64c]{display:flex;justify-content:space-between;width:100%;padding-left:36px;padding-right:100px}", map: undefined, media: undefined });
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 });
1635
1634
 
1636
1635
  };
1637
1636
  /* scoped */
1638
- const __vue_scope_id__$3 = "data-v-7bd4b64c";
1637
+ const __vue_scope_id__$3 = "data-v-2ca59b8e";
1639
1638
  /* module identifier */
1640
1639
  const __vue_module_identifier__$3 = undefined;
1641
1640
  /* functional template */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wg-npm/survey-response",
3
- "version": "0.5.146",
3
+ "version": "0.5.148",
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.146",
16
- "@wg-npm/survey-service-api": "0.5.146",
15
+ "@wg-npm/survey-core": "0.5.148",
16
+ "@wg-npm/survey-service-api": "0.5.148",
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.146",
38
- "@wg-npm/survey-service-api": "0.5.146",
37
+ "@wg-npm/survey-core": "0.5.148",
38
+ "@wg-npm/survey-service-api": "0.5.148",
39
39
  "acorn": "^7.3.1",
40
40
  "axios": "^0.19.2",
41
41
  "babelrc-rollup": "^3.0.0",
@@ -54,11 +54,12 @@
54
54
  },
55
55
  ]"
56
56
  >
57
- <Span v-if="question.options.readonly || choice.readonly">
57
+ <Span v-if="responseStatus=='ENABLED'">
58
58
  {{inputAnswer.inputText}}</Span>
59
- <Input v-if="!question.options.readonly && !question.options.disabled"
60
- v-model.trim="inputAnswer.inputText"
59
+ <Input v-if="responseStatus=='DRAFT'"
60
+ v-model.trim="inputAnswer.inputText"
61
61
  />
62
+
62
63
  </FormItem>
63
64
  </div>
64
65
  </Col>
@@ -82,7 +83,7 @@ import {
82
83
 
83
84
  export default Vue.extend({
84
85
  name: "multi-selection",
85
- inject: ["$rootComponent"],
86
+ inject: ["responseStatus","$rootComponent"],
86
87
  mixins: [OptionLayoutMixin, QuestionMixin],
87
88
  components: {
88
89
  FormItem,
@@ -247,7 +247,7 @@ export default Vue.extend({
247
247
 
248
248
  .slider {
249
249
  width: 100%;
250
- margin-left: 30px;
250
+ margin-left: 16px;
251
251
  margin-right: 16px;
252
252
  }
253
253
 
@@ -255,7 +255,6 @@ export default Vue.extend({
255
255
  display: flex;
256
256
  justify-content: space-between;
257
257
  width: 100%;
258
- padding-left: 36px;
259
- padding-right: 100px;
258
+ padding-right: 80px;
260
259
  }
261
260
  </style>
@@ -56,10 +56,9 @@
56
56
  },
57
57
  ]"
58
58
  >
59
- <Span v-if="
60
- question.options.readonly || question.options.disabled">
59
+ <Span v-if="responseStatus=='ENABLED'">
61
60
  {{inputAnswer.inputText}}</Span>
62
- <Input v-if="!question.options.readonly && !question.options.disabled"
61
+ <Input v-if="responseStatus=='DRAFT'"
63
62
  v-model.trim="inputAnswer.inputText"
64
63
  />
65
64
  </FormItem>