bfg-common 1.4.288 → 1.4.290

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 (44) 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 +94 -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 +94 -83
  13. package/assets/localization/local_be.json +2 -56
  14. package/assets/localization/local_en.json +2 -56
  15. package/assets/localization/local_hy.json +2 -56
  16. package/assets/localization/local_kk.json +2 -56
  17. package/assets/localization/local_ru.json +2 -56
  18. package/assets/localization/local_zh.json +2 -56
  19. package/assets/scss/common/icons/icons-6.scss +12 -0
  20. package/components/atoms/TheIcon3.vue +50 -50
  21. package/components/atoms/modal/bySteps/BySteps.vue +253 -253
  22. package/components/atoms/stack/StackBlock.vue +185 -185
  23. package/components/atoms/wizard/lib/utils/utils.ts +0 -104
  24. package/components/common/browse/blocks/Title.vue +91 -91
  25. package/components/common/browse/blocks/info/Date.vue +21 -21
  26. package/components/common/context/lib/models/interfaces.ts +30 -30
  27. package/components/common/context/recursion/Recursion.vue +86 -86
  28. package/components/common/context/recursion/RecursionNew.vue +199 -199
  29. package/components/common/context/recursion/RecursionOld.vue +213 -213
  30. package/components/common/modals/confirmation/Confirmation.vue +65 -65
  31. package/components/common/vm/actions/add/Add.vue +617 -617
  32. package/components/common/vm/actions/clone/lib/config/steps.ts +129 -129
  33. package/components/common/vm/actions/common/customizeHardware/virtualHardware/bus/lib/config/options.ts +20 -20
  34. package/components/common/vm/actions/common/customizeHardware/virtualHardware/cpu/Cpu.vue +403 -403
  35. package/components/common/vm/actions/common/customizeHardware/virtualHardware/cpu/Hv.vue +99 -99
  36. package/components/common/vm/actions/common/customizeHardware/vmoptions/bootOptions/order/Order.vue +201 -201
  37. package/components/common/vm/actions/common/customizeHardware/vmoptions/remoteConsoleOptions/streamingMode/StreamingMode.vue +85 -85
  38. package/composables/productNameLocal.ts +30 -30
  39. package/package.json +1 -1
  40. package/plugins/date.ts +181 -181
  41. package/plugins/recursion.ts +311 -311
  42. package/public/spice-console/lib/images/bitmap.js +203 -203
  43. package/public/spice-console/network/spicechannel.js +383 -383
  44. package/store/tasks/mappers/recentTasks.ts +45 -45
@@ -1,129 +1,129 @@
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
- if (!isScheduledTasks) {
90
- result.shift()
91
- result[0].status = UI_E_WIZARD_STATUS.SELECTED
92
- result = result.map((item) => {
93
- item.id--
94
- return item
95
- })
96
- }
97
-
98
- return result
99
- }
100
-
101
- export const stepsSchemeInitial = (isScheduledTasks: boolean): number[][] => {
102
- const resultWithOutScheduledTasks = [0, 1, 2, 3, 4]
103
- const resultWithScheduledTasks = [0, 1, 2, 3, 4, 5]
104
-
105
- return isScheduledTasks
106
- ? [resultWithScheduledTasks]
107
- : [resultWithOutScheduledTasks]
108
- }
109
- export const getDynamicSteps = (isScheduledTasks: boolean): I_DynamicSteps => {
110
- const resultWithOutScheduledTasks = {
111
- selectName: 0,
112
- selectStorage: 1,
113
- selectOptions: 2,
114
- customizeHardware: 3,
115
- readyComplete: 4,
116
- }
117
- const resultWithScheduledTasks = {
118
- scheduledTasks: 0,
119
- selectName: 1,
120
- selectStorage: 2,
121
- selectOptions: 3,
122
- customizeHardware: 4,
123
- readyComplete: 5,
124
- }
125
-
126
- return isScheduledTasks
127
- ? resultWithScheduledTasks
128
- : resultWithOutScheduledTasks
129
- }
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
+ if (!isScheduledTasks) {
90
+ result.shift()
91
+ result[0].status = UI_E_WIZARD_STATUS.SELECTED
92
+ result = result.map((item) => {
93
+ item.id--
94
+ return item
95
+ })
96
+ }
97
+
98
+ return result
99
+ }
100
+
101
+ export const stepsSchemeInitial = (isScheduledTasks: boolean): number[][] => {
102
+ const resultWithOutScheduledTasks = [0, 1, 2, 3, 4]
103
+ const resultWithScheduledTasks = [0, 1, 2, 3, 4, 5]
104
+
105
+ return isScheduledTasks
106
+ ? [resultWithScheduledTasks]
107
+ : [resultWithOutScheduledTasks]
108
+ }
109
+ export const getDynamicSteps = (isScheduledTasks: boolean): I_DynamicSteps => {
110
+ const resultWithOutScheduledTasks = {
111
+ selectName: 0,
112
+ selectStorage: 1,
113
+ selectOptions: 2,
114
+ customizeHardware: 3,
115
+ readyComplete: 4,
116
+ }
117
+ const resultWithScheduledTasks = {
118
+ scheduledTasks: 0,
119
+ selectName: 1,
120
+ selectStorage: 2,
121
+ selectOptions: 3,
122
+ customizeHardware: 4,
123
+ readyComplete: 5,
124
+ }
125
+
126
+ return isScheduledTasks
127
+ ? resultWithScheduledTasks
128
+ : resultWithOutScheduledTasks
129
+ }
@@ -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
+ // }