bfg-common 1.4.698 → 1.4.700

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.
@@ -2285,7 +2285,9 @@
2285
2285
  "export": "Экспарт",
2286
2286
  "allRowsCount": "Усе радкі ({0})",
2287
2287
  "selectedRowsCount": "Выбраныя радкі ({0})",
2288
- "viewZone": "View Zone"
2288
+ "viewZone": "View Zone",
2289
+ "searchHere": "Шукайце тут...",
2290
+ "columns": "Стоўбцы"
2289
2291
  },
2290
2292
  "auth": {
2291
2293
  "welcomeTo": "Сардэчна запрашаем у",
@@ -2289,7 +2289,9 @@
2289
2289
  "export": "Export",
2290
2290
  "allRowsCount": "All rows ({0})",
2291
2291
  "selectedRowsCount": "Selected rows ({0})",
2292
- "viewZone": "View Zone"
2292
+ "viewZone": "View Zone",
2293
+ "searchHere": "Search here...",
2294
+ "columns": "Columns"
2293
2295
  },
2294
2296
  "auth": {
2295
2297
  "welcomeTo": "Welcome to",
@@ -2289,7 +2289,9 @@
2289
2289
  "export": "Արտահանում",
2290
2290
  "allRowsCount": "Բոլոր տողերը ({0})",
2291
2291
  "selectedRowsCount": "Ընտրված տողերը ({0})",
2292
- "viewZone": "Դիտել գոտին"
2292
+ "viewZone": "Դիտել գոտին",
2293
+ "searchHere": "Փնտրել այստեղ...",
2294
+ "columns": "Սյունակներ"
2293
2295
  },
2294
2296
  "auth": {
2295
2297
  "welcomeTo": "Բարի գալուստ",
@@ -2288,7 +2288,9 @@
2288
2288
  "export": "Сыртқа шығару",
2289
2289
  "allRowsCount": "Барлық жолдар ({0})",
2290
2290
  "selectedRowsCount": "Таңдалған жолдар ({0})",
2291
- "viewZone": "Қарау аймағы"
2291
+ "viewZone": "Қарау аймағы",
2292
+ "searchHere": "Мұнда іздеңіз...",
2293
+ "columns": "Бағандар"
2292
2294
  },
2293
2295
  "auth": {
2294
2296
  "welcomeTo": "Қош келдіңіз",
@@ -2290,7 +2290,9 @@
2290
2290
  "export": "Экспорт",
2291
2291
  "allRowsCount": "Все строки ({0})",
2292
2292
  "selectedRowsCount": "Выбранные строки ({0})",
2293
- "viewZone": "Просмотр зоны"
2293
+ "viewZone": "Просмотр зоны",
2294
+ "searchHere": "Искать здесь...",
2295
+ "columns": "Столбцы"
2294
2296
  },
2295
2297
  "auth": {
2296
2298
  "welcomeTo": "Добро пожаловать в",
@@ -2287,7 +2287,9 @@
2287
2287
  "export": "出口",
2288
2288
  "allRowsCount": "所有行({0})",
2289
2289
  "selectedRowsCount": "选定的行({0})",
2290
- "viewZone": "查看区域"
2290
+ "viewZone": "查看区域",
2291
+ "searchHere": "在这里搜索。。。",
2292
+ "columns": "列"
2291
2293
  },
2292
2294
  "auth": {
2293
2295
  "welcomeTo": "欢迎来到",
@@ -5,6 +5,7 @@
5
5
  :options="options"
6
6
  :loading="props.loading"
7
7
  server-off
8
+ show-selected-rows
8
9
  class="task-table"
9
10
  @sorting="onSorting"
10
11
  >
@@ -93,11 +94,9 @@ import type {
93
94
  UI_I_DataTableHeader,
94
95
  UI_I_DataTableBody,
95
96
  } from '~/node_modules/bfg-uikit/components/ui/dataTable/models/interfaces'
96
- import type { UI_T_Project } from '~/lib/models/types'
97
+ import type { UI_T_Project, UI_T_ProcuratorTypeNodes } from '~/lib/models/types'
97
98
  import type { UI_I_Localization } from '~/lib/models/interfaces'
98
- import type { UI_I_RecentTaskItem } from '~/lib/models/store/tasks/interfaces'
99
- import type { T_TypeNodes } from '~/lib/models/types'
100
-
99
+ import type { UI_I_TaskItem } from '~/lib/models/store/tasks/interfaces'
101
100
  import {
102
101
  options,
103
102
  getTargetActionsFunc,
@@ -107,7 +106,7 @@ import {
107
106
 
108
107
  const props = defineProps<{
109
108
  project: UI_T_Project
110
- tableData: UI_I_RecentTaskItem<T_TypeNodes>[]
109
+ tableData: UI_I_TaskItem<UI_T_ProcuratorTypeNodes>[]
111
110
  loading: boolean
112
111
  }>()
113
112
  const emits = defineEmits<{
@@ -132,7 +131,7 @@ const taskHeadItems = computed<UI_I_DataTableHeader[]>(() =>
132
131
  const taskBodyItems = ref<UI_I_DataTableBody[]>([])
133
132
  watch(
134
133
  () => props.tableData,
135
- (newValue: UI_I_RecentTaskItem<T_TypeNodes>[]) => {
134
+ (newValue: UI_I_TaskItem<UI_T_ProcuratorTypeNodes>[]) => {
136
135
  if (!newValue?.length) {
137
136
  taskBodyItems.value = []
138
137
  return
@@ -161,6 +160,9 @@ const onSelectAction = (
161
160
  case 'view-target':
162
161
  onSelectNodeOfTree(data)
163
162
  break
163
+ case 'view-zone':
164
+ onSelectNodeOfTree({ ...data, type: 'zone', nav: 'h' })
165
+ break
164
166
  }
165
167
  onHideActionsDropdown(actionId)
166
168
  }
@@ -5,14 +5,14 @@ import type {
5
5
  } from '~/node_modules/bfg-uikit/components/ui/dataTable/models/interfaces'
6
6
  import type { UI_I_Dropdown } from '~/node_modules/bfg-uikit/components/ui/dropdown/models/interfaces'
7
7
  import type { UI_I_Localization } from '~/lib/models/interfaces'
8
- import type { UI_I_RecentTaskItem } from '~/lib/models/store/tasks/interfaces'
8
+ import type { UI_I_TaskItem } from '~/lib/models/store/tasks/interfaces'
9
9
  import { UI_E_RecentTaskStatus } from '~/lib/models/store/tasks/enums'
10
10
  import {
11
11
  UI_E_RTaskChipColor,
12
12
  UI_E_RTaskStatusIcon,
13
13
  } from '~/components/common/pages/tasks/table/lib/models/enums'
14
14
  import type { UI_T_Project } from '~/lib/models/types'
15
- import type { T_TypeNodes } from '~/lib/models/types'
15
+ import type { UI_T_ProcuratorTypeNodes } from '~/lib/models/types'
16
16
  import * as taskConfig from '~/components/templates/tasks/lib/config/taskConfig' // url из ( sphere, procurator )
17
17
 
18
18
  export const getHeaderDataFunc = (
@@ -182,7 +182,7 @@ export const options: UI_I_DataTableOptions = {
182
182
  }
183
183
 
184
184
  export const getBodyDataFunc = (
185
- bodyData: UI_I_RecentTaskItem<T_TypeNodes>[],
185
+ bodyData: UI_I_TaskItem<UI_T_ProcuratorTypeNodes>[],
186
186
  localization: UI_I_Localization
187
187
  ): UI_I_DataTableBody[] => {
188
188
  const { $formattedDatetime } = useNuxtApp() as any
@@ -43,3 +43,13 @@ export type UI_T_LanguageKey =
43
43
  | 'inventory'
44
44
  | 'inventoryMonitor'
45
45
  | 'inventoryTabs'
46
+
47
+ export type UI_T_ProcuratorTypeNodes =
48
+ | 'host'
49
+ | 'vm'
50
+ | 'datastore'
51
+ | 'network'
52
+ | 'folder'
53
+ | 'file'
54
+
55
+ export type UI_T_SphereTypeNodes = UI_T_ProcuratorTypeNodes // TODO добавить осталиные типи те что исползуется в сфере
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "bfg-common",
3
3
  "private": false,
4
- "version": "1.4.698",
4
+ "version": "1.4.700",
5
5
  "scripts": {
6
6
  "build": "nuxt build",
7
7
  "dev": "nuxt dev --port=3002",