@webitel/ui-sdk 23.12.24 → 23.12.25

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": "23.12.24",
3
+ "version": "23.12.25",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "build": "vue-cli-service build --target lib --name ui-sdk ./src/install.js",
@@ -257,6 +257,7 @@ export default {
257
257
  searchBar: {
258
258
  placeholder: 'Search',
259
259
  settingsHint: 'Search mode',
260
+ variableSearchHint: 'Query format: "key=value"',
260
261
  },
261
262
  timepicker: {
262
263
  hour: 'Hour:',
@@ -255,6 +255,7 @@ export default {
255
255
  searchBar: {
256
256
  placeholder: 'Поиск',
257
257
  settingsHint: 'Настройки поиска',
258
+ variableSearchHint: 'Формат запроса: "ключ=значение"',
258
259
  },
259
260
  timepicker: {
260
261
  hour: 'Час:',
@@ -255,6 +255,7 @@ export default {
255
255
  searchBar: {
256
256
  placeholder: 'Пошук',
257
257
  settingsHint: 'Налаштування пошуку',
258
+ variableSearchHint: 'Формат запиту: "ключ=значення"',
258
259
  },
259
260
  timepicker: {
260
261
  hour: 'Год:',
@@ -0,0 +1,4 @@
1
+ export default function variableSearchValidator(value) {
2
+ const isValid = /^(?!.*\s)[^\s=]+=[^\s=]+$/.test(value);
3
+ return !value || isValid;
4
+ };