bfg-common 1.5.196 → 1.5.198

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.
@@ -2364,7 +2364,8 @@
2364
2364
  "hostMonitoring": "Гаспадар мониторинг",
2365
2365
  "admissionControl": "Прыём кіраванне",
2366
2366
  "reviewDetailsBeforeHostAdded": "Праверце дэталі перад даданнем хостынгу.",
2367
- "nameOrIpAddress": "Імя або IP-адрас"
2367
+ "nameOrIpAddress": "Імя або IP-адрас",
2368
+ "deleteDatacenterDesc": "Вы ўпэўненыя, што хочаце выдаліць цэнтр апрацоўкі дадзеных \" {0}\"? Гэта дзеянне таксама прывядзе да выдалення ўсіх яго аварыйных сігналаў і выдаленні ўсіх звязаных хастоў і віртуальных машын з спісу."
2368
2369
  },
2369
2370
  "auth": {
2370
2371
  "welcomeTo": "Сардэчна запрашаем у",
@@ -2368,7 +2368,8 @@
2368
2368
  "hostMonitoring": "Host Monitoring",
2369
2369
  "admissionControl": "Admission Control",
2370
2370
  "reviewDetailsBeforeHostAdded": "Review the details before the host is added.",
2371
- "nameOrIpAddress": "Name or IP address"
2371
+ "nameOrIpAddress": "Name or IP address",
2372
+ "deleteDatacenterDesc": "Are you sure you want to delete the datacenter “{0}”? This action will also delete all its alarms and remove all associated hosts and virtual machines from the inventory."
2372
2373
  },
2373
2374
  "auth": {
2374
2375
  "welcomeTo": "Welcome to",
@@ -2368,7 +2368,8 @@
2368
2368
  "hostMonitoring": "Հանգույցի մոնիտորինգ",
2369
2369
  "admissionControl": "Ընդունելության վերահսկում",
2370
2370
  "reviewDetailsBeforeHostAdded": "Ստուգեք մանրամասները նախքան հոստինգը ավելացնելը:",
2371
- "nameOrIpAddress": "Անուն կամ IP հասցե"
2371
+ "nameOrIpAddress": "Անուն կամ IP հասցե",
2372
+ "deleteDatacenterDesc": "Համոզված եք, որ ցանկանում եք ջնջել \"{0} \" տվյալների կենտրոնը: Այս գործողությունը նաև կջնջի դրա բոլոր ահազանգերը և կհեռացնի բոլոր հարակից սերվերներն ու վիրտուալ մեքենաները ցուցակից:"
2372
2373
  },
2373
2374
  "auth": {
2374
2375
  "welcomeTo": "Բարի գալուստ",
@@ -2367,7 +2367,8 @@
2367
2367
  "hostMonitoring": "Түйін бақылау",
2368
2368
  "admissionControl": "Қабылдау басқару",
2369
2369
  "reviewDetailsBeforeHostAdded": "Хост қосылмас бұрын мәліметтерді қарап шығыңыз.",
2370
- "nameOrIpAddress": "Аты немесе IP мекенжайы"
2370
+ "nameOrIpAddress": "Аты немесе IP мекенжайы",
2371
+ "deleteDatacenterDesc": "\"{0} \" деректер орталығын жойғыңыз келетініне сенімдісіз бе? Бұл әрекет сонымен қатар оның барлық дабылдарын жояды және барлық байланысты хосттар мен виртуалды машиналарды тізімнен жояды."
2371
2372
  },
2372
2373
  "auth": {
2373
2374
  "welcomeTo": "Қош келдіңіз",
@@ -2367,7 +2367,8 @@
2367
2367
  "hostMonitoring": "Мониторинг узла",
2368
2368
  "admissionControl": "Контроль приема",
2369
2369
  "reviewDetailsBeforeHostAdded": "Ознакомьтесь с подробностями перед добавлением хостинга.",
2370
- "nameOrIpAddress": "Имя или IP-адрес"
2370
+ "nameOrIpAddress": "Имя или IP-адрес",
2371
+ "deleteDatacenterDesc": "Вы уверены, что хотите удалить центр обработки данных “{0}”? Это действие также приведет к удалению всех его аварийных сигналов и удалению всех связанных хостов и виртуальных машин из списка."
2371
2372
  },
2372
2373
  "auth": {
2373
2374
  "welcomeTo": "Добро пожаловать в",
@@ -2365,7 +2365,8 @@
2365
2365
  "hostMonitoring": "结 监控",
2366
2366
  "admissionControl": "入場費 控制",
2367
2367
  "reviewDetailsBeforeHostAdded": "无效的用户名或密码",
2368
- "nameOrIpAddress": "名称或IP地址"
2368
+ "nameOrIpAddress": "名称或IP地址",
2369
+ "deleteDatacenterDesc": "你确定要删除数据中心“{0}”吗?此操作将同时删除所有警报和从库中移除所有关联的主机和虚拟机。"
2369
2370
  },
2370
2371
  "auth": {
2371
2372
  "welcomeTo": "欢迎来到",
@@ -1,113 +1,113 @@
1
- <template>
2
- <div class="portlet">
3
- <div
4
- :data-id="`${props.testId}-toggle-portlet`"
5
- :class="['portlet-titlebar', { disabled }]"
6
- @click="togglePortlet"
7
- >
8
- <atoms-the-icon
9
- :class="['arrow-icon', { collapsed: portletCollapsed }]"
10
- name="arrow"
11
- />
12
-
13
- <span class="titlebar-text">{{ title }}</span>
14
- </div>
15
-
16
- <div v-show="!portletCollapsed" class="portlet-content">
17
- <slot name="portletBody" />
18
- </div>
19
- <div v-show="!portletCollapsed" class="portlet-footer">
20
- <slot name="portletFooter" />
21
- </div>
22
- </div>
23
- </template>
24
-
25
- <script setup lang="ts">
26
- const props = defineProps<{
27
- title: string
28
- disabled?: boolean
29
- testId?: string
30
- }>()
31
-
32
- const isOpen = ref<boolean>(false)
33
-
34
- const portletCollapsed = computed<boolean>(() => {
35
- if (props.disabled) {
36
- return true
37
- }
38
- return isOpen.value
39
- })
40
-
41
- const togglePortlet = (): boolean => (isOpen.value = !isOpen.value)
42
- </script>
43
-
44
- <style scoped lang="scss">
45
- .portlet {
46
- box-shadow: 1px 1px 4px 0 rgb(0 0 0 / 10%);
47
- min-height: 30px;
48
- border: 1px solid var(--portlet-border-color);
49
- border-radius: 3px;
50
- overflow: auto;
51
- background: var(--portlet-bg-color);
52
- margin: 0 0 12px;
53
- flex-shrink: 0;
54
- box-sizing: border-box;
55
-
56
- .portlet-titlebar {
57
- cursor: pointer;
58
- display: flex;
59
- flex-direction: row-reverse;
60
- align-items: center;
61
- margin: 0;
62
- padding: 12px 10px;
63
- box-sizing: border-box;
64
- position: relative;
65
- overflow: hidden;
66
-
67
- &.disabled {
68
- opacity: 0.3;
69
- pointer-events: none;
70
- }
71
-
72
- .titlebar-text {
73
- flex: 1 1 100%;
74
- display: inline-flex !important;
75
- white-space: nowrap;
76
- overflow: hidden !important;
77
- padding: 0 !important;
78
- box-sizing: border-box;
79
- max-width: none !important;
80
- font-size: 14px;
81
- }
82
-
83
- .arrow-icon {
84
- transition: all 0.2s ease-in 0s;
85
- fill: #0079b8;
86
-
87
- &.collapsed {
88
- transform: rotate(180deg);
89
- }
90
- }
91
- &:hover {
92
- .arrow-icon {
93
- fill: #004a70;
94
- }
95
- }
96
- }
97
-
98
- .portlet-content {
99
- padding: 0 10px 5px;
100
- }
101
- }
102
- </style>
103
-
104
- <style>
105
- :root {
106
- --portlet-bg-color: #fff;
107
- --portlet-border-color: #d3d3d3;
108
- }
109
- :root.dark-theme {
110
- --portlet-bg-color: transparent;
111
- --portlet-border-color: #000000;
112
- }
113
- </style>
1
+ <template>
2
+ <div class="portlet">
3
+ <div
4
+ :data-id="`${props.testId}-toggle-portlet`"
5
+ :class="['portlet-titlebar', { disabled }]"
6
+ >
7
+ <atoms-the-icon
8
+ :class="['arrow-icon', { collapsed: portletCollapsed }]"
9
+ name="arrow"
10
+ @click="togglePortlet"
11
+ />
12
+
13
+ <span class="titlebar-text">{{ title }}</span>
14
+ </div>
15
+
16
+ <div v-show="!portletCollapsed" class="portlet-content">
17
+ <slot name="portletBody" />
18
+ </div>
19
+ <div v-show="!portletCollapsed" class="portlet-footer">
20
+ <slot name="portletFooter" />
21
+ </div>
22
+ </div>
23
+ </template>
24
+
25
+ <script setup lang="ts">
26
+ const props = defineProps<{
27
+ title: string
28
+ disabled?: boolean
29
+ testId?: string
30
+ }>()
31
+
32
+ const isOpen = ref<boolean>(false)
33
+
34
+ const portletCollapsed = computed<boolean>(() => {
35
+ if (props.disabled) {
36
+ return true
37
+ }
38
+ return isOpen.value
39
+ })
40
+
41
+ const togglePortlet = (): boolean => (isOpen.value = !isOpen.value)
42
+ </script>
43
+
44
+ <style scoped lang="scss">
45
+ .portlet {
46
+ box-shadow: 1px 1px 4px 0 rgb(0 0 0 / 10%);
47
+ min-height: 30px;
48
+ border: 1px solid var(--portlet-border-color);
49
+ border-radius: 3px;
50
+ overflow: auto;
51
+ background: var(--portlet-bg-color);
52
+ margin: 0 0 12px;
53
+ flex-shrink: 0;
54
+ box-sizing: border-box;
55
+
56
+ .portlet-titlebar {
57
+ cursor: pointer;
58
+ display: flex;
59
+ flex-direction: row-reverse;
60
+ align-items: center;
61
+ margin: 0;
62
+ padding: 12px 10px;
63
+ box-sizing: border-box;
64
+ position: relative;
65
+ overflow: hidden;
66
+
67
+ &.disabled {
68
+ opacity: 0.3;
69
+ pointer-events: none;
70
+ }
71
+
72
+ .titlebar-text {
73
+ flex: 1 1 100%;
74
+ display: inline-flex !important;
75
+ white-space: nowrap;
76
+ overflow: hidden !important;
77
+ padding: 0 !important;
78
+ box-sizing: border-box;
79
+ max-width: none !important;
80
+ font-size: 14px;
81
+ }
82
+
83
+ .arrow-icon {
84
+ transition: all 0.2s ease-in 0s;
85
+ fill: #0079b8;
86
+
87
+ &.collapsed {
88
+ transform: rotate(180deg);
89
+ }
90
+ }
91
+ &:hover {
92
+ .arrow-icon {
93
+ fill: #004a70;
94
+ }
95
+ }
96
+ }
97
+
98
+ .portlet-content {
99
+ padding: 0 10px 5px;
100
+ }
101
+ }
102
+ </style>
103
+
104
+ <style>
105
+ :root {
106
+ --portlet-bg-color: #fff;
107
+ --portlet-border-color: #d3d3d3;
108
+ }
109
+ :root.dark-theme {
110
+ --portlet-bg-color: transparent;
111
+ --portlet-border-color: #000000;
112
+ }
113
+ </style>
@@ -1,205 +1,205 @@
1
- <template>
2
- <div class="wizard-content__container">
3
- <div class="wizard-content wizard-content-port">
4
- <atoms-alert
5
- v-if="isShowErrorMessage"
6
- status="alert-danger"
7
- :items="validationMessagesArray"
8
- test-id="port-properties-alert"
9
- @remove="onHideErrorMessageAlert"
10
- />
11
- <form id="port-properties-form">
12
- <b class="property-label-group">
13
- {{ localization.common.vmKernelPortSettings }}
14
- </b>
15
- <div class="horizontal-flex-container">
16
- <label class="property-label-group">
17
- {{ localization.common.tcpIpStack }}
18
- </label>
19
- <div class="margin-left-property-value-group">
20
- <div class="property-value-group">
21
- {{ localization.common[fieldsValues.tcpIp] }}
22
- </div>
23
- </div>
24
- </div>
25
- <div class="horizontal-flex-container">
26
- <label class="property-label-group">
27
- {{ localization.common.mtu }}
28
- </label>
29
- <div class="margin-left-property-value-group">
30
- <div class="property-value-group tooltip-field-container">
31
- <atoms-tooltip-error :has-error="!!props.errorMessages.mtu">
32
- <template #elem>
33
- <input
34
- id="mtu"
35
- v-model="fieldsValues.mtu"
36
- data-id="mtu-input"
37
- type="number"
38
- name="mtu"
39
- :class="[
40
- 'tooltip-field',
41
- {
42
- 'danger-not-valid': props.errorMessages.mtu,
43
- },
44
- ]"
45
- @click.stop
46
- />
47
- </template>
48
- <template #content>
49
- {{ props.errorMessages.mtu }}
50
- </template>
51
- </atoms-tooltip-error>
52
- </div>
53
- </div>
54
- </div>
55
-
56
- <div class="edit-vmkernel-adapter-section">
57
- <b class="property-label-group">
58
- {{ localization.common.availableServices }}
59
- </b>
60
- <template
61
- v-for="(enabledService, key) in portPropertiesEnabledServices"
62
- :key="enabledService.modelValue"
63
- >
64
- <div class="horizontal-flex-container">
65
- <label class="property-label-group">
66
- {{ enabledService.mainLabel }}
67
- </label>
68
- <div class="margin-left-property-value-group">
69
- <div class="property-value-group tooltip-field-container">
70
- <label>
71
- <input
72
- :id="`property-value-group-${key}`"
73
- v-model="fieldsValues.services[enabledService.modelValue]"
74
- :data-id="enabledService.testId"
75
- type="checkbox"
76
- />
77
- {{ enabledService.label }}
78
- </label>
79
- </div>
80
- </div>
81
- </div>
82
- </template>
83
- </div>
84
- </form>
85
- </div>
86
- </div>
87
- </template>
88
-
89
- <script setup lang="ts">
90
- import type { UI_I_Localization } from '~/lib/models/interfaces'
91
- import {
92
- UI_I_PortPropertiesFields,
93
- UI_I_ModalsInitialData,
94
- UI_I_EditSettingsErrorMessage,
95
- } from '~/components/common/diagramMain/lib/models/interfaces'
96
- import type { UI_T_PortPropertiesFieldName } from '~/components/common/diagramMain/lib/models/types'
97
- import { portPropertiesEnabledServicesFunc } from '~/components/common/diagramMain/modals/lib/config'
98
- import { validationMessagesArrayFunc } from '~/components/common/diagramMain/modals/lib/utils'
99
-
100
- // Props from up
101
- const props = withDefaults(
102
- defineProps<{
103
- isShowErrorMessageAlert: boolean
104
- initialData?: UI_I_ModalsInitialData
105
- errorMessages: UI_I_EditSettingsErrorMessage
106
- hasErrorMessages?: boolean
107
- }>(),
108
- {
109
- initialData: () => ({}),
110
- }
111
- )
112
-
113
- const validationMessagesArray = computed(() =>
114
- validationMessagesArrayFunc(['mtu'], props.errorMessages)
115
- )
116
-
117
- // UI_I_Localization
118
- const localization = computed<UI_I_Localization>(() => useLocal())
119
-
120
- // Enabled services data with localization
121
- const portPropertiesEnabledServices = computed(() =>
122
- portPropertiesEnabledServicesFunc(localization.value)
123
- )
124
-
125
- // For showing component validation errors on the top of modal
126
- const isShowErrorMessage = computed<boolean>(
127
- () => props.isShowErrorMessageAlert && props.hasErrorMessages
128
- )
129
-
130
- const fieldsValues = ref<UI_I_PortPropertiesFields>(
131
- useDeepCopy({
132
- tcpIp: props.initialData.tcpIp,
133
- mtu: props.initialData.mtu,
134
- services: props.initialData.services,
135
- }) as UI_I_PortPropertiesFields
136
- )
137
-
138
- // Validation
139
- const emits = defineEmits<{
140
- (
141
- event: 'change-error-messages',
142
- errorMessage: string,
143
- fieldName: keyof UI_I_EditSettingsErrorMessage
144
- ): void
145
- (event: 'hide-error-message-alert'): void
146
- (
147
- event: 'change-port-edit-properties-data',
148
- newPortEditPropertiesData: UI_I_PortPropertiesFields
149
- ): void
150
- }>()
151
-
152
- const onHideErrorMessageAlert = (): void => emits('hide-error-message-alert')
153
-
154
- const onChangeData = (data: UI_I_PortPropertiesFields): void =>
155
- emits('change-port-edit-properties-data', data)
156
-
157
- const changeErrorMessage = (
158
- errorMessage: string,
159
- fieldName: keyof UI_I_EditSettingsErrorMessage
160
- ) => emits('change-error-messages', errorMessage, fieldName)
161
-
162
- const messageTexts = (local: UI_I_Localization) => ({
163
- mtu: local.mtuInvalidError,
164
- })
165
-
166
- const setMessageOnChangedField = (
167
- values: number[],
168
- index: number,
169
- name: UI_T_PortPropertiesFieldName,
170
- text: string
171
- ) => {
172
- if (values[index] >= 1280 && values[index] <= 65535) {
173
- changeErrorMessage('', name)
174
- } else {
175
- changeErrorMessage(text, name)
176
- }
177
- }
178
-
179
- watch(
180
- fieldsValues,
181
- (newValues: UI_I_PortPropertiesFields): void => {
182
- setMessageOnChangedField(
183
- [newValues.mtu],
184
- 0,
185
- 'mtu',
186
- messageTexts(localization.value).mtu
187
- )
188
- onChangeData(newValues)
189
- !props.hasErrorMessages && onHideErrorMessageAlert()
190
- },
191
- {
192
- deep: true,
193
- }
194
- )
195
-
196
- onMounted(() => {
197
- onChangeData(fieldsValues.value)
198
- })
199
-
200
- onUnmounted((): void => {
201
- onHideErrorMessageAlert()
202
- })
203
- </script>
204
-
205
- <style scoped lang="scss"></style>
1
+ <template>
2
+ <div class="wizard-content__container">
3
+ <div class="wizard-content wizard-content-port">
4
+ <atoms-alert
5
+ v-if="isShowErrorMessage"
6
+ status="alert-danger"
7
+ :items="validationMessagesArray"
8
+ test-id="port-properties-alert"
9
+ @remove="onHideErrorMessageAlert"
10
+ />
11
+ <form id="port-properties-form">
12
+ <b class="property-label-group">
13
+ {{ localization.common.vmKernelPortSettings }}
14
+ </b>
15
+ <div class="horizontal-flex-container">
16
+ <label class="property-label-group">
17
+ {{ localization.common.tcpIpStack }}
18
+ </label>
19
+ <div class="margin-left-property-value-group">
20
+ <div class="property-value-group">
21
+ {{ localization.common[fieldsValues.tcpIp] }}
22
+ </div>
23
+ </div>
24
+ </div>
25
+ <div class="horizontal-flex-container">
26
+ <label class="property-label-group">
27
+ {{ localization.common.mtu }}
28
+ </label>
29
+ <div class="margin-left-property-value-group">
30
+ <div class="property-value-group tooltip-field-container">
31
+ <atoms-tooltip-error :has-error="!!props.errorMessages.mtu">
32
+ <template #elem>
33
+ <input
34
+ id="mtu"
35
+ v-model="fieldsValues.mtu"
36
+ data-id="mtu-input"
37
+ type="number"
38
+ name="mtu"
39
+ :class="[
40
+ 'tooltip-field',
41
+ {
42
+ 'danger-not-valid': props.errorMessages.mtu,
43
+ },
44
+ ]"
45
+ @click.stop
46
+ />
47
+ </template>
48
+ <template #content>
49
+ {{ props.errorMessages.mtu }}
50
+ </template>
51
+ </atoms-tooltip-error>
52
+ </div>
53
+ </div>
54
+ </div>
55
+
56
+ <div class="edit-vmkernel-adapter-section">
57
+ <b class="property-label-group">
58
+ {{ localization.common.availableServices }}
59
+ </b>
60
+ <template
61
+ v-for="(enabledService, key) in portPropertiesEnabledServices"
62
+ :key="enabledService.modelValue"
63
+ >
64
+ <div class="horizontal-flex-container">
65
+ <label class="property-label-group">
66
+ {{ enabledService.mainLabel }}
67
+ </label>
68
+ <div class="margin-left-property-value-group">
69
+ <div class="property-value-group tooltip-field-container">
70
+ <label>
71
+ <input
72
+ :id="`property-value-group-${key}`"
73
+ v-model="fieldsValues.services[enabledService.modelValue]"
74
+ :data-id="enabledService.testId"
75
+ type="checkbox"
76
+ />
77
+ {{ enabledService.label }}
78
+ </label>
79
+ </div>
80
+ </div>
81
+ </div>
82
+ </template>
83
+ </div>
84
+ </form>
85
+ </div>
86
+ </div>
87
+ </template>
88
+
89
+ <script setup lang="ts">
90
+ import type { UI_I_Localization } from '~/lib/models/interfaces'
91
+ import {
92
+ UI_I_PortPropertiesFields,
93
+ UI_I_ModalsInitialData,
94
+ UI_I_EditSettingsErrorMessage,
95
+ } from '~/components/common/diagramMain/lib/models/interfaces'
96
+ import type { UI_T_PortPropertiesFieldName } from '~/components/common/diagramMain/lib/models/types'
97
+ import { portPropertiesEnabledServicesFunc } from '~/components/common/diagramMain/modals/lib/config'
98
+ import { validationMessagesArrayFunc } from '~/components/common/diagramMain/modals/lib/utils'
99
+
100
+ // Props from up
101
+ const props = withDefaults(
102
+ defineProps<{
103
+ isShowErrorMessageAlert: boolean
104
+ initialData?: UI_I_ModalsInitialData
105
+ errorMessages: UI_I_EditSettingsErrorMessage
106
+ hasErrorMessages?: boolean
107
+ }>(),
108
+ {
109
+ initialData: () => ({}),
110
+ }
111
+ )
112
+
113
+ const validationMessagesArray = computed(() =>
114
+ validationMessagesArrayFunc(['mtu'], props.errorMessages)
115
+ )
116
+
117
+ // UI_I_Localization
118
+ const localization = computed<UI_I_Localization>(() => useLocal())
119
+
120
+ // Enabled services data with localization
121
+ const portPropertiesEnabledServices = computed(() =>
122
+ portPropertiesEnabledServicesFunc(localization.value)
123
+ )
124
+
125
+ // For showing component validation errors on the top of modal
126
+ const isShowErrorMessage = computed<boolean>(
127
+ () => props.isShowErrorMessageAlert && props.hasErrorMessages
128
+ )
129
+
130
+ const fieldsValues = ref<UI_I_PortPropertiesFields>(
131
+ useDeepCopy({
132
+ tcpIp: props.initialData.tcpIp,
133
+ mtu: props.initialData.mtu,
134
+ services: props.initialData.services,
135
+ }) as UI_I_PortPropertiesFields
136
+ )
137
+
138
+ // Validation
139
+ const emits = defineEmits<{
140
+ (
141
+ event: 'change-error-messages',
142
+ errorMessage: string,
143
+ fieldName: keyof UI_I_EditSettingsErrorMessage
144
+ ): void
145
+ (event: 'hide-error-message-alert'): void
146
+ (
147
+ event: 'change-port-edit-properties-data',
148
+ newPortEditPropertiesData: UI_I_PortPropertiesFields
149
+ ): void
150
+ }>()
151
+
152
+ const onHideErrorMessageAlert = (): void => emits('hide-error-message-alert')
153
+
154
+ const onChangeData = (data: UI_I_PortPropertiesFields): void =>
155
+ emits('change-port-edit-properties-data', data)
156
+
157
+ const changeErrorMessage = (
158
+ errorMessage: string,
159
+ fieldName: keyof UI_I_EditSettingsErrorMessage
160
+ ) => emits('change-error-messages', errorMessage, fieldName)
161
+
162
+ const messageTexts = (local: UI_I_Localization) => ({
163
+ mtu: local.common.mtuInvalidError,
164
+ })
165
+
166
+ const setMessageOnChangedField = (
167
+ values: number[],
168
+ index: number,
169
+ name: UI_T_PortPropertiesFieldName,
170
+ text: string
171
+ ) => {
172
+ if (values[index] >= 1280 && values[index] <= 65535) {
173
+ changeErrorMessage('', name)
174
+ } else {
175
+ changeErrorMessage(text, name)
176
+ }
177
+ }
178
+
179
+ watch(
180
+ fieldsValues,
181
+ (newValues: UI_I_PortPropertiesFields): void => {
182
+ setMessageOnChangedField(
183
+ [newValues.mtu],
184
+ 0,
185
+ 'mtu',
186
+ messageTexts(localization.value).mtu
187
+ )
188
+ onChangeData(newValues)
189
+ !props.hasErrorMessages && onHideErrorMessageAlert()
190
+ },
191
+ {
192
+ deep: true,
193
+ }
194
+ )
195
+
196
+ onMounted(() => {
197
+ onChangeData(fieldsValues.value)
198
+ })
199
+
200
+ onUnmounted((): void => {
201
+ onHideErrorMessageAlert()
202
+ })
203
+ </script>
204
+
205
+ <style scoped lang="scss"></style>
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "bfg-common",
3
3
  "private": false,
4
- "version": "1.5.196",
4
+ "version": "1.5.198",
5
5
  "scripts": {
6
6
  "build": "nuxt build",
7
7
  "dev": "nuxt dev --port=3002",
@@ -35,7 +35,7 @@
35
35
  "@vueuse/components": "^10.1.2",
36
36
  "date-fns": "^2.29.3",
37
37
  "bfg-nuxt-3-graph": "1.0.25",
38
- "bfg-uikit": "1.0.428",
38
+ "bfg-uikit": "1.0.430",
39
39
  "html2canvas": "^1.4.1",
40
40
  "prettier-eslint": "^15.0.1"
41
41
  }