@pega/cosmos-react-cs 2.0.0-dev.12.1 → 2.0.0-dev.14.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (73) hide show
  1. package/lib/components/Article/ArticleFooter.d.ts.map +1 -1
  2. package/lib/components/Article/ArticleFooter.js +1 -1
  3. package/lib/components/Article/ArticleFooter.js.map +1 -1
  4. package/lib/components/CallControlPanel/Call.d.ts.map +1 -1
  5. package/lib/components/CallControlPanel/Call.js +15 -12
  6. package/lib/components/CallControlPanel/Call.js.map +1 -1
  7. package/lib/components/CallControlPanel/CallControlPanel.d.ts.map +1 -1
  8. package/lib/components/CallControlPanel/CallControlPanel.js +14 -5
  9. package/lib/components/CallControlPanel/CallControlPanel.js.map +1 -1
  10. package/lib/components/CallControlPanel/CallControlPanel.styles.d.ts +1 -0
  11. package/lib/components/CallControlPanel/CallControlPanel.styles.d.ts.map +1 -1
  12. package/lib/components/CallControlPanel/CallControlPanel.styles.js +24 -17
  13. package/lib/components/CallControlPanel/CallControlPanel.styles.js.map +1 -1
  14. package/lib/components/CallControlPanel/CallControlPanel.types.d.ts +2 -0
  15. package/lib/components/CallControlPanel/CallControlPanel.types.d.ts.map +1 -1
  16. package/lib/components/CallControlPanel/CallControlPanel.types.js.map +1 -1
  17. package/lib/components/CallControlPanel/CallControlPanelIcon.d.ts.map +1 -1
  18. package/lib/components/CallControlPanel/CallControlPanelIcon.js +2 -2
  19. package/lib/components/CallControlPanel/CallControlPanelIcon.js.map +1 -1
  20. package/lib/components/CallControlPanel/ContactsList.d.ts.map +1 -1
  21. package/lib/components/CallControlPanel/ContactsList.js +2 -1
  22. package/lib/components/CallControlPanel/ContactsList.js.map +1 -1
  23. package/lib/components/CallControlPanel/DTMFKeypad.d.ts.map +1 -1
  24. package/lib/components/CallControlPanel/DTMFKeypad.js +1 -0
  25. package/lib/components/CallControlPanel/DTMFKeypad.js.map +1 -1
  26. package/lib/components/CallControlPanel/StopWatch.d.ts +1 -1
  27. package/lib/components/CallControlPanel/StopWatch.d.ts.map +1 -1
  28. package/lib/components/CallControlPanel/utils.d.ts +4 -4
  29. package/lib/components/CallControlPanel/utils.d.ts.map +1 -1
  30. package/lib/components/CallControlPanel/utils.js +7 -0
  31. package/lib/components/CallControlPanel/utils.js.map +1 -1
  32. package/lib/components/DialPad/DialPadKeyboard.styles.d.ts +1 -0
  33. package/lib/components/DialPad/DialPadKeyboard.styles.d.ts.map +1 -1
  34. package/lib/components/IntelligentGuidance/IntelligentGuidance.js +2 -2
  35. package/lib/components/IntelligentGuidance/IntelligentGuidance.js.map +1 -1
  36. package/lib/components/IntelligentGuidance/IntelligentGuidance.styles.d.ts +1 -0
  37. package/lib/components/IntelligentGuidance/IntelligentGuidance.styles.d.ts.map +1 -1
  38. package/lib/components/IntelligentGuidance/IntelligentGuidance.styles.js +2 -2
  39. package/lib/components/IntelligentGuidance/IntelligentGuidance.styles.js.map +1 -1
  40. package/lib/components/InteractionNotification/InteractionNotification.js +1 -1
  41. package/lib/components/InteractionNotification/InteractionNotification.js.map +1 -1
  42. package/lib/components/InteractionTimer/InteractionTimer.d.ts +1 -1
  43. package/lib/components/InteractionTimer/InteractionTimer.d.ts.map +1 -1
  44. package/lib/components/TaskManager/Picker/Picker.d.ts.map +1 -1
  45. package/lib/components/TaskManager/Picker/Picker.js +129 -39
  46. package/lib/components/TaskManager/Picker/Picker.js.map +1 -1
  47. package/lib/components/TaskManager/Picker/Picker.types.d.ts +11 -2
  48. package/lib/components/TaskManager/Picker/Picker.types.d.ts.map +1 -1
  49. package/lib/components/TaskManager/Picker/Picker.types.js.map +1 -1
  50. package/lib/components/TaskManager/TaskManager.context.d.ts +1 -0
  51. package/lib/components/TaskManager/TaskManager.context.d.ts.map +1 -1
  52. package/lib/components/TaskManager/TaskManager.d.ts.map +1 -1
  53. package/lib/components/TaskManager/TaskManager.js +38 -42
  54. package/lib/components/TaskManager/TaskManager.js.map +1 -1
  55. package/lib/components/TaskManager/TaskManager.styles.d.ts +15 -20
  56. package/lib/components/TaskManager/TaskManager.styles.d.ts.map +1 -1
  57. package/lib/components/TaskManager/TaskManager.styles.js +173 -165
  58. package/lib/components/TaskManager/TaskManager.styles.js.map +1 -1
  59. package/lib/components/TaskManager/TaskManager.types.d.ts +12 -6
  60. package/lib/components/TaskManager/TaskManager.types.d.ts.map +1 -1
  61. package/lib/components/TaskManager/TaskManager.types.js.map +1 -1
  62. package/lib/components/TaskManager/TaskManagerTabs.d.ts +6 -0
  63. package/lib/components/TaskManager/TaskManagerTabs.d.ts.map +1 -0
  64. package/lib/components/TaskManager/TaskManagerTabs.js +159 -0
  65. package/lib/components/TaskManager/TaskManagerTabs.js.map +1 -0
  66. package/lib/components/TaskManager/index.d.ts +1 -1
  67. package/lib/components/TaskManager/index.d.ts.map +1 -1
  68. package/lib/components/TaskManager/index.js.map +1 -1
  69. package/package.json +11 -10
  70. package/lib/components/TaskManager/TaskDrawer.d.ts +0 -6
  71. package/lib/components/TaskManager/TaskDrawer.d.ts.map +0 -1
  72. package/lib/components/TaskManager/TaskDrawer.js +0 -73
  73. package/lib/components/TaskManager/TaskDrawer.js.map +0 -1
@@ -1,202 +1,210 @@
1
1
  import styled, { css } from 'styled-components';
2
- import { transparentize } from 'polished';
3
- import { defaultThemeProp, Popover, tryCatch } from '@pega/cosmos-react-core';
2
+ import { mix, transparentize } from 'polished';
3
+ import { defaultThemeProp, MenuButton, Popover, tryCatch, Status, StyledCard, StyledEmptyState, StyledFlex } from '@pega/cosmos-react-core';
4
4
  import { StyledCardHeader } from '@pega/cosmos-react-core/lib/components/Card/CardHeader';
5
+ import { StyledCardContent } from '@pega/cosmos-react-core/lib/components/Card/CardContent';
5
6
  import { StyledStatus } from '@pega/cosmos-react-core/lib/components/Badges/Status';
6
7
  import { StyledVisual } from '@pega/cosmos-react-core/lib/components/SummaryItem/SummaryItem';
7
- import BareButton from '@pega/cosmos-react-core/lib/components/Button/BareButton';
8
- export const StyledTaskDrawerWrapper = styled.div ``;
9
- export const StyledTaskDrawer = styled.div ``;
10
- const styleTaskIcon = (variant, theme) => {
11
- const { background, foreground } = theme.components['task-manager']['task-icon'][variant];
12
- let borderColor = 'transparent';
13
- if (variant === 'queued') {
14
- borderColor = theme.base.colors.slate['extra-dark'];
15
- }
8
+ export const StyledTaskMain = styled.div ``;
9
+ export const StyledTaskManagerTabsSummaryItem = styled.div ``;
10
+ export const StyledTaskManagerTabs = styled.div(({ theme }) => {
16
11
  return css `
17
- margin-inline-end: ${theme.base.spacing};
18
- border-radius: 50%;
19
- width: 2rem;
20
- height: 2rem;
21
- align-items: center;
22
- min-height: 2rem;
23
- min-width: 2rem;
24
- justify-content: center;
25
- line-height: 1rem;
26
- display: inline-flex;
27
- padding: calc(0.75 * ${theme.base.spacing});
28
- color: ${foreground};
29
- background: ${background};
30
- font-size: 1rem;
31
- border: 0.0625rem dashed ${borderColor};
32
- `;
33
- };
34
- export const StyledTaskIcon = styled.div(({ variant, theme }) => {
35
- return css `
36
- ${styleTaskIcon(variant, theme)}
12
+ background-color: ${theme.base.palette['secondary-background']};
13
+
14
+ ::before {
15
+ content: '';
16
+ border-block-end: 0.0625rem solid ${theme.base.palette['border-line']};
17
+ height: 0.0625rem;
18
+ width: 100%;
19
+ position: absolute;
20
+ inset-block-end: 0;
21
+ }
37
22
  `;
38
23
  });
39
- export const StyledTaskSummaryItem = styled.li(({ variant, theme }) => {
24
+ StyledTaskManagerTabs.defaultProps = defaultThemeProp;
25
+ export const StyledTaskSummaryItem = styled.li(({ theme }) => {
40
26
  const { base: { spacing } } = theme;
41
27
  return css `
42
28
  min-height: 2.5rem;
43
- padding: ${spacing} 0;
44
- > ${StyledVisual} {
45
- ${styleTaskIcon(variant, theme)}
46
- }
29
+ padding: ${spacing};
47
30
  &:not(:last-child) {
48
- border-bottom: 0.0625rem solid ${theme.base.palette['border-line']};
31
+ border-block-end: 0.0625rem solid ${theme.base.palette['border-line']};
49
32
  }
50
33
  `;
51
34
  });
52
35
  StyledTaskSummaryItem.defaultProps = defaultThemeProp;
53
- export const StyledTaskDrawerSummaryItem = styled.div ``;
54
- export const StyledTaskDrawerBareButton = styled(BareButton)(({ variant, active = false, theme, theme: { base: { palette: { 'border-line': borderLine } } } }) => {
55
- const primaryColor = theme.base.palette.interactive;
36
+ export const StyleTaskName = styled.span(() => {
56
37
  return css `
57
- white-space: nowrap;
58
- border-bottom: 0.1rem solid ${borderLine};
59
- position: relative;
60
- width: 100%;
61
- text-align: left;
62
- min-height: 3.45rem;
63
- outline: none;
64
- background-color: ${active &&
38
+ overflow: hidden;
39
+ text-overflow: ellipsis;
40
+ white-space: nowrap;
41
+ `;
42
+ });
43
+ export const StyledTaskStatus = styled(Status)(({ theme }) => {
44
+ return css `
45
+ margin-block-start: calc(0.25 * ${theme.base.spacing});
46
+ `;
47
+ });
48
+ StyleTaskName.defaultProps = defaultThemeProp;
49
+ StyledTaskStatus.defaultProps = defaultThemeProp;
50
+ export const StyledTaskManagerTab = styled.li(({ active = false, theme }) => {
51
+ const hoverColor = tryCatch(() => mix(0.85, theme.base.palette['primary-background'], theme.base.palette.interactive));
52
+ return css `
53
+ max-width: 20rem;
54
+ min-width: 18rem;
55
+ white-space: nowrap;
56
+ border-inline-end: 0.065rem solid ${theme.base.palette['border-line']};
57
+ text-align: start;
58
+ outline: none;
59
+ overflow: hidden;
60
+ display: flex;
61
+ align-items: center;
62
+ position: relative;
63
+ flex: 1;
64
+ min-height: 2.5rem;
65
+ cursor: pointer;
66
+ padding-block: calc(0.5 * ${theme.base.spacing});
67
+ padding-inline: calc(2 * ${theme.base.spacing}) calc(1 * ${theme.base.spacing});
68
+ background-color: ${active &&
65
69
  css `
66
- ${theme.base.colors.white}
67
- `};
70
+ ${theme.base.palette['primary-background']};
71
+ `};
68
72
 
69
- & + & {
70
- margin-inline-start: 0;
71
- }
73
+ & + & {
74
+ margin-inline-start: 0;
75
+ }
72
76
 
73
- &::before {
74
- content: '';
75
- display: ${active ? 'block' : 'none'};
76
- background: ${primaryColor};
77
- position: absolute;
78
- width: 0.25rem;
79
- height: 100%;
80
- top: 0;
81
- left: 0;
82
- }
77
+ > ${StyledTaskManagerTabsSummaryItem} {
78
+ overflow-x: hidden;
79
+ }
83
80
 
84
- &::after {
85
- content: '';
86
- display: ${active ? 'block' : 'none'};
87
- position: absolute;
88
- width: 0.0625rem;
89
- top: 0;
90
- height: 100%;
91
- right: -0.0625rem;
92
- background-color: ${active &&
81
+ > ${StyledTaskManagerTabsSummaryItem} > ${StyledVisual} {
82
+ ${active &&
93
83
  css `
94
- ${theme.base.colors.white}
95
- `};
96
- }
97
-
98
- &:not(:first-child):not(:last-child)::before,
99
- &:not(:first-child):not(:last-child)::after {
100
- height: calc(100% + 0.0625rem);
101
- }
102
-
103
- > ${StyledTaskDrawerSummaryItem} {
104
- overflow-x: hidden;
105
- }
106
-
107
- > ${StyledTaskDrawerSummaryItem} > ${StyledVisual} {
108
- ${styleTaskIcon(variant, theme)}
109
- ${active &&
84
+ background: ${theme.base.palette.interactive};
85
+ color: ${theme.base.colors.white};
86
+ `}
87
+ }
88
+ ${active &&
110
89
  css `
111
- background: ${theme.base.palette.interactive};
112
- color: ${theme.base.colors.white};
113
- `}
90
+ ::after {
91
+ position: absolute;
92
+ content: '';
93
+ height: 0.0625rem;
94
+ width: 100%;
95
+ background-color: ${theme.base.palette['primary-background']};
96
+ inset-inline-start: 0;
97
+ inset-block-end: 0;
114
98
  }
99
+ `}
115
100
 
116
- &:hover,
117
- &:focus {
118
- background: ${theme.base.colors.white};
101
+ &:hover,
102
+ &:focus {
103
+ background-color: ${hoverColor};
104
+ ::after {
105
+ background-color: ${hoverColor};
119
106
  }
120
- `;
107
+ box-shadow: none;
108
+ }
109
+ &:focus {
110
+ box-shadow: inset ${theme.base.shadow.focus};
111
+ }
112
+
113
+ > ${StyledFlex} {
114
+ max-width: 100%;
115
+ }
116
+ `;
121
117
  });
122
- StyledTaskDrawerBareButton.defaultProps = defaultThemeProp;
123
- export const StyledTasksTabList = styled.div ``;
124
- export const StyledStickyCardHeader = styled(StyledCardHeader) ``;
125
- export const TASK_DRAWER_COLLAPSED_WIDTH = '4rem';
126
- export const StyledTaskManager = styled.div(({ hasDrawer = true, theme: { base: { animation } }, theme }) => {
127
- const primaryBackgroundColor = theme.base.palette['primary-background'];
118
+ StyledTaskManagerTab.defaultProps = defaultThemeProp;
119
+ export const StyledTasksTabList = styled.ul(({ theme }) => {
128
120
  const primaryColor = theme.base.palette.interactive;
129
121
  const lightenedColor = tryCatch(() => transparentize(0.5, primaryColor)) ?? '';
130
122
  return css `
131
- background: ${primaryBackgroundColor};
132
- position: relative;
133
- border-radius: 0.5rem;
134
- padding-left: calc(${hasDrawer ? 8 : 0} * ${theme.base.spacing});
135
-
136
- ${StyledStatus} {
137
- line-height: calc(${theme.base.spacing} * 2);
138
- height: calc(${theme.base.spacing} * 2);
139
- font-size: 0.7rem;
140
- }
141
-
142
- ${StyledTaskDrawerWrapper} {
143
- background-color: ${theme.base.colors.gray.light};
144
- border-right: 0.0625rem solid ${theme.base.palette['border-line']};
145
- position: absolute;
146
- z-index: 10;
147
- top: 0;
148
- bottom: 0;
149
- left: 0;
150
- width: ${TASK_DRAWER_COLLAPSED_WIDTH};
151
- transition: width ${animation.speed} ${animation.timing.ease};
152
- will-change: width;
153
- border-bottom-left-radius: 0.5rem;
154
-
155
- &:hover,
156
- &:focus-within {
157
- width: 25rem;
158
- transition-delay: 0.25s;
123
+ position: relative;
124
+ display: flex;
125
+ flex-grow: 1;
126
+ overflow: scroll;
127
+ -ms-overflow-style: none;
128
+ &::-webkit-scrollbar {
129
+ display: none;
130
+ }
131
+ scrollbar-width: none;
132
+ ${StyledTaskManagerTab} {
133
+ margin-inline-start: 0;
134
+ &:hover,
135
+ &:focus {
136
+ ::before {
137
+ display: block;
138
+ background-color: ${lightenedColor};
159
139
  }
160
140
  }
141
+ }
142
+ `;
143
+ });
144
+ StyledTasksTabList.defaultProps = defaultThemeProp;
145
+ export const StyledStickyCardHeader = styled(StyledCardHeader)(({ theme }) => {
146
+ const primaryBackgroundColor = theme.base.palette['primary-background'];
147
+ return css `
148
+ inset-block-start: 0;
149
+ inset-inline-start: 0;
150
+ background: ${primaryBackgroundColor};
151
+ height: calc(3.5rem - 0.0625rem);
152
+ border-block-end: 0.0625rem solid ${theme.base.palette['border-line']};
153
+ `;
154
+ });
155
+ export const StyledOverflowTabMenu = styled(MenuButton)(({ theme }) => {
156
+ return css `
157
+ border-radius: 0;
158
+ display: inline-block;
159
+ position: relative;
160
+ inset-inline-end: 0;
161
+ inset-block-start: 0;
162
+ align-self: stretch;
163
+ margin-inline-start: auto;
164
+ background-color: ${theme.base.palette['secondary-background']};
165
+ border-block-end: 0.0625rem solid ${theme.base.palette['border-line']};
166
+ padding: 0 ${theme.base.spacing};
167
+ `;
168
+ });
169
+ StyledStickyCardHeader.defaultProps = defaultThemeProp;
170
+ StyledOverflowTabMenu.defaultProps = defaultThemeProp;
171
+ export const StyledTaskManager = styled.div(({ theme }) => {
172
+ const primaryBackgroundColor = theme.base.palette['primary-background'];
173
+ return css `
174
+ background: ${primaryBackgroundColor};
175
+ position: relative;
176
+ border-radius: 0 0 0.5rem 0.5rem;
161
177
 
162
- ${StyledTaskDrawerWrapper} > ${StyledTaskDrawer} {
163
- position: sticky;
164
- z-index: 2;
165
- top: 0;
166
- bottom: 0;
167
- left: 0;
168
- width: 100%;
169
- }
178
+ ${StyledStatus} {
179
+ line-height: calc(${theme.base.spacing} * 2);
180
+ height: calc(${theme.base.spacing} * 2);
181
+ font-size: 0.7rem;
182
+ }
170
183
 
171
- ${StyledTasksTabList} {
172
- ${StyledTaskDrawerBareButton} {
173
- margin-inline-start: 0;
174
- &:hover,
175
- &:focus {
176
- ::before {
177
- display: block;
178
- background-color: ${lightenedColor};
179
- }
180
- }
181
- }
184
+ ${StyledCardContent} {
185
+ &:not(${StyledCard} ${StyledCard} > &) {
186
+ padding: 0;
182
187
  }
183
- ${StyledTaskDrawerBareButton} {
184
- > ${StyledTaskDrawerSummaryItem} > ${StyledVisual} {
185
- margin: 0 calc(2 * ${theme.base.spacing});
186
- }
188
+ }
189
+ ${StyledTaskMain} {
190
+ padding: 0 calc(2 * ${theme.base.spacing}) calc(2 * ${theme.base.spacing});
191
+ ${StyledCardHeader} {
192
+ padding: ${theme.base.spacing} 0;
193
+ margin-block-end: ${theme.base.spacing};
187
194
  }
188
-
189
- ${StyledStickyCardHeader} {
190
- position: sticky;
191
- top: 0;
192
- left: 0;
193
- background: ${primaryBackgroundColor};
194
- z-index: 6;
195
- height: calc(3.5rem - 0.0625rem);
196
- border-bottom: 0.0625rem solid ${theme.base.palette['border-line']};
197
- margin-bottom: ${theme.base.spacing};
195
+ }
196
+ ${StyledEmptyState} {
197
+ padding: calc(2 * ${theme.base.spacing});
198
+ }
199
+ ${StyledTaskManagerTabs} {
200
+ position: relative;
201
+ }
202
+ ${StyledTaskManagerTab} {
203
+ > ${StyledTaskManagerTabsSummaryItem} > ${StyledVisual} {
204
+ margin: 0 calc(2 * ${theme.base.spacing});
198
205
  }
199
- `;
206
+ }
207
+ `;
200
208
  });
201
209
  StyledTaskManager.defaultProps = defaultThemeProp;
202
210
  export const StyledTaskManagerBanner = styled.div(({ theme }) => {
@@ -205,9 +213,9 @@ export const StyledTaskManagerBanner = styled.div(({ theme }) => {
205
213
  color: ${theme.base.colors.orange.medium};
206
214
  border-radius: ${theme.base['border-radius']} ${theme.base['border-radius']} 0 0;
207
215
  background-color: ${theme.base.colors.gray['extra-light']};
216
+ gap: ${theme.base.spacing};
208
217
 
209
218
  & + ${StyledTaskManager} {
210
- box-shadow: ${theme.base.shadow.low};
211
219
  margin-block-start: 0;
212
220
  }
213
221
  `;
@@ -215,7 +223,7 @@ export const StyledTaskManagerBanner = styled.div(({ theme }) => {
215
223
  StyledTaskManagerBanner.defaultProps = defaultThemeProp;
216
224
  export const StyledPopover = styled(Popover)(({ theme }) => {
217
225
  return css `
218
- width: 20rem;
226
+ width: 35rem;
219
227
  border-radius: ${theme.base['border-radius']};
220
228
  `;
221
229
  });
@@ -1 +1 @@
1
- {"version":3,"file":"TaskManager.styles.js","sourceRoot":"","sources":["../../../src/components/TaskManager/TaskManager.styles.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,EAAE,EAAE,GAAG,EAAgB,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAE1C,OAAO,EAAE,gBAAgB,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,yBAAyB,CAAC;AAC9E,OAAO,EAAE,gBAAgB,EAAE,MAAM,wDAAwD,CAAC;AAC1F,OAAO,EAAE,YAAY,EAAE,MAAM,sDAAsD,CAAC;AACpF,OAAO,EAAE,YAAY,EAAE,MAAM,gEAAgE,CAAC;AAC9F,OAAO,UAAU,MAAM,0DAA0D,CAAC;AAIlF,MAAM,CAAC,MAAM,uBAAuB,GAAG,MAAM,CAAC,GAAG,CAAA,EAAE,CAAC;AACpD,MAAM,CAAC,MAAM,gBAAgB,GAAG,MAAM,CAAC,GAAG,CAAA,EAAE,CAAC;AAM7C,MAAM,aAAa,GAAG,CAAC,OAAuC,EAAE,KAAmB,EAAE,EAAE;IACrF,MAAM,EAAE,UAAU,EAAE,UAAU,EAAE,GAAG,KAAK,CAAC,UAAU,CAAC,cAAc,CAAC,CAAC,WAAW,CAAC,CAAC,OAAO,CAAC,CAAC;IAC1F,IAAI,WAAW,GAAG,aAAa,CAAC;IAChC,IAAI,OAAO,KAAK,QAAQ,EAAE;QACxB,WAAW,GAAG,KAAK,CAAC,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,YAAY,CAAC,CAAC;KACrD;IACD,OAAO,GAAG,CAAA;yBACa,KAAK,CAAC,IAAI,CAAC,OAAO;;;;;;;;;;2BAUhB,KAAK,CAAC,IAAI,CAAC,OAAO;aAChC,UAAU;kBACL,UAAU;;+BAEG,WAAW;GACvC,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,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AACJ,CAAC,CAAC,CAAC;AAEH,uBAAuB,CAAC,YAAY,GAAG,gBAAgB,CAAC;AAExD,MAAM,CAAC,MAAM,aAAa,GAAG,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE;IACzD,OAAO,GAAG,CAAA;;qBAES,KAAK,CAAC,IAAI,CAAC,eAAe,CAAC;GAC7C,CAAC;AACJ,CAAC,CAAC,CAAC;AAEH,aAAa,CAAC,YAAY,GAAG,gBAAgB,CAAC;AAE9C,eAAe,iBAAiB,CAAC","sourcesContent":["import styled, { css, DefaultTheme } from 'styled-components';\nimport { transparentize } from 'polished';\n\nimport { defaultThemeProp, Popover, tryCatch } from '@pega/cosmos-react-core';\nimport { StyledCardHeader } from '@pega/cosmos-react-core/lib/components/Card/CardHeader';\nimport { StyledStatus } from '@pega/cosmos-react-core/lib/components/Badges/Status';\nimport { StyledVisual } from '@pega/cosmos-react-core/lib/components/SummaryItem/SummaryItem';\nimport BareButton from '@pega/cosmos-react-core/lib/components/Button/BareButton';\n\nimport { TaskProps } from './TaskManager.types';\n\nexport const StyledTaskDrawerWrapper = styled.div``;\nexport const StyledTaskDrawer = styled.div``;\n\nexport interface StyledTaskIconProps {\n variant: TaskProps['variant'] | 'action' | 'banner';\n}\n\nconst styleTaskIcon = (variant: StyledTaskIconProps['variant'], theme: DefaultTheme) => {\n const { background, foreground } = theme.components['task-manager']['task-icon'][variant];\n let borderColor = 'transparent';\n if (variant === 'queued') {\n borderColor = theme.base.colors.slate['extra-dark'];\n }\n return css`\n margin-inline-end: ${theme.base.spacing};\n border-radius: 50%;\n width: 2rem;\n height: 2rem;\n align-items: center;\n min-height: 2rem;\n min-width: 2rem;\n justify-content: center;\n line-height: 1rem;\n display: inline-flex;\n padding: calc(0.75 * ${theme.base.spacing});\n color: ${foreground};\n background: ${background};\n font-size: 1rem;\n border: 0.0625rem dashed ${borderColor};\n `;\n};\n\nexport const StyledTaskIcon = styled.div<StyledTaskIconProps>(({ variant, theme }) => {\n return css`\n ${styleTaskIcon(variant, theme)}\n `;\n});\n\nexport const StyledTaskSummaryItem = styled.li<StyledTaskIconProps>(({ variant, theme }) => {\n const {\n base: { spacing }\n } = theme;\n return css`\n min-height: 2.5rem;\n padding: ${spacing} 0;\n > ${StyledVisual} {\n ${styleTaskIcon(variant, theme)}\n }\n &:not(:last-child) {\n border-bottom: 0.0625rem solid ${theme.base.palette['border-line']};\n }\n `;\n});\n\nStyledTaskSummaryItem.defaultProps = defaultThemeProp;\n\nexport const StyledTaskDrawerSummaryItem = styled.div``;\ninterface StyledTaskDrawerBareButtonProps extends StyledTaskIconProps {\n active?: boolean;\n}\n\nexport const StyledTaskDrawerBareButton = styled(BareButton)<StyledTaskDrawerBareButtonProps>(\n ({\n variant,\n active = false,\n theme,\n theme: {\n base: {\n palette: { 'border-line': borderLine }\n }\n }\n }) => {\n const primaryColor = theme.base.palette.interactive;\n return css`\n white-space: nowrap;\n border-bottom: 0.1rem solid ${borderLine};\n position: relative;\n width: 100%;\n text-align: left;\n min-height: 3.45rem;\n outline: none;\n background-color: ${active &&\n css`\n ${theme.base.colors.white}\n `};\n\n & + & {\n margin-inline-start: 0;\n }\n\n &::before {\n content: '';\n display: ${active ? 'block' : 'none'};\n background: ${primaryColor};\n position: absolute;\n width: 0.25rem;\n height: 100%;\n top: 0;\n left: 0;\n }\n\n &::after {\n content: '';\n display: ${active ? 'block' : 'none'};\n position: absolute;\n width: 0.0625rem;\n top: 0;\n height: 100%;\n right: -0.0625rem;\n background-color: ${active &&\n css`\n ${theme.base.colors.white}\n `};\n }\n\n &:not(:first-child):not(:last-child)::before,\n &:not(:first-child):not(:last-child)::after {\n height: calc(100% + 0.0625rem);\n }\n\n > ${StyledTaskDrawerSummaryItem} {\n overflow-x: hidden;\n }\n\n > ${StyledTaskDrawerSummaryItem} > ${StyledVisual} {\n ${styleTaskIcon(variant, theme)}\n ${active &&\n css`\n background: ${theme.base.palette.interactive};\n color: ${theme.base.colors.white};\n `}\n }\n\n &:hover,\n &:focus {\n background: ${theme.base.colors.white};\n }\n `;\n }\n);\n\nStyledTaskDrawerBareButton.defaultProps = defaultThemeProp;\n\nexport const StyledTasksTabList = styled.div``;\nexport const StyledStickyCardHeader = styled(StyledCardHeader)``;\n\ninterface StyledTaskManagerProps {\n hasDrawer?: boolean;\n}\n\nexport const TASK_DRAWER_COLLAPSED_WIDTH = '4rem';\n\nexport const StyledTaskManager = styled.div<StyledTaskManagerProps>(\n ({\n hasDrawer = true,\n theme: {\n base: { animation }\n },\n theme\n }) => {\n const primaryBackgroundColor = theme.base.palette['primary-background'];\n const primaryColor = theme.base.palette.interactive;\n const lightenedColor = tryCatch(() => transparentize(0.5, primaryColor)) ?? '';\n\n return css`\n background: ${primaryBackgroundColor};\n position: relative;\n border-radius: 0.5rem;\n padding-left: calc(${hasDrawer ? 8 : 0} * ${theme.base.spacing});\n\n ${StyledStatus} {\n line-height: calc(${theme.base.spacing} * 2);\n height: calc(${theme.base.spacing} * 2);\n font-size: 0.7rem;\n }\n\n ${StyledTaskDrawerWrapper} {\n background-color: ${theme.base.colors.gray.light};\n border-right: 0.0625rem solid ${theme.base.palette['border-line']};\n position: absolute;\n z-index: 10;\n top: 0;\n bottom: 0;\n left: 0;\n width: ${TASK_DRAWER_COLLAPSED_WIDTH};\n transition: width ${animation.speed} ${animation.timing.ease};\n will-change: width;\n border-bottom-left-radius: 0.5rem;\n\n &:hover,\n &:focus-within {\n width: 25rem;\n transition-delay: 0.25s;\n }\n }\n\n ${StyledTaskDrawerWrapper} > ${StyledTaskDrawer} {\n position: sticky;\n z-index: 2;\n top: 0;\n bottom: 0;\n left: 0;\n width: 100%;\n }\n\n ${StyledTasksTabList} {\n ${StyledTaskDrawerBareButton} {\n margin-inline-start: 0;\n &:hover,\n &:focus {\n ::before {\n display: block;\n background-color: ${lightenedColor};\n }\n }\n }\n }\n ${StyledTaskDrawerBareButton} {\n > ${StyledTaskDrawerSummaryItem} > ${StyledVisual} {\n margin: 0 calc(2 * ${theme.base.spacing});\n }\n }\n\n ${StyledStickyCardHeader} {\n position: sticky;\n top: 0;\n left: 0;\n background: ${primaryBackgroundColor};\n z-index: 6;\n height: calc(3.5rem - 0.0625rem);\n border-bottom: 0.0625rem solid ${theme.base.palette['border-line']};\n margin-bottom: ${theme.base.spacing};\n }\n `;\n }\n);\n\nStyledTaskManager.defaultProps = defaultThemeProp;\n\nexport const StyledTaskManagerBanner = styled.div(({ theme }) => {\n return css`\n padding: calc(1.5 * ${theme.base.spacing});\n color: ${theme.base.colors.orange.medium};\n border-radius: ${theme.base['border-radius']} ${theme.base['border-radius']} 0 0;\n background-color: ${theme.base.colors.gray['extra-light']};\n\n & + ${StyledTaskManager} {\n box-shadow: ${theme.base.shadow.low};\n margin-block-start: 0;\n }\n `;\n});\n\nStyledTaskManagerBanner.defaultProps = defaultThemeProp;\n\nexport const StyledPopover = styled(Popover)(({ theme }) => {\n return css`\n width: 20rem;\n border-radius: ${theme.base['border-radius']};\n `;\n});\n\nStyledPopover.defaultProps = defaultThemeProp;\n\nexport default StyledTaskManager;\n"]}
1
+ {"version":3,"file":"TaskManager.styles.js","sourceRoot":"","sources":["../../../src/components/TaskManager/TaskManager.styles.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,EAAE,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAChD,OAAO,EAAE,GAAG,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAE/C,OAAO,EACL,gBAAgB,EAChB,UAAU,EACV,OAAO,EACP,QAAQ,EACR,MAAM,EACN,UAAU,EACV,gBAAgB,EAChB,UAAU,EACX,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,gBAAgB,EAAE,MAAM,wDAAwD,CAAC;AAC1F,OAAO,EAAE,iBAAiB,EAAE,MAAM,yDAAyD,CAAC;AAC5F,OAAO,EAAE,YAAY,EAAE,MAAM,sDAAsD,CAAC;AACpF,OAAO,EAAE,YAAY,EAAE,MAAM,gEAAgE,CA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AAK,EAAE,EAAE,EAAE;IACzD,OAAO,GAAG,CAAA;;qBAES,KAAK,CAAC,IAAI,CAAC,eAAe,CAAC;GAC7C,CAAC;AACJ,CAAC,CAAC,CAAC;AAEH,aAAa,CAAC,YAAY,GAAG,gBAAgB,CAAC;AAE9C,eAAe,iBAAiB,CAAC","sourcesContent":["import styled, { css } from 'styled-components';\nimport { mix, transparentize } from 'polished';\n\nimport {\n defaultThemeProp,\n MenuButton,\n Popover,\n tryCatch,\n Status,\n StyledCard,\n StyledEmptyState,\n StyledFlex\n} from '@pega/cosmos-react-core';\nimport { StyledCardHeader } from '@pega/cosmos-react-core/lib/components/Card/CardHeader';\nimport { StyledCardContent } from '@pega/cosmos-react-core/lib/components/Card/CardContent';\nimport { StyledStatus } from '@pega/cosmos-react-core/lib/components/Badges/Status';\nimport { StyledVisual } from '@pega/cosmos-react-core/lib/components/SummaryItem/SummaryItem';\n\nimport { TaskManagerTabProps } from './TaskManager.types';\n\nexport const StyledTaskMain = styled.div``;\nexport const StyledTaskManagerTabsSummaryItem = styled.div``;\n\nexport const StyledTaskManagerTabs = styled.div(({ theme }) => {\n return css`\n background-color: ${theme.base.palette['secondary-background']};\n\n ::before {\n content: '';\n border-block-end: 0.0625rem solid ${theme.base.palette['border-line']};\n height: 0.0625rem;\n width: 100%;\n position: absolute;\n inset-block-end: 0;\n }\n `;\n});\n\nStyledTaskManagerTabs.defaultProps = defaultThemeProp;\n\nexport const StyledTaskSummaryItem = styled.li(({ theme }) => {\n const {\n base: { spacing }\n } = theme;\n return css`\n min-height: 2.5rem;\n padding: ${spacing};\n &:not(:last-child) {\n border-block-end: 0.0625rem solid ${theme.base.palette['border-line']};\n }\n `;\n});\n\nStyledTaskSummaryItem.defaultProps = defaultThemeProp;\n\nexport const StyleTaskName = styled.span(() => {\n return css`\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n `;\n});\n\nexport const StyledTaskStatus = styled(Status)(({ theme }) => {\n return css`\n margin-block-start: calc(0.25 * ${theme.base.spacing});\n `;\n});\n\nStyleTaskName.defaultProps = defaultThemeProp;\nStyledTaskStatus.defaultProps = defaultThemeProp;\n\nexport const StyledTaskManagerTab = styled.li<TaskManagerTabProps>(({ active = false, theme }) => {\n const hoverColor = tryCatch(() =>\n mix(0.85, theme.base.palette['primary-background'], theme.base.palette.interactive)\n );\n return css`\n max-width: 20rem;\n min-width: 18rem;\n white-space: nowrap;\n border-inline-end: 0.065rem solid ${theme.base.palette['border-line']};\n text-align: start;\n outline: none;\n overflow: hidden;\n display: flex;\n align-items: center;\n position: relative;\n flex: 1;\n min-height: 2.5rem;\n cursor: pointer;\n padding-block: calc(0.5 * ${theme.base.spacing});\n padding-inline: calc(2 * ${theme.base.spacing}) calc(1 * ${theme.base.spacing});\n background-color: ${active &&\n css`\n ${theme.base.palette['primary-background']};\n `};\n\n & + & {\n margin-inline-start: 0;\n }\n\n > ${StyledTaskManagerTabsSummaryItem} {\n overflow-x: hidden;\n }\n\n > ${StyledTaskManagerTabsSummaryItem} > ${StyledVisual} {\n ${active &&\n css`\n background: ${theme.base.palette.interactive};\n color: ${theme.base.colors.white};\n `}\n }\n ${active &&\n css`\n ::after {\n position: absolute;\n content: '';\n height: 0.0625rem;\n width: 100%;\n background-color: ${theme.base.palette['primary-background']};\n inset-inline-start: 0;\n inset-block-end: 0;\n }\n `}\n\n &:hover,\n &:focus {\n background-color: ${hoverColor};\n ::after {\n background-color: ${hoverColor};\n }\n box-shadow: none;\n }\n &:focus {\n box-shadow: inset ${theme.base.shadow.focus};\n }\n\n > ${StyledFlex} {\n max-width: 100%;\n }\n `;\n});\n\nStyledTaskManagerTab.defaultProps = defaultThemeProp;\n\nexport const StyledTasksTabList = styled.ul(({ theme }) => {\n const primaryColor = theme.base.palette.interactive;\n const lightenedColor = tryCatch(() => transparentize(0.5, primaryColor)) ?? '';\n return css`\n position: relative;\n display: flex;\n flex-grow: 1;\n overflow: scroll;\n -ms-overflow-style: none;\n &::-webkit-scrollbar {\n display: none;\n }\n scrollbar-width: none;\n ${StyledTaskManagerTab} {\n margin-inline-start: 0;\n &:hover,\n &:focus {\n ::before {\n display: block;\n background-color: ${lightenedColor};\n }\n }\n }\n `;\n});\n\nStyledTasksTabList.defaultProps = defaultThemeProp;\n\nexport const StyledStickyCardHeader = styled(StyledCardHeader)(({ theme }) => {\n const primaryBackgroundColor = theme.base.palette['primary-background'];\n return css`\n inset-block-start: 0;\n inset-inline-start: 0;\n background: ${primaryBackgroundColor};\n height: calc(3.5rem - 0.0625rem);\n border-block-end: 0.0625rem solid ${theme.base.palette['border-line']};\n `;\n});\nexport const StyledOverflowTabMenu = styled(MenuButton)(({ theme }) => {\n return css`\n border-radius: 0;\n display: inline-block;\n position: relative;\n inset-inline-end: 0;\n inset-block-start: 0;\n align-self: stretch;\n margin-inline-start: auto;\n background-color: ${theme.base.palette['secondary-background']};\n border-block-end: 0.0625rem solid ${theme.base.palette['border-line']};\n padding: 0 ${theme.base.spacing};\n `;\n});\n\nStyledStickyCardHeader.defaultProps = defaultThemeProp;\nStyledOverflowTabMenu.defaultProps = defaultThemeProp;\n\ninterface StyledTaskManagerProps {\n hasDrawer?: boolean;\n}\n\nexport const StyledTaskManager = styled.div<StyledTaskManagerProps>(({ theme }) => {\n const primaryBackgroundColor = theme.base.palette['primary-background'];\n return css`\n background: ${primaryBackgroundColor};\n position: relative;\n border-radius: 0 0 0.5rem 0.5rem;\n\n ${StyledStatus} {\n line-height: calc(${theme.base.spacing} * 2);\n height: calc(${theme.base.spacing} * 2);\n font-size: 0.7rem;\n }\n\n ${StyledCardContent} {\n &:not(${StyledCard} ${StyledCard} > &) {\n padding: 0;\n }\n }\n ${StyledTaskMain} {\n padding: 0 calc(2 * ${theme.base.spacing}) calc(2 * ${theme.base.spacing});\n ${StyledCardHeader} {\n padding: ${theme.base.spacing} 0;\n margin-block-end: ${theme.base.spacing};\n }\n }\n ${StyledEmptyState} {\n padding: calc(2 * ${theme.base.spacing});\n }\n ${StyledTaskManagerTabs} {\n position: relative;\n }\n ${StyledTaskManagerTab} {\n > ${StyledTaskManagerTabsSummaryItem} > ${StyledVisual} {\n margin: 0 calc(2 * ${theme.base.spacing});\n }\n }\n `;\n});\n\nStyledTaskManager.defaultProps = defaultThemeProp;\n\nexport const StyledTaskManagerBanner = styled.div(({ theme }) => {\n return css`\n padding: calc(1.5 * ${theme.base.spacing});\n color: ${theme.base.colors.orange.medium};\n border-radius: ${theme.base['border-radius']} ${theme.base['border-radius']} 0 0;\n background-color: ${theme.base.colors.gray['extra-light']};\n gap: ${theme.base.spacing};\n\n & + ${StyledTaskManager} {\n margin-block-start: 0;\n }\n `;\n});\n\nStyledTaskManagerBanner.defaultProps = defaultThemeProp;\n\nexport const StyledPopover = styled(Popover)(({ theme }) => {\n return css`\n width: 35rem;\n border-radius: ${theme.base['border-radius']};\n `;\n});\n\nStyledPopover.defaultProps = defaultThemeProp;\n\nexport default StyledTaskManager;\n"]}
@@ -5,12 +5,12 @@ export interface TaskManagerProps extends BaseProps {
5
5
  ref?: Ref<HTMLDivElement>;
6
6
  /** List of tasks */
7
7
  tasks?: TaskProps[];
8
- /** Empty text to be shown when no tasks are adedd */
8
+ /** Empty text to be shown when no tasks are added */
9
9
  emptyText?: string;
10
10
  /** Callback when task is launched */
11
- onLaunchTask?: (id: TaskProps['id']) => void;
11
+ onTaskLaunch?: (id: TaskProps['id']) => void;
12
12
  /** Callback when task is dismissed. Applicable only when task is not launched previously */
13
- onDismissTask?: (id: TaskProps['id']) => void;
13
+ onTaskDismiss?: (id: TaskProps['id']) => void;
14
14
  /** Add task utility */
15
15
  addTask?: Pick<PickerProps, 'items' | 'onAdd' | 'ref'>;
16
16
  /** Banner for the task manager */
@@ -26,13 +26,19 @@ export interface TaskManagerProps extends BaseProps {
26
26
  onWrapUp: () => void;
27
27
  /** Determines if wrap up is active */
28
28
  active?: boolean;
29
+ /** Determines if wrap up tab should be shown or not */
30
+ showTab?: boolean;
29
31
  };
30
32
  /** Selected task content */
31
33
  main?: ReactNode;
32
34
  }
33
- export interface TaskDrawerProps {
35
+ export interface TaskManagerTabsProps {
34
36
  ref?: Ref<HTMLDivElement>;
35
37
  }
38
+ export interface TaskManagerTabProps {
39
+ active?: boolean;
40
+ variant?: string;
41
+ }
36
42
  export interface TaskViewProps extends BaseProps {
37
43
  ref?: Ref<HTMLDivElement>;
38
44
  /** Task header */
@@ -42,7 +48,7 @@ export interface TaskViewProps extends BaseProps {
42
48
  /** Task form content */
43
49
  children: ReactNode;
44
50
  }
45
- export interface TaskManagerContextProps extends Pick<TaskManagerProps, 'tasks' | 'addTask' | 'onLaunchTask' | 'wrapUp'> {
51
+ export interface TaskManagerContextProps extends Pick<TaskManagerProps, 'tasks' | 'addTask' | 'onTaskLaunch' | 'wrapUp'> {
46
52
  }
47
53
  export interface TaskProps {
48
54
  /** Unique id for tasks list */
@@ -56,7 +62,7 @@ export interface TaskProps {
56
62
  /** Determines the active task */
57
63
  active?: boolean;
58
64
  /** Variant of the task */
59
- variant: 'suggested' | 'queued' | 'in-progress' | 'resolved';
65
+ variant: 'suggested' | 'queued' | 'in-progress' | 'resolved' | 'cancelled' | 'open';
60
66
  /** Represents the current status of task(like resolved-completed, InProgress etc) */
61
67
  status?: {
62
68
  /** Status text */
@@ -1 +1 @@
1
- {"version":3,"file":"TaskManager.types.d.ts","sourceRoot":"","sources":["../../../src/components/TaskManager/TaskManager.types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AAEvC,OAAO,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAEjE,OAAO,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AAEpD,MAAM,WAAW,gBAAiB,SAAQ,SAAS;IACjD,GAAG,CAAC,EAAE,GAAG,CAAC,cAAc,CAAC,CAAC;IAC1B,oBAAoB;IACpB,KAAK,CAAC,EAAE,SAAS,EAAE,CAAC;IACpB,qDAAqD;IACrD,SAAS,CA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AA4C;IAC5C,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,mEAAmE;IACnE,IAAI,EAAE,MAAM,CAAC;IACb,iCAAiC;IACjC,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,0BAA0B;IAC1B,OAAO,EAAE,WAAW,GAAG,QAAQ,GAAG,aAAa,GAAG,UAAU,CAAC;IAC7D,qFAAqF;IACrF,MAAM,CAAC,EAAE;QACP,kBAAkB;QAClB,IAAI,EAAE,MAAM,CAAC;QACb,qBAAqB;QACrB,OAAO,EAAE,WAAW,CAAC,SAAS,CAAC,CAAC;KACjC,CAAC;CACH"}
1
+ {"version":3,"file":"TaskManager.types.d.ts","sourceRoot":"","sources":["../../../src/components/TaskManager/TaskManager.types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AAEvC,OAAO,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAEjE,OAAO,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AAEpD,MAAM,WAAW,gBAAiB,SAAQ,SAAS;IACjD,GAAG,CAAC,EAAE,GAAG,CAAC,cAAc,CAAC,CAAC;IAC1B,oBAAoB;IACpB,KAAK,CAAC,EAAE,SAAS,EAAE,CAAC;IACpB,qDAAqD;IACrD,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,qCAAqC;IACrC,YAAY,CAAC,EAAE,CAAC,EAAE,EAAE,SAAS,CAAC,IAAI,CAAC,KAAK,IAAI,CAAC;IAC7C,4FAA4F;IAC5F,aAAa,CAAC,EAAE,CAAC,EAAE,EAAE,SAAS,CAAC,IAAI,CAAC,KAAK,IAAI,CAAC;IAC9C,uBAAuB;IACvB,OAAO,CAAC,EAAE,IAAI,CAAC,WAAW,EAAE,OAAO,GAAG,OAAO,GAAG,KAAK,CAAC,CAAC;IACvD,kCAAkC;IAClC,MAAM,CAAC,EAAE;QACP,0BAA0B;QAC1B,IAAI,EAAE,MA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pF,qFAAqF;IACrF,MAAM,CAAC,EAAE;QACP,kBAAkB;QAClB,IAAI,EAAE,MAAM,CAAC;QACb,qBAAqB;QACrB,OAAO,EAAE,WAAW,CAAC,SAAS,CAAC,CAAC;KACjC,CAAC;CACH"}
@@ -1 +1 @@
1
- {"version":3,"file":"TaskManager.types.js","sourceRoot":"","sources":["../../../src/components/TaskManager/TaskManager.types.ts"],"names":[],"mappings":"","sourcesContent":["import { ReactNode, Ref } from 'react';\n\nimport { BaseProps, StatusProps } from '@pega/cosmos-react-core';\n\nimport { PickerProps } from './Picker/Picker.types';\n\nexport interface TaskManagerProps extends BaseProps {\n ref?: Ref<HTMLDivElement>;\n /** List of tasks */\n tasks?: TaskProps[];\n /** Empty text to be shown when no tasks are adedd */\n emptyText?: string;\n /** Callback when task is launched */\n onLaunchTask?: (id: TaskProps['id']) => void;\n /** Callback when task is dismissed. Applicable only when task is not launched previously */\n onDismissTask?: (id: TaskProps['id']) => void;\n /** Add task utility */\n addTask?: Pick<PickerProps, 'items' | 'onAdd' | 'ref'>;\n /** Banner for the task manager */\n banner?: {\n /** Icon for the banner */\n icon: string;\n /** Banner content */\n content: string;\n };\n /** Shows wrap up action when passed */\n wrapUp?: {\n /** Callback when wrap up is performed */\n onWrapUp: () => void;\n /** Determines if wrap up is active */\n active?: boolean;\n };\n /** Selected task content */\n main?: ReactNode;\n}\n\nexport interface TaskDrawerProps {\n ref?: Ref<HTMLDivElement>;\n}\n\nexport interface TaskViewProps extends BaseProps {\n ref?: Ref<HTMLDivElement>;\n /** Task header */\n header: ReactNode;\n /** Task specific actions */\n actions?: ReactNode;\n /** Task form content */\n children: ReactNode;\n}\n\nexport interface TaskManagerContextProps\n extends Pick<TaskManagerProps, 'tasks' | 'addTask' | 'onLaunchTask' | 'wrapUp'> {}\n\nexport interface TaskProps {\n /** Unique id for tasks list */\n id: string;\n /** Name of the task */\n name: string;\n /** Meta info of the task ex: Queued task */\n meta?: string;\n /** Name of the icon (to be selected from default Pega icon set) */\n icon: string;\n /** Determines the active task */\n active?: boolean;\n /** Variant of the task */\n variant: 'suggested' | 'queued' | 'in-progress' | 'resolved';\n /** Represents the current status of task(like resolved-completed, InProgress etc) */\n status?: {\n /** Status text */\n text: string;\n /** Status variant */\n variant: StatusProps['variant'];\n };\n}\n"]}
1
+ {"version":3,"file":"TaskManager.types.js","sourceRoot":"","sources":["../../../src/components/TaskManager/TaskManager.types.ts"],"names":[],"mappings":"","sourcesContent":["import { ReactNode, Ref } from 'react';\n\nimport { BaseProps, StatusProps } from '@pega/cosmos-react-core';\n\nimport { PickerProps } from './Picker/Picker.types';\n\nexport interface TaskManagerProps extends BaseProps {\n ref?: Ref<HTMLDivElement>;\n /** List of tasks */\n tasks?: TaskProps[];\n /** Empty text to be shown when no tasks are added */\n emptyText?: string;\n /** Callback when task is launched */\n onTaskLaunch?: (id: TaskProps['id']) => void;\n /** Callback when task is dismissed. Applicable only when task is not launched previously */\n onTaskDismiss?: (id: TaskProps['id']) => void;\n /** Add task utility */\n addTask?: Pick<PickerProps, 'items' | 'onAdd' | 'ref'>;\n /** Banner for the task manager */\n banner?: {\n /** Icon for the banner */\n icon: string;\n /** Banner content */\n content: string;\n };\n /** Shows wrap up action when passed */\n wrapUp?: {\n /** Callback when wrap up is performed */\n onWrapUp: () => void;\n /** Determines if wrap up is active */\n active?: boolean;\n /** Determines if wrap up tab should be shown or not */\n showTab?: boolean;\n };\n /** Selected task content */\n main?: ReactNode;\n}\n\nexport interface TaskManagerTabsProps {\n ref?: Ref<HTMLDivElement>;\n}\n\nexport interface TaskManagerTabProps {\n active?: boolean;\n variant?: string;\n}\nexport interface TaskViewProps extends BaseProps {\n ref?: Ref<HTMLDivElement>;\n /** Task header */\n header: ReactNode;\n /** Task specific actions */\n actions?: ReactNode;\n /** Task form content */\n children: ReactNode;\n}\n\nexport interface TaskManagerContextProps\n extends Pick<TaskManagerProps, 'tasks' | 'addTask' | 'onTaskLaunch' | 'wrapUp'> {}\n\nexport interface TaskProps {\n /** Unique id for tasks list */\n id: string;\n /** Name of the task */\n name: string;\n /** Meta info of the task ex: Queued task */\n meta?: string;\n /** Name of the icon (to be selected from default Pega icon set) */\n icon: string;\n /** Determines the active task */\n active?: boolean;\n /** Variant of the task */\n variant: 'suggested' | 'queued' | 'in-progress' | 'resolved' | 'cancelled' | 'open';\n /** Represents the current status of task(like resolved-completed, InProgress etc) */\n status?: {\n /** Status text */\n text: string;\n /** Status variant */\n variant: StatusProps['variant'];\n };\n}\n"]}
@@ -0,0 +1,6 @@
1
+ import { FunctionComponent } from 'react';
2
+ import { ForwardProps } from '@pega/cosmos-react-core';
3
+ import { TaskManagerTabsProps } from './TaskManager.types';
4
+ declare const TaskManagerTabs: FunctionComponent<TaskManagerTabsProps & ForwardProps>;
5
+ export default TaskManagerTabs;
6
+ //# sourceMappingURL=TaskManagerTabs.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TaskManagerTabs.d.ts","sourceRoot":"","sources":["../../../src/components/TaskManager/TaskManagerTabs.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,iBAAiB,EAYlB,MAAM,OAAO,CAAC;AAEf,OAAO,EAAQ,YAAY,EAAgB,MAAM,yBAAyB,CAAC;AAY3E,OAAO,EAAE,oBAAoB,EAAE,MAAM,qBAAqB,CAAC;AAE3D,QAAA,MAAM,eAAe,EAAE,iBAAiB,CAAC,oBAAoB,GAAG,YAAY,CA0N3E,CAAC;AAEF,eAAe,eAAe,CAAC"}