@wg-npm/survey-creator 0.3.16 → 0.3.480-5.release
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.
- package/dist/survey-creator.esm.js +164 -75
- package/package.json +5 -5
- package/src/components/common/question/evaluation.vue +6 -3
- package/src/components/editor/forms/evaluation-form.vue +4 -1
- package/src/components/editor/forms/fill-blank-form.vue +6 -0
- package/src/components/editor/forms/matrix-form.vue +6 -0
- package/src/components/editor/forms/multi-selection-form.vue +4 -0
- package/src/components/editor/forms/short-answer-form.vue +7 -1
- package/src/components/editor/forms/single-selection-form.vue +4 -0
- package/src/styles/components/survey-creator.less +9 -0
- package/src/styles/components/survey-preview.less +10 -0
|
@@ -749,6 +749,8 @@ var __vue_staticRenderFns__$G = [];
|
|
|
749
749
|
undefined
|
|
750
750
|
);
|
|
751
751
|
|
|
752
|
+
var CreateQuestionDropdown = __vue_component__$G;
|
|
753
|
+
|
|
752
754
|
var script$F = Vue.extend({
|
|
753
755
|
name: "change-language",
|
|
754
756
|
mixins: [LocaleMixin],
|
|
@@ -809,11 +811,13 @@ var __vue_staticRenderFns__$F = [];
|
|
|
809
811
|
undefined
|
|
810
812
|
);
|
|
811
813
|
|
|
814
|
+
var ChangeLanguage = __vue_component__$F;
|
|
815
|
+
|
|
812
816
|
var script$E = Vue.extend({
|
|
813
817
|
name: 'toolbar',
|
|
814
818
|
mixins: [LocaleMixin],
|
|
815
819
|
inject: ['$rootComponent'],
|
|
816
|
-
components: { Row, Col, Button, CreateQuestionDropdown
|
|
820
|
+
components: { Row, Col, Button, CreateQuestionDropdown, ChangeLanguage },
|
|
817
821
|
props: {
|
|
818
822
|
survey: {
|
|
819
823
|
type: Object,
|
|
@@ -883,6 +887,8 @@ var __vue_staticRenderFns__$E = [];
|
|
|
883
887
|
undefined
|
|
884
888
|
);
|
|
885
889
|
|
|
890
|
+
var Toolbar = __vue_component__$E;
|
|
891
|
+
|
|
886
892
|
var script$D = Vue.extend({
|
|
887
893
|
name: "question-title",
|
|
888
894
|
components: { Icon },
|
|
@@ -947,6 +953,8 @@ var __vue_staticRenderFns__$D = [];
|
|
|
947
953
|
undefined
|
|
948
954
|
);
|
|
949
955
|
|
|
956
|
+
var QuestionTitle = __vue_component__$D;
|
|
957
|
+
|
|
950
958
|
var script$C = Vue.extend({
|
|
951
959
|
name: "clickable-icon",
|
|
952
960
|
components: { Tooltip, Icon },
|
|
@@ -1066,9 +1074,11 @@ var __vue_staticRenderFns__$C = [];
|
|
|
1066
1074
|
undefined
|
|
1067
1075
|
);
|
|
1068
1076
|
|
|
1077
|
+
var ClickableIcon = __vue_component__$C;
|
|
1078
|
+
|
|
1069
1079
|
var script$B = Vue.extend({
|
|
1070
1080
|
name: "editor-question-toolbar",
|
|
1071
|
-
components: { Row, Col, Icon, ClickableIcon
|
|
1081
|
+
components: { Row, Col, Icon, ClickableIcon },
|
|
1072
1082
|
mixins: [LocaleMixin],
|
|
1073
1083
|
props: {
|
|
1074
1084
|
edit: {
|
|
@@ -1136,9 +1146,11 @@ var __vue_staticRenderFns__$B = [];
|
|
|
1136
1146
|
undefined
|
|
1137
1147
|
);
|
|
1138
1148
|
|
|
1149
|
+
var EditQuestionToolbar = __vue_component__$B;
|
|
1150
|
+
|
|
1139
1151
|
var script$A = Vue.extend({
|
|
1140
1152
|
name: "question-default-layout",
|
|
1141
|
-
components: { Row, Col, QuestionTitle
|
|
1153
|
+
components: { Row, Col, QuestionTitle, EditQuestionToolbar },
|
|
1142
1154
|
mixins: [LocaleMixin],
|
|
1143
1155
|
inject: ["$rootComponent"],
|
|
1144
1156
|
props: {
|
|
@@ -1196,6 +1208,8 @@ var __vue_staticRenderFns__$A = [];
|
|
|
1196
1208
|
undefined
|
|
1197
1209
|
);
|
|
1198
1210
|
|
|
1211
|
+
var QuestionDefaultLayout = __vue_component__$A;
|
|
1212
|
+
|
|
1199
1213
|
var script$z = Vue.extend({
|
|
1200
1214
|
name: "single-selection",
|
|
1201
1215
|
components: { Row, Col, Radio, RadioGroup, Icon },
|
|
@@ -1273,6 +1287,8 @@ var __vue_staticRenderFns__$z = [];
|
|
|
1273
1287
|
undefined
|
|
1274
1288
|
);
|
|
1275
1289
|
|
|
1290
|
+
var SingleSelection = __vue_component__$z;
|
|
1291
|
+
|
|
1276
1292
|
var script$y = Vue.extend({
|
|
1277
1293
|
name: "multi-selection",
|
|
1278
1294
|
components: { Row, Col, Checkbox, CheckboxGroup },
|
|
@@ -1347,6 +1363,8 @@ var __vue_staticRenderFns__$y = [];
|
|
|
1347
1363
|
undefined
|
|
1348
1364
|
);
|
|
1349
1365
|
|
|
1366
|
+
var MultiSelection = __vue_component__$y;
|
|
1367
|
+
|
|
1350
1368
|
var script$x = Vue.extend({
|
|
1351
1369
|
name: "short-answer",
|
|
1352
1370
|
components: { Row, Col, Radio, Input },
|
|
@@ -1396,6 +1414,8 @@ var __vue_staticRenderFns__$x = [];
|
|
|
1396
1414
|
undefined
|
|
1397
1415
|
);
|
|
1398
1416
|
|
|
1417
|
+
var ShortAnswer = __vue_component__$x;
|
|
1418
|
+
|
|
1399
1419
|
var script$w = Vue.extend({
|
|
1400
1420
|
name: "fill-blank",
|
|
1401
1421
|
components: { Row, Col, Radio, Input },
|
|
@@ -1445,6 +1465,8 @@ var __vue_staticRenderFns__$w = [];
|
|
|
1445
1465
|
undefined
|
|
1446
1466
|
);
|
|
1447
1467
|
|
|
1468
|
+
var FillBlank = __vue_component__$w;
|
|
1469
|
+
|
|
1448
1470
|
//
|
|
1449
1471
|
//
|
|
1450
1472
|
//
|
|
@@ -1489,6 +1511,8 @@ var __vue_staticRenderFns__$v = [];
|
|
|
1489
1511
|
undefined
|
|
1490
1512
|
);
|
|
1491
1513
|
|
|
1514
|
+
var TextTitle = __vue_component__$v;
|
|
1515
|
+
|
|
1492
1516
|
var script$u = Vue.extend({
|
|
1493
1517
|
name: "matrix",
|
|
1494
1518
|
components: { Row, Col, Radio, RadioGroup, Divider },
|
|
@@ -1570,6 +1594,8 @@ var __vue_staticRenderFns__$u = [];
|
|
|
1570
1594
|
undefined
|
|
1571
1595
|
);
|
|
1572
1596
|
|
|
1597
|
+
var Matrix = __vue_component__$u;
|
|
1598
|
+
|
|
1573
1599
|
var script$t = Vue.extend({
|
|
1574
1600
|
name: "star",
|
|
1575
1601
|
mixins: [LocaleMixin],
|
|
@@ -1628,6 +1654,8 @@ var __vue_staticRenderFns__$t = [];
|
|
|
1628
1654
|
undefined
|
|
1629
1655
|
);
|
|
1630
1656
|
|
|
1657
|
+
var Star$1 = __vue_component__$t;
|
|
1658
|
+
|
|
1631
1659
|
class ExprEvaluationQuestion {
|
|
1632
1660
|
questions;
|
|
1633
1661
|
scope;
|
|
@@ -1843,6 +1871,8 @@ var __vue_staticRenderFns__$s = [];
|
|
|
1843
1871
|
undefined
|
|
1844
1872
|
);
|
|
1845
1873
|
|
|
1874
|
+
var If$1 = __vue_component__$s;
|
|
1875
|
+
|
|
1846
1876
|
var script$r = Vue.extend({
|
|
1847
1877
|
name: "expr-else",
|
|
1848
1878
|
mixins: [LocaleMixin],
|
|
@@ -1889,6 +1919,8 @@ var __vue_staticRenderFns__$r = [];
|
|
|
1889
1919
|
undefined
|
|
1890
1920
|
);
|
|
1891
1921
|
|
|
1922
|
+
var Else$1 = __vue_component__$r;
|
|
1923
|
+
|
|
1892
1924
|
var script$q = Vue.extend({
|
|
1893
1925
|
name: "expr",
|
|
1894
1926
|
props: {
|
|
@@ -1898,8 +1930,8 @@ var script$q = Vue.extend({
|
|
|
1898
1930
|
}
|
|
1899
1931
|
},
|
|
1900
1932
|
components: {
|
|
1901
|
-
IF:
|
|
1902
|
-
ELSE:
|
|
1933
|
+
IF: If$1,
|
|
1934
|
+
ELSE: Else$1
|
|
1903
1935
|
}
|
|
1904
1936
|
});
|
|
1905
1937
|
|
|
@@ -1939,12 +1971,14 @@ var __vue_staticRenderFns__$q = [];
|
|
|
1939
1971
|
undefined
|
|
1940
1972
|
);
|
|
1941
1973
|
|
|
1974
|
+
var Expr$1 = __vue_component__$q;
|
|
1975
|
+
|
|
1942
1976
|
var script$p = Vue.extend({
|
|
1943
1977
|
name: "Evaluation",
|
|
1944
1978
|
components: {
|
|
1945
|
-
Row, Col, Checkbox, CheckboxGroup, Card, Icon,
|
|
1946
|
-
STAR:
|
|
1947
|
-
EXPR:
|
|
1979
|
+
Row, Col, Checkbox, CheckboxGroup, Card, Icon, Tooltip,
|
|
1980
|
+
STAR: Star$1,
|
|
1981
|
+
EXPR: Expr$1,
|
|
1948
1982
|
},
|
|
1949
1983
|
mixins: [LocaleMixin],
|
|
1950
1984
|
props: {
|
|
@@ -1959,7 +1993,7 @@ var script$p = Vue.extend({
|
|
|
1959
1993
|
const __vue_script__$p = script$p;
|
|
1960
1994
|
|
|
1961
1995
|
/* template */
|
|
1962
|
-
var __vue_render__$p = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[(_vm.question.evaluationItems.length > 0)?_c('Row',{attrs:{"type":"flex","justify":"start","gutter":24}},_vm._l((_vm.question.evaluationItems),function(item){return _c('Col',{key:item.id,staticClass:"col-padding"},[_c('Card',{staticClass:"evaluation-cards-default",attrs:{"dis-hover":""}},[_c('div',{staticClass:"card-title",attrs:{"slot":"title"},slot:"title"},[_c('Icon',{staticClass:"icon",attrs:{"type":"ios-checkmark-circle-outline","size":36}})],1),_vm._v(" "),_c('div',{staticClass:"card-content"},[_c('p',{staticClass:"text"},[_vm._v(_vm._s(_vm._f("translate")(item.text,true)))]),_vm._v(" "),_c(_vm.question.options.evaluationType,{tag:"component",attrs:{"item":item}})],1)])],1)}),1):_vm._e()],1)};
|
|
1996
|
+
var __vue_render__$p = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[(_vm.question.evaluationItems.length > 0)?_c('Row',{attrs:{"type":"flex","justify":"start","gutter":24}},_vm._l((_vm.question.evaluationItems),function(item){return _c('Col',{key:item.id,staticClass:"col-padding"},[_c('Card',{staticClass:"evaluation-cards-default",attrs:{"dis-hover":""}},[_c('div',{staticClass:"card-title",attrs:{"slot":"title"},slot:"title"},[_c('Icon',{staticClass:"icon",attrs:{"type":"ios-checkmark-circle-outline","size":36}})],1),_vm._v(" "),_c('div',{staticClass:"card-content"},[_c('Tooltip',{attrs:{"max-width":"200"}},[_c('p',{attrs:{"slot":"content"},slot:"content"},[_vm._v(_vm._s(_vm._f("translate")(item.text,true)))]),_vm._v(" "),_c('p',{staticClass:"text"},[_vm._v(_vm._s(_vm._f("translate")(item.text,true)))])]),_vm._v(" "),_c(_vm.question.options.evaluationType,{tag:"component",attrs:{"item":item}})],1)])],1)}),1):_vm._e()],1)};
|
|
1963
1997
|
var __vue_staticRenderFns__$p = [];
|
|
1964
1998
|
|
|
1965
1999
|
/* style */
|
|
@@ -1991,6 +2025,8 @@ var __vue_staticRenderFns__$p = [];
|
|
|
1991
2025
|
undefined
|
|
1992
2026
|
);
|
|
1993
2027
|
|
|
2028
|
+
var Evaluation = __vue_component__$p;
|
|
2029
|
+
|
|
1994
2030
|
var script$o = Vue.extend({
|
|
1995
2031
|
name: "editor-question-row",
|
|
1996
2032
|
components: {
|
|
@@ -1999,14 +2035,14 @@ var script$o = Vue.extend({
|
|
|
1999
2035
|
Divider,
|
|
2000
2036
|
Card,
|
|
2001
2037
|
Icon,
|
|
2002
|
-
QuestionDefaultLayout
|
|
2003
|
-
["SINGLE_SELECTION"]:
|
|
2004
|
-
["MULTI_SELECTION"]:
|
|
2005
|
-
["SHORT_ANSWER"]:
|
|
2006
|
-
["FILL_BLANK"]:
|
|
2007
|
-
["TEXT_TITLE"]:
|
|
2008
|
-
["MATRIX"]:
|
|
2009
|
-
["EVALUATION"]:
|
|
2038
|
+
QuestionDefaultLayout,
|
|
2039
|
+
["SINGLE_SELECTION"]: SingleSelection,
|
|
2040
|
+
["MULTI_SELECTION"]: MultiSelection,
|
|
2041
|
+
["SHORT_ANSWER"]: ShortAnswer,
|
|
2042
|
+
["FILL_BLANK"]: FillBlank,
|
|
2043
|
+
["TEXT_TITLE"]: TextTitle,
|
|
2044
|
+
["MATRIX"]: Matrix,
|
|
2045
|
+
["EVALUATION"]: Evaluation
|
|
2010
2046
|
},
|
|
2011
2047
|
mixins: [LocaleMixin],
|
|
2012
2048
|
inject: ["$rootComponent"],
|
|
@@ -2058,9 +2094,11 @@ var __vue_staticRenderFns__$o = [];
|
|
|
2058
2094
|
undefined
|
|
2059
2095
|
);
|
|
2060
2096
|
|
|
2097
|
+
var EditorQuestionRow = __vue_component__$o;
|
|
2098
|
+
|
|
2061
2099
|
var script$n = Vue.extend({
|
|
2062
2100
|
name: "editor-questions",
|
|
2063
|
-
components: { EditorQuestionRow
|
|
2101
|
+
components: { EditorQuestionRow, draggable },
|
|
2064
2102
|
mixins: [LocaleMixin],
|
|
2065
2103
|
props: {
|
|
2066
2104
|
survey: {
|
|
@@ -2117,10 +2155,12 @@ var __vue_staticRenderFns__$n = [];
|
|
|
2117
2155
|
undefined
|
|
2118
2156
|
);
|
|
2119
2157
|
|
|
2158
|
+
var EditQuestions = __vue_component__$n;
|
|
2159
|
+
|
|
2120
2160
|
var script$m = Vue.extend({
|
|
2121
2161
|
name: "survey-editor",
|
|
2122
2162
|
mixins: [LocaleMixin],
|
|
2123
|
-
components: { Card, Row, Col, Button, EditQuestions
|
|
2163
|
+
components: { Card, Row, Col, Button, EditQuestions },
|
|
2124
2164
|
props: {
|
|
2125
2165
|
survey: {
|
|
2126
2166
|
type: Object,
|
|
@@ -2169,6 +2209,8 @@ var __vue_staticRenderFns__$m = [];
|
|
|
2169
2209
|
undefined
|
|
2170
2210
|
);
|
|
2171
2211
|
|
|
2212
|
+
var SurveyEditor = __vue_component__$m;
|
|
2213
|
+
|
|
2172
2214
|
var questionFormMixin = Vue.extend({
|
|
2173
2215
|
inject: ["$rootComponent"],
|
|
2174
2216
|
mixins: [LocaleMixin],
|
|
@@ -2281,11 +2323,11 @@ var __vue_staticRenderFns__$l = [];
|
|
|
2281
2323
|
/* style */
|
|
2282
2324
|
const __vue_inject_styles__$l = function (inject) {
|
|
2283
2325
|
if (!inject) return
|
|
2284
|
-
inject("data-v-
|
|
2326
|
+
inject("data-v-2daf3a59_0", { source: ".question-options[data-v-2daf3a59]{padding-bottom:10px;padding-left:80px}[data-v-2daf3a59] .ivu-form-item{width:100%}", map: undefined, media: undefined });
|
|
2285
2327
|
|
|
2286
2328
|
};
|
|
2287
2329
|
/* scoped */
|
|
2288
|
-
const __vue_scope_id__$l = "data-v-
|
|
2330
|
+
const __vue_scope_id__$l = "data-v-2daf3a59";
|
|
2289
2331
|
/* module identifier */
|
|
2290
2332
|
const __vue_module_identifier__$l = undefined;
|
|
2291
2333
|
/* functional template */
|
|
@@ -2309,6 +2351,8 @@ var __vue_staticRenderFns__$l = [];
|
|
|
2309
2351
|
undefined
|
|
2310
2352
|
);
|
|
2311
2353
|
|
|
2354
|
+
var SingleSelectionForm = __vue_component__$l;
|
|
2355
|
+
|
|
2312
2356
|
var script$k = Vue.extend({
|
|
2313
2357
|
name: "multi-selection-form",
|
|
2314
2358
|
components: {
|
|
@@ -2391,11 +2435,11 @@ var __vue_staticRenderFns__$k = [];
|
|
|
2391
2435
|
/* style */
|
|
2392
2436
|
const __vue_inject_styles__$k = function (inject) {
|
|
2393
2437
|
if (!inject) return
|
|
2394
|
-
inject("data-v-
|
|
2438
|
+
inject("data-v-7e7a6272_0", { source: ".question-options[data-v-7e7a6272]{padding-bottom:10px;padding-left:80px}[data-v-7e7a6272] .ivu-form-item{width:100%}", map: undefined, media: undefined });
|
|
2395
2439
|
|
|
2396
2440
|
};
|
|
2397
2441
|
/* scoped */
|
|
2398
|
-
const __vue_scope_id__$k = "data-v-
|
|
2442
|
+
const __vue_scope_id__$k = "data-v-7e7a6272";
|
|
2399
2443
|
/* module identifier */
|
|
2400
2444
|
const __vue_module_identifier__$k = undefined;
|
|
2401
2445
|
/* functional template */
|
|
@@ -2419,6 +2463,8 @@ var __vue_staticRenderFns__$k = [];
|
|
|
2419
2463
|
undefined
|
|
2420
2464
|
);
|
|
2421
2465
|
|
|
2466
|
+
var MultiSelectionForm = __vue_component__$k;
|
|
2467
|
+
|
|
2422
2468
|
var script$j = Vue.extend({
|
|
2423
2469
|
name: "short-answer-form",
|
|
2424
2470
|
components: {
|
|
@@ -2436,20 +2482,22 @@ var script$j = Vue.extend({
|
|
|
2436
2482
|
const __vue_script__$j = script$j;
|
|
2437
2483
|
|
|
2438
2484
|
/* template */
|
|
2439
|
-
var __vue_render__$j = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('Form',{ref:"questionForm",attrs:{"model":_vm.editQuestion,"label-colon":false}},[_c('Form-item',{attrs:{"prop":'header.text.' + _vm.primaryLanguage,"rules":{required: true,
|
|
2485
|
+
var __vue_render__$j = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('Form',{ref:"questionForm",attrs:{"model":_vm.editQuestion,"label-colon":false}},[_c('Form-item',{attrs:{"prop":'header.text.' + _vm.primaryLanguage,"rules":{required: true,
|
|
2440
2486
|
message: _vm.t('survey_creator.question.titleRequiredTip')}}},[_c('label',{attrs:{"slot":"label"},slot:"label"},[_c('span'),_vm._v(" "),_c('span',[_vm._v(_vm._s(_vm.t('survey_creator.page.question')))])]),_vm._v(" "),_c('Checkbox',{model:{value:(_vm.editQuestion.options.required),callback:function ($$v) {_vm.$set(_vm.editQuestion.options, "required", $$v);},expression:"editQuestion.options.required"}},[_vm._v(_vm._s(_vm.t('survey_creator.question.questionRequired')))]),_vm._v(" "),_c('Input',{attrs:{"placeholder":_vm.t('survey_creator.question.titleRequiredTip')},model:{value:(_vm.editQuestion.header.text[_vm.primaryLanguage]),callback:function ($$v) {_vm.$set(_vm.editQuestion.header.text, _vm.primaryLanguage, (typeof $$v === 'string'? $$v.trim(): $$v));},expression:"editQuestion.header.text[primaryLanguage]"}})],1)],1)};
|
|
2441
2487
|
var __vue_staticRenderFns__$j = [];
|
|
2442
2488
|
|
|
2443
2489
|
/* style */
|
|
2444
|
-
const __vue_inject_styles__$j =
|
|
2490
|
+
const __vue_inject_styles__$j = function (inject) {
|
|
2491
|
+
if (!inject) return
|
|
2492
|
+
inject("data-v-3a642ae8_0", { source: "[data-v-3a642ae8] .ivu-form-item{width:100%}", map: undefined, media: undefined });
|
|
2493
|
+
|
|
2494
|
+
};
|
|
2445
2495
|
/* scoped */
|
|
2446
|
-
const __vue_scope_id__$j =
|
|
2496
|
+
const __vue_scope_id__$j = "data-v-3a642ae8";
|
|
2447
2497
|
/* module identifier */
|
|
2448
2498
|
const __vue_module_identifier__$j = undefined;
|
|
2449
2499
|
/* functional template */
|
|
2450
2500
|
const __vue_is_functional_template__$j = false;
|
|
2451
|
-
/* style inject */
|
|
2452
|
-
|
|
2453
2501
|
/* style inject SSR */
|
|
2454
2502
|
|
|
2455
2503
|
/* style inject shadow dom */
|
|
@@ -2464,11 +2512,13 @@ var __vue_staticRenderFns__$j = [];
|
|
|
2464
2512
|
__vue_is_functional_template__$j,
|
|
2465
2513
|
__vue_module_identifier__$j,
|
|
2466
2514
|
false,
|
|
2467
|
-
|
|
2515
|
+
createInjector,
|
|
2468
2516
|
undefined,
|
|
2469
2517
|
undefined
|
|
2470
2518
|
);
|
|
2471
2519
|
|
|
2520
|
+
var ShortAnswerForm = __vue_component__$j;
|
|
2521
|
+
|
|
2472
2522
|
var script$i = Vue.extend({
|
|
2473
2523
|
name: "matrix-form",
|
|
2474
2524
|
components: {
|
|
@@ -2570,15 +2620,17 @@ var __vue_render__$i = function () {var _vm=this;var _h=_vm.$createElement;var _
|
|
|
2570
2620
|
var __vue_staticRenderFns__$i = [];
|
|
2571
2621
|
|
|
2572
2622
|
/* style */
|
|
2573
|
-
const __vue_inject_styles__$i =
|
|
2623
|
+
const __vue_inject_styles__$i = function (inject) {
|
|
2624
|
+
if (!inject) return
|
|
2625
|
+
inject("data-v-35ed96ec_0", { source: "[data-v-35ed96ec] .ivu-form-item{width:100%}", map: undefined, media: undefined });
|
|
2626
|
+
|
|
2627
|
+
};
|
|
2574
2628
|
/* scoped */
|
|
2575
|
-
const __vue_scope_id__$i =
|
|
2629
|
+
const __vue_scope_id__$i = "data-v-35ed96ec";
|
|
2576
2630
|
/* module identifier */
|
|
2577
2631
|
const __vue_module_identifier__$i = undefined;
|
|
2578
2632
|
/* functional template */
|
|
2579
2633
|
const __vue_is_functional_template__$i = false;
|
|
2580
|
-
/* style inject */
|
|
2581
|
-
|
|
2582
2634
|
/* style inject SSR */
|
|
2583
2635
|
|
|
2584
2636
|
/* style inject shadow dom */
|
|
@@ -2593,11 +2645,13 @@ var __vue_staticRenderFns__$i = [];
|
|
|
2593
2645
|
__vue_is_functional_template__$i,
|
|
2594
2646
|
__vue_module_identifier__$i,
|
|
2595
2647
|
false,
|
|
2596
|
-
|
|
2648
|
+
createInjector,
|
|
2597
2649
|
undefined,
|
|
2598
2650
|
undefined
|
|
2599
2651
|
);
|
|
2600
2652
|
|
|
2653
|
+
var MatrixForm = __vue_component__$i;
|
|
2654
|
+
|
|
2601
2655
|
var script$h = Vue.extend({
|
|
2602
2656
|
name: "title-form",
|
|
2603
2657
|
components: {
|
|
@@ -2646,6 +2700,8 @@ var __vue_staticRenderFns__$h = [];
|
|
|
2646
2700
|
undefined
|
|
2647
2701
|
);
|
|
2648
2702
|
|
|
2703
|
+
var TitleForm = __vue_component__$h;
|
|
2704
|
+
|
|
2649
2705
|
var script$g = Vue.extend({
|
|
2650
2706
|
name: "star",
|
|
2651
2707
|
mixins: [questionFormMixin],
|
|
@@ -2784,6 +2840,8 @@ var __vue_staticRenderFns__$g = [];
|
|
|
2784
2840
|
undefined
|
|
2785
2841
|
);
|
|
2786
2842
|
|
|
2843
|
+
var Star = __vue_component__$g;
|
|
2844
|
+
|
|
2787
2845
|
var ExprMixin = Vue.extend({
|
|
2788
2846
|
inject: ["$rootComponent"],
|
|
2789
2847
|
props: {
|
|
@@ -2933,6 +2991,8 @@ var __vue_staticRenderFns__$f = [];
|
|
|
2933
2991
|
undefined
|
|
2934
2992
|
);
|
|
2935
2993
|
|
|
2994
|
+
var QuestionSelect = __vue_component__$f;
|
|
2995
|
+
|
|
2936
2996
|
var script$e = Vue.extend({
|
|
2937
2997
|
name: "assign",
|
|
2938
2998
|
mixins: [questionFormMixin, ExprMixin],
|
|
@@ -2944,7 +3004,7 @@ var script$e = Vue.extend({
|
|
|
2944
3004
|
Option,
|
|
2945
3005
|
FormItem,
|
|
2946
3006
|
InputNumber,
|
|
2947
|
-
QuestionSelect
|
|
3007
|
+
QuestionSelect
|
|
2948
3008
|
},
|
|
2949
3009
|
created() {
|
|
2950
3010
|
this.value.operator = _.unescape(this.value.operator);
|
|
@@ -3000,6 +3060,8 @@ var __vue_staticRenderFns__$e = [];
|
|
|
3000
3060
|
undefined
|
|
3001
3061
|
);
|
|
3002
3062
|
|
|
3063
|
+
var Assign = __vue_component__$e;
|
|
3064
|
+
|
|
3003
3065
|
var script$d = Vue.extend({
|
|
3004
3066
|
name: "auto",
|
|
3005
3067
|
mixins: [ExprMixin, questionFormMixin],
|
|
@@ -3009,7 +3071,7 @@ var script$d = Vue.extend({
|
|
|
3009
3071
|
Select,
|
|
3010
3072
|
Option,
|
|
3011
3073
|
FormItem,
|
|
3012
|
-
QuestionSelect
|
|
3074
|
+
QuestionSelect
|
|
3013
3075
|
},
|
|
3014
3076
|
methods: {
|
|
3015
3077
|
generateExpr() {
|
|
@@ -3062,12 +3124,14 @@ var __vue_staticRenderFns__$d = [];
|
|
|
3062
3124
|
undefined
|
|
3063
3125
|
);
|
|
3064
3126
|
|
|
3127
|
+
var Auto = __vue_component__$d;
|
|
3128
|
+
|
|
3065
3129
|
var script$c = Vue.extend({
|
|
3066
3130
|
name: "condition",
|
|
3067
3131
|
mixins: [questionFormMixin],
|
|
3068
3132
|
components: {
|
|
3069
|
-
ASSIGN:
|
|
3070
|
-
AUTO:
|
|
3133
|
+
ASSIGN: Assign,
|
|
3134
|
+
AUTO: Auto
|
|
3071
3135
|
},
|
|
3072
3136
|
props: {
|
|
3073
3137
|
type: {
|
|
@@ -3140,6 +3204,8 @@ var __vue_staticRenderFns__$c = [];
|
|
|
3140
3204
|
undefined
|
|
3141
3205
|
);
|
|
3142
3206
|
|
|
3207
|
+
var Condition = __vue_component__$c;
|
|
3208
|
+
|
|
3143
3209
|
var script$b = Vue.extend({
|
|
3144
3210
|
name: "if",
|
|
3145
3211
|
mixins: [questionFormMixin],
|
|
@@ -3151,7 +3217,7 @@ var script$b = Vue.extend({
|
|
|
3151
3217
|
Option,
|
|
3152
3218
|
Button,
|
|
3153
3219
|
Icon,
|
|
3154
|
-
Condition
|
|
3220
|
+
Condition,
|
|
3155
3221
|
FormItem,
|
|
3156
3222
|
Input
|
|
3157
3223
|
},
|
|
@@ -3216,7 +3282,7 @@ var script$b = Vue.extend({
|
|
|
3216
3282
|
const __vue_script__$b = script$b;
|
|
3217
3283
|
|
|
3218
3284
|
/* template */
|
|
3219
|
-
var __vue_render__$b = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('Card',{attrs:{"dis-hover":""}},[_c('Row',{attrs:{"slot":"title","type":"flex","gutter":6},slot:"title"},[_c('Col',[_c('div',{staticClass:"text"},[_vm._v("\n "+_vm._s(_vm.t('survey_creator.question.evaluation.condition.if'))+"\n ")])]),_vm._v(" "),_c('Col',[_c('Button',{attrs:{"type":"primary","icon":"md-add"},on:{"click":_vm.onAdd}},[_vm._v("\n "+_vm._s(_vm.t('survey_creator.question.evaluation.condition.add_if_template'))+"\n ")])],1)],1),_vm._v(" "),_c('a',{directives:[{name:"show",rawName:"v-show",value:(_vm.deletable),expression:"deletable"}],attrs:{"slot":"extra","href":"#"},on:{"click":function($event){$event.preventDefault();return _vm.onDelete(
|
|
3285
|
+
var __vue_render__$b = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('Card',{attrs:{"dis-hover":""}},[_c('Row',{attrs:{"slot":"title","type":"flex","gutter":6},slot:"title"},[_c('Col',[_c('div',{staticClass:"text"},[_vm._v("\n "+_vm._s(_vm.t('survey_creator.question.evaluation.condition.if'))+"\n ")])]),_vm._v(" "),_c('Col',[_c('Button',{attrs:{"type":"primary","icon":"md-add"},on:{"click":_vm.onAdd}},[_vm._v("\n "+_vm._s(_vm.t('survey_creator.question.evaluation.condition.add_if_template'))+"\n ")])],1)],1),_vm._v(" "),_c('a',{directives:[{name:"show",rawName:"v-show",value:(_vm.deletable),expression:"deletable"}],attrs:{"slot":"extra","href":"#"},on:{"click":function($event){$event.preventDefault();return _vm.onDelete.apply(null, arguments)}},slot:"extra"},[_vm._v("\n "+_vm._s(_vm.t('survey_creator.common.delete'))+"\n ")]),_vm._v(" "),_c('Row',{attrs:{"type":"flex","justify":"start","align":"middle"}},[_c('Col',{attrs:{"span":22}},[_c('Row',{attrs:{"type":"flex","justify":"start","align":"middle"}},[_c('Col',{staticClass:"label"},[_c('Icon',{attrs:{"type":"ios-arrow-forward","color":"#2d8cf0"}}),_vm._v("\n "+_vm._s(_vm.t('survey_creator.question.evaluation.condition.requirements'))+"\n ")],1),_vm._v(" "),_c('Col',{attrs:{"span":16}},[_c('Select',{model:{value:(_vm.exprConditionType),callback:function ($$v) {_vm.exprConditionType=$$v;},expression:"exprConditionType"}},_vm._l((_vm.exprConditionTypes),function(type){return _c('Option',{key:type,attrs:{"value":type}},[_vm._v("\n "+_vm._s(_vm.t(("survey_creator.question.evaluation.condition.type." + type)))+"\n ")])}),1)],1)],1)],1),_vm._v(" "),_c('Col',{attrs:{"span":2}},[_c('Button',{staticClass:"action",attrs:{"icon":"md-add"},on:{"click":_vm.addCondition}})],1)],1),_vm._v(" "),_vm._l((_vm.evaluationItems[_vm.position].conditions),function(condition,index){return _c('Row',{key:index,staticClass:"mt-base",attrs:{"type":"flex","justify":"space-between","align":"middle"}},[_c('Col',{attrs:{"span":22}},[_c('condition',{key:index,attrs:{"index":index,"type":condition.type,"question":_vm.question,"evaluation-items":_vm.evaluationItems,"item-index":_vm.position},on:{"expr":_vm.expr},model:{value:(condition.payload),callback:function ($$v) {_vm.$set(condition, "payload", $$v);},expression:"condition.payload"}})],1),_vm._v(" "),_c('Col',{attrs:{"span":2}},[_c('Button',{staticClass:"action",staticStyle:{"margin-bottom":"24px"},attrs:{"icon":"md-remove"},on:{"click":function($event){return _vm.removeCondition(index)}}})],1)],1)}),_vm._v(" "),_c('Row',{staticClass:"mt-base",attrs:{"type":"flex","justify":"end","align":"middle"}},[_c('Col',[_c('FormItem',{attrs:{"prop":'evaluationItems[' + _vm.position + '].text.' + _vm.primaryLanguage,"rules":{required: true, message: _vm.t('survey_creator.question.evaluation.condition.evaluation_require_tip')}}},[_vm._v(_vm._s(_vm.t('survey_creator.question.evaluation.condition.evaluation_label'))+"\n "),_c('Input',{staticClass:"input",model:{value:(_vm.evaluationItems[_vm.position].text[_vm.primaryLanguage]),callback:function ($$v) {_vm.$set(_vm.evaluationItems[_vm.position].text, _vm.primaryLanguage, (typeof $$v === 'string'? $$v.trim(): $$v));},expression:"evaluationItems[position].text[primaryLanguage]"}})],1)],1)],1)],2)};
|
|
3220
3286
|
var __vue_staticRenderFns__$b = [];
|
|
3221
3287
|
|
|
3222
3288
|
/* style */
|
|
@@ -3250,6 +3316,8 @@ var __vue_staticRenderFns__$b = [];
|
|
|
3250
3316
|
undefined
|
|
3251
3317
|
);
|
|
3252
3318
|
|
|
3319
|
+
var If = __vue_component__$b;
|
|
3320
|
+
|
|
3253
3321
|
var script$a = Vue.extend({
|
|
3254
3322
|
name: "else",
|
|
3255
3323
|
mixins: [questionFormMixin],
|
|
@@ -3318,12 +3386,14 @@ var __vue_staticRenderFns__$a = [];
|
|
|
3318
3386
|
undefined
|
|
3319
3387
|
);
|
|
3320
3388
|
|
|
3389
|
+
var Else = __vue_component__$a;
|
|
3390
|
+
|
|
3321
3391
|
var script$9 = Vue.extend({
|
|
3322
3392
|
name: "expr",
|
|
3323
3393
|
mixins: [questionFormMixin],
|
|
3324
3394
|
components: {
|
|
3325
|
-
IF:
|
|
3326
|
-
ELSE:
|
|
3395
|
+
IF: If,
|
|
3396
|
+
ELSE: Else
|
|
3327
3397
|
},
|
|
3328
3398
|
props: {
|
|
3329
3399
|
value: {
|
|
@@ -3371,14 +3441,16 @@ var __vue_staticRenderFns__$9 = [];
|
|
|
3371
3441
|
undefined
|
|
3372
3442
|
);
|
|
3373
3443
|
|
|
3444
|
+
var Expr = __vue_component__$9;
|
|
3445
|
+
|
|
3374
3446
|
var script$8 = Vue.extend({
|
|
3375
3447
|
name: "evaluation-form",
|
|
3376
3448
|
components: {
|
|
3377
3449
|
Form, FormItem, Row,
|
|
3378
3450
|
Col, draggable, Option,
|
|
3379
3451
|
Select, Checkbox, Input,
|
|
3380
|
-
["STAR"]:
|
|
3381
|
-
["EXPR"]:
|
|
3452
|
+
["STAR"]: Star,
|
|
3453
|
+
["EXPR"]: Expr
|
|
3382
3454
|
},
|
|
3383
3455
|
mixins: [questionFormMixin],
|
|
3384
3456
|
data() {
|
|
@@ -3416,11 +3488,11 @@ var __vue_staticRenderFns__$8 = [];
|
|
|
3416
3488
|
/* style */
|
|
3417
3489
|
const __vue_inject_styles__$8 = function (inject) {
|
|
3418
3490
|
if (!inject) return
|
|
3419
|
-
inject("data-v-
|
|
3491
|
+
inject("data-v-758574b8_0", { source: "[data-v-758574b8] .ivu-table-cell-slot .ivu-form-item{margin-bottom:4px;margin-top:0}[data-v-758574b8] .ivu-table-cell-slot .ivu-form-item-error{margin-bottom:24px;margin-top:0}[data-v-758574b8] .ivu-form-item{width:100%}", map: undefined, media: undefined });
|
|
3420
3492
|
|
|
3421
3493
|
};
|
|
3422
3494
|
/* scoped */
|
|
3423
|
-
const __vue_scope_id__$8 = "data-v-
|
|
3495
|
+
const __vue_scope_id__$8 = "data-v-758574b8";
|
|
3424
3496
|
/* module identifier */
|
|
3425
3497
|
const __vue_module_identifier__$8 = undefined;
|
|
3426
3498
|
/* functional template */
|
|
@@ -3444,6 +3516,8 @@ var __vue_staticRenderFns__$8 = [];
|
|
|
3444
3516
|
undefined
|
|
3445
3517
|
);
|
|
3446
3518
|
|
|
3519
|
+
var EvaluationForm = __vue_component__$8;
|
|
3520
|
+
|
|
3447
3521
|
const QUESTION_OPERATION_TYPE_COPY$1 = "copy";
|
|
3448
3522
|
var script$7 = Vue.extend({
|
|
3449
3523
|
name: "question-edit-drawer",
|
|
@@ -3452,13 +3526,13 @@ var script$7 = Vue.extend({
|
|
|
3452
3526
|
ButtonGroup,
|
|
3453
3527
|
Button,
|
|
3454
3528
|
Card,
|
|
3455
|
-
["SINGLE_SELECTION"]:
|
|
3456
|
-
["MULTI_SELECTION"]:
|
|
3457
|
-
["SHORT_ANSWER"]:
|
|
3458
|
-
["FILL_BLANK"]:
|
|
3459
|
-
["MATRIX"]:
|
|
3460
|
-
["TEXT_TITLE"]:
|
|
3461
|
-
["EVALUATION"]:
|
|
3529
|
+
["SINGLE_SELECTION"]: SingleSelectionForm,
|
|
3530
|
+
["MULTI_SELECTION"]: MultiSelectionForm,
|
|
3531
|
+
["SHORT_ANSWER"]: ShortAnswerForm,
|
|
3532
|
+
["FILL_BLANK"]: ShortAnswerForm,
|
|
3533
|
+
["MATRIX"]: MatrixForm,
|
|
3534
|
+
["TEXT_TITLE"]: TitleForm,
|
|
3535
|
+
["EVALUATION"]: EvaluationForm
|
|
3462
3536
|
},
|
|
3463
3537
|
inject: ["$rootComponent"],
|
|
3464
3538
|
mixins: [LocaleMixin],
|
|
@@ -3570,6 +3644,8 @@ var __vue_staticRenderFns__$7 = [function () {var _vm=this;var _h=_vm.$createEle
|
|
|
3570
3644
|
undefined
|
|
3571
3645
|
);
|
|
3572
3646
|
|
|
3647
|
+
var QuestionEditDrawer = __vue_component__$7;
|
|
3648
|
+
|
|
3573
3649
|
var script$6 = Vue.extend({
|
|
3574
3650
|
name: "translation-table",
|
|
3575
3651
|
components: { Input, Table },
|
|
@@ -3655,9 +3731,11 @@ var __vue_staticRenderFns__$6 = [];
|
|
|
3655
3731
|
undefined
|
|
3656
3732
|
);
|
|
3657
3733
|
|
|
3734
|
+
var TranslationTable = __vue_component__$6;
|
|
3735
|
+
|
|
3658
3736
|
var script$5 = Vue.extend({
|
|
3659
3737
|
name: 'survey-translator',
|
|
3660
|
-
components: { TranslationTable
|
|
3738
|
+
components: { TranslationTable },
|
|
3661
3739
|
mixins: [LocaleMixin, SurveyTranslatorMixin],
|
|
3662
3740
|
props: {
|
|
3663
3741
|
survey: {
|
|
@@ -3766,6 +3844,8 @@ var __vue_staticRenderFns__$5 = [];
|
|
|
3766
3844
|
undefined
|
|
3767
3845
|
);
|
|
3768
3846
|
|
|
3847
|
+
var SurveyTranslator = __vue_component__$5;
|
|
3848
|
+
|
|
3769
3849
|
var script$4 = Vue.extend({
|
|
3770
3850
|
name: "previewer-question-row",
|
|
3771
3851
|
components: {
|
|
@@ -3773,14 +3853,14 @@ var script$4 = Vue.extend({
|
|
|
3773
3853
|
Col,
|
|
3774
3854
|
Divider,
|
|
3775
3855
|
Card,
|
|
3776
|
-
QuestionTitle
|
|
3777
|
-
["SINGLE_SELECTION"]:
|
|
3778
|
-
["MULTI_SELECTION"]:
|
|
3779
|
-
["SHORT_ANSWER"]:
|
|
3780
|
-
["FILL_BLANK"]:
|
|
3781
|
-
["TEXT_TITLE"]:
|
|
3782
|
-
["MATRIX"]:
|
|
3783
|
-
["EVALUATION"]:
|
|
3856
|
+
QuestionTitle,
|
|
3857
|
+
["SINGLE_SELECTION"]: SingleSelection,
|
|
3858
|
+
["MULTI_SELECTION"]: MultiSelection,
|
|
3859
|
+
["SHORT_ANSWER"]: ShortAnswer,
|
|
3860
|
+
["FILL_BLANK"]: FillBlank,
|
|
3861
|
+
["TEXT_TITLE"]: TextTitle,
|
|
3862
|
+
["MATRIX"]: Matrix,
|
|
3863
|
+
["EVALUATION"]: Evaluation
|
|
3784
3864
|
},
|
|
3785
3865
|
mixins: [LocaleMixin],
|
|
3786
3866
|
inject: ["$rootComponent"],
|
|
@@ -3828,9 +3908,11 @@ var __vue_staticRenderFns__$4 = [];
|
|
|
3828
3908
|
undefined
|
|
3829
3909
|
);
|
|
3830
3910
|
|
|
3911
|
+
var PreviewerQuestionRow = __vue_component__$4;
|
|
3912
|
+
|
|
3831
3913
|
var script$3 = Vue.extend({
|
|
3832
3914
|
name: 'survey-internal-previewer',
|
|
3833
|
-
components: { Card, PreviewerQuestionRow
|
|
3915
|
+
components: { Card, PreviewerQuestionRow },
|
|
3834
3916
|
props: {
|
|
3835
3917
|
survey: {
|
|
3836
3918
|
type: Object,
|
|
@@ -3875,6 +3957,8 @@ var __vue_staticRenderFns__$3 = [];
|
|
|
3875
3957
|
undefined
|
|
3876
3958
|
);
|
|
3877
3959
|
|
|
3960
|
+
var SurveyInternalPreviewer = __vue_component__$3;
|
|
3961
|
+
|
|
3878
3962
|
var script$2 = Vue.extend({
|
|
3879
3963
|
name: "editor-options",
|
|
3880
3964
|
components: { Row, Col, Icon, RadioGroup, Radio },
|
|
@@ -3942,6 +4026,8 @@ var __vue_staticRenderFns__$2 = [];
|
|
|
3942
4026
|
undefined
|
|
3943
4027
|
);
|
|
3944
4028
|
|
|
4029
|
+
var EditOptions = __vue_component__$2;
|
|
4030
|
+
|
|
3945
4031
|
var Mode;
|
|
3946
4032
|
(function (Mode) {
|
|
3947
4033
|
Mode[Mode["EDIT"] = 0] = "EDIT";
|
|
@@ -3958,18 +4044,18 @@ var script$1 = Vue.extend({
|
|
|
3958
4044
|
Row,
|
|
3959
4045
|
Col,
|
|
3960
4046
|
Button,
|
|
3961
|
-
SurveyEditor
|
|
3962
|
-
SurveyTranslator
|
|
3963
|
-
SurveyInternalPreviewer
|
|
3964
|
-
QuestionEditDrawer
|
|
3965
|
-
Toolbar
|
|
4047
|
+
SurveyEditor,
|
|
4048
|
+
SurveyTranslator,
|
|
4049
|
+
SurveyInternalPreviewer,
|
|
4050
|
+
QuestionEditDrawer,
|
|
4051
|
+
Toolbar,
|
|
3966
4052
|
Modal,
|
|
3967
4053
|
Tabs,
|
|
3968
4054
|
TabPane,
|
|
3969
4055
|
Icon,
|
|
3970
4056
|
Scroll,
|
|
3971
|
-
CreateQuestionDropdown
|
|
3972
|
-
EditOptions
|
|
4057
|
+
CreateQuestionDropdown,
|
|
4058
|
+
EditOptions
|
|
3973
4059
|
},
|
|
3974
4060
|
mixins: [LocaleMixin, SurveyTranslatorMixin],
|
|
3975
4061
|
provide() {
|
|
@@ -4180,10 +4266,12 @@ var __vue_staticRenderFns__$1 = [];
|
|
|
4180
4266
|
undefined
|
|
4181
4267
|
);
|
|
4182
4268
|
|
|
4269
|
+
var SurveyCreator = __vue_component__$1;
|
|
4270
|
+
|
|
4183
4271
|
var script = Vue.extend({
|
|
4184
4272
|
name: 'survey-previewer',
|
|
4185
4273
|
mixins: [LocaleMixin],
|
|
4186
|
-
components: { Card, Row, Col, Button, Toolbar
|
|
4274
|
+
components: { Card, Row, Col, Button, Toolbar, SurveyInternalPreviewer },
|
|
4187
4275
|
provide() {
|
|
4188
4276
|
return {
|
|
4189
4277
|
$rootComponent: this
|
|
@@ -4256,6 +4344,8 @@ var __vue_staticRenderFns__ = [];
|
|
|
4256
4344
|
undefined
|
|
4257
4345
|
);
|
|
4258
4346
|
|
|
4347
|
+
var SurveyPreviewer = __vue_component__;
|
|
4348
|
+
|
|
4259
4349
|
class SurveyCreatorOptions {
|
|
4260
4350
|
}
|
|
4261
4351
|
class SurveyCreatorPlugin {
|
|
@@ -4263,10 +4353,9 @@ class SurveyCreatorPlugin {
|
|
|
4263
4353
|
locale.use(options.locale);
|
|
4264
4354
|
locale.i18n(options.i18n);
|
|
4265
4355
|
Vue.$surveyLanguage = options.locale;
|
|
4266
|
-
Vue.component('survey-creator',
|
|
4267
|
-
Vue.component('survey-previewer',
|
|
4356
|
+
Vue.component('survey-creator', SurveyCreator);
|
|
4357
|
+
Vue.component('survey-previewer', SurveyPreviewer);
|
|
4268
4358
|
}
|
|
4269
4359
|
}
|
|
4270
4360
|
|
|
4271
|
-
export default
|
|
4272
|
-
export { __vue_component__$1 as SurveyCreator, SurveyCreatorOptions };
|
|
4361
|
+
export { SurveyCreator, SurveyCreatorOptions, SurveyCreatorPlugin as default };
|
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.4805.release",
|
|
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.4805.release",
|
|
16
|
+
"@wg-npm/survey-service-api": "0.3.4805.release",
|
|
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.4805.release",
|
|
42
|
+
"@wg-npm/survey-service-api": "0.3.4805.release",
|
|
43
43
|
"acorn": "^7.3.1",
|
|
44
44
|
"axios": "^0.19.2",
|
|
45
45
|
"babelrc-rollup": "^3.0.0",
|
|
@@ -7,7 +7,10 @@
|
|
|
7
7
|
<Icon class="icon" type="ios-checkmark-circle-outline" :size="36"/>
|
|
8
8
|
</div>
|
|
9
9
|
<div class="card-content">
|
|
10
|
-
<
|
|
10
|
+
<Tooltip max-width="200">
|
|
11
|
+
<p slot="content">{{ item.text | translate(true) }}</p>
|
|
12
|
+
<p class="text">{{ item.text | translate(true) }}</p>
|
|
13
|
+
</Tooltip>
|
|
11
14
|
<component :is="question.options.evaluationType" :item="item"></component>
|
|
12
15
|
</div>
|
|
13
16
|
</Card>
|
|
@@ -18,7 +21,7 @@
|
|
|
18
21
|
|
|
19
22
|
<script lang="ts">
|
|
20
23
|
import Vue from "vue";
|
|
21
|
-
import {Checkbox, Col, Row, CheckboxGroup, Card, Icon} from "view-design";
|
|
24
|
+
import {Checkbox, Col, Row, CheckboxGroup, Card, Icon, Tooltip} from "view-design";
|
|
22
25
|
import LocaleMixin from "../../../mixins/locale-mixin";
|
|
23
26
|
import {QuestionEvaluationModel, QuestionType} from "@wg-npm/survey-core";
|
|
24
27
|
import Star from "./evaluation/star.vue";
|
|
@@ -28,7 +31,7 @@
|
|
|
28
31
|
export default Vue.extend({
|
|
29
32
|
name: "Evaluation",
|
|
30
33
|
components: {
|
|
31
|
-
Row, Col, Checkbox, CheckboxGroup, Card, Icon,
|
|
34
|
+
Row, Col, Checkbox, CheckboxGroup, Card, Icon, Tooltip,
|
|
32
35
|
STAR: Star,
|
|
33
36
|
EXPR: Expr,
|
|
34
37
|
},
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
<Form ref="questionForm" :model="editQuestion" :label-colon="false">
|
|
3
3
|
<Form-item
|
|
4
4
|
:prop="'header.text.' + primaryLanguage"
|
|
5
|
-
:rules="{required: true,
|
|
5
|
+
:rules="{required: true,
|
|
6
6
|
message: t('survey_creator.question.titleRequiredTip')}"
|
|
7
7
|
>
|
|
8
8
|
<label slot="label">
|
|
@@ -37,3 +37,9 @@
|
|
|
37
37
|
mixins: [questionFormMixin]
|
|
38
38
|
});
|
|
39
39
|
</script>
|
|
40
|
+
|
|
41
|
+
<style scoped lang="less">
|
|
42
|
+
/deep/ .ivu-form-item {
|
|
43
|
+
width: 100%;
|
|
44
|
+
}
|
|
45
|
+
</style>
|
|
@@ -189,11 +189,20 @@
|
|
|
189
189
|
|
|
190
190
|
.card-content {
|
|
191
191
|
text-align: center;
|
|
192
|
+
.ivu-tooltip {
|
|
193
|
+
display: unset;
|
|
194
|
+
}
|
|
195
|
+
.ivu-tooltip-rel{
|
|
196
|
+
display: unset;
|
|
197
|
+
}
|
|
192
198
|
|
|
193
199
|
.text {
|
|
194
200
|
font-weight: 500;
|
|
195
201
|
font-size: 18px;
|
|
196
202
|
padding: 10px;
|
|
203
|
+
white-space: nowrap;/*把文本强制显示在一行*/
|
|
204
|
+
overflow: hidden;/*隐藏超出部分的文字*/
|
|
205
|
+
text-overflow: ellipsis;/*超出显示省略号*/
|
|
197
206
|
}
|
|
198
207
|
}
|
|
199
208
|
}
|
|
@@ -132,10 +132,20 @@
|
|
|
132
132
|
.card-content {
|
|
133
133
|
text-align: center;
|
|
134
134
|
|
|
135
|
+
.ivu-tooltip {
|
|
136
|
+
display: unset;
|
|
137
|
+
}
|
|
138
|
+
.ivu-tooltip-rel{
|
|
139
|
+
display: unset;
|
|
140
|
+
}
|
|
141
|
+
|
|
135
142
|
.text {
|
|
136
143
|
font-weight: 500;
|
|
137
144
|
font-size: 18px;
|
|
138
145
|
padding: 10px;
|
|
146
|
+
white-space: nowrap;/*把文本强制显示在一行*/
|
|
147
|
+
overflow: hidden;/*隐藏超出部分的文字*/
|
|
148
|
+
text-overflow: ellipsis;/*超出显示省略号*/
|
|
139
149
|
}
|
|
140
150
|
}
|
|
141
151
|
}
|