bfg-common 1.5.550 → 1.5.551

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 (169) hide show
  1. package/CODE_STYLE.md +109 -109
  2. package/assets/img/icons/icons-sprite-dark-3.svg +227 -227
  3. package/assets/img/icons/icons-sprite-dark-5.svg +488 -488
  4. package/assets/img/icons/icons-sprite-light-3.svg +227 -227
  5. package/assets/img/icons/icons-sprite-light-5.svg +488 -488
  6. package/assets/localization/local_be.json +18 -3
  7. package/assets/localization/local_en.json +18 -3
  8. package/assets/localization/local_hy.json +18 -3
  9. package/assets/localization/local_kk.json +18 -3
  10. package/assets/localization/local_ru.json +18 -3
  11. package/assets/localization/local_zh.json +18 -3
  12. package/components/atoms/TheIcon3.vue +50 -50
  13. package/components/atoms/collapse/CollapseNav.vue +170 -170
  14. package/components/atoms/perPage/PerPage.vue +58 -58
  15. package/components/atoms/table/dataGrid/DataGrid.vue +1718 -1718
  16. package/components/atoms/table/dataGrid/DataGridPagination.vue +97 -97
  17. package/components/atoms/table/dataGrid/lib/config/settingsTable.ts +94 -94
  18. package/components/atoms/table/dataGrid/lib/utils/export.ts +16 -16
  19. package/components/common/backup/storage/actions/add/Add.vue +251 -251
  20. package/components/common/backup/storage/actions/add/lib/utils.ts +51 -51
  21. package/components/common/browse/blocks/contents/filesNew/Skeleton.vue +18 -18
  22. package/components/common/diagramMain/modals/lib/config/portModal.ts +251 -251
  23. package/components/common/diagramMain/modals/lib/config/vCenterModal.ts +48 -48
  24. package/components/common/diagramMain/port/Port.vue +580 -580
  25. package/components/common/layout/theHeader/helpMenu/About.vue +79 -79
  26. package/components/common/layout/theHeader/helpMenu/aboutOld/AboutOld.vue +79 -79
  27. package/components/common/modals/confirmByInput/ConfirmByInput.vue +9 -1
  28. package/components/common/modals/confirmByInput/ConfirmByInputNew.vue +7 -2
  29. package/components/common/pages/backups/DetailView.vue +52 -52
  30. package/components/common/pages/backups/lib/models/interfaces.ts +36 -36
  31. package/components/common/pages/backups/modals/Modals.vue +243 -243
  32. package/components/common/pages/backups/modals/createBackup/New.vue +8 -2
  33. package/components/common/pages/backups/modals/createBackup/configuration/backupWindow/BackupWindow.vue +29 -29
  34. package/components/common/pages/backups/modals/createBackup/configuration/maxBandwidth/MaxBandwidth.vue +69 -69
  35. package/components/common/pages/backups/modals/createBackup/configuration/strategy/Strategy.vue +38 -38
  36. package/components/common/pages/backups/modals/createBackup/lib/config/readyToCompleteOptions.ts +69 -69
  37. package/components/common/pages/backups/modals/createBackup/lib/models/interfaces.ts +8 -8
  38. package/components/common/pages/backups/modals/lib/config/restore.ts +115 -115
  39. package/components/common/pages/backups/modals/lib/models/interfaces.ts +186 -186
  40. package/components/common/pages/backups/modals/restore/Restore.vue +9 -5
  41. package/components/common/pages/backups/modals/restore/RestoreNew.vue +13 -3
  42. package/components/common/pages/backups/modals/restore/RestoreOld.vue +6 -18
  43. package/components/common/pages/backups/modals/restore/name/lib/models/interfaces.ts +6 -6
  44. package/components/common/pages/home/lib/models/interfaces.ts +48 -48
  45. package/components/common/pages/home/widgets/hosts/Hosts.vue +27 -27
  46. package/components/common/pages/home/widgets/hosts/lib/config/items.ts +23 -23
  47. package/components/common/pages/home/widgets/vms/VmsOld.vue +35 -35
  48. package/components/common/pages/home/widgets/vms/lib/config/items.ts +19 -19
  49. package/components/common/pages/scheduledTasks/lib/utils/utils.ts +84 -84
  50. package/components/common/readyToComplete/ReadyToComplete.vue +17 -17
  51. package/components/common/select/radio/RadioGroup.vue +137 -137
  52. package/components/common/spiceConsole/Drawer.vue +420 -420
  53. package/components/common/spiceConsole/SpiceConsole.vue +184 -184
  54. package/components/common/spiceConsole/lib/models/interfaces.ts +5 -5
  55. package/components/common/tools/Actions.vue +207 -207
  56. package/components/common/treeView/TreeView.vue +52 -52
  57. package/components/common/vm/actions/add/Add.vue +950 -877
  58. package/components/common/vm/actions/add/New.vue +690 -652
  59. package/components/common/vm/actions/add/Old.vue +402 -363
  60. package/components/common/vm/actions/add/lib/config/steps.ts +347 -347
  61. package/components/common/vm/actions/clone/Clone.vue +809 -809
  62. package/components/common/vm/actions/clone/new/New.vue +457 -457
  63. package/components/common/vm/actions/clone/old/Old.vue +378 -378
  64. package/components/common/vm/actions/common/customizeHardware/CustomizeHardware.vue +308 -243
  65. package/components/common/vm/actions/common/customizeHardware/CustomizeHardwareNew.vue +373 -328
  66. package/components/common/vm/actions/common/customizeHardware/CustomizeHardwareOld.vue +205 -161
  67. package/components/common/vm/actions/common/customizeHardware/virtualHardware/VirtualHardware.vue +728 -694
  68. package/components/common/vm/actions/common/customizeHardware/virtualHardware/VirtualHardwareNew.vue +523 -512
  69. package/components/common/vm/actions/common/customizeHardware/virtualHardware/VirtualHardwareOld.vue +339 -328
  70. package/components/common/vm/actions/common/customizeHardware/virtualHardware/cpu/Cpu.vue +368 -348
  71. package/components/common/vm/actions/common/customizeHardware/virtualHardware/cpu/CpuNew.vue +248 -241
  72. package/components/common/vm/actions/common/customizeHardware/virtualHardware/cpu/CpuOld.vue +189 -184
  73. package/components/common/vm/actions/common/customizeHardware/virtualHardware/cpu/shares/Shares.vue +140 -140
  74. package/components/common/vm/actions/common/customizeHardware/virtualHardware/cpu/shares/lib/config/options.ts +28 -28
  75. package/components/common/vm/actions/common/customizeHardware/virtualHardware/memory/Memory.vue +313 -300
  76. package/components/common/vm/actions/common/customizeHardware/virtualHardware/memory/MemoryNew.vue +158 -158
  77. package/components/common/vm/actions/common/customizeHardware/virtualHardware/memory/MemoryOld.vue +155 -155
  78. package/components/common/vm/actions/common/customizeHardware/virtualHardware/newHardDisk/NewHardDisk.vue +427 -427
  79. package/components/common/vm/actions/common/customizeHardware/virtualHardware/newHardDisk/location/Location.vue +154 -154
  80. package/components/common/vm/actions/common/customizeHardware/virtualHardware/newNetwork/macAddress/MacAddress.vue +119 -119
  81. package/components/common/vm/actions/common/customizeHardware/virtualHardware/newPciDevice/dynamicDirectPathIo/DynamicDirectPathIo.vue +31 -31
  82. package/components/common/vm/actions/common/customizeHardware/virtualHardware/newUsbController/NewUsbController.vue +58 -47
  83. package/components/common/vm/actions/common/customizeHardware/virtualHardware/newUsbController/NewUsbControllerNew.vue +65 -68
  84. package/components/common/vm/actions/common/customizeHardware/virtualHardware/newUsbController/NewUsbControllerOld.vue +61 -64
  85. package/components/common/vm/actions/common/customizeHardware/virtualHardware/other/Other.vue +16 -16
  86. package/components/common/vm/actions/common/customizeHardware/virtualHardware/videoCard/VideoCard.vue +162 -140
  87. package/components/common/vm/actions/common/customizeHardware/virtualHardware/videoCard/VideoCardNew.vue +5 -6
  88. package/components/common/vm/actions/common/customizeHardware/virtualHardware/videoCard/VideoCardOld.vue +5 -6
  89. package/components/common/vm/actions/common/customizeHardware/virtualHardware/videoCard/lib/config/options.ts +4 -4
  90. package/components/common/vm/actions/common/customizeHardware/virtualHardware/videoCard/numberDisplays/NumberDisplays.vue +53 -53
  91. package/components/common/vm/actions/common/customizeHardware/vmoptions/Vmoptions.vue +163 -76
  92. package/components/common/vm/actions/common/customizeHardware/vmoptions/VmoptionsNew.vue +138 -87
  93. package/components/common/vm/actions/common/customizeHardware/vmoptions/VmoptionsOld.vue +120 -71
  94. package/components/common/vm/actions/common/customizeHardware/vmoptions/bootOptions/BootOptions.vue +110 -46
  95. package/components/common/vm/actions/common/customizeHardware/vmoptions/bootOptions/BootOptionsNew.vue +85 -65
  96. package/components/common/vm/actions/common/customizeHardware/vmoptions/bootOptions/BootOptionsOld.vue +91 -70
  97. package/components/common/vm/actions/common/customizeHardware/vmoptions/bootOptions/delay/Delay.vue +32 -32
  98. package/components/common/vm/actions/common/customizeHardware/vmoptions/bootOptions/firmware/Firmware.vue +60 -60
  99. package/components/common/vm/actions/common/customizeHardware/vmoptions/bootOptions/order/Order.vue +174 -156
  100. package/components/common/vm/actions/common/customizeHardware/vmoptions/bootOptions/order/OrderNew.vue +74 -109
  101. package/components/common/vm/actions/common/customizeHardware/vmoptions/bootOptions/order/OrderOld.vue +66 -104
  102. package/components/common/vm/actions/common/customizeHardware/vmoptions/generalOptions/GeneralOptions.vue +101 -86
  103. package/components/common/vm/actions/common/customizeHardware/vmoptions/generalOptions/GeneralOptionsNew.vue +173 -163
  104. package/components/common/vm/actions/common/customizeHardware/vmoptions/generalOptions/GeneralOptionsOld.vue +170 -162
  105. package/components/common/vm/actions/common/customizeHardware/vmoptions/remoteConsoleOptions/New.vue +148 -142
  106. package/components/common/vm/actions/common/customizeHardware/vmoptions/remoteConsoleOptions/Old.vue +141 -135
  107. package/components/common/vm/actions/common/customizeHardware/vmoptions/remoteConsoleOptions/RemoteConsoleOptions.vue +178 -74
  108. package/components/common/vm/actions/common/customizeHardware/vmoptions/remoteConsoleOptions/keymap/Keymap.vue +32 -32
  109. package/components/common/vm/actions/common/customizeHardware/vmoptions/remoteConsoleOptions/keymap/{New.vue → KeymapNew.vue} +45 -45
  110. package/components/common/vm/actions/common/customizeHardware/vmoptions/remoteConsoleOptions/keymap/{Old.vue → KeymapOld.vue} +47 -47
  111. package/components/common/vm/actions/common/customizeHardware/vmoptions/remoteConsoleOptions/password/Password.vue +103 -102
  112. package/components/common/vm/actions/common/customizeHardware/vmoptions/remoteConsoleOptions/usbRedirection/UsbRedirection.vue +28 -28
  113. package/components/common/vm/actions/common/customizeHardware/vmoptions/tools/Tools.vue +49 -26
  114. package/components/common/vm/actions/common/lib/models/interfaces.ts +157 -189
  115. package/components/common/vm/actions/common/select/compatibility/Old.vue +107 -107
  116. package/components/common/vm/actions/common/select/createType/CreateType.vue +38 -38
  117. package/components/common/vm/actions/common/select/createType/lib/models/interfaces.ts +5 -5
  118. package/components/common/vm/actions/common/select/os/Old.vue +152 -152
  119. package/components/common/vm/actions/common/select/os/Os.vue +139 -139
  120. package/components/common/vm/actions/common/select/storage/Old.vue +125 -125
  121. package/components/common/vm/actions/common/select/storage/Storage.vue +178 -178
  122. package/components/common/vm/actions/common/select/storage/new/New.vue +311 -311
  123. package/components/common/vm/actions/common/select/storage/new/lib/models/interfaces.ts +5 -5
  124. package/components/common/vm/actions/common/select/storage/new/lib/utils/utils.ts +21 -21
  125. package/components/common/vm/actions/common/select/template/old/Old.vue +50 -50
  126. package/components/common/vm/actions/editSettings/new/Skeleton.vue +88 -88
  127. package/components/common/vm/actions/lib/models/interfaces.ts +40 -15
  128. package/components/common/vm/actions/lib/utils.ts +239 -244
  129. package/components/common/vm/actions/register/Register.vue +352 -352
  130. package/components/common/vm/actions/register/lib/config/steps.ts +86 -86
  131. package/components/common/wizards/common/compatibility/Compatibility.vue +35 -35
  132. package/components/common/wizards/common/compatibility/New.vue +99 -99
  133. package/components/common/wizards/common/compatibility/Old.vue +53 -53
  134. package/components/common/wizards/common/steps/computeResource/ComputeResource.vue +86 -86
  135. package/components/common/wizards/common/steps/computeResource/New.vue +93 -93
  136. package/components/common/wizards/common/steps/computeResource/Old.vue +103 -103
  137. package/components/common/wizards/common/steps/name/Name.vue +178 -178
  138. package/components/common/wizards/common/steps/name/New.vue +221 -221
  139. package/components/common/wizards/common/steps/name/Old.vue +121 -121
  140. package/components/common/wizards/common/steps/name/lib/models/interfaces.ts +4 -4
  141. package/components/common/wizards/common/steps/name/location/Location.vue +85 -85
  142. package/components/common/wizards/common/steps/name/location/New.vue +40 -40
  143. package/components/common/wizards/datastore/add/Add.vue +228 -228
  144. package/components/common/wizards/datastore/add/lib/utils.ts +85 -85
  145. package/components/common/wizards/datastore/add/steps/typeMode/lib/config/typeOptions.ts +43 -43
  146. package/components/common/wizards/vm/migrate/select/computeResource/ComputeResource.vue +205 -205
  147. package/components/common/wizards/vm/migrate/select/network/Network.vue +103 -103
  148. package/composables/useAppVersion.ts +21 -21
  149. package/composables/useLocal.ts +6 -6
  150. package/composables/useLocalCommon.ts +39 -39
  151. package/package.json +3 -1
  152. package/plugins/console.ts +21 -21
  153. package/plugins/date.ts +233 -233
  154. package/plugins/mouse.ts +21 -21
  155. package/plugins/panelStates.ts +70 -70
  156. package/plugins/text.ts +59 -59
  157. package/public/spice-console/application/clientgui.js +854 -854
  158. package/public/spice-console/application/packetfactory.js +211 -211
  159. package/public/spice-console/application/virtualmouse.js +147 -147
  160. package/public/spice-console/lib/images/bitmap.js +203 -203
  161. package/public/spice-console/network/spicechannel.js +440 -440
  162. package/public/spice-console/process/cursorprocess.js +121 -121
  163. package/public/spice-console/process/inputprocess.js +227 -227
  164. package/public/spice-console/process/mainprocess.js +210 -210
  165. package/public/spice-console/run.js +210 -210
  166. package/store/main/mutations.ts +7 -7
  167. package/store/main/state.ts +7 -7
  168. /package/components/common/vm/actions/common/customizeHardware/vmoptions/remoteConsoleOptions/password/{New.vue → PasswordNew.vue} +0 -0
  169. /package/components/common/vm/actions/common/customizeHardware/vmoptions/remoteConsoleOptions/password/{Old.vue → PasswordOld.vue} +0 -0
@@ -1,135 +1,141 @@
1
- <template>
2
- <div class="hardware-remote-console">
3
- <atoms-stack-block test-id="remote-console-stack-block" has-children>
4
- <template #stackBlockKey>
5
- <div
6
- id="vm-wizard-toggle-block-remote-console"
7
- data-id="vm-wizard-toggle-block-remote-console"
8
- class="flex-align-center"
9
- >
10
- <span>{{ localization.common.remoteConsoleOptions }}</span>
11
- <atoms-the-icon
12
- v-show="props.remoteConsoleOptionsInvalid"
13
- width="24px"
14
- height="24px"
15
- class="is-error tooltip-trigger"
16
- name="info"
17
- />
18
- </div>
19
- </template>
20
- <template #stackChildren>
21
- <!-- TODO возможно вернем, НЕ УДАЛЯТЬ-->
22
-
23
- <!-- <common-vm-actions-common-customize-hardware-vmoptions-remote-console-options-type-->
24
- <!-- v-models:remote-console-type="model.type"-->
25
- <!-- :error-validation-fields="props.errorValidationFields"-->
26
- <!-- :disabled="props.isDisabled"-->
27
- <!-- @input="changeRemoteConsoleType"-->
28
- <!-- @remove-error-by-title="emits('remove-error-by-title', $event)"-->
29
- <!-- />-->
30
- <common-vm-actions-common-customize-hardware-vmoptions-remote-console-options-keymap
31
- v-model="model.keymap"
32
- :disabled="props.isDisabled"
33
- />
34
- <common-vm-actions-common-customize-hardware-vmoptions-remote-console-options-password
35
- v-model="model.password"
36
- :disabled="props.isDisabled"
37
- @valid="passwordIsValid = $event"
38
- />
39
- <!-- <common-vm-actions-common-customize-hardware-vmoptions-remote-console-options-power-control-->
40
- <!-- v-if="model.type === 'vnc'"-->
41
- <!-- v-models:power-control="powerControl"-->
42
- <!-- />-->
43
- <!-- <common-vm-actions-common-customize-hardware-vmoptions-remote-console-options-share-policy-->
44
- <!-- v-if="model.type === 'vnc'"-->
45
- <!-- v-models:share-policy="sharePolicy"-->
46
- <!-- />-->
47
- <!-- TODO возможно вернем, НЕ УДАЛЯТЬ-->
48
- <!-- <common-vm-actions-common-customize-hardware-vmoptions-remote-console-options-img-compression-->
49
- <!-- v-if="model.type === 'spice'"-->
50
- <!-- v-models:img-compression="imgCompression"-->
51
- <!-- :error-validation-fields="props.errorValidationFields"-->
52
- <!-- :disabled="props.isDisabled"-->
53
- <!-- @remove-error-by-title="emits('remove-error-by-title', $event)"-->
54
- <!-- />-->
55
- <!-- <common-vm-actions-common-customize-hardware-vmoptions-remote-console-options-jpeg-compression-->
56
- <!-- v-if="model.type === 'spice'"-->
57
- <!-- v-models:jpeg-compression="jpegCompression"-->
58
- <!-- :error-validation-fields="props.errorValidationFields"-->
59
- <!-- :disabled="props.isDisabled"-->
60
- <!-- @remove-error-by-title="emits('remove-error-by-title', $event)"-->
61
- <!-- />-->
62
- <!-- <common-vm-actions-common-customize-hardware-vmoptions-remote-console-options-zlib-compression-->
63
- <!-- v-if="model.type === 'spice'"-->
64
- <!-- v-models:zlib-compression="zlibCompression"-->
65
- <!-- :error-validation-fields="props.errorValidationFields"-->
66
- <!-- :disabled="props.isDisabled"-->
67
- <!-- @remove-error-by-title="emits('remove-error-by-title', $event)"-->
68
- <!-- />-->
69
- <!-- <common-vm-actions-common-customize-hardware-vmoptions-remote-console-options-playback-compression-->
70
- <!-- v-if="model.type === 'spice'"-->
71
- <!-- :disabled="props.isDisabled"-->
72
- <!-- v-models:playback-compression="playbackCompression"-->
73
- <!-- />-->
74
- <!-- <common-vm-actions-common-customize-hardware-vmoptions-remote-console-options-streaming-mode-->
75
- <!-- v-if="model.type === 'spice'"-->
76
- <!-- v-models:streaming-mode="streamingMode"-->
77
- <!-- :error-validation-fields="props.errorValidationFields"-->
78
- <!-- :disabled="props.isDisabled"-->
79
- <!-- @remove-error-by-title="emits('remove-error-by-title', $event)"-->
80
- <!-- />-->
81
- <common-vm-actions-common-customize-hardware-vmoptions-remote-console-options-copy-paste
82
- v-if="model.type === 'spice'"
83
- v-model:copy-paste="model.spice.clipboard"
84
- :disabled="props.isDisabled"
85
- />
86
- <!-- TODO возможно вернем, НЕ УДАЛЯТЬ-->
87
- <!-- <common-vm-actions-common-customize-hardware-vmoptions-remote-console-options-mouse-mode-->
88
- <!-- v-if="model.type === 'spice'"-->
89
- <!-- v-models:mouse-mode="mouseMode"-->
90
- <!-- />-->
91
- <common-vm-actions-common-customize-hardware-vmoptions-remote-console-options-file-transfer
92
- v-if="model.type === 'spice'"
93
- v-model:file-transfer="model.spice.file_transfer"
94
- :disabled="props.isDisabled"
95
- />
96
- <common-vm-actions-common-customize-hardware-vmoptions-remote-console-options-usb-redirection
97
- v-if="model.type === 'spice'"
98
- v-model:usb-redirection="usbRedirection"
99
- :disabled="props.isDisabled"
100
- />
101
- <!-- TODO 700-->
102
- <!-- <common-vm-actions-common-customize-hardware-vmoptions-remote-console-options-folder-sharing-->
103
- <!-- v-if="model.type === 'spice'"-->
104
- <!-- v-model:folder-sharing="model.spice.folder_sharing"-->
105
- <!-- :disabled="props.isDisabled"-->
106
- <!-- />-->
107
- </template>
108
- </atoms-stack-block>
109
- </div>
110
- </template>
111
-
112
- <script setup lang="ts">
113
- import type { UI_I_Localization } from '~/lib/models/interfaces'
114
- import type { UI_I_CreateVmData } from '~/components/common/vm/actions/common/lib/models/interfaces'
115
-
116
- const model = defineModel<UI_I_CreateVmData['options']['remote_console']>({ required: true })
117
-
118
- const passwordIsValid = defineModel<boolean>('passwordIsValid', {
119
- required: true,
120
- })
121
-
122
- // TODO use from model
123
- const usbRedirection = ref<number>(3)
124
-
125
- const props = defineProps<{
126
- // TODO возможно вернем, НЕ УДАЛЯТЬ
127
- // errorValidationFields: UI_I_ErrorValidationField<string>[]
128
- remoteConsoleOptionsInvalid: boolean
129
- isDisabled: boolean
130
- }>()
131
-
132
- const localization = computed<UI_I_Localization>(() => useLocal())
133
- </script>
134
-
135
- <style scoped lang="scss"></style>
1
+ <template>
2
+ <div class="hardware-remote-console">
3
+ <atoms-stack-block test-id="remote-console-stack-block" has-children>
4
+ <template #stackBlockKey>
5
+ <div
6
+ id="vm-wizard-toggle-block-remote-console"
7
+ data-id="vm-wizard-toggle-block-remote-console"
8
+ class="flex-align-center"
9
+ >
10
+ <span>{{ localization.common.remoteConsoleOptions }}</span>
11
+ <atoms-the-icon
12
+ v-show="props.remoteConsoleOptionsInvalid"
13
+ width="24px"
14
+ height="24px"
15
+ class="is-error tooltip-trigger"
16
+ name="info"
17
+ />
18
+ </div>
19
+ </template>
20
+ <template #stackChildren>
21
+ <!-- TODO возможно вернем, НЕ УДАЛЯТЬ-->
22
+
23
+ <!-- <common-vm-actions-common-customize-hardware-vmoptions-remote-console-options-type-->
24
+ <!-- v-models:remote-console-type="remoteConsoleType"-->
25
+ <!-- :error-validation-fields="props.errorValidationFields"-->
26
+ <!-- :disabled="props.isDisabled"-->
27
+ <!-- @input="changeRemoteConsoleType"-->
28
+ <!-- @remove-error-by-title="emits('remove-error-by-title', $event)"-->
29
+ <!-- />-->
30
+ <common-vm-actions-common-customize-hardware-vmoptions-remote-console-options-keymap
31
+ v-model:keymap="keymap"
32
+ :disabled="props.isDisabled"
33
+ />
34
+ <common-vm-actions-common-customize-hardware-vmoptions-remote-console-options-password
35
+ v-model:password="password"
36
+ :disabled="props.isDisabled"
37
+ @valid="passwordIsValid = $event"
38
+ />
39
+ <!-- <common-vm-actions-common-customize-hardware-vmoptions-remote-console-options-power-control-->
40
+ <!-- v-if="remoteConsoleType === 'vnc'"-->
41
+ <!-- v-models:power-control="powerControl"-->
42
+ <!-- />-->
43
+ <!-- <common-vm-actions-common-customize-hardware-vmoptions-remote-console-options-share-policy-->
44
+ <!-- v-if="remoteConsoleType === 'vnc'"-->
45
+ <!-- v-models:share-policy="sharePolicy"-->
46
+ <!-- />-->
47
+ <!-- TODO возможно вернем, НЕ УДАЛЯТЬ-->
48
+ <!-- <common-vm-actions-common-customize-hardware-vmoptions-remote-console-options-img-compression-->
49
+ <!-- v-if="remoteConsoleType === 'spice'"-->
50
+ <!-- v-models:img-compression="imgCompression"-->
51
+ <!-- :error-validation-fields="props.errorValidationFields"-->
52
+ <!-- :disabled="props.isDisabled"-->
53
+ <!-- @remove-error-by-title="emits('remove-error-by-title', $event)"-->
54
+ <!-- />-->
55
+ <!-- <common-vm-actions-common-customize-hardware-vmoptions-remote-console-options-jpeg-compression-->
56
+ <!-- v-if="remoteConsoleType === 'spice'"-->
57
+ <!-- v-models:jpeg-compression="jpegCompression"-->
58
+ <!-- :error-validation-fields="props.errorValidationFields"-->
59
+ <!-- :disabled="props.isDisabled"-->
60
+ <!-- @remove-error-by-title="emits('remove-error-by-title', $event)"-->
61
+ <!-- />-->
62
+ <!-- <common-vm-actions-common-customize-hardware-vmoptions-remote-console-options-zlib-compression-->
63
+ <!-- v-if="remoteConsoleType === 'spice'"-->
64
+ <!-- v-models:zlib-compression="zlibCompression"-->
65
+ <!-- :error-validation-fields="props.errorValidationFields"-->
66
+ <!-- :disabled="props.isDisabled"-->
67
+ <!-- @remove-error-by-title="emits('remove-error-by-title', $event)"-->
68
+ <!-- />-->
69
+ <!-- <common-vm-actions-common-customize-hardware-vmoptions-remote-console-options-playback-compression-->
70
+ <!-- v-if="remoteConsoleType === 'spice'"-->
71
+ <!-- :disabled="props.isDisabled"-->
72
+ <!-- v-models:playback-compression="playbackCompression"-->
73
+ <!-- />-->
74
+ <!-- <common-vm-actions-common-customize-hardware-vmoptions-remote-console-options-streaming-mode-->
75
+ <!-- v-if="remoteConsoleType === 'spice'"-->
76
+ <!-- v-models:streaming-mode="streamingMode"-->
77
+ <!-- :error-validation-fields="props.errorValidationFields"-->
78
+ <!-- :disabled="props.isDisabled"-->
79
+ <!-- @remove-error-by-title="emits('remove-error-by-title', $event)"-->
80
+ <!-- />-->
81
+ <common-vm-actions-common-customize-hardware-vmoptions-remote-console-options-copy-paste
82
+ v-if="remoteConsoleType === 'spice'"
83
+ v-model:copy-paste="copyPaste"
84
+ :disabled="props.isDisabled"
85
+ />
86
+ <!-- TODO возможно вернем, НЕ УДАЛЯТЬ-->
87
+ <!-- <common-vm-actions-common-customize-hardware-vmoptions-remote-console-options-mouse-mode-->
88
+ <!-- v-if="remoteConsoleType === 'spice'"-->
89
+ <!-- v-models:mouse-mode="mouseMode"-->
90
+ <!-- />-->
91
+ <common-vm-actions-common-customize-hardware-vmoptions-remote-console-options-file-transfer
92
+ v-if="remoteConsoleType === 'spice'"
93
+ v-model:file-transfer="fileTransfer"
94
+ :disabled="props.isDisabled"
95
+ />
96
+ <common-vm-actions-common-customize-hardware-vmoptions-remote-console-options-usb-redirection
97
+ v-if="remoteConsoleType === 'spice'"
98
+ v-model:usb-redirection="usbRedirection"
99
+ :disabled="props.isDisabled"
100
+ />
101
+ <!-- TODO 700-->
102
+ <!-- <common-vm-actions-common-customize-hardware-vmoptions-remote-console-options-folder-sharing-->
103
+ <!-- v-if="remoteConsoleType === 'spice'"-->
104
+ <!-- v-model:folder-sharing="folderSharing"-->
105
+ <!-- :disabled="props.isDisabled"-->
106
+ <!-- />-->
107
+ </template>
108
+ </atoms-stack-block>
109
+ </div>
110
+ </template>
111
+
112
+ <script setup lang="ts">
113
+ import type { UI_I_Localization } from '~/lib/models/interfaces'
114
+
115
+ const keymap = defineModel<string>('keymap', { required: true })
116
+ const password = defineModel<string>('password', { required: true })
117
+ const passwordIsValid = defineModel<boolean>('passwordIsValid', {
118
+ required: true,
119
+ })
120
+ const remoteConsoleType = defineModel<string>('remoteConsoleType', {
121
+ required: true,
122
+ })
123
+ const copyPaste = defineModel<boolean>('copyPaste', { required: true })
124
+ const fileTransfer = defineModel<boolean>('fileTransfer', { required: true })
125
+ const usbRedirection = defineModel<number>('usbRedirection', {
126
+ required: true,
127
+ })
128
+ // TODO 700
129
+ // const folderSharing = defineModel<boolean>('folderSharing', { required: true })
130
+
131
+ const props = defineProps<{
132
+ // TODO возможно вернем, НЕ УДАЛЯТЬ
133
+ // errorValidationFields: UI_I_ErrorValidationField<string>[]
134
+ remoteConsoleOptionsInvalid: boolean
135
+ isDisabled: boolean
136
+ }>()
137
+
138
+ const localization = computed<UI_I_Localization>(() => useLocal())
139
+ </script>
140
+
141
+ <style scoped lang="scss"></style>
@@ -1,74 +1,178 @@
1
- <template>
2
- <common-vm-actions-common-customize-hardware-vmoptions-remote-console-options-new
3
- v-if="isNewView"
4
- v-model="model"
5
- v-model:password-is-valid="passwordIsValid"
6
- :remote-console-options-invalid="remoteConsoleOptionsInvalid"
7
- :is-disabled="isDisabled"
8
- />
9
- <common-vm-actions-common-customize-hardware-vmoptions-remote-console-options-old
10
- v-else
11
- v-model="model"
12
- v-model:password-is-valid="passwordIsValid"
13
- :remote-console-options-invalid="remoteConsoleOptionsInvalid"
14
- :is-disabled="isDisabled"
15
- />
16
- </template>
17
-
18
- <script setup lang="ts">
19
- import type { UI_I_CreateVmData } from '~/components/common/vm/actions/common/lib/models/interfaces'
20
-
21
- const model = defineModel<UI_I_CreateVmData['options']['remote_console']>({ required: true })
22
-
23
- const props = withDefaults(
24
- defineProps<{
25
- isEdit: boolean
26
- // TODO возможно вернем, НЕ УДАЛЯТЬ
27
- // errorValidationFields: UI_I_ErrorValidationField<string>[]
28
- state?: string | number
29
- }>(),
30
- {
31
- state: undefined,
32
- }
33
- )
34
- const emits = defineEmits<{
35
- (event: 'invalid', value: boolean): void
36
- // TODO возможно вернем, НЕ УДАЛЯТЬ
37
- // (event: 'remove-error-by-title', value: string): void
38
- }>()
39
-
40
- const { $store }: any = useNuxtApp()
41
- const isNewView = computed<boolean>(() => $store.getters['main/getIsNewView'])
42
-
43
- const isDisabled = computed<boolean>(() => props.isEdit && props.state !== 1)
44
-
45
- // TODO возможно вернем, НЕ УДАЛЯТЬ
46
- // const changeRemoteConsoleType = (): void => {
47
- // // powerControl.value = false
48
- // // sharePolicy.value = 'allow-exclusive'
49
- // imgCompression.value = 'auto_glz'
50
- // jpegCompression.value = 'auto'
51
- // zlibCompression.value = 'auto'
52
- // playbackCompression.value = true
53
- // streamingMode.value = 'all'
54
- // model.spice.clipboard = true
55
- // mouseMode.value = 'client'
56
- // model.spice.file_transfer = true
57
- // model.spice.folder_sharing = true
58
- // }
59
-
60
- const passwordIsValid = ref<boolean>(true)
61
-
62
- const remoteConsoleOptionsInvalid = computed<boolean>(
63
- () => !passwordIsValid.value
64
- )
65
- watch(
66
- remoteConsoleOptionsInvalid,
67
- (newValue) => {
68
- emits('invalid', newValue)
69
- },
70
- { immediate: true }
71
- )
72
- </script>
73
-
74
- <style scoped lang="scss"></style>
1
+ <template>
2
+ <common-vm-actions-common-customize-hardware-vmoptions-remote-console-options-new
3
+ v-if="isNewView"
4
+ v-model:keymap="keymap"
5
+ v-model:password="password"
6
+ v-model:password-is-valid="passwordIsValid"
7
+ v-model:remote-console-type="remoteConsoleType"
8
+ v-model:copy-paste="copyPaste"
9
+ v-model:file-transfer="fileTransfer"
10
+ v-model:usb-redirection="usbRedirection"
11
+ v-model:folder-sharing="folderSharing"
12
+ :remote-console-options-invalid="remoteConsoleOptionsInvalid"
13
+ :is-disabled="isDisabled"
14
+ />
15
+ <common-vm-actions-common-customize-hardware-vmoptions-remote-console-options-old
16
+ v-else
17
+ v-model:keymap="keymap"
18
+ v-model:password="password"
19
+ v-model:password-is-valid="passwordIsValid"
20
+ v-model:remote-console-type="remoteConsoleType"
21
+ v-model:copy-paste="copyPaste"
22
+ v-model:file-transfer="fileTransfer"
23
+ v-model:usb-redirection="usbRedirection"
24
+ v-model:folder-sharing="folderSharing"
25
+ :remote-console-options-invalid="remoteConsoleOptionsInvalid"
26
+ :is-disabled="isDisabled"
27
+ />
28
+ </template>
29
+
30
+ <script setup lang="ts">
31
+ import type { UI_I_SendDataRemoteConsoleOptions } from '~/components/common/vm/actions/common/customizeHardware/vmoptions/lib/models/interfaces'
32
+
33
+ const props = withDefaults(
34
+ defineProps<{
35
+ isEdit: boolean
36
+ remoteConsoleOptions?: UI_I_SendDataRemoteConsoleOptions
37
+ // TODO возможно вернем, НЕ УДАЛЯТЬ
38
+ // errorValidationFields: UI_I_ErrorValidationField<string>[]
39
+ state?: string | number
40
+ }>(),
41
+ {
42
+ remoteConsoleOptions: undefined,
43
+ state: undefined,
44
+ }
45
+ )
46
+ const emits = defineEmits<{
47
+ (event: 'send-data', value: UI_I_SendDataRemoteConsoleOptions): void
48
+ (event: 'invalid', value: boolean): void
49
+ // TODO возможно вернем, НЕ УДАЛЯТЬ
50
+ // (event: 'remove-error-by-title', value: string): void
51
+ }>()
52
+
53
+ const { $store }: any = useNuxtApp()
54
+ const isNewView = computed<boolean>(() => $store.getters['main/getIsNewView'])
55
+
56
+ const isDisabled = computed<boolean>(() => props.isEdit && props.state !== 1)
57
+
58
+ const remoteConsoleType = ref<string>('spice')
59
+ // TODO возможно вернем, НЕ УДАЛЯТЬ
60
+ // const changeRemoteConsoleType = (): void => {
61
+ // // powerControl.value = false
62
+ // // sharePolicy.value = 'allow-exclusive'
63
+ // imgCompression.value = 'auto_glz'
64
+ // jpegCompression.value = 'auto'
65
+ // zlibCompression.value = 'auto'
66
+ // playbackCompression.value = true
67
+ // streamingMode.value = 'all'
68
+ // copyPaste.value = true
69
+ // mouseMode.value = 'client'
70
+ // fileTransfer.value = true
71
+ // usbRedirection.value = 3
72
+ // folderSharing.value = true
73
+ // }
74
+
75
+ const keymap = ref<string>('en_US')
76
+
77
+ const password = ref<string>('')
78
+ const passwordIsValid = ref<boolean>(true)
79
+
80
+ // const powerControl = ref<boolean>(false)
81
+
82
+ // const sharePolicy = ref<string>('allow-exclusive')
83
+
84
+ const imgCompression = ref<string>('auto_glz')
85
+
86
+ const jpegCompression = ref<string>('auto')
87
+
88
+ const zlibCompression = ref<string>('auto')
89
+
90
+ const playbackCompression = ref<boolean>(true)
91
+
92
+ const streamingMode = ref<string>('all')
93
+
94
+ const copyPaste = ref<boolean>(true)
95
+
96
+ const mouseMode = ref<string>('client')
97
+
98
+ const fileTransfer = ref<boolean>(true)
99
+
100
+ const usbRedirection = ref<number>(3)
101
+
102
+ const folderSharing = ref<boolean>(true)
103
+
104
+ watch(
105
+ [
106
+ remoteConsoleType,
107
+ keymap,
108
+ password,
109
+ // powerControl,
110
+ // sharePolicy,
111
+ imgCompression,
112
+ jpegCompression,
113
+ zlibCompression,
114
+ playbackCompression,
115
+ streamingMode,
116
+ copyPaste,
117
+ mouseMode,
118
+ fileTransfer,
119
+ usbRedirection,
120
+ folderSharing,
121
+ ],
122
+ () => {
123
+ emits('send-data', {
124
+ type: remoteConsoleType.value,
125
+ port: 0,
126
+ keymap: keymap.value,
127
+ password: password.value,
128
+ guest_os_lock: false,
129
+ limit_sessions: 0,
130
+ spice: {
131
+ img_compression: imgCompression.value,
132
+ jpeg_compression: jpegCompression.value,
133
+ zlib_glz_compression: zlibCompression.value,
134
+ streaming_mode: streamingMode.value,
135
+ playback_compression: playbackCompression.value,
136
+ file_transfer: fileTransfer.value,
137
+ clipboard: copyPaste.value,
138
+ },
139
+ })
140
+ },
141
+ { immediate: true }
142
+ )
143
+
144
+ // Добавляем данные для редактирования
145
+ watch(
146
+ () => props.remoteConsoleOptions,
147
+ (newValue) => {
148
+ if (!newValue || !props.remoteConsoleOptions) return
149
+
150
+ remoteConsoleType.value = props.remoteConsoleOptions.type
151
+ keymap.value = props.remoteConsoleOptions.keymap
152
+ password.value = props.remoteConsoleOptions.password
153
+ imgCompression.value = props.remoteConsoleOptions.spice.img_compression
154
+ jpegCompression.value = props.remoteConsoleOptions.spice.jpeg_compression
155
+ zlibCompression.value =
156
+ props.remoteConsoleOptions.spice.zlib_glz_compression
157
+ streamingMode.value = props.remoteConsoleOptions.spice.streaming_mode
158
+ playbackCompression.value =
159
+ props.remoteConsoleOptions.spice.playback_compression
160
+ fileTransfer.value = props.remoteConsoleOptions.spice.file_transfer
161
+ copyPaste.value = props.remoteConsoleOptions.spice.clipboard
162
+ },
163
+ { immediate: true }
164
+ )
165
+
166
+ const remoteConsoleOptionsInvalid = computed<boolean>(
167
+ () => !passwordIsValid.value
168
+ )
169
+ watch(
170
+ remoteConsoleOptionsInvalid,
171
+ (newValue) => {
172
+ emits('invalid', newValue)
173
+ },
174
+ { immediate: true }
175
+ )
176
+ </script>
177
+
178
+ <style scoped lang="scss"></style>
@@ -1,32 +1,32 @@
1
- <template>
2
- <common-vm-actions-common-customize-hardware-vmoptions-remote-console-options-keymap-new
3
- v-if="isNewView"
4
- v-model="model"
5
- :disabled="props.disabled"
6
- :keymap-options="keymapOptions"
7
- />
8
- <common-vm-actions-common-customize-hardware-vmoptions-remote-console-options-keymap-old
9
- v-else
10
- v-model="model"
11
- :disabled="props.disabled"
12
- :keymap-options="keymapOptions"
13
- />
14
- </template>
15
-
16
- <script setup lang="ts">
17
- import type { UI_I_OptionItem } from '~/components/atoms/lib/models/interfaces'
18
- import { keymapOptionsConfig } from '~/components/common/vm/actions/common/customizeHardware/vmoptions/remoteConsoleOptions/keymap/lib/config/config'
19
-
20
- const model = defineModel<string>({ required: true })
21
-
22
- const props = defineProps<{
23
- disabled: boolean
24
- }>()
25
-
26
- const { $store }: any = useNuxtApp()
27
- const isNewView = computed<boolean>(() => $store.getters['main/getIsNewView'])
28
-
29
- const keymapOptions = ref<UI_I_OptionItem[]>(keymapOptionsConfig)
30
- </script>
31
-
32
- <style scoped></style>
1
+ <template>
2
+ <common-vm-actions-common-customize-hardware-vmoptions-remote-console-options-keymap-new
3
+ v-if="isNewView"
4
+ v-model:keymap="keymap"
5
+ :disabled="props.disabled"
6
+ :keymap-options="keymapOptions"
7
+ />
8
+ <common-vm-actions-common-customize-hardware-vmoptions-remote-console-options-keymap-old
9
+ v-else
10
+ v-model:keymap="keymap"
11
+ :disabled="props.disabled"
12
+ :keymap-options="keymapOptions"
13
+ />
14
+ </template>
15
+
16
+ <script setup lang="ts">
17
+ import type { UI_I_OptionItem } from '~/components/atoms/lib/models/interfaces'
18
+ import { keymapOptionsConfig } from '~/components/common/vm/actions/common/customizeHardware/vmoptions/remoteConsoleOptions/keymap/lib/config/config'
19
+
20
+ const keymap = defineModel<string>('keymap', { required: true })
21
+
22
+ const props = defineProps<{
23
+ disabled: boolean
24
+ }>()
25
+
26
+ const { $store }: any = useNuxtApp()
27
+ const isNewView = computed<boolean>(() => $store.getters['main/getIsNewView'])
28
+
29
+ const keymapOptions = ref<UI_I_OptionItem[]>(keymapOptionsConfig)
30
+ </script>
31
+
32
+ <style scoped></style>