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.
- package/components/common/pages/home/widgets/services/ServicesOld.vue +1 -1
- package/components/common/pages/home/widgets/services/lib/config/config.ts +15 -21
- package/components/common/{home/servicesTable/ServicesTable.vue → pages/home/widgets/services/table/Table.vue} +1 -1
- package/components/common/pages/home/widgets/warnings/lib/config/config.ts +15 -21
- package/package.json +1 -1
- /package/components/common/{home/servicesTable → pages/home/widgets/services/table}/lib/config/config.ts +0 -0
|
@@ -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: '
|
|
23
|
-
text: localization.
|
|
20
|
+
colName: 'item',
|
|
21
|
+
text: localization.common.item,
|
|
24
22
|
isSortable: true,
|
|
25
23
|
sort: 'asc',
|
|
26
24
|
sortColumn: true,
|
|
27
|
-
width: '
|
|
25
|
+
width: '33.3%',
|
|
28
26
|
show: true,
|
|
29
27
|
filter: true,
|
|
30
28
|
},
|
|
31
29
|
{
|
|
32
30
|
col: 1,
|
|
33
|
-
colName: '
|
|
34
|
-
text: localization.common.
|
|
31
|
+
colName: 'alerts',
|
|
32
|
+
text: localization.common.alerts,
|
|
35
33
|
isSortable: true,
|
|
36
34
|
sort: 'asc',
|
|
37
|
-
width: '
|
|
35
|
+
width: '33.3%',
|
|
38
36
|
show: true,
|
|
39
37
|
filter: true,
|
|
40
38
|
},
|
|
41
39
|
{
|
|
42
40
|
col: 2,
|
|
43
|
-
colName: '
|
|
44
|
-
text: localization.common.
|
|
41
|
+
colName: 'warnings',
|
|
42
|
+
text: localization.common.warnings,
|
|
45
43
|
isSortable: true,
|
|
46
44
|
sort: 'asc',
|
|
47
|
-
width: '
|
|
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:
|
|
62
|
-
showPageInfo:
|
|
55
|
+
showPagination: false,
|
|
56
|
+
showPageInfo: false,
|
|
63
57
|
isSortable: true,
|
|
64
58
|
server: false,
|
|
65
|
-
isResizable:
|
|
59
|
+
isResizable: false,
|
|
66
60
|
showSearch: false,
|
|
67
|
-
showColumnManager:
|
|
61
|
+
showColumnManager: false,
|
|
68
62
|
}
|
|
69
63
|
|
|
70
64
|
export const getBodyDataFunc = (
|
|
71
|
-
bodyData:
|
|
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/
|
|
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: '
|
|
23
|
-
text: localization.
|
|
20
|
+
colName: 'item',
|
|
21
|
+
text: localization.common.item,
|
|
24
22
|
isSortable: true,
|
|
25
23
|
sort: 'asc',
|
|
26
24
|
sortColumn: true,
|
|
27
|
-
width: '
|
|
25
|
+
width: '33.3%',
|
|
28
26
|
show: true,
|
|
29
27
|
filter: true,
|
|
30
28
|
},
|
|
31
29
|
{
|
|
32
30
|
col: 1,
|
|
33
|
-
colName: '
|
|
34
|
-
text: localization.common.
|
|
31
|
+
colName: 'status',
|
|
32
|
+
text: localization.common.status,
|
|
35
33
|
isSortable: true,
|
|
36
34
|
sort: 'asc',
|
|
37
|
-
width: '
|
|
35
|
+
width: '33.3%',
|
|
38
36
|
show: true,
|
|
39
37
|
filter: true,
|
|
40
38
|
},
|
|
41
39
|
{
|
|
42
40
|
col: 2,
|
|
43
|
-
colName: '
|
|
44
|
-
text: localization.common.
|
|
41
|
+
colName: 'version',
|
|
42
|
+
text: localization.common.version,
|
|
45
43
|
isSortable: true,
|
|
46
44
|
sort: 'asc',
|
|
47
|
-
width: '
|
|
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:
|
|
62
|
-
showPageInfo:
|
|
55
|
+
showPagination: false,
|
|
56
|
+
showPageInfo: false,
|
|
63
57
|
isSortable: true,
|
|
64
58
|
server: false,
|
|
65
|
-
isResizable:
|
|
59
|
+
isResizable: false,
|
|
66
60
|
showSearch: false,
|
|
67
|
-
showColumnManager:
|
|
61
|
+
showColumnManager: false,
|
|
68
62
|
}
|
|
69
63
|
|
|
70
64
|
export const getBodyDataFunc = (
|
|
71
|
-
bodyData:
|
|
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
|
File without changes
|