@pega/cosmos-react-work 3.0.0-dev.3.0 → 3.0.0-dev.4.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/components/Timeline/Timeline.types.d.ts +23 -2
- package/lib/components/Timeline/Timeline.types.d.ts.map +1 -1
- package/lib/components/Timeline/Timeline.types.js.map +1 -1
- package/lib/components/Timeline/TimelineToolbar.d.ts +6 -0
- package/lib/components/Timeline/TimelineToolbar.d.ts.map +1 -0
- package/lib/components/Timeline/TimelineToolbar.js +68 -0
- package/lib/components/Timeline/TimelineToolbar.js.map +1 -0
- package/lib/components/Timeline/index.d.ts +1 -0
- package/lib/components/Timeline/index.d.ts.map +1 -1
- package/lib/components/Timeline/index.js +1 -0
- package/lib/components/Timeline/index.js.map +1 -1
- package/package.json +9 -9
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { ReactNode, Ref } from 'react';
|
|
2
|
-
import { BaseProps, FieldValueListProps, IconProps, NoChildrenProp, StatusProps } from '@pega/cosmos-react-core';
|
|
1
|
+
import { MouseEvent, ReactNode, Ref } from 'react';
|
|
2
|
+
import { BaseProps, FieldValueListProps, IconProps, ListToolbarProps, NoChildrenProp, OmitStrict, StatusProps } from '@pega/cosmos-react-core';
|
|
3
3
|
import { DateTimeVariant } from '@pega/cosmos-react-core/lib/components/DateTime/DateTimeDisplay';
|
|
4
|
+
import { AcceptedMouseEventElement } from '@pega/cosmos-react-core/lib/components/Menu/Menu.types';
|
|
4
5
|
export interface ActivityObject {
|
|
5
6
|
/** Unique id for activity */
|
|
6
7
|
id: string;
|
|
@@ -42,4 +43,24 @@ export default interface TimelineProps extends BaseProps, NoChildrenProp {
|
|
|
42
43
|
/** Ref for the wrapping element. */
|
|
43
44
|
ref?: Ref<HTMLTableElement>;
|
|
44
45
|
}
|
|
46
|
+
export interface TimelineToolbarProps extends OmitStrict<ListToolbarProps, 'sort' | 'group'> {
|
|
47
|
+
sort?: {
|
|
48
|
+
/** An item click handler for all item clicks. */
|
|
49
|
+
onItemClick: (id: TimelineSortOrder, e: MouseEvent<AcceptedMouseEventElement>) => void;
|
|
50
|
+
/**
|
|
51
|
+
* Currently selected sort order.
|
|
52
|
+
* @default "descending"
|
|
53
|
+
*/
|
|
54
|
+
selected: TimelineProps['sortOrder'];
|
|
55
|
+
};
|
|
56
|
+
group?: {
|
|
57
|
+
/** An item click handler for all item clicks. */
|
|
58
|
+
onItemClick: (id: TimelineGroupBy, e: MouseEvent<AcceptedMouseEventElement>) => void;
|
|
59
|
+
/**
|
|
60
|
+
* Currently selected sort order.
|
|
61
|
+
* @default "date"
|
|
62
|
+
*/
|
|
63
|
+
selected: TimelineProps['groupBy'];
|
|
64
|
+
};
|
|
65
|
+
}
|
|
45
66
|
//# sourceMappingURL=Timeline.types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Timeline.types.d.ts","sourceRoot":"","sources":["../../../src/components/Timeline/Timeline.types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"Timeline.types.d.ts","sourceRoot":"","sources":["../../../src/components/Timeline/Timeline.types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AAEnD,OAAO,EACL,SAAS,EACT,mBAAmB,EACnB,SAAS,EACT,gBAAgB,EAChB,cAAc,EACd,UAAU,EACV,WAAW,EACZ,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,eAAe,EAAE,MAAM,iEAAiE,CAAC;AAClG,OAAO,EAAE,yBAAyB,EAAE,MAAM,wDAAwD,CAAC;AAEnG,MAAM,WAAW,cAAc;IAC7B,6BAA6B;IAC7B,EAAE,EAAE,MAAM,CAAC;IACX,+DAA+D;IAC/D,IAAI,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAAC;IAC7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AAE,EAAE,eAAe,EAAE,CAAC,EAAE,UAAU,CAAC,yBAAyB,CAAC,KAAK,IAAI,CAAC;QACrF;;;WAGG;QACH,QAAQ,EAAE,aAAa,CAAC,SAAS,CAAC,CAAC;KACpC,CAAC;CACH"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Timeline.types.js","sourceRoot":"","sources":["../../../src/components/Timeline/Timeline.types.ts"],"names":[],"mappings":"","sourcesContent":["import { ReactNode, Ref } from 'react';\n\nimport {\n BaseProps,\n FieldValueListProps,\n IconProps,\n NoChildrenProp,\n StatusProps\n} from '@pega/cosmos-react-core';\nimport { DateTimeVariant } from '@pega/cosmos-react-core/lib/components/DateTime/DateTimeDisplay';\n\nexport interface ActivityObject {\n /** Unique id for activity */\n id: string;\n /** Date as ISO8601 string, timestamp or native Date object. */\n date: string | number | Date;\n /** Header region for rendering text and links. */\n title: ReactNode;\n /** Name of the icon (to be selected from default Pega icon set) */\n icon?: IconProps['name'];\n /** Represents the current status of activity */\n status?: StatusProps;\n /** The set of field values to render in the list. */\n content?: FieldValueListProps['fields'] | ReactNode;\n}\n\nexport type TimelineSortOrder = 'ascending' | 'descending';\nexport type TimelineGroupBy =\n | Extract<DateTimeVariant, 'date' | 'monthyear' | 'quarteryear' | 'year'>\n | 'none';\n\nexport default interface TimelineProps extends BaseProps, NoChildrenProp {\n /** List of activity */\n activity: ActivityObject[];\n /** Current time as Date */\n currentTime: Date;\n /**\n * List of activity sorted in ascending or descending order.\n * @default \"descending\"\n */\n sortOrder?: TimelineSortOrder;\n /**\n * List of activity grouped by day, month, quarter or year.\n * @default \"date\"\n */\n groupBy?: TimelineGroupBy;\n /**\n * Show a Progress indicator at the end of a list where newly loaded items will be appended.\n * @default false\n */\n loading?: boolean;\n /** Callback to fetch more activity items */\n loadMore?: () => void;\n /** Ref for the wrapping element. */\n ref?: Ref<HTMLTableElement>;\n}\n"]}
|
|
1
|
+
{"version":3,"file":"Timeline.types.js","sourceRoot":"","sources":["../../../src/components/Timeline/Timeline.types.ts"],"names":[],"mappings":"","sourcesContent":["import { MouseEvent, ReactNode, Ref } from 'react';\n\nimport {\n BaseProps,\n FieldValueListProps,\n IconProps,\n ListToolbarProps,\n NoChildrenProp,\n OmitStrict,\n StatusProps\n} from '@pega/cosmos-react-core';\nimport { DateTimeVariant } from '@pega/cosmos-react-core/lib/components/DateTime/DateTimeDisplay';\nimport { AcceptedMouseEventElement } from '@pega/cosmos-react-core/lib/components/Menu/Menu.types';\n\nexport interface ActivityObject {\n /** Unique id for activity */\n id: string;\n /** Date as ISO8601 string, timestamp or native Date object. */\n date: string | number | Date;\n /** Header region for rendering text and links. */\n title: ReactNode;\n /** Name of the icon (to be selected from default Pega icon set) */\n icon?: IconProps['name'];\n /** Represents the current status of activity */\n status?: StatusProps;\n /** The set of field values to render in the list. */\n content?: FieldValueListProps['fields'] | ReactNode;\n}\n\nexport type TimelineSortOrder = 'ascending' | 'descending';\nexport type TimelineGroupBy =\n | Extract<DateTimeVariant, 'date' | 'monthyear' | 'quarteryear' | 'year'>\n | 'none';\n\nexport default interface TimelineProps extends BaseProps, NoChildrenProp {\n /** List of activity */\n activity: ActivityObject[];\n /** Current time as Date */\n currentTime: Date;\n /**\n * List of activity sorted in ascending or descending order.\n * @default \"descending\"\n */\n sortOrder?: TimelineSortOrder;\n /**\n * List of activity grouped by day, month, quarter or year.\n * @default \"date\"\n */\n groupBy?: TimelineGroupBy;\n /**\n * Show a Progress indicator at the end of a list where newly loaded items will be appended.\n * @default false\n */\n loading?: boolean;\n /** Callback to fetch more activity items */\n loadMore?: () => void;\n /** Ref for the wrapping element. */\n ref?: Ref<HTMLTableElement>;\n}\n\nexport interface TimelineToolbarProps extends OmitStrict<ListToolbarProps, 'sort' | 'group'> {\n sort?: {\n /** An item click handler for all item clicks. */\n onItemClick: (id: TimelineSortOrder, e: MouseEvent<AcceptedMouseEventElement>) => void;\n /**\n * Currently selected sort order.\n * @default \"descending\"\n */\n selected: TimelineProps['sortOrder'];\n };\n group?: {\n /** An item click handler for all item clicks. */\n onItemClick: (id: TimelineGroupBy, e: MouseEvent<AcceptedMouseEventElement>) => void;\n /**\n * Currently selected sort order.\n * @default \"date\"\n */\n selected: TimelineProps['groupBy'];\n };\n}\n"]}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { FunctionComponent } from 'react';
|
|
2
|
+
import { ForwardProps } from '@pega/cosmos-react-core';
|
|
3
|
+
import { TimelineToolbarProps } from './Timeline.types';
|
|
4
|
+
declare const TimelineToolbar: FunctionComponent<TimelineToolbarProps & ForwardProps>;
|
|
5
|
+
export default TimelineToolbar;
|
|
6
|
+
//# sourceMappingURL=TimelineToolbar.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TimelineToolbar.d.ts","sourceRoot":"","sources":["../../../src/components/Timeline/TimelineToolbar.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAc,iBAAiB,EAA4B,MAAM,OAAO,CAAC;AAEhF,OAAO,EAAE,YAAY,EAAwB,MAAM,yBAAyB,CAAC;AAG7E,OAAO,EAAsC,oBAAoB,EAAE,MAAM,kBAAkB,CAAC;AAE5F,QAAA,MAAM,eAAe,EAAE,iBAAiB,CAAC,oBAAoB,GAAG,YAAY,CA6E3E,CAAC;AAEF,eAAe,eAAe,CAAC"}
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef, useMemo } from 'react';
|
|
3
|
+
import { ListToolbar, useI18n } from '@pega/cosmos-react-core';
|
|
4
|
+
const TimelineToolbar = forwardRef(({ sort, group, ...restProps }, ref) => {
|
|
5
|
+
const t = useI18n();
|
|
6
|
+
const timelineSort = useMemo(() => {
|
|
7
|
+
const selected = sort?.selected || 'descending';
|
|
8
|
+
return {
|
|
9
|
+
mode: 'single-select',
|
|
10
|
+
items: [
|
|
11
|
+
{
|
|
12
|
+
id: 'descending',
|
|
13
|
+
text: t('timeline_toolbar_sort_descending'),
|
|
14
|
+
icon: 'arrow-down',
|
|
15
|
+
selected: selected === 'descending'
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
id: 'ascending',
|
|
19
|
+
text: t('timeline_toolbar_sort_ascending'),
|
|
20
|
+
icon: 'arrow-up',
|
|
21
|
+
selected: selected === 'ascending'
|
|
22
|
+
}
|
|
23
|
+
],
|
|
24
|
+
onItemClick: (id, e) => {
|
|
25
|
+
sort?.onItemClick(id, e);
|
|
26
|
+
}
|
|
27
|
+
};
|
|
28
|
+
}, [sort?.selected, sort?.onItemClick]);
|
|
29
|
+
const timelineGroup = useMemo(() => {
|
|
30
|
+
const selected = group?.selected || 'date';
|
|
31
|
+
return {
|
|
32
|
+
mode: 'single-select',
|
|
33
|
+
items: [
|
|
34
|
+
{
|
|
35
|
+
id: 'date',
|
|
36
|
+
text: t('timeline_toolbar_group_date'),
|
|
37
|
+
selected: selected === 'date'
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
id: 'monthyear',
|
|
41
|
+
text: t('timeline_toolbar_group_monthyear'),
|
|
42
|
+
selected: selected === 'monthyear'
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
id: 'quarteryear',
|
|
46
|
+
text: t('timeline_toolbar_group_quarteryear'),
|
|
47
|
+
selected: selected === 'quarteryear'
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
id: 'year',
|
|
51
|
+
text: t('timeline_toolbar_group_year'),
|
|
52
|
+
selected: selected === 'year'
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
id: 'none',
|
|
56
|
+
text: t('timeline_toolbar_group_none'),
|
|
57
|
+
selected: selected === 'none'
|
|
58
|
+
}
|
|
59
|
+
],
|
|
60
|
+
onItemClick: (id, e) => {
|
|
61
|
+
group?.onItemClick(id, e);
|
|
62
|
+
}
|
|
63
|
+
};
|
|
64
|
+
}, [group?.selected, group?.onItemClick]);
|
|
65
|
+
return (_jsx(ListToolbar, { ...restProps, sort: sort ? timelineSort : undefined, group: group ? timelineGroup : undefined, ref: ref }, void 0));
|
|
66
|
+
});
|
|
67
|
+
export default TimelineToolbar;
|
|
68
|
+
//# sourceMappingURL=TimelineToolbar.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TimelineToolbar.js","sourceRoot":"","sources":["../../../src/components/Timeline/TimelineToolbar.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,UAAU,EAAsC,OAAO,EAAE,MAAM,OAAO,CAAC;AAEhF,OAAO,EAAgB,WAAW,EAAE,OAAO,EAAE,MAAM,yBAAyB,CAAC;AAK7E,MAAM,eAAe,GAA2D,UAAU,CACxF,CACE,EAAE,IAAI,EAAE,KAAK,EAAE,GAAG,SAAS,EAAyC,EACpE,GAAgC,EAChC,EAAE;IACF,MAAM,CAAC,GAAG,OAAO,EAAE,CAAC;IAEpB,MAAM,YAAY,GAAoB,OAAO,CAAC,GAAG,EAAE;QACjD,MAAM,QAAQ,GAAG,IAAI,EAAE,QAAQ,IAAI,YAAY,CAAC;QAChD,OAAO;YACL,IAAI,EAAE,eAAe;YACrB,KAAK,EAAE;gBACL;oBACE,EAAE,EAAE,YAAY;oBAChB,IAAI,EAAE,CAAC,CAAC,kCAAkC,CAAC;oBAC3C,IAAI,EAAE,YAAY;oBAClB,QAAQ,EAAE,QAAQ,KAAK,YAAY;iBACpC;gBACD;oBACE,EAAE,EAAE,WAAW;oBACf,IAAI,EAAE,CAAC,CAAC,iCAAiC,CAAC;oBAC1C,IAAI,EAAE,UAAU;oBAChB,QAAQ,EAAE,QAAQ,KAAK,WAAW;iBACnC;aACF;YACD,WAAW,EAAE,CAAC,EAAE,EAAE,CAAC,EAAE,EAAE;gBACrB,IAAI,EAAE,WAAW,CAAC,EAAuB,EAAE,CAAC,CAAC,CAAC;YAChD,CAAC;SACF,CAAC;IACJ,CAAC,EAAE,CAAC,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,WAAW,CAAC,CAAC,C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,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,eAAe,eAAe,CAAC","sourcesContent":["import { forwardRef, FunctionComponent, PropsWithoutRef, useMemo } from 'react';\n\nimport { ForwardProps, ListToolbar, useI18n } from '@pega/cosmos-react-core';\nimport { PresetMenuProps } from '@pega/cosmos-react-core/lib/components/ListToolbar/ListToolbar.types';\n\nimport { TimelineGroupBy, TimelineSortOrder, TimelineToolbarProps } from './Timeline.types';\n\nconst TimelineToolbar: FunctionComponent<TimelineToolbarProps & ForwardProps> = forwardRef(\n (\n { sort, group, ...restProps }: PropsWithoutRef<TimelineToolbarProps>,\n ref: TimelineToolbarProps['ref']\n ) => {\n const t = useI18n();\n\n const timelineSort: PresetMenuProps = useMemo(() => {\n const selected = sort?.selected || 'descending';\n return {\n mode: 'single-select',\n items: [\n {\n id: 'descending',\n text: t('timeline_toolbar_sort_descending'),\n icon: 'arrow-down',\n selected: selected === 'descending'\n },\n {\n id: 'ascending',\n text: t('timeline_toolbar_sort_ascending'),\n icon: 'arrow-up',\n selected: selected === 'ascending'\n }\n ],\n onItemClick: (id, e) => {\n sort?.onItemClick(id as TimelineSortOrder, e);\n }\n };\n }, [sort?.selected, sort?.onItemClick]);\n\n const timelineGroup: PresetMenuProps = useMemo(() => {\n const selected = group?.selected || 'date';\n return {\n mode: 'single-select',\n items: [\n {\n id: 'date',\n text: t('timeline_toolbar_group_date'),\n selected: selected === 'date'\n },\n {\n id: 'monthyear',\n text: t('timeline_toolbar_group_monthyear'),\n selected: selected === 'monthyear'\n },\n {\n id: 'quarteryear',\n text: t('timeline_toolbar_group_quarteryear'),\n selected: selected === 'quarteryear'\n },\n {\n id: 'year',\n text: t('timeline_toolbar_group_year'),\n selected: selected === 'year'\n },\n {\n id: 'none',\n text: t('timeline_toolbar_group_none'),\n selected: selected === 'none'\n }\n ],\n onItemClick: (id, e) => {\n group?.onItemClick(id as TimelineGroupBy, e);\n }\n };\n }, [group?.selected, group?.onItemClick]);\n\n return (\n <ListToolbar\n {...restProps}\n sort={sort ? timelineSort : undefined}\n group={group ? timelineGroup : undefined}\n ref={ref}\n />\n );\n }\n);\n\nexport default TimelineToolbar;\n"]}
|
|
@@ -1 +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"}
|
|
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;AAC5D,OAAO,EAAE,OAAO,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC"}
|
|
@@ -1 +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"]}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/Timeline/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAErC,OAAO,EAAE,OAAO,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC","sourcesContent":["export { default } from './Timeline';\nexport { default as TimelineProps } from './Timeline.types';\nexport { default as TimelineToolbar } from './TimelineToolbar';\n"]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pega/cosmos-react-work",
|
|
3
|
-
"version": "3.0.0-dev.
|
|
3
|
+
"version": "3.0.0-dev.4.2",
|
|
4
4
|
"author": "Pegasystems",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE",
|
|
6
6
|
"repository": {
|
|
@@ -20,21 +20,21 @@
|
|
|
20
20
|
"build": "tsc -b"
|
|
21
21
|
},
|
|
22
22
|
"dependencies": {
|
|
23
|
-
"@pega/cosmos-react-core": "3.0.0-dev.
|
|
23
|
+
"@pega/cosmos-react-core": "3.0.0-dev.4.2",
|
|
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",
|
|
27
27
|
"styled-components": "^5.2.0"
|
|
28
28
|
},
|
|
29
29
|
"devDependencies": {
|
|
30
|
-
"@storybook/addon-a11y": "^6.4.
|
|
31
|
-
"@storybook/addon-actions": "^6.4.
|
|
32
|
-
"@storybook/addon-storysource": "^6.4.
|
|
33
|
-
"@storybook/addon-toolbars": "^6.4.
|
|
34
|
-
"@storybook/addons": "^6.4.
|
|
35
|
-
"@storybook/react": "^6.4.
|
|
30
|
+
"@storybook/addon-a11y": "^6.4.19",
|
|
31
|
+
"@storybook/addon-actions": "^6.4.19",
|
|
32
|
+
"@storybook/addon-storysource": "^6.4.19",
|
|
33
|
+
"@storybook/addon-toolbars": "^6.4.19",
|
|
34
|
+
"@storybook/addons": "^6.4.19",
|
|
35
|
+
"@storybook/react": "^6.4.19",
|
|
36
36
|
"@storybook/testing-react": "0.0.18",
|
|
37
|
-
"@storybook/theming": "^6.4.
|
|
37
|
+
"@storybook/theming": "^6.4.19",
|
|
38
38
|
"enzyme": "^3.11.0",
|
|
39
39
|
"typescript": "~4.5.2"
|
|
40
40
|
}
|