bfg-common 1.5.442 → 1.5.443

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 (115) hide show
  1. package/assets/localization/local_be.json +9 -3
  2. package/assets/localization/local_en.json +17 -11
  3. package/assets/localization/local_hy.json +9 -3
  4. package/assets/localization/local_kk.json +9 -3
  5. package/assets/localization/local_ru.json +9 -3
  6. package/assets/localization/local_zh.json +9 -3
  7. package/components/atoms/wizard/Wizard.vue +2 -2
  8. package/components/atoms/wizard/step/Step.vue +1 -1
  9. package/components/common/backup/storage/actions/add/Add.vue +5 -5
  10. package/components/common/backup/storage/actions/add/Old.vue +1 -1
  11. package/components/common/backup/storage/actions/add/lib/config/steps.ts +2 -2
  12. package/components/common/backup/storage/actions/add/lib/validations.ts +4 -4
  13. package/components/common/backup/storage/actions/add/steps/name/Name.vue +1 -1
  14. package/components/common/backup/storage/actions/add/steps/name/New.vue +1 -1
  15. package/components/common/backup/storage/actions/add/steps/name/Old.vue +1 -1
  16. package/components/common/backup/storage/actions/add/steps/nameAndConfigure/NameAndConfigure.vue +1 -1
  17. package/components/common/backup/storage/actions/add/steps/nameAndConfigure/NameAndConfigureNew.vue +1 -1
  18. package/components/common/backup/storage/actions/add/steps/nameAndConfigure/NameAndConfigureOld.vue +1 -1
  19. package/components/common/browse/blocks/lib/models/types.ts +1 -1
  20. package/components/common/browse/lib/models/interfaces.ts +5 -5
  21. package/components/common/countdownTimer/CountdownTimer.vue +26 -15
  22. package/components/common/diagramMain/lib/config/initial.ts +50 -50
  23. package/components/common/diagramMain/lib/models/types.ts +21 -21
  24. package/components/common/diagramMain/lib/utils/utils.ts +331 -331
  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 +5 -5
  29. package/components/common/diagramMain/modals/migrateVmkernelAdapter/lib/config/steps.ts +2 -2
  30. package/components/common/diagramMain/modals/migrateVmkernelAdapter/steps/ConnectionSettings.vue +2 -2
  31. package/components/common/diagramMain/modals/migrateVmkernelAdapter/validations/common.ts +14 -14
  32. package/components/common/diagramMain/modals/migrateVmkernelAdapter/validations/connectionSettings.ts +5 -5
  33. package/components/common/diagramMain/modals/migrateVmkernelAdapter/validations/selectVmkernelAdapter.ts +2 -2
  34. package/components/common/diagramMain/modals/migrateVmkernelAdapter/validations/validations.ts +19 -19
  35. package/components/common/diagramMain/port/Ports.vue +47 -47
  36. package/components/common/layout/theHeader/modals/{reconnect/Reconnect.vue → Reconnect.vue} +56 -43
  37. package/components/common/pages/backups/modals/Modals.vue +1 -1
  38. package/components/common/pages/backups/modals/createBackup/CreateBackup.vue +5 -2
  39. package/components/common/pages/backups/modals/createBackup/lib/config/steps.ts +2 -2
  40. package/components/common/pages/backups/modals/restore/Restore.vue +3 -3
  41. package/components/common/pages/backups/modals/restore/lib/config/steps.ts +2 -2
  42. package/components/common/vm/actions/add/Add.vue +5 -5
  43. package/components/common/vm/actions/add/New.vue +2 -2
  44. package/components/common/vm/actions/add/Old.vue +2 -2
  45. package/components/common/vm/actions/add/lib/config/steps.ts +2 -2
  46. package/components/common/vm/actions/clone/Clone.vue +5 -5
  47. package/components/common/vm/actions/clone/lib/config/steps.ts +2 -2
  48. package/components/common/vm/actions/clone/toTemplate/ToTemplate.vue +5 -5
  49. package/components/common/vm/actions/clone/toTemplate/lib/config/steps.ts +2 -2
  50. package/components/common/vm/actions/common/customizeHardware/virtualHardware/newHardDisk/maximumSize/MaximumSize.vue +23 -23
  51. package/components/common/vmt/actions/add/Add.vue +5 -5
  52. package/components/common/vmt/actions/add/New.vue +2 -3
  53. package/components/common/vmt/actions/add/Old.vue +2 -2
  54. package/components/common/vmt/actions/add/lib/config/steps.ts +2 -2
  55. package/components/common/wizards/datastore/add/Add.vue +2 -2
  56. package/components/common/wizards/datastore/add/Old.vue +2 -2
  57. package/components/common/wizards/datastore/add/lib/config/steps.ts +2 -2
  58. package/components/common/wizards/datastore/add/lib/utils.ts +1 -1
  59. package/components/common/wizards/datastore/add/lib/validations.ts +3 -3
  60. package/components/common/wizards/datastore/add/steps/_local/Local.vue +1 -1
  61. package/components/common/wizards/datastore/add/steps/_local/createName/CreateName.vue +1 -1
  62. package/components/common/wizards/datastore/add/steps/nameAndConfigure/NameAndConfigure.vue +2 -1
  63. package/components/common/wizards/datastore/add/steps/nameAndConfigure/NameAndConfigureNew.vue +1 -1
  64. package/components/common/wizards/datastore/add/steps/nameAndConfigure/NameAndConfigureOld.vue +1 -1
  65. package/components/common/wizards/datastore/add/steps/nameAndDevice/NameAndDevice.vue +1 -1
  66. package/components/common/wizards/datastore/add/steps/nameAndDevice/NameAndDeviceNew.vue +1 -1
  67. package/components/common/wizards/datastore/add/steps/nameAndDevice/NameAndDeviceOld.vue +1 -1
  68. package/components/common/wizards/network/add/Add.vue +109 -333
  69. package/components/common/wizards/network/add/AddNew.vue +514 -0
  70. package/components/common/wizards/network/add/AddOld.vue +457 -0
  71. package/components/common/wizards/network/add/lib/config/config.ts +11 -1
  72. package/components/common/wizards/network/add/lib/config/selectConnectionTypeStep.ts +31 -0
  73. package/components/common/wizards/network/add/lib/config/selectSwitch.ts +217 -0
  74. package/components/common/wizards/network/add/lib/config/steps.ts +5 -5
  75. package/components/common/wizards/network/add/lib/models/interfaces.ts +9 -0
  76. package/components/common/wizards/network/add/steps/ConnectionSettings.vue +2 -2
  77. package/components/common/wizards/network/add/steps/IpFourSettings.vue +2 -2
  78. package/components/common/wizards/network/add/steps/PortProperties.vue +2 -2
  79. package/components/common/wizards/network/add/steps/selectConnectionType/SelectConnectionType.vue +35 -0
  80. package/components/common/wizards/network/add/steps/selectConnectionType/SelectConnectionTypeNew.vue +104 -0
  81. package/components/common/wizards/network/add/steps/selectConnectionType/SelectConnectionTypeOld.vue +80 -0
  82. package/components/common/wizards/network/add/steps/selectTargetDevice/SelectTargetDevice.vue +183 -0
  83. package/components/common/wizards/network/add/steps/selectTargetDevice/SelectTargetDeviceNew.vue +393 -0
  84. package/components/common/wizards/network/add/steps/{SelectedTargetDevice.vue → selectTargetDevice/SelectTargetDeviceOld.vue} +42 -139
  85. package/components/common/wizards/network/add/steps/selectTargetDevice/modals/Modals.vue +55 -0
  86. package/components/common/wizards/network/add/steps/selectTargetDevice/modals/SelectNetwork.vue +64 -0
  87. package/components/common/wizards/network/add/steps/selectTargetDevice/modals/SelectStandardSwitch.vue +64 -0
  88. package/components/common/wizards/network/add/steps/selectTargetDevice/modals/SelectSwitch.vue +64 -0
  89. package/components/common/wizards/network/add/steps/selectTargetDevice/modals/new/SelectNetwork.vue +163 -0
  90. package/components/common/wizards/network/add/steps/selectTargetDevice/modals/new/SelectStandardSwitch.vue +163 -0
  91. package/components/common/wizards/network/add/steps/selectTargetDevice/modals/new/SelectSwitch.vue +163 -0
  92. package/components/common/wizards/network/add/{modals → steps/selectTargetDevice/modals/old}/SelectNetwork.vue +53 -56
  93. package/components/common/wizards/network/add/{modals → steps/selectTargetDevice/modals/old}/SelectStandardSwitch.vue +37 -52
  94. package/components/common/wizards/network/add/{modals → steps/selectTargetDevice/modals/old}/SelectSwitch.vue +38 -42
  95. package/components/common/wizards/network/add/validations/connectionSettings.ts +5 -5
  96. package/components/common/wizards/network/add/validations/createStandardSwitch.ts +4 -4
  97. package/components/common/wizards/network/add/validations/ipFourSettings.ts +5 -5
  98. package/components/common/wizards/network/add/validations/networkValidation.ts +4 -4
  99. package/components/common/wizards/network/add/validations/physicalAdapter.ts +4 -4
  100. package/components/common/wizards/network/add/validations/portProperties.ts +2 -2
  101. package/components/common/wizards/network/add/validations/targetDevice.ts +11 -10
  102. package/components/common/wizards/vm/migrate/Migrate.vue +2 -2
  103. package/components/common/wizards/vm/migrate/lib/config/steps.ts +2 -2
  104. package/components/common/wizards/vm/migrate/lib/validations.ts +3 -3
  105. package/components/common/wizards/vm/migrate/select/targetServer/new/New.vue +1 -1
  106. package/components/common/wizards/vm/migrate/select/targetServer/targetServer.vue +1 -1
  107. package/package.json +2 -2
  108. package/components/atoms/wizard/lib/models/enums.ts +0 -8
  109. package/components/atoms/wizard/lib/models/interfaces.ts +0 -59
  110. package/components/atoms/wizard/lib/utils/utils.ts +0 -954
  111. package/components/common/countdownTimer/CountdownTimerNew.vue +0 -53
  112. package/components/common/countdownTimer/CountdownTimerOld.vue +0 -33
  113. package/components/common/layout/theHeader/modals/reconnect/ReconnectNew.vue +0 -74
  114. package/components/common/layout/theHeader/modals/reconnect/ReconnectOld.vue +0 -67
  115. package/components/common/wizards/network/add/steps/SelectConnectionType.vue +0 -112
@@ -1,23 +1,30 @@
1
1
  <template>
2
2
  <div class="select-table-modal">
3
3
  <atoms-modal
4
- :width="props.width"
5
- :height="props.height"
4
+ width="576px"
5
+ height="468px"
6
6
  :show="props.show"
7
- :title="props.title"
8
- @hide="onHideModal"
7
+ :title="localization.common.selectSwitch"
8
+ @hide="emits('hide')"
9
9
  >
10
10
  <template #modalBody>
11
11
  <atoms-alert
12
- v-if="isShowErrorMessageAlert"
12
+ v-if="props.isShowAlert"
13
13
  :items="[
14
14
  localization.common.noSwitchIsSelectedSelectSwitchToContinue,
15
15
  ]"
16
16
  status="alert-danger"
17
17
  test-id="select-standard-switch-alert"
18
- @remove="onHideErrorMessageAlert"
18
+ @remove="emits('hide-alert')"
19
19
  />
20
- <div class="table-top-margin-container">
20
+ <div
21
+ :class="[
22
+ 'table-top-margin-container',
23
+ {
24
+ 'with-alert': props.isShowAlert,
25
+ },
26
+ ]"
27
+ >
21
28
  <atoms-table-simple-table
22
29
  :head-items="headItems"
23
30
  :body-items="bodyItems"
@@ -30,7 +37,7 @@
30
37
  <button
31
38
  data-id="select-standard-switch-hide-button"
32
39
  class="btn btn-outline"
33
- @click="onHideModal"
40
+ @click="emits('hide')"
34
41
  >
35
42
  {{ localization.common.cancel }}
36
43
  </button>
@@ -55,40 +62,27 @@ import type {
55
62
  } from '~/components/common/wizards/network/add/lib/models/interfaces'
56
63
  import { selectStandardSwitchTableHeadFunc } from '~/components/common/wizards/network/add/lib/config/config'
57
64
 
58
- const props = withDefaults(
59
- defineProps<{
60
- show: boolean
61
- modalName: string
62
- standardSwitchesInitial: UI_I_Switch[]
63
- title?: string
64
- width?: string
65
- height?: string
66
- withCollapse?: boolean
67
- }>(),
68
- {
69
- width: '576px',
70
- height: '420px',
71
- title: '--',
72
- withCollapse: undefined,
73
- }
74
- )
65
+ const props = defineProps<{
66
+ show: boolean
67
+ data: UI_I_Switch[]
68
+ isShowAlert: boolean
69
+ }>()
75
70
 
76
71
  const emits = defineEmits<{
77
72
  (event: 'hide'): void
73
+ (event: 'hide-alert'): void
74
+ (event: 'show-alert'): void
78
75
  (event: 'select-standard-switch', switchId: string): void
79
76
  }>()
80
77
 
81
- // UI_I_Localization
82
78
  const localization = computed<UI_I_Localization>(() => useLocal())
83
79
 
84
- const selectedRowData = ref<UI_I_SelectedSwitch[]>()
85
-
86
- const standardSwitches = ref<UI_I_Switch[]>(props.standardSwitchesInitial)
80
+ const selectedRowData = ref<UI_I_SelectedSwitch[]>([])
87
81
 
88
82
  const headItems = selectStandardSwitchTableHeadFunc(localization.value)
89
83
 
90
84
  const bodyItems = computed<UI_I_BodyItems[][]>(() =>
91
- standardSwitches.value.map((switchData: UI_I_Switch) => [
85
+ props.data.map((switchData: UI_I_Switch) => [
92
86
  {
93
87
  editable: false,
94
88
  text: switchData.name,
@@ -97,20 +91,6 @@ const bodyItems = computed<UI_I_BodyItems[][]>(() =>
97
91
  ])
98
92
  )
99
93
 
100
- watch(
101
- () => props.standardSwitchesInitial,
102
- (newStandardSwitches: UI_I_Switch[]) => {
103
- standardSwitches.value = newStandardSwitches
104
- },
105
- { deep: true, immediate: true }
106
- )
107
-
108
- const isShowErrorMessageAlert = ref<boolean>(false)
109
- const onHideErrorMessageAlert = (): void => {
110
- selectedRowData.value = []
111
- isShowErrorMessageAlert.value = false
112
- }
113
-
114
94
  const onSelectRow = (_index: number, item: UI_I_SelectedSwitch[]): void => {
115
95
  selectedRowData.value = item
116
96
  }
@@ -122,17 +102,12 @@ const onSelectSwitch = (): void => {
122
102
  selectedRowData.value[0].id
123
103
 
124
104
  if (!selectedSwitchId) {
125
- isShowErrorMessageAlert.value = true
105
+ emits('show-alert')
126
106
  return
127
107
  }
128
- emits('select-standard-switch', selectedSwitchId)
129
- onHideErrorMessageAlert()
130
- emits('hide')
131
- }
132
108
 
133
- const onHideModal = (): void => {
134
- onHideErrorMessageAlert()
135
- emits('hide')
109
+ emits('select-standard-switch', selectedSwitchId)
110
+ selectedRowData.value = []
136
111
  }
137
112
  </script>
138
113
 
@@ -140,4 +115,14 @@ const onHideModal = (): void => {
140
115
  :deep(.table-wrap) {
141
116
  height: 300px;
142
117
  }
118
+
119
+ .with-alert {
120
+ :deep(.table-wrap) {
121
+ height: 254px;
122
+ }
123
+ }
124
+
125
+ .table-top-margin-container {
126
+ margin-top: 8px;
127
+ }
143
128
  </style>
@@ -1,23 +1,30 @@
1
1
  <template>
2
2
  <div class="select-table-modal">
3
3
  <atoms-modal
4
- :width="props.width"
5
- :height="props.height"
4
+ width="576px"
5
+ height="468px"
6
6
  :show="props.show"
7
- :title="props.title"
8
- @hide="onHideModal"
7
+ :title="localization.common.selectSwitch"
8
+ @hide="emits('hide')"
9
9
  >
10
10
  <template #modalBody>
11
11
  <atoms-alert
12
- v-if="isShowErrorMessageAlert"
12
+ v-if="props.isShowAlert"
13
13
  :items="[
14
14
  localization.common.noSwitchIsSelectedSelectSwitchToContinue,
15
15
  ]"
16
16
  status="alert-danger"
17
17
  test-id="select-switch-alert"
18
- @remove="onHideErrorMessageAlert"
18
+ @remove="emits('hide-alert')"
19
19
  />
20
- <div class="table-top-margin-container">
20
+ <div
21
+ :class="[
22
+ 'table-top-margin-container',
23
+ {
24
+ 'with-alert': props.isShowAlert,
25
+ },
26
+ ]"
27
+ >
21
28
  <atoms-table-simple-table
22
29
  :head-items="headItems"
23
30
  :body-items="bodyItems"
@@ -30,12 +37,12 @@
30
37
  <button
31
38
  data-id="select-switch-hide-button"
32
39
  class="btn btn-outline"
33
- @click="onHideModal"
40
+ @click="emits('hide')"
34
41
  >
35
42
  {{ localization.common.cancel }}
36
43
  </button>
37
44
  <button
38
- data-id="select-submit-hide-button"
45
+ data-id="select-switch-submit-button"
39
46
  class="btn btn-primary"
40
47
  @click="onSelectSwitch"
41
48
  >
@@ -55,33 +62,22 @@ import type {
55
62
  } from '~/components/common/wizards/network/add/lib/models/interfaces'
56
63
  import { selectSwitchTableHeadFunc } from '~/components/common/wizards/network/add/lib/config/config'
57
64
 
58
- const props = withDefaults(
59
- defineProps<{
60
- show: boolean
61
- modalName: string
62
- data: UI_I_Switch[]
63
- title?: string
64
- width?: string
65
- height?: string
66
- withCollapse?: boolean
67
- }>(),
68
- {
69
- width: '576px',
70
- height: '420px',
71
- title: '--',
72
- withCollapse: undefined,
73
- }
74
- )
65
+ const props = defineProps<{
66
+ show: boolean
67
+ data: UI_I_Switch[]
68
+ isShowAlert: boolean
69
+ }>()
75
70
 
76
71
  const emits = defineEmits<{
77
72
  (event: 'hide'): void
73
+ (event: 'hide-alert'): void
74
+ (event: 'show-alert'): void
78
75
  (event: 'select-switch', switchId: string): void
79
76
  }>()
80
77
 
81
- // UI_I_Localization
82
78
  const localization = computed<UI_I_Localization>(() => useLocal())
83
79
 
84
- const selectedRowData = ref<UI_I_SelectedSwitch[]>()
80
+ const selectedRowData = ref<UI_I_SelectedSwitch[]>([])
85
81
 
86
82
  const headItems = selectSwitchTableHeadFunc(localization.value)
87
83
 
@@ -99,12 +95,6 @@ const bodyItems = computed<UI_I_BodyItems[][]>(() =>
99
95
  ])
100
96
  )
101
97
 
102
- const isShowErrorMessageAlert = ref<boolean>(false)
103
- const onHideErrorMessageAlert = (): void => {
104
- selectedRowData.value = []
105
- isShowErrorMessageAlert.value = false
106
- }
107
-
108
98
  const onSelectRow = (_index: number, item: UI_I_SelectedSwitch[]): void => {
109
99
  selectedRowData.value = item
110
100
  }
@@ -114,18 +104,14 @@ const onSelectSwitch = (): void => {
114
104
  selectedRowData.value &&
115
105
  selectedRowData.value[0] &&
116
106
  selectedRowData.value[0].id
107
+
117
108
  if (!selectedSwitchId) {
118
- isShowErrorMessageAlert.value = true
109
+ emits('show-alert')
119
110
  return
120
111
  }
121
- emits('select-switch', selectedSwitchId)
122
- onHideErrorMessageAlert()
123
- emits('hide')
124
- }
125
112
 
126
- const onHideModal = (): void => {
127
- onHideErrorMessageAlert()
128
- emits('hide')
113
+ emits('select-switch', selectedSwitchId)
114
+ selectedRowData.value = []
129
115
  }
130
116
  </script>
131
117
 
@@ -133,4 +119,14 @@ const onHideModal = (): void => {
133
119
  :deep(.table-wrap) {
134
120
  height: 300px;
135
121
  }
122
+
123
+ .with-alert {
124
+ :deep(.table-wrap) {
125
+ height: 254px;
126
+ }
127
+ }
128
+
129
+ .table-top-margin-container {
130
+ margin-top: 8px;
131
+ }
136
132
  </style>
@@ -1,11 +1,11 @@
1
- import type { UI_I_ConnectionSettings } from '~/components/common/wizards/network/add/lib/models/interfaces'
2
- import { UI_E_ValidationFields } from '~/components/common/wizards/network/add/lib/models/enums'
3
- import type { UI_I_Localization } from '~/lib/models/interfaces'
4
- import type Wizard from '~/components/atoms/wizard/lib/utils/utils'
5
1
  import type {
6
2
  UI_I_ValidationReturn,
7
3
  UI_I_WizardStep,
8
- } from '~/components/atoms/wizard/lib/models/interfaces'
4
+ } from '~/node_modules/bfg-uikit/components/ui/wizard/lib/models/interfaces'
5
+ import type Wizard from '~/node_modules/bfg-uikit/components/ui/wizard/lib/utils/utils'
6
+ import type { UI_I_ConnectionSettings } from '~/components/common/wizards/network/add/lib/models/interfaces'
7
+ import { UI_E_ValidationFields } from '~/components/common/wizards/network/add/lib/models/enums'
8
+ import type { UI_I_Localization } from '~/lib/models/interfaces'
9
9
  import { checkVlanId } from '~/components/common/wizards/network/add/validations/common'
10
10
 
11
11
  export const validateVlanIdConnectionSettingsLocal = (
@@ -1,12 +1,12 @@
1
+ import type {
2
+ UI_I_ValidationReturn,
3
+ UI_I_WizardStep,
4
+ } from '~/node_modules/bfg-uikit/components/ui/wizard/lib/models/interfaces'
1
5
  import type {
2
6
  UI_I_AdapterStatus,
3
7
  UI_I_Adapter,
4
8
  } from '~/components/common/diagramMain/lib/models/interfaces'
5
9
  import type { UI_I_Localization } from '~/lib/models/interfaces'
6
- import type {
7
- UI_I_ValidationReturn,
8
- UI_I_WizardStep,
9
- } from '~/components/atoms/wizard/lib/models/interfaces'
10
10
 
11
11
  export const checkAdaptersSync = (
12
12
  localization: UI_I_Localization,
@@ -1,11 +1,11 @@
1
- import type { UI_I_IpFourSettings } from '~/components/common/wizards/network/add/lib/models/interfaces'
2
- import { UI_E_ValidationFields } from '~/components/common/wizards/network/add/lib/models/enums'
3
- import type { UI_I_Localization } from '~/lib/models/interfaces'
4
- import type Wizard from '~/components/atoms/wizard/lib/utils/utils'
1
+ import type Wizard from '~/node_modules/bfg-uikit/components/ui/wizard/lib/utils/utils'
5
2
  import type {
6
3
  UI_I_ValidationReturn,
7
4
  UI_I_WizardStep,
8
- } from '~/components/atoms/wizard/lib/models/interfaces'
5
+ } from '~/node_modules/bfg-uikit/components/ui/wizard/lib/models/interfaces'
6
+ import type { UI_I_IpFourSettings } from '~/components/common/wizards/network/add/lib/models/interfaces'
7
+ import { UI_E_ValidationFields } from '~/components/common/wizards/network/add/lib/models/enums'
8
+ import type { UI_I_Localization } from '~/lib/models/interfaces'
9
9
  import { checkIfValidIP } from '~/components/common/wizards/network/add/validations/common'
10
10
 
11
11
  export const validateAddressIpFourSettingsLocal = (
@@ -1,11 +1,11 @@
1
- import type { UI_I_AddNetworkingEmits } from '~/components/common/wizards/network/add/lib/models/interfaces'
2
- import type { UI_I_Localization } from '~/lib/models/interfaces'
3
- import type Wizard from '~/components/atoms/wizard/lib/utils/utils'
1
+ import type Wizard from '~/node_modules/bfg-uikit/components/ui/wizard/lib/utils/utils'
4
2
  import type {
5
3
  UI_I_AsyncCheckReturn,
6
4
  UI_I_ValidationReturn,
7
5
  UI_I_WizardStep,
8
- } from '~/components/atoms/wizard/lib/models/interfaces'
6
+ } from '~/node_modules/bfg-uikit/components/ui/wizard/lib/models/interfaces'
7
+ import type { UI_I_AddNetworkingEmits } from '~/components/common/wizards/network/add/lib/models/interfaces'
8
+ import type { UI_I_Localization } from '~/lib/models/interfaces'
9
9
 
10
10
  const checkNetwork = async (
11
11
  label: string,
@@ -1,10 +1,10 @@
1
- // import { UI_E_ValidationFields } from '~/components/common/wizards/network/add/lib/models/enums'
2
- // import type { UI_I_Localization } from '~/lib/models/interfaces'
3
- // import type Wizard from '~/components/atoms/wizard/lib/utils/utils'
4
1
  // import {
5
2
  // UI_I_ValidationReturn,
6
3
  // UI_I_WizardStep,
7
- // } from '~/components/atoms/wizard/lib/models/interfaces'
4
+ // } from '~/node_modules/bfg-uikit/components/ui/wizard/lib/models/interfaces'
5
+ // import type Wizard from '~/node_modules/bfg-uikit/components/ui/wizard/lib/utils/utils'
6
+ // import { UI_E_ValidationFields } from '~/components/common/wizards/network/add/lib/models/enums'
7
+ // import type { UI_I_Localization } from '~/lib/models/interfaces'
8
8
  // import {
9
9
  // UI_I_AdapterStatus,
10
10
  // UI_I_Adapter,
@@ -1,8 +1,8 @@
1
+ import type Wizard from '~/node_modules/bfg-uikit/components/ui/wizard/lib/utils/utils'
2
+ import type {UI_I_ValidationReturn, UI_I_WizardStep} from '~/node_modules/bfg-uikit/components/ui/wizard/lib/models/interfaces'
1
3
  import type { UI_I_PortProperties } from '~/components/common/wizards/network/add/lib/models/interfaces'
2
4
  import { UI_E_ValidationFields } from '~/components/common/wizards/network/add/lib/models/enums'
3
5
  import type { UI_I_Localization } from '~/lib/models/interfaces'
4
- import type Wizard from '~/components/atoms/wizard/lib/utils/utils'
5
- import type {UI_I_ValidationReturn, UI_I_WizardStep} from '~/components/atoms/wizard/lib/models/interfaces'
6
6
  import {
7
7
  checkVlanId,
8
8
  checkMtu,
@@ -1,11 +1,11 @@
1
- import type { UI_I_TargetDevice } from '~/components/common/wizards/network/add/lib/models/interfaces'
2
- import { UI_E_ValidationFields } from '~/components/common/wizards/network/add/lib/models/enums'
3
- import type { UI_I_Localization } from '~/lib/models/interfaces'
4
- import type Wizard from '~/components/atoms/wizard/lib/utils/utils'
1
+ import type Wizard from '~/node_modules/bfg-uikit/components/ui/wizard/lib/utils/utils'
5
2
  import type {
6
3
  UI_I_ValidationReturn,
7
4
  UI_I_WizardStep,
8
- } from '~/components/atoms/wizard/lib/models/interfaces'
5
+ } from '~/node_modules/bfg-uikit/components/ui/wizard/lib/models/interfaces'
6
+ import type { UI_I_TargetDevice } from '~/components/common/wizards/network/add/lib/models/interfaces'
7
+ import { UI_E_ValidationFields } from '~/components/common/wizards/network/add/lib/models/enums'
8
+ import type { UI_I_Localization } from '~/lib/models/interfaces'
9
9
  import { checkMtu } from '~/components/common/wizards/network/add/validations/common'
10
10
 
11
11
  export const validateMtuTargetDeviceLocal = (
@@ -18,7 +18,7 @@ export const validateMtuTargetDeviceLocal = (
18
18
  UI_E_ValidationFields.TARGET_DEVICE_MTU,
19
19
  data.selected === '3' && checkMtu(data.mtu || 0),
20
20
  localization.common.mtuInvalidMessage,
21
- localization.common.mtuInvalidMessage
21
+ ''
22
22
  )
23
23
  }
24
24
 
@@ -26,7 +26,8 @@ export const checkTargetDeviceSync = (
26
26
  localization: UI_I_Localization,
27
27
  data: UI_I_TargetDevice,
28
28
  wizard: Wizard,
29
- value: UI_I_WizardStep[]
29
+ value: UI_I_WizardStep[],
30
+ isNewView: boolean
30
31
  ): UI_I_ValidationReturn => {
31
32
  let stepHasError = false
32
33
 
@@ -36,7 +37,7 @@ export const checkTargetDeviceSync = (
36
37
  UI_E_ValidationFields.TARGET_DEVICE_NETWORK,
37
38
  {
38
39
  fieldMessage: localization.common.networkInvalidMessage,
39
- alertMessage: localization.common.networkInvalidMessage,
40
+ alertMessage: isNewView ? '' : localization.common.networkInvalidMessage,
40
41
  }
41
42
  )
42
43
  } else if (
@@ -55,7 +56,7 @@ export const checkTargetDeviceSync = (
55
56
  UI_E_ValidationFields.TARGET_DEVICE_STANDARD_SWITCH,
56
57
  {
57
58
  fieldMessage: localization.common.standardSwitchInvalidMessage,
58
- alertMessage: localization.common.standardSwitchInvalidMessage,
59
+ alertMessage: isNewView ? '' : localization.common.standardSwitchInvalidMessage,
59
60
  }
60
61
  )
61
62
  } else if (
@@ -74,7 +75,7 @@ export const checkTargetDeviceSync = (
74
75
  UI_E_ValidationFields.TARGET_DEVICE_SWITCH,
75
76
  {
76
77
  fieldMessage: localization.common.switchInvalidMessage,
77
- alertMessage: localization.common.switchInvalidMessage,
78
+ alertMessage: isNewView ? '' : localization.common.switchInvalidMessage,
78
79
  }
79
80
  )
80
81
  } else if (wizard.hasMessage(1, UI_E_ValidationFields.TARGET_DEVICE_SWITCH)) {
@@ -93,8 +93,8 @@
93
93
  import type {
94
94
  UI_I_WizardStep,
95
95
  UI_I_ValidationReturn,
96
- } from '~/components/atoms/wizard/lib/models/interfaces'
97
- import Wizard from '~/components/atoms/wizard/lib/utils/utils'
96
+ } from '~/node_modules/bfg-uikit/components/ui/wizard/lib/models/interfaces'
97
+ import Wizard from '~/node_modules/bfg-uikit/components/ui/wizard/lib/utils/utils'
98
98
  import type { UI_I_Localization } from '~/lib/models/interfaces'
99
99
  import type { UI_T_Project } from '~/lib/models/types'
100
100
  import type {
@@ -1,6 +1,6 @@
1
+ import type { UI_I_WizardStep } from '~/node_modules/bfg-uikit/components/ui/wizard/lib/models/interfaces'
2
+ import { UI_E_WIZARD_STATUS } from '~/node_modules/bfg-uikit/components/ui/wizard/lib/models/enums'
1
3
  import type { UI_I_Localization } from '~/lib/models/interfaces'
2
- import type { UI_I_WizardStep } from '~/components/atoms/wizard/lib/models/interfaces'
3
- import { UI_E_WIZARD_STATUS } from '~/components/atoms/wizard/lib/models/enums'
4
4
 
5
5
  export const dynamicSteps = {
6
6
  schedulingOptions: 0,
@@ -1,9 +1,9 @@
1
- import type { UI_I_Localization } from '~/lib/models/interfaces'
2
1
  import type {
3
2
  UI_I_ValidationReturn,
4
3
  UI_I_WizardStep,
5
- } from '~/components/atoms/wizard/lib/models/interfaces'
6
- import type Wizard from '~/components/atoms/wizard/lib/utils/utils'
4
+ } from '~/node_modules/bfg-uikit/components/ui/wizard/lib/models/interfaces'
5
+ import type Wizard from '~/node_modules/bfg-uikit/components/ui/wizard/lib/utils/utils'
6
+ import type { UI_I_Localization } from '~/lib/models/interfaces'
7
7
  import type { UI_I_ComputeResourceFormLocal } from '~/components/common/wizards/vm/migrate/select/computeResource/lib/models/interfaces'
8
8
  import { dynamicSteps } from '~/components/common/wizards/vm/migrate/lib/config/steps'
9
9
 
@@ -121,11 +121,11 @@
121
121
  </template>
122
122
 
123
123
  <script lang="ts" setup>
124
+ import type Wizard from '~/node_modules/bfg-uikit/components/ui/wizard/lib/utils/utils'
124
125
  import type { UI_I_Localization } from '~/lib/models/interfaces'
125
126
  import type { UI_T_AlertStatus } from '~/components/atoms/alert/lib/models/types'
126
127
  import type { UI_I_InitialValidationFields } from '~/components/common/wizards/vm/migrate/select/targetServer/new/lib/models/interfaces'
127
128
  import type { UI_I_ConnectEsxiServerForm } from '~/components/common/wizards/vm/migrate/select/targetServer/new/lib/models/interfaces'
128
- import type Wizard from '~/components/atoms/wizard/lib/utils/utils'
129
129
 
130
130
  const props = defineProps<{
131
131
  wizard: Wizard
@@ -22,7 +22,7 @@
22
22
  </template>
23
23
 
24
24
  <script lang="ts" setup>
25
- import type Wizard from '~/components/atoms/wizard/lib/utils/utils'
25
+ import type Wizard from '~/node_modules/bfg-uikit/components/ui/wizard/lib/utils/utils'
26
26
  import type { UI_I_Localization } from '~/lib/models/interfaces'
27
27
  import type { UI_I_CollapseNavItem } from '~/components/atoms/collapse/lib/models/interfaces'
28
28
  import type { UI_I_ConnectEsxiServerForm } from '~/components/common/wizards/vm/migrate/select/targetServer/new/lib/models/interfaces'
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "bfg-common",
3
3
  "private": false,
4
- "version": "1.5.442",
4
+ "version": "1.5.443",
5
5
  "scripts": {
6
6
  "build": "nuxt build",
7
7
  "dev": "nuxt dev --port=3002",
@@ -35,7 +35,7 @@
35
35
  "@vueuse/components": "^10.1.2",
36
36
  "date-fns": "^2.29.3",
37
37
  "bfg-nuxt-3-graph": "1.0.26",
38
- "bfg-uikit": "1.0.496",
38
+ "bfg-uikit": "1.0.507",
39
39
  "html2canvas": "^1.4.1",
40
40
  "prettier-eslint": "^15.0.1"
41
41
  }
@@ -1,8 +0,0 @@
1
- export enum UI_E_WIZARD_STATUS {
2
- COMPLETED,
3
- SELECTED,
4
- INACTIVE,
5
- ACTIVE,
6
- INVALID,
7
- INVALID_SELECTED,
8
- }
@@ -1,59 +0,0 @@
1
- import { UI_E_WIZARD_STATUS } from '~/components/atoms/wizard/lib/models/enums'
2
-
3
- export interface UI_I_ErrorFields {
4
- alert: string
5
- field: string
6
- }
7
-
8
- export interface UI_I_WizardStep {
9
- id: number
10
- title: string
11
- status: UI_E_WIZARD_STATUS
12
- fields: {
13
- [key: string]: UI_I_ErrorFields
14
- }
15
- isValid: boolean
16
- testId: string
17
- stepName?: string
18
- subTitle?: string
19
- accessDynamicTestIdForStep?: boolean
20
- accessDynamicTestIdForHide?: boolean
21
- accessDynamicTestIdForBack?: boolean
22
- accessDynamicTestIdForNext?: boolean
23
- accessDynamicTestIdForFinish?: boolean
24
- }
25
-
26
- export interface UI_I_WizardStepNavigation
27
- extends Omit<UI_I_WizardStep, 'status'> {
28
- status: {
29
- disabled: boolean
30
- active: boolean
31
- error: boolean
32
- complete: boolean
33
- }
34
- }
35
-
36
- export interface UI_I_WizardSchemeData {
37
- stepId: number
38
- dataId: string
39
- }
40
-
41
- export interface UI_I_Loader {
42
- status?: boolean
43
- messages?: string[]
44
- }
45
-
46
- export interface UI_I_ValidationReturn {
47
- stepHasError: boolean
48
- stepShouldStop?: {
49
- ifOnCurrentStep: boolean
50
- ifFromAnyStep: boolean
51
- stoppageStepId: number
52
- }
53
- newValue: UI_I_WizardStep[]
54
- }
55
-
56
- export interface UI_I_AsyncCheckReturn {
57
- isValid: boolean
58
- message: string
59
- }