bfg-common 1.4.674 → 1.4.675

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.
@@ -76,7 +76,10 @@ onUnmounted(() => {
76
76
 
77
77
  <style lang="scss" scoped>
78
78
  .tasks {
79
- padding: 10px 16px;
79
+ display: flex; // TODO надо удалить потом (clr style)
80
+ flex-direction: column; // TODO надо удалить потом (clr style)
81
+ height: inherit;
82
+ padding: 10px 16px 30px;
80
83
  &__headline {
81
84
  font-family: Inter, sans-serif;
82
85
  font-weight: 400;
@@ -6,13 +6,14 @@ import type {
6
6
  import type { UI_I_Localization } from '~/lib/models/interfaces'
7
7
  import type { UI_I_RecentTaskItem } from '~/lib/models/store/tasks/interfaces'
8
8
  import { UI_E_RecentTaskStatus } from '~/lib/models/store/tasks/enums'
9
- import { E_NodeIconsByState } from '~/lib/models/enums'
9
+ // import { E_NodeIconsByState } from '~/lib/models/enums'
10
10
  import { UI_E_TabsByType } from '~/components/common/pages/tasks/table/lib/models/enums'
11
11
  import {
12
12
  UI_E_RTaskChipColor,
13
13
  UI_E_RTaskStatusIcon,
14
14
  } from '~/components/common/pages/tasks/table/lib/models/enums'
15
15
  import type { T_TypeNodes } from '~/lib/models/types'
16
+ import * as taskConfig from '~/components/components/templates/tasks/lib/config/taskConfig'
16
17
 
17
18
  export const getHeaderDataFunc = (
18
19
  localization: UI_I_Localization
@@ -163,7 +164,9 @@ export const getBodyDataFunc = (
163
164
 
164
165
  return bodyData.map((task, index: number) => {
165
166
 
166
- const iconClassName = E_NodeIconsByState[`${task.targetType}_Normal`]
167
+ const iconClassName = taskConfig.iconFunc(task.targetType)
168
+
169
+ // const iconClassName = E_NodeIconsByState[`${task.targetType}_Normal`]
167
170
  const id = task.extra?.created_id || task.target
168
171
  const targetData = {
169
172
  id,
@@ -182,12 +185,12 @@ export const getBodyDataFunc = (
182
185
  }
183
186
 
184
187
  const formattedStartTime =
185
- task.startTime === '-'
188
+ task.startTime === '--'
186
189
  ? '--'
187
190
  : $formattedDatetime(+task.startTime * 1000, '', true)
188
191
 
189
192
  const formattedCompletionTime =
190
- task.completion === '-'
193
+ task.completion === '--'
191
194
  ? '--'
192
195
  : $formattedDatetime(+task.completion * 1000, '', true)
193
196
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "bfg-common",
3
3
  "private": false,
4
- "version": "1.4.674",
4
+ "version": "1.4.675",
5
5
  "scripts": {
6
6
  "build": "nuxt build",
7
7
  "dev": "nuxt dev --port=3002",