bfg-common 1.3.74 → 1.3.76

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.
@@ -12,22 +12,28 @@
12
12
 
13
13
  <a
14
14
  :id="`network-${testId}`"
15
+ style="text-decoration: none"
15
16
  cursor="pointer"
16
17
  data-title="network-name-link"
17
18
  @click="onSelectNetwork(props.network.id)"
18
19
  >
19
- <title>{{ props.network.title }}</title>
20
- <text
20
+ <foreignObject
21
21
  data-title="network-name-text"
22
- dy="14px"
23
- font-size="14"
24
- font-weight="500"
22
+ height="22"
23
+ width="206"
25
24
  x="50"
26
- :y="props.network.titlePosition"
25
+ :title="props.network.title"
26
+ :y="networkTitlePosition"
27
27
  class="diagram__heading"
28
28
  >
29
- {{ networkTitle }}
30
- </text>
29
+ <span
30
+ class="text-ellipsis"
31
+ :title="props.network.title"
32
+ :id="`network_${props.network.id}`"
33
+ >
34
+ {{ props.network.title }}
35
+ </span>
36
+ </foreignObject>
31
37
  </a>
32
38
 
33
39
  <foreignObject
@@ -184,12 +190,9 @@ const closedPortsLinePosition = computed<number>(
184
190
  () => props.network.portsPosition + 7.5
185
191
  )
186
192
 
187
- const networkTitle = computed<string>(() => {
188
- if (props.network.title.length > 16) {
189
- return `${props.network.title.slice(0, 16)}...`
190
- }
191
- return props.network.title
192
- })
193
+ const networkTitlePosition = computed<number>(
194
+ () => props.network.titlePosition - 5
195
+ )
193
196
 
194
197
  const onSelectNetwork = (networkId: string): void => {
195
198
  emits('select-network', networkId)
@@ -218,6 +221,15 @@ const onTogglePorts = (
218
221
  .port-group-header {
219
222
  fill: #c1cdd4;
220
223
  }
224
+
225
+ .text-ellipsis {
226
+ color: #c1cdd4;
227
+
228
+ &:hover {
229
+ color: #c1cdd4;
230
+ text-decoration: solid underline #c1cdd4 2px;
231
+ }
232
+ }
221
233
  }
222
234
 
223
235
  .diagram {
@@ -258,4 +270,20 @@ const onTogglePorts = (
258
270
  transform: rotate(180deg);
259
271
  }
260
272
  }
273
+
274
+ .text-ellipsis {
275
+ display: block;
276
+ max-width: 206px;
277
+ text-overflow: ellipsis;
278
+ overflow: hidden;
279
+ white-space: nowrap;
280
+ font-weight: 500;
281
+ font-size: 14px;
282
+ color: #565656;
283
+
284
+ &:hover {
285
+ color: #565656;
286
+ text-decoration: solid underline #565656 2px;
287
+ }
288
+ }
261
289
  </style>
@@ -25,17 +25,22 @@
25
25
  cursor="pointer"
26
26
  @click="onSelectPort(props.network.id, props.port.id)"
27
27
  >
28
- <title>{{ props.port.name }}</title>
29
- <text
30
- dy="11px"
31
- font-size="12"
32
- font-weight="400"
28
+ <foreignObject
29
+ data-title="network-name-text"
30
+ height="20"
31
+ width="206"
33
32
  x="42"
34
- :y="props.port.portPosition"
33
+ :y="portTitlePosition"
35
34
  class="diagram__values"
36
35
  >
37
- {{ portTitle }}
38
- </text>
36
+ <span
37
+ class="text-ellipsis"
38
+ :title="props.port.name"
39
+ :id="`port_${props.port.id}`"
40
+ >
41
+ {{ props.port.name }}
42
+ </span>
43
+ </foreignObject>
39
44
  </a>
40
45
 
41
46
  <text
@@ -145,6 +150,8 @@ const emits = defineEmits<{
145
150
  ): void
146
151
  }>()
147
152
 
153
+ const portTitlePosition = computed<number>(() => props.port.portPosition - 5)
154
+
148
155
  const isVmKernel = computed<boolean>(
149
156
  () => props.network.networkType === UI_E_NetworkType.VMkernel
150
157
  )
@@ -282,6 +289,15 @@ const onSelectPort = (networkId: string, portId: string): void => {
282
289
  .diagram__values {
283
290
  fill: #c1cdd4;
284
291
  }
292
+
293
+ .text-ellipsis {
294
+ color: #c1cdd4;
295
+
296
+ &:hover {
297
+ color: #c1cdd4;
298
+ text-decoration: solid underline #c1cdd4 1px;
299
+ }
300
+ }
285
301
  }
286
302
 
287
303
  .diagram {
@@ -325,4 +341,20 @@ const onSelectPort = (networkId: string, portId: string): void => {
325
341
  .small {
326
342
  font: normal 9px Metropolis;
327
343
  }
344
+
345
+ .text-ellipsis {
346
+ display: block;
347
+ max-width: 206px;
348
+ text-overflow: ellipsis;
349
+ overflow: hidden;
350
+ white-space: nowrap;
351
+ font-weight: 400;
352
+ font-size: 12px;
353
+ color: #565656;
354
+
355
+ &:hover {
356
+ color: #565656;
357
+ text-decoration: solid underline #565656 1px;
358
+ }
359
+ }
328
360
  </style>
@@ -1,38 +1,38 @@
1
- import type { UI_T_Schema } from '~/lib/models/table/types'
2
-
3
- export interface API_UI_I_DataTable<T> {
4
- total_items: number
5
- total_pages: number
6
- items: T
7
- }
8
-
9
- export interface UI_I_TableQuery {
10
- page: number
11
- page_size: number
12
- sortBy?: string
13
- filter?: string
14
- }
15
-
16
- export interface UI_I_TableQueryWidthSchema extends UI_I_TableQuery {
17
- schema: UI_T_Schema
18
- }
19
-
20
- export interface UI_I_Pagination {
21
- page: number
22
- pageSize: number
23
- }
24
-
25
- export interface UI_I_DataTableQuery extends UI_I_Pagination {
26
- sortBy?: string
27
- filter?: string
28
- }
29
-
30
- export interface UI_I_SchemaTablePayload {
31
- schema: UI_T_Schema
32
- }
33
-
34
- export interface UI_I_TablePayload extends UI_I_SchemaTablePayload {
35
- pagination: UI_I_Pagination
36
- type: any
37
- sortBy: string | null
38
- }
1
+ import type { UI_T_Schema } from '~/lib/models/table/types'
2
+
3
+ export interface API_UI_I_DataTable<T> {
4
+ total_items: number
5
+ total_pages: number
6
+ items: T
7
+ }
8
+
9
+ export interface UI_I_TableQuery {
10
+ page: number
11
+ page_size: number
12
+ sortBy?: string
13
+ search?: string
14
+ }
15
+
16
+ export interface UI_I_TableQueryWidthSchema extends UI_I_TableQuery {
17
+ schema: UI_T_Schema
18
+ }
19
+
20
+ export interface UI_I_Pagination {
21
+ page: number
22
+ pageSize: number
23
+ }
24
+
25
+ export interface UI_I_DataTableQuery extends UI_I_Pagination {
26
+ sortBy?: string
27
+ filter?: string
28
+ }
29
+
30
+ export interface UI_I_SchemaTablePayload {
31
+ schema: UI_T_Schema
32
+ }
33
+
34
+ export interface UI_I_TablePayload extends UI_I_SchemaTablePayload {
35
+ pagination: UI_I_Pagination
36
+ type: any
37
+ sortBy: string | null
38
+ }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "bfg-common",
3
3
  "private": false,
4
- "version": "1.3.74",
4
+ "version": "1.3.76",
5
5
  "scripts": {
6
6
  "build": "nuxt build",
7
7
  "dev": "nuxt dev --port=3002",