bfg-common 1.4.703 → 1.4.704

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.
@@ -10,6 +10,7 @@
10
10
  :total-items="tasksList?.total_items || 0"
11
11
  :loading="isLoading"
12
12
  :project="props.project"
13
+ @pagination="onUpdatePagination"
13
14
  />
14
15
  </div>
15
16
  </template>
@@ -43,15 +44,6 @@ const pauseGlobalRefresh = (): void => {
43
44
 
44
45
  const tasksList = computed<UI_I_Task>(() => $store.getters['tasks/getTaskList'])
45
46
 
46
- // const onClickButton = (status: string): void => {
47
- // if (status === 'next') {
48
- // pagination.value.page += 1
49
- // return
50
- // }
51
- //
52
- // pagination.value.page -= 1
53
- // }
54
-
55
47
  const getTasks = async (): Promise<void> => {
56
48
  pauseGlobalRefresh()
57
49
 
@@ -63,10 +55,10 @@ const getTasks = async (): Promise<void> => {
63
55
  }
64
56
  getTasks()
65
57
 
66
- // const onUpdatePagination = (event: UI_I_Pagination): void => {
67
- // pagination.value = event
68
- // getTasks()
69
- // }
58
+ const onUpdatePagination = (event: UI_I_Pagination): void => {
59
+ pagination.value = event
60
+ getTasks()
61
+ }
70
62
 
71
63
  // const onSortTable = (event: string): void => {
72
64
  // sort.value = event
@@ -6,7 +6,6 @@
6
6
  :loading="props.loading"
7
7
  :total-pages="props.totalPages"
8
8
  :total-items="props.totalItems"
9
- :texts="texts"
10
9
  class="task-table"
11
10
  @sorting="onSorting"
12
11
  @pagination="onPagination"
@@ -96,7 +95,6 @@ import type {
96
95
  UI_I_DataTableHeader,
97
96
  UI_I_DataTableBody,
98
97
  UI_I_Pagination,
99
- UI_I_TableTexts,
100
98
  } from '~/node_modules/bfg-uikit/components/ui/dataTable/models/interfaces'
101
99
  import type { UI_T_Project, UI_T_ProcuratorTypeNodes } from '~/lib/models/types'
102
100
  import type { UI_I_Localization } from '~/lib/models/interfaces'
@@ -117,6 +115,7 @@ const props = defineProps<{
117
115
  }>()
118
116
  const emits = defineEmits<{
119
117
  (event: 'sort', value: string): void
118
+ (event: 'pagination', value: UI_I_Pagination): void
120
119
  }>()
121
120
 
122
121
  const localization = computed<UI_I_Localization>(() => useLocal())
@@ -124,30 +123,17 @@ const { $store }: any = useNuxtApp()
124
123
 
125
124
  const actionsIsShow = ref<boolean[]>([])
126
125
 
127
- const data = ref<UI_I_DataTable>({
126
+ const data = computed<UI_I_DataTable>(() => ({
128
127
  id: 'tasks-table',
129
- selectedRows: [],
130
- header: [],
131
- body: [],
132
- })
133
-
134
- const texts = computed<UI_I_TableTexts>(() => ({
135
- searchHere: localization.value.common.searchHere,
136
- rowsPerPage: localization.value.common.rowsPerPage,
137
- of: localization.value.common.of,
138
- selected: localization.value.common.selected,
139
- columns: localization.value.common.columns,
140
- previous: localization.value.common.previous,
141
- next: localization.value.common.next,
142
- noItemsFound: localization.value.common.noItemsFound,
128
+ header: taskHeadItems.value,
129
+ body: taskBodyItems.value,
143
130
  }))
144
131
 
145
- const taskHeadItems = computed<UI_I_DataTableHeader[]>(
146
- () => getHeaderDataFunc(localization.value) || []
132
+ const taskHeadItems = computed<UI_I_DataTableHeader[]>(() =>
133
+ getHeaderDataFunc(localization.value)
147
134
  )
148
135
 
149
136
  const taskBodyItems = ref<UI_I_DataTableBody[]>([])
150
-
151
137
  watch(
152
138
  () => props.tableData,
153
139
  (newValue: UI_I_TaskItem<UI_T_ProcuratorTypeNodes>[]) => {
@@ -156,14 +142,7 @@ watch(
156
142
  return
157
143
  }
158
144
 
159
- taskBodyItems.value = getBodyDataFunc(newValue, localization.value) || []
160
-
161
- if (data.value.header.length === 0) {
162
- data.value.header = taskHeadItems.value
163
- }
164
-
165
- data.value.body = taskBodyItems.value
166
- console.log(data.value)
145
+ taskBodyItems.value = getBodyDataFunc(newValue, localization.value)
167
146
  },
168
147
  { deep: true, immediate: true }
169
148
  )
@@ -171,7 +150,7 @@ const onSorting = (value: string): void => {
171
150
  emits('sort', value)
172
151
  }
173
152
  const onPagination = (value: UI_I_Pagination): void => {
174
- console.log(value, 'pagination')
153
+ emits('pagination', value)
175
154
  }
176
155
 
177
156
  const actions = computed<UI_I_Dropdown[]>(() =>
@@ -274,258 +253,3 @@ const onSelectNodeOfTree = (data: any): void => {
274
253
  }
275
254
  }
276
255
  </style>
277
-
278
- <!--<template>-->
279
- <!-- <ui-data-table-->
280
- <!-- test-id="task-table"-->
281
- <!-- :data="data"-->
282
- <!-- :options="options"-->
283
- <!-- :loading="props.loading"-->
284
- <!-- :total-pages="props.totalPages"-->
285
- <!-- :total-items="props.totalItems"-->
286
- <!-- class="task-table"-->
287
- <!-- @sorting="onSorting"-->
288
- <!-- @pagination="onPagination"-->
289
- <!-- >-->
290
- <!-- <template #icon="{ item }">-->
291
- <!-- <span class="flex-align-center">-->
292
- <!-- <span :class="['icon', item.data.icon]" />-->
293
-
294
- <!-- <span-->
295
- <!-- :data-id="`rtask-${item.data.testId}`"-->
296
- <!-- :class="item.data.isLink && 'target-link'"-->
297
- <!-- @click.stop="onSelectNodeOfTree(item.data)"-->
298
- <!-- >-->
299
- <!-- {{ item.text }}-->
300
- <!-- </span>-->
301
- <!-- </span>-->
302
- <!-- </template>-->
303
-
304
- <!-- <template #status="{ item }">-->
305
- <!-- <ui-chip :test-id="item.data.testId" :color="item.data.chipColor" rounded>-->
306
- <!-- <ui-icon-->
307
- <!-- :name="item.data.icon"-->
308
- <!-- width="14px"-->
309
- <!-- height="14px"-->
310
- <!-- class="chip-icon"-->
311
- <!-- ></ui-icon>-->
312
- <!-- {{ item.text }}-->
313
- <!-- </ui-chip>-->
314
-
315
- <!-- <common-pages-tasks-table-error-info-->
316
- <!-- v-if="item.data.error"-->
317
- <!-- :id="item.data.testId"-->
318
- <!-- :error="item.data.error"-->
319
- <!-- />-->
320
- <!-- </template>-->
321
-
322
- <!-- <template #default-actions="{ item }">-->
323
- <!-- <div class="actions">-->
324
- <!-- <ui-button-->
325
- <!-- variant="text"-->
326
- <!-- :test-id="`resent-task-item-${item.data.id}-action`"-->
327
- <!-- is-without-height-->
328
- <!-- is-without-sizes-->
329
- <!-- @click.stop="onToggleActions(item.data.id)"-->
330
- <!-- >-->
331
- <!-- <span-->
332
- <!-- :class="['action-icon', { active: actionsIsShow[item.data.id] }]"-->
333
- <!-- >-->
334
- <!-- <ui-icon name="vertical-dotes" width="20" height="20" />-->
335
- <!-- </span>-->
336
- <!-- </ui-button>-->
337
- <!-- <ui-dropdown-->
338
- <!-- :show="actionsIsShow[item.data.id]"-->
339
- <!-- :test-id="`resent-task-item-action-${item.data.id}`"-->
340
- <!-- :items="actions"-->
341
- <!-- :elem-id="`resent-task-item-${item.data.id}-action`"-->
342
- <!-- left-->
343
- <!-- width="max-content"-->
344
- <!-- @select="onSelectAction(item.data.target, $event, item.data.id)"-->
345
- <!-- @hide="onHideActionsDropdown(item.data.id)"-->
346
- <!-- >-->
347
- <!-- <template #row="{ item: dropMenu }">-->
348
- <!-- <ui-icon-->
349
- <!-- v-if="dropMenu.iconName === 'hide'"-->
350
- <!-- name="password-hide"-->
351
- <!-- width="16"-->
352
- <!-- height="16"-->
353
- <!-- />-->
354
- <!-- <span class="action-text">-->
355
- <!-- {{ dropMenu.text }}-->
356
- <!-- </span>-->
357
- <!-- </template>-->
358
- <!-- </ui-dropdown>-->
359
- <!-- </div>-->
360
- <!-- </template>-->
361
-
362
- <!-- <template #expand="{ item }">-->
363
- <!-- <common-pages-tasks-table-expand-details :data="item.data" />-->
364
- <!-- </template>-->
365
- <!-- </ui-data-table>-->
366
- <!--</template>-->
367
-
368
- <!--<script setup lang="ts">-->
369
- <!--import type { UI_I_Dropdown } from '~/node_modules/bfg-uikit/components/ui/dropdown/models/interfaces'-->
370
- <!--import type {-->
371
- <!-- UI_I_DataTable,-->
372
- <!-- UI_I_DataTableHeader,-->
373
- <!-- UI_I_DataTableBody,-->
374
- <!-- UI_I_Pagination,-->
375
- <!--} from '~/node_modules/bfg-uikit/components/ui/dataTable/models/interfaces'-->
376
- <!--import type { UI_T_Project, UI_T_ProcuratorTypeNodes } from '~/lib/models/types'-->
377
- <!--import type { UI_I_Localization } from '~/lib/models/interfaces'-->
378
- <!--import type { UI_I_TaskItem } from '~/lib/models/store/tasks/interfaces'-->
379
- <!--import {-->
380
- <!-- options,-->
381
- <!-- getTargetActionsFunc,-->
382
- <!-- getHeaderDataFunc,-->
383
- <!-- getBodyDataFunc,-->
384
- <!--} from '~/components/common/pages/tasks/table/lib/config/config'-->
385
-
386
- <!--const props = defineProps<{-->
387
- <!-- project: UI_T_Project-->
388
- <!-- tableData: UI_I_TaskItem<UI_T_ProcuratorTypeNodes>[]-->
389
- <!-- totalPages: number-->
390
- <!-- totalItems: number-->
391
- <!-- loading: boolean-->
392
- <!--}>()-->
393
- <!--const emits = defineEmits<{-->
394
- <!-- (event: 'sort', value: string): void-->
395
- <!--}>()-->
396
-
397
- <!--const localization = computed<UI_I_Localization>(() => useLocal())-->
398
- <!--const { $store }: any = useNuxtApp()-->
399
-
400
- <!--const actionsIsShow = ref<boolean[]>([])-->
401
-
402
- <!--const data = computed<UI_I_DataTable>(() => ({-->
403
- <!-- id: 'tasks-table',-->
404
- <!-- header: taskHeadItems.value,-->
405
- <!-- body: taskBodyItems.value,-->
406
- <!--}))-->
407
-
408
- <!--const taskHeadItems = computed<UI_I_DataTableHeader[]>(() =>-->
409
- <!-- getHeaderDataFunc(localization.value)-->
410
- <!--)-->
411
-
412
- <!--const taskBodyItems = ref<UI_I_DataTableBody[]>([])-->
413
- <!--watch(-->
414
- <!-- () => props.tableData,-->
415
- <!-- (newValue: UI_I_TaskItem<UI_T_ProcuratorTypeNodes>[]) => {-->
416
- <!-- if (!newValue?.length) {-->
417
- <!-- taskBodyItems.value = []-->
418
- <!-- return-->
419
- <!-- }-->
420
-
421
- <!-- taskBodyItems.value = getBodyDataFunc(newValue, localization.value)-->
422
- <!-- },-->
423
- <!-- { deep: true, immediate: true }-->
424
- <!--)-->
425
- <!--const onSorting = (value: string): void => {-->
426
- <!-- emits('sort', value)-->
427
- <!--}-->
428
- <!--const onPagination = (value: UI_I_Pagination): void => {-->
429
- <!-- console.log(value)-->
430
- <!--}-->
431
-
432
- <!--const actions = computed<UI_I_Dropdown[]>(() =>-->
433
- <!-- getTargetActionsFunc(localization.value, props.project)-->
434
- <!--)-->
435
- <!--const onToggleActions = (id: number): void => {-->
436
- <!-- actionsIsShow.value[id] = !actionsIsShow.value[id]-->
437
- <!--}-->
438
- <!--const onSelectAction = (-->
439
- <!-- data: any,-->
440
- <!-- action: 'view-target' | 'view-zone',-->
441
- <!-- actionId: number-->
442
- <!--): void => {-->
443
- <!-- switch (action) {-->
444
- <!-- case 'view-target':-->
445
- <!-- onSelectNodeOfTree(data)-->
446
- <!-- break-->
447
- <!-- case 'view-zone':-->
448
- <!-- onSelectNodeOfTree({ ...data, type: 'zone', nav: 'h' })-->
449
- <!-- break-->
450
- <!-- }-->
451
- <!-- onHideActionsDropdown(actionId)-->
452
- <!--}-->
453
- <!--const onHideActionsDropdown = (id: number): void => {-->
454
- <!-- actionsIsShow.value[id] = false-->
455
- <!--}-->
456
-
457
- <!--const onSelectNodeOfTree = (data: any): void => {-->
458
- <!-- if (!data.isLink) return-->
459
-
460
- <!-- const { type, id, nav } = data-->
461
-
462
- <!-- const node = {-->
463
- <!-- id,-->
464
- <!-- type,-->
465
- <!-- }-->
466
-
467
- <!-- const path = `/inventory/type=${type};nav=${nav};id=${id}/summary`-->
468
- <!-- navigateTo(path)-->
469
-
470
- <!-- $store.dispatch('inventory/A_SELECT_NODE', { node, type })-->
471
- <!--}-->
472
- <!--</script>-->
473
-
474
- <!--<style>-->
475
- <!--/*TODO move up*/-->
476
- <!--:root {-->
477
- <!-- &#45;&#45;actions-icon-color: #4d5d69;-->
478
- <!-- &#45;&#45;actions-icon-hover-color: #213444;-->
479
- <!-- &#45;&#45;actions-icon-icative-color: #008fd6;-->
480
- <!--}-->
481
- <!--:root.dark-theme {-->
482
- <!-- &#45;&#45;actions-icon-color: #e9eaec;-->
483
- <!-- &#45;&#45;actions-icon-hover-color: #ffffff;-->
484
- <!-- &#45;&#45;actions-icon-icative-color: #2ba2de;-->
485
- <!--}-->
486
- <!--</style>-->
487
- <!--<style scoped lang="scss">-->
488
- <!--.task-table {-->
489
- <!-- height: inherit;-->
490
-
491
- <!-- .target-link {-->
492
- <!-- font-family: Inter, serif;-->
493
- <!-- font-size: 13px;-->
494
- <!-- color: var(&#45;&#45;bottom-pannel-rtask-link-text);-->
495
- <!-- font-weight: 400;-->
496
- <!-- line-height: 15.73px;-->
497
- <!-- cursor: pointer;-->
498
- <!-- &:hover {-->
499
- <!-- color: var(&#45;&#45;bottom-pannel-rtask-link-hover-text);-->
500
- <!-- }-->
501
- <!-- }-->
502
- <!-- .chip-icon {-->
503
- <!-- min-width: 14px;-->
504
- <!-- margin-right: 6px;-->
505
- <!-- }-->
506
- <!-- .icon {-->
507
- <!-- margin-right: 4px;-->
508
- <!-- }-->
509
-
510
- <!-- .actions {-->
511
- <!-- width: 100%;-->
512
-
513
- <!-- .action-icon {-->
514
- <!-- width: 16px;-->
515
- <!-- height: 16px;-->
516
- <!-- color: var(&#45;&#45;actions-icon-color);-->
517
-
518
- <!-- &:hover {-->
519
- <!-- color: var(&#45;&#45;actions-icon-hover-color);-->
520
- <!-- }-->
521
- <!-- &.active {-->
522
- <!-- color: var(&#45;&#45;actions-icon-icative-color);-->
523
- <!-- }-->
524
- <!-- }-->
525
-
526
- <!-- .action-text {-->
527
- <!-- margin-left: 8px;-->
528
- <!-- }-->
529
- <!-- }-->
530
- <!--}-->
531
- <!--</style>-->
@@ -155,6 +155,7 @@ const onSelectNodeOfTree = (data: any): void => {
155
155
  }
156
156
  }
157
157
  &__status {
158
+ @include flex($align: center);
158
159
  .ui-chip {
159
160
  width: max-content;
160
161
  :deep(.ui-chip__label) {
@@ -165,6 +165,7 @@ export const options: UI_I_DataTableOptions = {
165
165
  isSelectable: true,
166
166
  isFocusable: false,
167
167
  showPagination: true,
168
+ showPaginationOnTop: true,
168
169
  showPageInfo: true,
169
170
  isSortable: true,
170
171
  server: true,
@@ -173,7 +174,7 @@ export const options: UI_I_DataTableOptions = {
173
174
  showSelectedRows: true,
174
175
  showColumnManager: true,
175
176
  withActions: true,
176
- inBlockOnlyLightMode: false,
177
+ inBlock: true,
177
178
  }
178
179
 
179
180
  export const getBodyDataFunc = (
@@ -265,277 +266,3 @@ export const getBodyDataFunc = (
265
266
  }
266
267
  })
267
268
  }
268
-
269
- // import type {
270
- // UI_I_DataTableBody,
271
- // UI_I_DataTableOptions,
272
- // UI_I_DataTableHeader,
273
- // } from '~/node_modules/bfg-uikit/components/ui/dataTable/models/interfaces'
274
- // import type { UI_I_Dropdown } from '~/node_modules/bfg-uikit/components/ui/dropdown/models/interfaces'
275
- // import type { UI_I_Localization } from '~/lib/models/interfaces'
276
- // import type { UI_I_TaskItem } from '~/lib/models/store/tasks/interfaces'
277
- // import { UI_E_RecentTaskStatus } from '~/lib/models/store/tasks/enums'
278
- // import {
279
- // UI_E_RTaskChipColor,
280
- // UI_E_RTaskStatusIcon,
281
- // } from '~/components/common/pages/tasks/table/lib/models/enums'
282
- // import type { UI_T_Project } from '~/lib/models/types'
283
- // import type { UI_T_ProcuratorTypeNodes } from '~/lib/models/types'
284
- // import * as taskConfig from '~/components/templates/tasks/lib/config/taskConfig' // url из ( sphere, procurator )
285
- //
286
- // export const getHeaderDataFunc = (
287
- // localization: UI_I_Localization
288
- // ): UI_I_DataTableHeader[] => [
289
- // {
290
- // col: 0,
291
- // colName: 'task_name',
292
- // text: localization.tasks.taskName,
293
- // isSortable: true,
294
- // sort: 'asc',
295
- // sortColumn: true,
296
- // width: '180px',
297
- // show: true,
298
- // filter: true,
299
- // },
300
- // {
301
- // col: 1,
302
- // colName: 'target',
303
- // text: localization.common.target,
304
- // isSortable: true,
305
- // sort: 'asc',
306
- // width: '180px',
307
- // show: true,
308
- // filter: true,
309
- // },
310
- // {
311
- // col: 2,
312
- // colName: 'status',
313
- // text: localization.common.status,
314
- // isSortable: true,
315
- // sort: 'asc',
316
- // width: '180px',
317
- // show: true,
318
- // filter: true,
319
- // },
320
- // {
321
- // col: 3,
322
- // colName: 'details',
323
- // text: localization.common.details,
324
- // isSortable: true,
325
- // sort: 'asc',
326
- // width: '180px',
327
- // show: true,
328
- // filter: true,
329
- // },
330
- // {
331
- // col: 4,
332
- // colName: 'initiator',
333
- // text: localization.common.initiator,
334
- // isSortable: true,
335
- // sort: 'asc',
336
- // width: '180px',
337
- // show: true,
338
- // filter: true,
339
- // },
340
- // {
341
- // col: 5,
342
- // colName: 'queued_for',
343
- // text: localization.common.queuedFor,
344
- // isSortable: true,
345
- // sort: 'asc',
346
- // width: '180px',
347
- // show: true,
348
- // filter: true,
349
- // },
350
- // {
351
- // col: 6,
352
- // colName: 'start_time',
353
- // text: localization.common.startTime,
354
- // isSortable: true,
355
- // sort: 'asc',
356
- // width: '180px',
357
- // show: true,
358
- // filter: true,
359
- // },
360
- // {
361
- // col: 7,
362
- // colName: 'completion_time',
363
- // text: localization.common.completionTime,
364
- // isSortable: true,
365
- // sort: 'asc',
366
- // width: '180px',
367
- // show: true,
368
- // filter: true,
369
- // },
370
- // {
371
- // col: 8,
372
- // colName: 'execution_time',
373
- // text: localization.common.executionTime,
374
- // isSortable: true,
375
- // sort: 'asc',
376
- // width: '180px',
377
- // show: true,
378
- // filter: true,
379
- // },
380
- // {
381
- // col: 9,
382
- // colName: 'server',
383
- // text: localization.common.server,
384
- // isSortable: true,
385
- // sort: 'asc',
386
- // width: '180px',
387
- // show: true,
388
- // filter: true,
389
- // },
390
- // {
391
- // col: 10,
392
- // colName: 'zone',
393
- // text: localization.common.zone,
394
- // isSortable: true,
395
- // sort: 'asc',
396
- // width: '180px',
397
- // show: true,
398
- // filter: true,
399
- // },
400
- // {
401
- // col: 11,
402
- // colName: 'default-actions',
403
- // text: '',
404
- // show: true,
405
- // },
406
- // ]
407
- //
408
- // export const getTargetActionsFunc = (
409
- // localization: UI_I_Localization,
410
- // project: UI_T_Project
411
- // ): UI_I_Dropdown[] => {
412
- // const actions: UI_I_Dropdown[] = [
413
- // {
414
- // value: 'view-target',
415
- // text: localization.common.viewTarget,
416
- // iconName: 'hide',
417
- // selected: false,
418
- // },
419
- // ]
420
- //
421
- // if (project === 'sphere') {
422
- // actions.push({
423
- // value: 'view-zone',
424
- // text: localization.common.viewZone,
425
- // iconName: 'hide',
426
- // selected: false,
427
- // })
428
- // }
429
- //
430
- // return actions
431
- // }
432
- //
433
- // export const options: UI_I_DataTableOptions = {
434
- // perPageOptions: [
435
- // { text: '10', value: 10 },
436
- // { text: '50', value: 50 },
437
- // { text: '100', value: 100 },
438
- // ],
439
- // isSelectable: true,
440
- // isFocusable: false,
441
- // showPagination: true,
442
- // showPageInfo: true,
443
- // isSortable: true,
444
- // server: true,
445
- // isResizable: true,
446
- // showSearch: false,
447
- // showSelectedRows: true,
448
- // showColumnManager: true,
449
- // withActions: true,
450
- // inBlockOnlyLightMode: true,
451
- // }
452
- //
453
- // export const getBodyDataFunc = (
454
- // bodyData: UI_I_TaskItem<UI_T_ProcuratorTypeNodes>[],
455
- // localization: UI_I_Localization
456
- // ): UI_I_DataTableBody[] => {
457
- // const { $formattedDatetime } = useNuxtApp() as any
458
- //
459
- // return bodyData.map((task, index: number) => {
460
- // const iconClassName = taskConfig.iconFunc(task.targetType)
461
- // const id = taskConfig.idFunc(task)
462
- // const nav = taskConfig.navFunc(task.targetType)
463
- // const type = taskConfig.typeFunc(task.targetType)
464
- //
465
- // const targetData = {
466
- // id,
467
- // nav,
468
- // type,
469
- // icon: iconClassName,
470
- // isLink: !!iconClassName,
471
- // testId: `${task.targetType}-item`,
472
- // }
473
- //
474
- // const statusData = {
475
- // icon: UI_E_RTaskStatusIcon[task.status],
476
- // chipColor: UI_E_RTaskChipColor[task.status],
477
- // error: task.error,
478
- // testId: `${task.taskName}-progress`,
479
- // }
480
- //
481
- // const zoneNodeParams = taskConfig.zoneNodeFunc(task, nav)
482
- // const zoneData = {
483
- // ...zoneNodeParams,
484
- // nav,
485
- // icon: 'vsphere-icon-vcenter',
486
- // type: 'zone',
487
- // testId: `${task.targetType}-zone`,
488
- // }
489
- //
490
- // const formattedStartTime =
491
- // task.startTime === '--'
492
- // ? '--'
493
- // : $formattedDatetime(+task.startTime * 1000, '', true)
494
- //
495
- // const formattedCompletionTime =
496
- // task.completion === '--'
497
- // ? '--'
498
- // : $formattedDatetime(+task.completion * 1000, '', true)
499
- //
500
- // return {
501
- // row: index,
502
- // collapse: true,
503
- // isHiddenCollapse: false,
504
- // collapseToggle: false,
505
- // data: [
506
- // { col: 0, text: task.taskName },
507
- // {
508
- // key: 'icon',
509
- // col: 1,
510
- // text: task.target,
511
- // data: targetData,
512
- // },
513
- // {
514
- // key: 'status',
515
- // col: 2,
516
- // text: localization.common[UI_E_RecentTaskStatus[task.status]],
517
- // data: statusData,
518
- // },
519
- // { col: 3, text: task.details || '--' },
520
- // { col: 4, text: task.initiator },
521
- // { col: 5, text: `${task.queuedFor} ms` },
522
- // { col: 6, text: formattedStartTime },
523
- // { col: 7, text: formattedCompletionTime },
524
- // { col: 8, text: `${task.execution} ms` },
525
- // { col: 9, text: task.server },
526
- // {
527
- // key: 'icon',
528
- // col: 10,
529
- // text: task.zone,
530
- // data: zoneData,
531
- // },
532
- // {
533
- // key: 'default-actions',
534
- // col: 11,
535
- // text: '',
536
- // data: { id: index, target: targetData },
537
- // },
538
- // ],
539
- // }
540
- // })
541
- // }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "bfg-common",
3
3
  "private": false,
4
- "version": "1.4.703",
4
+ "version": "1.4.704",
5
5
  "scripts": {
6
6
  "build": "nuxt build",
7
7
  "dev": "nuxt dev --port=3002",