bfg-common 1.5.490 → 1.5.491

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.
@@ -1,107 +0,0 @@
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'
3
- import type { UI_I_Localization } from '~/lib/models/interfaces'
4
- import type { UI_I_DynamicSteps } from '~/components/common/vmt/actions/add/lib/models/interfaces'
5
-
6
- export const dynamicSteps: UI_I_DynamicSteps = {
7
- selectName: 0,
8
- selectStorage: 1,
9
- selectGuestOSMachineType: 2,
10
- customizeHardware: 3,
11
- readyComplete: 4,
12
- }
13
-
14
- export const stepsFunc = (
15
- localization: UI_I_Localization
16
- // isScheduledTasks: boolean
17
- ): UI_I_WizardStep[] => {
18
- let result: UI_I_WizardStep[] = [
19
- {
20
- id: dynamicSteps.selectName,
21
- stepName: '',
22
- title: localization.common.selectName,
23
- subTitle: localization.common.specifyUniqueName,
24
- status: UI_E_WIZARD_STATUS.SELECTED,
25
- isValid: true,
26
- testId: 'vmt-add-wizard-select-name',
27
- fields: {
28
- name: {
29
- field: '',
30
- alert: '',
31
- },
32
- },
33
- },
34
- {
35
- id: dynamicSteps.selectStorage,
36
- stepName: '',
37
- title: localization.common.selectStorage,
38
- subTitle: localization.common.selectStorageConfigurationDiskFiles,
39
- status: UI_E_WIZARD_STATUS.INACTIVE,
40
- isValid: true,
41
- testId: 'vmt-add-wizard-select-storage',
42
- fields: {
43
- storage: {
44
- field: '',
45
- alert: '',
46
- },
47
- },
48
- },
49
- {
50
- id: dynamicSteps.selectGuestOSMachineType,
51
- stepName: '',
52
- title: localization.common.selectGuestOSMachineType,
53
- subTitle:
54
- localization.common.chooseGuestOSInstalledVmAndMachineTypeUsedCreateVm,
55
- status: UI_E_WIZARD_STATUS.INACTIVE,
56
- isValid: true,
57
- testId: 'vmt-add-select-guest-os-machine-type',
58
- fields: {},
59
- },
60
- {
61
- id: dynamicSteps.customizeHardware,
62
- stepName: '',
63
- title: localization.common.customizeHardware,
64
- subTitle: localization.common.configureVirtualMachineHardware,
65
- status: UI_E_WIZARD_STATUS.INACTIVE,
66
- isValid: true,
67
- testId: 'vmt-add-wizard-customize-hardware',
68
- fields: {
69
- customizeHardware: {
70
- field: '',
71
- alert: '',
72
- },
73
- },
74
- },
75
- {
76
- id: dynamicSteps.readyComplete,
77
- stepName: '',
78
- title: localization.common.readyComplete,
79
- subTitle: localization.common.clickFinishStartCreation,
80
- status: UI_E_WIZARD_STATUS.INACTIVE,
81
- isValid: true,
82
- testId: 'vmt-add-wizard-ready-complete',
83
- fields: {},
84
- },
85
- ]
86
-
87
- // if (!isScheduledTasks) {
88
- // result.shift()
89
- // result[0].status = UI_E_WIZARD_STATUS.SELECTED
90
- // result = result.map((item) => {
91
- // item.id--
92
- // return item
93
- // })
94
- // }
95
-
96
- return result
97
- }
98
-
99
- export const stepsSchemeInitial = [
100
- [
101
- dynamicSteps.selectName,
102
- dynamicSteps.selectStorage,
103
- dynamicSteps.selectGuestOSMachineType,
104
- dynamicSteps.customizeHardware,
105
- dynamicSteps.readyComplete,
106
- ],
107
- ]
@@ -1,23 +0,0 @@
1
- import type { UI_I_DatastoreTableItem } from '~/lib/models/store/storage/interfaces'
2
- import type { UI_I_OptionItem } from '~/components/atoms/lib/models/interfaces'
3
- import type { UI_I_TreeNode } from '~/components/common/recursionTree/lib/models/interfaces'
4
-
5
- export interface UI_I_VmtForm {
6
- name: string
7
- compatibility: string
8
- guestMachineType: UI_I_OptionItem | null
9
- guestOsFamily: UI_I_OptionItem | null
10
- guestOsVersion: UI_I_OptionItem | null
11
- computeResource: UI_I_TreeNode | null
12
- storage: UI_I_DatastoreTableItem | null
13
- locationPath: string
14
- }
15
-
16
- export interface UI_I_DynamicSteps {
17
- selectName: number
18
- selectStorage: number
19
- selectGuestOSMachineType: number
20
- customizeHardware: number
21
- readyComplete: number
22
- scheduledTasks?: number
23
- }