bfg-common 1.4.580 → 1.4.582

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 (67) hide show
  1. package/assets/img/icons/icons-sprite-dark-1.svg +437 -407
  2. package/assets/img/icons/icons-sprite-dark-2.svg +347 -343
  3. package/assets/img/icons/icons-sprite-dark-3.svg +227 -227
  4. package/assets/img/icons/icons-sprite-dark-4.svg +259 -255
  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 +437 -407
  8. package/assets/img/icons/icons-sprite-light-2.svg +347 -343
  9. package/assets/img/icons/icons-sprite-light-3.svg +227 -227
  10. package/assets/img/icons/icons-sprite-light-4.svg +259 -255
  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 +364 -377
  18. package/components/common/diagramMain/DiagramMain.vue +872 -894
  19. package/components/common/diagramMain/Header.vue +211 -211
  20. package/components/common/diagramMain/adapter/AdapterItem.vue +0 -2
  21. package/components/common/diagramMain/adapter/AdapterItems.vue +61 -61
  22. package/components/common/diagramMain/adapter/Contents.vue +189 -207
  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 +155 -156
  53. package/components/common/diagramMain/modals/viewSettings/viewSettingsModal/ViewSettingsModalNew.vue +63 -68
  54. package/components/common/diagramMain/network/Contents.vue +488 -491
  55. package/components/common/diagramMain/network/noNetwork/NoNetworkNew.vue +1 -1
  56. package/components/common/diagramMain/port/Port.vue +0 -2
  57. package/components/common/diagramMain/port/Ports.vue +47 -47
  58. package/components/common/layout/theHeader/TheHeaderNew.vue +10 -4
  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 +71 -48
  62. package/components/common/pages/home/resource/ResourceNew.vue +63 -58
  63. package/components/common/pages/home/widgets/WidgetsNew.vue +79 -74
  64. package/components/common/pages/shortcuts/block/BlockNew.vue +80 -71
  65. package/components/common/split/horizontal/HorizontalNew.vue +354 -331
  66. package/components/common/wizards/network/add/lib/config/steps.ts +464 -464
  67. package/package.json +2 -2
@@ -1,194 +1,194 @@
1
- import type { UI_I_ArbitraryObject } from '~/lib/models/interfaces'
2
-
3
- export const adapterItemPositionsFunc = (
4
- isNewView: boolean,
5
- adapterIconPosition: number,
6
- adapterCarrier: boolean,
7
- adapterPosition: number,
8
- adapterSelectionPosition: number,
9
- adapterActionIconPosition: number
10
- ): UI_I_ArbitraryObject<number> =>
11
- isNewView
12
- ? {
13
- x1: 386,
14
- x2: 363.3,
15
- blockX: 436.5,
16
- adapterX: 498.5,
17
- adapterWidth: 178,
18
- adapterIconSize: 20,
19
- adapterIconX: 470.5,
20
- adapterIconY: adapterCarrier
21
- ? adapterIconPosition + 0.7
22
- : adapterIconPosition + 0.5,
23
-
24
- adapterSecondIconSize: 16,
25
- adapterSecondIconX: 392.5,
26
- adapterSecondIconY: adapterPosition - 1,
27
- errorIconX: 450.5,
28
- errorIconY: adapterSelectionPosition + 1.5,
29
- actionY: adapterActionIconPosition + 1.5,
30
- actionX: 690.5,
31
- }
32
- : {
33
- x1: 391.5,
34
- x2: 362.5,
35
- blockX: 430.5,
36
- adapterX: 482,
37
- adapterWidth: 198,
38
- adapterIconSize: 18,
39
- adapterIconX: 462,
40
- adapterIconY: adapterIconPosition,
41
- adapterSecondIconSize: 18,
42
- adapterSecondIconX: 396,
43
- adapterSecondIconY: adapterPosition,
44
- errorIconX: 447,
45
- errorIconY: adapterSelectionPosition,
46
- actionY: adapterActionIconPosition,
47
- actionX: 682,
48
- }
49
-
50
- export const adapterContentPositionsFunc = (
51
- isNewView: boolean
52
- ): UI_I_ArbitraryObject<number> =>
53
- isNewView
54
- ? {
55
- arrowIconSize: 20,
56
- arrowIconX: 442.5,
57
- adapterTextX: 470.5,
58
- }
59
- : {
60
- arrowIconSize: 18,
61
- arrowIconX: 438,
62
- adapterTextX: 462,
63
- }
64
-
65
- export const adapterLinesPositionsFunc = (
66
- isNewView: boolean,
67
- firstNetworkY: number,
68
- lastNetworkY: number,
69
- adaptersConnectLineY: number
70
- ): UI_I_ArbitraryObject<number> =>
71
- isNewView
72
- ? {
73
- x1: 386,
74
- x2:
75
- firstNetworkY > adaptersConnectLineY ||
76
- lastNetworkY < adaptersConnectLineY
77
- ? 364.5
78
- : 362.5,
79
- }
80
- : {
81
- x1: 391.5,
82
- x2: 362.5,
83
- }
84
-
85
- export const networkContentPositionsFunc = (
86
- isNewView: boolean,
87
- networkPortsPosition: number,
88
- networkTitlePosition: number
89
- ): UI_I_ArbitraryObject<number> =>
90
- isNewView
91
- ? {
92
- blockX: 12.5,
93
- portsY: networkPortsPosition + 1,
94
- x1: 339,
95
- x2: 361.7,
96
- networkIconSize: 20,
97
- networkIconY: networkTitlePosition - 2,
98
- networkIconX: 16,
99
- networkTitleX: 44,
100
- contentX: 44,
101
- arrowX: 44,
102
- arrowSize: 16,
103
- portX: 68,
104
- actionY: networkTitlePosition + 1.5,
105
- actionX: 266.5,
106
- portsArrowPosition: networkPortsPosition - 0.5,
107
- }
108
- : {
109
- blockX: 18.5,
110
- portsY: networkPortsPosition,
111
- x1: 334,
112
- x2: 362.5,
113
- networkIconSize: 18,
114
- networkIconY: networkTitlePosition,
115
- networkIconX: 26,
116
- networkTitleX: 50,
117
- contentX: 26,
118
- arrowX: 24,
119
- arrowSize: 18,
120
- portX: 42,
121
- actionY: networkTitlePosition,
122
- actionX: 270,
123
- portsArrowPosition: networkPortsPosition - 1,
124
- }
125
-
126
- export const networkLinesPositionsFunc = (
127
- isNewView: boolean,
128
- shortLine: boolean
129
- ): UI_I_ArbitraryObject<number> =>
130
- isNewView
131
- ? {
132
- x1: 339,
133
- x2: shortLine ? 360.5 : 362.5,
134
- xHighlight2: 361.7 || 362.5,
135
- }
136
- : {
137
- x1: 332.5,
138
- x2: 362.5,
139
- xHighlight2: 362.5,
140
- }
141
-
142
- export const portPositionsFunc = (
143
- isNewView: boolean,
144
- navCollapsePosition: number,
145
- portStatusIconPosition: number
146
- ): UI_I_ArbitraryObject<number> =>
147
- isNewView
148
- ? {
149
- x1: 339,
150
- x2: 361.7,
151
- blockX: 12.5,
152
- portX: 50,
153
- portWidth: 182,
154
- playIconSize: 16,
155
- playIconX: 242.5,
156
- playIconY: navCollapsePosition + 1.4,
157
- actionY: navCollapsePosition + 1.5,
158
- actionX: 266.5,
159
- portSecondIconSize: 16,
160
- portSecondIconX: 316.5,
161
- portSecondIconY: portStatusIconPosition + 1.5,
162
- }
163
- : {
164
- x1: 334,
165
- x2: 362.5,
166
- blockX: 18.5,
167
- portX: 22,
168
- portWidth: 226,
169
- playIconSize: 18,
170
- playIconX: 250,
171
- playIconY: navCollapsePosition,
172
- actionY: navCollapsePosition,
173
- actionX: 270,
174
- portSecondIconSize: 18,
175
- portSecondIconX: 314,
176
- portSecondIconY: portStatusIconPosition,
177
- }
178
-
179
- export const switchPositionsFunc = (
180
- isNewView: boolean
181
- ): UI_I_ArbitraryObject<number> =>
182
- isNewView
183
- ? {
184
- rw: 104,
185
- rx: 310.5,
186
- lx: 362.5,
187
- radius: 6,
188
- }
189
- : {
190
- rw: 100,
191
- rx: 312.5,
192
- lx: 362.5,
193
- radius: 0,
194
- }
1
+ import type { UI_I_ArbitraryObject } from '~/lib/models/interfaces'
2
+
3
+ export const adapterItemPositionsFunc = (
4
+ isNewView: boolean,
5
+ adapterIconPosition: number,
6
+ adapterCarrier: boolean,
7
+ adapterPosition: number,
8
+ adapterSelectionPosition: number,
9
+ adapterActionIconPosition: number
10
+ ): UI_I_ArbitraryObject<number> =>
11
+ isNewView
12
+ ? {
13
+ x1: 386,
14
+ x2: 363.3,
15
+ blockX: 436.5,
16
+ adapterX: 498.5,
17
+ adapterWidth: 178,
18
+ adapterIconSize: 20,
19
+ adapterIconX: 470.5,
20
+ adapterIconY: adapterCarrier
21
+ ? adapterIconPosition + 0.7
22
+ : adapterIconPosition + 0.5,
23
+
24
+ adapterSecondIconSize: 16,
25
+ adapterSecondIconX: 392.5,
26
+ adapterSecondIconY: adapterPosition - 1,
27
+ errorIconX: 450.5,
28
+ errorIconY: adapterSelectionPosition + 1.5,
29
+ actionY: adapterActionIconPosition + 1.5,
30
+ actionX: 690.5,
31
+ }
32
+ : {
33
+ x1: 391.5,
34
+ x2: 362.5,
35
+ blockX: 430.5,
36
+ adapterX: 482,
37
+ adapterWidth: 198,
38
+ adapterIconSize: 18,
39
+ adapterIconX: 462,
40
+ adapterIconY: adapterIconPosition,
41
+ adapterSecondIconSize: 18,
42
+ adapterSecondIconX: 396,
43
+ adapterSecondIconY: adapterPosition,
44
+ errorIconX: 447,
45
+ errorIconY: adapterSelectionPosition,
46
+ actionY: adapterActionIconPosition,
47
+ actionX: 682,
48
+ }
49
+
50
+ export const adapterContentPositionsFunc = (
51
+ isNewView: boolean
52
+ ): UI_I_ArbitraryObject<number> =>
53
+ isNewView
54
+ ? {
55
+ arrowIconSize: 20,
56
+ arrowIconX: 442.5,
57
+ adapterTextX: 470.5,
58
+ }
59
+ : {
60
+ arrowIconSize: 18,
61
+ arrowIconX: 438,
62
+ adapterTextX: 462,
63
+ }
64
+
65
+ export const adapterLinesPositionsFunc = (
66
+ isNewView: boolean,
67
+ firstNetworkY: number,
68
+ lastNetworkY: number,
69
+ adaptersConnectLineY: number
70
+ ): UI_I_ArbitraryObject<number> =>
71
+ isNewView
72
+ ? {
73
+ x1: 386,
74
+ x2:
75
+ firstNetworkY > adaptersConnectLineY ||
76
+ lastNetworkY < adaptersConnectLineY
77
+ ? 364.5
78
+ : 362.5,
79
+ }
80
+ : {
81
+ x1: 391.5,
82
+ x2: 362.5,
83
+ }
84
+
85
+ export const networkContentPositionsFunc = (
86
+ isNewView: boolean,
87
+ networkPortsPosition: number,
88
+ networkTitlePosition: number
89
+ ): UI_I_ArbitraryObject<number> =>
90
+ isNewView
91
+ ? {
92
+ blockX: 12.5,
93
+ portsY: networkPortsPosition + 1,
94
+ x1: 339,
95
+ x2: 361.7,
96
+ networkIconSize: 20,
97
+ networkIconY: networkTitlePosition - 2,
98
+ networkIconX: 16,
99
+ networkTitleX: 44,
100
+ contentX: 44,
101
+ arrowX: 44,
102
+ arrowSize: 16,
103
+ portX: 68,
104
+ actionY: networkTitlePosition + 1.5,
105
+ actionX: 266.5,
106
+ portsArrowPosition: networkPortsPosition - 2,
107
+ }
108
+ : {
109
+ blockX: 18.5,
110
+ portsY: networkPortsPosition,
111
+ x1: 334,
112
+ x2: 362.5,
113
+ networkIconSize: 18,
114
+ networkIconY: networkTitlePosition,
115
+ networkIconX: 26,
116
+ networkTitleX: 50,
117
+ contentX: 26,
118
+ arrowX: 24,
119
+ arrowSize: 18,
120
+ portX: 42,
121
+ actionY: networkTitlePosition,
122
+ actionX: 270,
123
+ portsArrowPosition: networkPortsPosition - 1,
124
+ }
125
+
126
+ export const networkLinesPositionsFunc = (
127
+ isNewView: boolean,
128
+ shortLine: boolean
129
+ ): UI_I_ArbitraryObject<number> =>
130
+ isNewView
131
+ ? {
132
+ x1: 339,
133
+ x2: shortLine ? 360.5 : 362.5,
134
+ xHighlight2: 361.7 || 362.5,
135
+ }
136
+ : {
137
+ x1: 332.5,
138
+ x2: 362.5,
139
+ xHighlight2: 362.5,
140
+ }
141
+
142
+ export const portPositionsFunc = (
143
+ isNewView: boolean,
144
+ navCollapsePosition: number,
145
+ portStatusIconPosition: number
146
+ ): UI_I_ArbitraryObject<number> =>
147
+ isNewView
148
+ ? {
149
+ x1: 339,
150
+ x2: 361.7,
151
+ blockX: 12.5,
152
+ portX: 50,
153
+ portWidth: 182,
154
+ playIconSize: 16,
155
+ playIconX: 242.5,
156
+ playIconY: navCollapsePosition + 1.4,
157
+ actionY: navCollapsePosition + 1.5,
158
+ actionX: 266.5,
159
+ portSecondIconSize: 16,
160
+ portSecondIconX: 316.5,
161
+ portSecondIconY: portStatusIconPosition + 1.5,
162
+ }
163
+ : {
164
+ x1: 334,
165
+ x2: 362.5,
166
+ blockX: 18.5,
167
+ portX: 22,
168
+ portWidth: 226,
169
+ playIconSize: 18,
170
+ playIconX: 250,
171
+ playIconY: navCollapsePosition,
172
+ actionY: navCollapsePosition,
173
+ actionX: 270,
174
+ portSecondIconSize: 18,
175
+ portSecondIconX: 314,
176
+ portSecondIconY: portStatusIconPosition,
177
+ }
178
+
179
+ export const switchPositionsFunc = (
180
+ isNewView: boolean
181
+ ): UI_I_ArbitraryObject<number> =>
182
+ isNewView
183
+ ? {
184
+ rw: 104,
185
+ rx: 310.5,
186
+ lx: 362.5,
187
+ radius: 6,
188
+ }
189
+ : {
190
+ rw: 100,
191
+ rx: 312.5,
192
+ lx: 362.5,
193
+ radius: 0,
194
+ }
@@ -1,45 +1,45 @@
1
- export const enum UI_E_NetworkType {
2
- VMkernel = '1',
3
- VMPortsGroup = '2',
4
- VCenter = '3',
5
- }
6
-
7
- export const enum UI_E_PositionsY {
8
- DIAGRAM_TOP = 1.5,
9
- DIAGRAM_BOTTOM = 1.5,
10
- BETWEEN_RECTS = 16,
11
- TITLE_FROM_RECT_TOP = 9.5,
12
- VLAN_FROM_RECT_TOP = 35.5,
13
- PORTS_FROM_RECT_TOP = 57.5,
14
- ADAPTER_FROM_RECT_TOP = 35.5,
15
- SINGLE_PORT_HEIGHT = 22,
16
- SINGLE_V_CENTER_HEIGHT = 32,
17
- SINGLE_ADAPTER_HEIGHT = 22,
18
- SPACE_FROM_RECT_BOTTOM = 2.5,
19
- }
20
-
21
- export enum UI_E_MigrationValidationFields {
22
- SELECT_ADAPTER_VM = 'vm',
23
-
24
- CONNECTION_SETTINGS_NETWORK = 'name',
25
- CONNECTION_SETTINGS_VLAN = 'vlan',
26
- }
27
-
28
- export enum UI_E_IYNOption {
29
- INHERIT,
30
- YES,
31
- NO,
32
- }
33
-
34
- export enum UI_E_ICBLinkDetectionMode {
35
- INHERIT,
36
- CARIER,
37
- BEAKON,
38
- }
39
-
40
- export enum UI_E_IBSTLoadBalancingMode {
41
- INHERIT,
42
- BACKUP,
43
- SLB,
44
- TCP,
1
+ export const enum UI_E_NetworkType {
2
+ VMkernel = '1',
3
+ VMPortsGroup = '2',
4
+ VCenter = '3',
5
+ }
6
+
7
+ export const enum UI_E_PositionsY {
8
+ DIAGRAM_TOP = 1.5,
9
+ DIAGRAM_BOTTOM = 30,
10
+ BETWEEN_RECTS = 16,
11
+ TITLE_FROM_RECT_TOP = 9.5,
12
+ VLAN_FROM_RECT_TOP = 35.5,
13
+ PORTS_FROM_RECT_TOP = 57.5,
14
+ ADAPTER_FROM_RECT_TOP = 35.5,
15
+ SINGLE_PORT_HEIGHT = 22,
16
+ SINGLE_V_CENTER_HEIGHT = 32,
17
+ SINGLE_ADAPTER_HEIGHT = 22,
18
+ SPACE_FROM_RECT_BOTTOM = 2.5,
19
+ }
20
+
21
+ export enum UI_E_MigrationValidationFields {
22
+ SELECT_ADAPTER_VM = 'vm',
23
+
24
+ CONNECTION_SETTINGS_NETWORK = 'name',
25
+ CONNECTION_SETTINGS_VLAN = 'vlan',
26
+ }
27
+
28
+ export enum UI_E_IYNOption {
29
+ INHERIT,
30
+ YES,
31
+ NO,
32
+ }
33
+
34
+ export enum UI_E_ICBLinkDetectionMode {
35
+ INHERIT,
36
+ CARIER,
37
+ BEAKON,
38
+ }
39
+
40
+ export enum UI_E_IBSTLoadBalancingMode {
41
+ INHERIT,
42
+ BACKUP,
43
+ SLB,
44
+ TCP,
45
45
  }
@@ -1,21 +1,21 @@
1
- import type {
2
- UI_I_Adapter,
3
- UI_I_AdapterWithError,
4
- } from '~/components/common/diagramMain/lib/models/interfaces'
5
-
6
- export type UI_T_AdapterStatusNames = 'active' | 'standby' | 'unused'
7
- export type UI_T_PropertiesFieldName = 'vlanId' | 'networkLabel'
8
- export type UI_T_TrafficShapingFieldName = 'average' | 'peak' | 'burstSize'
9
- export type UI_T_PortPropertiesFieldName = 'mtu'
10
-
11
- export type UI_T_LoadBalancingMode =
12
- | 'inherit'
13
- | 'active-backup'
14
- | 'balance-slb'
15
- | 'balance-tcp'
16
- export type UI_T_IYN = 'inherit' | 'yes' | 'no'
17
- export type UI_T_Carier = 'inherit' | 'carier' | 'beakon'
18
-
19
- export type UI_T_Adapters = (UI_I_Adapter | UI_I_AdapterWithError) & {
20
- adapterPosition: number
21
- }
1
+ import type {
2
+ UI_I_Adapter,
3
+ UI_I_AdapterWithError,
4
+ } from '~/components/common/diagramMain/lib/models/interfaces'
5
+
6
+ export type UI_T_AdapterStatusNames = 'active' | 'standby' | 'unused'
7
+ export type UI_T_PropertiesFieldName = 'vlanId' | 'networkLabel'
8
+ export type UI_T_TrafficShapingFieldName = 'average' | 'peak' | 'burstSize'
9
+ export type UI_T_PortPropertiesFieldName = 'mtu'
10
+
11
+ export type UI_T_LoadBalancingMode =
12
+ | 'inherit'
13
+ | 'active-backup'
14
+ | 'balance-slb'
15
+ | 'balance-tcp'
16
+ export type UI_T_IYN = 'inherit' | 'yes' | 'no'
17
+ export type UI_T_Carier = 'inherit' | 'carier' | 'beakon'
18
+
19
+ export type UI_T_Adapters = (UI_I_Adapter | UI_I_AdapterWithError) & {
20
+ adapterPosition: number
21
+ }