@webitel/ui-sdk 26.6.123 → 26.6.125

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@webitel/ui-sdk",
3
- "version": "26.6.123",
3
+ "version": "26.6.125",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "dev": "npm run docs:dev",
@@ -96,6 +96,7 @@ export default deepmerge(
96
96
  create: 'Create',
97
97
  update: 'Update',
98
98
  draggable: 'Draggable',
99
+ empty: 'Empty',
99
100
  unassigned: 'Unassigned',
100
101
  showUnassigned: 'Show unassigned',
101
102
  group: 'Group',
@@ -92,6 +92,7 @@ export default {
92
92
  create: 'Crear',
93
93
  update: 'Actualizar',
94
94
  draggable: 'Arrastrable',
95
+ empty: 'Vacío',
95
96
  unassigned: 'Sin asignar',
96
97
  showUnassigned: 'Mostrar sin asignar',
97
98
  group: 'Grupo',
@@ -93,6 +93,7 @@ export default {
93
93
  create: 'Құру',
94
94
  update: 'Жаңарту',
95
95
  draggable: 'Сүйретілетін',
96
+ empty: 'Бос',
96
97
  unassigned: 'Тағайындалмаған',
97
98
  showUnassigned: 'Тағайындалмағандарды көрсету',
98
99
  group: 'Топ',
@@ -93,6 +93,7 @@ export default {
93
93
  create: 'Utwórz',
94
94
  update: 'Aktualizuj',
95
95
  draggable: 'Przeciągalne',
96
+ empty: 'Puste',
96
97
  unassigned: 'Nieprzypisane',
97
98
  showUnassigned: 'Pokaż nieprzypisane',
98
99
  group: 'Grupa',
@@ -93,6 +93,7 @@ export default {
93
93
  create: 'Creează',
94
94
  update: 'Actualizează',
95
95
  draggable: 'Tragabil',
96
+ empty: 'Gol',
96
97
  unassigned: 'Neatribuit',
97
98
  showUnassigned: 'Arată neatribuite',
98
99
  group: 'Grup',
@@ -89,6 +89,7 @@ export default {
89
89
  create: 'Создать',
90
90
  update: 'Обновить',
91
91
  draggable: 'Перетащить',
92
+ empty: 'Пустые',
92
93
  unassigned: 'Неназначенные',
93
94
  showUnassigned: 'Показать неназначенные',
94
95
  group: 'Группа',
@@ -89,6 +89,7 @@ export default {
89
89
  create: 'Створити',
90
90
  update: 'Оновити',
91
91
  draggable: 'Перетягнути',
92
+ empty: 'Порожні',
92
93
  unassigned: 'Непризначені',
93
94
  showUnassigned: 'Показати непризначені',
94
95
  group: 'Група',
@@ -93,6 +93,7 @@ export default {
93
93
  create: 'Yaratish',
94
94
  update: 'Yangilash',
95
95
  draggable: 'Sudraluvchi',
96
+ empty: "Bo'sh",
96
97
  unassigned: 'Tayinlanmagan',
97
98
  showUnassigned: "Tayinlanmaganlarni ko'rsatish",
98
99
  group: 'Guruh',
@@ -93,6 +93,7 @@ export default {
93
93
  create: 'Tạo mới',
94
94
  update: 'Cập nhật',
95
95
  draggable: 'Có thể kéo thả',
96
+ empty: 'Trống',
96
97
  unassigned: 'Chưa được gán',
97
98
  showUnassigned: 'Hiển thị chưa được gán',
98
99
  group: 'Nhóm',
@@ -97,6 +97,7 @@ const props = defineProps({
97
97
  const emit = defineEmits([
98
98
  'copy',
99
99
  'delete',
100
+ 'answer-type:change',
100
101
  ]);
101
102
 
102
103
  const { t } = useI18n();
@@ -142,6 +143,7 @@ function updateQuestion({ path, value }) {
142
143
 
143
144
  function handleQuestionTypeChange(type) {
144
145
  if (readonly) return;
146
+ emit('answer-type:change');
145
147
  const commonFields = {
146
148
  question: questionModel.value.question,
147
149
  required: questionModel.value.required,
@@ -19,6 +19,7 @@
19
19
  :v="v$"
20
20
  class="audit-form-question"
21
21
  @activate="activateQuestion"
22
+ @answer-type:change="handleAnswerTypeChange"
22
23
  @copy="emit('copy')"
23
24
  @delete="emit('delete')"
24
25
  />
@@ -116,11 +117,20 @@ const component = computed(() => {
116
117
  });
117
118
 
118
119
  const isAnswer = computed(() => !isEmpty(answerModel.value));
120
+ const skipNextClickaway = ref(false);
119
121
 
120
122
  function saveQuestion() {
123
+ if (skipNextClickaway.value) {
124
+ skipNextClickaway.value = false;
125
+ return;
126
+ }
121
127
  state.value = QuestionState.SAVED;
122
128
  }
123
129
 
130
+ function handleAnswerTypeChange() {
131
+ skipNextClickaway.value = true;
132
+ }
133
+
124
134
  function activateQuestion() {
125
135
  if (mode !== 'create') return;
126
136
  state.value = QuestionState.EDIT;