@webitel/ui-sdk 3.2.85 → 3.2.87

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@webitel/ui-sdk",
3
- "version": "3.2.85",
3
+ "version": "3.2.87",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "serve-lib": "vue-cli-service serve",
@@ -40,6 +40,7 @@
40
40
  "deep-copy": "^1.4.2",
41
41
  "deep-equal": "^2.0.3",
42
42
  "file-saver": "^2.0.2",
43
+ "is-valid-domain": "^0.1.6",
43
44
  "jszip": "^3.5.0",
44
45
  "jszip-utils": "^0.1.0",
45
46
  "node-polyfill-webpack-plugin": "^1.1.4",
@@ -245,6 +245,7 @@ export default {
245
245
  minLength: 'Quantity of characters should not be less than',
246
246
  url: 'Should look like url',
247
247
  regExpValidator: 'This regular expression is not valid',
248
+ domainValidator: 'Incorrect domain',
248
249
  },
249
250
  webitelUI: {
250
251
  searchBar: {
@@ -242,6 +242,7 @@ export default {
242
242
  minLength: 'Количество символов не должно быть меньше, чем',
243
243
  url: 'Необходимо ввести корректный url-адрес',
244
244
  regExpValidator: 'Не правильное регулярное выражение',
245
+ domainValidator: 'Неправильный домен',
245
246
  },
246
247
  webitelUI: {
247
248
  searchBar: {
@@ -259,7 +260,7 @@ export default {
259
260
  pagination: {
260
261
  sizeText: 'Записей на странице:',
261
262
  prev: 'Назад',
262
- next: 'Вперед',
263
+ next: 'Далее',
263
264
  },
264
265
  appNavigator: {
265
266
  title: 'Приложения Webitel',
@@ -242,6 +242,7 @@ export default {
242
242
  minLength: 'Кількість символів повинна бути не меншою, ніж',
243
243
  url: 'Необхідно ввести правильну url-адресу',
244
244
  regExpValidator: 'Не правильний регулярний вираз',
245
+ domainValidator: 'Невірний домен',
245
246
  },
246
247
  webitelUI: {
247
248
  searchBar: {
@@ -259,7 +260,7 @@ export default {
259
260
  pagination: {
260
261
  sizeText: 'Записів на сторінці:',
261
262
  prev: 'Назад',
262
- next: 'Вперед',
263
+ next: 'Далі',
263
264
  },
264
265
  appNavigator: {
265
266
  title: 'Застосунки Webitel',
@@ -32,6 +32,7 @@ export default {
32
32
  else if (this.v.url?.$invalid) validationText = `${this.$t('validation.url')}`;
33
33
  else if (this.v.regExpValidator?.$invalid) validationText = `${this.$t('validation.regExpValidator')}`;
34
34
  else if (this.v.sameAs?.$invalid) validationText = `${this.$t('validation.sameAs')}`;
35
+ else if (this.v.domainValidator?.$invalid) validationText = `${this.$t('validation.domainValidator')}`;
35
36
  }
36
37
  // eslint-disable-next-line no-restricted-syntax
37
38
  for (const { name, text } of this.customValidators) {
@@ -0,0 +1,5 @@
1
+ import isValidDomain from 'is-valid-domain';
2
+
3
+ const domainValidator = (value) => isValidDomain(value);
4
+
5
+ export default domainValidator;