itube-specs 0.0.271 → 0.0.272
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.
|
@@ -111,7 +111,7 @@
|
|
|
111
111
|
<script setup lang="ts">
|
|
112
112
|
import { reportFormsScheme } from '../../lib/report-forms-scheme';
|
|
113
113
|
import { EReportFormsSubjects, validateEmail, validatePhone } from '../../runtime';
|
|
114
|
-
import type { InputTypes, IReportForm } from '../../types';
|
|
114
|
+
import type { InputTypes, IReportForm, IReportRequest } from '../../types';
|
|
115
115
|
|
|
116
116
|
const reasonValue = ref('');
|
|
117
117
|
const errorRadio = ref(false);
|
|
@@ -151,6 +151,10 @@ function resetForm() {
|
|
|
151
151
|
errorRadio.value = false
|
|
152
152
|
}
|
|
153
153
|
|
|
154
|
+
const emit = defineEmits<{
|
|
155
|
+
(eventName: 'submit', eventValue: IReportRequest): IReportRequest
|
|
156
|
+
}>()
|
|
157
|
+
|
|
154
158
|
async function submit() {
|
|
155
159
|
resetSnackbar();
|
|
156
160
|
errorRadio.value = false;
|
|
@@ -196,7 +200,10 @@ async function submit() {
|
|
|
196
200
|
if (reasonValue.value) {
|
|
197
201
|
form.value.data[ 'reason' ] = reasonValue.value;
|
|
198
202
|
}
|
|
199
|
-
|
|
203
|
+
emit('submit', {
|
|
204
|
+
form: form.value,
|
|
205
|
+
guid: videoGuid.value
|
|
206
|
+
})
|
|
200
207
|
closeReportPopup();
|
|
201
208
|
resetForm();
|
|
202
209
|
snackbarText.value = 'email_send';
|
package/package.json
CHANGED
package/types/index.d.ts
CHANGED