bfg-common 1.5.503 → 1.5.505

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 (116) 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 +3 -1
  7. package/assets/localization/local_en.json +3 -1
  8. package/assets/localization/local_hy.json +3 -1
  9. package/assets/localization/local_kk.json +3 -1
  10. package/assets/localization/local_ru.json +3 -1
  11. package/assets/localization/local_zh.json +3 -1
  12. package/components/atoms/TheIcon3.vue +50 -50
  13. package/components/atoms/collapse/CollapseNav.vue +170 -170
  14. package/components/atoms/perPage/PerPage.vue +58 -58
  15. package/components/atoms/stack/StackBlock.vue +1 -1
  16. package/components/atoms/table/dataGrid/DataGridPagination.vue +97 -97
  17. package/components/atoms/table/dataGrid/lib/config/settingsTable.ts +94 -94
  18. package/components/atoms/table/dataGrid/lib/utils/export.ts +16 -16
  19. package/components/common/backup/storage/actions/add/Add.vue +251 -251
  20. package/components/common/backup/storage/actions/add/lib/utils.ts +62 -62
  21. package/components/common/browse/blocks/contents/filesNew/Skeleton.vue +18 -18
  22. package/components/common/browse/blocks/lib/models/types.ts +1 -1
  23. package/components/common/browse/lib/models/interfaces.ts +5 -5
  24. package/components/common/diagramMain/network/Contents.vue +497 -497
  25. package/components/common/layout/theHeader/helpMenu/About.vue +79 -79
  26. package/components/common/layout/theHeader/helpMenu/aboutOld/AboutOld.vue +79 -79
  27. package/components/common/pages/backups/DetailView.vue +52 -52
  28. package/components/common/pages/backups/lib/models/interfaces.ts +36 -36
  29. package/components/common/pages/backups/modals/Modals.vue +243 -243
  30. package/components/common/pages/backups/modals/createBackup/configuration/Configuration.vue +29 -29
  31. package/components/common/pages/backups/modals/createBackup/configuration/maxBandwidth/lib/config/options.ts +6 -6
  32. package/components/common/pages/backups/modals/createBackup/datastores/tableView/TableView.vue +95 -95
  33. package/components/common/pages/backups/modals/createBackup/general/General.vue +141 -141
  34. package/components/common/pages/backups/modals/createBackup/lib/config/strategyOptions.ts +12 -12
  35. package/components/common/pages/backups/modals/lib/config/restore.ts +115 -115
  36. package/components/common/pages/backups/modals/lib/models/interfaces.ts +186 -186
  37. package/components/common/pages/backups/modals/restore/disks/Disks.vue +27 -27
  38. package/components/common/pages/backups/modals/restore/disks/tableView/lib/config/table.ts +117 -117
  39. package/components/common/pages/backups/modals/restore/name/Name.vue +166 -166
  40. package/components/common/pages/backups/modals/restore/name/lib/models/interfaces.ts +6 -6
  41. package/components/common/pages/backups/modals/restore/networks/Networks.vue +67 -67
  42. package/components/common/pages/backups/modals/restore/networks/table/Table.vue +214 -214
  43. package/components/common/pages/backups/modals/restore/types/lib/config/typeOptions.ts +25 -25
  44. package/components/common/pages/backups/tools/Tools.vue +75 -75
  45. package/components/common/pages/backups/tools/lib/config/tabs.ts +36 -36
  46. package/components/common/pages/home/lib/models/interfaces.ts +48 -48
  47. package/components/common/pages/home/widgets/hosts/Hosts.vue +27 -27
  48. package/components/common/pages/home/widgets/hosts/lib/config/items.ts +23 -23
  49. package/components/common/pages/home/widgets/vms/VmsOld.vue +35 -35
  50. package/components/common/pages/home/widgets/vms/lib/config/items.ts +19 -19
  51. package/components/common/pages/scheduledTasks/lib/utils/utils.ts +84 -84
  52. package/components/common/readyToComplete/ReadyToComplete.vue +17 -17
  53. package/components/common/select/radio/RadioGroup.vue +137 -137
  54. package/components/common/spiceConsole/Drawer.vue +392 -392
  55. package/components/common/spiceConsole/SpiceConsole.vue +184 -184
  56. package/components/common/spiceConsole/lib/models/interfaces.ts +5 -5
  57. package/components/common/tools/Actions.vue +207 -207
  58. package/components/common/treeView/TreeView.vue +52 -52
  59. package/components/common/vm/actions/add/Add.vue +895 -892
  60. package/components/common/vm/actions/add/New.vue +695 -693
  61. package/components/common/vm/actions/add/Old.vue +414 -412
  62. package/components/common/vm/actions/add/lib/config/steps.ts +347 -347
  63. package/components/common/vm/actions/clone/Clone.vue +863 -862
  64. package/components/common/vm/actions/common/customizeHardware/virtualHardware/cpu/Cpu.vue +368 -368
  65. package/components/common/vm/actions/common/customizeHardware/virtualHardware/cpu/shares/Shares.vue +140 -140
  66. package/components/common/vm/actions/common/customizeHardware/virtualHardware/cpu/shares/lib/config/options.ts +28 -28
  67. package/components/common/vm/actions/common/customizeHardware/virtualHardware/newHardDisk/location/Location.vue +154 -154
  68. package/components/common/vm/actions/common/customizeHardware/virtualHardware/newNetwork/location/new/table/Table.vue +99 -99
  69. package/components/common/vm/actions/common/customizeHardware/virtualHardware/newNetwork/macAddress/MacAddress.vue +119 -119
  70. package/components/common/vm/actions/common/customizeHardware/virtualHardware/newPciDevice/dynamicDirectPathIo/DynamicDirectPathIo.vue +31 -31
  71. package/components/common/vm/actions/common/customizeHardware/virtualHardware/other/Other.vue +16 -16
  72. package/components/common/vm/actions/common/customizeHardware/virtualHardware/videoCard/numberDisplays/NumberDisplays.vue +53 -53
  73. package/components/common/vm/actions/common/customizeHardware/vmoptions/bootOptions/delay/Delay.vue +32 -32
  74. package/components/common/vm/actions/common/customizeHardware/vmoptions/bootOptions/firmware/Firmware.vue +60 -60
  75. package/components/common/vm/actions/common/customizeHardware/vmoptions/bootOptions/order/Order.vue +174 -174
  76. package/components/common/vm/actions/common/customizeHardware/vmoptions/remoteConsoleOptions/keymap/Keymap.vue +32 -32
  77. package/components/common/vm/actions/common/customizeHardware/vmoptions/remoteConsoleOptions/password/Password.vue +103 -103
  78. package/components/common/vm/actions/common/customizeHardware/vmoptions/remoteConsoleOptions/usbRedirection/UsbRedirection.vue +28 -28
  79. package/components/common/vm/actions/common/select/compatibility/Old.vue +107 -107
  80. package/components/common/vm/actions/common/select/computeResource/ComputeResource.vue +143 -143
  81. package/components/common/vm/actions/common/select/computeResource/New.vue +184 -184
  82. package/components/common/vm/actions/common/select/computeResource/treeView/TreeView.vue +131 -131
  83. package/components/common/vm/actions/common/select/createType/CreateType.vue +38 -38
  84. package/components/common/vm/actions/common/select/createType/lib/models/interfaces.ts +5 -5
  85. package/components/common/vm/actions/common/select/os/Old.vue +152 -152
  86. package/components/common/vm/actions/common/select/os/Os.vue +139 -139
  87. package/components/common/vm/actions/common/select/storage/new/New.vue +320 -320
  88. package/components/common/vm/actions/common/select/storage/new/lib/models/interfaces.ts +5 -5
  89. package/components/common/vm/actions/common/select/storage/new/lib/utils/utils.ts +21 -21
  90. package/components/common/vm/actions/common/select/template/old/Old.vue +50 -50
  91. package/components/common/vm/actions/editSettings/new/Skeleton.vue +88 -88
  92. package/components/common/vm/actions/register/Register.vue +285 -284
  93. package/components/common/vm/actions/register/lib/config/steps.ts +86 -86
  94. package/components/common/{vm/actions/common/select → wizards/common/steps}/name/Name.vue +179 -178
  95. package/components/common/{vm/actions/common/select → wizards/common/steps}/name/New.vue +221 -221
  96. package/components/common/{vm/actions/common/select → wizards/common/steps}/name/Old.vue +121 -121
  97. package/components/common/{vm/actions/common/select → wizards/common/steps}/name/lib/models/interfaces.ts +4 -4
  98. package/components/common/{vm/actions/add/folderTreeView/FolderTreeView.vue → wizards/common/steps/name/location/Location.vue} +85 -85
  99. package/components/common/{vm/actions/add/folderTreeView → wizards/common/steps/name/location}/New.vue +40 -40
  100. package/components/common/wizards/datastore/add/Add.vue +228 -228
  101. package/components/common/wizards/datastore/add/lib/utils.ts +93 -93
  102. package/components/common/wizards/datastore/add/steps/typeMode/lib/config/typeOptions.ts +43 -43
  103. package/components/common/wizards/vm/migrate/select/network/Network.vue +103 -103
  104. package/composables/useAppVersion.ts +21 -21
  105. package/composables/useLocal.ts +6 -6
  106. package/composables/useLocalCommon.ts +39 -39
  107. package/package.json +1 -1
  108. package/plugins/date.ts +233 -233
  109. package/plugins/panelStates.ts +70 -70
  110. package/plugins/text.ts +59 -59
  111. package/public/spice-console/lib/images/bitmap.js +203 -203
  112. package/public/spice-console/network/spicechannel.js +440 -440
  113. package/public/spice-console/run.js +210 -210
  114. package/store/main/mutations.ts +7 -7
  115. package/store/main/state.ts +7 -7
  116. /package/components/common/{vm/actions/add/folderTreeView → wizards/common/steps/name/location}/Old.vue +0 -0
@@ -1,221 +1,221 @@
1
- <template>
2
- <div :class="['select-name', { 'pb-6': props.hasLocation }]">
3
- <client-only>
4
- <Teleport to="#name-alert-wrapper">
5
- <ui-alert
6
- v-show="props.errors.length"
7
- :messages="props.errors"
8
- status="alert-danger"
9
- test-id="name-alert"
10
- class="errors-alert"
11
- size="md"
12
- @hide="emits('remove-validation-errors')"
13
- />
14
- </Teleport>
15
- </client-only>
16
-
17
- <div class="name-field">
18
- <div class="flex-1 flex-align-center">
19
- <label :for="`${props.testIds.name}-name`" class="name-label">{{
20
- localization.common.name
21
- }}</label>
22
-
23
- <common-tooltip-help
24
- :title="localization.vmWizard.vmNameRules"
25
- :help-text="localization.common.nameValidationDescription"
26
- :test-id="props.testIds.helpIcon"
27
- help-id="name-icon"
28
- dropdown-left
29
- dropdown-width="320px"
30
- />
31
- </div>
32
-
33
- <div class="flex-2">
34
- <ui-input
35
- v-model="name"
36
- :placeholder="`${localization.common.name} (${localization.common.optional})`"
37
- type="text"
38
- maxlength="54"
39
- :test-id="props.testIds.name"
40
- />
41
- </div>
42
- </div>
43
-
44
- <template v-if="props.hasLocation">
45
- <div class="location">
46
- <span class="location-label">{{ localization.common.location }}</span>
47
-
48
- <div v-if="location" class="selected-location">
49
- <span :class="['node-icon', location.iconClassName]" />
50
- <span :class="['text', isShowAlert && 'error']">
51
- {{ location.name }}
52
- </span>
53
- </div>
54
- <ui-skeleton-item v-else width="160px" height="20px" />
55
- </div>
56
- <div class="tree-view-wrap">
57
- <common-vm-actions-add-folder-tree-view
58
- v-model:location="location"
59
- :nodes="props.locationNodes"
60
- />
61
- </div>
62
- </template>
63
- </div>
64
- </template>
65
-
66
- <script setup lang="ts">
67
- import type { UI_I_Localization } from '~/lib/models/interfaces'
68
- import type { UI_I_TreeNode } from '~/components/common/recursionTree/lib/models/interfaces'
69
- import type { UI_I_NameTestIds } from '~/components/common/vm/actions/common/select/name/lib/models/interfaces'
70
-
71
- const name = defineModel<string>('name', { required: true })
72
- const location = defineModel<UI_I_TreeNode | null>('location') // для сферы
73
-
74
- const props = defineProps<{
75
- hasLocation: boolean
76
- errors: string[]
77
- locationNodes: UI_I_TreeNode[]
78
- testIds: UI_I_NameTestIds
79
- }>()
80
- const emits = defineEmits<{
81
- (event: 'remove-validation-errors'): void
82
- }>()
83
-
84
- const localization = computed<UI_I_Localization>(() => useLocal())
85
-
86
- const isShowAlert = computed<boolean>(() =>
87
- props.errors.includes(
88
- localization.value.common.enterValidLocationVirtualMachine
89
- )
90
- )
91
- </script>
92
-
93
- <style>
94
- :root {
95
- --select-name-text-color: #4d5d69;
96
- --select-name-help-icon-hover-color: #4d5d69;
97
- --select-name-help-icon-active-color: #008fd6;
98
- --select-name-help-hide-icon-color: #213444;
99
- --select-name-border-color: #e9ebeda3;
100
- --select-name-location-node-color: #182531;
101
- --select-name-location-bg-color: #ffffff;
102
- }
103
- :root.dark-theme {
104
- --select-name-text-color: #e9eaec;
105
- --select-name-help-icon-hover-color: #e9eaec;
106
- --select-name-help-icon-active-color: #2ba2de;
107
- --select-name-help-hide-icon-color: #e9eaec;
108
- --select-name-border-color: #e9ebed1f;
109
- --select-name-location-node-color: #e9eaec;
110
- --select-name-location-bg-color: #1b2a371f;
111
- }
112
- </style>
113
- <style scoped lang="scss">
114
- .select-name {
115
- //height: 100%;
116
- min-height: 100%;
117
- height: max-content;
118
- display: flex;
119
- flex-direction: column;
120
- padding-top: 16px;
121
-
122
- .name-field {
123
- display: flex;
124
- align-items: center;
125
- column-gap: 16px;
126
-
127
- .name-label {
128
- font-size: 13px;
129
- color: var(--select-name-text-color);
130
- margin-right: 8px;
131
- overflow: hidden;
132
- text-overflow: ellipsis;
133
- white-space: nowrap;
134
- //max-width: 204px;
135
- max-width: 215px;
136
- }
137
- #virtual-machine-name-icon {
138
- color: #9da6ad; // equal in dark and white modes
139
- cursor: pointer;
140
-
141
- &:hover {
142
- color: var(--select-name-help-icon-hover-color);
143
- }
144
- &.active {
145
- color: var(--select-name-help-icon-active-color);
146
- }
147
- }
148
- }
149
-
150
- .location {
151
- display: grid;
152
- grid-template-columns: 1fr 2fr;
153
- margin-top: 16px;
154
- padding: 16px 0 8px;
155
- border-top: 1px solid var(--select-name-border-color);
156
- column-gap: 16px;
157
- height: 61px;
158
- align-items: center;
159
-
160
- .location-label {
161
- font-size: 13px;
162
- color: var(--select-name-text-color);
163
- overflow: hidden;
164
- text-overflow: ellipsis;
165
- white-space: nowrap;
166
- //max-width: 204px;
167
- }
168
-
169
- .selected-location {
170
- display: flex;
171
- align-items: center;
172
- gap: 8px;
173
-
174
- .node-icon {
175
- width: 20px;
176
- height: 20px;
177
- }
178
- .text {
179
- font-size: 13px;
180
- color: var(--select-name-location-node-color);
181
-
182
- &.error {
183
- color: #ea3223; // equal in dark and white modes
184
- }
185
- }
186
- }
187
- }
188
- .tree-view-wrap {
189
- flex: 1;
190
- border-radius: 8px;
191
- border: 1px solid var(--select-name-border-color);
192
- padding: 8px;
193
- background-color: var(--select-name-location-bg-color);
194
- max-height: 240px;
195
- overflow: auto;
196
-
197
- :deep(.skeleton-tree) {
198
- padding: 4px 8px;
199
-
200
- .skeleton-tree-row:last-child {
201
- display: none;
202
- }
203
- }
204
- :deep(.tree-content) {
205
- padding: 0 !important;
206
-
207
- .node-wrapper {
208
- border-radius: 4px;
209
-
210
- .node-name {
211
- font-size: 12px;
212
- margin-left: 8px;
213
- overflow: hidden;
214
- text-overflow: ellipsis;
215
- white-space: nowrap;
216
- }
217
- }
218
- }
219
- }
220
- }
221
- </style>
1
+ <template>
2
+ <div :class="['select-name', { 'pb-6': props.hasLocation }]">
3
+ <client-only>
4
+ <Teleport to="#name-alert-wrapper">
5
+ <ui-alert
6
+ v-show="props.errors.length"
7
+ :messages="props.errors"
8
+ status="alert-danger"
9
+ test-id="name-alert"
10
+ class="errors-alert"
11
+ size="md"
12
+ @hide="emits('remove-validation-errors')"
13
+ />
14
+ </Teleport>
15
+ </client-only>
16
+
17
+ <div class="name-field">
18
+ <div class="flex-1 flex-align-center">
19
+ <label :for="`${props.testIds.name}-name`" class="name-label">{{
20
+ localization.common.name
21
+ }}</label>
22
+
23
+ <common-tooltip-help
24
+ :title="localization.vmWizard.vmNameRules"
25
+ :help-text="localization.common.nameValidationDescription"
26
+ :test-id="props.testIds.helpIcon"
27
+ help-id="name-icon"
28
+ dropdown-left
29
+ dropdown-width="320px"
30
+ />
31
+ </div>
32
+
33
+ <div class="flex-2">
34
+ <ui-input
35
+ v-model="name"
36
+ :placeholder="`${localization.common.name} (${localization.common.optional})`"
37
+ type="text"
38
+ maxlength="54"
39
+ :test-id="props.testIds.name"
40
+ />
41
+ </div>
42
+ </div>
43
+
44
+ <template v-if="props.hasLocation">
45
+ <div class="location">
46
+ <span class="location-label">{{ localization.common.location }}</span>
47
+
48
+ <div v-if="location" class="selected-location">
49
+ <span :class="['node-icon', location.iconClassName]" />
50
+ <span :class="['text', isShowAlert && 'error']">
51
+ {{ location.name }}
52
+ </span>
53
+ </div>
54
+ <ui-skeleton-item v-else width="160px" height="20px" />
55
+ </div>
56
+ <div class="tree-view-wrap">
57
+ <common-wizards-common-steps-name-location
58
+ v-model:location="location"
59
+ :nodes="props.locationNodes"
60
+ />
61
+ </div>
62
+ </template>
63
+ </div>
64
+ </template>
65
+
66
+ <script setup lang="ts">
67
+ import type { UI_I_Localization } from '~/lib/models/interfaces'
68
+ import type { UI_I_TreeNode } from '~/components/common/recursionTree/lib/models/interfaces'
69
+ import type { UI_I_NameTestIds } from '~/components/common/wizards/common/steps/name/lib/models/interfaces'
70
+
71
+ const name = defineModel<string>('name', { required: true })
72
+ const location = defineModel<UI_I_TreeNode | null>('location') // для сферы
73
+
74
+ const props = defineProps<{
75
+ hasLocation: boolean
76
+ errors: string[]
77
+ locationNodes: UI_I_TreeNode[]
78
+ testIds: UI_I_NameTestIds
79
+ }>()
80
+ const emits = defineEmits<{
81
+ (event: 'remove-validation-errors'): void
82
+ }>()
83
+
84
+ const localization = computed<UI_I_Localization>(() => useLocal())
85
+
86
+ const isShowAlert = computed<boolean>(() =>
87
+ props.errors.includes(
88
+ localization.value.common.enterValidLocationVirtualMachine
89
+ )
90
+ )
91
+ </script>
92
+
93
+ <style>
94
+ :root {
95
+ --select-name-text-color: #4d5d69;
96
+ --select-name-help-icon-hover-color: #4d5d69;
97
+ --select-name-help-icon-active-color: #008fd6;
98
+ --select-name-help-hide-icon-color: #213444;
99
+ --select-name-border-color: #e9ebeda3;
100
+ --select-name-location-node-color: #182531;
101
+ --select-name-location-bg-color: #ffffff;
102
+ }
103
+ :root.dark-theme {
104
+ --select-name-text-color: #e9eaec;
105
+ --select-name-help-icon-hover-color: #e9eaec;
106
+ --select-name-help-icon-active-color: #2ba2de;
107
+ --select-name-help-hide-icon-color: #e9eaec;
108
+ --select-name-border-color: #e9ebed1f;
109
+ --select-name-location-node-color: #e9eaec;
110
+ --select-name-location-bg-color: #1b2a371f;
111
+ }
112
+ </style>
113
+ <style scoped lang="scss">
114
+ .select-name {
115
+ //height: 100%;
116
+ min-height: 100%;
117
+ height: max-content;
118
+ display: flex;
119
+ flex-direction: column;
120
+ padding-top: 16px;
121
+
122
+ .name-field {
123
+ display: flex;
124
+ align-items: center;
125
+ column-gap: 16px;
126
+
127
+ .name-label {
128
+ font-size: 13px;
129
+ color: var(--select-name-text-color);
130
+ margin-right: 8px;
131
+ overflow: hidden;
132
+ text-overflow: ellipsis;
133
+ white-space: nowrap;
134
+ //max-width: 204px;
135
+ max-width: 215px;
136
+ }
137
+ #virtual-machine-name-icon {
138
+ color: #9da6ad; // equal in dark and white modes
139
+ cursor: pointer;
140
+
141
+ &:hover {
142
+ color: var(--select-name-help-icon-hover-color);
143
+ }
144
+ &.active {
145
+ color: var(--select-name-help-icon-active-color);
146
+ }
147
+ }
148
+ }
149
+
150
+ .location {
151
+ display: grid;
152
+ grid-template-columns: 1fr 2fr;
153
+ margin-top: 16px;
154
+ padding: 16px 0 8px;
155
+ border-top: 1px solid var(--select-name-border-color);
156
+ column-gap: 16px;
157
+ height: 61px;
158
+ align-items: center;
159
+
160
+ .location-label {
161
+ font-size: 13px;
162
+ color: var(--select-name-text-color);
163
+ overflow: hidden;
164
+ text-overflow: ellipsis;
165
+ white-space: nowrap;
166
+ //max-width: 204px;
167
+ }
168
+
169
+ .selected-location {
170
+ display: flex;
171
+ align-items: center;
172
+ gap: 8px;
173
+
174
+ .node-icon {
175
+ width: 20px;
176
+ height: 20px;
177
+ }
178
+ .text {
179
+ font-size: 13px;
180
+ color: var(--select-name-location-node-color);
181
+
182
+ &.error {
183
+ color: #ea3223; // equal in dark and white modes
184
+ }
185
+ }
186
+ }
187
+ }
188
+ .tree-view-wrap {
189
+ flex: 1;
190
+ border-radius: 8px;
191
+ border: 1px solid var(--select-name-border-color);
192
+ padding: 8px;
193
+ background-color: var(--select-name-location-bg-color);
194
+ max-height: 240px;
195
+ overflow: auto;
196
+
197
+ :deep(.skeleton-tree) {
198
+ padding: 4px 8px;
199
+
200
+ .skeleton-tree-row:last-child {
201
+ display: none;
202
+ }
203
+ }
204
+ :deep(.tree-content) {
205
+ padding: 0 !important;
206
+
207
+ .node-wrapper {
208
+ border-radius: 4px;
209
+
210
+ .node-name {
211
+ font-size: 12px;
212
+ margin-left: 8px;
213
+ overflow: hidden;
214
+ text-overflow: ellipsis;
215
+ white-space: nowrap;
216
+ }
217
+ }
218
+ }
219
+ }
220
+ }
221
+ </style>