bfg-common 1.1.63 → 1.1.64

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 (92) hide show
  1. package/assets/localization/local_be.json +1 -1
  2. package/assets/localization/local_hy.json +1 -1
  3. package/assets/localization/local_kk.json +1 -1
  4. package/assets/localization/local_ru.json +1 -1
  5. package/components/atoms/alert/Notification.vue +167 -167
  6. package/components/atoms/autocomplete/Autocomplete.vue +236 -236
  7. package/components/atoms/datepicker/Datepicker.vue +612 -612
  8. package/components/atoms/list/SelectList.vue +62 -62
  9. package/components/atoms/nav/NavBar.vue +116 -116
  10. package/components/atoms/nav/VerticalNavBar.vue +89 -89
  11. package/components/atoms/notificationBar/NotificationBar.vue +175 -175
  12. package/components/atoms/perPage/PerPage.vue +52 -52
  13. package/components/atoms/popup/SimplePopup.vue +90 -90
  14. package/components/atoms/step/VerticalStep.vue +104 -104
  15. package/components/atoms/switch/Switch.vue +107 -107
  16. package/components/atoms/table/dataGrid/DataGridColumnSwitch.vue +206 -206
  17. package/components/atoms/table/dataGrid/DataGridPage.vue +189 -189
  18. package/components/atoms/tabs/Tabs.vue +189 -189
  19. package/components/atoms/tooltip/Signpost.vue +224 -224
  20. package/components/common/adapterManager/AddAdapterWarningModal.vue +82 -82
  21. package/components/common/adapterManager/NoActiveAdaptersModal.vue +62 -62
  22. package/components/common/adapterManager/NoConnectedActiveAdaptersModal.vue +62 -62
  23. package/components/common/browse/Browse.vue +182 -182
  24. package/components/common/browse/blocks/Title.vue +66 -66
  25. package/components/common/diagramMain/Diagram.vue +186 -186
  26. package/components/common/diagramMain/DiagramMain.vue +986 -986
  27. package/components/common/diagramMain/adapter/AdapterItem.vue +227 -227
  28. package/components/common/diagramMain/adapter/AdapterItems.vue +57 -57
  29. package/components/common/diagramMain/modals/editSettings/tabs/port/IpvFourSettings.vue +339 -339
  30. package/components/common/diagramMain/modals/editSettings/tabs/port/PortProperties.vue +202 -202
  31. package/components/common/diagramMain/modals/remove/RemoveModal.vue +226 -226
  32. package/components/common/diagramMain/network/Contents.vue +238 -238
  33. package/components/common/feedback/Buttons.vue +232 -232
  34. package/components/common/feedback/Message.vue +468 -468
  35. package/components/common/feedback/VisitPortal.vue +54 -54
  36. package/components/common/graph/Graph.vue +18 -20
  37. package/components/common/help/navbar/left/Left.vue +159 -159
  38. package/components/common/help/navbar/left/utils/constructAccordion.ts +27 -27
  39. package/components/common/mainNavigationPanel/MainNavigationPanel.vue +359 -359
  40. package/components/common/modals/Rename.vue +165 -165
  41. package/components/common/monitor/advanced/Advanced.vue +3 -33
  42. package/components/common/monitor/advanced/GraphView.vue +4 -4
  43. package/components/common/monitor/advanced/table/Table.vue +5 -5
  44. package/components/common/monitor/advanced/tools/Tools.vue +27 -91
  45. package/components/common/monitor/advanced/tools/chartOptionsModal/ChartOptionsModal.vue +17 -101
  46. package/components/common/monitor/advanced/tools/chartOptionsModal/counters/Counters.vue +7 -25
  47. package/components/common/monitor/advanced/tools/chartOptionsModal/counters/table/config/utils.ts +0 -55
  48. package/components/common/monitor/advanced/tools/chartOptionsModal/counters/table/models/interfaces.ts +1 -1
  49. package/components/common/monitor/advanced/tools/chartOptionsModal/counters/timespan/Timespan.vue +3 -32
  50. package/components/common/monitor/advanced/tools/chartOptionsModal/counters/timespan/form/Form.vue +8 -25
  51. package/components/common/monitor/advanced/tools/chartOptionsModal/counters/timespan/object/Object.vue +19 -41
  52. package/components/common/monitor/advanced/tools/chartOptionsModal/counters/timespan/object/models/interfaces.ts +1 -1
  53. package/components/common/monitor/advanced/tools/config/advancedToolbar.ts +38 -50
  54. package/components/common/monitor/config/getValidDateByOption.ts +6 -105
  55. package/components/common/monitor/overview/filters/Filters.vue +6 -6
  56. package/components/common/monitor/overview/filters/customIntervalModal/CustomIntervalModal.vue +8 -8
  57. package/components/common/monitor/overview/filters/customIntervalModal/config/dateChecker.ts +1 -1
  58. package/components/common/perPage/PerPage.vue +51 -51
  59. package/components/common/recursionTree/RecursionTree.vue +201 -201
  60. package/components/common/vm/actions/add/customizeHardware/virtualHardware/VirtualHardware.vue +641 -642
  61. package/components/common/vm/actions/add/customizeHardware/virtualHardware/cdDvdDrive/CdDvdDrive.vue +245 -274
  62. package/components/common/vm/actions/add/customizeHardware/virtualHardware/cpu/Cpu.vue +375 -375
  63. package/components/common/vm/actions/add/customizeHardware/virtualHardware/limit/Limit.vue +234 -234
  64. package/components/common/vm/actions/add/customizeHardware/virtualHardware/limit/config/options.ts +28 -28
  65. package/components/common/vm/actions/add/customizeHardware/virtualHardware/memory/Memory.vue +316 -316
  66. package/components/common/vm/actions/add/customizeHardware/virtualHardware/memory/config/memoryOptions.ts +35 -35
  67. package/components/common/vm/actions/add/customizeHardware/virtualHardware/newHardDisk/NewHardDisk.vue +447 -447
  68. package/components/common/vm/actions/add/customizeHardware/virtualHardware/newNetwork/NewNetwork.vue +1 -1
  69. package/components/common/vm/actions/add/customizeHardware/virtualHardware/reservation/Reservation.vue +235 -235
  70. package/components/common/vm/actions/add/customizeHardware/vmoptions/bootOptions/order/Order.vue +203 -195
  71. package/components/common/vm/actions/add/select/storage/config/config.ts +154 -154
  72. package/components/common/wizards/datastore/add/nfs/configuration/Configuration.vue +373 -373
  73. package/components/common/wizards/datastore/add/nfs/configuration/serversList/ServersList.vue +123 -123
  74. package/components/common/wizards/datastore/add/nfs/kerberosAuthentication/KerberosAuthentication.vue +54 -54
  75. package/components/common/wizards/datastore/add/sharedStorm/deviceSelection/hostTable/HostTable.vue +131 -131
  76. package/components/common/wizards/datastore/add/sharedStorm/partitionConfiguration/PartitionConfiguration.vue +230 -230
  77. package/models/store/interfaces.ts +37 -37
  78. package/models/store/storage/interfaces.ts +32 -32
  79. package/models/store/types.ts +32 -32
  80. package/modules/fixContentBuild/utils/methods.ts +114 -114
  81. package/package.json +1 -1
  82. package/public/spice-console/application/codec.js +257 -257
  83. package/public/spice-console/lib/rasterEngine.js +907 -907
  84. package/public/spice-console/network/spicechannel.js +369 -369
  85. package/public/spice-console-minify/lib/decoder/dixie.min.js +4 -4
  86. package/public/spice-console-minify/lib/jgestures.min.js +24 -24
  87. package/public/spice-console-minify/lib/jquery-2.0.3.min.js +24 -24
  88. package/public/spice-console-minify/lib/jquery-mousewheel.min.js +11 -11
  89. package/public/spice-console-minify/lib/jquery-visibility.min.js +1 -1
  90. package/public/spice-console-minify/lib/lodash.4.0.0.min.js +5 -5
  91. package/utils/contentBuild.ts +34 -34
  92. package/components/common/monitor/advanced/tools/utils/countCores.ts +0 -7
@@ -1,195 +1,203 @@
1
- <template>
2
- <div class="boot-orders">
3
- <atoms-stack-block :has-children="false">
4
- <template #stackBlockKey>
5
- {{ localization.bootOrder }}
6
- </template>
7
- <template #stackBlockContent>
8
- <atoms-list-drag-drop-list
9
- :items="bootList"
10
- grab-item-key="text"
11
- @drop="onChangeOrder"
12
- >
13
- <template
14
- v-for="(item, index) in bootList"
15
- :key="index"
16
- #[`leftSide${index}`]
17
- >
18
- <input
19
- v-model="item.isChecked"
20
- :id="`boot-order-${index}`"
21
- type="checkbox"
22
- />
23
- </template>
24
- <template
25
- v-for="(item, index) in bootList"
26
- :key="index + 5"
27
- #[`rightSide${index}`]
28
- >
29
- <div :class="['device-icon', item.iconClassName]" />
30
- <span>{{ item.text }}</span>
31
- </template>
32
- </atoms-list-drag-drop-list>
33
- </template>
34
- </atoms-stack-block>
35
- </div>
36
- </template>
37
-
38
- <script setup lang="ts">
39
- import type { UI_I_BootItem } from '~/components/common/vm/actions/add/customizeHardware/vmoptions/bootOptions/order/models/interfaces'
40
- import {
41
- UI_I_SendDataNewCdDvdDrive,
42
- UI_I_SendDataNewHardDisk,
43
- UI_I_SendDataNewNetwork,
44
- } from '~/components/common/vm/actions/add/customizeHardware/virtualHardware/models/interfaces'
45
- import { UI_I_Localization } from '~/models/interfaces'
46
- import { UI_I_DropEvent } from '~/components/atoms/list/dragDropList/config/events'
47
-
48
- const localization = computed<UI_I_Localization>(() => useLocal())
49
-
50
- const props = defineProps<{
51
- hardDisks: UI_I_SendDataNewHardDisk[] | null
52
- cdDvdDrives: UI_I_SendDataNewCdDvdDrive[] | null
53
- networks: UI_I_SendDataNewNetwork[] | null
54
- }>()
55
- const emits = defineEmits<{
56
- (
57
- event: 'change',
58
- value: [
59
- UI_I_SendDataNewHardDisk[],
60
- UI_I_SendDataNewCdDvdDrive[],
61
- UI_I_SendDataNewNetwork[]
62
- ]
63
- ): void
64
- }>()
65
-
66
- const bootList = ref<UI_I_BootItem[]>([])
67
-
68
- const hardDisksAndNetworks = computed<
69
- [
70
- UI_I_SendDataNewHardDisk[] | null,
71
- UI_I_SendDataNewCdDvdDrive[] | null,
72
- UI_I_SendDataNewNetwork[] | null
73
- ]
74
- >(() => [props.hardDisks, props.cdDvdDrives, props.networks])
75
- watch(
76
- hardDisksAndNetworks,
77
- (
78
- newValue: [
79
- UI_I_SendDataNewHardDisk[] | null,
80
- UI_I_SendDataNewCdDvdDrive[] | null,
81
- UI_I_SendDataNewNetwork[] | null
82
- ]
83
- ) => {
84
- const hardDisks: UI_I_BootItem[] =
85
- newValue[0]?.map((item, index) => {
86
- return {
87
- isChecked: true,
88
- order: item.boot_order || 0,
89
- text: `disk${index}`,
90
- iconClassName: 'icon-disk',
91
- type: 'disk',
92
- name: item.source + index,
93
- }
94
- }) || []
95
- const cdDvdDrives: UI_I_BootItem[] =
96
- newValue[1]?.map((item, index) => {
97
- return {
98
- isChecked: true,
99
- order: item.boot_order || 0,
100
- text: `cdrom${index}`,
101
- iconClassName: 'icon-disk',
102
- type: 'cdDvd',
103
- name: item.source + index,
104
- }
105
- }) || []
106
- const networks: UI_I_BootItem[] =
107
- newValue[2]?.map((item, index) => {
108
- return {
109
- isChecked: true,
110
- order: item.boot_order || 0,
111
- text: `nic${index}`,
112
- iconClassName: 'vsphere-icon-network',
113
- type: 'nic',
114
- name: item.network + index,
115
- }
116
- }) || []
117
-
118
- bootList.value = [...hardDisks, ...cdDvdDrives, ...networks].sort(
119
- (a, b) => a.order - b.order
120
- )
121
- },
122
- { deep: true, immediate: true }
123
- )
124
-
125
- const onChangeOrder = (event: UI_I_DropEvent): void => {
126
- let order = -1
127
- bootList.value = bootList.value
128
- .map((item) => {
129
- if (item === event.target) {
130
- item.order = event.toPosition
131
- return item
132
- }
133
-
134
- item.order = order + 1 === event.toPosition ? (order += 2) : order++
135
-
136
- return item
137
- })
138
- .sort((a, b) => a.order - b.order)
139
- }
140
-
141
- watch(
142
- bootList,
143
- (newValue) => {
144
- const boots = newValue.filter((item) => item.isChecked).map((item) => item)
145
-
146
- const networks: UI_I_SendDataNewNetwork[] = []
147
- const hardDisks: UI_I_SendDataNewHardDisk[] = []
148
- const cdDvdDrives: UI_I_SendDataNewCdDvdDrive[] = []
149
- boots.forEach((boot, index) => {
150
- if (boot.type === 'nic') {
151
- const network = props.networks?.find(
152
- (network, index2) => network.network + index2 === boot.name
153
- )
154
- if (network) {
155
- networks.push({
156
- ...network,
157
- boot_order: index + 1,
158
- })
159
- }
160
- } else if (boot.type === 'disk') {
161
- const hardDisk = props.hardDisks?.find(
162
- (hardDisk, index2) => hardDisk.source + index2 === boot.name
163
- )
164
- if (hardDisk) {
165
- hardDisks.push({
166
- ...hardDisk,
167
- boot_order: index + 1,
168
- })
169
- }
170
- } else {
171
- const cdDvdDrive = props.cdDvdDrives?.find(
172
- (cdDvdDrive, index2) => cdDvdDrive.source + index2 === boot.name
173
- )
174
- if (cdDvdDrive) {
175
- cdDvdDrives.push({
176
- ...cdDvdDrive,
177
- boot_order: index + 1,
178
- })
179
- }
180
- }
181
- })
182
-
183
- emits('change', [hardDisks, cdDvdDrives, networks])
184
- },
185
- { deep: true, immediate: true }
186
- )
187
- </script>
188
-
189
- <style scoped lang="scss">
190
- .boot-orders {
191
- .device-icon {
192
- margin-right: 6px;
193
- }
194
- }
195
- </style>
1
+ <template>
2
+ <div class="boot-orders">
3
+ <atoms-stack-block :has-children="false">
4
+ <template #stackBlockKey>
5
+ {{ localization.bootOrder }}
6
+ </template>
7
+ <template #stackBlockContent>
8
+ <atoms-list-drag-drop-list
9
+ :items="bootList"
10
+ grab-item-key="text"
11
+ @drop="onChangeOrder"
12
+ >
13
+ <template
14
+ v-for="(item, index) in bootList"
15
+ :key="index"
16
+ #[`leftSide${index}`]
17
+ >
18
+ <input
19
+ v-model="item.isChecked"
20
+ :id="`boot-order-${index}`"
21
+ type="checkbox"
22
+ />
23
+ </template>
24
+ <template
25
+ v-for="(item, index) in bootList"
26
+ :key="index + 5"
27
+ #[`rightSide${index}`]
28
+ >
29
+ <div :class="['device-icon', item.iconClassName]" />
30
+ <span>{{ item.text }}</span>
31
+ </template>
32
+ </atoms-list-drag-drop-list>
33
+ </template>
34
+ </atoms-stack-block>
35
+ </div>
36
+ </template>
37
+
38
+ <script setup lang="ts">
39
+ import type { UI_I_BootItem } from '~/components/common/vm/actions/add/customizeHardware/vmoptions/bootOptions/order/models/interfaces'
40
+ import {
41
+ UI_I_SendDataNewCdDvdDrive,
42
+ UI_I_SendDataNewHardDisk,
43
+ UI_I_SendDataNewNetwork,
44
+ } from '~/components/common/vm/actions/add/customizeHardware/virtualHardware/models/interfaces'
45
+ import { UI_I_Localization } from '~/models/interfaces'
46
+ import { UI_I_DropEvent } from '~/components/atoms/list/dragDropList/config/events'
47
+
48
+ const localization = computed<UI_I_Localization>(() => useLocal())
49
+
50
+ const props = defineProps<{
51
+ hardDisks: UI_I_SendDataNewHardDisk[] | null
52
+ cdDvdDrives: UI_I_SendDataNewCdDvdDrive[] | null
53
+ networks: UI_I_SendDataNewNetwork[] | null
54
+ }>()
55
+ const emits = defineEmits<{
56
+ (
57
+ event: 'change',
58
+ value: [
59
+ UI_I_SendDataNewHardDisk[],
60
+ UI_I_SendDataNewCdDvdDrive[],
61
+ UI_I_SendDataNewNetwork[]
62
+ ]
63
+ ): void
64
+ }>()
65
+
66
+ const bootList = ref<UI_I_BootItem[]>([])
67
+
68
+ const hardDisksAndNetworks = computed<
69
+ [
70
+ UI_I_SendDataNewHardDisk[] | null,
71
+ UI_I_SendDataNewCdDvdDrive[] | null,
72
+ UI_I_SendDataNewNetwork[] | null
73
+ ]
74
+ >(() => [props.hardDisks, props.cdDvdDrives, props.networks])
75
+ watch(
76
+ hardDisksAndNetworks,
77
+ (
78
+ newValue: [
79
+ UI_I_SendDataNewHardDisk[] | null,
80
+ UI_I_SendDataNewCdDvdDrive[] | null,
81
+ UI_I_SendDataNewNetwork[] | null
82
+ ]
83
+ ) => {
84
+ const hardDisks: UI_I_BootItem[] =
85
+ newValue[0]?.map((item, index) => {
86
+ const order = item.boot_order || 0
87
+ return {
88
+ order,
89
+ isChecked: !!order,
90
+ text: `disk${index}`,
91
+ iconClassName: 'icon-disk',
92
+ type: 'disk',
93
+ name: item.source + index,
94
+ }
95
+ }) || []
96
+ const cdDvdDrives: UI_I_BootItem[] =
97
+ newValue[1]?.map((item, index) => {
98
+ const order = item.boot_order || 0
99
+ return {
100
+ order,
101
+ isChecked: !!order,
102
+ text: `cdrom${index}`,
103
+ iconClassName: 'icon-disk',
104
+ type: 'cdDvd',
105
+ name: item.source + index,
106
+ }
107
+ }) || []
108
+ const networks: UI_I_BootItem[] =
109
+ newValue[2]?.map((item, index) => {
110
+ const order = item.boot_order || 0
111
+ return {
112
+ order,
113
+ isChecked: !!order,
114
+ text: `nic${index} ${item.mac || undefined} mac`,
115
+ iconClassName: 'vsphere-icon-network',
116
+ type: 'nic',
117
+ name: item.network + index,
118
+ }
119
+ }) || []
120
+
121
+ bootList.value = [...hardDisks, ...cdDvdDrives, ...networks].sort(
122
+ (a, b) => a.order - b.order
123
+ )
124
+ },
125
+ { deep: true, immediate: true }
126
+ )
127
+
128
+ const onChangeOrder = (event: UI_I_DropEvent): void => {
129
+ let order = -1
130
+ bootList.value = bootList.value
131
+ .map((item) => {
132
+ if (item === event.target) {
133
+ item.order = event.toPosition
134
+ return item
135
+ }
136
+
137
+ item.order = order + 1 === event.toPosition ? (order += 2) : order++
138
+
139
+ return item
140
+ })
141
+ .sort((a, b) => a.order - b.order)
142
+ }
143
+
144
+ watch(
145
+ bootList,
146
+ (newValue) => {
147
+ // const boots = newValue.filter((item) => item.isChecked).map((item) => item)
148
+ // const boots = newValue.map((item) => {
149
+ // if (!item.isChecked) item.boot_order = 0
150
+ // return item
151
+ // })
152
+
153
+ const networks: UI_I_SendDataNewNetwork[] = []
154
+ const hardDisks: UI_I_SendDataNewHardDisk[] = []
155
+ const cdDvdDrives: UI_I_SendDataNewCdDvdDrive[] = []
156
+ let index = 0
157
+ newValue.forEach((boot) => {
158
+ if (boot.type === 'nic') {
159
+ const network = props.networks?.find(
160
+ (network, index2) => network.network + index2 === boot.name
161
+ )
162
+ if (network) {
163
+ networks.push({
164
+ ...network,
165
+ boot_order: boot.isChecked ? ++index : 0,
166
+ })
167
+ }
168
+ } else if (boot.type === 'disk') {
169
+ const hardDisk = props.hardDisks?.find(
170
+ (hardDisk, index2) => hardDisk.source + index2 === boot.name
171
+ )
172
+ if (hardDisk) {
173
+ hardDisks.push({
174
+ ...hardDisk,
175
+ boot_order: boot.isChecked ? ++index : 0,
176
+ })
177
+ }
178
+ } else {
179
+ const cdDvdDrive = props.cdDvdDrives?.find(
180
+ (cdDvdDrive, index2) => cdDvdDrive.source + index2 === boot.name
181
+ )
182
+ if (cdDvdDrive) {
183
+ cdDvdDrives.push({
184
+ ...cdDvdDrive,
185
+ boot_order: boot.isChecked ? ++index : 0,
186
+ })
187
+ }
188
+ }
189
+ })
190
+
191
+ emits('change', [hardDisks, cdDvdDrives, networks])
192
+ },
193
+ { deep: true, immediate: true }
194
+ )
195
+ </script>
196
+
197
+ <style scoped lang="scss">
198
+ .boot-orders {
199
+ .device-icon {
200
+ margin-right: 6px;
201
+ }
202
+ }
203
+ </style>