@wg-npm/survey-creator 1.78.511800 → 1.78.511900

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.
@@ -21553,16 +21553,14 @@ var script$I = Vue.extend({
21553
21553
  enabledSelectQuestion: false,
21554
21554
  isSelectedQuestion: false,
21555
21555
  currentCustomQuestion: this.customQuestion,
21556
- collapsible: false,
21557
21556
  isCheckboxDisabled: false,
21558
21557
  };
21559
21558
  },
21560
21559
  created() {
21561
21560
  this.enabledSelectQuestion = _$1.get(this.$rootComponent, "options.enabledSelectQuestion", false);
21562
21561
  this.enabledQuestionTitleIncompleteTips = _$1.get(this.$rootComponent, "options.enabledQuestionTitleIncompleteTips", false);
21563
- if (_$1.get(this.$rootComponent, "options.questionReadonly", false)) {
21562
+ if (_$1.get(this.$rootComponent, "options.isPreviewMode", false)) {
21564
21563
  this.$set(this.question.options, "readonly", true);
21565
- this.collapsible = true;
21566
21564
  }
21567
21565
  if (_$1.get(this.$rootComponent, "options.disabledInitQuestions", false)) {
21568
21566
  const initIds = _$1.get(this.$rootComponent, "initQuestionIds", []);
@@ -21570,6 +21568,9 @@ var script$I = Vue.extend({
21570
21568
  }
21571
21569
  },
21572
21570
  computed: {
21571
+ isPreviewMode() {
21572
+ return _$1.get(this.$rootComponent, "options.isPreviewMode", false);
21573
+ },
21573
21574
  getClassStyle() {
21574
21575
  return this.questionTitleIncomplete ? "" : "question-incomplete";
21575
21576
  },
@@ -21609,7 +21610,7 @@ const __vue_script__$I = script$I;
21609
21610
  var __vue_render__$H = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('Card',{staticClass:"question-row",attrs:{"padding":0,"bordered":false,"dis-hover":true}},[_c('div',{class:['question-row-container',{ 'question-row--selected': _vm.isSelectedQuestion }, _vm.getClassStyle]},[(_vm.enabledSelectQuestion)?_c('div',{staticClass:"question-row-container-left"},[_c('Checkbox',{attrs:{"disabled":_vm.isCheckboxDisabled},on:{"on-change":_vm.onSelectQuestion},model:{value:(_vm.isSelectedQuestion),callback:function ($$v) {_vm.isSelectedQuestion=$$v;},expression:"isSelectedQuestion"}})],1):_vm._e(),_vm._v(" "),_c('div',{staticClass:"question-row-container-right"},[_c('span',{directives:[{name:"show",rawName:"v-show",value:(!_vm.questionTitleIncomplete),expression:"!questionTitleIncomplete"}],staticClass:"incomplete-tips"},[_vm._v("\n "+_vm._s(_vm.t("survey_creator.question.incomplete_tips"))+"\n ")]),_vm._v(" "),_c('Divider',{staticClass:"question-type-desc",attrs:{"orientation":"left"}},[_vm._v("\n "+_vm._s(_vm.t(
21610
21611
  ("survey_creator.question.types." + (_vm.question.type)),
21611
21612
  _vm.$rootComponent.currentLanguage
21612
- ))+"\n ")]),_vm._v(" "),_c('div',{staticClass:"question-title-header"},[_c('question-title',{staticStyle:{"align-items":"flex-start","flex":"1"},attrs:{"question":_vm.question,"max-score":true,"custom-question":_vm.currentCustomQuestion}}),_vm._v(" "),(_vm.collapsible)?_c('Icon',{class:['collapse-toggle', { 'collapse-toggle--collapsed': !_vm.expanded }],attrs:{"type":"ios-arrow-up"},on:{"click":function($event){$event.stopPropagation();return _vm.toggleExpand.apply(null, arguments)}}}):_vm._e()],1),_vm._v(" "),_c('div',{directives:[{name:"show",rawName:"v-show",value:(_vm.expanded),expression:"expanded"}],staticClass:"question-row-content"},[_c(_vm.question.type,{tag:"component",staticClass:"question",attrs:{"question":_vm.question,"survey":_vm.survey},on:{"singleQuestion":_vm.getJumpRules}})],1)],1)])])};
21613
+ ))+"\n ")]),_vm._v(" "),_c('div',{staticClass:"question-title-header"},[_c('question-title',{staticStyle:{"align-items":"flex-start","flex":"1"},attrs:{"question":_vm.question,"max-score":true,"custom-question":_vm.currentCustomQuestion}}),_vm._v(" "),(_vm.isPreviewMode)?_c('Icon',{class:['collapse-toggle', { 'collapse-toggle--collapsed': !_vm.expanded }],attrs:{"type":"ios-arrow-up"},on:{"click":function($event){$event.stopPropagation();return _vm.toggleExpand.apply(null, arguments)}}}):_vm._e()],1),_vm._v(" "),_c('div',{directives:[{name:"show",rawName:"v-show",value:(_vm.expanded),expression:"expanded"}],staticClass:"question-row-content"},[_c(_vm.question.type,{tag:"component",staticClass:"question",attrs:{"question":_vm.question,"survey":_vm.survey},on:{"singleQuestion":_vm.getJumpRules}})],1)],1)])])};
21613
21614
  var __vue_staticRenderFns__$H = [];
21614
21615
 
21615
21616
  /* style */
@@ -21681,11 +21682,11 @@ var script$J = Vue.extend({
21681
21682
  questionIds() {
21682
21683
  return this.selectedQuestions.map((question) => question.id);
21683
21684
  },
21684
- showSelectionCounter() {
21685
+ enabledSelectQuestion() {
21685
21686
  return _$1.get(this.$rootComponent, "options.enabledSelectQuestion", false);
21686
21687
  },
21687
21688
  showCollapseToggle() {
21688
- return _$1.get(this.$rootComponent, "options.questionReadonly", false);
21689
+ return _$1.get(this.$rootComponent, "options.isPreviewMode", false);
21689
21690
  },
21690
21691
  allExpanded() {
21691
21692
  return this.sortQuestions.every((q) => this.expandedMap[q.id] !== false);
@@ -21837,7 +21838,7 @@ var script$J = Vue.extend({
21837
21838
  const __vue_script__$J = script$J;
21838
21839
 
21839
21840
  /* template */
21840
- var __vue_render__$I = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"survey-internal-previewer-wrapper"},[(_vm.showSelectionCounter || _vm.showCollapseToggle)?_c('div',{staticClass:"question-selection-counter"},[(_vm.showCollapseToggle)?_c('img',{staticClass:"collapse-toggle-all",attrs:{"src":_vm.allExpanded ? _vm.arrowUpSvg : _vm.arrowDownSvg},on:{"click":_vm.toggleAllExpand}}):_vm._e(),_vm._v(" "),(_vm.showSelectionCounter)?_c('Checkbox',{attrs:{"value":_vm.allSelected,"indeterminate":_vm.someSelected},on:{"on-change":_vm.toggleSelectAll}}):_vm._e(),_vm._v(" "),(_vm.showSelectionCounter)?[_vm._v("\n "+_vm._s(_vm.t("survey_creator.previewer.counter_total", [_vm.sortQuestions.length]))+"\n "),_c('span',{staticClass:"question-selection-counter__num"},[_vm._v(_vm._s(_vm.selectedQuestions.length))]),_vm._v("\n "+_vm._s(_vm.t("survey_creator.previewer.counter_suffix"))+"\n ")]:_vm._e()],2):_vm._e(),_vm._v(" "),_vm._l((_vm.sortQuestions),function(question){return _c('previewer-question-row',{key:question.id,ref:("question" + (question.id)),refInFor:true,attrs:{"question":question,"survey":_vm.survey,"expanded":_vm.expandedMap[question.id],"custom-question":_vm.surveyCustomQuestion(question.id)},on:{"singleQuestion":_vm.handleSelected,"onSelectQuestion":_vm.onSelectQuestion,"toggle-expand":function($event){return _vm.onToggleExpand(question.id)}}})})],2)};
21841
+ var __vue_render__$I = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"survey-internal-previewer-wrapper"},[(_vm.enabledSelectQuestion || _vm.showCollapseToggle)?_c('div',{staticClass:"question-selection-counter"},[(_vm.showCollapseToggle)?_c('img',{staticClass:"collapse-toggle-all",attrs:{"src":_vm.allExpanded ? _vm.arrowUpSvg : _vm.arrowDownSvg},on:{"click":_vm.toggleAllExpand}}):_vm._e(),_vm._v(" "),(_vm.enabledSelectQuestion)?_c('Checkbox',{attrs:{"value":_vm.allSelected,"indeterminate":_vm.someSelected},on:{"on-change":_vm.toggleSelectAll}}):_vm._e(),_vm._v(" "),(_vm.enabledSelectQuestion)?[_vm._v("\n "+_vm._s(_vm.t("survey_creator.previewer.counter_total", [_vm.sortQuestions.length]))+"\n "),_c('span',{staticClass:"question-selection-counter__num"},[_vm._v(_vm._s(_vm.selectedQuestions.length))]),_vm._v("\n "+_vm._s(_vm.t("survey_creator.previewer.counter_suffix"))+"\n ")]:_vm._e()],2):_vm._e(),_vm._v(" "),_vm._l((_vm.sortQuestions),function(question){return _c('previewer-question-row',{key:question.id,ref:("question" + (question.id)),refInFor:true,attrs:{"question":question,"survey":_vm.survey,"expanded":_vm.expandedMap[question.id],"custom-question":_vm.surveyCustomQuestion(question.id)},on:{"singleQuestion":_vm.handleSelected,"onSelectQuestion":_vm.onSelectQuestion,"toggle-expand":function($event){return _vm.onToggleExpand(question.id)}}})})],2)};
21841
21842
  var __vue_staticRenderFns__$I = [];
21842
21843
 
21843
21844
  /* style */
@@ -22465,7 +22466,7 @@ var script$N = Vue.extend({
22465
22466
  const __vue_script__$N = script$N;
22466
22467
 
22467
22468
  /* template */
22468
- var __vue_render__$M = 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:{"bordered":false,"dis-hover":""}},[_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:{"height":"calc(100vh - 130px)"},attrs:{"options":this.options,"survey":this.currentSurvey,"operation-type":_vm.operationType}}):_c('Card',{staticStyle:{"height":"calc(100vh - 130px)"},attrs:{"bordered":false,"dis-hover":""}},[_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',{attrs:{"options":_vm.options}})],1),_vm._v(" "),_c('Col',[_c('edit-options',{staticClass:"edit-option",attrs:{"survey":this.currentSurvey}})],1)],1),_vm._v(" "),_c('div',{staticStyle:{"width":"100%"}},[_vm._t("extra")],2),_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(" "),(_vm.questionJumpDrawerVisible)?_c('div',{staticStyle:{"height":"100%"}},[_c('question-jump-setting-drawer',{ref:"jumpDrawer",attrs:{"from-question":_vm.jumpFromQuestion,"to-questions":_vm.jumpToQuestions,"operation-type":_vm.operationType},model:{value:(_vm.questionJumpDrawerVisible),callback:function ($$v) {_vm.questionJumpDrawerVisible=$$v;},expression:"questionJumpDrawerVisible"}})],1):_vm._e(),_vm._v(" "),_c('div',{staticClass:"save-card"},[_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)])};
22469
+ var __vue_render__$M = 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:{"bordered":false,"dis-hover":""}},[_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:{"height":"calc(100vh - 130px)"},attrs:{"options":this.options,"survey":this.currentSurvey,"operation-type":_vm.operationType}}):_c('Card',{staticStyle:{"height":"calc(100vh - 130px)"},attrs:{"bordered":false,"dis-hover":""}},[_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',{staticStyle:{"display":"flex","align-items":"center"}},[_c('create-question-dropdown',{attrs:{"options":_vm.options}}),_vm._v(" "),_vm._t("add-question-extra")],2),_vm._v(" "),_c('Col',[_c('edit-options',{staticClass:"edit-option",attrs:{"survey":this.currentSurvey}})],1)],1),_vm._v(" "),_c('div',{staticStyle:{"width":"100%"}},[_vm._t("extra")],2),_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(" "),(_vm.questionJumpDrawerVisible)?_c('div',{staticStyle:{"height":"100%"}},[_c('question-jump-setting-drawer',{ref:"jumpDrawer",attrs:{"from-question":_vm.jumpFromQuestion,"to-questions":_vm.jumpToQuestions,"operation-type":_vm.operationType},model:{value:(_vm.questionJumpDrawerVisible),callback:function ($$v) {_vm.questionJumpDrawerVisible=$$v;},expression:"questionJumpDrawerVisible"}})],1):_vm._e(),_vm._v(" "),_c('div',{staticClass:"save-card"},[_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)])};
22469
22470
  var __vue_staticRenderFns__$M = [];
22470
22471
 
22471
22472
  /* style */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wg-npm/survey-creator",
3
- "version": "1.78.511800",
3
+ "version": "1.78.511900",
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": "1.78.511800",
16
- "@wg-npm/survey-service-api": "1.78.511800",
15
+ "@wg-npm/survey-core": "1.78.511900",
16
+ "@wg-npm/survey-service-api": "1.78.511900",
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": "1.78.511800",
42
- "@wg-npm/survey-service-api": "1.78.511800",
41
+ "@wg-npm/survey-core": "1.78.511900",
42
+ "@wg-npm/survey-service-api": "1.78.511900",
43
43
  "acorn": "^7.3.1",
44
44
  "axios": "^0.19.2",
45
45
  "babelrc-rollup": "^3.0.0",
@@ -79,7 +79,7 @@
79
79
  "publishConfig": {
80
80
  "access": "public"
81
81
  },
82
- "gitHead": "f335e99c793cb1eaf97b5ce76f02b47071e2eb41",
82
+ "gitHead": "51b5c6a6eff6f9ff420a037e671ffb4fe3bf3ed2",
83
83
  "rollup": {
84
84
  "external": [
85
85
  "vue",
@@ -23,7 +23,7 @@
23
23
  :custom-question="currentCustomQuestion"
24
24
  />
25
25
  <Icon
26
- v-if="collapsible"
26
+ v-if="isPreviewMode"
27
27
  type="ios-arrow-up"
28
28
  :class="['collapse-toggle', { 'collapse-toggle--collapsed': !expanded }]"
29
29
  @click.stop="toggleExpand"
@@ -107,27 +107,17 @@ export default Vue.extend({
107
107
  enabledSelectQuestion: false,
108
108
  isSelectedQuestion: false,
109
109
  currentCustomQuestion: this.customQuestion,
110
- collapsible: false,
111
110
  isCheckboxDisabled: false,
112
111
  };
113
112
  },
114
113
  created() {
115
114
  // @ts-ignore
116
- this.enabledSelectQuestion = _.get(
117
- this.$rootComponent,
118
- "options.enabledSelectQuestion",
119
- false
120
- );
121
- // @ts-ignore
122
- this.enabledQuestionTitleIncompleteTips = _.get(
123
- this.$rootComponent,
124
- "options.enabledQuestionTitleIncompleteTips",
125
- false
126
- );
115
+ this.enabledSelectQuestion = _.get(this.$rootComponent, "options.enabledSelectQuestion", false);
116
+ // @ts-ignore
117
+ this.enabledQuestionTitleIncompleteTips = _.get(this.$rootComponent, "options.enabledQuestionTitleIncompleteTips", false);
127
118
  // @ts-ignore
128
- if (_.get(this.$rootComponent, "options.questionReadonly", false)) {
119
+ if (_.get(this.$rootComponent, "options.isPreviewMode", false)) {
129
120
  this.$set(this.question.options, "readonly", true);
130
- this.collapsible = true;
131
121
  }
132
122
  // @ts-ignore
133
123
  if (_.get(this.$rootComponent, "options.disabledInitQuestions", false)) {
@@ -137,6 +127,10 @@ export default Vue.extend({
137
127
  }
138
128
  },
139
129
  computed: {
130
+ isPreviewMode() {
131
+ // @ts-ignore
132
+ return _.get(this.$rootComponent, "options.isPreviewMode", false);
133
+ },
140
134
  getClassStyle() {
141
135
  return this.questionTitleIncomplete ? "" : "question-incomplete";
142
136
  },
@@ -1,6 +1,6 @@
1
1
  <template>
2
2
  <div class="survey-internal-previewer-wrapper">
3
- <div v-if="showSelectionCounter || showCollapseToggle" class="question-selection-counter">
3
+ <div v-if="enabledSelectQuestion || showCollapseToggle" class="question-selection-counter">
4
4
  <img
5
5
  v-if="showCollapseToggle"
6
6
  :src="allExpanded ? arrowUpSvg : arrowDownSvg"
@@ -8,12 +8,12 @@
8
8
  @click="toggleAllExpand"
9
9
  />
10
10
  <Checkbox
11
- v-if="showSelectionCounter"
11
+ v-if="enabledSelectQuestion"
12
12
  :value="allSelected"
13
13
  :indeterminate="someSelected"
14
14
  @on-change="toggleSelectAll"
15
15
  />
16
- <template v-if="showSelectionCounter">
16
+ <template v-if="enabledSelectQuestion">
17
17
  {{ t("survey_creator.previewer.counter_total", [sortQuestions.length]) }}
18
18
  <span class="question-selection-counter__num">{{ selectedQuestions.length }}</span>
19
19
  {{ t("survey_creator.previewer.counter_suffix") }}
@@ -83,11 +83,11 @@ export default Vue.extend({
83
83
  questionIds() {
84
84
  return this.selectedQuestions.map((question) => question.id);
85
85
  },
86
- showSelectionCounter() {
86
+ enabledSelectQuestion() {
87
87
  return _.get(this.$rootComponent, "options.enabledSelectQuestion", false);
88
88
  },
89
89
  showCollapseToggle() {
90
- return _.get(this.$rootComponent, "options.questionReadonly", false);
90
+ return _.get(this.$rootComponent, "options.isPreviewMode", false);
91
91
  },
92
92
  allExpanded() {
93
93
  return this.sortQuestions.every((q) => this.expandedMap[q.id] !== false);
@@ -38,8 +38,9 @@
38
38
  <TabPane :label="t('survey_creator.common.tab.question_setting')" name="EDIT">
39
39
  <div v-if="activeTab === 'EDIT'">
40
40
  <Row type="flex" justify="space-between" class="survey-operate" align="middle" :gutter="48">
41
- <Col>
41
+ <Col style="display: flex; align-items: center;">
42
42
  <create-question-dropdown :options="options"/>
43
+ <slot name="add-question-extra"></slot>
43
44
  </Col>
44
45
  <Col>
45
46
  <edit-options class="edit-option" :survey="this.currentSurvey"></edit-options>
@@ -14,7 +14,7 @@
14
14
  .question-selection-counter {
15
15
  display: flex;
16
16
  align-items: center;
17
- padding: 0 36px 8px;
17
+ padding: 0 20px 8px;
18
18
  color: var(---T3-, #70748C);
19
19
  font-feature-settings: 'liga' off, 'clig' off;
20
20
  font-family: "PingFang SC";
@@ -44,7 +44,7 @@
44
44
  }
45
45
 
46
46
  .question-row {
47
- padding: 8px 20px;
47
+ padding: 8px 0;
48
48
 
49
49
  .question-row-container {
50
50
  display: flex;
@@ -5,7 +5,7 @@ export interface SurveyPreviewerOptions {
5
5
  back: Boolean;
6
6
  changeLanguage: Boolean;
7
7
  enabledSelectQuestion?: Boolean;
8
- questionReadonly?: Boolean;
8
+ isPreviewMode?: Boolean;
9
9
  disabledInitQuestions?: Boolean;
10
10
  }
11
11