bfg-common 1.4.656 → 1.4.657

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 (38) hide show
  1. package/assets/img/icons/icons-sprite-dark-3.svg +227 -227
  2. package/assets/img/icons/icons-sprite-dark-5.svg +488 -488
  3. package/assets/img/icons/icons-sprite-light-3.svg +227 -227
  4. package/assets/img/icons/icons-sprite-light-5.svg +488 -488
  5. package/components/common/browse/blocks/lib/models/types.ts +1 -1
  6. package/components/common/browse/lib/models/interfaces.ts +5 -5
  7. package/components/common/diagramMain/Header.vue +211 -211
  8. package/components/common/diagramMain/adapter/AdapterItems.vue +61 -61
  9. package/components/common/diagramMain/lib/config/initial.ts +50 -50
  10. package/components/common/diagramMain/lib/models/types.ts +21 -21
  11. package/components/common/diagramMain/lib/utils/utils.ts +331 -331
  12. package/components/common/diagramMain/modals/ManagePhysicalAdaptersModal.vue +330 -330
  13. package/components/common/diagramMain/modals/editSettings/ConfirmTeamingSettingsModal.vue +40 -40
  14. package/components/common/diagramMain/modals/editSettings/EditSettings.vue +497 -497
  15. package/components/common/diagramMain/modals/editSettings/EditSettingsModal.vue +812 -812
  16. package/components/common/diagramMain/modals/editSettings/tabs/NetworkProperties.vue +214 -214
  17. package/components/common/diagramMain/modals/editSettings/tabs/Security.vue +189 -189
  18. package/components/common/diagramMain/modals/editSettings/tabs/SwitchProperties.vue +163 -163
  19. package/components/common/diagramMain/modals/editSettings/tabs/TeamingFailover.vue +175 -175
  20. package/components/common/diagramMain/modals/editSettings/tabs/TrafficShaping.vue +398 -398
  21. package/components/common/diagramMain/modals/editSettings/tabs/port/IpvFourSettings.vue +346 -346
  22. package/components/common/diagramMain/modals/editSettings/tabs/port/PortProperties.vue +205 -205
  23. package/components/common/diagramMain/modals/lib/config/diagramConfig.ts +23 -23
  24. package/components/common/diagramMain/modals/lib/config/initial.ts +180 -180
  25. package/components/common/diagramMain/modals/lib/config/vmKernelAdapter.ts +90 -90
  26. package/components/common/diagramMain/modals/lib/mappers/mappers.ts +87 -87
  27. package/components/common/diagramMain/modals/lib/utils/index.ts +24 -24
  28. package/components/common/diagramMain/modals/migrateVmkernelAdapter/MigrateVmkernelAdapter.vue +537 -537
  29. package/components/common/diagramMain/modals/migrateVmkernelAdapter/lib/config/steps.ts +114 -114
  30. package/components/common/diagramMain/modals/migrateVmkernelAdapter/steps/ConnectionSettings.vue +169 -169
  31. package/components/common/diagramMain/modals/migrateVmkernelAdapter/steps/SelectVmkernelAdapter.vue +159 -159
  32. package/components/common/diagramMain/modals/migrateVmkernelAdapter/validations/common.ts +14 -14
  33. package/components/common/diagramMain/modals/migrateVmkernelAdapter/validations/connectionSettings.ts +137 -137
  34. package/components/common/diagramMain/modals/migrateVmkernelAdapter/validations/selectVmkernelAdapter.ts +52 -52
  35. package/components/common/diagramMain/modals/migrateVmkernelAdapter/validations/validations.ts +19 -19
  36. package/components/common/diagramMain/port/Ports.vue +47 -47
  37. package/components/common/wizards/network/add/lib/config/steps.ts +464 -464
  38. package/package.json +1 -1
@@ -1,114 +1,114 @@
1
- import type { UI_I_MigrationVmkernelAdapterReadyComplete } from '~/components/common/diagramMain/lib/models/interfaces'
2
- import type { UI_I_WizardStep } from '~/components/atoms/wizard/lib/models/interfaces'
3
- import type { UI_I_Localization } from '~/lib/models/interfaces'
4
- import { UI_E_MigrationValidationFields } from '~/components/common/diagramMain/lib/models/enums'
5
- import { UI_E_WIZARD_STATUS } from '~/components/atoms/wizard/lib/models/enums'
6
-
7
- export const stepsFunc = (
8
- localization: UI_I_Localization
9
- ): UI_I_WizardStep[] => [
10
- {
11
- id: 0,
12
- title: localization.common.selectVmKernelAdapter,
13
- subTitle: localization.common.migrateVmKernelNetworkAdapter1Placeholder,
14
- status: UI_E_WIZARD_STATUS.SELECTED,
15
- fields: {
16
- [UI_E_MigrationValidationFields.SELECT_ADAPTER_VM]: {
17
- field: '',
18
- alert: '',
19
- },
20
- },
21
- isValid: true,
22
- },
23
- {
24
- id: 1,
25
- title: localization.common.configureSettings,
26
- subTitle: localization.common.migrateVmKernelNetworkAdapter2Placeholder,
27
- status: UI_E_WIZARD_STATUS.INACTIVE,
28
- fields: {
29
- [UI_E_MigrationValidationFields.CONNECTION_SETTINGS_NETWORK]: {
30
- field: '',
31
- alert: '',
32
- },
33
- [UI_E_MigrationValidationFields.CONNECTION_SETTINGS_VLAN]: {
34
- field: '',
35
- alert: '',
36
- },
37
- },
38
- isValid: true,
39
- },
40
- {
41
- id: 2,
42
- title: localization.common.readyComplete,
43
- subTitle: localization.common.migrateVmKernelNetworkAdapter3Placeholder,
44
- status: UI_E_WIZARD_STATUS.INACTIVE,
45
- fields: {},
46
- isValid: true,
47
- },
48
- ]
49
-
50
- export const stepsSchemeInitial: number[][] = [[0, 1, 2]]
51
-
52
- export const createMigrateVmkernelAdapterSchemeReadyCompleteFunc = (
53
- localization: UI_I_Localization,
54
- data: UI_I_MigrationVmkernelAdapterReadyComplete
55
- ) => [
56
- {
57
- id: 0,
58
- type: 0,
59
- rows: [
60
- {
61
- name: localization.common.vmAdapter,
62
- value: data.vm,
63
- },
64
- ],
65
- },
66
- {
67
- title: localization.common.currentSettings,
68
- id: 1,
69
- type: 0,
70
- rows: [
71
- {
72
- name: localization.common.migrateFromSwitch,
73
- value: data.currentSettings.switch,
74
- },
75
- {
76
- name: localization.common.networkLabel,
77
- value: data.currentSettings.network,
78
- },
79
- ],
80
- },
81
- {
82
- title: localization.common.newSettings,
83
- id: 2,
84
- type: 0,
85
- rows: [
86
- {
87
- name: localization.common.migrateToSwitch,
88
- value: data.newSettings.switch,
89
- },
90
- {
91
- name: localization.common.networkLabel,
92
- value: data.newSettings.network,
93
- },
94
- {
95
- name: localization.common.vlanId,
96
- value: data.vlanId,
97
- },
98
- ],
99
- },
100
- ]
101
-
102
- export const readyCompleteInitial: UI_I_MigrationVmkernelAdapterReadyComplete =
103
- {
104
- vm: '-',
105
- currentSettings: {
106
- switch: '-',
107
- network: '-',
108
- },
109
- newSettings: {
110
- switch: '-',
111
- network: '-',
112
- },
113
- vlanId: '-',
114
- }
1
+ import type { UI_I_MigrationVmkernelAdapterReadyComplete } from '~/components/common/diagramMain/lib/models/interfaces'
2
+ import type { UI_I_WizardStep } from '~/components/atoms/wizard/lib/models/interfaces'
3
+ import type { UI_I_Localization } from '~/lib/models/interfaces'
4
+ import { UI_E_MigrationValidationFields } from '~/components/common/diagramMain/lib/models/enums'
5
+ import { UI_E_WIZARD_STATUS } from '~/components/atoms/wizard/lib/models/enums'
6
+
7
+ export const stepsFunc = (
8
+ localization: UI_I_Localization
9
+ ): UI_I_WizardStep[] => [
10
+ {
11
+ id: 0,
12
+ title: localization.common.selectVmKernelAdapter,
13
+ subTitle: localization.common.migrateVmKernelNetworkAdapter1Placeholder,
14
+ status: UI_E_WIZARD_STATUS.SELECTED,
15
+ fields: {
16
+ [UI_E_MigrationValidationFields.SELECT_ADAPTER_VM]: {
17
+ field: '',
18
+ alert: '',
19
+ },
20
+ },
21
+ isValid: true,
22
+ },
23
+ {
24
+ id: 1,
25
+ title: localization.common.configureSettings,
26
+ subTitle: localization.common.migrateVmKernelNetworkAdapter2Placeholder,
27
+ status: UI_E_WIZARD_STATUS.INACTIVE,
28
+ fields: {
29
+ [UI_E_MigrationValidationFields.CONNECTION_SETTINGS_NETWORK]: {
30
+ field: '',
31
+ alert: '',
32
+ },
33
+ [UI_E_MigrationValidationFields.CONNECTION_SETTINGS_VLAN]: {
34
+ field: '',
35
+ alert: '',
36
+ },
37
+ },
38
+ isValid: true,
39
+ },
40
+ {
41
+ id: 2,
42
+ title: localization.common.readyComplete,
43
+ subTitle: localization.common.migrateVmKernelNetworkAdapter3Placeholder,
44
+ status: UI_E_WIZARD_STATUS.INACTIVE,
45
+ fields: {},
46
+ isValid: true,
47
+ },
48
+ ]
49
+
50
+ export const stepsSchemeInitial: number[][] = [[0, 1, 2]]
51
+
52
+ export const createMigrateVmkernelAdapterSchemeReadyCompleteFunc = (
53
+ localization: UI_I_Localization,
54
+ data: UI_I_MigrationVmkernelAdapterReadyComplete
55
+ ) => [
56
+ {
57
+ id: 0,
58
+ type: 0,
59
+ rows: [
60
+ {
61
+ name: localization.common.vmAdapter,
62
+ value: data.vm,
63
+ },
64
+ ],
65
+ },
66
+ {
67
+ title: localization.common.currentSettings,
68
+ id: 1,
69
+ type: 0,
70
+ rows: [
71
+ {
72
+ name: localization.common.migrateFromSwitch,
73
+ value: data.currentSettings.switch,
74
+ },
75
+ {
76
+ name: localization.common.networkLabel,
77
+ value: data.currentSettings.network,
78
+ },
79
+ ],
80
+ },
81
+ {
82
+ title: localization.common.newSettings,
83
+ id: 2,
84
+ type: 0,
85
+ rows: [
86
+ {
87
+ name: localization.common.migrateToSwitch,
88
+ value: data.newSettings.switch,
89
+ },
90
+ {
91
+ name: localization.common.networkLabel,
92
+ value: data.newSettings.network,
93
+ },
94
+ {
95
+ name: localization.common.vlanId,
96
+ value: data.vlanId,
97
+ },
98
+ ],
99
+ },
100
+ ]
101
+
102
+ export const readyCompleteInitial: UI_I_MigrationVmkernelAdapterReadyComplete =
103
+ {
104
+ vm: '-',
105
+ currentSettings: {
106
+ switch: '-',
107
+ network: '-',
108
+ },
109
+ newSettings: {
110
+ switch: '-',
111
+ network: '-',
112
+ },
113
+ vlanId: '-',
114
+ }
@@ -1,169 +1,169 @@
1
- <template>
2
- <div class="wizard-content-container add-networking-step">
3
- <div class="wizard-content wizard-content-port">
4
- <atoms-alert
5
- v-if="props.alertMessages.length"
6
- status="alert-danger"
7
- :items="props.alertMessages"
8
- test-id="connection-settings-alert"
9
- @remove="onHideAlert"
10
- />
11
- <form>
12
- <div class="horizontal-flex-container">
13
- <label class="property-label-group" for="network-label">
14
- {{ localization.common.networkLabel }}
15
- </label>
16
- <div class="margin-left-property-value-group">
17
- <div class="property-value-group">
18
- <fieldset>
19
- <atoms-tooltip-error
20
- :has-error="!!props.messagesFields.name.field"
21
- >
22
- <template #elem>
23
- <input
24
- id="network-label"
25
- v-model="fields.networkLabel"
26
- name="network-label"
27
- data-id="network-label-input"
28
- type="text"
29
- :class="[
30
- 'tooltip-field port-properties-network-label',
31
- {
32
- 'danger-not-valid': props.messagesFields.name.field,
33
- },
34
- ]"
35
- @click.stop
36
- />
37
- </template>
38
- <template #content>
39
- {{ props.messagesFields.name.field }}
40
- </template>
41
- </atoms-tooltip-error>
42
- </fieldset>
43
- </div>
44
- </div>
45
- </div>
46
-
47
- <div class="horizontal-flex-container port-properties-padding">
48
- <label class="property-label-group">
49
- {{ localization.common.vlanId }}
50
- </label>
51
- <div class="margin-left-property-value-group">
52
- <div class="property-value-group">
53
- <fieldset>
54
- <div class="flex-align-center">
55
- <atoms-combobox
56
- v-model.trim="fields.vlanId"
57
- :items="vlanIdSelectData"
58
- :class="{
59
- 'danger-not-valid': props.messagesFields.vlan.field,
60
- }"
61
- test-id="vlan-combobox"
62
- @click.stop
63
- />
64
- <div
65
- v-show="props.messagesFields.vlan.field"
66
- class="flex-align-center"
67
- >
68
- <div class="tooltip">
69
- <atoms-the-icon
70
- width="24px"
71
- height="24px"
72
- class="is-error tooltip-trigger"
73
- name="info"
74
- />
75
- <div class="tooltip-top-left tooltip-content error">
76
- {{ props.messagesFields.vlan.field }}
77
- </div>
78
- </div>
79
- </div>
80
- </div>
81
- </fieldset>
82
- </div>
83
- </div>
84
- </div>
85
- </form>
86
- </div>
87
- </div>
88
- </template>
89
-
90
- <script setup lang="ts">
91
- import type {
92
- UI_I_ArbitraryObject,
93
- UI_I_Localization,
94
- } from '~/lib/models/interfaces'
95
- import type { UI_I_ConnectionSettings } from '~/components/common/wizards/network/add/lib/models/interfaces'
96
- import type { UI_I_ErrorFields } from '~/components/atoms/wizard/lib/models/interfaces'
97
- import { vlanIdSelectData } from '~/components/common/wizards/network/add/lib/config/config'
98
- import type Wizard from '~/components/atoms/wizard/lib/utils/utils'
99
- import {
100
- validateNetworkConnectionSettingsLocal,
101
- validateVlanIdConnectionSettingsLocal,
102
- } from '~/components/common/diagramMain/modals/migrateVmkernelAdapter/validations/validations'
103
-
104
- const props = defineProps<{
105
- connectionSettings: UI_I_ConnectionSettings
106
- alertMessages: string[]
107
- messagesFields: UI_I_ArbitraryObject<UI_I_ErrorFields>
108
- wizard: Wizard
109
- }>()
110
-
111
- const localization = computed<UI_I_Localization>(() => useLocal())
112
-
113
- const emits = defineEmits<{
114
- (
115
- event: 'change-connection-settings',
116
- connectionSettings: UI_I_ConnectionSettings
117
- ): void
118
- (event: 'hide-alert', stepId: 1): void
119
- }>()
120
-
121
- const fields = ref<UI_I_ConnectionSettings>(
122
- useDeepCopy(props.connectionSettings)
123
- )
124
-
125
- let oldFields = useDeepCopy(fields.value)
126
-
127
- watch(
128
- fields,
129
- (newFields: UI_I_ConnectionSettings) => {
130
- oldFields.vlanId !== newFields.vlanId &&
131
- validateVlanIdConnectionSettingsLocal(
132
- localization.value,
133
- newFields,
134
- props.wizard
135
- )
136
-
137
- oldFields.networkLabel !== newFields.networkLabel &&
138
- validateNetworkConnectionSettingsLocal(
139
- localization.value,
140
- newFields,
141
- props.wizard
142
- )
143
-
144
- oldFields = useDeepCopy(fields.value)
145
-
146
- emits('change-connection-settings', newFields)
147
- },
148
- { deep: true, immediate: true }
149
- )
150
-
151
- const onHideAlert = (): void => {
152
- emits('hide-alert', 1)
153
- }
154
- </script>
155
-
156
- <style scoped lang="scss">
157
- .wizard-content-container {
158
- display: flex;
159
- flex-direction: column;
160
- align-items: stretch;
161
- flex: 1 1 100%;
162
- box-sizing: border-box;
163
- padding: 16px 15px 10px 10px;
164
- overflow-y: auto;
165
- color: #333;
166
- order: 2;
167
- width: 100%;
168
- }
169
- </style>
1
+ <template>
2
+ <div class="wizard-content-container add-networking-step">
3
+ <div class="wizard-content wizard-content-port">
4
+ <atoms-alert
5
+ v-if="props.alertMessages.length"
6
+ status="alert-danger"
7
+ :items="props.alertMessages"
8
+ test-id="connection-settings-alert"
9
+ @remove="onHideAlert"
10
+ />
11
+ <form>
12
+ <div class="horizontal-flex-container">
13
+ <label class="property-label-group" for="network-label">
14
+ {{ localization.common.networkLabel }}
15
+ </label>
16
+ <div class="margin-left-property-value-group">
17
+ <div class="property-value-group">
18
+ <fieldset>
19
+ <atoms-tooltip-error
20
+ :has-error="!!props.messagesFields.name.field"
21
+ >
22
+ <template #elem>
23
+ <input
24
+ id="network-label"
25
+ v-model="fields.networkLabel"
26
+ name="network-label"
27
+ data-id="network-label-input"
28
+ type="text"
29
+ :class="[
30
+ 'tooltip-field port-properties-network-label',
31
+ {
32
+ 'danger-not-valid': props.messagesFields.name.field,
33
+ },
34
+ ]"
35
+ @click.stop
36
+ />
37
+ </template>
38
+ <template #content>
39
+ {{ props.messagesFields.name.field }}
40
+ </template>
41
+ </atoms-tooltip-error>
42
+ </fieldset>
43
+ </div>
44
+ </div>
45
+ </div>
46
+
47
+ <div class="horizontal-flex-container port-properties-padding">
48
+ <label class="property-label-group">
49
+ {{ localization.common.vlanId }}
50
+ </label>
51
+ <div class="margin-left-property-value-group">
52
+ <div class="property-value-group">
53
+ <fieldset>
54
+ <div class="flex-align-center">
55
+ <atoms-combobox
56
+ v-model.trim="fields.vlanId"
57
+ :items="vlanIdSelectData"
58
+ :class="{
59
+ 'danger-not-valid': props.messagesFields.vlan.field,
60
+ }"
61
+ test-id="vlan-combobox"
62
+ @click.stop
63
+ />
64
+ <div
65
+ v-show="props.messagesFields.vlan.field"
66
+ class="flex-align-center"
67
+ >
68
+ <div class="tooltip">
69
+ <atoms-the-icon
70
+ width="24px"
71
+ height="24px"
72
+ class="is-error tooltip-trigger"
73
+ name="info"
74
+ />
75
+ <div class="tooltip-top-left tooltip-content error">
76
+ {{ props.messagesFields.vlan.field }}
77
+ </div>
78
+ </div>
79
+ </div>
80
+ </div>
81
+ </fieldset>
82
+ </div>
83
+ </div>
84
+ </div>
85
+ </form>
86
+ </div>
87
+ </div>
88
+ </template>
89
+
90
+ <script setup lang="ts">
91
+ import type {
92
+ UI_I_ArbitraryObject,
93
+ UI_I_Localization,
94
+ } from '~/lib/models/interfaces'
95
+ import type { UI_I_ConnectionSettings } from '~/components/common/wizards/network/add/lib/models/interfaces'
96
+ import type { UI_I_ErrorFields } from '~/components/atoms/wizard/lib/models/interfaces'
97
+ import { vlanIdSelectData } from '~/components/common/wizards/network/add/lib/config/config'
98
+ import type Wizard from '~/components/atoms/wizard/lib/utils/utils'
99
+ import {
100
+ validateNetworkConnectionSettingsLocal,
101
+ validateVlanIdConnectionSettingsLocal,
102
+ } from '~/components/common/diagramMain/modals/migrateVmkernelAdapter/validations/validations'
103
+
104
+ const props = defineProps<{
105
+ connectionSettings: UI_I_ConnectionSettings
106
+ alertMessages: string[]
107
+ messagesFields: UI_I_ArbitraryObject<UI_I_ErrorFields>
108
+ wizard: Wizard
109
+ }>()
110
+
111
+ const localization = computed<UI_I_Localization>(() => useLocal())
112
+
113
+ const emits = defineEmits<{
114
+ (
115
+ event: 'change-connection-settings',
116
+ connectionSettings: UI_I_ConnectionSettings
117
+ ): void
118
+ (event: 'hide-alert', stepId: 1): void
119
+ }>()
120
+
121
+ const fields = ref<UI_I_ConnectionSettings>(
122
+ useDeepCopy(props.connectionSettings)
123
+ )
124
+
125
+ let oldFields = useDeepCopy(fields.value)
126
+
127
+ watch(
128
+ fields,
129
+ (newFields: UI_I_ConnectionSettings) => {
130
+ oldFields.vlanId !== newFields.vlanId &&
131
+ validateVlanIdConnectionSettingsLocal(
132
+ localization.value,
133
+ newFields,
134
+ props.wizard
135
+ )
136
+
137
+ oldFields.networkLabel !== newFields.networkLabel &&
138
+ validateNetworkConnectionSettingsLocal(
139
+ localization.value,
140
+ newFields,
141
+ props.wizard
142
+ )
143
+
144
+ oldFields = useDeepCopy(fields.value)
145
+
146
+ emits('change-connection-settings', newFields)
147
+ },
148
+ { deep: true, immediate: true }
149
+ )
150
+
151
+ const onHideAlert = (): void => {
152
+ emits('hide-alert', 1)
153
+ }
154
+ </script>
155
+
156
+ <style scoped lang="scss">
157
+ .wizard-content-container {
158
+ display: flex;
159
+ flex-direction: column;
160
+ align-items: stretch;
161
+ flex: 1 1 100%;
162
+ box-sizing: border-box;
163
+ padding: 16px 15px 10px 10px;
164
+ overflow-y: auto;
165
+ color: #333;
166
+ order: 2;
167
+ width: 100%;
168
+ }
169
+ </style>