@pega/cosmos-react-work 8.0.0-build.3.2 → 8.0.0-build.30.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.
Files changed (291) hide show
  1. package/lib/components/AppAnnouncement/AppAnnouncement.d.ts +8 -4
  2. package/lib/components/AppAnnouncement/AppAnnouncement.d.ts.map +1 -1
  3. package/lib/components/AppAnnouncement/AppAnnouncement.js +6 -4
  4. package/lib/components/AppAnnouncement/AppAnnouncement.js.map +1 -1
  5. package/lib/components/Article/Article.d.ts +2 -6
  6. package/lib/components/Article/Article.d.ts.map +1 -1
  7. package/lib/components/Article/Article.js +2 -7
  8. package/lib/components/Article/Article.js.map +1 -1
  9. package/lib/components/Article/ArticleMeta.js.map +1 -1
  10. package/lib/components/ArticleList/AIArticleSummary.d.ts +1 -2
  11. package/lib/components/ArticleList/AIArticleSummary.d.ts.map +1 -1
  12. package/lib/components/ArticleList/ArticleBuddy.d.ts.map +1 -1
  13. package/lib/components/ArticleList/ArticleBuddy.js +6 -2
  14. package/lib/components/ArticleList/ArticleBuddy.js.map +1 -1
  15. package/lib/components/ArticleList/ArticleBuddyList.d.ts +0 -1
  16. package/lib/components/ArticleList/ArticleBuddyList.d.ts.map +1 -1
  17. package/lib/components/ArticleList/ArticleBuddyResponse.d.ts +3 -3
  18. package/lib/components/ArticleList/ArticleBuddyResponse.d.ts.map +1 -1
  19. package/lib/components/ArticleList/ArticleBuddyResponse.js +7 -8
  20. package/lib/components/ArticleList/ArticleBuddyResponse.js.map +1 -1
  21. package/lib/components/ArticleList/ArticleFeedback.d.ts +1 -2
  22. package/lib/components/ArticleList/ArticleFeedback.d.ts.map +1 -1
  23. package/lib/components/ArticleList/ArticleFeedback.js.map +1 -1
  24. package/lib/components/ArticleList/ArticleList.d.ts.map +1 -1
  25. package/lib/components/ArticleList/ArticleList.js +1 -1
  26. package/lib/components/ArticleList/ArticleList.js.map +1 -1
  27. package/lib/components/ArticleList/ArticleList.types.d.ts +9 -5
  28. package/lib/components/ArticleList/ArticleList.types.d.ts.map +1 -1
  29. package/lib/components/ArticleList/ArticleList.types.js.map +1 -1
  30. package/lib/components/ArticleList/ArticleListFilter.js.map +1 -1
  31. package/lib/components/ArticleList/ArticleListHeader.d.ts +1 -1
  32. package/lib/components/ArticleList/ArticleListHeader.d.ts.map +1 -1
  33. package/lib/components/ArticleList/ArticleListHeader.js +9 -6
  34. package/lib/components/ArticleList/ArticleListHeader.js.map +1 -1
  35. package/lib/components/ArticleList/ArticleSemanticSearch.d.ts +0 -1
  36. package/lib/components/ArticleList/ArticleSemanticSearch.d.ts.map +1 -1
  37. package/lib/components/ArticleList/ArticleSemanticSearch.js +11 -4
  38. package/lib/components/ArticleList/ArticleSemanticSearch.js.map +1 -1
  39. package/lib/components/ArticleList/ArticleSummaryHeader.js +1 -1
  40. package/lib/components/ArticleList/ArticleSummaryHeader.js.map +1 -1
  41. package/lib/components/ArticleList/ArticleTag.d.ts +0 -1
  42. package/lib/components/ArticleList/ArticleTag.d.ts.map +1 -1
  43. package/lib/components/ArticleList/ArticleTag.js +3 -3
  44. package/lib/components/ArticleList/ArticleTag.js.map +1 -1
  45. package/lib/components/ArticleList/QuestionList.d.ts +1 -2
  46. package/lib/components/ArticleList/QuestionList.d.ts.map +1 -1
  47. package/lib/components/ArticleList/QuestionList.js +1 -1
  48. package/lib/components/ArticleList/QuestionList.js.map +1 -1
  49. package/lib/components/ArticleList/RelatedQuestions.d.ts +19 -0
  50. package/lib/components/ArticleList/RelatedQuestions.d.ts.map +1 -0
  51. package/lib/components/ArticleList/RelatedQuestions.js +40 -0
  52. package/lib/components/ArticleList/RelatedQuestions.js.map +1 -0
  53. package/lib/components/Assignments/Assignments.js +2 -2
  54. package/lib/components/Assignments/Assignments.js.map +1 -1
  55. package/lib/components/Assignments/Assignments.styles.d.ts +3 -4
  56. package/lib/components/Assignments/Assignments.styles.d.ts.map +1 -1
  57. package/lib/components/CasePreview/CasePreview.d.ts +4 -4
  58. package/lib/components/CasePreview/CasePreview.d.ts.map +1 -1
  59. package/lib/components/CasePreview/CasePreview.js +7 -6
  60. package/lib/components/CasePreview/CasePreview.js.map +1 -1
  61. package/lib/components/CasePreview/CasePreview.test-ids.d.ts +1 -1
  62. package/lib/components/CasePreview/CasePreview.test-ids.d.ts.map +1 -1
  63. package/lib/components/CaseView/CaseHeader/CaseHeader.d.ts.map +1 -1
  64. package/lib/components/CaseView/CaseHeader/CaseHeader.js +4 -3
  65. package/lib/components/CaseView/CaseHeader/CaseHeader.js.map +1 -1
  66. package/lib/components/CaseView/CaseHeader/Summary.d.ts +1 -1
  67. package/lib/components/CaseView/CaseHeader/Summary.d.ts.map +1 -1
  68. package/lib/components/CaseView/CaseHeader/Summary.js.map +1 -1
  69. package/lib/components/CaseView/CaseView.context.d.ts +0 -1
  70. package/lib/components/CaseView/CaseView.context.d.ts.map +1 -1
  71. package/lib/components/CaseView/CaseView.d.ts +1 -1
  72. package/lib/components/CaseView/CaseView.d.ts.map +1 -1
  73. package/lib/components/CaseView/CaseView.js +15 -15
  74. package/lib/components/CaseView/CaseView.js.map +1 -1
  75. package/lib/components/CaseView/CaseView.styles.d.ts +14 -14
  76. package/lib/components/CaseView/CaseView.styles.d.ts.map +1 -1
  77. package/lib/components/CaseView/CaseView.styles.js +224 -100
  78. package/lib/components/CaseView/CaseView.styles.js.map +1 -1
  79. package/lib/components/CaseView/CaseView.test-ids.d.ts +1 -1
  80. package/lib/components/CaseView/CaseView.test-ids.d.ts.map +1 -1
  81. package/lib/components/CaseView/CaseView.types.d.ts +8 -2
  82. package/lib/components/CaseView/CaseView.types.d.ts.map +1 -1
  83. package/lib/components/CaseView/CaseView.types.js.map +1 -1
  84. package/lib/components/CaseView/UtilitiesSummary.d.ts +1 -0
  85. package/lib/components/CaseView/UtilitiesSummary.d.ts.map +1 -1
  86. package/lib/components/CaseView/UtilitiesSummary.js +61 -5
  87. package/lib/components/CaseView/UtilitiesSummary.js.map +1 -1
  88. package/lib/components/CaseView/UtilitySummaryItemDialog.d.ts +0 -1
  89. package/lib/components/CaseView/UtilitySummaryItemDialog.d.ts.map +1 -1
  90. package/lib/components/CaseView/UtilitySummaryItemDialog.js +1 -1
  91. package/lib/components/CaseView/UtilitySummaryItemDialog.js.map +1 -1
  92. package/lib/components/CaseView/index.d.ts +1 -1
  93. package/lib/components/CaseView/index.d.ts.map +1 -1
  94. package/lib/components/CaseView/index.js.map +1 -1
  95. package/lib/components/ConfigurableLayout/ConfigurableLayout.d.ts +0 -1
  96. package/lib/components/ConfigurableLayout/ConfigurableLayout.d.ts.map +1 -1
  97. package/lib/components/ConfigurableLayout/ConfigurableLayout.js.map +1 -1
  98. package/lib/components/ConfigurableLayout/ConfigurableLayout.types.d.ts +0 -1
  99. package/lib/components/ConfigurableLayout/ConfigurableLayout.types.d.ts.map +1 -1
  100. package/lib/components/ConfigurableLayout/LayoutCell.d.ts +1 -2
  101. package/lib/components/ConfigurableLayout/LayoutCell.d.ts.map +1 -1
  102. package/lib/components/ConfigurableLayout/LayoutCell.js.map +1 -1
  103. package/lib/components/ConfigurableLayout/useTrackWrappedRegions.d.ts.map +1 -1
  104. package/lib/components/ConfigurableLayout/useTrackWrappedRegions.js.map +1 -1
  105. package/lib/components/Confirmation/Confirmation.d.ts +3 -3
  106. package/lib/components/Confirmation/Confirmation.d.ts.map +1 -1
  107. package/lib/components/Confirmation/Confirmation.js.map +1 -1
  108. package/lib/components/Details/Details.d.ts +4 -4
  109. package/lib/components/Details/Details.d.ts.map +1 -1
  110. package/lib/components/Details/Details.js +2 -2
  111. package/lib/components/Details/Details.js.map +1 -1
  112. package/lib/components/Details/Details.styles.d.ts +1 -1
  113. package/lib/components/Details/Details.styles.d.ts.map +1 -1
  114. package/lib/components/Details/Details.styles.js +17 -4
  115. package/lib/components/Details/Details.styles.js.map +1 -1
  116. package/lib/components/Details/Details.test-ids.d.ts +1 -1
  117. package/lib/components/Details/Details.test-ids.d.ts.map +1 -1
  118. package/lib/components/Details/DetailsContext.d.ts +0 -1
  119. package/lib/components/Details/DetailsContext.d.ts.map +1 -1
  120. package/lib/components/GenAICoach/GenAICoach.d.ts +1 -1
  121. package/lib/components/GenAICoach/GenAICoach.d.ts.map +1 -1
  122. package/lib/components/GenAICoach/GenAICoach.js +35 -45
  123. package/lib/components/GenAICoach/GenAICoach.js.map +1 -1
  124. package/lib/components/GenAICoach/GenAICoach.styles.d.ts +9 -14
  125. package/lib/components/GenAICoach/GenAICoach.styles.d.ts.map +1 -1
  126. package/lib/components/GenAICoach/GenAICoach.styles.js +18 -44
  127. package/lib/components/GenAICoach/GenAICoach.styles.js.map +1 -1
  128. package/lib/components/GenAICoach/GenAICoach.test-ids.d.ts +1 -1
  129. package/lib/components/GenAICoach/GenAICoach.test-ids.d.ts.map +1 -1
  130. package/lib/components/GenAICoach/GenAICoach.test-ids.js +4 -1
  131. package/lib/components/GenAICoach/GenAICoach.test-ids.js.map +1 -1
  132. package/lib/components/GenAICoach/GenAICoach.types.d.ts +14 -6
  133. package/lib/components/GenAICoach/GenAICoach.types.d.ts.map +1 -1
  134. package/lib/components/GenAICoach/GenAICoach.types.js.map +1 -1
  135. package/lib/components/GenAICoach/GenAICoach.utils.d.ts +1 -1
  136. package/lib/components/GenAICoach/GenAICoach.utils.d.ts.map +1 -1
  137. package/lib/components/GenAICoach/GenAIMessage.d.ts.map +1 -1
  138. package/lib/components/GenAICoach/GenAIMessage.js +77 -13
  139. package/lib/components/GenAICoach/GenAIMessage.js.map +1 -1
  140. package/lib/components/GenAICoach/InitialSuggestedMessage.js +1 -1
  141. package/lib/components/GenAICoach/InitialSuggestedMessage.js.map +1 -1
  142. package/lib/components/GenAICoach/index.d.ts +1 -1
  143. package/lib/components/GenAICoach/index.d.ts.map +1 -1
  144. package/lib/components/GenAICoach/index.js.map +1 -1
  145. package/lib/components/Glimpse/Glimpse.d.ts +3 -3
  146. package/lib/components/Glimpse/Glimpse.d.ts.map +1 -1
  147. package/lib/components/Glimpse/Glimpse.js.map +1 -1
  148. package/lib/components/HierarchicalAssignments/AssignmentContext.d.ts +22 -0
  149. package/lib/components/HierarchicalAssignments/AssignmentContext.d.ts.map +1 -0
  150. package/lib/components/HierarchicalAssignments/AssignmentContext.js +12 -0
  151. package/lib/components/HierarchicalAssignments/AssignmentContext.js.map +1 -0
  152. package/lib/components/HierarchicalAssignments/AssignmentDetail.d.ts +4 -2
  153. package/lib/components/HierarchicalAssignments/AssignmentDetail.d.ts.map +1 -1
  154. package/lib/components/HierarchicalAssignments/AssignmentDetail.js +2 -2
  155. package/lib/components/HierarchicalAssignments/AssignmentDetail.js.map +1 -1
  156. package/lib/components/HierarchicalAssignments/AssignmentNode.d.ts +15 -0
  157. package/lib/components/HierarchicalAssignments/AssignmentNode.d.ts.map +1 -0
  158. package/lib/components/HierarchicalAssignments/AssignmentNode.js +28 -0
  159. package/lib/components/HierarchicalAssignments/AssignmentNode.js.map +1 -0
  160. package/lib/components/HierarchicalAssignments/AssignmentTree.d.ts +15 -0
  161. package/lib/components/HierarchicalAssignments/AssignmentTree.d.ts.map +1 -0
  162. package/lib/components/HierarchicalAssignments/AssignmentTree.js +15 -0
  163. package/lib/components/HierarchicalAssignments/AssignmentTree.js.map +1 -0
  164. package/lib/components/HierarchicalAssignments/Assignments.styles.d.ts +32 -31
  165. package/lib/components/HierarchicalAssignments/Assignments.styles.d.ts.map +1 -1
  166. package/lib/components/HierarchicalAssignments/Assignments.styles.js +93 -69
  167. package/lib/components/HierarchicalAssignments/Assignments.styles.js.map +1 -1
  168. package/lib/components/HierarchicalAssignments/HierarchicalAssignments.d.ts +2 -3
  169. package/lib/components/HierarchicalAssignments/HierarchicalAssignments.d.ts.map +1 -1
  170. package/lib/components/HierarchicalAssignments/HierarchicalAssignments.js +90 -8
  171. package/lib/components/HierarchicalAssignments/HierarchicalAssignments.js.map +1 -1
  172. package/lib/components/HierarchicalAssignments/HierarchicalAssignments.test-ids.d.ts +3 -3
  173. package/lib/components/HierarchicalAssignments/HierarchicalAssignments.test-ids.d.ts.map +1 -1
  174. package/lib/components/HierarchicalAssignments/HierarchicalAssignments.test-ids.js +2 -1
  175. package/lib/components/HierarchicalAssignments/HierarchicalAssignments.test-ids.js.map +1 -1
  176. package/lib/components/HierarchicalAssignments/HierarchicalAssignments.types.d.ts +12 -12
  177. package/lib/components/HierarchicalAssignments/HierarchicalAssignments.types.d.ts.map +1 -1
  178. package/lib/components/HierarchicalAssignments/HierarchicalAssignments.types.js.map +1 -1
  179. package/lib/components/HierarchicalAssignments/helpers.d.ts +20 -0
  180. package/lib/components/HierarchicalAssignments/helpers.d.ts.map +1 -0
  181. package/lib/components/HierarchicalAssignments/helpers.js +164 -0
  182. package/lib/components/HierarchicalAssignments/helpers.js.map +1 -0
  183. package/lib/components/HierarchicalAssignments/nodeItems/AssignmentItem.d.ts +14 -0
  184. package/lib/components/HierarchicalAssignments/nodeItems/AssignmentItem.d.ts.map +1 -0
  185. package/lib/components/HierarchicalAssignments/nodeItems/AssignmentItem.js +86 -0
  186. package/lib/components/HierarchicalAssignments/nodeItems/AssignmentItem.js.map +1 -0
  187. package/lib/components/HierarchicalAssignments/nodeItems/CaseDetail.d.ts +23 -0
  188. package/lib/components/HierarchicalAssignments/nodeItems/CaseDetail.d.ts.map +1 -0
  189. package/lib/components/HierarchicalAssignments/nodeItems/CaseDetail.js +108 -0
  190. package/lib/components/HierarchicalAssignments/nodeItems/CaseDetail.js.map +1 -0
  191. package/lib/components/HierarchicalAssignments/nodeItems/useNodeFocus.d.ts +24 -0
  192. package/lib/components/HierarchicalAssignments/nodeItems/useNodeFocus.d.ts.map +1 -0
  193. package/lib/components/HierarchicalAssignments/nodeItems/useNodeFocus.js +54 -0
  194. package/lib/components/HierarchicalAssignments/nodeItems/useNodeFocus.js.map +1 -0
  195. package/lib/components/IntelligentGuidance/IntelligentGuidance.d.ts +2 -3
  196. package/lib/components/IntelligentGuidance/IntelligentGuidance.d.ts.map +1 -1
  197. package/lib/components/IntelligentGuidance/IntelligentGuidance.js +5 -2
  198. package/lib/components/IntelligentGuidance/IntelligentGuidance.js.map +1 -1
  199. package/lib/components/IntelligentGuidance/IntelligentGuidance.styles.d.ts +2 -3
  200. package/lib/components/IntelligentGuidance/IntelligentGuidance.styles.d.ts.map +1 -1
  201. package/lib/components/IntelligentGuidance/IntelligentGuidance.styles.js +32 -21
  202. package/lib/components/IntelligentGuidance/IntelligentGuidance.styles.js.map +1 -1
  203. package/lib/components/InteractionNotification/CountdownButton.d.ts +3 -3
  204. package/lib/components/InteractionNotification/CountdownButton.d.ts.map +1 -1
  205. package/lib/components/InteractionNotification/CountdownButton.js +1 -1
  206. package/lib/components/InteractionNotification/CountdownButton.js.map +1 -1
  207. package/lib/components/InteractionNotification/InteractionNotification.d.ts +3 -3
  208. package/lib/components/InteractionNotification/InteractionNotification.d.ts.map +1 -1
  209. package/lib/components/InteractionNotification/InteractionNotification.js +1 -1
  210. package/lib/components/InteractionNotification/InteractionNotification.js.map +1 -1
  211. package/lib/components/Predictions/Predictions.d.ts +2 -3
  212. package/lib/components/Predictions/Predictions.d.ts.map +1 -1
  213. package/lib/components/Predictions/Predictions.js +1 -0
  214. package/lib/components/Predictions/Predictions.js.map +1 -1
  215. package/lib/components/SearchResults/ActiveFilter.d.ts +1 -2
  216. package/lib/components/SearchResults/ActiveFilter.d.ts.map +1 -1
  217. package/lib/components/SearchResults/Filter.d.ts.map +1 -1
  218. package/lib/components/SearchResults/Filter.js.map +1 -1
  219. package/lib/components/SearchResults/SearchResult.d.ts.map +1 -1
  220. package/lib/components/SearchResults/SearchResults.d.ts +2 -3
  221. package/lib/components/SearchResults/SearchResults.d.ts.map +1 -1
  222. package/lib/components/SearchResults/SearchResults.js +1 -2
  223. package/lib/components/SearchResults/SearchResults.js.map +1 -1
  224. package/lib/components/SearchResults/SearchResults.styles.d.ts +1 -2
  225. package/lib/components/SearchResults/SearchResults.styles.d.ts.map +1 -1
  226. package/lib/components/Stages/StageGlimpse.js +1 -1
  227. package/lib/components/Stages/StageGlimpse.js.map +1 -1
  228. package/lib/components/Stages/Stages.d.ts +2 -3
  229. package/lib/components/Stages/Stages.d.ts.map +1 -1
  230. package/lib/components/Stages/Stages.js +4 -1
  231. package/lib/components/Stages/Stages.js.map +1 -1
  232. package/lib/components/Stages/Stages.styles.d.ts +7 -6
  233. package/lib/components/Stages/Stages.styles.d.ts.map +1 -1
  234. package/lib/components/Stages/Stages.styles.js +7 -5
  235. package/lib/components/Stages/Stages.styles.js.map +1 -1
  236. package/lib/components/Stakeholders/StakeholderForm.d.ts +1 -2
  237. package/lib/components/Stakeholders/StakeholderForm.d.ts.map +1 -1
  238. package/lib/components/Stakeholders/StakeholderForm.js.map +1 -1
  239. package/lib/components/Stakeholders/Stakeholders.d.ts +2 -3
  240. package/lib/components/Stakeholders/Stakeholders.d.ts.map +1 -1
  241. package/lib/components/Stakeholders/Stakeholders.js +37 -26
  242. package/lib/components/Stakeholders/Stakeholders.js.map +1 -1
  243. package/lib/components/Tags/Tags.d.ts +5 -5
  244. package/lib/components/Tags/Tags.d.ts.map +1 -1
  245. package/lib/components/Tags/Tags.js.map +1 -1
  246. package/lib/components/Tasks/TaskList.d.ts +13 -8
  247. package/lib/components/Tasks/TaskList.d.ts.map +1 -1
  248. package/lib/components/Tasks/TaskList.js +15 -7
  249. package/lib/components/Tasks/TaskList.js.map +1 -1
  250. package/lib/components/Tasks/Tasks.d.ts +8 -3
  251. package/lib/components/Tasks/Tasks.d.ts.map +1 -1
  252. package/lib/components/Tasks/Tasks.js +14 -4
  253. package/lib/components/Tasks/Tasks.js.map +1 -1
  254. package/lib/components/Tasks/Tasks.test-ids.d.ts +3 -3
  255. package/lib/components/Tasks/Tasks.test-ids.d.ts.map +1 -1
  256. package/lib/components/Timeline/Timeline.d.ts +3 -3
  257. package/lib/components/Timeline/Timeline.d.ts.map +1 -1
  258. package/lib/components/Timeline/Timeline.js +9 -2
  259. package/lib/components/Timeline/Timeline.js.map +1 -1
  260. package/lib/components/Timeline/Timeline.styles.d.ts +5 -6
  261. package/lib/components/Timeline/Timeline.styles.d.ts.map +1 -1
  262. package/lib/components/Timeline/Timeline.styles.js +8 -3
  263. package/lib/components/Timeline/Timeline.styles.js.map +1 -1
  264. package/lib/components/Timeline/Timeline.types.d.ts +11 -1
  265. package/lib/components/Timeline/Timeline.types.d.ts.map +1 -1
  266. package/lib/components/Timeline/Timeline.types.js.map +1 -1
  267. package/lib/components/Timeline/TimelineItem.d.ts +1 -2
  268. package/lib/components/Timeline/TimelineItem.d.ts.map +1 -1
  269. package/lib/components/Timeline/TimelineItem.js +10 -9
  270. package/lib/components/Timeline/TimelineItem.js.map +1 -1
  271. package/lib/components/Timeline/TimelineToolbar.d.ts +2 -3
  272. package/lib/components/Timeline/TimelineToolbar.d.ts.map +1 -1
  273. package/lib/components/Timeline/TimelineToolbar.js.map +1 -1
  274. package/lib/components/Timeline/utils.js.map +1 -1
  275. package/lib/components/UtilitiesLayout/UtilitiesLayout.d.ts +5 -0
  276. package/lib/components/UtilitiesLayout/UtilitiesLayout.d.ts.map +1 -1
  277. package/lib/components/UtilitiesLayout/UtilitiesLayout.js +3 -3
  278. package/lib/components/UtilitiesLayout/UtilitiesLayout.js.map +1 -1
  279. package/lib/components/UtilitiesLayout/UtilitiesLayout.styles.d.ts +2 -4
  280. package/lib/components/UtilitiesLayout/UtilitiesLayout.styles.d.ts.map +1 -1
  281. package/lib/components/UtilitiesLayout/UtilitiesLayout.styles.js +2 -5
  282. package/lib/components/UtilitiesLayout/UtilitiesLayout.styles.js.map +1 -1
  283. package/package.json +10 -9
  284. package/lib/components/HierarchicalAssignments/AssignmentContainer.d.ts +0 -33
  285. package/lib/components/HierarchicalAssignments/AssignmentContainer.d.ts.map +0 -1
  286. package/lib/components/HierarchicalAssignments/AssignmentContainer.js +0 -46
  287. package/lib/components/HierarchicalAssignments/AssignmentContainer.js.map +0 -1
  288. package/lib/components/HierarchicalAssignments/AssignmentItem.d.ts +0 -11
  289. package/lib/components/HierarchicalAssignments/AssignmentItem.d.ts.map +0 -1
  290. package/lib/components/HierarchicalAssignments/AssignmentItem.js +0 -22
  291. package/lib/components/HierarchicalAssignments/AssignmentItem.js.map +0 -1
@@ -1,18 +1,19 @@
1
1
  import styled, { css } from 'styled-components';
2
2
  import { getContrast, hideVisually, meetsContrastGuidelines, rgba, transparentize } from 'polished';
3
3
  import { useContext } from 'react';
4
- import { Button, calculateFontSize, CardContent, defaultThemeProp, StyledBreadcrumbs, StyledButtonLink, StyledFieldValue, StyledStackedFieldValue, StyledIcon, StyledLabel, StyledPopover, StyledText, StyledTooltip, tryCatch, FieldValueList, StyledLink, readableHue, StyledCard, Text, readableColor, AppShellContext, AIButton } from '@pega/cosmos-react-core';
4
+ import { Button, calculateFontSize, CardContent, defaultThemeProp, StyledBreadcrumbs, StyledButtonLink, StyledFieldValue, StyledStackedFieldValue, StyledIcon, StyledLabel, StyledPopover, StyledText, StyledTooltip, tryCatch, FieldValueList, StyledLink, readableHue, StyledCard, Text, readableColor, AppShellContext, AIButton, StyledButton, calculateForegroundColor, calculateBackgroundAndContrastColor, isSolidColor, StyledSummaryListItem } from '@pega/cosmos-react-core';
5
5
  import { StyledMenu } from '@pega/cosmos-react-core/lib/components/Menu/Menu.styles';
6
6
  import { oneColumnDetailsColumnWidth } from '@pega/cosmos-react-work/lib/components/Details/Details.styles';
7
7
  import { headerHeight } from '@pega/cosmos-react-core/lib/components/AppShell/AppShell.styles';
8
+ import { StyledCardHeader } from '@pega/cosmos-react-core/lib/components/Card/CardHeader';
8
9
  import { StyledStage, StyledStageContainer, StyledStages } from '../Stages/Stages.styles';
9
10
  import { StyledAssignments } from '../Assignments/Assignments.styles';
11
+ import { StyledAssignments as StyledHierarchicalAssignments } from '../HierarchicalAssignments/Assignments.styles';
10
12
  import { StyledGenAICoachContainer } from '../GenAICoach/GenAICoach.styles';
13
+ import { StyledTaskList } from '../Tasks/TaskList';
11
14
  import { useCaseViewContext } from './CaseView.context';
12
15
  const labelWidth = '16ch';
13
16
  const inlineEndButtonOffset = '0.375rem';
14
- export const StyledCaseSummaryFields = styled.div ``;
15
- StyledCaseSummaryFields.defaultProps = defaultThemeProp;
16
17
  export const StyledSummaryPrimaryList = styled(FieldValueList)(({ theme, wrapped }) => {
17
18
  const fontSizes = calculateFontSize(theme.base['font-size'], theme.base['font-scale']);
18
19
  return css `
@@ -41,6 +42,20 @@ export const StyledSummarySecondaryList = styled(FieldValueList)(() => {
41
42
  }
42
43
  `;
43
44
  });
45
+ export const StyledCaseSummaryFields = styled.div(({ theme }) => {
46
+ const { components: { 'field-value-list': { inline: { detached } } } } = theme;
47
+ return (detached &&
48
+ css `
49
+ ${StyledSummaryPrimaryList} {
50
+ padding: 0 calc(${theme.components.card.padding} * 2);
51
+ }
52
+ ${StyledSummarySecondaryList} {
53
+ padding: calc(${theme.components.card.padding} * 2);
54
+ border-block: 0.0625rem solid ${theme.base.palette['border-line']};
55
+ }
56
+ `);
57
+ });
58
+ StyledCaseSummaryFields.defaultProps = defaultThemeProp;
44
59
  export const StyledSummaryTabContent = styled(CardContent)(({ theme }) => {
45
60
  const { base: { spacing } } = theme;
46
61
  return css `
@@ -57,21 +72,34 @@ export const StyledSummaryTabContent = styled(CardContent)(({ theme }) => {
57
72
  });
58
73
  StyledSummaryTabContent.defaultProps = defaultThemeProp;
59
74
  export const StyledCaseHeader = styled.header(({ theme }) => {
60
- const color = tryCatch(() => readableColor(theme.base.palette['brand-primary']));
75
+ const { components: { 'case-view': { header: { 'foreground-color': caseHeaderForegroundColor, background }, summary: { detached: summaryDetached }, utilities: { detached: utilitiesDetached } } }, base: { 'border-radius': borderRadius, spacing, shadow, 'z-index': zIndex, palette } } = theme;
76
+ const foregroundColor = calculateForegroundColor(background, caseHeaderForegroundColor);
77
+ const { aboveSM, aboveMD, persistentUtility, aboveXL, summaryExpanded, isPreview } = useCaseViewContext();
78
+ const shouldRenderMobileTabs = !aboveMD || (persistentUtility && !aboveXL) || !summaryExpanded;
79
+ const caseHeaderBorderRadius = shouldRenderMobileTabs
80
+ ? `0 0 ${utilitiesDetached ? borderRadius : 0} ${borderRadius}`
81
+ : `${borderRadius} ${borderRadius} 0 0`;
61
82
  return css `
62
- background-color: ${theme.base.palette['brand-primary']};
63
- color: ${color};
64
- padding: ${theme.base.spacing} calc(2 * ${theme.base.spacing});
83
+ background: ${background};
84
+ color: ${foregroundColor};
85
+ padding: ${spacing} calc(2 * ${spacing});
65
86
  position: relative;
66
87
 
88
+ ${summaryDetached &&
89
+ !isPreview &&
90
+ aboveSM &&
91
+ css `
92
+ border-radius: ${caseHeaderBorderRadius};
93
+ `}
94
+
67
95
  h1:focus-visible {
68
96
  outline: transparent;
69
- box-shadow: ${theme.base.shadow.focus};
97
+ box-shadow: ${shadow.focus};
70
98
  }
71
99
 
72
100
  ${StyledMenu} {
73
- color: ${theme.base.palette['foreground-color']};
74
- z-index: ${theme.base['z-index'].popover + 1};
101
+ color: ${palette['foreground-color']};
102
+ z-index: ${zIndex.popover + 1};
75
103
  }
76
104
  `;
77
105
  });
@@ -99,15 +127,20 @@ export const StyledHeaderActions = styled.div(({ offsetEnd, theme }) => {
99
127
  css `
100
128
  padding-inline-end: ${inlineEndButtonOffset};
101
129
  `};
130
+
131
+ ${StyledButton} {
132
+ margin-inline-start: 0;
133
+ }
102
134
  `;
103
135
  });
104
136
  StyledHeaderActions.defaultProps = defaultThemeProp;
105
137
  export const StyledCaseHeaderText = styled.hgroup(({ theme }) => {
106
- const color = readableColor(theme.base.palette['brand-primary']);
107
- const transparentColor = tryCatch(() => transparentize(0.1, color));
138
+ const { components: { 'case-view': { header: { 'foreground-color': foregroundColor, background: caseHeaderBackground } } } } = theme;
139
+ /* If the foreground-color is auto, we calculate the text color and transparentColor based on the background color. */
140
+ const color = calculateForegroundColor(caseHeaderBackground, foregroundColor);
108
141
  const fontSize = calculateFontSize(theme.base['font-size'], theme.base['font-scale']);
109
142
  const idStyle = css `
110
- color: ${transparentColor};
143
+ color: ${color};
111
144
  font-size: ${fontSize.s};
112
145
  font-weight: normal;
113
146
  `;
@@ -151,17 +184,21 @@ export const StyledCaseHeaderText = styled.hgroup(({ theme }) => {
151
184
  });
152
185
  StyledCaseHeaderText.defaultProps = defaultThemeProp;
153
186
  export const StyledCaseHeaderPromotedAction = styled(Button)(({ theme }) => {
154
- const { base: { palette: { 'brand-primary': primary, interactive } } } = theme;
155
- const interactiveUsable = getContrast(primary, interactive) >= 4.5;
156
- const color = interactiveUsable ? interactive : readableColor(primary);
187
+ const { base: { palette: { interactive } }, components: { 'case-view': { header: { background, 'foreground-color': foregroundColor } } } } = theme;
188
+ /* If foreground color is auto, we calculate the text color based on the background color. */
189
+ const textColor = calculateForegroundColor(background, foregroundColor);
190
+ const isGradientBackground = !isSolidColor(background);
191
+ const backgroundColor = isGradientBackground ? readableColor(textColor) : background;
192
+ const interactiveUsable = getContrast(backgroundColor, interactive) >= 4.5;
193
+ const color = !isGradientBackground && interactiveUsable ? interactive : textColor;
157
194
  let hoverBackground = rgba(color, 0.15);
158
- if (interactiveUsable) {
195
+ if (!isGradientBackground && interactiveUsable) {
159
196
  hoverBackground = readableHue(hoverBackground, color);
160
197
  }
161
198
  return css `
162
- --button-background-color: ${primary};
199
+ --button-background-color: ${backgroundColor};
163
200
  color: ${color};
164
- background-color: ${primary};
201
+ background-color: transparent;
165
202
  border-color: ${color};
166
203
 
167
204
  @media (hover: hover) {
@@ -224,17 +261,18 @@ const popoverColorReset = (theme) => {
224
261
  `;
225
262
  };
226
263
  export const StyledHeaderSummary = styled.dl(({ theme }) => {
227
- const { base: { palette: { 'brand-primary': primary, interactive } } } = theme;
228
- const interactiveUsable = meetsContrastGuidelines(primary, interactive).AA;
229
- const color = readableColor(primary);
230
- const transparentColor = tryCatch(() => transparentize(0.1, color));
264
+ const { base: { palette: { interactive } }, components: { 'case-view': { header: { 'foreground-color': foregroundColor, background } } } } = theme;
265
+ /* If the foreground-color is auto, we calculate the text color and transparentColor based on the background color. */
266
+ const color = calculateForegroundColor(background, foregroundColor);
267
+ const { backgroundColor } = calculateBackgroundAndContrastColor(background, foregroundColor);
268
+ const interactiveUsable = meetsContrastGuidelines(backgroundColor, interactive).AA;
231
269
  return css `
232
270
  max-width: 100%;
233
271
  min-width: 0;
234
272
 
235
273
  > ${StyledStackedFieldValue} {
236
274
  > ${StyledLabel} {
237
- color: ${transparentColor};
275
+ color: ${color};
238
276
  white-space: nowrap;
239
277
  }
240
278
 
@@ -301,15 +339,20 @@ export const StyledCaseSummaryInfo = styled.div(() => {
301
339
  });
302
340
  StyledCaseSummaryInfo.defaultProps = defaultThemeProp;
303
341
  export const StyledCaseSummaryContainer = styled.div(({ theme }) => {
342
+ const { components: { 'field-value-list': { inline: { detached } } } } = theme;
304
343
  return css `
305
344
  padding: calc(1.5 * ${theme.base.spacing}) calc(${theme.components.card.padding} * 2);
345
+
346
+ ${detached &&
347
+ css `
348
+ padding: calc(1.5 * ${theme.base.spacing}) 0;
349
+ `}
306
350
  `;
307
351
  });
308
352
  StyledCaseSummaryContainer.defaultProps = defaultThemeProp;
309
353
  export const StyledExpandCollapseButton = styled(Button)(() => {
310
354
  return css `
311
355
  border: none;
312
-
313
356
  ${StyledIcon} {
314
357
  width: 1.5rem;
315
358
  height: 1.5rem;
@@ -350,72 +393,103 @@ export const StyledExpandCollapseSummaryButton = styled(StyledExpandCollapseButt
350
393
  `;
351
394
  });
352
395
  StyledExpandCollapseSummaryButton.defaultProps = defaultThemeProp;
353
- export const StyledCaseSummary = styled.div(() => {
396
+ export const StyledCaseSummary = styled.div(({ theme: { base: { palette: { 'primary-background': primaryBackground }, 'border-radius': borderRadius }, components: { 'case-view': { summary: { detached } } } } }) => {
354
397
  const { summaryExpanded, aboveMD } = useCaseViewContext();
355
398
  return css `
356
- position: relative;
357
- height: 100%;
358
- ${aboveMD &&
399
+ background-color: ${primaryBackground};
400
+ position: relative;
401
+ height: 100%;
402
+ ${aboveMD &&
359
403
  summaryExpanded &&
360
404
  css `
361
- width: 25rem;
362
- `}
363
- `;
405
+ width: 25rem;
406
+ `}
407
+
408
+ ${detached &&
409
+ css `
410
+ border-radius: ${borderRadius};
411
+ `}
412
+ `;
364
413
  });
365
- export const StyledWorkArea = styled.div(({ theme }) => {
414
+ StyledCaseSummary.defaultProps = defaultThemeProp;
415
+ export const StyledWorkArea = styled.div(({ theme: { base: { palette: { 'border-line': borderLine }, spacing, 'border-radius': borderRadius }, components: { 'case-view': { assignments: { detached: assignmentDetached, background: assignmentBackground, 'foreground-color': assignmentForegroundColor } }, card: { background, 'foreground-color': foregroundColor } } } }) => {
416
+ const { backgroundColor } = calculateBackgroundAndContrastColor(background, foregroundColor);
417
+ const foregroundColorForAssignment = calculateForegroundColor(assignmentBackground, assignmentForegroundColor);
366
418
  const { summaryExpanded, aboveMD, intelligentGuidance } = useCaseViewContext();
367
419
  let pbeRem = 0;
368
420
  if (intelligentGuidance) {
369
421
  pbeRem = aboveMD && !summaryExpanded ? 4 : 6;
370
422
  }
371
423
  return css `
372
- grid-area: work-area;
373
- padding: calc(2 * ${theme.base.spacing});
424
+ grid-area: work-area;
425
+ padding: calc(2 * ${spacing});
374
426
 
375
- ${aboveMD &&
427
+ ${aboveMD &&
376
428
  css `
377
- padding: calc(2 * ${theme.base.spacing}) 0;
429
+ padding: calc(2 * ${spacing}) 0;
378
430
 
379
- /* This is required to make scrollStick work. */
380
- height: max-content;
431
+ /* This is required to make scrollStick work. */
432
+ height: max-content;
381
433
 
382
- ${!summaryExpanded &&
434
+ ${!summaryExpanded &&
383
435
  css `
384
- margin-inline-start: calc(2 * ${theme.base.spacing});
436
+ margin-inline-start: calc(2 * ${spacing});
437
+ `}
385
438
  `}
386
- `}
387
439
 
388
- /* Order of style here is necessary for overriding styles above. */
440
+ /* Order of style here is necessary for overriding styles above. */
389
441
  ${pbeRem > 0 &&
390
442
  css `
391
- /* Accounts for collapsed intelligentGuidance bubble covering work area content when fully scrolled. */
392
- padding-block-end: ${pbeRem}rem;
393
- `}
443
+ /* Accounts for collapsed intelligentGuidance bubble covering work area content when fully scrolled. */
444
+ padding-block-end: ${pbeRem}rem;
445
+ `}
394
446
 
395
- &:has(${StyledAssignments}) {
396
- ${StyledStages} {
397
- border-block-end: 0.0625rem solid ${theme.base.palette['border-line']};
447
+ &:has(${StyledAssignments}),
448
+ &:has(${StyledHierarchicalAssignments}) {
449
+ ${StyledStages} {
450
+ border-block-end: 0.0625rem solid ${borderLine};
398
451
 
399
- &,
400
- ${StyledStageContainer}:first-of-type > ${StyledStage} {
401
- border-end-start-radius: 0;
402
- }
452
+ &,
453
+ ${StyledStageContainer}:first-of-type > ${StyledStage} {
454
+ border-end-start-radius: 0;
455
+ }
403
456
 
404
- &,
405
- ${StyledStageContainer}:last-of-type > ${StyledStage} {
406
- border-end-end-radius: 0;
457
+ &,
458
+ ${StyledStageContainer}:last-of-type > ${StyledStage} {
459
+ border-end-end-radius: 0;
460
+ }
407
461
  }
408
462
  }
409
- }
410
463
 
411
- &:has(${StyledStages}) {
412
- ${StyledCard}${StyledAssignments} {
413
- margin-block-start: calc(-2 * ${theme.base.spacing});
414
- border-start-start-radius: 0;
415
- border-start-end-radius: 0;
464
+ &:has(${StyledStages}) {
465
+ ${StyledCard}${StyledAssignments},
466
+ ${StyledCard}${StyledHierarchicalAssignments} {
467
+ margin-block-start: calc(-2 * ${spacing});
468
+ border-start-start-radius: 0;
469
+ border-start-end-radius: 0;
470
+ }
471
+
472
+ &:has(${StyledCard}${StyledAssignments} > ${StyledCardHeader}),
473
+ &:has(${StyledCard}${StyledHierarchicalAssignments} > ${StyledCardHeader}) {
474
+ ${StyledCard}${StyledAssignments},
475
+ ${StyledCard}${StyledHierarchicalAssignments} {
476
+ background: ${assignmentBackground};
477
+ color: ${foregroundColorForAssignment};
478
+ ${assignmentDetached &&
479
+ css `
480
+ ${StyledTaskList} {
481
+ background-color: ${backgroundColor};
482
+ border: solid 0.0625rem ${borderLine};
483
+ border-radius: ${borderRadius};
484
+ ${StyledSummaryListItem} {
485
+ padding: calc(${spacing} / 2) ${spacing};
486
+ }
487
+ }
488
+ `}
489
+ }
490
+ }
416
491
  }
417
- }
418
- `;
492
+ `;
419
493
  });
420
494
  StyledWorkArea.defaultProps = defaultThemeProp;
421
495
  export const StyledUtilitiesHeading = styled(Text) ``;
@@ -458,30 +532,45 @@ export const StyledUtilities = styled.div(({ theme }) => {
458
532
  `;
459
533
  });
460
534
  StyledUtilities.defaultProps = defaultThemeProp;
461
- export const StyledSummary = styled.div(({ theme }) => {
462
- const { summaryExpanded, aboveMD } = useCaseViewContext();
535
+ export const StyledSummary = styled.div(({ theme: { base: { spacing, breakpoints, 'z-index': zIndex }, components: { 'case-view': { summary: { detached: summaryDetached }, utilities: { detached: utilitiesDetached } } } } }) => {
536
+ const { aboveSM, aboveMD, persistentUtility, aboveXL, summaryExpanded, isPreview } = useCaseViewContext();
537
+ const shouldRenderMobileTabs = !aboveMD || (persistentUtility && !aboveXL) || !summaryExpanded;
463
538
  return css `
464
- top: ${summaryExpanded ? 'var(--top-offset)' : 'var(--appshell-offset, 0)'};
465
- width: 100%;
466
- background-color: ${theme.base.palette['primary-background']};
467
- z-index: ${theme.base['z-index'].popover};
539
+ top: ${summaryExpanded ? 'var(--top-offset)' : 'var(--appshell-offset, 0)'};
540
+ width: 100%;
541
+ z-index: ${zIndex.popover};
468
542
 
469
- ${aboveMD &&
543
+ ${aboveMD &&
470
544
  summaryExpanded &&
471
545
  css `
472
- height: var(--case-view-height);
473
- `}
546
+ height: var(--case-view-height);
547
+ `}
474
548
 
475
- ${aboveMD
549
+ ${summaryDetached &&
550
+ aboveSM &&
551
+ css `
552
+ padding: calc(2 * ${spacing});
553
+ padding-inline-end: ${utilitiesDetached && shouldRenderMobileTabs
554
+ ? `calc(2 * ${spacing})`
555
+ : 0};
556
+ padding-block: ${shouldRenderMobileTabs ? 0 : `calc(2 * ${spacing})`};
557
+ `}
558
+
559
+ ${isPreview &&
560
+ css `
561
+ padding: 0;
562
+ `}
563
+
564
+ ${aboveMD
476
565
  ? css `
477
- position: sticky;
478
- `
479
- : css `
480
- @media (min-height: ${theme.base.breakpoints.sm}) {
481
566
  position: sticky;
482
- }
483
- `}
484
- `;
567
+ `
568
+ : css `
569
+ @media (min-height: ${breakpoints.sm}) {
570
+ position: sticky;
571
+ }
572
+ `}
573
+ `;
485
574
  });
486
575
  StyledSummary.defaultProps = defaultThemeProp;
487
576
  export const StyledCaseDrawer = styled.div(({ previewActive, theme }) => {
@@ -509,13 +598,13 @@ export const StyledCaseDrawer = styled.div(({ previewActive, theme }) => {
509
598
  `;
510
599
  });
511
600
  StyledCaseDrawer.defaultProps = defaultThemeProp;
512
- export const StyledCaseDrawerContent = styled.div(({ theme }) => {
601
+ export const StyledCaseDrawerContent = styled.div(({ theme: { base: { palette: { 'app-background': appBackground }, spacing } } }) => {
513
602
  return css `
514
- background-color: ${theme.base.palette['app-background']};
515
- padding: calc(2 * ${theme.base.spacing});
516
- height: 100%;
517
- overflow: auto;
518
- `;
603
+ background: ${appBackground};
604
+ padding: calc(2 * ${spacing});
605
+ height: 100%;
606
+ overflow: auto;
607
+ `;
519
608
  });
520
609
  StyledCaseDrawerContent.defaultProps = defaultThemeProp;
521
610
  export const StyledPersistentUtility = styled.div(({ theme }) => {
@@ -534,22 +623,57 @@ export const ScrollStick = styled.div `
534
623
  position: sticky;
535
624
  top: 0;
536
625
  `;
537
- export const StyledCaseView = styled.div(({ theme }) => {
538
- const { aboveMD } = useCaseViewContext();
626
+ export const StyledCaseView = styled.div(({ theme: { base: { palette: { 'app-background': appBackground }, spacing, 'border-radius': borderRadius }, components: { 'case-view': { utilities: { detached: utilitiesDetached, background: utilitiesBackground, 'foreground-color': utilitiesForegroundColor }, summary: { detached: summaryDetached } } } } }) => {
627
+ const utilitiesForegroundComputed = calculateForegroundColor(utilitiesBackground, utilitiesForegroundColor);
628
+ const { aboveSM, aboveMD, isPreview } = useCaseViewContext();
539
629
  return css `
540
- --top-offset: calc(var(--appshell-offset, 0rem) + var(--summary-height));
541
- --case-view-height: calc(100vh - var(--top-offset));
542
- position: relative;
543
- min-height: var(--case-view-height);
544
- background-color: ${theme.base.palette['app-background']};
630
+ --top-offset: calc(var(--appshell-offset, 0rem) + var(--summary-height));
631
+ --case-view-height: calc(100vh - var(--top-offset));
632
+ position: relative;
633
+ min-height: var(--case-view-height);
634
+ background: ${appBackground};
545
635
 
546
- ${aboveMD &&
636
+ ${aboveMD &&
547
637
  css `
548
- ${StyledUtilities}:last-child {
549
- margin-inline-end: calc(2 * ${theme.base.spacing});
550
- }
551
- `}
552
- `;
638
+ ${StyledUtilities}:last-child {
639
+ margin-inline-end: calc(2 * ${spacing});
640
+ background: ${utilitiesBackground};
641
+ color: ${utilitiesForegroundComputed};
642
+
643
+ ${!utilitiesDetached &&
644
+ css `
645
+ margin-inline-end: 0;
646
+ padding: calc(2 * ${spacing});
647
+ padding-inline-end: 0;
648
+ border-radius: ${borderRadius} 0 0 ${borderRadius};
649
+
650
+ ${StyledCard},
651
+ ${StyledGenAICoachContainer} {
652
+ border-top-right-radius: 0;
653
+ border-bottom-right-radius: 0;
654
+ }
655
+
656
+ ${StyledGenAICoachContainer} {
657
+ inset-inline-end: 0;
658
+ }
659
+ `}
660
+ }
661
+ `}
662
+
663
+ ${aboveSM &&
664
+ summaryDetached &&
665
+ !isPreview &&
666
+ css `
667
+ &:not(:has(${StyledUtilities})) {
668
+ ${StyledSummary} {
669
+ padding-inline-end: calc(2 * ${spacing});
670
+ }
671
+ ${StyledCaseHeader} {
672
+ border-end-end-radius: ${borderRadius};
673
+ }
674
+ }
675
+ `}
676
+ `;
553
677
  });
554
678
  StyledCaseView.defaultProps = defaultThemeProp;
555
679
  export const StyledUtilitiesHeader = styled(Text) `