@wg-npm/survey-response 0.3.4780 → 0.3.6154

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.
@@ -254,7 +254,7 @@ var OptionLayoutMixin = Vue.extend({
254
254
  computed: {
255
255
  optionLayout() {
256
256
  const globalLayout = _.lowerCase(_.get(this.options, "layout", undefined));
257
- if (this.isMobile || "vertical" == globalLayout) {
257
+ if (this.isMobile() || "vertical" == globalLayout) {
258
258
  return "";
259
259
  }
260
260
  const questionLayout = _.lowerCase(_.get(this.question.options, "layout", "horizontal"));
@@ -318,7 +318,7 @@ var __vue_render__$c = function () {var _vm=this;var _h=_vm.$createElement;var _
318
318
  type: 'array',
319
319
  min: 1,
320
320
  message: _vm.t('survey_response.question.question_required')
321
- }}},[_c('CheckboxGroup',{on:{"on-change":_vm.selChange},model:{value:(_vm.value.answer),callback:function ($$v) {_vm.$set(_vm.value, "answer", $$v);},expression:"value.answer"}},[_c('Row',{attrs:{"type":"flex","justify":"start","gutter":60}},_vm._l((_vm.question.choices),function(choice){return _c('Col',{key:choice.id,class:_vm.optionLayout,attrs:{"xs":24,"sm":_vm.$rootComponent.layout === 'vertical' ? 24 : 6,"xl":_vm.$rootComponent.layout === 'vertical' ? 24 : 6,"md":_vm.$rootComponent.layout === 'vertical' ? 24 : 6,"lg":_vm.$rootComponent.layout === 'vertical' ? 24 : 6}},[_c('Checkbox',{key:choice.id,attrs:{"label":choice.id,"disabled":_vm.question.options.readonly}},[_c('span',[_vm._v(_vm._s(_vm.i18nText(choice.text)))])])],1)}),1)],1)],1)};
321
+ }}},[_c('CheckboxGroup',{on:{"on-change":_vm.selChange},model:{value:(_vm.value.answer),callback:function ($$v) {_vm.$set(_vm.value, "answer", $$v);},expression:"value.answer"}},[_c('Row',{attrs:{"type":"flex","justify":"start","gutter":60}},_vm._l((_vm.question.choices),function(choice){return _c('Col',{key:choice.id,class:_vm.optionLayout},[_c('Checkbox',{key:choice.id,attrs:{"label":choice.id,"disabled":_vm.question.options.readonly}},[_c('span',[_vm._v(_vm._s(_vm.i18nText(choice.text)))])])],1)}),1)],1)],1)};
322
322
  var __vue_staticRenderFns__$c = [];
323
323
 
324
324
  /* style */
@@ -501,7 +501,7 @@ const __vue_script__$a = script$a;
501
501
  var __vue_render__$a = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('FormItem',{attrs:{"prop":("answers[" + _vm.index + "].answer"),"rules":{
502
502
  required: _vm.question.options.required,
503
503
  message: _vm.t('survey_response.question.question_required')
504
- }}},[_c('RadioGroup',{staticClass:"question-choice",on:{"on-change":_vm.selChange},model:{value:(_vm.value.answer),callback:function ($$v) {_vm.$set(_vm.value, "answer", $$v);},expression:"value.answer"}},[_c('Row',{attrs:{"type":"flex","justify":"start","gutter":60}},_vm._l((_vm.question.choices),function(choice){return _c('Col',{key:choice.id,class:_vm.optionLayout,attrs:{"xs":24,"sm":_vm.$rootComponent.layout === 'vertical' ? 24 : 6,"xl":_vm.$rootComponent.layout === 'vertical' ? 24 : 6,"md":_vm.$rootComponent.layout === 'vertical' ? 24 : 6,"lg":_vm.$rootComponent.layout === 'vertical' ? 24 : 6}},[_c('Radio',{key:choice.id,attrs:{"disabled":_vm.question.options.readonly,"label":choice.id},nativeOn:{"click":function($event){return _vm.toggleAnswer(choice.id)}}},[(_vm.haveStar(choice))?_c('span',[_c('Icon',{attrs:{"type":"md-star","color":"orange","size":16}})],1):_vm._e(),_vm._v(" "),_c('span',[_vm._v(_vm._s(_vm.i18nText(choice.text)))])])],1)}),1)],1)],1)};
504
+ }}},[_c('RadioGroup',{staticClass:"question-choice",on:{"on-change":_vm.selChange},model:{value:(_vm.value.answer),callback:function ($$v) {_vm.$set(_vm.value, "answer", $$v);},expression:"value.answer"}},[_c('Row',{attrs:{"type":"flex","justify":"start","gutter":60}},_vm._l((_vm.question.choices),function(choice){return _c('Col',{key:choice.id,class:_vm.optionLayout},[_c('Radio',{key:choice.id,attrs:{"disabled":_vm.question.options.readonly,"label":choice.id},nativeOn:{"click":function($event){return _vm.toggleAnswer(choice.id)}}},[(_vm.haveStar(choice))?_c('span',[_c('Icon',{attrs:{"type":"md-star","color":"orange","size":16}})],1):_vm._e(),_vm._v(" "),_c('span',[_vm._v(_vm._s(_vm.i18nText(choice.text)))])])],1)}),1)],1)],1)};
505
505
  var __vue_staticRenderFns__$a = [];
506
506
 
507
507
  /* style */
@@ -610,7 +610,7 @@ const __vue_script__$9 = script$9;
610
610
  var __vue_render__$9 = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',_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('FormItem',{attrs:{"prop":("answers[" + _vm.index + "].answer[" + subIndex + "].answer"),"rules":{
611
611
  required: _vm.question.options.required,
612
612
  message: _vm.t('survey_response.question.question_required')
613
- }}},[_c('RadioGroup',{on:{"on-change":_vm.selChange},model:{value:(_vm.value.answer[subIndex].answer),callback:function ($$v) {_vm.$set(_vm.value.answer[subIndex], "answer", $$v);},expression:"value.answer[subIndex].answer"}},[_c('Row',{attrs:{"type":"flex","justify":"start","gutter":60}},_vm._l((_vm.question.choices),function(choice){return _c('Col',{key:choice.id,class:_vm.optionLayout,attrs:{"xs":24,"sm":_vm.$rootComponent.layout === 'vertical' ? 24 : 6,"xl":_vm.$rootComponent.layout === 'vertical' ? 24 : 6,"md":_vm.$rootComponent.layout === 'vertical' ? 24 : 6,"lg":_vm.$rootComponent.layout === 'vertical' ? 24 : 6}},[_c('Radio',{key:choice.id,attrs:{"label":choice.id,"disabled":subQuestion.options.readonly},nativeOn:{"click":function($event){return _vm.toggleAnswer(choice.id, subIndex)}}},[_c('span',[_vm._v(_vm._s(_vm.i18nText(choice.text)))])])],1)}),1)],1)],1)],1)}),0)};
613
+ }}},[_c('RadioGroup',{on:{"on-change":_vm.selChange},model:{value:(_vm.value.answer[subIndex].answer),callback:function ($$v) {_vm.$set(_vm.value.answer[subIndex], "answer", $$v);},expression:"value.answer[subIndex].answer"}},[_c('Row',{attrs:{"type":"flex","justify":"start","gutter":60}},_vm._l((_vm.question.choices),function(choice){return _c('Col',{key:choice.id,class:_vm.optionLayout},[_c('Radio',{key:choice.id,attrs:{"label":choice.id,"disabled":subQuestion.options.readonly},nativeOn:{"click":function($event){return _vm.toggleAnswer(choice.id, subIndex)}}},[_c('span',[_vm._v(_vm._s(_vm.i18nText(choice.text)))])])],1)}),1)],1)],1)],1)}),0)};
614
614
  var __vue_staticRenderFns__$9 = [];
615
615
 
616
616
  /* style */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wg-npm/survey-response",
3
- "version": "0.3.4780",
3
+ "version": "0.3.6154",
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.4780",
16
- "@wg-npm/survey-service-api": "0.3.4780",
15
+ "@wg-npm/survey-core": "0.3.6154",
16
+ "@wg-npm/survey-service-api": "0.3.6154",
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.4780",
38
- "@wg-npm/survey-service-api": "0.3.4780",
37
+ "@wg-npm/survey-core": "0.3.6154",
38
+ "@wg-npm/survey-service-api": "0.3.6154",
39
39
  "acorn": "^7.3.1",
40
40
  "axios": "^0.19.2",
41
41
  "babelrc-rollup": "^3.0.0",
@@ -22,11 +22,6 @@
22
22
  >
23
23
  <Row type="flex" justify="start" :gutter="60">
24
24
  <Col
25
- :xs="24"
26
- :sm="$rootComponent.layout === 'vertical' ? 24 : 6"
27
- :xl="$rootComponent.layout === 'vertical' ? 24 : 6"
28
- :md="$rootComponent.layout === 'vertical' ? 24 : 6"
29
- :lg="$rootComponent.layout === 'vertical' ? 24 : 6"
30
25
  v-for="choice in question.choices"
31
26
  :key="choice.id"
32
27
  :class="optionLayout"
@@ -11,11 +11,6 @@
11
11
  <CheckboxGroup v-model="value.answer" @on-change="selChange">
12
12
  <Row type="flex" justify="start" :gutter="60">
13
13
  <Col
14
- :xs="24"
15
- :sm="$rootComponent.layout === 'vertical' ? 24 : 6"
16
- :xl="$rootComponent.layout === 'vertical' ? 24 : 6"
17
- :md="$rootComponent.layout === 'vertical' ? 24 : 6"
18
- :lg="$rootComponent.layout === 'vertical' ? 24 : 6"
19
14
  v-for="choice in question.choices"
20
15
  :key="choice.id"
21
16
  :class="optionLayout"
@@ -13,11 +13,6 @@
13
13
  >
14
14
  <Row type="flex" justify="start" :gutter="60">
15
15
  <Col
16
- :xs="24"
17
- :sm="$rootComponent.layout === 'vertical' ? 24 : 6"
18
- :xl="$rootComponent.layout === 'vertical' ? 24 : 6"
19
- :md="$rootComponent.layout === 'vertical' ? 24 : 6"
20
- :lg="$rootComponent.layout === 'vertical' ? 24 : 6"
21
16
  v-for="choice in question.choices"
22
17
  :key="choice.id"
23
18
  :class="optionLayout"
@@ -16,7 +16,7 @@ export default Vue.extend({
16
16
  _.get(this.options, "layout", undefined)
17
17
  );
18
18
 
19
- if (this.isMobile || "vertical" == globalLayout) {
19
+ if (this.isMobile() || "vertical" == globalLayout) {
20
20
  return "";
21
21
  }
22
22
  const questionLayout = _.lowerCase(