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,211 +1,211 @@
1
- <template>
2
- <template v-if="!props.inPortlet">
3
- <div class="diagram-header">
4
- <div class="diagram-header-left">
5
- <atoms-the-icon
6
- name="angle"
7
- :class="[
8
- 'diagram-header__arrow-icon',
9
- {
10
- open: props.isShowDiagram,
11
- },
12
- ]"
13
- :data-id="`${props.testId}-toggle-icon`"
14
- @click="onToggleDiagram"
15
- />
16
- <a>
17
- <span>
18
- {{ localization.common.standardSwitch }}:
19
- {{ props.diagramName }}
20
- </span>
21
- </a>
22
- </div>
23
- <div v-if="props.isShowDiagram" class="diagram-header__btn-container">
24
- <span class="vertical-separator"></span>
25
- <button
26
- id="add-networking-button"
27
- :data-id="`${props.testId}-add-networking-button`"
28
- type="button"
29
- @click="onShowModal('add-networking', props.diagramName)"
30
- >
31
- {{ localization.common.addNetworking }}
32
- </button>
33
- <button
34
- id="switch-edit-button"
35
- :data-id="`${props.testId}-edit-button`"
36
- type="button"
37
- @click="onShowModal('switch-edit')"
38
- >
39
- {{ localization.common.edit }}
40
- </button>
41
- <button
42
- id="switch-manage-physical-adapters-button"
43
- :data-id="`${props.testId}-manage-physical-adapters-button`"
44
- type="button"
45
- @click="onShowModal('switch-manage-physical-adapters')"
46
- >
47
- {{ localization.common.managePhysicalAdapters }}
48
- </button>
49
- <div class="diagram-main-actions-dots">
50
- <atoms-collapse-nav
51
- popup-class="diagram-main-actions__popup"
52
- :close-after-click="true"
53
- :items="switchMainNavigation"
54
- :test-id="`${props.testId}-actions`"
55
- @change="onShowModal"
56
- />
57
- </div>
58
- </div>
59
- </div>
60
- <hr class="horizontal-separator" />
61
- </template>
62
- </template>
63
-
64
- <script setup lang="ts">
65
- import type { UI_I_Localization } from '~/lib/models/interfaces'
66
- import type {
67
- UI_I_NavigationItem,
68
- UI_I_ModalsInitialData,
69
- } from '~/components/common/diagramMain/lib/models/interfaces'
70
- import { switchMainNavigationFunc } from '~/components/common/diagramMain/modals/lib/config'
71
-
72
- const props = defineProps<{
73
- inPortlet: boolean
74
- isShowDiagram: boolean
75
- diagramName: string
76
- testId: string
77
- }>()
78
-
79
- const emits = defineEmits<{
80
- (event: 'toggle-diagram'): void
81
- (
82
- event: 'show-modal',
83
- modalName: string,
84
- properties?: UI_I_ModalsInitialData
85
- ): void
86
- }>()
87
-
88
- const localization = computed<UI_I_Localization>(() => useLocal())
89
-
90
- const switchMainNavigation = computed<UI_I_NavigationItem[]>(() =>
91
- switchMainNavigationFunc(localization.value, props.testId)
92
- )
93
-
94
- const onToggleDiagram = () => emits('toggle-diagram')
95
-
96
- const onShowModal = (modalName: string, diagramName?: string) =>
97
- diagramName
98
- ? emits('show-modal', modalName, { switch_name: diagramName })
99
- : emits('show-modal', modalName)
100
- </script>
101
-
102
- <style scoped lang="scss">
103
- :root.dark-theme {
104
- .diagram-header {
105
- &-left {
106
- a {
107
- span {
108
- color: #79c6e6;
109
-
110
- &:hover {
111
- color: #49afd9;
112
- }
113
- }
114
- }
115
- }
116
-
117
- &__btn-container {
118
- button {
119
- color: #89cbdf;
120
-
121
- &:hover {
122
- color: #57c8ea;
123
- }
124
- }
125
- }
126
- }
127
- }
128
-
129
- .diagram-header {
130
- display: flex;
131
- padding-left: 8px;
132
- a {
133
- color: #0072a3;
134
- cursor: pointer;
135
- font-weight: 700;
136
- user-select: none;
137
- line-height: 20px;
138
- span {
139
- font-weight: 700;
140
- }
141
- }
142
-
143
- &-left {
144
- display: flex;
145
- flex-wrap: nowrap;
146
- color: #49afd9;
147
- }
148
-
149
- &__arrow-icon {
150
- width: 16px;
151
- height: 16px;
152
- margin-right: 4px;
153
- transform: rotate(90deg);
154
- align-self: center;
155
- fill: var(--triger-icon-color);
156
- cursor: pointer;
157
- &.open {
158
- transform: rotate(180deg);
159
- }
160
- }
161
-
162
- &__btn-container {
163
- display: flex;
164
-
165
- button {
166
- font-size: 11px;
167
- height: 24px;
168
- border: none;
169
- background: none;
170
- margin-right: 0;
171
- cursor: pointer;
172
- display: inline-block;
173
- white-space: nowrap;
174
- text-align: center;
175
- text-transform: uppercase;
176
- color: #49afd9;
177
- line-height: 20px;
178
- max-height: 16.8px;
179
- padding: 0 14px;
180
- font-weight: 500;
181
- letter-spacing: 1px;
182
-
183
- &:hover {
184
- color: #004d8a;
185
- }
186
- }
187
- }
188
- }
189
-
190
- .diagram-main-actions-dots {
191
- position: relative;
192
- transform: translate(62px, -11px);
193
- }
194
-
195
- .horizontal-separator {
196
- margin: 5px 10px 10px;
197
- border-left: 0;
198
- border-right: 0;
199
- border-color: #ddd;
200
- box-sizing: content-box;
201
- height: 0;
202
- overflow: visible;
203
- border-top: 0px solid #eee;
204
- }
205
-
206
- .vertical-separator {
207
- border: 1px solid #ddd;
208
- border-left: none;
209
- margin: 0 3px 0 14px;
210
- }
211
- </style>
1
+ <template>
2
+ <template v-if="!props.inPortlet">
3
+ <div class="diagram-header">
4
+ <div class="diagram-header-left">
5
+ <atoms-the-icon
6
+ name="angle"
7
+ :class="[
8
+ 'diagram-header__arrow-icon',
9
+ {
10
+ open: props.isShowDiagram,
11
+ },
12
+ ]"
13
+ :data-id="`${props.testId}-toggle-icon`"
14
+ @click="onToggleDiagram"
15
+ />
16
+ <a>
17
+ <span>
18
+ {{ localization.common.standardSwitch }}:
19
+ {{ props.diagramName }}
20
+ </span>
21
+ </a>
22
+ </div>
23
+ <div v-if="props.isShowDiagram" class="diagram-header__btn-container">
24
+ <span class="vertical-separator"></span>
25
+ <button
26
+ id="add-networking-button"
27
+ :data-id="`${props.testId}-add-networking-button`"
28
+ type="button"
29
+ @click="onShowModal('add-networking', props.diagramName)"
30
+ >
31
+ {{ localization.common.addNetworking }}
32
+ </button>
33
+ <button
34
+ id="switch-edit-button"
35
+ :data-id="`${props.testId}-edit-button`"
36
+ type="button"
37
+ @click="onShowModal('switch-edit')"
38
+ >
39
+ {{ localization.common.edit }}
40
+ </button>
41
+ <button
42
+ id="switch-manage-physical-adapters-button"
43
+ :data-id="`${props.testId}-manage-physical-adapters-button`"
44
+ type="button"
45
+ @click="onShowModal('switch-manage-physical-adapters')"
46
+ >
47
+ {{ localization.common.managePhysicalAdapters }}
48
+ </button>
49
+ <div class="diagram-main-actions-dots">
50
+ <atoms-collapse-nav
51
+ popup-class="diagram-main-actions__popup"
52
+ :close-after-click="true"
53
+ :items="switchMainNavigation"
54
+ :test-id="`${props.testId}-actions`"
55
+ @change="onShowModal"
56
+ />
57
+ </div>
58
+ </div>
59
+ </div>
60
+ <hr class="horizontal-separator" />
61
+ </template>
62
+ </template>
63
+
64
+ <script setup lang="ts">
65
+ import type { UI_I_Localization } from '~/lib/models/interfaces'
66
+ import type {
67
+ UI_I_NavigationItem,
68
+ UI_I_ModalsInitialData,
69
+ } from '~/components/common/diagramMain/lib/models/interfaces'
70
+ import { switchMainNavigationFunc } from '~/components/common/diagramMain/modals/lib/config'
71
+
72
+ const props = defineProps<{
73
+ inPortlet: boolean
74
+ isShowDiagram: boolean
75
+ diagramName: string
76
+ testId: string
77
+ }>()
78
+
79
+ const emits = defineEmits<{
80
+ (event: 'toggle-diagram'): void
81
+ (
82
+ event: 'show-modal',
83
+ modalName: string,
84
+ properties?: UI_I_ModalsInitialData
85
+ ): void
86
+ }>()
87
+
88
+ const localization = computed<UI_I_Localization>(() => useLocal())
89
+
90
+ const switchMainNavigation = computed<UI_I_NavigationItem[]>(() =>
91
+ switchMainNavigationFunc(localization.value, props.testId)
92
+ )
93
+
94
+ const onToggleDiagram = () => emits('toggle-diagram')
95
+
96
+ const onShowModal = (modalName: string, diagramName?: string) =>
97
+ diagramName
98
+ ? emits('show-modal', modalName, { switch_name: diagramName })
99
+ : emits('show-modal', modalName)
100
+ </script>
101
+
102
+ <style scoped lang="scss">
103
+ :root.dark-theme {
104
+ .diagram-header {
105
+ &-left {
106
+ a {
107
+ span {
108
+ color: #79c6e6;
109
+
110
+ &:hover {
111
+ color: #49afd9;
112
+ }
113
+ }
114
+ }
115
+ }
116
+
117
+ &__btn-container {
118
+ button {
119
+ color: #89cbdf;
120
+
121
+ &:hover {
122
+ color: #57c8ea;
123
+ }
124
+ }
125
+ }
126
+ }
127
+ }
128
+
129
+ .diagram-header {
130
+ display: flex;
131
+ padding-left: 8px;
132
+ a {
133
+ color: #0072a3;
134
+ cursor: pointer;
135
+ font-weight: 700;
136
+ user-select: none;
137
+ line-height: 20px;
138
+ span {
139
+ font-weight: 700;
140
+ }
141
+ }
142
+
143
+ &-left {
144
+ display: flex;
145
+ flex-wrap: nowrap;
146
+ color: #49afd9;
147
+ }
148
+
149
+ &__arrow-icon {
150
+ width: 16px;
151
+ height: 16px;
152
+ margin-right: 4px;
153
+ transform: rotate(90deg);
154
+ align-self: center;
155
+ fill: var(--triger-icon-color);
156
+ cursor: pointer;
157
+ &.open {
158
+ transform: rotate(180deg);
159
+ }
160
+ }
161
+
162
+ &__btn-container {
163
+ display: flex;
164
+
165
+ button {
166
+ font-size: 11px;
167
+ height: 24px;
168
+ border: none;
169
+ background: none;
170
+ margin-right: 0;
171
+ cursor: pointer;
172
+ display: inline-block;
173
+ white-space: nowrap;
174
+ text-align: center;
175
+ text-transform: uppercase;
176
+ color: #49afd9;
177
+ line-height: 20px;
178
+ max-height: 16.8px;
179
+ padding: 0 14px;
180
+ font-weight: 500;
181
+ letter-spacing: 1px;
182
+
183
+ &:hover {
184
+ color: #004d8a;
185
+ }
186
+ }
187
+ }
188
+ }
189
+
190
+ .diagram-main-actions-dots {
191
+ position: relative;
192
+ transform: translate(62px, -11px);
193
+ }
194
+
195
+ .horizontal-separator {
196
+ margin: 5px 10px 10px;
197
+ border-left: 0;
198
+ border-right: 0;
199
+ border-color: #ddd;
200
+ box-sizing: content-box;
201
+ height: 0;
202
+ overflow: visible;
203
+ border-top: 0px solid #eee;
204
+ }
205
+
206
+ .vertical-separator {
207
+ border: 1px solid #ddd;
208
+ border-left: none;
209
+ margin: 0 3px 0 14px;
210
+ }
211
+ </style>
@@ -402,6 +402,8 @@ const onHide = (): void => {
402
402
 
403
403
  :root.is-new-view {
404
404
  .adapter-name {
405
+ user-select: none;
406
+ -webkit-user-select: none;
405
407
  color: var(--diagram-content-text);
406
408
 
407
409
  &:hover {
@@ -1,61 +1,61 @@
1
- <template>
2
- <g data-title="adapter-items-group">
3
- <template v-if="props.adaptersWithPositions.toggle">
4
- <template
5
- v-for="(adapter, key) in props.adaptersWithPositions.adapters"
6
- :key="adapter.id"
7
- >
8
- <common-diagram-main-adapter-item
9
- :adapter="adapter"
10
- :selected-port="props.selectedPort"
11
- :selected-adapter="props.selectedAdapter"
12
- :networks-count="props.networksCount"
13
- :is-dark-mode="props.isDarkMode"
14
- :networks-with-positions="props.networksWithPositions"
15
- @select-adapter="onSelectAdapter"
16
- @show-modal="onShowModal"
17
- />
18
- </template>
19
- </template>
20
- </g>
21
- </template>
22
-
23
- <script setup lang="ts">
24
- import {
25
- UI_I_AdaptersWithPositions,
26
- UI_I_ModalsInitialData,
27
- UI_I_SelectedAdapter,
28
- UI_I_SelectedPort,
29
- UI_I_NetworksWithPositions,
30
- } from '~/components/common/diagramMain/lib/models/interfaces'
31
-
32
- const props = defineProps<{
33
- adaptersWithPositions: UI_I_AdaptersWithPositions
34
- networksWithPositions: UI_I_NetworksWithPositions[]
35
- selectedPort: UI_I_SelectedPort
36
- selectedAdapter: UI_I_SelectedAdapter
37
- networksCount: number
38
- isDarkMode: boolean
39
- }>()
40
-
41
- const emits = defineEmits<{
42
- (event: 'select-adapter', adapterId: string): void
43
- (
44
- event: 'show-modal',
45
- value: string,
46
- properties?: UI_I_ModalsInitialData
47
- ): void
48
- }>()
49
-
50
- const onSelectAdapter = (adapterId: string): void => {
51
- emits('select-adapter', adapterId)
52
- }
53
- const onShowModal = (
54
- value: string,
55
- properties?: UI_I_ModalsInitialData
56
- ): void => {
57
- emits('show-modal', value, properties)
58
- }
59
- </script>
60
-
61
- <style scoped lang="scss"></style>
1
+ <template>
2
+ <g data-title="adapter-items-group">
3
+ <template v-if="props.adaptersWithPositions.toggle">
4
+ <template
5
+ v-for="(adapter, key) in props.adaptersWithPositions.adapters"
6
+ :key="adapter.id"
7
+ >
8
+ <common-diagram-main-adapter-item
9
+ :adapter="adapter"
10
+ :selected-port="props.selectedPort"
11
+ :selected-adapter="props.selectedAdapter"
12
+ :networks-count="props.networksCount"
13
+ :is-dark-mode="props.isDarkMode"
14
+ :networks-with-positions="props.networksWithPositions"
15
+ @select-adapter="onSelectAdapter"
16
+ @show-modal="onShowModal"
17
+ />
18
+ </template>
19
+ </template>
20
+ </g>
21
+ </template>
22
+
23
+ <script setup lang="ts">
24
+ import {
25
+ UI_I_AdaptersWithPositions,
26
+ UI_I_ModalsInitialData,
27
+ UI_I_SelectedAdapter,
28
+ UI_I_SelectedPort,
29
+ UI_I_NetworksWithPositions,
30
+ } from '~/components/common/diagramMain/lib/models/interfaces'
31
+
32
+ const props = defineProps<{
33
+ adaptersWithPositions: UI_I_AdaptersWithPositions
34
+ networksWithPositions: UI_I_NetworksWithPositions[]
35
+ selectedPort: UI_I_SelectedPort
36
+ selectedAdapter: UI_I_SelectedAdapter
37
+ networksCount: number
38
+ isDarkMode: boolean
39
+ }>()
40
+
41
+ const emits = defineEmits<{
42
+ (event: 'select-adapter', adapterId: string): void
43
+ (
44
+ event: 'show-modal',
45
+ value: string,
46
+ properties?: UI_I_ModalsInitialData
47
+ ): void
48
+ }>()
49
+
50
+ const onSelectAdapter = (adapterId: string): void => {
51
+ emits('select-adapter', adapterId)
52
+ }
53
+ const onShowModal = (
54
+ value: string,
55
+ properties?: UI_I_ModalsInitialData
56
+ ): void => {
57
+ emits('show-modal', value, properties)
58
+ }
59
+ </script>
60
+
61
+ <style scoped lang="scss"></style>