bfg-common 1.5.978 → 1.5.980

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.
@@ -166,7 +166,7 @@
166
166
  "bootOptions": "Ներբեռնման ընտրանքներ",
167
167
  "bootOrder": "Բեռնման կարգը",
168
168
  "browse": "Ակնարկ",
169
- "browseDoted": "Դիտել..․",
169
+ "browseDoted": "Ընտրել..․",
170
170
  "browserDefault": "Կանխադրված դիտարկիչ",
171
171
  "build": "Հավաքածու",
172
172
  "burstSize": "Փաթեթի չափ",
@@ -166,7 +166,7 @@
166
166
  "bootOptions": "Параметры загрузки",
167
167
  "bootOrder": "Порядок загрузки",
168
168
  "browse": "Обзор",
169
- "browseDoted": "Просмотреть...",
169
+ "browseDoted": "Выбрать...",
170
170
  "browserDefault": "Браузер по умолчанию",
171
171
  "build": "Сборка",
172
172
  "burstSize": "Размер пакета",
@@ -141,7 +141,7 @@ const isShowErrorMessage = computed<boolean>(
141
141
 
142
142
  const fieldsValues = ref<UI_I_PropertiesFields>(
143
143
  useDeepCopy({
144
- vlanId: props.initialData.vlanId || `${localization.value.common.none} (0)`,
144
+ vlanId: props.initialData.vlanId || `${localization.value.common.none2} (0)`,
145
145
  networkLabel: props.initialData.networkLabel || 'Network',
146
146
  })
147
147
  )
@@ -180,7 +180,7 @@ const setMessageOnChangedField = (
180
180
 
181
181
  if (
182
182
  name === 'vlanId' &&
183
- values !== `${localization.value.common.none} (0)` &&
183
+ values !== `${localization.value.common.none2} (0)` &&
184
184
  values !== `${localization.value.common.all} (4095)` &&
185
185
  (isNumberInRange(values, 0, 4095) || values === '')
186
186
  ) {
@@ -18,7 +18,7 @@ export const vmKernelAdapterViewSettingsFunc = (
18
18
  type: 0,
19
19
  rows: [
20
20
  { name: localization.common.networkLabel, value: '' },
21
- { name: localization.common.vlanId, value: `${localization.common.none} (0)` },
21
+ { name: localization.common.vlanId, value: `${localization.common.none2} (0)` },
22
22
  { name: localization.common.tcpIpStack, value: 'Default' },
23
23
  { name: localization.common.enabledServices },
24
24
  ],
@@ -112,7 +112,7 @@ const title = computed<string>(
112
112
 
113
113
  const connectionSettings = ref<UI_I_ConnectionSettings>({
114
114
  networkLabel: 'VM Network',
115
- vlanId: `${localization.value.common.none} (0)`,
115
+ vlanId: `${localization.value.common.none2} (0)`,
116
116
  })
117
117
 
118
118
  const vmkernelAdapter = ref<UI_I_SelectVmkernelAdapter>({
@@ -262,7 +262,7 @@ const reset = (): void => {
262
262
  wizard.reset()
263
263
  connectionSettings.value = {
264
264
  networkLabel: 'VM Network',
265
- vlanId: `${localization.value.common.none} (0)`,
265
+ vlanId: `${localization.value.common.none2} (0)`,
266
266
  }
267
267
  vmkernelAdapter.value = {
268
268
  vm: '',
@@ -14,6 +14,6 @@ export const checkVlanId = (
14
14
  vlanId: string,
15
15
  localization: UI_I_Localization
16
16
  ): boolean =>
17
- vlanId !== `${localization.common.none} (0)` &&
17
+ vlanId !== `${localization.common.none2} (0)` &&
18
18
  vlanId !== `${localization.common.all} (4095)` &&
19
19
  (isIntegerNumberInRange(vlanId, 0, 4095) || vlanId === '')
@@ -44,22 +44,21 @@
44
44
  >
45
45
  <template #subTitle>
46
46
  <div ref="selectTargetDeviceBlock">
47
- <div class="subtitle-block flex flex-col">
47
+ <div class="alert-block flex flex-col">
48
48
  <template
49
49
  v-for="(message, field, key) in selectedStep.fields"
50
50
  :key="key"
51
51
  >
52
52
  <ui-alert
53
+ v-if="!!message.alert"
53
54
  :messages="[message.alert]"
54
55
  test-id="select-target-device-alert"
55
- :class="{
56
- 'mb-4':
57
- props.alertMessages[selectedStep.id].length - 1 === key,
58
- }"
59
56
  size="md"
60
57
  @hide="emits('hide-alert', selectedStep.id, field)"
61
58
  />
62
59
  </template>
60
+ </div>
61
+ <div class="subtitle-block flex flex-col">
63
62
  <ui-wizard-subtitle :sub-title="selectedStep.subTitle" />
64
63
  <ui-line margin="12px 0 0" />
65
64
  </div>
@@ -89,22 +88,21 @@
89
88
  >
90
89
  <template #subTitle>
91
90
  <div ref="createStandardSwitchBlock">
92
- <div class="subtitle-block flex flex-col">
91
+ <div class="alert-block flex flex-col">
93
92
  <template
94
93
  v-for="(message, field, key) in selectedStep.fields"
95
94
  :key="key"
96
95
  >
97
96
  <ui-alert
97
+ v-if="!!message.alert"
98
98
  :messages="[message.alert]"
99
99
  test-id="create-standard-switch-alert"
100
- :class="{
101
- 'mb-4':
102
- props.alertMessages[selectedStep.id].length - 1 === key,
103
- }"
104
100
  size="md"
105
101
  @hide="emits('hide-alert', selectedStep.id, field)"
106
102
  />
107
103
  </template>
104
+ </div>
105
+ <div class="subtitle-block flex flex-col">
108
106
  <ui-wizard-subtitle :sub-title="selectedStep.subTitle" />
109
107
  <ui-line margin="12px 0 0" />
110
108
  </div>
@@ -146,22 +144,21 @@
146
144
  >
147
145
  <template #subTitle>
148
146
  <div ref="portPropertiesBlock">
149
- <div class="subtitle-block flex flex-col">
147
+ <div class="alert-block flex flex-col">
150
148
  <template
151
149
  v-for="(message, field, key) in selectedStep.fields"
152
150
  :key="key"
153
151
  >
154
152
  <ui-alert
153
+ v-if="!!message.alert"
155
154
  :messages="[message.alert]"
156
155
  test-id="port-properties-alert"
157
- :class="{
158
- 'mb-4':
159
- props.alertMessages[selectedStep.id].length - 1 === key,
160
- }"
161
156
  size="md"
162
157
  @hide="emits('hide-alert', selectedStep.id, field)"
163
158
  />
164
159
  </template>
160
+ </div>
161
+ <div class="subtitle-block flex flex-col">
165
162
  <ui-wizard-subtitle :sub-title="selectedStep.subTitle" />
166
163
  <ui-line margin="12px 0 0" />
167
164
  </div>
@@ -190,22 +187,21 @@
190
187
  >
191
188
  <template #subTitle>
192
189
  <div ref="ipFourSettingsBlock">
193
- <div class="subtitle-block flex flex-col">
190
+ <div class="alert-block flex flex-col">
194
191
  <template
195
192
  v-for="(message, field, key) in selectedStep.fields"
196
193
  :key="key"
197
194
  >
198
195
  <ui-alert
196
+ v-if="!!message.alert"
199
197
  :messages="[message.alert]"
200
198
  test-id="ip-four-settings-alert"
201
- :class="{
202
- 'mb-4':
203
- props.alertMessages[selectedStep.id].length - 1 === key,
204
- }"
205
199
  size="md"
206
200
  @hide="emits('hide-alert', selectedStep.id, field)"
207
201
  />
208
202
  </template>
203
+ </div>
204
+ <div class="subtitle-block flex flex-col">
209
205
  <ui-wizard-subtitle :sub-title="selectedStep.subTitle" />
210
206
  <ui-line margin="12px 0 0" />
211
207
  </div>
@@ -233,22 +229,21 @@
233
229
  >
234
230
  <template #subTitle>
235
231
  <div ref="connectionSettingsBlock">
236
- <div class="subtitle-block flex flex-col">
232
+ <div class="alert-block flex flex-col">
237
233
  <template
238
234
  v-for="(message, field, key) in selectedStep.fields"
239
235
  :key="key"
240
236
  >
241
237
  <ui-alert
238
+ v-if="!!message.alert"
242
239
  :messages="[message.alert]"
243
240
  test-id="connection-settings-alert"
244
- :class="{
245
- 'mb-4':
246
- props.alertMessages[selectedStep.id].length - 1 === key,
247
- }"
248
241
  size="md"
249
242
  @hide="emits('hide-alert', selectedStep.id, field)"
250
243
  />
251
244
  </template>
245
+ </div>
246
+ <div class="subtitle-block flex flex-col">
252
247
  <ui-wizard-subtitle :sub-title="selectedStep.subTitle" />
253
248
  <ui-line margin="12px 0 0" />
254
249
  </div>
@@ -477,7 +472,7 @@ const onChangeSteps = async (value: UI_I_WizardStep[]): Promise<void> => {
477
472
  :deep(.ui-alert-item) {
478
473
  margin-bottom: 12px;
479
474
 
480
- &.mb-4 {
475
+ &:last-of-type {
481
476
  margin-bottom: 16px;
482
477
  }
483
478
  }
@@ -37,7 +37,7 @@ export const portPropertiesInitial = (
37
37
  localization: UI_I_Localization
38
38
  ): UI_I_PortProperties => ({
39
39
  networkLabel: '',
40
- vlanId: `${localization.common.none} (0)`,
40
+ vlanId: `${localization.common.none2} (0)`,
41
41
  mtu: {
42
42
  option: '0',
43
43
  size: 1500,
@@ -62,15 +62,15 @@ export const connectionSettingsInitial = (
62
62
  localization: UI_I_Localization
63
63
  ): UI_I_ConnectionSettings => ({
64
64
  networkLabel: 'VM Network',
65
- vlanId: `${localization.common.none} (0)`,
65
+ vlanId: `${localization.common.none2} (0)`,
66
66
  })
67
67
 
68
68
  export const vlanIdSelectDataFunc = (
69
69
  localization: UI_I_Localization
70
70
  ): UI_I_VlanIdData[] => [
71
71
  {
72
- text: `${localization.common.none} (0)`,
73
- value: `${localization.common.none} (0)`,
72
+ text: `${localization.common.none2} (0)`,
73
+ value: `${localization.common.none2} (0)`,
74
74
  },
75
75
  {
76
76
  text: `${localization.common.all} (4095)`,
@@ -5,5 +5,5 @@ export const getVlanId = (
5
5
  localization: UI_I_Localization
6
6
  ): string =>
7
7
  (vlanId === `${localization.common.all} (4095)` && '4095') ||
8
- (vlanId === `${localization.common.none} (0)` && '0') ||
8
+ (vlanId === `${localization.common.none2} (0)` && '0') ||
9
9
  vlanId
@@ -103,7 +103,7 @@
103
103
  <template #row="{ item }">
104
104
  <div v-if="item.iconName" class="browse-btn">
105
105
  <ui-button
106
- test-id="button-1"
106
+ test-id="browse-network"
107
107
  type="primary"
108
108
  variant="text"
109
109
  size="lg"
@@ -154,7 +154,7 @@
154
154
  <template #row="{ item }">
155
155
  <div v-if="item.iconName" class="browse-btn">
156
156
  <ui-button
157
- test-id="button-1"
157
+ test-id="browse-standard-switch"
158
158
  type="primary"
159
159
  variant="text"
160
160
  size="lg"
@@ -203,7 +203,7 @@
203
203
  <template #row="{ item }">
204
204
  <div v-if="item.iconName" class="browse-btn">
205
205
  <ui-button
206
- test-id="button-1"
206
+ test-id="browse-switch"
207
207
  type="primary"
208
208
  variant="text"
209
209
  size="lg"
@@ -357,10 +357,17 @@ watch(
357
357
  :deep(.ui-btn) {
358
358
  justify-content: flex-start;
359
359
  height: 32px;
360
+ overflow: hidden;
361
+ text-overflow: ellipsis;
362
+ white-space: nowrap;
363
+ width: 100%;
360
364
 
361
365
  span {
362
366
  text-align: left;
363
367
  color: var(--select-text);
368
+ overflow: hidden;
369
+ text-overflow: ellipsis;
370
+ white-space: nowrap;
364
371
  }
365
372
 
366
373
  &:hover {
@@ -46,7 +46,7 @@ import type {
46
46
  UI_I_DataTable,
47
47
  UI_I_DataTableHeader,
48
48
  UI_I_DataTableBody,
49
- UI_I_TableTexts
49
+ UI_I_TableTexts,
50
50
  } from '~/node_modules/bfg-uikit/components/ui/dataTable/lib/models/interfaces'
51
51
  import type { UI_I_Localization } from '~/lib/models/interfaces'
52
52
  import type {
@@ -147,6 +147,10 @@ const onSelectNetwork = (): void => {
147
147
  <style scoped lang="scss">
148
148
  :deep(.table-container) {
149
149
  padding: 8px 32px !important;
150
+
151
+ .column-manager-button span {
152
+ font-weight: 500;
153
+ }
150
154
  }
151
155
 
152
156
  .row-container {
@@ -21,7 +21,7 @@ export const checkVlanId = (
21
21
  vlanId: string,
22
22
  localization: UI_I_Localization
23
23
  ): boolean =>
24
- vlanId !== `${localization.common.none} (0)` &&
24
+ vlanId !== `${localization.common.none2} (0)` &&
25
25
  vlanId !== `${localization.common.all} (4095)` &&
26
26
  (isIntegerNumberInRange(vlanId, 0, 4095) || vlanId.trim() === '')
27
27
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "bfg-common",
3
3
  "private": false,
4
- "version": "1.5.978",
4
+ "version": "1.5.980",
5
5
  "scripts": {
6
6
  "build": "nuxt build",
7
7
  "dev": "nuxt dev --port=3002",
@@ -18,7 +18,7 @@
18
18
  "@vueuse/core": "10.1.2",
19
19
  "@vueuse/nuxt": "10.1.2",
20
20
  "bfg-nuxt-3-graph": "1.0.27",
21
- "bfg-uikit": "1.1.9",
21
+ "bfg-uikit": "1.1.21",
22
22
  "eslint-config-prettier": "^8.5.0",
23
23
  "eslint-plugin-myrules": "file:./eslint",
24
24
  "nuxt": "3.11.2",