bfg-common 1.3.35 → 1.3.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 (38) hide show
  1. package/components/common/monitor/advanced/tools/chartOptionsModal/counters/table/Table.vue +137 -136
  2. package/components/common/monitor/advanced/tools/chartOptionsModal/counters/timespan/object/Object.vue +2 -1
  3. package/components/common/pages/Tasks.vue +5 -3
  4. package/components/common/vm/actions/add/Add.vue +3 -1
  5. package/components/common/vm/actions/clone/Clone.vue +3 -1
  6. package/components/common/vm/actions/clone/CloneOld.vue +3 -1
  7. package/components/common/vm/actions/common/customizeHardware/CustomizeHardware.vue +1 -1
  8. package/components/common/vm/actions/common/customizeHardware/CustomizeHardwareOld.vue +1 -1
  9. package/components/common/vm/actions/common/customizeHardware/virtualHardware/VirtualHardware.vue +1 -1
  10. package/components/common/vm/actions/common/customizeHardware/virtualHardware/browseView/BrowseView.vue +1 -1
  11. package/components/common/vm/actions/common/customizeHardware/virtualHardware/cdDvdDrive/CdDvdDrive.vue +1 -1
  12. package/components/common/vm/actions/common/customizeHardware/virtualHardware/newHardDisk/Location.vue +3 -1
  13. package/components/common/vm/actions/common/customizeHardware/virtualHardware/newHardDisk/NewHardDisk.vue +3 -1
  14. package/components/common/vm/actions/common/customizeHardware/virtualHardware/newNetwork/NewNetwork.vue +1 -1
  15. package/components/common/vm/actions/common/select/storage/Storage.vue +1 -2
  16. package/components/common/vm/actions/common/select/storage/StorageOld.vue +1 -2
  17. package/components/common/vm/actions/editSettings/EditSettings.vue +3 -1
  18. package/components/common/wizards/datastore/add/nfs/accessibility/Accessibility.vue +3 -1
  19. package/components/common/wizards/datastore/add/nfs/accessibility/tablesView/TablesView.vue +2 -1
  20. package/components/common/wizards/datastore/add/nfs/accessibility/tablesView/lib/config/hostsTableItems.ts +1 -1
  21. package/components/common/wizards/datastore/add/nfs/configuration/serversList/ServersList.vue +2 -1
  22. package/components/common/wizards/datastore/add/sharedStorm/deviceSelection/DeviceSelection.vue +4 -2
  23. package/components/common/wizards/datastore/add/sharedStorm/deviceSelection/hostTable/HostTable.vue +2 -1
  24. package/components/common/wizards/datastore/add/sharedStorm/deviceSelection/lib/models/interfaces.ts +1 -1
  25. package/components/common/wizards/vm/migrate/Migrate.vue +1 -1
  26. package/components/common/wizards/vm/migrate/select/computeResource/ComputeResource.vue +1 -1
  27. package/components/common/wizards/vm/migrate/select/computeResource/lib/models/interfaces.ts +1 -1
  28. package/components/common/wizards/vm/migrate/select/computeResource/tableView/TableView.vue +2 -2
  29. package/components/common/wizards/vm/migrate/select/network/table/disk/Disk.vue +2 -1
  30. package/components/common/wizards/vm/migrate/select/storage/Storage.vue +1 -1
  31. package/components/common/wizards/vm/migrate/select/storage/configure/batch/Batch.vue +1 -1
  32. package/components/common/wizards/vm/migrate/select/storage/table/datastore/Datastore.vue +2 -2
  33. package/components/common/wizards/vm/migrate/select/storage/table/disk/Disk.vue +2 -1
  34. package/lib/models/store/host/interfaces.ts +1 -1
  35. package/lib/models/store/tasks/interfaces.ts +1 -1
  36. package/lib/utils/sendTask.ts +79 -77
  37. package/package.json +1 -1
  38. package/store/tasks/actions.ts +1 -1
@@ -1,136 +1,137 @@
1
- <template>
2
- <div class="vertical-flex-container chart-option-counters-vertical-split">
3
- <span class="chart-options-grid-title">{{
4
- localization.selectCountersForThisChart
5
- }}</span>
6
-
7
- <atoms-table-data-grid
8
- v-model:selected-row="selectedCounters"
9
- v-model:column-keys="columnItems"
10
- v-model:page-size="pagination.pageSize"
11
- v-model:page="pagination.page"
12
- type="checkbox"
13
- class="data-table"
14
- :head-items="headItems"
15
- :body-items="bodyItems"
16
- :total-items="totalItems"
17
- :total-pages="totalPages"
18
- hide-footer
19
- server-off
20
- @change="onChangeRow"
21
- />
22
- </div>
23
- </template>
24
-
25
- <script setup lang="ts">
26
- import {
27
- UI_I_HeadItem,
28
- UI_I_BodyItem,
29
- UI_I_ColumnKey,
30
- } from '~/components/atoms/table/dataGrid/lib/models/interfaces'
31
- import {UI_I_Localization, UI_I_Pagination} from '~/lib/models/interfaces'
32
- import * as table from '~/components/common/monitor/advanced/tools/chartOptionsModal/counters/table/lib/config/tableConfig'
33
- import { UI_I_AdvancedCounterItem } from '~/components/common/monitor/advanced/tools/chartOptionsModal/counters/table/lib/models/interfaces'
34
- import {
35
- UI_T_ChartHost,
36
- UI_T_ChartVm,
37
- } from '~/components/common/monitor/advanced/tools/chartOptionsModal/lib/models/types'
38
- import { UI_T_AdvancedType } from '~/components/common/monitor/advanced/lib/models/types'
39
- import { countersItemsFunc } from '~/components/common/monitor/advanced/tools/chartOptionsModal/counters/table/lib/config/utils'
40
-
41
- const props = defineProps<{
42
- chart: UI_T_ChartHost | UI_T_ChartVm
43
- type: UI_T_AdvancedType
44
- selectedKeys: number[]
45
- }>()
46
-
47
- const emits = defineEmits<{
48
- (event: 'select-row', value: UI_I_AdvancedCounterItem[]): void
49
- (event: 'total-items', value: number): void
50
- }>()
51
-
52
- const localization = computed<UI_I_Localization>(() => useLocal())
53
-
54
- const counters = computed<UI_I_AdvancedCounterItem[]>(() =>
55
- countersItemsFunc(props.type, props.chart, localization.value)
56
- )
57
-
58
- const totalItems = computed<number>(() => counters.value.length)
59
- const totalPages = computed<number>(() => 1)
60
-
61
- watch(
62
- totalItems,
63
- (newValue) => {
64
- emits('total-items', newValue)
65
- },
66
- { immediate: true }
67
- )
68
-
69
- const selectedCounters = ref<number[]>([])
70
- watch(
71
- () => props.selectedKeys,
72
- (newValue) => {
73
- selectedCounters.value = newValue
74
- },
75
- { immediate: true, deep: true }
76
- )
77
- watch(
78
- () => props.chart,
79
- () => {
80
- selectedCounters.value = []
81
- }
82
- )
83
- const pagination = ref<UI_I_Pagination>({
84
- page: 1,
85
- pageSize: 35,
86
- })
87
-
88
- const columnItems = computed<UI_I_ColumnKey[]>(() =>
89
- table.columnKeys(localization.value)
90
- )
91
- const headItems = computed<UI_I_HeadItem[]>(() =>
92
- table.headItems(localization.value)
93
- )
94
- const bodyItems = ref<UI_I_BodyItem[][]>([])
95
-
96
- watch(
97
- counters,
98
- (newValue) => {
99
- if (!newValue.length) return
100
-
101
- bodyItems.value = table.bodyItems(newValue)
102
- },
103
- { deep: true, immediate: true }
104
- )
105
-
106
- const onChangeRow = (val: number[]): void => {
107
- const result: UI_I_AdvancedCounterItem[] = []
108
-
109
- counters.value.forEach((item) => {
110
- if (val.includes(item.id)) result.push(item)
111
- })
112
-
113
- emits('select-row', result)
114
- }
115
-
116
- watch(
117
- selectedCounters,
118
- (newValue) => {
119
- onChangeRow(newValue)
120
- },
121
- { immediate: true }
122
- )
123
- </script>
124
-
125
- <style scoped lang="scss">
126
- .chart-option-counters-vertical-split {
127
- .chart-options-grid-title {
128
- display: block;
129
- margin-bottom: -20px;
130
- }
131
-
132
- :deep(.datagrid-table-wrapper) {
133
- max-height: 88px;
134
- }
135
- }
136
- </style>
1
+ <template>
2
+ <div class="vertical-flex-container chart-option-counters-vertical-split">
3
+ <span class="chart-options-grid-title">{{
4
+ localization.selectCountersForThisChart
5
+ }}</span>
6
+
7
+ <atoms-table-data-grid
8
+ v-model:selected-row="selectedCounters"
9
+ v-model:column-keys="columnItems"
10
+ v-model:page-size="pagination.pageSize"
11
+ v-model:page="pagination.page"
12
+ type="checkbox"
13
+ class="data-table"
14
+ :head-items="headItems"
15
+ :body-items="bodyItems"
16
+ :total-items="totalItems"
17
+ :total-pages="totalPages"
18
+ hide-footer
19
+ server-off
20
+ @change="onChangeRow"
21
+ />
22
+ </div>
23
+ </template>
24
+
25
+ <script setup lang="ts">
26
+ import {
27
+ UI_I_HeadItem,
28
+ UI_I_BodyItem,
29
+ UI_I_ColumnKey,
30
+ } from '~/components/atoms/table/dataGrid/lib/models/interfaces'
31
+ import { UI_I_Localization } from '~/lib/models/interfaces'
32
+ import { UI_I_Pagination } from '~/lib/models/table/interfaces'
33
+ import * as table from '~/components/common/monitor/advanced/tools/chartOptionsModal/counters/table/lib/config/tableConfig'
34
+ import { UI_I_AdvancedCounterItem } from '~/components/common/monitor/advanced/tools/chartOptionsModal/counters/table/lib/models/interfaces'
35
+ import {
36
+ UI_T_ChartHost,
37
+ UI_T_ChartVm,
38
+ } from '~/components/common/monitor/advanced/tools/chartOptionsModal/lib/models/types'
39
+ import { UI_T_AdvancedType } from '~/components/common/monitor/advanced/lib/models/types'
40
+ import { countersItemsFunc } from '~/components/common/monitor/advanced/tools/chartOptionsModal/counters/table/lib/config/utils'
41
+
42
+ const props = defineProps<{
43
+ chart: UI_T_ChartHost | UI_T_ChartVm
44
+ type: UI_T_AdvancedType
45
+ selectedKeys: number[]
46
+ }>()
47
+
48
+ const emits = defineEmits<{
49
+ (event: 'select-row', value: UI_I_AdvancedCounterItem[]): void
50
+ (event: 'total-items', value: number): void
51
+ }>()
52
+
53
+ const localization = computed<UI_I_Localization>(() => useLocal())
54
+
55
+ const counters = computed<UI_I_AdvancedCounterItem[]>(() =>
56
+ countersItemsFunc(props.type, props.chart, localization.value)
57
+ )
58
+
59
+ const totalItems = computed<number>(() => counters.value.length)
60
+ const totalPages = computed<number>(() => 1)
61
+
62
+ watch(
63
+ totalItems,
64
+ (newValue) => {
65
+ emits('total-items', newValue)
66
+ },
67
+ { immediate: true }
68
+ )
69
+
70
+ const selectedCounters = ref<number[]>([])
71
+ watch(
72
+ () => props.selectedKeys,
73
+ (newValue) => {
74
+ selectedCounters.value = newValue
75
+ },
76
+ { immediate: true, deep: true }
77
+ )
78
+ watch(
79
+ () => props.chart,
80
+ () => {
81
+ selectedCounters.value = []
82
+ }
83
+ )
84
+ const pagination = ref<UI_I_Pagination>({
85
+ page: 1,
86
+ pageSize: 35,
87
+ })
88
+
89
+ const columnItems = computed<UI_I_ColumnKey[]>(() =>
90
+ table.columnKeys(localization.value)
91
+ )
92
+ const headItems = computed<UI_I_HeadItem[]>(() =>
93
+ table.headItems(localization.value)
94
+ )
95
+ const bodyItems = ref<UI_I_BodyItem[][]>([])
96
+
97
+ watch(
98
+ counters,
99
+ (newValue) => {
100
+ if (!newValue.length) return
101
+
102
+ bodyItems.value = table.bodyItems(newValue)
103
+ },
104
+ { deep: true, immediate: true }
105
+ )
106
+
107
+ const onChangeRow = (val: number[]): void => {
108
+ const result: UI_I_AdvancedCounterItem[] = []
109
+
110
+ counters.value.forEach((item) => {
111
+ if (val.includes(item.id)) result.push(item)
112
+ })
113
+
114
+ emits('select-row', result)
115
+ }
116
+
117
+ watch(
118
+ selectedCounters,
119
+ (newValue) => {
120
+ onChangeRow(newValue)
121
+ },
122
+ { immediate: true }
123
+ )
124
+ </script>
125
+
126
+ <style scoped lang="scss">
127
+ .chart-option-counters-vertical-split {
128
+ .chart-options-grid-title {
129
+ display: block;
130
+ margin-bottom: -20px;
131
+ }
132
+
133
+ :deep(.datagrid-table-wrapper) {
134
+ max-height: 88px;
135
+ }
136
+ }
137
+ </style>
@@ -32,7 +32,8 @@ import {
32
32
  UI_I_BodyItem,
33
33
  UI_I_ColumnKey,
34
34
  } from '~/components/atoms/table/dataGrid/lib/models/interfaces'
35
- import { UI_I_Localization, UI_I_Pagination } from '~/lib/models/interfaces'
35
+ import { UI_I_Localization } from '~/lib/models/interfaces'
36
+ import { UI_I_Pagination } from '~/lib/models/table/interfaces'
36
37
  import { UI_I_AdvancedTargetObject } from '~/components/common/monitor/advanced/tools/chartOptionsModal/counters/table/lib/models/interfaces'
37
38
  import * as table from '~/components/common/monitor/advanced/tools/chartOptionsModal/counters/timespan/object/lib/config/objectTable'
38
39
  import { UI_T_AdvancedType } from '~/components/common/monitor/advanced/lib/models/types'
@@ -40,10 +40,12 @@
40
40
  <script lang="ts" setup>
41
41
  import type {
42
42
  UI_I_Localization,
43
+ } from '~/lib/models/interfaces'
44
+ import type {
43
45
  UI_I_Pagination,
44
46
  UI_I_DataTableQuery,
45
- } from '~/lib/models/interfaces'
46
- import type { I_Task } from '~/lib/models/store/tasks/interfaces'
47
+ } from '~/lib/models/table/interfaces'
48
+ import type { UI_I_Task } from '~/lib/models/store/tasks/interfaces'
47
49
 
48
50
  definePageMeta({
49
51
  middleware: ['auth'],
@@ -58,7 +60,7 @@ const pagination = ref<UI_I_Pagination>({
58
60
  })
59
61
  const sort = ref<string | null>(null)
60
62
 
61
- const tasksList = computed<I_Task>(() => $store.getters['tasks/getTaskList'])
63
+ const tasksList = computed<UI_I_Task>(() => $store.getters['tasks/getTaskList'])
62
64
 
63
65
  const onClickButton = (status: string): void => {
64
66
  if (status === 'next') {
@@ -146,8 +146,10 @@ import type {
146
146
  import type {
147
147
  API_UI_I_Error,
148
148
  UI_I_ErrorValidationField,
149
- UI_I_TablePayload,
150
149
  } from '~/lib/models/store/interfaces'
150
+ import type {
151
+ UI_I_TablePayload,
152
+ } from '~/lib/models/table/interfaces'
151
153
  import type { UI_I_TableInfoItem } from '~/components/atoms/table/info/lib/models/interfaces'
152
154
  import type {
153
155
  UI_T_AddVmFinishFunc,
@@ -98,8 +98,10 @@ import type {
98
98
  import type { UI_I_NetworkTableItem } from '~/lib/models/store/network/interfaces'
99
99
  import type {
100
100
  API_UI_I_Error,
101
- UI_I_TablePayload,
102
101
  } from '~/lib/models/store/interfaces'
102
+ import type {
103
+ UI_I_TablePayload,
104
+ } from '~/lib/models/table/interfaces'
103
105
  import type { UI_I_FileTreeNode } from '~/components/lib/models/interfaces'
104
106
  import type { UI_I_Localization } from '~/lib/models/interfaces'
105
107
  import type { UI_I_SendDataCustomizeHardware } from '~/components/common/vm/actions/common/customizeHardware/lib/models/interfaces'
@@ -151,8 +151,10 @@ import type {
151
151
  import type { UI_I_NetworkTableItem } from '~/lib/models/store/network/interfaces'
152
152
  import type {
153
153
  API_UI_I_Error,
154
- UI_I_TablePayload,
155
154
  } from '~/lib/models/store/interfaces'
155
+ import type {
156
+ UI_I_TablePayload,
157
+ } from '~/lib/models/table/interfaces'
156
158
  import type { UI_I_FileTreeNode } from '~/components/lib/models/interfaces'
157
159
  import type { UI_I_Localization } from '~/lib/models/interfaces'
158
160
  import type { UI_I_SendDataCustomizeHardware } from '~/components/common/vm/actions/common/customizeHardware/lib/models/interfaces'
@@ -71,7 +71,7 @@
71
71
  <script setup lang="ts">
72
72
  import { UI_I_DatastoreTableItem } from '~/lib/models/store/storage/interfaces'
73
73
  import { UI_I_NetworkTableItem } from '~/lib/models/store/network/interfaces'
74
- import { UI_I_TablePayload } from '~/lib/models/store/interfaces'
74
+ import { UI_I_TablePayload } from '~/lib/models/table/interfaces'
75
75
  import { UI_I_FolderOrFileTreePayload } from '~/lib/models/store/storage/interfaces'
76
76
  import { UI_I_FileTreeNode } from '~/components/lib/models/interfaces'
77
77
  import {
@@ -71,7 +71,7 @@
71
71
  <script setup lang="ts">
72
72
  import { UI_I_DatastoreTableItem } from '~/lib/models/store/storage/interfaces'
73
73
  import { UI_I_NetworkTableItem } from '~/lib/models/store/network/interfaces'
74
- import { UI_I_TablePayload } from '~/lib/models/store/interfaces'
74
+ import { UI_I_TablePayload } from '~/lib/models/table/interfaces'
75
75
  import { UI_I_FolderOrFileTreePayload } from '~/lib/models/store/storage/interfaces'
76
76
  import { UI_I_FileTreeNode } from '~/components/lib/models/interfaces'
77
77
  import {
@@ -145,7 +145,7 @@
145
145
  <script setup lang="ts">
146
146
  import { UI_I_DatastoreTableItem } from '~/lib/models/store/storage/interfaces'
147
147
  import { UI_I_NetworkTableItem } from '~/lib/models/store/network/interfaces'
148
- import { UI_I_TablePayload } from '~/lib/models/store/interfaces'
148
+ import { UI_I_TablePayload } from '~/lib/models/table/interfaces'
149
149
  import { UI_I_FolderOrFileTreePayload } from '~/lib/models/store/storage/interfaces'
150
150
  import { UI_I_FileTreeNode } from '~/components/lib/models/interfaces'
151
151
  import {
@@ -18,7 +18,7 @@
18
18
 
19
19
  <script lang="ts" setup>
20
20
  import { UI_I_FileTreeNode } from '~/components/lib/models/interfaces'
21
- import { UI_I_TablePayload } from '~/lib/models/store/interfaces'
21
+ import { UI_I_TablePayload } from '~/lib/models/table/interfaces'
22
22
  import { UI_I_FolderOrFileTreePayload } from '~/lib/models/store/storage/interfaces'
23
23
  import { UI_I_CurrentDirNodesArguments } from '~/components/common/vm/actions/common/customizeHardware/virtualHardware/browseView/lib/models/interfaces'
24
24
  import { UI_I_Localization } from '~/lib/models/interfaces'
@@ -98,7 +98,7 @@
98
98
 
99
99
  <script lang="ts" setup>
100
100
  import { UI_I_FileTreeNode } from '~/components/lib/models/interfaces'
101
- import { UI_I_TablePayload } from '~/lib/models/store/interfaces'
101
+ import { UI_I_TablePayload } from '~/lib/models/table/interfaces'
102
102
  import { UI_T_CdDvdDrive } from '~/components/common/vm/actions/common/customizeHardware/virtualHardware/cdDvdDrive/lib/models/types'
103
103
  import { UI_I_SendDataNewCdDvdDrive } from '~/components/common/vm/actions/common/customizeHardware/virtualHardware/lib/models/interfaces'
104
104
  import { UI_I_Localization, UI_I_HTMLSelectElement } from '~/lib/models/interfaces'
@@ -63,8 +63,10 @@ import { UI_I_DatastoreTableItem } from '~/lib/models/store/storage/interfaces'
63
63
  import { UI_I_Localization, UI_I_HTMLSelectElement } from '~/lib/models/interfaces'
64
64
  import {
65
65
  UI_I_ErrorValidationField,
66
- UI_I_TablePayload,
67
66
  } from '~/lib/models/store/interfaces'
67
+ import {
68
+ UI_I_TablePayload,
69
+ } from '~/lib/models/table/interfaces'
68
70
  import { UI_I_OptionItem } from '~/components/atoms/lib/models/interfaces'
69
71
 
70
72
  const localization = computed<UI_I_Localization>(() => useLocal())
@@ -169,8 +169,10 @@ import { UI_T_HardDiskType } from '~/components/common/vm/actions/common/customi
169
169
  import { UI_I_Localization } from '~/lib/models/interfaces'
170
170
  import {
171
171
  UI_I_ErrorValidationField,
172
- UI_I_TablePayload,
173
172
  } from '~/lib/models/store/interfaces'
173
+ import {
174
+ UI_I_TablePayload,
175
+ } from '~/lib/models/table/interfaces'
174
176
  import { UI_I_OptionItem } from '~/components/atoms/lib/models/interfaces'
175
177
  import { binaryOptionsFunc } from '~/components/common/vm/actions/common/customizeHardware/virtualHardware/lib/config/binaryOptions'
176
178
 
@@ -78,7 +78,7 @@
78
78
  </template>
79
79
 
80
80
  <script setup lang="ts">
81
- import { UI_I_TablePayload } from '~/lib/models/store/interfaces'
81
+ import { UI_I_TablePayload } from '~/lib/models/table/interfaces'
82
82
  import { UI_I_NetworkTableItem } from '~/lib/models/store/network/interfaces'
83
83
  import { UI_I_ErrorValidationField } from '~/lib/models/store/interfaces'
84
84
  import { UI_I_SendDataNewNetwork } from '~/components/common/vm/actions/common/customizeHardware/virtualHardware/lib/models/interfaces'
@@ -49,8 +49,7 @@
49
49
  </template>
50
50
 
51
51
  <script setup lang="ts">
52
- import { UI_I_Pagination } from '~/lib/models/interfaces'
53
- import { UI_I_TablePayload } from '~/lib/models/store/interfaces'
52
+ import { UI_I_Pagination, UI_I_TablePayload } from '~/lib/models/table/interfaces'
54
53
  import { UI_I_DatastoreTableItem } from '~/lib/models/store/storage/interfaces'
55
54
  import { UI_I_Localization } from '~/lib/models/interfaces'
56
55
  import {
@@ -49,8 +49,7 @@
49
49
  </template>
50
50
 
51
51
  <script setup lang="ts">
52
- import { UI_I_Pagination } from '~/lib/models/interfaces'
53
- import { UI_I_TablePayload } from '~/lib/models/store/interfaces'
52
+ import { UI_I_Pagination, UI_I_TablePayload } from '~/lib/models/table/interfaces'
54
53
  import { UI_I_DatastoreTableItem } from '~/lib/models/store/storage/interfaces'
55
54
  import { UI_I_Localization } from '~/lib/models/interfaces'
56
55
  import {
@@ -80,8 +80,10 @@ import {
80
80
  import { UI_T_SelectedNavItem } from '~/components/common/vm/actions/common/lib/models/types'
81
81
  import {
82
82
  UI_I_ErrorValidationField,
83
- UI_I_TablePayload,
84
83
  } from '~/lib/models/store/interfaces'
84
+ import {
85
+ UI_I_TablePayload,
86
+ } from '~/lib/models/table/interfaces'
85
87
  import { UI_I_VmSettings } from '~/lib/models/store/vm/interfaces'
86
88
  import {
87
89
  UI_I_DatastoreTableItem,
@@ -30,8 +30,10 @@
30
30
  import { UI_I_CollapseNavItem } from '~/components/atoms/collapse/lib/models/interfaces'
31
31
  import {
32
32
  UI_I_Localization,
33
- UI_I_Pagination,
34
33
  } from '~/lib/models/interfaces'
34
+ import {
35
+ UI_I_Pagination,
36
+ } from '~/lib/models/table/interfaces'
35
37
  import { T_HostsAccessibilityTab } from '~/components/common/wizards/datastore/add/nfs/accessibility/lib/models/types'
36
38
  import { hostAccessibilityTabsFunc } from '~/components/common/wizards/datastore/add/nfs/accessibility/lib/config/tabsPannel'
37
39
  import { hostsAccessibilityTablesFunc } from '~/components/common/wizards/datastore/add/nfs/accessibility/tablesView/lib/config/hostsTableItems'
@@ -33,7 +33,8 @@ import {
33
33
  UI_I_HeadItem,
34
34
  UI_I_BodyItem,
35
35
  } from '~/components/atoms/table/dataGrid/lib/models/interfaces'
36
- import { UI_I_Localization, UI_I_Pagination } from '~/lib/models/interfaces'
36
+ import { UI_I_Localization } from '~/lib/models/interfaces'
37
+ import { UI_I_Pagination } from '~/lib/models/table/interfaces'
37
38
  import { itemsPerPage } from '~/components/atoms/table/dataGrid/lib/config/itemsPerPage'
38
39
  import { T_HostsAccessibilityTab } from '~/components/common/wizards/datastore/add/nfs/accessibility/lib/models/types'
39
40
  import {
@@ -3,7 +3,7 @@ import {
3
3
  I_IncompatibleHostsTable,
4
4
  } from '~/components/common/wizards/datastore/add/nfs/accessibility/lib/models/interfaces'
5
5
  import { T_HostsAccessibilityTab } from '~/components/common/wizards/datastore/add/nfs/accessibility/lib/models/types'
6
- import { API_UI_I_DataTable } from '~/lib/models/interfaces'
6
+ import { API_UI_I_DataTable } from '~/lib/models/table/interfaces'
7
7
 
8
8
  const compatibleHostsTable: API_UI_I_DataTable<I_CompatibleHostsTable[]> = {
9
9
  items: [
@@ -44,7 +44,8 @@ import {
44
44
  UI_I_HeadItem,
45
45
  UI_I_BodyItem,
46
46
  } from '~/components/atoms/table/dataGrid/lib/models/interfaces'
47
- import { UI_I_Localization, UI_I_Pagination } from '~/lib/models/interfaces'
47
+ import { UI_I_Localization } from '~/lib/models/interfaces'
48
+ import { UI_I_Pagination } from '~/lib/models/table/interfaces'
48
49
  import { UI_I_DataServersListItem } from '~/components/common/wizards/datastore/add/nfs/configuration/serversList/lib/models/interfaces'
49
50
  import * as serversTable from '~/components/common/wizards/datastore/add/nfs/configuration/serversList/lib/config/serversListConfig'
50
51
 
@@ -92,11 +92,13 @@
92
92
  import { UI_I_ValidationTouchResult } from '~/lib/models/plugins/validation/interfaces'
93
93
  // import { UI_I_SchemaTablePayload } from '~/lib/models/store/interfaces'
94
94
  import {
95
- API_UI_I_DataTable,
96
95
  UI_I_Localization,
96
+ } from '~/lib/models/interfaces'
97
+ import {
98
+ API_UI_I_DataTable,
97
99
  UI_I_Pagination,
98
100
  UI_I_DataTableQuery,
99
- } from '~/lib/models/interfaces'
101
+ } from '~/lib/models/table/interfaces'
100
102
  import {
101
103
  UI_I_CreateStorageLunDiskItem,
102
104
  UI_I_DeviceSelectionSendData,
@@ -33,7 +33,8 @@ import {
33
33
  UI_I_ColumnKey,
34
34
  UI_I_BodyItem,
35
35
  } from '~/components/atoms/table/dataGrid/lib/models/interfaces'
36
- import { UI_I_Localization, UI_I_Pagination } from '~/lib/models/interfaces'
36
+ import { UI_I_Localization } from '~/lib/models/interfaces'
37
+ import { UI_I_Pagination } from '~/lib/models/table/interfaces'
37
38
  // import { optionsDefault as itemsPerPage } from '~/node_modules/nuxt-3-uikit/components/atoms/table/dataGrid/config'
38
39
  import { UI_I_CreateStorageLunDiskItem } from '~/components/common/wizards/datastore/add/sharedStorm/deviceSelection/lib/models/interfaces'
39
40
  import * as hostsTable from '~/components/common/wizards/datastore/add/sharedStorm/deviceSelection/hostTable/lib/config/hostsTable'
@@ -1,5 +1,5 @@
1
1
  import { UI_I_Validation } from '~/lib/models/plugins/validation/interfaces'
2
- import { UI_I_DataTableQuery } from '~/lib/models/interfaces'
2
+ import { UI_I_DataTableQuery } from '~/lib/models/table/interfaces'
3
3
 
4
4
  export interface UI_I_FormValidationDataStore {
5
5
  name: UI_I_Validation
@@ -73,7 +73,7 @@
73
73
  <script setup lang="ts">
74
74
  import type { UI_I_Localization } from '~/lib/models/interfaces'
75
75
  import type { UI_T_Project } from '~/lib/models/types'
76
- import type { UI_I_TablePayload } from '~/lib/models/store/interfaces'
76
+ import type { UI_I_TablePayload } from '~/lib/models/table/interfaces'
77
77
  import type { UI_I_DatastoreTableItem } from '~/lib/models/store/storage/interfaces'
78
78
  import type { UI_I_VmSettings } from '~/lib/models/store/vm/interfaces'
79
79
  import type { UI_T_VmMigrateType } from '~/components/common/wizards/vm/migrate/lib/models/types'
@@ -51,7 +51,7 @@
51
51
  import type { UI_I_Localization } from '~/lib/models/interfaces'
52
52
  import type { UI_I_CollapseNavItem } from '~/components/atoms/collapse/lib/models/interfaces'
53
53
  import type { UI_I_TreeNode } from '~/components/common/recursionTree/lib/models/interfaces'
54
- import type { UI_I_TablePayload } from '~/lib/models/store/interfaces'
54
+ import type { UI_I_TablePayload } from '~/lib/models/table/interfaces'
55
55
  import type { UI_T_SelectComputeResourceTabType } from '~/components/common/wizards/vm/migrate/select/storage/lib/models/types'
56
56
  import type { UI_E_ComputeResourceTabKamelKeys } from '~/components/common/wizards/vm/migrate/select/computeResource/lib/models/enums'
57
57
  import type { UI_T_VmMigrateType } from '~/components/common/wizards/vm/migrate/lib/models/types'
@@ -6,7 +6,7 @@ import type {
6
6
  UI_I_VAppsTableItem,
7
7
  } from '~/components/common/wizards/vm/migrate/select/computeResource/tableView/lib/models/interfaces'
8
8
  import type { UI_I_TreeNode } from '~/components/common/recursionTree/lib/models/interfaces'
9
- import type { API_UI_I_DataTable } from '~/lib/models/interfaces'
9
+ import type { API_UI_I_DataTable } from '~/lib/models/table/interfaces'
10
10
 
11
11
  export interface UI_I_SelectedTableDataKeys {
12
12
  host: UI_I_HostTableItem | null
@@ -37,14 +37,14 @@
37
37
  </template>
38
38
 
39
39
  <script lang="ts" setup>
40
- import type { UI_I_Pagination, UI_I_Localization } from '~/lib/models/interfaces'
40
+ import type { UI_I_Localization } from '~/lib/models/interfaces'
41
41
  import type {
42
42
  UI_I_ColumnKey,
43
43
  UI_I_HeadItem,
44
44
  UI_I_BodyItem,
45
45
  } from '~/components/atoms/table/dataGrid/lib/models/interfaces'
46
46
  import type { UI_T_SelectComputeResourceTabType } from '~/components/common/wizards/vm/migrate/select/storage/lib/models/types'
47
- import type { UI_I_TablePayload } from '~/lib/models/store/interfaces'
47
+ import type { UI_I_TablePayload, UI_I_Pagination } from '~/lib/models/table/interfaces'
48
48
  import type { UI_T_ComputeResourceTableItem } from '~/components/common/wizards/vm/migrate/select/computeResource/lib/models/types'
49
49
  import * as hostTable from '~/components/common/wizards/vm/migrate/select/computeResource/tableView/lib/config/hostTable'
50
50
  import * as clusterTable from '~/components/common/wizards/vm/migrate/select/computeResource/tableView/lib/config/clusterTable'
@@ -20,7 +20,8 @@
20
20
  </template>
21
21
 
22
22
  <script lang="ts" setup>
23
- import type { UI_I_Pagination, UI_I_Localization } from '~/lib/models/interfaces'
23
+ import type { UI_I_Localization } from '~/lib/models/interfaces'
24
+ import type { UI_I_Pagination } from '~/lib/models/table/interfaces'
24
25
  import type {
25
26
  UI_I_ColumnKey,
26
27
  UI_I_HeadItem,
@@ -61,7 +61,7 @@
61
61
 
62
62
  <script lang="ts" setup>
63
63
  import type { UI_I_Localization } from '~/lib/models/interfaces'
64
- import type { UI_I_TablePayload } from '~/lib/models/store/interfaces'
64
+ import type { UI_I_TablePayload } from '~/lib/models/table/interfaces'
65
65
  import type { UI_I_CollapseNavItem } from '~/components/atoms/collapse/lib/models/interfaces'
66
66
  import type { UI_I_DatastoreTableItem } from '~/lib/models/store/storage/interfaces'
67
67
  import type { UI_T_VmMigrateSelectStorageTab } from '~/components/common/wizards/vm/migrate/select/storage/lib/models/types'
@@ -37,7 +37,7 @@
37
37
 
38
38
  <script lang="ts" setup>
39
39
  import type { UI_I_Localization } from '~/lib/models/interfaces'
40
- import type { UI_I_TablePayload } from '~/lib/models/store/interfaces'
40
+ import type { UI_I_TablePayload } from '~/lib/models/table/interfaces'
41
41
  import type { UI_I_DatastoreTableItem } from '~/lib/models/store/storage/interfaces'
42
42
 
43
43
  const props = defineProps<{
@@ -26,8 +26,8 @@
26
26
  </template>
27
27
 
28
28
  <script lang="ts" setup>
29
- import type { UI_I_Pagination, UI_I_Localization } from '~/lib/models/interfaces'
30
- import type { UI_I_TablePayload } from '~/lib/models/store/interfaces'
29
+ import type { UI_I_Localization } from '~/lib/models/interfaces'
30
+ import type { UI_I_TablePayload, UI_I_Pagination } from '~/lib/models/table/interfaces'
31
31
  import type { UI_I_DatastoreTableItem } from '~/lib/models/store/storage/interfaces'
32
32
  import type {
33
33
  UI_I_ColumnKey,
@@ -20,7 +20,8 @@
20
20
  </template>
21
21
 
22
22
  <script lang="ts" setup>
23
- import type { UI_I_Pagination, UI_I_Localization } from '~/lib/models/interfaces'
23
+ import type { UI_I_Localization } from '~/lib/models/interfaces'
24
+ import type { UI_I_Pagination } from '~/lib/models/table/interfaces'
24
25
  import type {
25
26
  UI_I_ColumnKey,
26
27
  UI_I_HeadItem,
@@ -1,4 +1,4 @@
1
- import { API_UI_I_DataTable } from '~/lib/models/interfaces'
1
+ import { API_UI_I_DataTable } from '~/lib/models/table/interfaces'
2
2
 
3
3
  interface API_UI_I_ConfigureAllPciDevicesItemGeneralInfo {
4
4
  class_id: string
@@ -3,7 +3,7 @@ import type {
3
3
  UI_T_TasksStateLoading,
4
4
  UI_T_TaskStatus,
5
5
  } from '~/lib/models/store/tasks/types'
6
- import type { API_UI_I_DataTable } from '~/lib/models/interfaces'
6
+ import type { API_UI_I_DataTable } from '~/lib/models/table/interfaces'
7
7
 
8
8
  export interface UI_I_TasksLoadingPayload
9
9
  extends UI_I_LoadingPayload<UI_T_TasksStateLoading> {}
@@ -1,77 +1,79 @@
1
- import type { UI_I_Localization } from '~/lib/models/interfaces'
2
- import type { API_UI_I_Error } from '~/lib/models/store/interfaces'
3
- import type {
4
- UI_I_NotifyBodyMessage,
5
- UI_I_RequestBody,
6
- UI_I_SendTaskParams,
7
- } from '~/lib/models/interfaces'
8
- import { base64 } from './base64'
9
-
10
- const localization = computed<UI_I_Localization>(() => useLocal())
11
-
12
- const showNotification = (message: UI_I_NotifyBodyMessage): void => {
13
- const { title, desc, status } = message
14
- const { $store } = useNuxtApp()
15
-
16
- // @ts-ignore
17
- $store.dispatch('main/A_SHOW_NOTIFICATION', {
18
- status,
19
- messages: [
20
- {
21
- title,
22
- descriptions: [desc],
23
- },
24
- ],
25
- headline: '',
26
- timeout: status === 'success' ? 3000 : '',
27
- })
28
- }
29
- const msgError: UI_I_NotifyBodyMessage = {
30
- status: 'error',
31
- title: localization.value.error,
32
- desc: '',
33
- }
34
- const handleErrors = (error: Ref<API_UI_I_Error>): void => {
35
- if (error.value.data?.error_message) {
36
- msgError.desc = error.value.data?.error_message
37
- showNotification(msgError)
38
- }
39
- }
40
-
41
- export const handleRequest = async (
42
- url: string,
43
- body: UI_I_RequestBody
44
- ): Promise<boolean> => {
45
- // @ts-ignore
46
- const { error } = await useMyFetch<never, API_UI_I_Error>(url, {
47
- method: 'POST',
48
- key: Date.now().toString(),
49
- body,
50
- })
51
-
52
- if (error.value && error.value.data.error_code !== 0) {
53
- handleErrors(error)
54
- return false
55
- }
56
- return true
57
- }
58
-
59
- export async function sendTask({
60
- method,
61
- target,
62
- args,
63
- }: UI_I_SendTaskParams): Promise<void> {
64
- const { $store } = useNuxtApp()
65
-
66
- const argsToBase64 = args ? base64.encode(args) : ''
67
- const hasProcess = await handleRequest('/ui/tasks', {
68
- method,
69
- params: {
70
- target,
71
- args: argsToBase64,
72
- },
73
- })
74
-
75
- // @ts-ignore
76
- $store.dispatch('tasks/A_SET_PROCESS', hasProcess)
77
- }
1
+ import type { UI_I_Localization } from '~/lib/models/interfaces'
2
+ import type {
3
+ API_UI_I_Error,
4
+ UI_I_RequestBody,
5
+ } from '~/lib/models/store/interfaces'
6
+ import type {
7
+ UI_I_NotifyBodyMessage,
8
+ UI_I_SendTaskParams,
9
+ } from '~/lib/models/interfaces'
10
+ import { base64 } from './base64'
11
+
12
+ const localization = computed<UI_I_Localization>(() => useLocal())
13
+
14
+ const showNotification = (message: UI_I_NotifyBodyMessage): void => {
15
+ const { title, desc, status } = message
16
+ const { $store } = useNuxtApp()
17
+
18
+ // @ts-ignore
19
+ $store.dispatch('main/A_SHOW_NOTIFICATION', {
20
+ status,
21
+ messages: [
22
+ {
23
+ title,
24
+ descriptions: [desc],
25
+ },
26
+ ],
27
+ headline: '',
28
+ timeout: status === 'success' ? 3000 : '',
29
+ })
30
+ }
31
+ const msgError: UI_I_NotifyBodyMessage = {
32
+ status: 'error',
33
+ title: localization.value.error,
34
+ desc: '',
35
+ }
36
+ const handleErrors = (error: Ref<API_UI_I_Error>): void => {
37
+ if (error.value.data?.error_message) {
38
+ msgError.desc = error.value.data?.error_message
39
+ showNotification(msgError)
40
+ }
41
+ }
42
+
43
+ export const handleRequest = async (
44
+ url: string,
45
+ body: UI_I_RequestBody
46
+ ): Promise<boolean> => {
47
+ // @ts-ignore
48
+ const { error } = await useMyFetch<never, API_UI_I_Error>(url, {
49
+ method: 'POST',
50
+ key: Date.now().toString(),
51
+ body,
52
+ })
53
+
54
+ if (error.value && error.value.data.error_code !== 0) {
55
+ handleErrors(error)
56
+ return false
57
+ }
58
+ return true
59
+ }
60
+
61
+ export async function sendTask({
62
+ method,
63
+ target,
64
+ args,
65
+ }: UI_I_SendTaskParams): Promise<void> {
66
+ const { $store } = useNuxtApp()
67
+
68
+ const argsToBase64 = args ? base64.encode(args) : ''
69
+ const hasProcess = await handleRequest('/ui/tasks', {
70
+ method,
71
+ params: {
72
+ target,
73
+ args: argsToBase64,
74
+ },
75
+ })
76
+
77
+ // @ts-ignore
78
+ $store.dispatch('tasks/A_SET_PROCESS', hasProcess)
79
+ }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "bfg-common",
3
3
  "private": false,
4
- "version": "1.3.35",
4
+ "version": "1.3.37",
5
5
  "scripts": {
6
6
  "build": "nuxt build",
7
7
  "dev": "nuxt dev --port=3002",
@@ -1,5 +1,6 @@
1
1
  import type {
2
2
  API_UI_I_Error,
3
+ API_UI_I_Response,
3
4
  UI_I_CommitOptions,
4
5
  } from '~/lib/models/store/interfaces'
5
6
  import type {
@@ -16,7 +17,6 @@ import type {
16
17
  API_UI_I_Task,
17
18
  } from '~/lib/models/store/tasks/interfaces'
18
19
  import type { UI_I_TasksState } from '~/store/tasks/lib/models/interfaces'
19
- import type { API_UI_I_Response } from '~/lib/models/interfaces'
20
20
  import type { UI_I_RefreshStack } from '~/store/main/lib/interfaces'
21
21
  import { tasksConstructor } from '~/store/tasks/mappers/tasks'
22
22
  import { recentTasks } from '~/store/tasks/mappers/recentTasks'