@pega/cosmos-react-demos 4.0.0-dev.8.4 → 4.0.0-dev.9.1
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/jsx/build/AppShell/AppShell.mocks.d.ts +16 -14
- package/jsx/build/AppShell/AppShell.mocks.d.ts.map +1 -1
- package/jsx/build/AppShell/AppShell.mocks.jsx +144 -101
- package/jsx/build/AppShell/AppShell.mocks.jsx.map +1 -1
- package/jsx/build/AppShell/AppShell.stories.d.ts +1 -0
- package/jsx/build/AppShell/AppShell.stories.d.ts.map +1 -1
- package/jsx/build/AppShell/AppShell.stories.jsx +7 -3
- package/jsx/build/AppShell/AppShell.stories.jsx.map +1 -1
- package/jsx/build/ExpressionBuilder/ExpressionBuilder.mocks.d.ts +2 -0
- package/jsx/build/ExpressionBuilder/ExpressionBuilder.mocks.d.ts.map +1 -1
- package/jsx/build/ExpressionBuilder/ExpressionBuilder.mocks.js +23 -0
- package/jsx/build/ExpressionBuilder/ExpressionBuilder.mocks.js.map +1 -1
- package/jsx/build/ExpressionBuilder/ExpressionBuilder.stories.d.ts.map +1 -1
- package/jsx/build/ExpressionBuilder/ExpressionBuilder.stories.jsx +4 -4
- package/jsx/build/ExpressionBuilder/ExpressionBuilder.stories.jsx.map +1 -1
- package/jsx/build/PageBanner/PageBanner.stories.d.ts +15 -0
- package/jsx/build/PageBanner/PageBanner.stories.d.ts.map +1 -0
- package/jsx/build/PageBanner/PageBanner.stories.jsx +41 -0
- package/jsx/build/PageBanner/PageBanner.stories.jsx.map +1 -0
- package/jsx/build/PageTemplates/GalleryPage.stories.d.ts +7 -3
- package/jsx/build/PageTemplates/GalleryPage.stories.d.ts.map +1 -1
- package/jsx/build/PageTemplates/GalleryPage.stories.jsx +29 -19
- package/jsx/build/PageTemplates/GalleryPage.stories.jsx.map +1 -1
- package/jsx/build/PageTemplates/ShowcasePage.stories.d.ts +17 -0
- package/jsx/build/PageTemplates/ShowcasePage.stories.d.ts.map +1 -0
- package/jsx/build/PageTemplates/ShowcasePage.stories.jsx +42 -0
- package/jsx/build/PageTemplates/ShowcasePage.stories.jsx.map +1 -0
- package/jsx/condition-builder/ConditionBuilder/props.mock.js +4 -4
- package/jsx/condition-builder/ConditionBuilder/props.mock.js.map +1 -1
- package/jsx/core/AppShell/AppShell.mocks.jsx +1 -1
- package/jsx/core/AppShell/AppShell.mocks.jsx.map +1 -1
- package/jsx/core/AppShell/AppShell.stories.d.ts +1 -0
- package/jsx/core/AppShell/AppShell.stories.d.ts.map +1 -1
- package/jsx/core/AppShell/AppShell.stories.jsx +21 -6
- package/jsx/core/AppShell/AppShell.stories.jsx.map +1 -1
- package/jsx/core/Banner/Banner.stories.d.ts +1 -0
- package/jsx/core/Banner/Banner.stories.d.ts.map +1 -1
- package/jsx/core/Banner/Banner.stories.jsx +3 -3
- package/jsx/core/Banner/Banner.stories.jsx.map +1 -1
- package/jsx/cs/CSAppShell/CSAppShell.mocks.d.ts +1 -0
- package/jsx/cs/CSAppShell/CSAppShell.mocks.d.ts.map +1 -1
- package/jsx/cs/CSAppShell/CSAppShell.mocks.jsx +46 -1
- package/jsx/cs/CSAppShell/CSAppShell.mocks.jsx.map +1 -1
- package/jsx/cs/CSAppShell/CSAppShell.stories.d.ts.map +1 -1
- package/jsx/cs/CSAppShell/CSAppShell.stories.jsx +2 -2
- package/jsx/cs/CSAppShell/CSAppShell.stories.jsx.map +1 -1
- package/jsx/social/Chat/Chat.mocks.d.ts +2 -1
- package/jsx/social/Chat/Chat.mocks.d.ts.map +1 -1
- package/jsx/social/Chat/Chat.mocks.js +26 -0
- package/jsx/social/Chat/Chat.mocks.js.map +1 -1
- package/jsx/social/Chat/Chat.stories.d.ts +5 -2
- package/jsx/social/Chat/Chat.stories.d.ts.map +1 -1
- package/jsx/social/Chat/Chat.stories.jsx +35 -101
- package/jsx/social/Chat/Chat.stories.jsx.map +1 -1
- package/jsx/social/Email/Email.mocks.d.ts +49 -7
- package/jsx/social/Email/Email.mocks.d.ts.map +1 -1
- package/jsx/social/Email/Email.mocks.jsx +127 -15
- package/jsx/social/Email/Email.mocks.jsx.map +1 -1
- package/jsx/social/Email/Email.stories.d.ts +10 -0
- package/jsx/social/Email/Email.stories.d.ts.map +1 -1
- package/jsx/social/Email/Email.stories.jsx +129 -12
- package/jsx/social/Email/Email.stories.jsx.map +1 -1
- package/jsx/tools/DevTools/DevTools.stories.d.ts.map +1 -1
- package/jsx/tools/DevTools/DevTools.stories.jsx +2 -4
- package/jsx/tools/DevTools/DevTools.stories.jsx.map +1 -1
- package/jsx/tools/PreviewShell/PreviewShell.mocks.d.ts +3 -1
- package/jsx/tools/PreviewShell/PreviewShell.mocks.d.ts.map +1 -1
- package/jsx/tools/PreviewShell/PreviewShell.mocks.jsx +7 -4
- package/jsx/tools/PreviewShell/PreviewShell.mocks.jsx.map +1 -1
- package/jsx/tools/PreviewShell/PreviewShell.stories.d.ts.map +1 -1
- package/jsx/tools/PreviewShell/PreviewShell.stories.jsx +16 -12
- package/jsx/tools/PreviewShell/PreviewShell.stories.jsx.map +1 -1
- package/jsx/work/Stages/Stages.mocks.jsx +6 -6
- package/jsx/work/Stages/Stages.mocks.jsx.map +1 -1
- package/jsx/work/Tasks/Tasks.stories.d.ts.map +1 -1
- package/jsx/work/Tasks/Tasks.stories.jsx +15 -13
- package/jsx/work/Tasks/Tasks.stories.jsx.map +1 -1
- package/lib/build/AppShell/AppShell.mocks.d.ts +16 -14
- package/lib/build/AppShell/AppShell.mocks.d.ts.map +1 -1
- package/lib/build/AppShell/AppShell.mocks.js +144 -101
- package/lib/build/AppShell/AppShell.mocks.js.map +1 -1
- package/lib/build/AppShell/AppShell.stories.d.ts +1 -0
- package/lib/build/AppShell/AppShell.stories.d.ts.map +1 -1
- package/lib/build/AppShell/AppShell.stories.js +7 -3
- package/lib/build/AppShell/AppShell.stories.js.map +1 -1
- package/lib/build/ExpressionBuilder/ExpressionBuilder.mocks.d.ts +2 -0
- package/lib/build/ExpressionBuilder/ExpressionBuilder.mocks.d.ts.map +1 -1
- package/lib/build/ExpressionBuilder/ExpressionBuilder.mocks.js +23 -0
- package/lib/build/ExpressionBuilder/ExpressionBuilder.mocks.js.map +1 -1
- package/lib/build/ExpressionBuilder/ExpressionBuilder.stories.d.ts.map +1 -1
- package/lib/build/ExpressionBuilder/ExpressionBuilder.stories.js +4 -4
- package/lib/build/ExpressionBuilder/ExpressionBuilder.stories.js.map +1 -1
- package/lib/build/PageBanner/PageBanner.stories.d.ts +15 -0
- package/lib/build/PageBanner/PageBanner.stories.d.ts.map +1 -0
- package/lib/build/PageBanner/PageBanner.stories.js +42 -0
- package/lib/build/PageBanner/PageBanner.stories.js.map +1 -0
- package/lib/build/PageTemplates/GalleryPage.stories.d.ts +7 -3
- package/lib/build/PageTemplates/GalleryPage.stories.d.ts.map +1 -1
- package/lib/build/PageTemplates/GalleryPage.stories.js +29 -19
- package/lib/build/PageTemplates/GalleryPage.stories.js.map +1 -1
- package/lib/build/PageTemplates/ShowcasePage.stories.d.ts +17 -0
- package/lib/build/PageTemplates/ShowcasePage.stories.d.ts.map +1 -0
- package/lib/build/PageTemplates/ShowcasePage.stories.js +43 -0
- package/lib/build/PageTemplates/ShowcasePage.stories.js.map +1 -0
- package/lib/condition-builder/ConditionBuilder/props.mock.js +4 -4
- package/lib/condition-builder/ConditionBuilder/props.mock.js.map +1 -1
- package/lib/core/AppShell/AppShell.mocks.js +1 -1
- package/lib/core/AppShell/AppShell.mocks.js.map +1 -1
- package/lib/core/AppShell/AppShell.stories.d.ts +1 -0
- package/lib/core/AppShell/AppShell.stories.d.ts.map +1 -1
- package/lib/core/AppShell/AppShell.stories.js +21 -6
- package/lib/core/AppShell/AppShell.stories.js.map +1 -1
- package/lib/core/Banner/Banner.stories.d.ts +1 -0
- package/lib/core/Banner/Banner.stories.d.ts.map +1 -1
- package/lib/core/Banner/Banner.stories.js +1 -1
- package/lib/core/Banner/Banner.stories.js.map +1 -1
- package/lib/cs/CSAppShell/CSAppShell.mocks.d.ts +1 -0
- package/lib/cs/CSAppShell/CSAppShell.mocks.d.ts.map +1 -1
- package/lib/cs/CSAppShell/CSAppShell.mocks.js +37 -1
- package/lib/cs/CSAppShell/CSAppShell.mocks.js.map +1 -1
- package/lib/cs/CSAppShell/CSAppShell.stories.d.ts.map +1 -1
- package/lib/cs/CSAppShell/CSAppShell.stories.js +2 -2
- package/lib/cs/CSAppShell/CSAppShell.stories.js.map +1 -1
- package/lib/social/Chat/Chat.mocks.d.ts +2 -1
- package/lib/social/Chat/Chat.mocks.d.ts.map +1 -1
- package/lib/social/Chat/Chat.mocks.js +26 -0
- package/lib/social/Chat/Chat.mocks.js.map +1 -1
- package/lib/social/Chat/Chat.stories.d.ts +5 -2
- package/lib/social/Chat/Chat.stories.d.ts.map +1 -1
- package/lib/social/Chat/Chat.stories.js +36 -76
- package/lib/social/Chat/Chat.stories.js.map +1 -1
- package/lib/social/Email/Email.mocks.d.ts +49 -7
- package/lib/social/Email/Email.mocks.d.ts.map +1 -1
- package/lib/social/Email/Email.mocks.js +127 -15
- package/lib/social/Email/Email.mocks.js.map +1 -1
- package/lib/social/Email/Email.stories.d.ts +10 -0
- package/lib/social/Email/Email.stories.d.ts.map +1 -1
- package/lib/social/Email/Email.stories.js +134 -12
- package/lib/social/Email/Email.stories.js.map +1 -1
- package/lib/tools/DevTools/DevTools.stories.d.ts.map +1 -1
- package/lib/tools/DevTools/DevTools.stories.js +2 -4
- package/lib/tools/DevTools/DevTools.stories.js.map +1 -1
- package/lib/tools/PreviewShell/PreviewShell.mocks.d.ts +3 -1
- package/lib/tools/PreviewShell/PreviewShell.mocks.d.ts.map +1 -1
- package/lib/tools/PreviewShell/PreviewShell.mocks.js +5 -4
- package/lib/tools/PreviewShell/PreviewShell.mocks.js.map +1 -1
- package/lib/tools/PreviewShell/PreviewShell.stories.d.ts.map +1 -1
- package/lib/tools/PreviewShell/PreviewShell.stories.js +11 -13
- package/lib/tools/PreviewShell/PreviewShell.stories.js.map +1 -1
- package/lib/work/Stages/Stages.mocks.js +6 -6
- package/lib/work/Stages/Stages.mocks.js.map +1 -1
- package/lib/work/Tasks/Tasks.stories.d.ts.map +1 -1
- package/lib/work/Tasks/Tasks.stories.js +2 -2
- package/lib/work/Tasks/Tasks.stories.js.map +1 -1
- package/package.json +10 -9
|
@@ -1,16 +1,24 @@
|
|
|
1
1
|
import { FC } from 'react';
|
|
2
2
|
import { NavProps } from '@pega/cosmos-react-build';
|
|
3
3
|
export interface TabbedPageStoryProps {
|
|
4
|
-
pageContent:
|
|
4
|
+
pageContent: {
|
|
5
|
+
template: 'tabbed';
|
|
6
|
+
title: string;
|
|
7
|
+
breadcrumbsPath: string;
|
|
8
|
+
tabs: string[];
|
|
9
|
+
};
|
|
5
10
|
showBreadcrumbs: boolean;
|
|
6
11
|
}
|
|
12
|
+
export interface ShowcasePageStoryProps {
|
|
13
|
+
template: 'showcase';
|
|
14
|
+
title: string;
|
|
15
|
+
description: string;
|
|
16
|
+
actionLabel: string;
|
|
17
|
+
imageSrc: string;
|
|
18
|
+
}
|
|
7
19
|
export interface PageContentProps {
|
|
8
20
|
id: string;
|
|
9
|
-
data:
|
|
10
|
-
pageTitle: string;
|
|
11
|
-
breadcrumbsPath: string;
|
|
12
|
-
tabs: string[];
|
|
13
|
-
};
|
|
21
|
+
data: TabbedPageStoryProps['pageContent'] | ShowcasePageStoryProps;
|
|
14
22
|
}
|
|
15
23
|
export declare const getPath: (args: TabbedPageStoryProps) => {
|
|
16
24
|
id: string;
|
|
@@ -18,13 +26,7 @@ export declare const getPath: (args: TabbedPageStoryProps) => {
|
|
|
18
26
|
href: string | undefined;
|
|
19
27
|
}[] | undefined;
|
|
20
28
|
export declare const defaultNavItems: NavProps['items'];
|
|
21
|
-
export declare const contents:
|
|
22
|
-
id: string;
|
|
23
|
-
data: {
|
|
24
|
-
pageTitle: string;
|
|
25
|
-
breadcrumbsPath: string;
|
|
26
|
-
tabs: string[];
|
|
27
|
-
};
|
|
28
|
-
}[];
|
|
29
|
+
export declare const contents: PageContentProps[];
|
|
29
30
|
export declare const TabbedPageComp: FC<TabbedPageStoryProps>;
|
|
31
|
+
export declare const ShowcasePageComp: FC<ShowcasePageStoryProps>;
|
|
30
32
|
//# sourceMappingURL=AppShell.mocks.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AppShell.mocks.d.ts","sourceRoot":"","sources":["../../../src/build/AppShell/AppShell.mocks.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAG3B,OAAO,EAAE,QAAQ,
|
|
1
|
+
{"version":3,"file":"AppShell.mocks.d.ts","sourceRoot":"","sources":["../../../src/build/AppShell/AppShell.mocks.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAG3B,OAAO,EAAE,QAAQ,EAAgB,MAAM,0BAA0B,CAAC;AAKlE,MAAM,WAAW,oBAAoB;IACnC,WAAW,EAAE;QACX,QAAQ,EAAE,QAAQ,CAAC;QACnB,KAAK,EAAE,MAAM,CAAC;QACd,eAAe,EAAE,MAAM,CAAC;QACxB,IAAI,EAAE,MAAM,EAAE,CAAC;KAChB,CAAC;IACF,eAAe,EAAE,OAAO,CAAC;CAC1B;AAED,MAAM,WAAW,sBAAsB;IACrC,QAAQ,EAAE,UAAU,CAAC;IACrB,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,WAAW,gBAAgB;IAC/B,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,oBAAoB,CAAC,aAAa,CAAC,GAAG,sBAAsB,CAAC;CACpE;AAED,eAAO,MAAM,OAAO,SAAU,oBAAoB;;;;eAmBjD,CAAC;AAEF,eAAO,MAAM,eAAe,EAAE,QAAQ,CAAC,OAAO,CAiH7C,CAAC;AAEF,eAAO,MAAM,QAAQ,EAAE,gBAAgB,EA6PtC,CAAC;AAEF,eAAO,MAAM,cAAc,EAAE,EAAE,CAAC,oBAAoB,CAyBnD,CAAC;AAEF,eAAO,MAAM,gBAAgB,EAAE,EAAE,CAAC,sBAAsB,CAwBvD,CAAC"}
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import { TabbedPage, Text } from '@pega/cosmos-react-core';
|
|
2
|
+
import { ShowcasePage } from '@pega/cosmos-react-build';
|
|
3
|
+
import { TableDemo } from '../../core/Table/Table.stories';
|
|
2
4
|
export const getPath = (args) => {
|
|
3
|
-
const { showBreadcrumbs, pageContent: {
|
|
5
|
+
const { showBreadcrumbs, pageContent: { title, breadcrumbsPath } } = args;
|
|
4
6
|
if (showBreadcrumbs) {
|
|
5
|
-
const path =
|
|
7
|
+
const path = title === 'Overview' ? 'Home' : breadcrumbsPath;
|
|
6
8
|
return path
|
|
7
9
|
? path.split(',').map((crumb, i) => {
|
|
8
10
|
return {
|
|
@@ -23,13 +25,13 @@ export const defaultNavItems = [
|
|
|
23
25
|
},
|
|
24
26
|
{
|
|
25
27
|
id: 'caseTypes',
|
|
26
|
-
label: 'Case
|
|
28
|
+
label: 'Case Types',
|
|
27
29
|
icon: 'chevron-solid',
|
|
28
30
|
href: '#caseTypes'
|
|
29
31
|
},
|
|
30
32
|
{
|
|
31
33
|
id: 'liveData',
|
|
32
|
-
label: 'Live
|
|
34
|
+
label: 'Live Data',
|
|
33
35
|
href: '#liveData',
|
|
34
36
|
icon: 'disc-stack-solid'
|
|
35
37
|
},
|
|
@@ -47,36 +49,36 @@ export const defaultNavItems = [
|
|
|
47
49
|
},
|
|
48
50
|
{
|
|
49
51
|
id: 'appSettings',
|
|
50
|
-
label: 'App
|
|
52
|
+
label: 'App Settings',
|
|
51
53
|
href: '#appSettings',
|
|
52
54
|
icon: 'gear-solid'
|
|
53
55
|
},
|
|
54
56
|
{
|
|
55
57
|
id: 'rulesLibrary',
|
|
56
|
-
label: 'Rules
|
|
58
|
+
label: 'Rules Library',
|
|
57
59
|
icon: 'book-solid',
|
|
58
60
|
items: [
|
|
59
|
-
{ id: 'appLogic', label: 'App
|
|
61
|
+
{ id: 'appLogic', label: 'App Logic', href: '#appLogic' },
|
|
60
62
|
{ id: 'application', label: 'Application', href: '#application' },
|
|
61
63
|
{ id: 'data', label: 'Data', href: '#data' },
|
|
62
64
|
{
|
|
63
65
|
id: 'integration',
|
|
64
66
|
label: 'Integration',
|
|
65
67
|
items: [
|
|
66
|
-
{ id: 'emailAccounts', label: 'Email
|
|
68
|
+
{ id: 'emailAccounts', label: 'Email Accounts', href: '#emailAccounts' },
|
|
67
69
|
{
|
|
68
70
|
id: 'integrationSystems',
|
|
69
|
-
label: 'Integration
|
|
71
|
+
label: 'Integration Systems',
|
|
70
72
|
href: '#integrationSystems'
|
|
71
73
|
},
|
|
72
74
|
{
|
|
73
75
|
id: 'jsonTransforms',
|
|
74
|
-
label: 'JSON
|
|
76
|
+
label: 'JSON Transforms',
|
|
75
77
|
href: '#jsonTransforms'
|
|
76
78
|
},
|
|
77
79
|
{
|
|
78
80
|
id: 'restConnectors',
|
|
79
|
-
label: 'REST
|
|
81
|
+
label: 'REST Connectors',
|
|
80
82
|
href: '#restConnectors'
|
|
81
83
|
}
|
|
82
84
|
]
|
|
@@ -86,12 +88,12 @@ export const defaultNavItems = [
|
|
|
86
88
|
label: 'Process',
|
|
87
89
|
items: [
|
|
88
90
|
{ id: 'process-actions', label: 'Actions', href: '#actions' },
|
|
89
|
-
{ id: 'process-caseStatus', label: 'Case
|
|
90
|
-
{ id: 'process-caseTypes', label: 'Case
|
|
91
|
+
{ id: 'process-caseStatus', label: 'Case Status', href: '#caseStatus' },
|
|
92
|
+
{ id: 'process-caseTypes', label: 'Case Types', href: '#caseTypes' },
|
|
91
93
|
{ id: 'process-processes', label: 'Processes', href: '#processes' },
|
|
92
94
|
{ id: 'process-SLAs', label: 'SLAs', href: '#SLAs' },
|
|
93
95
|
{ id: 'process-stages', label: 'Stages', href: '#stages' },
|
|
94
|
-
{ id: 'process-workQueues', label: 'Work
|
|
96
|
+
{ id: 'process-workQueues', label: 'Work Queues', href: '#workQueues' }
|
|
95
97
|
]
|
|
96
98
|
},
|
|
97
99
|
{
|
|
@@ -100,31 +102,31 @@ export const defaultNavItems = [
|
|
|
100
102
|
items: [
|
|
101
103
|
{
|
|
102
104
|
id: 'accessConditions',
|
|
103
|
-
label: 'Access
|
|
105
|
+
label: 'Access Conditions',
|
|
104
106
|
href: '#accessConditions'
|
|
105
107
|
},
|
|
106
|
-
{ id: 'accessGroups', label: 'Access
|
|
108
|
+
{ id: 'accessGroups', label: 'Access Groups', href: '#accessGroups' },
|
|
107
109
|
{
|
|
108
110
|
id: 'accessPolicies',
|
|
109
|
-
label: 'Access
|
|
111
|
+
label: 'Access Policies',
|
|
110
112
|
href: '#accessPolicies'
|
|
111
113
|
},
|
|
112
|
-
{ id: 'accessRoles', label: 'Access
|
|
114
|
+
{ id: 'accessRoles', label: 'Access Roles', href: '#accessRoles' },
|
|
113
115
|
{
|
|
114
116
|
id: 'authentication',
|
|
115
117
|
label: 'Authentication',
|
|
116
118
|
items: [
|
|
117
119
|
{
|
|
118
120
|
id: 'authProfiles',
|
|
119
|
-
label: 'Authentication
|
|
121
|
+
label: 'Authentication Profiles',
|
|
120
122
|
href: '#authProfiles'
|
|
121
123
|
}
|
|
122
124
|
]
|
|
123
125
|
}
|
|
124
126
|
]
|
|
125
127
|
},
|
|
126
|
-
{ id: 'systemAdmin', label: 'System
|
|
127
|
-
{ id: 'userInterface', label: 'User
|
|
128
|
+
{ id: 'systemAdmin', label: 'System Admin', href: '#systemAdmin' },
|
|
129
|
+
{ id: 'userInterface', label: 'User Interface', href: '#userInterface' }
|
|
128
130
|
]
|
|
129
131
|
}
|
|
130
132
|
];
|
|
@@ -132,7 +134,8 @@ export const contents = [
|
|
|
132
134
|
{
|
|
133
135
|
id: 'overview',
|
|
134
136
|
data: {
|
|
135
|
-
|
|
137
|
+
template: 'tabbed',
|
|
138
|
+
title: 'Overview',
|
|
136
139
|
breadcrumbsPath: 'Home',
|
|
137
140
|
tabs: ['Application']
|
|
138
141
|
}
|
|
@@ -140,216 +143,245 @@ export const contents = [
|
|
|
140
143
|
{
|
|
141
144
|
id: 'caseTypes',
|
|
142
145
|
data: {
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
+
template: 'showcase',
|
|
147
|
+
title: 'Case Types',
|
|
148
|
+
description: 'Case Types are the life cycles, or units of work, that deliver a meaningful result to customers and users. Case Types are a part of the overall customer journey that achieves all of a subset of the required business outcomes.',
|
|
149
|
+
actionLabel: 'Add Case Type',
|
|
150
|
+
imageSrc: './build-live-data.svg'
|
|
146
151
|
}
|
|
147
152
|
},
|
|
148
153
|
{
|
|
149
154
|
id: 'liveData',
|
|
150
155
|
data: {
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
156
|
+
template: 'showcase',
|
|
157
|
+
title: 'Live Data',
|
|
158
|
+
description: 'Live Data allows users to quickly and easily define the data required to build the apps they need, and then access that data in their running application - all without having to worry about how and where the data is actually stored and accessed.',
|
|
159
|
+
actionLabel: 'Add Data Type',
|
|
160
|
+
imageSrc: './build-live-data.svg'
|
|
154
161
|
}
|
|
155
162
|
},
|
|
156
163
|
{
|
|
157
164
|
id: 'insights',
|
|
158
165
|
data: {
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
166
|
+
template: 'showcase',
|
|
167
|
+
title: 'Insights',
|
|
168
|
+
description: 'Insights allow you to easily explore and analyze data in your application. You can use Insights to transform data queries into tables or visualizations that you can share between users.',
|
|
169
|
+
actionLabel: 'Add Insight',
|
|
170
|
+
imageSrc: './build-live-data.svg'
|
|
162
171
|
}
|
|
163
172
|
},
|
|
164
173
|
{
|
|
165
174
|
id: 'personas',
|
|
166
175
|
data: {
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
176
|
+
template: 'showcase',
|
|
177
|
+
title: 'Personas',
|
|
178
|
+
description: 'A Persona is the business representation of a role. Personas are made up of a collection of permissions, portals and work queues that define the user experience of an application.',
|
|
179
|
+
actionLabel: 'Add Persona',
|
|
180
|
+
imageSrc: './build-live-data.svg'
|
|
170
181
|
}
|
|
171
182
|
},
|
|
172
183
|
{
|
|
173
184
|
id: 'appSettings',
|
|
174
185
|
data: {
|
|
175
|
-
|
|
186
|
+
template: 'tabbed',
|
|
187
|
+
title: 'App Settings',
|
|
176
188
|
breadcrumbsPath: 'Home',
|
|
177
|
-
tabs: ['App
|
|
189
|
+
tabs: ['App Settings']
|
|
178
190
|
}
|
|
179
191
|
},
|
|
180
192
|
{
|
|
181
193
|
id: 'appLogic',
|
|
182
194
|
data: {
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
195
|
+
template: 'tabbed',
|
|
196
|
+
title: 'App Logic',
|
|
197
|
+
breadcrumbsPath: 'Home, Rules Library',
|
|
198
|
+
tabs: ['Rules Library', 'App Logic']
|
|
186
199
|
}
|
|
187
200
|
},
|
|
188
201
|
{
|
|
189
202
|
id: 'application',
|
|
190
203
|
data: {
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
204
|
+
template: 'tabbed',
|
|
205
|
+
title: 'Application',
|
|
206
|
+
breadcrumbsPath: 'Home, Rules Library',
|
|
207
|
+
tabs: ['Rules Library', 'Application']
|
|
194
208
|
}
|
|
195
209
|
},
|
|
196
210
|
{
|
|
197
211
|
id: 'data',
|
|
198
212
|
data: {
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
213
|
+
template: 'tabbed',
|
|
214
|
+
title: 'Data',
|
|
215
|
+
breadcrumbsPath: 'Home, Rules Library',
|
|
216
|
+
tabs: ['Rules Library', 'Data']
|
|
202
217
|
}
|
|
203
218
|
},
|
|
204
219
|
{
|
|
205
220
|
id: 'emailAccounts',
|
|
206
221
|
data: {
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
222
|
+
template: 'tabbed',
|
|
223
|
+
title: 'Email Accounts',
|
|
224
|
+
breadcrumbsPath: 'Home, Rules Library, Integration',
|
|
225
|
+
tabs: ['Rules Library', 'Integration', 'Email Accounts']
|
|
210
226
|
}
|
|
211
227
|
},
|
|
212
228
|
{
|
|
213
229
|
id: 'integrationSystems',
|
|
214
230
|
data: {
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
231
|
+
template: 'tabbed',
|
|
232
|
+
title: 'Integration Systems',
|
|
233
|
+
breadcrumbsPath: 'Home, Rules Library, Integration',
|
|
234
|
+
tabs: ['Rules Library', 'Integration', 'Integration Systems']
|
|
218
235
|
}
|
|
219
236
|
},
|
|
220
237
|
{
|
|
221
238
|
id: 'jsonTransforms',
|
|
222
239
|
data: {
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
240
|
+
template: 'tabbed',
|
|
241
|
+
title: 'JSON Transforms',
|
|
242
|
+
breadcrumbsPath: 'Home, Rules Library, Integration',
|
|
243
|
+
tabs: ['Rules Library', 'Integration', 'JSON Transforms']
|
|
226
244
|
}
|
|
227
245
|
},
|
|
228
246
|
{
|
|
229
247
|
id: 'restConnectors',
|
|
230
248
|
data: {
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
249
|
+
template: 'tabbed',
|
|
250
|
+
title: 'REST Connectors',
|
|
251
|
+
breadcrumbsPath: 'Home, Rules Library, Integration',
|
|
252
|
+
tabs: ['Rules Library', 'Integration', 'REST Connectors']
|
|
234
253
|
}
|
|
235
254
|
},
|
|
236
255
|
{
|
|
237
256
|
id: 'process-actions',
|
|
238
257
|
data: {
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
258
|
+
template: 'tabbed',
|
|
259
|
+
title: 'Actions',
|
|
260
|
+
breadcrumbsPath: 'Home, Rules Library, Process',
|
|
261
|
+
tabs: ['Rules Library', 'Process', 'Actions']
|
|
242
262
|
}
|
|
243
263
|
},
|
|
244
264
|
{
|
|
245
265
|
id: 'process-caseStatus',
|
|
246
266
|
data: {
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
267
|
+
template: 'tabbed',
|
|
268
|
+
title: 'Case Status',
|
|
269
|
+
breadcrumbsPath: 'Home, Rules Library, Process',
|
|
270
|
+
tabs: ['Rules Library', 'Process', 'Case Status']
|
|
250
271
|
}
|
|
251
272
|
},
|
|
252
273
|
{
|
|
253
274
|
id: 'process-caseTypes',
|
|
254
275
|
data: {
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
276
|
+
template: 'tabbed',
|
|
277
|
+
title: 'Case Types',
|
|
278
|
+
breadcrumbsPath: 'Home, Rules Library, Process',
|
|
279
|
+
tabs: ['Rules Library', 'Process', 'Case Types']
|
|
258
280
|
}
|
|
259
281
|
},
|
|
260
282
|
{
|
|
261
283
|
id: 'process-processes',
|
|
262
284
|
data: {
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
285
|
+
template: 'tabbed',
|
|
286
|
+
title: 'Processes',
|
|
287
|
+
breadcrumbsPath: 'Home, Rules Library, Process',
|
|
288
|
+
tabs: ['Rules Library', 'Process', 'Processes']
|
|
266
289
|
}
|
|
267
290
|
},
|
|
268
291
|
{
|
|
269
292
|
id: 'process-SLAs',
|
|
270
293
|
data: {
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
294
|
+
template: 'tabbed',
|
|
295
|
+
title: 'SLAs',
|
|
296
|
+
breadcrumbsPath: 'Home, Rules Library, Process',
|
|
297
|
+
tabs: ['Rules Library', 'Process', 'SLAs']
|
|
274
298
|
}
|
|
275
299
|
},
|
|
276
300
|
{
|
|
277
301
|
id: 'process-stages',
|
|
278
302
|
data: {
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
303
|
+
template: 'tabbed',
|
|
304
|
+
title: 'Stages',
|
|
305
|
+
breadcrumbsPath: 'Home, Rules Library, Process',
|
|
306
|
+
tabs: ['Rules Library', 'Process', 'Stages']
|
|
282
307
|
}
|
|
283
308
|
},
|
|
284
309
|
{
|
|
285
310
|
id: 'process-workQueues',
|
|
286
311
|
data: {
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
312
|
+
template: 'tabbed',
|
|
313
|
+
title: 'Work Queues',
|
|
314
|
+
breadcrumbsPath: 'Home, Rules Library, Process',
|
|
315
|
+
tabs: ['Rules Library', 'Process', 'Work Queues']
|
|
290
316
|
}
|
|
291
317
|
},
|
|
292
318
|
{
|
|
293
319
|
id: 'accessConditions',
|
|
294
320
|
data: {
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
321
|
+
template: 'tabbed',
|
|
322
|
+
title: 'Access Conditions',
|
|
323
|
+
breadcrumbsPath: 'Home, Rules Library, Security',
|
|
324
|
+
tabs: ['Rules Library', 'Security', 'Access Conditions']
|
|
298
325
|
}
|
|
299
326
|
},
|
|
300
327
|
{
|
|
301
328
|
id: 'accessGroups',
|
|
302
329
|
data: {
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
330
|
+
template: 'tabbed',
|
|
331
|
+
title: 'Access Groups',
|
|
332
|
+
breadcrumbsPath: 'Home, Rules Library, Security',
|
|
333
|
+
tabs: ['Rules Library', 'Security', 'Access Groups']
|
|
306
334
|
}
|
|
307
335
|
},
|
|
308
336
|
{
|
|
309
337
|
id: 'accessPolicies',
|
|
310
338
|
data: {
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
339
|
+
template: 'tabbed',
|
|
340
|
+
title: 'Access Policies',
|
|
341
|
+
breadcrumbsPath: 'Home, Rules Library, Security',
|
|
342
|
+
tabs: ['Rules Library', 'Security', 'Access Policies']
|
|
314
343
|
}
|
|
315
344
|
},
|
|
316
345
|
{
|
|
317
346
|
id: 'accessRoles',
|
|
318
347
|
data: {
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
348
|
+
template: 'tabbed',
|
|
349
|
+
title: 'Access Roles',
|
|
350
|
+
breadcrumbsPath: 'Home, Rules Library, Security',
|
|
351
|
+
tabs: ['Rules Library', 'Security', 'Access Roles']
|
|
322
352
|
}
|
|
323
353
|
},
|
|
324
354
|
{
|
|
325
355
|
id: 'authProfiles',
|
|
326
356
|
data: {
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
357
|
+
template: 'tabbed',
|
|
358
|
+
title: 'Authentication Profiles',
|
|
359
|
+
breadcrumbsPath: 'Home, Rules Library, Security, Authentication',
|
|
360
|
+
tabs: ['Rules Library', 'Security', 'Authentication', 'Authentication Profiles']
|
|
330
361
|
}
|
|
331
362
|
},
|
|
332
363
|
{
|
|
333
364
|
id: 'systemAdmin',
|
|
334
365
|
data: {
|
|
335
|
-
|
|
366
|
+
template: 'tabbed',
|
|
367
|
+
title: 'System Admin',
|
|
336
368
|
breadcrumbsPath: 'Home',
|
|
337
|
-
tabs: ['Rules
|
|
369
|
+
tabs: ['Rules Library', 'System Admin']
|
|
338
370
|
}
|
|
339
371
|
},
|
|
340
372
|
{
|
|
341
373
|
id: 'userInterface',
|
|
342
374
|
data: {
|
|
343
|
-
|
|
375
|
+
template: 'tabbed',
|
|
376
|
+
title: 'User Interface',
|
|
344
377
|
breadcrumbsPath: 'Home',
|
|
345
|
-
tabs: ['Rules
|
|
378
|
+
tabs: ['Rules Library', 'User Interface']
|
|
346
379
|
}
|
|
347
380
|
}
|
|
348
381
|
];
|
|
349
|
-
export const TabbedPageComp = (
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
tabs: pageContent.data.tabs.map((name, i) => {
|
|
382
|
+
export const TabbedPageComp = ({ pageContent, showBreadcrumbs }) => {
|
|
383
|
+
return (<TabbedPage path={getPath({ showBreadcrumbs, pageContent })} title={pageContent.title} tabs={{
|
|
384
|
+
tabs: pageContent.tabs.map((name, i) => {
|
|
353
385
|
const id = `${i + 1}`;
|
|
354
386
|
return {
|
|
355
387
|
id,
|
|
@@ -362,4 +394,15 @@ export const TabbedPageComp = (args) => {
|
|
|
362
394
|
type: 'horizontal'
|
|
363
395
|
}}/>);
|
|
364
396
|
};
|
|
397
|
+
export const ShowcasePageComp = ({ title, description, actionLabel, imageSrc }) => {
|
|
398
|
+
return (<ShowcasePage title={title} description={description} image={{
|
|
399
|
+
src: imageSrc,
|
|
400
|
+
alt: 'Image for the banner'
|
|
401
|
+
}} actions={[
|
|
402
|
+
{
|
|
403
|
+
label: actionLabel,
|
|
404
|
+
onClick: () => { }
|
|
405
|
+
}
|
|
406
|
+
]} link={{ label: 'Learn more', href: '#' }} content={<TableDemo title={title}/>}/>);
|
|
407
|
+
};
|
|
365
408
|
//# sourceMappingURL=AppShell.mocks.jsx.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AppShell.mocks.jsx","sourceRoot":"","sources":["../../../src/build/AppShell/AppShell.mocks.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,UAAU,EAAE,IAAI,EAAE,MAAM,yBAAyB,CAAC;AAkB3D,MAAM,CAAC,MAAM,OAAO,GAAG,CAAC,IAA0B,EAAE,EAAE;IACpD,MAAM,EACJ,eAAe,EACf,WAAW,EAAE,EACX,IAAI,EAAE,EAAE,SAAS,EAAE,eAAe,EAAE,EACrC,EACF,GAAG,IAAI,CAAC;IAET,IAAI,eAAe,EAAE;QACnB,MAAM,IAAI,GAAG,SAAS,KAAK,UAAU,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,eAAe,CAAC;QACjE,OAAO,IAAI;YACT,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC,KAAa,EAAE,CAAC,EAAE,EAAE;gBAEvC,OAAO;oBACL,EAAE,EAAE,KAAK;oBACT,OAAO,EAAE,KAAK;oBACd,IAAI,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,IAAK,KAAa,CAAC,OAAO,CAAC,KAAK,EAAE,GAAG,CAAC,EAAE,CAAC,CAAC,CAAC,SAAS;iBACnE,CAAC;YACJ,CAAC,CAAC;YACJ,CAAC,CAAC,EAAE,CAAC;KACR;AACH,CAAC,CAAC;AAEF,MAA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AAE,gBAAgB,CAAC;SAC1C;KACF;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,cAAc,GAA6B,CAAC,IAA0B,EAAE,EAAE;IACrF,MAAM,EAAE,WAAW,EAAE,eAAe,EAAE,GAAG,IAAI,CAAC;IAE9C,OAAO,CACL,CAAC,UAAU,CACT,IAAI,CAAC,CAAC,OAAO,CAAC,EAAE,eAAe,EAAE,WAAW,EAAE,CAAC,CAAC,CAChD,KAAK,CAAC,CAAC,WAAW,CAAC,IAAI,CAAC,SAAS,CAAC,CAClC,IAAI,CAAC,CAAC;YACJ,IAAI,EAAE,WAAW,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,CAAC,EAAE,EAAE;gBAC1C,MAAM,EAAE,GAAG,GAAG,CAAC,GAAG,CAAC,EAAE,CAAC;gBACtB,OAAO;oBACL,EAAE;oBACF,IAAI;oBACJ,OAAO,EAAE,CACP,CAAC,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE,CAAC,KAAK,CACzB;gBAAA,CAAC,OAAO,EAAE,UAAU,CACtB;cAAA,EAAE,IAAI,CAAC,CACR;iBACF,CAAC;YACJ,CAAC,CAAC;YACF,IAAI,EAAE,YAAY;SACnB,CAAC,EACF,CACH,CAAC;AACJ,CAAC,CAAC","sourcesContent":["import { FC } from 'react';\n\nimport { TabbedPage, Text } from '@pega/cosmos-react-core';\nimport { NavProps } from '@pega/cosmos-react-build';\n\n// cSpell:words SSOT\nexport interface TabbedPageStoryProps {\n pageContent: PageContentProps;\n showBreadcrumbs: boolean;\n}\n\nexport interface PageContentProps {\n id: string;\n data: {\n pageTitle: string;\n breadcrumbsPath: string;\n tabs: string[];\n };\n}\n\nexport const getPath = (args: TabbedPageStoryProps) => {\n const {\n showBreadcrumbs,\n pageContent: {\n data: { pageTitle, breadcrumbsPath }\n }\n } = args;\n\n if (showBreadcrumbs) {\n const path = pageTitle === 'Overview' ? 'Home' : breadcrumbsPath;\n return path\n ? path.split(',').map((crumb: string, i) => {\n // FIXME: https://stackoverflow.com/questions/63616486/property-replaceall-does-not-exist-on-type-string\n return {\n id: crumb,\n primary: crumb,\n href: i < 3 ? `#${(crumb as any).replace(/\\s/g, '-')}` : undefined\n };\n })\n : [];\n }\n};\n\nexport const defaultNavItems: NavProps['items'] = [\n {\n id: 'overview',\n label: 'Overview',\n href: '#overview',\n icon: 'home-solid'\n },\n {\n id: 'caseTypes',\n label: 'Case types',\n icon: 'chevron-solid',\n href: '#caseTypes'\n },\n {\n id: 'liveData',\n label: 'Live data',\n href: '#liveData',\n icon: 'disc-stack-solid'\n },\n {\n id: 'insights',\n label: 'Insights',\n href: '#insights',\n icon: 'search-analytics-solid'\n },\n {\n id: 'personas',\n label: 'Personas',\n href: '#personas',\n icon: 'users-solid'\n },\n {\n id: 'appSettings',\n label: 'App settings',\n href: '#appSettings',\n icon: 'gear-solid'\n },\n {\n id: 'rulesLibrary',\n label: 'Rules library',\n icon: 'book-solid',\n items: [\n { id: 'appLogic', label: 'App logic', href: '#appLogic' },\n { id: 'application', label: 'Application', href: '#application' },\n { id: 'data', label: 'Data', href: '#data' },\n {\n id: 'integration',\n label: 'Integration',\n items: [\n { id: 'emailAccounts', label: 'Email accounts', href: '#emailAccounts' },\n {\n id: 'integrationSystems',\n label: 'Integration systems',\n href: '#integrationSystems'\n },\n {\n id: 'jsonTransforms',\n label: 'JSON transforms',\n href: '#jsonTransforms'\n },\n {\n id: 'restConnectors',\n label: 'REST connectors',\n href: '#restConnectors'\n }\n ]\n },\n {\n id: 'process',\n label: 'Process',\n items: [\n { id: 'process-actions', label: 'Actions', href: '#actions' },\n { id: 'process-caseStatus', label: 'Case status', href: '#caseStatus' },\n { id: 'process-caseTypes', label: 'Case types', href: '#caseTypes' },\n { id: 'process-processes', label: 'Processes', href: '#processes' },\n { id: 'process-SLAs', label: 'SLAs', href: '#SLAs' },\n { id: 'process-stages', label: 'Stages', href: '#stages' },\n { id: 'process-workQueues', label: 'Work queues', href: '#workQueues' }\n ]\n },\n {\n id: 'security',\n label: 'Security',\n items: [\n {\n id: 'accessConditions',\n label: 'Access conditions',\n href: '#accessConditions'\n },\n { id: 'accessGroups', label: 'Access groups', href: '#accessGroups' },\n {\n id: 'accessPolicies',\n label: 'Access policies',\n href: '#accessPolicies'\n },\n { id: 'accessRoles', label: 'Access roles', href: '#accessRoles' },\n {\n id: 'authentication',\n label: 'Authentication',\n items: [\n {\n id: 'authProfiles',\n label: 'Authentication profiles',\n href: '#authProfiles'\n }\n ]\n }\n ]\n },\n { id: 'systemAdmin', label: 'System admin', href: '#systemAdmin' },\n { id: 'userInterface', label: 'User interface', href: '#userInterface' }\n ]\n }\n];\n\nexport const contents = [\n {\n id: 'overview',\n data: {\n pageTitle: 'Overview',\n breadcrumbsPath: 'Home',\n tabs: ['Application']\n }\n },\n {\n id: 'caseTypes',\n data: {\n pageTitle: 'Case types',\n breadcrumbsPath: 'Home',\n tabs: ['Case types']\n }\n },\n {\n id: 'liveData',\n data: {\n pageTitle: 'Live data',\n breadcrumbsPath: 'Home',\n tabs: ['Live data']\n }\n },\n {\n id: 'insights',\n data: {\n pageTitle: 'Insights',\n breadcrumbsPath: 'Home',\n tabs: ['Insights']\n }\n },\n {\n id: 'personas',\n data: {\n pageTitle: 'Personas',\n breadcrumbsPath: 'Home',\n tabs: ['Personas']\n }\n },\n {\n id: 'appSettings',\n data: {\n pageTitle: 'App settings',\n breadcrumbsPath: 'Home',\n tabs: ['App settings']\n }\n },\n {\n id: 'appLogic',\n data: {\n pageTitle: 'App logic',\n breadcrumbsPath: 'Home, Rules library',\n tabs: ['Rules library', 'App logic']\n }\n },\n {\n id: 'application',\n data: {\n pageTitle: 'Application',\n breadcrumbsPath: 'Home, Rules library',\n tabs: ['Rules library', 'Application']\n }\n },\n {\n id: 'data',\n data: {\n pageTitle: 'Data',\n breadcrumbsPath: 'Home, Rules library',\n tabs: ['Rules library', 'Data']\n }\n },\n {\n id: 'emailAccounts',\n data: {\n pageTitle: 'Email accounts',\n breadcrumbsPath: 'Home, Rules library, Integration',\n tabs: ['Rules library', 'Integration', 'Email accounts']\n }\n },\n {\n id: 'integrationSystems',\n data: {\n pageTitle: 'Integration systems',\n breadcrumbsPath: 'Home, Rules library, Integration',\n tabs: ['Rules library', 'Integration', 'Integration systems']\n }\n },\n {\n id: 'jsonTransforms',\n data: {\n pageTitle: 'JSON transforms',\n breadcrumbsPath: 'Home, Rules library, Integration',\n tabs: ['Rules library', 'Integration', 'JSON transforms']\n }\n },\n {\n id: 'restConnectors',\n data: {\n pageTitle: 'REST connectors',\n breadcrumbsPath: 'Home, Rules library, Integration',\n tabs: ['Rules library', 'Integration', 'REST connectors']\n }\n },\n {\n id: 'process-actions',\n data: {\n pageTitle: 'Actions',\n breadcrumbsPath: 'Home, Rules library, Process',\n tabs: ['Rules library', 'Process', 'Actions']\n }\n },\n {\n id: 'process-caseStatus',\n data: {\n pageTitle: 'Case status',\n breadcrumbsPath: 'Home, Rules library, Process',\n tabs: ['Rules library', 'Process', 'Case status']\n }\n },\n {\n id: 'process-caseTypes',\n data: {\n pageTitle: 'Case types',\n breadcrumbsPath: 'Home, Rules library, Process',\n tabs: ['Rules library', 'Process', 'Case types']\n }\n },\n {\n id: 'process-processes',\n data: {\n pageTitle: 'Processes',\n breadcrumbsPath: 'Home, Rules library, Process',\n tabs: ['Rules library', 'Process', 'Processes']\n }\n },\n {\n id: 'process-SLAs',\n data: {\n pageTitle: 'SLAs',\n breadcrumbsPath: 'Home, Rules library, Process',\n tabs: ['Rules library', 'Process', 'SLAs']\n }\n },\n\n {\n id: 'process-stages',\n data: {\n pageTitle: 'Stages',\n breadcrumbsPath: 'Home, Rules library, Process',\n tabs: ['Rules library', 'Process', 'Stages']\n }\n },\n {\n id: 'process-workQueues',\n data: {\n pageTitle: 'Work queues',\n breadcrumbsPath: 'Home, Rules library, Process',\n tabs: ['Rules library', 'Process', 'Work queues']\n }\n },\n {\n id: 'accessConditions',\n data: {\n pageTitle: 'Access conditions',\n breadcrumbsPath: 'Home, Rules library, Security',\n tabs: ['Rules library', 'Security', 'Access conditions']\n }\n },\n {\n id: 'accessGroups',\n data: {\n pageTitle: 'Access groups',\n breadcrumbsPath: 'Home, Rules library, Security',\n tabs: ['Rules library', 'Security', 'Access groups']\n }\n },\n {\n id: 'accessPolicies',\n data: {\n pageTitle: 'Access policies',\n breadcrumbsPath: 'Home, Rules library, Security',\n tabs: ['Rules library', 'Security', 'Access policies']\n }\n },\n {\n id: 'accessRoles',\n data: {\n pageTitle: 'Access roles',\n breadcrumbsPath: 'Home, Rules library, Security',\n tabs: ['Rules library', 'Security', 'Access roles']\n }\n },\n {\n id: 'authProfiles',\n data: {\n pageTitle: 'Authentication profiles',\n breadcrumbsPath: 'Home, Rules library, Security, Authentication',\n tabs: ['Rules library', 'Security', 'Authentication', 'Authentication profiles']\n }\n },\n {\n id: 'systemAdmin',\n data: {\n pageTitle: 'System admin',\n breadcrumbsPath: 'Home',\n tabs: ['Rules library', 'System admin']\n }\n },\n {\n id: 'userInterface',\n data: {\n pageTitle: 'User interface',\n breadcrumbsPath: 'Home',\n tabs: ['Rules library', 'User interface']\n }\n }\n];\n\nexport const TabbedPageComp: FC<TabbedPageStoryProps> = (args: TabbedPageStoryProps) => {\n const { pageContent, showBreadcrumbs } = args;\n\n return (\n <TabbedPage\n path={getPath({ showBreadcrumbs, pageContent })}\n title={pageContent.data.pageTitle}\n tabs={{\n tabs: pageContent.data.tabs.map((name, i) => {\n const id = `${i + 1}`;\n return {\n id,\n name,\n content: (\n <Text variant='h1' as='div'>\n {`Tab ${id} content`}\n </Text>\n )\n };\n }),\n type: 'horizontal'\n }}\n />\n );\n};\n"]}
|
|
1
|
+
{"version":3,"file":"AppShell.mocks.jsx","sourceRoot":"","sources":["../../../src/build/AppShell/AppShell.mocks.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,UAAU,EAAE,IAAI,EAAE,MAAM,yBAAyB,CAAC;AAC3D,OAAO,EAAY,YAAY,EAAE,M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,CACb,WAAW,CAAC,CAAC,WAAW,CAAC,CACzB,KAAK,CAAC,CAAC;YACL,GAAG,EAAE,QAAQ;YACb,GAAG,EAAE,sBAAsB;SAC5B,CAAC,CACF,OAAO,CAAC,CAAC;YACP;gBACE,KAAK,EAAE,WAAW;gBAClB,OAAO,EAAE,GAAG,EAAE,GAAE,CAAC;aAClB;SACF,CAAC,CACF,IAAI,CAAC,CAAC,EAAE,KAAK,EAAE,YAAY,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC,CACzC,OAAO,CAAC,CAAC,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC,KAAK,CAAC,EAAG,CAAC,EACrC,CACH,CAAC;AACJ,CAAC,CAAC","sourcesContent":["import { FC } from 'react';\n\nimport { TabbedPage, Text } from '@pega/cosmos-react-core';\nimport { NavProps, ShowcasePage } from '@pega/cosmos-react-build';\n\nimport { TableDemo } from '../../core/Table/Table.stories';\n\n// cSpell:words SSOT\nexport interface TabbedPageStoryProps {\n pageContent: {\n template: 'tabbed';\n title: string;\n breadcrumbsPath: string;\n tabs: string[];\n };\n showBreadcrumbs: boolean;\n}\n\nexport interface ShowcasePageStoryProps {\n template: 'showcase';\n title: string;\n description: string;\n actionLabel: string;\n imageSrc: string;\n}\n\nexport interface PageContentProps {\n id: string;\n data: TabbedPageStoryProps['pageContent'] | ShowcasePageStoryProps;\n}\n\nexport const getPath = (args: TabbedPageStoryProps) => {\n const {\n showBreadcrumbs,\n pageContent: { title, breadcrumbsPath }\n } = args;\n\n if (showBreadcrumbs) {\n const path = title === 'Overview' ? 'Home' : breadcrumbsPath;\n return path\n ? path.split(',').map((crumb: string, i) => {\n // FIXME: https://stackoverflow.com/questions/63616486/property-replaceall-does-not-exist-on-type-string\n return {\n id: crumb,\n primary: crumb,\n href: i < 3 ? `#${(crumb as any).replace(/\\s/g, '-')}` : undefined\n };\n })\n : [];\n }\n};\n\nexport const defaultNavItems: NavProps['items'] = [\n {\n id: 'overview',\n label: 'Overview',\n href: '#overview',\n icon: 'home-solid'\n },\n {\n id: 'caseTypes',\n label: 'Case Types',\n icon: 'chevron-solid',\n href: '#caseTypes'\n },\n {\n id: 'liveData',\n label: 'Live Data',\n href: '#liveData',\n icon: 'disc-stack-solid'\n },\n {\n id: 'insights',\n label: 'Insights',\n href: '#insights',\n icon: 'search-analytics-solid'\n },\n {\n id: 'personas',\n label: 'Personas',\n href: '#personas',\n icon: 'users-solid'\n },\n {\n id: 'appSettings',\n label: 'App Settings',\n href: '#appSettings',\n icon: 'gear-solid'\n },\n {\n id: 'rulesLibrary',\n label: 'Rules Library',\n icon: 'book-solid',\n items: [\n { id: 'appLogic', label: 'App Logic', href: '#appLogic' },\n { id: 'application', label: 'Application', href: '#application' },\n { id: 'data', label: 'Data', href: '#data' },\n {\n id: 'integration',\n label: 'Integration',\n items: [\n { id: 'emailAccounts', label: 'Email Accounts', href: '#emailAccounts' },\n {\n id: 'integrationSystems',\n label: 'Integration Systems',\n href: '#integrationSystems'\n },\n {\n id: 'jsonTransforms',\n label: 'JSON Transforms',\n href: '#jsonTransforms'\n },\n {\n id: 'restConnectors',\n label: 'REST Connectors',\n href: '#restConnectors'\n }\n ]\n },\n {\n id: 'process',\n label: 'Process',\n items: [\n { id: 'process-actions', label: 'Actions', href: '#actions' },\n { id: 'process-caseStatus', label: 'Case Status', href: '#caseStatus' },\n { id: 'process-caseTypes', label: 'Case Types', href: '#caseTypes' },\n { id: 'process-processes', label: 'Processes', href: '#processes' },\n { id: 'process-SLAs', label: 'SLAs', href: '#SLAs' },\n { id: 'process-stages', label: 'Stages', href: '#stages' },\n { id: 'process-workQueues', label: 'Work Queues', href: '#workQueues' }\n ]\n },\n {\n id: 'security',\n label: 'Security',\n items: [\n {\n id: 'accessConditions',\n label: 'Access Conditions',\n href: '#accessConditions'\n },\n { id: 'accessGroups', label: 'Access Groups', href: '#accessGroups' },\n {\n id: 'accessPolicies',\n label: 'Access Policies',\n href: '#accessPolicies'\n },\n { id: 'accessRoles', label: 'Access Roles', href: '#accessRoles' },\n {\n id: 'authentication',\n label: 'Authentication',\n items: [\n {\n id: 'authProfiles',\n label: 'Authentication Profiles',\n href: '#authProfiles'\n }\n ]\n }\n ]\n },\n { id: 'systemAdmin', label: 'System Admin', href: '#systemAdmin' },\n { id: 'userInterface', label: 'User Interface', href: '#userInterface' }\n ]\n }\n];\n\nexport const contents: PageContentProps[] = [\n {\n id: 'overview',\n data: {\n template: 'tabbed',\n title: 'Overview',\n breadcrumbsPath: 'Home',\n tabs: ['Application']\n }\n },\n {\n id: 'caseTypes',\n data: {\n template: 'showcase',\n title: 'Case Types',\n description:\n 'Case Types are the life cycles, or units of work, that deliver a meaningful result to customers and users. Case Types are a part of the overall customer journey that achieves all of a subset of the required business outcomes.',\n actionLabel: 'Add Case Type',\n imageSrc: './build-live-data.svg'\n }\n },\n {\n id: 'liveData',\n data: {\n template: 'showcase',\n title: 'Live Data',\n description:\n 'Live Data allows users to quickly and easily define the data required to build the apps they need, and then access that data in their running application - all without having to worry about how and where the data is actually stored and accessed.',\n actionLabel: 'Add Data Type',\n imageSrc: './build-live-data.svg'\n }\n },\n {\n id: 'insights',\n data: {\n template: 'showcase',\n title: 'Insights',\n description:\n 'Insights allow you to easily explore and analyze data in your application. You can use Insights to transform data queries into tables or visualizations that you can share between users.',\n actionLabel: 'Add Insight',\n imageSrc: './build-live-data.svg'\n }\n },\n {\n id: 'personas',\n data: {\n template: 'showcase',\n title: 'Personas',\n description:\n 'A Persona is the business representation of a role. Personas are made up of a collection of permissions, portals and work queues that define the user experience of an application.',\n actionLabel: 'Add Persona',\n imageSrc: './build-live-data.svg'\n }\n },\n {\n id: 'appSettings',\n data: {\n template: 'tabbed',\n title: 'App Settings',\n breadcrumbsPath: 'Home',\n tabs: ['App Settings']\n }\n },\n {\n id: 'appLogic',\n data: {\n template: 'tabbed',\n title: 'App Logic',\n breadcrumbsPath: 'Home, Rules Library',\n tabs: ['Rules Library', 'App Logic']\n }\n },\n {\n id: 'application',\n data: {\n template: 'tabbed',\n title: 'Application',\n breadcrumbsPath: 'Home, Rules Library',\n tabs: ['Rules Library', 'Application']\n }\n },\n {\n id: 'data',\n data: {\n template: 'tabbed',\n title: 'Data',\n breadcrumbsPath: 'Home, Rules Library',\n tabs: ['Rules Library', 'Data']\n }\n },\n {\n id: 'emailAccounts',\n data: {\n template: 'tabbed',\n title: 'Email Accounts',\n breadcrumbsPath: 'Home, Rules Library, Integration',\n tabs: ['Rules Library', 'Integration', 'Email Accounts']\n }\n },\n {\n id: 'integrationSystems',\n data: {\n template: 'tabbed',\n title: 'Integration Systems',\n breadcrumbsPath: 'Home, Rules Library, Integration',\n tabs: ['Rules Library', 'Integration', 'Integration Systems']\n }\n },\n {\n id: 'jsonTransforms',\n data: {\n template: 'tabbed',\n title: 'JSON Transforms',\n breadcrumbsPath: 'Home, Rules Library, Integration',\n tabs: ['Rules Library', 'Integration', 'JSON Transforms']\n }\n },\n {\n id: 'restConnectors',\n data: {\n template: 'tabbed',\n title: 'REST Connectors',\n breadcrumbsPath: 'Home, Rules Library, Integration',\n tabs: ['Rules Library', 'Integration', 'REST Connectors']\n }\n },\n {\n id: 'process-actions',\n data: {\n template: 'tabbed',\n title: 'Actions',\n breadcrumbsPath: 'Home, Rules Library, Process',\n tabs: ['Rules Library', 'Process', 'Actions']\n }\n },\n {\n id: 'process-caseStatus',\n data: {\n template: 'tabbed',\n title: 'Case Status',\n breadcrumbsPath: 'Home, Rules Library, Process',\n tabs: ['Rules Library', 'Process', 'Case Status']\n }\n },\n {\n id: 'process-caseTypes',\n data: {\n template: 'tabbed',\n title: 'Case Types',\n breadcrumbsPath: 'Home, Rules Library, Process',\n tabs: ['Rules Library', 'Process', 'Case Types']\n }\n },\n {\n id: 'process-processes',\n data: {\n template: 'tabbed',\n title: 'Processes',\n breadcrumbsPath: 'Home, Rules Library, Process',\n tabs: ['Rules Library', 'Process', 'Processes']\n }\n },\n {\n id: 'process-SLAs',\n data: {\n template: 'tabbed',\n title: 'SLAs',\n breadcrumbsPath: 'Home, Rules Library, Process',\n tabs: ['Rules Library', 'Process', 'SLAs']\n }\n },\n\n {\n id: 'process-stages',\n data: {\n template: 'tabbed',\n title: 'Stages',\n breadcrumbsPath: 'Home, Rules Library, Process',\n tabs: ['Rules Library', 'Process', 'Stages']\n }\n },\n {\n id: 'process-workQueues',\n data: {\n template: 'tabbed',\n title: 'Work Queues',\n breadcrumbsPath: 'Home, Rules Library, Process',\n tabs: ['Rules Library', 'Process', 'Work Queues']\n }\n },\n {\n id: 'accessConditions',\n data: {\n template: 'tabbed',\n title: 'Access Conditions',\n breadcrumbsPath: 'Home, Rules Library, Security',\n tabs: ['Rules Library', 'Security', 'Access Conditions']\n }\n },\n {\n id: 'accessGroups',\n data: {\n template: 'tabbed',\n title: 'Access Groups',\n breadcrumbsPath: 'Home, Rules Library, Security',\n tabs: ['Rules Library', 'Security', 'Access Groups']\n }\n },\n {\n id: 'accessPolicies',\n data: {\n template: 'tabbed',\n title: 'Access Policies',\n breadcrumbsPath: 'Home, Rules Library, Security',\n tabs: ['Rules Library', 'Security', 'Access Policies']\n }\n },\n {\n id: 'accessRoles',\n data: {\n template: 'tabbed',\n title: 'Access Roles',\n breadcrumbsPath: 'Home, Rules Library, Security',\n tabs: ['Rules Library', 'Security', 'Access Roles']\n }\n },\n {\n id: 'authProfiles',\n data: {\n template: 'tabbed',\n title: 'Authentication Profiles',\n breadcrumbsPath: 'Home, Rules Library, Security, Authentication',\n tabs: ['Rules Library', 'Security', 'Authentication', 'Authentication Profiles']\n }\n },\n {\n id: 'systemAdmin',\n data: {\n template: 'tabbed',\n title: 'System Admin',\n breadcrumbsPath: 'Home',\n tabs: ['Rules Library', 'System Admin']\n }\n },\n {\n id: 'userInterface',\n data: {\n template: 'tabbed',\n title: 'User Interface',\n breadcrumbsPath: 'Home',\n tabs: ['Rules Library', 'User Interface']\n }\n }\n];\n\nexport const TabbedPageComp: FC<TabbedPageStoryProps> = ({\n pageContent,\n showBreadcrumbs\n}: TabbedPageStoryProps) => {\n return (\n <TabbedPage\n path={getPath({ showBreadcrumbs, pageContent })}\n title={pageContent.title}\n tabs={{\n tabs: pageContent.tabs.map((name, i) => {\n const id = `${i + 1}`;\n return {\n id,\n name,\n content: (\n <Text variant='h1' as='div'>\n {`Tab ${id} content`}\n </Text>\n )\n };\n }),\n type: 'horizontal'\n }}\n />\n );\n};\n\nexport const ShowcasePageComp: FC<ShowcasePageStoryProps> = ({\n title,\n description,\n actionLabel,\n imageSrc\n}: ShowcasePageStoryProps) => {\n return (\n <ShowcasePage\n title={title}\n description={description}\n image={{\n src: imageSrc,\n alt: 'Image for the banner'\n }}\n actions={[\n {\n label: actionLabel,\n onClick: () => {}\n }\n ]}\n link={{ label: 'Learn more', href: '#' }}\n content={<TableDemo title={title} />}\n />\n );\n};\n"]}
|