bfg-common 1.4.849 → 1.4.851

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.
@@ -2502,7 +2502,7 @@
2502
2502
  "inventory": {
2503
2503
  "activeMemory": "Актыўная памяць",
2504
2504
  "locationHelp": "Дапамога месцазнаходжання",
2505
- "locationHelpDescription": "У гэтым месцы будзе створана новая тэчка."
2505
+ "locationHelpDescription": "У гэтым месцы будзе створаны новы {0}."
2506
2506
  },
2507
2507
  "inventoryMonitor": {
2508
2508
  "temperature": "Тэмпература",
@@ -2506,7 +2506,7 @@
2506
2506
  "inventory": {
2507
2507
  "activeMemory": "Active Memory",
2508
2508
  "locationHelp": "Location help",
2509
- "locationHelpDescription": "A new folder will be established at this location."
2509
+ "locationHelpDescription": "A new {0} will be established at this location."
2510
2510
  },
2511
2511
  "inventoryMonitor": {
2512
2512
  "temperature": "Temperature",
@@ -2506,7 +2506,7 @@
2506
2506
  "inventory": {
2507
2507
  "activeMemory": "Ակտիվ հիշողություն",
2508
2508
  "locationHelp": "Տեղադրության օգնություն",
2509
- "locationHelpDescription": "Այս վայրում կստեղծվի նոր թղթապանակ:"
2509
+ "locationHelpDescription": "Այս վայրում կստեղծվի նոր {0}:"
2510
2510
  },
2511
2511
  "inventoryMonitor": {
2512
2512
  "temperature": "Ջերմաստիճանը",
@@ -2505,7 +2505,7 @@
2505
2505
  "inventory": {
2506
2506
  "activeMemory": "Белсенді есте сақтау",
2507
2507
  "locationHelp": "Орналасқан жері бойынша анықтама",
2508
- "locationHelpDescription": "Бұл жерде жаңа қалта орнатылады."
2508
+ "locationHelpDescription": "Бұл жерде жаңа {0} орнатылады."
2509
2509
  },
2510
2510
  "inventoryMonitor": {
2511
2511
  "temperature": "Температура",
@@ -2507,7 +2507,7 @@
2507
2507
  "inventory": {
2508
2508
  "activeMemory": "Активная память",
2509
2509
  "locationHelp": "Местоположение помощь",
2510
- "locationHelpDescription": "В этом месте будет установлена новая папка."
2510
+ "locationHelpDescription": "В этом месте будет создан новый {0}."
2511
2511
  },
2512
2512
  "inventoryMonitor": {
2513
2513
  "temperature": "Температура",
@@ -2504,7 +2504,7 @@
2504
2504
  "inventory": {
2505
2505
  "activeMemory": "主动记忆",
2506
2506
  "locationHelp": "位置帮助",
2507
- "locationHelpDescription": "将在此位置建立一个新文件夹。"
2507
+ "locationHelpDescription": "将在此位置建立一个新的{0}。"
2508
2508
  },
2509
2509
  "inventoryMonitor": {
2510
2510
  "temperature": "温度",
@@ -7,6 +7,7 @@ const password =
7
7
  const url = /https?:\/\/([a-zA-Zа-яА-Я0-9.-]+\.[a-zA-Zа-яА-Я]{2,6})\b/
8
8
  const specialChar = /[!@#$%^&*(),.?":{}|<>]/
9
9
  const specialCharWidthSpace = /[!@#$%^&*(),?":{}|<>]|(\s)|\.$/
10
+ const cron = /^(\*|([0-9]|1[0-9]|2[0-9]|3[0-9]|4[0-9]|5[0-9])|\*\/([0-9]|1[0-9]|2[0-9]|3[0-9]|4[0-9]|5[0-9])) (\*|([0-9]|1[0-9]|2[0-3])|\*\/([0-9]|1[0-9]|2[0-3])) (\*|([1-9]|1[0-9]|2[0-9]|3[0-1])|\*\/([1-9]|1[0-9]|2[0-9]|3[0-1])) (\*|([1-9]|1[0-2])|\*\/([1-9]|1[0-2])) (\*|([0-6])|\*\/([0-6]))$/
10
11
  export const RegExp = {
11
12
  ip,
12
13
  email,
@@ -14,4 +15,5 @@ export const RegExp = {
14
15
  url,
15
16
  specialChar,
16
17
  specialCharWidthSpace,
17
- }
18
+ cron
19
+ }
@@ -1 +1 @@
1
- export type UI_T_ValueType = 'required' | 'ip' | 'password' | 'email' | 'url' | 'custom'
1
+ export type UI_T_ValueType = 'required' | 'ip' | 'password' | 'email' | 'url' | 'cron' | 'custom'
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "bfg-common",
3
3
  "private": false,
4
- "version": "1.4.849",
4
+ "version": "1.4.851",
5
5
  "scripts": {
6
6
  "build": "nuxt build",
7
7
  "dev": "nuxt dev --port=3002",
@@ -146,6 +146,12 @@ export default defineNuxtPlugin(() => {
146
146
  } else if (validation.value === 'url') {
147
147
  const isValid = value ? RegExp.url.test(value) : true
148
148
 
149
+ if (!isValid) {
150
+ error = validation.errorText
151
+ }
152
+ } else if (validation.value === 'cron') {
153
+ const isValid = value ? RegExp.cron.test(value) : true
154
+
149
155
  if (!isValid) {
150
156
  error = validation.errorText
151
157
  }