bfg-common 1.5.330 → 1.5.332

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 (156) 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 +6 -4
  7. package/assets/localization/local_en.json +3266 -3264
  8. package/assets/localization/local_hy.json +6 -4
  9. package/assets/localization/local_kk.json +6 -4
  10. package/assets/localization/local_ru.json +6 -4
  11. package/assets/localization/local_zh.json +3263 -3261
  12. package/components/atoms/TheIcon3.vue +50 -50
  13. package/components/atoms/collapse/CollapseNav.vue +170 -170
  14. package/components/atoms/collapse/CollapseNavItem.vue +226 -226
  15. package/components/atoms/nav/NavBar.vue +147 -147
  16. package/components/atoms/perPage/PerPage.vue +58 -58
  17. package/components/atoms/table/dataGrid/DataGrid.vue +1717 -1717
  18. package/components/atoms/table/dataGrid/lib/config/settingsTable.ts +94 -94
  19. package/components/atoms/table/dataGrid/lib/utils/export.ts +16 -16
  20. package/components/atoms/tabs/VerticalTabs.vue +105 -105
  21. package/components/common/backup/storage/actions/add/lib/config/steps.ts +168 -168
  22. package/components/common/backup/storage/actions/add/steps/hostAccessibility/HostAccessibility.vue +52 -52
  23. package/components/common/backup/storage/actions/add/steps/readyComplete/ReadyComplete.vue +45 -45
  24. package/components/common/backup/storage/actions/delete/Delete.vue +65 -65
  25. package/components/common/browse/blocks/contents/filesNew/Skeleton.vue +18 -18
  26. package/components/common/context/lib/models/interfaces.ts +33 -33
  27. package/components/common/diagramMain/DiagramMain.vue +897 -897
  28. package/components/common/diagramMain/modals/lib/config/networkModal.ts +398 -398
  29. package/components/common/diagramMain/network/Network.vue +141 -141
  30. package/components/common/layout/theHeader/helpMenu/About.vue +82 -82
  31. package/components/common/layout/theHeader/userMenu/modals/preferences/view/ViewOld.vue +112 -112
  32. package/components/common/monitor/overview/OverviewOld.vue +139 -139
  33. package/components/common/pages/home/headline/Headline.vue +45 -45
  34. package/components/common/pages/home/headline/HeadlineOld.vue +42 -42
  35. package/components/common/pages/home/lib/models/interfaces.ts +48 -48
  36. package/components/common/pages/home/widgets/Widgets.vue +49 -49
  37. package/components/common/pages/home/widgets/WidgetsNew.vue +86 -88
  38. package/components/common/pages/home/widgets/WidgetsOld.vue +34 -36
  39. package/components/common/pages/home/widgets/hosts/Hosts.vue +27 -27
  40. package/components/common/pages/home/widgets/hosts/lib/config/items.ts +23 -23
  41. package/components/common/pages/home/widgets/vms/Vms.vue +26 -26
  42. package/components/common/pages/home/widgets/vms/VmsOld.vue +35 -35
  43. package/components/common/pages/home/widgets/vms/lib/config/items.ts +19 -19
  44. package/components/common/pages/packages/Packages.vue +208 -208
  45. package/components/common/pages/shortcuts/block/BlockOld.vue +68 -68
  46. package/components/common/readyToComplete/ReadyToComplete.vue +17 -17
  47. package/components/common/recursionTree/RecursionTree.vue +223 -223
  48. package/components/common/select/button/ButtonDropdown.vue +112 -112
  49. package/components/common/select/radio/RadioGroup.vue +128 -135
  50. package/components/common/select/radio/lib/models/interfaces.ts +0 -1
  51. package/components/common/spiceConsole/Drawer.vue +377 -377
  52. package/components/common/spiceConsole/SpiceConsole.vue +127 -127
  53. package/components/common/spiceConsole/lib/models/interfaces.ts +5 -5
  54. package/components/common/tools/Actions.vue +207 -207
  55. package/components/common/vm/actions/add/New.vue +642 -647
  56. package/components/common/vm/actions/add/Old.vue +385 -388
  57. package/components/common/vm/actions/add/folderTreeView/FolderTreeView.vue +72 -72
  58. package/components/common/vm/actions/add/folderTreeView/New.vue +40 -40
  59. package/components/common/vm/actions/add/folderTreeView/Old.vue +50 -50
  60. package/components/common/vm/actions/add/lib/config/steps.ts +10 -22
  61. package/components/common/vm/actions/clone/Clone.vue +823 -823
  62. package/components/common/vm/actions/clone/lib/config/steps.ts +291 -291
  63. package/components/common/vm/actions/clone/toTemplate/lib/config/steps.ts +116 -116
  64. package/components/common/vm/actions/common/customizeHardware/CustomizeHardware.vue +0 -3
  65. package/components/common/vm/actions/common/customizeHardware/CustomizeHardwareNew.vue +0 -2
  66. package/components/common/vm/actions/common/customizeHardware/CustomizeHardwareOld.vue +0 -2
  67. package/components/common/vm/actions/common/customizeHardware/virtualHardware/VirtualHardwareOld.vue +321 -321
  68. package/components/common/vm/actions/common/customizeHardware/virtualHardware/browseView/BrowseView.vue +227 -227
  69. package/components/common/vm/actions/common/customizeHardware/virtualHardware/bus/Bus.vue +100 -100
  70. package/components/common/vm/actions/common/customizeHardware/virtualHardware/cdDvdDrive/CdDvdDrive.vue +232 -232
  71. package/components/common/vm/actions/common/customizeHardware/virtualHardware/cdDvdDrive/CdDvdDriveOld.vue +168 -168
  72. package/components/common/vm/actions/common/customizeHardware/virtualHardware/cdDvdDrive/media/Media.vue +25 -25
  73. package/components/common/vm/actions/common/customizeHardware/virtualHardware/cdDvdDrive/media/MediaNew.vue +78 -78
  74. package/components/common/vm/actions/common/customizeHardware/virtualHardware/cdDvdDrive/media/MediaOld.vue +50 -50
  75. package/components/common/vm/actions/common/customizeHardware/virtualHardware/cpu/shares/Shares.vue +140 -140
  76. package/components/common/vm/actions/common/customizeHardware/virtualHardware/cpu/shares/lib/config/options.ts +28 -28
  77. package/components/common/vm/actions/common/customizeHardware/virtualHardware/cpu/tooltip/TooltipNew.vue +154 -154
  78. package/components/common/vm/actions/common/customizeHardware/virtualHardware/lib/config/dropdownItems.ts +153 -155
  79. package/components/common/vm/actions/common/customizeHardware/virtualHardware/limit/Limit.vue +220 -220
  80. package/components/common/vm/actions/common/customizeHardware/virtualHardware/memory/Memory.vue +307 -307
  81. package/components/common/vm/actions/common/customizeHardware/virtualHardware/newHardDisk/NewHardDisk.vue +385 -385
  82. package/components/common/vm/actions/common/customizeHardware/virtualHardware/newHardDisk/location/Location.vue +154 -154
  83. package/components/common/vm/actions/common/customizeHardware/virtualHardware/newHardDisk/location/LocationOld.vue +85 -85
  84. package/components/common/vm/actions/common/customizeHardware/virtualHardware/newNetwork/NewNetwork.vue +288 -288
  85. package/components/common/vm/actions/common/customizeHardware/virtualHardware/newNetwork/location/new/table/lib/config/config.ts +94 -94
  86. package/components/common/vm/actions/common/customizeHardware/virtualHardware/newNetwork/macAddress/MacAddress.vue +119 -119
  87. package/components/common/vm/actions/common/customizeHardware/virtualHardware/newPciDevice/NewPciDevice.vue +205 -205
  88. package/components/common/vm/actions/common/customizeHardware/virtualHardware/newPciDevice/directPathIo/DirectPathIoNew.vue +66 -66
  89. package/components/common/vm/actions/common/customizeHardware/virtualHardware/newPciDevice/directPathIo/DirectPathIoOld.vue +62 -62
  90. package/components/common/vm/actions/common/customizeHardware/virtualHardware/newPciDevice/dynamicDirectPathIo/DynamicDirectPathIo.vue +31 -31
  91. package/components/common/vm/actions/common/customizeHardware/virtualHardware/newPciDevice/dynamicDirectPathIo/DynamicDirectPathIoOld.vue +76 -76
  92. package/components/common/vm/actions/common/customizeHardware/virtualHardware/newPciDevice/note/Note.vue +15 -15
  93. package/components/common/vm/actions/common/customizeHardware/virtualHardware/newPciDevice/note/NoteNew.vue +42 -42
  94. package/components/common/vm/actions/common/customizeHardware/virtualHardware/newPciDevice/note/NoteOld.vue +30 -30
  95. package/components/common/vm/actions/common/customizeHardware/virtualHardware/newPciDevice/nvidiaGrid/NvidiaGridOld.vue +84 -84
  96. package/components/common/vm/actions/common/customizeHardware/virtualHardware/other/Other.vue +16 -16
  97. package/components/common/vm/actions/common/customizeHardware/virtualHardware/videoCard/VideoCard.vue +154 -154
  98. package/components/common/vm/actions/common/customizeHardware/virtualHardware/videoCard/numberDisplays/NumberDisplays.vue +53 -53
  99. package/components/common/vm/actions/common/customizeHardware/vmoptions/Vmoptions.vue +152 -155
  100. package/components/common/vm/actions/common/customizeHardware/vmoptions/VmoptionsNew.vue +128 -132
  101. package/components/common/vm/actions/common/customizeHardware/vmoptions/VmoptionsOld.vue +111 -115
  102. package/components/common/vm/actions/common/customizeHardware/vmoptions/bootOptions/delay/Delay.vue +32 -32
  103. package/components/common/vm/actions/common/customizeHardware/vmoptions/bootOptions/firmware/Firmware.vue +60 -60
  104. package/components/common/vm/actions/common/customizeHardware/vmoptions/bootOptions/order/Order.vue +174 -174
  105. package/components/common/vm/actions/common/customizeHardware/vmoptions/generalOptions/GeneralOptions.vue +83 -95
  106. package/components/common/vm/actions/common/customizeHardware/vmoptions/generalOptions/GeneralOptionsNew.vue +1 -2
  107. package/components/common/vm/actions/common/customizeHardware/vmoptions/generalOptions/GeneralOptionsOld.vue +154 -155
  108. package/components/common/vm/actions/common/customizeHardware/vmoptions/remoteConsoleOptions/New.vue +6 -8
  109. package/components/common/vm/actions/common/customizeHardware/vmoptions/remoteConsoleOptions/Old.vue +6 -8
  110. package/components/common/vm/actions/common/customizeHardware/vmoptions/remoteConsoleOptions/keymap/Keymap.vue +32 -32
  111. package/components/common/vm/actions/common/customizeHardware/vmoptions/remoteConsoleOptions/keymap/KeymapOld.vue +44 -44
  112. package/components/common/vm/actions/common/customizeHardware/vmoptions/remoteConsoleOptions/password/Password.vue +103 -103
  113. package/components/common/vm/actions/common/customizeHardware/vmoptions/remoteConsoleOptions/usbRedirection/UsbRedirection.vue +28 -28
  114. package/components/common/vm/actions/common/customizeHardware/vmoptions/remoteConsoleOptions/usbRedirection/UsbRedirectionOld.vue +44 -44
  115. package/components/common/vm/actions/common/customizeHardware/vmoptions/tools/ToolsNew.vue +0 -1
  116. package/components/common/vm/actions/common/customizeHardware/vmoptions/tools/ToolsOld.vue +1 -1
  117. package/components/common/vm/actions/common/select/compatibility/Old.vue +107 -107
  118. package/components/common/vm/actions/common/select/computeResource/treeView/TreeView.vue +118 -118
  119. package/components/common/vm/actions/common/select/createType/CreateType.vue +38 -38
  120. package/components/common/vm/actions/common/select/createType/lib/config/items.ts +48 -48
  121. package/components/common/vm/actions/common/select/createType/lib/models/interfaces.ts +5 -5
  122. package/components/common/vm/actions/common/select/name/Name.vue +174 -174
  123. package/components/common/vm/actions/common/select/options/Options.vue +1 -6
  124. package/components/common/vm/actions/common/select/os/Old.vue +152 -152
  125. package/components/common/vm/actions/common/select/os/Os.vue +139 -139
  126. package/components/common/vm/actions/common/select/storage/new/lib/models/interfaces.ts +5 -5
  127. package/components/common/vm/actions/common/select/storage/new/lib/utils/utils.ts +21 -21
  128. package/components/common/vm/actions/editSettings/EditSettings.vue +239 -242
  129. package/components/common/vm/actions/editSettings/EditSettingsOld.vue +0 -2
  130. package/components/common/vm/actions/editSettings/new/New.vue +0 -2
  131. package/components/common/vm/actions/editSettings/new/Skeleton.vue +88 -88
  132. package/components/common/vmt/actions/add/Add.vue +280 -379
  133. package/components/common/vmt/actions/add/New.vue +346 -0
  134. package/components/common/vmt/actions/add/Old.vue +301 -0
  135. package/components/common/vmt/actions/add/lib/config/steps.ts +8 -8
  136. package/components/common/vmt/actions/add/lib/models/interfaces.ts +23 -23
  137. package/components/common/wizards/network/add/steps/SelectConnectionType.vue +104 -104
  138. package/components/common/wizards/network/add/steps/SelectedTargetDevice.vue +467 -467
  139. package/components/common/wizards/vm/migrate/Migrate.vue +349 -349
  140. package/components/common/wizards/vm/migrate/lib/config/constructDataReady.ts +220 -220
  141. package/components/common/wizards/vm/migrate/lib/config/steps.ts +157 -157
  142. package/components/common/wizards/vm/migrate/lib/validations.ts +68 -68
  143. package/components/common/wizards/vm/migrate/select/network/Network.vue +103 -103
  144. package/components/common/wizards/vm/migrate/select/network/table/network/lib/config/advancedTable.ts +91 -91
  145. package/components/common/wizards/vm/migrate/select/type/lib/config/typeOptions.ts +43 -45
  146. package/composables/productNameLocal.ts +30 -30
  147. package/composables/useAppVersion.ts +21 -21
  148. package/package.json +1 -1
  149. package/plugins/date.ts +233 -233
  150. package/plugins/panelStates.ts +70 -70
  151. package/plugins/text.ts +59 -59
  152. package/public/spice-console/lib/images/bitmap.js +203 -203
  153. package/public/spice-console/network/spicechannel.js +387 -387
  154. package/store/main/mutations.ts +7 -7
  155. package/store/main/state.ts +7 -7
  156. package/store/tasks/mappers/recentTasks.ts +64 -64
@@ -1,135 +1,128 @@
1
- <template>
2
- <div class="select-option">
3
- <div
4
- v-for="radio in options"
5
- :key="radio.id"
6
- v-permission="radio.permission"
7
- :class="['select-option__inner radio', radio.disabled && 'disabled']"
8
- >
9
- <div :class="['select-option__container', radio.value]">
10
- <div class="select-option__wrapper">
11
- <input
12
- :id="radio.id"
13
- v-model="selectedType"
14
- :data-id="radio.testId"
15
- :value="radio.value"
16
- :disabled="radio.disabled"
17
- type="radio"
18
- />
19
- <label :for="radio.id">{{ radio.label }}</label>
20
-
21
- <div
22
- v-if="'isTooltip' in radio"
23
- :id="`${radio.value}-select-tooltip-icon`"
24
- class="signpost-container relative"
25
- >
26
- <atoms-the-icon
27
- :data-id="`${radio.testId}-tooltip-toggle-icon`"
28
- fill="#0072a3"
29
- width="24px"
30
- height="24px"
31
- name="info-circle"
32
- @click="radio.isTooltip = !radio.isTooltip"
33
- />
34
- <atoms-tooltip-signpost
35
- v-if="radio.isTooltip"
36
- :elem-id="`${radio.value}-select-tooltip-icon`"
37
- :test-id="radio.testId"
38
- @hide="radio.isTooltip = false"
39
- >
40
- <div class="tooltip-content-container">
41
- <p>{{ radio.tooltipContent }}</p>
42
- </div>
43
- </atoms-tooltip-signpost>
44
- </div>
45
- </div>
46
-
47
- <slot
48
- v-if="$slots.beforeDescription"
49
- name="beforeDescription"
50
- :data="radio"
51
- ></slot>
52
- </div>
53
-
54
- <div v-if="radio.description" class="select-option__description">
55
- {{ radio.description }}
56
- </div>
57
-
58
- <slot
59
- v-if="$slots.afterDescription"
60
- name="afterDescription"
61
- :data="radio"
62
- ></slot>
63
- </div>
64
- </div>
65
- </template>
66
-
67
- <script lang="ts" setup>
68
- import type { UI_I_RadioOption } from '~/components/common/select/radio/lib/models/interfaces'
69
-
70
- const props = defineProps<{
71
- modelValue: string | number
72
- options: UI_I_RadioOption[]
73
- }>()
74
- const emits = defineEmits<{
75
- (event: 'update:model-value', value: string | number): void
76
- }>()
77
-
78
- const options = computed<UI_I_RadioOption[]>(() =>
79
- props.options.map((option) => {
80
- return {
81
- ...option,
82
- id: option.id || `radio-btn-${useUniqueId()}`,
83
- }
84
- })
85
- )
86
-
87
- const selectedType = computed<string | number>({
88
- get() {
89
- return props.modelValue
90
- },
91
- set(newValue) {
92
- emits('update:model-value', newValue)
93
- },
94
- })
95
- </script>
96
-
97
- <style lang="scss" scoped>
98
- @import 'assets/scss/common/mixins.scss';
99
- .select-option {
100
- &__container {
101
- @include flex($dir: column);
102
- }
103
- &__wrapper {
104
- @include flex($align: center);
105
- gap: 10px;
106
- .signpost-container {
107
- display: flex;
108
- cursor: pointer;
109
- .tooltip-content-container {
110
- max-width: 350px;
111
- }
112
- }
113
- }
114
- &__subtitle {
115
- }
116
- &__description {
117
- margin-left: 22px;
118
- }
119
- }
120
- .radio {
121
- margin-bottom: 5px;
122
- //&:nth-child(2) {
123
- //margin-top: 10px; // ?
124
- //}
125
- &.disabled {
126
- opacity: 0.7;
127
- }
128
- }
129
- .radio {
130
- }
131
- input[type='radio']:focus:checked + label::before,
132
- input[type='radio']:focus + label::before {
133
- box-shadow: inset 0 0 0 0.25rem #0094d2;
134
- }
135
- </style>
1
+ <template>
2
+ <div class="select-option">
3
+ <div
4
+ v-for="radio in options"
5
+ :key="radio.value"
6
+ v-permission="radio.permission"
7
+ :class="['select-option__inner radio', radio.disabled && 'disabled']"
8
+ >
9
+ <div :class="['select-option__container', radio.value]">
10
+ <div class="select-option__wrapper">
11
+ <input
12
+ :id="radio.label"
13
+ v-model="selectedType"
14
+ :data-id="radio.testId"
15
+ :value="radio.value"
16
+ :disabled="radio.disabled"
17
+ type="radio"
18
+ />
19
+ <label :for="radio.label">{{ radio.label }}</label>
20
+
21
+ <div
22
+ v-if="'isTooltip' in radio"
23
+ :id="`${radio.value}-select-tooltip-icon`"
24
+ class="signpost-container relative"
25
+ >
26
+ <atoms-the-icon
27
+ :data-id="`${radio.testId}-tooltip-toggle-icon`"
28
+ fill="#0072a3"
29
+ width="24px"
30
+ height="24px"
31
+ name="info-circle"
32
+ @click="radio.isTooltip = !radio.isTooltip"
33
+ />
34
+ <atoms-tooltip-signpost
35
+ v-if="radio.isTooltip"
36
+ :elem-id="`${radio.value}-select-tooltip-icon`"
37
+ :test-id="radio.testId"
38
+ @hide="radio.isTooltip = false"
39
+ >
40
+ <div class="tooltip-content-container">
41
+ <p>{{ radio.tooltipContent }}</p>
42
+ </div>
43
+ </atoms-tooltip-signpost>
44
+ </div>
45
+ </div>
46
+
47
+ <slot
48
+ v-if="$slots.beforeDescription"
49
+ name="beforeDescription"
50
+ :data="radio"
51
+ ></slot>
52
+ </div>
53
+
54
+ <div v-if="radio.description" class="select-option__description">
55
+ {{ radio.description }}
56
+ </div>
57
+
58
+ <slot
59
+ v-if="$slots.afterDescription"
60
+ name="afterDescription"
61
+ :data="radio"
62
+ ></slot>
63
+ </div>
64
+ </div>
65
+ </template>
66
+
67
+ <script lang="ts" setup>
68
+ import type { UI_I_RadioOption } from '~/components/common/select/radio/lib/models/interfaces'
69
+
70
+ const props = defineProps<{
71
+ modelValue: string | number
72
+ options: UI_I_RadioOption[]
73
+ }>()
74
+ const emits = defineEmits<{
75
+ (event: 'update:model-value', value: string | number): void
76
+ }>()
77
+
78
+ const options = computed<UI_I_RadioOption[]>(() => props.options)
79
+
80
+ const selectedType = computed<string | number>({
81
+ get() {
82
+ return props.modelValue
83
+ },
84
+ set(newValue) {
85
+ emits('update:model-value', newValue)
86
+ },
87
+ })
88
+ </script>
89
+
90
+ <style lang="scss" scoped>
91
+ @import 'assets/scss/common/mixins.scss';
92
+ .select-option {
93
+ &__container {
94
+ @include flex($dir: column);
95
+ }
96
+ &__wrapper {
97
+ @include flex($align: center);
98
+ gap: 10px;
99
+ .signpost-container {
100
+ display: flex;
101
+ cursor: pointer;
102
+ .tooltip-content-container {
103
+ max-width: 350px;
104
+ }
105
+ }
106
+ }
107
+ &__subtitle {
108
+ }
109
+ &__description {
110
+ margin-left: 22px;
111
+ }
112
+ }
113
+ .radio {
114
+ margin-bottom: 5px;
115
+ //&:nth-child(2) {
116
+ //margin-top: 10px; // ?
117
+ //}
118
+ &.disabled {
119
+ opacity: 0.7;
120
+ }
121
+ }
122
+ .radio {
123
+ }
124
+ input[type='radio']:focus:checked + label::before,
125
+ input[type='radio']:focus + label::before {
126
+ box-shadow: inset 0 0 0 0.25rem #0094d2;
127
+ }
128
+ </style>
@@ -1,7 +1,6 @@
1
1
  export interface UI_I_RadioOption {
2
2
  label: string
3
3
  value: string | number
4
- id?: string
5
4
  disabled?: boolean
6
5
  isTooltip?: boolean
7
6
  description?: string