bfg-common 1.5.244 → 1.5.246

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 (71) hide show
  1. package/assets/scss/common/icons/icons-1.scss +2 -2
  2. package/assets/scss/common/icons/icons-5.scss +5 -5
  3. package/assets/scss/common/icons/icons-6.scss +1 -1
  4. package/assets/scss/common/theme.scss +6 -0
  5. package/components/atoms/table/dataGrid/DataGrid.vue +1 -1
  6. package/components/common/backup/actions/deleteBackup/DeleteBackup.vue +38 -0
  7. package/components/common/backup/storage/actions/add/Add.vue +3 -0
  8. package/components/common/backup/storage/actions/add/New.vue +2 -0
  9. package/components/common/backup/storage/actions/add/Old.vue +2 -0
  10. package/components/common/browse/BrowseNew.vue +8 -2
  11. package/components/common/vm/actions/add/Add.vue +3 -0
  12. package/components/common/vm/actions/add/New.vue +4 -0
  13. package/components/common/vm/actions/add/Old.vue +4 -0
  14. package/components/common/vm/actions/clone/Clone.vue +3 -0
  15. package/components/common/vm/actions/clone/toTemplate/ToTemplate.vue +3 -0
  16. package/components/common/vm/actions/common/customizeHardware/CustomizeHardware.vue +3 -0
  17. package/components/common/vm/actions/common/customizeHardware/CustomizeHardwareNew.vue +7 -2
  18. package/components/common/vm/actions/common/customizeHardware/CustomizeHardwareOld.vue +2 -0
  19. package/components/common/vm/actions/common/customizeHardware/virtualHardware/VirtualHardware.vue +3 -0
  20. package/components/common/vm/actions/common/customizeHardware/virtualHardware/VirtualHardwareNew.vue +9 -7
  21. package/components/common/vm/actions/common/customizeHardware/virtualHardware/VirtualHardwareOld.vue +2 -0
  22. package/components/common/vm/actions/common/customizeHardware/virtualHardware/bus/BusNew.vue +2 -0
  23. package/components/common/vm/actions/common/customizeHardware/virtualHardware/cdDvdDrive/CdDvdDriveNew.vue +4 -0
  24. package/components/common/vm/actions/common/customizeHardware/virtualHardware/cpu/CpuNew.vue +5 -1
  25. package/components/common/vm/actions/common/customizeHardware/virtualHardware/cpu/model/ModelNew.vue +11 -2
  26. package/components/common/vm/actions/common/customizeHardware/virtualHardware/cpu/shares/SharesNew.vue +6 -1
  27. package/components/common/vm/actions/common/customizeHardware/virtualHardware/memory/MemoryNew.vue +5 -1
  28. package/components/common/vm/actions/common/customizeHardware/virtualHardware/memory/hotPlug/HotPlugNew.vue +8 -2
  29. package/components/common/vm/actions/common/customizeHardware/virtualHardware/newHardDisk/NewHardDisk.vue +3 -0
  30. package/components/common/vm/actions/common/customizeHardware/virtualHardware/newHardDisk/NewHardDiskNew.vue +6 -0
  31. package/components/common/vm/actions/common/customizeHardware/virtualHardware/newHardDisk/NewHardDiskOld.vue +2 -0
  32. package/components/common/vm/actions/common/customizeHardware/virtualHardware/newHardDisk/file/FileNew.vue +8 -3
  33. package/components/common/vm/actions/common/customizeHardware/virtualHardware/newHardDisk/location/Location.vue +3 -0
  34. package/components/common/vm/actions/common/customizeHardware/virtualHardware/newHardDisk/location/LocationNew.vue +2 -0
  35. package/components/common/vm/actions/common/customizeHardware/virtualHardware/newHardDisk/location/LocationOld.vue +2 -0
  36. package/components/common/vm/actions/common/customizeHardware/virtualHardware/newHardDisk/location/StorageModal.vue +3 -0
  37. package/components/common/vm/actions/common/customizeHardware/virtualHardware/newHardDisk/location/StorageModalNew.vue +2 -0
  38. package/components/common/vm/actions/common/customizeHardware/virtualHardware/newHardDisk/location/StorageModalOld.vue +2 -0
  39. package/components/common/vm/actions/common/customizeHardware/virtualHardware/newHardDisk/maximumSize/MaximumSizeNew.vue +8 -4
  40. package/components/common/vm/actions/common/customizeHardware/virtualHardware/newHardDisk/provisioning/ProvisioningNew.vue +6 -1
  41. package/components/common/vm/actions/common/customizeHardware/virtualHardware/newHardDisk/sharing/SharingNew.vue +6 -1
  42. package/components/common/vm/actions/common/customizeHardware/virtualHardware/newNetwork/NewNetworkNew.vue +1 -1
  43. package/components/common/vm/actions/common/customizeHardware/virtualHardware/newNetwork/location/new/New.vue +4 -3
  44. package/components/common/vm/actions/common/customizeHardware/virtualHardware/newNetwork/location/new/table/Table.vue +1 -0
  45. package/components/common/vm/actions/common/customizeHardware/virtualHardware/newUsbController/NewUsbControllerNew.vue +1 -0
  46. package/components/common/vm/actions/common/customizeHardware/virtualHardware/other/OtherNew.vue +8 -2
  47. package/components/common/vm/actions/common/customizeHardware/virtualHardware/reservation/ReservationNew.vue +5 -2
  48. package/components/common/vm/actions/common/customizeHardware/virtualHardware/videoCard/VideoCardNew.vue +5 -2
  49. package/components/common/vm/actions/common/customizeHardware/vmoptions/bootOptions/BootOptionsNew.vue +5 -1
  50. package/components/common/vm/actions/common/customizeHardware/vmoptions/bootOptions/order/OrderNew.vue +4 -0
  51. package/components/common/vm/actions/common/customizeHardware/vmoptions/generalOptions/GeneralOptionsNew.vue +1 -0
  52. package/components/common/vm/actions/common/customizeHardware/vmoptions/remoteConsoleOptions/New.vue +8 -2
  53. package/components/common/vm/actions/common/customizeHardware/vmoptions/remoteConsoleOptions/password/Password.vue +1 -1
  54. package/components/common/vm/actions/common/customizeHardware/vmoptions/tools/ToolsNew.vue +5 -1
  55. package/components/common/vm/actions/common/select/storage/Old.vue +2 -0
  56. package/components/common/vm/actions/common/select/storage/Storage.vue +3 -0
  57. package/components/common/vm/actions/common/select/storage/new/New.vue +10 -5
  58. package/components/common/vm/actions/common/select/storage/new/lib/config/table.ts +2 -1
  59. package/components/common/vm/actions/editSettings/EditSettings.vue +3 -0
  60. package/components/common/vm/actions/editSettings/EditSettingsOld.vue +2 -0
  61. package/components/common/vm/actions/editSettings/new/New.vue +2 -0
  62. package/components/common/wizards/vm/migrate/select/computeResource/tableView/TableView.vue +1 -3
  63. package/lib/utils/utils.ts +14 -2
  64. package/package.json +2 -2
  65. package/plugins/cron.ts +75 -0
  66. package/plugins/helpers.ts +18 -0
  67. package/plugins/number.ts +18 -0
  68. package/plugins/panelStates.ts +70 -0
  69. package/plugins/text.ts +11 -0
  70. package/plugins/time.ts +17 -0
  71. /package/{components/common/split/horizontal/lib/models → lib/models/plugins/panelStates}/interfaces.ts +0 -0
@@ -1,7 +1,9 @@
1
1
  <template>
2
2
  <ui-stack-block :has-children="false">
3
3
  <template #stackBlockKey>
4
- {{ localization.common.memoryHotPlug }}
4
+ <span class="limit-title">
5
+ {{ localization.common.memoryHotPlug }}
6
+ </span>
5
7
  </template>
6
8
  <template #stackBlockContent>
7
9
  <ui-checkbox
@@ -26,4 +28,8 @@ const props = defineProps<{
26
28
  }>()
27
29
  </script>
28
30
 
29
- <style scoped></style>
31
+ <style scoped>
32
+ .limit-title {
33
+ margin-right: 12px;
34
+ }
35
+ </style>
@@ -25,6 +25,7 @@
25
25
  :is-new-hard-disk="!isNotNewHardDisk"
26
26
  :is-edit="props.isEdit"
27
27
  :datastore="props.datastore"
28
+ :is-datastore-loading="props.isDatastoreLoading"
28
29
  :get-datastore-table-func="props.getDatastoreTableFunc"
29
30
  :error-validation-fields="props.errorValidationFields"
30
31
  :index="props.index"
@@ -65,6 +66,7 @@
65
66
  :is-new-hard-disk="!isNotNewHardDisk"
66
67
  :is-edit="props.isEdit"
67
68
  :datastore="props.datastore"
69
+ :is-datastore-loading="props.isDatastoreLoading"
68
70
  :get-datastore-table-func="props.getDatastoreTableFunc"
69
71
  :error-validation-fields="props.errorValidationFields"
70
72
  :index="props.index"
@@ -103,6 +105,7 @@ const props = defineProps<{
103
105
  errorValidationFields: UI_I_ErrorValidationField[]
104
106
  getDatastoreTableFunc: (payload: UI_I_TablePayload) => Promise<void>
105
107
  datastore: UI_I_DatastoreTableItem[]
108
+ isDatastoreLoading: boolean
106
109
  isEdit: boolean
107
110
  state?: string | number
108
111
  guestMachineType?: UI_I_OptionItem | null
@@ -4,6 +4,7 @@
4
4
  :is-roll-back="props.type === 'removed'"
5
5
  :removable="props.isRemovable"
6
6
  :test-id="`hard-disk-stack-block-${props.index}`"
7
+ is-toggle-on-stack-view-key
7
8
  @remove="emits('remove')"
8
9
  @roll-back="emits('roll-back')"
9
10
  >
@@ -98,6 +99,7 @@
98
99
  :error-validation-fields="props.errorValidationFields"
99
100
  :get-datastore-table-func="props.getDatastoreTableFunc"
100
101
  :datastore="props.datastore"
102
+ :is-datastore-loading="props.isDatastoreLoading"
101
103
  @change="emits('change-storage', $event)"
102
104
  @remove-error-by-title="emits('remove-error-by-title', $event)"
103
105
  />
@@ -202,6 +204,7 @@ const props = defineProps<{
202
204
  isNewHardDisk: boolean
203
205
  isEdit: boolean
204
206
  datastore: UI_I_DatastoreTableItem[]
207
+ isDatastoreLoading: boolean
205
208
  getDatastoreTableFunc: (payload: UI_I_TablePayload) => Promise<void>
206
209
  errorValidationFields: UI_I_ErrorValidationField<string>[]
207
210
  index: number
@@ -260,6 +263,9 @@ const localization = computed<UI_I_Localization>(() => useLocal())
260
263
  gap: 0;
261
264
  }
262
265
 
266
+ #device-will-removed-text-main {
267
+ color: var(--device-will-removed-color);
268
+ }
263
269
  .device-will-removed-text {
264
270
  font-size: 13px;
265
271
  color: var(--device-will-removed-color);
@@ -114,6 +114,7 @@
114
114
  :error-validation-fields="props.errorValidationFields"
115
115
  :get-datastore-table-func="props.getDatastoreTableFunc"
116
116
  :datastore="props.datastore"
117
+ :is-datastore-loading="props.isDatastoreLoading"
117
118
  @change="emits('change-storage', $event)"
118
119
  @remove-error-by-title="emits('remove-error-by-title', $event)"
119
120
  />
@@ -219,6 +220,7 @@ const props = defineProps<{
219
220
  isNewHardDisk: boolean
220
221
  isEdit: boolean
221
222
  datastore: UI_I_DatastoreTableItem[]
223
+ isDatastoreLoading: boolean
222
224
  getDatastoreTableFunc: (payload: UI_I_TablePayload) => Promise<void>
223
225
  errorValidationFields: UI_I_ErrorValidationField<string>[]
224
226
  index: number
@@ -1,7 +1,9 @@
1
1
  <template>
2
2
  <ui-stack-block :has-children="false">
3
3
  <template #stackBlockKey>
4
- {{ localization.common.diskFile }}
4
+ <span class="limit-title">
5
+ {{ localization.common.diskFile }}
6
+ </span>
5
7
  </template>
6
8
  <template #stackBlockContent>
7
9
  <span class="file-path"> {{ props.path }} </span>
@@ -21,13 +23,16 @@ const props = defineProps<{
21
23
 
22
24
  <style>
23
25
  :root {
24
- --vm-wizard-file-path-color: #182531
26
+ --vm-wizard-file-path-color: #182531;
25
27
  }
26
28
  :root.dark-theme {
27
- --vm-wizard-file-path-color: #e9eaec
29
+ --vm-wizard-file-path-color: #e9eaec;
28
30
  }
29
31
  </style>
30
32
  <style scoped>
33
+ .limit-title {
34
+ margin-right: 12px;
35
+ }
31
36
  .file-path {
32
37
  font-size: 13px;
33
38
  color: var(--vm-wizard-file-path-color);
@@ -4,6 +4,7 @@
4
4
  v-model:selected-location="selectedLocation"
5
5
  :index="props.index"
6
6
  :datastore="props.datastore"
7
+ :is-datastore-loading="props.isDatastoreLoading"
7
8
  :get-datastore-table-func="props.getDatastoreTableFunc"
8
9
  :api-error="apiError"
9
10
  :location-options="locationOptions"
@@ -20,6 +21,7 @@
20
21
  v-model:selected-location="selectedLocation"
21
22
  :index="props.index"
22
23
  :datastore="props.datastore"
24
+ :is-datastore-loading="props.isDatastoreLoading"
23
25
  :get-datastore-table-func="props.getDatastoreTableFunc"
24
26
  :api-error="apiError"
25
27
  :location-options="locationOptions"
@@ -48,6 +50,7 @@ const props = defineProps<{
48
50
  index: number
49
51
  errorValidationFields: UI_I_ErrorValidationField[]
50
52
  datastore: UI_I_DatastoreTableItem[]
53
+ isDatastoreLoading: boolean
51
54
  getDatastoreTableFunc: (payload: UI_I_TablePayload) => Promise<void>
52
55
  }>()
53
56
  const emits = defineEmits<{
@@ -22,6 +22,7 @@
22
22
  :storage-modal-is-show="props.storageModalIsShow"
23
23
  :storage-submit="props.storageSubmit"
24
24
  :datastore="props.datastore"
25
+ :is-datastore-loading="props.isDatastoreLoading"
25
26
  :get-datastore-table-func="props.getDatastoreTableFunc"
26
27
  @change-storage="emits('change-storage', $event)"
27
28
  @hide="emits('hide-storage-modal')"
@@ -45,6 +46,7 @@ const selectedLocation = defineModel<string>('selectedLocation', {
45
46
  const props = defineProps<{
46
47
  index: number
47
48
  datastore: UI_I_DatastoreTableItem[]
49
+ isDatastoreLoading: boolean
48
50
  getDatastoreTableFunc: (payload: UI_I_TablePayload) => Promise<void>
49
51
  apiError: string
50
52
  locationOptions: UI_I_OptionItem[]
@@ -39,6 +39,7 @@
39
39
  :storage-modal-is-show="props.storageModalIsShow"
40
40
  :storage-submit="props.storageSubmit"
41
41
  :datastore="props.datastore"
42
+ :is-datastore-loading="props.isDatastoreLoading"
42
43
  :get-datastore-table-func="props.getDatastoreTableFunc"
43
44
  @change-storage="emits('change-storage', $event)"
44
45
  @hide="emits('hide-storage-modal')"
@@ -63,6 +64,7 @@ const selectedLocation = defineModel<string>('selectedLocation', {
63
64
  const props = defineProps<{
64
65
  index: number
65
66
  datastore: UI_I_DatastoreTableItem[]
67
+ isDatastoreLoading: boolean
66
68
  getDatastoreTableFunc: (payload: UI_I_TablePayload) => Promise<void>
67
69
  apiError: string
68
70
  locationOptions: UI_I_OptionItem[]
@@ -4,6 +4,7 @@
4
4
  :storage-modal-is-show="props.storageModalIsShow"
5
5
  :storage-submit="props.storageSubmit"
6
6
  :datastore="props.datastore"
7
+ :is-datastore-loading="props.isDatastoreLoading"
7
8
  :get-datastore-table-func="props.getDatastoreTableFunc"
8
9
  @change-storage="emits('change-storage', $event)"
9
10
  @submit="emits('submit')"
@@ -14,6 +15,7 @@
14
15
  :storage-modal-is-show="props.storageModalIsShow"
15
16
  :storage-submit="props.storageSubmit"
16
17
  :datastore="props.datastore"
18
+ :is-datastore-loading="props.isDatastoreLoading"
17
19
  :get-datastore-table-func="props.getDatastoreTableFunc"
18
20
  @change-storage="emits('change-storage', $event)"
19
21
  @submit="emits('submit')"
@@ -29,6 +31,7 @@ const props = defineProps<{
29
31
  storageModalIsShow: boolean
30
32
  storageSubmit: null | Function
31
33
  datastore: UI_I_DatastoreTableItem[]
34
+ isDatastoreLoading: boolean
32
35
  getDatastoreTableFunc: (payload: UI_I_TablePayload) => Promise<void>
33
36
  }>()
34
37
 
@@ -26,6 +26,7 @@
26
26
  <common-vm-actions-common-select-storage
27
27
  :storage-submit="props.storageSubmit"
28
28
  :datastore="props.datastore"
29
+ :is-datastore-loading="props.isDatastoreLoading"
29
30
  :get-datastore-table-func="props.getDatastoreTableFunc"
30
31
  hide-compatibility
31
32
  hide-alert
@@ -55,6 +56,7 @@ const props = defineProps<{
55
56
  storageModalIsShow: boolean
56
57
  storageSubmit: null | Function
57
58
  datastore: UI_I_DatastoreTableItem[]
59
+ isDatastoreLoading: boolean
58
60
  getDatastoreTableFunc: (payload: UI_I_TablePayload) => Promise<void>
59
61
  }>()
60
62
 
@@ -14,6 +14,7 @@
14
14
  <common-vm-actions-common-select-storage
15
15
  :storage-submit="props.storageSubmit"
16
16
  :datastore="props.datastore"
17
+ :is-datastore-loading="props.isDatastoreLoading"
17
18
  :get-datastore-table-func="props.getDatastoreTableFunc"
18
19
  hide-compatibility
19
20
  @submit="emits('change-storage', $event)"
@@ -31,6 +32,7 @@ const props = defineProps<{
31
32
  storageModalIsShow: boolean
32
33
  storageSubmit: null | Function
33
34
  datastore: UI_I_DatastoreTableItem[]
35
+ isDatastoreLoading: boolean
34
36
  getDatastoreTableFunc: (payload: UI_I_TablePayload) => Promise<void>
35
37
  }>()
36
38
 
@@ -1,7 +1,9 @@
1
1
  <template>
2
2
  <ui-stack-block :has-children="false">
3
3
  <template #stackBlockKey>
4
- {{ localization.common.maximumSize }}
4
+ <span class="limit-title">
5
+ {{ localization.common.maximumSize }}
6
+ </span>
5
7
  </template>
6
8
  <template #stackBlockContent>
7
9
  <span class="maximum-size"> {{ props.freeGb }} </span>
@@ -19,16 +21,18 @@ const props = defineProps<{
19
21
  }>()
20
22
  </script>
21
23
 
22
-
23
24
  <style>
24
25
  :root {
25
- --vm-wizard-maximum-size-color: #182531
26
+ --vm-wizard-maximum-size-color: #182531;
26
27
  }
27
28
  :root.dark-theme {
28
- --vm-wizard-maximum-size-color: #e9eaec
29
+ --vm-wizard-maximum-size-color: #e9eaec;
29
30
  }
30
31
  </style>
31
32
  <style scoped>
33
+ .limit-title {
34
+ margin-right: 12px;
35
+ }
32
36
  .maximum-size {
33
37
  font-size: 13px;
34
38
  line-height: 15.73px;
@@ -1,7 +1,9 @@
1
1
  <template>
2
2
  <ui-stack-block :has-children="false">
3
3
  <template #stackBlockKey>
4
- {{ localization.common.diskProvisioning }}
4
+ <span class="limit-title">
5
+ {{ localization.common.diskProvisioning }}
6
+ </span>
5
7
  </template>
6
8
  <template #stackBlockContent>
7
9
  <ui-select
@@ -38,6 +40,9 @@ const localization = computed<UI_I_Localization>(() => useLocal())
38
40
  </script>
39
41
 
40
42
  <style scoped>
43
+ .limit-title {
44
+ margin-right: 12px;
45
+ }
41
46
  :deep(.provisioning-field .ui-main-select-toggle) {
42
47
  width: auto;
43
48
  }
@@ -1,7 +1,9 @@
1
1
  <template>
2
2
  <ui-stack-block :has-children="false">
3
3
  <template #stackBlockKey>
4
- {{ localization.common.sharing }}
4
+ <span class="limit-title">
5
+ {{ localization.common.sharing }}
6
+ </span>
5
7
  </template>
6
8
  <template #stackBlockContent>
7
9
  <ui-select
@@ -38,6 +40,9 @@ const localization = computed<UI_I_Localization>(() => useLocal())
38
40
  </script>
39
41
 
40
42
  <style scoped>
43
+ .limit-title {
44
+ margin-right: 12px;
45
+ }
41
46
  :deep(.sharing .ui-main-select-toggle) {
42
47
  width: 144px;
43
48
  }
@@ -3,6 +3,7 @@
3
3
  :has-children="true"
4
4
  :removable="props.isRemovable"
5
5
  :test-id="`network-stack-block-${props.index}`"
6
+ is-toggle-on-stack-view-key
6
7
  @remove="emits('remove')"
7
8
  >
8
9
  <template #stackBlockKey>
@@ -111,7 +112,6 @@ const onChangeLocation = (data: UI_T_SelectedValue): void => {
111
112
  </script>
112
113
 
113
114
  <style scoped lang="scss">
114
-
115
115
  :deep(.network-select .ui-main-select-toggle) {
116
116
  display: flex;
117
117
  justify-content: space-between;
@@ -73,14 +73,15 @@ const modalTexts = ref<UI_I_ModalTexts>({
73
73
  </script>
74
74
 
75
75
  <style scoped lang="scss">
76
+ .network-select-dialog-content {
77
+ margin: 0 32px;
78
+ }
76
79
  .count-text {
77
80
  text-align: right;
78
81
  font-size: 12px;
79
82
  font-weight: 400;
80
83
  color: #9da6ad;
81
- margin-bottom: 8px;
82
- margin-top: 8px;
84
+ margin: 8px 32px;
83
85
  text-transform: lowercase;
84
- margin-right: 8px;
85
86
  }
86
87
  </style>
@@ -3,6 +3,7 @@
3
3
  :data="data"
4
4
  :options="options"
5
5
  :texts="tableTexts"
6
+ :default-layout="false"
6
7
  size="sm"
7
8
  test-id="data-table-main"
8
9
  class="network-table"
@@ -3,6 +3,7 @@
3
3
  :has-children="true"
4
4
  is-disabled
5
5
  test-id="usb-controller-stack-block"
6
+ is-toggle-on-stack-view-key
6
7
  >
7
8
  <template #stackBlockKey>
8
9
  <div
@@ -1,5 +1,9 @@
1
1
  <template>
2
- <ui-stack-block :has-children="true" test-id="other-stack-block">
2
+ <ui-stack-block
3
+ :has-children="true"
4
+ test-id="other-stack-block"
5
+ is-toggle-on-stack-view-key
6
+ >
3
7
  <template #stackBlockKey>
4
8
  <div
5
9
  id="vm-wizard-toggle-block-other"
@@ -9,7 +13,9 @@
9
13
  </div>
10
14
  </template>
11
15
  <template #stackBlockContent>
12
- <div class="additional-hardware">{{ localization.common.additionalHardware }} (2)</div>
16
+ <div class="additional-hardware">
17
+ {{ localization.common.additionalHardware }} (2)
18
+ </div>
13
19
  </template>
14
20
  <template #stackChildren>
15
21
  <common-vm-actions-common-customize-hardware-virtual-hardware-other-input-devices />
@@ -23,7 +23,7 @@
23
23
  v-model="reservationType"
24
24
  :items="props.reservationTypeOptions"
25
25
  :disabled="props.disabled"
26
- test-id="reserve-type-select"
26
+ :test-id="`reserve-type-select-${props.componentType}`"
27
27
  class="unit"
28
28
  size="sm"
29
29
  />
@@ -93,12 +93,15 @@ const onSelectReservation = (value: number): void => {
93
93
  </script>
94
94
 
95
95
  <style scoped>
96
-
97
96
  .reservation-content {
98
97
  gap: 8px;
99
98
  }
100
99
 
101
100
  .reserve-guest-memory-wrap {
102
101
  margin-top: 12px;
102
+
103
+ .ui-checkbox-label {
104
+ min-height: unset !important;
105
+ }
103
106
  }
104
107
  </style>
@@ -1,5 +1,9 @@
1
1
  <template>
2
- <ui-stack-block :has-children="true" test-id="video-card-stack-block">
2
+ <ui-stack-block
3
+ :has-children="true"
4
+ test-id="video-card-stack-block"
5
+ is-toggle-on-stack-view-key
6
+ >
3
7
  <template #stackBlockKey>
4
8
  <div
5
9
  id="vm-wizard-toggle-block-video-card"
@@ -88,7 +92,6 @@ const localization = computed<UI_I_Localization>(() => useLocal())
88
92
  </script>
89
93
 
90
94
  <style scoped lang="scss">
91
-
92
95
  :deep(.video-card-select .ui-main-select-toggle) {
93
96
  display: flex;
94
97
  justify-content: space-between;
@@ -1,5 +1,9 @@
1
1
  <template>
2
- <ui-stack-block :has-children="true" test-id="boot-options-stack-block">
2
+ <ui-stack-block
3
+ :has-children="true"
4
+ test-id="boot-options-stack-block"
5
+ is-toggle-on-stack-view-key
6
+ >
3
7
  <template #stackBlockKey>
4
8
  <div
5
9
  id="vm-wizard-toggle-block-boot-option"
@@ -61,6 +61,10 @@ const onGrab = (item: any): void => {
61
61
  </script>
62
62
 
63
63
  <style scoped lang="scss">
64
+ .device-icon {
65
+ width: 20px;
66
+ height: 20px;
67
+ }
64
68
  .device-name {
65
69
  margin-left: -4px;
66
70
  }
@@ -2,6 +2,7 @@
2
2
  <ui-stack-block
3
3
  :has-children="true"
4
4
  test-id="general-options-stack-block"
5
+ is-toggle-on-stack-view-key
5
6
  @toggle="blockIsOpen = $event"
6
7
  >
7
8
  <template #stackBlockKey>
@@ -1,12 +1,18 @@
1
1
  <template>
2
- <ui-stack-block :has-children="true" test-id="remote-console-stack-block">
2
+ <ui-stack-block
3
+ :has-children="true"
4
+ test-id="remote-console-stack-block"
5
+ is-toggle-on-stack-view-key
6
+ >
3
7
  <template #stackBlockKey>
4
8
  <div
5
9
  id="vm-wizard-toggle-block-remote-console"
6
10
  data-id="vm-wizard-toggle-block-remote-console"
7
11
  class="flex-align-center"
8
12
  >
9
- <span class="title">{{ localization.common.remoteConsoleOptions }}</span>
13
+ <span class="title">{{
14
+ localization.common.remoteConsoleOptions
15
+ }}</span>
10
16
  <ui-icon
11
17
  v-show="props.remoteConsoleOptionsInvalid"
12
18
  width="18px"
@@ -47,7 +47,7 @@ const defaultForm: UI_I_DefaultForm = {
47
47
  validations: [
48
48
  {
49
49
  value: 'password',
50
- errorText: localization.value.common.changePasswordError,
50
+ errorText: localization.value.common.passwordsMustLeast8CharactersLongContainUpperAndLowerCaseLetterNumberAndSpecialCharacter,
51
51
  },
52
52
  ],
53
53
  },
@@ -1,5 +1,9 @@
1
1
  <template>
2
- <ui-stack-block :has-children="true" test-id="tools-stack-block">
2
+ <ui-stack-block
3
+ :has-children="true"
4
+ test-id="tools-stack-block"
5
+ is-toggle-on-stack-view-key
6
+ >
3
7
  <template #stackBlockKey>
4
8
  <div
5
9
  id="vm-wizard-toggle-block-tools"
@@ -17,6 +17,7 @@
17
17
  :body-items="bodyItems"
18
18
  :total-items="bodyItems.length"
19
19
  :total-pages="1"
20
+ :loading="props.isDatastoreLoading"
20
21
  type="radio"
21
22
  test-id="storage-table"
22
23
  server-off
@@ -69,6 +70,7 @@ const pagination = defineModel<UI_I_Pagination>('pagination', {
69
70
 
70
71
  const props = defineProps<{
71
72
  datastore: UI_I_DatastoreTableItem[]
73
+ isDatastoreLoading: boolean
72
74
  errors: string[]
73
75
  selectedStorage: UI_I_DatastoreTableItem | null
74
76
  hideCompatibility?: boolean
@@ -4,6 +4,7 @@
4
4
  v-model:selected-row="selectedRow"
5
5
  v-model:pagination="pagination"
6
6
  :datastore="props.datastore"
7
+ :is-datastore-loading="props.isDatastoreLoading"
7
8
  :errors="errors"
8
9
  :selected-storage="selectedStorage"
9
10
  :hide-compatibility="props.hideCompatibility"
@@ -16,6 +17,7 @@
16
17
  v-model:selected-row="selectedRow"
17
18
  v-model:pagination="pagination"
18
19
  :datastore="props.datastore"
20
+ :is-datastore-loading="props.isDatastoreLoading"
19
21
  :errors="errors"
20
22
  :selected-storage="selectedStorage"
21
23
  :hide-compatibility="props.hideCompatibility"
@@ -35,6 +37,7 @@ import type { UI_I_Localization } from '~/lib/models/interfaces'
35
37
  const props = defineProps<{
36
38
  storageSubmit: null | Function
37
39
  datastore: UI_I_DatastoreTableItem[]
40
+ isDatastoreLoading: boolean
38
41
  getDatastoreTableFunc: (payload: UI_I_TablePayload) => Promise<void>
39
42
  storage?: UI_I_DatastoreTableItem
40
43
  hideCompatibility?: boolean
@@ -16,7 +16,7 @@
16
16
  <ui-data-table
17
17
  :data="data"
18
18
  :options="tableOptions"
19
- :loading="loading"
19
+ :loading="props.isDatastoreLoading"
20
20
  :default-layout="false"
21
21
  :texts="tableTexts"
22
22
  test-id="select-storage-data-table"
@@ -29,6 +29,10 @@
29
29
  {{ storageCount }}
30
30
  </h3></template
31
31
  >
32
+ <template #name="{ item }">
33
+ <ui-icon name="datastores" width="18" height="18" class="mr-1" />
34
+ {{ item.text }}
35
+ </template>
32
36
  <template #state="{ item }">
33
37
  <ui-chip :color="item.data.color" rounded>
34
38
  <ui-icon :name="item.data.iconClassName" width="14" height="14" />
@@ -86,6 +90,7 @@ const selectedRow = defineModel<number | null>('selectedRow')
86
90
 
87
91
  const props = defineProps<{
88
92
  datastore: UI_I_DatastoreTableItem[]
93
+ isDatastoreLoading: boolean
89
94
  errors: string[]
90
95
  selectedStorage: UI_I_DatastoreTableItem | null
91
96
  hideCompatibility?: boolean
@@ -108,13 +113,13 @@ const storageCount = computed<string>(() =>
108
113
  data.value.body.length.toString()
109
114
  )
110
115
  )
111
- const loading = ref<boolean>(true)
116
+ // const loading = ref<boolean>(true)
112
117
  const data = ref<UI_I_DataTable>(tableDataFunc(localization.value))
113
118
 
114
119
  watch(
115
120
  () => props.datastore,
116
121
  (newValue: UI_I_DatastoreTableItem[]) => {
117
- loading.value = true
122
+ // loading.value = true
118
123
 
119
124
  // if (!newValue.length || data.value.body.length) return
120
125
 
@@ -124,14 +129,14 @@ watch(
124
129
  selectedRow.value
125
130
  )
126
131
 
127
- loading.value = false
132
+ // loading.value = false
128
133
  },
129
134
  { immediate: true, deep: true }
130
135
  // { deep: true }
131
136
  )
132
137
 
133
138
  const onSelectRow = (selectedData: UI_I_DataTable): void => {
134
- const selectedId = selectedData[0]?.data[0]?.key
139
+ const selectedId = selectedData[0]?.data[0]?.data.id
135
140
  const selectedItemIndex = props.datastore.findIndex(
136
141
  (item) => item.id === selectedId
137
142
  )
@@ -257,9 +257,10 @@ export const tableBodyFunc = (
257
257
  isSelected: key === selectedRow,
258
258
  data: [
259
259
  {
260
- key: item.id,
260
+ key: 'name',
261
261
  col: 0,
262
262
  text: item.name,
263
+ data: { id: item.id },
263
264
  },
264
265
  {
265
266
  key: 'state',
@@ -8,6 +8,7 @@
8
8
  :project="props.project"
9
9
  :loading="loadingLocal"
10
10
  :datastore="props.datastore"
11
+ :is-datastore-loading="props.isDatastoreLoading"
11
12
  :networks-table="props.networksTable"
12
13
  :selected-nav-item="selectedNavItem"
13
14
  :vm-cpu-help-text-second="props.vmCpuHelpTextSecond"
@@ -42,6 +43,7 @@
42
43
  :project="props.project"
43
44
  :loading="loadingLocal"
44
45
  :datastore="props.datastore"
46
+ :is-datastore-loading="props.isDatastoreLoading"
45
47
  :networks-table="props.networksTable"
46
48
  :selected-nav-item="selectedNavItem"
47
49
  :vm-cpu-help-text-second="props.vmCpuHelpTextSecond"
@@ -110,6 +112,7 @@ const props = defineProps<{
110
112
  vmCpuHelpTextSecond: string
111
113
  vmId: string
112
114
  datastore: UI_I_DatastoreTableItem[]
115
+ isDatastoreLoading: boolean
113
116
  validateSendDataFunc: UI_T_EditVmFinishFunc
114
117
  getDatastoreTableFunc?: (payload: UI_I_TablePayload) => Promise<void>
115
118
  state?: string | number