@giteeteam/apps-team-components 1.2.2 → 1.3.0-alpha.2
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/EmptyField.d.ts +0 -1
- package/dist/components/common/EmptyField.js +7 -5
- package/dist/components/common/PriceTag.js +26 -23
- package/dist/components/common/expand-component/index.d.ts +22 -0
- package/dist/components/common/expand-component/index.js +67 -0
- package/dist/components/common/expand-component/style.d.ts +2 -0
- package/dist/components/common/expand-component/style.js +10 -0
- package/dist/components/common/item-icon/ItemIcon.d.ts +7 -0
- package/dist/components/common/item-icon/ItemIcon.js +8 -0
- package/dist/components/common/overflow-tooltip/BaseOverflowTooltip.d.ts +0 -1
- package/dist/components/common/overflow-tooltip/BaseOverflowTooltip.js +9 -6
- package/dist/components/common/overflow-tooltip/OverflowTooltip.d.ts +19 -0
- package/dist/components/common/overflow-tooltip/OverflowTooltip.js +57 -0
- package/dist/components/common/overflow-tooltip/SimpleOverflowToolTip.js +8 -5
- package/dist/components/common/overflow-tooltip/style/index.js +16 -14
- package/dist/components/common/style/global.js +4 -2
- package/dist/components/common/style/mixin.d.ts +2 -0
- package/dist/components/common/style/mixin.js +20 -0
- package/dist/components/common/user-field/UserAvatar.js +8 -6
- package/dist/components/common/user-field/style/index.js +23 -21
- package/dist/components/common/utils.d.ts +6 -0
- package/dist/components/common/utils.js +63 -5
- package/dist/components/default-empty-icon/config.d.ts +2 -0
- package/dist/components/default-empty-icon/config.js +24 -0
- package/dist/components/default-empty-icon/index.d.ts +5 -0
- package/dist/components/default-empty-icon/index.js +24 -0
- package/dist/components/default-empty-icon/style.d.ts +11 -0
- package/dist/components/default-empty-icon/style.js +67 -0
- package/dist/components/default-empty-icon/types.d.ts +29 -0
- package/dist/components/default-empty-icon/types.js +8 -0
- package/dist/components/field-behavior/fields/type.js +5 -2
- package/dist/components/fields/actors/BaseField.js +5 -2
- package/dist/components/fields/actors/ReadView.d.ts +0 -1
- package/dist/components/fields/actors/ReadView.js +8 -6
- package/dist/components/fields/ancestor/ReadView.js +8 -6
- package/dist/components/fields/ancestor/utils.js +4 -12
- package/dist/components/fields/assignee/ReadView.d.ts +0 -1
- package/dist/components/fields/assignee/ReadView.js +13 -11
- 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 +11 -0
- package/dist/components/fields/bind-workspace/ReadView.d.ts +0 -1
- package/dist/components/fields/bind-workspace/ReadView.js +11 -9
- package/dist/components/fields/bind-workspace/hooks.js +10 -7
- package/dist/components/fields/bind-workspace/style/index.js +5 -3
- package/dist/components/fields/cascade/ReadView.js +8 -6
- package/dist/components/fields/cascade/utils.js +4 -3
- package/dist/components/fields/checkbox/ReadView.d.ts +0 -1
- package/dist/components/fields/checkbox/ReadView.js +7 -5
- package/dist/components/fields/created-at/ReadView.js +10 -8
- package/dist/components/fields/created-by/ReadView.d.ts +0 -1
- package/dist/components/fields/created-by/ReadView.js +11 -9
- package/dist/components/fields/data-quote/ReadView.js +12 -10
- package/dist/components/fields/data-quote/utils.js +5 -3
- package/dist/components/fields/date/ReadView.d.ts +0 -1
- package/dist/components/fields/date/ReadView.js +8 -6
- package/dist/components/fields/dropdown/BaseField.d.ts +24 -2
- package/dist/components/fields/dropdown/BaseField.js +565 -2
- package/dist/components/fields/dropdown/Cell.d.ts +3 -0
- package/dist/components/fields/dropdown/Cell.js +8 -0
- package/dist/components/fields/dropdown/ReadView.d.ts +0 -1
- package/dist/components/fields/dropdown/ReadView.js +10 -8
- package/dist/components/fields/dropdown/data.d.ts +9 -0
- package/dist/components/fields/dropdown/data.js +29 -0
- package/dist/components/fields/dropdown/hook.d.ts +102 -0
- package/dist/components/fields/dropdown/hook.js +155 -0
- package/dist/components/fields/dropdown/style.d.ts +16 -0
- package/dist/components/fields/dropdown/style.js +93 -0
- package/dist/components/fields/file/ReadView.d.ts +0 -1
- package/dist/components/fields/file/ReadView.js +7 -5
- package/dist/components/fields/formula/ReadView.d.ts +0 -1
- package/dist/components/fields/formula/ReadView.js +7 -5
- package/dist/components/fields/hooks/useViewClass.d.ts +11 -0
- package/dist/components/fields/hooks/useViewClass.js +20 -0
- package/dist/components/fields/hyper-link/ReadView.d.ts +0 -1
- package/dist/components/fields/hyper-link/ReadView.js +8 -6
- package/dist/components/fields/hyper-link/style/index.js +18 -15
- package/dist/components/fields/item-group/ReadView.d.ts +0 -1
- package/dist/components/fields/item-group/ReadView.js +6 -4
- package/dist/components/fields/item-type/ItemTypeIcon.d.ts +9 -0
- package/dist/components/fields/item-type/ItemTypeIcon.js +31 -0
- package/dist/components/fields/item-type/ReadView.d.ts +0 -1
- package/dist/components/fields/item-type/ReadView.js +7 -5
- package/dist/components/fields/item-type/style/index.d.ts +1 -0
- package/dist/components/fields/item-type/style/index.js +8 -0
- package/dist/components/fields/key/ReadView.d.ts +0 -1
- package/dist/components/fields/key/ReadView.js +7 -5
- package/dist/components/fields/long-text/ReadView.d.ts +0 -1
- package/dist/components/fields/long-text/ReadView.js +8 -6
- package/dist/components/fields/long-text/style/index.js +7 -5
- package/dist/components/fields/number/BaseField.js +5 -2
- package/dist/components/fields/number/ReadView.d.ts +0 -1
- package/dist/components/fields/number/ReadView.js +8 -6
- package/dist/components/fields/priority/ReadView.js +12 -10
- package/dist/components/fields/priority/style/index.js +54 -51
- package/dist/components/fields/radio/ReadView.d.ts +0 -1
- package/dist/components/fields/radio/ReadView.js +8 -6
- package/dist/components/fields/repo-files/ReadView.js +8 -6
- package/dist/components/fields/repo-files/utils.js +5 -3
- package/dist/components/fields/reporter/ReadView.d.ts +0 -1
- package/dist/components/fields/reporter/ReadView.js +11 -9
- package/dist/components/fields/script/BaseField.js +4 -1
- package/dist/components/fields/script/ReadView.d.ts +0 -1
- package/dist/components/fields/script/ReadView.js +10 -8
- package/dist/components/fields/sprint/ReadView.js +7 -5
- package/dist/components/fields/status/Cell.js +8 -6
- package/dist/components/fields/status/Field.d.ts +0 -1
- package/dist/components/fields/status/ReadView.js +10 -8
- package/dist/components/fields/status/SelectFlowHandler.js +15 -12
- package/dist/components/fields/status/SelectTransition.js +13 -10
- package/dist/components/fields/status/Transition.js +18 -15
- package/dist/components/fields/status/TransitionButton.js +17 -14
- package/dist/components/fields/status/TransitionPanel.js +14 -11
- package/dist/components/fields/status/View.js +11 -8
- package/dist/components/fields/status/style/index.js +302 -325
- package/dist/components/fields/story-point/ReadView.d.ts +0 -1
- package/dist/components/fields/story-point/ReadView.js +6 -4
- package/dist/components/fields/tag/ReadView.js +10 -8
- package/dist/components/fields/tag/style/index.js +7 -5
- package/dist/components/fields/team/ReadView.js +10 -8
- package/dist/components/fields/team/style/index.js +5 -3
- package/dist/components/fields/text/BaseField.d.ts +0 -1
- package/dist/components/fields/text/ReadView.js +8 -6
- package/dist/components/fields/tree/ReadView.js +10 -8
- package/dist/components/fields/tree/utils.js +5 -3
- package/dist/components/fields/updated-at/ReadView.js +10 -8
- package/dist/components/fields/updated-by/ReadView.d.ts +0 -1
- package/dist/components/fields/updated-by/ReadView.js +11 -9
- package/dist/components/fields/user/ReadView.d.ts +0 -1
- package/dist/components/fields/user/ReadView.js +11 -9
- package/dist/components/fields/user/style/index.js +12 -9
- package/dist/components/fields/user-group/BaseField.d.ts +0 -1
- package/dist/components/fields/user-group/ReadView.js +12 -14
- package/dist/components/fields/version/ReadView.js +8 -6
- package/dist/components/fields/workspace/ReadView.d.ts +0 -1
- package/dist/components/fields/workspace/ReadView.js +10 -8
- package/dist/components/filters/filter-search/utils.d.ts +4 -0
- package/dist/components/filters/filter-search/utils.js +28 -0
- package/dist/components/item/hooks.js +5 -2
- package/dist/components/table-components/EditTableCell.d.ts +1 -0
- package/dist/components/table-components/EditTableCell.js +8 -4
- package/dist/components/table-components/index.js +14 -11
- package/dist/components/table-components/style/index.js +7 -5
- package/dist/components/table-components/utils.js +50 -45
- package/dist/icons/SyncIconFont.d.ts +6 -0
- package/dist/icons/SyncIconFont.js +17 -0
- package/dist/icons/createFromIconFontClass.d.ts +4 -0
- package/dist/icons/createFromIconFontClass.js +35 -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 +8 -0
- package/dist/icons/empty-icon/large-item@2x.png +0 -0
- package/dist/icons/empty-icon/large-item@2x.png.js +3 -0
- package/dist/icons/empty-icon/large-workspace@2x.png +0 -0
- package/dist/icons/empty-icon/large-workspace@2x.png.js +3 -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/small-default@2x.png.js +3 -0
- package/dist/icons/empty-icon/workspace-empty.svg +127 -0
- package/dist/icons/index.d.ts +58 -1
- package/dist/icons/index.js +315 -19
- package/dist/icons/style/index.d.ts +2 -0
- package/dist/icons/style/index.js +25 -0
- package/dist/icons/svg/ArrowBack.svg.js +3 -0
- package/dist/icons/svg/Done.svg.js +3 -0
- package/dist/icons/svg/DottedCircle.svg.js +3 -0
- package/dist/icons/svg/HollowCircle.svg.js +3 -0
- package/dist/icons/svg/Search.svg.js +3 -0
- package/dist/icons/svg/Workflow.svg.js +3 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +47 -46
- package/dist/lib/app/utils.d.ts +2 -0
- package/dist/lib/app/utils.js +18 -0
- package/dist/lib/array.js +5 -44
- package/dist/lib/config.d.ts +14 -0
- package/dist/lib/config.js +47 -0
- package/dist/lib/constants/code.d.ts +4 -0
- package/dist/lib/constants/code.js +6 -0
- package/dist/lib/constants/field.d.ts +1 -0
- package/dist/lib/constants/field.js +5 -0
- package/dist/lib/contexts/antdConfig.js +10 -7
- package/dist/lib/contexts/currentUser.js +7 -4
- package/dist/lib/contexts/currentWorkspace.js +7 -4
- package/dist/lib/contexts/datetimeFormat.js +7 -4
- package/dist/lib/contexts/index.js +16 -13
- package/dist/lib/contexts/itemConfig.js +7 -4
- package/dist/lib/contexts/teamConfig.d.ts +3 -0
- package/dist/lib/contexts/teamConfig.js +25 -7
- package/dist/lib/contexts/tenant.js +7 -4
- package/dist/lib/contexts/workflowConfig.js +7 -4
- package/dist/lib/dataType.js +4 -5
- package/dist/lib/date.js +11 -52
- package/dist/lib/dayjs.js +2 -1
- package/dist/lib/error/index.d.ts +2 -0
- package/dist/lib/error/log.d.ts +10 -0
- package/dist/lib/error/log.js +28 -0
- package/dist/lib/error/utils.d.ts +14 -0
- package/dist/lib/error/utils.js +38 -0
- package/dist/lib/error/withServerError.d.ts +1 -0
- package/dist/lib/error/withServerError.js +3 -0
- package/dist/lib/fetch.d.ts +45 -0
- package/dist/lib/fetch.js +270 -0
- package/dist/lib/global.d.ts +18 -0
- package/dist/lib/global.js +28 -8
- package/dist/lib/hooks/useAntdConfig.js +4 -2
- package/dist/lib/hooks/useCurrentUser.js +4 -2
- package/dist/lib/hooks/useCurrentWorkspace.js +4 -2
- package/dist/lib/hooks/useDataQuoteStore.js +8 -5
- package/dist/lib/hooks/useDateTimeFormatType.js +4 -2
- package/dist/lib/hooks/useI18n.d.ts +1 -1
- package/dist/lib/hooks/useI18n.js +4 -2
- package/dist/lib/hooks/useItemConfig.js +4 -2
- package/dist/lib/hooks/useTeamConfig.js +4 -2
- package/dist/lib/hooks/useTenant.js +4 -2
- package/dist/lib/hooks/useWorkflowConfig.js +4 -2
- package/dist/lib/i18n.d.ts +1 -0
- package/dist/lib/i18n.js +6 -2
- package/dist/lib/icons/utils.d.ts +23 -0
- package/dist/lib/icons/utils.js +60 -0
- package/dist/lib/isInOne.js +2 -1
- package/dist/lib/number.js +3 -1
- package/dist/lib/path.d.ts +5 -0
- package/dist/lib/path.js +50 -0
- package/dist/lib/regExp.js +3 -1
- package/dist/lib/router.d.ts +23 -0
- package/dist/lib/router.js +23 -0
- package/dist/lib/storage.d.ts +10 -0
- package/dist/lib/storage.js +27 -0
- package/dist/lib/store/dataQuoteStore.js +5 -2
- package/dist/lib/swr/constants.js +4 -2
- package/dist/lib/swr/hooks.js +6 -3
- package/dist/lib/swr/throttleWithCache.d.ts +17 -0
- package/dist/lib/swr/throttleWithCache.js +110 -0
- package/dist/lib/throttleFetch.d.ts +2 -0
- package/dist/lib/throttleFetch.js +68 -0
- package/dist/lib/useConfig.d.ts +8 -0
- package/dist/lib/useConfig.js +31 -0
- package/dist/lib/useUser.js +9 -6
- package/dist/lib/users.js +5 -2
- package/dist/lib/workflow.js +21 -20
- package/dist/locales/index.d.ts +45 -0
- package/dist/locales/index.js +50 -3
- 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 +19 -23
- package/dist/style/global.d.ts +1 -0
- package/dist/style/global.js +10 -0
- package/package.json +111 -69
- package/dist/components/fields/base-component/types.js +0 -1
- package/dist/components/fields/hooks/useParamsAdapter.js +0 -1
- package/dist/components/fields/radio/BaseField.js +0 -1
- package/dist/components/fields/status/Field.js +0 -1
- package/dist/components/fields/tag/BaseField.js +0 -1
- package/dist/components/fields/text/BaseField.js +0 -1
- package/dist/components/fields/tree/BaseField.js +0 -1
- package/dist/components/fields/tree/types.js +0 -1
- package/dist/components/fields/types.js +0 -1
- package/dist/components/fields/user-group/ActionCell.js +0 -1
- package/dist/components/fields/user-group/BaseField.js +0 -1
- package/dist/icons/svg/ArrowBack.svg +0 -1
- package/dist/icons/svg/Done.svg +0 -1
- package/dist/icons/svg/DottedCircle.svg +0 -7
- package/dist/icons/svg/HollowCircle.svg +0 -6
- package/dist/icons/svg/Search.svg +0 -1
- package/dist/icons/svg/Workflow.svg +0 -12
|
@@ -1,325 +1,302 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
font-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
border-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
font-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
font-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
margin
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
border-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
&:
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
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
|
-
`;
|
|
1
|
+
import { statusCellMinWidth, fieldLabelColor, themeBgColorBase, gray7 } from '../../../../style/common.js';
|
|
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;
|
|
300
|
+
`;
|
|
301
|
+
|
|
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,7 +1,9 @@
|
|
|
1
|
-
import { jsx
|
|
2
|
-
import NumberReadView from '../number/ReadView';
|
|
1
|
+
import { jsx } from '@emotion/react/jsx-runtime';
|
|
2
|
+
import NumberReadView from '../number/ReadView.js';
|
|
3
|
+
|
|
3
4
|
const StoryPointReadView = props => {
|
|
4
|
-
return
|
|
5
|
+
return jsx(NumberReadView, { ...props });
|
|
5
6
|
};
|
|
6
7
|
StoryPointReadView.displayName = 'StoryPointReadView';
|
|
7
|
-
|
|
8
|
+
|
|
9
|
+
export { StoryPointReadView as default };
|