@pega/cosmos-react-work 8.0.0-build.4.3 → 8.0.0-build.40.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/components/AppAnnouncement/AppAnnouncement.d.ts +8 -4
- package/lib/components/AppAnnouncement/AppAnnouncement.d.ts.map +1 -1
- package/lib/components/AppAnnouncement/AppAnnouncement.js +6 -4
- package/lib/components/AppAnnouncement/AppAnnouncement.js.map +1 -1
- package/lib/components/Article/Article.d.ts +2 -6
- package/lib/components/Article/Article.d.ts.map +1 -1
- package/lib/components/Article/Article.js +2 -7
- package/lib/components/Article/Article.js.map +1 -1
- package/lib/components/Article/ArticleMeta.js.map +1 -1
- package/lib/components/ArticleList/AIArticleSummary.d.ts +1 -2
- package/lib/components/ArticleList/AIArticleSummary.d.ts.map +1 -1
- package/lib/components/ArticleList/ArticleBuddy.d.ts.map +1 -1
- package/lib/components/ArticleList/ArticleBuddy.js +6 -2
- package/lib/components/ArticleList/ArticleBuddy.js.map +1 -1
- package/lib/components/ArticleList/ArticleBuddyList.d.ts +0 -1
- package/lib/components/ArticleList/ArticleBuddyList.d.ts.map +1 -1
- package/lib/components/ArticleList/ArticleBuddyResponse.d.ts +3 -3
- package/lib/components/ArticleList/ArticleBuddyResponse.d.ts.map +1 -1
- package/lib/components/ArticleList/ArticleBuddyResponse.js +7 -8
- package/lib/components/ArticleList/ArticleBuddyResponse.js.map +1 -1
- package/lib/components/ArticleList/ArticleFeedback.d.ts +1 -2
- package/lib/components/ArticleList/ArticleFeedback.d.ts.map +1 -1
- package/lib/components/ArticleList/ArticleFeedback.js.map +1 -1
- package/lib/components/ArticleList/ArticleList.d.ts.map +1 -1
- package/lib/components/ArticleList/ArticleList.js +4 -4
- package/lib/components/ArticleList/ArticleList.js.map +1 -1
- package/lib/components/ArticleList/ArticleList.types.d.ts +9 -5
- package/lib/components/ArticleList/ArticleList.types.d.ts.map +1 -1
- package/lib/components/ArticleList/ArticleList.types.js.map +1 -1
- package/lib/components/ArticleList/ArticleListFilter.js.map +1 -1
- package/lib/components/ArticleList/ArticleListHeader.d.ts +1 -1
- package/lib/components/ArticleList/ArticleListHeader.d.ts.map +1 -1
- package/lib/components/ArticleList/ArticleListHeader.js +9 -6
- package/lib/components/ArticleList/ArticleListHeader.js.map +1 -1
- package/lib/components/ArticleList/ArticleSemanticSearch.d.ts +0 -1
- package/lib/components/ArticleList/ArticleSemanticSearch.d.ts.map +1 -1
- package/lib/components/ArticleList/ArticleSemanticSearch.js +11 -4
- package/lib/components/ArticleList/ArticleSemanticSearch.js.map +1 -1
- package/lib/components/ArticleList/ArticleSummaryHeader.js +1 -1
- package/lib/components/ArticleList/ArticleSummaryHeader.js.map +1 -1
- package/lib/components/ArticleList/ArticleTag.d.ts +0 -1
- package/lib/components/ArticleList/ArticleTag.d.ts.map +1 -1
- package/lib/components/ArticleList/ArticleTag.js +3 -3
- package/lib/components/ArticleList/ArticleTag.js.map +1 -1
- package/lib/components/ArticleList/QuestionList.d.ts +1 -2
- package/lib/components/ArticleList/QuestionList.d.ts.map +1 -1
- package/lib/components/ArticleList/QuestionList.js +1 -1
- package/lib/components/ArticleList/QuestionList.js.map +1 -1
- package/lib/components/ArticleList/RelatedQuestions.d.ts +19 -0
- package/lib/components/ArticleList/RelatedQuestions.d.ts.map +1 -0
- package/lib/components/ArticleList/RelatedQuestions.js +40 -0
- package/lib/components/ArticleList/RelatedQuestions.js.map +1 -0
- package/lib/components/ArticleList/index.d.ts +1 -0
- package/lib/components/ArticleList/index.d.ts.map +1 -1
- package/lib/components/ArticleList/index.js +1 -0
- package/lib/components/ArticleList/index.js.map +1 -1
- package/lib/components/Assignments/Assignments.js +2 -2
- package/lib/components/Assignments/Assignments.js.map +1 -1
- package/lib/components/Assignments/Assignments.styles.d.ts +3 -4
- package/lib/components/Assignments/Assignments.styles.d.ts.map +1 -1
- package/lib/components/CaseHierarchy/CaseHierarchy.d.ts +6 -0
- package/lib/components/CaseHierarchy/CaseHierarchy.d.ts.map +1 -0
- package/lib/components/CaseHierarchy/CaseHierarchy.js +24 -0
- package/lib/components/CaseHierarchy/CaseHierarchy.js.map +1 -0
- package/lib/components/CaseHierarchy/CaseHierarchy.styles.d.ts +6 -0
- package/lib/components/CaseHierarchy/CaseHierarchy.styles.d.ts.map +1 -0
- package/lib/components/CaseHierarchy/CaseHierarchy.styles.js +51 -0
- package/lib/components/CaseHierarchy/CaseHierarchy.styles.js.map +1 -0
- package/lib/components/CaseHierarchy/CaseHierarchy.test-ids.d.ts +2 -0
- package/lib/components/CaseHierarchy/CaseHierarchy.test-ids.d.ts.map +1 -0
- package/lib/components/CaseHierarchy/CaseHierarchy.test-ids.js +6 -0
- package/lib/components/CaseHierarchy/CaseHierarchy.test-ids.js.map +1 -0
- package/lib/components/CaseHierarchy/CaseHierarchy.types.d.ts +23 -0
- package/lib/components/CaseHierarchy/CaseHierarchy.types.d.ts.map +1 -0
- package/lib/components/CaseHierarchy/CaseHierarchy.types.js +2 -0
- package/lib/components/CaseHierarchy/CaseHierarchy.types.js.map +1 -0
- package/lib/components/CaseHierarchy/index.d.ts +4 -0
- package/lib/components/CaseHierarchy/index.d.ts.map +1 -0
- package/lib/components/CaseHierarchy/index.js +3 -0
- package/lib/components/CaseHierarchy/index.js.map +1 -0
- package/lib/components/CasePreview/CasePreview.d.ts +4 -4
- package/lib/components/CasePreview/CasePreview.d.ts.map +1 -1
- package/lib/components/CasePreview/CasePreview.js +7 -6
- package/lib/components/CasePreview/CasePreview.js.map +1 -1
- package/lib/components/CasePreview/CasePreview.test-ids.d.ts +1 -1
- package/lib/components/CasePreview/CasePreview.test-ids.d.ts.map +1 -1
- package/lib/components/CaseView/CaseHeader/CaseHeader.d.ts.map +1 -1
- package/lib/components/CaseView/CaseHeader/CaseHeader.js +4 -3
- package/lib/components/CaseView/CaseHeader/CaseHeader.js.map +1 -1
- package/lib/components/CaseView/CaseHeader/Summary.d.ts +1 -1
- package/lib/components/CaseView/CaseHeader/Summary.d.ts.map +1 -1
- package/lib/components/CaseView/CaseHeader/Summary.js.map +1 -1
- package/lib/components/CaseView/CaseView.context.d.ts +0 -1
- package/lib/components/CaseView/CaseView.context.d.ts.map +1 -1
- package/lib/components/CaseView/CaseView.d.ts +1 -1
- package/lib/components/CaseView/CaseView.d.ts.map +1 -1
- package/lib/components/CaseView/CaseView.js +65 -24
- package/lib/components/CaseView/CaseView.js.map +1 -1
- package/lib/components/CaseView/CaseView.styles.d.ts +19 -15
- package/lib/components/CaseView/CaseView.styles.d.ts.map +1 -1
- package/lib/components/CaseView/CaseView.styles.js +287 -110
- package/lib/components/CaseView/CaseView.styles.js.map +1 -1
- package/lib/components/CaseView/CaseView.test-ids.d.ts +1 -1
- package/lib/components/CaseView/CaseView.test-ids.d.ts.map +1 -1
- package/lib/components/CaseView/CaseView.types.d.ts +8 -2
- package/lib/components/CaseView/CaseView.types.d.ts.map +1 -1
- package/lib/components/CaseView/CaseView.types.js.map +1 -1
- package/lib/components/CaseView/UtilitiesSummary.d.ts +1 -0
- package/lib/components/CaseView/UtilitiesSummary.d.ts.map +1 -1
- package/lib/components/CaseView/UtilitiesSummary.js +85 -19
- package/lib/components/CaseView/UtilitiesSummary.js.map +1 -1
- package/lib/components/CaseView/UtilitySummaryItemDialog.d.ts +0 -1
- package/lib/components/CaseView/UtilitySummaryItemDialog.d.ts.map +1 -1
- package/lib/components/CaseView/UtilitySummaryItemDialog.js +1 -1
- package/lib/components/CaseView/UtilitySummaryItemDialog.js.map +1 -1
- package/lib/components/CaseView/index.d.ts +1 -1
- package/lib/components/CaseView/index.d.ts.map +1 -1
- package/lib/components/CaseView/index.js.map +1 -1
- package/lib/components/ConfigurableLayout/ConfigurableLayout.d.ts +0 -1
- package/lib/components/ConfigurableLayout/ConfigurableLayout.d.ts.map +1 -1
- package/lib/components/ConfigurableLayout/ConfigurableLayout.js.map +1 -1
- package/lib/components/ConfigurableLayout/ConfigurableLayout.types.d.ts +0 -1
- package/lib/components/ConfigurableLayout/ConfigurableLayout.types.d.ts.map +1 -1
- package/lib/components/ConfigurableLayout/LayoutCell.d.ts +1 -2
- package/lib/components/ConfigurableLayout/LayoutCell.d.ts.map +1 -1
- package/lib/components/ConfigurableLayout/LayoutCell.js.map +1 -1
- package/lib/components/ConfigurableLayout/useTrackWrappedRegions.d.ts.map +1 -1
- package/lib/components/ConfigurableLayout/useTrackWrappedRegions.js.map +1 -1
- package/lib/components/Confirmation/Confirmation.d.ts +3 -3
- package/lib/components/Confirmation/Confirmation.d.ts.map +1 -1
- package/lib/components/Confirmation/Confirmation.js.map +1 -1
- package/lib/components/Details/Details.d.ts +6 -4
- package/lib/components/Details/Details.d.ts.map +1 -1
- package/lib/components/Details/Details.js +4 -4
- package/lib/components/Details/Details.js.map +1 -1
- package/lib/components/Details/Details.styles.d.ts +1 -1
- package/lib/components/Details/Details.styles.d.ts.map +1 -1
- package/lib/components/Details/Details.styles.js +17 -4
- package/lib/components/Details/Details.styles.js.map +1 -1
- package/lib/components/Details/Details.test-ids.d.ts +1 -1
- package/lib/components/Details/Details.test-ids.d.ts.map +1 -1
- package/lib/components/Details/DetailsContext.d.ts +0 -1
- package/lib/components/Details/DetailsContext.d.ts.map +1 -1
- package/lib/components/GenAICoach/ConversationHistory.d.ts +5 -0
- package/lib/components/GenAICoach/ConversationHistory.d.ts.map +1 -0
- package/lib/components/GenAICoach/ConversationHistory.js +73 -0
- package/lib/components/GenAICoach/ConversationHistory.js.map +1 -0
- package/lib/components/GenAICoach/GenAICoach.d.ts +1 -1
- package/lib/components/GenAICoach/GenAICoach.d.ts.map +1 -1
- package/lib/components/GenAICoach/GenAICoach.js +178 -140
- package/lib/components/GenAICoach/GenAICoach.js.map +1 -1
- package/lib/components/GenAICoach/GenAICoach.styles.d.ts +24 -14
- package/lib/components/GenAICoach/GenAICoach.styles.d.ts.map +1 -1
- package/lib/components/GenAICoach/GenAICoach.styles.js +106 -57
- package/lib/components/GenAICoach/GenAICoach.styles.js.map +1 -1
- package/lib/components/GenAICoach/GenAICoach.test-ids.d.ts +2 -1
- package/lib/components/GenAICoach/GenAICoach.test-ids.d.ts.map +1 -1
- package/lib/components/GenAICoach/GenAICoach.test-ids.js +9 -1
- package/lib/components/GenAICoach/GenAICoach.test-ids.js.map +1 -1
- package/lib/components/GenAICoach/GenAICoach.types.d.ts +49 -8
- package/lib/components/GenAICoach/GenAICoach.types.d.ts.map +1 -1
- package/lib/components/GenAICoach/GenAICoach.types.js.map +1 -1
- package/lib/components/GenAICoach/GenAICoach.utils.d.ts +1 -1
- package/lib/components/GenAICoach/GenAICoach.utils.d.ts.map +1 -1
- package/lib/components/GenAICoach/GenAIMessage.d.ts.map +1 -1
- package/lib/components/GenAICoach/GenAIMessage.js +77 -13
- package/lib/components/GenAICoach/GenAIMessage.js.map +1 -1
- package/lib/components/GenAICoach/InitialSuggestedMessage.js +1 -1
- package/lib/components/GenAICoach/InitialSuggestedMessage.js.map +1 -1
- package/lib/components/GenAICoach/index.d.ts +1 -1
- package/lib/components/GenAICoach/index.d.ts.map +1 -1
- package/lib/components/GenAICoach/index.js.map +1 -1
- package/lib/components/Glimpse/Glimpse.d.ts +3 -3
- package/lib/components/Glimpse/Glimpse.d.ts.map +1 -1
- package/lib/components/Glimpse/Glimpse.js.map +1 -1
- package/lib/components/HierarchicalAssignments/AssignmentContext.d.ts +28 -0
- package/lib/components/HierarchicalAssignments/AssignmentContext.d.ts.map +1 -0
- package/lib/components/HierarchicalAssignments/AssignmentContext.js +14 -0
- package/lib/components/HierarchicalAssignments/AssignmentContext.js.map +1 -0
- package/lib/components/HierarchicalAssignments/AssignmentDetail.d.ts +4 -2
- package/lib/components/HierarchicalAssignments/AssignmentDetail.d.ts.map +1 -1
- package/lib/components/HierarchicalAssignments/AssignmentDetail.js +2 -2
- package/lib/components/HierarchicalAssignments/AssignmentDetail.js.map +1 -1
- package/lib/components/HierarchicalAssignments/AssignmentNode.d.ts +19 -0
- package/lib/components/HierarchicalAssignments/AssignmentNode.d.ts.map +1 -0
- package/lib/components/HierarchicalAssignments/AssignmentNode.js +33 -0
- package/lib/components/HierarchicalAssignments/AssignmentNode.js.map +1 -0
- package/lib/components/HierarchicalAssignments/AssignmentTree.d.ts +15 -0
- package/lib/components/HierarchicalAssignments/AssignmentTree.d.ts.map +1 -0
- package/lib/components/HierarchicalAssignments/AssignmentTree.js +21 -0
- package/lib/components/HierarchicalAssignments/AssignmentTree.js.map +1 -0
- package/lib/components/HierarchicalAssignments/Assignments.styles.d.ts +31 -31
- package/lib/components/HierarchicalAssignments/Assignments.styles.d.ts.map +1 -1
- package/lib/components/HierarchicalAssignments/Assignments.styles.js +85 -69
- package/lib/components/HierarchicalAssignments/Assignments.styles.js.map +1 -1
- package/lib/components/HierarchicalAssignments/HierarchicalAssignments.d.ts +2 -3
- package/lib/components/HierarchicalAssignments/HierarchicalAssignments.d.ts.map +1 -1
- package/lib/components/HierarchicalAssignments/HierarchicalAssignments.js +117 -9
- package/lib/components/HierarchicalAssignments/HierarchicalAssignments.js.map +1 -1
- package/lib/components/HierarchicalAssignments/HierarchicalAssignments.test-ids.d.ts +3 -3
- package/lib/components/HierarchicalAssignments/HierarchicalAssignments.test-ids.d.ts.map +1 -1
- package/lib/components/HierarchicalAssignments/HierarchicalAssignments.test-ids.js +2 -1
- package/lib/components/HierarchicalAssignments/HierarchicalAssignments.test-ids.js.map +1 -1
- package/lib/components/HierarchicalAssignments/HierarchicalAssignments.types.d.ts +12 -12
- package/lib/components/HierarchicalAssignments/HierarchicalAssignments.types.d.ts.map +1 -1
- package/lib/components/HierarchicalAssignments/HierarchicalAssignments.types.js.map +1 -1
- package/lib/components/HierarchicalAssignments/helpers.d.ts +23 -0
- package/lib/components/HierarchicalAssignments/helpers.d.ts.map +1 -0
- package/lib/components/HierarchicalAssignments/helpers.js +167 -0
- package/lib/components/HierarchicalAssignments/helpers.js.map +1 -0
- package/lib/components/HierarchicalAssignments/nodeItems/AssignmentItem.d.ts +18 -0
- package/lib/components/HierarchicalAssignments/nodeItems/AssignmentItem.d.ts.map +1 -0
- package/lib/components/HierarchicalAssignments/nodeItems/AssignmentItem.js +105 -0
- package/lib/components/HierarchicalAssignments/nodeItems/AssignmentItem.js.map +1 -0
- package/lib/components/HierarchicalAssignments/nodeItems/CaseDetail.d.ts +23 -0
- package/lib/components/HierarchicalAssignments/nodeItems/CaseDetail.d.ts.map +1 -0
- package/lib/components/HierarchicalAssignments/nodeItems/CaseDetail.js +105 -0
- package/lib/components/HierarchicalAssignments/nodeItems/CaseDetail.js.map +1 -0
- package/lib/components/HierarchicalAssignments/nodeItems/useNodeFocus.d.ts +23 -0
- package/lib/components/HierarchicalAssignments/nodeItems/useNodeFocus.d.ts.map +1 -0
- package/lib/components/HierarchicalAssignments/nodeItems/useNodeFocus.js +42 -0
- package/lib/components/HierarchicalAssignments/nodeItems/useNodeFocus.js.map +1 -0
- package/lib/components/IntelligentGuidance/IntelligentGuidance.d.ts +2 -3
- package/lib/components/IntelligentGuidance/IntelligentGuidance.d.ts.map +1 -1
- package/lib/components/IntelligentGuidance/IntelligentGuidance.js +5 -2
- package/lib/components/IntelligentGuidance/IntelligentGuidance.js.map +1 -1
- package/lib/components/IntelligentGuidance/IntelligentGuidance.styles.d.ts +2 -3
- package/lib/components/IntelligentGuidance/IntelligentGuidance.styles.d.ts.map +1 -1
- package/lib/components/IntelligentGuidance/IntelligentGuidance.styles.js +32 -21
- package/lib/components/IntelligentGuidance/IntelligentGuidance.styles.js.map +1 -1
- package/lib/components/InteractionNotification/CountdownButton.d.ts +3 -3
- package/lib/components/InteractionNotification/CountdownButton.d.ts.map +1 -1
- package/lib/components/InteractionNotification/CountdownButton.js +1 -1
- package/lib/components/InteractionNotification/CountdownButton.js.map +1 -1
- package/lib/components/InteractionNotification/InteractionNotification.d.ts +3 -3
- package/lib/components/InteractionNotification/InteractionNotification.d.ts.map +1 -1
- package/lib/components/InteractionNotification/InteractionNotification.js +1 -1
- package/lib/components/InteractionNotification/InteractionNotification.js.map +1 -1
- package/lib/components/Predictions/Predictions.d.ts +2 -3
- package/lib/components/Predictions/Predictions.d.ts.map +1 -1
- package/lib/components/Predictions/Predictions.js +1 -0
- package/lib/components/Predictions/Predictions.js.map +1 -1
- package/lib/components/SearchResults/ActiveFilter.d.ts +1 -2
- package/lib/components/SearchResults/ActiveFilter.d.ts.map +1 -1
- package/lib/components/SearchResults/Filter.d.ts.map +1 -1
- package/lib/components/SearchResults/Filter.js.map +1 -1
- package/lib/components/SearchResults/SearchResult.d.ts.map +1 -1
- package/lib/components/SearchResults/SearchResults.d.ts +2 -3
- package/lib/components/SearchResults/SearchResults.d.ts.map +1 -1
- package/lib/components/SearchResults/SearchResults.js +1 -2
- package/lib/components/SearchResults/SearchResults.js.map +1 -1
- package/lib/components/SearchResults/SearchResults.styles.d.ts +1 -2
- package/lib/components/SearchResults/SearchResults.styles.d.ts.map +1 -1
- package/lib/components/Stages/StageGlimpse.js +1 -1
- package/lib/components/Stages/StageGlimpse.js.map +1 -1
- package/lib/components/Stages/Stages.d.ts +2 -3
- package/lib/components/Stages/Stages.d.ts.map +1 -1
- package/lib/components/Stages/Stages.js +4 -1
- package/lib/components/Stages/Stages.js.map +1 -1
- package/lib/components/Stages/Stages.styles.d.ts +7 -6
- package/lib/components/Stages/Stages.styles.d.ts.map +1 -1
- package/lib/components/Stages/Stages.styles.js +6 -10
- package/lib/components/Stages/Stages.styles.js.map +1 -1
- package/lib/components/Stakeholders/StakeholderForm.d.ts +1 -2
- package/lib/components/Stakeholders/StakeholderForm.d.ts.map +1 -1
- package/lib/components/Stakeholders/StakeholderForm.js.map +1 -1
- package/lib/components/Stakeholders/Stakeholders.d.ts +2 -3
- package/lib/components/Stakeholders/Stakeholders.d.ts.map +1 -1
- package/lib/components/Stakeholders/Stakeholders.js +37 -26
- package/lib/components/Stakeholders/Stakeholders.js.map +1 -1
- package/lib/components/Tags/Tags.d.ts +5 -5
- package/lib/components/Tags/Tags.d.ts.map +1 -1
- package/lib/components/Tags/Tags.js.map +1 -1
- package/lib/components/Tasks/TaskList.d.ts +13 -8
- package/lib/components/Tasks/TaskList.d.ts.map +1 -1
- package/lib/components/Tasks/TaskList.js +15 -7
- package/lib/components/Tasks/TaskList.js.map +1 -1
- package/lib/components/Tasks/Tasks.d.ts +8 -3
- package/lib/components/Tasks/Tasks.d.ts.map +1 -1
- package/lib/components/Tasks/Tasks.js +14 -4
- package/lib/components/Tasks/Tasks.js.map +1 -1
- package/lib/components/Tasks/Tasks.test-ids.d.ts +3 -3
- package/lib/components/Tasks/Tasks.test-ids.d.ts.map +1 -1
- package/lib/components/Timeline/Timeline.d.ts +3 -3
- package/lib/components/Timeline/Timeline.d.ts.map +1 -1
- package/lib/components/Timeline/Timeline.js +9 -2
- package/lib/components/Timeline/Timeline.js.map +1 -1
- package/lib/components/Timeline/Timeline.styles.d.ts +5 -6
- package/lib/components/Timeline/Timeline.styles.d.ts.map +1 -1
- package/lib/components/Timeline/Timeline.styles.js +10 -3
- package/lib/components/Timeline/Timeline.styles.js.map +1 -1
- package/lib/components/Timeline/Timeline.types.d.ts +11 -1
- package/lib/components/Timeline/Timeline.types.d.ts.map +1 -1
- package/lib/components/Timeline/Timeline.types.js.map +1 -1
- package/lib/components/Timeline/TimelineItem.d.ts +1 -2
- package/lib/components/Timeline/TimelineItem.d.ts.map +1 -1
- package/lib/components/Timeline/TimelineItem.js +10 -9
- package/lib/components/Timeline/TimelineItem.js.map +1 -1
- package/lib/components/Timeline/TimelineToolbar.d.ts +2 -3
- package/lib/components/Timeline/TimelineToolbar.d.ts.map +1 -1
- package/lib/components/Timeline/TimelineToolbar.js.map +1 -1
- package/lib/components/Timeline/utils.js.map +1 -1
- package/lib/components/UtilitiesLayout/UtilitiesLayout.d.ts +5 -0
- package/lib/components/UtilitiesLayout/UtilitiesLayout.d.ts.map +1 -1
- package/lib/components/UtilitiesLayout/UtilitiesLayout.js +3 -3
- package/lib/components/UtilitiesLayout/UtilitiesLayout.js.map +1 -1
- package/lib/components/UtilitiesLayout/UtilitiesLayout.styles.d.ts +2 -4
- package/lib/components/UtilitiesLayout/UtilitiesLayout.styles.d.ts.map +1 -1
- package/lib/components/UtilitiesLayout/UtilitiesLayout.styles.js +2 -5
- package/lib/components/UtilitiesLayout/UtilitiesLayout.styles.js.map +1 -1
- package/lib/index.d.ts +2 -0
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +2 -0
- package/lib/index.js.map +1 -1
- package/package.json +10 -9
- package/lib/components/HierarchicalAssignments/AssignmentContainer.d.ts +0 -33
- package/lib/components/HierarchicalAssignments/AssignmentContainer.d.ts.map +0 -1
- package/lib/components/HierarchicalAssignments/AssignmentContainer.js +0 -46
- package/lib/components/HierarchicalAssignments/AssignmentContainer.js.map +0 -1
- package/lib/components/HierarchicalAssignments/AssignmentItem.d.ts +0 -11
- package/lib/components/HierarchicalAssignments/AssignmentItem.d.ts.map +0 -1
- package/lib/components/HierarchicalAssignments/AssignmentItem.js +0 -22
- package/lib/components/HierarchicalAssignments/AssignmentItem.js.map +0 -1
|
@@ -1,18 +1,22 @@
|
|
|
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';
|
|
9
|
+
import { StyledAllTabsWrapper, StyledTabs, StylesAllTabsButtonWrapper } from '@pega/cosmos-react-core/lib/components/Tabs/Tabs.styles';
|
|
10
|
+
import { StyledMenuButton } from '@pega/cosmos-react-core/lib/components/MenuButton/MenuButton';
|
|
11
|
+
import { StyledTab } from '@pega/cosmos-react-core/lib/components/Tabs/Tab';
|
|
8
12
|
import { StyledStage, StyledStageContainer, StyledStages } from '../Stages/Stages.styles';
|
|
9
13
|
import { StyledAssignments } from '../Assignments/Assignments.styles';
|
|
14
|
+
import { StyledAssignments as StyledHierarchicalAssignments } from '../HierarchicalAssignments/Assignments.styles';
|
|
10
15
|
import { StyledGenAICoachContainer } from '../GenAICoach/GenAICoach.styles';
|
|
16
|
+
import { StyledTaskList } from '../Tasks/TaskList';
|
|
11
17
|
import { useCaseViewContext } from './CaseView.context';
|
|
12
18
|
const labelWidth = '16ch';
|
|
13
19
|
const inlineEndButtonOffset = '0.375rem';
|
|
14
|
-
export const StyledCaseSummaryFields = styled.div ``;
|
|
15
|
-
StyledCaseSummaryFields.defaultProps = defaultThemeProp;
|
|
16
20
|
export const StyledSummaryPrimaryList = styled(FieldValueList)(({ theme, wrapped }) => {
|
|
17
21
|
const fontSizes = calculateFontSize(theme.base['font-size'], theme.base['font-scale']);
|
|
18
22
|
return css `
|
|
@@ -41,6 +45,20 @@ export const StyledSummarySecondaryList = styled(FieldValueList)(() => {
|
|
|
41
45
|
}
|
|
42
46
|
`;
|
|
43
47
|
});
|
|
48
|
+
export const StyledCaseSummaryFields = styled.div(({ theme }) => {
|
|
49
|
+
const { components: { 'field-value-list': { inline: { detached } } } } = theme;
|
|
50
|
+
return (detached &&
|
|
51
|
+
css `
|
|
52
|
+
${StyledSummaryPrimaryList} {
|
|
53
|
+
padding: 0 calc(${theme.components.card.padding} * 2);
|
|
54
|
+
}
|
|
55
|
+
${StyledSummarySecondaryList} {
|
|
56
|
+
padding: calc(${theme.components.card.padding} * 2);
|
|
57
|
+
border-block: 0.0625rem solid ${theme.base.palette['border-line']};
|
|
58
|
+
}
|
|
59
|
+
`);
|
|
60
|
+
});
|
|
61
|
+
StyledCaseSummaryFields.defaultProps = defaultThemeProp;
|
|
44
62
|
export const StyledSummaryTabContent = styled(CardContent)(({ theme }) => {
|
|
45
63
|
const { base: { spacing } } = theme;
|
|
46
64
|
return css `
|
|
@@ -57,21 +75,34 @@ export const StyledSummaryTabContent = styled(CardContent)(({ theme }) => {
|
|
|
57
75
|
});
|
|
58
76
|
StyledSummaryTabContent.defaultProps = defaultThemeProp;
|
|
59
77
|
export const StyledCaseHeader = styled.header(({ theme }) => {
|
|
60
|
-
const color
|
|
78
|
+
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;
|
|
79
|
+
const foregroundColor = calculateForegroundColor(background, caseHeaderForegroundColor);
|
|
80
|
+
const { aboveSM, aboveMD, persistentUtility, aboveXL, summaryExpanded, isPreview } = useCaseViewContext();
|
|
81
|
+
const shouldRenderMobileTabs = !aboveMD || (persistentUtility && !aboveXL) || !summaryExpanded;
|
|
82
|
+
const caseHeaderBorderRadius = shouldRenderMobileTabs
|
|
83
|
+
? `0 0 ${utilitiesDetached ? borderRadius : 0} ${borderRadius}`
|
|
84
|
+
: `${borderRadius} ${borderRadius} 0 0`;
|
|
61
85
|
return css `
|
|
62
|
-
background
|
|
63
|
-
color: ${
|
|
64
|
-
padding: ${
|
|
86
|
+
background: ${background};
|
|
87
|
+
color: ${foregroundColor};
|
|
88
|
+
padding: ${spacing} calc(2 * ${spacing});
|
|
65
89
|
position: relative;
|
|
66
90
|
|
|
91
|
+
${summaryDetached &&
|
|
92
|
+
!isPreview &&
|
|
93
|
+
aboveSM &&
|
|
94
|
+
css `
|
|
95
|
+
border-radius: ${caseHeaderBorderRadius};
|
|
96
|
+
`}
|
|
97
|
+
|
|
67
98
|
h1:focus-visible {
|
|
68
99
|
outline: transparent;
|
|
69
|
-
box-shadow: ${
|
|
100
|
+
box-shadow: ${shadow.focus};
|
|
70
101
|
}
|
|
71
102
|
|
|
72
103
|
${StyledMenu} {
|
|
73
|
-
color: ${
|
|
74
|
-
z-index: ${
|
|
104
|
+
color: ${palette['foreground-color']};
|
|
105
|
+
z-index: ${zIndex.popover + 1};
|
|
75
106
|
}
|
|
76
107
|
`;
|
|
77
108
|
});
|
|
@@ -99,15 +130,20 @@ export const StyledHeaderActions = styled.div(({ offsetEnd, theme }) => {
|
|
|
99
130
|
css `
|
|
100
131
|
padding-inline-end: ${inlineEndButtonOffset};
|
|
101
132
|
`};
|
|
133
|
+
|
|
134
|
+
${StyledButton} {
|
|
135
|
+
margin-inline-start: 0;
|
|
136
|
+
}
|
|
102
137
|
`;
|
|
103
138
|
});
|
|
104
139
|
StyledHeaderActions.defaultProps = defaultThemeProp;
|
|
105
140
|
export const StyledCaseHeaderText = styled.hgroup(({ theme }) => {
|
|
106
|
-
const color =
|
|
107
|
-
|
|
141
|
+
const { components: { 'case-view': { header: { 'foreground-color': foregroundColor, background: caseHeaderBackground } } } } = theme;
|
|
142
|
+
/* If the foreground-color is auto, we calculate the text color and transparentColor based on the background color. */
|
|
143
|
+
const color = calculateForegroundColor(caseHeaderBackground, foregroundColor);
|
|
108
144
|
const fontSize = calculateFontSize(theme.base['font-size'], theme.base['font-scale']);
|
|
109
145
|
const idStyle = css `
|
|
110
|
-
color: ${
|
|
146
|
+
color: ${color};
|
|
111
147
|
font-size: ${fontSize.s};
|
|
112
148
|
font-weight: normal;
|
|
113
149
|
`;
|
|
@@ -151,17 +187,21 @@ export const StyledCaseHeaderText = styled.hgroup(({ theme }) => {
|
|
|
151
187
|
});
|
|
152
188
|
StyledCaseHeaderText.defaultProps = defaultThemeProp;
|
|
153
189
|
export const StyledCaseHeaderPromotedAction = styled(Button)(({ theme }) => {
|
|
154
|
-
const { base: { palette: { '
|
|
155
|
-
|
|
156
|
-
const
|
|
190
|
+
const { base: { palette: { interactive } }, components: { 'case-view': { header: { background, 'foreground-color': foregroundColor } } } } = theme;
|
|
191
|
+
/* If foreground color is auto, we calculate the text color based on the background color. */
|
|
192
|
+
const textColor = calculateForegroundColor(background, foregroundColor);
|
|
193
|
+
const isGradientBackground = !isSolidColor(background);
|
|
194
|
+
const backgroundColor = isGradientBackground ? readableColor(textColor) : background;
|
|
195
|
+
const interactiveUsable = getContrast(backgroundColor, interactive) >= 4.5;
|
|
196
|
+
const color = !isGradientBackground && interactiveUsable ? interactive : textColor;
|
|
157
197
|
let hoverBackground = rgba(color, 0.15);
|
|
158
|
-
if (interactiveUsable) {
|
|
159
|
-
hoverBackground = readableHue(
|
|
198
|
+
if (!isGradientBackground && interactiveUsable) {
|
|
199
|
+
hoverBackground = readableHue(interactive, color);
|
|
160
200
|
}
|
|
161
201
|
return css `
|
|
162
|
-
--button-background-color: ${
|
|
202
|
+
--button-background-color: ${backgroundColor};
|
|
163
203
|
color: ${color};
|
|
164
|
-
background-color:
|
|
204
|
+
background-color: transparent;
|
|
165
205
|
border-color: ${color};
|
|
166
206
|
|
|
167
207
|
@media (hover: hover) {
|
|
@@ -224,17 +264,18 @@ const popoverColorReset = (theme) => {
|
|
|
224
264
|
`;
|
|
225
265
|
};
|
|
226
266
|
export const StyledHeaderSummary = styled.dl(({ theme }) => {
|
|
227
|
-
const { base: { palette: { '
|
|
228
|
-
|
|
229
|
-
const color =
|
|
230
|
-
const
|
|
267
|
+
const { base: { palette: { interactive } }, components: { 'case-view': { header: { 'foreground-color': foregroundColor, background } } } } = theme;
|
|
268
|
+
/* If the foreground-color is auto, we calculate the text color and transparentColor based on the background color. */
|
|
269
|
+
const color = calculateForegroundColor(background, foregroundColor);
|
|
270
|
+
const { backgroundColor } = calculateBackgroundAndContrastColor(background, foregroundColor);
|
|
271
|
+
const interactiveUsable = meetsContrastGuidelines(backgroundColor, interactive).AA;
|
|
231
272
|
return css `
|
|
232
273
|
max-width: 100%;
|
|
233
274
|
min-width: 0;
|
|
234
275
|
|
|
235
276
|
> ${StyledStackedFieldValue} {
|
|
236
277
|
> ${StyledLabel} {
|
|
237
|
-
color: ${
|
|
278
|
+
color: ${color};
|
|
238
279
|
white-space: nowrap;
|
|
239
280
|
}
|
|
240
281
|
|
|
@@ -301,15 +342,20 @@ export const StyledCaseSummaryInfo = styled.div(() => {
|
|
|
301
342
|
});
|
|
302
343
|
StyledCaseSummaryInfo.defaultProps = defaultThemeProp;
|
|
303
344
|
export const StyledCaseSummaryContainer = styled.div(({ theme }) => {
|
|
345
|
+
const { components: { 'field-value-list': { inline: { detached } } } } = theme;
|
|
304
346
|
return css `
|
|
305
347
|
padding: calc(1.5 * ${theme.base.spacing}) calc(${theme.components.card.padding} * 2);
|
|
348
|
+
|
|
349
|
+
${detached &&
|
|
350
|
+
css `
|
|
351
|
+
padding: calc(1.5 * ${theme.base.spacing}) 0;
|
|
352
|
+
`}
|
|
306
353
|
`;
|
|
307
354
|
});
|
|
308
355
|
StyledCaseSummaryContainer.defaultProps = defaultThemeProp;
|
|
309
356
|
export const StyledExpandCollapseButton = styled(Button)(() => {
|
|
310
357
|
return css `
|
|
311
358
|
border: none;
|
|
312
|
-
|
|
313
359
|
${StyledIcon} {
|
|
314
360
|
width: 1.5rem;
|
|
315
361
|
height: 1.5rem;
|
|
@@ -350,72 +396,137 @@ export const StyledExpandCollapseSummaryButton = styled(StyledExpandCollapseButt
|
|
|
350
396
|
`;
|
|
351
397
|
});
|
|
352
398
|
StyledExpandCollapseSummaryButton.defaultProps = defaultThemeProp;
|
|
353
|
-
export const StyledCaseSummary = styled.div(() => {
|
|
399
|
+
export const StyledCaseSummary = styled.div(({ theme: { base: { palette: { 'primary-background': primaryBackground }, 'border-radius': borderRadius, 'hit-area': { 'mouse-min': mouseMin, 'finger-min': fingerMin } }, components: { 'case-view': { summary: { detached } }, tabs: { detached: tabsDetached } } } }) => {
|
|
354
400
|
const { summaryExpanded, aboveMD } = useCaseViewContext();
|
|
355
401
|
return css `
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
402
|
+
background-color: ${primaryBackground};
|
|
403
|
+
position: relative;
|
|
404
|
+
height: 100%;
|
|
405
|
+
${aboveMD &&
|
|
359
406
|
summaryExpanded &&
|
|
360
407
|
css `
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
408
|
+
width: 25rem;
|
|
409
|
+
`}
|
|
410
|
+
|
|
411
|
+
${detached &&
|
|
412
|
+
css `
|
|
413
|
+
border-radius: ${borderRadius};
|
|
414
|
+
--border-radius: calc(${borderRadius} * 0.5);
|
|
415
|
+
`}
|
|
416
|
+
|
|
417
|
+
${tabsDetached &&
|
|
418
|
+
css `
|
|
419
|
+
& ${StyledTabs} {
|
|
420
|
+
&[aria-orientation='vertical'] {
|
|
421
|
+
& ${StyledTab} {
|
|
422
|
+
height: ${mouseMin};
|
|
423
|
+
|
|
424
|
+
@media (pointer: coarse) {
|
|
425
|
+
height: ${fingerMin};
|
|
426
|
+
}
|
|
427
|
+
}
|
|
428
|
+
}
|
|
429
|
+
}
|
|
430
|
+
`}
|
|
431
|
+
`;
|
|
364
432
|
});
|
|
365
|
-
|
|
433
|
+
StyledCaseSummary.defaultProps = defaultThemeProp;
|
|
434
|
+
export const StyledWorkArea = styled.div(({ theme: { base: { palette: { 'border-line': borderLine, 'secondary-background': secondaryBackground }, spacing, 'border-radius': borderRadius }, components: { 'case-view': { assignments: { detached: assignmentDetached, background: assignmentBackground, 'foreground-color': assignmentForegroundColor } }, tabs: { detached: tabsDetached }, card: { background, 'foreground-color': foregroundColor, 'border-radius': cardBorderRadius } } } }) => {
|
|
435
|
+
const { backgroundColor } = calculateBackgroundAndContrastColor(background, foregroundColor);
|
|
436
|
+
const foregroundColorForAssignment = calculateForegroundColor(assignmentBackground, assignmentForegroundColor);
|
|
366
437
|
const { summaryExpanded, aboveMD, intelligentGuidance } = useCaseViewContext();
|
|
367
438
|
let pbeRem = 0;
|
|
368
439
|
if (intelligentGuidance) {
|
|
369
440
|
pbeRem = aboveMD && !summaryExpanded ? 4 : 6;
|
|
370
441
|
}
|
|
371
442
|
return css `
|
|
372
|
-
|
|
373
|
-
|
|
443
|
+
grid-area: work-area;
|
|
444
|
+
padding: calc(2 * ${spacing});
|
|
374
445
|
|
|
375
|
-
|
|
446
|
+
${aboveMD &&
|
|
376
447
|
css `
|
|
377
|
-
|
|
448
|
+
padding: calc(2 * ${spacing}) 0;
|
|
378
449
|
|
|
379
|
-
|
|
380
|
-
|
|
450
|
+
/* This is required to make scrollStick work. */
|
|
451
|
+
height: max-content;
|
|
381
452
|
|
|
382
|
-
|
|
453
|
+
${!summaryExpanded &&
|
|
383
454
|
css `
|
|
384
|
-
|
|
455
|
+
margin-inline-start: calc(2 * ${spacing});
|
|
456
|
+
`}
|
|
385
457
|
`}
|
|
386
|
-
`}
|
|
387
458
|
|
|
388
|
-
|
|
459
|
+
/* Order of style here is necessary for overriding styles above. */
|
|
389
460
|
${pbeRem > 0 &&
|
|
390
461
|
css `
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
462
|
+
/* Accounts for collapsed intelligentGuidance bubble covering work area content when fully scrolled. */
|
|
463
|
+
padding-block-end: ${pbeRem}rem;
|
|
464
|
+
`}
|
|
394
465
|
|
|
395
|
-
&:has(${StyledAssignments})
|
|
396
|
-
|
|
397
|
-
|
|
466
|
+
&:has(${StyledAssignments}),
|
|
467
|
+
&:has(${StyledHierarchicalAssignments}) {
|
|
468
|
+
${StyledStages} {
|
|
469
|
+
border-block-end: 0.0625rem solid ${borderLine};
|
|
398
470
|
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
471
|
+
&,
|
|
472
|
+
${StyledStageContainer}:first-of-type > ${StyledStage} {
|
|
473
|
+
border-end-start-radius: 0;
|
|
474
|
+
}
|
|
403
475
|
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
476
|
+
&,
|
|
477
|
+
${StyledStageContainer}:last-of-type > ${StyledStage} {
|
|
478
|
+
border-end-end-radius: 0;
|
|
479
|
+
}
|
|
407
480
|
}
|
|
408
481
|
}
|
|
409
|
-
}
|
|
410
482
|
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
483
|
+
${tabsDetached &&
|
|
484
|
+
css `
|
|
485
|
+
${StyledAllTabsWrapper} {
|
|
486
|
+
background-color: ${secondaryBackground};
|
|
487
|
+
border-start-start-radius: ${cardBorderRadius};
|
|
488
|
+
border-start-end-radius: ${cardBorderRadius};
|
|
489
|
+
|
|
490
|
+
${StyledTabs} {
|
|
491
|
+
border-radius: unset;
|
|
492
|
+
border-start-end-radius: inherit;
|
|
493
|
+
}
|
|
494
|
+
|
|
495
|
+
${StylesAllTabsButtonWrapper}, ${StyledMenuButton} {
|
|
496
|
+
border-start-start-radius: inherit;
|
|
497
|
+
}
|
|
498
|
+
}
|
|
499
|
+
`}
|
|
500
|
+
|
|
501
|
+
&:has(${StyledStages}) {
|
|
502
|
+
${StyledCard}${StyledAssignments},
|
|
503
|
+
${StyledCard}${StyledHierarchicalAssignments} {
|
|
504
|
+
margin-block-start: calc(-2 * ${spacing});
|
|
505
|
+
border-start-start-radius: 0;
|
|
506
|
+
border-start-end-radius: 0;
|
|
507
|
+
}
|
|
508
|
+
|
|
509
|
+
&:has(${StyledCard}${StyledAssignments} > ${StyledCardHeader}),
|
|
510
|
+
&:has(${StyledCard}${StyledHierarchicalAssignments} > ${StyledCardHeader}) {
|
|
511
|
+
${StyledCard}${StyledAssignments},
|
|
512
|
+
${StyledCard}${StyledHierarchicalAssignments} {
|
|
513
|
+
background: ${assignmentBackground};
|
|
514
|
+
color: ${foregroundColorForAssignment};
|
|
515
|
+
${assignmentDetached &&
|
|
516
|
+
css `
|
|
517
|
+
${StyledTaskList} {
|
|
518
|
+
background-color: ${backgroundColor};
|
|
519
|
+
border: solid 0.0625rem ${borderLine};
|
|
520
|
+
border-radius: calc(--border-radius, ${borderRadius});
|
|
521
|
+
${StyledSummaryListItem} {
|
|
522
|
+
padding: calc(${spacing} / 2) ${spacing};
|
|
523
|
+
}
|
|
524
|
+
}
|
|
525
|
+
`}
|
|
526
|
+
}
|
|
527
|
+
}
|
|
416
528
|
}
|
|
417
|
-
|
|
418
|
-
`;
|
|
529
|
+
`;
|
|
419
530
|
});
|
|
420
531
|
StyledWorkArea.defaultProps = defaultThemeProp;
|
|
421
532
|
export const StyledUtilitiesHeading = styled(Text) ``;
|
|
@@ -458,30 +569,45 @@ export const StyledUtilities = styled.div(({ theme }) => {
|
|
|
458
569
|
`;
|
|
459
570
|
});
|
|
460
571
|
StyledUtilities.defaultProps = defaultThemeProp;
|
|
461
|
-
export const StyledSummary = styled.div(({ theme }) => {
|
|
462
|
-
const {
|
|
572
|
+
export const StyledSummary = styled.div(({ theme: { base: { spacing, breakpoints, 'z-index': zIndex }, components: { 'case-view': { summary: { detached: summaryDetached }, utilities: { detached: utilitiesDetached } } } } }) => {
|
|
573
|
+
const { aboveSM, aboveMD, persistentUtility, aboveXL, summaryExpanded, isPreview } = useCaseViewContext();
|
|
574
|
+
const shouldRenderMobileTabs = !aboveMD || (persistentUtility && !aboveXL) || !summaryExpanded;
|
|
463
575
|
return css `
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
z-index: ${theme.base['z-index'].popover};
|
|
576
|
+
top: ${summaryExpanded ? 'var(--top-offset)' : 'var(--appshell-offset, 0)'};
|
|
577
|
+
width: 100%;
|
|
578
|
+
z-index: ${zIndex.popover};
|
|
468
579
|
|
|
469
|
-
|
|
580
|
+
${aboveMD &&
|
|
470
581
|
summaryExpanded &&
|
|
471
582
|
css `
|
|
472
|
-
|
|
473
|
-
|
|
583
|
+
height: var(--case-view-height);
|
|
584
|
+
`}
|
|
585
|
+
|
|
586
|
+
${summaryDetached &&
|
|
587
|
+
aboveSM &&
|
|
588
|
+
css `
|
|
589
|
+
padding: calc(2 * ${spacing});
|
|
590
|
+
padding-inline-end: ${utilitiesDetached && shouldRenderMobileTabs
|
|
591
|
+
? `calc(2 * ${spacing})`
|
|
592
|
+
: 0};
|
|
593
|
+
padding-block: ${shouldRenderMobileTabs ? 0 : `calc(2 * ${spacing})`};
|
|
594
|
+
`}
|
|
474
595
|
|
|
475
|
-
|
|
596
|
+
${isPreview &&
|
|
597
|
+
css `
|
|
598
|
+
padding: 0;
|
|
599
|
+
`}
|
|
600
|
+
|
|
601
|
+
${aboveMD
|
|
476
602
|
? css `
|
|
477
|
-
position: sticky;
|
|
478
|
-
`
|
|
479
|
-
: css `
|
|
480
|
-
@media (min-height: ${theme.base.breakpoints.sm}) {
|
|
481
603
|
position: sticky;
|
|
482
|
-
|
|
483
|
-
`
|
|
484
|
-
|
|
604
|
+
`
|
|
605
|
+
: css `
|
|
606
|
+
@media (min-height: ${breakpoints.sm}) {
|
|
607
|
+
position: sticky;
|
|
608
|
+
}
|
|
609
|
+
`}
|
|
610
|
+
`;
|
|
485
611
|
});
|
|
486
612
|
StyledSummary.defaultProps = defaultThemeProp;
|
|
487
613
|
export const StyledCaseDrawer = styled.div(({ previewActive, theme }) => {
|
|
@@ -509,47 +635,98 @@ export const StyledCaseDrawer = styled.div(({ previewActive, theme }) => {
|
|
|
509
635
|
`;
|
|
510
636
|
});
|
|
511
637
|
StyledCaseDrawer.defaultProps = defaultThemeProp;
|
|
512
|
-
export const StyledCaseDrawerContent = styled.div(({ theme }) => {
|
|
638
|
+
export const StyledCaseDrawerContent = styled.div(({ theme: { base: { palette: { 'app-background': appBackground }, spacing } } }) => {
|
|
513
639
|
return css `
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
640
|
+
background: ${appBackground};
|
|
641
|
+
padding: calc(2 * ${spacing});
|
|
642
|
+
height: 100%;
|
|
643
|
+
overflow: auto;
|
|
644
|
+
`;
|
|
519
645
|
});
|
|
520
646
|
StyledCaseDrawerContent.defaultProps = defaultThemeProp;
|
|
521
|
-
export const StyledPersistentUtility = styled.div(({ theme }) => {
|
|
647
|
+
export const StyledPersistentUtility = styled.div(({ theme, persistentUtilityExpanded }) => {
|
|
522
648
|
return css `
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
649
|
+
width: ${persistentUtilityExpanded ? '100%' : theme.base['content-width'].md};
|
|
650
|
+
overflow: auto;
|
|
651
|
+
position: sticky;
|
|
652
|
+
z-index: 1;
|
|
653
|
+
height: var(--case-view-height);
|
|
654
|
+
inset-block-start: var(--top-offset);
|
|
655
|
+
padding-block: calc(2 * ${theme.base.spacing});
|
|
656
|
+
`;
|
|
531
657
|
});
|
|
532
658
|
StyledPersistentUtility.defaultProps = defaultThemeProp;
|
|
659
|
+
export const StyledPersistentContainer = styled.div `
|
|
660
|
+
height: 100%;
|
|
661
|
+
`;
|
|
662
|
+
export const StyledPersistentContent = styled.div(({ theme }) => {
|
|
663
|
+
return css `
|
|
664
|
+
height: calc (100% - calc(4 * ${theme.base.spacing}));
|
|
665
|
+
`;
|
|
666
|
+
});
|
|
667
|
+
StyledPersistentContent.defaultProps = defaultThemeProp;
|
|
533
668
|
export const ScrollStick = styled.div `
|
|
534
669
|
position: sticky;
|
|
535
670
|
top: 0;
|
|
536
671
|
`;
|
|
537
|
-
export const StyledCaseView = styled.div(({ theme }) => {
|
|
538
|
-
const
|
|
672
|
+
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 } } } } }) => {
|
|
673
|
+
const utilitiesForegroundComputed = calculateForegroundColor(utilitiesBackground, utilitiesForegroundColor);
|
|
674
|
+
const { aboveSM, aboveMD, isPreview } = useCaseViewContext();
|
|
539
675
|
return css `
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
676
|
+
--top-offset: calc(var(--appshell-offset, 0rem) + var(--summary-height));
|
|
677
|
+
--case-view-height: calc(100vh - var(--top-offset));
|
|
678
|
+
position: relative;
|
|
679
|
+
min-height: var(--case-view-height);
|
|
680
|
+
background: ${appBackground};
|
|
545
681
|
|
|
546
|
-
|
|
682
|
+
${aboveMD &&
|
|
547
683
|
css `
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
684
|
+
${StyledUtilities}:last-child {
|
|
685
|
+
margin-inline-end: calc(2 * ${spacing});
|
|
686
|
+
background: ${utilitiesBackground};
|
|
687
|
+
color: ${utilitiesForegroundComputed};
|
|
688
|
+
|
|
689
|
+
${!utilitiesDetached &&
|
|
690
|
+
css `
|
|
691
|
+
margin-inline-end: 0;
|
|
692
|
+
padding: calc(2 * ${spacing});
|
|
693
|
+
padding-inline-end: 0;
|
|
694
|
+
border-radius: ${borderRadius} 0 0 ${borderRadius};
|
|
695
|
+
|
|
696
|
+
${StyledCard},
|
|
697
|
+
${StyledGenAICoachContainer} {
|
|
698
|
+
border-top-right-radius: 0;
|
|
699
|
+
border-bottom-right-radius: 0;
|
|
700
|
+
}
|
|
701
|
+
|
|
702
|
+
${StyledGenAICoachContainer} {
|
|
703
|
+
inset-inline-end: 0;
|
|
704
|
+
}
|
|
705
|
+
`}
|
|
706
|
+
}
|
|
707
|
+
`}
|
|
708
|
+
|
|
709
|
+
${aboveSM &&
|
|
710
|
+
summaryDetached &&
|
|
711
|
+
!isPreview &&
|
|
712
|
+
css `
|
|
713
|
+
&:not(:has(${StyledUtilities})) {
|
|
714
|
+
${StyledSummary} {
|
|
715
|
+
padding-inline-end: calc(2 * ${spacing});
|
|
716
|
+
}
|
|
717
|
+
${StyledCaseHeader} {
|
|
718
|
+
border-end-end-radius: ${borderRadius};
|
|
719
|
+
}
|
|
720
|
+
}
|
|
721
|
+
`}
|
|
722
|
+
|
|
723
|
+
${!aboveMD &&
|
|
724
|
+
css `
|
|
725
|
+
${StyledGenAICoachContainer} {
|
|
726
|
+
height: 42.5rem;
|
|
727
|
+
}
|
|
728
|
+
`}
|
|
729
|
+
`;
|
|
553
730
|
});
|
|
554
731
|
StyledCaseView.defaultProps = defaultThemeProp;
|
|
555
732
|
export const StyledUtilitiesHeader = styled(Text) `
|