@pega/lists-react 9.0.0-build.21.0 → 9.0.0-build.21.10

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 (112) hide show
  1. package/lib/Core/Components/A11y/RepeatingStructureA11y.d.ts.map +1 -1
  2. package/lib/Core/Components/A11y/RepeatingStructureA11y.js +2 -1
  3. package/lib/Core/Components/A11y/RepeatingStructureA11y.js.map +1 -1
  4. package/lib/Core/Components/Filters/AdvanceFilter.d.ts.map +1 -1
  5. package/lib/Core/Components/Filters/AdvanceFilter.js +5 -2
  6. package/lib/Core/Components/Filters/AdvanceFilter.js.map +1 -1
  7. package/lib/Core/Components/Filters/SelectFilter.d.ts.map +1 -1
  8. package/lib/Core/Components/Filters/SelectFilter.js +2 -2
  9. package/lib/Core/Components/Filters/SelectFilter.js.map +1 -1
  10. package/lib/Core/Components/Filters/SimpleFilter.js +1 -1
  11. package/lib/Core/Components/Filters/SimpleFilter.js.map +1 -1
  12. package/lib/Core/Components/Toolbar/ColumnSelector.d.ts +6 -4
  13. package/lib/Core/Components/Toolbar/ColumnSelector.d.ts.map +1 -1
  14. package/lib/Core/Components/Toolbar/ColumnSelector.js +15 -19
  15. package/lib/Core/Components/Toolbar/ColumnSelector.js.map +1 -1
  16. package/lib/Core/Components/Toolbar/FieldSelector.d.ts +1 -1
  17. package/lib/Core/Components/Toolbar/FieldSelector.js +4 -4
  18. package/lib/Core/Components/Toolbar/FieldSelector.js.map +1 -1
  19. package/lib/Core/Components/Toolbar/hooks/useFilter.d.ts.map +1 -1
  20. package/lib/Core/Components/Toolbar/hooks/useFilter.js +4 -1
  21. package/lib/Core/Components/Toolbar/hooks/useFilter.js.map +1 -1
  22. package/lib/Core/Components/Toolbar/hooks/useGroup/DateFunctionSelector.d.ts +2 -2
  23. package/lib/Core/Components/Toolbar/hooks/useGroup/DateFunctionSelector.d.ts.map +1 -1
  24. package/lib/Core/Components/Toolbar/hooks/useGroup/DateFunctionSelector.js +2 -2
  25. package/lib/Core/Components/Toolbar/hooks/useGroup/DateFunctionSelector.js.map +1 -1
  26. package/lib/Core/Components/Toolbar/hooks/useGroup/GroupRenderer.d.ts +2 -1
  27. package/lib/Core/Components/Toolbar/hooks/useGroup/GroupRenderer.d.ts.map +1 -1
  28. package/lib/Core/Components/Toolbar/hooks/useGroup/GroupRenderer.js +4 -4
  29. package/lib/Core/Components/Toolbar/hooks/useGroup/GroupRenderer.js.map +1 -1
  30. package/lib/Core/Components/Toolbar/hooks/useGroup/useGroup.d.ts.map +1 -1
  31. package/lib/Core/Components/Toolbar/hooks/useGroup/useGroup.js +12 -4
  32. package/lib/Core/Components/Toolbar/hooks/useGroup/useGroup.js.map +1 -1
  33. package/lib/Core/Components/Toolbar/hooks/useGroup/utils.d.ts +2 -2
  34. package/lib/Core/Components/Toolbar/hooks/useGroup/utils.d.ts.map +1 -1
  35. package/lib/Core/Components/Toolbar/hooks/useGroup/utils.js +5 -5
  36. package/lib/Core/Components/Toolbar/hooks/useGroup/utils.js.map +1 -1
  37. package/lib/Core/Components/Toolbar/hooks/useMore.d.ts.map +1 -1
  38. package/lib/Core/Components/Toolbar/hooks/useMore.js +3 -3
  39. package/lib/Core/Components/Toolbar/hooks/useMore.js.map +1 -1
  40. package/lib/Core/Components/Toolbar/hooks/useSort/Row.d.ts +3 -2
  41. package/lib/Core/Components/Toolbar/hooks/useSort/Row.d.ts.map +1 -1
  42. package/lib/Core/Components/Toolbar/hooks/useSort/Row.js +5 -4
  43. package/lib/Core/Components/Toolbar/hooks/useSort/Row.js.map +1 -1
  44. package/lib/Core/Components/Toolbar/hooks/useSort/SortRenderer.d.ts +3 -2
  45. package/lib/Core/Components/Toolbar/hooks/useSort/SortRenderer.d.ts.map +1 -1
  46. package/lib/Core/Components/Toolbar/hooks/useSort/SortRenderer.js +4 -4
  47. package/lib/Core/Components/Toolbar/hooks/useSort/SortRenderer.js.map +1 -1
  48. package/lib/Core/Components/Toolbar/hooks/useSort/useSort.d.ts.map +1 -1
  49. package/lib/Core/Components/Toolbar/hooks/useSort/useSort.js +7 -1
  50. package/lib/Core/Components/Toolbar/hooks/useSort/useSort.js.map +1 -1
  51. package/lib/Core/Components/Toolbar/hooks/useSort/utils.d.ts +1 -1
  52. package/lib/Core/Components/Toolbar/hooks/useSort/utils.d.ts.map +1 -1
  53. package/lib/Core/Components/Toolbar/hooks/useSort/utils.js +2 -2
  54. package/lib/Core/Components/Toolbar/hooks/useSort/utils.js.map +1 -1
  55. package/lib/Core/Components/Toolbar/utils/utils.d.ts +28 -7
  56. package/lib/Core/Components/Toolbar/utils/utils.d.ts.map +1 -1
  57. package/lib/Core/Components/Toolbar/utils/utils.js +43 -11
  58. package/lib/Core/Components/Toolbar/utils/utils.js.map +1 -1
  59. package/lib/Core/Components/Virtualise/VariableHeightVirtualizer/utils.d.ts +1 -1
  60. package/lib/Core/Components/Virtualise/VariableHeightVirtualizer/utils.js +1 -1
  61. package/lib/Core/Components/Virtualise/VariableHeightVirtualizer/utils.js.map +1 -1
  62. package/lib/Core/Components/WarningBanner.d.ts +11 -0
  63. package/lib/Core/Components/WarningBanner.d.ts.map +1 -0
  64. package/lib/Core/Components/WarningBanner.js +23 -0
  65. package/lib/Core/Components/WarningBanner.js.map +1 -0
  66. package/lib/Core/Hooks/a11y/useAnnounce.d.ts +3 -4
  67. package/lib/Core/Hooks/a11y/useAnnounce.d.ts.map +1 -1
  68. package/lib/Core/Hooks/a11y/useAnnounce.js +3 -4
  69. package/lib/Core/Hooks/a11y/useAnnounce.js.map +1 -1
  70. package/lib/Core/Hooks/useDragDrop.d.ts +2 -2
  71. package/lib/Core/Hooks/useDragDrop.js +2 -2
  72. package/lib/Core/Hooks/useDragDrop.js.map +1 -1
  73. package/lib/Core/Hooks/useRepeat.d.ts.map +1 -1
  74. package/lib/Core/Hooks/useRepeat.js +13 -1
  75. package/lib/Core/Hooks/useRepeat.js.map +1 -1
  76. package/lib/Core/Test/JUnitMocks.d.ts +12 -0
  77. package/lib/Core/Test/JUnitMocks.d.ts.map +1 -1
  78. package/lib/Core/Test/JUnitMocks.js +26 -8
  79. package/lib/Core/Test/JUnitMocks.js.map +1 -1
  80. package/lib/Core/Test/TestUtils.d.ts +0 -1
  81. package/lib/Core/Test/TestUtils.d.ts.map +1 -1
  82. package/lib/Core/Test/TestUtils.js +3 -7
  83. package/lib/Core/Test/TestUtils.js.map +1 -1
  84. package/lib/Core/Views/Gallery/index.d.ts.map +1 -1
  85. package/lib/Core/Views/Gallery/index.js +2 -1
  86. package/lib/Core/Views/Gallery/index.js.map +1 -1
  87. package/lib/Core/Views/Table/index.d.ts.map +1 -1
  88. package/lib/Core/Views/Table/index.js +2 -1
  89. package/lib/Core/Views/Table/index.js.map +1 -1
  90. package/lib/Core/Views/Timeline/Timeline.d.ts.map +1 -1
  91. package/lib/Core/Views/Timeline/Timeline.js +11 -16
  92. package/lib/Core/Views/Timeline/Timeline.js.map +1 -1
  93. package/lib/Core/Views/Timeline/Timeline.styles.d.ts +17 -9
  94. package/lib/Core/Views/Timeline/Timeline.styles.d.ts.map +1 -1
  95. package/lib/Core/Views/Timeline/Timeline.styles.js +32 -25
  96. package/lib/Core/Views/Timeline/Timeline.styles.js.map +1 -1
  97. package/lib/Core/Views/Timeline/Timeline.types.d.ts +6 -0
  98. package/lib/Core/Views/Timeline/Timeline.types.d.ts.map +1 -1
  99. package/lib/Core/Views/Timeline/Timeline.types.js.map +1 -1
  100. package/lib/Core/Views/Timeline/TimelineGroup.d.ts +13 -0
  101. package/lib/Core/Views/Timeline/TimelineGroup.d.ts.map +1 -0
  102. package/lib/Core/Views/Timeline/TimelineGroup.js +21 -0
  103. package/lib/Core/Views/Timeline/TimelineGroup.js.map +1 -0
  104. package/lib/Core/Views/Timeline/TimelineItem.d.ts +1 -3
  105. package/lib/Core/Views/Timeline/TimelineItem.d.ts.map +1 -1
  106. package/lib/Core/Views/Timeline/TimelineItem.js +7 -6
  107. package/lib/Core/Views/Timeline/TimelineItem.js.map +1 -1
  108. package/lib/index.d.ts +1 -1
  109. package/lib/index.d.ts.map +1 -1
  110. package/lib/index.js +1 -1
  111. package/lib/index.js.map +1 -1
  112. package/package.json +7 -7
@@ -1,7 +1,7 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import { useRef, useState } from 'react';
3
- import { Card, ExpandCollapse, FieldValueItem, Grid, Icon, Status, useBreakpoint, isValidElement } from '@pega/cosmos-react-core';
4
- import { StyledBulletWrapper, StyledCardContent, StyledCardHeader, StyledTime, StyledTimelineIcon, StyledTimelineListItem, StyledTitle, StyledToggleButton } from './Timeline.styles';
3
+ import { Card, ExpandCollapse, ExpandCollapseButton, FieldValueItem, Grid, Icon, Status, useBreakpoint, useUID, isValidElement } from '@pega/cosmos-react-core';
4
+ import { StyledBulletWrapper, StyledCardContent, StyledCardHeader, StyledTime, StyledTimelineIcon, StyledTimelineListItem, StyledTitle } from './Timeline.styles';
5
5
  import { isFutureDate } from './utils';
6
6
  const shouldRenderContent = (content) => {
7
7
  if (!content) {
@@ -13,24 +13,25 @@ const shouldRenderContent = (content) => {
13
13
  return true;
14
14
  };
15
15
  const TimelineItem = ({ item: { date, dateVariant = 'datetime', title, icon, defaultExpanded = false, status, content }, prevItemDate, nextItemDate, currentTime }) => {
16
+ const timeId = useUID();
16
17
  const [expanded, setExpanded] = useState(defaultExpanded);
17
18
  const isSmallOrAbove = useBreakpoint('sm');
18
19
  const contentListRef = useRef(null);
19
20
  const isSMContentWidthOrAbove = useBreakpoint('sm', {
20
21
  breakpointRef: contentListRef
21
22
  });
22
- return (_jsxs(StyledTimelineListItem, { children: [isSmallOrAbove && _jsx(StyledTime, { variant: dateVariant, value: date, format: 'short' }), _jsx(StyledBulletWrapper, { hasIcon: !!icon, hasPrev: !!prevItemDate, hasNext: !!nextItemDate, isPrevFuture: isFutureDate(prevItemDate, currentTime), isNextFuture: isFutureDate(nextItemDate, currentTime), children: _jsx(StyledTimelineIcon, { container: { inline: true, alignItems: 'center', justify: 'center' }, children: icon && _jsx(Icon, { name: icon }) }) }), _jsxs("div", { children: [_jsx("div", { children: _jsx(Card, { children: _jsxs(StyledCardHeader, { container: {
23
+ return (_jsxs(StyledTimelineListItem, { children: [isSmallOrAbove && (_jsx(StyledTime, { id: timeId, variant: dateVariant, value: date, format: 'short' })), _jsx(StyledBulletWrapper, { hasIcon: !!icon, hasPrev: !!prevItemDate, hasNext: !!nextItemDate, isPrevFuture: isFutureDate(prevItemDate, currentTime), isNextFuture: isFutureDate(nextItemDate, currentTime), children: _jsx(StyledTimelineIcon, { container: { inline: true, alignItems: 'center', justify: 'center' }, children: icon && _jsx(Icon, { name: icon }) }) }), _jsxs("div", { children: [_jsx("div", { children: _jsx(Card, { children: _jsxs(StyledCardHeader, { container: {
23
24
  cols: 'auto 1fr',
24
25
  alignContent: 'evenly',
25
26
  alignItems: 'center',
26
27
  gap: 0.5
27
- }, sm: { container: { cols: 'auto 1fr auto' } }, children: [shouldRenderContent(content) && (_jsx(StyledToggleButton, { icon: true, variant: 'simple', onClick: () => {
28
+ }, sm: { container: { cols: 'auto 1fr auto' } }, children: [shouldRenderContent(content) && (_jsx(ExpandCollapseButton, { expanded: expanded, onToggle: () => {
28
29
  setExpanded(cur => !cur);
29
- }, collapsed: !expanded, "aria-expanded": expanded, compact: true, children: _jsx(Icon, { name: 'caret-down' }) })), _jsxs(Grid, { item: { colStart: '2', colEnd: '2' }, container: { rowGap: 0.25 }, children: [_jsx(StyledTitle, { children: title }), !isSmallOrAbove && (_jsxs(Grid, { container: {
30
+ }, iconOnly: true, compact: true, "aria-labelledby": timeId })), _jsxs(Grid, { item: { colStart: '2', colEnd: '2' }, container: { rowGap: 0.25 }, children: [_jsx(StyledTitle, { children: title }), !isSmallOrAbove && (_jsxs(Grid, { container: {
30
31
  cols: '1fr auto',
31
32
  alignContent: 'evenly',
32
33
  alignItems: 'center'
33
- }, children: [_jsx(StyledTime, { variant: 'time', value: date, format: 'short' }), status && _jsx(Status, { variant: status.variant, children: status.children })] }))] }), isSmallOrAbove && status && (_jsx(Grid, { sm: { item: { colStart: '3', colEnd: '3' } }, children: _jsx(Status, { variant: status.variant, children: status.children }) }))] }) }) }), shouldRenderContent(content) && (_jsx(ExpandCollapse, { dimension: 'height', collapsed: !expanded, children: _jsx(StyledCardContent, { children: isValidElement(content) ? (content) : (_jsx(Grid, { container: {
34
+ }, children: [_jsx(StyledTime, { id: timeId, variant: 'time', value: date, format: 'short' }), status && _jsx(Status, { variant: status.variant, children: status.children })] }))] }), isSmallOrAbove && status && (_jsx(Grid, { sm: { item: { colStart: '3', colEnd: '3' } }, children: _jsx(Status, { variant: status.variant, children: status.children }) }))] }) }) }), shouldRenderContent(content) && (_jsx(ExpandCollapse, { dimension: 'height', collapsed: !expanded, children: _jsx(StyledCardContent, { children: isValidElement(content) ? (content) : (_jsx(Grid, { container: {
34
35
  gap: 1,
35
36
  cols: isSMContentWidthOrAbove
36
37
  ? `repeat(${content.length > 1 ? '2' : '1'}, minmax(16ch, auto) minmax(25%, 1fr))`
@@ -1 +1 @@
1
- {"version":3,"file":"TimelineItem.js","sourceRoot":"","sources":["../../../../Core/Views/Timeline/TimelineItem.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAGzC,OAAO,EACL,IAAI,EACJ,cAAc,EACd,cAAc,EACd,IAAI,EACJ,IAAI,EACJ,MAAM,EACN,aAAa,EACb,cAAc,EACf,MAAM,yBAAyB,CAAC;AAEjC,OAAO,EACL,mBAAmB,EACnB,iBAAiB,EACjB,gBAAgB,EAChB,UAAU,EACV,kBAAkB,EAClB,sBAAsB,EACtB,WAAW,EACX,kBAAkB,EACnB,MAAM,mBAAmB,CAAC;AAE3B,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AASvC,MAAM,mBAAmB,GAAG,CAC1B,OAAkC,EACiD,EAAE;IACrF,IAAI,CAAC,OAAO,EAAE,CAAC;QACb,OAAO,KAAK,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M,EAAE,GAAG,EAAE,EAAE,YAChD,KAAC,MAAM,IAAC,OAAO,EAAE,MAAM,CAAC,OAAO,YAAG,MAAM,CAAC,QAAQ,GAAU,GACtD,CACR,IACgB,GACd,GACH,EACL,mBAAmB,CAAC,OAAO,CAAC,IAAI,CAC/B,KAAC,cAAc,IAAC,SAAS,EAAC,QAAQ,EAAC,SAAS,EAAE,CAAC,QAAQ,YACrD,KAAC,iBAAiB,cACf,cAAc,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,CACzB,OAAO,CACR,CAAC,CAAC,CAAC,CACF,KAAC,IAAI,IACH,SAAS,EAAE;oCACT,GAAG,EAAE,CAAC;oCACN,IAAI,EAAE,uBAAuB;wCAC3B,CAAC,CAAC,UACE,OAAO,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,GAC7B,wCAAwC;wCAC1C,CAAC,CAAC,gBAAgB;iCACrB,EACD,GAAG,EAAE,cAAc,YAElB,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,EAAE,EAAE,IAAI,EAAE,KAAK,EAAE,OAAO,EAAE,EAAE,EAAE;oCAC5C,OAAO,CACL,KAAC,cAAc,IACb,IAAI,EAAE,IAAI,EACV,KAAK,EAAE,KAAK,EACZ,OAAO,EAAE,cAAc,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,SAAS,IACxC,EAAE,IAAI,IAAI,CACf,CACH,CAAC;gCACJ,CAAC,CAAC,GACG,CACR,GACiB,GACL,CAClB,IACG,IACiB,CAC1B,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,YAAY,CAAC","sourcesContent":["import type { FunctionComponent, ReactElement } from 'react';\nimport { useRef, useState } from 'react';\n\nimport type { FieldValueListItemProps, ForwardProps } from '@pega/cosmos-react-core';\nimport {\n Card,\n ExpandCollapse,\n FieldValueItem,\n Grid,\n Icon,\n Status,\n useBreakpoint,\n isValidElement\n} from '@pega/cosmos-react-core';\n\nimport {\n StyledBulletWrapper,\n StyledCardContent,\n StyledCardHeader,\n StyledTime,\n StyledTimelineIcon,\n StyledTimelineListItem,\n StyledTitle,\n StyledToggleButton\n} from './Timeline.styles';\nimport type { ActivityObject } from './Timeline.types';\nimport { isFutureDate } from './utils';\n\ninterface TimelineItemProps {\n item: ActivityObject;\n prevItemDate: ActivityObject['date'] | undefined;\n nextItemDate: ActivityObject['date'] | undefined;\n currentTime: Date;\n}\n\nconst shouldRenderContent = (\n content: ActivityObject['content']\n): content is [FieldValueListItemProps, ...FieldValueListItemProps[]] | ReactElement => {\n if (!content) {\n return false;\n }\n\n if (Array.isArray(content)) {\n return content.length > 0;\n }\n\n return true;\n};\n\nconst TimelineItem: FunctionComponent<TimelineItemProps & ForwardProps> = ({\n item: { date, dateVariant = 'datetime', title, icon, defaultExpanded = false, status, content },\n prevItemDate,\n nextItemDate,\n currentTime\n}: TimelineItemProps & ForwardProps) => {\n const [expanded, setExpanded] = useState(defaultExpanded);\n const isSmallOrAbove = useBreakpoint('sm');\n\n const contentListRef = useRef<HTMLDivElement>(null);\n const isSMContentWidthOrAbove = useBreakpoint('sm', {\n breakpointRef: contentListRef\n });\n\n return (\n <StyledTimelineListItem>\n {isSmallOrAbove && <StyledTime variant={dateVariant} value={date} format='short' />}\n <StyledBulletWrapper\n hasIcon={!!icon}\n hasPrev={!!prevItemDate}\n hasNext={!!nextItemDate}\n isPrevFuture={isFutureDate(prevItemDate, currentTime)}\n isNextFuture={isFutureDate(nextItemDate, currentTime)}\n >\n <StyledTimelineIcon container={{ inline: true, alignItems: 'center', justify: 'center' }}>\n {icon && <Icon name={icon} />}\n </StyledTimelineIcon>\n </StyledBulletWrapper>\n <div>\n <div>\n <Card>\n <StyledCardHeader\n container={{\n cols: 'auto 1fr',\n alignContent: 'evenly',\n alignItems: 'center',\n gap: 0.5\n }}\n sm={{ container: { cols: 'auto 1fr auto' } }}\n >\n {shouldRenderContent(content) && (\n <StyledToggleButton\n icon\n variant='simple'\n onClick={() => {\n setExpanded(cur => !cur);\n }}\n collapsed={!expanded}\n aria-expanded={expanded}\n compact\n >\n <Icon name='caret-down' />\n </StyledToggleButton>\n )}\n <Grid item={{ colStart: '2', colEnd: '2' }} container={{ rowGap: 0.25 }}>\n <StyledTitle>{title}</StyledTitle>\n {!isSmallOrAbove && (\n <Grid\n container={{\n cols: '1fr auto',\n alignContent: 'evenly',\n alignItems: 'center'\n }}\n >\n <StyledTime variant='time' value={date} format='short' />\n {status && <Status variant={status.variant}>{status.children}</Status>}\n </Grid>\n )}\n </Grid>\n {isSmallOrAbove && status && (\n <Grid sm={{ item: { colStart: '3', colEnd: '3' } }}>\n <Status variant={status.variant}>{status.children}</Status>\n </Grid>\n )}\n </StyledCardHeader>\n </Card>\n </div>\n {shouldRenderContent(content) && (\n <ExpandCollapse dimension='height' collapsed={!expanded}>\n <StyledCardContent>\n {isValidElement(content) ? (\n content\n ) : (\n <Grid\n container={{\n gap: 1,\n cols: isSMContentWidthOrAbove\n ? `repeat(${\n content.length > 1 ? '2' : '1'\n }, minmax(16ch, auto) minmax(25%, 1fr))`\n : 'minmax(0, 1fr)'\n }}\n ref={contentListRef}\n >\n {content.map(({ id, name, value, variant }) => {\n return (\n <FieldValueItem\n name={name}\n value={value}\n variant={isSmallOrAbove ? variant : 'stacked'}\n key={id ?? name}\n />\n );\n })}\n </Grid>\n )}\n </StyledCardContent>\n </ExpandCollapse>\n )}\n </div>\n </StyledTimelineListItem>\n );\n};\n\nexport default TimelineItem;\n"]}
1
+ {"version":3,"file":"TimelineItem.js","sourceRoot":"","sources":["../../../../Core/Views/Timeline/TimelineItem.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAGzC,OAAO,EACL,IAAI,EACJ,cAAc,EACd,oBAAoB,EACpB,cAAc,EACd,IAAI,EACJ,IAAI,EACJ,MAAM,EACN,aAAa,EACb,MAAM,EACN,cAAc,EACf,MAAM,yBAAyB,CAAC;AAEjC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GACiB,GACL,CAClB,IACG,IACiB,CAC1B,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,YAAY,CAAC","sourcesContent":["import type { ReactElement } from 'react';\nimport { useRef, useState } from 'react';\n\nimport type { FieldValueListItemProps } from '@pega/cosmos-react-core';\nimport {\n Card,\n ExpandCollapse,\n ExpandCollapseButton,\n FieldValueItem,\n Grid,\n Icon,\n Status,\n useBreakpoint,\n useUID,\n isValidElement\n} from '@pega/cosmos-react-core';\n\nimport {\n StyledBulletWrapper,\n StyledCardContent,\n StyledCardHeader,\n StyledTime,\n StyledTimelineIcon,\n StyledTimelineListItem,\n StyledTitle\n} from './Timeline.styles';\nimport type { ActivityObject } from './Timeline.types';\nimport { isFutureDate } from './utils';\n\ninterface TimelineItemProps {\n item: ActivityObject;\n prevItemDate: ActivityObject['date'] | undefined;\n nextItemDate: ActivityObject['date'] | undefined;\n currentTime: Date;\n}\n\nconst shouldRenderContent = (\n content: ActivityObject['content']\n): content is [FieldValueListItemProps, ...FieldValueListItemProps[]] | ReactElement => {\n if (!content) {\n return false;\n }\n\n if (Array.isArray(content)) {\n return content.length > 0;\n }\n\n return true;\n};\n\nconst TimelineItem = ({\n item: { date, dateVariant = 'datetime', title, icon, defaultExpanded = false, status, content },\n prevItemDate,\n nextItemDate,\n currentTime\n}: TimelineItemProps) => {\n const timeId = useUID();\n const [expanded, setExpanded] = useState(defaultExpanded);\n const isSmallOrAbove = useBreakpoint('sm');\n\n const contentListRef = useRef<HTMLDivElement>(null);\n const isSMContentWidthOrAbove = useBreakpoint('sm', {\n breakpointRef: contentListRef\n });\n\n return (\n <StyledTimelineListItem>\n {isSmallOrAbove && (\n <StyledTime id={timeId} variant={dateVariant} value={date} format='short' />\n )}\n <StyledBulletWrapper\n hasIcon={!!icon}\n hasPrev={!!prevItemDate}\n hasNext={!!nextItemDate}\n isPrevFuture={isFutureDate(prevItemDate, currentTime)}\n isNextFuture={isFutureDate(nextItemDate, currentTime)}\n >\n <StyledTimelineIcon container={{ inline: true, alignItems: 'center', justify: 'center' }}>\n {icon && <Icon name={icon} />}\n </StyledTimelineIcon>\n </StyledBulletWrapper>\n <div>\n <div>\n <Card>\n <StyledCardHeader\n container={{\n cols: 'auto 1fr',\n alignContent: 'evenly',\n alignItems: 'center',\n gap: 0.5\n }}\n sm={{ container: { cols: 'auto 1fr auto' } }}\n >\n {shouldRenderContent(content) && (\n <ExpandCollapseButton\n expanded={expanded}\n onToggle={() => {\n setExpanded(cur => !cur);\n }}\n iconOnly\n compact\n aria-labelledby={timeId}\n />\n )}\n <Grid item={{ colStart: '2', colEnd: '2' }} container={{ rowGap: 0.25 }}>\n <StyledTitle>{title}</StyledTitle>\n {!isSmallOrAbove && (\n <Grid\n container={{\n cols: '1fr auto',\n alignContent: 'evenly',\n alignItems: 'center'\n }}\n >\n <StyledTime id={timeId} variant='time' value={date} format='short' />\n {status && <Status variant={status.variant}>{status.children}</Status>}\n </Grid>\n )}\n </Grid>\n {isSmallOrAbove && status && (\n <Grid sm={{ item: { colStart: '3', colEnd: '3' } }}>\n <Status variant={status.variant}>{status.children}</Status>\n </Grid>\n )}\n </StyledCardHeader>\n </Card>\n </div>\n {shouldRenderContent(content) && (\n <ExpandCollapse dimension='height' collapsed={!expanded}>\n <StyledCardContent>\n {isValidElement(content) ? (\n content\n ) : (\n <Grid\n container={{\n gap: 1,\n cols: isSMContentWidthOrAbove\n ? `repeat(${\n content.length > 1 ? '2' : '1'\n }, minmax(16ch, auto) minmax(25%, 1fr))`\n : 'minmax(0, 1fr)'\n }}\n ref={contentListRef}\n >\n {content.map(({ id, name, value, variant }) => {\n return (\n <FieldValueItem\n name={name}\n value={value}\n variant={isSmallOrAbove ? variant : 'stacked'}\n key={id ?? name}\n />\n );\n })}\n </Grid>\n )}\n </StyledCardContent>\n </ExpandCollapse>\n )}\n </div>\n </StyledTimelineListItem>\n );\n};\n\nexport default TimelineItem;\n"]}
package/lib/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  export { default as RepeatingStructures } from './Core/Components/RSWrapper/index';
2
- export { convertMetaIntoState, UPDATE_DEBUG_INFO, TOGGLE_DISABLE_SELECTION, TOGGLE_REQUIRED, NOTIFY_DATA_REFRESH, USER_CONFIRMATION_ACTION, SET_IN_EXTERNAL_STATE, UPDATE_SELECTED_ROWS } from 'pega-repeating-structures-core';
2
+ export { convertMetaIntoState, UPDATE_DEBUG_INFO, TOGGLE_DISABLE_SELECTION, TOGGLE_REQUIRED, NOTIFY_DATA_REFRESH, USER_CONFIRMATION_ACTION, SET_IN_EXTERNAL_STATE, UPDATE_SELECTED_ROWS, SET_WARNING_MESSAGES } from 'pega-repeating-structures-core';
3
3
  export { EXTERNAL_FILTERS, FOCUSABLE_SELECTORS, ACTIONABLE_SELECTORS } from './Core/constants';
4
4
  export type { RSTypes } from './types';
5
5
  export type { RepeatingStructuresProps } from './types/RepeatingStructuresBoot.types';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,mBAAmB,EAAE,MAAM,mCAAmC,CAAC;AAGnF,OAAO,EACL,oBAAoB,EACpB,iBAAiB,EACjB,wBAAwB,EACxB,eAAe,EACf,mBAAmB,EACnB,wBAAwB,EACxB,qBAAqB,EACrB,oBAAoB,EACrB,MAAM,gCAAgC,CAAC;AAGxC,OAAO,EAAE,gBAAgB,EAAE,mBAAmB,EAAE,oBAAoB,EAAE,MAAM,kBAAkB,CAAC;AAE/F,YAAY,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AACvC,YAAY,EAAE,wBAAwB,EAAE,MAAM,uCAAuC,CAAC;AAEtF,OAAO,EAAE,WAAW,EAAE,MAAM,gCAAgC,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,mBAAmB,EAAE,MAAM,mCAAmC,CAAC;AAGnF,OAAO,EACL,oBAAoB,EACpB,iBAAiB,EACjB,wBAAwB,EACxB,eAAe,EACf,mBAAmB,EACnB,wBAAwB,EACxB,qBAAqB,EACrB,oBAAoB,EACpB,oBAAoB,EACrB,MAAM,gCAAgC,CAAC;AAGxC,OAAO,EAAE,gBAAgB,EAAE,mBAAmB,EAAE,oBAAoB,EAAE,MAAM,kBAAkB,CAAC;AAE/F,YAAY,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AACvC,YAAY,EAAE,wBAAwB,EAAE,MAAM,uCAAuC,CAAC;AAEtF,OAAO,EAAE,WAAW,EAAE,MAAM,gCAAgC,CAAC"}
package/lib/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  export { default as RepeatingStructures } from './Core/Components/RSWrapper/index';
2
2
  // FIXME: revisit these imports
3
- export { convertMetaIntoState, UPDATE_DEBUG_INFO, TOGGLE_DISABLE_SELECTION, TOGGLE_REQUIRED, NOTIFY_DATA_REFRESH, USER_CONFIRMATION_ACTION, SET_IN_EXTERNAL_STATE, UPDATE_SELECTED_ROWS } from 'pega-repeating-structures-core';
3
+ export { convertMetaIntoState, UPDATE_DEBUG_INFO, TOGGLE_DISABLE_SELECTION, TOGGLE_REQUIRED, NOTIFY_DATA_REFRESH, USER_CONFIRMATION_ACTION, SET_IN_EXTERNAL_STATE, UPDATE_SELECTED_ROWS, SET_WARNING_MESSAGES } from 'pega-repeating-structures-core';
4
4
  // Dispatch Action constants that is used by consumer in order to send particular actions to Repeating structures
5
5
  export { EXTERNAL_FILTERS, FOCUSABLE_SELECTORS, ACTIONABLE_SELECTORS } from './Core/constants';
6
6
  export { ROW_DENSITY } from 'pega-repeating-structures-core';
package/lib/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,mBAAmB,EAAE,MAAM,mCAAmC,CAAC;AAEnF,+BAA+B;AAC/B,OAAO,EACL,oBAAoB,EACpB,iBAAiB,EACjB,wBAAwB,EACxB,eAAe,EACf,mBAAmB,EACnB,wBAAwB,EACxB,qBAAqB,EACrB,oBAAoB,EACrB,MAAM,gCAAgC,CAAC;AAExC,iHAAiH;AACjH,OAAO,EAAE,gBAAgB,EAAE,mBAAmB,EAAE,oBAAoB,EAAE,MAAM,kBAAkB,CAAC;AAK/F,OAAO,EAAE,WAAW,EAAE,MAAM,gCAAgC,CAAC","sourcesContent":["export { default as RepeatingStructures } from './Core/Components/RSWrapper/index';\n\n// FIXME: revisit these imports\nexport {\n convertMetaIntoState,\n UPDATE_DEBUG_INFO,\n TOGGLE_DISABLE_SELECTION,\n TOGGLE_REQUIRED,\n NOTIFY_DATA_REFRESH,\n USER_CONFIRMATION_ACTION,\n SET_IN_EXTERNAL_STATE,\n UPDATE_SELECTED_ROWS\n} from 'pega-repeating-structures-core';\n\n// Dispatch Action constants that is used by consumer in order to send particular actions to Repeating structures\nexport { EXTERNAL_FILTERS, FOCUSABLE_SELECTORS, ACTIONABLE_SELECTORS } from './Core/constants';\n\nexport type { RSTypes } from './types';\nexport type { RepeatingStructuresProps } from './types/RepeatingStructuresBoot.types';\n\nexport { ROW_DENSITY } from 'pega-repeating-structures-core';\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,mBAAmB,EAAE,MAAM,mCAAmC,CAAC;AAEnF,+BAA+B;AAC/B,OAAO,EACL,oBAAoB,EACpB,iBAAiB,EACjB,wBAAwB,EACxB,eAAe,EACf,mBAAmB,EACnB,wBAAwB,EACxB,qBAAqB,EACrB,oBAAoB,EACpB,oBAAoB,EACrB,MAAM,gCAAgC,CAAC;AAExC,iHAAiH;AACjH,OAAO,EAAE,gBAAgB,EAAE,mBAAmB,EAAE,oBAAoB,EAAE,MAAM,kBAAkB,CAAC;AAK/F,OAAO,EAAE,WAAW,EAAE,MAAM,gCAAgC,CAAC","sourcesContent":["export { default as RepeatingStructures } from './Core/Components/RSWrapper/index';\n\n// FIXME: revisit these imports\nexport {\n convertMetaIntoState,\n UPDATE_DEBUG_INFO,\n TOGGLE_DISABLE_SELECTION,\n TOGGLE_REQUIRED,\n NOTIFY_DATA_REFRESH,\n USER_CONFIRMATION_ACTION,\n SET_IN_EXTERNAL_STATE,\n UPDATE_SELECTED_ROWS,\n SET_WARNING_MESSAGES\n} from 'pega-repeating-structures-core';\n\n// Dispatch Action constants that is used by consumer in order to send particular actions to Repeating structures\nexport { EXTERNAL_FILTERS, FOCUSABLE_SELECTORS, ACTIONABLE_SELECTORS } from './Core/constants';\n\nexport type { RSTypes } from './types';\nexport type { RepeatingStructuresProps } from './types/RepeatingStructuresBoot.types';\n\nexport { ROW_DENSITY } from 'pega-repeating-structures-core';\n"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pega/lists-react",
3
- "version": "9.0.0-build.21.0",
3
+ "version": "9.0.0-build.21.10",
4
4
  "description": "Repeating view structures such as Table, Gallery(Repeating layouts), Kanban etc.",
5
5
  "license": "SEE LICENSE IN LICENSE",
6
6
  "author": "Pegasystems",
@@ -14,9 +14,9 @@
14
14
  "build": "tsc -b tsconfig.build.json"
15
15
  },
16
16
  "dependencies": {
17
- "@pega/cosmos-react-condition-builder": "9.0.0-build.21.0",
18
- "@pega/cosmos-react-core": "9.0.0-build.21.0",
19
- "@pega/cosmos-react-rte": "9.0.0-build.21.0",
17
+ "@pega/cosmos-react-condition-builder": "9.0.0-build.21.10",
18
+ "@pega/cosmos-react-core": "9.0.0-build.21.10",
19
+ "@pega/cosmos-react-rte": "9.0.0-build.21.10",
20
20
  "@types/lodash-es": "^4.17.12",
21
21
  "@types/react": "^17.0.62 || ^18.3.3",
22
22
  "@types/react-dom": "^17.0.20 || ^18.3.0",
@@ -24,8 +24,8 @@
24
24
  "dayjs": "^1.11.13",
25
25
  "fast-deep-equal": "^3.1.3",
26
26
  "lodash-es": "^4.17.23",
27
- "pega-repeating-structures-core": "npm:@pega/lists-core@9.0.0-build.21.0",
28
- "pega-ui-list-data-apis": "npm:@pega/lists-core-utils@9.0.0-build.21.0",
27
+ "pega-repeating-structures-core": "npm:@pega/lists-core@9.0.0-build.21.10",
28
+ "pega-ui-list-data-apis": "npm:@pega/lists-core-utils@9.0.0-build.21.10",
29
29
  "polished": "^4.1.0",
30
30
  "prop-types": "^15.8.1",
31
31
  "react": "^17.0.0 || ^18.0.0",
@@ -44,7 +44,7 @@
44
44
  "@testing-library/react": "^16.0.0",
45
45
  "@testing-library/user-event": "^14.6.1",
46
46
  "jest-axe": "^8.0.0",
47
- "srs-utils": "9.0.0-build.21.0",
47
+ "srs-utils": "9.0.0-build.21.10",
48
48
  "typescript": "~5.9.3"
49
49
  }
50
50
  }