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