bfg-common 1.4.835 → 1.4.837

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.
@@ -2977,6 +2977,7 @@
2977
2977
  "createSphereHaNetwork": "Стварыце сферу сеткі HA",
2978
2978
  "prerequisitesDescOne": "Гэтая прыватная сетка павінна быць асобна ад сеткі кіравання. ",
2979
2979
  "reserveStaticIpAddressesNodes": "Рэзервовыя статычныя IP -адрасы для ўсіх вузлоў",
2980
- "prerequisitesDescSecond": "Яны спатрэбяцца ў наладах сферы HA IP падчас працэсу наладжвання."
2980
+ "prerequisitesDescSecond": "Яны спатрэбяцца ў наладах сферы HA IP падчас працэсу наладжвання.",
2981
+ "invalidFormatIpv4": "Недапушчальны фармат. Выкарыстоўвайце XXX.XXX.XXX.XXX.XXX (0-255)"
2981
2982
  }
2982
2983
  }
@@ -2981,7 +2981,7 @@
2981
2981
  "createSphereHaNetwork": "Create a Sphere HA network",
2982
2982
  "prerequisitesDescOne": "This private network must be separate from the management network. It is used for internal communication between the nodes. For best performance, the network latency between the nodes should be less than or equal to 10ms.",
2983
2983
  "reserveStaticIpAddressesNodes": "Reserve static IP addresses for all the nodes",
2984
- "prerequisitesDescSecond": "These will be required in Sphere HA IP settings during the set up process."
2985
-
2984
+ "prerequisitesDescSecond": "These will be required in Sphere HA IP settings during the set up process.",
2985
+ "invalidFormatIpv4": "Invalid format. Use XXX.XXX.XXX.XXX (0-255)"
2986
2986
  }
2987
2987
  }
@@ -2981,6 +2981,7 @@
2981
2981
  "createSphereHaNetwork": "Ստեղծեք ոլորտի հա ցանց",
2982
2982
  "prerequisitesDescOne": "Այս մասնավոր ցանցը պետք է լինի անջատված կառավարման ցանցից: ",
2983
2983
  "reserveStaticIpAddressesNodes": "Ամրագրեք ստատիկ IP հասցեները բոլոր հանգույցների համար",
2984
- "prerequisitesDescSecond": "Դրանք կպահանջվեն SHOLE HA IP- ի պարամետրերում ստեղծված գործընթացում:"
2984
+ "prerequisitesDescSecond": "Դրանք կպահանջվեն SHOLE HA IP- ի պարամետրերում ստեղծված գործընթացում:",
2985
+ "invalidFormatIpv4": "Անվավեր ձևաչափ: Օգտագործեք XXX.XXX.XXX.XXX.XXX (0-255)"
2985
2986
  }
2986
2987
  }
@@ -2980,6 +2980,7 @@
2980
2980
  "createSphereHaNetwork": "Сфера га желісін жасаңыз",
2981
2981
  "prerequisitesDescOne": "Бұл жеке желі басқару желісінен бөлек болуы керек. ",
2982
2982
  "reserveStaticIpAddressesNodes": "Барлық түйіндерге арналған статикалық IP мекенжайлары",
2983
- "prerequisitesDescSecond": "Оларды орнату кезінде IP параметрлерінде қажет болады."
2983
+ "prerequisitesDescSecond": "Оларды орнату кезінде IP параметрлерінде қажет болады.",
2984
+ "invalidFormatIpv4": "Жарамсыз формат. Xxx.XXX.XXX.XXX (0-255)пайдалану"
2984
2985
  }
2985
2986
  }
@@ -2982,6 +2982,7 @@
2982
2982
  "createSphereHaNetwork": "Создать сеть сферы HA",
2983
2983
  "prerequisitesDescOne": "Эта частная сеть должна быть отделена от сети управления. ",
2984
2984
  "reserveStaticIpAddressesNodes": "Резервировать статические IP -адреса для всех узлов",
2985
- "prerequisitesDescSecond": "Они потребуются в сфере настройки IP в течение процесса настройки."
2985
+ "prerequisitesDescSecond": "Они потребуются в сфере настройки IP в течение процесса настройки.",
2986
+ "invalidFormatIpv4": "Недопустимый формат. Используйте XXX.XXX.XXX.XXX.XXX (0-255)"
2986
2987
  }
2987
2988
  }
@@ -2979,6 +2979,7 @@
2979
2979
  "createSphereHaNetwork": "创建一个Sphere HA网络",
2980
2980
  "prerequisitesDescOne": "该专用网络必须与管理网络分开。",
2981
2981
  "reserveStaticIpAddressesNodes": "保留所有节点的静态IP地址",
2982
- "prerequisitesDescSecond": "在设置过程中,在Sphere HA IP设置中需要这些。"
2982
+ "prerequisitesDescSecond": "在设置过程中,在Sphere HA IP设置中需要这些。",
2983
+ "invalidFormatIpv4": "格式无效。 使用XXX.XXX.XXX.XXX(0-255)"
2983
2984
  }
2984
2985
  }
@@ -42,7 +42,7 @@
42
42
  :value="value"
43
43
  btn-class="btn"
44
44
  @change="change"
45
- @select-file="onSelectFile"
45
+ @select-file="onSelectFile($event, key)"
46
46
  />
47
47
  </li>
48
48
  </ul>
@@ -68,15 +68,15 @@ const props = withDefaults(
68
68
  )
69
69
  const emits = defineEmits<{
70
70
  (event: 'change', value: number): void
71
- (event: 'select-file', value1: Event, value2: string): void
71
+ (event: 'select-file', value1: Event, value2: string, value3: number): void
72
72
  }>()
73
73
 
74
74
  const change = (value: number): void => {
75
75
  emits('change', value)
76
76
  props.closeAfterClick && (open.value = false)
77
77
  }
78
- const onSelectFile = (event: Event, type: string): void => {
79
- emits('select-file', event, type)
78
+ const onSelectFile = (event: Event, type: string, key: number): void => {
79
+ emits('select-file', event, type, key)
80
80
  }
81
81
 
82
82
  const collapsedBtnId = ref<string>('')
@@ -50,7 +50,7 @@ const modalTextsLocal = computed<UI_I_ModalTexts>(() => props.modalTexts)
50
50
 
51
51
  const isShowConfirmError = ref<boolean>(false)
52
52
 
53
- const confirmInputErrorText = computed(() => {
53
+ const confirmInputErrorText = computed<string>(() => {
54
54
  if (!isShowConfirmError.value) return ''
55
55
 
56
56
  const { fieldRequired, incorrectConfirmation } = localization.value.common
@@ -20,7 +20,7 @@
20
20
  :disabled="button.disabled"
21
21
  :multiple="button?.multiple || false"
22
22
  class="btn-group__file"
23
- @change="(event) => onSelectFiles(event, button.type)"
23
+ @change="(event) => onSelectFiles(event, button.type, key)"
24
24
  />
25
25
  </label>
26
26
 
@@ -69,8 +69,11 @@ const onClickButton = (type: string): void => {
69
69
  emits('click', type)
70
70
  }
71
71
 
72
- const onSelectFiles = (event: Event, type: string): void => {
72
+ const onSelectFiles = (event: Event, type: string, key: number): void => {
73
73
  emits('click', type, event)
74
+
75
+ const input = document.getElementById(`select-file-button-${key}`) as HTMLInputElement | null
76
+ input && (input.value = '')
74
77
  }
75
78
 
76
79
  const visibleCount = ref<number>(props.actions.length)
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "bfg-common",
3
3
  "private": false,
4
- "version": "1.4.835",
4
+ "version": "1.4.837",
5
5
  "scripts": {
6
6
  "build": "nuxt build",
7
7
  "dev": "nuxt dev --port=3002",