@giteeteam/apps-team-components 1.10.6 → 1.10.8

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.
@@ -1,5 +1,3 @@
1
- import { blue5, orange5, green5 } from '../style/common.js';
2
-
3
1
  const FIELD_TYPE_KEY_MAPPINGS = {
4
2
  Text: 'Text',
5
3
  User: 'User',
@@ -85,9 +83,18 @@ var WorkflowStatusType;
85
83
  WorkflowStatusType["Finished"] = "Finished";
86
84
  })(WorkflowStatusType || (WorkflowStatusType = {}));
87
85
  const WorkFlowStatusColor = {
88
- [WorkflowStatusType.Start]: { color: '#FFFFFF', bgColor: blue5 },
89
- [WorkflowStatusType.InProgress]: { color: '#FFFFFF', bgColor: orange5 },
90
- [WorkflowStatusType.Finished]: { color: '#FFFFFF', bgColor: green5 },
86
+ [WorkflowStatusType.Start]: {
87
+ color: 'var(--color-status-start, #fff)',
88
+ bgColor: 'var(--color-status-start-bg, #3683ff)',
89
+ },
90
+ [WorkflowStatusType.InProgress]: {
91
+ color: 'var(--color-status-in-progress, #fff)',
92
+ bgColor: 'var(--color-status-in-progress-bg, #ffbf36)',
93
+ },
94
+ [WorkflowStatusType.Finished]: {
95
+ color: 'var(--color-status-finished, #fff)',
96
+ bgColor: 'var(--color-status-finished-bg, #29c477)',
97
+ },
91
98
  };
92
99
  const CustomFieldComponentTypes = {
93
100
  Date: 'Date',
@@ -12,5 +12,6 @@ export type UserValueOption = {
12
12
  nickname: string;
13
13
  deleted: boolean;
14
14
  enabled: boolean;
15
+ email?: string;
15
16
  };
16
17
  export declare const userDataFormat: (user: UserValue) => UserValueOption;
@@ -30,6 +30,7 @@ const userDataFormat = (user) => {
30
30
  nickname: user.nickname,
31
31
  deleted: user.deleted,
32
32
  enabled: user.enabled,
33
+ email: user.email,
33
34
  });
34
35
  };
35
36
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@giteeteam/apps-team-components",
3
- "version": "1.10.6",
3
+ "version": "1.10.8",
4
4
  "description": "Gitee team components",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",