bfg-common 1.0.14 → 1.0.16

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/components/common/vm/actions/add/Add.vue +1 -1
  2. package/components/common/vm/actions/add/FolderTreeView.vue +1 -1
  3. package/components/common/vm/actions/add/customizeHardware/CustomizeHardware.vue +1 -1
  4. package/components/common/vm/actions/add/customizeHardware/virtualHardware/cpu/CoresPerSocket.vue +1 -1
  5. package/components/common/vm/actions/add/customizeHardware/virtualHardware/cpu/Cpu.vue +371 -368
  6. package/components/common/vm/actions/add/customizeHardware/virtualHardware/cpu/CpuModel.vue +2 -2
  7. package/components/common/vm/actions/add/customizeHardware/virtualHardware/cpu/MaxCpu.vue +105 -99
  8. package/components/common/vm/actions/add/customizeHardware/virtualHardware/cpu/shares/Shares.vue +155 -151
  9. package/components/common/vm/actions/add/customizeHardware/virtualHardware/limit/Limit.vue +214 -210
  10. package/components/common/vm/actions/add/customizeHardware/virtualHardware/memory/Memory.vue +282 -278
  11. package/components/common/vm/actions/add/customizeHardware/virtualHardware/newHardDisk/Location.vue +10 -10
  12. package/components/common/vm/actions/add/customizeHardware/virtualHardware/newHardDisk/NewHardDisk.vue +10 -6
  13. package/components/common/vm/actions/add/customizeHardware/virtualHardware/newHardDisk/cache/Cache.vue +1 -1
  14. package/components/common/vm/actions/add/customizeHardware/virtualHardware/newHardDisk/limitIops/LimitIops.vue +7 -3
  15. package/components/common/vm/actions/add/customizeHardware/virtualHardware/newHardDisk/provisioning/Provisioning.vue +2 -2
  16. package/components/common/vm/actions/add/customizeHardware/virtualHardware/newNetwork/Location.vue +1 -1
  17. package/components/common/vm/actions/add/customizeHardware/virtualHardware/newNetwork/NewNetwork.vue +256 -252
  18. package/components/common/vm/actions/add/customizeHardware/virtualHardware/newNetwork/adapterType/AdapterType.vue +1 -1
  19. package/components/common/vm/actions/add/customizeHardware/virtualHardware/newNetwork/macAddress/MacAddress.vue +6 -6
  20. package/components/common/vm/actions/add/customizeHardware/virtualHardware/newUsbController/NewUsbController.vue +3 -3
  21. package/components/common/vm/actions/add/customizeHardware/virtualHardware/reservation/Reservation.vue +231 -228
  22. package/components/common/vm/actions/add/customizeHardware/virtualHardware/videoCard/TotalVideoMemory.vue +1 -1
  23. package/components/common/vm/actions/add/customizeHardware/virtualHardware/videoCard/VideoCard.vue +173 -169
  24. package/components/common/vm/actions/add/customizeHardware/virtualHardware/videoCard/numberDisplays/NumberDisplays.vue +1 -1
  25. package/components/common/vm/actions/add/customizeHardware/vmoptions/Vmoptions.vue +145 -141
  26. package/components/common/vm/actions/add/customizeHardware/vmoptions/bootOptions/BootOptions.vue +1 -1
  27. package/components/common/vm/actions/add/customizeHardware/vmoptions/bootOptions/firmware/Firmware.vue +1 -1
  28. package/components/common/vm/actions/add/customizeHardware/vmoptions/remoteConsoleOptions/RemoteConsoleOptions.vue +230 -226
  29. package/components/common/vm/actions/add/customizeHardware/vmoptions/remoteConsoleOptions/imgCompression/ImgCompression.vue +1 -1
  30. package/components/common/vm/actions/add/customizeHardware/vmoptions/remoteConsoleOptions/jpegCompression/JpegCompression.vue +1 -1
  31. package/components/common/vm/actions/add/customizeHardware/vmoptions/remoteConsoleOptions/keymap/Keymap.vue +1 -1
  32. package/components/common/vm/actions/add/customizeHardware/vmoptions/remoteConsoleOptions/mouseMode/MouseMode.vue +1 -1
  33. package/components/common/vm/actions/add/customizeHardware/vmoptions/remoteConsoleOptions/streamingMode/StreamingMode.vue +1 -1
  34. package/components/common/vm/actions/add/customizeHardware/vmoptions/remoteConsoleOptions/type/Type.vue +1 -1
  35. package/components/common/vm/actions/add/customizeHardware/vmoptions/remoteConsoleOptions/zlibCompression/ZlibCompression.vue +1 -1
  36. package/components/common/vm/actions/add/select/compatibility/Compatibility.vue +6 -6
  37. package/components/common/vm/actions/add/select/os/os.vue +7 -7
  38. package/package.json +1 -1
@@ -1,226 +1,230 @@
1
- <template>
2
- <div class="hardware-cpu">
3
- <atoms-stack-block :has-children="true">
4
- <template #stackBlockKey>
5
- <div
6
- id="vm-wizard-toggle-block-remote-console"
7
- class="flex-align-center"
8
- >
9
- <span>{{ localization.remoteConsoleOptions }}</span>
10
- <atoms-the-icon
11
- v-show="remoteConsoleOptionsInvalid"
12
- width="24px"
13
- height="24px"
14
- class="is-error tooltip-trigger"
15
- name="info"
16
- />
17
- </div>
18
- </template>
19
- <template #stackChildren>
20
- <common-vm-actions-add-customize-hardware-vmoptions-remote-console-options-type
21
- v-model:remote-console-type="remoteConsoleType"
22
- :error-validation-fields="props.errorValidationFields"
23
- @input="changeRemoteConsoleType"
24
- @remove-error-by-title="emits('remove-error-by-title', $event)"
25
- />
26
- <common-vm-actions-add-customize-hardware-vmoptions-remote-console-options-keymap
27
- v-model:keymap="keymap"
28
- />
29
- <common-vm-actions-add-customize-hardware-vmoptions-remote-console-options-password
30
- v-model:password="password"
31
- @valid="passwordIsValid = $event"
32
- />
33
- <!-- <common-vm-actions-add-customize-hardware-vmoptions-remote-console-options-power-control-->
34
- <!-- v-if="remoteConsoleType === 'vnc'"-->
35
- <!-- v-model:power-control="powerControl"-->
36
- <!-- />-->
37
- <!-- <common-vm-actions-add-customize-hardware-vmoptions-remote-console-options-share-policy-->
38
- <!-- v-if="remoteConsoleType === 'vnc'"-->
39
- <!-- v-model:share-policy="sharePolicy"-->
40
- <!-- />-->
41
- <common-vm-actions-add-customize-hardware-vmoptions-remote-console-options-img-compression
42
- v-if="remoteConsoleType === 'spice'"
43
- v-model:img-compression="imgCompression"
44
- :error-validation-fields="props.errorValidationFields"
45
- @remove-error-by-title="emits('remove-error-by-title', $event)"
46
- />
47
- <common-vm-actions-add-customize-hardware-vmoptions-remote-console-options-jpeg-compression
48
- v-if="remoteConsoleType === 'spice'"
49
- v-model:jpeg-compression="jpegCompression"
50
- :error-validation-fields="props.errorValidationFields"
51
- @remove-error-by-title="emits('remove-error-by-title', $event)"
52
- />
53
- <common-vm-actions-add-customize-hardware-vmoptions-remote-console-options-zlib-compression
54
- v-if="remoteConsoleType === 'spice'"
55
- v-model:zlib-compression="zlibCompression"
56
- :error-validation-fields="props.errorValidationFields"
57
- @remove-error-by-title="emits('remove-error-by-title', $event)"
58
- />
59
- <common-vm-actions-add-customize-hardware-vmoptions-remote-console-options-playback-compression
60
- v-if="remoteConsoleType === 'spice'"
61
- v-model:playback-compression="playbackCompression"
62
- />
63
- <common-vm-actions-add-customize-hardware-vmoptions-remote-console-options-streaming-mode
64
- v-if="remoteConsoleType === 'spice'"
65
- v-model:streaming-mode="streamingMode"
66
- :error-validation-fields="props.errorValidationFields"
67
- @remove-error-by-title="emits('remove-error-by-title', $event)"
68
- />
69
- <common-vm-actions-add-customize-hardware-vmoptions-remote-console-options-copy-paste
70
- v-if="remoteConsoleType === 'spice'"
71
- v-model:copy-paste="copyPaste"
72
- />
73
- <common-vm-actions-add-customize-hardware-vmoptions-remote-console-options-mouse-mode
74
- v-if="remoteConsoleType === 'spice'"
75
- v-model:mouse-mode="mouseMode"
76
- />
77
- <common-vm-actions-add-customize-hardware-vmoptions-remote-console-options-file-transfer
78
- v-if="remoteConsoleType === 'spice'"
79
- v-model:file-transfer="fileTransfer"
80
- />
81
- <common-vm-actions-add-customize-hardware-vmoptions-remote-console-options-usb-redirection
82
- v-if="remoteConsoleType === 'spice'"
83
- v-model:usb-redirection="usbRedirection"
84
- />
85
- <common-vm-actions-add-customize-hardware-vmoptions-remote-console-options-folder-sharing
86
- v-if="remoteConsoleType === 'spice'"
87
- v-model:folder-sharing="folderSharing"
88
- />
89
- </template>
90
- </atoms-stack-block>
91
- </div>
92
- </template>
93
-
94
- <script setup lang="ts">
95
- import { UI_I_SendDataRemoteConsoleOptions } from '~/components/common/vm/actions/add/customizeHardware/vmoptions/models/interfaces'
96
- import { UI_I_Localization } from '~/models/interfaces'
97
- import { UI_I_ErrorValidationField } from '~/models/store/interfaces'
98
-
99
- const props = defineProps<{
100
- remoteConsoleOptions?: UI_I_SendDataRemoteConsoleOptions
101
- errorValidationFields: UI_I_ErrorValidationField<string>[]
102
- }>()
103
- const emits = defineEmits<{
104
- (event: 'send-data', value: UI_I_SendDataRemoteConsoleOptions): void
105
- (event: 'invalid', value: boolean): void
106
- (event: 'remove-error-by-title', value: string): void
107
- }>()
108
-
109
- const localization = computed<UI_I_Localization>(() => useLocal())
110
-
111
- const remoteConsoleType = ref<string>('spice')
112
- const changeRemoteConsoleType = (): void => {
113
- // powerControl.value = false
114
- // sharePolicy.value = 'allow-exclusive'
115
- imgCompression.value = 'auto_glz'
116
- jpegCompression.value = 'auto'
117
- zlibCompression.value = 'auto'
118
- playbackCompression.value = true
119
- streamingMode.value = 'all'
120
- copyPaste.value = true
121
- mouseMode.value = 'client'
122
- fileTransfer.value = true
123
- usbRedirection.value = 3
124
- folderSharing.value = true
125
- }
126
-
127
- const keymap = ref<string>('en_US')
128
-
129
- const password = ref<string>('')
130
- const passwordIsValid = ref<boolean>(true)
131
-
132
- // const powerControl = ref<boolean>(false)
133
-
134
- // const sharePolicy = ref<string>('allow-exclusive')
135
-
136
- const imgCompression = ref<string>('auto_glz')
137
-
138
- const jpegCompression = ref<string>('auto')
139
-
140
- const zlibCompression = ref<string>('auto')
141
-
142
- const playbackCompression = ref<boolean>(true)
143
-
144
- const streamingMode = ref<string>('all')
145
-
146
- const copyPaste = ref<boolean>(true)
147
-
148
- const mouseMode = ref<string>('client')
149
-
150
- const fileTransfer = ref<boolean>(true)
151
-
152
- const usbRedirection = ref<number>(3)
153
-
154
- const folderSharing = ref<boolean>(true)
155
-
156
- watch(
157
- [
158
- remoteConsoleType,
159
- keymap,
160
- password,
161
- // powerControl,
162
- // sharePolicy,
163
- imgCompression,
164
- jpegCompression,
165
- zlibCompression,
166
- playbackCompression,
167
- streamingMode,
168
- copyPaste,
169
- mouseMode,
170
- fileTransfer,
171
- usbRedirection,
172
- folderSharing,
173
- ],
174
- () => {
175
- emits('send-data', {
176
- type: remoteConsoleType.value,
177
- port: 0,
178
- keymap: keymap.value,
179
- password: password.value,
180
- guest_os_lock: false,
181
- limit_sessions: 0,
182
- spice: {
183
- img_compression: imgCompression.value,
184
- jpeg_compression: jpegCompression.value,
185
- zlib_glz_compression: zlibCompression.value,
186
- streaming_mode: streamingMode.value,
187
- playback_compression: playbackCompression.value,
188
- file_transfer: fileTransfer.value,
189
- clipboard: copyPaste.value,
190
- },
191
- })
192
- },
193
- { immediate: true }
194
- )
195
-
196
- // Добавляем данные для редактирования
197
- watch(
198
- () => props.remoteConsoleOptions,
199
- (newValue) => {
200
- if (!newValue || !props.remoteConsoleOptions) return
201
-
202
- remoteConsoleType.value = props.remoteConsoleOptions.type
203
- keymap.value = props.remoteConsoleOptions.keymap
204
- password.value = props.remoteConsoleOptions.password
205
- imgCompression.value = props.remoteConsoleOptions.spice.img_compression
206
- jpegCompression.value = props.remoteConsoleOptions.spice.jpeg_compression
207
- zlibCompression.value =
208
- props.remoteConsoleOptions.spice.zlib_glz_compression
209
- streamingMode.value = props.remoteConsoleOptions.spice.streaming_mode
210
- playbackCompression.value =
211
- props.remoteConsoleOptions.spice.playback_compression
212
- fileTransfer.value = props.remoteConsoleOptions.spice.file_transfer
213
- copyPaste.value = props.remoteConsoleOptions.spice.clipboard
214
- },
215
- { immediate: true }
216
- )
217
-
218
- const remoteConsoleOptionsInvalid = computed<boolean>(
219
- () => !passwordIsValid.value
220
- )
221
- watch(remoteConsoleOptionsInvalid, (val) => {
222
- emits('invalid', val)
223
- })
224
- </script>
225
-
226
- <style scoped lang="scss"></style>
1
+ <template>
2
+ <div class="hardware-cpu">
3
+ <atoms-stack-block :has-children="true">
4
+ <template #stackBlockKey>
5
+ <div
6
+ id="vm-wizard-toggle-block-remote-console"
7
+ class="flex-align-center"
8
+ >
9
+ <span>{{ localization.remoteConsoleOptions }}</span>
10
+ <atoms-the-icon
11
+ v-show="remoteConsoleOptionsInvalid"
12
+ width="24px"
13
+ height="24px"
14
+ class="is-error tooltip-trigger"
15
+ name="info"
16
+ />
17
+ </div>
18
+ </template>
19
+ <template #stackChildren>
20
+ <common-vm-actions-add-customize-hardware-vmoptions-remote-console-options-type
21
+ v-model:remote-console-type="remoteConsoleType"
22
+ :error-validation-fields="props.errorValidationFields"
23
+ @input="changeRemoteConsoleType"
24
+ @remove-error-by-title="emits('remove-error-by-title', $event)"
25
+ />
26
+ <common-vm-actions-add-customize-hardware-vmoptions-remote-console-options-keymap
27
+ v-model:keymap="keymap"
28
+ />
29
+ <common-vm-actions-add-customize-hardware-vmoptions-remote-console-options-password
30
+ v-model:password="password"
31
+ @valid="passwordIsValid = $event"
32
+ />
33
+ <!-- <common-vm-actions-add-customize-hardware-vmoptions-remote-console-options-power-control-->
34
+ <!-- v-if="remoteConsoleType === 'vnc'"-->
35
+ <!-- v-model:power-control="powerControl"-->
36
+ <!-- />-->
37
+ <!-- <common-vm-actions-add-customize-hardware-vmoptions-remote-console-options-share-policy-->
38
+ <!-- v-if="remoteConsoleType === 'vnc'"-->
39
+ <!-- v-model:share-policy="sharePolicy"-->
40
+ <!-- />-->
41
+ <common-vm-actions-add-customize-hardware-vmoptions-remote-console-options-img-compression
42
+ v-if="remoteConsoleType === 'spice'"
43
+ v-model:img-compression="imgCompression"
44
+ :error-validation-fields="props.errorValidationFields"
45
+ @remove-error-by-title="emits('remove-error-by-title', $event)"
46
+ />
47
+ <common-vm-actions-add-customize-hardware-vmoptions-remote-console-options-jpeg-compression
48
+ v-if="remoteConsoleType === 'spice'"
49
+ v-model:jpeg-compression="jpegCompression"
50
+ :error-validation-fields="props.errorValidationFields"
51
+ @remove-error-by-title="emits('remove-error-by-title', $event)"
52
+ />
53
+ <common-vm-actions-add-customize-hardware-vmoptions-remote-console-options-zlib-compression
54
+ v-if="remoteConsoleType === 'spice'"
55
+ v-model:zlib-compression="zlibCompression"
56
+ :error-validation-fields="props.errorValidationFields"
57
+ @remove-error-by-title="emits('remove-error-by-title', $event)"
58
+ />
59
+ <common-vm-actions-add-customize-hardware-vmoptions-remote-console-options-playback-compression
60
+ v-if="remoteConsoleType === 'spice'"
61
+ v-model:playback-compression="playbackCompression"
62
+ />
63
+ <common-vm-actions-add-customize-hardware-vmoptions-remote-console-options-streaming-mode
64
+ v-if="remoteConsoleType === 'spice'"
65
+ v-model:streaming-mode="streamingMode"
66
+ :error-validation-fields="props.errorValidationFields"
67
+ @remove-error-by-title="emits('remove-error-by-title', $event)"
68
+ />
69
+ <common-vm-actions-add-customize-hardware-vmoptions-remote-console-options-copy-paste
70
+ v-if="remoteConsoleType === 'spice'"
71
+ v-model:copy-paste="copyPaste"
72
+ />
73
+ <common-vm-actions-add-customize-hardware-vmoptions-remote-console-options-mouse-mode
74
+ v-if="remoteConsoleType === 'spice'"
75
+ v-model:mouse-mode="mouseMode"
76
+ />
77
+ <common-vm-actions-add-customize-hardware-vmoptions-remote-console-options-file-transfer
78
+ v-if="remoteConsoleType === 'spice'"
79
+ v-model:file-transfer="fileTransfer"
80
+ />
81
+ <common-vm-actions-add-customize-hardware-vmoptions-remote-console-options-usb-redirection
82
+ v-if="remoteConsoleType === 'spice'"
83
+ v-model:usb-redirection="usbRedirection"
84
+ />
85
+ <common-vm-actions-add-customize-hardware-vmoptions-remote-console-options-folder-sharing
86
+ v-if="remoteConsoleType === 'spice'"
87
+ v-model:folder-sharing="folderSharing"
88
+ />
89
+ </template>
90
+ </atoms-stack-block>
91
+ </div>
92
+ </template>
93
+
94
+ <script setup lang="ts">
95
+ import { UI_I_SendDataRemoteConsoleOptions } from '~/components/common/vm/actions/add/customizeHardware/vmoptions/models/interfaces'
96
+ import { UI_I_Localization } from '~/models/interfaces'
97
+ import { UI_I_ErrorValidationField } from '~/models/store/interfaces'
98
+
99
+ const props = defineProps<{
100
+ remoteConsoleOptions?: UI_I_SendDataRemoteConsoleOptions
101
+ errorValidationFields: UI_I_ErrorValidationField<string>[]
102
+ }>()
103
+ const emits = defineEmits<{
104
+ (event: 'send-data', value: UI_I_SendDataRemoteConsoleOptions): void
105
+ (event: 'invalid', value: boolean): void
106
+ (event: 'remove-error-by-title', value: string): void
107
+ }>()
108
+
109
+ const localization = computed<UI_I_Localization>(() => useLocal())
110
+
111
+ const remoteConsoleType = ref<string>('spice')
112
+ const changeRemoteConsoleType = (): void => {
113
+ // powerControl.value = false
114
+ // sharePolicy.value = 'allow-exclusive'
115
+ imgCompression.value = 'auto_glz'
116
+ jpegCompression.value = 'auto'
117
+ zlibCompression.value = 'auto'
118
+ playbackCompression.value = true
119
+ streamingMode.value = 'all'
120
+ copyPaste.value = true
121
+ mouseMode.value = 'client'
122
+ fileTransfer.value = true
123
+ usbRedirection.value = 3
124
+ folderSharing.value = true
125
+ }
126
+
127
+ const keymap = ref<string>('en_US')
128
+
129
+ const password = ref<string>('')
130
+ const passwordIsValid = ref<boolean>(true)
131
+
132
+ // const powerControl = ref<boolean>(false)
133
+
134
+ // const sharePolicy = ref<string>('allow-exclusive')
135
+
136
+ const imgCompression = ref<string>('auto_glz')
137
+
138
+ const jpegCompression = ref<string>('auto')
139
+
140
+ const zlibCompression = ref<string>('auto')
141
+
142
+ const playbackCompression = ref<boolean>(true)
143
+
144
+ const streamingMode = ref<string>('all')
145
+
146
+ const copyPaste = ref<boolean>(true)
147
+
148
+ const mouseMode = ref<string>('client')
149
+
150
+ const fileTransfer = ref<boolean>(true)
151
+
152
+ const usbRedirection = ref<number>(3)
153
+
154
+ const folderSharing = ref<boolean>(true)
155
+
156
+ watch(
157
+ [
158
+ remoteConsoleType,
159
+ keymap,
160
+ password,
161
+ // powerControl,
162
+ // sharePolicy,
163
+ imgCompression,
164
+ jpegCompression,
165
+ zlibCompression,
166
+ playbackCompression,
167
+ streamingMode,
168
+ copyPaste,
169
+ mouseMode,
170
+ fileTransfer,
171
+ usbRedirection,
172
+ folderSharing,
173
+ ],
174
+ () => {
175
+ emits('send-data', {
176
+ type: remoteConsoleType.value,
177
+ port: 0,
178
+ keymap: keymap.value,
179
+ password: password.value,
180
+ guest_os_lock: false,
181
+ limit_sessions: 0,
182
+ spice: {
183
+ img_compression: imgCompression.value,
184
+ jpeg_compression: jpegCompression.value,
185
+ zlib_glz_compression: zlibCompression.value,
186
+ streaming_mode: streamingMode.value,
187
+ playback_compression: playbackCompression.value,
188
+ file_transfer: fileTransfer.value,
189
+ clipboard: copyPaste.value,
190
+ },
191
+ })
192
+ },
193
+ { immediate: true }
194
+ )
195
+
196
+ // Добавляем данные для редактирования
197
+ watch(
198
+ () => props.remoteConsoleOptions,
199
+ (newValue) => {
200
+ if (!newValue || !props.remoteConsoleOptions) return
201
+
202
+ remoteConsoleType.value = props.remoteConsoleOptions.type
203
+ keymap.value = props.remoteConsoleOptions.keymap
204
+ password.value = props.remoteConsoleOptions.password
205
+ imgCompression.value = props.remoteConsoleOptions.spice.img_compression
206
+ jpegCompression.value = props.remoteConsoleOptions.spice.jpeg_compression
207
+ zlibCompression.value =
208
+ props.remoteConsoleOptions.spice.zlib_glz_compression
209
+ streamingMode.value = props.remoteConsoleOptions.spice.streaming_mode
210
+ playbackCompression.value =
211
+ props.remoteConsoleOptions.spice.playback_compression
212
+ fileTransfer.value = props.remoteConsoleOptions.spice.file_transfer
213
+ copyPaste.value = props.remoteConsoleOptions.spice.clipboard
214
+ },
215
+ { immediate: true }
216
+ )
217
+
218
+ const remoteConsoleOptionsInvalid = computed<boolean>(
219
+ () => !passwordIsValid.value
220
+ )
221
+ watch(
222
+ remoteConsoleOptionsInvalid,
223
+ (newValue) => {
224
+ emits('invalid', newValue)
225
+ },
226
+ { immediate: true }
227
+ )
228
+ </script>
229
+
230
+ <style scoped lang="scss"></style>
@@ -45,7 +45,7 @@ const localization = computed<UI_I_Localization>(() => useLocal())
45
45
 
46
46
  const props = defineProps<{
47
47
  imgCompression: string
48
- errorValidationFields: UI_I_ErrorValidationField<string>[]
48
+ errorValidationFields: UI_I_ErrorValidationField[]
49
49
  }>()
50
50
  const emits = defineEmits<{
51
51
  (event: 'update:img-compression', value: string): void
@@ -45,7 +45,7 @@ const localization = computed<UI_I_Localization>(() => useLocal())
45
45
 
46
46
  const props = defineProps<{
47
47
  jpegCompression: string
48
- errorValidationFields: UI_I_ErrorValidationField<string>[]
48
+ errorValidationFields: UI_I_ErrorValidationField[]
49
49
  }>()
50
50
  const emits = defineEmits<{
51
51
  (event: 'update:jpeg-compression', value: string): void
@@ -32,7 +32,7 @@ const props = defineProps<{
32
32
  keymap: string
33
33
  }>()
34
34
  const emits = defineEmits<{
35
- (event: 'update:keymap', str: string): void
35
+ (event: 'update:keymap', value: string): void
36
36
  }>()
37
37
 
38
38
  const keymapOptions = ref<UI_I_OptionItem[]>(keymapOptionsConfig)
@@ -32,7 +32,7 @@ const props = defineProps<{
32
32
  mouseMode: string
33
33
  }>()
34
34
  const emits = defineEmits<{
35
- (event: 'update:mouse-mode', str: string): void
35
+ (event: 'update:mouse-mode', value: string): void
36
36
  }>()
37
37
 
38
38
  const mouseModeOptions = ref<UI_I_OptionItem[]>(
@@ -45,7 +45,7 @@ const localization = computed<UI_I_Localization>(() => useLocal())
45
45
 
46
46
  const props = defineProps<{
47
47
  streamingMode: string
48
- errorValidationFields: UI_I_ErrorValidationField<string>[]
48
+ errorValidationFields: UI_I_ErrorValidationField[]
49
49
  }>()
50
50
  const emits = defineEmits<{
51
51
  (event: 'update:streaming-mode', value: string): void
@@ -45,7 +45,7 @@ const localization = computed<UI_I_Localization>(() => useLocal())
45
45
 
46
46
  const props = defineProps<{
47
47
  remoteConsoleType: string
48
- errorValidationFields: UI_I_ErrorValidationField<string>[]
48
+ errorValidationFields: UI_I_ErrorValidationField[]
49
49
  }>()
50
50
  const emits = defineEmits<{
51
51
  (event: 'update:remote-console-type', value: string): void
@@ -45,7 +45,7 @@ const localization = computed<UI_I_Localization>(() => useLocal())
45
45
 
46
46
  const props = defineProps<{
47
47
  zlibCompression: string
48
- errorValidationFields: UI_I_ErrorValidationField<string>[]
48
+ errorValidationFields: UI_I_ErrorValidationField[]
49
49
  }>()
50
50
  const emits = defineEmits<{
51
51
  (event: 'update:zlib-compression', value: string): void
@@ -75,9 +75,9 @@ const versions = ref<UI_I_OptionItem[]>(props.options)
75
75
  const selectedVersion = ref<UI_I_OptionItem | null>(null)
76
76
  watch(
77
77
  () => props.options,
78
- (val) => {
79
- versions.value = [...val]
80
- selectedVersion.value = val[0]
78
+ (newValue) => {
79
+ versions.value = [...newValue]
80
+ selectedVersion.value = newValue[0]
81
81
  },
82
82
  { immediate: true }
83
83
  )
@@ -101,9 +101,9 @@ const versionDescription = computed<string>(() => {
101
101
 
102
102
  watch(
103
103
  selectedVersion,
104
- (val) => {
105
- if (!val) return
106
- emits('change', val)
104
+ (newValue) => {
105
+ if (!newValue) return
106
+ emits('change', newValue)
107
107
  },
108
108
  { immediate: true }
109
109
  )
@@ -97,7 +97,7 @@ const props = defineProps<{
97
97
  familiesOptions: UI_I_OptionItem[]
98
98
  machineTypesOptions: UI_I_OptionItem[]
99
99
  versionsOptions: UI_I_ArbitraryObject<UI_I_OptionItem[]>
100
- errorValidationFields: UI_I_ErrorValidationField<string>[]
100
+ errorValidationFields: UI_I_ErrorValidationField[]
101
101
  }>()
102
102
  const emits = defineEmits<{
103
103
  (event: 'change', value: UI_I_OsChange): void
@@ -109,9 +109,9 @@ const machineTypeOptions = ref<UI_I_OptionItem[]>(props.machineTypesOptions)
109
109
  const selectedMachineType = ref<UI_I_OptionItem | null>(null)
110
110
  watch(
111
111
  () => props.machineTypesOptions,
112
- (val) => {
113
- machineTypeOptions.value = [...val]
114
- selectedMachineType.value = val[0]
112
+ (newValue) => {
113
+ machineTypeOptions.value = [...newValue]
114
+ selectedMachineType.value = newValue[0]
115
115
  },
116
116
  { immediate: true }
117
117
  )
@@ -120,9 +120,9 @@ const osOptions = ref<UI_I_OptionItem[]>(props.familiesOptions)
120
120
  const selectedOS = ref<UI_I_OptionItem | null>(null)
121
121
  watch(
122
122
  () => props.familiesOptions,
123
- (val) => {
124
- osOptions.value = [...val]
125
- selectedOS.value = val[0]
123
+ (newValue) => {
124
+ osOptions.value = [...newValue]
125
+ selectedOS.value = newValue[0]
126
126
  },
127
127
  { immediate: true }
128
128
  )
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "bfg-common",
3
3
  "private": false,
4
- "version": "1.0.14",
4
+ "version": "1.0.16",
5
5
  "scripts": {
6
6
  "build": "nuxt build",
7
7
  "dev": "nuxt dev --port=3002",