@pega/cosmos-react-work 7.5.6 → 7.6.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 (60) hide show
  1. package/lib/components/Assignments/Assignments.js +1 -1
  2. package/lib/components/Assignments/Assignments.js.map +1 -1
  3. package/lib/components/HierarchicalAssignments/AssignmentContext.d.ts +28 -0
  4. package/lib/components/HierarchicalAssignments/AssignmentContext.d.ts.map +1 -0
  5. package/lib/components/HierarchicalAssignments/AssignmentContext.js +14 -0
  6. package/lib/components/HierarchicalAssignments/AssignmentContext.js.map +1 -0
  7. package/lib/components/HierarchicalAssignments/AssignmentDetail.d.ts +4 -1
  8. package/lib/components/HierarchicalAssignments/AssignmentDetail.d.ts.map +1 -1
  9. package/lib/components/HierarchicalAssignments/AssignmentDetail.js +2 -2
  10. package/lib/components/HierarchicalAssignments/AssignmentDetail.js.map +1 -1
  11. package/lib/components/HierarchicalAssignments/AssignmentNode.d.ts +20 -0
  12. package/lib/components/HierarchicalAssignments/AssignmentNode.d.ts.map +1 -0
  13. package/lib/components/HierarchicalAssignments/AssignmentNode.js +33 -0
  14. package/lib/components/HierarchicalAssignments/AssignmentNode.js.map +1 -0
  15. package/lib/components/HierarchicalAssignments/AssignmentTree.d.ts +15 -0
  16. package/lib/components/HierarchicalAssignments/AssignmentTree.d.ts.map +1 -0
  17. package/lib/components/HierarchicalAssignments/AssignmentTree.js +21 -0
  18. package/lib/components/HierarchicalAssignments/AssignmentTree.js.map +1 -0
  19. package/lib/components/HierarchicalAssignments/Assignments.styles.d.ts +15 -9
  20. package/lib/components/HierarchicalAssignments/Assignments.styles.d.ts.map +1 -1
  21. package/lib/components/HierarchicalAssignments/Assignments.styles.js +84 -47
  22. package/lib/components/HierarchicalAssignments/Assignments.styles.js.map +1 -1
  23. package/lib/components/HierarchicalAssignments/HierarchicalAssignments.d.ts +2 -2
  24. package/lib/components/HierarchicalAssignments/HierarchicalAssignments.d.ts.map +1 -1
  25. package/lib/components/HierarchicalAssignments/HierarchicalAssignments.js +113 -9
  26. package/lib/components/HierarchicalAssignments/HierarchicalAssignments.js.map +1 -1
  27. package/lib/components/HierarchicalAssignments/HierarchicalAssignments.types.d.ts +11 -12
  28. package/lib/components/HierarchicalAssignments/HierarchicalAssignments.types.d.ts.map +1 -1
  29. package/lib/components/HierarchicalAssignments/HierarchicalAssignments.types.js.map +1 -1
  30. package/lib/components/HierarchicalAssignments/helpers.d.ts +23 -0
  31. package/lib/components/HierarchicalAssignments/helpers.d.ts.map +1 -0
  32. package/lib/components/HierarchicalAssignments/helpers.js +167 -0
  33. package/lib/components/HierarchicalAssignments/helpers.js.map +1 -0
  34. package/lib/components/HierarchicalAssignments/nodeItems/AssignmentItem.d.ts +18 -0
  35. package/lib/components/HierarchicalAssignments/nodeItems/AssignmentItem.d.ts.map +1 -0
  36. package/lib/components/HierarchicalAssignments/nodeItems/AssignmentItem.js +105 -0
  37. package/lib/components/HierarchicalAssignments/nodeItems/AssignmentItem.js.map +1 -0
  38. package/lib/components/HierarchicalAssignments/nodeItems/CaseDetail.d.ts +23 -0
  39. package/lib/components/HierarchicalAssignments/nodeItems/CaseDetail.d.ts.map +1 -0
  40. package/lib/components/HierarchicalAssignments/nodeItems/CaseDetail.js +107 -0
  41. package/lib/components/HierarchicalAssignments/nodeItems/CaseDetail.js.map +1 -0
  42. package/lib/components/HierarchicalAssignments/nodeItems/useNodeFocus.d.ts +23 -0
  43. package/lib/components/HierarchicalAssignments/nodeItems/useNodeFocus.d.ts.map +1 -0
  44. package/lib/components/HierarchicalAssignments/nodeItems/useNodeFocus.js +42 -0
  45. package/lib/components/HierarchicalAssignments/nodeItems/useNodeFocus.js.map +1 -0
  46. package/lib/components/Tasks/TaskList.d.ts +6 -4
  47. package/lib/components/Tasks/TaskList.d.ts.map +1 -1
  48. package/lib/components/Tasks/TaskList.js +10 -3
  49. package/lib/components/Tasks/TaskList.js.map +1 -1
  50. package/lib/components/Tasks/Tasks.js +1 -1
  51. package/lib/components/Tasks/Tasks.js.map +1 -1
  52. package/package.json +3 -3
  53. package/lib/components/HierarchicalAssignments/AssignmentContainer.d.ts +0 -33
  54. package/lib/components/HierarchicalAssignments/AssignmentContainer.d.ts.map +0 -1
  55. package/lib/components/HierarchicalAssignments/AssignmentContainer.js +0 -46
  56. package/lib/components/HierarchicalAssignments/AssignmentContainer.js.map +0 -1
  57. package/lib/components/HierarchicalAssignments/AssignmentItem.d.ts +0 -11
  58. package/lib/components/HierarchicalAssignments/AssignmentItem.d.ts.map +0 -1
  59. package/lib/components/HierarchicalAssignments/AssignmentItem.js +0 -26
  60. package/lib/components/HierarchicalAssignments/AssignmentItem.js.map +0 -1
@@ -8,7 +8,7 @@ const Assignments = ({ items, count, collapsed, onToggleCollapsed, ...restProps
8
8
  const t = useI18n();
9
9
  const assignmentsId = useUID();
10
10
  const TaskItems = useMemo(() => {
11
- return openItem ? _jsx(TaskItem, { ...openItem }) : _jsx(TaskList, { items: items });
11
+ return openItem ? _jsx(TaskItem, { ...openItem, headingTag: 'h2' }) : _jsx(TaskList, { items: items });
12
12
  }, [items, openItem]);
13
13
  const tasks = _jsx(CardContent, { children: items.length > 0 ? TaskItems : _jsx(EmptyState, {}) });
14
14
  const header = (_jsxs(Flex, { container: { alignItems: 'center', gap: 1 }, children: [typeof collapsed === 'boolean' && _jsx(Icon, { name: 'caret-right' }), _jsx(Text, { variant: 'h2', children: t('assignments') }), _jsx(Count, { children: count })] }));
@@ -1 +1 @@
1
- {"version":3,"file":"Assignments.js","sourceRoot":"","sources":["../../../src/components/Assignments/Assignments.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AAGhC,OAAO,EACL,UAAU,EACV,OAAO,EACP,UAAU,EACV,cAAc,EACd,IAAI,EACJ,IAAI,EACJ,KAAK,EACL,IAAI,EACJ,MAAM,EACN,WAAW,EACZ,MAAM,yBAAyB,CAAC;AAGjC,OAAO,QAAQ,EAAE,EAAE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,IAAI,CACZ,MAAC,UAAU,IAAC,SAAS,EAAE,EAAE,OAAO,EAAE,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE,GAAG,EAAE,CAAC,EAAE,aACtE,OAAO,SAAS,KAAK,SAAS,IAAI,iBAAiB,IAAI,CACtD,KAAC,kBAAkB,IACjB,IAAI,EAAC,QAAQ,EACb,OAAO,EAAC,MAAM,EACd,OAAO,EAAE,GAAG,EAAE;4BACZ,iBAAiB,EAAE,CAAC;wBACtB,CAAC,mBACc,aAAa,mBACb,CAAC,SAAS,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,OAAO,gBAChC,CAAC,CAAC,aAAa,CAAC,YAE3B,MAAM,GACY,CACtB,EACA,SAAS,KAAK,SAAS,IAAI,MAAM,IACvB,CACd,EAEA,OAAO,SAAS,KAAK,SAAS,IAAI,iBAAiB,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,CAClE,KAAC,cAAc,IAAC,SAAS,EAAE,SAAS,YAAG,KAAK,GAAkB,CAC/D,CAAC,CAAC,CAAC,CACF,KAAK,CACN,IACiB,CACrB,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,WAAW,CAAC","sourcesContent":["import { useMemo } from 'react';\nimport type { FC } from 'react';\n\nimport {\n CardHeader,\n useI18n,\n EmptyState,\n ExpandCollapse,\n Icon,\n Text,\n Count,\n Flex,\n useUID,\n CardContent\n} from '@pega/cosmos-react-core';\nimport type { ForwardProps, NoChildrenProp } from '@pega/cosmos-react-core';\n\nimport TaskList, { TaskItem } from '../Tasks/TaskList';\nimport type { TaskItemProps } from '../Tasks/TaskList';\n\nimport { StyledAssignments, StyledExpandButton } from './Assignments.styles';\n\nexport interface AssignmentsProps extends NoChildrenProp {\n /** An array of TaskItemProps to generate the list. */\n items: TaskItemProps[];\n /** Integer representing the total count of tasks. */\n count: number;\n /**\n * Controls the collapsed state of the assignments list.\n * @default false\n */\n collapsed?: boolean;\n /**\n * Call when the user clicks the collapsed element.\n */\n onToggleCollapsed?: () => void;\n}\n\nconst Assignments: FC<ForwardProps & AssignmentsProps> = ({\n items,\n count,\n collapsed,\n onToggleCollapsed,\n ...restProps\n}) => {\n const openItem = items.find(item => item.content);\n const t = useI18n();\n const assignmentsId = useUID();\n\n const TaskItems = useMemo(() => {\n return openItem ? <TaskItem {...openItem} /> : <TaskList items={items} />;\n }, [items, openItem]);\n\n const tasks = <CardContent>{items.length > 0 ? TaskItems : <EmptyState />}</CardContent>;\n\n const header = (\n <Flex container={{ alignItems: 'center', gap: 1 }}>\n {typeof collapsed === 'boolean' && <Icon name='caret-right' />}\n <Text variant='h2'>{t('assignments')}</Text>\n <Count>{count}</Count>\n </Flex>\n );\n\n return (\n <StyledAssignments {...restProps} openItem={!!openItem} data-app-region>\n {!openItem && (\n <CardHeader container={{ justify: 'start', alignItems: 'center', gap: 1 }}>\n {typeof collapsed === 'boolean' && onToggleCollapsed && (\n <StyledExpandButton\n type='button'\n variant='text'\n onClick={() => {\n onToggleCollapsed();\n }}\n aria-controls={assignmentsId}\n aria-expanded={!collapsed ? 'true' : 'false'}\n aria-label={t('assignments')}\n >\n {header}\n </StyledExpandButton>\n )}\n {collapsed === undefined && header}\n </CardHeader>\n )}\n\n {typeof collapsed === 'boolean' && onToggleCollapsed && !openItem ? (\n <ExpandCollapse collapsed={collapsed}>{tasks}</ExpandCollapse>\n ) : (\n tasks\n )}\n </StyledAssignments>\n );\n};\n\nexport default Assignments;\n"]}
1
+ {"version":3,"file":"Assignments.js","sourceRoot":"","sources":["../../../src/components/Assignments/Assignments.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AAGhC,OAAO,EACL,UAAU,EACV,OAAO,EACP,UAAU,EACV,cAAc,EACd,IAAI,EACJ,IAAI,EACJ,KAAK,EACL,IAAI,EACJ,MAAM,EACN,WAAW,EACZ,MAAM,yBAAyB,CAAC;AAGjC,OAAO,QAAQ,EAAE,EAAE,QAAQ,EAAE,MAAM,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AQ,IAAI,CACZ,MAAC,UAAU,IAAC,SAAS,EAAE,EAAE,OAAO,EAAE,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE,GAAG,EAAE,CAAC,EAAE,aACtE,OAAO,SAAS,KAAK,SAAS,IAAI,iBAAiB,IAAI,CACtD,KAAC,kBAAkB,IACjB,IAAI,EAAC,QAAQ,EACb,OAAO,EAAC,MAAM,EACd,OAAO,EAAE,GAAG,EAAE;4BACZ,iBAAiB,EAAE,CAAC;wBACtB,CAAC,mBACc,aAAa,mBACb,CAAC,SAAS,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,OAAO,gBAChC,CAAC,CAAC,aAAa,CAAC,YAE3B,MAAM,GACY,CACtB,EACA,SAAS,KAAK,SAAS,IAAI,MAAM,IACvB,CACd,EAEA,OAAO,SAAS,KAAK,SAAS,IAAI,iBAAiB,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,CAClE,KAAC,cAAc,IAAC,SAAS,EAAE,SAAS,YAAG,KAAK,GAAkB,CAC/D,CAAC,CAAC,CAAC,CACF,KAAK,CACN,IACiB,CACrB,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,WAAW,CAAC","sourcesContent":["import { useMemo } from 'react';\nimport type { FC } from 'react';\n\nimport {\n CardHeader,\n useI18n,\n EmptyState,\n ExpandCollapse,\n Icon,\n Text,\n Count,\n Flex,\n useUID,\n CardContent\n} from '@pega/cosmos-react-core';\nimport type { ForwardProps, NoChildrenProp } from '@pega/cosmos-react-core';\n\nimport TaskList, { TaskItem } from '../Tasks/TaskList';\nimport type { TaskItemProps } from '../Tasks/TaskList';\n\nimport { StyledAssignments, StyledExpandButton } from './Assignments.styles';\n\nexport interface AssignmentsProps extends NoChildrenProp {\n /** An array of TaskItemProps to generate the list. */\n items: TaskItemProps[];\n /** Integer representing the total count of tasks. */\n count: number;\n /**\n * Controls the collapsed state of the assignments list.\n * @default false\n */\n collapsed?: boolean;\n /**\n * Call when the user clicks the collapsed element.\n */\n onToggleCollapsed?: () => void;\n}\n\nconst Assignments: FC<ForwardProps & AssignmentsProps> = ({\n items,\n count,\n collapsed,\n onToggleCollapsed,\n ...restProps\n}) => {\n const openItem = items.find(item => item.content);\n const t = useI18n();\n const assignmentsId = useUID();\n\n const TaskItems = useMemo(() => {\n return openItem ? <TaskItem {...openItem} headingTag='h2' /> : <TaskList items={items} />;\n }, [items, openItem]);\n\n const tasks = <CardContent>{items.length > 0 ? TaskItems : <EmptyState />}</CardContent>;\n\n const header = (\n <Flex container={{ alignItems: 'center', gap: 1 }}>\n {typeof collapsed === 'boolean' && <Icon name='caret-right' />}\n <Text variant='h2'>{t('assignments')}</Text>\n <Count>{count}</Count>\n </Flex>\n );\n\n return (\n <StyledAssignments {...restProps} openItem={!!openItem} data-app-region>\n {!openItem && (\n <CardHeader container={{ justify: 'start', alignItems: 'center', gap: 1 }}>\n {typeof collapsed === 'boolean' && onToggleCollapsed && (\n <StyledExpandButton\n type='button'\n variant='text'\n onClick={() => {\n onToggleCollapsed();\n }}\n aria-controls={assignmentsId}\n aria-expanded={!collapsed ? 'true' : 'false'}\n aria-label={t('assignments')}\n >\n {header}\n </StyledExpandButton>\n )}\n {collapsed === undefined && header}\n </CardHeader>\n )}\n\n {typeof collapsed === 'boolean' && onToggleCollapsed && !openItem ? (\n <ExpandCollapse collapsed={collapsed}>{tasks}</ExpandCollapse>\n ) : (\n tasks\n )}\n </StyledAssignments>\n );\n};\n\nexport default Assignments;\n"]}
@@ -0,0 +1,28 @@
1
+ import type { MutableRefObject, RefObject } from 'react';
2
+ import type { CaseListProps, AssignmentProps } from './HierarchicalAssignments.types';
3
+ type Id = CaseListProps['id'] | AssignmentProps['id'];
4
+ export interface AssignmentContextProps {
5
+ /** First Element's Assignment or Case Id in the list */
6
+ firstNodeId?: Id;
7
+ /** Last Element's Assignment or Case Id in the list */
8
+ lastNodeId?: Id;
9
+ /** Current Focused Element's Id */
10
+ focusedNodeId?: Id;
11
+ /** Callback to change the focus */
12
+ changeFocusHandler: (id: Id, key?: string, caseIdExpandList?: CaseListProps['id'][]) => void;
13
+ /** Array of Expanded Case Id's List */
14
+ caseIdExpandList: CaseListProps['id'][];
15
+ /** Boolean that refers component's breakpoint. */
16
+ isMediumOrAbove?: boolean;
17
+ /** Root Tree Ref */
18
+ parentRef?: RefObject<HTMLUListElement>;
19
+ /** State maintains key navigation switched to Forms mode. */
20
+ nodeInternalFocus?: boolean;
21
+ /** Function to update nodeInternalFocus state. */
22
+ setNodeInternalFocusHandler?: (value: boolean) => void;
23
+ /** Mutable Ref, tracks the reverse tab flow order in Forms mode. */
24
+ reverseTabFlow: MutableRefObject<boolean>;
25
+ }
26
+ declare const AssignmentContext: import("react").Context<AssignmentContextProps>;
27
+ export default AssignmentContext;
28
+ //# sourceMappingURL=AssignmentContext.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AssignmentContext.d.ts","sourceRoot":"","sources":["../../../src/components/HierarchicalAssignments/AssignmentContext.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,gBAAgB,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEzD,OAAO,KAAK,EAAE,aAAa,EAAE,eAAe,EAAE,MAAM,iCAAiC,CAAC;AAEtF,KAAK,EAAE,GAAG,aAAa,CAAC,IAAI,CAAC,GAAG,eAAe,CAAC,IAAI,CAAC,CAAC;AAEtD,MAAM,WAAW,sBAAsB;IACrC,wDAAwD;IACxD,WAAW,CAAC,EAAE,EAAE,CAAC;IACjB,uDAAuD;IACvD,UAAU,CAAC,EAAE,EAAE,CAAC;IAChB,mCAAmC;IACnC,aAAa,CAAC,EAAE,EAAE,CAAC;IACnB,mCAAmC;IACnC,kBAAkB,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,GAAG,CAAC,EAAE,MAAM,EAAE,gBAAgB,CAAC,EAAE,aAAa,CAAC,IAAI,CAAC,EAAE,KAAK,IAAI,CAAC;IAC7F,uCAAuC;IACvC,gBAAgB,EAAE,aAAa,CAAC,IAAI,CAAC,EAAE,CAAC;IACxC,kDAAkD;IAClD,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,oBAAoB;IACpB,SAAS,CAAC,EAAE,SAAS,CAAC,gBAAgB,CAAC,CAAC;IACxC,6DAA6D;IAC7D,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,kDAAkD;IAClD,2BAA2B,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,IAAI,CAAC;IACvD,oEAAoE;IACpE,cAAc,EAAE,gBAAgB,CAAC,OAAO,CAAC,CAAC;CAC3C;AAED,QAAA,MAAM,iBAAiB,iDAUrB,CAAC;AAEH,eAAe,iBAAiB,CAAC"}
@@ -0,0 +1,14 @@
1
+ import { createContext } from 'react';
2
+ const AssignmentContext = createContext({
3
+ firstNodeId: undefined,
4
+ lastNodeId: undefined,
5
+ focusedNodeId: undefined,
6
+ changeFocusHandler: () => { },
7
+ caseIdExpandList: [],
8
+ isMediumOrAbove: true,
9
+ parentRef: undefined,
10
+ setNodeInternalFocusHandler: () => { },
11
+ reverseTabFlow: { current: false }
12
+ });
13
+ export default AssignmentContext;
14
+ //# sourceMappingURL=AssignmentContext.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AssignmentContext.js","sourceRoot":"","sources":["../../../src/components/HierarchicalAssignments/AssignmentContext.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AA8BtC,MAAM,iBAAiB,GAAG,aAAa,CAAyB;IAC9D,WAAW,EAAE,SAAS;IACtB,UAAU,EAAE,SAAS;IACrB,aAAa,EAAE,SAAS;IACxB,kBAAkB,EAAE,GAAG,EAAE,GAAE,CAAC;IAC5B,gBAAgB,EAAE,EAAE;IACpB,eAAe,EAAE,IAAI;IACrB,SAAS,EAAE,SAAS;IACpB,2BAA2B,EAAE,GAAG,EAAE,GAAE,CAAC;IACrC,cAAc,EAAE,EAAE,OAAO,EAAE,KAAK,EAAE;CACnC,CAAC,CAAC;AAEH,eAAe,iBAAiB,CAAC","sourcesContent":["import { createContext } from 'react';\nimport type { MutableRefObject, RefObject } from 'react';\n\nimport type { CaseListProps, AssignmentProps } from './HierarchicalAssignments.types';\n\ntype Id = CaseListProps['id'] | AssignmentProps['id'];\n\nexport interface AssignmentContextProps {\n /** First Element's Assignment or Case Id in the list */\n firstNodeId?: Id;\n /** Last Element's Assignment or Case Id in the list */\n lastNodeId?: Id;\n /** Current Focused Element's Id */\n focusedNodeId?: Id;\n /** Callback to change the focus */\n changeFocusHandler: (id: Id, key?: string, caseIdExpandList?: CaseListProps['id'][]) => void;\n /** Array of Expanded Case Id's List */\n caseIdExpandList: CaseListProps['id'][];\n /** Boolean that refers component's breakpoint. */\n isMediumOrAbove?: boolean;\n /** Root Tree Ref */\n parentRef?: RefObject<HTMLUListElement>;\n /** State maintains key navigation switched to Forms mode. */\n nodeInternalFocus?: boolean;\n /** Function to update nodeInternalFocus state. */\n setNodeInternalFocusHandler?: (value: boolean) => void;\n /** Mutable Ref, tracks the reverse tab flow order in Forms mode. */\n reverseTabFlow: MutableRefObject<boolean>;\n}\n\nconst AssignmentContext = createContext<AssignmentContextProps>({\n firstNodeId: undefined,\n lastNodeId: undefined,\n focusedNodeId: undefined,\n changeFocusHandler: () => {},\n caseIdExpandList: [],\n isMediumOrAbove: true,\n parentRef: undefined,\n setNodeInternalFocusHandler: () => {},\n reverseTabFlow: { current: false }\n});\n\nexport default AssignmentContext;\n"]}
@@ -1,5 +1,8 @@
1
1
  /// <reference types="react" />
2
+ import type { HeadingTag } from '@pega/cosmos-react-core';
2
3
  import type { AssignmentProps } from './HierarchicalAssignments.types';
3
- export declare const AssignmentDetail: ({ processName, name }: Pick<AssignmentProps, 'processName' | 'name'>) => JSX.Element;
4
+ export declare const AssignmentDetail: ({ processName, name, headingTag }: Pick<AssignmentProps, "name" | "processName"> & {
5
+ headingTag?: HeadingTag | undefined;
6
+ }) => JSX.Element;
4
7
  export default AssignmentDetail;
5
8
  //# sourceMappingURL=AssignmentDetail.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"AssignmentDetail.d.ts","sourceRoot":"","sources":["../../../src/components/HierarchicalAssignments/AssignmentDetail.tsx"],"names":[],"mappings":";AAEA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,iCAAiC,CAAC;AAGvE,eAAO,MAAM,gBAAgB,0BAG1B,KAAK,eAAe,EAAE,aAAa,GAAG,MAAM,CAAC,gBAa/C,CAAC;AAEF,eAAe,gBAAgB,CAAC"}
1
+ {"version":3,"file":"AssignmentDetail.d.ts","sourceRoot":"","sources":["../../../src/components/HierarchicalAssignments/AssignmentDetail.tsx"],"names":[],"mappings":";AACA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AAE1D,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,iCAAiC,CAAC;AAGvE,eAAO,MAAM,gBAAgB;;iBAiB5B,CAAC;AAEF,eAAe,gBAAgB,CAAC"}
@@ -1,10 +1,10 @@
1
1
  import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import { Text, Tooltip, useElement } from '@pega/cosmos-react-core';
3
3
  import { StyledAssignmentText } from './Assignments.styles';
4
- export const AssignmentDetail = ({ processName, name }) => {
4
+ export const AssignmentDetail = ({ processName, name, headingTag }) => {
5
5
  const [element, setElement] = useElement();
6
6
  const assignmentDetail = processName ? `${processName} - ${name}` : name;
7
- return (_jsxs(_Fragment, { children: [_jsx(Text, { as: StyledAssignmentText, ref: setElement, children: assignmentDetail }), _jsx(Tooltip, { target: element, smart: true, children: assignmentDetail })] }));
7
+ return (_jsxs(_Fragment, { children: [_jsx(Text, { variant: headingTag, as: StyledAssignmentText, ref: setElement, children: assignmentDetail }), _jsx(Tooltip, { target: element, smart: true, children: assignmentDetail })] }));
8
8
  };
9
9
  export default AssignmentDetail;
10
10
  //# sourceMappingURL=AssignmentDetail.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"AssignmentDetail.js","sourceRoot":"","sources":["../../../src/components/HierarchicalAssignments/AssignmentDetail.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AAGpE,OAAO,EAAE,oBAAoB,EAAE,MAAM,sBAAsB,CAAC;AAE5D,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAAC,EAC/B,WAAW,EACX,IAAI,EAC0C,EAAE,EAAE;IAClD,MAAM,CAAC,OAAO,EAAE,UAAU,CAAC,GAAG,UAAU,EAAe,CAAC;IACxD,MAAM,gBAAgB,GAAG,WAAW,CAAC,CAAC,CAAC,GAAG,WAAW,MAAM,IAAI,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC;IACzE,OAAO,CACL,8BACE,KAAC,IAAI,IAAC,EAAE,EAAE,oBAAoB,EAAE,GAAG,EAAE,UAAU,YAC5C,gBAAgB,GACZ,EACP,KAAC,OAAO,IAAC,MAAM,EAAE,OAAO,EAAE,KAAK,kBAC5B,gBAAgB,GACT,IACT,CACJ,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,gBAAgB,CAAC","sourcesContent":["import { Text, Tooltip, useElement } from '@pega/cosmos-react-core';\n\nimport type { AssignmentProps } from './HierarchicalAssignments.types';\nimport { StyledAssignmentText } from './Assignments.styles';\n\nexport const AssignmentDetail = ({\n processName,\n name\n}: Pick<AssignmentProps, 'processName' | 'name'>) => {\n const [element, setElement] = useElement<HTMLElement>();\n const assignmentDetail = processName ? `${processName} - ${name}` : name;\n return (\n <>\n <Text as={StyledAssignmentText} ref={setElement}>\n {assignmentDetail}\n </Text>\n <Tooltip target={element} smart>\n {assignmentDetail}\n </Tooltip>\n </>\n );\n};\n\nexport default AssignmentDetail;\n"]}
1
+ {"version":3,"file":"AssignmentDetail.js","sourceRoot":"","sources":["../../../src/components/HierarchicalAssignments/AssignmentDetail.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AAIpE,OAAO,EAAE,oBAAoB,EAAE,MAAM,sBAAsB,CAAC;AAE5D,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAAC,EAC/B,WAAW,EACX,IAAI,EACJ,UAAU,EACkE,EAAE,EAAE;IAChF,MAAM,CAAC,OAAO,EAAE,UAAU,CAAC,GAAG,UAAU,EAAe,CAAC;IACxD,MAAM,gBAAgB,GAAG,WAAW,CAAC,CAAC,CAAC,GAAG,WAAW,MAAM,IAAI,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC;IACzE,OAAO,CACL,8BACE,KAAC,IAAI,IAAC,OAAO,EAAE,UAAU,EAAE,EAAE,EAAE,oBAAoB,EAAE,GAAG,EAAE,UAAU,YACjE,gBAAgB,GACZ,EACP,KAAC,OAAO,IAAC,MAAM,EAAE,OAAO,EAAE,KAAK,kBAC5B,gBAAgB,GACT,IACT,CACJ,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,gBAAgB,CAAC","sourcesContent":["import { Text, Tooltip, useElement } from '@pega/cosmos-react-core';\nimport type { HeadingTag } from '@pega/cosmos-react-core';\n\nimport type { AssignmentProps } from './HierarchicalAssignments.types';\nimport { StyledAssignmentText } from './Assignments.styles';\n\nexport const AssignmentDetail = ({\n processName,\n name,\n headingTag\n}: Pick<AssignmentProps, 'processName' | 'name'> & { headingTag?: HeadingTag }) => {\n const [element, setElement] = useElement<HTMLElement>();\n const assignmentDetail = processName ? `${processName} - ${name}` : name;\n return (\n <>\n <Text variant={headingTag} as={StyledAssignmentText} ref={setElement}>\n {assignmentDetail}\n </Text>\n <Tooltip target={element} smart>\n {assignmentDetail}\n </Tooltip>\n </>\n );\n};\n\nexport default AssignmentDetail;\n"]}
@@ -0,0 +1,20 @@
1
+ /// <reference types="react" />
2
+ import type { ItemsProps, AssignmentProps, CaseListProps } from './HierarchicalAssignments.types';
3
+ export interface AssignmentNodeProps {
4
+ /** Object that can be Assignment or Child details */
5
+ node: CaseListProps | AssignmentProps;
6
+ /** Property defines the node's depth level */
7
+ depth: number;
8
+ /** Callback of case expand/collapse button. */
9
+ childCaseToggleHandler?: ItemsProps['onToggleCollapsed'];
10
+ /** Boolean refers current case is expanded */
11
+ expanded: boolean;
12
+ /** total the number of items in the current set of treeitems */
13
+ setSize?: number;
14
+ /** the position of the element within the whole set of treeitems */
15
+ posInset?: number;
16
+ }
17
+ export declare const maxDepth = 5;
18
+ declare const AssignmentNode: ({ node, depth, expanded, childCaseToggleHandler, setSize, posInset }: AssignmentNodeProps) => JSX.Element;
19
+ export default AssignmentNode;
20
+ //# sourceMappingURL=AssignmentNode.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AssignmentNode.d.ts","sourceRoot":"","sources":["../../../src/components/HierarchicalAssignments/AssignmentNode.tsx"],"names":[],"mappings":";AAOA,OAAO,KAAK,EAAE,UAAU,EAAE,eAAe,EAAE,aAAa,EAAE,MAAM,iCAAiC,CAAC;AAElG,MAAM,WAAW,mBAAmB;IAClC,qDAAqD;IACrD,IAAI,EAAE,aAAa,GAAG,eAAe,CAAC;IACtC,8CAA8C;IAC9C,KAAK,EAAE,MAAM,CAAC;IACd,+CAA+C;IAC/C,sBAAsB,CAAC,EAAE,UAAU,CAAC,mBAAmB,CAAC,CAAC;IACzD,+CAA+C;IAC/C,QAAQ,EAAE,OAAO,CAAC;IAClB,gEAAgE;IAChE,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,oEAAoE;IACpE,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,eAAO,MAAM,QAAQ,IAAI,CAAC;AAE1B,QAAA,MAAM,cAAc,yEAOjB,mBAAmB,gBA0ErB,CAAC;AAEF,eAAe,cAAc,CAAC"}
@@ -0,0 +1,33 @@
1
+ import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { useState, useContext, useCallback } from 'react';
3
+ import AssignmentItem from './nodeItems/AssignmentItem';
4
+ import CaseDetail from './nodeItems/CaseDetail';
5
+ import AssignmentTreeContext from './AssignmentContext';
6
+ import { isAssignment, isExpandedNode } from './helpers';
7
+ import { StyledExpandCollpase } from './Assignments.styles';
8
+ export const maxDepth = 5;
9
+ const AssignmentNode = ({ node, depth, expanded, childCaseToggleHandler, setSize, posInset }) => {
10
+ const { caseIdExpandList } = useContext(AssignmentTreeContext);
11
+ const isAssignmentProps = isAssignment(node);
12
+ const [open, setOpen] = useState(expanded);
13
+ const handleToggle = useCallback(() => {
14
+ if (!isAssignmentProps) {
15
+ node.onToggleCollapsed?.(!open, node.id);
16
+ }
17
+ childCaseToggleHandler?.(!open, node.id);
18
+ setOpen(prevState => !prevState);
19
+ }, [open, node.id]);
20
+ const childSetSize = !isAssignmentProps
21
+ ? (node?.assignments?.length ?? 0) + (node?.childCases?.length ?? 0)
22
+ : 0;
23
+ let childPosInset = 0;
24
+ return (_jsx(_Fragment, { children: isAssignmentProps ? (_jsx(AssignmentItem, { ...node, depth: depth, setSize: setSize, posInset: posInset })) : (_jsx(CaseDetail, { ...node, onExpandButtonClickHandler: handleToggle, hasChildren: !!(node.assignments?.length || node.childCases?.length), open: open, depth: depth, setSize: setSize, posInset: posInset, children: open && !isAssignmentProps && (_jsx(StyledExpandCollpase, { collapsed: !open, id: `${node.id}-subtree`, forwardedAs: 'ul', role: 'group', children: _jsxs(_Fragment, { children: [node.assignments?.map(assignment => {
25
+ childPosInset += 1;
26
+ return (_jsx(AssignmentNode, { node: assignment, depth: depth + 1, expanded: false, setSize: childSetSize, posInset: childPosInset }, assignment.id));
27
+ }), node.childCases?.map(childNode => {
28
+ childPosInset += 1;
29
+ return (_jsx(AssignmentNode, { node: childNode, depth: depth + 1, expanded: isExpandedNode(caseIdExpandList, childNode.id), childCaseToggleHandler: childCaseToggleHandler, setSize: childSetSize, posInset: childPosInset }, childNode.id));
30
+ })] }) })) })) }));
31
+ };
32
+ export default AssignmentNode;
33
+ //# sourceMappingURL=AssignmentNode.js.map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C,CAAC;4BACnB,OAAO,CACL,KAAC,cAAc,IAEb,IAAI,EAAE,SAAS,EACf,KAAK,EAAE,KAAK,GAAG,CAAC,EAChB,QAAQ,EAAE,cAAc,CAAC,gBAAgB,EAAE,SAAS,CAAC,EAAE,CAAC,EACxD,sBAAsB,EAAE,sBAAsB,EAC9C,OAAO,EAAE,YAAY,EACrB,QAAQ,EAAE,aAAa,IANlB,SAAS,CAAC,EAAE,CAOjB,CACH,CAAC;wBACJ,CAAC,CAAC,IACD,GACkB,CACxB,GACU,CACd,GACA,CACJ,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,cAAc,CAAC","sourcesContent":["import { useState, useContext, useCallback } from 'react';\n\nimport AssignmentItem from './nodeItems/AssignmentItem';\nimport CaseDetail from './nodeItems/CaseDetail';\nimport AssignmentTreeContext from './AssignmentContext';\nimport { isAssignment, isExpandedNode } from './helpers';\nimport { StyledExpandCollpase } from './Assignments.styles';\nimport type { ItemsProps, AssignmentProps, CaseListProps } from './HierarchicalAssignments.types';\n\nexport interface AssignmentNodeProps {\n /** Object that can be Assignment or Child details */\n node: CaseListProps | AssignmentProps;\n /** Property defines the node's depth level */\n depth: number;\n /** Callback of case expand/collapse button. */\n childCaseToggleHandler?: ItemsProps['onToggleCollapsed'];\n /** Boolean refers current case is expanded */\n expanded: boolean;\n /** total the number of items in the current set of treeitems */\n setSize?: number;\n /** the position of the element within the whole set of treeitems */\n posInset?: number;\n}\n\nexport const maxDepth = 5;\n\nconst AssignmentNode = ({\n node,\n depth,\n expanded,\n childCaseToggleHandler,\n setSize,\n posInset\n}: AssignmentNodeProps) => {\n const { caseIdExpandList } = useContext(AssignmentTreeContext);\n const isAssignmentProps = isAssignment(node);\n const [open, setOpen] = useState(expanded);\n\n const handleToggle = useCallback(() => {\n if (!isAssignmentProps) {\n node.onToggleCollapsed?.(!open, node.id);\n }\n childCaseToggleHandler?.(!open, node.id);\n setOpen(prevState => !prevState);\n }, [open, node.id]);\n\n const childSetSize = !isAssignmentProps\n ? (node?.assignments?.length ?? 0) + (node?.childCases?.length ?? 0)\n : 0;\n let childPosInset = 0;\n\n return (\n <>\n {isAssignmentProps ? (\n <AssignmentItem {...node} depth={depth} setSize={setSize} posInset={posInset} />\n ) : (\n <CaseDetail\n {...node}\n onExpandButtonClickHandler={handleToggle}\n hasChildren={!!(node.assignments?.length || node.childCases?.length)}\n open={open}\n depth={depth}\n setSize={setSize}\n posInset={posInset}\n >\n {open && !isAssignmentProps && (\n <StyledExpandCollpase\n collapsed={!open}\n id={`${node.id}-subtree`}\n forwardedAs='ul'\n role='group'\n >\n <>\n {node.assignments?.map(assignment => {\n childPosInset += 1;\n return (\n <AssignmentNode\n key={assignment.id}\n node={assignment}\n depth={depth + 1}\n expanded={false}\n setSize={childSetSize}\n posInset={childPosInset}\n />\n );\n })}\n {node.childCases?.map(childNode => {\n childPosInset += 1;\n return (\n <AssignmentNode\n key={childNode.id}\n node={childNode}\n depth={depth + 1}\n expanded={isExpandedNode(caseIdExpandList, childNode.id)}\n childCaseToggleHandler={childCaseToggleHandler}\n setSize={childSetSize}\n posInset={childPosInset}\n />\n );\n })}\n </>\n </StyledExpandCollpase>\n )}\n </CaseDetail>\n )}\n </>\n );\n};\n\nexport default AssignmentNode;\n"]}
@@ -0,0 +1,15 @@
1
+ import type { Ref } from 'react';
2
+ import type { HierarchicalAssignmentProps, ItemsProps } from './HierarchicalAssignments.types';
3
+ export interface AssignmentTreeProps {
4
+ /** An array of assignment details to be rendered as Assignment details */
5
+ assignments?: HierarchicalAssignmentProps['assignments'];
6
+ /** An array of child cases to be rendered as case details */
7
+ childCases?: HierarchicalAssignmentProps['childCases'];
8
+ /** Callback of case expand/collapse button. */
9
+ childCaseToggleHandler?: ItemsProps['onToggleCollapsed'];
10
+ /** Ref placed on the tree element. */
11
+ ref?: Ref<HTMLUListElement>;
12
+ }
13
+ declare const AssignmentTree: import("react").ForwardRefExoticComponent<Omit<AssignmentTreeProps, "ref"> & import("react").RefAttributes<HTMLUListElement>>;
14
+ export default AssignmentTree;
15
+ //# sourceMappingURL=AssignmentTree.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AssignmentTree.d.ts","sourceRoot":"","sources":["../../../src/components/HierarchicalAssignments/AssignmentTree.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AAMjC,OAAO,KAAK,EAAE,2BAA2B,EAAE,UAAU,EAAE,MAAM,iCAAiC,CAAC;AAG/F,MAAM,WAAW,mBAAmB;IAClC,0EAA0E;IAC1E,WAAW,CAAC,EAAE,2BAA2B,CAAC,aAAa,CAAC,CAAC;IACzD,6DAA6D;IAC7D,UAAU,CAAC,EAAE,2BAA2B,CAAC,YAAY,CAAC,CAAC;IACvD,gDAAgD;IAChD,sBAAsB,CAAC,EAAE,UAAU,CAAC,mBAAmB,CAAC,CAAC;IACzD,sCAAsC;IACtC,GAAG,CAAC,EAAE,GAAG,CAAC,gBAAgB,CAAC,CAAC;CAC7B;AAED,QAAA,MAAM,cAAc,+HAuCnB,CAAC;AAEF,eAAe,cAAc,CAAC"}
@@ -0,0 +1,21 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { useContext, forwardRef } from 'react';
3
+ import AssignmentNode from './AssignmentNode';
4
+ import AssignmentItem from './nodeItems/AssignmentItem';
5
+ import AssignmentTreeContext from './AssignmentContext';
6
+ import { isExpandedNode, initialDepth } from './helpers';
7
+ import { StyledTreeRoot } from './Assignments.styles';
8
+ const AssignmentTree = forwardRef(({ assignments, childCases, childCaseToggleHandler }, ref) => {
9
+ const { caseIdExpandList } = useContext(AssignmentTreeContext);
10
+ const setSize = (assignments?.length ?? 0) + (childCases?.length ?? 0);
11
+ let posInset = 0;
12
+ return (_jsxs(StyledTreeRoot, { role: 'tree', ref: ref, tabIndex: -1, children: [assignments?.map(assignment => {
13
+ posInset += 1;
14
+ return (_jsx(AssignmentItem, { ...assignment, depth: initialDepth, setSize: setSize, posInset: posInset }, assignment.id));
15
+ }), childCases?.map(childNode => {
16
+ posInset += 1;
17
+ return (_jsx(AssignmentNode, { depth: initialDepth, node: childNode, expanded: isExpandedNode(caseIdExpandList, childNode.id), childCaseToggleHandler: childCaseToggleHandler, setSize: setSize, posInset: posInset }, childNode.id));
18
+ })] }));
19
+ });
20
+ export default AssignmentTree;
21
+ //# sourceMappingURL=AssignmentTree.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AssignmentTree.js","sourceRoot":"","sources":["../../../src/components/HierarchicalAssignments/AssignmentTree.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;AAG/C,OAAO,cAAc,MAAM,kBAAkB,CAAC;AAC9C,OAAO,cAAc,MAAM,4BAA4B,CAAC;AACxD,OAAO,qBAAqB,MAAM,qBAAqB,CAAC;AACxD,OAAO,EAAE,cAAc,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AAEzD,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAatD,MAAM,cAAc,GAAG,UAAU,CAC/B,CACE,EAAE,WAAW,EAAE,UAAU,EAAE,sBAAsB,EAAuB,EACxE,GAA+B,EAC/B,EAAE;IACF,MAAM,EAAE,gBAAgB,EAAE,GAAG,UAAU,CAAC,qBAAqB,CAAC,CAAC;IAC/D,MAAM,OAAO,GAAG,CAAC,WAAW,EAAE,MAAM,IAAI,CAAC,CAAC,GAAG,CAAC,UAAU,EAAE,MAAM,IAAI,CAAC,CAAC,CAAC;IACvE,IAAI,QAAQ,GAAG,CAAC,CAAC;IACjB,OAAO,CACL,MAAC,cAAc,IAAC,IAAI,EAAC,MAAM,EAAC,GAAG,EAAE,GAAG,EAAE,QAAQ,EAAE,CAAC,CAAC,aAC/C,WAAW,EAAE,GAAG,CAAC,UAAU,CAAC,EAAE;gBAC7B,QAAQ,IAAI,CAAC,CAAC;gBACd,OAAO,CACL,KAAC,cAAc,OAET,UAAU,EACd,KAAK,EAAE,YAAY,EACnB,OAAO,EAAE,OAAO,EAChB,QAAQ,EAAE,QAAQ,IAJb,UAAU,CAAC,EAAE,CAKlB,CACH,CAAC;YACJ,CAAC,CAAC,EACD,UAAU,EAAE,GAAG,CAAC,SAAS,CAAC,EAAE;gBAC3B,QAAQ,IAAI,CAAC,CAAC;gBACd,OAAO,CACL,KAAC,cAAc,IACb,KAAK,EAAE,YAAY,EAEnB,IAAI,EAAE,SAAS,EACf,QAAQ,EAAE,cAAc,CAAC,gBAAgB,EAAE,SAAS,CAAC,EAAE,CAAC,EACxD,sBAAsB,EAAE,sBAAsB,EAC9C,OAAO,EAAE,OAAO,EAChB,QAAQ,EAAE,QAAQ,IALb,SAAS,CAAC,EAAE,CAMjB,CACH,CAAC;YACJ,CAAC,CAAC,IACa,CAClB,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,eAAe,cAAc,CAAC","sourcesContent":["import { useContext, forwardRef } from 'react';\nimport type { Ref } from 'react';\n\nimport AssignmentNode from './AssignmentNode';\nimport AssignmentItem from './nodeItems/AssignmentItem';\nimport AssignmentTreeContext from './AssignmentContext';\nimport { isExpandedNode, initialDepth } from './helpers';\nimport type { HierarchicalAssignmentProps, ItemsProps } from './HierarchicalAssignments.types';\nimport { StyledTreeRoot } from './Assignments.styles';\n\nexport interface AssignmentTreeProps {\n /** An array of assignment details to be rendered as Assignment details */\n assignments?: HierarchicalAssignmentProps['assignments'];\n /** An array of child cases to be rendered as case details */\n childCases?: HierarchicalAssignmentProps['childCases'];\n /** Callback of case expand/collapse button. */\n childCaseToggleHandler?: ItemsProps['onToggleCollapsed'];\n /** Ref placed on the tree element. */\n ref?: Ref<HTMLUListElement>;\n}\n\nconst AssignmentTree = forwardRef(\n (\n { assignments, childCases, childCaseToggleHandler }: AssignmentTreeProps,\n ref: AssignmentTreeProps['ref']\n ) => {\n const { caseIdExpandList } = useContext(AssignmentTreeContext);\n const setSize = (assignments?.length ?? 0) + (childCases?.length ?? 0);\n let posInset = 0;\n return (\n <StyledTreeRoot role='tree' ref={ref} tabIndex={-1}>\n {assignments?.map(assignment => {\n posInset += 1;\n return (\n <AssignmentItem\n key={assignment.id}\n {...assignment}\n depth={initialDepth}\n setSize={setSize}\n posInset={posInset}\n />\n );\n })}\n {childCases?.map(childNode => {\n posInset += 1;\n return (\n <AssignmentNode\n depth={initialDepth}\n key={childNode.id}\n node={childNode}\n expanded={isExpandedNode(caseIdExpandList, childNode.id)}\n childCaseToggleHandler={childCaseToggleHandler}\n setSize={setSize}\n posInset={posInset}\n />\n );\n })}\n </StyledTreeRoot>\n );\n }\n);\n\nexport default AssignmentTree;\n"]}
@@ -1,9 +1,9 @@
1
1
  /// <reference types="react" />
2
- import { Grid } from '@pega/cosmos-react-core';
3
2
  export declare const StyledExpandButton: import("styled-components").StyledComponent<import("react").FunctionComponent<import("@pega/cosmos-react-core").ButtonProps & import("@pega/cosmos-react-core").ForwardProps>, import("styled-components").DefaultTheme, {}, never>;
4
- export declare const StyledExpandCollapse: import("styled-components").StyledComponent<import("react").FunctionComponent<import("@pega/cosmos-react-core").ExpandCollapseProps & import("@pega/cosmos-react-core").ForwardProps>, import("styled-components").DefaultTheme, {}, never>;
5
- export declare const StyledParentExpandCollapse: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
6
- export declare const StyledAssignmentItem: typeof Grid;
3
+ export declare const StyledExpandCollpase: import("styled-components").StyledComponent<import("react").FunctionComponent<import("@pega/cosmos-react-core").ExpandCollapseProps & import("@pega/cosmos-react-core").ForwardProps>, import("styled-components").DefaultTheme, {}, never>;
4
+ export declare const StyledAssignmentItem: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {
5
+ hideBorders?: boolean | undefined;
6
+ }, never>;
7
7
  export declare const StyledProcessContainer: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {
8
8
  depth?: number | undefined;
9
9
  }, never>;
@@ -21,17 +21,12 @@ export declare const StyledSummaryItem: import("styled-components").StyledCompon
21
21
  export declare const StyledAssignments: import("styled-components").StyledComponent<import("react").FunctionComponent<import("@pega/cosmos-react-core").CardProps & import("@pega/cosmos-react-core").ForwardProps>, import("styled-components").DefaultTheme, {
22
22
  expanded?: boolean | undefined;
23
23
  }, never>;
24
- export declare const StyledAssignmentContainer: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {
25
- depth?: number | undefined;
26
- hideBorders?: boolean | undefined;
27
- }, never>;
28
24
  export declare const StyledAssignmentText: import("styled-components").StyledComponent<import("react").FunctionComponent<import("@pega/cosmos-react-core").TextProps & import("@pega/cosmos-react-core").ForwardProps>, import("styled-components").DefaultTheme, {}, never>;
29
25
  export declare const StyledLinkContainer: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {
30
26
  isMediumOrAbove?: boolean | undefined;
31
27
  }, never>;
32
28
  export declare const StyledAssigneeContainer: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {
33
29
  depth?: number | undefined;
34
- isMediumOrAbove?: boolean | undefined;
35
30
  }, never>;
36
31
  export declare const StyledAssigneeText: import("styled-components").StyledComponent<import("react").FunctionComponent<import("@pega/cosmos-react-core").ButtonProps & import("@pega/cosmos-react-core").ForwardProps>, import("styled-components").DefaultTheme, {}, never>;
37
32
  export declare const StyledMetaListContainer: import("styled-components").StyledComponent<import("react").FunctionComponent<import("@pega/cosmos-react-core").MetaListProps & import("@pega/cosmos-react-core").ForwardProps> & {
@@ -42,4 +37,15 @@ export declare const StyledMetaListContainer: import("styled-components").Styled
42
37
  export declare const StyledMetaIdStatusContainer: import("styled-components").StyledComponent<import("react").FunctionComponent<import("@pega/cosmos-react-core").MetaListProps & import("@pega/cosmos-react-core").ForwardProps> & {
43
38
  getTestIds: (testIdProp?: string | null | undefined) => import("@pega/cosmos-react-core").TestIdsRecord<readonly []>;
44
39
  }, import("styled-components").DefaultTheme, {}, never>;
40
+ export declare const StyledLabelContainer: import("styled-components").StyledComponent<"span", import("styled-components").DefaultTheme, {}, never>;
41
+ export declare const StyledTreeRoot: import("styled-components").StyledComponent<"ul", import("styled-components").DefaultTheme, {}, never>;
42
+ export declare const StyledNode: import("styled-components").StyledComponent<"li", import("styled-components").DefaultTheme, {
43
+ isFocus?: boolean | undefined;
44
+ lastNode?: boolean | undefined;
45
+ isChild?: boolean | undefined;
46
+ depth: number;
47
+ }, never>;
48
+ export declare const StyledAssignmentItemMetaList: import("styled-components").StyledComponent<import("react").FunctionComponent<import("@pega/cosmos-react-core").MetaListProps & import("@pega/cosmos-react-core").ForwardProps> & {
49
+ getTestIds: (testIdProp?: string | null | undefined) => import("@pega/cosmos-react-core").TestIdsRecord<readonly []>;
50
+ }, import("styled-components").DefaultTheme, {}, never>;
45
51
  //# sourceMappingURL=Assignments.styles.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Assignments.styles.d.ts","sourceRoot":"","sources":["../../../src/components/HierarchicalAssignments/Assignments.styles.ts"],"names":[],"mappings":";AAEA,OAAO,EACL,IAAI,EAYL,MAAM,yBAAyB,CAAC;AAKjC,eAAO,MAAM,kBAAkB,qOA0B7B,CAAC;AAIH,eAAO,MAAM,oBAAoB,6OAQ/B,CAAC;AAIH,eAAO,MAAM,0BAA0B,yGAMrC,CAAC;AAIH,eAAO,MAAM,oBAAoB,EAAE,OAAO,IAsBxC,CAAC;AAGH,eAAO,MAAM,sBAAsB;;SA0BlC,CAAC;AAGF,eAAO,MAAM,qBAAqB;;SAYjC,CAAC;AAGF,eAAO,MAAM,qBAAqB;;SAoBjC,CAAC;AAGF,eAAO,MAAM,iBAAiB;;;YAAiC,OAAO;SAiBpE,CAAC;AAGH,eAAO,MAAM,iBAAiB;;SAW5B,CAAC;AAIH,eAAO,MAAM,yBAAyB;;;SA8BrC,CAAC;AAGF,eAAO,MAAM,oBAAoB,mOAI/B,CAAC;AAGH,eAAO,MAAM,mBAAmB;;SAsB/B,CAAC;AAGF,eAAO,MAAM,uBAAuB;;;SA2BnC,CAAC;AAGF,eAAO,MAAM,kBAAkB,qOAO7B,CAAC;AAGH,eAAO,MAAM,uBAAuB;;;YAC1B,OAAO;SA2Bf,CAAC;AAGH,eAAO,MAAM,2BAA2B;;uDAQtC,CAAC"}
1
+ {"version":3,"file":"Assignments.styles.d.ts","sourceRoot":"","sources":["../../../src/components/HierarchicalAssignments/Assignments.styles.ts"],"names":[],"mappings":";AAmBA,eAAO,MAAM,kBAAkB,qOA0B7B,CAAC;AAIH,eAAO,MAAM,oBAAoB,6OAQ/B,CAAC;AAGH,eAAO,MAAM,oBAAoB;;SAahC,CAAC;AAGF,eAAO,MAAM,sBAAsB;;SA4BlC,CAAC;AAGF,eAAO,MAAM,qBAAqB;;SAajC,CAAC;AAGF,eAAO,MAAM,qBAAqB;;SAgBjC,CAAC;AAGF,eAAO,MAAM,iBAAiB;;;YAAiC,OAAO;SAiBpE,CAAC;AAGH,eAAO,MAAM,iBAAiB;;SAe5B,CAAC;AAIH,eAAO,MAAM,oBAAoB,mOAI/B,CAAC;AAGH,eAAO,MAAM,mBAAmB;;SAsB/B,CAAC;AAGF,eAAO,MAAM,uBAAuB;;SAqBnC,CAAC;AAGF,eAAO,MAAM,kBAAkB,qOAQ7B,CAAC;AAGH,eAAO,MAAM,uBAAuB;;;YAC1B,OAAO;SA2Bf,CAAC;AAGH,eAAO,MAAM,2BAA2B;;uDAQtC,CAAC;AAGH,eAAO,MAAM,oBAAoB,0GAUhC,CAAC;AAGF,eAAO,MAAM,cAAc,wGAkC1B,CAAC;AAGF,eAAO,MAAM,UAAU;;;;WAId,MAAM;SAoDd,CAAC;AAGF,eAAO,MAAM,4BAA4B;;uDAQvC,CAAC"}
@@ -1,5 +1,5 @@
1
1
  import styled, { css } from 'styled-components';
2
- import { Grid, Button, Card, defaultThemeProp, StyledIcon, ExpandCollapse, useDirection, Text, MetaList, SummaryItem, calculateFontSize, StyledText } from '@pega/cosmos-react-core';
2
+ import { Button, Card, defaultThemeProp, StyledIcon, useDirection, MetaList, SummaryItem, calculateFontSize, StyledText, Text, ExpandCollapse } from '@pega/cosmos-react-core';
3
3
  import { elipsisOverflow } from '@pega/cosmos-react-core/lib/styles/mixins';
4
4
  import { StyledCardHeader } from '@pega/cosmos-react-core/lib/components/Card/CardHeader';
5
5
  export const StyledExpandButton = styled(Button)(({ theme: { base: { animation } } }) => {
@@ -26,30 +26,17 @@ export const StyledExpandButton = styled(Button)(({ theme: { base: { animation }
26
26
  `;
27
27
  });
28
28
  StyledExpandButton.defaultProps = defaultThemeProp;
29
- export const StyledExpandCollapse = styled(ExpandCollapse)(({ theme: { base: { spacing } } }) => {
29
+ export const StyledExpandCollpase = styled(ExpandCollapse)(({ theme: { base: { spacing } } }) => {
30
30
  return css `
31
- padding-inline: calc(${spacing} * 2);
31
+ margin-block-start: calc(0.125 * ${spacing});
32
32
  `;
33
33
  });
34
- StyledExpandCollapse.defaultProps = defaultThemeProp;
35
- export const StyledParentExpandCollapse = styled.div(() => {
36
- const assignmentHeight = '50dvh';
34
+ StyledExpandCollpase.defaultProps = defaultThemeProp;
35
+ export const StyledAssignmentItem = styled.div(({ theme: { base: { spacing } } }) => {
37
36
  return css `
38
- max-height: ${assignmentHeight};
39
- overflow-y: auto;
40
- `;
41
- });
42
- StyledParentExpandCollapse.defaultProps = defaultThemeProp;
43
- export const StyledAssignmentItem = styled(Grid)(({ theme: { base: { spacing, colors }, components: { table: { body: { 'border-width': borderWidth } } } }, hideBorders }) => {
44
- return css `
45
- padding-inline-end: calc(2 * ${spacing});
46
- padding-block: calc(0.5 * ${spacing});
47
- border-block-start: ${borderWidth} dashed ${colors.gray.light};
48
- ${hideBorders &&
49
- css `
50
- border-block-start: none;
51
- `};
52
- `;
37
+ padding-inline-end: calc(2 * ${spacing});
38
+ padding-block: calc(0.5 * ${spacing});
39
+ `;
53
40
  });
54
41
  StyledAssignmentItem.defaultProps = defaultThemeProp;
55
42
  export const StyledProcessContainer = styled.div(({ depth, theme: { base: { spacing }, components: { icon: { size: { s } } } } }) => {
@@ -61,14 +48,17 @@ export const StyledProcessContainer = styled.div(({ depth, theme: { base: { spac
61
48
  padding-inline-start: ${paddingInlineStart};
62
49
  grid-row-start: 1;
63
50
  grid-row-end: 1;
51
+ height: 100%;
64
52
  ${StyledText} {
65
53
  ${elipsisOverflow}
54
+ padding-inline: calc(0.5 * ${spacing});
66
55
  }
67
56
  `;
68
57
  });
69
58
  StyledProcessContainer.defaultProps = defaultThemeProp;
70
59
  export const StyledActionContainer = styled.div(({ isMediumOrAbove }) => {
71
60
  return css `
61
+ min-width: 3.313rem;
72
62
  grid-row-start: 1;
73
63
  grid-row-end: -1;
74
64
  ${isMediumOrAbove &&
@@ -79,14 +69,13 @@ export const StyledActionContainer = styled.div(({ isMediumOrAbove }) => {
79
69
  `;
80
70
  });
81
71
  StyledActionContainer.defaultProps = defaultThemeProp;
82
- export const StyledHeaderContainer = styled.div(({ theme: { base: { spacing, palette: { 'secondary-background': secondaryBackground } } }, depth }) => {
72
+ export const StyledHeaderContainer = styled.div(({ theme: { base: { spacing } }, depth }) => {
83
73
  const paddingInlineStart = depth
84
74
  ? `calc(1.5 * ${spacing} * ${depth})`
85
75
  : `calc(1.5 * ${spacing})`;
86
76
  return css `
87
77
  padding-inline-start: ${paddingInlineStart};
88
78
  padding-block: calc(0.5 * ${spacing});
89
- background-color: ${secondaryBackground};
90
79
  `;
91
80
  });
92
81
  StyledHeaderContainer.defaultProps = defaultThemeProp;
@@ -102,8 +91,12 @@ StyledSummaryItem.defaultProps = defaultThemeProp;
102
91
  export const StyledAssignments = styled(Card)(({ theme, expanded }) => {
103
92
  return css `
104
93
  padding: calc(${theme.base.spacing} * 2);
105
- box-shadow: ${expanded ? theme.base.shadow.low : 'none'};
106
- &&& {
94
+
95
+ &:has(form) {
96
+ box-shadow: ${expanded ? theme.base.shadow.low : 'none'};
97
+ }
98
+
99
+ &&&& {
107
100
  > ${StyledCardHeader} {
108
101
  padding: 0;
109
102
  padding-block-end: ${expanded ? `calc(${theme.base.spacing} * 2)` : 0};
@@ -112,22 +105,6 @@ export const StyledAssignments = styled(Card)(({ theme, expanded }) => {
112
105
  `;
113
106
  });
114
107
  StyledAssignments.defaultProps = defaultThemeProp;
115
- export const StyledAssignmentContainer = styled.div(({ theme: { base: { colors, 'border-radius': borderRadius }, components: { table: { body: { 'border-width': borderWidth } } } }, depth, hideBorders }) => {
116
- return css `
117
- overflow: hidden;
118
- width: 100%;
119
- ${!depth &&
120
- css `
121
- border: ${borderWidth} solid ${colors.gray.light};
122
- border-radius: ${borderRadius};
123
- `}
124
- ${depth &&
125
- css `
126
- border-block-start: ${hideBorders ? 'none' : `${borderWidth} dashed ${colors.gray.light}`};
127
- `}
128
- `;
129
- });
130
- StyledAssignmentContainer.defaultProps = defaultThemeProp;
131
108
  export const StyledAssignmentText = styled(Text)(({ theme }) => {
132
109
  return css `
133
110
  font-weight: ${theme.base['font-weight']['semi-bold']};
@@ -151,24 +128,20 @@ export const StyledLinkContainer = styled.div(({ theme: { base: { spacing } }, i
151
128
  `;
152
129
  });
153
130
  StyledLinkContainer.defaultProps = defaultThemeProp;
154
- export const StyledAssigneeContainer = styled.div(({ theme: { base: { spacing }, components: { icon: { size: { s } } } }, depth, isMediumOrAbove }) => {
131
+ export const StyledAssigneeContainer = styled.div(({ theme: { base: { spacing }, components: { icon: { size: { s } } } }, depth }) => {
155
132
  const paddingInlineStart = depth
156
133
  ? `calc(1.5 * ${spacing} * ${depth} + ${s} + ${spacing})`
157
134
  : `calc(1.5 * ${spacing})`;
158
135
  return css `
159
- padding-block: calc(0.5 * ${spacing});
160
136
  overflow: hidden;
161
137
  padding-inline-start: ${paddingInlineStart};
162
- ${isMediumOrAbove &&
163
- css `
164
- padding: calc(0.5 * ${spacing});
165
- `};
166
138
  `;
167
139
  });
168
140
  StyledAssigneeContainer.defaultProps = defaultThemeProp;
169
141
  export const StyledAssigneeText = styled(Button)(({ theme }) => {
170
142
  const fontSizes = calculateFontSize(theme.base['font-size'], theme.base['font-scale']);
171
143
  return css `
144
+ max-width: 16ch;
172
145
  ${elipsisOverflow}
173
146
  font-size: ${fontSizes[theme.components.text.secondary['font-size']]};
174
147
  font-weight: ${theme.components.text.secondary['font-weight']};
@@ -199,4 +172,68 @@ export const StyledMetaIdStatusContainer = styled(MetaList)(({ theme: { base: {
199
172
  `;
200
173
  });
201
174
  StyledMetaIdStatusContainer.defaultProps = defaultThemeProp;
175
+ export const StyledLabelContainer = styled.span(({ theme: { base: { spacing } } }) => {
176
+ return css `
177
+ padding-inline-end: calc(0.5 * ${spacing});
178
+ `;
179
+ });
180
+ StyledLabelContainer.defaultProps = defaultThemeProp;
181
+ export const StyledTreeRoot = styled.ul(({ theme: { base: { 'border-radius': borderRadius, palette: { 'border-line': borderLine } }, components: { table: { body: { 'border-width': borderWidth } } } } }) => {
182
+ return css `
183
+ list-style-type: none;
184
+ /* stylelint-disable-next-line unit-allowed-list */
185
+ max-height: 50dvh;
186
+ overflow-y: auto;
187
+ border: ${borderWidth} solid ${borderLine};
188
+ border-radius: ${borderRadius};
189
+
190
+ & > li:first-child {
191
+ border-block-start: none;
192
+ border-start-start-radius: ${borderRadius};
193
+ border-start-end-radius: ${borderRadius};
194
+ & > div,
195
+ & > div:focus-within {
196
+ border-start-start-radius: ${borderRadius};
197
+ border-start-end-radius: ${borderRadius};
198
+ }
199
+ }
200
+ `;
201
+ });
202
+ StyledTreeRoot.defaultProps = defaultThemeProp;
203
+ export const StyledNode = styled.li(({ theme: { base: { shadow, 'border-radius': borderRadius, palette: { 'secondary-background': secondaryBackground, 'primary-background': primaryBackground, 'border-line': borderLine } }, components: { table: { body: { 'border-width': borderWidth } } } }, isFocus, lastNode, isChild, depth }) => {
204
+ return css `
205
+ list-style: none;
206
+ border-block-start: ${borderWidth} dashed ${borderLine};
207
+ outline: none;
208
+ padding: ${depth <= 1 ? borderWidth : '0'};
209
+ background-color: ${isChild ? secondaryBackground : primaryBackground};
210
+ ${isFocus &&
211
+ css `
212
+ &:focus {
213
+ position: relative;
214
+ }
215
+ &:focus > div {
216
+ box-shadow: ${shadow['focus-solid']};
217
+ }
218
+ `}
219
+
220
+ ${lastNode &&
221
+ css `
222
+ border-end-start-radius: ${borderRadius};
223
+ border-end-end-radius: ${borderRadius};
224
+ & > div,
225
+ & > div:focus-within {
226
+ border-end-start-radius: ${borderRadius};
227
+ border-end-end-radius: ${borderRadius};
228
+ }
229
+ `};
230
+ `;
231
+ });
232
+ StyledNode.defaultProps = defaultThemeProp;
233
+ export const StyledAssignmentItemMetaList = styled(MetaList)(({ theme: { base: { spacing } } }) => {
234
+ return css `
235
+ padding: calc(0.5 * ${spacing});
236
+ `;
237
+ });
238
+ StyledAssignmentItemMetaList.defaultProps = defaultThemeProp;
202
239
  //# sourceMappingURL=Assignments.styles.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Assignments.styles.js","sourceRoot":"","sources":["../../../src/components/HierarchicalAssignments/Assignments.styles.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,EAAE,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAEhD,OAAO,EACL,IAAI,EACJ,MAAM,EACN,IAAI,EACJ,gBAAgB,EAChB,UAAU,EACV,cAAc,EACd,YAAY,EACZ,IAAI,EACJ,QAAQ,EACR,WAAW,EACX,iBAAiB,EACjB,UAAU,EACX,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,eAAe,EAAE,MAAM,2CAA2C,CAAC;AAE5E,OAAO,EAAE,gBAAgB,EAAE,MAAM,wDAAwD,CAAC;AAE1F,MAAM,CAAC,MAAM,kBAAkB,GAAG,MAAM,CAAC,MAAM,CAAC,CAAC,CAAC,EAChD,KAAK,EAAE,EACL,IAAI,EAAE,EAAE,SAAS,EAAE,EACpB,EACF,EAAE,EAAE;IACH,MAAM,EAAE,GAAG,EAAE,GAAG,YAAY,EAAE,CAAC;IAC/B,OAAO,GAAG,CAAA;;;MAGN,UAAU;8BACc,SAAS,CAAC,KAAK,IAAI,SAAS,CAAC,MAAM,CAAC,IAAI;;;8BAGxC,UAAU;;;;+BAIT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,CAAC,QAAQ,CAAC,CAAC,CAAC,EAC3D,KAAK,EAAE,EACL,IAAI,EAAE,EAAE,OAAO,EAAE,EAClB,EACF,EAAE,EAAE;IACH,OAAO,GAAG,CAAA;iCACqB,OAAO;GACrC,CAAC;AACJ,CAAC,CAAC,CAAC;AACH,2BAA2B,CAAC,YAAY,GAAG,gBAAgB,CAAC","sourcesContent":["import styled, { css } from 'styled-components';\n\nimport {\n Grid,\n Button,\n Card,\n defaultThemeProp,\n StyledIcon,\n ExpandCollapse,\n useDirection,\n Text,\n MetaList,\n SummaryItem,\n calculateFontSize,\n StyledText\n} from '@pega/cosmos-react-core';\nimport { elipsisOverflow } from '@pega/cosmos-react-core/lib/styles/mixins';\nimport type { FontSize } from '@pega/cosmos-react-core';\nimport { StyledCardHeader } from '@pega/cosmos-react-core/lib/components/Card/CardHeader';\n\nexport const StyledExpandButton = styled(Button)(({\n theme: {\n base: { animation }\n }\n}) => {\n const { rtl } = useDirection();\n return css`\n margin: 0;\n\n ${StyledIcon} {\n transition: transform ${animation.speed} ${animation.timing.ease};\n }\n\n &[aria-expanded='true'] ${StyledIcon} {\n transform: rotate(90deg);\n }\n\n &[aria-expanded='false'] ${StyledIcon} {\n transform: rotate(${rtl ? 180 : 0}deg);\n }\n\n &:hover,\n &:active {\n text-decoration: none;\n }\n `;\n});\n\nStyledExpandButton.defaultProps = defaultThemeProp;\n\nexport const StyledExpandCollapse = styled(ExpandCollapse)(({\n theme: {\n base: { spacing }\n }\n}) => {\n return css`\n padding-inline: calc(${spacing} * 2);\n `;\n});\n\nStyledExpandCollapse.defaultProps = defaultThemeProp;\n\nexport const StyledParentExpandCollapse = styled.div(() => {\n const assignmentHeight = '50dvh';\n return css`\n max-height: ${assignmentHeight};\n overflow-y: auto;\n `;\n});\n\nStyledParentExpandCollapse.defaultProps = defaultThemeProp;\n\nexport const StyledAssignmentItem: typeof Grid = styled(Grid)<{\n hideBorders?: boolean;\n}>(({\n theme: {\n base: { spacing, colors },\n components: {\n table: {\n body: { 'border-width': borderWidth }\n }\n }\n },\n hideBorders\n}) => {\n return css`\n padding-inline-end: calc(2 * ${spacing});\n padding-block: calc(0.5 * ${spacing});\n border-block-start: ${borderWidth} dashed ${colors.gray.light};\n ${hideBorders &&\n css`\n border-block-start: none;\n `};\n `;\n});\nStyledAssignmentItem.defaultProps = defaultThemeProp;\n\nexport const StyledProcessContainer = styled.div<{ depth?: number }>(\n ({\n depth,\n theme: {\n base: { spacing },\n components: {\n icon: {\n size: { s }\n }\n }\n }\n }) => {\n const paddingInlineStart = depth\n ? `calc(1.5 * ${spacing} * ${depth} + ${s} + ${spacing})`\n : `calc(1.5 * ${spacing})`;\n\n return css`\n overflow: hidden;\n padding-inline-start: ${paddingInlineStart};\n grid-row-start: 1;\n grid-row-end: 1;\n ${StyledText} {\n ${elipsisOverflow}\n }\n `;\n }\n);\nStyledProcessContainer.defaultProps = defaultThemeProp;\n\nexport const StyledActionContainer = styled.div<{ isMediumOrAbove?: boolean }>(\n ({ isMediumOrAbove }) => {\n return css`\n grid-row-start: 1;\n grid-row-end: -1;\n ${isMediumOrAbove &&\n css`\n grid-column-start: 4;\n grid-column-end: -1;\n `}\n `;\n }\n);\nStyledActionContainer.defaultProps = defaultThemeProp;\n\nexport const StyledHeaderContainer = styled.div<{ depth?: number }>(\n ({\n theme: {\n base: {\n spacing,\n palette: { 'secondary-background': secondaryBackground }\n }\n },\n depth\n }) => {\n const paddingInlineStart = depth\n ? `calc(1.5 * ${spacing} * ${depth})`\n : `calc(1.5 * ${spacing})`;\n\n return css`\n padding-inline-start: ${paddingInlineStart};\n padding-block: calc(0.5 * ${spacing});\n background-color: ${secondaryBackground};\n `;\n }\n);\nStyledHeaderContainer.defaultProps = defaultThemeProp;\n\nexport const StyledSummaryItem = styled(SummaryItem)<{ indent: boolean }>(({\n theme: {\n base: { spacing },\n components: {\n icon: {\n size: { s }\n }\n }\n },\n indent\n}) => {\n return css`\n ${indent &&\n css`\n padding-inline-start: calc(${s} + ${spacing});\n `}\n `;\n});\nStyledSummaryItem.defaultProps = defaultThemeProp;\n\nexport const StyledAssignments = styled(Card)<{ expanded?: boolean }>(({ theme, expanded }) => {\n return css`\n padding: calc(${theme.base.spacing} * 2);\n box-shadow: ${expanded ? theme.base.shadow.low : 'none'};\n &&& {\n > ${StyledCardHeader} {\n padding: 0;\n padding-block-end: ${expanded ? `calc(${theme.base.spacing} * 2)` : 0};\n }\n }\n `;\n});\n\nStyledAssignments.defaultProps = defaultThemeProp;\n\nexport const StyledAssignmentContainer = styled.div<{\n depth?: number;\n hideBorders?: boolean;\n}>(\n ({\n theme: {\n base: { colors, 'border-radius': borderRadius },\n components: {\n table: {\n body: { 'border-width': borderWidth }\n }\n }\n },\n depth,\n hideBorders\n }) => {\n return css`\n overflow: hidden;\n width: 100%;\n ${!depth &&\n css`\n border: ${borderWidth} solid ${colors.gray.light};\n border-radius: ${borderRadius};\n `}\n ${depth &&\n css`\n border-block-start: ${hideBorders ? 'none' : `${borderWidth} dashed ${colors.gray.light}`};\n `}\n `;\n }\n);\nStyledAssignmentContainer.defaultProps = defaultThemeProp;\n\nexport const StyledAssignmentText = styled(Text)(({ theme }) => {\n return css`\n font-weight: ${theme.base['font-weight']['semi-bold']};\n `;\n});\nStyledAssignmentText.defaultProps = defaultThemeProp;\n\nexport const StyledLinkContainer = styled.div<{ isMediumOrAbove?: boolean }>(\n ({\n theme: {\n base: { spacing }\n },\n isMediumOrAbove\n }) => {\n const caseNameWidth = '28rem';\n return css`\n ${elipsisOverflow};\n padding: calc(0.5 * ${spacing});\n padding-inline-end: calc(2 * ${spacing});\n & > a > span {\n width: 0;\n }\n ${isMediumOrAbove &&\n css`\n max-width: ${caseNameWidth};\n padding-inline-end: calc(0.5 * ${spacing});\n `}\n `;\n }\n);\nStyledLinkContainer.defaultProps = defaultThemeProp;\n\nexport const StyledAssigneeContainer = styled.div<{ depth?: number; isMediumOrAbove?: boolean }>(\n ({\n theme: {\n base: { spacing },\n components: {\n icon: {\n size: { s }\n }\n }\n },\n depth,\n isMediumOrAbove\n }) => {\n const paddingInlineStart = depth\n ? `calc(1.5 * ${spacing} * ${depth} + ${s} + ${spacing})`\n : `calc(1.5 * ${spacing})`;\n\n return css`\n padding-block: calc(0.5 * ${spacing});\n overflow: hidden;\n padding-inline-start: ${paddingInlineStart};\n ${isMediumOrAbove &&\n css`\n padding: calc(0.5 * ${spacing});\n `};\n `;\n }\n);\nStyledAssigneeContainer.defaultProps = defaultThemeProp;\n\nexport const StyledAssigneeText = styled(Button)(({ theme }) => {\n const fontSizes = calculateFontSize(theme.base['font-size'], theme.base['font-scale']);\n return css`\n ${elipsisOverflow}\n font-size: ${fontSizes[theme.components.text.secondary['font-size'] as FontSize]};\n font-weight: ${theme.components.text.secondary['font-weight']};\n `;\n});\nStyledAssigneeText.defaultProps = defaultThemeProp;\n\nexport const StyledMetaListContainer = styled(MetaList)<{\n indent: boolean;\n}>(({\n theme: {\n base: { spacing },\n components: {\n icon: {\n size: { s }\n }\n }\n },\n indent\n}) => {\n return css`\n ${indent &&\n css`\n padding-inline-start: calc(${s} + ${spacing});\n `}\n width: 100%;\n flex-wrap: nowrap;\n & > li:nth-child(1) {\n flex-shrink: 1;\n }\n & > li:nth-child(2),\n & > li:nth-child(3) {\n flex-shrink: 0;\n }\n `;\n});\nStyledMetaListContainer.defaultProps = defaultThemeProp;\n\nexport const StyledMetaIdStatusContainer = styled(MetaList)(({\n theme: {\n base: { spacing }\n }\n}) => {\n return css`\n padding-inline: calc(0.5 * ${spacing});\n `;\n});\nStyledMetaIdStatusContainer.defaultProps = defaultThemeProp;\n"]}
1
+ {"version":3,"file":"Assignments.styles.js","sourceRoot":"","sources":["../../../src/components/HierarchicalAssignments/Assignments.styles.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,EAAE,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAEhD,OAAO,EACL,MAAM,EACN,IAAI,EACJ,gBAAgB,EAChB,UAAU,EACV,YAAY,EACZ,QAAQ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D,KAAK,EAAE,EACL,IAAI,EAAE,EAAE,OAAO,EAAE,EAClB,EACF,EAAE,EAAE;IACH,OAAO,GAAG,CAAA;0BACc,OAAO;GAC9B,CAAC;AACJ,CAAC,CAAC,CAAC;AACH,4BAA4B,CAAC,YAAY,GAAG,gBAAgB,CAAC","sourcesContent":["import styled, { css } from 'styled-components';\n\nimport {\n Button,\n Card,\n defaultThemeProp,\n StyledIcon,\n useDirection,\n MetaList,\n SummaryItem,\n calculateFontSize,\n StyledText,\n Text,\n ExpandCollapse\n} from '@pega/cosmos-react-core';\nimport { elipsisOverflow } from '@pega/cosmos-react-core/lib/styles/mixins';\nimport type { FontSize } from '@pega/cosmos-react-core';\nimport { StyledCardHeader } from '@pega/cosmos-react-core/lib/components/Card/CardHeader';\n\nexport const StyledExpandButton = styled(Button)(({\n theme: {\n base: { animation }\n }\n}) => {\n const { rtl } = useDirection();\n return css`\n margin: 0;\n\n ${StyledIcon} {\n transition: transform ${animation.speed} ${animation.timing.ease};\n }\n\n &[aria-expanded='true'] ${StyledIcon} {\n transform: rotate(90deg);\n }\n\n &[aria-expanded='false'] ${StyledIcon} {\n transform: rotate(${rtl ? 180 : 0}deg);\n }\n\n &:hover,\n &:active {\n text-decoration: none;\n }\n `;\n});\n\nStyledExpandButton.defaultProps = defaultThemeProp;\n\nexport const StyledExpandCollpase = styled(ExpandCollapse)(({\n theme: {\n base: { spacing }\n }\n}) => {\n return css`\n margin-block-start: calc(0.125 * ${spacing});\n `;\n});\nStyledExpandCollpase.defaultProps = defaultThemeProp;\n\nexport const StyledAssignmentItem = styled.div<{\n hideBorders?: boolean;\n}>(\n ({\n theme: {\n base: { spacing }\n }\n }) => {\n return css`\n padding-inline-end: calc(2 * ${spacing});\n padding-block: calc(0.5 * ${spacing});\n `;\n }\n);\nStyledAssignmentItem.defaultProps = defaultThemeProp;\n\nexport const StyledProcessContainer = styled.div<{ depth?: number }>(\n ({\n depth,\n theme: {\n base: { spacing },\n components: {\n icon: {\n size: { s }\n }\n }\n }\n }) => {\n const paddingInlineStart = depth\n ? `calc(1.5 * ${spacing} * ${depth} + ${s} + ${spacing})`\n : `calc(1.5 * ${spacing})`;\n\n return css`\n overflow: hidden;\n padding-inline-start: ${paddingInlineStart};\n grid-row-start: 1;\n grid-row-end: 1;\n height: 100%;\n ${StyledText} {\n ${elipsisOverflow}\n padding-inline: calc(0.5 * ${spacing});\n }\n `;\n }\n);\nStyledProcessContainer.defaultProps = defaultThemeProp;\n\nexport const StyledActionContainer = styled.div<{ isMediumOrAbove?: boolean }>(\n ({ isMediumOrAbove }) => {\n return css`\n min-width: 3.313rem;\n grid-row-start: 1;\n grid-row-end: -1;\n ${isMediumOrAbove &&\n css`\n grid-column-start: 4;\n grid-column-end: -1;\n `}\n `;\n }\n);\nStyledActionContainer.defaultProps = defaultThemeProp;\n\nexport const StyledHeaderContainer = styled.div<{ depth?: number }>(\n ({\n theme: {\n base: { spacing }\n },\n depth\n }) => {\n const paddingInlineStart = depth\n ? `calc(1.5 * ${spacing} * ${depth})`\n : `calc(1.5 * ${spacing})`;\n\n return css`\n padding-inline-start: ${paddingInlineStart};\n padding-block: calc(0.5 * ${spacing});\n `;\n }\n);\nStyledHeaderContainer.defaultProps = defaultThemeProp;\n\nexport const StyledSummaryItem = styled(SummaryItem)<{ indent: boolean }>(({\n theme: {\n base: { spacing },\n components: {\n icon: {\n size: { s }\n }\n }\n },\n indent\n}) => {\n return css`\n ${indent &&\n css`\n padding-inline-start: calc(${s} + ${spacing});\n `}\n `;\n});\nStyledSummaryItem.defaultProps = defaultThemeProp;\n\nexport const StyledAssignments = styled(Card)<{ expanded?: boolean }>(({ theme, expanded }) => {\n return css`\n padding: calc(${theme.base.spacing} * 2);\n\n &:has(form) {\n box-shadow: ${expanded ? theme.base.shadow.low : 'none'};\n }\n\n &&&& {\n > ${StyledCardHeader} {\n padding: 0;\n padding-block-end: ${expanded ? `calc(${theme.base.spacing} * 2)` : 0};\n }\n }\n `;\n});\n\nStyledAssignments.defaultProps = defaultThemeProp;\n\nexport const StyledAssignmentText = styled(Text)(({ theme }) => {\n return css`\n font-weight: ${theme.base['font-weight']['semi-bold']};\n `;\n});\nStyledAssignmentText.defaultProps = defaultThemeProp;\n\nexport const StyledLinkContainer = styled.div<{ isMediumOrAbove?: boolean }>(\n ({\n theme: {\n base: { spacing }\n },\n isMediumOrAbove\n }) => {\n const caseNameWidth = '28rem';\n return css`\n ${elipsisOverflow};\n padding: calc(0.5 * ${spacing});\n padding-inline-end: calc(2 * ${spacing});\n & > a > span {\n width: 0;\n }\n ${isMediumOrAbove &&\n css`\n max-width: ${caseNameWidth};\n padding-inline-end: calc(0.5 * ${spacing});\n `}\n `;\n }\n);\nStyledLinkContainer.defaultProps = defaultThemeProp;\n\nexport const StyledAssigneeContainer = styled.div<{ depth?: number }>(\n ({\n theme: {\n base: { spacing },\n components: {\n icon: {\n size: { s }\n }\n }\n },\n depth\n }) => {\n const paddingInlineStart = depth\n ? `calc(1.5 * ${spacing} * ${depth} + ${s} + ${spacing})`\n : `calc(1.5 * ${spacing})`;\n\n return css`\n overflow: hidden;\n padding-inline-start: ${paddingInlineStart};\n `;\n }\n);\nStyledAssigneeContainer.defaultProps = defaultThemeProp;\n\nexport const StyledAssigneeText = styled(Button)(({ theme }) => {\n const fontSizes = calculateFontSize(theme.base['font-size'], theme.base['font-scale']);\n return css`\n max-width: 16ch;\n ${elipsisOverflow}\n font-size: ${fontSizes[theme.components.text.secondary['font-size'] as FontSize]};\n font-weight: ${theme.components.text.secondary['font-weight']};\n `;\n});\nStyledAssigneeText.defaultProps = defaultThemeProp;\n\nexport const StyledMetaListContainer = styled(MetaList)<{\n indent: boolean;\n}>(({\n theme: {\n base: { spacing },\n components: {\n icon: {\n size: { s }\n }\n }\n },\n indent\n}) => {\n return css`\n ${indent &&\n css`\n padding-inline-start: calc(${s} + ${spacing});\n `}\n width: 100%;\n flex-wrap: nowrap;\n & > li:nth-child(1) {\n flex-shrink: 1;\n }\n & > li:nth-child(2),\n & > li:nth-child(3) {\n flex-shrink: 0;\n }\n `;\n});\nStyledMetaListContainer.defaultProps = defaultThemeProp;\n\nexport const StyledMetaIdStatusContainer = styled(MetaList)(({\n theme: {\n base: { spacing }\n }\n}) => {\n return css`\n padding-inline: calc(0.5 * ${spacing});\n `;\n});\nStyledMetaIdStatusContainer.defaultProps = defaultThemeProp;\n\nexport const StyledLabelContainer = styled.span(\n ({\n theme: {\n base: { spacing }\n }\n }) => {\n return css`\n padding-inline-end: calc(0.5 * ${spacing});\n `;\n }\n);\nStyledLabelContainer.defaultProps = defaultThemeProp;\n\nexport const StyledTreeRoot = styled.ul(\n ({\n theme: {\n base: {\n 'border-radius': borderRadius,\n palette: { 'border-line': borderLine }\n },\n components: {\n table: {\n body: { 'border-width': borderWidth }\n }\n }\n }\n }) => {\n return css`\n list-style-type: none;\n /* stylelint-disable-next-line unit-allowed-list */\n max-height: 50dvh;\n overflow-y: auto;\n border: ${borderWidth} solid ${borderLine};\n border-radius: ${borderRadius};\n\n & > li:first-child {\n border-block-start: none;\n border-start-start-radius: ${borderRadius};\n border-start-end-radius: ${borderRadius};\n & > div,\n & > div:focus-within {\n border-start-start-radius: ${borderRadius};\n border-start-end-radius: ${borderRadius};\n }\n }\n `;\n }\n);\nStyledTreeRoot.defaultProps = defaultThemeProp;\n\nexport const StyledNode = styled.li<{\n isFocus?: boolean;\n lastNode?: boolean;\n isChild?: boolean;\n depth: number;\n}>(\n ({\n theme: {\n base: {\n shadow,\n 'border-radius': borderRadius,\n palette: {\n 'secondary-background': secondaryBackground,\n 'primary-background': primaryBackground,\n 'border-line': borderLine\n }\n },\n components: {\n table: {\n body: { 'border-width': borderWidth }\n }\n }\n },\n isFocus,\n lastNode,\n isChild,\n depth\n }) => {\n return css`\n list-style: none;\n border-block-start: ${borderWidth} dashed ${borderLine};\n outline: none;\n padding: ${depth <= 1 ? borderWidth : '0'};\n background-color: ${isChild ? secondaryBackground : primaryBackground};\n ${isFocus &&\n css`\n &:focus {\n position: relative;\n }\n &:focus > div {\n box-shadow: ${shadow['focus-solid']};\n }\n `}\n\n ${lastNode &&\n css`\n border-end-start-radius: ${borderRadius};\n border-end-end-radius: ${borderRadius};\n & > div,\n & > div:focus-within {\n border-end-start-radius: ${borderRadius};\n border-end-end-radius: ${borderRadius};\n }\n `};\n `;\n }\n);\nStyledNode.defaultProps = defaultThemeProp;\n\nexport const StyledAssignmentItemMetaList = styled(MetaList)(({\n theme: {\n base: { spacing }\n }\n}) => {\n return css`\n padding: calc(0.5 * ${spacing});\n `;\n});\nStyledAssignmentItemMetaList.defaultProps = defaultThemeProp;\n"]}