@webitel/ui-sdk 26.8.22 → 26.8.23
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/{components-BENKf-0C.js → components-Q-Lkl5tb.js} +4 -4
- package/dist/ui-sdk.js +1 -1
- package/dist/ui-sdk.umd.cjs +1 -1
- package/dist/{useValidation-B4_82RZv.js → useValidation-C_F39G5j.js} +1 -1
- package/dist/{wt-chat-emoji-ByGj5Mh4.js → wt-chat-emoji-CiL3CTCQ.js} +1 -1
- package/dist/{wt-datepicker-OIgnVIpv.js → wt-datepicker-BwjMwR9-.js} +1 -1
- package/dist/{wt-display-chip-items-BUlu4Pqh.js → wt-display-chip-items-DXfs6aQp.js} +1 -1
- package/dist/{wt-search-bar-CagDl5av.js → wt-search-bar-DaBSWvlP.js} +1 -1
- package/dist/{wt-send-message-popup-zjxEP-HK.js → wt-send-message-popup-BvnTPEeX.js} +1 -1
- package/dist/{wt-timepicker-CQ2TRigf.js → wt-timepicker-CS5S9HHJ.js} +1 -1
- package/dist/{wt-type-extension-value-input-l3TF0Xtv.js → wt-type-extension-value-input-bsEXPInV.js} +1 -1
- package/dist/{wt-vidstack-player-DV_fxJKW.js → wt-vidstack-player-BymuGcAX.js} +1 -1
- package/package.json +1 -1
- package/src/locale/en/en.js +2 -0
- package/src/locale/es/es.js +2 -0
- package/src/locale/kz/kz.js +2 -0
- package/src/locale/pl/pl.js +2 -0
- package/src/locale/ro/ro.js +2 -0
- package/src/locale/ru/ru.js +2 -0
- package/src/locale/uk/uk.js +2 -0
- package/src/locale/uz/uz.js +2 -0
- package/src/locale/vi/vi.js +2 -0
- package/src/mixins/validationMixin/vuelidate/useVuelidateValidation.ts +2 -0
- package/types/.tsbuildinfo +1 -1
- package/types/locale/en/en.d.ts +1 -0
- package/types/locale/es/es.d.ts +1 -0
- package/types/locale/i18n.d.ts +9 -0
- package/types/locale/index.d.ts +9 -0
- package/types/locale/kz/kz.d.ts +1 -0
- package/types/locale/pl/pl.d.ts +1 -0
- package/types/locale/ro/ro.d.ts +1 -0
- package/types/locale/ru/ru.d.ts +1 -0
- package/types/locale/uk/uk.d.ts +1 -0
- package/types/locale/uz/uz.d.ts +1 -0
- package/types/locale/vi/vi.d.ts +1 -0
|
@@ -14,7 +14,7 @@ var o = ({ field: e }) => ({
|
|
|
14
14
|
invalid: d,
|
|
15
15
|
validationText: n(() => {
|
|
16
16
|
let e = "", t = c?.value;
|
|
17
|
-
t && u.value && d.value && (t.required?.$invalid ? e = s("validation.required") : t.numeric?.$invalid ? e = s("validation.numeric") : t.email?.$invalid ? e = s("validation.email") : t.gatewayHostValidator?.$invalid ? e = s("validation.gatewayHostValidator") : t.ipValidator?.$invalid ? e = s("validation.ipValidator") : t.macValidator?.$invalid ? e = s("validation.macValidator") : t.minValue?.$invalid ? e = s("validation.minValue", { min: t.minValue.$params.min }) : t.maxValue?.$invalid ? e = s("validation.maxValue", { max: t.maxValue.$params.max }) : t.maxLength?.$invalid ? e = s("validation.maxLength", { max: t.maxLength.$params.max }) : t.sipAccountValidator?.$invalid ? e = s("validation.sipAccountValidator") : t.minLength?.$invalid ? e = s("validation.minLength", { min: t.minLength.$params.min }) : t.url?.$invalid ? e = `${s("validation.url")}` : t.regExpValidator?.$invalid ? e = `${s("validation.regExpValidator")}` : t.sameAs?.$invalid ? e = `${s("validation.sameAs")}` : t.domainValidator?.$invalid ? e = `${s("validation.domainValidator")}` : t.decimalValidator?.$invalid ? e = `${s("validation.decimalValidator")} ${t.decimalValidator.$params.count}` : t.websocketValidator?.$invalid ? e = `${s("validation.websocketValidator")}` : t.integer?.$invalid ? e = `${s("validation.integer")}` : t.regex?.$invalid ? e = t.regex?.$message || `${s("validation.isRegExpMatched")} ${t.regex?.$params?.regex}` : t.nameAlreadyInUse?.$invalid ? e = s("validation.nameAlreadyInUse") : t.phoneNumberSymbolsValidator?.$invalid ? e = s("validation.phoneNumberSymbolsValidator") : t.loginValidator?.$invalid && (e = s("validation.loginValidator")));
|
|
17
|
+
t && u.value && d.value && (t.required?.$invalid ? e = s("validation.required") : t.numeric?.$invalid ? e = s("validation.numeric") : t.email?.$invalid ? e = s("validation.email") : t.gatewayHostValidator?.$invalid ? e = s("validation.gatewayHostValidator") : t.ipValidator?.$invalid ? e = s("validation.ipValidator") : t.macValidator?.$invalid ? e = s("validation.macValidator") : t.minValue?.$invalid ? e = s("validation.minValue", { min: t.minValue.$params.min }) : t.maxValue?.$invalid ? e = s("validation.maxValue", { max: t.maxValue.$params.max }) : t.maxLength?.$invalid ? e = s("validation.maxLength", { max: t.maxLength.$params.max }) : t.sipAccountValidator?.$invalid ? e = s("validation.sipAccountValidator") : t.minLength?.$invalid ? e = s("validation.minLength", { min: t.minLength.$params.min }) : t.url?.$invalid ? e = `${s("validation.url")}` : t.regExpValidator?.$invalid ? e = `${s("validation.regExpValidator")}` : t.sameAs?.$invalid ? e = `${s("validation.sameAs")}` : t.domainValidator?.$invalid ? e = `${s("validation.domainValidator")}` : t.decimalValidator?.$invalid ? e = `${s("validation.decimalValidator")} ${t.decimalValidator.$params.count}` : t.websocketValidator?.$invalid ? e = `${s("validation.websocketValidator")}` : t.integer?.$invalid ? e = `${s("validation.integer")}` : t.regex?.$invalid ? e = t.regex?.$message || `${s("validation.isRegExpMatched")} ${t.regex?.$params?.regex}` : t.nameAlreadyInUse?.$invalid ? e = s("validation.nameAlreadyInUse") : t.phoneNumberSymbolsValidator?.$invalid ? e = s("validation.phoneNumberSymbolsValidator") : t.sipPasswordSymbolsValidator?.$invalid ? e = s("validation.sipPasswordSymbolsValidator") : t.loginValidator?.$invalid && (e = s("validation.loginValidator")));
|
|
18
18
|
let n = i(l) ? l.value : void 0;
|
|
19
19
|
if (n) {
|
|
20
20
|
for (let { name: r, text: i } of n) t?.[r]?.$invalid && (e = i);
|
|
@@ -2,7 +2,7 @@ import { t as e } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
|
2
2
|
import { d as t, f as n, l as r, r as i } from "./enums-De8CDKZ1.js";
|
|
3
3
|
import { a, i as o, n as s, r as c, t as l } from "./toZonedTime-B8L5kbse.js";
|
|
4
4
|
import { t as u } from "./vue-i18n-Db_oYfO8.js";
|
|
5
|
-
import { t as d } from "./useValidation-
|
|
5
|
+
import { t as d } from "./useValidation-C_F39G5j.js";
|
|
6
6
|
import { computed as f, createBlock as p, createCommentVNode as m, createElementBlock as h, createElementVNode as g, createTextVNode as _, createVNode as v, defineComponent as y, guardReactiveProps as b, mergeModels as x, mergeProps as S, nextTick as C, normalizeProps as w, onMounted as T, onUnmounted as E, openBlock as D, renderSlot as O, resolveComponent as k, toDisplayString as A, toRefs as j, unref as M, useModel as N, useTemplateRef as ee, vShow as te, withCtx as P, withDirectives as F } from "vue";
|
|
7
7
|
import I from "primevue/datepicker";
|
|
8
8
|
//#region node_modules/date-fns-tz/dist/esm/fromZonedTime/index.js
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { C as e, i as t } from "./components-
|
|
1
|
+
import { C as e, i as t } from "./components-Q-Lkl5tb.js";
|
|
2
2
|
import { t as n } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
3
3
|
import { t as r } from "./displayText-CtaxzaBz.js";
|
|
4
4
|
import { Fragment as i, computed as a, createCommentVNode as o, createElementBlock as s, createTextVNode as c, createVNode as l, defineComponent as u, openBlock as d, renderList as f, renderSlot as p, toDisplayString as m, unref as h, withCtx as g } from "vue";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as e } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
2
2
|
import { t } from "./debounce-Bp3jy7S5.js";
|
|
3
|
-
import { t as n } from "./useValidation-
|
|
3
|
+
import { t as n } from "./useValidation-C_F39G5j.js";
|
|
4
4
|
import { computed as r, createBlock as i, createCommentVNode as a, createElementVNode as o, createSlots as s, createTextVNode as c, createVNode as l, defineComponent as u, normalizeClass as d, openBlock as f, renderSlot as p, resolveComponent as m, resolveDirective as h, toDisplayString as g, toRefs as _, unref as v, withCtx as y, withDirectives as b } from "vue";
|
|
5
5
|
//#region src/components/wt-search-bar/wt-search-bar.vue?vue&type=script&setup=true&lang.ts
|
|
6
6
|
var x = { class: "wt-search-bar__icon-controls" }, S = /*#__PURE__*/ e(/* @__PURE__ */ u({
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as e } from "./rolldown-runtime-BEcgMyyN.js";
|
|
2
2
|
import { n as t, r as n } from "./clients-Cgrz-ee-.js";
|
|
3
|
-
import { T as r, n as i, w as a } from "./components-
|
|
3
|
+
import { T as r, n as i, w as a } from "./components-Q-Lkl5tb.js";
|
|
4
4
|
import { t as o } from "./vue-i18n-Db_oYfO8.js";
|
|
5
5
|
import { n as s } from "./useEventBus-B-ZeklLu.js";
|
|
6
6
|
import { createBlock as c, createTextVNode as l, createVNode as u, defineComponent as d, mergeProps as f, onMounted as p, openBlock as m, ref as h, resolveComponent as g, toDisplayString as _, unref as v, withCtx as y } from "vue";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as e } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
2
2
|
import { l as t, r as n } from "./enums-De8CDKZ1.js";
|
|
3
3
|
import { t as r } from "./vue-i18n-Db_oYfO8.js";
|
|
4
|
-
import { t as i } from "./useValidation-
|
|
4
|
+
import { t as i } from "./useValidation-C_F39G5j.js";
|
|
5
5
|
import { computed as a, createBlock as o, createCommentVNode as s, createElementBlock as c, createElementVNode as l, createTextVNode as u, defineComponent as d, guardReactiveProps as f, mergeProps as p, nextTick as m, normalizeClass as h, normalizeProps as g, openBlock as _, renderSlot as v, resolveComponent as y, toDisplayString as b, toRefs as x, unref as S, withCtx as C } from "vue";
|
|
6
6
|
//#region src/components/wt-timepicker/wt-timepicker.vue?vue&type=script&setup=true&lang.ts
|
|
7
7
|
var w = { class: "wt-timepicker__wrapper" }, T = 3600, E = 60, D = /*#__PURE__*/ e(/* @__PURE__ */ d({
|
package/dist/{wt-type-extension-value-input-l3TF0Xtv.js → wt-type-extension-value-input-bsEXPInV.js}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as e } from "./clients-Cgrz-ee-.js";
|
|
2
|
-
import { a as t, o as n, r, s as i } from "./components-
|
|
2
|
+
import { a as t, o as n, r, s as i } from "./components-Q-Lkl5tb.js";
|
|
3
3
|
import { t as a } from "./enums-De8CDKZ1.js";
|
|
4
4
|
import { t as o } from "./vue-i18n-Db_oYfO8.js";
|
|
5
5
|
import { computed as s, createBlock as c, createCommentVNode as l, createVNode as u, defineComponent as d, mergeModels as f, mergeProps as p, openBlock as m, renderSlot as h, resolveComponent as g, unref as _, useModel as v } from "vue";
|
package/package.json
CHANGED
package/src/locale/en/en.js
CHANGED
|
@@ -492,6 +492,8 @@ export default deepmerge(
|
|
|
492
492
|
nameAlreadyInUse: 'This name is already in use',
|
|
493
493
|
phoneNumberSymbolsValidator:
|
|
494
494
|
"Number must contain letters (a-z, A-Z), numbers (0-9), and special characters: +, -, _, ., !, ~, *, ', (,)",
|
|
495
|
+
sipPasswordSymbolsValidator:
|
|
496
|
+
'Password cannot contain special symbols and whitespaces',
|
|
495
497
|
loginValidator: () => `Enter login in the format name${'@'}domain`,
|
|
496
498
|
},
|
|
497
499
|
webitelUI: {
|
package/src/locale/es/es.js
CHANGED
|
@@ -478,6 +478,8 @@ export default {
|
|
|
478
478
|
nameAlreadyInUse: 'Este nombre ya está en uso',
|
|
479
479
|
phoneNumberSymbolsValidator:
|
|
480
480
|
"El número solo puede contener letras (a-z, A-Z), números (0-9) y los símbolos: +, -, _, ., !, ~, *, ', (, )",
|
|
481
|
+
sipPasswordSymbolsValidator:
|
|
482
|
+
'La contraseña no puede contener símbolos especiales ni espacios',
|
|
481
483
|
loginValidator: () =>
|
|
482
484
|
`Introduzca el inicio de sesión en el formato nombre${'@'}dominio`,
|
|
483
485
|
},
|
package/src/locale/kz/kz.js
CHANGED
|
@@ -480,6 +480,8 @@ export default {
|
|
|
480
480
|
nameAlreadyInUse: 'Бұл атау қолданыста',
|
|
481
481
|
phoneNumberSymbolsValidator:
|
|
482
482
|
"Нөмірде тек әріптер (a-z, A-Z), сандар (0-9) және мына таңбалар болуы мүмкін: +, -, _, ., !, ~, *, ', (, )",
|
|
483
|
+
sipPasswordSymbolsValidator:
|
|
484
|
+
'Құпия сөзде арнайы таңбалар мен бос орындар болмауы керек',
|
|
483
485
|
loginValidator: () => `Логинді есім${'@'}домен форматында енгізіңіз`,
|
|
484
486
|
},
|
|
485
487
|
webitelUI: {
|
package/src/locale/pl/pl.js
CHANGED
|
@@ -481,6 +481,8 @@ export default {
|
|
|
481
481
|
nameAlreadyInUse: 'Ta nazwa jest już używana',
|
|
482
482
|
phoneNumberSymbolsValidator:
|
|
483
483
|
"Numer może zawierać wyłącznie litery (a-z, A-Z), cyfry (0-9) oraz symbole: +, -, _, ., !, ~, *, ', (, )",
|
|
484
|
+
sipPasswordSymbolsValidator:
|
|
485
|
+
'Hasło nie może zawierać znaków specjalnych ani spacji',
|
|
484
486
|
loginValidator: () => `Wprowadź login w formacie nazwa${'@'}domena`,
|
|
485
487
|
},
|
|
486
488
|
webitelUI: {
|
package/src/locale/ro/ro.js
CHANGED
|
@@ -485,6 +485,8 @@ export default {
|
|
|
485
485
|
nameAlreadyInUse: 'Acest nume este deja folosit',
|
|
486
486
|
phoneNumberSymbolsValidator:
|
|
487
487
|
"Numărul poate conține doar litere (a-z, A-Z), cifre (0-9) și simbolurile: +, -, _, ., !, ~, *, ', (, )",
|
|
488
|
+
sipPasswordSymbolsValidator:
|
|
489
|
+
'Parola nu poate conține simboluri speciale sau spații',
|
|
488
490
|
loginValidator: () => `Introduceți login-ul în formatul nume${'@'}domeniu`,
|
|
489
491
|
},
|
|
490
492
|
webitelUI: {
|
package/src/locale/ru/ru.js
CHANGED
|
@@ -480,6 +480,8 @@ export default {
|
|
|
480
480
|
nameAlreadyInUse: 'Это название уже используется',
|
|
481
481
|
phoneNumberSymbolsValidator:
|
|
482
482
|
"Номер может содержать только буквы (a-z, A-Z), цифры (0-9) и символы: +, -, _, ., !, ~, *, ', (, )",
|
|
483
|
+
sipPasswordSymbolsValidator:
|
|
484
|
+
'Пароль не может содержать спецсимволы и пробелы',
|
|
483
485
|
loginValidator: () => `Введите логин в формате имя${'@'}домен`,
|
|
484
486
|
},
|
|
485
487
|
webitelUI: {
|
package/src/locale/uk/uk.js
CHANGED
|
@@ -479,6 +479,8 @@ export default {
|
|
|
479
479
|
nameAlreadyInUse: 'Така назва вже використовується',
|
|
480
480
|
phoneNumberSymbolsValidator:
|
|
481
481
|
"Номер може містити лише літери (a-z, A-Z), цифри (0-9) та символи: +, -, _, ., !, ~, *, ', (, )",
|
|
482
|
+
sipPasswordSymbolsValidator:
|
|
483
|
+
'Пароль не може містити спецсимволи та пробіли',
|
|
482
484
|
loginValidator: () => `Введіть логін у форматі імʼя${'@'}домен`,
|
|
483
485
|
},
|
|
484
486
|
webitelUI: {
|
package/src/locale/uz/uz.js
CHANGED
|
@@ -485,6 +485,8 @@ export default {
|
|
|
485
485
|
nameAlreadyInUse: 'Ushbu nom allaqachon mavjud',
|
|
486
486
|
phoneNumberSymbolsValidator:
|
|
487
487
|
"Raqamda faqat harflar (a-z, A-Z), raqamlar (0-9) va quyidagi belgilar bo'lishi mumkin: +, -, _, ., !, ~, *, ', (, )",
|
|
488
|
+
sipPasswordSymbolsValidator:
|
|
489
|
+
"Parol maxsus belgilar va bo'sh joylarni o'z ichiga olishi mumkin emas",
|
|
488
490
|
loginValidator: () => `Loginni ism${'@'}domen formatida kiriting`,
|
|
489
491
|
},
|
|
490
492
|
webitelUI: {
|
package/src/locale/vi/vi.js
CHANGED
|
@@ -484,6 +484,8 @@ export default {
|
|
|
484
484
|
nameAlreadyInUse: 'Tên này đã được sử dụng',
|
|
485
485
|
phoneNumberSymbolsValidator:
|
|
486
486
|
"Số chỉ được chứa chữ cái (a-z, A-Z), chữ số (0-9) và các ký tự: +, -, _, ., !, ~, *, ', (, )",
|
|
487
|
+
sipPasswordSymbolsValidator:
|
|
488
|
+
'Mật khẩu không được chứa ký tự đặc biệt và khoảng trắng',
|
|
487
489
|
loginValidator: () => `Nhập tên đăng nhập theo định dạng tên${'@'}miền`,
|
|
488
490
|
},
|
|
489
491
|
webitelUI: {
|
|
@@ -115,6 +115,8 @@ export const useFieldValidation = ({
|
|
|
115
115
|
validationText = t('validation.nameAlreadyInUse');
|
|
116
116
|
} else if (validation.phoneNumberSymbolsValidator?.$invalid) {
|
|
117
117
|
validationText = t('validation.phoneNumberSymbolsValidator');
|
|
118
|
+
} else if (validation.sipPasswordSymbolsValidator?.$invalid) {
|
|
119
|
+
validationText = t('validation.sipPasswordSymbolsValidator');
|
|
118
120
|
} else if (validation.loginValidator?.$invalid) {
|
|
119
121
|
validationText = t('validation.loginValidator');
|
|
120
122
|
}
|