@webitel/ui-sdk 26.2.98 → 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.
Files changed (106) hide show
  1. package/dist/{index-sqohw3QE.js → index-BDbIb0Wx.js} +1 -1
  2. package/dist/{index-CIE2QeHL.js → index-DMNVRM8G.js} +1 -1
  3. package/dist/{install-BBw_I2Du.js → install-BLg9stRY.js} +2796 -2784
  4. package/dist/{isObject-B3N5WXLK.js → isObject-CY0WNjjb.js} +1 -1
  5. package/dist/ui-sdk.css +1 -1
  6. package/dist/ui-sdk.js +1 -1
  7. package/dist/ui-sdk.umd.cjs +80 -72
  8. package/dist/{vidstack-Bq6c3Bam-CuAohe08.js → vidstack-Bq6c3Bam-2NkVhSmW.js} +2 -2
  9. package/dist/{vidstack-D2pY00kU-B6IWbukl.js → vidstack-D2pY00kU-CtXuBxWV.js} +2 -2
  10. package/dist/{vidstack-DDXt6fpN-BhVYt4Rg.js → vidstack-DDXt6fpN-CL5Dvcz7.js} +1 -1
  11. package/dist/{vidstack-D_-9AA6_-Daskar-l.js → vidstack-D_-9AA6_-Dana1Lpy.js} +1 -1
  12. package/dist/{vidstack-DqAw8m9J-CSrJn_66.js → vidstack-DqAw8m9J-BK43_AQm.js} +1 -1
  13. package/dist/{vidstack-audio-BgeHEzdz.js → vidstack-audio-DWO2584P.js} +2 -2
  14. package/dist/{vidstack-dash-DBsPxYc-.js → vidstack-dash-DTrG0grK.js} +3 -3
  15. package/dist/{vidstack-google-cast-bKcGwpxx.js → vidstack-google-cast-sGI32dX8.js} +3 -3
  16. package/dist/{vidstack-hls-Dm2UFXOA.js → vidstack-hls-DQ3qShXJ.js} +3 -3
  17. package/dist/{vidstack-video-DrU7yf_f.js → vidstack-video-D89eBrqN.js} +2 -2
  18. package/dist/{vidstack-vimeo-RYLf6vXe.js → vidstack-vimeo-Ct9L3lAl.js} +3 -3
  19. package/dist/{vidstack-youtube-CK4qcn0H.js → vidstack-youtube-DnbgfwSU.js} +2 -2
  20. package/dist/{wt-action-bar-BdqZMtIl.js → wt-action-bar-CTdZSsv7.js} +1 -1
  21. package/dist/{wt-button-select-C2-h6AzY.js → wt-button-select-BvmOCtWx.js} +1 -1
  22. package/dist/{wt-chat-emoji-BGm2HZ5P.js → wt-chat-emoji-WgPCVYVS.js} +2 -2
  23. package/dist/{wt-confirm-dialog-DTy9gpuQ.js → wt-confirm-dialog-La-YeMFe.js} +1 -1
  24. package/dist/{wt-context-menu-DTRKXXEW.js → wt-context-menu-C9hJexue.js} +1 -1
  25. package/dist/{wt-copy-action-jl-iK3QF.js → wt-copy-action-BL4xgL3O.js} +1 -1
  26. package/dist/{wt-datepicker--K8SqQCm.js → wt-datepicker-DtPn45q_.js} +1 -1
  27. package/dist/{wt-display-chip-items-BzgGUUs2.js → wt-display-chip-items-DA6Gd4Hv.js} +1 -1
  28. package/dist/{wt-dual-panel-CGqjUiAJ.js → wt-dual-panel-3SD881nb.js} +1 -1
  29. package/dist/{wt-dummy-4oiqiq8H.js → wt-dummy-e8HAushu.js} +1 -1
  30. package/dist/{wt-error-page-DVzFWk_q.js → wt-error-page-C6tsGyC_.js} +1 -1
  31. package/dist/{wt-expansion-card-Bvoy-Ecw.js → wt-expansion-card-D_ABmSPP.js} +1 -1
  32. package/dist/{wt-expansion-panel-DvrfSCj-.js → wt-expansion-panel-eVLpkoIY.js} +1 -1
  33. package/dist/{wt-filters-panel-wrapper-sDTSMZDB.js → wt-filters-panel-wrapper-DeEJMGrK.js} +1 -1
  34. package/dist/{wt-galleria-BlDeFTsw.js → wt-galleria-BNdh_lt0.js} +1 -1
  35. package/dist/{wt-navigation-menu-BDcuHyxd.js → wt-navigation-menu-BOMeihtV.js} +1 -1
  36. package/dist/{wt-notifications-bar-Csa5dvDC.js → wt-notifications-bar-BpPBEdt6.js} +2 -2
  37. package/dist/{wt-page-header-ByBsfiyu.js → wt-page-header-BgcZ_Rcv.js} +1 -1
  38. package/dist/{wt-pagination-C-p6SXsh.js → wt-pagination-DG4P_LiA.js} +1 -1
  39. package/dist/{wt-player-CkGDvuZH.js → wt-player-g8VNgPag.js} +1 -1
  40. package/dist/{wt-search-bar-BC5aVq8q.js → wt-search-bar-DLG08mDV.js} +1 -1
  41. package/dist/{wt-selection-popup-CioPEz5j.js → wt-selection-popup-CSy9je5D.js} +1 -1
  42. package/dist/{wt-start-page-BEICkEsF.js → wt-start-page-DqaU6Ht9.js} +1 -1
  43. package/dist/{wt-status-select-C_qnaYpz.js → wt-status-select-BxzMR9nZ.js} +1 -1
  44. package/dist/{wt-stepper-CL8ovzwC.js → wt-stepper-DZxBNQcf.js} +1 -1
  45. package/dist/{wt-table-CzN3AkBx.js → wt-table-C5keIxBl.js} +1 -1
  46. package/dist/{wt-table-actions-HbCwwdUG.js → wt-table-actions-ZNHYabhN.js} +1 -1
  47. package/dist/{wt-table-column-select-DwYGmWHL.js → wt-table-column-select-Bac8EQ9f.js} +2 -2
  48. package/dist/{wt-tabs-wE82XKh0.js → wt-tabs-BFshmhdU.js} +1 -1
  49. package/dist/{wt-tags-input-HC6QGKW6.js → wt-tags-input-DpbWEd4D.js} +2 -2
  50. package/dist/{wt-timepicker-MUKkxRJM.js → wt-timepicker-B7zqxTy-.js} +1 -1
  51. package/dist/{wt-tree-CuLUbiWR.js → wt-tree-B0Q5FzLQ.js} +2 -2
  52. package/dist/{wt-tree-table-CYqQ97mq.js → wt-tree-table-k3Bchetx.js} +1 -1
  53. package/dist/{wt-type-extension-value-input-WXk9cxF0.js → wt-type-extension-value-input-BGMBxpWA.js} +2 -2
  54. package/dist/{wt-vidstack-player-iKA_300w.js → wt-vidstack-player-JXqjTkTY.js} +9 -9
  55. package/package.json +1 -1
  56. package/src/assets/icons/sprite/index.ts +4 -0
  57. package/src/assets/icons/sprite/violation--filled.svg +3 -0
  58. package/src/assets/icons/sprite/violation.svg +5 -0
  59. package/src/components/wt-avatar/wt-avatar.vue +9 -1
  60. package/src/locale/en/en.js +2 -0
  61. package/src/locale/es/es.js +2 -0
  62. package/src/locale/kz/kz.js +2 -0
  63. package/src/locale/pl/pl.js +2 -0
  64. package/src/locale/ro/ro.js +2 -0
  65. package/src/locale/ru/ru.js +2 -0
  66. package/src/locale/uk/uk.js +2 -0
  67. package/src/locale/uz/uz.js +2 -0
  68. package/src/locale/vi/vi.js +2 -0
  69. package/src/modules/AuditForm/components/audit-form-question-read-wrapper.vue +45 -15
  70. package/src/modules/AuditForm/components/audit-form-question-write-wrapper.vue +42 -15
  71. package/src/modules/AuditForm/components/audit-form-question.vue +4 -1
  72. package/src/modules/AuditForm/components/audit-form.vue +5 -2
  73. package/src/modules/AuditForm/components/form-answers/answer-editing-info/audit-form-answer-editing-info.vue +1 -1
  74. package/src/modules/AuditForm/components/form-questions/options/audit-form-question-options.vue +5 -2
  75. package/src/modules/AuditForm/components/form-questions/score/audit-form-question-score.vue +4 -1
  76. package/src/modules/AuditForm/components/form-questions/yes/audit-form-question-yes.vue +61 -0
  77. package/src/modules/AuditForm/schemas/AuditFormQuestionOptionsSchema.ts +17 -0
  78. package/src/modules/AuditForm/schemas/AuditFormQuestionSchema.ts +12 -0
  79. package/src/modules/AuditForm/schemas/AuditFormQuestionScoreSchema.ts +8 -0
  80. package/src/modules/AuditForm/schemas/AuditFormQuestionYesSchema.ts +7 -0
  81. package/types/locale/en/en.d.ts +2 -0
  82. package/types/locale/es/es.d.ts +3 -0
  83. package/types/locale/i18n.d.ts +18 -0
  84. package/types/locale/index.d.ts +18 -0
  85. package/types/locale/kz/kz.d.ts +3 -0
  86. package/types/locale/pl/pl.d.ts +3 -0
  87. package/types/locale/ro/ro.d.ts +3 -0
  88. package/types/locale/ru/ru.d.ts +3 -0
  89. package/types/locale/uk/uk.d.ts +3 -0
  90. package/types/locale/uz/uz.d.ts +3 -0
  91. package/types/locale/vi/vi.d.ts +3 -0
  92. package/types/modules/AuditForm/components/audit-form-question-read-wrapper.vue.d.ts +1 -1
  93. package/types/modules/AuditForm/components/audit-form-question-write-wrapper.vue.d.ts +1 -1
  94. package/types/modules/AuditForm/components/audit-form-question.vue.d.ts +1 -1
  95. package/types/modules/AuditForm/components/audit-form.vue.d.ts +1 -1
  96. package/types/modules/AuditForm/components/form-answers/answer-editing-info/audit-form-answer-editing-info.vue.d.ts +1 -1
  97. package/types/modules/AuditForm/components/form-questions/options/audit-form-question-options.vue.d.ts +1 -1
  98. package/types/modules/AuditForm/components/form-questions/score/audit-form-question-score.vue.d.ts +1 -1
  99. package/types/modules/AuditForm/components/form-questions/yes/audit-form-question-yes.vue.d.ts +18 -0
  100. package/types/modules/AuditForm/schemas/AuditFormQuestionOptionsSchema.d.ts +3 -12
  101. package/types/modules/AuditForm/schemas/AuditFormQuestionSchema.d.ts +3 -8
  102. package/types/modules/AuditForm/schemas/AuditFormQuestionScoreSchema.d.ts +2 -6
  103. package/types/modules/AuditForm/schemas/AuditFormQuestionYesSchema.d.ts +2 -0
  104. package/src/modules/AuditForm/schemas/AuditFormQuestionOptionsSchema.js +0 -13
  105. package/src/modules/AuditForm/schemas/AuditFormQuestionSchema.js +0 -8
  106. package/src/modules/AuditForm/schemas/AuditFormQuestionScoreSchema.js +0 -8
@@ -1,5 +1,5 @@
1
1
  import { computed as f, resolveComponent as r, createBlock as i, openBlock as l, withCtx as a, renderSlot as n, createCommentVNode as c, createVNode as p, createTextVNode as s, toDisplayString as u } from "vue";
2
- import { _ as b } from "./install-BBw_I2Du.js";
2
+ import { _ as b } from "./install-BLg9stRY.js";
3
3
  const h = {
4
4
  __name: "wt-page-header",
5
5
  props: {
@@ -1,4 +1,4 @@
1
- import { _ as p, D as _ } from "./install-BBw_I2Du.js";
1
+ import { _ as p, D as _ } from "./install-BLg9stRY.js";
2
2
  import { resolveComponent as c, resolveDirective as u, createElementBlock as g, openBlock as h, createElementVNode as o, createVNode as a, toDisplayString as m, withDirectives as d } from "vue";
3
3
  const f = {
4
4
  name: "WtPagination",
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as y, computed as m, watch as r, onMounted as w, createElementBlock as v, openBlock as B, normalizeClass as g, createElementVNode as s, createVNode as o } from "vue";
2
- import { E as e, _ as x } from "./install-BBw_I2Du.js";
2
+ import { E as e, _ as x } from "./install-BLg9stRY.js";
3
3
  const V = ["src", "loop", "autoplay"], _ = ["controls", "download"], b = /* @__PURE__ */ y({
4
4
  __name: "wt-player",
5
5
  props: {
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as O, toRefs as $, computed as y, resolveComponent as o, resolveDirective as A, createBlock as l, openBlock as s, unref as h, createSlots as E, withCtx as n, createVNode as p, createElementVNode as U, createCommentVNode as m, renderSlot as j, createTextVNode as K, toDisplayString as z, withDirectives as H } from "vue";
2
- import { z as P, D as R, _ as T } from "./install-BBw_I2Du.js";
2
+ import { z as P, D as R, _ as T } from "./install-BLg9stRY.js";
3
3
  const q = { class: "wt-search-bar__icon-controls" }, F = /* @__PURE__ */ O({
4
4
  __name: "wt-search-bar",
5
5
  props: {
@@ -1,5 +1,5 @@
1
1
  import { resolveComponent as i, resolveDirective as $, createBlock as r, openBlock as t, mergeProps as x, withCtx as c, createVNode as f, createTextVNode as a, toDisplayString as s, unref as w, createElementVNode as h, renderSlot as k, createElementBlock as d, Fragment as z, renderList as D, normalizeClass as E, createCommentVNode as p, withDirectives as I } from "vue";
2
- import { _ as O, B as P } from "./install-BBw_I2Du.js";
2
+ import { _ as O, B as P } from "./install-BLg9stRY.js";
3
3
  const j = { class: "wt-selection-popup__options" }, A = ["onClick"], F = { class: "wt-selection-popup__item-header typo-subtitle-2" }, L = {
4
4
  key: 1,
5
5
  class: "popup-options__item-text"
@@ -1,5 +1,5 @@
1
1
  import { inject as y, resolveComponent as _, createElementBlock as d, openBlock as a, createElementVNode as o, createBlock as u, createCommentVNode as h, createTextVNode as g, toDisplayString as l, createVNode as N, withCtx as f, defineComponent as w, computed as m, Fragment as E, renderList as k } from "vue";
2
- import { L as n, _ as p } from "./install-BBw_I2Du.js";
2
+ import { L as n, _ as p } from "./install-BLg9stRY.js";
3
3
  n.env.NODE_ENV;
4
4
  n.env.NODE_ENV;
5
5
  n.env.NODE_ENV;
@@ -1,5 +1,5 @@
1
1
  import { resolveComponent as u, createBlock as d, openBlock as f, withCtx as c, createVNode as i } from "vue";
2
- import { _ as h } from "./install-BBw_I2Du.js";
2
+ import { _ as h } from "./install-BLg9stRY.js";
3
3
  const s = Object.freeze({
4
4
  ONLINE: "online",
5
5
  PAUSE: "pause",
@@ -1,5 +1,5 @@
1
1
  import { computed as i, resolveComponent as w, createElementBlock as s, openBlock as p, createElementVNode as r, renderSlot as n, Fragment as h, renderList as f, createCommentVNode as y, createVNode as S, normalizeClass as C, withCtx as N, createTextVNode as V, toDisplayString as d } from "vue";
2
- import { _ as k } from "./install-BBw_I2Du.js";
2
+ import { _ as k } from "./install-BLg9stRY.js";
3
3
  const x = { class: "wt-stepper" }, b = { class: "wt-stepper-header" }, g = { class: "wt-stepper-steps" }, B = { class: "wt-stepper-steps__wrapper" }, E = { class: "wt-stepper-description" }, $ = {
4
4
  __name: "wt-stepper",
5
5
  props: {
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as ee, useSlots as te, useTemplateRef as oe, ref as H, computed as _, onMounted as le, onUnmounted as ae, resolveComponent as L, resolveDirective as re, createBlock as f, openBlock as c, createSlots as W, withCtx as i, createCommentVNode as b, createElementBlock as U, createVNode as q, withModifiers as ne, Fragment as se, renderList as de, createElementVNode as $, normalizeStyle as ie, renderSlot as h, createTextVNode as K, toDisplayString as V, withDirectives as ce, nextTick as ue } from "vue";
2
- import { B as pe, _ as fe } from "./install-BBw_I2Du.js";
2
+ import { B as pe, _ as fe } from "./install-BLg9stRY.js";
3
3
  import { g as me } from "./sortQueryAdapters-M9bNEM3P.js";
4
4
  const ye = (r, C) => {
5
5
  let o = null, p = null, w = null, d = !1;
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as C, computed as l, resolveComponent as p, resolveDirective as g, createElementBlock as S, openBlock as n, renderSlot as y, withDirectives as r, createCommentVNode as u, createVNode as A, createBlock as a, withCtx as B, normalizeClass as I } from "vue";
2
- import { _ as O } from "./install-BBw_I2Du.js";
2
+ import { _ as O } from "./install-BLg9stRY.js";
3
3
  const R = { class: "wt-table-actions" }, U = /* @__PURE__ */ C({
4
4
  __name: "wt-table-actions",
5
5
  props: {
@@ -1,6 +1,6 @@
1
- import { d as C } from "./index-CIE2QeHL.js";
1
+ import { d as C } from "./index-DMNVRM8G.js";
2
2
  import { resolveComponent as a, resolveDirective as g, createElementBlock as c, openBlock as r, withDirectives as v, createVNode as s, withCtx as n, createTextVNode as i, toDisplayString as p, createElementVNode as h, normalizeClass as S, Fragment as k, renderList as D, withModifiers as y } from "vue";
3
- import { _ as P } from "./install-BBw_I2Du.js";
3
+ import { _ as P } from "./install-BLg9stRY.js";
4
4
  const H = {
5
5
  name: "WtTableColumnSelect",
6
6
  model: {
@@ -1,5 +1,5 @@
1
1
  import { createElementBlock as n, openBlock as r, normalizeClass as o, createElementVNode as a, Fragment as c, renderList as d, renderSlot as f, normalizeProps as h, guardReactiveProps as u, toDisplayString as v, normalizeStyle as m } from "vue";
2
- import { _ as p } from "./install-BBw_I2Du.js";
2
+ import { _ as p } from "./install-BLg9stRY.js";
3
3
  const _ = {
4
4
  name: "WtTabs",
5
5
  model: {
@@ -1,5 +1,5 @@
1
- import { d as O } from "./index-sqohw3QE.js";
2
- import { F as h, _ as E, C as S, M as z, G as A, H as B } from "./install-BBw_I2Du.js";
1
+ import { d as O } from "./index-BDbIb0Wx.js";
2
+ import { F as h, _ as E, C as S, M as z, G as A, H as B } from "./install-BLg9stRY.js";
3
3
  import { resolveComponent as n, resolveDirective as R, createElementBlock as I, openBlock as v, normalizeClass as P, createBlock as p, createCommentVNode as c, createVNode as o, mergeProps as g, withCtx as a, renderSlot as b, normalizeProps as f, guardReactiveProps as $, createTextVNode as d, toDisplayString as r, toHandlers as j, createSlots as q, withDirectives as V, createElementVNode as w, vShow as H, withModifiers as N } from "vue";
4
4
  const D = {
5
5
  props: {
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as q, toRefs as R, computed as o, resolveComponent as w, createElementBlock as O, openBlock as d, normalizeClass as j, unref as t, createBlock as r, createCommentVNode as m, createElementVNode as A, mergeProps as F, withCtx as x, renderSlot as G, normalizeProps as J, guardReactiveProps as K, createTextVNode as S, toDisplayString as y, nextTick as Q } from "vue";
2
- import { B as W, z as X, C as Y, M as Z, _ as ee } from "./install-BBw_I2Du.js";
2
+ import { B as W, z as X, C as Y, M as Z, _ as ee } from "./install-BLg9stRY.js";
3
3
  const le = { class: "wt-timepicker__wrapper" }, c = 3600, M = 60, ae = /* @__PURE__ */ q({
4
4
  __name: "wt-timepicker",
5
5
  props: {
@@ -1,6 +1,6 @@
1
1
  import { defineComponent as z, computed as L, ref as J, onMounted as K, watch as Q, resolveComponent as I, createElementBlock as v, openBlock as i, Fragment as x, createElementVNode as D, withDirectives as X, renderSlot as T, createBlock as w, createCommentVNode as b, renderList as A, normalizeClass as M, toDisplayString as O, createVNode as Y, withCtx as W, createSlots as U, normalizeProps as q, guardReactiveProps as F, vShow as Z, unref as N } from "vue";
2
- import { d as P } from "./index-sqohw3QE.js";
3
- import { W as _, _ as R } from "./install-BBw_I2Du.js";
2
+ import { d as P } from "./index-BDbIb0Wx.js";
3
+ import { W as _, _ as R } from "./install-BLg9stRY.js";
4
4
  const ee = { class: "wt-tree-line" }, te = { class: "wt-tree-line__icon-wrapper" }, ae = { class: "wt-tree-line__label typo-body-1" }, le = /* @__PURE__ */ z({
5
5
  __name: "wt-tree-line",
6
6
  props: {
@@ -1,5 +1,5 @@
1
1
  import { computed as C, unref as B, defineComponent as z, ref as O, onMounted as D, resolveComponent as L, createElementBlock as d, openBlock as l, Fragment as $, createElementVNode as u, createCommentVNode as b, normalizeClass as T, renderList as m, renderSlot as p, createBlock as x, createTextVNode as U, toDisplayString as H, createSlots as W, withCtx as I, toRef as F, normalizeStyle as j, withModifiers as q, createVNode as G } from "vue";
2
- import { B as J, O as R, P as Q, _ as M } from "./install-BBw_I2Du.js";
2
+ import { B as J, O as R, P as Q, _ as M } from "./install-BLg9stRY.js";
3
3
  import { g as X } from "./sortQueryAdapters-M9bNEM3P.js";
4
4
  const Y = ({ headers: e }) => {
5
5
  const { t: y } = J();
@@ -1,6 +1,6 @@
1
1
  import { defineComponent as Ae, mergeModels as Te, useModel as De, computed as _, resolveComponent as J, createBlock as Z, renderSlot as N, createCommentVNode as we, unref as w, openBlock as ee, mergeProps as x, createVNode as P } from "vue";
2
- import { ae as ve, af as Oe, N as qe, ag as ke, ah as Ee, B as Se, ai as Ce, aj as te, ak as _e } from "./install-BBw_I2Du.js";
3
- import { d as xe } from "./index-CIE2QeHL.js";
2
+ import { ae as ve, af as Oe, N as qe, ag as ke, ah as Ee, B as Se, ai as Ce, aj as te, ak as _e } from "./install-BLg9stRY.js";
3
+ import { d as xe } from "./index-DMNVRM8G.js";
4
4
  import { get as Ue, set as Le } from "lodash-es";
5
5
  import "@aliasedDeps/api-services/axios";
6
6
  import * as e from "zod";
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as qe, createElementBlock as Ie, openBlock as gt, createVNode as ie, useTemplateRef as ha, inject as nn, onMounted as ca, onBeforeUnmount as ua, normalizeClass as Xs, unref as Js, createElementVNode as yt, createBlock as is, createCommentVNode as ve, toDisplayString as da, renderSlot as os, ref as Ci, provide as pa, computed as Pi, withCtx as xi } from "vue";
2
- import { R as fa, S as ma, T as ga, U as ya, P as Ce, _ as Oe, V as ba, C as at } from "./install-BBw_I2Du.js";
2
+ import { R as fa, S as ma, T as ga, U as ya, P as Ce, _ as Oe, V as ba, C as at } from "./install-BLg9stRY.js";
3
3
  const dt = /* @__PURE__ */ Symbol(0);
4
4
  let ls = !1, Fs = !1, ot = null, ee = null, et = null, X = 0, te = [], Zs = {};
5
5
  const $a = () => {
@@ -3263,7 +3263,7 @@ class To {
3263
3263
  return "audio";
3264
3264
  }
3265
3265
  async load(t) {
3266
- return new (await import("./vidstack-audio-BgeHEzdz.js")).AudioProvider(this.target, t);
3266
+ return new (await import("./vidstack-audio-DWO2584P.js")).AudioProvider(this.target, t);
3267
3267
  }
3268
3268
  }
3269
3269
  class di {
@@ -3276,7 +3276,7 @@ class di {
3276
3276
  return "video";
3277
3277
  }
3278
3278
  async load(t) {
3279
- return new (await import("./vidstack-video-DrU7yf_f.js")).VideoProvider(this.target, t);
3279
+ return new (await import("./vidstack-video-D89eBrqN.js")).VideoProvider(this.target, t);
3280
3280
  }
3281
3281
  }
3282
3282
  class pi extends di {
@@ -3286,7 +3286,7 @@ class pi extends di {
3286
3286
  return pi.supported && De(t);
3287
3287
  }
3288
3288
  async load(t) {
3289
- return new (await import("./vidstack-hls-Dm2UFXOA.js")).HLSProvider(this.target, t);
3289
+ return new (await import("./vidstack-hls-DQ3qShXJ.js")).HLSProvider(this.target, t);
3290
3290
  }
3291
3291
  }
3292
3292
  class fi extends di {
@@ -3296,7 +3296,7 @@ class fi extends di {
3296
3296
  return fi.supported && li(t);
3297
3297
  }
3298
3298
  async load(t) {
3299
- return new (await import("./vidstack-dash-DBsPxYc-.js")).DASHProvider(this.target, t);
3299
+ return new (await import("./vidstack-dash-DTrG0grK.js")).DASHProvider(this.target, t);
3300
3300
  }
3301
3301
  }
3302
3302
  class So {
@@ -3318,7 +3318,7 @@ class So {
3318
3318
  return "video";
3319
3319
  }
3320
3320
  async load(t) {
3321
- return new (await import("./vidstack-vimeo-RYLf6vXe.js")).VimeoProvider(this.target, t);
3321
+ return new (await import("./vidstack-vimeo-Ct9L3lAl.js")).VimeoProvider(this.target, t);
3322
3322
  }
3323
3323
  async loadPoster(t, e, s) {
3324
3324
  const { resolveVimeoVideoId: n, getVimeoVideoInfo: a } = await import("./vidstack-krOAtKMi-C50BTxmn.js");
@@ -3350,7 +3350,7 @@ class ko {
3350
3350
  return "video";
3351
3351
  }
3352
3352
  async load(t) {
3353
- return new (await import("./vidstack-youtube-CK4qcn0H.js")).YouTubeProvider(this.target, t);
3353
+ return new (await import("./vidstack-youtube-DnbgfwSU.js")).YouTubeProvider(this.target, t);
3354
3354
  }
3355
3355
  async loadPoster(t, e, s) {
3356
3356
  const { findYouTubePoster: n, resolveYouTubeVideoId: a } = await import("./vidstack-Dm1xEU9Q-CXHNvShT.js"), r = v(t.src) && a(t.src);
@@ -3818,7 +3818,7 @@ class Ao extends Qt {
3818
3818
  throw n.code = "CAST_NOT_AVAILABLE", n;
3819
3819
  }
3820
3820
  if (_e("https://www.gstatic.com"), !this.#$) {
3821
- const n = await import("./vidstack-D2pY00kU-B6IWbukl.js").then((a) => a.v);
3821
+ const n = await import("./vidstack-D2pY00kU-CtXuBxWV.js").then((a) => a.v);
3822
3822
  this.#$ = new n.GoogleCastLoader();
3823
3823
  }
3824
3824
  await this.#$.prompt(this.#s), t && this.#e.queue.enqueue("media-google-cast-request", t);
@@ -5511,7 +5511,7 @@ class Bo extends $(HTMLElement, Hn) {
5511
5511
  if (this.#e?.classList.contains("vds-google-cast"))
5512
5512
  return this.#e;
5513
5513
  const t = document.createElement("div");
5514
- return t.classList.add("vds-google-cast"), import("./vidstack-D_-9AA6_-Daskar-l.js").then(({ insertContent: e }) => {
5514
+ return t.classList.add("vds-google-cast"), import("./vidstack-D_-9AA6_-Dana1Lpy.js").then(({ insertContent: e }) => {
5515
5515
  e(t, this.#t.$state);
5516
5516
  }), t;
5517
5517
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@webitel/ui-sdk",
3
- "version": "26.2.98",
3
+ "version": "26.2.100",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "make-all": "npm version patch --git-tag-version false && npm run build && (npm run build:types || true) && (npm run biome:format:all || true) && npm run publish-lib",
@@ -229,6 +229,8 @@ import versions from './versions.svg?raw';
229
229
  import videoCam from './video-cam.svg?raw';
230
230
  import videoCamOff from './video-cam-off.svg?raw';
231
231
  import videoCamOffFilled from './video-cam-off--filled.svg?raw';
232
+ import violation from './violation.svg?raw';
233
+ import violationFilled from './violation--filled.svg?raw';
232
234
  import webitelLogo from './webitel-logo.svg?raw';
233
235
  import zoomIn from './zoom-in.svg?raw';
234
236
  import zoomOut from './zoom-out.svg?raw';
@@ -406,6 +408,8 @@ export default objCamelToKebab({
406
408
  videoCamOff,
407
409
  'video-cam-off--filled': videoCamOffFilled,
408
410
  videoCam,
411
+ violation,
412
+ 'violation--filled': violationFilled,
409
413
  zoomIn,
410
414
  zoomOut,
411
415
  ttsDownload,
@@ -0,0 +1,3 @@
1
+ <svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
2
+ <path fill-rule="evenodd" clip-rule="evenodd" d="M12.9315 3.55364C12.5136 2.81545 11.4864 2.81545 11.0685 3.55364L2.15085 19.3075C1.72706 20.0562 2.24651 21 3.08236 21H20.9176C21.7535 21 22.2729 20.0562 21.8491 19.3075L12.9315 3.55364ZM13 10C13 9.44772 12.5523 9 12 9C11.4477 9 11 9.44772 11 10V14C11 14.5523 11.4477 15 12 15C12.5523 15 13 14.5523 13 14V10ZM12 16.5C12.5523 16.5 13 16.9477 13 17.5V18C13 18.5523 12.5523 19 12 19C11.4477 19 11 18.5523 11 18V17.5C11 16.9477 11.4477 16.5 12 16.5Z"/>
3
+ </svg>
@@ -0,0 +1,5 @@
1
+ <svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
2
+ <path d="M12.9999 10C12.9999 9.44775 12.5527 9 11.9999 9C11.4472 9 10.9999 9.44775 10.9999 10V13C10.9999 13.5522 11.4472 14 11.9999 14C12.5527 14 12.9999 13.5522 12.9999 13V10Z" />
3
+ <path d="M11.9999 15.5C12.5527 15.5 12.9999 15.9478 12.9999 16.5V17C12.9999 17.5522 12.5527 18 11.9999 18C11.4472 18 10.9999 17.5522 10.9999 17V16.5C10.9999 15.9478 11.4472 15.5 11.9999 15.5Z" />
4
+ <path fill-rule="evenodd" clip-rule="evenodd" d="M11.0685 3.55364C11.4864 2.81545 12.5136 2.81545 12.9315 3.55364L21.8491 19.3075C22.2729 20.0562 21.7535 21 20.9176 21H3.08236C2.24651 21 1.72706 20.0562 2.15085 19.3075L11.0685 3.55364ZM4.62313 19L12 5.96803L19.3769 19H4.62313Z" />
5
+ </svg>
@@ -91,6 +91,8 @@ const isLetterAvatar = computed(() => !props.src && props.username);
91
91
  const avatarLetters = computed(() => {
92
92
  if (!props.username) return false;
93
93
  const abbreviation = props.username
94
+ .trim()
95
+ .replace(/\s+/g, ' ') //change several spaces to one
94
96
  .split(' ')
95
97
  .map((word) => word.at(0).toUpperCase())
96
98
  .join('');
@@ -159,7 +161,13 @@ const avatarLettersBackground = computed(() => {
159
161
  },
160
162
  ];
161
163
  const searchedLetter = letterList.find(({ letters }) =>
162
- letters.includes(avatarLetters.value.at(0).toUpperCase()),
164
+ letters.includes(
165
+ avatarLetters.value
166
+ .at(0)
167
+ .trim()
168
+ .replace(/\s+/g, ' ') //change several spaces to one
169
+ .toUpperCase(),
170
+ ),
163
171
  );
164
172
  return searchedLetter?.color || '--p-avatar-letters-p1-color';
165
173
  });
@@ -578,7 +578,9 @@ export default deepmerge(
578
578
  type: {
579
579
  options: 'Options',
580
580
  score: 'Score',
581
+ yes: 'Select "Yes"',
581
582
  },
583
+ criticalViolation: 'Critical violation',
582
584
  clearSelection: 'Clear selection',
583
585
  },
584
586
  deleteConfirmationPopup: {
@@ -565,7 +565,9 @@ export default {
565
565
  type: {
566
566
  options: 'Opciones',
567
567
  score: 'Puntuación',
568
+ yes: 'Seleccionar "Sí"',
568
569
  },
570
+ criticalViolation: 'Violación crítica',
569
571
  clearSelection: 'Limpiar selección',
570
572
  },
571
573
  deleteConfirmationPopup: {
@@ -569,7 +569,9 @@ export default {
569
569
  type: {
570
570
  options: 'Опциялар',
571
571
  score: 'Баға',
572
+ yes: '"Иә" таңдау',
572
573
  },
574
+ criticalViolation: 'Критикалық бұзу',
573
575
  clearSelection: 'Таңдауды тазалау',
574
576
  },
575
577
  deleteConfirmationPopup: {
@@ -570,7 +570,9 @@ export default {
570
570
  type: {
571
571
  options: 'Opcje',
572
572
  score: 'Wynik',
573
+ yes: 'Wybierz "Tak"',
573
574
  },
575
+ criticalViolation: 'Krytyczne naruszenie',
574
576
  clearSelection: 'Wyczyść wybór',
575
577
  },
576
578
  deleteConfirmationPopup: {
@@ -572,7 +572,9 @@ export default {
572
572
  type: {
573
573
  options: 'Opțiuni',
574
574
  score: 'Scor',
575
+ yes: 'Selectează "Da"',
575
576
  },
577
+ criticalViolation: 'Încălcare critică',
576
578
  clearSelection: 'Șterge selecția',
577
579
  },
578
580
  deleteConfirmationPopup: {
@@ -563,7 +563,9 @@ export default {
563
563
  type: {
564
564
  options: 'Вариант',
565
565
  score: 'Бал',
566
+ yes: 'Выбор "Да"',
566
567
  },
568
+ criticalViolation: 'Критическое нарушение',
567
569
  clearSelection: 'Очистить выбор',
568
570
  },
569
571
  deleteConfirmationPopup: {
@@ -562,7 +562,9 @@ export default {
562
562
  type: {
563
563
  options: 'Варіант',
564
564
  score: 'Бал',
565
+ yes: 'Вибір "Так"',
565
566
  },
567
+ criticalViolation: 'Критичне порушення',
566
568
  clearSelection: 'Очистити вибір',
567
569
  },
568
570
  deleteConfirmationPopup: {
@@ -572,7 +572,9 @@ export default {
572
572
  type: {
573
573
  options: 'Variantlar',
574
574
  score: 'Ball',
575
+ yes: '"Ha" ni tanlash',
575
576
  },
577
+ criticalViolation: 'Jiddiy buzilish',
576
578
  clearSelection: 'Tanlovni tozalash',
577
579
  },
578
580
  deleteConfirmationPopup: {
@@ -571,7 +571,9 @@ export default {
571
571
  type: {
572
572
  options: 'Tùy chọn',
573
573
  score: 'Điểm',
574
+ yes: 'Chọn "Có"',
574
575
  },
576
+ criticalViolation: 'Vi phạm nghiêm trọng',
575
577
  clearSelection: 'Xóa lựa chọn',
576
578
  },
577
579
  deleteConfirmationPopup: {
@@ -9,14 +9,22 @@
9
9
  @keyup.enter="emit('activate')"
10
10
  >
11
11
  <header class="audit-form-question-read-header">
12
- <p
13
- :class="{
14
- 'audit-form-question-read-text--required': question.required,
15
- }"
16
- class="audit-form-question-read-text"
17
- >
18
- {{ question.question }}
19
- </p>
12
+ <div class="audit-form-question-read-text-wrapper">
13
+ <wt-icon
14
+ v-if="showCriticalViolationIcon"
15
+ class="audit-form-question-read__critical-violation-icon"
16
+ icon="violation--filled"
17
+ size="md"
18
+ />
19
+ <p
20
+ :class="{
21
+ 'audit-form-question-read-text--required': question.required,
22
+ }"
23
+ class="audit-form-question-read-text"
24
+ >
25
+ {{ question.question }}
26
+ </p>
27
+ </div>
20
28
  <wt-icon
21
29
  v-if="!disableDragging && !first"
22
30
  class="audit-form-question-read__drag-icon"
@@ -56,19 +64,21 @@
56
64
  </template>
57
65
 
58
66
  <script lang="ts" setup>
67
+ import type {
68
+ EngineQuestion,
69
+ EngineQuestionAnswer,
70
+ } from '@webitel/api-services/gen/models';
71
+ import { EngineAuditQuestionType } from '@webitel/api-services/gen/models';
59
72
  import { computed, inject } from 'vue';
60
73
  import { useI18n } from 'vue-i18n';
61
- import {
62
- EngineAuditQuestionType,
63
- type EngineQuestion,
64
- type EngineQuestionAnswer,
65
- } from 'webitel-sdk';
66
74
 
67
75
  import { WtDivider, WtIcon } from '../../../components';
76
+ import { IconColor } from '../../../enums';
68
77
  import isEmpty from '../../../scripts/isEmpty.js';
69
78
  import AuditFormAnswerEditingInfo from './form-answers/answer-editing-info/audit-form-answer-editing-info.vue';
70
79
  import AuditFormQuestionOptions from './form-questions/options/audit-form-question-options.vue';
71
80
  import AuditFormQuestionScore from './form-questions/score/audit-form-question-score.vue';
81
+ import AuditFormQuestionYes from './form-questions/yes/audit-form-question-yes.vue';
72
82
 
73
83
  const readonly = inject('readonly');
74
84
 
@@ -87,15 +97,21 @@ const emit = defineEmits<{
87
97
  const { t } = useI18n();
88
98
 
89
99
  const QuestionTypeComponent = computed(() => {
90
- if (props.question.type === EngineAuditQuestionType.Option)
100
+ if (props.question.type === EngineAuditQuestionType.QuestionOption)
91
101
  return AuditFormQuestionOptions;
92
- if (props.question.type === EngineAuditQuestionType.Score)
102
+ if (props.question.type === EngineAuditQuestionType.QuestionScore)
93
103
  return AuditFormQuestionScore;
104
+ if (props.question.type === EngineAuditQuestionType.QuestionYes)
105
+ return AuditFormQuestionYes;
94
106
  return null;
95
107
  });
96
108
 
97
109
  const isAnswer = computed(() => !isEmpty(answerModel.value));
98
110
 
111
+ const showCriticalViolationIcon = computed(() => {
112
+ return props.question.criticalViolation === true;
113
+ });
114
+
99
115
  const updateAnswer = (value: EngineQuestionAnswer) => {
100
116
  if (readonly.value) return; // if ... then in preview mode
101
117
 
@@ -145,6 +161,16 @@ const resetAnswer = () => {
145
161
 
146
162
  .audit-form-question-read-header {
147
163
  margin-bottom: var(--spacing-xs);
164
+ display: flex;
165
+ justify-content: space-between;
166
+ align-items: flex-start;
167
+ }
168
+
169
+ .audit-form-question-read-text-wrapper {
170
+ display: flex;
171
+ align-items: center;
172
+ gap: var(--spacing-xs);
173
+ flex: 1;
148
174
  }
149
175
 
150
176
  .audit-form-question-read-text {
@@ -158,6 +184,10 @@ const resetAnswer = () => {
158
184
  }
159
185
  }
160
186
 
187
+ .audit-form-question-read__critical-violation-icon {
188
+ flex-shrink: 0;
189
+ }
190
+
161
191
  .audit-form-question-read-content {
162
192
  display: flex;
163
193
  flex-direction: column;
@@ -1,12 +1,20 @@
1
1
  <template>
2
2
  <article class="audit-form-question-write">
3
3
  <header class="audit-form-question-write-header">
4
- <wt-switcher
5
- :disabled="first"
6
- :label="t('reusable.required')"
7
- :model-value="question.required"
8
- @update:model-value="updateQuestion({ path: 'required', value: $event })"
9
- />
4
+ <div class="audit-form-question-write-header__switchers">
5
+ <wt-switcher
6
+ :disabled="first"
7
+ :label="t('reusable.required')"
8
+ :model-value="question.required"
9
+ @update:model-value="updateQuestion({ path: 'required', value: $event })"
10
+ />
11
+ <wt-switcher
12
+ v-if="question.type === EngineAuditQuestionType.QuestionYes"
13
+ :label="t('webitelUI.auditForm.criticalViolation')"
14
+ :model-value="question.criticalViolation || false"
15
+ @update:model-value="updateQuestion({ path: 'criticalViolation', value: $event })"
16
+ />
17
+ </div>
10
18
  <div class="audit-form-question-write-header__actions">
11
19
  <wt-icon-btn
12
20
  v-tooltip="t('reusable.copy')"
@@ -51,19 +59,22 @@
51
59
  </template>
52
60
 
53
61
  <script lang="ts" setup>
62
+ import type { EngineQuestion } from '@webitel/api-services/gen/models';
63
+ import { EngineAuditQuestionType } from '@webitel/api-services/gen/models';
54
64
  import { computed } from 'vue';
55
65
  import { useI18n } from 'vue-i18n';
56
- import { EngineAuditQuestionType, type EngineQuestion } from 'webitel-sdk';
57
66
 
58
67
  import WtIconBtn from '../../../components/wt-icon-btn/wt-icon-btn.vue';
59
68
  import WtSelect from '../../../components/wt-select/wt-select.vue';
60
69
  import WtSwitcher from '../../../components/wt-switcher/wt-switcher.vue';
61
70
  import WtTooltip from '../../../components/wt-tooltip/wt-tooltip.vue';
62
71
  import { updateObject } from '../../../scripts';
63
- import { generateQuestionOptionsSchema } from '../schemas/AuditFormQuestionOptionsSchema.js';
64
- import { generateQuestionScoreSchema } from '../schemas/AuditFormQuestionScoreSchema.js';
72
+ import { generateQuestionOptionsSchema } from '../schemas/AuditFormQuestionOptionsSchema';
73
+ import { generateQuestionScoreSchema } from '../schemas/AuditFormQuestionScoreSchema';
74
+ import { generateQuestionYesSchema } from '../schemas/AuditFormQuestionYesSchema';
65
75
  import AuditFormQuestionOptions from './form-questions/options/audit-form-question-options.vue';
66
76
  import AuditFormQuestionScore from './form-questions/score/audit-form-question-score.vue';
77
+ import AuditFormQuestionYes from './form-questions/yes/audit-form-question-yes.vue';
67
78
 
68
79
  const questionModel = defineModel<EngineQuestion>('question');
69
80
 
@@ -86,13 +97,17 @@ const { t } = useI18n();
86
97
 
87
98
  const QuestionType = [
88
99
  {
89
- value: EngineAuditQuestionType.Option,
100
+ value: EngineAuditQuestionType.QuestionOption,
90
101
  locale: 'webitelUI.auditForm.type.options',
91
102
  },
92
103
  {
93
- value: EngineAuditQuestionType.Score,
104
+ value: EngineAuditQuestionType.QuestionScore,
94
105
  locale: 'webitelUI.auditForm.type.score',
95
106
  },
107
+ {
108
+ value: EngineAuditQuestionType.QuestionYes,
109
+ locale: 'webitelUI.auditForm.type.yes',
110
+ },
96
111
  ];
97
112
 
98
113
  const prettifiedQuestionType = computed(() =>
@@ -100,10 +115,12 @@ const prettifiedQuestionType = computed(() =>
100
115
  );
101
116
 
102
117
  const QuestionTypeComponent = computed(() => {
103
- if (questionModel.value.type === EngineAuditQuestionType.Option)
118
+ if (questionModel.value.type === EngineAuditQuestionType.QuestionOption)
104
119
  return AuditFormQuestionOptions;
105
- if (questionModel.value.type === EngineAuditQuestionType.Score)
120
+ if (questionModel.value.type === EngineAuditQuestionType.QuestionScore)
106
121
  return AuditFormQuestionScore;
122
+ if (questionModel.value.type === EngineAuditQuestionType.QuestionYes)
123
+ return AuditFormQuestionYes;
107
124
  return null;
108
125
  });
109
126
 
@@ -123,16 +140,21 @@ function handleQuestionTypeChange(type) {
123
140
  criticalViolation: questionModel.value.criticalViolation,
124
141
  };
125
142
 
126
- if (type === EngineAuditQuestionType.Option) {
143
+ if (type === EngineAuditQuestionType.QuestionOption) {
127
144
  questionModel.value = {
128
145
  ...commonFields,
129
146
  ...generateQuestionOptionsSchema(),
130
147
  };
131
- } else if (type === EngineAuditQuestionType.Score) {
148
+ } else if (type === EngineAuditQuestionType.QuestionScore) {
132
149
  questionModel.value = {
133
150
  ...commonFields,
134
151
  ...generateQuestionScoreSchema(),
135
152
  };
153
+ } else if (type === EngineAuditQuestionType.QuestionYes) {
154
+ questionModel.value = {
155
+ ...commonFields,
156
+ ...generateQuestionYesSchema(),
157
+ };
136
158
  }
137
159
  }
138
160
  </script>
@@ -150,6 +172,11 @@ function handleQuestionTypeChange(type) {
150
172
  justify-content: space-between;
151
173
  align-items: center;
152
174
 
175
+ &__switchers {
176
+ display: flex;
177
+ gap: var(--spacing-md);
178
+ }
179
+
153
180
  &__actions {
154
181
  display: flex;
155
182
  gap: var(--spacing-sm);
@@ -27,8 +27,11 @@
27
27
  <script lang="ts" setup>
28
28
  import { useVuelidate } from '@vuelidate/core';
29
29
  import { required } from '@vuelidate/validators';
30
+ import type {
31
+ EngineQuestion,
32
+ EngineQuestionAnswer,
33
+ } from '@webitel/api-services/gen/models';
30
34
  import { computed, inject, onMounted, ref } from 'vue';
31
- import type { EngineQuestion, EngineQuestionAnswer } from 'webitel-sdk';
32
35
 
33
36
  import vClickaway from '../../../directives/clickaway/clickaway.js';
34
37
  import isEmpty from '../../../scripts/isEmpty.js';