@webitel/ui-sdk 3.1.86 → 3.1.88
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
|
@@ -80,9 +80,9 @@ async function addQuestion({ index, question } = {}) {
|
|
|
80
80
|
const newQuestion = question || generateQuestionSchema();
|
|
81
81
|
if (index != null) questions.splice(index, 0, newQuestion);
|
|
82
82
|
else questions.push(newQuestion);
|
|
83
|
-
await emit('update:questions', questions);
|
|
84
83
|
isQuestionAdded.value = true;
|
|
85
84
|
isQuestionAdded.index = index || 'last';
|
|
85
|
+
await emit('update:questions', questions);
|
|
86
86
|
}
|
|
87
87
|
|
|
88
88
|
function handleQuestionUpdate({ key, value }) {
|
|
@@ -158,7 +158,7 @@ watch(v$, () => emit('update:validation', { invalid: isInvalidForm.value, v$: v$
|
|
|
158
158
|
watchEffect(initResult);
|
|
159
159
|
watch(() => props.questions, () => {
|
|
160
160
|
if (!isQuestionAdded.value) return;
|
|
161
|
-
|
|
161
|
+
atQuestionAdded();
|
|
162
162
|
});
|
|
163
163
|
|
|
164
164
|
onMounted(() => {
|
|
@@ -80,7 +80,8 @@ export default {
|
|
|
80
80
|
},
|
|
81
81
|
|
|
82
82
|
async setFrom(value) {
|
|
83
|
-
|
|
83
|
+
const filterValue = { from: value, to: this.value.to };
|
|
84
|
+
await this.setValue({ filter: this.filterQuery, value: filterValue });
|
|
84
85
|
await this.setValueToQuery({
|
|
85
86
|
filterQuery: `${this.filterQuery}From`,
|
|
86
87
|
value,
|
|
@@ -88,7 +89,8 @@ export default {
|
|
|
88
89
|
},
|
|
89
90
|
|
|
90
91
|
async setTo(value) {
|
|
91
|
-
|
|
92
|
+
const filterValue = { from: this.value.from, to: value };
|
|
93
|
+
await this.setValue({ filter: this.filterQuery, value: filterValue });
|
|
92
94
|
await this.setValueToQuery({
|
|
93
95
|
filterQuery: `${this.filterQuery}To`,
|
|
94
96
|
value,
|