@pega/cosmos-react-demos 4.0.0-dev.8.4 → 4.0.0-dev.9.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (155) hide show
  1. package/jsx/build/AppShell/AppShell.mocks.d.ts +16 -14
  2. package/jsx/build/AppShell/AppShell.mocks.d.ts.map +1 -1
  3. package/jsx/build/AppShell/AppShell.mocks.jsx +144 -101
  4. package/jsx/build/AppShell/AppShell.mocks.jsx.map +1 -1
  5. package/jsx/build/AppShell/AppShell.stories.d.ts +1 -0
  6. package/jsx/build/AppShell/AppShell.stories.d.ts.map +1 -1
  7. package/jsx/build/AppShell/AppShell.stories.jsx +7 -3
  8. package/jsx/build/AppShell/AppShell.stories.jsx.map +1 -1
  9. package/jsx/build/ExpressionBuilder/ExpressionBuilder.mocks.d.ts +2 -0
  10. package/jsx/build/ExpressionBuilder/ExpressionBuilder.mocks.d.ts.map +1 -1
  11. package/jsx/build/ExpressionBuilder/ExpressionBuilder.mocks.js +23 -0
  12. package/jsx/build/ExpressionBuilder/ExpressionBuilder.mocks.js.map +1 -1
  13. package/jsx/build/ExpressionBuilder/ExpressionBuilder.stories.d.ts.map +1 -1
  14. package/jsx/build/ExpressionBuilder/ExpressionBuilder.stories.jsx +4 -4
  15. package/jsx/build/ExpressionBuilder/ExpressionBuilder.stories.jsx.map +1 -1
  16. package/jsx/build/PageBanner/PageBanner.stories.d.ts +15 -0
  17. package/jsx/build/PageBanner/PageBanner.stories.d.ts.map +1 -0
  18. package/jsx/build/PageBanner/PageBanner.stories.jsx +41 -0
  19. package/jsx/build/PageBanner/PageBanner.stories.jsx.map +1 -0
  20. package/jsx/build/PageTemplates/GalleryPage.stories.d.ts +7 -3
  21. package/jsx/build/PageTemplates/GalleryPage.stories.d.ts.map +1 -1
  22. package/jsx/build/PageTemplates/GalleryPage.stories.jsx +29 -19
  23. package/jsx/build/PageTemplates/GalleryPage.stories.jsx.map +1 -1
  24. package/jsx/build/PageTemplates/ShowcasePage.stories.d.ts +17 -0
  25. package/jsx/build/PageTemplates/ShowcasePage.stories.d.ts.map +1 -0
  26. package/jsx/build/PageTemplates/ShowcasePage.stories.jsx +42 -0
  27. package/jsx/build/PageTemplates/ShowcasePage.stories.jsx.map +1 -0
  28. package/jsx/condition-builder/ConditionBuilder/props.mock.js +4 -4
  29. package/jsx/condition-builder/ConditionBuilder/props.mock.js.map +1 -1
  30. package/jsx/core/AppShell/AppShell.mocks.jsx +1 -1
  31. package/jsx/core/AppShell/AppShell.mocks.jsx.map +1 -1
  32. package/jsx/core/AppShell/AppShell.stories.d.ts +1 -0
  33. package/jsx/core/AppShell/AppShell.stories.d.ts.map +1 -1
  34. package/jsx/core/AppShell/AppShell.stories.jsx +21 -6
  35. package/jsx/core/AppShell/AppShell.stories.jsx.map +1 -1
  36. package/jsx/core/Banner/Banner.stories.d.ts +1 -0
  37. package/jsx/core/Banner/Banner.stories.d.ts.map +1 -1
  38. package/jsx/core/Banner/Banner.stories.jsx +3 -3
  39. package/jsx/core/Banner/Banner.stories.jsx.map +1 -1
  40. package/jsx/cs/CSAppShell/CSAppShell.mocks.d.ts +1 -0
  41. package/jsx/cs/CSAppShell/CSAppShell.mocks.d.ts.map +1 -1
  42. package/jsx/cs/CSAppShell/CSAppShell.mocks.jsx +46 -1
  43. package/jsx/cs/CSAppShell/CSAppShell.mocks.jsx.map +1 -1
  44. package/jsx/cs/CSAppShell/CSAppShell.stories.d.ts.map +1 -1
  45. package/jsx/cs/CSAppShell/CSAppShell.stories.jsx +2 -2
  46. package/jsx/cs/CSAppShell/CSAppShell.stories.jsx.map +1 -1
  47. package/jsx/social/Chat/Chat.mocks.d.ts +2 -1
  48. package/jsx/social/Chat/Chat.mocks.d.ts.map +1 -1
  49. package/jsx/social/Chat/Chat.mocks.js +26 -0
  50. package/jsx/social/Chat/Chat.mocks.js.map +1 -1
  51. package/jsx/social/Chat/Chat.stories.d.ts +5 -2
  52. package/jsx/social/Chat/Chat.stories.d.ts.map +1 -1
  53. package/jsx/social/Chat/Chat.stories.jsx +35 -101
  54. package/jsx/social/Chat/Chat.stories.jsx.map +1 -1
  55. package/jsx/social/Email/Email.mocks.d.ts +49 -7
  56. package/jsx/social/Email/Email.mocks.d.ts.map +1 -1
  57. package/jsx/social/Email/Email.mocks.jsx +127 -15
  58. package/jsx/social/Email/Email.mocks.jsx.map +1 -1
  59. package/jsx/social/Email/Email.stories.d.ts +10 -0
  60. package/jsx/social/Email/Email.stories.d.ts.map +1 -1
  61. package/jsx/social/Email/Email.stories.jsx +129 -12
  62. package/jsx/social/Email/Email.stories.jsx.map +1 -1
  63. package/jsx/tools/DevTools/DevTools.stories.d.ts.map +1 -1
  64. package/jsx/tools/DevTools/DevTools.stories.jsx +2 -4
  65. package/jsx/tools/DevTools/DevTools.stories.jsx.map +1 -1
  66. package/jsx/tools/PreviewShell/PreviewShell.mocks.d.ts +3 -1
  67. package/jsx/tools/PreviewShell/PreviewShell.mocks.d.ts.map +1 -1
  68. package/jsx/tools/PreviewShell/PreviewShell.mocks.jsx +7 -4
  69. package/jsx/tools/PreviewShell/PreviewShell.mocks.jsx.map +1 -1
  70. package/jsx/tools/PreviewShell/PreviewShell.stories.d.ts.map +1 -1
  71. package/jsx/tools/PreviewShell/PreviewShell.stories.jsx +16 -12
  72. package/jsx/tools/PreviewShell/PreviewShell.stories.jsx.map +1 -1
  73. package/jsx/work/Stages/Stages.mocks.jsx +6 -6
  74. package/jsx/work/Stages/Stages.mocks.jsx.map +1 -1
  75. package/jsx/work/Tasks/Tasks.stories.d.ts.map +1 -1
  76. package/jsx/work/Tasks/Tasks.stories.jsx +15 -13
  77. package/jsx/work/Tasks/Tasks.stories.jsx.map +1 -1
  78. package/lib/build/AppShell/AppShell.mocks.d.ts +16 -14
  79. package/lib/build/AppShell/AppShell.mocks.d.ts.map +1 -1
  80. package/lib/build/AppShell/AppShell.mocks.js +144 -101
  81. package/lib/build/AppShell/AppShell.mocks.js.map +1 -1
  82. package/lib/build/AppShell/AppShell.stories.d.ts +1 -0
  83. package/lib/build/AppShell/AppShell.stories.d.ts.map +1 -1
  84. package/lib/build/AppShell/AppShell.stories.js +7 -3
  85. package/lib/build/AppShell/AppShell.stories.js.map +1 -1
  86. package/lib/build/ExpressionBuilder/ExpressionBuilder.mocks.d.ts +2 -0
  87. package/lib/build/ExpressionBuilder/ExpressionBuilder.mocks.d.ts.map +1 -1
  88. package/lib/build/ExpressionBuilder/ExpressionBuilder.mocks.js +23 -0
  89. package/lib/build/ExpressionBuilder/ExpressionBuilder.mocks.js.map +1 -1
  90. package/lib/build/ExpressionBuilder/ExpressionBuilder.stories.d.ts.map +1 -1
  91. package/lib/build/ExpressionBuilder/ExpressionBuilder.stories.js +4 -4
  92. package/lib/build/ExpressionBuilder/ExpressionBuilder.stories.js.map +1 -1
  93. package/lib/build/PageBanner/PageBanner.stories.d.ts +15 -0
  94. package/lib/build/PageBanner/PageBanner.stories.d.ts.map +1 -0
  95. package/lib/build/PageBanner/PageBanner.stories.js +42 -0
  96. package/lib/build/PageBanner/PageBanner.stories.js.map +1 -0
  97. package/lib/build/PageTemplates/GalleryPage.stories.d.ts +7 -3
  98. package/lib/build/PageTemplates/GalleryPage.stories.d.ts.map +1 -1
  99. package/lib/build/PageTemplates/GalleryPage.stories.js +29 -19
  100. package/lib/build/PageTemplates/GalleryPage.stories.js.map +1 -1
  101. package/lib/build/PageTemplates/ShowcasePage.stories.d.ts +17 -0
  102. package/lib/build/PageTemplates/ShowcasePage.stories.d.ts.map +1 -0
  103. package/lib/build/PageTemplates/ShowcasePage.stories.js +43 -0
  104. package/lib/build/PageTemplates/ShowcasePage.stories.js.map +1 -0
  105. package/lib/condition-builder/ConditionBuilder/props.mock.js +4 -4
  106. package/lib/condition-builder/ConditionBuilder/props.mock.js.map +1 -1
  107. package/lib/core/AppShell/AppShell.mocks.js +1 -1
  108. package/lib/core/AppShell/AppShell.mocks.js.map +1 -1
  109. package/lib/core/AppShell/AppShell.stories.d.ts +1 -0
  110. package/lib/core/AppShell/AppShell.stories.d.ts.map +1 -1
  111. package/lib/core/AppShell/AppShell.stories.js +21 -6
  112. package/lib/core/AppShell/AppShell.stories.js.map +1 -1
  113. package/lib/core/Banner/Banner.stories.d.ts +1 -0
  114. package/lib/core/Banner/Banner.stories.d.ts.map +1 -1
  115. package/lib/core/Banner/Banner.stories.js +1 -1
  116. package/lib/core/Banner/Banner.stories.js.map +1 -1
  117. package/lib/cs/CSAppShell/CSAppShell.mocks.d.ts +1 -0
  118. package/lib/cs/CSAppShell/CSAppShell.mocks.d.ts.map +1 -1
  119. package/lib/cs/CSAppShell/CSAppShell.mocks.js +37 -1
  120. package/lib/cs/CSAppShell/CSAppShell.mocks.js.map +1 -1
  121. package/lib/cs/CSAppShell/CSAppShell.stories.d.ts.map +1 -1
  122. package/lib/cs/CSAppShell/CSAppShell.stories.js +2 -2
  123. package/lib/cs/CSAppShell/CSAppShell.stories.js.map +1 -1
  124. package/lib/social/Chat/Chat.mocks.d.ts +2 -1
  125. package/lib/social/Chat/Chat.mocks.d.ts.map +1 -1
  126. package/lib/social/Chat/Chat.mocks.js +26 -0
  127. package/lib/social/Chat/Chat.mocks.js.map +1 -1
  128. package/lib/social/Chat/Chat.stories.d.ts +5 -2
  129. package/lib/social/Chat/Chat.stories.d.ts.map +1 -1
  130. package/lib/social/Chat/Chat.stories.js +36 -76
  131. package/lib/social/Chat/Chat.stories.js.map +1 -1
  132. package/lib/social/Email/Email.mocks.d.ts +49 -7
  133. package/lib/social/Email/Email.mocks.d.ts.map +1 -1
  134. package/lib/social/Email/Email.mocks.js +127 -15
  135. package/lib/social/Email/Email.mocks.js.map +1 -1
  136. package/lib/social/Email/Email.stories.d.ts +10 -0
  137. package/lib/social/Email/Email.stories.d.ts.map +1 -1
  138. package/lib/social/Email/Email.stories.js +134 -12
  139. package/lib/social/Email/Email.stories.js.map +1 -1
  140. package/lib/tools/DevTools/DevTools.stories.d.ts.map +1 -1
  141. package/lib/tools/DevTools/DevTools.stories.js +2 -4
  142. package/lib/tools/DevTools/DevTools.stories.js.map +1 -1
  143. package/lib/tools/PreviewShell/PreviewShell.mocks.d.ts +3 -1
  144. package/lib/tools/PreviewShell/PreviewShell.mocks.d.ts.map +1 -1
  145. package/lib/tools/PreviewShell/PreviewShell.mocks.js +5 -4
  146. package/lib/tools/PreviewShell/PreviewShell.mocks.js.map +1 -1
  147. package/lib/tools/PreviewShell/PreviewShell.stories.d.ts.map +1 -1
  148. package/lib/tools/PreviewShell/PreviewShell.stories.js +11 -13
  149. package/lib/tools/PreviewShell/PreviewShell.stories.js.map +1 -1
  150. package/lib/work/Stages/Stages.mocks.js +6 -6
  151. package/lib/work/Stages/Stages.mocks.js.map +1 -1
  152. package/lib/work/Tasks/Tasks.stories.d.ts.map +1 -1
  153. package/lib/work/Tasks/Tasks.stories.js +2 -2
  154. package/lib/work/Tasks/Tasks.stories.js.map +1 -1
  155. package/package.json +10 -9
@@ -1,9 +1,11 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import { TabbedPage, Text } from '@pega/cosmos-react-core';
3
+ import { ShowcasePage } from '@pega/cosmos-react-build';
4
+ import { TableDemo } from '../../core/Table/Table.stories';
3
5
  export const getPath = (args) => {
4
- const { showBreadcrumbs, pageContent: { data: { pageTitle, breadcrumbsPath } } } = args;
6
+ const { showBreadcrumbs, pageContent: { title, breadcrumbsPath } } = args;
5
7
  if (showBreadcrumbs) {
6
- const path = pageTitle === 'Overview' ? 'Home' : breadcrumbsPath;
8
+ const path = title === 'Overview' ? 'Home' : breadcrumbsPath;
7
9
  return path
8
10
  ? path.split(',').map((crumb, i) => {
9
11
  // FIXME: https://stackoverflow.com/questions/63616486/property-replaceall-does-not-exist-on-type-string
@@ -25,13 +27,13 @@ export const defaultNavItems = [
25
27
  },
26
28
  {
27
29
  id: 'caseTypes',
28
- label: 'Case types',
30
+ label: 'Case Types',
29
31
  icon: 'chevron-solid',
30
32
  href: '#caseTypes'
31
33
  },
32
34
  {
33
35
  id: 'liveData',
34
- label: 'Live data',
36
+ label: 'Live Data',
35
37
  href: '#liveData',
36
38
  icon: 'disc-stack-solid'
37
39
  },
@@ -49,36 +51,36 @@ export const defaultNavItems = [
49
51
  },
50
52
  {
51
53
  id: 'appSettings',
52
- label: 'App settings',
54
+ label: 'App Settings',
53
55
  href: '#appSettings',
54
56
  icon: 'gear-solid'
55
57
  },
56
58
  {
57
59
  id: 'rulesLibrary',
58
- label: 'Rules library',
60
+ label: 'Rules Library',
59
61
  icon: 'book-solid',
60
62
  items: [
61
- { id: 'appLogic', label: 'App logic', href: '#appLogic' },
63
+ { id: 'appLogic', label: 'App Logic', href: '#appLogic' },
62
64
  { id: 'application', label: 'Application', href: '#application' },
63
65
  { id: 'data', label: 'Data', href: '#data' },
64
66
  {
65
67
  id: 'integration',
66
68
  label: 'Integration',
67
69
  items: [
68
- { id: 'emailAccounts', label: 'Email accounts', href: '#emailAccounts' },
70
+ { id: 'emailAccounts', label: 'Email Accounts', href: '#emailAccounts' },
69
71
  {
70
72
  id: 'integrationSystems',
71
- label: 'Integration systems',
73
+ label: 'Integration Systems',
72
74
  href: '#integrationSystems'
73
75
  },
74
76
  {
75
77
  id: 'jsonTransforms',
76
- label: 'JSON transforms',
78
+ label: 'JSON Transforms',
77
79
  href: '#jsonTransforms'
78
80
  },
79
81
  {
80
82
  id: 'restConnectors',
81
- label: 'REST connectors',
83
+ label: 'REST Connectors',
82
84
  href: '#restConnectors'
83
85
  }
84
86
  ]
@@ -88,12 +90,12 @@ export const defaultNavItems = [
88
90
  label: 'Process',
89
91
  items: [
90
92
  { id: 'process-actions', label: 'Actions', href: '#actions' },
91
- { id: 'process-caseStatus', label: 'Case status', href: '#caseStatus' },
92
- { id: 'process-caseTypes', label: 'Case types', href: '#caseTypes' },
93
+ { id: 'process-caseStatus', label: 'Case Status', href: '#caseStatus' },
94
+ { id: 'process-caseTypes', label: 'Case Types', href: '#caseTypes' },
93
95
  { id: 'process-processes', label: 'Processes', href: '#processes' },
94
96
  { id: 'process-SLAs', label: 'SLAs', href: '#SLAs' },
95
97
  { id: 'process-stages', label: 'Stages', href: '#stages' },
96
- { id: 'process-workQueues', label: 'Work queues', href: '#workQueues' }
98
+ { id: 'process-workQueues', label: 'Work Queues', href: '#workQueues' }
97
99
  ]
98
100
  },
99
101
  {
@@ -102,31 +104,31 @@ export const defaultNavItems = [
102
104
  items: [
103
105
  {
104
106
  id: 'accessConditions',
105
- label: 'Access conditions',
107
+ label: 'Access Conditions',
106
108
  href: '#accessConditions'
107
109
  },
108
- { id: 'accessGroups', label: 'Access groups', href: '#accessGroups' },
110
+ { id: 'accessGroups', label: 'Access Groups', href: '#accessGroups' },
109
111
  {
110
112
  id: 'accessPolicies',
111
- label: 'Access policies',
113
+ label: 'Access Policies',
112
114
  href: '#accessPolicies'
113
115
  },
114
- { id: 'accessRoles', label: 'Access roles', href: '#accessRoles' },
116
+ { id: 'accessRoles', label: 'Access Roles', href: '#accessRoles' },
115
117
  {
116
118
  id: 'authentication',
117
119
  label: 'Authentication',
118
120
  items: [
119
121
  {
120
122
  id: 'authProfiles',
121
- label: 'Authentication profiles',
123
+ label: 'Authentication Profiles',
122
124
  href: '#authProfiles'
123
125
  }
124
126
  ]
125
127
  }
126
128
  ]
127
129
  },
128
- { id: 'systemAdmin', label: 'System admin', href: '#systemAdmin' },
129
- { id: 'userInterface', label: 'User interface', href: '#userInterface' }
130
+ { id: 'systemAdmin', label: 'System Admin', href: '#systemAdmin' },
131
+ { id: 'userInterface', label: 'User Interface', href: '#userInterface' }
130
132
  ]
131
133
  }
132
134
  ];
@@ -134,7 +136,8 @@ export const contents = [
134
136
  {
135
137
  id: 'overview',
136
138
  data: {
137
- pageTitle: 'Overview',
139
+ template: 'tabbed',
140
+ title: 'Overview',
138
141
  breadcrumbsPath: 'Home',
139
142
  tabs: ['Application']
140
143
  }
@@ -142,216 +145,245 @@ export const contents = [
142
145
  {
143
146
  id: 'caseTypes',
144
147
  data: {
145
- pageTitle: 'Case types',
146
- breadcrumbsPath: 'Home',
147
- tabs: ['Case types']
148
+ template: 'showcase',
149
+ title: 'Case Types',
150
+ 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.',
151
+ actionLabel: 'Add Case Type',
152
+ imageSrc: './build-live-data.svg'
148
153
  }
149
154
  },
150
155
  {
151
156
  id: 'liveData',
152
157
  data: {
153
- pageTitle: 'Live data',
154
- breadcrumbsPath: 'Home',
155
- tabs: ['Live data']
158
+ template: 'showcase',
159
+ title: 'Live Data',
160
+ 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.',
161
+ actionLabel: 'Add Data Type',
162
+ imageSrc: './build-live-data.svg'
156
163
  }
157
164
  },
158
165
  {
159
166
  id: 'insights',
160
167
  data: {
161
- pageTitle: 'Insights',
162
- breadcrumbsPath: 'Home',
163
- tabs: ['Insights']
168
+ template: 'showcase',
169
+ title: 'Insights',
170
+ 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.',
171
+ actionLabel: 'Add Insight',
172
+ imageSrc: './build-live-data.svg'
164
173
  }
165
174
  },
166
175
  {
167
176
  id: 'personas',
168
177
  data: {
169
- pageTitle: 'Personas',
170
- breadcrumbsPath: 'Home',
171
- tabs: ['Personas']
178
+ template: 'showcase',
179
+ title: 'Personas',
180
+ 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.',
181
+ actionLabel: 'Add Persona',
182
+ imageSrc: './build-live-data.svg'
172
183
  }
173
184
  },
174
185
  {
175
186
  id: 'appSettings',
176
187
  data: {
177
- pageTitle: 'App settings',
188
+ template: 'tabbed',
189
+ title: 'App Settings',
178
190
  breadcrumbsPath: 'Home',
179
- tabs: ['App settings']
191
+ tabs: ['App Settings']
180
192
  }
181
193
  },
182
194
  {
183
195
  id: 'appLogic',
184
196
  data: {
185
- pageTitle: 'App logic',
186
- breadcrumbsPath: 'Home, Rules library',
187
- tabs: ['Rules library', 'App logic']
197
+ template: 'tabbed',
198
+ title: 'App Logic',
199
+ breadcrumbsPath: 'Home, Rules Library',
200
+ tabs: ['Rules Library', 'App Logic']
188
201
  }
189
202
  },
190
203
  {
191
204
  id: 'application',
192
205
  data: {
193
- pageTitle: 'Application',
194
- breadcrumbsPath: 'Home, Rules library',
195
- tabs: ['Rules library', 'Application']
206
+ template: 'tabbed',
207
+ title: 'Application',
208
+ breadcrumbsPath: 'Home, Rules Library',
209
+ tabs: ['Rules Library', 'Application']
196
210
  }
197
211
  },
198
212
  {
199
213
  id: 'data',
200
214
  data: {
201
- pageTitle: 'Data',
202
- breadcrumbsPath: 'Home, Rules library',
203
- tabs: ['Rules library', 'Data']
215
+ template: 'tabbed',
216
+ title: 'Data',
217
+ breadcrumbsPath: 'Home, Rules Library',
218
+ tabs: ['Rules Library', 'Data']
204
219
  }
205
220
  },
206
221
  {
207
222
  id: 'emailAccounts',
208
223
  data: {
209
- pageTitle: 'Email accounts',
210
- breadcrumbsPath: 'Home, Rules library, Integration',
211
- tabs: ['Rules library', 'Integration', 'Email accounts']
224
+ template: 'tabbed',
225
+ title: 'Email Accounts',
226
+ breadcrumbsPath: 'Home, Rules Library, Integration',
227
+ tabs: ['Rules Library', 'Integration', 'Email Accounts']
212
228
  }
213
229
  },
214
230
  {
215
231
  id: 'integrationSystems',
216
232
  data: {
217
- pageTitle: 'Integration systems',
218
- breadcrumbsPath: 'Home, Rules library, Integration',
219
- tabs: ['Rules library', 'Integration', 'Integration systems']
233
+ template: 'tabbed',
234
+ title: 'Integration Systems',
235
+ breadcrumbsPath: 'Home, Rules Library, Integration',
236
+ tabs: ['Rules Library', 'Integration', 'Integration Systems']
220
237
  }
221
238
  },
222
239
  {
223
240
  id: 'jsonTransforms',
224
241
  data: {
225
- pageTitle: 'JSON transforms',
226
- breadcrumbsPath: 'Home, Rules library, Integration',
227
- tabs: ['Rules library', 'Integration', 'JSON transforms']
242
+ template: 'tabbed',
243
+ title: 'JSON Transforms',
244
+ breadcrumbsPath: 'Home, Rules Library, Integration',
245
+ tabs: ['Rules Library', 'Integration', 'JSON Transforms']
228
246
  }
229
247
  },
230
248
  {
231
249
  id: 'restConnectors',
232
250
  data: {
233
- pageTitle: 'REST connectors',
234
- breadcrumbsPath: 'Home, Rules library, Integration',
235
- tabs: ['Rules library', 'Integration', 'REST connectors']
251
+ template: 'tabbed',
252
+ title: 'REST Connectors',
253
+ breadcrumbsPath: 'Home, Rules Library, Integration',
254
+ tabs: ['Rules Library', 'Integration', 'REST Connectors']
236
255
  }
237
256
  },
238
257
  {
239
258
  id: 'process-actions',
240
259
  data: {
241
- pageTitle: 'Actions',
242
- breadcrumbsPath: 'Home, Rules library, Process',
243
- tabs: ['Rules library', 'Process', 'Actions']
260
+ template: 'tabbed',
261
+ title: 'Actions',
262
+ breadcrumbsPath: 'Home, Rules Library, Process',
263
+ tabs: ['Rules Library', 'Process', 'Actions']
244
264
  }
245
265
  },
246
266
  {
247
267
  id: 'process-caseStatus',
248
268
  data: {
249
- pageTitle: 'Case status',
250
- breadcrumbsPath: 'Home, Rules library, Process',
251
- tabs: ['Rules library', 'Process', 'Case status']
269
+ template: 'tabbed',
270
+ title: 'Case Status',
271
+ breadcrumbsPath: 'Home, Rules Library, Process',
272
+ tabs: ['Rules Library', 'Process', 'Case Status']
252
273
  }
253
274
  },
254
275
  {
255
276
  id: 'process-caseTypes',
256
277
  data: {
257
- pageTitle: 'Case types',
258
- breadcrumbsPath: 'Home, Rules library, Process',
259
- tabs: ['Rules library', 'Process', 'Case types']
278
+ template: 'tabbed',
279
+ title: 'Case Types',
280
+ breadcrumbsPath: 'Home, Rules Library, Process',
281
+ tabs: ['Rules Library', 'Process', 'Case Types']
260
282
  }
261
283
  },
262
284
  {
263
285
  id: 'process-processes',
264
286
  data: {
265
- pageTitle: 'Processes',
266
- breadcrumbsPath: 'Home, Rules library, Process',
267
- tabs: ['Rules library', 'Process', 'Processes']
287
+ template: 'tabbed',
288
+ title: 'Processes',
289
+ breadcrumbsPath: 'Home, Rules Library, Process',
290
+ tabs: ['Rules Library', 'Process', 'Processes']
268
291
  }
269
292
  },
270
293
  {
271
294
  id: 'process-SLAs',
272
295
  data: {
273
- pageTitle: 'SLAs',
274
- breadcrumbsPath: 'Home, Rules library, Process',
275
- tabs: ['Rules library', 'Process', 'SLAs']
296
+ template: 'tabbed',
297
+ title: 'SLAs',
298
+ breadcrumbsPath: 'Home, Rules Library, Process',
299
+ tabs: ['Rules Library', 'Process', 'SLAs']
276
300
  }
277
301
  },
278
302
  {
279
303
  id: 'process-stages',
280
304
  data: {
281
- pageTitle: 'Stages',
282
- breadcrumbsPath: 'Home, Rules library, Process',
283
- tabs: ['Rules library', 'Process', 'Stages']
305
+ template: 'tabbed',
306
+ title: 'Stages',
307
+ breadcrumbsPath: 'Home, Rules Library, Process',
308
+ tabs: ['Rules Library', 'Process', 'Stages']
284
309
  }
285
310
  },
286
311
  {
287
312
  id: 'process-workQueues',
288
313
  data: {
289
- pageTitle: 'Work queues',
290
- breadcrumbsPath: 'Home, Rules library, Process',
291
- tabs: ['Rules library', 'Process', 'Work queues']
314
+ template: 'tabbed',
315
+ title: 'Work Queues',
316
+ breadcrumbsPath: 'Home, Rules Library, Process',
317
+ tabs: ['Rules Library', 'Process', 'Work Queues']
292
318
  }
293
319
  },
294
320
  {
295
321
  id: 'accessConditions',
296
322
  data: {
297
- pageTitle: 'Access conditions',
298
- breadcrumbsPath: 'Home, Rules library, Security',
299
- tabs: ['Rules library', 'Security', 'Access conditions']
323
+ template: 'tabbed',
324
+ title: 'Access Conditions',
325
+ breadcrumbsPath: 'Home, Rules Library, Security',
326
+ tabs: ['Rules Library', 'Security', 'Access Conditions']
300
327
  }
301
328
  },
302
329
  {
303
330
  id: 'accessGroups',
304
331
  data: {
305
- pageTitle: 'Access groups',
306
- breadcrumbsPath: 'Home, Rules library, Security',
307
- tabs: ['Rules library', 'Security', 'Access groups']
332
+ template: 'tabbed',
333
+ title: 'Access Groups',
334
+ breadcrumbsPath: 'Home, Rules Library, Security',
335
+ tabs: ['Rules Library', 'Security', 'Access Groups']
308
336
  }
309
337
  },
310
338
  {
311
339
  id: 'accessPolicies',
312
340
  data: {
313
- pageTitle: 'Access policies',
314
- breadcrumbsPath: 'Home, Rules library, Security',
315
- tabs: ['Rules library', 'Security', 'Access policies']
341
+ template: 'tabbed',
342
+ title: 'Access Policies',
343
+ breadcrumbsPath: 'Home, Rules Library, Security',
344
+ tabs: ['Rules Library', 'Security', 'Access Policies']
316
345
  }
317
346
  },
318
347
  {
319
348
  id: 'accessRoles',
320
349
  data: {
321
- pageTitle: 'Access roles',
322
- breadcrumbsPath: 'Home, Rules library, Security',
323
- tabs: ['Rules library', 'Security', 'Access roles']
350
+ template: 'tabbed',
351
+ title: 'Access Roles',
352
+ breadcrumbsPath: 'Home, Rules Library, Security',
353
+ tabs: ['Rules Library', 'Security', 'Access Roles']
324
354
  }
325
355
  },
326
356
  {
327
357
  id: 'authProfiles',
328
358
  data: {
329
- pageTitle: 'Authentication profiles',
330
- breadcrumbsPath: 'Home, Rules library, Security, Authentication',
331
- tabs: ['Rules library', 'Security', 'Authentication', 'Authentication profiles']
359
+ template: 'tabbed',
360
+ title: 'Authentication Profiles',
361
+ breadcrumbsPath: 'Home, Rules Library, Security, Authentication',
362
+ tabs: ['Rules Library', 'Security', 'Authentication', 'Authentication Profiles']
332
363
  }
333
364
  },
334
365
  {
335
366
  id: 'systemAdmin',
336
367
  data: {
337
- pageTitle: 'System admin',
368
+ template: 'tabbed',
369
+ title: 'System Admin',
338
370
  breadcrumbsPath: 'Home',
339
- tabs: ['Rules library', 'System admin']
371
+ tabs: ['Rules Library', 'System Admin']
340
372
  }
341
373
  },
342
374
  {
343
375
  id: 'userInterface',
344
376
  data: {
345
- pageTitle: 'User interface',
377
+ template: 'tabbed',
378
+ title: 'User Interface',
346
379
  breadcrumbsPath: 'Home',
347
- tabs: ['Rules library', 'User interface']
380
+ tabs: ['Rules Library', 'User Interface']
348
381
  }
349
382
  }
350
383
  ];
351
- export const TabbedPageComp = (args) => {
352
- const { pageContent, showBreadcrumbs } = args;
353
- return (_jsx(TabbedPage, { path: getPath({ showBreadcrumbs, pageContent }), title: pageContent.data.pageTitle, tabs: {
354
- tabs: pageContent.data.tabs.map((name, i) => {
384
+ export const TabbedPageComp = ({ pageContent, showBreadcrumbs }) => {
385
+ return (_jsx(TabbedPage, { path: getPath({ showBreadcrumbs, pageContent }), title: pageContent.title, tabs: {
386
+ tabs: pageContent.tabs.map((name, i) => {
355
387
  const id = `${i + 1}`;
356
388
  return {
357
389
  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 (_jsx(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: _jsx(TableDemo, { title: title }) }));
407
+ };
365
408
  //# sourceMappingURL=AppShell.mocks.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"AppShell.mocks.js","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,CA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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.js","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,MAAM,0BAA0B,CAAC;AAElE,OAAO,EAAE,SAAS,EAAE,MAAM,gCAAgC,CAAC;AA0B3D,MAAM,CAAC,MAAM,OAAO,GAAG,CAAC,IAA0B,EAAE,EAAE;IACpD,MAAM,EACJ,eAAe,EACf,WAAW,EAAE,EAAE,KAAK,EAAE,eAAe,EAAE,EACxC,GAAG,IAAI,CAAC;IAET,IAAI,eAAe,EAAE;QACnB,MAAM,IAAI,GAAG,KAAK,KAAK,UAAU,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,eAAe,CAAC;QAC7D,OAAO,IAAI;YACT,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC,KAAa,EAAE,CAAC,EAAE,EAAE;gBACvC,wGAAwG;gBACxG,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,MAAM,CAAC,MAAM,eAAe,GAAsB;IAChD;QACE,EAAE,EAAE,UAAU;QACd,KAAK,EAAE,UAAU;QACjB,IAAI,EAAE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,OAAO,EAAE,UAAU,GACf,CACR;iBACF,CAAC;YACJ,CAAC,CAAC;YACF,IAAI,EAAE,YAAY;SACnB,GACD,CACH,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,gBAAgB,GAA+B,CAAC,EAC3D,KAAK,EACL,WAAW,EACX,WAAW,EACX,QAAQ,EACe,EAAE,EAAE;IAC3B,OAAO,CACL,KAAC,YAAY,IACX,KAAK,EAAE,KAAK,EACZ,WAAW,EAAE,WAAW,EACxB,KAAK,EAAE;YACL,GAAG,EAAE,QAAQ;YACb,GAAG,EAAE,sBAAsB;SAC5B,EACD,OAAO,EAAE;YACP;gBACE,KAAK,EAAE,WAAW;gBAClB,OAAO,EAAE,GAAG,EAAE,GAAE,CAAC;aAClB;SACF,EACD,IAAI,EAAE,EAAE,KAAK,EAAE,YAAY,EAAE,IAAI,EAAE,GAAG,EAAE,EACxC,OAAO,EAAE,KAAC,SAAS,IAAC,KAAK,EAAE,KAAK,GAAI,GACpC,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"]}
@@ -6,6 +6,7 @@ export default _default;
6
6
  export interface AppShellStoryProps extends OmitStrict<BranchButtonProps, 'items'> {
7
7
  appName: string;
8
8
  hideNav?: boolean;
9
+ defaultExpanded?: boolean;
9
10
  showPreview?: boolean;
10
11
  showLinks?: boolean;
11
12
  showBranch?: boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"AppShell.stories.d.ts","sourceRoot":"","sources":["../../../src/build/AppShell/AppShell.stories.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,kBAAkB,CAAC;AAG/C,OAAO,EAEL,UAAU,EACV,MAAM,EAKP,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAGL,aAAa,EAEb,iBAAiB,EAElB,MAAM,0BAA0B,CAAC;;AAIlC,wBAMU;AAEV,MAAM,WAAW,kBAAmB,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AI,CAAC,EAAE,aAAa,CAAC,MAAM,CAAC,CAAC;IAC7B,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB;AAED,eAAO,MAAM,YAAY,EAAE,KAAK,CAAC,kBAAkB,CAwLlD,CAAC"}
@@ -3,7 +3,7 @@ import { useMemo, useState } from 'react';
3
3
  import { action } from '@storybook/addon-actions';
4
4
  import { Icon, useModalManager, Input, Button, Modal } from '@pega/cosmos-react-core';
5
5
  import { AppShell } from '@pega/cosmos-react-build';
6
- import { contents, defaultNavItems, TabbedPageComp } from './AppShell.mocks';
6
+ import { contents, defaultNavItems, ShowcasePageComp, TabbedPageComp } from './AppShell.mocks';
7
7
  export default {
8
8
  title: 'Build/AppShell',
9
9
  component: AppShell,
@@ -156,15 +156,18 @@ export const AppShellDemo = (args) => {
156
156
  ]
157
157
  : []
158
158
  };
159
- return (_jsx(_Fragment, { children: _jsx(AppShell, { main: args.main || (_jsx(TabbedPageComp, { pageContent: pageContent, showBreadcrumbs: !!args.showBreadcrumbs })), appHeader: appHeaderProps, nav: args.hideNav
159
+ const mainContent = pageContent.data.template === 'showcase' ? (_jsx(ShowcasePageComp, { ...pageContent.data })) : (_jsx(TabbedPageComp, { pageContent: pageContent.data, showBreadcrumbs: !!args.showBreadcrumbs }));
160
+ return (_jsx(_Fragment, { children: _jsx(AppShell, { main: args.main || mainContent, appHeader: appHeaderProps, nav: args.hideNav
160
161
  ? undefined
161
162
  : {
162
163
  items: items,
163
- currentItemId
164
+ currentItemId,
165
+ defaultExpanded: args.defaultExpanded
164
166
  } }) }));
165
167
  };
166
168
  AppShellDemo.args = {
167
169
  hideNav: false,
170
+ defaultExpanded: true,
168
171
  showBreadcrumbs: true,
169
172
  variant: undefined,
170
173
  text: 'Launchpad (Main)',
@@ -180,6 +183,7 @@ AppShellDemo.args = {
180
183
  };
181
184
  AppShellDemo.argTypes = {
182
185
  hideNav: { control: { type: 'boolean' } },
186
+ defaultExpanded: { control: { type: 'boolean' } },
183
187
  showBreadcrumbs: { control: { type: 'boolean' } },
184
188
  variant: { options: ['success', 'urgent'], control: { type: 'radio' } },
185
189
  text: { control: { type: 'text' } },