bfg-common 1.5.293 → 1.5.295

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 (27) hide show
  1. package/assets/localization/local_en.json +1 -1
  2. package/components/common/vm/actions/common/customizeHardware/virtualHardware/cdDvdDrive/CdDvdDriveNew.vue +3 -3
  3. package/components/common/vm/actions/common/customizeHardware/virtualHardware/cpu/model/ModelNew.vue +27 -24
  4. package/components/common/vm/actions/common/customizeHardware/virtualHardware/newHardDisk/NewHardDiskNew.vue +3 -3
  5. package/components/common/vm/actions/common/customizeHardware/virtualHardware/newHardDisk/file/FileNew.vue +1 -1
  6. package/components/common/vm/actions/common/customizeHardware/virtualHardware/newHardDisk/maximumSize/MaximumSizeNew.vue +6 -0
  7. package/components/common/vm/actions/common/customizeHardware/virtualHardware/newNetwork/macAddress/MacAddressNew.vue +1 -1
  8. package/components/common/vm/actions/common/customizeHardware/virtualHardware/other/inputDevices/InputDevicesNew.vue +45 -40
  9. package/components/common/vm/actions/common/customizeHardware/virtualHardware/videoCard/numberDisplays/NumberDisplaysNew.vue +1 -1
  10. package/components/common/vm/actions/common/customizeHardware/vmoptions/Vmoptions.vue +152 -147
  11. package/components/common/vm/actions/common/customizeHardware/vmoptions/VmoptionsNew.vue +128 -122
  12. package/components/common/vm/actions/common/customizeHardware/vmoptions/VmoptionsOld.vue +111 -97
  13. package/components/common/vm/actions/common/customizeHardware/vmoptions/bootOptions/delay/DelayNew.vue +1 -1
  14. package/components/common/vm/actions/common/customizeHardware/vmoptions/bootOptions/firmware/FirmwareNew.vue +1 -1
  15. package/components/common/vm/actions/common/customizeHardware/vmoptions/bootOptions/menu/MenuNew.vue +1 -1
  16. package/components/common/vm/actions/common/customizeHardware/vmoptions/generalOptions/GeneralOptions.vue +83 -77
  17. package/components/common/vm/actions/common/customizeHardware/vmoptions/generalOptions/GeneralOptionsNew.vue +11 -6
  18. package/components/common/vm/actions/common/customizeHardware/vmoptions/generalOptions/GeneralOptionsOld.vue +154 -143
  19. package/components/common/vm/actions/common/customizeHardware/vmoptions/remoteConsoleOptions/copyPaste/CopyPasteNew.vue +31 -31
  20. package/components/common/vm/actions/common/customizeHardware/vmoptions/remoteConsoleOptions/fileTransfer/FileTransferNew.vue +31 -31
  21. package/components/common/vm/actions/common/customizeHardware/vmoptions/remoteConsoleOptions/folderSharing/FolderSharingNew.vue +1 -1
  22. package/components/common/vm/actions/common/customizeHardware/vmoptions/remoteConsoleOptions/keymap/KeymapNew.vue +1 -1
  23. package/components/common/vm/actions/common/customizeHardware/vmoptions/remoteConsoleOptions/keymap/KeymapOld.vue +44 -43
  24. package/components/common/vm/actions/common/customizeHardware/vmoptions/remoteConsoleOptions/password/PasswordNew.vue +128 -128
  25. package/components/common/vm/actions/common/customizeHardware/vmoptions/remoteConsoleOptions/usbRedirection/UsbRedirectionNew.vue +1 -1
  26. package/components/common/vm/actions/common/customizeHardware/vmoptions/tools/ToolsNew.vue +1 -1
  27. package/package.json +2 -2
@@ -1,128 +1,128 @@
1
- <template>
2
- <ui-stack-block :has-children="false">
3
- <template #stackBlockKey>
4
- {{ localization.auth.password }}
5
- </template>
6
- <template #stackBlockContent>
7
- <div class="password-content">
8
- <ui-checkbox
9
- id="enable-password"
10
- v-model="isEnabledPassword"
11
- :disabled="props.disabled"
12
- :label-text="localization.common.enable"
13
- test-id="enable-password-input"
14
- size="md"
15
- class="mr-2"
16
- @change="emits('set-password-disable')"
17
- />
18
-
19
- <ui-input-with-tooltip
20
- id="password-input"
21
- v-model="form.password.value"
22
- :class="[{ 'has-error': !!props.errorText }]"
23
- :disabled="!isEnabledPassword || props.disabled"
24
- :error-text="props.errorText"
25
- test-id="password-input"
26
- type="text"
27
- size="sm"
28
- @change="onChangePassword"
29
- >
30
- <template #icon>
31
- <div
32
- :class="[
33
- 'copy-icon pointer',
34
- { disabled: !isEnabledPassword || props.disabled },
35
- ]"
36
- @click="onCopyToClipboard"
37
- >
38
- <ui-icon
39
- name="copy-to-clipboard"
40
- type="input"
41
- width="16"
42
- height="16"
43
- />
44
- </div>
45
- </template>
46
- </ui-input-with-tooltip>
47
-
48
- <ui-button
49
- id="generate-password-button"
50
- :disabled="!isEnabledPassword || props.disabled"
51
- :title="localization.common.generatePassword"
52
- test-id="generate-password-button"
53
- class="generate-password-button"
54
- @click="emits('generate-password')"
55
- >
56
- <ui-icon
57
- name="key"
58
- width="16"
59
- height="16"
60
- class="generate-password-icon"
61
- />
62
- </ui-button>
63
- </div>
64
- </template>
65
- </ui-stack-block>
66
- </template>
67
-
68
- <script setup lang="ts">
69
- import type { UI_I_DefaultForm } from '~/components/common/vm/actions/common/customizeHardware/vmoptions/remoteConsoleOptions/password/lib/models/interfaces'
70
- import type { UI_I_Localization } from '~/lib/models/interfaces'
71
-
72
- const isEnabledPassword = defineModel<boolean>('isEnabledPassword', {
73
- required: true,
74
- })
75
- const form = defineModel<UI_I_DefaultForm>('form', { required: true })
76
-
77
- const props = defineProps<{
78
- disabled: boolean
79
- errorText: string
80
- }>()
81
- const emits = defineEmits<{
82
- (event: 'set-password-disable'): void
83
- (event: 'change-password', value: string): void
84
- (event: 'generate-password'): void
85
- }>()
86
-
87
- const localization = computed<UI_I_Localization>(() => useLocal())
88
-
89
- const onChangePassword = (): void => {
90
- emits('change-password', form.value.password.value)
91
- }
92
-
93
- const onCopyToClipboard = (): void => {
94
- navigator.clipboard.writeText(form.value.password.value)
95
- }
96
- </script>
97
-
98
- <style scoped>
99
- .password-content {
100
- display: grid;
101
- grid-template-columns: max-content 144px max-content;
102
- grid-gap: 8px;
103
-
104
- .copy-icon {
105
- color: #9da6ad;
106
-
107
- &.disabled {
108
- color: #bdc3c770;
109
- }
110
- }
111
- .generate-password-button {
112
- padding: 8px;
113
-
114
- &:disabled {
115
- .generate-password-icon {
116
- color: #e9eaec;
117
- }
118
- }
119
- }
120
- }
121
-
122
- :deep(.ui-main.ui-main-sm .ui-main-input) {
123
- height: 32px;
124
- }
125
- :deep(.ui-main.ui-main-sm .ui-slot-icon-content) {
126
- pointer-events: unset;
127
- }
128
- </style>
1
+ <template>
2
+ <ui-stack-block :has-children="false">
3
+ <template #stackBlockKey>
4
+ <span class="mt-2">{{ localization.auth.password }}</span>
5
+ </template>
6
+ <template #stackBlockContent>
7
+ <div class="password-content">
8
+ <ui-checkbox
9
+ id="enable-password"
10
+ v-model="isEnabledPassword"
11
+ :disabled="props.disabled"
12
+ :label-text="localization.common.enable"
13
+ test-id="enable-password-input"
14
+ size="md"
15
+ class="mr-2"
16
+ @change="emits('set-password-disable')"
17
+ />
18
+
19
+ <ui-input-with-tooltip
20
+ id="password-input"
21
+ v-model="form.password.value"
22
+ :class="[{ 'has-error': !!props.errorText }]"
23
+ :disabled="!isEnabledPassword || props.disabled"
24
+ :error-text="props.errorText"
25
+ test-id="password-input"
26
+ type="text"
27
+ size="sm"
28
+ @change="onChangePassword"
29
+ >
30
+ <template #icon>
31
+ <div
32
+ :class="[
33
+ 'copy-icon pointer',
34
+ { disabled: !isEnabledPassword || props.disabled },
35
+ ]"
36
+ @click="onCopyToClipboard"
37
+ >
38
+ <ui-icon
39
+ name="copy-to-clipboard"
40
+ type="input"
41
+ width="16"
42
+ height="16"
43
+ />
44
+ </div>
45
+ </template>
46
+ </ui-input-with-tooltip>
47
+
48
+ <ui-button
49
+ id="generate-password-button"
50
+ :disabled="!isEnabledPassword || props.disabled"
51
+ :title="localization.common.generatePassword"
52
+ test-id="generate-password-button"
53
+ class="generate-password-button"
54
+ @click="emits('generate-password')"
55
+ >
56
+ <ui-icon
57
+ name="key"
58
+ width="16"
59
+ height="16"
60
+ class="generate-password-icon"
61
+ />
62
+ </ui-button>
63
+ </div>
64
+ </template>
65
+ </ui-stack-block>
66
+ </template>
67
+
68
+ <script setup lang="ts">
69
+ import type { UI_I_DefaultForm } from '~/components/common/vm/actions/common/customizeHardware/vmoptions/remoteConsoleOptions/password/lib/models/interfaces'
70
+ import type { UI_I_Localization } from '~/lib/models/interfaces'
71
+
72
+ const isEnabledPassword = defineModel<boolean>('isEnabledPassword', {
73
+ required: true,
74
+ })
75
+ const form = defineModel<UI_I_DefaultForm>('form', { required: true })
76
+
77
+ const props = defineProps<{
78
+ disabled: boolean
79
+ errorText: string
80
+ }>()
81
+ const emits = defineEmits<{
82
+ (event: 'set-password-disable'): void
83
+ (event: 'change-password', value: string): void
84
+ (event: 'generate-password'): void
85
+ }>()
86
+
87
+ const localization = computed<UI_I_Localization>(() => useLocal())
88
+
89
+ const onChangePassword = (): void => {
90
+ emits('change-password', form.value.password.value)
91
+ }
92
+
93
+ const onCopyToClipboard = (): void => {
94
+ navigator.clipboard.writeText(form.value.password.value)
95
+ }
96
+ </script>
97
+
98
+ <style scoped>
99
+ .password-content {
100
+ display: grid;
101
+ grid-template-columns: max-content 144px max-content;
102
+ grid-gap: 8px;
103
+
104
+ .copy-icon {
105
+ color: #9da6ad;
106
+
107
+ &.disabled {
108
+ color: #bdc3c770;
109
+ }
110
+ }
111
+ .generate-password-button {
112
+ padding: 8px;
113
+
114
+ &:disabled {
115
+ .generate-password-icon {
116
+ color: #e9eaec;
117
+ }
118
+ }
119
+ }
120
+ }
121
+
122
+ :deep(.ui-main.ui-main-sm .ui-main-input) {
123
+ height: 32px;
124
+ }
125
+ :deep(.ui-main.ui-main-sm .ui-slot-icon-content) {
126
+ pointer-events: unset;
127
+ }
128
+ </style>
@@ -1,7 +1,7 @@
1
1
  <template>
2
2
  <ui-stack-block :has-children="false">
3
3
  <template #stackBlockKey>
4
- {{ localization.common.usbRedirection }}
4
+ <span class="mt-2">{{ localization.common.usbRedirection }}</span>
5
5
  </template>
6
6
  <template #stackBlockContent>
7
7
  <ui-select
@@ -16,7 +16,7 @@
16
16
  <template #stackChildren>
17
17
  <ui-stack-block :has-children="false">
18
18
  <template #stackBlockKey>
19
- {{ localization.common.toolsEnable }}
19
+ <span class="mt-2">{{ localization.common.toolsEnable }}</span>
20
20
  </template>
21
21
  <template #stackBlockContent>
22
22
  <ui-checkbox
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "bfg-common",
3
3
  "private": false,
4
- "version": "1.5.293",
4
+ "version": "1.5.295",
5
5
  "scripts": {
6
6
  "build": "nuxt build",
7
7
  "dev": "nuxt dev --port=3002",
@@ -35,7 +35,7 @@
35
35
  "@vueuse/components": "^10.1.2",
36
36
  "date-fns": "^2.29.3",
37
37
  "bfg-nuxt-3-graph": "1.0.26",
38
- "bfg-uikit": "1.0.462",
38
+ "bfg-uikit": "1.0.463",
39
39
  "html2canvas": "^1.4.1",
40
40
  "prettier-eslint": "^15.0.1"
41
41
  }