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