@wg-npm/survey-response 0.3.22845 → 0.3.23193

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.
@@ -13,140 +13,132 @@ var script$f = Vue.extend({
13
13
 
14
14
  var __$_require_images_empty_box_copy_svg__ = "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNTAiIGhlaWdodD0iMjAwIiB2aWV3Qm94PSIwIDAgMjUwIDIwMCI+CiAgICA8ZyBmaWxsPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPgogICAgICAgIDxnIHRyYW5zZm9ybT0idHJhbnNsYXRlKDYwLjUxNSA4My4wMykiPgogICAgICAgICAgICA8cGF0aCBzdHJva2U9IiMxODkwRkYiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCIgc3Ryb2tlLXdpZHRoPSIzIiBkPSJNMTE4IDEwNkgxMmMtNi42MjcgMC0xMi01LjM3Mi0xMi0xMlYyNGgxMzB2NzBjMCA2LjYyOC01LjM3MiAxMi0xMiAxMnpNMTMwIDI0SDBMMTUgMGgxMDB6Ii8+CiAgICAgICAgICAgIDxwYXRoIHN0cm9rZT0iIzE4OTBGRiIgc3Ryb2tlLXdpZHRoPSIzIiBkPSJNMTUuMTAyIDB2MjQiLz4KICAgICAgICAgICAgPGVsbGlwc2UgY3g9IjExMyIgY3k9Ijc5LjUiIGZpbGw9IiNGRjU1QUIiIGZpbGwtb3BhY2l0eT0iLjEiIHJ4PSIxMSIgcnk9IjUuNSIvPgogICAgICAgICAgICA8cGF0aCBzdHJva2U9IiMxODkwRkYiIHN0cm9rZS13aWR0aD0iMyIgZD0iTTExNC43OTMgMHYyNCIvPgogICAgICAgICAgICA8cGF0aCBmaWxsPSIjMTg5MEZGIiBkPSJNMTAyLjIyMiA2OS4wNWwtMy41MzYtMy41MzVhM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05My4xNDUgNjcuNTQyYTEuNSAxLjUgMCAxIDEtMyAwIDEuNSAxLjUgMCAwIDEgMyAwTTYxLjUxNSA3NC43MjNhMS41IDEuNSAwIDEgMS0yLjk5OS4wMDIgMS41IDEuNSAwIDAgMSAyLjk5OS0uMDAyIi8+CiAgICAgICAgPHBhdGggc3Ryb2tlPSIjMTg5MEZGIiBzdHJva2Utd2lkdGg9IjIiIGQ9Ik03OC4wMTUgNDguNTMxYTMuNSAzLjUgMCAxIDEtNyAwIDMuNSAzLjUgMCAwIDEgNyAweiIvPgogICAgICAgIDxwYXRoIGZpbGw9IiMxODkwRkYiIGQ9Ik0yMDAuOTA3IDgyLjQzMWExLjUgMS41IDAgMSAxLTMgMCAxLjUgMS41IDAgMCAxIDMgMCIvPgogICAgPC9nPgo8L3N2Zz4K";
15
15
 
16
- function normalizeComponent(template, style, script, scopeId, isFunctionalTemplate, moduleIdentifier
17
- /* server only */
18
- , shadowMode, createInjector, createInjectorSSR, createInjectorShadow) {
19
- if (typeof shadowMode !== 'boolean') {
20
- createInjectorSSR = createInjector;
21
- createInjector = shadowMode;
22
- shadowMode = false;
23
- } // Vue.extend constructor export interop.
24
-
25
-
26
- const options = typeof script === 'function' ? script.options : script; // render functions
27
-
28
- if (template && template.render) {
29
- options.render = template.render;
30
- options.staticRenderFns = template.staticRenderFns;
31
- options._compiled = true; // functional template
32
-
33
- if (isFunctionalTemplate) {
34
- options.functional = true;
35
- }
36
- } // scopedId
37
-
38
-
39
- if (scopeId) {
40
- options._scopeId = scopeId;
41
- }
42
-
43
- let hook;
44
-
45
- if (moduleIdentifier) {
46
- // server build
47
- hook = function (context) {
48
- // 2.3 injection
49
- context = context || // cached call
50
- this.$vnode && this.$vnode.ssrContext || // stateful
51
- this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext; // functional
52
- // 2.2 with runInNewContext: true
53
-
54
- if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {
55
- context = __VUE_SSR_CONTEXT__;
56
- } // inject component styles
57
-
58
-
59
- if (style) {
60
- style.call(this, createInjectorSSR(context));
61
- } // register component module identifier for async chunk inference
62
-
63
-
64
- if (context && context._registeredComponents) {
65
- context._registeredComponents.add(moduleIdentifier);
66
- }
67
- }; // used by ssr in case component is cached and beforeCreate
68
- // never gets called
69
-
70
-
71
- options._ssrRegister = hook;
72
- } else if (style) {
73
- hook = shadowMode ? function (context) {
74
- style.call(this, createInjectorShadow(context, this.$root.$options.shadowRoot));
75
- } : function (context) {
76
- style.call(this, createInjector(context));
77
- };
78
- }
79
-
80
- if (hook) {
81
- if (options.functional) {
82
- // register for functional component in vue file
83
- const originalRender = options.render;
84
-
85
- options.render = function renderWithStyleInjection(h, context) {
86
- hook.call(context);
87
- return originalRender(h, context);
88
- };
89
- } else {
90
- // inject component registration as beforeCreate hook
91
- const existing = options.beforeCreate;
92
- options.beforeCreate = existing ? [].concat(existing, hook) : [hook];
93
- }
94
- }
95
-
96
- return script;
97
- }
98
-
99
- const isOldIE = typeof navigator !== 'undefined' && /msie [6-9]\\b/.test(navigator.userAgent.toLowerCase());
100
-
101
- function createInjector(context) {
102
- return (id, style) => addStyle(id, style);
16
+ function normalizeComponent(template, style, script, scopeId, isFunctionalTemplate, moduleIdentifier /* server only */, shadowMode, createInjector, createInjectorSSR, createInjectorShadow) {
17
+ if (typeof shadowMode !== 'boolean') {
18
+ createInjectorSSR = createInjector;
19
+ createInjector = shadowMode;
20
+ shadowMode = false;
21
+ }
22
+ // Vue.extend constructor export interop.
23
+ const options = typeof script === 'function' ? script.options : script;
24
+ // render functions
25
+ if (template && template.render) {
26
+ options.render = template.render;
27
+ options.staticRenderFns = template.staticRenderFns;
28
+ options._compiled = true;
29
+ // functional template
30
+ if (isFunctionalTemplate) {
31
+ options.functional = true;
32
+ }
33
+ }
34
+ // scopedId
35
+ if (scopeId) {
36
+ options._scopeId = scopeId;
37
+ }
38
+ let hook;
39
+ if (moduleIdentifier) {
40
+ // server build
41
+ hook = function (context) {
42
+ // 2.3 injection
43
+ context =
44
+ context || // cached call
45
+ (this.$vnode && this.$vnode.ssrContext) || // stateful
46
+ (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext); // functional
47
+ // 2.2 with runInNewContext: true
48
+ if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {
49
+ context = __VUE_SSR_CONTEXT__;
50
+ }
51
+ // inject component styles
52
+ if (style) {
53
+ style.call(this, createInjectorSSR(context));
54
+ }
55
+ // register component module identifier for async chunk inference
56
+ if (context && context._registeredComponents) {
57
+ context._registeredComponents.add(moduleIdentifier);
58
+ }
59
+ };
60
+ // used by ssr in case component is cached and beforeCreate
61
+ // never gets called
62
+ options._ssrRegister = hook;
63
+ }
64
+ else if (style) {
65
+ hook = shadowMode
66
+ ? function (context) {
67
+ style.call(this, createInjectorShadow(context, this.$root.$options.shadowRoot));
68
+ }
69
+ : function (context) {
70
+ style.call(this, createInjector(context));
71
+ };
72
+ }
73
+ if (hook) {
74
+ if (options.functional) {
75
+ // register for functional component in vue file
76
+ const originalRender = options.render;
77
+ options.render = function renderWithStyleInjection(h, context) {
78
+ hook.call(context);
79
+ return originalRender(h, context);
80
+ };
81
+ }
82
+ else {
83
+ // inject component registration as beforeCreate hook
84
+ const existing = options.beforeCreate;
85
+ options.beforeCreate = existing ? [].concat(existing, hook) : [hook];
86
+ }
87
+ }
88
+ return script;
103
89
  }
104
90
 
105
- let HEAD;
106
- const styles = {};
107
-
108
- function addStyle(id, css) {
109
- const group = isOldIE ? css.media || 'default' : id;
110
- const style = styles[group] || (styles[group] = {
111
- ids: new Set(),
112
- styles: []
113
- });
114
-
115
- if (!style.ids.has(id)) {
116
- style.ids.add(id);
117
- let code = css.source;
118
-
119
- if (css.map) {
120
- // https://developer.chrome.com/devtools/docs/javascript-debugging
121
- // this makes source maps inside style tags work properly in Chrome
122
- code += '\n/*# sourceURL=' + css.map.sources[0] + ' */'; // http://stackoverflow.com/a/26603875
123
-
124
- code += '\n/*# sourceMappingURL=data:application/json;base64,' + btoa(unescape(encodeURIComponent(JSON.stringify(css.map)))) + ' */';
125
- }
126
-
127
- if (!style.element) {
128
- style.element = document.createElement('style');
129
- style.element.type = 'text/css';
130
- if (css.media) style.element.setAttribute('media', css.media);
131
-
132
- if (HEAD === undefined) {
133
- HEAD = document.head || document.getElementsByTagName('head')[0];
134
- }
135
-
136
- HEAD.appendChild(style.element);
137
- }
138
-
139
- if ('styleSheet' in style.element) {
140
- style.styles.push(code);
141
- style.element.styleSheet.cssText = style.styles.filter(Boolean).join('\n');
142
- } else {
143
- const index = style.ids.size - 1;
144
- const textNode = document.createTextNode(code);
145
- const nodes = style.element.childNodes;
146
- if (nodes[index]) style.element.removeChild(nodes[index]);
147
- if (nodes.length) style.element.insertBefore(textNode, nodes[index]);else style.element.appendChild(textNode);
148
- }
149
- }
91
+ const isOldIE = typeof navigator !== 'undefined' &&
92
+ /msie [6-9]\\b/.test(navigator.userAgent.toLowerCase());
93
+ function createInjector(context) {
94
+ return (id, style) => addStyle(id, style);
95
+ }
96
+ let HEAD;
97
+ const styles = {};
98
+ function addStyle(id, css) {
99
+ const group = isOldIE ? css.media || 'default' : id;
100
+ const style = styles[group] || (styles[group] = { ids: new Set(), styles: [] });
101
+ if (!style.ids.has(id)) {
102
+ style.ids.add(id);
103
+ let code = css.source;
104
+ if (css.map) {
105
+ // https://developer.chrome.com/devtools/docs/javascript-debugging
106
+ // this makes source maps inside style tags work properly in Chrome
107
+ code += '\n/*# sourceURL=' + css.map.sources[0] + ' */';
108
+ // http://stackoverflow.com/a/26603875
109
+ code +=
110
+ '\n/*# sourceMappingURL=data:application/json;base64,' +
111
+ btoa(unescape(encodeURIComponent(JSON.stringify(css.map)))) +
112
+ ' */';
113
+ }
114
+ if (!style.element) {
115
+ style.element = document.createElement('style');
116
+ style.element.type = 'text/css';
117
+ if (css.media)
118
+ style.element.setAttribute('media', css.media);
119
+ if (HEAD === undefined) {
120
+ HEAD = document.head || document.getElementsByTagName('head')[0];
121
+ }
122
+ HEAD.appendChild(style.element);
123
+ }
124
+ if ('styleSheet' in style.element) {
125
+ style.styles.push(code);
126
+ style.element.styleSheet.cssText = style.styles
127
+ .filter(Boolean)
128
+ .join('\n');
129
+ }
130
+ else {
131
+ const index = style.ids.size - 1;
132
+ const textNode = document.createTextNode(code);
133
+ const nodes = style.element.childNodes;
134
+ if (nodes[index])
135
+ style.element.removeChild(nodes[index]);
136
+ if (nodes.length)
137
+ style.element.insertBefore(textNode, nodes[index]);
138
+ else
139
+ style.element.appendChild(textNode);
140
+ }
141
+ }
150
142
  }
151
143
 
152
144
  /* script */
@@ -1502,7 +1494,7 @@ var script$2 = Vue.extend({
1502
1494
  : {
1503
1495
  answer: null,
1504
1496
  question_id: question.id,
1505
- score: 0,
1497
+ score: null,
1506
1498
  question_type: "SCORING",
1507
1499
  };
1508
1500
  this.value.answer.push(_answer);
@@ -1534,19 +1526,21 @@ var script$2 = Vue.extend({
1534
1526
  const __vue_script__$2 = script$2;
1535
1527
 
1536
1528
  /* 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":[
1529
+ 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
1530
  {
1539
1531
  required: _vm.question.options.required && !_vm.question.options.disabled,
1540
1532
  message: _vm.t('survey_response.question.question_required'),
1533
+ trigger: 'blur',
1541
1534
  } ]}},[_c('Slider',{staticStyle:{"float":"left","width":"562px","margin-right":"16px"},attrs:{"min":_vm.question.options.minRange,"max":_vm.question.options.maxRange,"step":_vm.sliderStep,"show-tips":"always","disabled":_vm.question.options.readonly || _vm.question.options.disabled},model:{value:(_vm.value.score),callback:function ($$v) {_vm.$set(_vm.value, "score", $$v);},expression:"value.score"}}),_vm._v(" "),_c('InputNumber',{staticStyle:{"float":"left"},attrs:{"precision":_vm.question.options.decimalPlaces,"min":_vm.question.options.minRange,"max":_vm.question.options.maxRange},model:{value:(_vm.value.score),callback:function ($$v) {_vm.$set(_vm.value, "score", $$v);},expression:"value.score"}})],1),_vm._v(" "),_c('div',{directives:[{name:"show",rawName:"v-show",value:(_vm.extremeValueLabelSelected),expression:"extremeValueLabelSelected"}]},[_c('span',{staticStyle:{"float":"left","margin-left":"36px"}},[_vm._v("\n "+_vm._s(_vm.t(
1542
1535
  ("survey_creator.question.scoring.extreme_value_labels." + (_vm.question.options.extremeValueLabel) + ".minValue")
1543
1536
  ))+"\n ")]),_vm._v(" "),_c('span',{staticStyle:{"float":"right","align-items":"flex-end","margin-right":"88px"}},[_vm._v("\n "+_vm._s(_vm.t(
1544
1537
  ("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":[
1538
+ ))+"\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
1539
  {
1547
1540
  required:
1548
1541
  _vm.question.options.required && !_vm.question.options.disabled,
1549
1542
  message: _vm.t('survey_response.question.question_required'),
1543
+ trigger: 'blur',
1550
1544
  } ]}},[_c('Slider',{staticStyle:{"float":"left","width":"562px","margin-right":"16px"},attrs:{"min":_vm.question.options.minRange,"max":_vm.question.options.maxRange,"step":_vm.sliderStep,"show-tips":"always","disabled":subQuestion.options.readonly || _vm.question.options.disabled},model:{value:(_vm.value.answer[subIndex].score),callback:function ($$v) {_vm.$set(_vm.value.answer[subIndex], "score", $$v);},expression:"value.answer[subIndex].score"}}),_vm._v(" "),_c('InputNumber',{staticStyle:{"float":"left"},attrs:{"precision":_vm.question.options.decimalPlaces,"min":_vm.question.options.minRange,"max":_vm.question.options.maxRange},model:{value:(_vm.value.answer[subIndex].score),callback:function ($$v) {_vm.$set(_vm.value.answer[subIndex], "score", $$v);},expression:"value.answer[subIndex].score"}})],1),_vm._v(" "),_c('div',{directives:[{name:"show",rawName:"v-show",value:(_vm.extremeValueLabelSelected),expression:"extremeValueLabelSelected"}]},[_c('span',{staticStyle:{"float":"left","margin-left":"36px"}},[_vm._v("\n "+_vm._s(_vm.t(
1551
1545
  ("survey_creator.question.scoring.extreme_value_labels." + (_vm.question.options.extremeValueLabel) + ".minValue")
1552
1546
  ))+"\n ")]),_vm._v(" "),_c('span',{staticStyle:{"float":"right","align-items":"flex-end","margin-right":"88px"}},[_vm._v("\n "+_vm._s(_vm.t(
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.23193",
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.23193",
16
+ "@wg-npm/survey-service-api": "0.3.23193",
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.23193",
38
+ "@wg-npm/survey-service-api": "0.3.23193",
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"
@@ -10,6 +10,7 @@
10
10
  {
11
11
  required: question.options.required && !question.options.disabled,
12
12
  message: t('survey_response.question.question_required'),
13
+ trigger: 'blur',
13
14
  },
14
15
  ]"
15
16
  >
@@ -69,6 +70,7 @@
69
70
  required:
70
71
  question.options.required && !question.options.disabled,
71
72
  message: t('survey_response.question.question_required'),
73
+ trigger: 'blur',
72
74
  },
73
75
  ]"
74
76
  >
@@ -163,7 +165,7 @@ export default Vue.extend({
163
165
  : {
164
166
  answer: null,
165
167
  question_id: question.id,
166
- score: 0,
168
+ score: null,
167
169
  question_type: "SCORING",
168
170
  };
169
171
  // @ts-ignore