bfg-common 1.2.36 → 1.2.37

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 (89) hide show
  1. package/assets/localization/local_be.json +2 -2
  2. package/assets/localization/local_en.json +2 -2
  3. package/assets/localization/local_hy.json +2 -2
  4. package/assets/localization/local_kk.json +2 -2
  5. package/assets/localization/local_ru.json +9 -9
  6. package/assets/localization/local_zh.json +2 -2
  7. package/components/atoms/TheIcon2.vue +1 -0
  8. package/components/atoms/alert/Notification.vue +167 -167
  9. package/components/atoms/autocomplete/Autocomplete.vue +236 -236
  10. package/components/atoms/datepicker/Datepicker.vue +612 -612
  11. package/components/atoms/list/SelectList.vue +62 -62
  12. package/components/atoms/nav/NavBar.vue +116 -116
  13. package/components/atoms/nav/VerticalNavBar.vue +89 -89
  14. package/components/atoms/notificationBar/NotificationBar.vue +175 -175
  15. package/components/atoms/perPage/PerPage.vue +52 -52
  16. package/components/atoms/popup/SimplePopup.vue +90 -90
  17. package/components/atoms/step/VerticalStep.vue +104 -104
  18. package/components/atoms/switch/Switch.vue +107 -107
  19. package/components/atoms/table/dataGrid/DataGridColumnSwitch.vue +206 -206
  20. package/components/atoms/table/dataGrid/DataGridPage.vue +189 -189
  21. package/components/atoms/tabs/Tabs.vue +189 -189
  22. package/components/atoms/tooltip/Signpost.vue +224 -224
  23. package/components/common/BadBrowser.vue +5 -24
  24. package/components/common/adapterManager/AddAdapterWarningModal.vue +82 -82
  25. package/components/common/adapterManager/NoActiveAdaptersModal.vue +62 -62
  26. package/components/common/adapterManager/NoConnectedActiveAdaptersModal.vue +62 -62
  27. package/components/common/addNetworking/AddNetworking.vue +4 -0
  28. package/components/common/addNetworking/config/portPropertiesStep.ts +27 -15
  29. package/components/common/addNetworking/models/interfaces.ts +2 -2
  30. package/components/common/addNetworking/models/types.ts +11 -3
  31. package/components/common/addNetworking/steps/PortProperties.vue +14 -3
  32. package/components/common/browse/Browse.vue +182 -182
  33. package/components/common/browse/blocks/Title.vue +66 -66
  34. package/components/common/diagramMain/Diagram.vue +186 -186
  35. package/components/common/diagramMain/DiagramMain.vue +986 -986
  36. package/components/common/diagramMain/adapter/AdapterItem.vue +227 -227
  37. package/components/common/diagramMain/adapter/AdapterItems.vue +57 -57
  38. package/components/common/diagramMain/modals/editSettings/tabs/port/IpvFourSettings.vue +339 -339
  39. package/components/common/diagramMain/modals/editSettings/tabs/port/PortProperties.vue +202 -202
  40. package/components/common/diagramMain/modals/remove/RemoveModal.vue +226 -226
  41. package/components/common/diagramMain/network/Contents.vue +238 -238
  42. package/components/common/feedback/Buttons.vue +232 -232
  43. package/components/common/feedback/Message.vue +468 -468
  44. package/components/common/feedback/VisitPortal.vue +54 -54
  45. package/components/common/help/navbar/left/Left.vue +159 -159
  46. package/components/common/help/navbar/left/utils/constructAccordion.ts +27 -27
  47. package/components/common/mainNavigationPanel/MainNavigationPanel.vue +359 -359
  48. package/components/common/modals/Rename.vue +165 -165
  49. package/components/common/perPage/PerPage.vue +51 -51
  50. package/components/common/recursionTree/RecursionTree.vue +201 -201
  51. package/components/common/vm/actions/add/config/capabilities.ts +338 -338
  52. package/components/common/vm/actions/add/customizeHardware/virtualHardware/VirtualHardware.vue +657 -657
  53. package/components/common/vm/actions/add/customizeHardware/virtualHardware/cpu/CoresPerSocket.vue +109 -109
  54. package/components/common/vm/actions/add/customizeHardware/virtualHardware/cpu/Cpu.vue +383 -383
  55. package/components/common/vm/actions/add/customizeHardware/virtualHardware/limit/Limit.vue +234 -234
  56. package/components/common/vm/actions/add/customizeHardware/virtualHardware/limit/config/options.ts +28 -28
  57. package/components/common/vm/actions/add/customizeHardware/virtualHardware/memory/Memory.vue +316 -316
  58. package/components/common/vm/actions/add/customizeHardware/virtualHardware/memory/config/memoryOptions.ts +35 -35
  59. package/components/common/vm/actions/add/customizeHardware/virtualHardware/newHardDisk/NewHardDisk.vue +445 -445
  60. package/components/common/vm/actions/add/customizeHardware/virtualHardware/newNetwork/NewNetwork.vue +288 -288
  61. package/components/common/vm/actions/add/customizeHardware/virtualHardware/reservation/Reservation.vue +235 -235
  62. package/components/common/vm/actions/add/customizeHardware/virtualHardware/videoCard/VideoCard.vue +177 -177
  63. package/components/common/vm/actions/add/customizeHardware/vmoptions/bootOptions/order/Order.vue +197 -197
  64. package/components/common/vm/actions/add/customizeHardware/vmoptions/generalOptions/GeneralOptions.vue +181 -181
  65. package/components/common/vm/actions/add/customizeHardware/vmoptions/remoteConsoleOptions/CopyPaste.vue +51 -51
  66. package/components/common/vm/actions/add/customizeHardware/vmoptions/remoteConsoleOptions/RemoteConsoleOptions.vue +253 -253
  67. package/components/common/vm/actions/add/customizeHardware/vmoptions/remoteConsoleOptions/keymap/Keymap.vue +55 -55
  68. package/components/common/vm/actions/add/select/storage/config/config.ts +154 -154
  69. package/components/common/vm/actions/clone/Clone.vue +544 -544
  70. package/components/common/vm/actions/clone/select/options/Options.vue +65 -65
  71. package/components/common/vm/actions/clone/utils.ts +43 -43
  72. package/components/common/wizards/datastore/add/Add.vue +1 -0
  73. package/components/common/wizards/datastore/add/nfs/Nfs.vue +94 -91
  74. package/components/common/wizards/datastore/add/nfs/configuration/Configuration.vue +377 -373
  75. package/components/common/wizards/datastore/add/nfs/configuration/serversList/ServersList.vue +123 -123
  76. package/components/common/wizards/datastore/add/nfs/kerberosAuthentication/KerberosAuthentication.vue +54 -54
  77. package/components/common/wizards/datastore/add/sharedStorm/deviceSelection/hostTable/HostTable.vue +131 -131
  78. package/components/common/wizards/datastore/add/sharedStorm/partitionConfiguration/PartitionConfiguration.vue +230 -230
  79. package/composables/useLocal.ts +38 -38
  80. package/minify.js +146 -146
  81. package/models/store/interfaces.ts +37 -37
  82. package/models/store/storage/interfaces.ts +32 -32
  83. package/models/store/types.ts +32 -32
  84. package/modules/fixContentBuild/utils/methods.ts +114 -114
  85. package/package.json +1 -1
  86. package/public/spice-console/application/codec.js +257 -257
  87. package/public/spice-console/lib/rasterEngine.js +907 -907
  88. package/public/spice-console/network/spicechannel.js +369 -369
  89. package/utils/contentBuild.ts +34 -34
@@ -1,65 +1,65 @@
1
- <template>
2
- <div class="select-options">
3
- <div class="checkbox">
4
- <input
5
- id="customize-os"
6
- v-model="selectedOptions"
7
- type="checkbox"
8
- value="customize-os"
9
- />
10
- <label for="customize-os">{{
11
- localization.customizeTheOperatingSystem
12
- }}</label>
13
- </div>
14
- <div class="checkbox">
15
- <input
16
- id="customize-hardware"
17
- v-model="selectedOptions"
18
- type="checkbox"
19
- value="customize-hardware"
20
- />
21
- <label for="customize-hardware">{{
22
- localization.customizeThisVirtualMachineHardware
23
- }}</label>
24
- </div>
25
- <div class="checkbox">
26
- <input
27
- id="power-on"
28
- v-model="selectedOptions"
29
- type="checkbox"
30
- value="power-on"
31
- />
32
- <label for="power-on">{{
33
- localization.powerOnVirtualMachineAfterCreation
34
- }}</label>
35
- </div>
36
- </div>
37
- </template>
38
-
39
- <script setup lang="ts">
40
- import type { UI_I_Localization } from '~/models/interfaces'
41
-
42
- const props = defineProps<{
43
- selectOptionsSubmit: number
44
- }>()
45
-
46
- const emits = defineEmits<{
47
- (event: 'submit', value: string[]): void
48
- }>()
49
- const localization = computed<UI_I_Localization>(() => useLocal())
50
-
51
- const selectedOptions = ref<string[]>([])
52
- watch(() => props.selectOptionsSubmit, () => {
53
- emits('submit', selectedOptions.value)
54
- })
55
- </script>
56
-
57
- <style scoped lang="scss">
58
- .select-options {
59
- padding: 12px 0 0;
60
-
61
- .checkbox {
62
- margin: 6px 0;
63
- }
64
- }
65
- </style>
1
+ <template>
2
+ <div class="select-options">
3
+ <div class="checkbox">
4
+ <input
5
+ id="customize-os"
6
+ v-model="selectedOptions"
7
+ type="checkbox"
8
+ value="customize-os"
9
+ />
10
+ <label for="customize-os">{{
11
+ localization.customizeTheOperatingSystem
12
+ }}</label>
13
+ </div>
14
+ <div class="checkbox">
15
+ <input
16
+ id="customize-hardware"
17
+ v-model="selectedOptions"
18
+ type="checkbox"
19
+ value="customize-hardware"
20
+ />
21
+ <label for="customize-hardware">{{
22
+ localization.customizeThisVirtualMachineHardware
23
+ }}</label>
24
+ </div>
25
+ <div class="checkbox">
26
+ <input
27
+ id="power-on"
28
+ v-model="selectedOptions"
29
+ type="checkbox"
30
+ value="power-on"
31
+ />
32
+ <label for="power-on">{{
33
+ localization.powerOnVirtualMachineAfterCreation
34
+ }}</label>
35
+ </div>
36
+ </div>
37
+ </template>
38
+
39
+ <script setup lang="ts">
40
+ import type { UI_I_Localization } from '~/models/interfaces'
41
+
42
+ const props = defineProps<{
43
+ selectOptionsSubmit: number
44
+ }>()
45
+
46
+ const emits = defineEmits<{
47
+ (event: 'submit', value: string[]): void
48
+ }>()
49
+ const localization = computed<UI_I_Localization>(() => useLocal())
50
+
51
+ const selectedOptions = ref<string[]>([])
52
+ watch(() => props.selectOptionsSubmit, () => {
53
+ emits('submit', selectedOptions.value)
54
+ })
55
+ </script>
56
+
57
+ <style scoped lang="scss">
58
+ .select-options {
59
+ padding: 12px 0 0;
60
+
61
+ .checkbox {
62
+ margin: 6px 0;
63
+ }
64
+ }
65
+ </style>
@@ -1,43 +1,43 @@
1
- import { UI_I_Localization } from '~/models/interfaces'
2
- import { UI_I_VerticalStepItem } from '~/components/atoms/models/interfaces'
3
- import { UI_T_Project } from '~/models/types'
4
-
5
- export const stepItemsFunc = (
6
- localization: UI_I_Localization,
7
- project: UI_T_Project
8
- ): UI_I_VerticalStepItem[] => {
9
- if (project === 'sphere') {
10
- return []
11
- }
12
- return [
13
- {
14
- text: localization.selectName,
15
- disabled: false,
16
- complete: false,
17
- },
18
- { text: localization.selectStorage, disabled: true, complete: false },
19
- { text: localization.selectCloneOptions, disabled: true, complete: false },
20
- {
21
- text: localization.customizeHardware,
22
- disabled: true,
23
- complete: false,
24
- },
25
- { text: localization.readyComplete, disabled: true, complete: false },
26
- ]
27
- }
28
-
29
- export const subTitleFunc = (
30
- localization: UI_I_Localization,
31
- project: UI_T_Project
32
- ): string[] => {
33
- if (project === 'sphere') {
34
- return []
35
- }
36
- return [
37
- localization.specifyUniqueName,
38
- localization.selectStorageConfigurationDiskFiles,
39
- localization.chooseGuestOSInstalledVmAndMachineTypeUsedCreateVm,
40
- localization.selectFurtherCloneOptions,
41
- localization.clickFinishStartCreation,
42
- ]
43
- }
1
+ import { UI_I_Localization } from '~/models/interfaces'
2
+ import { UI_I_VerticalStepItem } from '~/components/atoms/models/interfaces'
3
+ import { UI_T_Project } from '~/models/types'
4
+
5
+ export const stepItemsFunc = (
6
+ localization: UI_I_Localization,
7
+ project: UI_T_Project
8
+ ): UI_I_VerticalStepItem[] => {
9
+ if (project === 'sphere') {
10
+ return []
11
+ }
12
+ return [
13
+ {
14
+ text: localization.selectName,
15
+ disabled: false,
16
+ complete: false,
17
+ },
18
+ { text: localization.selectStorage, disabled: true, complete: false },
19
+ { text: localization.selectCloneOptions, disabled: true, complete: false },
20
+ {
21
+ text: localization.customizeHardware,
22
+ disabled: true,
23
+ complete: false,
24
+ },
25
+ { text: localization.readyComplete, disabled: true, complete: false },
26
+ ]
27
+ }
28
+
29
+ export const subTitleFunc = (
30
+ localization: UI_I_Localization,
31
+ project: UI_T_Project
32
+ ): string[] => {
33
+ if (project === 'sphere') {
34
+ return []
35
+ }
36
+ return [
37
+ localization.specifyUniqueName,
38
+ localization.selectStorageConfigurationDiskFiles,
39
+ localization.chooseGuestOSInstalledVmAndMachineTypeUsedCreateVm,
40
+ localization.selectFurtherCloneOptions,
41
+ localization.clickFinishStartCreation,
42
+ ]
43
+ }
@@ -44,6 +44,7 @@
44
44
 
45
45
  <common-wizards-datastore-add-nfs
46
46
  v-show="datastoreType === 'nfs' && !isShowCompleteBlock"
47
+ :mode="props.mode"
47
48
  :step-position="stepPosition"
48
49
  :datastore-type="datastoreType"
49
50
  :nfs-configuration-submit="nfsConfigurationSubmit"
@@ -1,91 +1,94 @@
1
- <template>
2
- <div class="nfs-container">
3
- <span class="nfs-container__desc">{{ stepSubTitle }}</span>
4
-
5
- <common-wizards-datastore-add-nfs-version
6
- v-show="props.stepPosition === 1"
7
- v-model:version="nfsVersion"
8
- />
9
-
10
- <common-wizards-datastore-add-nfs-configuration
11
- v-show="props.stepPosition === 2"
12
- :nfs-version="nfsVersion"
13
- :nfs-configuration-submit="nfsConfigurationSubmit"
14
- @loading="(e) => emits('loading', e)"
15
- @next="applyChangesAndNext"
16
- />
17
-
18
- <!-- <templates-home-datastore-actions-add-nfs-kerberos-authentication-->
19
- <!-- v-show="nfsVersion === 'nfs-4.1' && props.stepPosition === 3"-->
20
- <!-- :nfs-version="nfsVersion"-->
21
- <!-- />--><!-- TODO Он будет когда будем делать групповое -->
22
-
23
- <!-- <templates-home-datastore-actions-add-nfs-accessibility-->
24
- <!-- v-if="showHostAccessibility"-->
25
- <!-- :host-accessibility-submit="hostAccessibilitySubmit"-->
26
- <!-- @next="applyChangesAndNext"-->
27
- <!-- />-->
28
- <!-- TODO Он будет когда будем делать групповое -->
29
- </div>
30
- </template>
31
-
32
- <script lang="ts" setup>
33
- import { UI_I_Localization } from '~/models/interfaces'
34
- import {
35
- UI_T_DatastoreType,
36
- UI_T_NfsType,
37
- } from '~/components/common/wizards/datastore/add/models/types'
38
- import { UI_I_ConfigurationSendDataNfs } from '~/components/common/wizards/datastore/add/nfs/configuration/models/interfaces'
39
- import { subTitleFunc } from '~/components/common/wizards/datastore/add/config/stepItems'
40
-
41
- const props = defineProps<{
42
- stepPosition: number
43
- datastoreType: UI_T_DatastoreType
44
- nfsConfigurationSubmit: number
45
- hostAccessibilitySubmit: number
46
- }>()
47
- const emits = defineEmits<{
48
- (event: 'loading', value: boolean): void
49
- (event: 'submit', value: UI_I_ConfigurationSendDataNfs): void
50
- (event: 'change-nfs-version', value: UI_T_NfsType): void
51
- }>()
52
-
53
- const localization = computed<UI_I_Localization>(() => useLocal())
54
-
55
- const nfsVersion = ref<UI_T_NfsType>('nfs-3')
56
-
57
- const stepSubTitle = computed<string>(() => {
58
- const { datastoreType, stepPosition } = props
59
- return subTitleFunc(
60
- localization.value,
61
- datastoreType,
62
- stepPosition,
63
- nfsVersion.value
64
- )
65
- })
66
-
67
- // const showHostAccessibility = computed<boolean>(() => {
68
- // return (
69
- // (props.stepPosition === 4 && nfsVersion.value === 'nfs-4.1') ||
70
- // (props.stepPosition === 3 && nfsVersion.value === 'nfs-3')
71
- // )
72
- // })
73
-
74
- watch(nfsVersion, (val: UI_T_NfsType) => {
75
- emits('change-nfs-version', val)
76
- })
77
-
78
- const applyChangesAndNext = (event: UI_I_ConfigurationSendDataNfs): void => {
79
- emits('submit', event)
80
- }
81
- </script>
82
-
83
- <style lang="scss" scoped>
84
- @import '~/assets/scss/common/mixins.scss';
85
- .nfs-container {
86
- @include flex($dir: column);
87
- height: 100%;
88
- &__desc {
89
- }
90
- }
91
- </style>
1
+ <template>
2
+ <div class="nfs-container">
3
+ <span class="nfs-container__desc">{{ stepSubTitle }}</span>
4
+
5
+ <common-wizards-datastore-add-nfs-version
6
+ v-show="props.stepPosition === 1"
7
+ v-model:version="nfsVersion"
8
+ />
9
+
10
+ <common-wizards-datastore-add-nfs-configuration
11
+ v-show="props.stepPosition === 2"
12
+ :mode="props.mode"
13
+ :nfs-version="nfsVersion"
14
+ :nfs-configuration-submit="nfsConfigurationSubmit"
15
+ @loading="(e) => emits('loading', e)"
16
+ @next="applyChangesAndNext"
17
+ />
18
+
19
+ <!-- <templates-home-datastore-actions-add-nfs-kerberos-authentication-->
20
+ <!-- v-show="nfsVersion === 'nfs-4.1' && props.stepPosition === 3"-->
21
+ <!-- :nfs-version="nfsVersion"-->
22
+ <!-- />--><!-- TODO Он будет когда будем делать групповое -->
23
+
24
+ <!-- <templates-home-datastore-actions-add-nfs-accessibility-->
25
+ <!-- v-if="showHostAccessibility"-->
26
+ <!-- :host-accessibility-submit="hostAccessibilitySubmit"-->
27
+ <!-- @next="applyChangesAndNext"-->
28
+ <!-- />-->
29
+ <!-- TODO Он будет когда будем делать групповое -->
30
+ </div>
31
+ </template>
32
+
33
+ <script lang="ts" setup>
34
+ import { UI_I_Localization } from '~/models/interfaces'
35
+ import {
36
+ UI_T_DatastoreType,
37
+ UI_T_NfsType,
38
+ UI_T_WizardDatastoreMode,
39
+ } from '~/components/common/wizards/datastore/add/models/types'
40
+ import { UI_I_ConfigurationSendDataNfs } from '~/components/common/wizards/datastore/add/nfs/configuration/models/interfaces'
41
+ import { subTitleFunc } from '~/components/common/wizards/datastore/add/config/stepItems'
42
+
43
+ const props = defineProps<{
44
+ mode: UI_T_WizardDatastoreMode
45
+ stepPosition: number
46
+ datastoreType: UI_T_DatastoreType
47
+ nfsConfigurationSubmit: number
48
+ hostAccessibilitySubmit: number
49
+ }>()
50
+ const emits = defineEmits<{
51
+ (event: 'loading', value: boolean): void
52
+ (event: 'submit', value: UI_I_ConfigurationSendDataNfs): void
53
+ (event: 'change-nfs-version', value: UI_T_NfsType): void
54
+ }>()
55
+
56
+ const localization = computed<UI_I_Localization>(() => useLocal())
57
+
58
+ const nfsVersion = ref<UI_T_NfsType>('nfs-3')
59
+
60
+ const stepSubTitle = computed<string>(() => {
61
+ const { datastoreType, stepPosition } = props
62
+ return subTitleFunc(
63
+ localization.value,
64
+ datastoreType,
65
+ stepPosition,
66
+ nfsVersion.value
67
+ )
68
+ })
69
+
70
+ // const showHostAccessibility = computed<boolean>(() => {
71
+ // return (
72
+ // (props.stepPosition === 4 && nfsVersion.value === 'nfs-4.1') ||
73
+ // (props.stepPosition === 3 && nfsVersion.value === 'nfs-3')
74
+ // )
75
+ // })
76
+
77
+ watch(nfsVersion, (val: UI_T_NfsType) => {
78
+ emits('change-nfs-version', val)
79
+ })
80
+
81
+ const applyChangesAndNext = (event: UI_I_ConfigurationSendDataNfs): void => {
82
+ emits('submit', event)
83
+ }
84
+ </script>
85
+
86
+ <style lang="scss" scoped>
87
+ @import '~/assets/scss/common/mixins.scss';
88
+ .nfs-container {
89
+ @include flex($dir: column);
90
+ height: 100%;
91
+ &__desc {
92
+ }
93
+ }
94
+ </style>