bfg-common 1.4.484 → 1.4.485

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.
@@ -7,7 +7,7 @@
7
7
  icon-name="icon-content-libraries"
8
8
  class="most-alerts"
9
9
  >
10
- <common-home-services-table :data-table="props.services" />
10
+ <common-pages-home-widgets-services-table :data-table="props.services" />
11
11
  </common-pages-home-card>
12
12
  </div>
13
13
  </div>
@@ -4,7 +4,6 @@ import type {
4
4
  UI_I_DataTableOptions,
5
5
  UI_I_DataTableHeader,
6
6
  } from '~/node_modules/bfg-uikit/components/ui/dataTable/models/interfaces'
7
- import type { UI_I_RecentTaskItem } from '~/lib/models/store/tasks/interfaces'
8
7
  import { UI_E_RecentTaskStatus } from '~/lib/models/store/tasks/enums'
9
8
  import { E_NodeIconsByState } from '~/lib/models/enums'
10
9
  // import { E_TabsByType } from '~/components/templates/inventory/lib/models/enums'
@@ -12,63 +11,58 @@ import {
12
11
  E_RTaskChipColor,
13
12
  E_RTaskStatusIcon,
14
13
  } from '~/components/common/pages/home/widgets/services/lib/models/enums'
15
- import type { T_TypeNodes } from '~/lib/models/types'
16
14
 
17
15
  export const getHeaderDataFunc = (
18
16
  localization: UI_I_Localization
19
17
  ): UI_I_DataTableHeader[] => [
20
18
  {
21
19
  col: 0,
22
- colName: 'taskName',
23
- text: localization.tasks.taskName,
20
+ colName: 'item',
21
+ text: localization.common.item,
24
22
  isSortable: true,
25
23
  sort: 'asc',
26
24
  sortColumn: true,
27
- width: '180px',
25
+ width: '33.3%',
28
26
  show: true,
29
27
  filter: true,
30
28
  },
31
29
  {
32
30
  col: 1,
33
- colName: 'target',
34
- text: localization.common.target,
31
+ colName: 'alerts',
32
+ text: localization.common.alerts,
35
33
  isSortable: true,
36
34
  sort: 'asc',
37
- width: '180px',
35
+ width: '33.3%',
38
36
  show: true,
39
37
  filter: true,
40
38
  },
41
39
  {
42
40
  col: 2,
43
- colName: 'status',
44
- text: localization.common.status,
41
+ colName: 'warnings',
42
+ text: localization.common.warnings,
45
43
  isSortable: true,
46
44
  sort: 'asc',
47
- width: '180px',
45
+ width: '33.3%',
48
46
  show: true,
49
47
  filter: true,
50
48
  },
51
49
  ]
52
50
 
53
51
  export const options: UI_I_DataTableOptions = {
54
- perPageOptions: [
55
- { text: '10', value: 10 },
56
- { text: '50', value: 50 },
57
- { text: '100', value: 100 },
58
- ],
52
+ perPageOptions: [],
59
53
  isSelectable: false,
60
54
  isFocusable: false,
61
- showPagination: true,
62
- showPageInfo: true,
55
+ showPagination: false,
56
+ showPageInfo: false,
63
57
  isSortable: true,
64
58
  server: false,
65
- isResizable: true,
59
+ isResizable: false,
66
60
  showSearch: false,
67
- showColumnManager: true,
61
+ showColumnManager: false,
68
62
  }
69
63
 
70
64
  export const getBodyDataFunc = (
71
- bodyData: UI_I_RecentTaskItem<T_TypeNodes>[],
65
+ bodyData: any,
72
66
  localization: UI_I_Localization
73
67
  ): UI_I_DataTableBody[] => {
74
68
  return bodyData.map((task, index: number) => {
@@ -33,7 +33,7 @@ import type {
33
33
  import type { UI_T_SelectedRow } from '~/components/atoms/table/dataGrid/lib/models/types'
34
34
  import type { UI_I_Localization } from '~/lib/models/interfaces'
35
35
  import type { UI_I_Service } from '~/components/common/home/lib/models/interfaces'
36
- import * as table from '~/components/common/home/servicesTable/lib/config/config'
36
+ import * as table from '~/components/common/pages/home/widgets/services/table/lib/config/config'
37
37
 
38
38
  const props = defineProps<{
39
39
  dataTable: UI_I_Service[]
@@ -4,7 +4,6 @@ import type {
4
4
  UI_I_DataTableOptions,
5
5
  UI_I_DataTableHeader,
6
6
  } from '~/node_modules/bfg-uikit/components/ui/dataTable/models/interfaces'
7
- import type { UI_I_RecentTaskItem } from '~/lib/models/store/tasks/interfaces'
8
7
  import { UI_E_RecentTaskStatus } from '~/lib/models/store/tasks/enums'
9
8
  import { E_NodeIconsByState } from '~/lib/models/enums'
10
9
  // import { E_TabsByType } from '~/components/templates/inventory/lib/models/enums'
@@ -12,63 +11,58 @@ import {
12
11
  E_RTaskChipColor,
13
12
  E_RTaskStatusIcon,
14
13
  } from '~/components/common/pages/home/widgets/services/lib/models/enums'
15
- import type { T_TypeNodes } from '~/lib/models/types'
16
14
 
17
15
  export const getHeaderDataFunc = (
18
16
  localization: UI_I_Localization
19
17
  ): UI_I_DataTableHeader[] => [
20
18
  {
21
19
  col: 0,
22
- colName: 'taskName',
23
- text: localization.tasks.taskName,
20
+ colName: 'item',
21
+ text: localization.common.item,
24
22
  isSortable: true,
25
23
  sort: 'asc',
26
24
  sortColumn: true,
27
- width: '180px',
25
+ width: '33.3%',
28
26
  show: true,
29
27
  filter: true,
30
28
  },
31
29
  {
32
30
  col: 1,
33
- colName: 'target',
34
- text: localization.common.target,
31
+ colName: 'status',
32
+ text: localization.common.status,
35
33
  isSortable: true,
36
34
  sort: 'asc',
37
- width: '180px',
35
+ width: '33.3%',
38
36
  show: true,
39
37
  filter: true,
40
38
  },
41
39
  {
42
40
  col: 2,
43
- colName: 'status',
44
- text: localization.common.status,
41
+ colName: 'version',
42
+ text: localization.common.version,
45
43
  isSortable: true,
46
44
  sort: 'asc',
47
- width: '180px',
45
+ width: '33.3%',
48
46
  show: true,
49
47
  filter: true,
50
48
  },
51
49
  ]
52
50
 
53
51
  export const options: UI_I_DataTableOptions = {
54
- perPageOptions: [
55
- { text: '10', value: 10 },
56
- { text: '50', value: 50 },
57
- { text: '100', value: 100 },
58
- ],
52
+ perPageOptions: [],
59
53
  isSelectable: false,
60
54
  isFocusable: false,
61
- showPagination: true,
62
- showPageInfo: true,
55
+ showPagination: false,
56
+ showPageInfo: false,
63
57
  isSortable: true,
64
58
  server: false,
65
- isResizable: true,
59
+ isResizable: false,
66
60
  showSearch: false,
67
- showColumnManager: true,
61
+ showColumnManager: false,
68
62
  }
69
63
 
70
64
  export const getBodyDataFunc = (
71
- bodyData: UI_I_RecentTaskItem<T_TypeNodes>[],
65
+ bodyData: any,
72
66
  localization: UI_I_Localization
73
67
  ): UI_I_DataTableBody[] => {
74
68
  return bodyData.map((task, index: number) => {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "bfg-common",
3
3
  "private": false,
4
- "version": "1.4.484",
4
+ "version": "1.4.485",
5
5
  "scripts": {
6
6
  "build": "nuxt build",
7
7
  "dev": "nuxt dev --port=3002",