@pega/cosmos-react-work 5.0.0-dev.4.6 → 5.0.0-dev.4.8
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/package.json +2 -2
- package/lib/components/AppAnnouncement/AppAnnouncement.d.ts +0 -23
- package/lib/components/AppAnnouncement/AppAnnouncement.d.ts.map +0 -1
- package/lib/components/AppAnnouncement/AppAnnouncement.js +0 -93
- package/lib/components/AppAnnouncement/AppAnnouncement.js.map +0 -1
- package/lib/components/AppAnnouncement/index.d.ts +0 -3
- package/lib/components/AppAnnouncement/index.d.ts.map +0 -1
- package/lib/components/AppAnnouncement/index.js +0 -2
- package/lib/components/AppAnnouncement/index.js.map +0 -1
- package/lib/components/Article/Article.d.ts +0 -49
- package/lib/components/Article/Article.d.ts.map +0 -1
- package/lib/components/Article/Article.js +0 -73
- package/lib/components/Article/Article.js.map +0 -1
- package/lib/components/Article/ArticleFooter.d.ts +0 -40
- package/lib/components/Article/ArticleFooter.d.ts.map +0 -1
- package/lib/components/Article/ArticleFooter.js +0 -54
- package/lib/components/Article/ArticleFooter.js.map +0 -1
- package/lib/components/Article/ArticleMeta.d.ts +0 -13
- package/lib/components/Article/ArticleMeta.d.ts.map +0 -1
- package/lib/components/Article/ArticleMeta.js +0 -24
- package/lib/components/Article/ArticleMeta.js.map +0 -1
- package/lib/components/Article/index.d.ts +0 -5
- package/lib/components/Article/index.d.ts.map +0 -1
- package/lib/components/Article/index.js +0 -3
- package/lib/components/Article/index.js.map +0 -1
- package/lib/components/ArticleList/ArticleList.d.ts +0 -6
- package/lib/components/ArticleList/ArticleList.d.ts.map +0 -1
- package/lib/components/ArticleList/ArticleList.js +0 -132
- package/lib/components/ArticleList/ArticleList.js.map +0 -1
- package/lib/components/ArticleList/ArticleList.types.d.ts +0 -87
- package/lib/components/ArticleList/ArticleList.types.d.ts.map +0 -1
- package/lib/components/ArticleList/ArticleList.types.js +0 -2
- package/lib/components/ArticleList/ArticleList.types.js.map +0 -1
- package/lib/components/ArticleList/ArticleListFilter.d.ts +0 -6
- package/lib/components/ArticleList/ArticleListFilter.d.ts.map +0 -1
- package/lib/components/ArticleList/ArticleListFilter.js +0 -61
- package/lib/components/ArticleList/ArticleListFilter.js.map +0 -1
- package/lib/components/ArticleList/ArticleListHeader.d.ts +0 -5
- package/lib/components/ArticleList/ArticleListHeader.d.ts.map +0 -1
- package/lib/components/ArticleList/ArticleListHeader.js +0 -20
- package/lib/components/ArticleList/ArticleListHeader.js.map +0 -1
- package/lib/components/ArticleList/ArticleSummary.d.ts +0 -7
- package/lib/components/ArticleList/ArticleSummary.d.ts.map +0 -1
- package/lib/components/ArticleList/ArticleSummary.js +0 -56
- package/lib/components/ArticleList/ArticleSummary.js.map +0 -1
- package/lib/components/ArticleList/index.d.ts +0 -6
- package/lib/components/ArticleList/index.d.ts.map +0 -1
- package/lib/components/ArticleList/index.js +0 -4
- package/lib/components/ArticleList/index.js.map +0 -1
- package/lib/components/Assignments/Assignments.d.ts +0 -21
- package/lib/components/Assignments/Assignments.d.ts.map +0 -1
- package/lib/components/Assignments/Assignments.js +0 -20
- package/lib/components/Assignments/Assignments.js.map +0 -1
- package/lib/components/Assignments/Assignments.styles.d.ts +0 -8
- package/lib/components/Assignments/Assignments.styles.d.ts.map +0 -1
- package/lib/components/Assignments/Assignments.styles.js +0 -41
- package/lib/components/Assignments/Assignments.styles.js.map +0 -1
- package/lib/components/Assignments/index.d.ts +0 -2
- package/lib/components/Assignments/index.d.ts.map +0 -1
- package/lib/components/Assignments/index.js +0 -2
- package/lib/components/Assignments/index.js.map +0 -1
- package/lib/components/CasePreview/CasePreview.d.ts +0 -27
- package/lib/components/CasePreview/CasePreview.d.ts.map +0 -1
- package/lib/components/CasePreview/CasePreview.js +0 -82
- package/lib/components/CasePreview/CasePreview.js.map +0 -1
- package/lib/components/CasePreview/CasePreview.test-ids.d.ts +0 -2
- package/lib/components/CasePreview/CasePreview.test-ids.d.ts.map +0 -1
- package/lib/components/CasePreview/CasePreview.test-ids.js +0 -3
- package/lib/components/CasePreview/CasePreview.test-ids.js.map +0 -1
- package/lib/components/CasePreview/index.d.ts +0 -3
- package/lib/components/CasePreview/index.d.ts.map +0 -1
- package/lib/components/CasePreview/index.js +0 -2
- package/lib/components/CasePreview/index.js.map +0 -1
- package/lib/components/CaseView/CaseHeader/CaseHeader.d.ts +0 -4
- package/lib/components/CaseView/CaseHeader/CaseHeader.d.ts.map +0 -1
- package/lib/components/CaseView/CaseHeader/CaseHeader.js +0 -127
- package/lib/components/CaseView/CaseHeader/CaseHeader.js.map +0 -1
- package/lib/components/CaseView/CaseHeader/Summary.d.ts +0 -6
- package/lib/components/CaseView/CaseHeader/Summary.d.ts.map +0 -1
- package/lib/components/CaseView/CaseHeader/Summary.js +0 -182
- package/lib/components/CaseView/CaseHeader/Summary.js.map +0 -1
- package/lib/components/CaseView/CaseSummary.d.ts +0 -4
- package/lib/components/CaseView/CaseSummary.d.ts.map +0 -1
- package/lib/components/CaseView/CaseSummary.js +0 -18
- package/lib/components/CaseView/CaseSummary.js.map +0 -1
- package/lib/components/CaseView/CaseSummaryFields.d.ts +0 -6
- package/lib/components/CaseView/CaseSummaryFields.d.ts.map +0 -1
- package/lib/components/CaseView/CaseSummaryFields.js +0 -18
- package/lib/components/CaseView/CaseSummaryFields.js.map +0 -1
- package/lib/components/CaseView/CaseView.context.d.ts +0 -5
- package/lib/components/CaseView/CaseView.context.d.ts.map +0 -1
- package/lib/components/CaseView/CaseView.context.js +0 -5
- package/lib/components/CaseView/CaseView.context.js.map +0 -1
- package/lib/components/CaseView/CaseView.d.ts +0 -8
- package/lib/components/CaseView/CaseView.d.ts.map +0 -1
- package/lib/components/CaseView/CaseView.js +0 -421
- package/lib/components/CaseView/CaseView.js.map +0 -1
- package/lib/components/CaseView/CaseView.styles.d.ts +0 -45
- package/lib/components/CaseView/CaseView.styles.d.ts.map +0 -1
- package/lib/components/CaseView/CaseView.styles.js +0 -559
- package/lib/components/CaseView/CaseView.styles.js.map +0 -1
- package/lib/components/CaseView/CaseView.test-ids.d.ts +0 -2
- package/lib/components/CaseView/CaseView.test-ids.d.ts.map +0 -1
- package/lib/components/CaseView/CaseView.test-ids.js +0 -18
- package/lib/components/CaseView/CaseView.test-ids.js.map +0 -1
- package/lib/components/CaseView/CaseView.types.d.ts +0 -98
- package/lib/components/CaseView/CaseView.types.d.ts.map +0 -1
- package/lib/components/CaseView/CaseView.types.js +0 -2
- package/lib/components/CaseView/CaseView.types.js.map +0 -1
- package/lib/components/CaseView/UtilitiesSummary.d.ts +0 -9
- package/lib/components/CaseView/UtilitiesSummary.d.ts.map +0 -1
- package/lib/components/CaseView/UtilitiesSummary.js +0 -53
- package/lib/components/CaseView/UtilitiesSummary.js.map +0 -1
- package/lib/components/CaseView/UtilitySummaryItemDialog.d.ts +0 -9
- package/lib/components/CaseView/UtilitySummaryItemDialog.d.ts.map +0 -1
- package/lib/components/CaseView/UtilitySummaryItemDialog.js +0 -29
- package/lib/components/CaseView/UtilitySummaryItemDialog.js.map +0 -1
- package/lib/components/CaseView/index.d.ts +0 -5
- package/lib/components/CaseView/index.d.ts.map +0 -1
- package/lib/components/CaseView/index.js +0 -4
- package/lib/components/CaseView/index.js.map +0 -1
- package/lib/components/ConfigurableLayout/ConfigurableLayout.d.ts +0 -4
- package/lib/components/ConfigurableLayout/ConfigurableLayout.d.ts.map +0 -1
- package/lib/components/ConfigurableLayout/ConfigurableLayout.js +0 -86
- package/lib/components/ConfigurableLayout/ConfigurableLayout.js.map +0 -1
- package/lib/components/ConfigurableLayout/ConfigurableLayout.types.d.ts +0 -41
- package/lib/components/ConfigurableLayout/ConfigurableLayout.types.d.ts.map +0 -1
- package/lib/components/ConfigurableLayout/ConfigurableLayout.types.js +0 -2
- package/lib/components/ConfigurableLayout/ConfigurableLayout.types.js.map +0 -1
- package/lib/components/ConfigurableLayout/LayoutCell.d.ts +0 -6
- package/lib/components/ConfigurableLayout/LayoutCell.d.ts.map +0 -1
- package/lib/components/ConfigurableLayout/LayoutCell.js +0 -64
- package/lib/components/ConfigurableLayout/LayoutCell.js.map +0 -1
- package/lib/components/ConfigurableLayout/defaults.d.ts +0 -4
- package/lib/components/ConfigurableLayout/defaults.d.ts.map +0 -1
- package/lib/components/ConfigurableLayout/defaults.js +0 -4
- package/lib/components/ConfigurableLayout/defaults.js.map +0 -1
- package/lib/components/ConfigurableLayout/index.d.ts +0 -4
- package/lib/components/ConfigurableLayout/index.d.ts.map +0 -1
- package/lib/components/ConfigurableLayout/index.js +0 -3
- package/lib/components/ConfigurableLayout/index.js.map +0 -1
- package/lib/components/ConfigurableLayout/options.d.ts +0 -10
- package/lib/components/ConfigurableLayout/options.d.ts.map +0 -1
- package/lib/components/ConfigurableLayout/options.js +0 -10
- package/lib/components/ConfigurableLayout/options.js.map +0 -1
- package/lib/components/ConfigurableLayout/useTrackWrappedRegions.d.ts +0 -7
- package/lib/components/ConfigurableLayout/useTrackWrappedRegions.d.ts.map +0 -1
- package/lib/components/ConfigurableLayout/useTrackWrappedRegions.js +0 -37
- package/lib/components/ConfigurableLayout/useTrackWrappedRegions.js.map +0 -1
- package/lib/components/Confirmation/Confirmation.d.ts +0 -19
- package/lib/components/Confirmation/Confirmation.d.ts.map +0 -1
- package/lib/components/Confirmation/Confirmation.js +0 -29
- package/lib/components/Confirmation/Confirmation.js.map +0 -1
- package/lib/components/Confirmation/index.d.ts +0 -3
- package/lib/components/Confirmation/index.d.ts.map +0 -1
- package/lib/components/Confirmation/index.js +0 -2
- package/lib/components/Confirmation/index.js.map +0 -1
- package/lib/components/Details/Details.d.ts +0 -38
- package/lib/components/Details/Details.d.ts.map +0 -1
- package/lib/components/Details/Details.js +0 -92
- package/lib/components/Details/Details.js.map +0 -1
- package/lib/components/Details/Details.styles.d.ts +0 -50
- package/lib/components/Details/Details.styles.d.ts.map +0 -1
- package/lib/components/Details/Details.styles.js +0 -204
- package/lib/components/Details/Details.styles.js.map +0 -1
- package/lib/components/Details/Details.test-ids.d.ts +0 -2
- package/lib/components/Details/Details.test-ids.d.ts.map +0 -1
- package/lib/components/Details/Details.test-ids.js +0 -9
- package/lib/components/Details/Details.test-ids.js.map +0 -1
- package/lib/components/Details/DetailsContext.d.ts +0 -9
- package/lib/components/Details/DetailsContext.d.ts.map +0 -1
- package/lib/components/Details/DetailsContext.js +0 -9
- package/lib/components/Details/DetailsContext.js.map +0 -1
- package/lib/components/Details/index.d.ts +0 -4
- package/lib/components/Details/index.d.ts.map +0 -1
- package/lib/components/Details/index.js +0 -4
- package/lib/components/Details/index.js.map +0 -1
- package/lib/components/Glimpse/Glimpse.d.ts +0 -20
- package/lib/components/Glimpse/Glimpse.d.ts.map +0 -1
- package/lib/components/Glimpse/Glimpse.js +0 -12
- package/lib/components/Glimpse/Glimpse.js.map +0 -1
- package/lib/components/Glimpse/index.d.ts +0 -3
- package/lib/components/Glimpse/index.d.ts.map +0 -1
- package/lib/components/Glimpse/index.js +0 -2
- package/lib/components/Glimpse/index.js.map +0 -1
- package/lib/components/IntelligentGuidance/IntelligentGuidance.d.ts +0 -6
- package/lib/components/IntelligentGuidance/IntelligentGuidance.d.ts.map +0 -1
- package/lib/components/IntelligentGuidance/IntelligentGuidance.js +0 -83
- package/lib/components/IntelligentGuidance/IntelligentGuidance.js.map +0 -1
- package/lib/components/IntelligentGuidance/IntelligentGuidance.styles.d.ts +0 -9
- package/lib/components/IntelligentGuidance/IntelligentGuidance.styles.d.ts.map +0 -1
- package/lib/components/IntelligentGuidance/IntelligentGuidance.styles.js +0 -199
- package/lib/components/IntelligentGuidance/IntelligentGuidance.styles.js.map +0 -1
- package/lib/components/IntelligentGuidance/IntelligentGuidance.types.d.ts +0 -35
- package/lib/components/IntelligentGuidance/IntelligentGuidance.types.d.ts.map +0 -1
- package/lib/components/IntelligentGuidance/IntelligentGuidance.types.js +0 -2
- package/lib/components/IntelligentGuidance/IntelligentGuidance.types.js.map +0 -1
- package/lib/components/IntelligentGuidance/index.d.ts +0 -3
- package/lib/components/IntelligentGuidance/index.d.ts.map +0 -1
- package/lib/components/IntelligentGuidance/index.js +0 -2
- package/lib/components/IntelligentGuidance/index.js.map +0 -1
- package/lib/components/Predictions/Predictions.d.ts +0 -6
- package/lib/components/Predictions/Predictions.d.ts.map +0 -1
- package/lib/components/Predictions/Predictions.js +0 -68
- package/lib/components/Predictions/Predictions.js.map +0 -1
- package/lib/components/Predictions/Predictions.types.d.ts +0 -23
- package/lib/components/Predictions/Predictions.types.d.ts.map +0 -1
- package/lib/components/Predictions/Predictions.types.js +0 -2
- package/lib/components/Predictions/Predictions.types.js.map +0 -1
- package/lib/components/Predictions/index.d.ts +0 -3
- package/lib/components/Predictions/index.d.ts.map +0 -1
- package/lib/components/Predictions/index.js +0 -2
- package/lib/components/Predictions/index.js.map +0 -1
- package/lib/components/SearchResults/Filter.d.ts +0 -8
- package/lib/components/SearchResults/Filter.d.ts.map +0 -1
- package/lib/components/SearchResults/Filter.js +0 -45
- package/lib/components/SearchResults/Filter.js.map +0 -1
- package/lib/components/SearchResults/SearchResult.d.ts +0 -4
- package/lib/components/SearchResults/SearchResult.d.ts.map +0 -1
- package/lib/components/SearchResults/SearchResult.js +0 -27
- package/lib/components/SearchResults/SearchResult.js.map +0 -1
- package/lib/components/SearchResults/SearchResults.d.ts +0 -6
- package/lib/components/SearchResults/SearchResults.d.ts.map +0 -1
- package/lib/components/SearchResults/SearchResults.js +0 -121
- package/lib/components/SearchResults/SearchResults.js.map +0 -1
- package/lib/components/SearchResults/SearchResults.styles.d.ts +0 -11
- package/lib/components/SearchResults/SearchResults.styles.d.ts.map +0 -1
- package/lib/components/SearchResults/SearchResults.styles.js +0 -88
- package/lib/components/SearchResults/SearchResults.styles.js.map +0 -1
- package/lib/components/SearchResults/SearchResults.types.d.ts +0 -100
- package/lib/components/SearchResults/SearchResults.types.d.ts.map +0 -1
- package/lib/components/SearchResults/SearchResults.types.js +0 -2
- package/lib/components/SearchResults/SearchResults.types.js.map +0 -1
- package/lib/components/SearchResults/index.d.ts +0 -3
- package/lib/components/SearchResults/index.d.ts.map +0 -1
- package/lib/components/SearchResults/index.js +0 -2
- package/lib/components/SearchResults/index.js.map +0 -1
- package/lib/components/Stages/StageGlimpse.d.ts +0 -8
- package/lib/components/Stages/StageGlimpse.d.ts.map +0 -1
- package/lib/components/Stages/StageGlimpse.js +0 -11
- package/lib/components/Stages/StageGlimpse.js.map +0 -1
- package/lib/components/Stages/Stages.d.ts +0 -6
- package/lib/components/Stages/Stages.d.ts.map +0 -1
- package/lib/components/Stages/Stages.js +0 -107
- package/lib/components/Stages/Stages.js.map +0 -1
- package/lib/components/Stages/Stages.styles.d.ts +0 -14
- package/lib/components/Stages/Stages.styles.d.ts.map +0 -1
- package/lib/components/Stages/Stages.styles.js +0 -270
- package/lib/components/Stages/Stages.styles.js.map +0 -1
- package/lib/components/Stages/Stages.types.d.ts +0 -38
- package/lib/components/Stages/Stages.types.d.ts.map +0 -1
- package/lib/components/Stages/Stages.types.js +0 -2
- package/lib/components/Stages/Stages.types.js.map +0 -1
- package/lib/components/Stages/index.d.ts +0 -3
- package/lib/components/Stages/index.d.ts.map +0 -1
- package/lib/components/Stages/index.js +0 -2
- package/lib/components/Stages/index.js.map +0 -1
- package/lib/components/Stakeholders/StakeholderForm.d.ts +0 -7
- package/lib/components/Stakeholders/StakeholderForm.d.ts.map +0 -1
- package/lib/components/Stakeholders/StakeholderForm.js +0 -49
- package/lib/components/Stakeholders/StakeholderForm.js.map +0 -1
- package/lib/components/Stakeholders/Stakeholders.d.ts +0 -6
- package/lib/components/Stakeholders/Stakeholders.d.ts.map +0 -1
- package/lib/components/Stakeholders/Stakeholders.js +0 -220
- package/lib/components/Stakeholders/Stakeholders.js.map +0 -1
- package/lib/components/Stakeholders/Stakeholders.types.d.ts +0 -75
- package/lib/components/Stakeholders/Stakeholders.types.d.ts.map +0 -1
- package/lib/components/Stakeholders/Stakeholders.types.js +0 -2
- package/lib/components/Stakeholders/Stakeholders.types.js.map +0 -1
- package/lib/components/Stakeholders/index.d.ts +0 -3
- package/lib/components/Stakeholders/index.d.ts.map +0 -1
- package/lib/components/Stakeholders/index.js +0 -2
- package/lib/components/Stakeholders/index.js.map +0 -1
- package/lib/components/Tags/Tags.d.ts +0 -34
- package/lib/components/Tags/Tags.d.ts.map +0 -1
- package/lib/components/Tags/Tags.js +0 -230
- package/lib/components/Tags/Tags.js.map +0 -1
- package/lib/components/Tags/index.d.ts +0 -3
- package/lib/components/Tags/index.d.ts.map +0 -1
- package/lib/components/Tags/index.js +0 -2
- package/lib/components/Tags/index.js.map +0 -1
- package/lib/components/Tasks/TaskList.d.ts +0 -39
- package/lib/components/Tasks/TaskList.d.ts.map +0 -1
- package/lib/components/Tasks/TaskList.js +0 -71
- package/lib/components/Tasks/TaskList.js.map +0 -1
- package/lib/components/Tasks/Tasks.d.ts +0 -29
- package/lib/components/Tasks/Tasks.d.ts.map +0 -1
- package/lib/components/Tasks/Tasks.js +0 -52
- package/lib/components/Tasks/Tasks.js.map +0 -1
- package/lib/components/Tasks/Tasks.test-ids.d.ts +0 -4
- package/lib/components/Tasks/Tasks.test-ids.d.ts.map +0 -1
- package/lib/components/Tasks/Tasks.test-ids.js +0 -5
- package/lib/components/Tasks/Tasks.test-ids.js.map +0 -1
- package/lib/components/Tasks/index.d.ts +0 -4
- package/lib/components/Tasks/index.d.ts.map +0 -1
- package/lib/components/Tasks/index.js +0 -4
- package/lib/components/Tasks/index.js.map +0 -1
- package/lib/components/Timeline/Timeline.d.ts +0 -6
- package/lib/components/Timeline/Timeline.d.ts.map +0 -1
- package/lib/components/Timeline/Timeline.js +0 -26
- package/lib/components/Timeline/Timeline.js.map +0 -1
- package/lib/components/Timeline/Timeline.styles.d.ts +0 -21
- package/lib/components/Timeline/Timeline.styles.d.ts.map +0 -1
- package/lib/components/Timeline/Timeline.styles.js +0 -165
- package/lib/components/Timeline/Timeline.styles.js.map +0 -1
- package/lib/components/Timeline/Timeline.types.d.ts +0 -66
- package/lib/components/Timeline/Timeline.types.d.ts.map +0 -1
- package/lib/components/Timeline/Timeline.types.js +0 -2
- package/lib/components/Timeline/Timeline.types.js.map +0 -1
- package/lib/components/Timeline/TimelineItem.d.ts +0 -13
- package/lib/components/Timeline/TimelineItem.d.ts.map +0 -1
- package/lib/components/Timeline/TimelineItem.js +0 -33
- package/lib/components/Timeline/TimelineItem.js.map +0 -1
- package/lib/components/Timeline/TimelineToolbar.d.ts +0 -6
- package/lib/components/Timeline/TimelineToolbar.d.ts.map +0 -1
- package/lib/components/Timeline/TimelineToolbar.js +0 -68
- package/lib/components/Timeline/TimelineToolbar.js.map +0 -1
- package/lib/components/Timeline/index.d.ts +0 -4
- package/lib/components/Timeline/index.d.ts.map +0 -1
- package/lib/components/Timeline/index.js +0 -3
- package/lib/components/Timeline/index.js.map +0 -1
- package/lib/components/Timeline/utils.d.ts +0 -15
- package/lib/components/Timeline/utils.d.ts.map +0 -1
- package/lib/components/Timeline/utils.js +0 -75
- package/lib/components/Timeline/utils.js.map +0 -1
- package/lib/index.d.ts +0 -37
- package/lib/index.d.ts.map +0 -1
- package/lib/index.js +0 -38
- package/lib/index.js.map +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Summary.js","sourceRoot":"","sources":["../../../../src/components/CaseView/CaseHeader/Summary.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAa,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAE/D,OAAO,EACL,IAAI,EACJ,OAAO,EACP,YAAY,EACZ,uBAAuB,EACvB,WAAW,EACX,eAAe,EACf,YAAY,EACZ,yBAAyB,EACzB,OAAO,EACR,MAAM,yBAAyB,CAAC;AACjC,OAAO,KAAK,UAAU,MAAM,+DAA+D,CAAC;AAC5F,OAAO,KAAK,QAAQ,MAAM,6DAA6D,CAAC;AAExF,OAAO,EACL,mBAAmB,EACnB,wBAAwB,EACxB,wBAAwB,EACzB,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAAE,kBAAkB,EAAE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AAc,CAAC,OAAO,CAAC,YAAY,CAAC,OAAO,EAAE,EAAE,GAAG,EAAE,YAAY,EAAE,CAAC,CAAC;SACrE;QAED,OAAO,GAAG,EAAE;YACV,cAAc,CAAC,UAAU,EAAE,CAAC;QAC9B,CAAC,CAAC;IACJ,CAAC,EAAE,CAAC,sBAAsB,CAAC,CAAC,CAAC;IAE7B,OAAO,CACL,KAAC,IAAI,IACH,EAAE,EAAE,wBAAwB,EAC5B,IAAI,EAAE,EAAE,IAAI,EAAE,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,EAC5B,SAAS,EAAE,EAAE,GAAG,EAAE,CAAC,GAAG,EAAE,CAAC,CAAC,EAAE,UAAU,EAAE,QAAQ,EAAE,EAClD,GAAG,EAAE,YAAY,EACjB,QAAQ,EAAE,YAAY,GAAG,CAAC,YAE1B,KAAC,IAAI,IAAC,EAAE,EAAE,mBAAmB,EAAE,SAAS,EAAE,EAAE,GAAG,EAAE,CAAC,EAAE,EAAE,GAAG,EAAE,OAAO,YAC/D,KAAK,CAAC,KAAK,CAAC,CAAC,EAAE,YAAY,CAAC,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,KAAK,EAAE,EAAE;gBAChD,OAAO,CACL,KAAC,KAAK,IACJ,IAAI,EAAE,IAAI,EACV,OAAO,EAAE,CAAC,CAAC,YAAY,EAAE,MAAM,IAAI,KAAK,GAAG,YAAY,CAAC,MAAM,EAC9D,QAAQ,EAAE,CAAC,CAAC,gBAAgB,EAAE,QAAQ,CAAC,KAAK,CAAC,IACxC,IAAI,CAAC,IAAI,CACd,CACH,CAAC;YACJ,CAAC,CAAC,GACG,GACF,CACR,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,OAAO,CAAC","sourcesContent":["import { RefObject, useEffect, useRef, useState } from 'react';\n\nimport {\n Flex,\n getEdge,\n registerIcon,\n StyledStackedFieldValue,\n StyledLabel,\n StyledFieldName,\n useDirection,\n useChToPxConversionFactor,\n NoValue\n} from '@pega/cosmos-react-core';\nimport * as pencilIcon from '@pega/cosmos-react-core/lib/components/Icon/icons/pencil.icon';\nimport * as moreIcon from '@pega/cosmos-react-core/lib/components/Icon/icons/more.icon';\n\nimport {\n StyledHeaderSummary,\n StyledHeaderSummaryValue,\n StyledHeaderSummaryBlock\n} from '../CaseView.styles';\nimport { useCaseViewContext } from '../CaseView.context';\nimport { SummaryField } from '../CaseView.types';\n\nregisterIcon(pencilIcon, moreIcon);\n\nconst Field = ({\n item,\n primary,\n truncate\n}: {\n item: SummaryField;\n primary: boolean;\n truncate: boolean;\n}) => {\n const { name, value, simpleValue } = item;\n const displayValue = simpleValue ?? value ?? <NoValue />;\n\n return (\n <StyledStackedFieldValue>\n <StyledLabel as={StyledFieldName}>{name}</StyledLabel>\n <StyledHeaderSummaryValue bold={primary} truncate={truncate}>\n {displayValue}\n </StyledHeaderSummaryValue>\n </StyledStackedFieldValue>\n );\n};\n\nconst Summary = ({ siblingRef }: { siblingRef: RefObject<HTMLDivElement> }) => {\n const { ltr } = useDirection();\n const { summaryFields } = useCaseViewContext();\n const chToPxConversionFactor = useChToPxConversionFactor();\n\n const containerRef = useRef<HTMLDivElement>(null);\n const listRef = useRef<HTMLDListElement>(null);\n\n const primaryItems = summaryFields?.primary ?? [];\n const secondaryItems = summaryFields?.secondary ?? [];\n const items = [...primaryItems, ...secondaryItems];\n\n const [displayCount, setDisplayCount] = useState(items.length);\n const [truncatedIndices, setTruncatedIndices] = useState<number[] | undefined>(\n items.map((_, i) => i)\n );\n\n const priorTrailingEdgeStack = useRef<number[]>([]);\n const priorAvailableSpace = useRef<number | null>(null);\n\n const evalItemAddition = ({\n nextSiblingLeadingEdge\n }: {\n nextSiblingLeadingEdge: number;\n }): {\n indicesToTruncate: number[];\n nextDisplayCount: number;\n } => {\n const indicesToTruncate: number[] = truncatedIndices ? [...truncatedIndices] : [];\n let nextDisplayCount = displayCount;\n\n const reversedTrailingEdgeStack = [...priorTrailingEdgeStack.current].reverse();\n for (let i = 0; i < reversedTrailingEdgeStack.length; i += 1) {\n const priorEdge = reversedTrailingEdgeStack[i];\n\n const shouldRender = ltr\n ? priorEdge < nextSiblingLeadingEdge\n : priorEdge > nextSiblingLeadingEdge;\n\n if (shouldRender) {\n priorTrailingEdgeStack.current.pop();\n\n if (!indicesToTruncate.includes(nextDisplayCount)) {\n indicesToTruncate.push(nextDisplayCount);\n }\n\n nextDisplayCount += 1;\n } else {\n break;\n }\n }\n\n return { indicesToTruncate, nextDisplayCount };\n };\n\n const evalTruncationReduction = ({\n listChildren,\n availableSpace\n }: {\n listChildren: Element[];\n availableSpace: number;\n }): {\n indicesToTruncate: number[];\n } => {\n const indicesToTruncate: number[] = [];\n let hasAvailableSpace = availableSpace;\n\n listChildren.forEach((item, index) => {\n const valueEl = item.lastChild as HTMLElement;\n const truncatedSpace = Math.floor(valueEl.scrollWidth - valueEl.offsetWidth);\n const shouldTruncate = truncatedSpace === 0 ? false : hasAvailableSpace - truncatedSpace <= 0;\n\n if (shouldTruncate) {\n if (!truncatedIndices?.includes(index)) {\n hasAvailableSpace += truncatedSpace;\n }\n\n indicesToTruncate.push(index);\n } else if (truncatedIndices?.includes(index)) {\n hasAvailableSpace -= truncatedSpace;\n }\n });\n\n return { indicesToTruncate };\n };\n\n const evalTruncationIncrease = ({\n listChildren,\n availableSpace\n }: {\n listChildren: Element[];\n availableSpace: number;\n }): {\n indicesToTruncate: number[];\n availableSpace: number;\n } => {\n const indicesToTruncate: number[] = [];\n const lastIndex = listChildren.length - 1;\n let hasAvailableSpace = availableSpace;\n\n [...listChildren].reverse().forEach((item, index) => {\n if (truncatedIndices?.includes(lastIndex - index)) {\n indicesToTruncate.push(lastIndex - index);\n } else if (hasAvailableSpace < 0) {\n const truncatedElMaxWidth = 20 * chToPxConversionFactor;\n const valueEl = item.lastChild as HTMLElement;\n const spaceToTruncate = Math.max(Math.floor(valueEl.offsetWidth - truncatedElMaxWidth), 0);\n\n if (spaceToTruncate) {\n indicesToTruncate.push(lastIndex - index);\n hasAvailableSpace += spaceToTruncate;\n }\n }\n });\n\n return { indicesToTruncate, availableSpace: hasAvailableSpace };\n };\n\n const evalItemRemoval = ({\n listChildren,\n availableSpace,\n nextSiblingLeadingEdge\n }: {\n listChildren: Element[];\n availableSpace: number;\n nextSiblingLeadingEdge: number;\n }): { displayCount: number } => {\n let nextDisplayCount = displayCount;\n let hasAvailableSpace = availableSpace;\n let lastChildIndex = listChildren.length - 1;\n\n do {\n const itemTrailingEdge = getEdge({\n el: listChildren[lastChildIndex],\n side: 'trailing',\n ltr\n });\n hasAvailableSpace = Math.floor(\n ltr ? nextSiblingLeadingEdge - itemTrailingEdge : itemTrailingEdge - nextSiblingLeadingEdge\n );\n\n if (hasAvailableSpace < 0) {\n priorTrailingEdgeStack.current = [...priorTrailingEdgeStack.current, itemTrailingEdge];\n\n nextDisplayCount -= 1;\n lastChildIndex -= 1;\n }\n } while (hasAvailableSpace < 0 && lastChildIndex > -1);\n\n return { displayCount: nextDisplayCount };\n };\n\n const evaluateSummaryDisplay = () => {\n const containerEl = containerRef.current;\n if (!containerEl) return;\n\n const listChildren = Array.from(listRef.current?.children ?? []);\n const lastSummaryItem = listChildren.length ? listChildren[listChildren.length - 1] : undefined;\n const nextSibling = siblingRef?.current ?? document.body;\n const nextSiblingLeadingEdge = getEdge({\n el: nextSibling,\n side: 'leading',\n ltr\n });\n const testEdge = lastSummaryItem\n ? getEdge({ el: lastSummaryItem, side: 'trailing', ltr })\n : getEdge({ el: containerEl, side: 'leading', ltr });\n let availableSpace = Math.floor(\n ltr ? nextSiblingLeadingEdge - testEdge : testEdge - nextSiblingLeadingEdge\n );\n if (availableSpace === priorAvailableSpace.current) return;\n\n priorAvailableSpace.current = availableSpace;\n\n let indicesToTruncate: number[] | undefined;\n let nextDisplayCount = displayCount;\n\n if (availableSpace >= 0) {\n if (displayCount !== items.length) {\n const additionsConfig = evalItemAddition({ nextSiblingLeadingEdge });\n\n indicesToTruncate = additionsConfig.indicesToTruncate;\n nextDisplayCount = additionsConfig.nextDisplayCount;\n } else if (truncatedIndices?.length) {\n const truncationConfig = evalTruncationReduction({\n listChildren,\n availableSpace\n });\n\n indicesToTruncate = truncationConfig.indicesToTruncate;\n }\n } else if (listChildren) {\n const truncationConfig = evalTruncationIncrease({\n listChildren,\n availableSpace\n });\n\n indicesToTruncate = truncationConfig.indicesToTruncate;\n availableSpace = truncationConfig.availableSpace;\n\n if (availableSpace < 0) {\n const removalConfig = evalItemRemoval({\n listChildren,\n availableSpace,\n nextSiblingLeadingEdge\n });\n\n nextDisplayCount = removalConfig.displayCount;\n }\n }\n\n setDisplayCount(nextDisplayCount);\n\n if (indicesToTruncate) {\n setTruncatedIndices(indicesToTruncate);\n }\n };\n\n // Initial display evaluation\n useEffect(() => {\n evaluateSummaryDisplay();\n }, []);\n\n // Overflow resize observer\n useEffect(() => {\n const resizeObserver = new ResizeObserver(evaluateSummaryDisplay);\n\n if (containerRef.current) {\n resizeObserver.observe(containerRef.current, { box: 'border-box' });\n }\n\n return () => {\n resizeObserver.disconnect();\n };\n }, [evaluateSummaryDisplay]);\n\n return (\n <Flex\n as={StyledHeaderSummaryBlock}\n item={{ grow: 1, shrink: 1 }}\n container={{ pad: [0.5, 0], alignItems: 'center' }}\n ref={containerRef}\n hasItems={displayCount > 0}\n >\n <Flex as={StyledHeaderSummary} container={{ gap: 4 }} ref={listRef}>\n {items.slice(0, displayCount).map((item, index) => {\n return (\n <Field\n item={item}\n primary={!!primaryItems?.length && index < primaryItems.length}\n truncate={!!truncatedIndices?.includes(index)}\n key={item.name}\n />\n );\n })}\n </Flex>\n </Flex>\n );\n};\n\nexport default Summary;\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"CaseSummary.d.ts","sourceRoot":"","sources":["../../../src/components/CaseView/CaseSummary.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,EAAE,EAAW,MAAM,OAAO,CAAC;AAgBpC,QAAA,MAAM,WAAW,EAAE,EA6BlB,CAAC;AAEF,eAAe,WAAW,CAAC"}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { useMemo } from 'react';
|
|
3
|
-
import { Flex, Tabs, registerIcon } from '@pega/cosmos-react-core';
|
|
4
|
-
import * as arrowMicroLeftIcon from '@pega/cosmos-react-core/lib/components/Icon/icons/arrow-micro-left.icon';
|
|
5
|
-
import CaseHeader from './CaseHeader/CaseHeader';
|
|
6
|
-
import { StyledCaseSummary, StyledCaseSummaryInfo, StyledCaseSummaryContainer } from './CaseView.styles';
|
|
7
|
-
import { useCaseViewContext } from './CaseView.context';
|
|
8
|
-
import CaseSummaryFields from './CaseSummaryFields';
|
|
9
|
-
registerIcon(arrowMicroLeftIcon);
|
|
10
|
-
const CaseSummary = () => {
|
|
11
|
-
const { testIds, summaryFields, summaryExpanded, tabs, aboveMD, isPreview } = useCaseViewContext();
|
|
12
|
-
const summary = useMemo(() => {
|
|
13
|
-
return _jsx(CaseSummaryFields, { ...summaryFields, inSummaryPanel: true });
|
|
14
|
-
}, [summaryFields]);
|
|
15
|
-
return (_jsxs(Flex, { as: StyledCaseSummary, container: { direction: 'column' }, item: { shrink: 0 }, children: [_jsx(CaseHeader, {}), aboveMD && !isPreview && summaryExpanded && (summary || tabs.items.length > 1) && (_jsxs(StyledCaseSummaryInfo, { children: [_jsx(StyledCaseSummaryContainer, { children: summary }), tabs.items.length > 1 && (_jsx(Tabs, { "data-testid": testIds.tabs, type: 'vertical', tabs: tabs.items, onTabClick: tabs.onClick, currentTabId: tabs.currentTabId }))] }))] }));
|
|
16
|
-
};
|
|
17
|
-
export default CaseSummary;
|
|
18
|
-
//# sourceMappingURL=CaseSummary.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"CaseSummary.js","sourceRoot":"","sources":["../../../src/components/CaseView/CaseSummary.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAM,OAAO,EAAE,MAAM,OAAO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AE,IAAI,CAAC,OAAO,EACxB,YAAY,EAAE,IAAI,CAAC,YAAY,GAC/B,CACH,IACqB,CACzB,IACI,CACR,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,WAAW,CAAC","sourcesContent":["import { FC, useMemo } from 'react';\n\nimport { Flex, Tabs, registerIcon } from '@pega/cosmos-react-core';\nimport * as arrowMicroLeftIcon from '@pega/cosmos-react-core/lib/components/Icon/icons/arrow-micro-left.icon';\n\nimport CaseHeader from './CaseHeader/CaseHeader';\nimport {\n StyledCaseSummary,\n StyledCaseSummaryInfo,\n StyledCaseSummaryContainer\n} from './CaseView.styles';\nimport { useCaseViewContext } from './CaseView.context';\nimport CaseSummaryFields from './CaseSummaryFields';\n\nregisterIcon(arrowMicroLeftIcon);\n\nconst CaseSummary: FC = () => {\n const { testIds, summaryFields, summaryExpanded, tabs, aboveMD, isPreview } =\n useCaseViewContext();\n\n const summary = useMemo(() => {\n return <CaseSummaryFields {...summaryFields} inSummaryPanel />;\n }, [summaryFields]);\n\n return (\n <Flex as={StyledCaseSummary} container={{ direction: 'column' }} item={{ shrink: 0 }}>\n <CaseHeader />\n\n {aboveMD && !isPreview && summaryExpanded && (summary || tabs.items.length > 1) && (\n <StyledCaseSummaryInfo>\n <StyledCaseSummaryContainer>{summary}</StyledCaseSummaryContainer>\n\n {tabs.items.length > 1 && (\n <Tabs\n data-testid={testIds.tabs}\n type='vertical'\n tabs={tabs.items}\n onTabClick={tabs.onClick}\n currentTabId={tabs.currentTabId}\n />\n )}\n </StyledCaseSummaryInfo>\n )}\n </Flex>\n );\n};\n\nexport default CaseSummary;\n"]}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { FC } from 'react';
|
|
2
|
-
import { ForwardProps } from '@pega/cosmos-react-core';
|
|
3
|
-
import { CaseSummaryFieldsProps } from './CaseView.types';
|
|
4
|
-
declare const CaseSummaryFields: FC<CaseSummaryFieldsProps & ForwardProps>;
|
|
5
|
-
export default CaseSummaryFields;
|
|
6
|
-
//# sourceMappingURL=CaseSummaryFields.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"CaseSummaryFields.d.ts","sourceRoot":"","sources":["../../../src/components/CaseView/CaseSummaryFields.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,EAAE,EAA2B,MAAM,OAAO,CAAC;AAEpD,OAAO,EAAQ,YAAY,EAA0B,MAAM,yBAAyB,CAAC;AAOrF,OAAO,EAAE,sBAAsB,EAAE,MAAM,kBAAkB,CAAC;AAG1D,QAAA,MAAM,iBAAiB,EAAE,EAAE,CAAC,sBAAsB,GAAG,YAAY,CAsChE,CAAC;AAEF,eAAe,iBAAiB,CAAC"}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { useRef } from 'react';
|
|
3
|
-
import { Grid, useI18n, useBreakpoint } from '@pega/cosmos-react-core';
|
|
4
|
-
import { StyledCaseSummaryFields, StyledSummaryPrimaryList, StyledSummarySecondaryList } from './CaseView.styles';
|
|
5
|
-
import { useCaseViewContext } from './CaseView.context';
|
|
6
|
-
const CaseSummaryFields = ({ primary, secondary, inSummaryPanel }) => {
|
|
7
|
-
const t = useI18n();
|
|
8
|
-
const { testIds } = useCaseViewContext();
|
|
9
|
-
const containerRef = useRef(null);
|
|
10
|
-
const isSMContentWidthOrAbove = useBreakpoint('sm', {
|
|
11
|
-
breakpointRef: containerRef,
|
|
12
|
-
themeProp: 'content-width'
|
|
13
|
-
});
|
|
14
|
-
const wrapped = !inSummaryPanel && !isSMContentWidthOrAbove;
|
|
15
|
-
return (_jsxs(Grid, { "data-testid": testIds.summaryFields, as: StyledCaseSummaryFields, container: { rowGap: 2 }, ref: containerRef, children: [primary && (_jsx(StyledSummaryPrimaryList, { variant: 'stacked', fields: primary, "aria-label": t('primary_summary_fields'), wrapped: wrapped })), secondary && (_jsx(StyledSummarySecondaryList, { variant: wrapped ? 'stacked' : 'inline', fields: secondary, "aria-label": t('summary_fields') }))] }));
|
|
16
|
-
};
|
|
17
|
-
export default CaseSummaryFields;
|
|
18
|
-
//# sourceMappingURL=CaseSummaryFields.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"CaseSummaryFields.js","sourceRoot":"","sources":["../../../src/components/CaseView/CaseSummaryFields.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAuB,MAAM,EAAE,MAAM,OAAO,CAAC;AAEpD,OAAO,EAAE,IAAI,EAAgB,OAAO,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAErF,OAAO,EACL,uBAAuB,EACvB,wBAAwB,EACxB,0BAA0B,EAC3B,MAAM,mBAAmB,CAAC;AAE3B,OAAO,EAAE,kBAAkB,EAAE,MAAM,oBAAoB,CAAC;AAExD,MAAM,iBAAiB,GAA8C,CAAC,EACpE,OAAO,EACP,SAAS,EACT,cAAc,EAC0B,EAAE,EAAE;IAC5C,MAAM,CAAC,GAAG,OAAO,EAAE,CAAC;IACpB,MAAM,EAAE,OAAO,EAAE,GAAG,kBAAkB,EAAE,CAAC;IACzC,MAAM,YAAY,GAAG,MAAM,CAAiB,IAAI,CAAC,CAAC;IAClD,MAAM,uBAAuB,GAAG,aAAa,CAAC,IAAI,EAAE;QAClD,aAAa,EAAE,YAAY;QAC3B,SAAS,EAAE,eAAe;KAC3B,CAAC,CAAC;IACH,MAAM,OAAO,GAAG,CAAC,cAAc,IAAI,CAAC,uBAAuB,CAAC;IAE5D,OAAO,CACL,MAAC,IAAI,mBACU,OAAO,CAAC,aAAa,EAClC,EAAE,EAAE,uBAAuB,EAC3B,SAAS,EAAE,EAAE,MAAM,EAAE,CAAC,EAAE,EACxB,GAAG,EAAE,YAAY,aAEhB,OAAO,IAAI,CACV,KAAC,wBAAwB,IACvB,OAAO,EAAC,SAAS,EACjB,MAAM,EAAE,OAAO,gBACH,CAAC,CAAC,wBAAwB,CAAC,EACvC,OAAO,EAAE,OAAO,GAChB,CACH,EACA,SAAS,IAAI,CACZ,KAAC,0BAA0B,IACzB,OAAO,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,QAAQ,EACvC,MAAM,EAAE,SAAS,gBACL,CAAC,CAAC,gBAAgB,CAAC,GAC/B,CACH,IACI,CACR,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,iBAAiB,CAAC","sourcesContent":["import { FC, PropsWithoutRef, useRef } from 'react';\n\nimport { Grid, ForwardProps, useI18n, useBreakpoint } from '@pega/cosmos-react-core';\n\nimport {\n StyledCaseSummaryFields,\n StyledSummaryPrimaryList,\n StyledSummarySecondaryList\n} from './CaseView.styles';\nimport { CaseSummaryFieldsProps } from './CaseView.types';\nimport { useCaseViewContext } from './CaseView.context';\n\nconst CaseSummaryFields: FC<CaseSummaryFieldsProps & ForwardProps> = ({\n primary,\n secondary,\n inSummaryPanel\n}: PropsWithoutRef<CaseSummaryFieldsProps>) => {\n const t = useI18n();\n const { testIds } = useCaseViewContext();\n const containerRef = useRef<HTMLDivElement>(null);\n const isSMContentWidthOrAbove = useBreakpoint('sm', {\n breakpointRef: containerRef,\n themeProp: 'content-width'\n });\n const wrapped = !inSummaryPanel && !isSMContentWidthOrAbove;\n\n return (\n <Grid\n data-testid={testIds.summaryFields}\n as={StyledCaseSummaryFields}\n container={{ rowGap: 2 }}\n ref={containerRef}\n >\n {primary && (\n <StyledSummaryPrimaryList\n variant='stacked'\n fields={primary}\n aria-label={t('primary_summary_fields')}\n wrapped={wrapped}\n />\n )}\n {secondary && (\n <StyledSummarySecondaryList\n variant={wrapped ? 'stacked' : 'inline'}\n fields={secondary}\n aria-label={t('summary_fields')}\n />\n )}\n </Grid>\n );\n};\n\nexport default CaseSummaryFields;\n"]}
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { CaseViewContextValue } from './CaseView.types';
|
|
2
|
-
declare const CaseViewContext: import("react").Context<CaseViewContextValue>;
|
|
3
|
-
export declare const useCaseViewContext: () => CaseViewContextValue;
|
|
4
|
-
export default CaseViewContext;
|
|
5
|
-
//# sourceMappingURL=CaseView.context.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"CaseView.context.d.ts","sourceRoot":"","sources":["../../../src/components/CaseView/CaseView.context.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,oBAAoB,EAAE,MAAM,kBAAkB,CAAC;AAExD,QAAA,MAAM,eAAe,+CAAkE,CAAC;AAExF,eAAO,MAAM,kBAAkB,4BAAoC,CAAC;AAEpE,eAAe,eAAe,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"CaseView.context.js","sourceRoot":"","sources":["../../../src/components/CaseView/CaseView.context.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;AAIlD,MAAM,eAAe,GAAG,aAAa,CAAuB,EAA0B,CAAC,CAAC;AAExF,MAAM,CAAC,MAAM,kBAAkB,GAAG,GAAG,EAAE,CAAC,UAAU,CAAC,eAAe,CAAC,CAAC;AAEpE,eAAe,eAAe,CAAC","sourcesContent":["import { createContext, useContext } from 'react';\n\nimport { CaseViewContextValue } from './CaseView.types';\n\nconst CaseViewContext = createContext<CaseViewContextValue>({} as CaseViewContextValue);\n\nexport const useCaseViewContext = () => useContext(CaseViewContext);\n\nexport default CaseViewContext;\n"]}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { FC } from 'react';
|
|
2
|
-
import { ForwardProps } from '@pega/cosmos-react-core';
|
|
3
|
-
import { CaseViewProps } from './CaseView.types';
|
|
4
|
-
declare const _default: FC<CaseViewProps & ForwardProps> & {
|
|
5
|
-
getTestIds: (testIdProp?: string | undefined) => import("@pega/cosmos-react-core").TestIdsRecord<readonly ["header", "heading", "subheading", "icon", "edit", "actions", "promoted-actions", "summary-fields", "banners", "stages", "tasks", "tabs", "tab-content", "utilities"]>;
|
|
6
|
-
};
|
|
7
|
-
export default _default;
|
|
8
|
-
//# sourceMappingURL=CaseView.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"CaseView.d.ts","sourceRoot":"","sources":["../../../src/components/CaseView/CaseView.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,EAAE,EAAyD,MAAM,OAAO,CAAC;AAElF,OAAO,EASL,YAAY,EAYb,MAAM,yBAAyB,CAAC;AAmBjC,OAAO,EAAwB,aAAa,EAAE,MAAM,kBAAkB,CAAC;;;;AAupBvE,wBAAyD"}
|
|
@@ -1,421 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
|
-
import { useEffect, useMemo, useRef, useLayoutEffect, useState } from 'react';
|
|
3
|
-
import { Flex, Grid, Icon, registerIcon, TabPanel, useBreakpoint, useScrollStick, useElement, Card, Drawer, useI18n, useDirection, Tabs, useAfterInitialEffect, windowIsAvailable, focusHeadingOrContainer, useConfiguration, useTestIds, withTestIds } from '@pega/cosmos-react-core';
|
|
4
|
-
import * as moveRightSolidIcon from '@pega/cosmos-react-core/lib/components/Icon/icons/move-right-solid.icon';
|
|
5
|
-
import * as moveLeftSolidIcon from '@pega/cosmos-react-core/lib/components/Icon/icons/move-left-solid.icon';
|
|
6
|
-
import CaseSummary from './CaseSummary';
|
|
7
|
-
import UtilitiesSummary from './UtilitiesSummary';
|
|
8
|
-
import { StyledCaseDrawer, StyledCaseDrawerContent, StyledCaseView, StyledWorkArea, StyledPersistentUtility, StyledSummary, StyledSummaryTabContent, StyledUtilities, StyledExpandCollapseUtilitiesButton, StyledUtilitiesHeading } from './CaseView.styles';
|
|
9
|
-
import CaseViewContext from './CaseView.context';
|
|
10
|
-
import CaseSummaryFields from './CaseSummaryFields';
|
|
11
|
-
import { getCaseViewTestIds } from './CaseView.test-ids';
|
|
12
|
-
registerIcon(moveRightSolidIcon, moveLeftSolidIcon);
|
|
13
|
-
// This function is responsible for auto sizing table height in case tab panels.
|
|
14
|
-
const resizeTable = (tabPanelEl, workAreaEl) => {
|
|
15
|
-
tabPanelEl.style.removeProperty('--content-height-in-view');
|
|
16
|
-
// .rs-wrapper is currently the class used by the table component which needs to be targeted.
|
|
17
|
-
const tables = Array.from(tabPanelEl.querySelectorAll('.rs-wrapper')).filter(table => table.getBoundingClientRect().width !== 0);
|
|
18
|
-
// Only perform this logic when there is a single table in a tab's panel.
|
|
19
|
-
if (tables.length !== 1)
|
|
20
|
-
return;
|
|
21
|
-
// This selector finds the table's root element as they are always wrapped in a Card.
|
|
22
|
-
const table = tables[0].closest('article');
|
|
23
|
-
if (!table)
|
|
24
|
-
return;
|
|
25
|
-
const tabPanelRect = tabPanelEl.getBoundingClientRect();
|
|
26
|
-
const tableRect = table.getBoundingClientRect();
|
|
27
|
-
const vpHeight = document.documentElement.clientHeight;
|
|
28
|
-
const tableRectOffsetTop = tableRect.top + window.scrollY;
|
|
29
|
-
const workAreaPaddingBlockEnd =
|
|
30
|
-
// px unit are required for proper CSS calc calculation.
|
|
31
|
-
window.getComputedStyle(workAreaEl).getPropertyValue('padding-block-end') || '0px';
|
|
32
|
-
// Accounts for content rendered after the table.
|
|
33
|
-
const tableBottomToTabPanelBottom = tabPanelRect.bottom - tableRect.bottom;
|
|
34
|
-
// Sets a CSS variable for available height based on screen size and view state.
|
|
35
|
-
// Defines an available minimum height of ~600px.
|
|
36
|
-
tabPanelEl.style.setProperty('--content-height-in-view', `max(calc(${vpHeight - tableRectOffsetTop - tableBottomToTabPanelBottom}px - ${workAreaPaddingBlockEnd}), 37.5rem)`);
|
|
37
|
-
};
|
|
38
|
-
const CaseView = ({ testId,
|
|
39
|
-
// Case data mostly visually related to the case header
|
|
40
|
-
caseId, heading, subheading, caseLink, parentCases, icon, followed, onFollowedChange, onEdit, actions, promotedActions,
|
|
41
|
-
// Summary content and state props
|
|
42
|
-
summaryFields, summaryExpanded: summaryExpandedProp = true, onToggleSummary,
|
|
43
|
-
// Case tabs
|
|
44
|
-
tabs: { currentTabId, items: tabItemsProp, onClick: onTabClick },
|
|
45
|
-
// Workarea related content props
|
|
46
|
-
banners, stages, tasks, tabContent: tabContentProp = [],
|
|
47
|
-
// Utilities content and state props
|
|
48
|
-
utilities, utilitiesSummaryItems, utilitiesExpanded: utilitiesExpandedProp = true, onToggleUtilities,
|
|
49
|
-
// Etc...
|
|
50
|
-
persistentUtility, intelligentGuidance, isPreview = false, ...restProps }) => {
|
|
51
|
-
const testIds = useTestIds(testId, getCaseViewTestIds);
|
|
52
|
-
// General util hooks
|
|
53
|
-
const t = useI18n();
|
|
54
|
-
const direction = useDirection();
|
|
55
|
-
const { loadedRef } = useConfiguration();
|
|
56
|
-
// Element refs
|
|
57
|
-
const caseViewRef = useRef(null);
|
|
58
|
-
const summaryRef = useRef(null);
|
|
59
|
-
// undefined used to allow ref to be mutable. Element set below in ref callback for scroll stick.
|
|
60
|
-
const workAreaRef = useRef();
|
|
61
|
-
const toggleButtonRef = useRef(null);
|
|
62
|
-
const isToggleButtonFocused = useRef(false);
|
|
63
|
-
// Tab content
|
|
64
|
-
const [tabContentEl, setTabContentEl] = useElement(null);
|
|
65
|
-
// Breakpoint booleans
|
|
66
|
-
const smOrAbove = useBreakpoint('sm');
|
|
67
|
-
const mdOrAbove = useBreakpoint('md', { breakpointRef: caseViewRef });
|
|
68
|
-
const lgOrAbove = useBreakpoint('lg', { breakpointRef: caseViewRef });
|
|
69
|
-
const xlOrAbove = useBreakpoint('xl', { breakpointRef: caseViewRef });
|
|
70
|
-
// DOM ids
|
|
71
|
-
const initialTabId = tabItemsProp[0]?.id;
|
|
72
|
-
const summaryTabId = `summary-${caseId}`;
|
|
73
|
-
const utilitiesTabId = `utilities-${caseId}`;
|
|
74
|
-
const persistentUtilityTabId = `persistent-utility-${caseId}`;
|
|
75
|
-
// Summary state handling
|
|
76
|
-
let summaryExpanded = !isPreview && !!summaryExpandedProp;
|
|
77
|
-
if (persistentUtility) {
|
|
78
|
-
summaryExpanded = xlOrAbove;
|
|
79
|
-
}
|
|
80
|
-
// Focus heading on initial mount
|
|
81
|
-
useEffect(() => {
|
|
82
|
-
if (!caseViewRef.current)
|
|
83
|
-
return;
|
|
84
|
-
if (loadedRef.current) {
|
|
85
|
-
focusHeadingOrContainer(caseViewRef.current, heading);
|
|
86
|
-
}
|
|
87
|
-
else {
|
|
88
|
-
loadedRef.current = true;
|
|
89
|
-
}
|
|
90
|
-
}, [caseId]);
|
|
91
|
-
// Utilities state handling
|
|
92
|
-
// Used in coordination with a layoutEffect below to determine the utilities state on initial render.
|
|
93
|
-
// Attempted with a ref but it did not work. Using state and enforcing a render in addition to the change render for lgOrAbove seems to fix...
|
|
94
|
-
const [obeyUtilitiesExpandedProp, setObeyUtilitiesExpandedProp] = useState(lgOrAbove);
|
|
95
|
-
// Allow the utilitiesExpandedProp to drive the utilities' state after the initial render
|
|
96
|
-
useLayoutEffect(() => {
|
|
97
|
-
if (lgOrAbove)
|
|
98
|
-
setObeyUtilitiesExpandedProp(true);
|
|
99
|
-
}, [lgOrAbove]);
|
|
100
|
-
// Tracks whether a resize forced the onToggleUtilities to close the utilities when it's a drawer
|
|
101
|
-
const utilitiesToggledByResize = useRef(false);
|
|
102
|
-
// If the initial render is within the MD size, where the utility drawer renders, it must begin collapsed
|
|
103
|
-
const utilitiesExpanded = obeyUtilitiesExpandedProp ? utilitiesExpandedProp : false;
|
|
104
|
-
// Handles utilities state based on breakpoint changes.
|
|
105
|
-
useAfterInitialEffect(() => {
|
|
106
|
-
// If we change into the MD breakpoint range and the utilities state is expanded call the toggle prop to collapse it with controlled state
|
|
107
|
-
if (mdOrAbove && !lgOrAbove && utilitiesExpandedProp) {
|
|
108
|
-
onToggleUtilities?.();
|
|
109
|
-
utilitiesToggledByResize.current = true;
|
|
110
|
-
}
|
|
111
|
-
if (lgOrAbove) {
|
|
112
|
-
if (utilitiesToggledByResize.current && !utilitiesExpandedProp) {
|
|
113
|
-
onToggleUtilities?.();
|
|
114
|
-
}
|
|
115
|
-
utilitiesToggledByResize.current = false;
|
|
116
|
-
}
|
|
117
|
-
// Purposely not listing utilitiesExpanded as a dependency as it is not a trigger and will be captured when BPs change
|
|
118
|
-
}, [mdOrAbove, lgOrAbove]);
|
|
119
|
-
// Handles focus of toggle button when toggled in drawer mode and when browser is resized
|
|
120
|
-
useEffect(() => {
|
|
121
|
-
if (isToggleButtonFocused.current) {
|
|
122
|
-
toggleButtonRef.current?.focus();
|
|
123
|
-
}
|
|
124
|
-
if (!toggleButtonRef.current) {
|
|
125
|
-
// Toggle button is not on DOM.
|
|
126
|
-
isToggleButtonFocused.current = false;
|
|
127
|
-
}
|
|
128
|
-
}, [utilitiesExpanded, mdOrAbove, lgOrAbove]);
|
|
129
|
-
// Prepare tabs
|
|
130
|
-
const [tabItems, tabContent] = useMemo(() => {
|
|
131
|
-
const summaryTab = { id: summaryTabId, name: t('summary') };
|
|
132
|
-
const summaryTabContent = {
|
|
133
|
-
id: summaryTabId,
|
|
134
|
-
content: (_jsx(Card, { children: _jsx(StyledSummaryTabContent, { children: _jsx(CaseSummaryFields, { ...summaryFields }) }) }))
|
|
135
|
-
};
|
|
136
|
-
let items = tabItemsProp;
|
|
137
|
-
let content = tabContentProp;
|
|
138
|
-
if (mdOrAbove) {
|
|
139
|
-
if (!summaryExpanded || (persistentUtility && !xlOrAbove)) {
|
|
140
|
-
items = [summaryTab, ...tabItemsProp];
|
|
141
|
-
content = [summaryTabContent, ...tabContentProp];
|
|
142
|
-
}
|
|
143
|
-
return [items, content];
|
|
144
|
-
}
|
|
145
|
-
const utilityTabsItems = [];
|
|
146
|
-
const utilityTabsContent = [];
|
|
147
|
-
if (utilities) {
|
|
148
|
-
utilityTabsItems.push({ id: utilitiesTabId, name: t('utilities') });
|
|
149
|
-
utilityTabsContent.push({
|
|
150
|
-
id: utilitiesTabId,
|
|
151
|
-
content: _jsx(Flex, { container: { direction: 'column', gap: 2 }, children: utilities })
|
|
152
|
-
});
|
|
153
|
-
}
|
|
154
|
-
if (persistentUtility) {
|
|
155
|
-
utilityTabsItems.push({ id: persistentUtilityTabId, name: persistentUtility.title });
|
|
156
|
-
utilityTabsContent.push({ id: persistentUtilityTabId, content: persistentUtility?.content });
|
|
157
|
-
}
|
|
158
|
-
items = [summaryTab, ...tabItemsProp, ...utilityTabsItems];
|
|
159
|
-
content = [summaryTabContent, ...tabContentProp, ...utilityTabsContent];
|
|
160
|
-
return [items, content];
|
|
161
|
-
}, [
|
|
162
|
-
tabItemsProp,
|
|
163
|
-
summaryTabId,
|
|
164
|
-
mdOrAbove,
|
|
165
|
-
summaryExpanded,
|
|
166
|
-
persistentUtility,
|
|
167
|
-
xlOrAbove,
|
|
168
|
-
tabContentProp,
|
|
169
|
-
utilities,
|
|
170
|
-
utilitiesTabId,
|
|
171
|
-
persistentUtilityTabId
|
|
172
|
-
]);
|
|
173
|
-
// Grid layout props
|
|
174
|
-
let caseViewGridContainer = {
|
|
175
|
-
cols: 'minmax(0, 1fr)',
|
|
176
|
-
colGap: 0,
|
|
177
|
-
rows: 'minmax(0, max-content) auto',
|
|
178
|
-
areas: `
|
|
179
|
-
"summary"
|
|
180
|
-
"work-area"
|
|
181
|
-
`
|
|
182
|
-
};
|
|
183
|
-
const sharedGridProps = {
|
|
184
|
-
colGap: 2,
|
|
185
|
-
rows: caseViewGridContainer.rows
|
|
186
|
-
};
|
|
187
|
-
if (persistentUtility) {
|
|
188
|
-
if (xlOrAbove) {
|
|
189
|
-
caseViewGridContainer = {
|
|
190
|
-
...sharedGridProps,
|
|
191
|
-
cols: 'minmax(0, max-content) minmax(0, 1fr) repeat(2, minmax(0, max-content))',
|
|
192
|
-
areas: '"summary work-area persistentUtility utilities"'
|
|
193
|
-
};
|
|
194
|
-
}
|
|
195
|
-
else if (mdOrAbove) {
|
|
196
|
-
caseViewGridContainer = {
|
|
197
|
-
...sharedGridProps,
|
|
198
|
-
cols: 'minmax(0, 1fr) repeat(2, minmax(0, max-content))',
|
|
199
|
-
areas: `
|
|
200
|
-
"summary summary summary"
|
|
201
|
-
"work-area persistentUtility utilities"
|
|
202
|
-
`
|
|
203
|
-
};
|
|
204
|
-
}
|
|
205
|
-
}
|
|
206
|
-
else if (summaryExpanded) {
|
|
207
|
-
if (mdOrAbove) {
|
|
208
|
-
caseViewGridContainer = {
|
|
209
|
-
...sharedGridProps,
|
|
210
|
-
cols: 'minmax(0, max-content) minmax(0, 1fr) minmax(0, max-content)',
|
|
211
|
-
areas: '"summary work-area utilities"'
|
|
212
|
-
};
|
|
213
|
-
}
|
|
214
|
-
}
|
|
215
|
-
else if (mdOrAbove) {
|
|
216
|
-
caseViewGridContainer = {
|
|
217
|
-
...sharedGridProps,
|
|
218
|
-
cols: 'minmax(0, 1fr) minmax(0, max-content)',
|
|
219
|
-
areas: `
|
|
220
|
-
"summary summary"
|
|
221
|
-
"work-area utilities"
|
|
222
|
-
`
|
|
223
|
-
};
|
|
224
|
-
}
|
|
225
|
-
// Apply sticky columns
|
|
226
|
-
const scrollStickOptions = useRef({
|
|
227
|
-
elements: []
|
|
228
|
-
});
|
|
229
|
-
const stickOffset = useMemo(() => {
|
|
230
|
-
if (windowIsAvailable && caseViewRef.current) {
|
|
231
|
-
return parseFloat(window.getComputedStyle(caseViewRef.current).getPropertyValue('--appshell-offset'));
|
|
232
|
-
}
|
|
233
|
-
return 0;
|
|
234
|
-
}, [caseViewRef.current]);
|
|
235
|
-
useScrollStick(
|
|
236
|
-
// isMediumOrAbove means side by side columns | | |
|
|
237
|
-
mdOrAbove ? { ...scrollStickOptions.current, offset: stickOffset } : undefined);
|
|
238
|
-
// Preview set summary tab active
|
|
239
|
-
useEffect(() => {
|
|
240
|
-
if (isPreview) {
|
|
241
|
-
onTabClick(summaryTabId);
|
|
242
|
-
}
|
|
243
|
-
}, []);
|
|
244
|
-
// Initial tab selection
|
|
245
|
-
useEffect(() => {
|
|
246
|
-
if (mdOrAbove &&
|
|
247
|
-
summaryExpanded &&
|
|
248
|
-
!persistentUtility &&
|
|
249
|
-
(currentTabId === summaryTabId || currentTabId === utilitiesTabId)) {
|
|
250
|
-
onTabClick(tabItemsProp[0]?.id);
|
|
251
|
-
}
|
|
252
|
-
// Toggle utilities tab selection
|
|
253
|
-
if (mdOrAbove && [utilitiesTabId, persistentUtilityTabId].includes(currentTabId)) {
|
|
254
|
-
onTabClick(initialTabId);
|
|
255
|
-
}
|
|
256
|
-
}, [mdOrAbove]);
|
|
257
|
-
// Initial / summary tab selection
|
|
258
|
-
useEffect(() => {
|
|
259
|
-
if (!smOrAbove && currentTabId === initialTabId) {
|
|
260
|
-
onTabClick(summaryTabId);
|
|
261
|
-
}
|
|
262
|
-
else if (smOrAbove && currentTabId === summaryTabId) {
|
|
263
|
-
onTabClick(initialTabId);
|
|
264
|
-
}
|
|
265
|
-
}, [smOrAbove]);
|
|
266
|
-
// Summary tab selection
|
|
267
|
-
useEffect(() => {
|
|
268
|
-
if (isPreview) {
|
|
269
|
-
onTabClick(summaryTabId);
|
|
270
|
-
}
|
|
271
|
-
}, [isPreview]);
|
|
272
|
-
// Initial tab selection
|
|
273
|
-
useEffect(() => {
|
|
274
|
-
if (summaryExpanded && currentTabId === summaryTabId) {
|
|
275
|
-
onTabClick(initialTabId);
|
|
276
|
-
}
|
|
277
|
-
}, [summaryExpanded]);
|
|
278
|
-
// Handles scrolling to tab content for newly clicked tab
|
|
279
|
-
useEffect(() => {
|
|
280
|
-
if (!tabContentEl)
|
|
281
|
-
return;
|
|
282
|
-
const scrollPos = window.scrollY;
|
|
283
|
-
const windowHeight = document.documentElement.clientHeight;
|
|
284
|
-
const bottomPos = scrollPos + windowHeight * 0.8;
|
|
285
|
-
const tabContentPos = tabContentEl.offsetTop;
|
|
286
|
-
if (tabContentPos > bottomPos) {
|
|
287
|
-
const top = tabContentPos - windowHeight * 0.2;
|
|
288
|
-
window.scrollTo({ top, behavior: 'smooth' });
|
|
289
|
-
}
|
|
290
|
-
}, [currentTabId]);
|
|
291
|
-
// We need a css variable for the height of the case summary when it is collapsed into a header like layout
|
|
292
|
-
useLayoutEffect(() => {
|
|
293
|
-
if (!caseViewRef.current || !summaryRef.current)
|
|
294
|
-
return;
|
|
295
|
-
caseViewRef.current.style.setProperty('--summary-height', `${!summaryExpanded ? summaryRef.current.offsetHeight : 0}px`);
|
|
296
|
-
}, [summaryExpanded]);
|
|
297
|
-
// CaseView context value
|
|
298
|
-
// Choosing not to memo for now due to extent of deps and how often they change. Optimize as needed.
|
|
299
|
-
// eslint-disable-next-line react/jsx-no-constructed-context-values
|
|
300
|
-
const ctxValue = {
|
|
301
|
-
testIds,
|
|
302
|
-
caseId,
|
|
303
|
-
heading,
|
|
304
|
-
subheading,
|
|
305
|
-
caseLink,
|
|
306
|
-
parentCases,
|
|
307
|
-
icon,
|
|
308
|
-
followed,
|
|
309
|
-
onFollowedChange,
|
|
310
|
-
actions,
|
|
311
|
-
promotedActions,
|
|
312
|
-
onEdit,
|
|
313
|
-
summaryFields,
|
|
314
|
-
tabs: {
|
|
315
|
-
items: tabItems,
|
|
316
|
-
onClick: onTabClick,
|
|
317
|
-
currentTabId
|
|
318
|
-
},
|
|
319
|
-
stages,
|
|
320
|
-
tasks,
|
|
321
|
-
persistentUtility,
|
|
322
|
-
intelligentGuidance,
|
|
323
|
-
summaryExpanded,
|
|
324
|
-
utilitiesExpanded,
|
|
325
|
-
onToggleSummary,
|
|
326
|
-
isPreview,
|
|
327
|
-
aboveSM: smOrAbove,
|
|
328
|
-
aboveMD: mdOrAbove,
|
|
329
|
-
aboveLG: lgOrAbove,
|
|
330
|
-
aboveXL: xlOrAbove
|
|
331
|
-
};
|
|
332
|
-
const currentTabPanelRef = useRef(null);
|
|
333
|
-
// The following effects are dedicated to resizeTable handling.
|
|
334
|
-
useLayoutEffect(() => {
|
|
335
|
-
if (!currentTabPanelRef.current || !workAreaRef.current)
|
|
336
|
-
return;
|
|
337
|
-
const currentTabPanelEl = currentTabPanelRef.current;
|
|
338
|
-
const workAreaEl = workAreaRef.current;
|
|
339
|
-
resizeTable(currentTabPanelEl, workAreaEl);
|
|
340
|
-
const onTabChange = () => {
|
|
341
|
-
resizeTable(currentTabPanelEl, workAreaEl);
|
|
342
|
-
};
|
|
343
|
-
// TODO: optimize
|
|
344
|
-
const mo = new MutationObserver(() => {
|
|
345
|
-
resizeTable(currentTabPanelEl, workAreaEl);
|
|
346
|
-
});
|
|
347
|
-
mo.observe(currentTabPanelEl, { childList: true, subtree: true });
|
|
348
|
-
currentTabPanelEl.addEventListener('cosmos-tab-changed', onTabChange);
|
|
349
|
-
return () => {
|
|
350
|
-
mo.disconnect();
|
|
351
|
-
currentTabPanelEl.removeEventListener('cosmos-tab-changed', onTabChange);
|
|
352
|
-
};
|
|
353
|
-
});
|
|
354
|
-
const [bannersStagesTasksEl, setBannersStagesTasksEl] = useElement(null);
|
|
355
|
-
useEffect(() => {
|
|
356
|
-
if (!bannersStagesTasksEl)
|
|
357
|
-
return;
|
|
358
|
-
const observer = new ResizeObserver(() => {
|
|
359
|
-
if (!currentTabPanelRef.current || !workAreaRef.current)
|
|
360
|
-
return;
|
|
361
|
-
resizeTable(currentTabPanelRef.current, workAreaRef.current);
|
|
362
|
-
});
|
|
363
|
-
observer.observe(bannersStagesTasksEl);
|
|
364
|
-
return () => {
|
|
365
|
-
observer.disconnect();
|
|
366
|
-
};
|
|
367
|
-
}, [bannersStagesTasksEl]);
|
|
368
|
-
useEffect(() => {
|
|
369
|
-
const onResize = () => {
|
|
370
|
-
if (!currentTabPanelRef.current || !workAreaRef.current)
|
|
371
|
-
return;
|
|
372
|
-
resizeTable(currentTabPanelRef.current, workAreaRef.current);
|
|
373
|
-
};
|
|
374
|
-
window.addEventListener('resize', onResize);
|
|
375
|
-
return () => {
|
|
376
|
-
window.removeEventListener('resize', onResize);
|
|
377
|
-
};
|
|
378
|
-
}, []);
|
|
379
|
-
const utilitiesHeading = (_jsx(StyledUtilitiesHeading, { variant: 'h2', children: t('utilities') }));
|
|
380
|
-
const utilitiesToggleButton = (_jsx(StyledExpandCollapseUtilitiesButton, { compact: true, icon: true, label: t(utilitiesExpanded ? 'collapse' : 'expand'), "aria-label": t(utilitiesExpanded ? 'collapse_utilities_panel' : 'expand_utilities_panel'), onClick: () => {
|
|
381
|
-
if (!obeyUtilitiesExpandedProp && utilitiesExpandedProp) {
|
|
382
|
-
setObeyUtilitiesExpandedProp(true);
|
|
383
|
-
}
|
|
384
|
-
else {
|
|
385
|
-
onToggleUtilities?.();
|
|
386
|
-
}
|
|
387
|
-
}, onFocus: () => {
|
|
388
|
-
isToggleButtonFocused.current = true;
|
|
389
|
-
}, onBlur: () => {
|
|
390
|
-
isToggleButtonFocused.current = false;
|
|
391
|
-
}, ref: toggleButtonRef, children: _jsx(Icon, { name: 'arrow-micro-left' }) }));
|
|
392
|
-
// Here we go...
|
|
393
|
-
return (_jsxs(_Fragment, { children: [_jsx(CaseViewContext.Provider, { value: ctxValue, children: _jsxs(Grid, { "data-testid": testIds.root, ...restProps, as: StyledCaseView, ref: caseViewRef, container: caseViewGridContainer, item: { area: 'case-view' }, children: [_jsx(Grid, { as: StyledSummary, item: { area: 'summary' }, desktop: mdOrAbove && (!persistentUtility || xlOrAbove) && !summaryExpanded, isLargeOrAbove: lgOrAbove, ref: summaryRef, children: _jsx(CaseSummary, {}) }), _jsxs(Flex, { container: {
|
|
394
|
-
direction: 'column',
|
|
395
|
-
alignContent: 'start',
|
|
396
|
-
rowGap: 2
|
|
397
|
-
}, as: StyledWorkArea, persistentUtility: Boolean(persistentUtility), ref: (el) => {
|
|
398
|
-
workAreaRef.current = el;
|
|
399
|
-
if (el)
|
|
400
|
-
scrollStickOptions.current?.elements.push(el);
|
|
401
|
-
}, children: [(banners || stages || tasks) && (_jsxs(Flex, { container: {
|
|
402
|
-
direction: 'column',
|
|
403
|
-
alignContent: 'start',
|
|
404
|
-
rowGap: 2
|
|
405
|
-
}, ref: setBannersStagesTasksEl, children: [banners && _jsx("div", { "data-testid": testIds.banners, children: banners }), stages && _jsx("div", { "data-testid": testIds.stages, children: stages }), tasks && _jsx("div", { "data-testid": testIds.tasks, children: tasks })] })), (!mdOrAbove || (persistentUtility && !xlOrAbove) || !summaryExpanded) && (_jsx(Tabs, { "data-testid": testIds.tabs, tabs: tabItems, onTabClick: onTabClick, currentTabId: currentTabId })), _jsx("div", { ref: setTabContentEl, children: tabContent?.map(({ id, content }) => (_jsx(TabPanel, { "data-testid": currentTabId === id ? testIds.tabContent : undefined, currentTabId: currentTabId, tabId: id, ref: currentTabId === id ? currentTabPanelRef : undefined, children: content }, id))) })] }), persistentUtility && mdOrAbove && (_jsx(Grid, { as: StyledPersistentUtility, item: { area: 'persistentUtility' }, "data-app-region": true, children: persistentUtility.content })), utilities && mdOrAbove && !lgOrAbove && utilitiesExpanded && (_jsx(Drawer, { as: StyledCaseDrawer, open: utilitiesExpanded, position: 'fixed', placement: direction.end, shadow: true, nullWhenClosed: true, hasPersistentUtility: !!persistentUtility, children: _jsxs(Flex, { as: StyledCaseDrawerContent, container: { direction: 'column', gap: 2 }, "data-app-region": true, children: [_jsxs(Flex, { container: { alignItems: 'center', justify: 'between' }, children: [utilitiesHeading, utilitiesToggleButton] }), utilities] }) })), utilities && mdOrAbove && (_jsxs(Grid, { "data-testid": testIds.utilities, ref: (el) => {
|
|
406
|
-
if (el)
|
|
407
|
-
scrollStickOptions.current?.elements.push(el);
|
|
408
|
-
}, as: StyledUtilities, container: {
|
|
409
|
-
cols: 'minmax(0, 1fr)',
|
|
410
|
-
rowGap: 2
|
|
411
|
-
}, item: {
|
|
412
|
-
area: 'utilities'
|
|
413
|
-
}, "data-app-region": lgOrAbove || !utilitiesExpanded || undefined, "aria-label": t('utilities_label'), children: [_jsxs(Flex, { container: {
|
|
414
|
-
alignItems: 'center',
|
|
415
|
-
justify: utilitiesExpanded ? 'between' : 'center'
|
|
416
|
-
}, children: [utilitiesHeading, !lgOrAbove && utilitiesExpanded ? null : utilitiesToggleButton] }), utilitiesExpanded && lgOrAbove && utilities, (!utilitiesExpanded || (mdOrAbove && !lgOrAbove)) &&
|
|
417
|
-
utilitiesSummaryItems &&
|
|
418
|
-
utilitiesSummaryItems.length > 0 && (_jsx(UtilitiesSummary, { items: utilitiesSummaryItems }))] }))] }) }), intelligentGuidance] }));
|
|
419
|
-
};
|
|
420
|
-
export default withTestIds(CaseView, getCaseViewTestIds);
|
|
421
|
-
//# sourceMappingURL=CaseView.js.map
|