@giteeteam/apps-team-components 1.3.0-alpha.3 → 1.3.0

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.
Files changed (65) hide show
  1. package/README.md +24 -21
  2. package/dist/components/common/PriceTag.js +18 -18
  3. package/dist/components/common/expand-component/style.js +6 -6
  4. package/dist/components/common/overflow-tooltip/style/index.js +13 -13
  5. package/dist/components/common/style/global.js +2 -2
  6. package/dist/components/common/style/mixin.js +14 -14
  7. package/dist/components/common/user-field/style/index.js +21 -21
  8. package/dist/components/default-empty-icon/style.js +52 -52
  9. package/dist/components/fields/bind-workspace/style/index.js +3 -3
  10. package/dist/components/fields/dropdown/style.js +72 -72
  11. package/dist/components/fields/hyper-link/style/index.js +14 -14
  12. package/dist/components/fields/item-type/style/index.js +5 -5
  13. package/dist/components/fields/long-text/style/index.js +5 -5
  14. package/dist/components/fields/priority/style/index.js +50 -50
  15. package/dist/components/fields/status/style/index.js +297 -297
  16. package/dist/components/fields/tag/style/index.js +5 -5
  17. package/dist/components/fields/team/style/index.js +2 -2
  18. package/dist/components/fields/user/style/index.js +8 -8
  19. package/dist/components/table-components/style/index.js +5 -5
  20. package/dist/icons/empty-icon/workspace-empty.svg +126 -126
  21. package/dist/icons/style/index.js +21 -21
  22. package/dist/public/icons/BulbIcon.svg +1 -1
  23. package/dist/public/icons/Cloud.svg +1 -1
  24. package/dist/public/icons/ConsultIcon.svg +1 -1
  25. package/dist/public/icons/Demo.svg +1 -1
  26. package/dist/public/icons/ErrorTemplate.svg +1 -1
  27. package/dist/public/icons/Fail.svg +1 -1
  28. package/dist/public/icons/Flag.svg +1 -1
  29. package/dist/public/icons/GiteeIcon.svg +1 -1
  30. package/dist/public/icons/IntelligenceGradient.svg +1 -1
  31. package/dist/public/icons/Issue_Approval.svg +1 -1
  32. package/dist/public/icons/Issue_Bug.svg +1 -1
  33. package/dist/public/icons/Issue_Demand.svg +1 -1
  34. package/dist/public/icons/Issue_Doc.svg +1 -1
  35. package/dist/public/icons/Issue_Idea.svg +1 -1
  36. package/dist/public/icons/Issue_List.svg +1 -1
  37. package/dist/public/icons/Issue_Plan.svg +1 -1
  38. package/dist/public/icons/Issue_Product.svg +1 -1
  39. package/dist/public/icons/Issue_Risk.svg +1 -1
  40. package/dist/public/icons/Issue_Story.svg +1 -1
  41. package/dist/public/icons/Issue_Subtask.svg +1 -1
  42. package/dist/public/icons/Issue_Task.svg +1 -1
  43. package/dist/public/icons/Issue_Test.svg +1 -1
  44. package/dist/public/icons/Issue_TestExcution.svg +1 -1
  45. package/dist/public/icons/Issue_TestPlan.svg +1 -1
  46. package/dist/public/icons/Issue_Time.svg +1 -1
  47. package/dist/public/icons/Issue_develop.svg +1 -1
  48. package/dist/public/icons/KanbanCover.svg +7 -7
  49. package/dist/public/icons/ListCover.svg +117 -117
  50. package/dist/public/icons/ManHour.svg +1 -1
  51. package/dist/public/icons/MobileIcon.svg +1 -1
  52. package/dist/public/icons/NoItemType.svg +10 -10
  53. package/dist/public/icons/ProductIcon.svg +1 -1
  54. package/dist/public/icons/RedFlagIcon.svg +1 -1
  55. package/dist/public/icons/Safe.svg +1 -1
  56. package/dist/public/icons/StarIcon.svg +60 -60
  57. package/dist/public/icons/StructureCover.svg +1 -1
  58. package/dist/public/icons/Success.svg +1 -1
  59. package/dist/public/icons/TeamIcon.svg +1 -1
  60. package/dist/public/icons/WebIcon.svg +1 -1
  61. package/dist/public/icons/iconfont.svg +467 -467
  62. package/dist/public/icons/iconfont_single_color.css +912 -912
  63. package/dist/public/mockServiceWorker.js +284 -284
  64. package/dist/style/global.js +7 -7
  65. package/package.json +111 -111
@@ -1,302 +1,302 @@
1
1
  import { statusCellMinWidth, fieldLabelColor, themeBgColorBase, gray7 } from '../../../../style/common.js';
2
2
 
3
- const readViewWrapper = `
4
- display: -webkit-box;
5
- align-items: center;
6
- justify-content: center;
7
- min-width: 62px;
8
- height: 22px;
9
- padding: 0 8px;
10
- font-size: 12px;
11
- font-weight: 600;
12
- line-height: 22px;
13
- text-align: center;
14
- border-radius: 4px;
15
- `;
16
- const workflowContentStyle = `
17
- max-width: 200px;
18
- text-align: left;
19
- `;
20
- const statePopoverStyle = (antPrefix) => `
21
- z-index: 999 !important;
22
-
23
- div.${antPrefix}-popover-inner-content, div.${antPrefix}-popover-inner {
24
- padding: 0;
25
- }
26
-
27
- div.${antPrefix}-popover-arrow {
28
- background: transparent;
29
- border-style: none;
30
- border-width: 0;
31
- }
32
- `;
33
- const flowNextStyle = `
34
- max-height: 260px;
35
- padding-top: 10px;
36
- overflow: auto;
37
- margin: -12px;
38
- `;
39
- const flowWrapperStyle = `
40
- padding: 4px 0;
41
- `;
42
- const flowStateStyle = `
43
- min-width: ${statusCellMinWidth};
44
- height: 24px;
45
- padding: 0 18px 0 8px;
46
- font-size: 12px;
47
- font-weight: 600;
48
- line-height: 24px;
49
- color: #fff;
50
- text-align: center;
51
- background: #cdcdcd;
52
- border-radius: 4px;
53
- box-shadow: none !important;
54
-
55
- span {
56
- text-decoration: none !important;
57
- }
58
- `;
59
- const flowStateInWorkflowStyle = `
60
- &.status-btn:not(.add-weights) {
61
- min-width: ${statusCellMinWidth};
62
- height: 22px;
63
- padding: 0 8px;
64
- font-size: 12px;
65
- font-weight: 600;
66
- line-height: 22px;
67
- color: #fff;
68
- text-align: center;
69
- background: #cdcdcd;
70
- border-radius: 4px;
71
-
72
- display: flex;
73
- align-items: center;
74
- justify-content: center;
75
- }
76
- `;
77
- const flowStateButtonStyle = `
78
- &:not(.add-weights) > span {
79
- display: -webkit-box;
80
- }
81
- `;
82
- const stateBtnStyle = `
83
- height: 22px;
84
- line-height: 22px;
85
- `;
86
- const noStateStyle = `
87
- color: ${fieldLabelColor};
88
- background: ${themeBgColorBase};
89
- `;
90
- const caretDownStyle = `
91
- padding-left: 2px;
92
- margin-left: 0;
93
- line-height: 10px;
94
- `;
95
- const statusViewGlobalStyle = `
96
- .field-layout.status-view {
97
- position: relative;
98
- padding: 10px;
99
- margin: -12px;
100
- margin-top: 10px;
101
- font-size: 12px;
102
- cursor: pointer;
103
- border-top: 1px solid #ddd;
104
- width: auto;
105
- }
106
-
107
- .field-layout.status-view .status-view-watch {
108
- width: 12px;
109
- height: 12px;
110
- margin-right: 5px;
111
- font-size: 12px;
112
- vertical-align: middle;
113
- }
114
- `;
115
- const tipLineStyle = `
116
- margin-bottom: 0;
117
- `;
118
- const tooltipStyle = `
119
- width: 98px;
120
- `;
121
- const iconStyle = `
122
- padding: 0 6px;
123
- color: ${gray7};
124
- `;
125
- const stateBoxStyle = `
126
- display: flex;
127
- width: 98px;
128
-
129
- span {
130
- padding-right: 8px;
131
- }
132
- `;
133
- const flowBtnStyle = `
134
- display: flex;
135
- padding: 5px 10px;
136
- margin: 0;
137
-
138
- &:hover {
139
- background-color: var(--select-item-selected-bg, #e6f3ff);
140
- }
141
- `;
142
- const notAllowedStyle = `
143
- cursor: not-allowed;
144
- opacity: 0.3;
145
- `;
146
- const pointerStyle = `
147
- cursor: pointer;
148
- `;
149
- const spinStyle = `
150
- width: 150px;
151
- height: 50px;
152
- `;
153
- const noPermissionStyle = `
154
- display: block;
155
- width: 120px;
156
- padding: 20px 10px 10px;
157
- font-size: 12px;
158
- color: #2e405e;
159
- `;
160
- const overflowStyle = `
161
- display: flex;
162
- margin-top: 4px;
163
- `;
164
- const overflowStyleText = `
165
- font-size: 13px;
166
- line-height: 24px;
167
- color: ${gray7};
168
- flex: 1;
169
- `;
170
- const headerFlowStyle = `
171
- text-align: right;
172
- `;
173
- const headerStateStyle = `
174
- & > span {
175
- display: inline-block !important;
176
- }
177
- `;
178
- const FlowHandlerWrapper = `
179
- width: 216px;
180
- `;
181
- const FlowHandlerHeader = `
182
- position: relative;
183
- font-size: 14px;
184
- text-align: center;
185
- line-height: 22px;
186
- margin-top: -6px;
187
- .back-wrapper {
188
- position: absolute;
189
- left: 0;
190
- top: 0;
191
- cursor: pointer;
192
- }
193
- .icon-back {
194
- font-size: 16px !important;
195
- width: 16px !important;
196
- }
197
- `;
198
- const FlowHandlerSearchWrapper = `
199
- margin: 0 -12px;
200
- padding: 5px 10px;
201
- border-top: 1px solid #f1f2f4;
202
- border-bottom: 1px solid #f1f2f4;
203
-
204
- .icon-search {
205
- position: relative;
206
- top: 2px;
207
- color: #b5bac5;
208
- font-size: 16px !important;
209
- width: 16px !important;
210
- }
211
- .search-input {
212
- padding-left: 6px;
213
- border: none;
214
- width: 196px;
215
- outline: none;
216
- fill: none;
217
- box-shadow: none !important;
218
- }
219
- `;
220
- const FlowHandlerSelectMessage = `
221
- margin: 0 -12px;
222
- padding: 6px 12px;
223
- display: flex;
224
- font-size: 12px;
225
- color: #091940;
226
- border-bottom: 1px solid #f1f2f4;
227
-
228
- span:nth-child(1) {
229
- position: relative;
230
- color: #0C62FF;
231
- cursor: pointer;
232
- &:hover {
233
- color: #091940;
234
- }
235
-
236
- &:after {
237
- content: '';
238
- position: absolute;
239
- height: 14px;
240
- top: 2px;
241
- right: -10px;
242
- border-right: 1px solid #f1f2f4;
243
- }
244
- }
245
- span:nth-child(2) {
246
- padding-left: 18px;
247
- flex: 1;
248
-
249
- }
250
- span:nth-child(3) {
251
- color: #0c62ff;
252
- cursor: pointer;
253
- &:hover {
254
- color: #091940;
255
- }
256
- }
257
- `;
258
- const FlowHandlerSelectContent = `
259
- min-height: 200px;
260
- max-height: 200px;
261
- overflow-y: auto;
262
- margin: 0 -12px;
263
- .loading {
264
- height: 200px !important;
265
- }
266
- `;
267
- const FlowHandlerSelectItem = `
268
- position: relative;
269
- margin: 0 4px;
270
- padding: 5px 12px;
271
- font-size: 14px;
272
- color: #091940;
273
- cursor: pointer;
274
- border-radius: 4px;
275
-
276
- .icon-done {
277
- position: absolute;
278
- top: 10px;
279
- right: 14px;
280
- width: 12px;
281
- height: 12px;
282
- color: #0C62FF;
283
- scale: 1.2;
284
- }
285
-
286
- &:hover {
287
- background-color: #f1f2f4;
288
- }
289
-
290
- &.active {
291
- background-color: #E6F3FF;
292
- font-weight: 600;
293
- }
294
- `;
295
- const FlowHandlerSubmitWrapper = `
296
- border-top: 1px solid #f1f2f4;
297
- padding: 6px 6px 6px 0;
298
- margin: 0 -12px -12px -12px;
299
- text-align: right;
3
+ const readViewWrapper = `
4
+ display: -webkit-box;
5
+ align-items: center;
6
+ justify-content: center;
7
+ min-width: 62px;
8
+ height: 22px;
9
+ padding: 0 8px;
10
+ font-size: 12px;
11
+ font-weight: 600;
12
+ line-height: 22px;
13
+ text-align: center;
14
+ border-radius: 4px;
15
+ `;
16
+ const workflowContentStyle = `
17
+ max-width: 200px;
18
+ text-align: left;
19
+ `;
20
+ const statePopoverStyle = (antPrefix) => `
21
+ z-index: 999 !important;
22
+
23
+ div.${antPrefix}-popover-inner-content, div.${antPrefix}-popover-inner {
24
+ padding: 0;
25
+ }
26
+
27
+ div.${antPrefix}-popover-arrow {
28
+ background: transparent;
29
+ border-style: none;
30
+ border-width: 0;
31
+ }
32
+ `;
33
+ const flowNextStyle = `
34
+ max-height: 260px;
35
+ padding-top: 10px;
36
+ overflow: auto;
37
+ margin: -12px;
38
+ `;
39
+ const flowWrapperStyle = `
40
+ padding: 4px 0;
41
+ `;
42
+ const flowStateStyle = `
43
+ min-width: ${statusCellMinWidth};
44
+ height: 24px;
45
+ padding: 0 18px 0 8px;
46
+ font-size: 12px;
47
+ font-weight: 600;
48
+ line-height: 24px;
49
+ color: #fff;
50
+ text-align: center;
51
+ background: #cdcdcd;
52
+ border-radius: 4px;
53
+ box-shadow: none !important;
54
+
55
+ span {
56
+ text-decoration: none !important;
57
+ }
58
+ `;
59
+ const flowStateInWorkflowStyle = `
60
+ &.status-btn:not(.add-weights) {
61
+ min-width: ${statusCellMinWidth};
62
+ height: 22px;
63
+ padding: 0 8px;
64
+ font-size: 12px;
65
+ font-weight: 600;
66
+ line-height: 22px;
67
+ color: #fff;
68
+ text-align: center;
69
+ background: #cdcdcd;
70
+ border-radius: 4px;
71
+
72
+ display: flex;
73
+ align-items: center;
74
+ justify-content: center;
75
+ }
76
+ `;
77
+ const flowStateButtonStyle = `
78
+ &:not(.add-weights) > span {
79
+ display: -webkit-box;
80
+ }
81
+ `;
82
+ const stateBtnStyle = `
83
+ height: 22px;
84
+ line-height: 22px;
85
+ `;
86
+ const noStateStyle = `
87
+ color: ${fieldLabelColor};
88
+ background: ${themeBgColorBase};
89
+ `;
90
+ const caretDownStyle = `
91
+ padding-left: 2px;
92
+ margin-left: 0;
93
+ line-height: 10px;
94
+ `;
95
+ const statusViewGlobalStyle = `
96
+ .field-layout.status-view {
97
+ position: relative;
98
+ padding: 10px;
99
+ margin: -12px;
100
+ margin-top: 10px;
101
+ font-size: 12px;
102
+ cursor: pointer;
103
+ border-top: 1px solid #ddd;
104
+ width: auto;
105
+ }
106
+
107
+ .field-layout.status-view .status-view-watch {
108
+ width: 12px;
109
+ height: 12px;
110
+ margin-right: 5px;
111
+ font-size: 12px;
112
+ vertical-align: middle;
113
+ }
114
+ `;
115
+ const tipLineStyle = `
116
+ margin-bottom: 0;
117
+ `;
118
+ const tooltipStyle = `
119
+ width: 98px;
120
+ `;
121
+ const iconStyle = `
122
+ padding: 0 6px;
123
+ color: ${gray7};
124
+ `;
125
+ const stateBoxStyle = `
126
+ display: flex;
127
+ width: 98px;
128
+
129
+ span {
130
+ padding-right: 8px;
131
+ }
132
+ `;
133
+ const flowBtnStyle = `
134
+ display: flex;
135
+ padding: 5px 10px;
136
+ margin: 0;
137
+
138
+ &:hover {
139
+ background-color: var(--select-item-selected-bg, #e6f3ff);
140
+ }
141
+ `;
142
+ const notAllowedStyle = `
143
+ cursor: not-allowed;
144
+ opacity: 0.3;
145
+ `;
146
+ const pointerStyle = `
147
+ cursor: pointer;
148
+ `;
149
+ const spinStyle = `
150
+ width: 150px;
151
+ height: 50px;
152
+ `;
153
+ const noPermissionStyle = `
154
+ display: block;
155
+ width: 120px;
156
+ padding: 20px 10px 10px;
157
+ font-size: 12px;
158
+ color: #2e405e;
159
+ `;
160
+ const overflowStyle = `
161
+ display: flex;
162
+ margin-top: 4px;
163
+ `;
164
+ const overflowStyleText = `
165
+ font-size: 13px;
166
+ line-height: 24px;
167
+ color: ${gray7};
168
+ flex: 1;
169
+ `;
170
+ const headerFlowStyle = `
171
+ text-align: right;
172
+ `;
173
+ const headerStateStyle = `
174
+ & > span {
175
+ display: inline-block !important;
176
+ }
177
+ `;
178
+ const FlowHandlerWrapper = `
179
+ width: 216px;
180
+ `;
181
+ const FlowHandlerHeader = `
182
+ position: relative;
183
+ font-size: 14px;
184
+ text-align: center;
185
+ line-height: 22px;
186
+ margin-top: -6px;
187
+ .back-wrapper {
188
+ position: absolute;
189
+ left: 0;
190
+ top: 0;
191
+ cursor: pointer;
192
+ }
193
+ .icon-back {
194
+ font-size: 16px !important;
195
+ width: 16px !important;
196
+ }
197
+ `;
198
+ const FlowHandlerSearchWrapper = `
199
+ margin: 0 -12px;
200
+ padding: 5px 10px;
201
+ border-top: 1px solid #f1f2f4;
202
+ border-bottom: 1px solid #f1f2f4;
203
+
204
+ .icon-search {
205
+ position: relative;
206
+ top: 2px;
207
+ color: #b5bac5;
208
+ font-size: 16px !important;
209
+ width: 16px !important;
210
+ }
211
+ .search-input {
212
+ padding-left: 6px;
213
+ border: none;
214
+ width: 196px;
215
+ outline: none;
216
+ fill: none;
217
+ box-shadow: none !important;
218
+ }
219
+ `;
220
+ const FlowHandlerSelectMessage = `
221
+ margin: 0 -12px;
222
+ padding: 6px 12px;
223
+ display: flex;
224
+ font-size: 12px;
225
+ color: #091940;
226
+ border-bottom: 1px solid #f1f2f4;
227
+
228
+ span:nth-child(1) {
229
+ position: relative;
230
+ color: #0C62FF;
231
+ cursor: pointer;
232
+ &:hover {
233
+ color: #091940;
234
+ }
235
+
236
+ &:after {
237
+ content: '';
238
+ position: absolute;
239
+ height: 14px;
240
+ top: 2px;
241
+ right: -10px;
242
+ border-right: 1px solid #f1f2f4;
243
+ }
244
+ }
245
+ span:nth-child(2) {
246
+ padding-left: 18px;
247
+ flex: 1;
248
+
249
+ }
250
+ span:nth-child(3) {
251
+ color: #0c62ff;
252
+ cursor: pointer;
253
+ &:hover {
254
+ color: #091940;
255
+ }
256
+ }
257
+ `;
258
+ const FlowHandlerSelectContent = `
259
+ min-height: 200px;
260
+ max-height: 200px;
261
+ overflow-y: auto;
262
+ margin: 0 -12px;
263
+ .loading {
264
+ height: 200px !important;
265
+ }
266
+ `;
267
+ const FlowHandlerSelectItem = `
268
+ position: relative;
269
+ margin: 0 4px;
270
+ padding: 5px 12px;
271
+ font-size: 14px;
272
+ color: #091940;
273
+ cursor: pointer;
274
+ border-radius: 4px;
275
+
276
+ .icon-done {
277
+ position: absolute;
278
+ top: 10px;
279
+ right: 14px;
280
+ width: 12px;
281
+ height: 12px;
282
+ color: #0C62FF;
283
+ scale: 1.2;
284
+ }
285
+
286
+ &:hover {
287
+ background-color: #f1f2f4;
288
+ }
289
+
290
+ &.active {
291
+ background-color: #E6F3FF;
292
+ font-weight: 600;
293
+ }
294
+ `;
295
+ const FlowHandlerSubmitWrapper = `
296
+ border-top: 1px solid #f1f2f4;
297
+ padding: 6px 6px 6px 0;
298
+ margin: 0 -12px -12px -12px;
299
+ text-align: right;
300
300
  `;
301
301
 
302
302
  export { FlowHandlerHeader, FlowHandlerSearchWrapper, FlowHandlerSelectContent, FlowHandlerSelectItem, FlowHandlerSelectMessage, FlowHandlerSubmitWrapper, FlowHandlerWrapper, caretDownStyle, flowBtnStyle, flowNextStyle, flowStateButtonStyle, flowStateInWorkflowStyle, flowStateStyle, flowWrapperStyle, headerFlowStyle, headerStateStyle, iconStyle, noPermissionStyle, noStateStyle, notAllowedStyle, overflowStyle, overflowStyleText, pointerStyle, readViewWrapper, spinStyle, stateBoxStyle, stateBtnStyle, statePopoverStyle, statusViewGlobalStyle, tipLineStyle, tooltipStyle, workflowContentStyle };
@@ -1,8 +1,8 @@
1
- const baseTagStyle = `
2
- max-width: 6em;
3
- height: 22px;
4
- white-space: normal;
5
- vertical-align: middle;
1
+ const baseTagStyle = `
2
+ max-width: 6em;
3
+ height: 22px;
4
+ white-space: normal;
5
+ vertical-align: middle;
6
6
  `;
7
7
 
8
8
  export { baseTagStyle };
@@ -1,5 +1,5 @@
1
- const forbiddenStyle = `
2
- text-decoration: line-through;
1
+ const forbiddenStyle = `
2
+ text-decoration: line-through;
3
3
  `;
4
4
  const deletedStyle = forbiddenStyle;
5
5
 
@@ -1,15 +1,15 @@
1
1
  import { gray6, gray9 } from '../../../../style/common.js';
2
2
 
3
- const userDisabledStyle = `
4
- color: ${gray6};
3
+ const userDisabledStyle = `
4
+ color: ${gray6};
5
5
  `;
6
- const userDeletedStyle = `
7
- text-decoration: line-through;
6
+ const userDeletedStyle = `
7
+ text-decoration: line-through;
8
8
  `;
9
- const usernameStyle = `
10
- font-size: 14px;
11
- line-height: 20px;
12
- color: ${gray9};
9
+ const usernameStyle = `
10
+ font-size: 14px;
11
+ line-height: 20px;
12
+ color: ${gray9};
13
13
  `;
14
14
 
15
15
  export { userDeletedStyle, userDisabledStyle, usernameStyle };
@@ -1,8 +1,8 @@
1
- const fieldCellGlobalStyle = `
2
- .field-cell-layout {
3
- align-items: center;
4
- width: 100%;
5
- }
1
+ const fieldCellGlobalStyle = `
2
+ .field-cell-layout {
3
+ align-items: center;
4
+ width: 100%;
5
+ }
6
6
  `;
7
7
 
8
8
  export { fieldCellGlobalStyle };