@pega/cosmos-react-work 2.1.6 → 2.1.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/components/AppAnnouncement/AppAnnouncement.d.ts +33 -0
- package/lib/components/AppAnnouncement/AppAnnouncement.d.ts.map +1 -0
- package/lib/components/AppAnnouncement/AppAnnouncement.js +91 -0
- package/lib/components/AppAnnouncement/AppAnnouncement.js.map +1 -0
- package/lib/components/AppAnnouncement/index.d.ts +3 -0
- package/lib/components/AppAnnouncement/index.d.ts.map +1 -0
- package/lib/components/AppAnnouncement/index.js +2 -0
- package/lib/components/AppAnnouncement/index.js.map +1 -0
- package/lib/components/CaseHeader/CaseHeader.d.ts +30 -0
- package/lib/components/CaseHeader/CaseHeader.d.ts.map +1 -0
- package/lib/components/CaseHeader/CaseHeader.js +119 -0
- package/lib/components/CaseHeader/CaseHeader.js.map +1 -0
- package/lib/components/CaseHeader/index.d.ts +4 -0
- package/lib/components/CaseHeader/index.d.ts.map +1 -0
- package/lib/components/CaseHeader/index.js +3 -0
- package/lib/components/CaseHeader/index.js.map +1 -0
- package/lib/components/CasePreview/CasePreview.d.ts +22 -0
- package/lib/components/CasePreview/CasePreview.d.ts.map +1 -0
- package/lib/components/CasePreview/CasePreview.js +80 -0
- package/lib/components/CasePreview/CasePreview.js.map +1 -0
- package/lib/components/CasePreview/index.d.ts +3 -0
- package/lib/components/CasePreview/index.d.ts.map +1 -0
- package/lib/components/CasePreview/index.js +2 -0
- package/lib/components/CasePreview/index.js.map +1 -0
- package/lib/components/CaseSummary/CaseSummary.d.ts +36 -0
- package/lib/components/CaseSummary/CaseSummary.d.ts.map +1 -0
- package/lib/components/CaseSummary/CaseSummary.js +130 -0
- package/lib/components/CaseSummary/CaseSummary.js.map +1 -0
- package/lib/components/CaseSummary/index.d.ts +4 -0
- package/lib/components/CaseSummary/index.d.ts.map +1 -0
- package/lib/components/CaseSummary/index.js +3 -0
- package/lib/components/CaseSummary/index.js.map +1 -0
- package/lib/components/CaseSummaryFields/CaseSummaryFields.d.ts +22 -0
- package/lib/components/CaseSummaryFields/CaseSummaryFields.d.ts.map +1 -0
- package/lib/components/CaseSummaryFields/CaseSummaryFields.js +25 -0
- package/lib/components/CaseSummaryFields/CaseSummaryFields.js.map +1 -0
- package/lib/components/CaseSummaryFields/index.d.ts +4 -0
- package/lib/components/CaseSummaryFields/index.d.ts.map +1 -0
- package/lib/components/CaseSummaryFields/index.js +3 -0
- package/lib/components/CaseSummaryFields/index.js.map +1 -0
- package/lib/components/CaseView/CaseView.d.ts +31 -0
- package/lib/components/CaseView/CaseView.d.ts.map +1 -0
- package/lib/components/CaseView/CaseView.js +259 -0
- package/lib/components/CaseView/CaseView.js.map +1 -0
- package/lib/components/CaseView/CaseView.styles.d.ts +23 -0
- package/lib/components/CaseView/CaseView.styles.d.ts.map +1 -0
- package/lib/components/CaseView/CaseView.styles.js +106 -0
- package/lib/components/CaseView/CaseView.styles.js.map +1 -0
- package/lib/components/CaseView/MobileCaseView.d.ts +13 -0
- package/lib/components/CaseView/MobileCaseView.d.ts.map +1 -0
- package/lib/components/CaseView/MobileCaseView.js +25 -0
- package/lib/components/CaseView/MobileCaseView.js.map +1 -0
- package/lib/components/CaseView/UtilitiesSummary.d.ts +12 -0
- package/lib/components/CaseView/UtilitiesSummary.d.ts.map +1 -0
- package/lib/components/CaseView/UtilitiesSummary.js +21 -0
- package/lib/components/CaseView/UtilitiesSummary.js.map +1 -0
- package/lib/components/CaseView/index.d.ts +6 -0
- package/lib/components/CaseView/index.d.ts.map +1 -0
- package/lib/components/CaseView/index.js +4 -0
- package/lib/components/CaseView/index.js.map +1 -0
- package/lib/components/ConfigurableLayout/ConfigurableLayout.d.ts +4 -0
- package/lib/components/ConfigurableLayout/ConfigurableLayout.d.ts.map +1 -0
- package/lib/components/ConfigurableLayout/ConfigurableLayout.js +93 -0
- package/lib/components/ConfigurableLayout/ConfigurableLayout.js.map +1 -0
- package/lib/components/ConfigurableLayout/ConfigurableLayout.types.d.ts +43 -0
- package/lib/components/ConfigurableLayout/ConfigurableLayout.types.d.ts.map +1 -0
- package/lib/components/ConfigurableLayout/ConfigurableLayout.types.js +2 -0
- package/lib/components/ConfigurableLayout/ConfigurableLayout.types.js.map +1 -0
- package/lib/components/ConfigurableLayout/LayoutCell.d.ts +6 -0
- package/lib/components/ConfigurableLayout/LayoutCell.d.ts.map +1 -0
- package/lib/components/ConfigurableLayout/LayoutCell.js +64 -0
- package/lib/components/ConfigurableLayout/LayoutCell.js.map +1 -0
- package/lib/components/ConfigurableLayout/defaults.d.ts +4 -0
- package/lib/components/ConfigurableLayout/defaults.d.ts.map +1 -0
- package/lib/components/ConfigurableLayout/defaults.js +4 -0
- package/lib/components/ConfigurableLayout/defaults.js.map +1 -0
- package/lib/components/ConfigurableLayout/index.d.ts +4 -0
- package/lib/components/ConfigurableLayout/index.d.ts.map +1 -0
- package/lib/components/ConfigurableLayout/index.js +3 -0
- package/lib/components/ConfigurableLayout/index.js.map +1 -0
- package/lib/components/ConfigurableLayout/options.d.ts +10 -0
- package/lib/components/ConfigurableLayout/options.d.ts.map +1 -0
- package/lib/components/ConfigurableLayout/options.js +10 -0
- package/lib/components/ConfigurableLayout/options.js.map +1 -0
- package/lib/components/ConfigurableLayout/useTrackWrappedRegions.d.ts +7 -0
- package/lib/components/ConfigurableLayout/useTrackWrappedRegions.d.ts.map +1 -0
- package/lib/components/ConfigurableLayout/useTrackWrappedRegions.js +37 -0
- package/lib/components/ConfigurableLayout/useTrackWrappedRegions.js.map +1 -0
- package/lib/components/Confirmation/Confirmation.d.ts +19 -0
- package/lib/components/Confirmation/Confirmation.d.ts.map +1 -0
- package/lib/components/Confirmation/Confirmation.js +14 -0
- package/lib/components/Confirmation/Confirmation.js.map +1 -0
- package/lib/components/Confirmation/index.d.ts +3 -0
- package/lib/components/Confirmation/index.d.ts.map +1 -0
- package/lib/components/Confirmation/index.js +2 -0
- package/lib/components/Confirmation/index.js.map +1 -0
- package/lib/components/Details/Details.d.ts +13 -0
- package/lib/components/Details/Details.d.ts.map +1 -0
- package/lib/components/Details/Details.js +38 -0
- package/lib/components/Details/Details.js.map +1 -0
- package/lib/components/Details/index.d.ts +4 -0
- package/lib/components/Details/index.d.ts.map +1 -0
- package/lib/components/Details/index.js +3 -0
- package/lib/components/Details/index.js.map +1 -0
- package/lib/components/Glimpse/Glimpse.d.ts +20 -0
- package/lib/components/Glimpse/Glimpse.d.ts.map +1 -0
- package/lib/components/Glimpse/Glimpse.js +22 -0
- package/lib/components/Glimpse/Glimpse.js.map +1 -0
- package/lib/components/Glimpse/index.d.ts +3 -0
- package/lib/components/Glimpse/index.d.ts.map +1 -0
- package/lib/components/Glimpse/index.js +3 -0
- package/lib/components/Glimpse/index.js.map +1 -0
- package/lib/components/SearchResults/Filter.d.ts +8 -0
- package/lib/components/SearchResults/Filter.d.ts.map +1 -0
- package/lib/components/SearchResults/Filter.js +45 -0
- package/lib/components/SearchResults/Filter.js.map +1 -0
- package/lib/components/SearchResults/SearchResult.d.ts +4 -0
- package/lib/components/SearchResults/SearchResult.d.ts.map +1 -0
- package/lib/components/SearchResults/SearchResult.js +21 -0
- package/lib/components/SearchResults/SearchResult.js.map +1 -0
- package/lib/components/SearchResults/SearchResults.d.ts +6 -0
- package/lib/components/SearchResults/SearchResults.d.ts.map +1 -0
- package/lib/components/SearchResults/SearchResults.js +102 -0
- package/lib/components/SearchResults/SearchResults.js.map +1 -0
- package/lib/components/SearchResults/SearchResults.styles.d.ts +8 -0
- package/lib/components/SearchResults/SearchResults.styles.d.ts.map +1 -0
- package/lib/components/SearchResults/SearchResults.styles.js +67 -0
- package/lib/components/SearchResults/SearchResults.styles.js.map +1 -0
- package/lib/components/SearchResults/SearchResults.types.d.ts +96 -0
- package/lib/components/SearchResults/SearchResults.types.d.ts.map +1 -0
- package/lib/components/SearchResults/SearchResults.types.js +2 -0
- package/lib/components/SearchResults/SearchResults.types.js.map +1 -0
- package/lib/components/SearchResults/index.d.ts +3 -0
- package/lib/components/SearchResults/index.d.ts.map +1 -0
- package/lib/components/SearchResults/index.js +2 -0
- package/lib/components/SearchResults/index.js.map +1 -0
- package/lib/components/Stages/Stages.d.ts +6 -0
- package/lib/components/Stages/Stages.d.ts.map +1 -0
- package/lib/components/Stages/Stages.js +129 -0
- package/lib/components/Stages/Stages.js.map +1 -0
- package/lib/components/Stages/Stages.styles.d.ts +16 -0
- package/lib/components/Stages/Stages.styles.d.ts.map +1 -0
- package/lib/components/Stages/Stages.styles.js +280 -0
- package/lib/components/Stages/Stages.styles.js.map +1 -0
- package/lib/components/Stages/Stages.types.d.ts +23 -0
- package/lib/components/Stages/Stages.types.d.ts.map +1 -0
- package/lib/components/Stages/Stages.types.js +2 -0
- package/lib/components/Stages/Stages.types.js.map +1 -0
- package/lib/components/Stages/Steps.d.ts +8 -0
- package/lib/components/Stages/Steps.d.ts.map +1 -0
- package/lib/components/Stages/Steps.js +12 -0
- package/lib/components/Stages/Steps.js.map +1 -0
- package/lib/components/Stages/StepsContainer.d.ts +8 -0
- package/lib/components/Stages/StepsContainer.d.ts.map +1 -0
- package/lib/components/Stages/StepsContainer.js +11 -0
- package/lib/components/Stages/StepsContainer.js.map +1 -0
- package/lib/components/Stages/index.d.ts +3 -0
- package/lib/components/Stages/index.d.ts.map +1 -0
- package/lib/components/Stages/index.js +2 -0
- package/lib/components/Stages/index.js.map +1 -0
- package/lib/components/Stakeholders/StakeholderForm.d.ts +7 -0
- package/lib/components/Stakeholders/StakeholderForm.d.ts.map +1 -0
- package/lib/components/Stakeholders/StakeholderForm.js +49 -0
- package/lib/components/Stakeholders/StakeholderForm.js.map +1 -0
- package/lib/components/Stakeholders/Stakeholders.d.ts +6 -0
- package/lib/components/Stakeholders/Stakeholders.d.ts.map +1 -0
- package/lib/components/Stakeholders/Stakeholders.js +215 -0
- package/lib/components/Stakeholders/Stakeholders.js.map +1 -0
- package/lib/components/Stakeholders/Stakeholders.types.d.ts +83 -0
- package/lib/components/Stakeholders/Stakeholders.types.d.ts.map +1 -0
- package/lib/components/Stakeholders/Stakeholders.types.js +2 -0
- package/lib/components/Stakeholders/Stakeholders.types.js.map +1 -0
- package/lib/components/Stakeholders/index.d.ts +3 -0
- package/lib/components/Stakeholders/index.d.ts.map +1 -0
- package/lib/components/Stakeholders/index.js +2 -0
- package/lib/components/Stakeholders/index.js.map +1 -0
- package/lib/components/Tags/Tags.d.ts +34 -0
- package/lib/components/Tags/Tags.d.ts.map +1 -0
- package/lib/components/Tags/Tags.js +227 -0
- package/lib/components/Tags/Tags.js.map +1 -0
- package/lib/components/Tags/index.d.ts +2 -0
- package/lib/components/Tags/index.d.ts.map +1 -0
- package/lib/components/Tags/index.js +2 -0
- package/lib/components/Tags/index.js.map +1 -0
- package/lib/components/Tasks/TaskList.d.ts +25 -0
- package/lib/components/Tasks/TaskList.d.ts.map +1 -0
- package/lib/components/Tasks/TaskList.js +25 -0
- package/lib/components/Tasks/TaskList.js.map +1 -0
- package/lib/components/Tasks/Tasks.d.ts +22 -0
- package/lib/components/Tasks/Tasks.d.ts.map +1 -0
- package/lib/components/Tasks/Tasks.js +35 -0
- package/lib/components/Tasks/Tasks.js.map +1 -0
- package/lib/components/Tasks/index.d.ts +6 -0
- package/lib/components/Tasks/index.d.ts.map +1 -0
- package/lib/components/Tasks/index.js +3 -0
- package/lib/components/Tasks/index.js.map +1 -0
- package/lib/components/Timeline/Timeline.d.ts +6 -0
- package/lib/components/Timeline/Timeline.d.ts.map +1 -0
- package/lib/components/Timeline/Timeline.js +24 -0
- package/lib/components/Timeline/Timeline.js.map +1 -0
- package/lib/components/Timeline/Timeline.styles.d.ts +22 -0
- package/lib/components/Timeline/Timeline.styles.d.ts.map +1 -0
- package/lib/components/Timeline/Timeline.styles.js +183 -0
- package/lib/components/Timeline/Timeline.styles.js.map +1 -0
- package/lib/components/Timeline/Timeline.types.d.ts +45 -0
- package/lib/components/Timeline/Timeline.types.d.ts.map +1 -0
- package/lib/components/Timeline/Timeline.types.js +2 -0
- package/lib/components/Timeline/Timeline.types.js.map +1 -0
- package/lib/components/Timeline/TimelineItem.d.ts +13 -0
- package/lib/components/Timeline/TimelineItem.d.ts.map +1 -0
- package/lib/components/Timeline/TimelineItem.js +21 -0
- package/lib/components/Timeline/TimelineItem.js.map +1 -0
- package/lib/components/Timeline/index.d.ts +3 -0
- package/lib/components/Timeline/index.d.ts.map +1 -0
- package/lib/components/Timeline/index.js +2 -0
- package/lib/components/Timeline/index.js.map +1 -0
- package/lib/components/Timeline/utils.d.ts +14 -0
- package/lib/components/Timeline/utils.d.ts.map +1 -0
- package/lib/components/Timeline/utils.js +63 -0
- package/lib/components/Timeline/utils.js.map +1 -0
- package/lib/index.d.ts +33 -0
- package/lib/index.d.ts.map +1 -0
- package/lib/index.js +34 -0
- package/lib/index.js.map +1 -0
- package/package.json +2 -2
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { isValidElement, useCallback, useState } from 'react';
|
|
3
|
+
import { ExpandCollapse, Grid, Icon, Status, useBreakpoint, FieldValueList, Flex } from '@pega/cosmos-react-core';
|
|
4
|
+
import { StyledCard, StyledCardHeader, StyledTimeWrapper, StyledTimelineIcon, StyledCardContent, StyledBulletWrapper, StyledToggleButton, StyledTime } from './Timeline.styles';
|
|
5
|
+
import { isFutureDate } from './utils';
|
|
6
|
+
const TimelineItem = ({ item: { date, title, icon, status, content }, timeFormat, prevItemDate, nextItemDate, currentTime }) => {
|
|
7
|
+
const [collapsed, setCollapsed] = useState(true);
|
|
8
|
+
const isSmallOrAbove = useBreakpoint('sm');
|
|
9
|
+
const toggleCollapse = useCallback(() => setCollapsed(prevState => !prevState), []);
|
|
10
|
+
return (_jsxs("tr", { children: [isSmallOrAbove && (_jsx(StyledTimeWrapper, { children: _jsx(StyledTime, { variant: timeFormat, value: date }, void 0) }, void 0)), _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 }, void 0) }, void 0) }, void 0), _jsxs("td", { style: { width: '100%' }, children: [_jsx(Flex, { children: _jsx(StyledCard, { children: _jsxs(StyledCardHeader, { container: {
|
|
11
|
+
cols: 'auto 1fr',
|
|
12
|
+
alignContent: 'evenly',
|
|
13
|
+
alignItems: 'center'
|
|
14
|
+
}, sm: { container: { cols: 'auto 1fr auto' } }, children: [content && (_jsx(StyledToggleButton, { icon: true, variant: 'simple', onClick: toggleCollapse, collapsed: collapsed, "aria-expanded": !collapsed, children: _jsx(Icon, { name: 'caret-down' }, void 0) }, void 0)), _jsxs(Grid, { item: { colStart: '2', colEnd: '2' }, container: { rowGap: 0.25 }, children: [title, !isSmallOrAbove && (_jsxs(Grid, { container: {
|
|
15
|
+
cols: '1fr auto',
|
|
16
|
+
alignContent: 'evenly',
|
|
17
|
+
alignItems: 'center'
|
|
18
|
+
}, children: [_jsx(StyledTime, { variant: 'time', value: date }, void 0), status && _jsx(Status, { variant: status.variant, children: status.children }, void 0)] }, void 0))] }, void 0), isSmallOrAbove && status && (_jsx(Grid, { sm: { item: { colStart: '3', colEnd: '3' } }, children: _jsx(Status, { variant: status.variant, children: status.children }, void 0) }, void 0))] }, void 0) }, void 0) }, void 0), content && (_jsx(ExpandCollapse, { dimension: 'height', collapsed: collapsed, nullWhenCollapsed: true, children: _jsx(StyledCardContent, { children: isValidElement(content) ? (content) : (_jsx(FieldValueList, { fields: content, variant: isSmallOrAbove ? 'inline' : 'stacked' }, void 0)) }, void 0) }, void 0))] }, void 0)] }, void 0));
|
|
19
|
+
};
|
|
20
|
+
export default TimelineItem;
|
|
21
|
+
//# sourceMappingURL=TimelineItem.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TimelineItem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AAC,IAAI,IAAC,EAAE,EAAE,EAAE,IAAI,EAAE,EAAE,QAAQ,EAAE,GAAG,EAAE,MAAM,EAAE,GAAG,EAAE,EAAE,YAChD,KAAC,MAAM,IAAC,OAAO,EAAE,MAAM,CAAC,OAAO,YAAG,MAAM,CAAC,QAAQ,WAAU,WACtD,CACR,YACgB,WACR,WACR,EACN,OAAO,IAAI,CACV,KAAC,cAAc,IAAC,SAAS,EAAC,QAAQ,EAAC,SAAS,EAAE,SAAS,EAAE,iBAAiB,kBACxE,KAAC,iBAAiB,cACf,cAAc,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,CACzB,OAAO,CACR,CAAC,CAAC,CAAC,CACF,KAAC,cAAc,IACb,MAAM,EAAE,OAAwC,EAChD,OAAO,EAAE,cAAc,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,WAC9C,CACH,WACiB,WACL,CAClB,YACE,YACF,CACN,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,YAAY,CAAC","sourcesContent":["import { FunctionComponent, isValidElement, useCallback, useState } from 'react';\n\nimport {\n ExpandCollapse,\n FieldValueListProps,\n ForwardProps,\n Grid,\n Icon,\n Status,\n useBreakpoint,\n FieldValueList,\n Flex,\n DateTimeDisplayProps\n} from '@pega/cosmos-react-core';\n\nimport type { ActivityObject } from './Timeline.types';\nimport {\n StyledCard,\n StyledCardHeader,\n StyledTimeWrapper,\n StyledTimelineIcon,\n StyledCardContent,\n StyledBulletWrapper,\n StyledToggleButton,\n StyledTime\n} from './Timeline.styles';\nimport { isFutureDate } from './utils';\n\ninterface TimelineItemProps {\n item: ActivityObject;\n timeFormat: DateTimeDisplayProps['variant'];\n prevItemDate: ActivityObject['date'] | undefined;\n nextItemDate: ActivityObject['date'] | undefined;\n currentTime: Date;\n}\n\nconst TimelineItem: FunctionComponent<TimelineItemProps & ForwardProps> = ({\n item: { date, title, icon, status, content },\n timeFormat,\n prevItemDate,\n nextItemDate,\n currentTime\n}: TimelineItemProps & ForwardProps) => {\n const [collapsed, setCollapsed] = useState(true);\n const isSmallOrAbove = useBreakpoint('sm');\n\n const toggleCollapse = useCallback(() => setCollapsed(prevState => !prevState), []);\n\n return (\n <tr>\n {isSmallOrAbove && (\n <StyledTimeWrapper>\n <StyledTime variant={timeFormat} value={date} />\n </StyledTimeWrapper>\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 <td style={{ width: '100%' }}>\n <Flex>\n <StyledCard>\n <StyledCardHeader\n container={{\n cols: 'auto 1fr',\n alignContent: 'evenly',\n alignItems: 'center'\n }}\n sm={{ container: { cols: 'auto 1fr auto' } }}\n >\n {content && (\n <StyledToggleButton\n icon\n variant='simple'\n onClick={toggleCollapse}\n collapsed={collapsed}\n aria-expanded={!collapsed}\n >\n <Icon name='caret-down' />\n </StyledToggleButton>\n )}\n <Grid item={{ colStart: '2', colEnd: '2' }} container={{ rowGap: 0.25 }}>\n {title}\n {!isSmallOrAbove && (\n <Grid\n container={{\n cols: '1fr auto',\n alignContent: 'evenly',\n alignItems: 'center'\n }}\n >\n <StyledTime variant='time' value={date} />\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 </StyledCard>\n </Flex>\n {content && (\n <ExpandCollapse dimension='height' collapsed={collapsed} nullWhenCollapsed>\n <StyledCardContent>\n {isValidElement(content) ? (\n content\n ) : (\n <FieldValueList\n fields={content as FieldValueListProps['fields']}\n variant={isSmallOrAbove ? 'inline' : 'stacked'}\n />\n )}\n </StyledCardContent>\n </ExpandCollapse>\n )}\n </td>\n </tr>\n );\n};\n\nexport default TimelineItem;\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Timeline/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AACrC,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,kBAAkB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/Timeline/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC","sourcesContent":["export { default } from './Timeline';\nexport { default as TimelineProps } from './Timeline.types';\n"]}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { ActivityObject, TimelineGroupBy, TimelineSortOrder } from './Timeline.types';
|
|
2
|
+
export declare function sortByDateAscending(dates: ActivityObject[]): ActivityObject[];
|
|
3
|
+
export declare function sortByDateDescending(dates: ActivityObject[]): ActivityObject[];
|
|
4
|
+
export declare function sortByDate(activity: ActivityObject[], sortOrder: TimelineSortOrder): ActivityObject[];
|
|
5
|
+
export declare function getDatePartAsDate(date: string | number | Date): Date;
|
|
6
|
+
export declare function getMonthYearPartAsDate(date: string | number | Date): Date;
|
|
7
|
+
export declare function getYearPartAsDate(date: string | number | Date): Date;
|
|
8
|
+
export declare function isSameDate(firstDate: string | number | Date, secondDate: string | number | Date): boolean;
|
|
9
|
+
export declare function isSameMonthYear(firstDate: string | number | Date, secondDate: string | number | Date): boolean;
|
|
10
|
+
export declare function isSameYear(firstDate: string | number | Date, secondDate: string | number | Date): boolean;
|
|
11
|
+
export declare function isSameQuarterYear(firstDate: string | number | Date, secondDate: string | number | Date): boolean;
|
|
12
|
+
export declare function isSameGroup(firstDate: string | number | Date | undefined, secondDate: string | number | Date | undefined, groupBy: TimelineGroupBy): boolean;
|
|
13
|
+
export declare function isFutureDate(date: string | number | Date | undefined, current: Date): boolean;
|
|
14
|
+
//# sourceMappingURL=utils.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/components/Timeline/utils.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,cAAc,EAAE,eAAe,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AAE3F,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,cAAc,EAAE,GAAG,cAAc,EAAE,CAE7E;AAED,wBAAgB,oBAAoB,CAAC,KAAK,EAAE,cAAc,EAAE,GAAG,cAAc,EAAE,CAE9E;AAED,wBAAgB,UAAU,CACxB,QAAQ,EAAE,cAAc,EAAE,EAC1B,SAAS,EAAE,iBAAiB,GAC3B,cAAc,EAAE,CAElB;AAED,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,GAAG,IAAI,CAGpE;AAED,wBAAgB,sBAAsB,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,GAAG,IAAI,CAGzE;AAED,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,GAAG,IAAI,CAGpE;AAED,wBAAgB,UAAU,CACxB,SAAS,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,EACjC,UAAU,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,GACjC,OAAO,CAET;AAED,wBAAgB,eAAe,CAC7B,SAAS,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,EACjC,UAAU,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,GACjC,OAAO,CAIT;AAED,wBAAgB,UAAU,CACxB,SAAS,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,EACjC,UAAU,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,GACjC,OAAO,CAET;AAED,wBAAgB,iBAAiB,CAC/B,SAAS,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,EACjC,UAAU,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,GACjC,OAAO,CAET;AAED,wBAAgB,WAAW,CACzB,SAAS,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,GAAG,SAAS,EAC7C,UAAU,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,GAAG,SAAS,EAC9C,OAAO,EAAE,eAAe,GACvB,OAAO,CAqBT;AAED,wBAAgB,YAAY,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,GAAG,SAAS,EAAE,OAAO,EAAE,IAAI,GAAG,OAAO,CAG7F"}
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import { getQuarter, parseToDate } from '@pega/cosmos-react-core/lib/components/DateTime/Input/utils';
|
|
2
|
+
export function sortByDateAscending(dates) {
|
|
3
|
+
return [...dates].sort((a, b) => parseToDate(a.date).getTime() - parseToDate(b.date).getTime());
|
|
4
|
+
}
|
|
5
|
+
export function sortByDateDescending(dates) {
|
|
6
|
+
return [...dates].sort((a, b) => parseToDate(b.date).getTime() - parseToDate(a.date).getTime());
|
|
7
|
+
}
|
|
8
|
+
export function sortByDate(activity, sortOrder) {
|
|
9
|
+
return sortOrder === 'ascending' ? sortByDateAscending(activity) : sortByDateDescending(activity);
|
|
10
|
+
}
|
|
11
|
+
export function getDatePartAsDate(date) {
|
|
12
|
+
const parsedDate = parseToDate(date);
|
|
13
|
+
return new Date(parsedDate.getUTCFullYear(), parsedDate.getUTCMonth(), parsedDate.getUTCDate());
|
|
14
|
+
}
|
|
15
|
+
export function getMonthYearPartAsDate(date) {
|
|
16
|
+
const parsedDate = parseToDate(date);
|
|
17
|
+
return new Date(parsedDate.getUTCFullYear(), parsedDate.getUTCMonth());
|
|
18
|
+
}
|
|
19
|
+
export function getYearPartAsDate(date) {
|
|
20
|
+
const parsedDate = parseToDate(date);
|
|
21
|
+
return new Date(parsedDate.getUTCFullYear());
|
|
22
|
+
}
|
|
23
|
+
export function isSameDate(firstDate, secondDate) {
|
|
24
|
+
return getDatePartAsDate(firstDate).getTime() === getDatePartAsDate(secondDate).getTime();
|
|
25
|
+
}
|
|
26
|
+
export function isSameMonthYear(firstDate, secondDate) {
|
|
27
|
+
return (getMonthYearPartAsDate(firstDate).getTime() === getMonthYearPartAsDate(secondDate).getTime());
|
|
28
|
+
}
|
|
29
|
+
export function isSameYear(firstDate, secondDate) {
|
|
30
|
+
return getYearPartAsDate(firstDate).getTime() === getYearPartAsDate(secondDate).getTime();
|
|
31
|
+
}
|
|
32
|
+
export function isSameQuarterYear(firstDate, secondDate) {
|
|
33
|
+
return isSameYear(firstDate, secondDate) && getQuarter(firstDate) === getQuarter(secondDate);
|
|
34
|
+
}
|
|
35
|
+
export function isSameGroup(firstDate, secondDate, groupBy) {
|
|
36
|
+
if (!firstDate || !secondDate)
|
|
37
|
+
return false;
|
|
38
|
+
switch (groupBy) {
|
|
39
|
+
case 'none': {
|
|
40
|
+
return true;
|
|
41
|
+
}
|
|
42
|
+
case 'date': {
|
|
43
|
+
return isSameDate(firstDate, secondDate);
|
|
44
|
+
}
|
|
45
|
+
case 'monthyear': {
|
|
46
|
+
return isSameMonthYear(firstDate, secondDate);
|
|
47
|
+
}
|
|
48
|
+
case 'quarteryear': {
|
|
49
|
+
return isSameQuarterYear(firstDate, secondDate);
|
|
50
|
+
}
|
|
51
|
+
case 'year': {
|
|
52
|
+
return isSameYear(firstDate, secondDate);
|
|
53
|
+
}
|
|
54
|
+
default:
|
|
55
|
+
return false;
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
export function isFutureDate(date, current) {
|
|
59
|
+
if (!date || !current)
|
|
60
|
+
return false;
|
|
61
|
+
return parseToDate(date).getTime() > current.getTime();
|
|
62
|
+
}
|
|
63
|
+
//# sourceMappingURL=utils.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"utils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U,CAAC,CAAC;SAC1C;QACD,KAAK,WAAW,CAAC,CAAC;YAChB,OAAO,eAAe,CAAC,SAAS,EAAE,UAAU,CAAC,CAAC;SAC/C;QACD,KAAK,aAAa,CAAC,CAAC;YAClB,OAAO,iBAAiB,CAAC,SAAS,EAAE,UAAU,CAAC,CAAC;SACjD;QACD,KAAK,MAAM,CAAC,CAAC;YACX,OAAO,UAAU,CAAC,SAAS,EAAE,UAAU,CAAC,CAAC;SAC1C;QACD;YACE,OAAO,KAAK,CAAC;KAChB;AACH,CAAC;AAED,MAAM,UAAU,YAAY,CAAC,IAAwC,EAAE,OAAa;IAClF,IAAI,CAAC,IAAI,IAAI,CAAC,OAAO;QAAE,OAAO,KAAK,CAAC;IACpC,OAAO,WAAW,CAAC,IAAI,CAAC,CAAC,OAAO,EAAE,GAAG,OAAO,CAAC,OAAO,EAAE,CAAC;AACzD,CAAC","sourcesContent":["import {\n getQuarter,\n parseToDate\n} from '@pega/cosmos-react-core/lib/components/DateTime/Input/utils';\n\nimport type { ActivityObject, TimelineGroupBy, TimelineSortOrder } from './Timeline.types';\n\nexport function sortByDateAscending(dates: ActivityObject[]): ActivityObject[] {\n return [...dates].sort((a, b) => parseToDate(a.date).getTime() - parseToDate(b.date).getTime());\n}\n\nexport function sortByDateDescending(dates: ActivityObject[]): ActivityObject[] {\n return [...dates].sort((a, b) => parseToDate(b.date).getTime() - parseToDate(a.date).getTime());\n}\n\nexport function sortByDate(\n activity: ActivityObject[],\n sortOrder: TimelineSortOrder\n): ActivityObject[] {\n return sortOrder === 'ascending' ? sortByDateAscending(activity) : sortByDateDescending(activity);\n}\n\nexport function getDatePartAsDate(date: string | number | Date): Date {\n const parsedDate = parseToDate(date);\n return new Date(parsedDate.getUTCFullYear(), parsedDate.getUTCMonth(), parsedDate.getUTCDate());\n}\n\nexport function getMonthYearPartAsDate(date: string | number | Date): Date {\n const parsedDate = parseToDate(date);\n return new Date(parsedDate.getUTCFullYear(), parsedDate.getUTCMonth());\n}\n\nexport function getYearPartAsDate(date: string | number | Date): Date {\n const parsedDate = parseToDate(date);\n return new Date(parsedDate.getUTCFullYear());\n}\n\nexport function isSameDate(\n firstDate: string | number | Date,\n secondDate: string | number | Date\n): boolean {\n return getDatePartAsDate(firstDate).getTime() === getDatePartAsDate(secondDate).getTime();\n}\n\nexport function isSameMonthYear(\n firstDate: string | number | Date,\n secondDate: string | number | Date\n): boolean {\n return (\n getMonthYearPartAsDate(firstDate).getTime() === getMonthYearPartAsDate(secondDate).getTime()\n );\n}\n\nexport function isSameYear(\n firstDate: string | number | Date,\n secondDate: string | number | Date\n): boolean {\n return getYearPartAsDate(firstDate).getTime() === getYearPartAsDate(secondDate).getTime();\n}\n\nexport function isSameQuarterYear(\n firstDate: string | number | Date,\n secondDate: string | number | Date\n): boolean {\n return isSameYear(firstDate, secondDate) && getQuarter(firstDate) === getQuarter(secondDate);\n}\n\nexport function isSameGroup(\n firstDate: string | number | Date | undefined,\n secondDate: string | number | Date | undefined,\n groupBy: TimelineGroupBy\n): boolean {\n if (!firstDate || !secondDate) return false;\n switch (groupBy) {\n case 'none': {\n return true;\n }\n case 'date': {\n return isSameDate(firstDate, secondDate);\n }\n case 'monthyear': {\n return isSameMonthYear(firstDate, secondDate);\n }\n case 'quarteryear': {\n return isSameQuarterYear(firstDate, secondDate);\n }\n case 'year': {\n return isSameYear(firstDate, secondDate);\n }\n default:\n return false;\n }\n}\n\nexport function isFutureDate(date: string | number | Date | undefined, current: Date): boolean {\n if (!date || !current) return false;\n return parseToDate(date).getTime() > current.getTime();\n}\n"]}
|
package/lib/index.d.ts
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
export { default as AppAnnouncement } from './components/AppAnnouncement';
|
|
2
|
+
export * from './components/AppAnnouncement';
|
|
3
|
+
export { default as CaseHeader } from './components/CaseHeader';
|
|
4
|
+
export * from './components/CaseHeader';
|
|
5
|
+
export { default as CasePreview } from './components/CasePreview';
|
|
6
|
+
export * from './components/CasePreview';
|
|
7
|
+
export { default as CaseSummary } from './components/CaseSummary';
|
|
8
|
+
export * from './components/CaseSummary';
|
|
9
|
+
export { default as CaseSummaryFields } from './components/CaseSummaryFields';
|
|
10
|
+
export * from './components/CaseSummaryFields';
|
|
11
|
+
export { default as CaseView } from './components/CaseView';
|
|
12
|
+
export * from './components/CaseView';
|
|
13
|
+
export { default as ConfigurableLayout } from './components/ConfigurableLayout';
|
|
14
|
+
export * from './components/ConfigurableLayout';
|
|
15
|
+
export { default as Confirmation } from './components/Confirmation';
|
|
16
|
+
export * from './components/Confirmation';
|
|
17
|
+
export { default as Details } from './components/Details';
|
|
18
|
+
export * from './components/Details';
|
|
19
|
+
export { default as Glimpse } from './components/Glimpse';
|
|
20
|
+
export * from './components/Glimpse';
|
|
21
|
+
export { default as SearchResults } from './components/SearchResults';
|
|
22
|
+
export * from './components/SearchResults';
|
|
23
|
+
export { default as Stages } from './components/Stages';
|
|
24
|
+
export * from './components/Stages';
|
|
25
|
+
export { default as Stakeholders } from './components/Stakeholders';
|
|
26
|
+
export * from './components/Stakeholders';
|
|
27
|
+
export { default as Tags } from './components/Tags';
|
|
28
|
+
export * from './components/Tags';
|
|
29
|
+
export { default as Tasks } from './components/Tasks';
|
|
30
|
+
export * from './components/Tasks';
|
|
31
|
+
export { default as Timeline } from './components/Timeline';
|
|
32
|
+
export * from './components/Timeline';
|
|
33
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,IAAI,eAAe,EAAE,MAAM,8BAA8B,CAAC;AAC1E,cAAc,8BAA8B,CAAC;AAC7C,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,yBAAyB,CAAC;AAChE,cAAc,yBAAyB,CAAC;AACxC,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,0BAA0B,CAAC;AAClE,cAAc,0BAA0B,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1
|
+
// This file is autogenerated. Any changes will be overwritten.
|
|
2
|
+
export { default as AppAnnouncement } from './components/AppAnnouncement';
|
|
3
|
+
export * from './components/AppAnnouncement';
|
|
4
|
+
export { default as CaseHeader } from './components/CaseHeader';
|
|
5
|
+
export * from './components/CaseHeader';
|
|
6
|
+
export { default as CasePreview } from './components/CasePreview';
|
|
7
|
+
export * from './components/CasePreview';
|
|
8
|
+
export { default as CaseSummary } from './components/CaseSummary';
|
|
9
|
+
export * from './components/CaseSummary';
|
|
10
|
+
export { default as CaseSummaryFields } from './components/CaseSummaryFields';
|
|
11
|
+
export * from './components/CaseSummaryFields';
|
|
12
|
+
export { default as CaseView } from './components/CaseView';
|
|
13
|
+
export * from './components/CaseView';
|
|
14
|
+
export { default as ConfigurableLayout } from './components/ConfigurableLayout';
|
|
15
|
+
export * from './components/ConfigurableLayout';
|
|
16
|
+
export { default as Confirmation } from './components/Confirmation';
|
|
17
|
+
export * from './components/Confirmation';
|
|
18
|
+
export { default as Details } from './components/Details';
|
|
19
|
+
export * from './components/Details';
|
|
20
|
+
export { default as Glimpse } from './components/Glimpse';
|
|
21
|
+
export * from './components/Glimpse';
|
|
22
|
+
export { default as SearchResults } from './components/SearchResults';
|
|
23
|
+
export * from './components/SearchResults';
|
|
24
|
+
export { default as Stages } from './components/Stages';
|
|
25
|
+
export * from './components/Stages';
|
|
26
|
+
export { default as Stakeholders } from './components/Stakeholders';
|
|
27
|
+
export * from './components/Stakeholders';
|
|
28
|
+
export { default as Tags } from './components/Tags';
|
|
29
|
+
export * from './components/Tags';
|
|
30
|
+
export { default as Tasks } from './components/Tasks';
|
|
31
|
+
export * from './components/Tasks';
|
|
32
|
+
export { default as Timeline } from './components/Timeline';
|
|
33
|
+
export * from './components/Timeline';
|
|
34
|
+
//# sourceMappingURL=index.js.map
|
package/lib/index.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"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,MAAM,mBAAmB,CAAC;AACpD,cAAc,mBAAmB,CAAC;AAClC,OAAO,EAAE,OAAO,IAAI,KAAK,EAAE,MAAM,oBAAoB,CAAC;AACtD,cAAc,oBAAoB,CAAC;AACnC,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAC5D,cAAc,uBAAuB,CAAC","sourcesContent":["// This file is autogenerated. Any changes will be overwritten.\nexport { default as AppAnnouncement } from './components/AppAnnouncement';\nexport * from './components/AppAnnouncement';\nexport { default as CaseHeader } from './components/CaseHeader';\nexport * from './components/CaseHeader';\nexport { default as CasePreview } from './components/CasePreview';\nexport * from './components/CasePreview';\nexport { default as CaseSummary } from './components/CaseSummary';\nexport * from './components/CaseSummary';\nexport { default as CaseSummaryFields } from './components/CaseSummaryFields';\nexport * from './components/CaseSummaryFields';\nexport { default as CaseView } from './components/CaseView';\nexport * from './components/CaseView';\nexport { default as ConfigurableLayout } from './components/ConfigurableLayout';\nexport * from './components/ConfigurableLayout';\nexport { default as Confirmation } from './components/Confirmation';\nexport * from './components/Confirmation';\nexport { default as Details } from './components/Details';\nexport * from './components/Details';\nexport { default as Glimpse } from './components/Glimpse';\nexport * from './components/Glimpse';\nexport { default as SearchResults } from './components/SearchResults';\nexport * from './components/SearchResults';\nexport { default as Stages } from './components/Stages';\nexport * from './components/Stages';\nexport { default as Stakeholders } from './components/Stakeholders';\nexport * from './components/Stakeholders';\nexport { default as Tags } from './components/Tags';\nexport * from './components/Tags';\nexport { default as Tasks } from './components/Tasks';\nexport * from './components/Tasks';\nexport { default as Timeline } from './components/Timeline';\nexport * from './components/Timeline';\n"]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pega/cosmos-react-work",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.7",
|
|
4
4
|
"author": "Pegasystems",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE",
|
|
6
6
|
"repository": {
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
"build": "tsc -b"
|
|
21
21
|
},
|
|
22
22
|
"dependencies": {
|
|
23
|
-
"@pega/cosmos-react-core": "2.1.
|
|
23
|
+
"@pega/cosmos-react-core": "2.1.7",
|
|
24
24
|
"polished": "^4.1.0",
|
|
25
25
|
"react": "^16.14.0 || ^17.0.0",
|
|
26
26
|
"react-dom": "^16.14.0 || ^17.0.0",
|