@webitel/ui-sdk 26.4.40 → 26.4.41
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-kK3cJDJg.js → index-CAJPSwxf.js} +1 -1
- package/dist/{index-C5e3fZEl.js → index-DOCmSsEJ.js} +1 -1
- package/dist/{install-BP0xjIqw.js → install-D-fDpH8o.js} +36 -36
- package/dist/{isObject-D6Dl-6Ij.js → isObject-N6JBQZo_.js} +1 -1
- package/dist/ui-sdk.css +1 -1
- package/dist/ui-sdk.js +1 -1
- package/dist/ui-sdk.umd.cjs +1 -1
- package/dist/{useVidstackSrc-HFE9BL-d.js → useVidstackSrc-D7zNGKlI.js} +1 -1
- package/dist/{vidstack-Bq6c3Bam-Dd0arRc9.js → vidstack-Bq6c3Bam-DMvh_rCZ.js} +3 -3
- package/dist/{vidstack-D2pY00kU-BDvUynst.js → vidstack-D2pY00kU-DOTw-RsD.js} +3 -3
- package/dist/{vidstack-DDXt6fpN-CQ-bCPXC.js → vidstack-DDXt6fpN-BqMwEB9O.js} +2 -2
- package/dist/{vidstack-D_-9AA6_-u7i1wRct.js → vidstack-D_-9AA6_-BSBbvuIU.js} +2 -2
- package/dist/{vidstack-DqAw8m9J-B5eBkpDK.js → vidstack-DqAw8m9J-DT2SY-Mo.js} +1 -1
- package/dist/{vidstack-audio-B4o1fd7u.js → vidstack-audio-B9vjDp-K.js} +2 -2
- package/dist/{vidstack-dash-B5kCQSZF.js → vidstack-dash-0wRJ3CEP.js} +4 -4
- package/dist/{vidstack-google-cast-C51Uq3DM.js → vidstack-google-cast-DMkUA1c5.js} +4 -4
- package/dist/{vidstack-hls-BlErdZsI.js → vidstack-hls-BOkRQZEj.js} +4 -4
- package/dist/{vidstack-video-1o4p3JN7.js → vidstack-video-RBTL9IBp.js} +3 -3
- package/dist/{vidstack-vimeo-DnmbOPV1.js → vidstack-vimeo-az1FMjJy.js} +4 -4
- package/dist/{vidstack-youtube-Ra1Ukvj8.js → vidstack-youtube-Cw9fcBpZ.js} +3 -3
- package/dist/{wt-action-bar-Bys0VSvZ.js → wt-action-bar-i0ZeD8Co.js} +1 -1
- package/dist/{wt-button-select-BwErsna8.js → wt-button-select-D23Q6Qf6.js} +1 -1
- package/dist/{wt-chat-emoji-wQl12mpX.js → wt-chat-emoji-7BCR-KNF.js} +2 -2
- package/dist/{wt-confirm-dialog-Dhfo1Xr7.js → wt-confirm-dialog-DZrQ7Xdn.js} +1 -1
- package/dist/{wt-context-menu-BbgYgl7p.js → wt-context-menu-CpDT86up.js} +1 -1
- package/dist/{wt-copy-action-DXT7ObTU.js → wt-copy-action-BB7hedkB.js} +1 -1
- package/dist/{wt-datepicker-dU7mli4l.js → wt-datepicker-Z6wUfcSG.js} +1 -1
- package/dist/{wt-display-chip-items-B8UZ0qNo.js → wt-display-chip-items-Cb53p8W-.js} +1 -1
- package/dist/{wt-dual-panel-DSSRTgEl.js → wt-dual-panel-mcEiyd3j.js} +1 -1
- package/dist/{wt-dummy-CQb-PC3M.js → wt-dummy-CXxTx5PV.js} +1 -1
- package/dist/{wt-error-page-BsQWdBV3.js → wt-error-page-C-UOZm82.js} +1 -1
- package/dist/{wt-expansion-card-CYYzrAha.js → wt-expansion-card-Dvq_LnsB.js} +1 -1
- package/dist/{wt-expansion-panel-DypWzapC.js → wt-expansion-panel-D4PYTWSO.js} +1 -1
- package/dist/{wt-filters-panel-wrapper-DsqXee_E.js → wt-filters-panel-wrapper-DybOfjg2.js} +1 -1
- package/dist/{wt-galleria-Bl0ss9g-.js → wt-galleria-Bfhl8X10.js} +1 -1
- package/dist/{wt-inline-add-panel-oDBTbgnj.js → wt-inline-add-panel-Cik7iaRd.js} +1 -1
- package/dist/{wt-navigation-menu-BE9A2244.js → wt-navigation-menu-Bdi7ANsy.js} +1 -1
- package/dist/{wt-notifications-bar-CkRjF1KV.js → wt-notifications-bar-De62dDlq.js} +2 -2
- package/dist/{wt-pagination-Dh3-vQLf.js → wt-pagination-CP5dwQru.js} +1 -1
- package/dist/{wt-player-gfPdGvcv.js → wt-player-CET66J81.js} +2 -2
- package/dist/{wt-screen-recordings-action-3Ba-87Ko.js → wt-screen-recordings-action-D4abDgRl.js} +1 -1
- package/dist/{wt-search-bar-Dh1A--QX.js → wt-search-bar-DWDIy-xw.js} +1 -1
- package/dist/{wt-selection-popup-DuInMqkW.js → wt-selection-popup-1CQ3nN1L.js} +1 -1
- package/dist/{wt-start-page-CRk-LFta.js → wt-start-page-DHMK2GMl.js} +1 -1
- package/dist/{wt-status-select-B8QhHFXd.js → wt-status-select-C3f82nIV.js} +1 -1
- package/dist/{wt-stepper-4V5xxCJ1.js → wt-stepper-BfIatGUa.js} +1 -1
- package/dist/{wt-table-DAkFTu6J.js → wt-table-B1Cprby8.js} +1 -1
- package/dist/{wt-table-actions-BdiFeiKB.js → wt-table-actions-DvGD62L-.js} +1 -1
- package/dist/{wt-table-column-select-Dw64TINX.js → wt-table-column-select-CC_N3uy2.js} +7 -7
- package/dist/{wt-tabs-CeKfHsg_.js → wt-tabs-VznDIJs6.js} +1 -1
- package/dist/{wt-tags-input-BbNNp-ET.js → wt-tags-input-C8jr7cRM.js} +2 -2
- package/dist/{wt-timepicker-BNSc1pGT.js → wt-timepicker-DCrNaJ9E.js} +1 -1
- package/dist/{wt-tree-D7XBRXJM.js → wt-tree-hcjYQT4H.js} +2 -2
- package/dist/{wt-tree-table-DmiPIFrs.js → wt-tree-table-CWFbgPlR.js} +1 -1
- package/dist/{wt-type-extension-value-input-yjLiIeSy.js → wt-type-extension-value-input-D77QPNIn.js} +2 -2
- package/dist/{wt-vidstack-player-bNv6lmEG.js → wt-vidstack-player-C9TsaG6a.js} +10 -10
- package/package.json +1 -1
- package/src/components/wt-table-column-select/wt-table-column-select.vue +3 -1
- package/src/modules/AuditForm/components/audit-form-question-read-wrapper.vue +4 -1
- package/src/modules/AuditForm/components/audit-form-question-write-wrapper.vue +13 -4
- package/src/modules/AuditForm/components/audit-form-question.vue +2 -2
- package/src/modules/AuditForm/components/audit-form.vue +1 -1
- package/src/modules/AuditForm/components/form-questions/options/audit-form-question-options-write-row.vue +6 -2
- package/src/modules/AuditForm/components/form-questions/options/audit-form-question-options.vue +6 -1
- package/src/modules/AuditForm/components/form-questions/score/audit-form-question-score.vue +5 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ref as k, onMounted as P, onUnmounted as D, useAttrs as Z, computed as $, resolveComponent as w, createBlock as A, openBlock as y, mergeProps as j, unref as i, withCtx as s, createVNode as a, createTextVNode as x, toDisplayString as g, createElementVNode as m, renderSlot as J, defineComponent as K, mergeModels as B, useModel as S, watch as F, nextTick as Q, createElementBlock as L, Fragment as W, createCommentVNode as q, normalizeClass as M, withDirectives as X, vShow as Y } from "vue";
|
|
2
|
-
import { _ as ee, B as te } from "./install-
|
|
2
|
+
import { _ as ee, B as te } from "./install-D-fDpH8o.js";
|
|
3
3
|
const le = () => {
|
|
4
4
|
const e = k(!1), c = () => {
|
|
5
5
|
e.value ? l() : v();
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as c, resolveComponent as r, createElementBlock as m, openBlock as p, withModifiers as u, normalizeClass as _, renderSlot as f, createElementVNode as b, createVNode as i } from "vue";
|
|
2
|
-
import { _ as w } from "./install-
|
|
2
|
+
import { _ as w } from "./install-D-fDpH8o.js";
|
|
3
3
|
const k = { class: "wt-inline-add-panel__actions" }, v = /* @__PURE__ */ c({
|
|
4
4
|
__name: "wt-inline-add-panel",
|
|
5
5
|
props: {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { resolveComponent as h, createElementBlock as l, openBlock as c, Fragment as w, renderList as b, createElementVNode as p, withDirectives as N, normalizeClass as C, createVNode as _, createTextVNode as k, toDisplayString as $, renderSlot as S, vShow as E, withCtx as A, ref as L, computed as v } from "vue";
|
|
2
|
-
import { _ as g } from "./install-
|
|
2
|
+
import { _ as g } from "./install-D-fDpH8o.js";
|
|
3
3
|
const V = { class: "nav-menu__category nav-menu-lvl-1" }, B = ["onClick"], D = {
|
|
4
4
|
__name: "nav-menu-lvl-1",
|
|
5
5
|
props: {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { i as p, e as _ } from "./isObject-
|
|
1
|
+
import { i as p, e as _ } from "./isObject-N6JBQZo_.js";
|
|
2
2
|
import { resolveComponent as v, createElementBlock as d, openBlock as c, createVNode as B, TransitionGroup as $, withCtx as w, Fragment as g, renderList as x, createBlock as N, createTextVNode as b, toDisplayString as y } from "vue";
|
|
3
|
-
import { _ as k } from "./install-
|
|
3
|
+
import { _ as k } from "./install-D-fDpH8o.js";
|
|
4
4
|
const C = (t) => p(t) && (t.entity || t.module), i = (t) => (o) => (...n) => {
|
|
5
5
|
if (C(n[0])) {
|
|
6
6
|
const u = n[0], { app: f = t, entity: s = "", module: r = "" } = u, e = /* @__PURE__ */ new Date(), a = window?.location?.href || "non-browser env";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _ as u, D as h } from "./install-
|
|
1
|
+
import { _ as u, D as h } from "./install-D-fDpH8o.js";
|
|
2
2
|
import { resolveComponent as r, resolveDirective as g, createElementBlock as m, openBlock as z, createElementVNode as o, createVNode as a, toDisplayString as b, withDirectives as d } from "vue";
|
|
3
3
|
const t = 10, f = {
|
|
4
4
|
name: "WtPagination",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { resolveComponent as w, createElementBlock as l, openBlock as t, createVNode as o, defineComponent as p, toRefs as k, unref as z, normalizeClass as C, createElementVNode as _, createBlock as y, createCommentVNode as u } from "vue";
|
|
2
|
-
import { u as E, T as x } from "./useVidstackSrc-
|
|
3
|
-
import { _ as i, E as f } from "./install-
|
|
2
|
+
import { u as E, T as x } from "./useVidstackSrc-D7zNGKlI.js";
|
|
3
|
+
import { _ as i, E as f } from "./install-D-fDpH8o.js";
|
|
4
4
|
import { _ as b } from "./wt-slider.vue_vue_type_script_setup_true_lang-DlaRDHxo.js";
|
|
5
5
|
const S = {}, V = { class: "mute-button" };
|
|
6
6
|
function M(n, d) {
|
package/dist/{wt-screen-recordings-action-3Ba-87Ko.js → wt-screen-recordings-action-D4abDgRl.js}
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as h, computed as x, resolveComponent as i, createElementBlock as y, openBlock as r, createVNode as a, createElementVNode as p, withCtx as l, createTextVNode as C, toDisplayString as _, createBlock as k, createCommentVNode as S, unref as T } from "vue";
|
|
2
2
|
import { E } from "./displayText-Cbh4IOfM.js";
|
|
3
|
-
import { _ as B } from "./install-
|
|
3
|
+
import { _ as B } from "./install-D-fDpH8o.js";
|
|
4
4
|
const m = {
|
|
5
5
|
FileTypeScreensharing: "file_type_screensharing"
|
|
6
6
|
}, F = { class: "wt-screen-recordings-action" }, N = { class: "wt-screen-recordings-action__option" }, V = /* @__PURE__ */ h({
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as O, toRefs as $, computed as _, resolveComponent as o, resolveDirective as A, createBlock as s, openBlock as d, unref as a, normalizeClass as E, createSlots as U, withCtx as n, createVNode as p, createElementVNode as j, createCommentVNode as m, renderSlot as z, createTextVNode as K, toDisplayString as W, withDirectives as H } from "vue";
|
|
2
|
-
import { z as P, D as R, _ as T } from "./install-
|
|
2
|
+
import { z as P, D as R, _ as T } from "./install-D-fDpH8o.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-
|
|
2
|
+
import { _ as O, B as P } from "./install-D-fDpH8o.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 v, createTextVNode as g, toDisplayString as l, createVNode as N, withCtx as f, defineComponent as k, provide as w, computed as m, Fragment as E, renderList as S } from "vue";
|
|
2
|
-
import { N as n, _ as p } from "./install-
|
|
2
|
+
import { N as n, _ as p } from "./install-D-fDpH8o.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-
|
|
2
|
+
import { _ as h } from "./install-D-fDpH8o.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-
|
|
2
|
+
import { _ as k } from "./install-D-fDpH8o.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 U, withCtx as i, createCommentVNode as b, createElementBlock as W, createVNode as V, withModifiers as ne, Fragment as se, renderList as de, createElementVNode as $, normalizeStyle as ie, renderSlot as h, createTextVNode as q, toDisplayString as K, withDirectives as ce, nextTick as ue } from "vue";
|
|
2
|
-
import { B as pe, F as fe, _ as me } from "./install-
|
|
2
|
+
import { B as pe, F as fe, _ as me } from "./install-D-fDpH8o.js";
|
|
3
3
|
const ye = (r, E) => {
|
|
4
4
|
let o = null, p = null, w = null, d = !1;
|
|
5
5
|
const v = () => {
|
|
@@ -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-
|
|
2
|
+
import { _ as O } from "./install-D-fDpH8o.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 v } from "./index-
|
|
1
|
+
import { d as v } from "./index-DOCmSsEJ.js";
|
|
2
2
|
import { resolveComponent as n, resolveDirective as S, createElementBlock as c, openBlock as r, withDirectives as k, createVNode as s, withCtx as a, createTextVNode as i, toDisplayString as p, createElementVNode as h, normalizeClass as D, Fragment as y, renderList as L, withModifiers as P } from "vue";
|
|
3
|
-
import { _ as H } from "./install-
|
|
3
|
+
import { _ as H } from "./install-D-fDpH8o.js";
|
|
4
4
|
const U = {
|
|
5
5
|
name: "WtTableColumnSelect",
|
|
6
6
|
model: {
|
|
@@ -45,7 +45,7 @@ const U = {
|
|
|
45
45
|
computed: {
|
|
46
46
|
changeableDraft() {
|
|
47
47
|
return this.draft.filter(
|
|
48
|
-
(e) => !this.staticHeaders.includes(e.value) && this.shownColLabel(e)?.toLowerCase().includes(this.search)
|
|
48
|
+
(e) => !this.staticHeaders.includes(e.value) && this.shownColLabel(e)?.toLowerCase().includes(this.search?.toLowerCase())
|
|
49
49
|
).sort((e, t) => this.shownColLabel(e)?.localeCompare(this.shownColLabel(t)));
|
|
50
50
|
}
|
|
51
51
|
},
|
|
@@ -75,15 +75,15 @@ const U = {
|
|
|
75
75
|
}
|
|
76
76
|
}, x = { class: "wt-table-column-select" }, V = { class: "wt-table-column-select__popup-list-wrap" }, B = ["onClickCapture"];
|
|
77
77
|
function E(e, t, I, N, T, l) {
|
|
78
|
-
const m = n("wt-icon-btn"), _ = n("wt-icon"), w = n("wt-input-text"), f = n("wt-checkbox"), u = n("wt-button"),
|
|
78
|
+
const m = n("wt-icon-btn"), _ = n("wt-icon"), w = n("wt-input-text"), f = n("wt-checkbox"), u = n("wt-button"), C = n("wt-popup"), b = S("tooltip");
|
|
79
79
|
return r(), c("div", x, [
|
|
80
80
|
k(s(m, {
|
|
81
81
|
icon: "column-select",
|
|
82
82
|
onClick: l.openPopup
|
|
83
83
|
}, null, 8, ["onClick"]), [
|
|
84
|
-
[
|
|
84
|
+
[b, e.$t("webitelUI.tableColumnSelect.title")]
|
|
85
85
|
]),
|
|
86
|
-
s(
|
|
86
|
+
s(C, {
|
|
87
87
|
shown: e.isColumnSelectPopup,
|
|
88
88
|
class: "wt-table-column-select__popup",
|
|
89
89
|
onClose: l.close
|
|
@@ -144,7 +144,7 @@ function E(e, t, I, N, T, l) {
|
|
|
144
144
|
}, 8, ["shown", "onClose"])
|
|
145
145
|
]);
|
|
146
146
|
}
|
|
147
|
-
const z = /* @__PURE__ */ H(U, [["render", E], ["__scopeId", "data-v-
|
|
147
|
+
const z = /* @__PURE__ */ H(U, [["render", E], ["__scopeId", "data-v-4901428d"]]);
|
|
148
148
|
export {
|
|
149
149
|
z as default
|
|
150
150
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { createElementBlock as s, openBlock as a, normalizeClass as o, createElementVNode as r, Fragment as c, renderList as d, renderSlot as u, normalizeProps as f, guardReactiveProps as h, toDisplayString as v, normalizeStyle as m } from "vue";
|
|
2
|
-
import { _ as p } from "./install-
|
|
2
|
+
import { _ as p } from "./install-D-fDpH8o.js";
|
|
3
3
|
const _ = {
|
|
4
4
|
name: "WtTabs",
|
|
5
5
|
model: {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { d as O } from "./index-
|
|
2
|
-
import { G as h, _ as E, C as S, M as z, H as A, J as B } from "./install-
|
|
1
|
+
import { d as O } from "./index-CAJPSwxf.js";
|
|
2
|
+
import { G as h, _ as E, C as S, M as z, H as A, J as B } from "./install-D-fDpH8o.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-
|
|
2
|
+
import { B as W, z as X, C as Y, M as Z, _ as ee } from "./install-D-fDpH8o.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-
|
|
3
|
-
import { W as _, _ as R } from "./install-
|
|
2
|
+
import { d as P } from "./index-CAJPSwxf.js";
|
|
3
|
+
import { W as _, _ as R } from "./install-D-fDpH8o.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 M, 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 O, normalizeStyle as Q, withModifiers as j, createVNode as q } from "vue";
|
|
2
|
-
import { B as G, P as R, Q as J, _ as F, F as X } from "./install-
|
|
2
|
+
import { B as G, P as R, Q as J, _ as F, F as X } from "./install-D-fDpH8o.js";
|
|
3
3
|
const Y = ({ headers: e }) => {
|
|
4
4
|
const { t: y } = G();
|
|
5
5
|
return {
|
package/dist/{wt-type-extension-value-input-yjLiIeSy.js → wt-type-extension-value-input-D77QPNIn.js}
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as Re, mergeModels as Ae, useModel as we, computed as k, resolveComponent as $, createBlock as Z, renderSlot as P, createCommentVNode as De, unref as D, openBlock as ee, mergeProps as U, createVNode as F } from "vue";
|
|
2
|
-
import { ag as ve, ah as Oe, O as Ee, ai as Ce, aj as Se, B as qe, ak as _e, al as te, am as ke } from "./install-
|
|
3
|
-
import { d as Ue } from "./index-
|
|
2
|
+
import { ag as ve, ah as Oe, O as Ee, ai as Ce, aj as Se, B as qe, ak as _e, al as te, am as ke } from "./install-D-fDpH8o.js";
|
|
3
|
+
import { d as Ue } from "./index-DOCmSsEJ.js";
|
|
4
4
|
import { get as xe, set as Be } from "lodash-es";
|
|
5
5
|
import "@aliasedDeps/api-services/axios";
|
|
6
6
|
import * as e from "zod";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as lt, inject as ye, createElementBlock as mt, openBlock as G, normalizeClass as be, unref as ot, createElementVNode as at, renderSlot as ut, createVNode as W, computed as _i, onMounted as Ii, onBeforeUnmount as Vi, createBlock as Ut, createCommentVNode as Kt, toDisplayString as Di, createSlots as Ds, withCtx as Qt, resolveComponent as Ri, ref as us, provide as Oi, toRefs as Ni } from "vue";
|
|
2
|
-
import { a as q, c as ft, i as B, b as Ie, d as S, e as nt, f as Ve, l as O, s as Zt, g as Rs, E as Os, D as L, h as Q, o as P, j as Hi, k as f, m as l, n as M, p as Ns, q as Fi, r as oe, t as z, V as J, v as w, C as b, S as gt, w as Vt, x as p, y as rt, z as j, I as Hs, A as Bi, B as Gi, F as tt, G as Ge, H as Fs, J as ps, K as Ue, L as Bs, M as kt, N as Ke, O as de, P as Ui, Q as xt, R as Ki, U as Qi, W as Wi, X as zi, Y as ji, Z as Yi, _ as Xi, $ as Ji, a0 as Zi, a1 as Gs, a2 as T, a3 as _, a4 as ce, a5 as ta, a6 as Dt, a7 as U, a8 as ea, a9 as sa, aa as ia, ab as aa, ac as ms, ad as na, ae as ra, af as v, ag as y, ah as oa, ai as ha, T as la, u as da } from "./useVidstackSrc-
|
|
3
|
-
import { T as ca, U as ua, V as pa, X as ma, _ as yt, Q as ue, C as K, Y as fa } from "./install-
|
|
2
|
+
import { a as q, c as ft, i as B, b as Ie, d as S, e as nt, f as Ve, l as O, s as Zt, g as Rs, E as Os, D as L, h as Q, o as P, j as Hi, k as f, m as l, n as M, p as Ns, q as Fi, r as oe, t as z, V as J, v as w, C as b, S as gt, w as Vt, x as p, y as rt, z as j, I as Hs, A as Bi, B as Gi, F as tt, G as Ge, H as Fs, J as ps, K as Ue, L as Bs, M as kt, N as Ke, O as de, P as Ui, Q as xt, R as Ki, U as Qi, W as Wi, X as zi, Y as ji, Z as Yi, _ as Xi, $ as Ji, a0 as Zi, a1 as Gs, a2 as T, a3 as _, a4 as ce, a5 as ta, a6 as Dt, a7 as U, a8 as ea, a9 as sa, aa as ia, ab as aa, ac as ms, ad as na, ae as ra, af as v, ag as y, ah as oa, ai as ha, T as la, u as da } from "./useVidstackSrc-D7zNGKlI.js";
|
|
3
|
+
import { T as ca, U as ua, V as pa, X as ma, _ as yt, Q as ue, C as K, Y as fa } from "./install-D-fDpH8o.js";
|
|
4
4
|
import { _ as ga } from "./wt-slider.vue_vue_type_script_setup_true_lang-DlaRDHxo.js";
|
|
5
5
|
const Us = ft();
|
|
6
6
|
function $() {
|
|
@@ -2070,7 +2070,7 @@ class un {
|
|
|
2070
2070
|
return "audio";
|
|
2071
2071
|
}
|
|
2072
2072
|
async load(t) {
|
|
2073
|
-
return new (await import("./vidstack-audio-
|
|
2073
|
+
return new (await import("./vidstack-audio-B9vjDp-K.js")).AudioProvider(this.target, t);
|
|
2074
2074
|
}
|
|
2075
2075
|
}
|
|
2076
2076
|
class je {
|
|
@@ -2083,7 +2083,7 @@ class je {
|
|
|
2083
2083
|
return "video";
|
|
2084
2084
|
}
|
|
2085
2085
|
async load(t) {
|
|
2086
|
-
return new (await import("./vidstack-video-
|
|
2086
|
+
return new (await import("./vidstack-video-RBTL9IBp.js")).VideoProvider(this.target, t);
|
|
2087
2087
|
}
|
|
2088
2088
|
}
|
|
2089
2089
|
class Ye extends je {
|
|
@@ -2093,7 +2093,7 @@ class Ye extends je {
|
|
|
2093
2093
|
return Ye.supported && Ge(t);
|
|
2094
2094
|
}
|
|
2095
2095
|
async load(t) {
|
|
2096
|
-
return new (await import("./vidstack-hls-
|
|
2096
|
+
return new (await import("./vidstack-hls-BOkRQZEj.js")).HLSProvider(this.target, t);
|
|
2097
2097
|
}
|
|
2098
2098
|
}
|
|
2099
2099
|
class Xe extends je {
|
|
@@ -2103,7 +2103,7 @@ class Xe extends je {
|
|
|
2103
2103
|
return Xe.supported && Ue(t);
|
|
2104
2104
|
}
|
|
2105
2105
|
async load(t) {
|
|
2106
|
-
return new (await import("./vidstack-dash-
|
|
2106
|
+
return new (await import("./vidstack-dash-0wRJ3CEP.js")).DASHProvider(this.target, t);
|
|
2107
2107
|
}
|
|
2108
2108
|
}
|
|
2109
2109
|
class pn {
|
|
@@ -2125,7 +2125,7 @@ class pn {
|
|
|
2125
2125
|
return "video";
|
|
2126
2126
|
}
|
|
2127
2127
|
async load(t) {
|
|
2128
|
-
return new (await import("./vidstack-vimeo-
|
|
2128
|
+
return new (await import("./vidstack-vimeo-az1FMjJy.js")).VimeoProvider(this.target, t);
|
|
2129
2129
|
}
|
|
2130
2130
|
async loadPoster(t, e, s) {
|
|
2131
2131
|
const { resolveVimeoVideoId: i, getVimeoVideoInfo: n } = await import("./vidstack-krOAtKMi-C50BTxmn.js");
|
|
@@ -2157,7 +2157,7 @@ class mn {
|
|
|
2157
2157
|
return "video";
|
|
2158
2158
|
}
|
|
2159
2159
|
async load(t) {
|
|
2160
|
-
return new (await import("./vidstack-youtube-
|
|
2160
|
+
return new (await import("./vidstack-youtube-Cw9fcBpZ.js")).YouTubeProvider(this.target, t);
|
|
2161
2161
|
}
|
|
2162
2162
|
async loadPoster(t, e, s) {
|
|
2163
2163
|
const { findYouTubePoster: i, resolveYouTubeVideoId: n } = await import("./vidstack-Dm1xEU9Q-CXHNvShT.js"), r = S(t.src) && n(t.src);
|
|
@@ -2625,7 +2625,7 @@ class vn extends Ct {
|
|
|
2625
2625
|
throw i.code = "CAST_NOT_AVAILABLE", i;
|
|
2626
2626
|
}
|
|
2627
2627
|
if (te("https://www.gstatic.com"), !this.#v) {
|
|
2628
|
-
const i = await import("./vidstack-D2pY00kU-
|
|
2628
|
+
const i = await import("./vidstack-D2pY00kU-DOTw-RsD.js").then((n) => n.v);
|
|
2629
2629
|
this.#v = new i.GoogleCastLoader();
|
|
2630
2630
|
}
|
|
2631
2631
|
await this.#v.prompt(this.#s), t && this.#e.queue.enqueue("media-google-cast-request", t);
|
|
@@ -8022,7 +8022,7 @@ class Lr extends v(HTMLElement, ai) {
|
|
|
8022
8022
|
if (this.#e?.classList.contains("vds-google-cast"))
|
|
8023
8023
|
return this.#e;
|
|
8024
8024
|
const t = document.createElement("div");
|
|
8025
|
-
return t.classList.add("vds-google-cast"), import("./vidstack-D_-9AA6_-
|
|
8025
|
+
return t.classList.add("vds-google-cast"), import("./vidstack-D_-9AA6_-BSBbvuIU.js").then(({ insertContent: e }) => {
|
|
8026
8026
|
e(t, this.#t.$state);
|
|
8027
8027
|
}), t;
|
|
8028
8028
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@webitel/ui-sdk",
|
|
3
|
-
"version": "26.4.
|
|
3
|
+
"version": "26.4.41",
|
|
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",
|
|
@@ -116,7 +116,9 @@ export default {
|
|
|
116
116
|
.filter(
|
|
117
117
|
(header) =>
|
|
118
118
|
!this.staticHeaders.includes(header.value) &&
|
|
119
|
-
this.shownColLabel(header)
|
|
119
|
+
this.shownColLabel(header)
|
|
120
|
+
?.toLowerCase()
|
|
121
|
+
.includes(this.search?.toLowerCase()),
|
|
120
122
|
)
|
|
121
123
|
.sort((a, b) => {
|
|
122
124
|
return this.shownColLabel(a)?.localeCompare(this.shownColLabel(b));
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
</p>
|
|
27
27
|
</div>
|
|
28
28
|
<wt-icon
|
|
29
|
-
v-if="
|
|
29
|
+
v-if="showMoveIcon"
|
|
30
30
|
class="audit-form-question-read__drag-icon"
|
|
31
31
|
icon="move"
|
|
32
32
|
/>
|
|
@@ -111,6 +111,9 @@ const isAnswer = computed(() => !isEmpty(answerModel.value));
|
|
|
111
111
|
const showCriticalViolationIcon = computed(() => {
|
|
112
112
|
return props.question.criticalViolation === true;
|
|
113
113
|
});
|
|
114
|
+
const showMoveIcon = computed(
|
|
115
|
+
() => !props.disableDragging && !props.first && !readonly.value,
|
|
116
|
+
);
|
|
114
117
|
|
|
115
118
|
const updateAnswer = (value: EngineQuestionAnswer) => {
|
|
116
119
|
if (readonly.value) return; // if ... then in preview mode
|
|
@@ -3,13 +3,14 @@
|
|
|
3
3
|
<header class="audit-form-question-write-header">
|
|
4
4
|
<div class="audit-form-question-write-header__switchers">
|
|
5
5
|
<wt-switcher
|
|
6
|
-
:disabled="
|
|
6
|
+
:disabled="isQuestionActionDisabled"
|
|
7
7
|
:label="t('reusable.required')"
|
|
8
8
|
:model-value="question.required"
|
|
9
9
|
@update:model-value="updateQuestion({ path: 'required', value: $event })"
|
|
10
10
|
/>
|
|
11
11
|
<wt-switcher
|
|
12
12
|
v-if="question.type === EngineAuditQuestionType.QuestionYes"
|
|
13
|
+
:disabled="readonly"
|
|
13
14
|
:label="t('webitelUI.auditForm.criticalViolation')"
|
|
14
15
|
:model-value="question.criticalViolation || false"
|
|
15
16
|
@update:model-value="updateQuestion({ path: 'criticalViolation', value: $event })"
|
|
@@ -18,13 +19,14 @@
|
|
|
18
19
|
<div class="audit-form-question-write-header__actions">
|
|
19
20
|
<wt-icon-btn
|
|
20
21
|
v-tooltip="t('reusable.copy')"
|
|
22
|
+
:disabled="readonly"
|
|
21
23
|
icon="copy"
|
|
22
24
|
@click="emit('copy')"
|
|
23
25
|
/>
|
|
24
26
|
|
|
25
27
|
<wt-icon-btn
|
|
26
28
|
v-tooltip="t('reusable.delete')"
|
|
27
|
-
:disabled="
|
|
29
|
+
:disabled="isQuestionActionDisabled"
|
|
28
30
|
icon="bucket"
|
|
29
31
|
@click="emit('delete')"
|
|
30
32
|
/>
|
|
@@ -36,6 +38,7 @@
|
|
|
36
38
|
:label="t('webitelUI.auditForm.question')"
|
|
37
39
|
:v="v.question.question"
|
|
38
40
|
:model-value="question.question"
|
|
41
|
+
:disabled="readonly"
|
|
39
42
|
prevent-trim
|
|
40
43
|
required
|
|
41
44
|
@update:model-value="updateQuestion({ path: 'question', value: $event })"
|
|
@@ -45,6 +48,7 @@
|
|
|
45
48
|
:label="t('webitelUI.auditForm.answerType')"
|
|
46
49
|
:options="QuestionType"
|
|
47
50
|
:value="prettifiedQuestionType"
|
|
51
|
+
:disabled="readonly"
|
|
48
52
|
track-by="value"
|
|
49
53
|
@input="handleQuestionTypeChange($event.value)"
|
|
50
54
|
/>
|
|
@@ -53,6 +57,7 @@
|
|
|
53
57
|
:is="QuestionTypeComponent"
|
|
54
58
|
v-model:question="questionModel"
|
|
55
59
|
mode="write"
|
|
60
|
+
:readonly="readonly"
|
|
56
61
|
/>
|
|
57
62
|
</section>
|
|
58
63
|
</article>
|
|
@@ -61,7 +66,7 @@
|
|
|
61
66
|
<script lang="ts" setup>
|
|
62
67
|
import type { EngineQuestion } from '@webitel/api-services/gen/models';
|
|
63
68
|
import { EngineAuditQuestionType } from '@webitel/api-services/gen/models';
|
|
64
|
-
import { computed } from 'vue';
|
|
69
|
+
import { computed, inject } from 'vue';
|
|
65
70
|
import { useI18n } from 'vue-i18n';
|
|
66
71
|
|
|
67
72
|
import WtIconBtn from '../../../components/wt-icon-btn/wt-icon-btn.vue';
|
|
@@ -77,8 +82,9 @@ import AuditFormQuestionScore from './form-questions/score/audit-form-question-s
|
|
|
77
82
|
import AuditFormQuestionYes from './form-questions/yes/audit-form-question-yes.vue';
|
|
78
83
|
|
|
79
84
|
const questionModel = defineModel<EngineQuestion>('question');
|
|
85
|
+
const readonly = inject<boolean>('readonly', false);
|
|
80
86
|
|
|
81
|
-
defineProps({
|
|
87
|
+
const props = defineProps({
|
|
82
88
|
first: {
|
|
83
89
|
type: Boolean,
|
|
84
90
|
default: false,
|
|
@@ -113,6 +119,7 @@ const QuestionType = [
|
|
|
113
119
|
const prettifiedQuestionType = computed(() =>
|
|
114
120
|
QuestionType.find(({ value }) => value === questionModel.value.type),
|
|
115
121
|
);
|
|
122
|
+
const isQuestionActionDisabled = computed(() => props.first || readonly);
|
|
116
123
|
|
|
117
124
|
const QuestionTypeComponent = computed(() => {
|
|
118
125
|
if (questionModel.value.type === EngineAuditQuestionType.QuestionOption)
|
|
@@ -125,6 +132,7 @@ const QuestionTypeComponent = computed(() => {
|
|
|
125
132
|
});
|
|
126
133
|
|
|
127
134
|
function updateQuestion({ path, value }) {
|
|
135
|
+
if (readonly) return;
|
|
128
136
|
questionModel.value = updateObject({
|
|
129
137
|
obj: questionModel.value,
|
|
130
138
|
path,
|
|
@@ -133,6 +141,7 @@ function updateQuestion({ path, value }) {
|
|
|
133
141
|
}
|
|
134
142
|
|
|
135
143
|
function handleQuestionTypeChange(type) {
|
|
144
|
+
if (readonly) return;
|
|
136
145
|
const commonFields = {
|
|
137
146
|
question: questionModel.value.question,
|
|
138
147
|
required: questionModel.value.required,
|
|
@@ -40,7 +40,7 @@ import QuestionRead from './audit-form-question-read-wrapper.vue';
|
|
|
40
40
|
import QuestionWrite from './audit-form-question-write-wrapper.vue';
|
|
41
41
|
|
|
42
42
|
const mode = inject('mode');
|
|
43
|
-
const readonly = inject('readonly');
|
|
43
|
+
const readonly = inject<boolean>('readonly', false);
|
|
44
44
|
|
|
45
45
|
const questionModel = defineModel<EngineQuestion>('question');
|
|
46
46
|
const answerModel = defineModel<EngineQuestionAnswer | null>('answer');
|
|
@@ -107,11 +107,11 @@ const v$ = useVuelidate(
|
|
|
107
107
|
);
|
|
108
108
|
|
|
109
109
|
const component = computed(() => {
|
|
110
|
-
if (readonly) return QuestionRead;
|
|
111
110
|
if (mode === 'create') {
|
|
112
111
|
if (state.value === QuestionState.SAVED) return QuestionRead;
|
|
113
112
|
return QuestionWrite;
|
|
114
113
|
}
|
|
114
|
+
if (readonly) return QuestionRead;
|
|
115
115
|
return QuestionRead;
|
|
116
116
|
});
|
|
117
117
|
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
:label="$t('webitelUI.auditForm.option', 1)"
|
|
5
5
|
:v="v$.option.name"
|
|
6
6
|
:model-value="option.name"
|
|
7
|
+
:disabled="readonly"
|
|
7
8
|
prevent-trim
|
|
8
9
|
@update:model-value="emit('update:option', { name: $event, score: option.score })"
|
|
9
10
|
/>
|
|
@@ -11,12 +12,13 @@
|
|
|
11
12
|
:label="$t('webitelUI.auditForm.score', 1)"
|
|
12
13
|
:v="v$.option.score"
|
|
13
14
|
:model-value="option.score"
|
|
15
|
+
:disabled="readonly"
|
|
14
16
|
@update:model-value="emit('update:option', { name: option.name, score: $event })"
|
|
15
17
|
/>
|
|
16
18
|
|
|
17
19
|
<wt-icon-btn
|
|
18
20
|
v-tooltip="$t('reusable.delete')"
|
|
19
|
-
:disabled="
|
|
21
|
+
:disabled="isDeleteDisabled"
|
|
20
22
|
icon="bucket"
|
|
21
23
|
@click="emit('delete')"
|
|
22
24
|
/>
|
|
@@ -26,7 +28,7 @@
|
|
|
26
28
|
<script setup>
|
|
27
29
|
import { useVuelidate } from '@vuelidate/core';
|
|
28
30
|
import { maxValue, minValue, required } from '@vuelidate/validators';
|
|
29
|
-
import { computed, onMounted, toRefs } from 'vue';
|
|
31
|
+
import { computed, inject, onMounted, toRefs } from 'vue';
|
|
30
32
|
|
|
31
33
|
import WtIconBtn from '../../../../../components/wt-icon-btn/wt-icon-btn.vue';
|
|
32
34
|
import WtTooltip from '../../../../../components/wt-tooltip/wt-tooltip.vue';
|
|
@@ -50,6 +52,8 @@ const emit = defineEmits([
|
|
|
50
52
|
|
|
51
53
|
// is needed for useVuelidate, because props.question/props.result isn't reactive
|
|
52
54
|
const { option } = toRefs(props);
|
|
55
|
+
const readonly = inject('readonly', false);
|
|
56
|
+
const isDeleteDisabled = computed(() => props.first || readonly);
|
|
53
57
|
|
|
54
58
|
const v$ = useVuelidate(
|
|
55
59
|
computed(() => ({
|
package/src/modules/AuditForm/components/form-questions/options/audit-form-question-options.vue
CHANGED
|
@@ -16,6 +16,7 @@
|
|
|
16
16
|
/>
|
|
17
17
|
<wt-button
|
|
18
18
|
class="audit-form-question-options-write__add-button"
|
|
19
|
+
:disabled="readonly"
|
|
19
20
|
@click="addQuestionOption"
|
|
20
21
|
>
|
|
21
22
|
{{ $t('reusable.add') }}
|
|
@@ -43,7 +44,7 @@ import type {
|
|
|
43
44
|
EngineQuestion,
|
|
44
45
|
EngineQuestionAnswer,
|
|
45
46
|
} from '@webitel/api-services/gen/models';
|
|
46
|
-
|
|
47
|
+
import { inject } from 'vue';
|
|
47
48
|
import { WtButton, WtRadio } from '../../../../../components';
|
|
48
49
|
import updateObject from '../../../../../scripts/updateObject.js';
|
|
49
50
|
import { generateOption } from '../../../schemas/AuditFormQuestionOptionsSchema';
|
|
@@ -51,6 +52,7 @@ import OptionsWriteRow from './audit-form-question-options-write-row.vue';
|
|
|
51
52
|
|
|
52
53
|
const questionModel = defineModel<EngineQuestion>('question');
|
|
53
54
|
const answerModel = defineModel<EngineQuestionAnswer | null>('answer');
|
|
55
|
+
const readonly = inject<boolean>('readonly', false);
|
|
54
56
|
|
|
55
57
|
defineProps<{
|
|
56
58
|
/**
|
|
@@ -60,6 +62,7 @@ defineProps<{
|
|
|
60
62
|
}>();
|
|
61
63
|
|
|
62
64
|
function updateQuestion({ path, value }) {
|
|
65
|
+
if (readonly) return;
|
|
63
66
|
questionModel.value = updateObject({
|
|
64
67
|
obj: questionModel.value,
|
|
65
68
|
path,
|
|
@@ -68,6 +71,7 @@ function updateQuestion({ path, value }) {
|
|
|
68
71
|
}
|
|
69
72
|
|
|
70
73
|
function addQuestionOption() {
|
|
74
|
+
if (readonly) return;
|
|
71
75
|
const options = [
|
|
72
76
|
...questionModel.value.options,
|
|
73
77
|
generateOption(),
|
|
@@ -79,6 +83,7 @@ function addQuestionOption() {
|
|
|
79
83
|
}
|
|
80
84
|
|
|
81
85
|
function deleteQuestionOption({ key }) {
|
|
86
|
+
if (readonly) return;
|
|
82
87
|
const options = [
|
|
83
88
|
...questionModel.value.options,
|
|
84
89
|
];
|
|
@@ -8,6 +8,7 @@
|
|
|
8
8
|
:label="$t('reusable.from')"
|
|
9
9
|
:v="v$.question.min"
|
|
10
10
|
:model-value="question.min"
|
|
11
|
+
:disabled="readonly"
|
|
11
12
|
required
|
|
12
13
|
@update:model-value="updateQuestion({ path: 'min', value: $event })"
|
|
13
14
|
/>
|
|
@@ -15,6 +16,7 @@
|
|
|
15
16
|
:label="$t('reusable.to')"
|
|
16
17
|
:v="v$.question.max"
|
|
17
18
|
:model-value="question.max"
|
|
19
|
+
:disabled="readonly"
|
|
18
20
|
required
|
|
19
21
|
@update:model-value="updateQuestion({ path: 'max', value: $event })"
|
|
20
22
|
/>
|
|
@@ -42,13 +44,14 @@ import type {
|
|
|
42
44
|
EngineQuestion,
|
|
43
45
|
EngineQuestionAnswer,
|
|
44
46
|
} from '@webitel/api-services/gen/models';
|
|
45
|
-
import { computed, onMounted } from 'vue';
|
|
47
|
+
import { computed, inject, onMounted } from 'vue';
|
|
46
48
|
|
|
47
49
|
import WtRadio from '../../../../../components/wt-radio/wt-radio.vue';
|
|
48
50
|
import updateObject from '../../../../../scripts/updateObject.js';
|
|
49
51
|
|
|
50
52
|
const answerModel = defineModel<EngineQuestionAnswer | null>('answer');
|
|
51
53
|
const questionModel = defineModel<EngineQuestion>('question');
|
|
54
|
+
const readonly = inject<boolean>('readonly', false);
|
|
52
55
|
|
|
53
56
|
defineProps({
|
|
54
57
|
mode: {
|
|
@@ -108,6 +111,7 @@ function updateAnswer(score) {
|
|
|
108
111
|
}
|
|
109
112
|
|
|
110
113
|
function updateQuestion({ path, value }) {
|
|
114
|
+
if (readonly) return;
|
|
111
115
|
questionModel.value = updateObject({
|
|
112
116
|
obj: questionModel.value,
|
|
113
117
|
path,
|