bfg-common 1.5.770 → 1.5.771
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/atoms/table/dataGrid/DataGrid.vue +19 -4
- package/components/common/pages/scheduledTasks/table/Table.vue +3 -11
- package/components/common/pages/scheduledTasks/table/expandDetails/ExpandDetails.vue +30 -0
- package/components/common/pages/scheduledTasks/table/expandDetails/New.vue +61 -0
- package/components/common/pages/scheduledTasks/table/{detailsList/DetailsList.vue → expandDetails/Old.vue} +7 -4
- package/components/common/pages/scheduledTasks/table/{detailsList/Table.vue → expandDetails/historyRun/HistoryRun.vue} +9 -5
- package/components/common/pages/scheduledTasks/table/{detailsList → expandDetails/historyRun}/lib/config/historyRunsTable.ts +4 -2
- package/components/common/pages/scheduledTasks/table/{detailsList → expandDetails/historyRun}/lib/config/tableKeys.ts +1 -1
- package/components/common/pages/scheduledTasks/table/{detailsList/lib/config/tasksRowDetails.ts → expandDetails/lib/config/expandDetails.ts} +3 -1
- package/components/common/pages/scheduledTasks/table/lib/config/scheduledTasksTable.ts +3 -0
- package/package.json +1 -1
- /package/components/common/pages/scheduledTasks/table/{detailsList → expandDetails/historyRun}/lib/models/types.ts +0 -0
|
@@ -1337,21 +1337,33 @@ onUnmounted(() => {
|
|
|
1337
1337
|
border-bottom: 1px solid var(--global-border-color);
|
|
1338
1338
|
|
|
1339
1339
|
&.datagrid-selected {
|
|
1340
|
-
|
|
1341
|
-
|
|
1342
|
-
|
|
1340
|
+
color: var(--table-active-color);
|
|
1341
|
+
//& :deep(*) {
|
|
1342
|
+
// color: var(--table-active-color);
|
|
1343
|
+
//}
|
|
1343
1344
|
|
|
1344
1345
|
.datagrid-cell {
|
|
1345
1346
|
background-color: var(--row-selected-bg-color);
|
|
1346
1347
|
border-bottom: 1px solid var(--global-border-color);
|
|
1347
1348
|
position: relative;
|
|
1348
1349
|
line-height: 1rem;
|
|
1350
|
+
|
|
1351
|
+
.datagrid-expandable-caret-button {
|
|
1352
|
+
.datagrid-expandable-caret-icon {
|
|
1353
|
+
fill: #ffffff;
|
|
1354
|
+
}
|
|
1355
|
+
}
|
|
1349
1356
|
}
|
|
1350
1357
|
|
|
1351
1358
|
.datagrid-row-detail {
|
|
1352
1359
|
background-color: var(--row-selected-bg-color);
|
|
1353
1360
|
border-bottom: 1px solid var(--global-border-color);
|
|
1354
1361
|
}
|
|
1362
|
+
.datagrid-row:not(.datagrid-selected) {
|
|
1363
|
+
.datagrid-cell {
|
|
1364
|
+
background-color: unset;
|
|
1365
|
+
}
|
|
1366
|
+
}
|
|
1355
1367
|
}
|
|
1356
1368
|
|
|
1357
1369
|
.datagrid-cell {
|
|
@@ -1560,9 +1572,12 @@ onUnmounted(() => {
|
|
|
1560
1572
|
.datagrid-fixed-column {
|
|
1561
1573
|
background-color: var(--table-hover-row-background-color);
|
|
1562
1574
|
}
|
|
1563
|
-
.datagrid-cell {
|
|
1575
|
+
& .datagrid-row-sticky .datagrid-cell {
|
|
1564
1576
|
background-color: var(--table-hover-row-background-color);
|
|
1565
1577
|
}
|
|
1578
|
+
//.datagrid-cell {
|
|
1579
|
+
// background-color: var(--table-hover-row-background-color);
|
|
1580
|
+
//}
|
|
1566
1581
|
}
|
|
1567
1582
|
}
|
|
1568
1583
|
}
|
|
@@ -18,7 +18,6 @@
|
|
|
18
18
|
hide-page-size
|
|
19
19
|
off-select-by-row
|
|
20
20
|
server-off
|
|
21
|
-
@row-detail="onGetRowDetails"
|
|
22
21
|
>
|
|
23
22
|
<template #icon="{ item }">
|
|
24
23
|
<atoms-the-icon :name="item.data.iconClassName" class="icon" />
|
|
@@ -27,9 +26,9 @@
|
|
|
27
26
|
</span>
|
|
28
27
|
</template>
|
|
29
28
|
|
|
30
|
-
<template #toggleBlock>
|
|
31
|
-
<common-pages-scheduled-tasks-table-details
|
|
32
|
-
:
|
|
29
|
+
<template #toggleBlock="{ item }">
|
|
30
|
+
<common-pages-scheduled-tasks-table-expand-details
|
|
31
|
+
:data="item[0].data.expandData"
|
|
33
32
|
/>
|
|
34
33
|
</template>
|
|
35
34
|
</atoms-table-data-grid>
|
|
@@ -45,8 +44,6 @@ import { itemsPerPage } from '~/components/atoms/table/dataGrid/lib/config/items
|
|
|
45
44
|
import type { UI_I_Localization } from '~/lib/models/interfaces'
|
|
46
45
|
import type { UI_I_Pagination } from '~/lib/models/table/interfaces'
|
|
47
46
|
import type { UI_I_ScheduledTasksTableItem } from '~/components/common/pages/scheduledTasks/lib/models/interfaces'
|
|
48
|
-
import type { UI_I_ScheduleTableRowDetails } from '~/components/common/pages/scheduledTasks/table/lib/models/interfaces'
|
|
49
|
-
import { detailsListFunc } from '~/components/common/pages/scheduledTasks/table/detailsList/lib/config/tasksRowDetails'
|
|
50
47
|
import * as scheduledTaskTable from '~/components/common/pages/scheduledTasks/table/lib/config/scheduledTasksTable'
|
|
51
48
|
|
|
52
49
|
const props = defineProps<{
|
|
@@ -70,11 +67,6 @@ const headItems = computed<UI_I_HeadItem[]>(() =>
|
|
|
70
67
|
const bodyItems = computed<UI_I_BodyItem[][]>(() => {
|
|
71
68
|
return scheduledTaskTable.bodyItems(props.dataTable || [])
|
|
72
69
|
})
|
|
73
|
-
|
|
74
|
-
const detailsList = ref<UI_I_ScheduleTableRowDetails[]>([])
|
|
75
|
-
const onGetRowDetails = (key: number): void => {
|
|
76
|
-
detailsList.value = detailsListFunc(props.dataTable[key], localization.value)
|
|
77
|
-
}
|
|
78
70
|
</script>
|
|
79
71
|
|
|
80
72
|
<style lang="scss" scoped>
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<component :is="currentComponent" :expand-data="normalizedSchedulerDetails" />
|
|
3
|
+
</template>
|
|
4
|
+
|
|
5
|
+
<script lang="ts" setup>
|
|
6
|
+
import type { UI_I_Localization } from '~/lib/models/interfaces'
|
|
7
|
+
import type { UI_I_ScheduledTasksTableItem } from '~/components/common/pages/scheduledTasks/lib/models/interfaces'
|
|
8
|
+
import type { UI_I_ScheduleTableRowDetails } from '~/components/common/pages/scheduledTasks/table/lib/models/interfaces'
|
|
9
|
+
import { detailsListFunc } from '~/components/common/pages/scheduledTasks/table/expandDetails/lib/config/expandDetails'
|
|
10
|
+
|
|
11
|
+
const props = defineProps<{
|
|
12
|
+
data: UI_I_ScheduledTasksTableItem
|
|
13
|
+
}>()
|
|
14
|
+
|
|
15
|
+
const localization = computed<UI_I_Localization>(() => useLocal())
|
|
16
|
+
const { $store }: any = useNuxtApp()
|
|
17
|
+
|
|
18
|
+
const isNewView = computed<boolean>(() => $store.getters['main/getIsNewView'])
|
|
19
|
+
const currentComponent = computed(() =>
|
|
20
|
+
isNewView.value
|
|
21
|
+
? defineAsyncComponent(() => import('./New.vue'))
|
|
22
|
+
: defineAsyncComponent(() => import('./Old.vue'))
|
|
23
|
+
)
|
|
24
|
+
|
|
25
|
+
const normalizedSchedulerDetails = computed<UI_I_ScheduleTableRowDetails[]>(
|
|
26
|
+
() => {
|
|
27
|
+
return detailsListFunc(props.data, localization.value)
|
|
28
|
+
}
|
|
29
|
+
)
|
|
30
|
+
</script>
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div class="expand-details" />
|
|
3
|
+
</template>
|
|
4
|
+
|
|
5
|
+
<script lang="ts" setup>
|
|
6
|
+
// import type { UI_I_DataTableBodyData } from '~/node_modules/bfg-uikit/components/ui/dataTable/models/interfaces'
|
|
7
|
+
|
|
8
|
+
// const props = defineProps<{
|
|
9
|
+
// expandData: UI_I_DataTableBodyData[]
|
|
10
|
+
// }>()
|
|
11
|
+
|
|
12
|
+
</script>
|
|
13
|
+
|
|
14
|
+
<style lang="scss" scoped>
|
|
15
|
+
@import 'assets/scss/common/mixins.scss';
|
|
16
|
+
%properties {
|
|
17
|
+
@include flex($align: center);
|
|
18
|
+
font-family: 'Inter', sans-serif;
|
|
19
|
+
font-weight: 400;
|
|
20
|
+
font-size: 12px;
|
|
21
|
+
line-height: 14.52px;
|
|
22
|
+
}
|
|
23
|
+
.expand-details {
|
|
24
|
+
display: grid;
|
|
25
|
+
grid-template-columns: auto 1fr;
|
|
26
|
+
column-gap: 24px;
|
|
27
|
+
row-gap: 12px;
|
|
28
|
+
&__row {
|
|
29
|
+
display: contents;
|
|
30
|
+
height: 18px;
|
|
31
|
+
}
|
|
32
|
+
&__label {
|
|
33
|
+
@extend %properties;
|
|
34
|
+
color: #9da6ad;
|
|
35
|
+
text-transform: capitalize;
|
|
36
|
+
|
|
37
|
+
&.events {
|
|
38
|
+
height: 18px;
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
&__value {
|
|
42
|
+
@extend %properties;
|
|
43
|
+
color: var(--title-form-first-color);
|
|
44
|
+
&.disabled {
|
|
45
|
+
color: var(--table-disabled-btn);
|
|
46
|
+
}
|
|
47
|
+
.icon {
|
|
48
|
+
margin-right: 4px;
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
&__status {
|
|
52
|
+
@include flex($align: center);
|
|
53
|
+
.ui-chip {
|
|
54
|
+
width: max-content;
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
&__tooltip {
|
|
58
|
+
margin-left: 6px;
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
</style>
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div class="details-list w-full">
|
|
3
3
|
<div
|
|
4
|
-
v-for="(item, key) in props.
|
|
4
|
+
v-for="(item, key) in props.expandData"
|
|
5
5
|
:key="key"
|
|
6
6
|
:class="[
|
|
7
7
|
'clr-row details-list__row',
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
<span v-else>{{ item.value }}</span>
|
|
34
34
|
</template>
|
|
35
35
|
|
|
36
|
-
<common-pages-scheduled-tasks-table-details-
|
|
36
|
+
<common-pages-scheduled-tasks-table-expand-details-history-run
|
|
37
37
|
v-else
|
|
38
38
|
:data-table="item.value"
|
|
39
39
|
:total-items="item.value.length"
|
|
@@ -46,11 +46,14 @@
|
|
|
46
46
|
</template>
|
|
47
47
|
|
|
48
48
|
<script lang="ts" setup>
|
|
49
|
-
import type {
|
|
49
|
+
import type { UI_I_DataTableBodyData } from '~/node_modules/bfg-uikit/components/ui/dataTable/models/interfaces'
|
|
50
|
+
// import type { UI_I_Localization } from '~/node_modules/bfg-common/lib/models/interfaces'
|
|
50
51
|
|
|
51
52
|
const props = defineProps<{
|
|
52
|
-
|
|
53
|
+
expandData: UI_I_DataTableBodyData[]
|
|
53
54
|
}>()
|
|
55
|
+
|
|
56
|
+
// const localization = computed<UI_I_Localization>(() => useLocal())
|
|
54
57
|
</script>
|
|
55
58
|
|
|
56
59
|
<style lang="scss" scoped>
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<atoms-table-data-grid
|
|
3
|
+
:selected-row="null"
|
|
3
4
|
:page-size="1"
|
|
4
5
|
:page="1"
|
|
5
6
|
:head-items="headItems"
|
|
@@ -7,8 +8,8 @@
|
|
|
7
8
|
:total-items="props.totalItems"
|
|
8
9
|
:total-pages="props.totalPages"
|
|
9
10
|
:loading="false"
|
|
10
|
-
test-id="
|
|
11
|
-
class="
|
|
11
|
+
test-id="scheduled-tasks-history-runs-table"
|
|
12
|
+
class="history-runs-table"
|
|
12
13
|
off-select-by-row
|
|
13
14
|
hide-footer
|
|
14
15
|
>
|
|
@@ -22,10 +23,13 @@
|
|
|
22
23
|
</template>
|
|
23
24
|
|
|
24
25
|
<script setup lang="ts">
|
|
25
|
-
import type {
|
|
26
|
+
import type {
|
|
27
|
+
UI_I_HeadItem,
|
|
28
|
+
UI_I_BodyItem,
|
|
29
|
+
} from '~/components/atoms/table/compact/lib/models/interfaces'
|
|
26
30
|
import type { UI_I_Localization } from '~/lib/models/interfaces'
|
|
27
31
|
import type { UI_I_ScheduledTasksTableItem } from '~/components/common/pages/scheduledTasks/lib/models/interfaces'
|
|
28
|
-
import * as historyRunTable from '~/components/common/pages/scheduledTasks/table/
|
|
32
|
+
import * as historyRunTable from '~/components/common/pages/scheduledTasks/table/expandDetails/historyRun/lib/config/historyRunsTable'
|
|
29
33
|
|
|
30
34
|
const props = defineProps<{
|
|
31
35
|
dataTable: UI_I_ScheduledTasksTableItem['last_5_run']
|
|
@@ -44,7 +48,7 @@ const bodyItems = computed<UI_I_BodyItem[][]>(() => {
|
|
|
44
48
|
</script>
|
|
45
49
|
|
|
46
50
|
<style lang="scss" scoped>
|
|
47
|
-
.
|
|
51
|
+
.history-runs-table {
|
|
48
52
|
height: inherit;
|
|
49
53
|
:deep(.datagrid-outer-wrapper) {
|
|
50
54
|
height: inherit;
|
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
UI_E_RecentTaskStatus,
|
|
10
10
|
} from '~/lib/models/store/tasks/enums'
|
|
11
11
|
import type { UI_I_ScheduledTasksTableItem } from '~/components/common/pages/scheduledTasks/lib/models/interfaces'
|
|
12
|
-
import { historyLastRunTableKeys } from '~/components/common/pages/scheduledTasks/table/
|
|
12
|
+
import { historyLastRunTableKeys } from '~/components/common/pages/scheduledTasks/table/expandDetails/historyRun/lib/config/tableKeys'
|
|
13
13
|
import { schedulerRunStatus } from '~/components/common/pages/scheduledTasks/table/lib/config/schedulerStatus'
|
|
14
14
|
|
|
15
15
|
const getItems = (
|
|
@@ -53,7 +53,9 @@ export const bodyItems = (
|
|
|
53
53
|
const bodyItems: UI_I_BodyItem[][] = []
|
|
54
54
|
data.forEach((event): void => {
|
|
55
55
|
const startTime = event[historyLastRunTableKeys[0]]
|
|
56
|
-
const formattedStartTime = $formattedDatetime(+startTime * 1000, {
|
|
56
|
+
const formattedStartTime = $formattedDatetime(+startTime * 1000, {
|
|
57
|
+
hasSeconds: true,
|
|
58
|
+
})
|
|
57
59
|
|
|
58
60
|
const endTime = event[historyLastRunTableKeys[2]]
|
|
59
61
|
const formattedEndTime =
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { UI_T_HistoryLastRunTableTuple } from '~/components/common/pages/scheduledTasks/table/
|
|
1
|
+
import type { UI_T_HistoryLastRunTableTuple } from '~/components/common/pages/scheduledTasks/table/expandDetails/historyRun/lib/models/types'
|
|
2
2
|
|
|
3
3
|
export const historyLastRunTableKeys: UI_T_HistoryLastRunTableTuple = [
|
|
4
4
|
'start',
|
|
@@ -37,7 +37,9 @@ export const detailsListFunc = (
|
|
|
37
37
|
{
|
|
38
38
|
id: 5,
|
|
39
39
|
text: localization.common.lastModified,
|
|
40
|
-
value: $formattedDatetime(data.last_modified * 1000, {
|
|
40
|
+
value: $formattedDatetime(data.last_modified * 1000, {
|
|
41
|
+
hasSeconds: true,
|
|
42
|
+
}),
|
|
41
43
|
testId: 'scheduled-tasks-last-modified',
|
|
42
44
|
},
|
|
43
45
|
|
package/package.json
CHANGED
|
File without changes
|