@webitel/ui-sdk 26.2.99 → 26.2.101

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.
Files changed (118) hide show
  1. package/dist/{index-tVqKxDM9.js → index-BDbIb0Wx.js} +1 -1
  2. package/dist/{index-C_UXGo2O.js → index-DMNVRM8G.js} +1 -1
  3. package/dist/{install-_y7woivq.js → install-BLg9stRY.js} +2792 -2782
  4. package/dist/{isObject-CoRQk242.js → isObject-CY0WNjjb.js} +1 -1
  5. package/dist/ui-sdk.js +1 -1
  6. package/dist/ui-sdk.umd.cjs +79 -71
  7. package/dist/{vidstack-Bq6c3Bam-7xeVs36h.js → vidstack-Bq6c3Bam-2NkVhSmW.js} +2 -2
  8. package/dist/{vidstack-D2pY00kU-CPvKC0f1.js → vidstack-D2pY00kU-CtXuBxWV.js} +2 -2
  9. package/dist/{vidstack-DDXt6fpN-BnvnWmCT.js → vidstack-DDXt6fpN-CL5Dvcz7.js} +1 -1
  10. package/dist/{vidstack-D_-9AA6_-DIpdAHJx.js → vidstack-D_-9AA6_-Dana1Lpy.js} +1 -1
  11. package/dist/{vidstack-DqAw8m9J-CH0RQZQL.js → vidstack-DqAw8m9J-BK43_AQm.js} +1 -1
  12. package/dist/{vidstack-audio-mp_TLPKd.js → vidstack-audio-DWO2584P.js} +2 -2
  13. package/dist/{vidstack-dash-CMBwvCZJ.js → vidstack-dash-DTrG0grK.js} +3 -3
  14. package/dist/{vidstack-google-cast-uwJe-HGB.js → vidstack-google-cast-sGI32dX8.js} +3 -3
  15. package/dist/{vidstack-hls-DcGqPWbm.js → vidstack-hls-DQ3qShXJ.js} +3 -3
  16. package/dist/{vidstack-video-DQ5_xt3a.js → vidstack-video-D89eBrqN.js} +2 -2
  17. package/dist/{vidstack-vimeo-DqlS9H2R.js → vidstack-vimeo-Ct9L3lAl.js} +3 -3
  18. package/dist/{vidstack-youtube-CxiaENCC.js → vidstack-youtube-DnbgfwSU.js} +2 -2
  19. package/dist/{wt-action-bar-1MxhyLn-.js → wt-action-bar-CTdZSsv7.js} +1 -1
  20. package/dist/{wt-button-select-CW1xth4d.js → wt-button-select-BvmOCtWx.js} +1 -1
  21. package/dist/{wt-chat-emoji-Bf1hgkVk.js → wt-chat-emoji-WgPCVYVS.js} +2 -2
  22. package/dist/{wt-confirm-dialog-aZddppXV.js → wt-confirm-dialog-La-YeMFe.js} +1 -1
  23. package/dist/{wt-context-menu-CXgEmDmT.js → wt-context-menu-C9hJexue.js} +1 -1
  24. package/dist/{wt-copy-action-B1Km_F3k.js → wt-copy-action-BL4xgL3O.js} +1 -1
  25. package/dist/{wt-datepicker-CfV3BU2N.js → wt-datepicker-DtPn45q_.js} +1 -1
  26. package/dist/{wt-display-chip-items-ZaqziG__.js → wt-display-chip-items-DA6Gd4Hv.js} +1 -1
  27. package/dist/{wt-dual-panel-DLkrW-CP.js → wt-dual-panel-3SD881nb.js} +1 -1
  28. package/dist/{wt-dummy-BERgAbeQ.js → wt-dummy-e8HAushu.js} +1 -1
  29. package/dist/{wt-error-page-BTkRNv7A.js → wt-error-page-C6tsGyC_.js} +1 -1
  30. package/dist/{wt-expansion-card-D94d6O9H.js → wt-expansion-card-D_ABmSPP.js} +1 -1
  31. package/dist/{wt-expansion-panel-syO-2wQd.js → wt-expansion-panel-eVLpkoIY.js} +1 -1
  32. package/dist/{wt-filters-panel-wrapper-9jasOA6m.js → wt-filters-panel-wrapper-DeEJMGrK.js} +1 -1
  33. package/dist/{wt-galleria-CxQZMXH5.js → wt-galleria-BNdh_lt0.js} +1 -1
  34. package/dist/{wt-navigation-menu-B3DayjkY.js → wt-navigation-menu-BOMeihtV.js} +1 -1
  35. package/dist/{wt-notifications-bar-dbz6DjG2.js → wt-notifications-bar-BpPBEdt6.js} +2 -2
  36. package/dist/{wt-page-header-DMOtSlJR.js → wt-page-header-BgcZ_Rcv.js} +1 -1
  37. package/dist/{wt-pagination-DRpxziCL.js → wt-pagination-DG4P_LiA.js} +1 -1
  38. package/dist/{wt-player-DOCoyz4Z.js → wt-player-g8VNgPag.js} +1 -1
  39. package/dist/{wt-search-bar-CNyBGfiT.js → wt-search-bar-DLG08mDV.js} +1 -1
  40. package/dist/{wt-selection-popup-9QPiIMkZ.js → wt-selection-popup-CSy9je5D.js} +1 -1
  41. package/dist/{wt-start-page-uqD_fS5n.js → wt-start-page-DqaU6Ht9.js} +1 -1
  42. package/dist/{wt-status-select-DkEXj7h-.js → wt-status-select-BxzMR9nZ.js} +1 -1
  43. package/dist/{wt-stepper-MIpi_L_N.js → wt-stepper-DZxBNQcf.js} +1 -1
  44. package/dist/{wt-table-C6lGg4F7.js → wt-table-C5keIxBl.js} +1 -1
  45. package/dist/{wt-table-actions-DzK2i1JI.js → wt-table-actions-ZNHYabhN.js} +1 -1
  46. package/dist/{wt-table-column-select-DaEMIgyq.js → wt-table-column-select-Bac8EQ9f.js} +2 -2
  47. package/dist/{wt-tabs-JCqwY4fT.js → wt-tabs-BFshmhdU.js} +1 -1
  48. package/dist/{wt-tags-input-CRImYcfm.js → wt-tags-input-DpbWEd4D.js} +2 -2
  49. package/dist/{wt-timepicker-gTRPVO-C.js → wt-timepicker-B7zqxTy-.js} +1 -1
  50. package/dist/{wt-tree-DzkJKfvR.js → wt-tree-B0Q5FzLQ.js} +2 -2
  51. package/dist/{wt-tree-table-DT74gPqB.js → wt-tree-table-k3Bchetx.js} +1 -1
  52. package/dist/{wt-type-extension-value-input-CSabKSkq.js → wt-type-extension-value-input-BGMBxpWA.js} +2 -2
  53. package/dist/{wt-vidstack-player-DusOo_yS.js → wt-vidstack-player-JXqjTkTY.js} +9 -9
  54. package/package.json +3 -3
  55. package/src/assets/icons/sprite/index.ts +4 -0
  56. package/src/assets/icons/sprite/violation--filled.svg +3 -0
  57. package/src/assets/icons/sprite/violation.svg +5 -0
  58. package/src/locale/en/en.js +2 -0
  59. package/src/locale/es/es.js +2 -0
  60. package/src/locale/kz/kz.js +2 -0
  61. package/src/locale/pl/pl.js +2 -0
  62. package/src/locale/ro/ro.js +2 -0
  63. package/src/locale/ru/ru.js +2 -0
  64. package/src/locale/uk/uk.js +2 -0
  65. package/src/locale/uz/uz.js +2 -0
  66. package/src/locale/vi/vi.js +2 -0
  67. package/src/modules/AuditForm/components/audit-form-question-read-wrapper.vue +45 -15
  68. package/src/modules/AuditForm/components/audit-form-question-write-wrapper.vue +42 -15
  69. package/src/modules/AuditForm/components/audit-form-question.vue +4 -1
  70. package/src/modules/AuditForm/components/audit-form.vue +5 -2
  71. package/src/modules/AuditForm/components/form-answers/answer-editing-info/audit-form-answer-editing-info.vue +1 -1
  72. package/src/modules/AuditForm/components/form-questions/options/audit-form-question-options.vue +5 -2
  73. package/src/modules/AuditForm/components/form-questions/score/audit-form-question-score.vue +4 -1
  74. package/src/modules/AuditForm/components/form-questions/yes/audit-form-question-yes.vue +61 -0
  75. package/src/modules/AuditForm/schemas/AuditFormQuestionOptionsSchema.ts +17 -0
  76. package/src/modules/AuditForm/schemas/AuditFormQuestionSchema.ts +12 -0
  77. package/src/modules/AuditForm/schemas/AuditFormQuestionScoreSchema.ts +8 -0
  78. package/src/modules/AuditForm/schemas/AuditFormQuestionYesSchema.ts +7 -0
  79. package/src/modules/FilesExport/{v2/composables → composables}/useFilesExport.ts +20 -4
  80. package/src/modules/FilesExport/{v2/index.ts → index.ts} +1 -0
  81. package/src/modules/FilesExport/{v2/types → types}/types.ts +2 -1
  82. package/types/locale/en/en.d.ts +2 -0
  83. package/types/locale/es/es.d.ts +3 -0
  84. package/types/locale/i18n.d.ts +18 -0
  85. package/types/locale/index.d.ts +18 -0
  86. package/types/locale/kz/kz.d.ts +3 -0
  87. package/types/locale/pl/pl.d.ts +3 -0
  88. package/types/locale/ro/ro.d.ts +3 -0
  89. package/types/locale/ru/ru.d.ts +3 -0
  90. package/types/locale/uk/uk.d.ts +3 -0
  91. package/types/locale/uz/uz.d.ts +3 -0
  92. package/types/locale/vi/vi.d.ts +3 -0
  93. package/types/modules/AuditForm/components/audit-form-question-read-wrapper.vue.d.ts +1 -1
  94. package/types/modules/AuditForm/components/audit-form-question-write-wrapper.vue.d.ts +1 -1
  95. package/types/modules/AuditForm/components/audit-form-question.vue.d.ts +1 -1
  96. package/types/modules/AuditForm/components/audit-form.vue.d.ts +1 -1
  97. package/types/modules/AuditForm/components/form-answers/answer-editing-info/audit-form-answer-editing-info.vue.d.ts +1 -1
  98. package/types/modules/AuditForm/components/form-questions/options/audit-form-question-options.vue.d.ts +1 -1
  99. package/types/modules/AuditForm/components/form-questions/score/audit-form-question-score.vue.d.ts +1 -1
  100. package/types/modules/AuditForm/components/form-questions/yes/audit-form-question-yes.vue.d.ts +18 -0
  101. package/types/modules/AuditForm/schemas/AuditFormQuestionOptionsSchema.d.ts +3 -12
  102. package/types/modules/AuditForm/schemas/AuditFormQuestionSchema.d.ts +3 -8
  103. package/types/modules/AuditForm/schemas/AuditFormQuestionScoreSchema.d.ts +2 -6
  104. package/types/modules/AuditForm/schemas/AuditFormQuestionYesSchema.d.ts +2 -0
  105. package/types/modules/FilesExport/{v2/composables → composables}/useFilesExport.d.ts +1 -1
  106. package/types/modules/FilesExport/{v2/index.d.ts → index.d.ts} +1 -0
  107. package/types/modules/FilesExport/{v2/types → types}/types.d.ts +2 -1
  108. package/src/modules/AuditForm/schemas/AuditFormQuestionOptionsSchema.js +0 -13
  109. package/src/modules/AuditForm/schemas/AuditFormQuestionSchema.js +0 -8
  110. package/src/modules/AuditForm/schemas/AuditFormQuestionScoreSchema.js +0 -8
  111. package/src/modules/FilesExport/FilesExport.js +0 -164
  112. package/src/modules/FilesExport/__tests__/FilesExport.spec.js +0 -113
  113. package/src/modules/FilesExport/mixins/exportFilesMixin.js +0 -71
  114. package/types/modules/FilesExport/FilesExport.d.ts +0 -31
  115. package/types/modules/FilesExport/__tests__/FilesExport.spec.d.ts +0 -1
  116. package/types/modules/FilesExport/mixins/exportFilesMixin.d.ts +0 -16
  117. /package/src/modules/FilesExport/{v2/utils → utils}/utils.ts +0 -0
  118. /package/types/modules/FilesExport/{v2/utils → utils}/utils.d.ts +0 -0
@@ -39,6 +39,10 @@
39
39
 
40
40
  <script lang="ts" setup>
41
41
  import { useVuelidate } from '@vuelidate/core';
42
+ import type {
43
+ EngineQuestion,
44
+ EngineQuestionAnswer,
45
+ } from '@webitel/api-services/gen/models';
42
46
  import cloneDeep from 'lodash/cloneDeep.js';
43
47
  import {
44
48
  computed,
@@ -50,11 +54,10 @@ import {
50
54
  useTemplateRef,
51
55
  watch,
52
56
  } from 'vue';
53
- import type { EngineQuestion, EngineQuestionAnswer } from 'webitel-sdk';
54
57
 
55
58
  import { WtTextarea } from '../../../components';
56
59
  import { useDestroyableSortable } from '../../../composables/useDestroyableSortable/useDestroyableSortable.js';
57
- import { generateQuestionSchema } from '../schemas/AuditFormQuestionSchema.js';
60
+ import { generateQuestionSchema } from '../schemas/AuditFormQuestionSchema';
58
61
  import AuditFormQuestion from './audit-form-question.vue';
59
62
  import AuditFormFooter from './form/form-footer/audit-form-footer.vue';
60
63
 
@@ -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<{
@@ -39,11 +39,14 @@
39
39
  </template>
40
40
 
41
41
  <script lang="ts" setup>
42
- import type { EngineQuestion, EngineQuestionAnswer } from 'webitel-sdk';
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.js';
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
+ });
@@ -1,7 +1,12 @@
1
1
  import JSZip from 'jszip';
2
2
  import { ref } from 'vue';
3
- import { _wtUiLog } from '../../../../scripts/logger';
4
- import { UseFilesExportOptions, UseFilesExportReturn } from '../types/types';
3
+
4
+ import { _wtUiLog } from '../../../scripts/logger';
5
+ import {
6
+ ExportedItem,
7
+ UseFilesExportOptions,
8
+ UseFilesExportReturn,
9
+ } from '../types/types';
5
10
  import { fetchFileBinary, handleMimeType, saveZip } from '../utils/utils';
6
11
 
7
12
  export const useFilesExportProgress = () => {
@@ -56,6 +61,7 @@ export const useFilesExportProgress = () => {
56
61
 
57
62
  export const useFilesExport = ({
58
63
  getFileURL,
64
+ getFileBlob,
59
65
  fetch,
60
66
  filename,
61
67
  skipFilesWithError,
@@ -70,6 +76,16 @@ export const useFilesExport = ({
70
76
  reset: resetProgress,
71
77
  } = useFilesExportProgress();
72
78
 
79
+ const getFile = async (item: ExportedItem) => {
80
+ if (getFileURL) {
81
+ return fetchFileBinary(getFileURL(item));
82
+ }
83
+ if (getFileBlob) {
84
+ return getFileBlob(item);
85
+ }
86
+ throw new Error('getFileURL or getFileBlob is required');
87
+ };
88
+
73
89
  const fillZip = async (zip: JSZip) => {
74
90
  let page = 1;
75
91
  let hasNext = true;
@@ -80,9 +96,9 @@ export const useFilesExport = ({
80
96
  });
81
97
  for (const item of items) {
82
98
  try {
83
- const binary = await fetchFileBinary(getFileURL(item));
99
+ const file = await getFile(item);
84
100
  const itemFilename = handleMimeType(item);
85
- zip.file(itemFilename, binary);
101
+ zip.file(itemFilename, file);
86
102
  updateDownloadStatus(downloadStatus.value.count + 1);
87
103
  } catch (err) {
88
104
  _wtUiLog.warn({
@@ -1 +1,2 @@
1
1
  export { useFilesExport } from './composables/useFilesExport';
2
+ export type { ExportedItem } from './types/types';
@@ -6,7 +6,8 @@ export type ExportedItem = {
6
6
  } & Record<string, unknown>;
7
7
 
8
8
  export type UseFilesExportOptions = {
9
- getFileURL: (item: ExportedItem) => string;
9
+ getFileURL?: (item: ExportedItem) => string;
10
+ getFileBlob?: (item: ExportedItem) => Promise<Blob>;
10
11
  fetch: ({ page, size }: { page: number; size?: number }) => Promise<{
11
12
  items: ExportedItem[];
12
13
  next: boolean;
@@ -541,7 +541,9 @@ declare const _default: {
541
541
  type: {
542
542
  options: string;
543
543
  score: string;
544
+ yes: string;
544
545
  };
546
+ criticalViolation: string;
545
547
  clearSelection: string;
546
548
  };
547
549
  deleteConfirmationPopup: {
@@ -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 {
@@ -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: {
@@ -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: {
@@ -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 {
@@ -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 {
@@ -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 {
@@ -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 {
@@ -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 {
@@ -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 {
@@ -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 {
@@ -1,4 +1,4 @@
1
- import { type EngineQuestion, type EngineQuestionAnswer } from 'webitel-sdk';
1
+ import type { EngineQuestion, EngineQuestionAnswer } from '@webitel/api-services/gen/models';
2
2
  type __VLS_Props = {
3
3
  question: EngineQuestion;
4
4
  disableDragging?: boolean;
@@ -1,4 +1,4 @@
1
- import { type EngineQuestion } from 'webitel-sdk';
1
+ import type { EngineQuestion } from '@webitel/api-services/gen/models';
2
2
  declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
3
3
  first: {
4
4
  type: BooleanConstructor;
@@ -1,4 +1,4 @@
1
- import type { EngineQuestion, EngineQuestionAnswer } from 'webitel-sdk';
1
+ import type { EngineQuestion, EngineQuestionAnswer } from '@webitel/api-services/gen/models';
2
2
  type __VLS_Props = {
3
3
  first?: boolean;
4
4
  };
@@ -1,4 +1,4 @@
1
- import type { EngineQuestion, EngineQuestionAnswer } from 'webitel-sdk';
1
+ import type { EngineQuestion, EngineQuestionAnswer } from '@webitel/api-services/gen/models';
2
2
  declare const AuditFormMode: {
3
3
  readonly Create: "create";
4
4
  readonly Fill: "fill";
@@ -1,4 +1,4 @@
1
- import type { EngineQuestionAnswer } from 'webitel-sdk';
1
+ import type { EngineQuestionAnswer } from '@webitel/api-services/gen/models';
2
2
  type __VLS_Props = {
3
3
  answer: EngineQuestionAnswer;
4
4
  collapsible?: boolean;
@@ -1,4 +1,4 @@
1
- import type { EngineQuestion, EngineQuestionAnswer } from 'webitel-sdk';
1
+ import type { EngineQuestion, EngineQuestionAnswer } from '@webitel/api-services/gen/models';
2
2
  type __VLS_Props = {
3
3
  /**
4
4
  * question mode, NOT audit form mode
@@ -1,4 +1,4 @@
1
- import type { EngineQuestion, EngineQuestionAnswer } from 'webitel-sdk';
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;
@@ -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
- export function generateOption(): {
2
- name: string;
3
- score: number;
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
- export function generateQuestionSchema({ required }?: {
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
- export function generateQuestionScoreSchema(): {
2
- type: EngineAuditQuestionType;
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>;
@@ -0,0 +1,2 @@
1
+ import type { EngineQuestion } from '@webitel/api-services/gen/models';
2
+ export declare const generateQuestionYesSchema: () => Partial<EngineQuestion>;