@wg-npm/survey-creator 0.3.7738 → 0.3.7740
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.
|
@@ -3231,17 +3231,12 @@ var script$d = Vue.extend({
|
|
|
3231
3231
|
});
|
|
3232
3232
|
let currentValue = this.value;
|
|
3233
3233
|
let currentTotalScore = this.totalScore;
|
|
3234
|
-
_.
|
|
3235
|
-
|
|
3234
|
+
_.forEach(options, function (o) {
|
|
3235
|
+
o.disabled = _.some(otherRange, function (or) {
|
|
3236
3236
|
let condition_a = o >= or.min && o <= or.max;
|
|
3237
3237
|
let condition_b = type == "left" ? o.value >= _.get(currentValue, "minScore", 0) : o.value <= _.get(currentValue, "maxScore", currentTotalScore);
|
|
3238
3238
|
return condition_a && condition_b;
|
|
3239
3239
|
});
|
|
3240
|
-
return {
|
|
3241
|
-
value: o.value,
|
|
3242
|
-
label: o.label,
|
|
3243
|
-
disabled: disabled
|
|
3244
|
-
};
|
|
3245
3240
|
});
|
|
3246
3241
|
},
|
|
3247
3242
|
},
|
|
@@ -3275,11 +3270,11 @@ var __vue_staticRenderFns__$d = [];
|
|
|
3275
3270
|
/* style */
|
|
3276
3271
|
const __vue_inject_styles__$d = function (inject) {
|
|
3277
3272
|
if (!inject) return
|
|
3278
|
-
inject("data-v-
|
|
3273
|
+
inject("data-v-8241c82a_0", { source: ".label[data-v-8241c82a]{text-align:right;margin-bottom:24px}[data-v-8241c82a] .operator .ivu-select-selected-value{height:28px;line-height:28px}", map: undefined, media: undefined });
|
|
3279
3274
|
|
|
3280
3275
|
};
|
|
3281
3276
|
/* scoped */
|
|
3282
|
-
const __vue_scope_id__$d = "data-v-
|
|
3277
|
+
const __vue_scope_id__$d = "data-v-8241c82a";
|
|
3283
3278
|
/* module identifier */
|
|
3284
3279
|
const __vue_module_identifier__$d = undefined;
|
|
3285
3280
|
/* functional template */
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wg-npm/survey-creator",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.7740",
|
|
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.
|
|
16
|
-
"@wg-npm/survey-service-api": "0.3.
|
|
15
|
+
"@wg-npm/survey-core": "0.3.7740",
|
|
16
|
+
"@wg-npm/survey-service-api": "0.3.7740",
|
|
17
17
|
"axios": "^0.19.2",
|
|
18
18
|
"camelcase": "^6.0.0",
|
|
19
19
|
"deepmerge": "^4.2.2",
|
|
@@ -38,8 +38,8 @@
|
|
|
38
38
|
"@typescript-eslint/eslint-plugin": "^3.6.0",
|
|
39
39
|
"@typescript-eslint/parser": "^3.6.0",
|
|
40
40
|
"@vue/eslint-config-prettier": "^6.0.0",
|
|
41
|
-
"@wg-npm/survey-core": "0.3.
|
|
42
|
-
"@wg-npm/survey-service-api": "0.3.
|
|
41
|
+
"@wg-npm/survey-core": "0.3.7740",
|
|
42
|
+
"@wg-npm/survey-service-api": "0.3.7740",
|
|
43
43
|
"acorn": "^7.3.1",
|
|
44
44
|
"axios": "^0.19.2",
|
|
45
45
|
"babelrc-rollup": "^3.0.0",
|
|
@@ -204,17 +204,12 @@
|
|
|
204
204
|
let currentValue = this.value;
|
|
205
205
|
let currentTotalScore = this.totalScore;
|
|
206
206
|
|
|
207
|
-
_.
|
|
208
|
-
|
|
207
|
+
_.forEach(options, function (o) {
|
|
208
|
+
o.disabled = _.some(otherRange, function (or) {
|
|
209
209
|
let condition_a = o >= or.min && o <= or.max;
|
|
210
210
|
let condition_b = type == "left" ? o.value >= _.get(currentValue, "minScore", 0) : o.value <= _.get(currentValue, "maxScore", currentTotalScore)
|
|
211
211
|
return condition_a && condition_b;
|
|
212
212
|
})
|
|
213
|
-
return {
|
|
214
|
-
value: o.value,
|
|
215
|
-
label: o.label,
|
|
216
|
-
disabled: disabled
|
|
217
|
-
}
|
|
218
213
|
})
|
|
219
214
|
},
|
|
220
215
|
},
|