@webitel/ui-sdk 26.2.99 → 26.2.100
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/dist/{index-tVqKxDM9.js → index-BDbIb0Wx.js} +1 -1
- package/dist/{index-C_UXGo2O.js → index-DMNVRM8G.js} +1 -1
- package/dist/{install-_y7woivq.js → install-BLg9stRY.js} +2792 -2782
- package/dist/{isObject-CoRQk242.js → isObject-CY0WNjjb.js} +1 -1
- package/dist/ui-sdk.js +1 -1
- package/dist/ui-sdk.umd.cjs +79 -71
- package/dist/{vidstack-Bq6c3Bam-7xeVs36h.js → vidstack-Bq6c3Bam-2NkVhSmW.js} +2 -2
- package/dist/{vidstack-D2pY00kU-CPvKC0f1.js → vidstack-D2pY00kU-CtXuBxWV.js} +2 -2
- package/dist/{vidstack-DDXt6fpN-BnvnWmCT.js → vidstack-DDXt6fpN-CL5Dvcz7.js} +1 -1
- package/dist/{vidstack-D_-9AA6_-DIpdAHJx.js → vidstack-D_-9AA6_-Dana1Lpy.js} +1 -1
- package/dist/{vidstack-DqAw8m9J-CH0RQZQL.js → vidstack-DqAw8m9J-BK43_AQm.js} +1 -1
- package/dist/{vidstack-audio-mp_TLPKd.js → vidstack-audio-DWO2584P.js} +2 -2
- package/dist/{vidstack-dash-CMBwvCZJ.js → vidstack-dash-DTrG0grK.js} +3 -3
- package/dist/{vidstack-google-cast-uwJe-HGB.js → vidstack-google-cast-sGI32dX8.js} +3 -3
- package/dist/{vidstack-hls-DcGqPWbm.js → vidstack-hls-DQ3qShXJ.js} +3 -3
- package/dist/{vidstack-video-DQ5_xt3a.js → vidstack-video-D89eBrqN.js} +2 -2
- package/dist/{vidstack-vimeo-DqlS9H2R.js → vidstack-vimeo-Ct9L3lAl.js} +3 -3
- package/dist/{vidstack-youtube-CxiaENCC.js → vidstack-youtube-DnbgfwSU.js} +2 -2
- package/dist/{wt-action-bar-1MxhyLn-.js → wt-action-bar-CTdZSsv7.js} +1 -1
- package/dist/{wt-button-select-CW1xth4d.js → wt-button-select-BvmOCtWx.js} +1 -1
- package/dist/{wt-chat-emoji-Bf1hgkVk.js → wt-chat-emoji-WgPCVYVS.js} +2 -2
- package/dist/{wt-confirm-dialog-aZddppXV.js → wt-confirm-dialog-La-YeMFe.js} +1 -1
- package/dist/{wt-context-menu-CXgEmDmT.js → wt-context-menu-C9hJexue.js} +1 -1
- package/dist/{wt-copy-action-B1Km_F3k.js → wt-copy-action-BL4xgL3O.js} +1 -1
- package/dist/{wt-datepicker-CfV3BU2N.js → wt-datepicker-DtPn45q_.js} +1 -1
- package/dist/{wt-display-chip-items-ZaqziG__.js → wt-display-chip-items-DA6Gd4Hv.js} +1 -1
- package/dist/{wt-dual-panel-DLkrW-CP.js → wt-dual-panel-3SD881nb.js} +1 -1
- package/dist/{wt-dummy-BERgAbeQ.js → wt-dummy-e8HAushu.js} +1 -1
- package/dist/{wt-error-page-BTkRNv7A.js → wt-error-page-C6tsGyC_.js} +1 -1
- package/dist/{wt-expansion-card-D94d6O9H.js → wt-expansion-card-D_ABmSPP.js} +1 -1
- package/dist/{wt-expansion-panel-syO-2wQd.js → wt-expansion-panel-eVLpkoIY.js} +1 -1
- package/dist/{wt-filters-panel-wrapper-9jasOA6m.js → wt-filters-panel-wrapper-DeEJMGrK.js} +1 -1
- package/dist/{wt-galleria-CxQZMXH5.js → wt-galleria-BNdh_lt0.js} +1 -1
- package/dist/{wt-navigation-menu-B3DayjkY.js → wt-navigation-menu-BOMeihtV.js} +1 -1
- package/dist/{wt-notifications-bar-dbz6DjG2.js → wt-notifications-bar-BpPBEdt6.js} +2 -2
- package/dist/{wt-page-header-DMOtSlJR.js → wt-page-header-BgcZ_Rcv.js} +1 -1
- package/dist/{wt-pagination-DRpxziCL.js → wt-pagination-DG4P_LiA.js} +1 -1
- package/dist/{wt-player-DOCoyz4Z.js → wt-player-g8VNgPag.js} +1 -1
- package/dist/{wt-search-bar-CNyBGfiT.js → wt-search-bar-DLG08mDV.js} +1 -1
- package/dist/{wt-selection-popup-9QPiIMkZ.js → wt-selection-popup-CSy9je5D.js} +1 -1
- package/dist/{wt-start-page-uqD_fS5n.js → wt-start-page-DqaU6Ht9.js} +1 -1
- package/dist/{wt-status-select-DkEXj7h-.js → wt-status-select-BxzMR9nZ.js} +1 -1
- package/dist/{wt-stepper-MIpi_L_N.js → wt-stepper-DZxBNQcf.js} +1 -1
- package/dist/{wt-table-C6lGg4F7.js → wt-table-C5keIxBl.js} +1 -1
- package/dist/{wt-table-actions-DzK2i1JI.js → wt-table-actions-ZNHYabhN.js} +1 -1
- package/dist/{wt-table-column-select-DaEMIgyq.js → wt-table-column-select-Bac8EQ9f.js} +2 -2
- package/dist/{wt-tabs-JCqwY4fT.js → wt-tabs-BFshmhdU.js} +1 -1
- package/dist/{wt-tags-input-CRImYcfm.js → wt-tags-input-DpbWEd4D.js} +2 -2
- package/dist/{wt-timepicker-gTRPVO-C.js → wt-timepicker-B7zqxTy-.js} +1 -1
- package/dist/{wt-tree-DzkJKfvR.js → wt-tree-B0Q5FzLQ.js} +2 -2
- package/dist/{wt-tree-table-DT74gPqB.js → wt-tree-table-k3Bchetx.js} +1 -1
- package/dist/{wt-type-extension-value-input-CSabKSkq.js → wt-type-extension-value-input-BGMBxpWA.js} +2 -2
- package/dist/{wt-vidstack-player-DusOo_yS.js → wt-vidstack-player-JXqjTkTY.js} +9 -9
- package/package.json +1 -1
- package/src/assets/icons/sprite/index.ts +4 -0
- package/src/assets/icons/sprite/violation--filled.svg +3 -0
- package/src/assets/icons/sprite/violation.svg +5 -0
- package/src/locale/en/en.js +2 -0
- package/src/locale/es/es.js +2 -0
- package/src/locale/kz/kz.js +2 -0
- package/src/locale/pl/pl.js +2 -0
- package/src/locale/ro/ro.js +2 -0
- package/src/locale/ru/ru.js +2 -0
- package/src/locale/uk/uk.js +2 -0
- package/src/locale/uz/uz.js +2 -0
- package/src/locale/vi/vi.js +2 -0
- package/src/modules/AuditForm/components/audit-form-question-read-wrapper.vue +45 -15
- package/src/modules/AuditForm/components/audit-form-question-write-wrapper.vue +42 -15
- package/src/modules/AuditForm/components/audit-form-question.vue +4 -1
- package/src/modules/AuditForm/components/audit-form.vue +5 -2
- package/src/modules/AuditForm/components/form-answers/answer-editing-info/audit-form-answer-editing-info.vue +1 -1
- package/src/modules/AuditForm/components/form-questions/options/audit-form-question-options.vue +5 -2
- package/src/modules/AuditForm/components/form-questions/score/audit-form-question-score.vue +4 -1
- package/src/modules/AuditForm/components/form-questions/yes/audit-form-question-yes.vue +61 -0
- package/src/modules/AuditForm/schemas/AuditFormQuestionOptionsSchema.ts +17 -0
- package/src/modules/AuditForm/schemas/AuditFormQuestionSchema.ts +12 -0
- package/src/modules/AuditForm/schemas/AuditFormQuestionScoreSchema.ts +8 -0
- package/src/modules/AuditForm/schemas/AuditFormQuestionYesSchema.ts +7 -0
- package/types/locale/en/en.d.ts +2 -0
- package/types/locale/es/es.d.ts +3 -0
- package/types/locale/i18n.d.ts +18 -0
- package/types/locale/index.d.ts +18 -0
- package/types/locale/kz/kz.d.ts +3 -0
- package/types/locale/pl/pl.d.ts +3 -0
- package/types/locale/ro/ro.d.ts +3 -0
- package/types/locale/ru/ru.d.ts +3 -0
- package/types/locale/uk/uk.d.ts +3 -0
- package/types/locale/uz/uz.d.ts +3 -0
- package/types/locale/vi/vi.d.ts +3 -0
- package/types/modules/AuditForm/components/audit-form-question-read-wrapper.vue.d.ts +1 -1
- package/types/modules/AuditForm/components/audit-form-question-write-wrapper.vue.d.ts +1 -1
- package/types/modules/AuditForm/components/audit-form-question.vue.d.ts +1 -1
- package/types/modules/AuditForm/components/audit-form.vue.d.ts +1 -1
- package/types/modules/AuditForm/components/form-answers/answer-editing-info/audit-form-answer-editing-info.vue.d.ts +1 -1
- package/types/modules/AuditForm/components/form-questions/options/audit-form-question-options.vue.d.ts +1 -1
- package/types/modules/AuditForm/components/form-questions/score/audit-form-question-score.vue.d.ts +1 -1
- package/types/modules/AuditForm/components/form-questions/yes/audit-form-question-yes.vue.d.ts +18 -0
- package/types/modules/AuditForm/schemas/AuditFormQuestionOptionsSchema.d.ts +3 -12
- package/types/modules/AuditForm/schemas/AuditFormQuestionSchema.d.ts +3 -8
- package/types/modules/AuditForm/schemas/AuditFormQuestionScoreSchema.d.ts +2 -6
- package/types/modules/AuditForm/schemas/AuditFormQuestionYesSchema.d.ts +2 -0
- package/src/modules/AuditForm/schemas/AuditFormQuestionOptionsSchema.js +0 -13
- package/src/modules/AuditForm/schemas/AuditFormQuestionSchema.js +0 -8
- package/src/modules/AuditForm/schemas/AuditFormQuestionScoreSchema.js +0 -8
|
@@ -31,11 +31,11 @@
|
|
|
31
31
|
</template>
|
|
32
32
|
|
|
33
33
|
<script setup lang="ts">
|
|
34
|
+
import type { EngineQuestionAnswer } from '@webitel/api-services/gen/models';
|
|
34
35
|
import { FormatDateMode } from '@webitel/ui-sdk/enums';
|
|
35
36
|
import { formatDate } from '@webitel/ui-sdk/utils';
|
|
36
37
|
import { computed, ref, useTemplateRef } from 'vue';
|
|
37
38
|
import { useI18n } from 'vue-i18n';
|
|
38
|
-
import type { EngineQuestionAnswer } from 'webitel-sdk';
|
|
39
39
|
|
|
40
40
|
const props = withDefaults(
|
|
41
41
|
defineProps<{
|
package/src/modules/AuditForm/components/form-questions/options/audit-form-question-options.vue
CHANGED
|
@@ -39,11 +39,14 @@
|
|
|
39
39
|
</template>
|
|
40
40
|
|
|
41
41
|
<script lang="ts" setup>
|
|
42
|
-
import type {
|
|
42
|
+
import type {
|
|
43
|
+
EngineQuestion,
|
|
44
|
+
EngineQuestionAnswer,
|
|
45
|
+
} from '@webitel/api-services/gen/models';
|
|
43
46
|
|
|
44
47
|
import { WtButton, WtRadio } from '../../../../../components';
|
|
45
48
|
import updateObject from '../../../../../scripts/updateObject.js';
|
|
46
|
-
import { generateOption } from '../../../schemas/AuditFormQuestionOptionsSchema
|
|
49
|
+
import { generateOption } from '../../../schemas/AuditFormQuestionOptionsSchema';
|
|
47
50
|
import OptionsWriteRow from './audit-form-question-options-write-row.vue';
|
|
48
51
|
|
|
49
52
|
const questionModel = defineModel<EngineQuestion>('question');
|
|
@@ -38,8 +38,11 @@
|
|
|
38
38
|
<script lang="ts" setup>
|
|
39
39
|
import { useVuelidate } from '@vuelidate/core';
|
|
40
40
|
import { integer, maxValue, minValue, required } from '@vuelidate/validators';
|
|
41
|
+
import type {
|
|
42
|
+
EngineQuestion,
|
|
43
|
+
EngineQuestionAnswer,
|
|
44
|
+
} from '@webitel/api-services/gen/models';
|
|
41
45
|
import { computed, onMounted } from 'vue';
|
|
42
|
-
import type { EngineQuestion, EngineQuestionAnswer } from 'webitel-sdk';
|
|
43
46
|
|
|
44
47
|
import WtRadio from '../../../../../components/wt-radio/wt-radio.vue';
|
|
45
48
|
import updateObject from '../../../../../scripts/updateObject.js';
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<article class="audit-form-question-yes">
|
|
3
|
+
<div
|
|
4
|
+
v-if="mode === 'write'"
|
|
5
|
+
class="audit-form-question-yes-write"
|
|
6
|
+
>
|
|
7
|
+
<!-- Write mode: No UI needed, just a placeholder since the question type itself is the answer -->
|
|
8
|
+
</div>
|
|
9
|
+
<div
|
|
10
|
+
v-else-if="mode === 'read'"
|
|
11
|
+
class="audit-form-question-yes-read"
|
|
12
|
+
>
|
|
13
|
+
<wt-checkbox
|
|
14
|
+
:label="t('vocabulary.yes')"
|
|
15
|
+
:selected="isYes"
|
|
16
|
+
@update:selected="toggleYes"
|
|
17
|
+
/>
|
|
18
|
+
</div>
|
|
19
|
+
</article>
|
|
20
|
+
</template>
|
|
21
|
+
|
|
22
|
+
<script lang="ts" setup>
|
|
23
|
+
import type { EngineQuestionAnswer } from '@webitel/api-services/gen/models';
|
|
24
|
+
import { computed } from 'vue';
|
|
25
|
+
import { useI18n } from 'vue-i18n';
|
|
26
|
+
|
|
27
|
+
import WtCheckbox from '../../../../../components/wt-checkbox/wt-checkbox.vue';
|
|
28
|
+
|
|
29
|
+
const answerModel = defineModel<EngineQuestionAnswer | null>('answer');
|
|
30
|
+
|
|
31
|
+
defineProps<{
|
|
32
|
+
/**
|
|
33
|
+
* question mode, NOT audit form mode
|
|
34
|
+
*/
|
|
35
|
+
mode: 'read' | 'write';
|
|
36
|
+
}>();
|
|
37
|
+
|
|
38
|
+
const { t } = useI18n();
|
|
39
|
+
|
|
40
|
+
const isYes = computed(() => answerModel.value?.score === 1);
|
|
41
|
+
|
|
42
|
+
function toggleYes(value: boolean | string[]) {
|
|
43
|
+
const boolValue = typeof value === 'boolean' ? value : value.length > 0;
|
|
44
|
+
answerModel.value = answerModel.value
|
|
45
|
+
? {
|
|
46
|
+
...answerModel.value,
|
|
47
|
+
score: boolValue ? 1 : 0,
|
|
48
|
+
}
|
|
49
|
+
: {
|
|
50
|
+
score: boolValue ? 1 : 0,
|
|
51
|
+
};
|
|
52
|
+
}
|
|
53
|
+
</script>
|
|
54
|
+
|
|
55
|
+
<style lang="scss" scoped>
|
|
56
|
+
.audit-form-question-yes-read {
|
|
57
|
+
display: flex;
|
|
58
|
+
flex-direction: column;
|
|
59
|
+
gap: var(--spacing-sm);
|
|
60
|
+
}
|
|
61
|
+
</style>
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type {
|
|
2
|
+
EngineQuestion,
|
|
3
|
+
EngineQuestionOption,
|
|
4
|
+
} from '@webitel/api-services/gen/models';
|
|
5
|
+
import { EngineAuditQuestionType } from '@webitel/api-services/gen/models';
|
|
6
|
+
|
|
7
|
+
export const generateOption = (): EngineQuestionOption => ({
|
|
8
|
+
name: '',
|
|
9
|
+
score: 10,
|
|
10
|
+
});
|
|
11
|
+
|
|
12
|
+
export const generateQuestionOptionsSchema = (): Partial<EngineQuestion> => ({
|
|
13
|
+
type: EngineAuditQuestionType.QuestionOption,
|
|
14
|
+
options: [
|
|
15
|
+
generateOption(),
|
|
16
|
+
],
|
|
17
|
+
});
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { EngineQuestion } from '@webitel/api-services/gen/models';
|
|
2
|
+
import { generateQuestionScoreSchema } from './AuditFormQuestionScoreSchema';
|
|
3
|
+
|
|
4
|
+
export const generateQuestionSchema = ({
|
|
5
|
+
required = true,
|
|
6
|
+
}: {
|
|
7
|
+
required?: boolean;
|
|
8
|
+
} = {}): Partial<EngineQuestion> => ({
|
|
9
|
+
required,
|
|
10
|
+
question: '',
|
|
11
|
+
...generateQuestionScoreSchema(),
|
|
12
|
+
});
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { EngineQuestion } from '@webitel/api-services/gen/models';
|
|
2
|
+
import { EngineAuditQuestionType } from '@webitel/api-services/gen/models';
|
|
3
|
+
|
|
4
|
+
export const generateQuestionScoreSchema = (): Partial<EngineQuestion> => ({
|
|
5
|
+
type: EngineAuditQuestionType.QuestionScore,
|
|
6
|
+
min: 1,
|
|
7
|
+
max: 5,
|
|
8
|
+
});
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { EngineQuestion } from '@webitel/api-services/gen/models';
|
|
2
|
+
import { EngineAuditQuestionType } from '@webitel/api-services/gen/models';
|
|
3
|
+
|
|
4
|
+
export const generateQuestionYesSchema = (): Partial<EngineQuestion> => ({
|
|
5
|
+
type: EngineAuditQuestionType.QuestionYes,
|
|
6
|
+
criticalViolation: false,
|
|
7
|
+
});
|
package/types/locale/en/en.d.ts
CHANGED
package/types/locale/es/es.d.ts
CHANGED
|
@@ -605,8 +605,11 @@ declare namespace _default {
|
|
|
605
605
|
export { options_1 as options };
|
|
606
606
|
let score_1: string;
|
|
607
607
|
export { score_1 as score };
|
|
608
|
+
let yes_1: string;
|
|
609
|
+
export { yes_1 as yes };
|
|
608
610
|
}
|
|
609
611
|
export { type_4 as type };
|
|
612
|
+
export let criticalViolation: string;
|
|
610
613
|
export let clearSelection: string;
|
|
611
614
|
}
|
|
612
615
|
export namespace deleteConfirmationPopup {
|
package/types/locale/i18n.d.ts
CHANGED
|
@@ -542,7 +542,9 @@ declare const _default: import("vue-i18n").I18n<{
|
|
|
542
542
|
type: {
|
|
543
543
|
options: string;
|
|
544
544
|
score: string;
|
|
545
|
+
yes: string;
|
|
545
546
|
};
|
|
547
|
+
criticalViolation: string;
|
|
546
548
|
clearSelection: string;
|
|
547
549
|
};
|
|
548
550
|
deleteConfirmationPopup: {
|
|
@@ -1350,7 +1352,9 @@ declare const _default: import("vue-i18n").I18n<{
|
|
|
1350
1352
|
type: {
|
|
1351
1353
|
options: string;
|
|
1352
1354
|
score: string;
|
|
1355
|
+
yes: string;
|
|
1353
1356
|
};
|
|
1357
|
+
criticalViolation: string;
|
|
1354
1358
|
clearSelection: string;
|
|
1355
1359
|
};
|
|
1356
1360
|
deleteConfirmationPopup: {
|
|
@@ -2142,7 +2146,9 @@ declare const _default: import("vue-i18n").I18n<{
|
|
|
2142
2146
|
type: {
|
|
2143
2147
|
options: string;
|
|
2144
2148
|
score: string;
|
|
2149
|
+
yes: string;
|
|
2145
2150
|
};
|
|
2151
|
+
criticalViolation: string;
|
|
2146
2152
|
clearSelection: string;
|
|
2147
2153
|
};
|
|
2148
2154
|
deleteConfirmationPopup: {
|
|
@@ -2936,7 +2942,9 @@ declare const _default: import("vue-i18n").I18n<{
|
|
|
2936
2942
|
type: {
|
|
2937
2943
|
options: string;
|
|
2938
2944
|
score: string;
|
|
2945
|
+
yes: string;
|
|
2939
2946
|
};
|
|
2947
|
+
criticalViolation: string;
|
|
2940
2948
|
clearSelection: string;
|
|
2941
2949
|
};
|
|
2942
2950
|
deleteConfirmationPopup: {
|
|
@@ -3728,7 +3736,9 @@ declare const _default: import("vue-i18n").I18n<{
|
|
|
3728
3736
|
type: {
|
|
3729
3737
|
options: string;
|
|
3730
3738
|
score: string;
|
|
3739
|
+
yes: string;
|
|
3731
3740
|
};
|
|
3741
|
+
criticalViolation: string;
|
|
3732
3742
|
clearSelection: string;
|
|
3733
3743
|
};
|
|
3734
3744
|
deleteConfirmationPopup: {
|
|
@@ -4522,7 +4532,9 @@ declare const _default: import("vue-i18n").I18n<{
|
|
|
4522
4532
|
type: {
|
|
4523
4533
|
options: string;
|
|
4524
4534
|
score: string;
|
|
4535
|
+
yes: string;
|
|
4525
4536
|
};
|
|
4537
|
+
criticalViolation: string;
|
|
4526
4538
|
clearSelection: string;
|
|
4527
4539
|
};
|
|
4528
4540
|
deleteConfirmationPopup: {
|
|
@@ -5316,7 +5328,9 @@ declare const _default: import("vue-i18n").I18n<{
|
|
|
5316
5328
|
type: {
|
|
5317
5329
|
options: string;
|
|
5318
5330
|
score: string;
|
|
5331
|
+
yes: string;
|
|
5319
5332
|
};
|
|
5333
|
+
criticalViolation: string;
|
|
5320
5334
|
clearSelection: string;
|
|
5321
5335
|
};
|
|
5322
5336
|
deleteConfirmationPopup: {
|
|
@@ -6111,7 +6125,9 @@ declare const _default: import("vue-i18n").I18n<{
|
|
|
6111
6125
|
type: {
|
|
6112
6126
|
options: string;
|
|
6113
6127
|
score: string;
|
|
6128
|
+
yes: string;
|
|
6114
6129
|
};
|
|
6130
|
+
criticalViolation: string;
|
|
6115
6131
|
clearSelection: string;
|
|
6116
6132
|
};
|
|
6117
6133
|
deleteConfirmationPopup: {
|
|
@@ -6905,7 +6921,9 @@ declare const _default: import("vue-i18n").I18n<{
|
|
|
6905
6921
|
type: {
|
|
6906
6922
|
options: string;
|
|
6907
6923
|
score: string;
|
|
6924
|
+
yes: string;
|
|
6908
6925
|
};
|
|
6926
|
+
criticalViolation: string;
|
|
6909
6927
|
clearSelection: string;
|
|
6910
6928
|
};
|
|
6911
6929
|
deleteConfirmationPopup: {
|
package/types/locale/index.d.ts
CHANGED
|
@@ -552,7 +552,9 @@ export declare const messages: {
|
|
|
552
552
|
type: {
|
|
553
553
|
options: string;
|
|
554
554
|
score: string;
|
|
555
|
+
yes: string;
|
|
555
556
|
};
|
|
557
|
+
criticalViolation: string;
|
|
556
558
|
clearSelection: string;
|
|
557
559
|
};
|
|
558
560
|
deleteConfirmationPopup: {
|
|
@@ -1360,7 +1362,9 @@ export declare const messages: {
|
|
|
1360
1362
|
type: {
|
|
1361
1363
|
options: string;
|
|
1362
1364
|
score: string;
|
|
1365
|
+
yes: string;
|
|
1363
1366
|
};
|
|
1367
|
+
criticalViolation: string;
|
|
1364
1368
|
clearSelection: string;
|
|
1365
1369
|
};
|
|
1366
1370
|
deleteConfirmationPopup: {
|
|
@@ -2152,7 +2156,9 @@ export declare const messages: {
|
|
|
2152
2156
|
type: {
|
|
2153
2157
|
options: string;
|
|
2154
2158
|
score: string;
|
|
2159
|
+
yes: string;
|
|
2155
2160
|
};
|
|
2161
|
+
criticalViolation: string;
|
|
2156
2162
|
clearSelection: string;
|
|
2157
2163
|
};
|
|
2158
2164
|
deleteConfirmationPopup: {
|
|
@@ -2946,7 +2952,9 @@ export declare const messages: {
|
|
|
2946
2952
|
type: {
|
|
2947
2953
|
options: string;
|
|
2948
2954
|
score: string;
|
|
2955
|
+
yes: string;
|
|
2949
2956
|
};
|
|
2957
|
+
criticalViolation: string;
|
|
2950
2958
|
clearSelection: string;
|
|
2951
2959
|
};
|
|
2952
2960
|
deleteConfirmationPopup: {
|
|
@@ -3738,7 +3746,9 @@ export declare const messages: {
|
|
|
3738
3746
|
type: {
|
|
3739
3747
|
options: string;
|
|
3740
3748
|
score: string;
|
|
3749
|
+
yes: string;
|
|
3741
3750
|
};
|
|
3751
|
+
criticalViolation: string;
|
|
3742
3752
|
clearSelection: string;
|
|
3743
3753
|
};
|
|
3744
3754
|
deleteConfirmationPopup: {
|
|
@@ -4532,7 +4542,9 @@ export declare const messages: {
|
|
|
4532
4542
|
type: {
|
|
4533
4543
|
options: string;
|
|
4534
4544
|
score: string;
|
|
4545
|
+
yes: string;
|
|
4535
4546
|
};
|
|
4547
|
+
criticalViolation: string;
|
|
4536
4548
|
clearSelection: string;
|
|
4537
4549
|
};
|
|
4538
4550
|
deleteConfirmationPopup: {
|
|
@@ -5326,7 +5338,9 @@ export declare const messages: {
|
|
|
5326
5338
|
type: {
|
|
5327
5339
|
options: string;
|
|
5328
5340
|
score: string;
|
|
5341
|
+
yes: string;
|
|
5329
5342
|
};
|
|
5343
|
+
criticalViolation: string;
|
|
5330
5344
|
clearSelection: string;
|
|
5331
5345
|
};
|
|
5332
5346
|
deleteConfirmationPopup: {
|
|
@@ -6121,7 +6135,9 @@ export declare const messages: {
|
|
|
6121
6135
|
type: {
|
|
6122
6136
|
options: string;
|
|
6123
6137
|
score: string;
|
|
6138
|
+
yes: string;
|
|
6124
6139
|
};
|
|
6140
|
+
criticalViolation: string;
|
|
6125
6141
|
clearSelection: string;
|
|
6126
6142
|
};
|
|
6127
6143
|
deleteConfirmationPopup: {
|
|
@@ -6915,7 +6931,9 @@ export declare const messages: {
|
|
|
6915
6931
|
type: {
|
|
6916
6932
|
options: string;
|
|
6917
6933
|
score: string;
|
|
6934
|
+
yes: string;
|
|
6918
6935
|
};
|
|
6936
|
+
criticalViolation: string;
|
|
6919
6937
|
clearSelection: string;
|
|
6920
6938
|
};
|
|
6921
6939
|
deleteConfirmationPopup: {
|
package/types/locale/kz/kz.d.ts
CHANGED
|
@@ -605,8 +605,11 @@ declare namespace _default {
|
|
|
605
605
|
export { options_1 as options };
|
|
606
606
|
let score_1: string;
|
|
607
607
|
export { score_1 as score };
|
|
608
|
+
let yes_1: string;
|
|
609
|
+
export { yes_1 as yes };
|
|
608
610
|
}
|
|
609
611
|
export { type_4 as type };
|
|
612
|
+
export let criticalViolation: string;
|
|
610
613
|
export let clearSelection: string;
|
|
611
614
|
}
|
|
612
615
|
export namespace deleteConfirmationPopup {
|
package/types/locale/pl/pl.d.ts
CHANGED
|
@@ -605,8 +605,11 @@ declare namespace _default {
|
|
|
605
605
|
export { options_1 as options };
|
|
606
606
|
let score_1: string;
|
|
607
607
|
export { score_1 as score };
|
|
608
|
+
let yes_1: string;
|
|
609
|
+
export { yes_1 as yes };
|
|
608
610
|
}
|
|
609
611
|
export { type_4 as type };
|
|
612
|
+
export let criticalViolation: string;
|
|
610
613
|
export let clearSelection: string;
|
|
611
614
|
}
|
|
612
615
|
export namespace deleteConfirmationPopup {
|
package/types/locale/ro/ro.d.ts
CHANGED
|
@@ -605,8 +605,11 @@ declare namespace _default {
|
|
|
605
605
|
export { options_1 as options };
|
|
606
606
|
let score_1: string;
|
|
607
607
|
export { score_1 as score };
|
|
608
|
+
let yes_1: string;
|
|
609
|
+
export { yes_1 as yes };
|
|
608
610
|
}
|
|
609
611
|
export { type_4 as type };
|
|
612
|
+
export let criticalViolation: string;
|
|
610
613
|
export let clearSelection: string;
|
|
611
614
|
}
|
|
612
615
|
export namespace deleteConfirmationPopup {
|
package/types/locale/ru/ru.d.ts
CHANGED
|
@@ -603,8 +603,11 @@ declare namespace _default {
|
|
|
603
603
|
export { options_1 as options };
|
|
604
604
|
let score_1: string;
|
|
605
605
|
export { score_1 as score };
|
|
606
|
+
let yes_1: string;
|
|
607
|
+
export { yes_1 as yes };
|
|
606
608
|
}
|
|
607
609
|
export { type_4 as type };
|
|
610
|
+
export let criticalViolation: string;
|
|
608
611
|
export let clearSelection: string;
|
|
609
612
|
}
|
|
610
613
|
export namespace deleteConfirmationPopup {
|
package/types/locale/uk/uk.d.ts
CHANGED
|
@@ -603,8 +603,11 @@ declare namespace _default {
|
|
|
603
603
|
export { options_1 as options };
|
|
604
604
|
let score_1: string;
|
|
605
605
|
export { score_1 as score };
|
|
606
|
+
let yes_1: string;
|
|
607
|
+
export { yes_1 as yes };
|
|
606
608
|
}
|
|
607
609
|
export { type_4 as type };
|
|
610
|
+
export let criticalViolation: string;
|
|
608
611
|
export let clearSelection: string;
|
|
609
612
|
}
|
|
610
613
|
export namespace deleteConfirmationPopup {
|
package/types/locale/uz/uz.d.ts
CHANGED
|
@@ -606,8 +606,11 @@ declare namespace _default {
|
|
|
606
606
|
export { options_1 as options };
|
|
607
607
|
let score_1: string;
|
|
608
608
|
export { score_1 as score };
|
|
609
|
+
let yes_1: string;
|
|
610
|
+
export { yes_1 as yes };
|
|
609
611
|
}
|
|
610
612
|
export { type_4 as type };
|
|
613
|
+
export let criticalViolation: string;
|
|
611
614
|
export let clearSelection: string;
|
|
612
615
|
}
|
|
613
616
|
export namespace deleteConfirmationPopup {
|
package/types/locale/vi/vi.d.ts
CHANGED
|
@@ -605,8 +605,11 @@ declare namespace _default {
|
|
|
605
605
|
export { options_1 as options };
|
|
606
606
|
let score_1: string;
|
|
607
607
|
export { score_1 as score };
|
|
608
|
+
let yes_1: string;
|
|
609
|
+
export { yes_1 as yes };
|
|
608
610
|
}
|
|
609
611
|
export { type_4 as type };
|
|
612
|
+
export let criticalViolation: string;
|
|
610
613
|
export let clearSelection: string;
|
|
611
614
|
}
|
|
612
615
|
export namespace deleteConfirmationPopup {
|
package/types/modules/AuditForm/components/form-questions/score/audit-form-question-score.vue.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { EngineQuestion, EngineQuestionAnswer } from 'webitel-
|
|
1
|
+
import type { EngineQuestion, EngineQuestionAnswer } from '@webitel/api-services/gen/models';
|
|
2
2
|
declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
3
3
|
mode: {
|
|
4
4
|
type: StringConstructor;
|
package/types/modules/AuditForm/components/form-questions/yes/audit-form-question-yes.vue.d.ts
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { EngineQuestionAnswer } from '@webitel/api-services/gen/models';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
/**
|
|
4
|
+
* question mode, NOT audit form mode
|
|
5
|
+
*/
|
|
6
|
+
mode: 'read' | 'write';
|
|
7
|
+
};
|
|
8
|
+
type __VLS_ModelProps = {
|
|
9
|
+
'answer'?: EngineQuestionAnswer | null;
|
|
10
|
+
};
|
|
11
|
+
type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
|
|
12
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
13
|
+
"update:answer": (value: EngineQuestionAnswer) => any;
|
|
14
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
15
|
+
"onUpdate:answer"?: (value: EngineQuestionAnswer) => any;
|
|
16
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
17
|
+
declare const _default: typeof __VLS_export;
|
|
18
|
+
export default _default;
|
|
@@ -1,12 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
};
|
|
5
|
-
export function generateQuestionOptionsSchema(): {
|
|
6
|
-
type: EngineAuditQuestionType;
|
|
7
|
-
options: {
|
|
8
|
-
name: string;
|
|
9
|
-
score: number;
|
|
10
|
-
}[];
|
|
11
|
-
};
|
|
12
|
-
import { EngineAuditQuestionType } from 'webitel-sdk';
|
|
1
|
+
import type { EngineQuestion, EngineQuestionOption } from '@webitel/api-services/gen/models';
|
|
2
|
+
export declare const generateOption: () => EngineQuestionOption;
|
|
3
|
+
export declare const generateQuestionOptionsSchema: () => Partial<EngineQuestion>;
|
|
@@ -1,9 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import type { EngineQuestion } from '@webitel/api-services/gen/models';
|
|
2
|
+
export declare const generateQuestionSchema: ({ required, }?: {
|
|
2
3
|
required?: boolean;
|
|
3
|
-
})
|
|
4
|
-
type: import("webitel-sdk").EngineAuditQuestionType;
|
|
5
|
-
min: number;
|
|
6
|
-
max: number;
|
|
7
|
-
required: boolean;
|
|
8
|
-
question: string;
|
|
9
|
-
};
|
|
4
|
+
}) => Partial<EngineQuestion>;
|
|
@@ -1,6 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
min: number;
|
|
4
|
-
max: number;
|
|
5
|
-
};
|
|
6
|
-
import { EngineAuditQuestionType } from 'webitel-sdk';
|
|
1
|
+
import type { EngineQuestion } from '@webitel/api-services/gen/models';
|
|
2
|
+
export declare const generateQuestionScoreSchema: () => Partial<EngineQuestion>;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { EngineAuditQuestionType } from 'webitel-sdk';
|
|
2
|
-
|
|
3
|
-
export const generateOption = () => ({
|
|
4
|
-
name: '',
|
|
5
|
-
score: 10,
|
|
6
|
-
});
|
|
7
|
-
|
|
8
|
-
export const generateQuestionOptionsSchema = () => ({
|
|
9
|
-
type: EngineAuditQuestionType.Option,
|
|
10
|
-
options: [
|
|
11
|
-
generateOption(),
|
|
12
|
-
],
|
|
13
|
-
});
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { generateQuestionScoreSchema } from './AuditFormQuestionScoreSchema.js';
|
|
2
|
-
|
|
3
|
-
// eslint-disable-next-line import/prefer-default-export
|
|
4
|
-
export const generateQuestionSchema = ({ required = true } = {}) => ({
|
|
5
|
-
required,
|
|
6
|
-
question: '',
|
|
7
|
-
...generateQuestionScoreSchema(),
|
|
8
|
-
});
|