@wg-npm/survey-creator 0.3.4919 → 0.3.6202
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.
|
@@ -3857,7 +3857,6 @@ var script$7 = Vue.extend({
|
|
|
3857
3857
|
},
|
|
3858
3858
|
cancel() {
|
|
3859
3859
|
this.closeDrawer();
|
|
3860
|
-
this.$emit("cancel");
|
|
3861
3860
|
}
|
|
3862
3861
|
}
|
|
3863
3862
|
});
|
|
@@ -3872,7 +3871,7 @@ var __vue_staticRenderFns__$7 = [function () {var _vm=this;var _h=_vm.$createEle
|
|
|
3872
3871
|
/* style */
|
|
3873
3872
|
const __vue_inject_styles__$7 = function (inject) {
|
|
3874
3873
|
if (!inject) return
|
|
3875
|
-
inject("data-v-
|
|
3874
|
+
inject("data-v-7b8bc506_0", { source: ".drawer-footer{width:100%;position:absolute;bottom:0;left:0;border-top:1px solid #e8e8e8;padding:10px 16px;text-align:right;background:#fff;z-index:99}.question-form{margin-bottom:53px}", map: undefined, media: undefined });
|
|
3876
3875
|
|
|
3877
3876
|
};
|
|
3878
3877
|
/* scoped */
|
|
@@ -4510,8 +4509,11 @@ var script$1 = Vue.extend({
|
|
|
4510
4509
|
validateData() {
|
|
4511
4510
|
return this.allTranslationIsCompleted(this.currentSurvey);
|
|
4512
4511
|
},
|
|
4513
|
-
|
|
4514
|
-
this.$emit("
|
|
4512
|
+
questionEditDrawOpen(val) {
|
|
4513
|
+
this.$emit("question-edit-draw-open");
|
|
4514
|
+
},
|
|
4515
|
+
questionEditDrawClose(val) {
|
|
4516
|
+
this.$emit("question-edit-draw-close");
|
|
4515
4517
|
}
|
|
4516
4518
|
}
|
|
4517
4519
|
});
|
|
@@ -4520,7 +4522,7 @@ var script$1 = Vue.extend({
|
|
|
4520
4522
|
const __vue_script__$1 = script$1;
|
|
4521
4523
|
|
|
4522
4524
|
/* template */
|
|
4523
|
-
var __vue_render__$1 = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[(_vm.showQuestionWhenPageLoad)?_c('div',[_c('question-edit-drawer',{ref:"editDrawer",attrs:{"question":_vm.editingQuestion,"operation-type":_vm.operationType},on:{"
|
|
4525
|
+
var __vue_render__$1 = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[(_vm.showQuestionWhenPageLoad)?_c('div',[_c('question-edit-drawer',{ref:"editDrawer",attrs:{"question":_vm.editingQuestion,"operation-type":_vm.operationType},on:{"on-close":_vm.questionEditDrawClose,"on-open":_vm.questionEditDrawOpen},model:{value:(_vm.questionEditDrawerVisible),callback:function ($$v) {_vm.questionEditDrawerVisible=$$v;},expression:"questionEditDrawerVisible"}})],1):_c('div',{staticClass:"survey-creator-wrapper"},[_c('Card',{attrs:{"shadow":""}},[_c('Row',{attrs:{"align":"middle","justify":"space-between","type":"flex"}},[_c('Col',{attrs:{"span":"20"}},[_c('Icon',{staticClass:"icon-clipboard",attrs:{"custom":"i-icon icon-clipboard","size":"24"}}),_vm._v(" "),_c('span',{staticClass:"title"},[_vm._v("\n "+_vm._s(_vm._f("translate")(_vm.survey.name.text,true))+"\n ")])],1),_vm._v(" "),_c('Col',[_c('Button',{attrs:{"icon":"ios-arrow-back"},on:{"click":_vm.onBack}},[_vm._v(_vm._s(_vm.t('survey_creator.common.back')))])],1)],1)],1),_vm._v(" "),(_vm.isPreviewMode)?_c('survey-internal-previewer',{staticStyle:{"min-height":"calc(100vh - 128px)"},attrs:{"options":this.options,"survey":this.currentSurvey,"operation-type":_vm.operationType}}):_c('Card',{staticStyle:{"min-height":"calc(100vh - 128px)"},attrs:{"shadow":""}},[_c('Tabs',{attrs:{"type":"card"},model:{value:(_vm.activeTab),callback:function ($$v) {_vm.activeTab=$$v;},expression:"activeTab"}},[_c('TabPane',{attrs:{"label":_vm.t('survey_creator.common.tab.question_setting'),"name":"EDIT"}},[(_vm.activeTab === 'EDIT')?_c('div',[_c('Row',{staticClass:"survey-operate",attrs:{"type":"flex","justify":"space-between","align":"middle","gutter":48}},[_c('Col',[_c('create-question-dropdown')],1),_vm._v(" "),_c('Col',[_c('edit-options',{staticClass:"edit-option",attrs:{"survey":this.currentSurvey}})],1)],1),_vm._v(" "),_c('Scroll',{staticClass:"question-content",attrs:{"height":_vm.height}},[_c('survey-editor',{attrs:{"options":this.options,"survey":this.currentSurvey}})],1)],1):_vm._e()]),_vm._v(" "),_c('TabPane',{attrs:{"label":_vm.t('survey_creator.common.tab.language'),"name":"TRANSLATE"}},[(_vm.activeTab === 'TRANSLATE')?_c('survey-translator',{attrs:{"options":this.options,"survey":this.currentSurvey}}):_vm._e()],1)],1)],1),_vm._v(" "),_c('question-edit-drawer',{ref:"editDrawer",attrs:{"question":_vm.editingQuestion,"operation-type":_vm.operationType},model:{value:(_vm.questionEditDrawerVisible),callback:function ($$v) {_vm.questionEditDrawerVisible=$$v;},expression:"questionEditDrawerVisible"}}),_vm._v(" "),_c('Card',{attrs:{"shadow":""}},[_c('Row',{attrs:{"gutter":30,"align":"middle","justify":"center","type":"flex"}},[_c('Col',[_c('Button',{attrs:{"loading":_vm.loading,"type":"primary","disabled":_vm.isSaved},on:{"click":_vm.onSave}},[_vm._v(_vm._s(_vm.t("survey_creator.common.save"))+"\n ")])],1)],1)],1)],1)])};
|
|
4524
4526
|
var __vue_staticRenderFns__$1 = [];
|
|
4525
4527
|
|
|
4526
4528
|
/* style */
|
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.6202",
|
|
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.6202",
|
|
16
|
+
"@wg-npm/survey-service-api": "0.3.6202",
|
|
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.6202",
|
|
42
|
+
"@wg-npm/survey-service-api": "0.3.6202",
|
|
43
43
|
"acorn": "^7.3.1",
|
|
44
44
|
"axios": "^0.19.2",
|
|
45
45
|
"babelrc-rollup": "^3.0.0",
|
|
@@ -6,7 +6,8 @@
|
|
|
6
6
|
ref="editDrawer"
|
|
7
7
|
v-model="questionEditDrawerVisible"
|
|
8
8
|
:operation-type="operationType"
|
|
9
|
-
@
|
|
9
|
+
@on-close="questionEditDrawClose"
|
|
10
|
+
@on-open="questionEditDrawOpen"
|
|
10
11
|
/>
|
|
11
12
|
</div>
|
|
12
13
|
<div class="survey-creator-wrapper" v-else>
|
|
@@ -361,8 +362,11 @@
|
|
|
361
362
|
validateData() {
|
|
362
363
|
return this.allTranslationIsCompleted(this.currentSurvey);
|
|
363
364
|
},
|
|
364
|
-
|
|
365
|
-
this.$emit("
|
|
365
|
+
questionEditDrawOpen(val){
|
|
366
|
+
this.$emit("question-edit-draw-open");
|
|
367
|
+
},
|
|
368
|
+
questionEditDrawClose(val){
|
|
369
|
+
this.$emit("question-edit-draw-close");
|
|
366
370
|
}
|
|
367
371
|
}
|
|
368
372
|
});
|