@pega/cosmos-react-cs 5.0.0-dev.4.9 → 5.0.0-dev.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (201) hide show
  1. package/lib/components/CTIPanel/CTIPanel.d.ts +13 -0
  2. package/lib/components/CTIPanel/CTIPanel.d.ts.map +1 -0
  3. package/lib/components/CTIPanel/CTIPanel.js +12 -0
  4. package/lib/components/CTIPanel/CTIPanel.js.map +1 -0
  5. package/lib/components/CTIPanel/index.d.ts +2 -0
  6. package/lib/components/CTIPanel/index.d.ts.map +1 -0
  7. package/lib/components/CTIPanel/index.js +2 -0
  8. package/lib/components/CTIPanel/index.js.map +1 -0
  9. package/lib/components/CallControlPanel/AttachInteractionDialog.d.ts +47 -0
  10. package/lib/components/CallControlPanel/AttachInteractionDialog.d.ts.map +1 -0
  11. package/lib/components/CallControlPanel/AttachInteractionDialog.js +54 -0
  12. package/lib/components/CallControlPanel/AttachInteractionDialog.js.map +1 -0
  13. package/lib/components/CallControlPanel/Call.d.ts +6 -0
  14. package/lib/components/CallControlPanel/Call.d.ts.map +1 -0
  15. package/lib/components/CallControlPanel/Call.js +145 -0
  16. package/lib/components/CallControlPanel/Call.js.map +1 -0
  17. package/lib/components/CallControlPanel/CallControlPanel.d.ts +6 -0
  18. package/lib/components/CallControlPanel/CallControlPanel.d.ts.map +1 -0
  19. package/lib/components/CallControlPanel/CallControlPanel.js +61 -0
  20. package/lib/components/CallControlPanel/CallControlPanel.js.map +1 -0
  21. package/lib/components/CallControlPanel/CallControlPanel.styles.d.ts +16 -0
  22. package/lib/components/CallControlPanel/CallControlPanel.styles.d.ts.map +1 -0
  23. package/lib/components/CallControlPanel/CallControlPanel.styles.js +105 -0
  24. package/lib/components/CallControlPanel/CallControlPanel.styles.js.map +1 -0
  25. package/lib/components/CallControlPanel/CallControlPanel.types.d.ts +120 -0
  26. package/lib/components/CallControlPanel/CallControlPanel.types.d.ts.map +1 -0
  27. package/lib/components/CallControlPanel/CallControlPanel.types.js +2 -0
  28. package/lib/components/CallControlPanel/CallControlPanel.types.js.map +1 -0
  29. package/lib/components/CallControlPanel/CallControlPanelIcon.d.ts +15 -0
  30. package/lib/components/CallControlPanel/CallControlPanelIcon.d.ts.map +1 -0
  31. package/lib/components/CallControlPanel/CallControlPanelIcon.js +81 -0
  32. package/lib/components/CallControlPanel/CallControlPanelIcon.js.map +1 -0
  33. package/lib/components/CallControlPanel/CallHandover/CallHandover.types.d.ts +17 -0
  34. package/lib/components/CallControlPanel/CallHandover/CallHandover.types.d.ts.map +1 -0
  35. package/lib/components/CallControlPanel/CallHandover/CallHandover.types.js +2 -0
  36. package/lib/components/CallControlPanel/CallHandover/CallHandover.types.js.map +1 -0
  37. package/lib/components/CallControlPanel/CallHandover/CallHandoverDialog.d.ts +16 -0
  38. package/lib/components/CallControlPanel/CallHandover/CallHandoverDialog.d.ts.map +1 -0
  39. package/lib/components/CallControlPanel/CallHandover/CallHandoverDialog.js +56 -0
  40. package/lib/components/CallControlPanel/CallHandover/CallHandoverDialog.js.map +1 -0
  41. package/lib/components/CallControlPanel/CallHandover/CallHandoverForm.d.ts +31 -0
  42. package/lib/components/CallControlPanel/CallHandover/CallHandoverForm.d.ts.map +1 -0
  43. package/lib/components/CallControlPanel/CallHandover/CallHandoverForm.js +60 -0
  44. package/lib/components/CallControlPanel/CallHandover/CallHandoverForm.js.map +1 -0
  45. package/lib/components/CallControlPanel/CallHandover/index.d.ts +4 -0
  46. package/lib/components/CallControlPanel/CallHandover/index.d.ts.map +1 -0
  47. package/lib/components/CallControlPanel/CallHandover/index.js +4 -0
  48. package/lib/components/CallControlPanel/CallHandover/index.js.map +1 -0
  49. package/lib/components/CallControlPanel/ContactList/CalleePicker.d.ts +18 -0
  50. package/lib/components/CallControlPanel/ContactList/CalleePicker.d.ts.map +1 -0
  51. package/lib/components/CallControlPanel/ContactList/CalleePicker.js +54 -0
  52. package/lib/components/CallControlPanel/ContactList/CalleePicker.js.map +1 -0
  53. package/lib/components/CallControlPanel/ContactList/ContactList.d.ts +10 -0
  54. package/lib/components/CallControlPanel/ContactList/ContactList.d.ts.map +1 -0
  55. package/lib/components/CallControlPanel/ContactList/ContactList.js +129 -0
  56. package/lib/components/CallControlPanel/ContactList/ContactList.js.map +1 -0
  57. package/lib/components/CallControlPanel/ContactList/ContactList.types.d.ts +30 -0
  58. package/lib/components/CallControlPanel/ContactList/ContactList.types.d.ts.map +1 -0
  59. package/lib/components/CallControlPanel/ContactList/ContactList.types.js +2 -0
  60. package/lib/components/CallControlPanel/ContactList/ContactList.types.js.map +1 -0
  61. package/lib/components/CallControlPanel/ContactList/index.d.ts +3 -0
  62. package/lib/components/CallControlPanel/ContactList/index.d.ts.map +1 -0
  63. package/lib/components/CallControlPanel/ContactList/index.js +2 -0
  64. package/lib/components/CallControlPanel/ContactList/index.js.map +1 -0
  65. package/lib/components/CallControlPanel/ExternalCTI.d.ts +24 -0
  66. package/lib/components/CallControlPanel/ExternalCTI.d.ts.map +1 -0
  67. package/lib/components/CallControlPanel/ExternalCTI.js +48 -0
  68. package/lib/components/CallControlPanel/ExternalCTI.js.map +1 -0
  69. package/lib/components/CallControlPanel/FloatingPanel.d.ts +36 -0
  70. package/lib/components/CallControlPanel/FloatingPanel.d.ts.map +1 -0
  71. package/lib/components/CallControlPanel/FloatingPanel.js +72 -0
  72. package/lib/components/CallControlPanel/FloatingPanel.js.map +1 -0
  73. package/lib/components/CallControlPanel/IncomingCall.d.ts +6 -0
  74. package/lib/components/CallControlPanel/IncomingCall.d.ts.map +1 -0
  75. package/lib/components/CallControlPanel/IncomingCall.js +18 -0
  76. package/lib/components/CallControlPanel/IncomingCall.js.map +1 -0
  77. package/lib/components/CallControlPanel/StopWatch.d.ts +11 -0
  78. package/lib/components/CallControlPanel/StopWatch.d.ts.map +1 -0
  79. package/lib/components/CallControlPanel/StopWatch.js +28 -0
  80. package/lib/components/CallControlPanel/StopWatch.js.map +1 -0
  81. package/lib/components/CallControlPanel/index.d.ts +5 -0
  82. package/lib/components/CallControlPanel/index.d.ts.map +1 -0
  83. package/lib/components/CallControlPanel/index.js +3 -0
  84. package/lib/components/CallControlPanel/index.js.map +1 -0
  85. package/lib/components/CallControlPanel/utils.d.ts +7 -0
  86. package/lib/components/CallControlPanel/utils.d.ts.map +1 -0
  87. package/lib/components/CallControlPanel/utils.js +34 -0
  88. package/lib/components/CallControlPanel/utils.js.map +1 -0
  89. package/lib/components/DialPad/DialPad.d.ts +18 -0
  90. package/lib/components/DialPad/DialPad.d.ts.map +1 -0
  91. package/lib/components/DialPad/DialPad.js +30 -0
  92. package/lib/components/DialPad/DialPad.js.map +1 -0
  93. package/lib/components/DialPad/DialPad.types.d.ts +33 -0
  94. package/lib/components/DialPad/DialPad.types.d.ts.map +1 -0
  95. package/lib/components/DialPad/DialPad.types.js +2 -0
  96. package/lib/components/DialPad/DialPad.types.js.map +1 -0
  97. package/lib/components/DialPad/DialPadDialog.d.ts +9 -0
  98. package/lib/components/DialPad/DialPadDialog.d.ts.map +1 -0
  99. package/lib/components/DialPad/DialPadDialog.js +35 -0
  100. package/lib/components/DialPad/DialPadDialog.js.map +1 -0
  101. package/lib/components/DialPad/DialPadKeyboard.d.ts +12 -0
  102. package/lib/components/DialPad/DialPadKeyboard.d.ts.map +1 -0
  103. package/lib/components/DialPad/DialPadKeyboard.js +89 -0
  104. package/lib/components/DialPad/DialPadKeyboard.js.map +1 -0
  105. package/lib/components/DialPad/DialPadKeyboard.styles.d.ts +5 -0
  106. package/lib/components/DialPad/DialPadKeyboard.styles.d.ts.map +1 -0
  107. package/lib/components/DialPad/DialPadKeyboard.styles.js +76 -0
  108. package/lib/components/DialPad/DialPadKeyboard.styles.js.map +1 -0
  109. package/lib/components/DialPad/KeyboardNavigation.d.ts +6 -0
  110. package/lib/components/DialPad/KeyboardNavigation.d.ts.map +1 -0
  111. package/lib/components/DialPad/KeyboardNavigation.js +156 -0
  112. package/lib/components/DialPad/KeyboardNavigation.js.map +1 -0
  113. package/lib/components/DialPad/index.d.ts +4 -0
  114. package/lib/components/DialPad/index.d.ts.map +1 -0
  115. package/lib/components/DialPad/index.js +3 -0
  116. package/lib/components/DialPad/index.js.map +1 -0
  117. package/lib/components/DialPad/utils.d.ts +4 -0
  118. package/lib/components/DialPad/utils.d.ts.map +1 -0
  119. package/lib/components/DialPad/utils.js +7 -0
  120. package/lib/components/DialPad/utils.js.map +1 -0
  121. package/lib/components/InteractionNotification/CountdownButton.d.ts +15 -0
  122. package/lib/components/InteractionNotification/CountdownButton.d.ts.map +1 -0
  123. package/lib/components/InteractionNotification/CountdownButton.js +42 -0
  124. package/lib/components/InteractionNotification/CountdownButton.js.map +1 -0
  125. package/lib/components/InteractionNotification/InteractionNotification.d.ts +35 -0
  126. package/lib/components/InteractionNotification/InteractionNotification.d.ts.map +1 -0
  127. package/lib/components/InteractionNotification/InteractionNotification.js +110 -0
  128. package/lib/components/InteractionNotification/InteractionNotification.js.map +1 -0
  129. package/lib/components/InteractionNotification/index.d.ts +2 -0
  130. package/lib/components/InteractionNotification/index.d.ts.map +1 -0
  131. package/lib/components/InteractionNotification/index.js +2 -0
  132. package/lib/components/InteractionNotification/index.js.map +1 -0
  133. package/lib/components/InteractionTimer/InteractionTimer.d.ts +29 -0
  134. package/lib/components/InteractionTimer/InteractionTimer.d.ts.map +1 -0
  135. package/lib/components/InteractionTimer/InteractionTimer.js +90 -0
  136. package/lib/components/InteractionTimer/InteractionTimer.js.map +1 -0
  137. package/lib/components/InteractionTimer/index.d.ts +3 -0
  138. package/lib/components/InteractionTimer/index.d.ts.map +1 -0
  139. package/lib/components/InteractionTimer/index.js +2 -0
  140. package/lib/components/InteractionTimer/index.js.map +1 -0
  141. package/lib/components/Picker/Picker.d.ts +6 -0
  142. package/lib/components/Picker/Picker.d.ts.map +1 -0
  143. package/lib/components/Picker/Picker.js +109 -0
  144. package/lib/components/Picker/Picker.js.map +1 -0
  145. package/lib/components/Picker/Picker.styles.d.ts +12 -0
  146. package/lib/components/Picker/Picker.styles.d.ts.map +1 -0
  147. package/lib/components/Picker/Picker.styles.js +59 -0
  148. package/lib/components/Picker/Picker.styles.js.map +1 -0
  149. package/lib/components/Picker/Picker.types.d.ts +35 -0
  150. package/lib/components/Picker/Picker.types.d.ts.map +1 -0
  151. package/lib/components/Picker/Picker.types.js +2 -0
  152. package/lib/components/Picker/Picker.types.js.map +1 -0
  153. package/lib/components/Picker/index.d.ts +2 -0
  154. package/lib/components/Picker/index.d.ts.map +1 -0
  155. package/lib/components/Picker/index.js +2 -0
  156. package/lib/components/Picker/index.js.map +1 -0
  157. package/lib/components/TaskManager/ConversationAI.d.ts +6 -0
  158. package/lib/components/TaskManager/ConversationAI.d.ts.map +1 -0
  159. package/lib/components/TaskManager/ConversationAI.js +29 -0
  160. package/lib/components/TaskManager/ConversationAI.js.map +1 -0
  161. package/lib/components/TaskManager/Dialogue.d.ts +6 -0
  162. package/lib/components/TaskManager/Dialogue.d.ts.map +1 -0
  163. package/lib/components/TaskManager/Dialogue.js +30 -0
  164. package/lib/components/TaskManager/Dialogue.js.map +1 -0
  165. package/lib/components/TaskManager/TaskManager.context.d.ts +5 -0
  166. package/lib/components/TaskManager/TaskManager.context.d.ts.map +1 -0
  167. package/lib/components/TaskManager/TaskManager.context.js +3 -0
  168. package/lib/components/TaskManager/TaskManager.context.js.map +1 -0
  169. package/lib/components/TaskManager/TaskManager.d.ts +6 -0
  170. package/lib/components/TaskManager/TaskManager.d.ts.map +1 -0
  171. package/lib/components/TaskManager/TaskManager.js +68 -0
  172. package/lib/components/TaskManager/TaskManager.js.map +1 -0
  173. package/lib/components/TaskManager/TaskManager.styles.d.ts +37 -0
  174. package/lib/components/TaskManager/TaskManager.styles.d.ts.map +1 -0
  175. package/lib/components/TaskManager/TaskManager.styles.js +325 -0
  176. package/lib/components/TaskManager/TaskManager.styles.js.map +1 -0
  177. package/lib/components/TaskManager/TaskManager.types.d.ts +98 -0
  178. package/lib/components/TaskManager/TaskManager.types.d.ts.map +1 -0
  179. package/lib/components/TaskManager/TaskManager.types.js +2 -0
  180. package/lib/components/TaskManager/TaskManager.types.js.map +1 -0
  181. package/lib/components/TaskManager/TaskManagerTabs.d.ts +6 -0
  182. package/lib/components/TaskManager/TaskManagerTabs.d.ts.map +1 -0
  183. package/lib/components/TaskManager/TaskManagerTabs.js +186 -0
  184. package/lib/components/TaskManager/TaskManagerTabs.js.map +1 -0
  185. package/lib/components/TaskManager/TaskPicker.d.ts +19 -0
  186. package/lib/components/TaskManager/TaskPicker.d.ts.map +1 -0
  187. package/lib/components/TaskManager/TaskPicker.js +89 -0
  188. package/lib/components/TaskManager/TaskPicker.js.map +1 -0
  189. package/lib/components/TaskManager/TaskView.d.ts +6 -0
  190. package/lib/components/TaskManager/TaskView.d.ts.map +1 -0
  191. package/lib/components/TaskManager/TaskView.js +10 -0
  192. package/lib/components/TaskManager/TaskView.js.map +1 -0
  193. package/lib/components/TaskManager/index.d.ts +5 -0
  194. package/lib/components/TaskManager/index.d.ts.map +1 -0
  195. package/lib/components/TaskManager/index.js +4 -0
  196. package/lib/components/TaskManager/index.js.map +1 -0
  197. package/lib/index.d.ts +13 -0
  198. package/lib/index.d.ts.map +1 -0
  199. package/lib/index.js +14 -0
  200. package/lib/index.js.map +1 -0
  201. package/package.json +3 -3
@@ -0,0 +1,37 @@
1
+ /// <reference types="react" />
2
+ import { TaskManagerTabProps, DialogueProps } from './TaskManager.types';
3
+ export declare const StyledTaskMain: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {
4
+ current: boolean;
5
+ }, never>;
6
+ export declare const StyledTaskManagerTabsSummaryItem: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
7
+ export declare const StyledHeader: import("styled-components").StyledComponent<import("react").FunctionComponent<import("@pega/cosmos-react-core").CardHeaderProps & import("@pega/cosmos-react-core").ForwardProps>, import("styled-components").DefaultTheme, {}, never>;
8
+ export declare const StyledTaskManagerTabs: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
9
+ export declare const StyledTaskSummaryItem: import("styled-components").StyledComponent<"li", import("styled-components").DefaultTheme, {}, never>;
10
+ export declare const StyleTaskName: import("styled-components").StyledComponent<"span", import("styled-components").DefaultTheme, {}, never>;
11
+ export declare const StyledTaskManagerTab: import("styled-components").StyledComponent<"li", import("styled-components").DefaultTheme, TaskManagerTabProps, never>;
12
+ export declare const StyledTasksTabList: import("styled-components").StyledComponent<"ul", import("styled-components").DefaultTheme, {}, never>;
13
+ export declare const StyledStickyCardHeader: import("styled-components").StyledComponent<"header", import("styled-components").DefaultTheme, import("@pega/cosmos-react-core").CardHeaderProps, never>;
14
+ export declare const StyledOverflowTabMenu: import("styled-components").StyledComponent<import("react").FunctionComponent<import("@pega/cosmos-react-core").ForwardProps & import("@pega/cosmos-react-core").MenuButtonProps> & {
15
+ getTestIds: (testIdProp?: string | undefined) => import("@pega/cosmos-react-core").TestIdsRecord<readonly []>;
16
+ }, import("styled-components").DefaultTheme, {}, never>;
17
+ interface StyledTaskManagerProps {
18
+ hasDrawer?: boolean;
19
+ hasTasks?: boolean;
20
+ }
21
+ export declare const StyledTaskManager: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, StyledTaskManagerProps, never>;
22
+ export declare const StyledTaskManagerBanner: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
23
+ export declare const StyledPopover: import("styled-components").StyledComponent<(<Modifiers extends string = string>(props: import("@pega/cosmos-react-core").PopoverProps<Modifiers> & import("@pega/cosmos-react-core").ForwardProps) => import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | null), import("styled-components").DefaultTheme, {}, never>;
24
+ export declare const StyledAgentScriptIcon: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("@pega/cosmos-react-core").IconProps>, import("styled-components").DefaultTheme, {}, never>;
25
+ export declare const StyledSymbol: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {
26
+ verbatimStatus?: DialogueProps['verbatimStatus'];
27
+ }, never>;
28
+ export declare const StyledIconWrap: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {
29
+ verbatimStatus?: DialogueProps['verbatimStatus'];
30
+ }, never>;
31
+ export declare const StyledCountBadge: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<Omit<import("@pega/cosmos-react-core").CountProps, "ref"> & import("react").RefAttributes<HTMLSpanElement>> & {
32
+ getTestIds: (testIdProp?: string | undefined) => import("@pega/cosmos-react-core").TestIdsRecord<readonly []>;
33
+ }, import("styled-components").DefaultTheme, {}, never>;
34
+ export declare const StyledEntityPopover: import("styled-components").StyledComponent<(<Modifiers extends string = string>(props: import("@pega/cosmos-react-core").PopoverProps<Modifiers> & import("@pega/cosmos-react-core").ForwardProps) => import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | null), import("styled-components").DefaultTheme, {}, never>;
35
+ export declare const StyledContent: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
36
+ export default StyledTaskManager;
37
+ //# sourceMappingURL=TaskManager.styles.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TaskManager.styles.d.ts","sourceRoot":"","sources":["../../../src/components/TaskManager/TaskManager.styles.ts"],"names":[],"mappings":";AAwBA,OAAO,EAAE,mBAAmB,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAEzE,eAAO,MAAM,cAAc;aAAyB,OAAO;SAOzD,CAAC;AAEH,eAAO,MAAM,gCAAgC,yGAAe,CAAC;AAC7D,eAAO,MAAM,YAAY,yOAAuB,CAAC;AAEjD,eAAO,MAAM,qBAAqB,yGAchC,CAAC;AAIH,eAAO,MAAM,qBAAqB,wGAWhC,CAAC;AAIH,eAAO,MAAM,aAAa,0GAMxB,CAAC;AAIH,eAAO,MAAM,oBAAoB,yHAmE/B,CAAC;AAIH,eAAO,MAAM,kBAAkB,wGA2B7B,CAAC;AAIH,eAAO,MAAM,sBAAsB,2JASjC,CAAC;AAIH,eAAO,MAAM,qBAAqB;;uDAIhC,CAAC;AAIH,UAAU,sBAAsB;IAC9B,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED,eAAO,MAAM,iBAAiB,6HAiE7B,CAAC;AAIF,eAAO,MAAM,uBAAuB,yGAkBlC,CAAC;AAIH,eAAO,MAAM,aAAa,6VAIxB,CAAC;AAIH,eAAO,MAAM,qBAAqB,0LAAiB,CAAC;AAEpD,eAAO,MAAM,YAAY;qBACN,aAAa,CAAC,gBAAgB,CAAC;SA4BjD,CAAC;AAIF,eAAO,MAAM,cAAc;qBACR,aAAa,CAAC,gBAAgB,CAAC;SAkCjD,CAAC;AAIF,eAAO,MAAM,gBAAgB;;uDAkB5B,CAAC;AAIF,eAAO,MAAM,mBAAmB,6VAU/B,CAAC;AAIF,eAAO,MAAM,aAAa,yGAUxB,CAAC;AAIH,eAAe,iBAAiB,CAAC"}
@@ -0,0 +1,325 @@
1
+ import styled, { css } from 'styled-components';
2
+ import { mix, readableColor, transparentize } from 'polished';
3
+ import { defaultThemeProp, MenuButton, Popover, tryCatch, StyledCard, StyledEmptyState, StyledFlex, Icon, Count, CardHeader, readableHue, StyledButton } from '@pega/cosmos-react-core';
4
+ import { StyledCardHeader } from '@pega/cosmos-react-core/lib/components/Card/CardHeader';
5
+ import { StyledCardContent } from '@pega/cosmos-react-core/lib/components/Card/CardContent';
6
+ import { StyledStatus } from '@pega/cosmos-react-core/lib/components/Badges/Status';
7
+ import { StyledVisual } from '@pega/cosmos-react-core/lib/components/SummaryItem/SummaryItem';
8
+ import { StyledDialog } from '@pega/cosmos-react-core/lib/components/Dialog/Dialog.styles';
9
+ import { StyledFormDialog } from '@pega/cosmos-react-core/lib/components/Dialog/FormDialog';
10
+ export const StyledTaskMain = styled.div(({ current }) => {
11
+ return css `
12
+ ${!current &&
13
+ css `
14
+ display: none;
15
+ `}
16
+ `;
17
+ });
18
+ export const StyledTaskManagerTabsSummaryItem = styled.div ``;
19
+ export const StyledHeader = styled(CardHeader) ``;
20
+ export const StyledTaskManagerTabs = styled.div(({ theme }) => {
21
+ return css `
22
+ background-color: ${theme.base.palette['secondary-background']};
23
+ padding-inline-end: calc(2 * ${theme.base.spacing});
24
+
25
+ ::before {
26
+ content: '';
27
+ border-block-end: 0.0625rem solid ${theme.base.palette['border-line']};
28
+ height: 0.0625rem;
29
+ width: 100%;
30
+ position: absolute;
31
+ inset-block-end: 0;
32
+ }
33
+ `;
34
+ });
35
+ StyledTaskManagerTabs.defaultProps = defaultThemeProp;
36
+ export const StyledTaskSummaryItem = styled.li(({ theme }) => {
37
+ const { base: { spacing } } = theme;
38
+ return css `
39
+ min-height: 2.5rem;
40
+ padding: ${spacing};
41
+ &:not(:last-child) {
42
+ border-block-end: 0.0625rem solid ${theme.base.palette['border-line']};
43
+ }
44
+ `;
45
+ });
46
+ StyledTaskSummaryItem.defaultProps = defaultThemeProp;
47
+ export const StyleTaskName = styled.span(() => {
48
+ return css `
49
+ overflow: hidden;
50
+ text-overflow: ellipsis;
51
+ white-space: nowrap;
52
+ `;
53
+ });
54
+ StyleTaskName.defaultProps = defaultThemeProp;
55
+ export const StyledTaskManagerTab = styled.li(({ active = false, theme }) => {
56
+ const hoverColor = tryCatch(() => mix(0.85, theme.base.palette['primary-background'], theme.base.palette.interactive));
57
+ return css `
58
+ min-width: max-content;
59
+ white-space: nowrap;
60
+ border-inline-end: 0.065rem solid ${theme.base.palette['border-line']};
61
+ text-align: start;
62
+ outline: none;
63
+ overflow: hidden;
64
+ display: flex;
65
+ align-items: center;
66
+ position: relative;
67
+ min-height: 2.5rem;
68
+ cursor: pointer;
69
+ padding-block: calc(0.5 * ${theme.base.spacing});
70
+ padding-inline: calc(2 * ${theme.base.spacing});
71
+ background-color: ${active &&
72
+ css `
73
+ ${theme.base.palette['primary-background']};
74
+ `};
75
+
76
+ & + & {
77
+ margin-inline-start: 0;
78
+ }
79
+
80
+ > ${StyledTaskManagerTabsSummaryItem} {
81
+ overflow-x: hidden;
82
+ }
83
+
84
+ > ${StyledTaskManagerTabsSummaryItem} > ${StyledVisual} {
85
+ ${active &&
86
+ css `
87
+ background: ${theme.base.palette.interactive};
88
+ color: ${theme.base.colors.white};
89
+ `}
90
+ }
91
+ ${active &&
92
+ css `
93
+ ::after {
94
+ position: absolute;
95
+ content: '';
96
+ height: 0.0625rem;
97
+ width: 100%;
98
+ background-color: ${theme.base.palette['primary-background']};
99
+ inset-inline-start: 0;
100
+ inset-block-end: 0;
101
+ }
102
+ `}
103
+
104
+ &:hover,
105
+ &:focus {
106
+ background-color: ${hoverColor};
107
+ ::after {
108
+ background-color: ${hoverColor};
109
+ }
110
+ box-shadow: none;
111
+ }
112
+ &:focus {
113
+ box-shadow: ${theme.base.shadow['focus-inset']};
114
+ }
115
+
116
+ > ${StyledFlex} {
117
+ max-width: 100%;
118
+ }
119
+ `;
120
+ });
121
+ StyledTaskManagerTab.defaultProps = defaultThemeProp;
122
+ export const StyledTasksTabList = styled.ul(({ theme }) => {
123
+ const primaryColor = theme.base.palette.interactive;
124
+ const lightenedColor = tryCatch(() => transparentize(0.5, primaryColor)) ?? '';
125
+ return css `
126
+ position: relative;
127
+ display: flex;
128
+ flex-grow: 1;
129
+ overflow: scroll;
130
+ -ms-overflow-style: none;
131
+ &::-webkit-scrollbar {
132
+ display: none;
133
+ }
134
+ scrollbar-width: none;
135
+ &:has(:focus-visible) {
136
+ box-shadow: ${theme.base.shadow['focus-group']};
137
+ }
138
+ ${StyledTaskManagerTab} {
139
+ margin-inline-start: 0;
140
+ &:hover,
141
+ &:focus {
142
+ ::before {
143
+ display: block;
144
+ background-color: ${lightenedColor};
145
+ }
146
+ }
147
+ }
148
+ `;
149
+ });
150
+ StyledTasksTabList.defaultProps = defaultThemeProp;
151
+ export const StyledStickyCardHeader = styled(StyledCardHeader)(({ theme }) => {
152
+ const primaryBackgroundColor = theme.base.palette['primary-background'];
153
+ return css `
154
+ inset-block-start: 0;
155
+ inset-inline-start: 0;
156
+ background: ${primaryBackgroundColor};
157
+ height: calc(3.5rem - 0.0625rem);
158
+ border-block-end: 0.0625rem solid ${theme.base.palette['border-line']};
159
+ `;
160
+ });
161
+ StyledStickyCardHeader.defaultProps = defaultThemeProp;
162
+ export const StyledOverflowTabMenu = styled(MenuButton)(() => {
163
+ return css `
164
+ align-self: center;
165
+ `;
166
+ });
167
+ StyledOverflowTabMenu.defaultProps = defaultThemeProp;
168
+ export const StyledTaskManager = styled.div(({ theme: { base: { shadow, spacing, palette, 'border-radius': borderRadius } }, hasDrawer, hasTasks }) => {
169
+ const primaryBackgroundColor = palette['primary-background'];
170
+ return css `
171
+ background: ${primaryBackgroundColor};
172
+ position: relative;
173
+ border-radius: ${borderRadius};
174
+ ${hasDrawer &&
175
+ css `
176
+ box-shadow: ${shadow.low};
177
+ `}
178
+
179
+ ${StyledDialog}${StyledFormDialog} ${StyledCardContent} {
180
+ padding-inline: 0;
181
+ }
182
+
183
+ ${StyledStatus} {
184
+ line-height: calc(${spacing} * 2);
185
+ height: calc(${spacing} * 2);
186
+ font-size: 0.7rem;
187
+ }
188
+
189
+ ${StyledCardHeader} {
190
+ ${!hasTasks &&
191
+ css `
192
+ border-block-end: none;
193
+ border-end-start-radius: inherit;
194
+ border-end-end-radius: inherit;
195
+ `}
196
+
197
+ ${StyledButton} {
198
+ gap: ${spacing};
199
+ }
200
+ }
201
+
202
+ && > ${StyledCard} > ${StyledCardContent} {
203
+ padding: 0;
204
+ }
205
+ ${StyledTaskMain} {
206
+ padding: 0 calc(2 * ${spacing}) calc(2 * ${spacing});
207
+ ${StyledCardHeader} {
208
+ padding: calc(2 * ${spacing}) 0 ${spacing};
209
+ margin-block-end: ${spacing};
210
+ border-block-end: none;
211
+ }
212
+ }
213
+ ${StyledEmptyState} {
214
+ padding: calc(2 * ${spacing});
215
+ }
216
+ ${StyledTaskManagerTabs} {
217
+ position: relative;
218
+ }
219
+ ${StyledTaskManagerTab} {
220
+ > ${StyledTaskManagerTabsSummaryItem} > ${StyledVisual} {
221
+ margin: 0 calc(2 * ${spacing});
222
+ }
223
+ }
224
+ `;
225
+ });
226
+ StyledTaskManager.defaultProps = defaultThemeProp;
227
+ export const StyledTaskManagerBanner = styled.div(({ theme }) => {
228
+ const color = readableHue(theme.base.colors.orange.dark, theme.base.palette['secondary-background']);
229
+ return css `
230
+ padding: calc(1.5 * ${theme.base.spacing});
231
+ border-radius: ${theme.base['border-radius']} ${theme.base['border-radius']} 0 0;
232
+ background-color: ${theme.base.palette['secondary-background']};
233
+ gap: ${theme.base.spacing};
234
+ min-height: calc(7 * ${theme.base.spacing});
235
+ color: ${color};
236
+ font-weight: ${theme.base['font-weight'].bold};
237
+ & + ${StyledTaskManager} {
238
+ margin-block-start: 0;
239
+ }
240
+ `;
241
+ });
242
+ StyledTaskManagerBanner.defaultProps = defaultThemeProp;
243
+ export const StyledPopover = styled(Popover)(({ theme }) => {
244
+ return css `
245
+ border-radius: ${theme.base['border-radius']};
246
+ `;
247
+ });
248
+ StyledPopover.defaultProps = defaultThemeProp;
249
+ export const StyledAgentScriptIcon = styled(Icon) ``;
250
+ export const StyledSymbol = styled.div(({ theme: { base: { spacing, palette, animation: { speed, timing } } }, verbatimStatus }) => {
251
+ const backgroundColor = verbatimStatus === 'pending' ? palette.urgent : palette.success;
252
+ return css `
253
+ color: ${palette['primary-background']};
254
+ border-radius: 50%;
255
+ border: 0.0625rem solid ${palette['primary-background']};
256
+ inset-block-start: calc(-1 * ${spacing});
257
+ inset-inline-end: calc(-1 * ${spacing});
258
+ position: absolute;
259
+ height: 1.25rem;
260
+ width: 1.25rem;
261
+ background-color: ${backgroundColor};
262
+ transition: background-color ${speed} ${timing.ease};
263
+ user-select: none;
264
+ -webkit-user-select: none;
265
+ `;
266
+ });
267
+ StyledSymbol.defaultProps = defaultThemeProp;
268
+ export const StyledIconWrap = styled.div(({ theme: { base: { colors, animation: { speed, timing } } }, verbatimStatus }) => {
269
+ const backgroundColor = verbatimStatus === 'pending' ? colors.red['extra-light'] : colors.slate.medium;
270
+ const scriptIconColor = tryCatch(() => readableColor(backgroundColor));
271
+ return css `
272
+ height: 2rem;
273
+ width: 2rem;
274
+ border-radius: 50%;
275
+ background-color: ${backgroundColor};
276
+ transition: background-color ${speed} ${timing.ease};
277
+
278
+ ${StyledAgentScriptIcon} {
279
+ width: 1.5rem;
280
+ height: 1.5rem;
281
+ color: ${scriptIconColor};
282
+ transition: color ${speed} ${timing.ease};
283
+ }
284
+
285
+ ${verbatimStatus &&
286
+ css `
287
+ position: relative;
288
+ `}
289
+ `;
290
+ });
291
+ StyledIconWrap.defaultProps = defaultThemeProp;
292
+ export const StyledCountBadge = styled(Count)(({ theme: { base: { spacing } } }) => {
293
+ return css `
294
+ position: absolute;
295
+ inset-inline-start: calc(2 * ${spacing});
296
+ inset-block-start: calc(-1 * ${spacing});
297
+ padding: 0 calc(0.5 * ${spacing});
298
+
299
+ @media (pointer: coarse) {
300
+ inset-inline-start: calc(2.5 * ${spacing});
301
+ inset-block-start: calc(1 * ${spacing});
302
+ }
303
+ `;
304
+ });
305
+ StyledCountBadge.defaultProps = defaultThemeProp;
306
+ export const StyledEntityPopover = styled(Popover)(({ theme: { base: { 'content-width': contentWidth } } }) => {
307
+ return css `
308
+ width: ${contentWidth.sm};
309
+ `;
310
+ });
311
+ StyledEntityPopover.defaultProps = defaultThemeProp;
312
+ export const StyledContent = styled.div(({ theme }) => {
313
+ return css `
314
+ max-height: 18rem;
315
+ overflow: auto;
316
+ ${StyledCard} {
317
+ ${StyledCardContent} {
318
+ padding: 0 calc(${theme.components.card.padding} * 2) calc(1.5 * ${theme.base.spacing});
319
+ }
320
+ }
321
+ `;
322
+ });
323
+ StyledContent.defaultProps = defaultThemeProp;
324
+ export default StyledTaskManager;
325
+ //# sourceMappingURL=TaskManager.styles.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TaskManager.styles.js","sourceRoot":"","sources":["../../../src/components/TaskManager/TaskManager.styles.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM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EuB,OAAO;qCACP,OAAO;8BACd,OAAO;;;yCAGI,OAAO;sCACV,OAAO;;KAExC,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,gBAAgB,CAAC,YAAY,GAAG,gBAAgB,CAAC;AAEjD,MAAM,CAAC,MAAM,mBAAmB,GAAG,MAAM,CAAC,OAAO,CAAC,CAChD,CAAC,EACC,KAAK,EAAE,EACL,IAAI,EAAE,EAAE,eAAe,EAAE,YAAY,EAAE,EACxC,EACF,EAAE,EAAE;IACH,OAAO,GAAG,CAAA;eACC,YAAY,CAAC,EAAE;KACzB,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,mBAAmB,CAAC,YAAY,GAAG,gBAAgB,CAAC;AAEpD,MAAM,CAAC,MAAM,aAAa,GAAG,MAAM,CAAC,GAAG,CAAC,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE;IACpD,OAAO,GAAG,CAAA;;;MAGN,UAAU;QACR,iBAAiB;0BACC,KAAK,CAAC,UAAU,CAAC,IAAI,CAAC,OAAO,oBAAoB,KAAK,CAAC,IAAI,CAAC,OAAO;;;GAG1F,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, readableColor, transparentize } from 'polished';\n\nimport {\n defaultThemeProp,\n MenuButton,\n Popover,\n tryCatch,\n StyledCard,\n StyledEmptyState,\n StyledFlex,\n Icon,\n Count,\n CardHeader,\n readableHue,\n StyledButton\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';\nimport { StyledDialog } from '@pega/cosmos-react-core/lib/components/Dialog/Dialog.styles';\nimport { StyledFormDialog } from '@pega/cosmos-react-core/lib/components/Dialog/FormDialog';\n\nimport { TaskManagerTabProps, DialogueProps } from './TaskManager.types';\n\nexport const StyledTaskMain = styled.div<{ current: boolean }>(({ current }) => {\n return css`\n ${!current &&\n css`\n display: none;\n `}\n `;\n});\n\nexport const StyledTaskManagerTabsSummaryItem = styled.div``;\nexport const StyledHeader = styled(CardHeader)``;\n\nexport const StyledTaskManagerTabs = styled.div(({ theme }) => {\n return css`\n background-color: ${theme.base.palette['secondary-background']};\n padding-inline-end: calc(2 * ${theme.base.spacing});\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\nStyleTaskName.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 min-width: max-content;\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 min-height: 2.5rem;\n cursor: pointer;\n padding-block: calc(0.5 * ${theme.base.spacing});\n padding-inline: calc(2 * ${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: ${theme.base.shadow['focus-inset']};\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 &:has(:focus-visible) {\n box-shadow: ${theme.base.shadow['focus-group']};\n }\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});\n\nStyledStickyCardHeader.defaultProps = defaultThemeProp;\n\nexport const StyledOverflowTabMenu = styled(MenuButton)(() => {\n return css`\n align-self: center;\n `;\n});\n\nStyledOverflowTabMenu.defaultProps = defaultThemeProp;\n\ninterface StyledTaskManagerProps {\n hasDrawer?: boolean;\n hasTasks?: boolean;\n}\n\nexport const StyledTaskManager = styled.div<StyledTaskManagerProps>(\n ({\n theme: {\n base: { shadow, spacing, palette, 'border-radius': borderRadius }\n },\n hasDrawer,\n hasTasks\n }) => {\n const primaryBackgroundColor = palette['primary-background'];\n return css`\n background: ${primaryBackgroundColor};\n position: relative;\n border-radius: ${borderRadius};\n ${hasDrawer &&\n css`\n box-shadow: ${shadow.low};\n `}\n\n ${StyledDialog}${StyledFormDialog} ${StyledCardContent} {\n padding-inline: 0;\n }\n\n ${StyledStatus} {\n line-height: calc(${spacing} * 2);\n height: calc(${spacing} * 2);\n font-size: 0.7rem;\n }\n\n ${StyledCardHeader} {\n ${!hasTasks &&\n css`\n border-block-end: none;\n border-end-start-radius: inherit;\n border-end-end-radius: inherit;\n `}\n\n ${StyledButton} {\n gap: ${spacing};\n }\n }\n\n && > ${StyledCard} > ${StyledCardContent} {\n padding: 0;\n }\n ${StyledTaskMain} {\n padding: 0 calc(2 * ${spacing}) calc(2 * ${spacing});\n ${StyledCardHeader} {\n padding: calc(2 * ${spacing}) 0 ${spacing};\n margin-block-end: ${spacing};\n border-block-end: none;\n }\n }\n ${StyledEmptyState} {\n padding: calc(2 * ${spacing});\n }\n ${StyledTaskManagerTabs} {\n position: relative;\n }\n ${StyledTaskManagerTab} {\n > ${StyledTaskManagerTabsSummaryItem} > ${StyledVisual} {\n margin: 0 calc(2 * ${spacing});\n }\n }\n `;\n }\n);\n\nStyledTaskManager.defaultProps = defaultThemeProp;\n\nexport const StyledTaskManagerBanner = styled.div(({ theme }) => {\n const color = readableHue(\n theme.base.colors.orange.dark,\n theme.base.palette['secondary-background']\n );\n\n return css`\n padding: calc(1.5 * ${theme.base.spacing});\n border-radius: ${theme.base['border-radius']} ${theme.base['border-radius']} 0 0;\n background-color: ${theme.base.palette['secondary-background']};\n gap: ${theme.base.spacing};\n min-height: calc(7 * ${theme.base.spacing});\n color: ${color};\n font-weight: ${theme.base['font-weight'].bold};\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 border-radius: ${theme.base['border-radius']};\n `;\n});\n\nStyledPopover.defaultProps = defaultThemeProp;\n\nexport const StyledAgentScriptIcon = styled(Icon)``;\n\nexport const StyledSymbol = styled.div<{\n verbatimStatus?: DialogueProps['verbatimStatus'];\n}>(\n ({\n theme: {\n base: {\n spacing,\n palette,\n animation: { speed, timing }\n }\n },\n verbatimStatus\n }) => {\n const backgroundColor = verbatimStatus === 'pending' ? palette.urgent : palette.success;\n return css`\n color: ${palette['primary-background']};\n border-radius: 50%;\n border: 0.0625rem solid ${palette['primary-background']};\n inset-block-start: calc(-1 * ${spacing});\n inset-inline-end: calc(-1 * ${spacing});\n position: absolute;\n height: 1.25rem;\n width: 1.25rem;\n background-color: ${backgroundColor};\n transition: background-color ${speed} ${timing.ease};\n user-select: none;\n -webkit-user-select: none;\n `;\n }\n);\n\nStyledSymbol.defaultProps = defaultThemeProp;\n\nexport const StyledIconWrap = styled.div<{\n verbatimStatus?: DialogueProps['verbatimStatus'];\n}>(\n ({\n theme: {\n base: {\n colors,\n animation: { speed, timing }\n }\n },\n verbatimStatus\n }) => {\n const backgroundColor =\n verbatimStatus === 'pending' ? colors.red['extra-light'] : colors.slate.medium;\n const scriptIconColor = tryCatch(() => readableColor(backgroundColor));\n return css`\n height: 2rem;\n width: 2rem;\n border-radius: 50%;\n background-color: ${backgroundColor};\n transition: background-color ${speed} ${timing.ease};\n\n ${StyledAgentScriptIcon} {\n width: 1.5rem;\n height: 1.5rem;\n color: ${scriptIconColor};\n transition: color ${speed} ${timing.ease};\n }\n\n ${verbatimStatus &&\n css`\n position: relative;\n `}\n `;\n }\n);\n\nStyledIconWrap.defaultProps = defaultThemeProp;\n\nexport const StyledCountBadge = styled(Count)(\n ({\n theme: {\n base: { spacing }\n }\n }) => {\n return css`\n position: absolute;\n inset-inline-start: calc(2 * ${spacing});\n inset-block-start: calc(-1 * ${spacing});\n padding: 0 calc(0.5 * ${spacing});\n\n @media (pointer: coarse) {\n inset-inline-start: calc(2.5 * ${spacing});\n inset-block-start: calc(1 * ${spacing});\n }\n `;\n }\n);\n\nStyledCountBadge.defaultProps = defaultThemeProp;\n\nexport const StyledEntityPopover = styled(Popover)(\n ({\n theme: {\n base: { 'content-width': contentWidth }\n }\n }) => {\n return css`\n width: ${contentWidth.sm};\n `;\n }\n);\n\nStyledEntityPopover.defaultProps = defaultThemeProp;\n\nexport const StyledContent = styled.div(({ theme }) => {\n return css`\n max-height: 18rem;\n overflow: auto;\n ${StyledCard} {\n ${StyledCardContent} {\n padding: 0 calc(${theme.components.card.padding} * 2) calc(1.5 * ${theme.base.spacing});\n }\n }\n `;\n});\n\nStyledContent.defaultProps = defaultThemeProp;\n\nexport default StyledTaskManager;\n"]}
@@ -0,0 +1,98 @@
1
+ import { ReactNode, Ref } from 'react';
2
+ import { BaseProps, IconName, MenuItemProps, NoChildrenProp, StatusProps } from '@pega/cosmos-react-core';
3
+ import { TaskPickerProps } from './TaskPicker';
4
+ export interface HandleValue {
5
+ nudge: () => Animation | undefined;
6
+ }
7
+ export interface TaskManagerProps extends BaseProps, NoChildrenProp {
8
+ /** List of tasks */
9
+ tasks?: TaskProps[];
10
+ /** Callback when task is launched */
11
+ onTaskLaunch?: (id: TaskProps['id']) => void;
12
+ /** Callback when task is dismissed. Applicable only when task is not launched previously */
13
+ onTaskDismiss?: (id: TaskProps['id']) => void;
14
+ /** Add task utility */
15
+ addTask?: Pick<TaskPickerProps, 'items' | 'onAdd' | 'ref'>;
16
+ /** Banner for the task manager */
17
+ banner?: Pick<DialogueProps, 'icon' | 'content' | 'verbatimStatus'>;
18
+ /** Shows wrap up action when passed */
19
+ wrapUp?: {
20
+ /** Determines if wrap up button should be enabled */
21
+ disable: boolean;
22
+ /** Callback when wrap up is performed */
23
+ onClick: () => void;
24
+ /** Determines if wrap up is active */
25
+ active?: boolean;
26
+ /** Determines if wrap up tab should be shown or not */
27
+ showTab?: boolean;
28
+ };
29
+ /** Selected task content */
30
+ main?: ReactNode;
31
+ handle?: Ref<HandleValue>;
32
+ /** Conversation icon on TaskManager Header */
33
+ conversationAI?: Pick<ConversationAIProps, 'content' | 'entityCount'>;
34
+ ref?: Ref<HTMLDivElement>;
35
+ }
36
+ export interface TaskManagerTabsProps {
37
+ wrapUpTabId: string;
38
+ wrapUpTabPanelId: string;
39
+ ref?: Ref<HTMLDivElement>;
40
+ }
41
+ export interface TaskManagerTabProps {
42
+ active?: boolean;
43
+ variant?: string;
44
+ }
45
+ export interface TaskViewProps extends BaseProps {
46
+ /** Task header */
47
+ header: ReactNode;
48
+ /** Task specific actions */
49
+ actions?: ReactNode;
50
+ /** Task form content */
51
+ children: ReactNode;
52
+ ref?: Ref<HTMLDivElement>;
53
+ }
54
+ export interface DialogueProps extends BaseProps {
55
+ /** Icon for the banner */
56
+ icon: IconName;
57
+ /** Banner content */
58
+ content: string;
59
+ /** Type of banner icon */
60
+ verbatimStatus?: 'pending' | 'spoken';
61
+ handle?: Ref<HandleValue>;
62
+ ref?: Ref<HTMLDivElement>;
63
+ }
64
+ export interface ConversationAIProps extends BaseProps {
65
+ /** Content */
66
+ content: ReactNode;
67
+ /** Number of entities captured */
68
+ entityCount: number;
69
+ ref?: Ref<HTMLDivElement>;
70
+ }
71
+ export interface TaskManagerContextProps extends Pick<TaskManagerProps, 'tasks' | 'addTask' | 'onTaskLaunch' | 'wrapUp'> {
72
+ }
73
+ export interface TaskProps {
74
+ /** Unique id for tasks list */
75
+ id: string;
76
+ /** Name of the task */
77
+ name: string;
78
+ /** Meta info of the task ex: Queued task */
79
+ meta?: string;
80
+ /** Secondary information to show with the task name. Eg: CaseId. */
81
+ secondary?: MenuItemProps['secondary'];
82
+ /** Name of the icon (to be selected from default Pega icon set) */
83
+ icon: string;
84
+ /** Determines to show the task in tab. */
85
+ hideFromTab?: boolean;
86
+ /** Determines the active task */
87
+ active?: boolean;
88
+ /** Determines if a task is resolved */
89
+ isResolved?: boolean;
90
+ /** Represents the current status of task(like resolved-completed, InProgress etc) */
91
+ status?: {
92
+ /** Status text */
93
+ text: string;
94
+ /** Status variant */
95
+ variant: StatusProps['variant'];
96
+ };
97
+ }
98
+ //# sourceMappingURL=TaskManager.types.d.ts.map
@@ -0,0 +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,EACL,SAAS,EACT,QAAQ,EACR,aAAa,EACb,cAAc,EACd,WAAW,EACZ,MAAM,yBAAyB,CAAC;AAEjC,OAAO,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAE/C,MAAM,WAAW,WAAW;IAC1B,KAAK,EAAE,MAAM,SAAS,GAAG,SAAS,CAAC;CACpC;AAED,MAAM,WAAW,gBAAiB,SAAQ,SAAS,EAAE,cAAc;IACjE,oBAAoB;IACpB,KAAK,CAAC,EAAE,SAAS,EAAE,CAAC;IACpB,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,eAAe,EAAE,OAAO,GAAG,OAAO,GAAG,KAAK,CAAC,CAAC;IAC3D,kCAAkC;IAClC,MAAM,CAAC,EAAE,IAAI,CAAC,aAAa,EAAE,MAAM,GAAG,SAAS,GAAG,gBAAgB,CAAC,CAAC;IACpE,uCAAuC;IACvC,MAAM,CAAC,EAAE;QAC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,GAAG,CAAC,cAAc,CAAC,CAAC;CAC3B;AAED,MAAM,WAAW,mBAAoB,SAAQ,SAAS;IACpD,cAAc;IACd,OAAO,EAAE,SAAS,CAAC;IACnB,kCAAkC;IAClC,WAAW,EAAE,MAAM,CAAC;IACpB,GAAG,CAAC,EAAE,GAAG,CAAC,cAAc,CAAC,CAAC;CAC3B;AAED,MAAM,WAAW,uBACf,SAAQ,IAAI,CAAC,gBAAgB,EAAE,OAAO,GAAG,SAAS,GAAG,cAAc,GAAG,QAAQ,CAAC;CAAG;AAEpF,MAAM,WAAW,SAAS;IACxB,+BAA+B;IAC/B,EAAE,EAAE,MAAM,CAAC;IACX,uBAAuB;IACvB,IAAI,EAAE,MAAM,CAAC;IACb,4CAA4C;IAC5C,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,oEAAoE;IACpE,SAAS,CAAC,EAAE,aAAa,CAAC,WAAW,CAAC,CAAC;IACvC,mEAAmE;IACnE,IAAI,EAAE,MAAM,CAAC;IACb,0CAA0C;IAC1C,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,iCAAiC;IACjC,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,uCAAuC;IACvC,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,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"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=TaskManager.types.js.map
@@ -0,0 +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 {\n BaseProps,\n IconName,\n MenuItemProps,\n NoChildrenProp,\n StatusProps\n} from '@pega/cosmos-react-core';\n\nimport { TaskPickerProps } from './TaskPicker';\n\nexport interface HandleValue {\n nudge: () => Animation | undefined;\n}\n\nexport interface TaskManagerProps extends BaseProps, NoChildrenProp {\n /** List of tasks */\n tasks?: TaskProps[];\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<TaskPickerProps, 'items' | 'onAdd' | 'ref'>;\n /** Banner for the task manager */\n banner?: Pick<DialogueProps, 'icon' | 'content' | 'verbatimStatus'>;\n /** Shows wrap up action when passed */\n wrapUp?: {\n /** Determines if wrap up button should be enabled */\n disable: boolean;\n /** Callback when wrap up is performed */\n onClick: () => 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 handle?: Ref<HandleValue>;\n /** Conversation icon on TaskManager Header */\n conversationAI?: Pick<ConversationAIProps, 'content' | 'entityCount'>;\n ref?: Ref<HTMLDivElement>;\n}\n\nexport interface TaskManagerTabsProps {\n wrapUpTabId: string;\n wrapUpTabPanelId: string;\n ref?: Ref<HTMLDivElement>;\n}\n\nexport interface TaskManagerTabProps {\n active?: boolean;\n variant?: string;\n}\nexport interface TaskViewProps extends BaseProps {\n /** Task header */\n header: ReactNode;\n /** Task specific actions */\n actions?: ReactNode;\n /** Task form content */\n children: ReactNode;\n ref?: Ref<HTMLDivElement>;\n}\n\nexport interface DialogueProps extends BaseProps {\n /** Icon for the banner */\n icon: IconName;\n /** Banner content */\n content: string;\n /** Type of banner icon */\n verbatimStatus?: 'pending' | 'spoken';\n handle?: Ref<HandleValue>;\n ref?: Ref<HTMLDivElement>;\n}\n\nexport interface ConversationAIProps extends BaseProps {\n /** Content */\n content: ReactNode;\n /** Number of entities captured */\n entityCount: number;\n ref?: Ref<HTMLDivElement>;\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 /** Secondary information to show with the task name. Eg: CaseId. */\n secondary?: MenuItemProps['secondary'];\n /** Name of the icon (to be selected from default Pega icon set) */\n icon: string;\n /** Determines to show the task in tab. */\n hideFromTab?: boolean;\n /** Determines the active task */\n active?: boolean;\n /** Determines if a task is resolved */\n isResolved?: boolean;\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,EAAa,YAAY,EAA4B,MAAM,yBAAyB,CAAC;AAW5F,OAAO,EAAE,oBAAoB,EAAa,MAAM,qBAAqB,CAAC;AAEtE,QAAA,MAAM,eAAe,EAAE,iBAAiB,CAAC,oBAAoB,GAAG,YAAY,CA2P3E,CAAC;AAEF,eAAe,eAAe,CAAC"}