bfg-common 1.4.227 → 1.4.229

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-1.svg +407 -407
  2. package/assets/img/icons/icons-sprite-dark-2.svg +343 -343
  3. package/assets/img/icons/icons-sprite-dark-3.svg +227 -227
  4. package/assets/img/icons/icons-sprite-dark-4.svg +255 -255
  5. package/assets/img/icons/icons-sprite-dark-5.svg +488 -488
  6. package/assets/img/icons/icons-sprite-dark-6.svg +83 -83
  7. package/assets/img/icons/icons-sprite-light-1.svg +407 -407
  8. package/assets/img/icons/icons-sprite-light-2.svg +343 -343
  9. package/assets/img/icons/icons-sprite-light-3.svg +227 -227
  10. package/assets/img/icons/icons-sprite-light-4.svg +255 -255
  11. package/assets/img/icons/icons-sprite-light-5.svg +488 -488
  12. package/assets/img/icons/icons-sprite-light-6.svg +83 -83
  13. package/assets/localization/local_be.json +2665 -2665
  14. package/components/atoms/TheIcon3.vue +50 -50
  15. package/components/atoms/modal/bySteps/BySteps.vue +253 -253
  16. package/components/atoms/stack/StackBlock.vue +185 -185
  17. package/components/atoms/table/dataGrid/DataGrid.vue +1 -0
  18. package/components/common/browse/blocks/Title.vue +91 -91
  19. package/components/common/browse/blocks/info/Date.vue +21 -21
  20. package/components/common/context/lib/models/interfaces.ts +30 -30
  21. package/components/common/context/recursion/Recursion.vue +86 -86
  22. package/components/common/context/recursion/RecursionNew.vue +199 -199
  23. package/components/common/context/recursion/RecursionOld.vue +213 -213
  24. package/components/common/vm/actions/add/Add.vue +617 -617
  25. package/components/common/vm/actions/clone/Clone.vue +593 -522
  26. package/components/common/vm/actions/clone/lib/config/defaultScheduledTask.ts +8 -0
  27. package/components/common/vm/actions/clone/lib/config/steps.ts +138 -74
  28. package/components/common/vm/actions/clone/lib/models/interfaces.ts +9 -0
  29. package/components/common/vm/actions/common/customizeHardware/virtualHardware/bus/lib/config/options.ts +20 -20
  30. package/components/common/vm/actions/common/customizeHardware/virtualHardware/cpu/Cpu.vue +403 -403
  31. package/components/common/vm/actions/common/customizeHardware/virtualHardware/cpu/Hv.vue +99 -99
  32. package/components/common/vm/actions/common/customizeHardware/vmoptions/bootOptions/order/Order.vue +201 -201
  33. package/components/common/vm/actions/common/customizeHardware/vmoptions/remoteConsoleOptions/streamingMode/StreamingMode.vue +85 -85
  34. package/composables/productNameLocal.ts +30 -30
  35. package/package.json +1 -1
  36. package/plugins/recursion.ts +311 -311
  37. package/public/spice-console/lib/images/bitmap.js +203 -203
  38. package/store/tasks/mappers/recentTasks.ts +45 -45
@@ -0,0 +1,8 @@
1
+ // export const scheduledTaskDefaultFormFunc = (): I_ScheduleNewTasksForm => {
2
+ export const scheduledTaskDefaultFormFunc = (): any => {
3
+ return {
4
+ task_name: '',
5
+ description: '',
6
+ frequency: '',
7
+ }
8
+ }
@@ -1,74 +1,138 @@
1
- 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
-
5
- export const stepsFunc = (
6
- localization: UI_I_Localization
7
- ): UI_I_WizardStep[] => {
8
- return [
9
- {
10
- id: 0,
11
- stepName: '',
12
- title: localization.common.selectName,
13
- subTitle: localization.common.specifyUniqueName,
14
- status: UI_E_WIZARD_STATUS.SELECTED,
15
- isValid: true,
16
- fields: {
17
- name: {
18
- field: '',
19
- alert: '',
20
- },
21
- },
22
- },
23
- {
24
- id: 1,
25
- stepName: '',
26
- title: localization.common.selectStorage,
27
- subTitle: localization.common.selectStorageConfigurationDiskFiles,
28
- status: UI_E_WIZARD_STATUS.INACTIVE,
29
- isValid: true,
30
- fields: {
31
- storage: {
32
- field: '',
33
- alert: '',
34
- },
35
- },
36
- },
37
- {
38
- id: 2,
39
- stepName: '',
40
- title: localization.common.selectCloneOptions,
41
- subTitle: localization.common.chooseGuestOSInstalledVmAndMachineTypeUsedCreateVm,
42
- status: UI_E_WIZARD_STATUS.INACTIVE,
43
- isValid: true,
44
- fields: {},
45
- },
46
- {
47
- id: 3,
48
- stepName: '',
49
- title: localization.common.customizeHardware,
50
- subTitle: localization.common.configureVirtualMachineHardware,
51
- status: UI_E_WIZARD_STATUS.INACTIVE,
52
- isValid: true,
53
- fields: {
54
- customizeHardware: {
55
- field: '',
56
- alert: '',
57
- },
58
- },
59
- },
60
- {
61
- id: 4,
62
- stepName: '',
63
- title: localization.common.readyComplete,
64
- subTitle: localization.common.clickFinishStartCreation,
65
- status: UI_E_WIZARD_STATUS.INACTIVE,
66
- isValid: true,
67
- fields: {},
68
- },
69
- ]
70
- }
71
-
72
- export const stepsSchemeInitial = [
73
- [0, 1, 2, 3, 4], // Procurator
74
- ]
1
+ 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
+ import type { I_DynamicSteps } from '~/components/common/vm/actions/clone/lib/models/interfaces'
5
+
6
+ export const stepsFunc = (
7
+ localization: UI_I_Localization,
8
+ isScheduledTasks: boolean
9
+ ): UI_I_WizardStep[] => {
10
+ let result: UI_I_WizardStep[] = [
11
+ {
12
+ id: 0,
13
+ stepName: '',
14
+ title: localization.common.schedulingOptions,
15
+ subTitle: '',
16
+ status: UI_E_WIZARD_STATUS.SELECTED,
17
+ isValid: true,
18
+ fields: {},
19
+ testId: 'new-roles-scheduling-options',
20
+ },
21
+ {
22
+ id: 1,
23
+ stepName: '',
24
+ title: localization.common.selectName,
25
+ subTitle: localization.common.specifyUniqueName,
26
+ status: UI_E_WIZARD_STATUS.INACTIVE,
27
+ isValid: true,
28
+ testId: 'vm-wizard-select-name',
29
+ fields: {
30
+ name: {
31
+ field: '',
32
+ alert: '',
33
+ },
34
+ },
35
+ },
36
+ {
37
+ id: 2,
38
+ stepName: '',
39
+ title: localization.common.selectStorage,
40
+ subTitle: localization.common.selectStorageConfigurationDiskFiles,
41
+ status: UI_E_WIZARD_STATUS.INACTIVE,
42
+ isValid: true,
43
+ testId: 'vm-wizard-select-storage',
44
+ fields: {
45
+ storage: {
46
+ field: '',
47
+ alert: '',
48
+ },
49
+ },
50
+ },
51
+ {
52
+ id: 3,
53
+ stepName: '',
54
+ title: localization.common.selectCloneOptions,
55
+ subTitle:
56
+ localization.common.chooseGuestOSInstalledVmAndMachineTypeUsedCreateVm,
57
+ status: UI_E_WIZARD_STATUS.INACTIVE,
58
+ isValid: true,
59
+ testId: 'vm-wizard-select-clone-options',
60
+ fields: {},
61
+ },
62
+ {
63
+ id: 4,
64
+ stepName: '',
65
+ title: localization.common.customizeHardware,
66
+ subTitle: localization.common.configureVirtualMachineHardware,
67
+ status: UI_E_WIZARD_STATUS.INACTIVE,
68
+ isValid: true,
69
+ testId: 'vm-wizard-customize-hardware',
70
+ fields: {
71
+ customizeHardware: {
72
+ field: '',
73
+ alert: '',
74
+ },
75
+ },
76
+ },
77
+ {
78
+ id: 5,
79
+ stepName: '',
80
+ title: localization.common.readyComplete,
81
+ subTitle: localization.common.clickFinishStartCreation,
82
+ status: UI_E_WIZARD_STATUS.INACTIVE,
83
+ isValid: true,
84
+ testId: 'vm-wizard-ready-complete',
85
+ fields: {},
86
+ },
87
+ ]
88
+
89
+ console.log(isScheduledTasks, 111111);
90
+
91
+ if (!isScheduledTasks) {
92
+ console.log(2222222);
93
+ result.shift()
94
+ result[0].status = UI_E_WIZARD_STATUS.SELECTED
95
+ result = result.map((item) => {
96
+ item.id--
97
+ return item
98
+ })
99
+ }
100
+
101
+ console.log(result, 33333333);
102
+
103
+ return result
104
+ }
105
+
106
+ // export const stepsSchemeInitial = [
107
+ // [0, 1, 2, 3, 4], // Procurator
108
+ // ]
109
+
110
+ export const stepsSchemeInitial = (isScheduledTasks: boolean): number[][] => {
111
+ const resultWithOutScheduledTasks = [0, 1, 2, 3, 4]
112
+ const resultWithScheduledTasks = [0, 1, 2, 3, 4, 5]
113
+
114
+ return isScheduledTasks
115
+ ? [resultWithScheduledTasks]
116
+ : [resultWithOutScheduledTasks]
117
+ }
118
+ export const getDynamicSteps = (isScheduledTasks: boolean): I_DynamicSteps => {
119
+ const resultWithOutScheduledTasks = {
120
+ selectName: 0,
121
+ selectStorage: 1,
122
+ selectOptions: 2,
123
+ customizeHardware: 3,
124
+ readyComplete: 4,
125
+ }
126
+ const resultWithScheduledTasks = {
127
+ scheduledTasks: 0,
128
+ selectName: 1,
129
+ selectStorage: 2,
130
+ selectOptions: 3,
131
+ customizeHardware: 4,
132
+ readyComplete: 5,
133
+ }
134
+
135
+ return isScheduledTasks
136
+ ? resultWithScheduledTasks
137
+ : resultWithOutScheduledTasks
138
+ }
@@ -5,3 +5,12 @@ export interface UI_I_VmForm {
5
5
  storage: UI_I_DatastoreTableItem | null
6
6
  options: string[]
7
7
  }
8
+
9
+ export interface I_DynamicSteps {
10
+ selectName: number
11
+ selectStorage: number
12
+ selectOptions: number
13
+ customizeHardware: number
14
+ readyComplete: number
15
+ scheduledTasks?: number
16
+ }
@@ -1,20 +1,20 @@
1
- // import type { UI_I_Localization } from '~/lib/models/interfaces'
2
- // import type { UI_I_OptionItem } from '~/components/atoms/lib/models/interfaces'
3
- //
4
- // export const busOptionsFunc = (
5
- // localization: UI_I_Localization,
6
- // shortOptions?: boolean
7
- // ): UI_I_OptionItem[] => {
8
- // if (shortOptions) {
9
- // return [
10
- // { text: localization.common.ide, value: 'ide' },
11
- // { text: localization.common.sata, value: 'sata' },
12
- // ]
13
- // }
14
- // return [
15
- // { text: localization.common.ide, value: 'ide' },
16
- // { text: localization.common.scsi, value: 'scsi' },
17
- // { text: localization.common.sata, value: 'sata' },
18
- // { text: localization.common.virtio, value: 'virtio' },
19
- // ]
20
- // }
1
+ // import type { UI_I_Localization } from '~/lib/models/interfaces'
2
+ // import type { UI_I_OptionItem } from '~/components/atoms/lib/models/interfaces'
3
+ //
4
+ // export const busOptionsFunc = (
5
+ // localization: UI_I_Localization,
6
+ // shortOptions?: boolean
7
+ // ): UI_I_OptionItem[] => {
8
+ // if (shortOptions) {
9
+ // return [
10
+ // { text: localization.common.ide, value: 'ide' },
11
+ // { text: localization.common.sata, value: 'sata' },
12
+ // ]
13
+ // }
14
+ // return [
15
+ // { text: localization.common.ide, value: 'ide' },
16
+ // { text: localization.common.scsi, value: 'scsi' },
17
+ // { text: localization.common.sata, value: 'sata' },
18
+ // { text: localization.common.virtio, value: 'virtio' },
19
+ // ]
20
+ // }