bfg-common 1.4.579 → 1.4.580

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.
Files changed (66) hide show
  1. package/assets/img/icons/icons-sprite-dark-1.svg +407 -437
  2. package/assets/img/icons/icons-sprite-dark-2.svg +343 -347
  3. package/assets/img/icons/icons-sprite-dark-3.svg +227 -227
  4. package/assets/img/icons/icons-sprite-dark-4.svg +255 -259
  5. package/assets/img/icons/icons-sprite-dark-5.svg +488 -488
  6. package/assets/img/icons/icons-sprite-dark-6.svg +94 -94
  7. package/assets/img/icons/icons-sprite-light-1.svg +407 -437
  8. package/assets/img/icons/icons-sprite-light-2.svg +343 -347
  9. package/assets/img/icons/icons-sprite-light-3.svg +227 -227
  10. package/assets/img/icons/icons-sprite-light-4.svg +255 -259
  11. package/assets/img/icons/icons-sprite-light-5.svg +488 -488
  12. package/assets/img/icons/icons-sprite-light-6.svg +94 -94
  13. package/assets/scss/common/icons/icons-6.scss +156 -156
  14. package/assets/scss/common/theme.scss +321 -321
  15. package/components/common/browse/blocks/lib/models/types.ts +1 -1
  16. package/components/common/browse/lib/models/interfaces.ts +5 -5
  17. package/components/common/diagramMain/Diagram.vue +377 -364
  18. package/components/common/diagramMain/DiagramMain.vue +894 -872
  19. package/components/common/diagramMain/Header.vue +211 -211
  20. package/components/common/diagramMain/adapter/AdapterItem.vue +2 -0
  21. package/components/common/diagramMain/adapter/AdapterItems.vue +61 -61
  22. package/components/common/diagramMain/adapter/Contents.vue +207 -189
  23. package/components/common/diagramMain/lib/config/initial.ts +50 -50
  24. package/components/common/diagramMain/lib/config/positions.ts +194 -194
  25. package/components/common/diagramMain/lib/models/enums.ts +44 -44
  26. package/components/common/diagramMain/lib/models/types.ts +21 -21
  27. package/components/common/diagramMain/lib/utils/utils.ts +331 -331
  28. package/components/common/diagramMain/modals/ManagePhysicalAdaptersModal.vue +330 -330
  29. package/components/common/diagramMain/modals/editSettings/ConfirmTeamingSettingsModal.vue +40 -40
  30. package/components/common/diagramMain/modals/editSettings/EditSettings.vue +497 -497
  31. package/components/common/diagramMain/modals/editSettings/EditSettingsModal.vue +812 -812
  32. package/components/common/diagramMain/modals/editSettings/tabs/NetworkProperties.vue +214 -214
  33. package/components/common/diagramMain/modals/editSettings/tabs/Security.vue +189 -189
  34. package/components/common/diagramMain/modals/editSettings/tabs/SwitchProperties.vue +163 -163
  35. package/components/common/diagramMain/modals/editSettings/tabs/TeamingFailover.vue +175 -175
  36. package/components/common/diagramMain/modals/editSettings/tabs/TrafficShaping.vue +398 -398
  37. package/components/common/diagramMain/modals/editSettings/tabs/port/IpvFourSettings.vue +346 -346
  38. package/components/common/diagramMain/modals/editSettings/tabs/port/PortProperties.vue +205 -205
  39. package/components/common/diagramMain/modals/lib/config/diagramConfig.ts +23 -23
  40. package/components/common/diagramMain/modals/lib/config/initial.ts +180 -180
  41. package/components/common/diagramMain/modals/lib/config/vmKernelAdapter.ts +90 -90
  42. package/components/common/diagramMain/modals/lib/mappers/mappers.ts +87 -87
  43. package/components/common/diagramMain/modals/lib/utils/index.ts +24 -24
  44. package/components/common/diagramMain/modals/migrateVmkernelAdapter/MigrateVmkernelAdapter.vue +537 -537
  45. package/components/common/diagramMain/modals/migrateVmkernelAdapter/lib/config/steps.ts +114 -114
  46. package/components/common/diagramMain/modals/migrateVmkernelAdapter/steps/ConnectionSettings.vue +169 -169
  47. package/components/common/diagramMain/modals/migrateVmkernelAdapter/steps/SelectVmkernelAdapter.vue +159 -159
  48. package/components/common/diagramMain/modals/migrateVmkernelAdapter/validations/common.ts +14 -14
  49. package/components/common/diagramMain/modals/migrateVmkernelAdapter/validations/connectionSettings.ts +137 -137
  50. package/components/common/diagramMain/modals/migrateVmkernelAdapter/validations/selectVmkernelAdapter.ts +52 -52
  51. package/components/common/diagramMain/modals/migrateVmkernelAdapter/validations/validations.ts +19 -19
  52. package/components/common/diagramMain/modals/viewSettings/info/InfoNew.vue +156 -155
  53. package/components/common/diagramMain/modals/viewSettings/viewSettingsModal/ViewSettingsModalNew.vue +68 -63
  54. package/components/common/diagramMain/network/Contents.vue +491 -488
  55. package/components/common/diagramMain/network/noNetwork/NoNetworkNew.vue +1 -1
  56. package/components/common/diagramMain/port/Port.vue +2 -0
  57. package/components/common/diagramMain/port/Ports.vue +47 -47
  58. package/components/common/layout/theHeader/TheHeaderNew.vue +4 -10
  59. package/components/common/layout/theHeader/userMenu/userMenuNew/UserMenuNew.vue +4 -4
  60. package/components/common/layout/theHeader/userMenu/userMenuNew/lib/config/dropMenu.ts +1 -1
  61. package/components/common/pages/home/headline/HeadlineNew.vue +48 -71
  62. package/components/common/pages/home/resource/ResourceNew.vue +58 -63
  63. package/components/common/pages/home/widgets/WidgetsNew.vue +74 -79
  64. package/components/common/split/horizontal/HorizontalNew.vue +331 -354
  65. package/components/common/wizards/network/add/lib/config/steps.ts +464 -464
  66. package/package.json +2 -2
@@ -1,189 +1,207 @@
1
- <template>
2
- <g data-title="adapter-block-contents">
3
- <foreignObject
4
- v-if="isShowArrow"
5
- :data-id="`${props.testId}-adapters-toggle`"
6
- data-title="adapter-toggle"
7
- :width="positions.arrowIconSize"
8
- :height="positions.arrowIconSize"
9
- :x="positions.arrowIconX"
10
- :y="arrawIconPosition"
11
- :cursor="hasAdapters && 'pointer'"
12
- @click="onToggleAdapters"
13
- >
14
- <div class="diagram-block__toggle">
15
- <ui-icon
16
- v-if="isNewView"
17
- name="arrow"
18
- width="20"
19
- height="20"
20
- :class="[
21
- 'virtual-switch__arrow-icon',
22
- {
23
- 'is-new': isNewView,
24
- open: hasAdapters ? props.adaptersWithPositions.toggle : false,
25
- 'without-adapters': !hasAdapters,
26
- },
27
- ]"
28
- />
29
- <atoms-the-icon
30
- v-else
31
- name="angle"
32
- :class="[
33
- 'virtual-switch__arrow-icon',
34
- {
35
- open: props.adaptersWithPositions.toggle,
36
- },
37
- ]"
38
- />
39
- {{ hasAdapters }}
40
- </div>
41
- </foreignObject>
42
- <text
43
- data-title="adapter-main-text"
44
- dy="14px"
45
- font-size="14"
46
- font-weight="500"
47
- :x="positions.adapterTextX"
48
- :y="props.adaptersWithPositions.titlePosition"
49
- class="diagram__heading"
50
- >
51
- {{ headerText }}
52
- </text>
53
-
54
- <foreignObject
55
- v-if="!isNewView && !hasAdapters"
56
- data-title="no-adapter-text"
57
- dy="11px"
58
- height="20"
59
- width="230"
60
- x="462"
61
- y="53"
62
- >
63
- <span
64
- data-title="no-physical-adapters"
65
- class="no-physical-adapters text-ellipsis"
66
- >
67
- {{ localization.common.noPhysicalNetworkAdapters }}
68
- </span>
69
- </foreignObject>
70
- </g>
71
- </template>
72
-
73
- <script setup lang="ts">
74
- import type { UI_I_AdaptersWithPositions } from '~/components/common/diagramMain/lib/models/interfaces'
75
- import type {
76
- UI_I_Localization,
77
- UI_I_ArbitraryObject,
78
- } from '~/lib/models/interfaces'
79
- import { adapterContentPositionsFunc } from '~/components/common/diagramMain/lib/config'
80
-
81
- const props = defineProps<{
82
- adaptersWithPositions: UI_I_AdaptersWithPositions
83
- testId?: string
84
- }>()
85
- const emits = defineEmits<{
86
- (event: 'toggle-adapters', networkId: string, portId: string): void
87
- }>()
88
-
89
- const { $store }: any = useNuxtApp()
90
-
91
- const isNewView = computed<boolean>(() => $store.getters['main/getIsNewView'])
92
-
93
- const positions = computed<UI_I_ArbitraryObject<number>>(() =>
94
- adapterContentPositionsFunc(isNewView.value)
95
- )
96
-
97
- const localization = computed<UI_I_Localization>(() => useLocal())
98
-
99
- const hasAdapters = computed<boolean>(
100
- () => props.adaptersWithPositions.adaptersCount > 0
101
- )
102
-
103
- const isShowArrow = computed<boolean>(() => (isNewView.value ? true : hasAdapters.value))
104
-
105
- const headerText = computed<string>(() =>
106
- isNewView.value
107
- ? `${localization.value.common.physicalAdapters} (${
108
- props.adaptersWithPositions.adaptersCount || 0
109
- })`
110
- : localization.value.common.physicalAdapters
111
- )
112
-
113
- const arrawIconPosition = computed<number>(
114
- () => props.adaptersWithPositions.titlePosition + 1
115
- )
116
-
117
- const onToggleAdapters = (networkId: string, portId: string): void => {
118
- emits('toggle-adapters', networkId, portId)
119
- }
120
- </script>
121
-
122
- <style scoped lang="scss">
123
- @import '~/assets/scss/common/mixins.scss';
124
-
125
- :root.dark-theme {
126
- .diagram__heading {
127
- fill: #c1cdd4;
128
- }
129
- .no-physical-adapters {
130
- fill: #c1cdd4;
131
- }
132
- .text-ellipsis {
133
- color: #c1cdd4;
134
- }
135
- }
136
-
137
- .text-ellipsis {
138
- display: block;
139
- max-width: 230px;
140
- text-overflow: ellipsis;
141
- overflow: hidden;
142
- white-space: nowrap;
143
- font-weight: 400;
144
- font-size: 12px;
145
- color: #565656;
146
- }
147
-
148
- .virtual-switch__arrow-icon {
149
- width: 16px;
150
- height: 16px;
151
- margin-right: 4px;
152
- transform: rotate(90deg);
153
- align-self: center;
154
- fill: var(--triger-icon-color);
155
-
156
- &.is-new {
157
- fill: none;
158
- color: var(--diagram-content-second-text);
159
- }
160
-
161
- &.open:not(.without-adapters) {
162
- transform: rotate(180deg);
163
- }
164
-
165
- &.without-adapters {
166
- color: var(--diagram-content-second-disabled-text);
167
- fill: none;
168
- pointer-events: none;
169
- }
170
- }
171
- .diagram__heading {
172
- @include text($fs: 14px, $fw: 500);
173
- fill: #565656;
174
- letter-spacing: normal;
175
- line-height: 1.2rem;
176
- }
177
- .no-physical-adapters {
178
- fill: #565656;
179
- font-size: 13px;
180
- font-weight: 400;
181
- line-height: normal;
182
- }
183
-
184
- :root.is-new-view {
185
- .text-ellipsis {
186
- color: var(--diagram-content-text);
187
- }
188
- }
189
- </style>
1
+ <template>
2
+ <g data-title="adapter-block-contents">
3
+ <foreignObject
4
+ v-if="isShowArrow"
5
+ :data-id="`${props.testId}-adapters-toggle`"
6
+ data-title="adapter-toggle"
7
+ :width="positions.arrowIconSize"
8
+ :height="positions.arrowIconSize"
9
+ :x="positions.arrowIconX"
10
+ :y="arrawIconPosition"
11
+ :cursor="hasAdapters && 'pointer'"
12
+ @click="onToggleAdapters"
13
+ >
14
+ <div class="diagram-block__toggle">
15
+ <ui-icon
16
+ v-if="isNewView"
17
+ name="arrow"
18
+ width="20"
19
+ height="20"
20
+ :class="[
21
+ 'virtual-switch__arrow-icon',
22
+ {
23
+ 'is-new': isNewView,
24
+ open: hasAdapters ? props.adaptersWithPositions.toggle : false,
25
+ 'without-adapters': !hasAdapters,
26
+ },
27
+ ]"
28
+ />
29
+ <atoms-the-icon
30
+ v-else
31
+ name="angle"
32
+ :class="[
33
+ 'virtual-switch__arrow-icon',
34
+ {
35
+ open: props.adaptersWithPositions.toggle,
36
+ },
37
+ ]"
38
+ />
39
+ {{ hasAdapters }}
40
+ </div>
41
+ </foreignObject>
42
+ <text
43
+ data-title="adapter-main-text"
44
+ dy="14px"
45
+ font-size="14"
46
+ font-weight="500"
47
+ :x="positions.adapterTextX"
48
+ :y="props.adaptersWithPositions.titlePosition"
49
+ :class="['diagram__heading', { 'is-new': isNewView }]"
50
+ >
51
+ {{ headerText }}
52
+ </text>
53
+
54
+ <foreignObject
55
+ v-if="!isNewView && !hasAdapters"
56
+ data-title="no-adapter-text"
57
+ dy="11px"
58
+ height="20"
59
+ width="230"
60
+ x="462"
61
+ y="53"
62
+ >
63
+ <span
64
+ data-title="no-physical-adapters"
65
+ class="no-physical-adapters text-ellipsis"
66
+ >
67
+ {{ localization.common.noPhysicalNetworkAdapters }}
68
+ </span>
69
+ </foreignObject>
70
+ </g>
71
+ </template>
72
+
73
+ <script setup lang="ts">
74
+ import type { UI_I_AdaptersWithPositions } from '~/components/common/diagramMain/lib/models/interfaces'
75
+ import type {
76
+ UI_I_Localization,
77
+ UI_I_ArbitraryObject,
78
+ } from '~/lib/models/interfaces'
79
+ import { adapterContentPositionsFunc } from '~/components/common/diagramMain/lib/config'
80
+
81
+ const props = defineProps<{
82
+ adaptersWithPositions: UI_I_AdaptersWithPositions
83
+ testId?: string
84
+ }>()
85
+ const emits = defineEmits<{
86
+ (event: 'toggle-adapters', networkId: string, portId: string): void
87
+ }>()
88
+
89
+ const { $store }: any = useNuxtApp()
90
+
91
+ const isNewView = computed<boolean>(() => $store.getters['main/getIsNewView'])
92
+
93
+ const positions = computed<UI_I_ArbitraryObject<number>>(() =>
94
+ adapterContentPositionsFunc(isNewView.value)
95
+ )
96
+
97
+ const localization = computed<UI_I_Localization>(() => useLocal())
98
+
99
+ const hasAdapters = computed<boolean>(
100
+ () => props.adaptersWithPositions.adaptersCount > 0
101
+ )
102
+
103
+ const isShowArrow = computed<boolean>(() =>
104
+ isNewView.value ? true : hasAdapters.value
105
+ )
106
+
107
+ const headerText = computed<string>(() =>
108
+ isNewView.value
109
+ ? `${localization.value.common.physicalAdapters} (${
110
+ props.adaptersWithPositions.adaptersCount || 0
111
+ })`
112
+ : localization.value.common.physicalAdapters
113
+ )
114
+
115
+ const arrawIconPosition = computed<number>(
116
+ () => props.adaptersWithPositions.titlePosition - 0.5
117
+ )
118
+
119
+ const onToggleAdapters = (networkId: string, portId: string): void => {
120
+ emits('toggle-adapters', networkId, portId)
121
+ }
122
+ </script>
123
+
124
+ <style scoped lang="scss">
125
+ @import '~/assets/scss/common/mixins.scss';
126
+
127
+ :root.dark-theme {
128
+ .diagram__heading {
129
+ fill: #c1cdd4;
130
+ &.is-new {
131
+ fill: var(--diagram-content-text);
132
+ }
133
+ }
134
+ .no-physical-adapters {
135
+ fill: #c1cdd4;
136
+ }
137
+ .text-ellipsis {
138
+ color: #c1cdd4;
139
+ }
140
+ }
141
+
142
+ .text-ellipsis {
143
+ display: block;
144
+ max-width: 230px;
145
+ text-overflow: ellipsis;
146
+ overflow: hidden;
147
+ white-space: nowrap;
148
+ font-weight: 400;
149
+ font-size: 12px;
150
+ color: #565656;
151
+ }
152
+
153
+ .virtual-switch__arrow-icon {
154
+ width: 16px;
155
+ height: 16px;
156
+ margin-right: 4px;
157
+ transform: rotate(90deg);
158
+ align-self: center;
159
+ fill: var(--triger-icon-color);
160
+
161
+ &.is-new {
162
+ width: 20px;
163
+ height: 20px;
164
+ fill: none;
165
+ color: var(--diagram-content-second-text);
166
+ }
167
+
168
+ &.open:not(.without-adapters) {
169
+ transform: rotate(180deg);
170
+ }
171
+
172
+ &.without-adapters {
173
+ color: var(--diagram-content-second-disabled-text);
174
+ fill: none;
175
+ pointer-events: none;
176
+ }
177
+ }
178
+ .diagram__heading {
179
+ @include text($fs: 14px, $fw: 500);
180
+ fill: #565656;
181
+ letter-spacing: normal;
182
+ line-height: 1.2rem;
183
+
184
+ &.is-new {
185
+ line-height: 16.94px;
186
+ fill: var(--diagram-content-text);
187
+ }
188
+ }
189
+ .no-physical-adapters {
190
+ fill: #565656;
191
+ font-size: 13px;
192
+ font-weight: 400;
193
+ line-height: normal;
194
+ }
195
+
196
+ :root.is-new-view {
197
+ .text-ellipsis {
198
+ color: var(--diagram-content-text);
199
+ }
200
+ }
201
+
202
+ :root.is-new-view.dark-theme {
203
+ .text-ellipsis {
204
+ color: var(--diagram-content-text);
205
+ }
206
+ }
207
+ </style>
@@ -1,50 +1,50 @@
1
- import type {
2
- UI_I_AdapterStatus,
3
- UI_I_MainRectHeights,
4
- UI_I_SelectedAdapter,
5
- UI_I_SelectedPort,
6
- UI_I_SwitchLine,
7
- UI_I_NetworkPositionsConst,
8
- } from '~/components/common/diagramMain/lib/models/interfaces'
9
-
10
- export const managePhysicalAdapterStatusInitial: UI_I_AdapterStatus = {
11
- active: [],
12
- standby: [],
13
- unused: [],
14
- }
15
-
16
- export const mainRectHeightsInitial: UI_I_MainRectHeights = {
17
- networksHeight: 0,
18
- adaptersHeight: 0,
19
- }
20
-
21
- export const switchLineInitial: UI_I_SwitchLine = {
22
- y1: 0,
23
- y2: 0,
24
- ay: 0,
25
- }
26
-
27
- export const selectedPortInitial: UI_I_SelectedPort = {
28
- networkId: '-1',
29
- portId: '-1',
30
- activeAdapters: [],
31
- }
32
-
33
- export const selectedAdapterInitial: UI_I_SelectedAdapter = {
34
- adapterId: '-1',
35
- connectedPorts: [],
36
- }
37
-
38
- export const selectedSwitchLineYInitial: UI_I_SwitchLine = {
39
- y1: 0,
40
- y2: 0,
41
- }
42
-
43
- export const NETWORK_POSITIONS: UI_I_NetworkPositionsConst = {
44
- EMPTY_PORTS_PADDING_BOTTOM: 7.5,
45
- FROM_VLAN_ID_TO_GROUP_NAME: 22,
46
- VMS_AND_PORTS_HEIGHT: 22,
47
- V_CENTER_HEIGHT: 32,
48
- BETWEEN_VMS_AND_PORTS: 7.5,
49
- BETWEEN_V_CENTERS: 12.5,
50
- } as const
1
+ import type {
2
+ UI_I_AdapterStatus,
3
+ UI_I_MainRectHeights,
4
+ UI_I_SelectedAdapter,
5
+ UI_I_SelectedPort,
6
+ UI_I_SwitchLine,
7
+ UI_I_NetworkPositionsConst,
8
+ } from '~/components/common/diagramMain/lib/models/interfaces'
9
+
10
+ export const managePhysicalAdapterStatusInitial: UI_I_AdapterStatus = {
11
+ active: [],
12
+ standby: [],
13
+ unused: [],
14
+ }
15
+
16
+ export const mainRectHeightsInitial: UI_I_MainRectHeights = {
17
+ networksHeight: 0,
18
+ adaptersHeight: 0,
19
+ }
20
+
21
+ export const switchLineInitial: UI_I_SwitchLine = {
22
+ y1: 0,
23
+ y2: 0,
24
+ ay: 0,
25
+ }
26
+
27
+ export const selectedPortInitial: UI_I_SelectedPort = {
28
+ networkId: '-1',
29
+ portId: '-1',
30
+ activeAdapters: [],
31
+ }
32
+
33
+ export const selectedAdapterInitial: UI_I_SelectedAdapter = {
34
+ adapterId: '-1',
35
+ connectedPorts: [],
36
+ }
37
+
38
+ export const selectedSwitchLineYInitial: UI_I_SwitchLine = {
39
+ y1: 0,
40
+ y2: 0,
41
+ }
42
+
43
+ export const NETWORK_POSITIONS: UI_I_NetworkPositionsConst = {
44
+ EMPTY_PORTS_PADDING_BOTTOM: 7.5,
45
+ FROM_VLAN_ID_TO_GROUP_NAME: 22,
46
+ VMS_AND_PORTS_HEIGHT: 22,
47
+ V_CENTER_HEIGHT: 32,
48
+ BETWEEN_VMS_AND_PORTS: 7.5,
49
+ BETWEEN_V_CENTERS: 12.5,
50
+ } as const