bfg-common 1.2.109 → 1.2.110

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 (49) hide show
  1. package/components/atoms/modal/Modal.vue +6 -0
  2. package/components/atoms/switch/Switch.vue +107 -107
  3. package/components/atoms/tabs/VerticalTabs.vue +6 -0
  4. package/components/common/BadBrowser.vue +114 -114
  5. package/components/common/adapterManager/AddAdapterWarningModal.vue +82 -82
  6. package/components/common/adapterManager/NoActiveAdaptersModal.vue +62 -62
  7. package/components/common/adapterManager/NoConnectedActiveAdaptersModal.vue +62 -62
  8. package/components/common/browse/blocks/Title.vue +66 -66
  9. package/components/common/diagramMain/DiagramMain.vue +3 -0
  10. package/components/common/diagramMain/modals/editSettings/EditSettingsModal.vue +183 -72
  11. package/components/common/diagramMain/modals/editSettings/tabs/TeamingFailover.vue +1 -1
  12. package/components/common/diagramMain/modals/editSettings/tabs/port/IpvFourSettings.vue +339 -339
  13. package/components/common/diagramMain/modals/editSettings/tabs/port/PortProperties.vue +202 -202
  14. package/components/common/diagramMain/modals/remove/RemoveModal.vue +226 -226
  15. package/components/common/feedback/Feedback.vue +261 -261
  16. package/components/common/feedback/VisitPortal.vue +53 -53
  17. package/components/common/help/navbar/left/utils/constructAccordion.ts +27 -27
  18. package/components/common/recursionTree/RecursionTree.vue +201 -201
  19. package/components/common/vm/actions/clone/Clone.vue +545 -545
  20. package/components/common/vm/actions/clone/select/options/Options.vue +65 -65
  21. package/components/common/vm/actions/clone/utils.ts +43 -43
  22. package/components/common/vm/actions/common/customizeHardware/virtualHardware/cpu/CoresPerSocket.vue +109 -109
  23. package/components/common/vm/actions/common/customizeHardware/virtualHardware/cpu/Cpu.vue +383 -383
  24. package/components/common/vm/actions/common/customizeHardware/virtualHardware/limit/Limit.vue +234 -234
  25. package/components/common/vm/actions/common/customizeHardware/virtualHardware/limit/config/options.ts +28 -28
  26. package/components/common/vm/actions/common/customizeHardware/virtualHardware/memory/Memory.vue +316 -316
  27. package/components/common/vm/actions/common/customizeHardware/virtualHardware/memory/config/memoryOptions.ts +35 -35
  28. package/components/common/vm/actions/common/customizeHardware/virtualHardware/newHardDisk/NewHardDisk.vue +446 -446
  29. package/components/common/vm/actions/common/customizeHardware/virtualHardware/reservation/Reservation.vue +235 -235
  30. package/components/common/vm/actions/common/customizeHardware/virtualHardware/videoCard/VideoCard.vue +177 -177
  31. package/components/common/vm/actions/common/customizeHardware/vmoptions/bootOptions/order/Order.vue +197 -197
  32. package/components/common/vm/actions/common/customizeHardware/vmoptions/generalOptions/GeneralOptions.vue +181 -181
  33. package/components/common/vm/actions/common/customizeHardware/vmoptions/remoteConsoleOptions/CopyPaste.vue +51 -51
  34. package/components/common/vm/actions/common/customizeHardware/vmoptions/remoteConsoleOptions/RemoteConsoleOptions.vue +253 -253
  35. package/components/common/vm/actions/common/customizeHardware/vmoptions/remoteConsoleOptions/keymap/Keymap.vue +55 -55
  36. package/components/common/vm/actions/common/select/storage/Storage.vue +194 -194
  37. package/components/common/vm/actions/common/select/storage/config/config.ts +154 -154
  38. package/components/common/wizards/datastore/add/nfs/kerberosAuthentication/KerberosAuthentication.vue +54 -54
  39. package/composables/useLocal.ts +38 -38
  40. package/minify.js +146 -146
  41. package/models/store/interfaces.ts +37 -37
  42. package/models/store/storage/interfaces.ts +32 -32
  43. package/models/store/types.ts +32 -32
  44. package/modules/fixContentBuild/utils/methods.ts +114 -114
  45. package/package.json +1 -1
  46. package/public/spice-console/application/codec.js +257 -257
  47. package/public/spice-console/lib/rasterEngine.js +907 -907
  48. package/public/spice-console/network/spicechannel.js +369 -369
  49. package/utils/contentBuild.ts +34 -34
@@ -1,181 +1,181 @@
1
- <template>
2
- <div class="hardware-cpu">
3
- <atoms-stack-block :has-children="true" @toggle="blockIsOpen = $event">
4
- <template #stackBlockKey>
5
- <div class="flex-align-center">
6
- <span>{{ localization.generalOptions }}</span>
7
- </div>
8
- </template>
9
- <template #stackBlockContent>
10
- <div v-show="!blockIsOpen">
11
- {{ localization.vmName }}: {{ vmNameLocal }}
12
- </div>
13
- </template>
14
- <template #stackChildren>
15
- <atoms-stack-block :has-children="false">
16
- <template #stackBlockKey>
17
- {{ localization.vmName }}
18
- </template>
19
- <template #stackBlockContent>
20
- <span>{{ vmNameLocal }}</span>
21
- <!-- <span v-if="!props.isEdit">{{ vmNameLocal }}</span>-->
22
- <!-- <input-->
23
- <!-- v-else-->
24
- <!-- id="general-option-vm-name"-->
25
- <!-- v-model="vmNameLocal"-->
26
- <!-- type="text"-->
27
- <!-- />-->
28
- </template>
29
- </atoms-stack-block>
30
-
31
- <atoms-stack-block :has-children="false">
32
- <template #stackBlockKey>
33
- {{ localization.machineType }}
34
- </template>
35
- <template #stackBlockContent>
36
- <select
37
- v-if="props.guestMachineType"
38
- id="guest-machine-type-select"
39
- :disabled="isDisabled"
40
- v-model="guestMachineTypeLocal"
41
- >
42
- <option
43
- v-for="item in machineTypeOptions"
44
- :key="item.value"
45
- :value="item"
46
- >
47
- {{ item.text }}
48
- </option>
49
- </select>
50
- </template>
51
- </atoms-stack-block>
52
-
53
- <atoms-stack-block :has-children="false">
54
- <template #stackBlockKey>
55
- {{ localization.guestOsFamily }}
56
- </template>
57
- <template #stackBlockContent>
58
- <select
59
- v-if="props.guestOsFamily"
60
- id="guest-os-family-select"
61
- v-model="guestOsFamilyLocal"
62
- :disabled="isDisabled"
63
- @change="onChangeOS"
64
- >
65
- <option v-for="item in osOptions" :key="item.value" :value="item">
66
- {{ item.text }}
67
- </option>
68
- </select>
69
- </template>
70
- </atoms-stack-block>
71
-
72
- <atoms-stack-block :has-children="false">
73
- <template #stackBlockKey>
74
- {{ localization.guestOsVersion }}
75
- </template>
76
- <template #stackBlockContent>
77
- <select
78
- v-if="props.guestOsVersion"
79
- id="guest-os-version-select"
80
- v-model="guestOsVersionLocal"
81
- :disabled="isDisabled"
82
- >
83
- <option
84
- v-for="item in versionsOptions"
85
- :key="item.value"
86
- :value="item"
87
- >
88
- {{ item.text }}
89
- </option>
90
- </select>
91
- </template>
92
- </atoms-stack-block>
93
- </template>
94
- </atoms-stack-block>
95
- </div>
96
- </template>
97
-
98
- <script setup lang="ts">
99
- import { UI_I_Localization } from '~/models/interfaces'
100
- import { UI_I_OptionItem } from '~/components/atoms/models/interfaces'
101
- import { capabilities } from '~/components/common/vm/actions/common/config/capabilities'
102
-
103
- const localization = computed<UI_I_Localization>(() => useLocal())
104
-
105
- const props = defineProps<{
106
- vmName: string
107
- guestMachineType: UI_I_OptionItem | null
108
- guestOsFamily: UI_I_OptionItem | null
109
- guestOsVersion: UI_I_OptionItem | null
110
- isEdit: boolean
111
- isClone: boolean
112
- state?: string | number
113
- }>()
114
- const emits = defineEmits<{
115
- (event: 'update:vm-name', value: string): void
116
- (event: 'update:guest-machine-type', value: UI_I_OptionItem | null): void
117
- (event: 'update:guest-os-family', value: UI_I_OptionItem | null): void
118
- (event: 'update:guest-os-version', value: UI_I_OptionItem | null): void
119
- }>()
120
-
121
- const isDisabled = computed<boolean>(
122
- () => (!props.isEdit && !props.isClone) || (props.isEdit && props.state !== 1)
123
- )
124
-
125
- const vmNameLocal = computed<string>({
126
- get() {
127
- return props.vmName
128
- },
129
- set(newValue) {
130
- emits('update:vm-name', newValue)
131
- },
132
- })
133
-
134
- const guestMachineTypeLocal = computed<UI_I_OptionItem | null>({
135
- get() {
136
- return props.guestMachineType
137
- },
138
- set(newValue) {
139
- emits('update:guest-machine-type', newValue)
140
- },
141
- })
142
- const machineTypeOptions = ref<UI_I_OptionItem[]>(capabilities.machineTypes)
143
-
144
- const guestOsFamilyLocal = computed<UI_I_OptionItem | null>({
145
- get() {
146
- return props.guestOsFamily
147
- },
148
- set(newValue) {
149
- emits('update:guest-os-family', newValue)
150
- },
151
- })
152
- const osOptions = ref<UI_I_OptionItem[]>(capabilities.guestOsFamilies)
153
- const onChangeOS = (): void => {
154
- guestOsVersionLocal.value = versionsOptions.value[0]
155
- }
156
-
157
- const guestOsVersionLocal = computed<UI_I_OptionItem | null>({
158
- get() {
159
- return props.guestOsVersion
160
- },
161
- set(newValue) {
162
- emits('update:guest-os-version', newValue)
163
- },
164
- })
165
- const versionsOptions = computed<UI_I_OptionItem[]>(() => {
166
- if (!guestOsFamilyLocal.value) return []
167
-
168
- return capabilities.guestOsVersions[guestOsFamilyLocal.value.value] || []
169
- })
170
- watch(
171
- versionsOptions,
172
- () => {
173
- guestOsVersionLocal.value = versionsOptions.value[0]
174
- }
175
- // { immediate: true }
176
- )
177
-
178
- const blockIsOpen = ref<boolean>(false)
179
- </script>
180
-
181
- <style scoped lang="scss"></style>
1
+ <template>
2
+ <div class="hardware-cpu">
3
+ <atoms-stack-block :has-children="true" @toggle="blockIsOpen = $event">
4
+ <template #stackBlockKey>
5
+ <div class="flex-align-center">
6
+ <span>{{ localization.generalOptions }}</span>
7
+ </div>
8
+ </template>
9
+ <template #stackBlockContent>
10
+ <div v-show="!blockIsOpen">
11
+ {{ localization.vmName }}: {{ vmNameLocal }}
12
+ </div>
13
+ </template>
14
+ <template #stackChildren>
15
+ <atoms-stack-block :has-children="false">
16
+ <template #stackBlockKey>
17
+ {{ localization.vmName }}
18
+ </template>
19
+ <template #stackBlockContent>
20
+ <span>{{ vmNameLocal }}</span>
21
+ <!-- <span v-if="!props.isEdit">{{ vmNameLocal }}</span>-->
22
+ <!-- <input-->
23
+ <!-- v-else-->
24
+ <!-- id="general-option-vm-name"-->
25
+ <!-- v-model="vmNameLocal"-->
26
+ <!-- type="text"-->
27
+ <!-- />-->
28
+ </template>
29
+ </atoms-stack-block>
30
+
31
+ <atoms-stack-block :has-children="false">
32
+ <template #stackBlockKey>
33
+ {{ localization.machineType }}
34
+ </template>
35
+ <template #stackBlockContent>
36
+ <select
37
+ v-if="props.guestMachineType"
38
+ id="guest-machine-type-select"
39
+ :disabled="isDisabled"
40
+ v-model="guestMachineTypeLocal"
41
+ >
42
+ <option
43
+ v-for="item in machineTypeOptions"
44
+ :key="item.value"
45
+ :value="item"
46
+ >
47
+ {{ item.text }}
48
+ </option>
49
+ </select>
50
+ </template>
51
+ </atoms-stack-block>
52
+
53
+ <atoms-stack-block :has-children="false">
54
+ <template #stackBlockKey>
55
+ {{ localization.guestOsFamily }}
56
+ </template>
57
+ <template #stackBlockContent>
58
+ <select
59
+ v-if="props.guestOsFamily"
60
+ id="guest-os-family-select"
61
+ v-model="guestOsFamilyLocal"
62
+ :disabled="isDisabled"
63
+ @change="onChangeOS"
64
+ >
65
+ <option v-for="item in osOptions" :key="item.value" :value="item">
66
+ {{ item.text }}
67
+ </option>
68
+ </select>
69
+ </template>
70
+ </atoms-stack-block>
71
+
72
+ <atoms-stack-block :has-children="false">
73
+ <template #stackBlockKey>
74
+ {{ localization.guestOsVersion }}
75
+ </template>
76
+ <template #stackBlockContent>
77
+ <select
78
+ v-if="props.guestOsVersion"
79
+ id="guest-os-version-select"
80
+ v-model="guestOsVersionLocal"
81
+ :disabled="isDisabled"
82
+ >
83
+ <option
84
+ v-for="item in versionsOptions"
85
+ :key="item.value"
86
+ :value="item"
87
+ >
88
+ {{ item.text }}
89
+ </option>
90
+ </select>
91
+ </template>
92
+ </atoms-stack-block>
93
+ </template>
94
+ </atoms-stack-block>
95
+ </div>
96
+ </template>
97
+
98
+ <script setup lang="ts">
99
+ import { UI_I_Localization } from '~/models/interfaces'
100
+ import { UI_I_OptionItem } from '~/components/atoms/models/interfaces'
101
+ import { capabilities } from '~/components/common/vm/actions/common/config/capabilities'
102
+
103
+ const localization = computed<UI_I_Localization>(() => useLocal())
104
+
105
+ const props = defineProps<{
106
+ vmName: string
107
+ guestMachineType: UI_I_OptionItem | null
108
+ guestOsFamily: UI_I_OptionItem | null
109
+ guestOsVersion: UI_I_OptionItem | null
110
+ isEdit: boolean
111
+ isClone: boolean
112
+ state?: string | number
113
+ }>()
114
+ const emits = defineEmits<{
115
+ (event: 'update:vm-name', value: string): void
116
+ (event: 'update:guest-machine-type', value: UI_I_OptionItem | null): void
117
+ (event: 'update:guest-os-family', value: UI_I_OptionItem | null): void
118
+ (event: 'update:guest-os-version', value: UI_I_OptionItem | null): void
119
+ }>()
120
+
121
+ const isDisabled = computed<boolean>(
122
+ () => (!props.isEdit && !props.isClone) || (props.isEdit && props.state !== 1)
123
+ )
124
+
125
+ const vmNameLocal = computed<string>({
126
+ get() {
127
+ return props.vmName
128
+ },
129
+ set(newValue) {
130
+ emits('update:vm-name', newValue)
131
+ },
132
+ })
133
+
134
+ const guestMachineTypeLocal = computed<UI_I_OptionItem | null>({
135
+ get() {
136
+ return props.guestMachineType
137
+ },
138
+ set(newValue) {
139
+ emits('update:guest-machine-type', newValue)
140
+ },
141
+ })
142
+ const machineTypeOptions = ref<UI_I_OptionItem[]>(capabilities.machineTypes)
143
+
144
+ const guestOsFamilyLocal = computed<UI_I_OptionItem | null>({
145
+ get() {
146
+ return props.guestOsFamily
147
+ },
148
+ set(newValue) {
149
+ emits('update:guest-os-family', newValue)
150
+ },
151
+ })
152
+ const osOptions = ref<UI_I_OptionItem[]>(capabilities.guestOsFamilies)
153
+ const onChangeOS = (): void => {
154
+ guestOsVersionLocal.value = versionsOptions.value[0]
155
+ }
156
+
157
+ const guestOsVersionLocal = computed<UI_I_OptionItem | null>({
158
+ get() {
159
+ return props.guestOsVersion
160
+ },
161
+ set(newValue) {
162
+ emits('update:guest-os-version', newValue)
163
+ },
164
+ })
165
+ const versionsOptions = computed<UI_I_OptionItem[]>(() => {
166
+ if (!guestOsFamilyLocal.value) return []
167
+
168
+ return capabilities.guestOsVersions[guestOsFamilyLocal.value.value] || []
169
+ })
170
+ watch(
171
+ versionsOptions,
172
+ () => {
173
+ guestOsVersionLocal.value = versionsOptions.value[0]
174
+ }
175
+ // { immediate: true }
176
+ )
177
+
178
+ const blockIsOpen = ref<boolean>(false)
179
+ </script>
180
+
181
+ <style scoped lang="scss"></style>
@@ -1,51 +1,51 @@
1
- <template>
2
- <div class="">
3
- <atoms-stack-block :has-children="false">
4
- <template #stackBlockKey>
5
- {{ localization.copyPaste }}
6
- </template>
7
- <template #stackBlockContent>
8
- <div class="flex-align-center">
9
- <input
10
- id="copy-paste"
11
- v-model="copyPasteLocal"
12
- :disabled="props.disabled"
13
- type="checkbox"
14
- />
15
- <label for="copy-paste" class="label-text-normal">{{
16
- localization.enable
17
- }}</label>
18
- </div>
19
- </template>
20
- </atoms-stack-block>
21
- </div>
22
- </template>
23
-
24
- <script setup lang="ts">
25
- import { UI_I_Localization } from '~/models/interfaces'
26
-
27
- const localization = computed<UI_I_Localization>(() => useLocal())
28
-
29
- const props = defineProps<{
30
- copyPaste: boolean
31
- disabled: boolean
32
- }>()
33
- const emits = defineEmits<{
34
- (event: 'update:copy-paste', value: boolean): void
35
- }>()
36
-
37
- const copyPasteLocal = computed<boolean>({
38
- get() {
39
- return props.copyPaste
40
- },
41
- set(newValue) {
42
- emits('update:copy-paste', newValue)
43
- },
44
- })
45
- </script>
46
-
47
- <style scoped>
48
- #copy-paste {
49
- margin: 0 4px 4px 0;
50
- }
51
- </style>
1
+ <template>
2
+ <div class="">
3
+ <atoms-stack-block :has-children="false">
4
+ <template #stackBlockKey>
5
+ {{ localization.copyPaste }}
6
+ </template>
7
+ <template #stackBlockContent>
8
+ <div class="flex-align-center">
9
+ <input
10
+ id="copy-paste"
11
+ v-model="copyPasteLocal"
12
+ :disabled="props.disabled"
13
+ type="checkbox"
14
+ />
15
+ <label for="copy-paste" class="label-text-normal">{{
16
+ localization.enable
17
+ }}</label>
18
+ </div>
19
+ </template>
20
+ </atoms-stack-block>
21
+ </div>
22
+ </template>
23
+
24
+ <script setup lang="ts">
25
+ import { UI_I_Localization } from '~/models/interfaces'
26
+
27
+ const localization = computed<UI_I_Localization>(() => useLocal())
28
+
29
+ const props = defineProps<{
30
+ copyPaste: boolean
31
+ disabled: boolean
32
+ }>()
33
+ const emits = defineEmits<{
34
+ (event: 'update:copy-paste', value: boolean): void
35
+ }>()
36
+
37
+ const copyPasteLocal = computed<boolean>({
38
+ get() {
39
+ return props.copyPaste
40
+ },
41
+ set(newValue) {
42
+ emits('update:copy-paste', newValue)
43
+ },
44
+ })
45
+ </script>
46
+
47
+ <style scoped>
48
+ #copy-paste {
49
+ margin: 0 4px 4px 0;
50
+ }
51
+ </style>