bfg-common 1.1.31 → 1.1.32

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 (76) hide show
  1. package/assets/localization/local_be.json +1 -4
  2. package/assets/localization/local_en.json +1 -4
  3. package/assets/localization/local_hy.json +1 -4
  4. package/assets/localization/local_kk.json +1 -4
  5. package/assets/localization/local_ru.json +1 -4
  6. package/assets/localization/local_zh.json +1 -4
  7. package/components/atoms/alert/Notification.vue +167 -167
  8. package/components/atoms/autocomplete/Autocomplete.vue +236 -236
  9. package/components/atoms/datepicker/Datepicker.vue +612 -612
  10. package/components/atoms/list/SelectList.vue +62 -62
  11. package/components/atoms/nav/NavBar.vue +116 -116
  12. package/components/atoms/nav/VerticalNavBar.vue +89 -89
  13. package/components/atoms/notificationBar/NotificationBar.vue +174 -174
  14. package/components/atoms/perPage/PerPage.vue +52 -52
  15. package/components/atoms/popup/SimplePopup.vue +90 -90
  16. package/components/atoms/step/VerticalStep.vue +104 -104
  17. package/components/atoms/switch/Switch.vue +107 -107
  18. package/components/atoms/table/dataGrid/DataGrid.vue +5 -3
  19. package/components/atoms/table/dataGrid/DataGridColumnSwitch.vue +204 -204
  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/adapterManager/AddAdapterWarningModal.vue +82 -82
  24. package/components/common/adapterManager/NoActiveAdaptersModal.vue +62 -62
  25. package/components/common/adapterManager/NoConnectedActiveAdaptersModal.vue +62 -62
  26. package/components/common/browse/Browse.vue +182 -182
  27. package/components/common/browse/blocks/Title.vue +66 -66
  28. package/components/common/diagramMain/adapter/AdapterItem.vue +227 -227
  29. package/components/common/diagramMain/adapter/AdapterItems.vue +57 -57
  30. package/components/common/diagramMain/modals/editSettings/tabs/port/IpvFourSettings.vue +339 -339
  31. package/components/common/diagramMain/modals/editSettings/tabs/port/PortProperties.vue +202 -202
  32. package/components/common/diagramMain/modals/remove/RemoveModal.vue +226 -226
  33. package/components/common/diagramMain/network/Contents.vue +238 -238
  34. package/components/common/feedback/Buttons.vue +232 -232
  35. package/components/common/feedback/Message.vue +468 -468
  36. package/components/common/feedback/VisitPortal.vue +54 -54
  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/Confirmation.vue +4 -18
  41. package/components/common/modals/Rename.vue +165 -165
  42. package/components/common/monitor/advanced/Advanced.vue +0 -22
  43. package/components/common/monitor/advanced/tools/Tools.vue +7 -78
  44. package/components/common/monitor/advanced/tools/chartOptionsModal/ChartOptionsModal.vue +9 -218
  45. package/components/common/monitor/advanced/tools/chartOptionsModal/actions/Actions.vue +9 -80
  46. package/components/common/monitor/advanced/tools/chartOptionsModal/actions/config/optionsActions.ts +10 -22
  47. package/components/common/monitor/advanced/tools/chartOptionsModal/actions/saveOptionsModal/SaveOptionsModal.vue +4 -27
  48. package/components/common/monitor/advanced/tools/chartOptionsModal/counters/Counters.vue +0 -16
  49. package/components/common/monitor/advanced/tools/chartOptionsModal/counters/timespan/Timespan.vue +0 -16
  50. package/components/common/monitor/advanced/tools/chartOptionsModal/counters/timespan/form/Form.vue +29 -100
  51. package/components/common/monitor/advanced/tools/config/advancedToolbar.ts +3 -29
  52. package/components/common/perPage/PerPage.vue +51 -51
  53. package/components/common/recursionTree/RecursionTree.vue +201 -201
  54. package/components/common/vm/actions/add/customizeHardware/virtualHardware/newHardDisk/NewHardDisk.vue +445 -445
  55. package/components/common/vm/actions/add/select/storage/config/config.ts +154 -154
  56. package/components/common/wizards/datastore/add/nfs/configuration/Configuration.vue +373 -373
  57. package/components/common/wizards/datastore/add/nfs/configuration/serversList/ServersList.vue +123 -123
  58. package/components/common/wizards/datastore/add/nfs/kerberosAuthentication/KerberosAuthentication.vue +54 -54
  59. package/components/common/wizards/datastore/add/sharedStorm/deviceSelection/hostTable/HostTable.vue +131 -131
  60. package/components/common/wizards/datastore/add/sharedStorm/partitionConfiguration/PartitionConfiguration.vue +230 -230
  61. package/models/store/interfaces.ts +37 -37
  62. package/models/store/storage/interfaces.ts +32 -32
  63. package/models/store/types.ts +32 -32
  64. package/modules/fixContentBuild/index.ts +92 -92
  65. package/modules/fixContentBuild/utils/methods.ts +114 -114
  66. package/package.json +1 -1
  67. package/public/spice-console/application/codec.js +257 -257
  68. package/public/spice-console/lib/rasterEngine.js +907 -907
  69. package/public/spice-console/network/spicechannel.js +369 -369
  70. package/public/spice-console-minify/lib/decoder/dixie.min.js +4 -4
  71. package/public/spice-console-minify/lib/jgestures.min.js +24 -24
  72. package/public/spice-console-minify/lib/jquery-2.0.3.min.js +24 -24
  73. package/public/spice-console-minify/lib/jquery-mousewheel.min.js +11 -11
  74. package/public/spice-console-minify/lib/jquery-visibility.min.js +1 -1
  75. package/public/spice-console-minify/lib/lodash.4.0.0.min.js +5 -5
  76. package/utils/contentBuild.ts +34 -34
@@ -11,7 +11,7 @@
11
11
  <div class="select">
12
12
  <select
13
13
  id="chart-timespan-type-select"
14
- v-model="localSelectedTimespan"
14
+ v-model="selectedTimespan"
15
15
  >
16
16
  <option
17
17
  v-for="(item, index) in timespanOptions"
@@ -27,7 +27,7 @@
27
27
  <div
28
28
  :class="[
29
29
  'custom-timespan-settings-container',
30
- { active: localSelectedTimespan === 'custom_interval' },
30
+ { active: selectedTimespan === 'custom_interval' },
31
31
  ]"
32
32
  >
33
33
  <table>
@@ -36,7 +36,7 @@
36
36
  <td class="relative">
37
37
  <input
38
38
  id="custom-time-lastInput"
39
- v-model="localPeriodType"
39
+ v-model="timespanRadioSelect"
40
40
  type="radio"
41
41
  value="last"
42
42
  class="custom-radio-button"
@@ -52,12 +52,12 @@
52
52
  <div
53
53
  :class="[
54
54
  'custom-timespan-type-last-container',
55
- { active: localPeriodType === 'last' },
55
+ { active: timespanRadioSelect === 'last' },
56
56
  ]"
57
57
  >
58
58
  <input
59
59
  id="chart-option-setting-row"
60
- v-model="localLast"
60
+ v-model="last"
61
61
  type="number"
62
62
  class="chart-option-setting-row custom-time-input"
63
63
  />
@@ -70,7 +70,7 @@
70
70
  <div class="select">
71
71
  <select
72
72
  id="chart-timespan-type-select"
73
- v-model="localSelectedCustomTime"
73
+ v-model="selectedCustomTime"
74
74
  >
75
75
  <option
76
76
  v-for="(item, index) in customTimeOptions"
@@ -90,9 +90,9 @@
90
90
  <td class="relative">
91
91
  <input
92
92
  id="custom-time-fromInput"
93
- v-model="localPeriodType"
93
+ v-model="timespanRadioSelect"
94
94
  type="radio"
95
- value="period"
95
+ value="from"
96
96
  class="custom-radio-button"
97
97
  name="lastFrom"
98
98
  />
@@ -106,7 +106,7 @@
106
106
  <div
107
107
  :class="[
108
108
  'date-container-row disabled-container calendar-date-row',
109
- { active: localPeriodType === 'period' },
109
+ { active: timespanRadioSelect === 'from' },
110
110
  ]"
111
111
  >
112
112
  <input
@@ -140,7 +140,7 @@
140
140
  <div
141
141
  :class="[
142
142
  'date-container-row disabled-container calendar-date-row',
143
- { active: localPeriodType === 'period' },
143
+ { active: timespanRadioSelect === 'from' },
144
144
  ]"
145
145
  >
146
146
  <input
@@ -171,7 +171,7 @@
171
171
  <td
172
172
  :class="[
173
173
  'disabled-container',
174
- { active: localPeriodType === 'period' },
174
+ { active: timespanRadioSelect === 'from' },
175
175
  ]"
176
176
  >
177
177
  <span> ({{ localization.isoTimeFormat }}) </span>
@@ -217,18 +217,10 @@ import {
217
217
  const props = defineProps<{
218
218
  language: string
219
219
  selectedChartType: string
220
- selectedTimespanType: string
221
- unitsCount: number
222
- periodType: string
223
- selectedCustomTime: string
224
220
  }>()
225
221
 
226
222
  const emits = defineEmits<{
227
223
  (event: 'update-chart-type', value: string): void
228
- (event: 'update-custom-time', value: string): void
229
- (event: 'update-timespan-type', value: string): void
230
- (event: 'update-unit-count', value: number): void
231
- (event: 'update-period-type', value: string): void
232
224
  }>()
233
225
 
234
226
  const { $formattedDate, $isDate, $getTimeFormat, $getUnixByDate } = useNuxtApp()
@@ -238,75 +230,16 @@ const localization = computed<UI_I_Localization>(() => useLocal())
238
230
  const timespanOptions = computed<UI_I_OptionItem[]>(() =>
239
231
  timespanFunc(localization.value)
240
232
  )
241
- const localSelectedTimespan = ref<string>(
242
- props.selectedTimespanType || timespanOptions.value[0].value
243
- )
244
- watch(
245
- () => props.selectedTimespanType,
246
- (newValue) => {
247
- localSelectedTimespan.value = newValue || timespanOptions.value[0].value
248
- }
249
- )
250
- const localPeriodType = ref<string>('last')
251
- watch(
252
- () => props.periodType,
253
- (newValue) => {
254
- localPeriodType.value = newValue || 'last'
255
- },
256
- { immediate: true }
257
- )
258
-
259
- watch(
260
- localSelectedTimespan,
261
- (newValue) => {
262
- emits('update-timespan-type', newValue)
263
- },
264
- { immediate: true }
265
- )
233
+ const selectedTimespan = ref<string>(timespanOptions.value[0].value)
266
234
 
267
- watch(
268
- localPeriodType,
269
- (newValue) => {
270
- const currentValue = newValue || 'period'
271
- emits('update-period-type', currentValue)
272
- },
273
- { immediate: true }
274
- )
235
+ const timespanRadioSelect = ref<string>('last')
275
236
 
276
- const localLast = ref<number>(1)
277
- watch(
278
- localLast,
279
- (newValue) => {
280
- emits('update-unit-count', newValue)
281
- },
282
- { immediate: true }
283
- )
284
- watch(
285
- () => props.unitsCount,
286
- (newValue) => {
287
- localLast.value = newValue > 0 ? newValue : 1
288
- },
289
- { immediate: true }
290
- )
237
+ const last = ref<number>(1)
291
238
 
292
- const localSelectedCustomTime = ref<string>('hours')
239
+ const selectedCustomTime = ref<string>('hours')
293
240
  const customTimeOptions = computed<UI_I_OptionItem[]>(() =>
294
241
  customTimeFunc(localization.value)
295
242
  )
296
- watch(
297
- () => props.selectedCustomTime,
298
- (newValue) => {
299
- localSelectedCustomTime.value = newValue || 'hours'
300
- },
301
- { immediate: true }
302
- )
303
- watch(
304
- localSelectedCustomTime,
305
- (newValue) => {
306
- emits('update-custom-time', newValue)
307
- },
308
- { immediate: true }
309
- )
310
243
 
311
244
  const chartType = ref<string>('line_graph')
312
245
  const chartTypeOptions = computed<UI_I_OptionItem[]>(() =>
@@ -331,18 +264,14 @@ watch(
331
264
  { immediate: true }
332
265
  )
333
266
 
334
- watch(
335
- chartType,
336
- (newValue) => {
337
- let currentValue = 'spline'
267
+ watch(chartType, (newValue) => {
268
+ let currentValue = 'spline'
338
269
 
339
- if (newValue === 'line_graph') currentValue = 'spline'
340
- else if (newValue === 'stacked_graph') currentValue = 'area'
270
+ if (newValue === 'line_graph') currentValue = 'spline'
271
+ else if (newValue === 'stacked_graph') currentValue = 'area'
341
272
 
342
- emits('update-chart-type', currentValue)
343
- },
344
- { immediate: true }
345
- )
273
+ emits('update-chart-type', currentValue)
274
+ })
346
275
 
347
276
  const yesterday = new Date().setDate(new Date().getDate() - 1)
348
277
  const dateFrom = ref<number>(yesterday)
@@ -362,26 +291,26 @@ const getCurrentTime = (): void => {
362
291
  currentTimeTo.value = currentTime
363
292
  }
364
293
 
365
- const onUpdateDateFrom = (val: number): void => {
294
+ const onUpdateDateFrom = (val: number) => {
366
295
  if (!val) return
367
296
 
368
297
  currentDateFrom.value = $formattedDate(new Date(val), '')
369
298
  }
370
- watch(currentDateFrom, (newValue) => {
371
- if (!newValue) return
299
+ watch(currentDateFrom, (val) => {
300
+ if (!val) return
372
301
 
373
- if ($isDate(newValue)) dateFrom.value = $getUnixByDate(newValue)
302
+ if ($isDate(val)) dateFrom.value = $getUnixByDate(val)
374
303
  })
375
304
 
376
- const onUpdateDateTo = (val: number): void => {
305
+ const onUpdateDateTo = (val: number) => {
377
306
  if (!val) return
378
307
 
379
308
  currentDateTo.value = $formattedDate(new Date(val), '')
380
309
  }
381
- watch(currentDateTo, (newValue) => {
382
- if (!newValue) return
310
+ watch(currentDateTo, (val) => {
311
+ if (!val) return
383
312
 
384
- if ($isDate(newValue)) dateTo.value = $getUnixByDate(newValue)
313
+ if ($isDate(val)) dateTo.value = $getUnixByDate(val)
385
314
  })
386
315
 
387
316
  onMounted(() => {
@@ -4,9 +4,7 @@ import { UI_I_DropMenu } from '~/components/common/monitor/advanced/tools/models
4
4
  import { UI_T_AdvancedType } from '~/components/common/monitor/advanced/models/types'
5
5
  import { UI_I_OptionData } from '~/components/common/monitor/advanced/models/interfaces'
6
6
 
7
- export const periodFunc = (
8
- localization: UI_I_Localization
9
- ): UI_I_OptionItem[] => [
7
+ export const periodFunc = (localization: UI_I_Localization): UI_I_OptionItem[] => [
10
8
  {
11
9
  text: localization.realTime,
12
10
  value: 'real_time',
@@ -31,8 +29,7 @@ export const periodFunc = (
31
29
 
32
30
  export const viewFunc = (
33
31
  localization: UI_I_Localization,
34
- type: UI_T_AdvancedType,
35
- optionsNames?: string[]
32
+ type: UI_T_AdvancedType
36
33
  ): UI_I_OptionItem[] => {
37
34
  const viewData: UI_I_OptionData = {
38
35
  host: [
@@ -62,17 +59,8 @@ export const viewFunc = (
62
59
  { text: localization.virtualDisk, value: 'virtualDisk' },
63
60
  ],
64
61
  }
65
- const currentOptions = viewData[type]
66
62
 
67
- if (optionsNames) {
68
- optionsNames.forEach((item) => {
69
- currentOptions.push({
70
- text: item,
71
- value: item,
72
- })
73
- })
74
- }
75
- return currentOptions
63
+ return viewData[type]
76
64
  }
77
65
 
78
66
  export const exportFunc = (
@@ -83,17 +71,3 @@ export const exportFunc = (
83
71
  { text: localization.toSvg + '...', action: 'svg' },
84
72
  { text: localization.toCsv + '...', action: 'csv' },
85
73
  ]
86
-
87
- export const getCurrentOptionsStorageFunc = (routeType: string): string[] => {
88
- const optionsNames = []
89
- for (const key of Object.entries(localStorage)) {
90
- const currentOptions = useLocalStorage(key[0], undefined, false)
91
- if (
92
- key[0].includes('ChartOptions') &&
93
- currentOptions.routeType === routeType
94
- ) {
95
- optionsNames.push(key[0].replace('ChartOptions', ''))
96
- }
97
- }
98
- return optionsNames
99
- }
@@ -1,51 +1,51 @@
1
- <template>
2
- <div class="page-size">
3
- {{ selectLabel }}
4
-
5
- <div class="clr-select-wrapper">
6
- <select
7
- :id="`${props.testId}-page-size-select`"
8
- :value="props.pageSize"
9
- class="clr-page-size-select"
10
- @change="change"
11
- >
12
- <option
13
- v-for="(item, key) in props.options"
14
- :key="key"
15
- :value="item.value"
16
- >
17
- {{ item.text }}
18
- </option>
19
- </select>
20
- </div>
21
- </div>
22
- </template>
23
-
24
- <script setup lang="ts">
25
- import { UI_I_Localization } from '~/models/interfaces'
26
- import { UI_I_OptionItem } from '~/components/atoms/models/interfaces'
27
-
28
- const props = withDefaults(
29
- defineProps<{
30
- testId: string
31
- pageSize: number
32
- options: UI_I_OptionItem[]
33
- label?: string
34
- }>(),
35
- {
36
- label: 'itemsPerPage',
37
- }
38
- )
39
- const emits = defineEmits<{
40
- (event: 'change', num: number): void
41
- }>()
42
-
43
- const localization = computed<UI_I_Localization>(() => useLocal())
44
- const selectLabel = computed<string>(() => localization.value[props.label])
45
-
46
- const change = (e: InputEvent): void => {
47
- emits('change', +(e.target as HTMLInputElement).value)
48
- }
49
- </script>
50
-
51
- <style scoped></style>
1
+ <template>
2
+ <div class="page-size">
3
+ {{ selectLabel }}
4
+
5
+ <div class="clr-select-wrapper">
6
+ <select
7
+ :id="`${props.testId}-page-size-select`"
8
+ :value="props.pageSize"
9
+ class="clr-page-size-select"
10
+ @change="change"
11
+ >
12
+ <option
13
+ v-for="(item, key) in props.options"
14
+ :key="key"
15
+ :value="item.value"
16
+ >
17
+ {{ item.text }}
18
+ </option>
19
+ </select>
20
+ </div>
21
+ </div>
22
+ </template>
23
+
24
+ <script setup lang="ts">
25
+ import { UI_I_Localization } from '~/models/interfaces'
26
+ import { UI_I_OptionItem } from '~/components/atoms/models/interfaces'
27
+
28
+ const props = withDefaults(
29
+ defineProps<{
30
+ testId: string
31
+ pageSize: number
32
+ options: UI_I_OptionItem[]
33
+ label?: string
34
+ }>(),
35
+ {
36
+ label: 'itemsPerPage',
37
+ }
38
+ )
39
+ const emits = defineEmits<{
40
+ (event: 'change', num: number): void
41
+ }>()
42
+
43
+ const localization = computed<UI_I_Localization>(() => useLocal())
44
+ const selectLabel = computed<string>(() => localization.value[props.label])
45
+
46
+ const change = (e: InputEvent): void => {
47
+ emits('change', +(e.target as HTMLInputElement).value)
48
+ }
49
+ </script>
50
+
51
+ <style scoped></style>