@wg-npm/survey-creator 0.3.14 → 0.3.479-2.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 +141 -56
- package/package.json +5 -5
|
@@ -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
1979
|
Row, Col, Checkbox, CheckboxGroup, Card, Icon,
|
|
1946
|
-
STAR:
|
|
1947
|
-
EXPR:
|
|
1980
|
+
STAR: Star$1,
|
|
1981
|
+
EXPR: Expr$1,
|
|
1948
1982
|
},
|
|
1949
1983
|
mixins: [LocaleMixin],
|
|
1950
1984
|
props: {
|
|
@@ -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],
|
|
@@ -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: {
|
|
@@ -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: {
|
|
@@ -2469,6 +2515,8 @@ var __vue_staticRenderFns__$j = [];
|
|
|
2469
2515
|
undefined
|
|
2470
2516
|
);
|
|
2471
2517
|
|
|
2518
|
+
var ShortAnswerForm = __vue_component__$j;
|
|
2519
|
+
|
|
2472
2520
|
var script$i = Vue.extend({
|
|
2473
2521
|
name: "matrix-form",
|
|
2474
2522
|
components: {
|
|
@@ -2598,6 +2646,8 @@ var __vue_staticRenderFns__$i = [];
|
|
|
2598
2646
|
undefined
|
|
2599
2647
|
);
|
|
2600
2648
|
|
|
2649
|
+
var MatrixForm = __vue_component__$i;
|
|
2650
|
+
|
|
2601
2651
|
var script$h = Vue.extend({
|
|
2602
2652
|
name: "title-form",
|
|
2603
2653
|
components: {
|
|
@@ -2646,6 +2696,8 @@ var __vue_staticRenderFns__$h = [];
|
|
|
2646
2696
|
undefined
|
|
2647
2697
|
);
|
|
2648
2698
|
|
|
2699
|
+
var TitleForm = __vue_component__$h;
|
|
2700
|
+
|
|
2649
2701
|
var script$g = Vue.extend({
|
|
2650
2702
|
name: "star",
|
|
2651
2703
|
mixins: [questionFormMixin],
|
|
@@ -2784,6 +2836,8 @@ var __vue_staticRenderFns__$g = [];
|
|
|
2784
2836
|
undefined
|
|
2785
2837
|
);
|
|
2786
2838
|
|
|
2839
|
+
var Star = __vue_component__$g;
|
|
2840
|
+
|
|
2787
2841
|
var ExprMixin = Vue.extend({
|
|
2788
2842
|
inject: ["$rootComponent"],
|
|
2789
2843
|
props: {
|
|
@@ -2933,6 +2987,8 @@ var __vue_staticRenderFns__$f = [];
|
|
|
2933
2987
|
undefined
|
|
2934
2988
|
);
|
|
2935
2989
|
|
|
2990
|
+
var QuestionSelect = __vue_component__$f;
|
|
2991
|
+
|
|
2936
2992
|
var script$e = Vue.extend({
|
|
2937
2993
|
name: "assign",
|
|
2938
2994
|
mixins: [questionFormMixin, ExprMixin],
|
|
@@ -2944,7 +3000,7 @@ var script$e = Vue.extend({
|
|
|
2944
3000
|
Option,
|
|
2945
3001
|
FormItem,
|
|
2946
3002
|
InputNumber,
|
|
2947
|
-
QuestionSelect
|
|
3003
|
+
QuestionSelect
|
|
2948
3004
|
},
|
|
2949
3005
|
created() {
|
|
2950
3006
|
this.value.operator = _.unescape(this.value.operator);
|
|
@@ -3000,6 +3056,8 @@ var __vue_staticRenderFns__$e = [];
|
|
|
3000
3056
|
undefined
|
|
3001
3057
|
);
|
|
3002
3058
|
|
|
3059
|
+
var Assign = __vue_component__$e;
|
|
3060
|
+
|
|
3003
3061
|
var script$d = Vue.extend({
|
|
3004
3062
|
name: "auto",
|
|
3005
3063
|
mixins: [ExprMixin, questionFormMixin],
|
|
@@ -3009,7 +3067,7 @@ var script$d = Vue.extend({
|
|
|
3009
3067
|
Select,
|
|
3010
3068
|
Option,
|
|
3011
3069
|
FormItem,
|
|
3012
|
-
QuestionSelect
|
|
3070
|
+
QuestionSelect
|
|
3013
3071
|
},
|
|
3014
3072
|
methods: {
|
|
3015
3073
|
generateExpr() {
|
|
@@ -3062,12 +3120,14 @@ var __vue_staticRenderFns__$d = [];
|
|
|
3062
3120
|
undefined
|
|
3063
3121
|
);
|
|
3064
3122
|
|
|
3123
|
+
var Auto = __vue_component__$d;
|
|
3124
|
+
|
|
3065
3125
|
var script$c = Vue.extend({
|
|
3066
3126
|
name: "condition",
|
|
3067
3127
|
mixins: [questionFormMixin],
|
|
3068
3128
|
components: {
|
|
3069
|
-
ASSIGN:
|
|
3070
|
-
AUTO:
|
|
3129
|
+
ASSIGN: Assign,
|
|
3130
|
+
AUTO: Auto
|
|
3071
3131
|
},
|
|
3072
3132
|
props: {
|
|
3073
3133
|
type: {
|
|
@@ -3140,6 +3200,8 @@ var __vue_staticRenderFns__$c = [];
|
|
|
3140
3200
|
undefined
|
|
3141
3201
|
);
|
|
3142
3202
|
|
|
3203
|
+
var Condition = __vue_component__$c;
|
|
3204
|
+
|
|
3143
3205
|
var script$b = Vue.extend({
|
|
3144
3206
|
name: "if",
|
|
3145
3207
|
mixins: [questionFormMixin],
|
|
@@ -3151,7 +3213,7 @@ var script$b = Vue.extend({
|
|
|
3151
3213
|
Option,
|
|
3152
3214
|
Button,
|
|
3153
3215
|
Icon,
|
|
3154
|
-
Condition
|
|
3216
|
+
Condition,
|
|
3155
3217
|
FormItem,
|
|
3156
3218
|
Input
|
|
3157
3219
|
},
|
|
@@ -3216,7 +3278,7 @@ var script$b = Vue.extend({
|
|
|
3216
3278
|
const __vue_script__$b = script$b;
|
|
3217
3279
|
|
|
3218
3280
|
/* 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(
|
|
3281
|
+
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
3282
|
var __vue_staticRenderFns__$b = [];
|
|
3221
3283
|
|
|
3222
3284
|
/* style */
|
|
@@ -3250,6 +3312,8 @@ var __vue_staticRenderFns__$b = [];
|
|
|
3250
3312
|
undefined
|
|
3251
3313
|
);
|
|
3252
3314
|
|
|
3315
|
+
var If = __vue_component__$b;
|
|
3316
|
+
|
|
3253
3317
|
var script$a = Vue.extend({
|
|
3254
3318
|
name: "else",
|
|
3255
3319
|
mixins: [questionFormMixin],
|
|
@@ -3318,12 +3382,14 @@ var __vue_staticRenderFns__$a = [];
|
|
|
3318
3382
|
undefined
|
|
3319
3383
|
);
|
|
3320
3384
|
|
|
3385
|
+
var Else = __vue_component__$a;
|
|
3386
|
+
|
|
3321
3387
|
var script$9 = Vue.extend({
|
|
3322
3388
|
name: "expr",
|
|
3323
3389
|
mixins: [questionFormMixin],
|
|
3324
3390
|
components: {
|
|
3325
|
-
IF:
|
|
3326
|
-
ELSE:
|
|
3391
|
+
IF: If,
|
|
3392
|
+
ELSE: Else
|
|
3327
3393
|
},
|
|
3328
3394
|
props: {
|
|
3329
3395
|
value: {
|
|
@@ -3371,14 +3437,16 @@ var __vue_staticRenderFns__$9 = [];
|
|
|
3371
3437
|
undefined
|
|
3372
3438
|
);
|
|
3373
3439
|
|
|
3440
|
+
var Expr = __vue_component__$9;
|
|
3441
|
+
|
|
3374
3442
|
var script$8 = Vue.extend({
|
|
3375
3443
|
name: "evaluation-form",
|
|
3376
3444
|
components: {
|
|
3377
3445
|
Form, FormItem, Row,
|
|
3378
3446
|
Col, draggable, Option,
|
|
3379
3447
|
Select, Checkbox, Input,
|
|
3380
|
-
["STAR"]:
|
|
3381
|
-
["EXPR"]:
|
|
3448
|
+
["STAR"]: Star,
|
|
3449
|
+
["EXPR"]: Expr
|
|
3382
3450
|
},
|
|
3383
3451
|
mixins: [questionFormMixin],
|
|
3384
3452
|
data() {
|
|
@@ -3444,6 +3512,8 @@ var __vue_staticRenderFns__$8 = [];
|
|
|
3444
3512
|
undefined
|
|
3445
3513
|
);
|
|
3446
3514
|
|
|
3515
|
+
var EvaluationForm = __vue_component__$8;
|
|
3516
|
+
|
|
3447
3517
|
const QUESTION_OPERATION_TYPE_COPY$1 = "copy";
|
|
3448
3518
|
var script$7 = Vue.extend({
|
|
3449
3519
|
name: "question-edit-drawer",
|
|
@@ -3452,13 +3522,13 @@ var script$7 = Vue.extend({
|
|
|
3452
3522
|
ButtonGroup,
|
|
3453
3523
|
Button,
|
|
3454
3524
|
Card,
|
|
3455
|
-
["SINGLE_SELECTION"]:
|
|
3456
|
-
["MULTI_SELECTION"]:
|
|
3457
|
-
["SHORT_ANSWER"]:
|
|
3458
|
-
["FILL_BLANK"]:
|
|
3459
|
-
["MATRIX"]:
|
|
3460
|
-
["TEXT_TITLE"]:
|
|
3461
|
-
["EVALUATION"]:
|
|
3525
|
+
["SINGLE_SELECTION"]: SingleSelectionForm,
|
|
3526
|
+
["MULTI_SELECTION"]: MultiSelectionForm,
|
|
3527
|
+
["SHORT_ANSWER"]: ShortAnswerForm,
|
|
3528
|
+
["FILL_BLANK"]: ShortAnswerForm,
|
|
3529
|
+
["MATRIX"]: MatrixForm,
|
|
3530
|
+
["TEXT_TITLE"]: TitleForm,
|
|
3531
|
+
["EVALUATION"]: EvaluationForm
|
|
3462
3532
|
},
|
|
3463
3533
|
inject: ["$rootComponent"],
|
|
3464
3534
|
mixins: [LocaleMixin],
|
|
@@ -3570,6 +3640,8 @@ var __vue_staticRenderFns__$7 = [function () {var _vm=this;var _h=_vm.$createEle
|
|
|
3570
3640
|
undefined
|
|
3571
3641
|
);
|
|
3572
3642
|
|
|
3643
|
+
var QuestionEditDrawer = __vue_component__$7;
|
|
3644
|
+
|
|
3573
3645
|
var script$6 = Vue.extend({
|
|
3574
3646
|
name: "translation-table",
|
|
3575
3647
|
components: { Input, Table },
|
|
@@ -3655,9 +3727,11 @@ var __vue_staticRenderFns__$6 = [];
|
|
|
3655
3727
|
undefined
|
|
3656
3728
|
);
|
|
3657
3729
|
|
|
3730
|
+
var TranslationTable = __vue_component__$6;
|
|
3731
|
+
|
|
3658
3732
|
var script$5 = Vue.extend({
|
|
3659
3733
|
name: 'survey-translator',
|
|
3660
|
-
components: { TranslationTable
|
|
3734
|
+
components: { TranslationTable },
|
|
3661
3735
|
mixins: [LocaleMixin, SurveyTranslatorMixin],
|
|
3662
3736
|
props: {
|
|
3663
3737
|
survey: {
|
|
@@ -3766,6 +3840,8 @@ var __vue_staticRenderFns__$5 = [];
|
|
|
3766
3840
|
undefined
|
|
3767
3841
|
);
|
|
3768
3842
|
|
|
3843
|
+
var SurveyTranslator = __vue_component__$5;
|
|
3844
|
+
|
|
3769
3845
|
var script$4 = Vue.extend({
|
|
3770
3846
|
name: "previewer-question-row",
|
|
3771
3847
|
components: {
|
|
@@ -3773,14 +3849,14 @@ var script$4 = Vue.extend({
|
|
|
3773
3849
|
Col,
|
|
3774
3850
|
Divider,
|
|
3775
3851
|
Card,
|
|
3776
|
-
QuestionTitle
|
|
3777
|
-
["SINGLE_SELECTION"]:
|
|
3778
|
-
["MULTI_SELECTION"]:
|
|
3779
|
-
["SHORT_ANSWER"]:
|
|
3780
|
-
["FILL_BLANK"]:
|
|
3781
|
-
["TEXT_TITLE"]:
|
|
3782
|
-
["MATRIX"]:
|
|
3783
|
-
["EVALUATION"]:
|
|
3852
|
+
QuestionTitle,
|
|
3853
|
+
["SINGLE_SELECTION"]: SingleSelection,
|
|
3854
|
+
["MULTI_SELECTION"]: MultiSelection,
|
|
3855
|
+
["SHORT_ANSWER"]: ShortAnswer,
|
|
3856
|
+
["FILL_BLANK"]: FillBlank,
|
|
3857
|
+
["TEXT_TITLE"]: TextTitle,
|
|
3858
|
+
["MATRIX"]: Matrix,
|
|
3859
|
+
["EVALUATION"]: Evaluation
|
|
3784
3860
|
},
|
|
3785
3861
|
mixins: [LocaleMixin],
|
|
3786
3862
|
inject: ["$rootComponent"],
|
|
@@ -3828,9 +3904,11 @@ var __vue_staticRenderFns__$4 = [];
|
|
|
3828
3904
|
undefined
|
|
3829
3905
|
);
|
|
3830
3906
|
|
|
3907
|
+
var PreviewerQuestionRow = __vue_component__$4;
|
|
3908
|
+
|
|
3831
3909
|
var script$3 = Vue.extend({
|
|
3832
3910
|
name: 'survey-internal-previewer',
|
|
3833
|
-
components: { Card, PreviewerQuestionRow
|
|
3911
|
+
components: { Card, PreviewerQuestionRow },
|
|
3834
3912
|
props: {
|
|
3835
3913
|
survey: {
|
|
3836
3914
|
type: Object,
|
|
@@ -3875,6 +3953,8 @@ var __vue_staticRenderFns__$3 = [];
|
|
|
3875
3953
|
undefined
|
|
3876
3954
|
);
|
|
3877
3955
|
|
|
3956
|
+
var SurveyInternalPreviewer = __vue_component__$3;
|
|
3957
|
+
|
|
3878
3958
|
var script$2 = Vue.extend({
|
|
3879
3959
|
name: "editor-options",
|
|
3880
3960
|
components: { Row, Col, Icon, RadioGroup, Radio },
|
|
@@ -3942,6 +4022,8 @@ var __vue_staticRenderFns__$2 = [];
|
|
|
3942
4022
|
undefined
|
|
3943
4023
|
);
|
|
3944
4024
|
|
|
4025
|
+
var EditOptions = __vue_component__$2;
|
|
4026
|
+
|
|
3945
4027
|
var Mode;
|
|
3946
4028
|
(function (Mode) {
|
|
3947
4029
|
Mode[Mode["EDIT"] = 0] = "EDIT";
|
|
@@ -3958,18 +4040,18 @@ var script$1 = Vue.extend({
|
|
|
3958
4040
|
Row,
|
|
3959
4041
|
Col,
|
|
3960
4042
|
Button,
|
|
3961
|
-
SurveyEditor
|
|
3962
|
-
SurveyTranslator
|
|
3963
|
-
SurveyInternalPreviewer
|
|
3964
|
-
QuestionEditDrawer
|
|
3965
|
-
Toolbar
|
|
4043
|
+
SurveyEditor,
|
|
4044
|
+
SurveyTranslator,
|
|
4045
|
+
SurveyInternalPreviewer,
|
|
4046
|
+
QuestionEditDrawer,
|
|
4047
|
+
Toolbar,
|
|
3966
4048
|
Modal,
|
|
3967
4049
|
Tabs,
|
|
3968
4050
|
TabPane,
|
|
3969
4051
|
Icon,
|
|
3970
4052
|
Scroll,
|
|
3971
|
-
CreateQuestionDropdown
|
|
3972
|
-
EditOptions
|
|
4053
|
+
CreateQuestionDropdown,
|
|
4054
|
+
EditOptions
|
|
3973
4055
|
},
|
|
3974
4056
|
mixins: [LocaleMixin, SurveyTranslatorMixin],
|
|
3975
4057
|
provide() {
|
|
@@ -4180,10 +4262,12 @@ var __vue_staticRenderFns__$1 = [];
|
|
|
4180
4262
|
undefined
|
|
4181
4263
|
);
|
|
4182
4264
|
|
|
4265
|
+
var SurveyCreator = __vue_component__$1;
|
|
4266
|
+
|
|
4183
4267
|
var script = Vue.extend({
|
|
4184
4268
|
name: 'survey-previewer',
|
|
4185
4269
|
mixins: [LocaleMixin],
|
|
4186
|
-
components: { Card, Row, Col, Button, Toolbar
|
|
4270
|
+
components: { Card, Row, Col, Button, Toolbar, SurveyInternalPreviewer },
|
|
4187
4271
|
provide() {
|
|
4188
4272
|
return {
|
|
4189
4273
|
$rootComponent: this
|
|
@@ -4256,6 +4340,8 @@ var __vue_staticRenderFns__ = [];
|
|
|
4256
4340
|
undefined
|
|
4257
4341
|
);
|
|
4258
4342
|
|
|
4343
|
+
var SurveyPreviewer = __vue_component__;
|
|
4344
|
+
|
|
4259
4345
|
class SurveyCreatorOptions {
|
|
4260
4346
|
}
|
|
4261
4347
|
class SurveyCreatorPlugin {
|
|
@@ -4263,10 +4349,9 @@ class SurveyCreatorPlugin {
|
|
|
4263
4349
|
locale.use(options.locale);
|
|
4264
4350
|
locale.i18n(options.i18n);
|
|
4265
4351
|
Vue.$surveyLanguage = options.locale;
|
|
4266
|
-
Vue.component('survey-creator',
|
|
4267
|
-
Vue.component('survey-previewer',
|
|
4352
|
+
Vue.component('survey-creator', SurveyCreator);
|
|
4353
|
+
Vue.component('survey-previewer', SurveyPreviewer);
|
|
4268
4354
|
}
|
|
4269
4355
|
}
|
|
4270
4356
|
|
|
4271
|
-
export default
|
|
4272
|
-
export { __vue_component__$1 as SurveyCreator, SurveyCreatorOptions };
|
|
4357
|
+
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.4792.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.4792.release",
|
|
16
|
+
"@wg-npm/survey-service-api": "0.3.4792.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.4792.release",
|
|
42
|
+
"@wg-npm/survey-service-api": "0.3.4792.release",
|
|
43
43
|
"acorn": "^7.3.1",
|
|
44
44
|
"axios": "^0.19.2",
|
|
45
45
|
"babelrc-rollup": "^3.0.0",
|