@wg-npm/survey-creator 0.3.47 → 0.3.377-8.develop
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 +793 -652
- package/package.json +5 -5
- package/src/components/common/question/evaluation/expr-if.vue +55 -30
- package/src/components/editor/forms/evaluation/expr/auto.vue +1 -1
- package/src/components/editor/forms/evaluation/expr/condition.vue +61 -48
- package/src/components/editor/forms/evaluation/expr/if.vue +252 -164
- package/src/components/editor/forms/evaluation/expr/score.vue +135 -0
- package/src/locale/index.ts +1 -1
- package/src/locale/lang/en-US.ts +174 -170
- package/src/locale/lang/zh-CN.ts +174 -171
package/src/locale/lang/en-US.ts
CHANGED
|
@@ -1,176 +1,180 @@
|
|
|
1
1
|
export default {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
2
|
+
survey_creator: {
|
|
3
|
+
locale: "en-US",
|
|
4
|
+
common: {
|
|
5
|
+
back: "Back",
|
|
6
|
+
save: "Save",
|
|
7
|
+
copy: "Copy",
|
|
8
|
+
cancel: "Cancel",
|
|
9
|
+
operation: "Operation",
|
|
10
|
+
delete: "delete",
|
|
11
|
+
languages: {
|
|
12
|
+
"zh-CN": "简体中文",
|
|
13
|
+
"zh-TW": "繁体中文",
|
|
14
|
+
"en-US": "English",
|
|
15
|
+
},
|
|
16
|
+
layout: {
|
|
17
|
+
HORIZONTAL: "Horizontal",
|
|
18
|
+
VERTICAL: "Vertical",
|
|
19
|
+
},
|
|
20
|
+
settings: {
|
|
21
|
+
translate: "Translate",
|
|
22
|
+
preview: "Preview",
|
|
23
|
+
},
|
|
24
|
+
tips: {
|
|
25
|
+
edit: "Edit",
|
|
26
|
+
copy: "Copy",
|
|
27
|
+
delete: "Delete",
|
|
28
|
+
please_input_answer: "Please Input Answer",
|
|
29
|
+
},
|
|
30
|
+
tab: {
|
|
31
|
+
question_setting: "Question Setting",
|
|
32
|
+
language: "Language",
|
|
33
|
+
},
|
|
34
|
+
},
|
|
35
|
+
survey: {
|
|
36
|
+
question_count: "Question Count",
|
|
37
|
+
total_score: "Total Score",
|
|
38
|
+
layout: "layout",
|
|
39
|
+
},
|
|
40
|
+
question: {
|
|
41
|
+
no_data: "No question has been created yet",
|
|
42
|
+
create: "Create Title",
|
|
43
|
+
max_score: "Max Score:",
|
|
44
|
+
star_single: "Get Star",
|
|
45
|
+
star_multi_prefix: "Selected",
|
|
46
|
+
star_multi_suffix: "Items or More Get Star",
|
|
47
|
+
type: "Title Type",
|
|
48
|
+
types: {
|
|
49
|
+
SINGLE_SELECTION: "Single Selection",
|
|
50
|
+
MULTI_SELECTION: "Multi Selection",
|
|
51
|
+
FILL_BLANK: "Fill Blank",
|
|
52
|
+
SHORT_ANSWER: "Short Answer",
|
|
53
|
+
MATRIX: "Matrix",
|
|
54
|
+
TEXT_TITLE: "Text Title",
|
|
55
|
+
EVALUATION: "Evaluation",
|
|
56
|
+
},
|
|
57
|
+
optional: "Optional",
|
|
58
|
+
sub_questions: "Sub Question",
|
|
59
|
+
score: "Score",
|
|
60
|
+
scores: "Score",
|
|
61
|
+
questionRequired: "Required",
|
|
62
|
+
titleRequiredTip: "Please Input Question Title",
|
|
63
|
+
scoreRequiredTip: "Score Required",
|
|
64
|
+
subQuestionRequiredTip: "Sub Question Required",
|
|
65
|
+
optionalRequiredTip: "Optional Required",
|
|
66
|
+
commitRequiredTip: "Commit Required",
|
|
67
|
+
levelRequiredTip: "Level Required",
|
|
68
|
+
addItem: "New SubQuestion",
|
|
69
|
+
noQuestion: "noQuestion!",
|
|
70
|
+
noQuestionTip: "No Question Please Press New Question Button",
|
|
71
|
+
wordCountLimit: "Word Limit",
|
|
72
|
+
multi_selection: "Multi Selection",
|
|
73
|
+
single_selection: "Single Selection",
|
|
74
|
+
remote_selection: "Single Selection",
|
|
75
|
+
short_answer: "Short Answer",
|
|
76
|
+
fill_blank: "Fill Blank",
|
|
77
|
+
matrix: "Matrix",
|
|
78
|
+
text_title: "Text",
|
|
79
|
+
group: "Group Question",
|
|
80
|
+
level: "Scale Scope",
|
|
81
|
+
matrixLevel1: "Poor",
|
|
82
|
+
matrixLevel2: "Fair",
|
|
83
|
+
matrixLevel3: "Average",
|
|
84
|
+
matrixLevel4: "Good",
|
|
85
|
+
matrixLevel5: "Excellent",
|
|
86
|
+
scoreErrorTip: "分值只能填写1000以内两位小数",
|
|
87
|
+
notEmpty: "Required",
|
|
88
|
+
pleaseEnter: "Please Insert",
|
|
89
|
+
wordsLimit: "Word limit",
|
|
90
|
+
noDesc: "No required",
|
|
91
|
+
noSubDesc: "No SubQuestion",
|
|
92
|
+
noQuestionDesc: "No Question Desc",
|
|
93
|
+
unSave: "Not Save",
|
|
94
|
+
surveyConfirmContent:
|
|
95
|
+
"Are you sure submit? locked this survey when you committed",
|
|
96
|
+
unSaveConfirm: "Some question not saved,are you sure back?",
|
|
97
|
+
scoringEnabled: "Score Required",
|
|
98
|
+
starEnabled: "Get Star Required",
|
|
99
|
+
optionalStarTip: "Optional Get Star",
|
|
100
|
+
starLeastOneTip: "Least One Choice Get Star",
|
|
101
|
+
starMinCountPrefix: "Selected",
|
|
102
|
+
starMinCountSuffix: "Items or More Get Star",
|
|
103
|
+
maxScore: "Max score",
|
|
104
|
+
enableMultiSelect: "Enable Multi Selection",
|
|
105
|
+
evaluation: {
|
|
106
|
+
level: {
|
|
107
|
+
"1": "Excellent",
|
|
108
|
+
"2": "Good",
|
|
109
|
+
"3": "Average",
|
|
110
|
+
"4": "Fail",
|
|
111
|
+
"5": "Poor",
|
|
34
112
|
},
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
layout: "layout"
|
|
113
|
+
type: {
|
|
114
|
+
STAR: "Star",
|
|
115
|
+
EXPR: "Conditional",
|
|
39
116
|
},
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
type: "Title Type",
|
|
48
|
-
types: {
|
|
49
|
-
SINGLE_SELECTION: "Single Selection",
|
|
50
|
-
MULTI_SELECTION: "Multi Selection",
|
|
51
|
-
FILL_BLANK: "Fill Blank",
|
|
52
|
-
SHORT_ANSWER: "Short Answer",
|
|
53
|
-
MATRIX: "Matrix",
|
|
54
|
-
TEXT_TITLE: "Text Title",
|
|
55
|
-
EVALUATION: "Evaluation",
|
|
56
|
-
|
|
57
|
-
},
|
|
58
|
-
optional: "Optional",
|
|
59
|
-
sub_questions: 'Sub Question',
|
|
60
|
-
score: "Score",
|
|
61
|
-
scores: "Score",
|
|
62
|
-
questionRequired: "Required",
|
|
63
|
-
titleRequiredTip: "Please Input Question Title",
|
|
64
|
-
scoreRequiredTip: "Score Required",
|
|
65
|
-
subQuestionRequiredTip: "Sub Question Required",
|
|
66
|
-
optionalRequiredTip: "Optional Required",
|
|
67
|
-
commitRequiredTip: "Commit Required",
|
|
68
|
-
levelRequiredTip: "Level Required",
|
|
69
|
-
addItem: "New SubQuestion",
|
|
70
|
-
noQuestion: "noQuestion!",
|
|
71
|
-
noQuestionTip: "No Question Please Press New Question Button",
|
|
72
|
-
wordCountLimit: "Word Limit",
|
|
73
|
-
multi_selection: "Multi Selection",
|
|
74
|
-
single_selection: "Single Selection",
|
|
75
|
-
remote_selection: "Single Selection",
|
|
76
|
-
short_answer: "Short Answer",
|
|
77
|
-
fill_blank: 'Fill Blank',
|
|
78
|
-
matrix: 'Matrix',
|
|
79
|
-
text_title: 'Text',
|
|
80
|
-
group: 'Group Question',
|
|
81
|
-
level: "Scale Scope",
|
|
82
|
-
matrixLevel1: "Poor",
|
|
83
|
-
matrixLevel2: "Fair",
|
|
84
|
-
matrixLevel3: "Average",
|
|
85
|
-
matrixLevel4: "Good",
|
|
86
|
-
matrixLevel5: "Excellent",
|
|
87
|
-
scoreErrorTip: "分值只能填写1000以内两位小数",
|
|
88
|
-
notEmpty: "Required",
|
|
89
|
-
pleaseEnter: "Please Insert",
|
|
90
|
-
wordsLimit: "Word limit",
|
|
91
|
-
noDesc: "No required",
|
|
92
|
-
noSubDesc: "No SubQuestion",
|
|
93
|
-
noQuestionDesc: "No Question Desc",
|
|
94
|
-
unSave: "Not Save",
|
|
95
|
-
surveyConfirmContent: "Are you sure submit? locked this survey when you committed",
|
|
96
|
-
unSaveConfirm: "Some question not saved,are you sure back?",
|
|
97
|
-
scoringEnabled: "Score Required",
|
|
98
|
-
starEnabled: "Get Star Required",
|
|
99
|
-
optionalStarTip: "Optional Get Star",
|
|
100
|
-
starLeastOneTip: "Least One Choice Get Star",
|
|
101
|
-
starMinCountPrefix: "Selected",
|
|
102
|
-
starMinCountSuffix: "Items or More Get Star",
|
|
103
|
-
maxScore: "Max score",
|
|
104
|
-
enableMultiSelect: "Enable Multi Selection",
|
|
105
|
-
evaluation: {
|
|
106
|
-
level: {
|
|
107
|
-
"1": "Excellent",
|
|
108
|
-
"2": "Good",
|
|
109
|
-
"3": "Average",
|
|
110
|
-
"4": "Fail",
|
|
111
|
-
"5": "Poor",
|
|
112
|
-
},
|
|
113
|
-
type: {
|
|
114
|
-
STAR: "Star",
|
|
115
|
-
EXPR: "Conditional"
|
|
116
|
-
},
|
|
117
|
-
levelNameLabel: "Evaluation Level",
|
|
118
|
-
levelLabel: "Evaluation Rule",
|
|
119
|
-
selectedType: "Evaluation Type",
|
|
120
|
-
desc: {
|
|
121
|
-
atPoint: "{0} Star",
|
|
122
|
-
inRange: "{0}-{1} Star",
|
|
123
|
-
outOfRange: "{0} Star Or More"
|
|
124
|
-
},
|
|
125
|
-
condition: {
|
|
126
|
-
if: "If",
|
|
127
|
-
else: "Else",
|
|
128
|
-
add_if_template: "Add Template",
|
|
129
|
-
requirements: "Cond",
|
|
130
|
-
type: {
|
|
131
|
-
ASSIGN: "When scope is __ and choices in __ and count __",
|
|
132
|
-
AUTO: "When scope is __ and choices in __"
|
|
133
|
-
},
|
|
134
|
-
evaluation_label: "Evaluation Label",
|
|
135
|
-
evaluation_require_tip: "Evaluation can not be null",
|
|
136
|
-
question: "Question",
|
|
137
|
-
question_scope: "Scope",
|
|
138
|
-
question_result: "results",
|
|
139
|
-
question_count: "count",
|
|
140
|
-
choose_result: "Choose Result",
|
|
141
|
-
operator: "Operator",
|
|
142
|
-
other: "Other",
|
|
143
|
-
assign_template: `{0} questions answer is {1} count {2} {3}`,
|
|
144
|
-
auto_template: `{0} questions answer is {1}`,
|
|
145
|
-
}
|
|
146
|
-
},
|
|
117
|
+
levelNameLabel: "Evaluation Level",
|
|
118
|
+
levelLabel: "Evaluation Rule",
|
|
119
|
+
selectedType: "Evaluation Type",
|
|
120
|
+
desc: {
|
|
121
|
+
atPoint: "{0} Star",
|
|
122
|
+
inRange: "{0}-{1} Star",
|
|
123
|
+
outOfRange: "{0} Star Or More",
|
|
147
124
|
},
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
125
|
+
condition: {
|
|
126
|
+
if: "If",
|
|
127
|
+
else: "Else",
|
|
128
|
+
add_if_template: "Add Template",
|
|
129
|
+
requirements: "Cond",
|
|
130
|
+
score_condition_title: "Total Score Range is",
|
|
131
|
+
type: {
|
|
132
|
+
ASSIGN: "When scope is __ and choices in __ and count __",
|
|
133
|
+
AUTO: "When scope is __ and choices in __",
|
|
134
|
+
SCORE: "Total Score Range is __",
|
|
135
|
+
},
|
|
136
|
+
evaluation_label: "Evaluation Label",
|
|
137
|
+
evaluation_require_tip: "Evaluation can not be null",
|
|
138
|
+
question: "Question",
|
|
139
|
+
question_scope: "Scope",
|
|
140
|
+
question_result: "results",
|
|
141
|
+
question_count: "count",
|
|
142
|
+
choose_result: "Choose Result",
|
|
143
|
+
operator: "Operator",
|
|
144
|
+
other: "Other",
|
|
145
|
+
assign_template: `{0} questions answer is {1} count {2} {3}`,
|
|
146
|
+
auto_template: `{0} questions answer is {1}`,
|
|
147
|
+
score_template: `总分数范围为:{0}{1}, {2}`,
|
|
157
148
|
},
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
149
|
+
},
|
|
150
|
+
},
|
|
151
|
+
page: {
|
|
152
|
+
question: "Question",
|
|
153
|
+
subQuestion: "Sub Question",
|
|
154
|
+
matrixQuestion: "Matrix Title",
|
|
155
|
+
count: "Question Count",
|
|
156
|
+
arrangement: "Layout",
|
|
157
|
+
horizontal: "Horizontal",
|
|
158
|
+
vertical: "Vertical",
|
|
159
|
+
totalScore: "Total Score",
|
|
160
|
+
},
|
|
161
|
+
translator: {
|
|
162
|
+
save: "Save",
|
|
163
|
+
cancel: "Cancel",
|
|
164
|
+
table: {
|
|
165
|
+
header_type: "Type",
|
|
166
|
+
header_primary_name: "(Default Language)",
|
|
167
|
+
header_zhCn: "简体中文",
|
|
168
|
+
header_enUs: "English",
|
|
169
|
+
header_zhTw: "繁体中文",
|
|
170
|
+
},
|
|
171
|
+
},
|
|
172
|
+
message: {
|
|
173
|
+
saveSuccess: "Save Success",
|
|
174
|
+
saveFailed: "Save Failed",
|
|
175
|
+
surveyLocaleNoSettingCompleted:
|
|
176
|
+
"Survey translate not completed,continue?",
|
|
177
|
+
noSettingLocale: "Not setting translate",
|
|
178
|
+
},
|
|
179
|
+
},
|
|
176
180
|
};
|