@pega/cosmos-react-demos 3.0.0-dev.9.0 → 3.0.0-rc.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (987) hide show
  1. package/jsx/build/AppHeader/AppHeader.stories.d.ts +1 -1
  2. package/jsx/build/AppHeader/AppHeader.stories.d.ts.map +1 -1
  3. package/jsx/build/AppHeader/AppHeader.stories.jsx +102 -81
  4. package/jsx/build/AppHeader/AppHeader.stories.jsx.map +1 -1
  5. package/jsx/build/DynamicContentEditor/DynamicContentEditor.stories.d.ts +1 -1
  6. package/jsx/build/DynamicContentEditor/DynamicContentEditor.stories.d.ts.map +1 -1
  7. package/jsx/build/DynamicContentEditor/DynamicContentEditor.stories.jsx +22 -1
  8. package/jsx/build/DynamicContentEditor/DynamicContentEditor.stories.jsx.map +1 -1
  9. package/jsx/build/ExpressionBuilder/ExpressionBuilder.mocks.d.ts +60 -0
  10. package/jsx/build/ExpressionBuilder/ExpressionBuilder.mocks.d.ts.map +1 -0
  11. package/jsx/build/ExpressionBuilder/ExpressionBuilder.mocks.js +523 -0
  12. package/jsx/build/ExpressionBuilder/ExpressionBuilder.mocks.js.map +1 -0
  13. package/jsx/build/ExpressionBuilder/ExpressionBuilder.stories.d.ts +26 -0
  14. package/jsx/build/ExpressionBuilder/ExpressionBuilder.stories.d.ts.map +1 -0
  15. package/jsx/build/ExpressionBuilder/ExpressionBuilder.stories.jsx +339 -0
  16. package/jsx/build/ExpressionBuilder/ExpressionBuilder.stories.jsx.map +1 -0
  17. package/jsx/build/FlowModeller/AddNodeUtils.mocks.d.ts +4 -4
  18. package/jsx/build/FlowModeller/AddNodeUtils.mocks.d.ts.map +1 -1
  19. package/jsx/build/FlowModeller/AddNodeUtils.mocks.js.map +1 -1
  20. package/jsx/build/FlowModeller/FlowModeller.mocks.d.ts +4 -2
  21. package/jsx/build/FlowModeller/FlowModeller.mocks.d.ts.map +1 -1
  22. package/jsx/build/FlowModeller/FlowModeller.mocks.jsx +118 -33
  23. package/jsx/build/FlowModeller/FlowModeller.mocks.jsx.map +1 -1
  24. package/jsx/build/FlowModeller/FlowModeller.stories.d.ts +7 -2
  25. package/jsx/build/FlowModeller/FlowModeller.stories.d.ts.map +1 -1
  26. package/jsx/build/FlowModeller/FlowModeller.stories.jsx +246 -63
  27. package/jsx/build/FlowModeller/FlowModeller.stories.jsx.map +1 -1
  28. package/jsx/build/LifeCycle/LifeCycle.mocks.d.ts.map +1 -1
  29. package/jsx/build/LifeCycle/LifeCycle.mocks.js +40 -0
  30. package/jsx/build/LifeCycle/LifeCycle.mocks.js.map +1 -1
  31. package/jsx/build/ObjectSelect/ObjectSelect.mocks.d.ts +25 -8
  32. package/jsx/build/ObjectSelect/ObjectSelect.mocks.d.ts.map +1 -1
  33. package/jsx/build/ObjectSelect/ObjectSelect.mocks.jsx +129 -68
  34. package/jsx/build/ObjectSelect/ObjectSelect.mocks.jsx.map +1 -1
  35. package/jsx/build/ObjectSelect/ObjectSelect.stories.d.ts.map +1 -1
  36. package/jsx/build/ObjectSelect/ObjectSelect.stories.jsx +115 -26
  37. package/jsx/build/ObjectSelect/ObjectSelect.stories.jsx.map +1 -1
  38. package/jsx/build/PageTemplates/PageTemplates.mocks.d.ts.map +1 -1
  39. package/jsx/build/PageTemplates/PageTemplates.mocks.jsx +4 -4
  40. package/jsx/build/PageTemplates/PageTemplates.mocks.jsx.map +1 -1
  41. package/jsx/build/PageTemplates/PageTemplates.stories.d.ts.map +1 -1
  42. package/jsx/build/PageTemplates/PageTemplates.stories.jsx +3 -3
  43. package/jsx/build/PageTemplates/PageTemplates.stories.jsx.map +1 -1
  44. package/jsx/build/Workbench/Workbench.stories.d.ts +1 -0
  45. package/jsx/build/Workbench/Workbench.stories.d.ts.map +1 -1
  46. package/jsx/build/Workbench/Workbench.stories.jsx +201 -4
  47. package/jsx/build/Workbench/Workbench.stories.jsx.map +1 -1
  48. package/jsx/condition-builder/ConditionBuilder/ConditionBuilder.mocks.d.ts +1 -1
  49. package/jsx/condition-builder/ConditionBuilder/ConditionBuilder.mocks.d.ts.map +1 -1
  50. package/jsx/condition-builder/ConditionBuilder/ConditionBuilder.mocks.js +3 -1
  51. package/jsx/condition-builder/ConditionBuilder/ConditionBuilder.mocks.js.map +1 -1
  52. package/jsx/condition-builder/ConditionBuilder/ConditionBuilder.stories.d.ts +2 -1
  53. package/jsx/condition-builder/ConditionBuilder/ConditionBuilder.stories.d.ts.map +1 -1
  54. package/jsx/condition-builder/ConditionBuilder/ConditionBuilder.stories.jsx +47 -16
  55. package/jsx/condition-builder/ConditionBuilder/ConditionBuilder.stories.jsx.map +1 -1
  56. package/jsx/condition-builder/ConditionBuilder/ConditionBuilder.styles.d.ts +1 -1
  57. package/jsx/condition-builder/ConditionBuilder/ConditionBuilder.styles.d.ts.map +1 -1
  58. package/jsx/condition-builder/ConditionBuilder/props.mock.d.ts.map +1 -1
  59. package/jsx/condition-builder/ConditionBuilder/props.mock.js +132 -31
  60. package/jsx/condition-builder/ConditionBuilder/props.mock.js.map +1 -1
  61. package/jsx/condition-builder/ConditionInput/ConditionInput.stories.d.ts +10 -0
  62. package/jsx/condition-builder/ConditionInput/ConditionInput.stories.d.ts.map +1 -0
  63. package/jsx/condition-builder/ConditionInput/ConditionInput.stories.jsx +40 -0
  64. package/jsx/condition-builder/ConditionInput/ConditionInput.stories.jsx.map +1 -0
  65. package/jsx/condition-builder/PromotedFilters/PromotedFilters.mocks.d.ts +4 -0
  66. package/jsx/condition-builder/PromotedFilters/PromotedFilters.mocks.d.ts.map +1 -0
  67. package/jsx/condition-builder/PromotedFilters/PromotedFilters.mocks.js +181 -0
  68. package/jsx/condition-builder/PromotedFilters/PromotedFilters.mocks.js.map +1 -0
  69. package/jsx/condition-builder/PromotedFilters/PromotedFilters.stories.d.ts +8 -0
  70. package/jsx/condition-builder/PromotedFilters/PromotedFilters.stories.d.ts.map +1 -0
  71. package/jsx/condition-builder/PromotedFilters/PromotedFilters.stories.jsx +31 -0
  72. package/jsx/condition-builder/PromotedFilters/PromotedFilters.stories.jsx.map +1 -0
  73. package/jsx/condition-builder/PromotedFilters/PromotedFilters.styles.d.ts +9 -0
  74. package/jsx/condition-builder/PromotedFilters/PromotedFilters.styles.d.ts.map +1 -0
  75. package/jsx/condition-builder/PromotedFilters/PromotedFilters.styles.js +35 -0
  76. package/jsx/condition-builder/PromotedFilters/PromotedFilters.styles.js.map +1 -0
  77. package/jsx/core/AdditionalInfo/AdditionalInfo.stories.d.ts +9 -0
  78. package/jsx/core/AdditionalInfo/AdditionalInfo.stories.d.ts.map +1 -0
  79. package/jsx/core/AdditionalInfo/AdditionalInfo.stories.jsx +25 -0
  80. package/jsx/core/AdditionalInfo/AdditionalInfo.stories.jsx.map +1 -0
  81. package/jsx/core/AppShell/AppShell.mocks.d.ts +1 -1
  82. package/jsx/core/AppShell/AppShell.mocks.jsx +5 -5
  83. package/jsx/core/AppShell/AppShell.mocks.jsx.map +1 -1
  84. package/jsx/core/AppShell/AppShell.stories.d.ts +2 -0
  85. package/jsx/core/AppShell/AppShell.stories.d.ts.map +1 -1
  86. package/jsx/core/AppShell/AppShell.stories.jsx +47 -13
  87. package/jsx/core/AppShell/AppShell.stories.jsx.map +1 -1
  88. package/jsx/core/Banner/Banner.stories.d.ts +0 -1
  89. package/jsx/core/Banner/Banner.stories.d.ts.map +1 -1
  90. package/jsx/core/Banner/Banner.stories.jsx +2 -10
  91. package/jsx/core/Banner/Banner.stories.jsx.map +1 -1
  92. package/jsx/core/Checkbox/Checkbox.stories.d.ts +6 -2
  93. package/jsx/core/Checkbox/Checkbox.stories.d.ts.map +1 -1
  94. package/jsx/core/Checkbox/Checkbox.stories.jsx +26 -7
  95. package/jsx/core/Checkbox/Checkbox.stories.jsx.map +1 -1
  96. package/jsx/core/CheckboxGroup/CheckboxGroup.stories.d.ts +6 -2
  97. package/jsx/core/CheckboxGroup/CheckboxGroup.stories.d.ts.map +1 -1
  98. package/jsx/core/CheckboxGroup/CheckboxGroup.stories.jsx +46 -5
  99. package/jsx/core/CheckboxGroup/CheckboxGroup.stories.jsx.map +1 -1
  100. package/jsx/core/ColorPicker/ColorPicker.stories.d.ts +4 -1
  101. package/jsx/core/ColorPicker/ColorPicker.stories.d.ts.map +1 -1
  102. package/jsx/core/ColorPicker/ColorPicker.stories.jsx +10 -3
  103. package/jsx/core/ColorPicker/ColorPicker.stories.jsx.map +1 -1
  104. package/jsx/core/ComboBox/ComboBox.stories.d.ts +1 -0
  105. package/jsx/core/ComboBox/ComboBox.stories.d.ts.map +1 -1
  106. package/jsx/core/ComboBox/ComboBox.stories.jsx +40 -8
  107. package/jsx/core/ComboBox/ComboBox.stories.jsx.map +1 -1
  108. package/jsx/core/CompositeInput/CompositeInput.mocks.d.ts +8 -0
  109. package/jsx/core/CompositeInput/CompositeInput.mocks.d.ts.map +1 -0
  110. package/jsx/core/CompositeInput/CompositeInput.mocks.jsx +8 -0
  111. package/jsx/core/CompositeInput/CompositeInput.mocks.jsx.map +1 -0
  112. package/jsx/core/CompositeInput/CompositeInput.stories.d.ts +9 -0
  113. package/jsx/core/CompositeInput/CompositeInput.stories.d.ts.map +1 -0
  114. package/jsx/core/CompositeInput/CompositeInput.stories.jsx +54 -0
  115. package/jsx/core/CompositeInput/CompositeInput.stories.jsx.map +1 -0
  116. package/jsx/core/CreditCard/CreditCard.stories.d.ts +4 -1
  117. package/jsx/core/CreditCard/CreditCard.stories.d.ts.map +1 -1
  118. package/jsx/core/CreditCard/CreditCard.stories.jsx +11 -4
  119. package/jsx/core/CreditCard/CreditCard.stories.jsx.map +1 -1
  120. package/jsx/core/Currency/Currency.stories.d.ts +6 -1
  121. package/jsx/core/Currency/Currency.stories.d.ts.map +1 -1
  122. package/jsx/core/Currency/Currency.stories.jsx +30 -7
  123. package/jsx/core/Currency/Currency.stories.jsx.map +1 -1
  124. package/jsx/core/DateTime/DateTime.stories.d.ts +41 -10
  125. package/jsx/core/DateTime/DateTime.stories.d.ts.map +1 -1
  126. package/jsx/core/DateTime/DateTime.stories.jsx +188 -17
  127. package/jsx/core/DateTime/DateTime.stories.jsx.map +1 -1
  128. package/jsx/core/DateTime/DateTimePicker.stories.d.ts.map +1 -1
  129. package/jsx/core/DateTime/DateTimePicker.stories.jsx +1 -1
  130. package/jsx/core/DateTime/DateTimePicker.stories.jsx.map +1 -1
  131. package/jsx/core/Dialog/Dialog.stories.d.ts +6 -0
  132. package/jsx/core/Dialog/Dialog.stories.d.ts.map +1 -0
  133. package/jsx/core/Dialog/Dialog.stories.jsx +79 -0
  134. package/jsx/core/Dialog/Dialog.stories.jsx.map +1 -0
  135. package/jsx/core/FieldGroup/FieldGroup.stories.d.ts +2 -0
  136. package/jsx/core/FieldGroup/FieldGroup.stories.d.ts.map +1 -1
  137. package/jsx/core/FieldGroup/FieldGroup.stories.jsx +12 -4
  138. package/jsx/core/FieldGroup/FieldGroup.stories.jsx.map +1 -1
  139. package/jsx/core/FieldGroup/FieldGroupList.stories.d.ts.map +1 -1
  140. package/jsx/core/FieldGroup/FieldGroupList.stories.jsx +4 -0
  141. package/jsx/core/FieldGroup/FieldGroupList.stories.jsx.map +1 -1
  142. package/jsx/core/FieldValueList/FieldValueList.stories.d.ts +1 -0
  143. package/jsx/core/FieldValueList/FieldValueList.stories.d.ts.map +1 -1
  144. package/jsx/core/FieldValueList/FieldValueList.stories.jsx +34 -2
  145. package/jsx/core/FieldValueList/FieldValueList.stories.jsx.map +1 -1
  146. package/jsx/core/FieldValueList/FieldValueList.styles.d.ts +2 -0
  147. package/jsx/core/FieldValueList/FieldValueList.styles.d.ts.map +1 -0
  148. package/jsx/core/FieldValueList/FieldValueList.styles.js +8 -0
  149. package/jsx/core/FieldValueList/FieldValueList.styles.js.map +1 -0
  150. package/jsx/core/File/FileDisplay.stories.d.ts.map +1 -1
  151. package/jsx/core/File/FileDisplay.stories.jsx +10 -5
  152. package/jsx/core/File/FileDisplay.stories.jsx.map +1 -1
  153. package/jsx/core/Form/Form.mocks.d.ts +6 -0
  154. package/jsx/core/Form/Form.mocks.d.ts.map +1 -1
  155. package/jsx/core/Form/Form.mocks.jsx +84 -7
  156. package/jsx/core/Form/Form.mocks.jsx.map +1 -1
  157. package/jsx/core/Form/Form.stories.d.ts +1 -0
  158. package/jsx/core/Form/Form.stories.d.ts.map +1 -1
  159. package/jsx/core/Form/Form.stories.jsx +4 -1
  160. package/jsx/core/Form/Form.stories.jsx.map +1 -1
  161. package/jsx/core/HTML/HTML.stories.jsx +1 -1
  162. package/jsx/core/HTML/HTML.stories.jsx.map +1 -1
  163. package/jsx/core/Icon/Icon.stories.jsx.map +1 -1
  164. package/jsx/core/IconPicker/IconPicker.stories.d.ts.map +1 -1
  165. package/jsx/core/IconPicker/IconPicker.stories.jsx +6 -9
  166. package/jsx/core/IconPicker/IconPicker.stories.jsx.map +1 -1
  167. package/jsx/core/Input/Input.stories.d.ts +2 -0
  168. package/jsx/core/Input/Input.stories.d.ts.map +1 -1
  169. package/jsx/core/Input/Input.stories.jsx +78 -2
  170. package/jsx/core/Input/Input.stories.jsx.map +1 -1
  171. package/jsx/core/Lightbox/Lightbox.stories.jsx +1 -1
  172. package/jsx/core/Lightbox/Lightbox.stories.jsx.map +1 -1
  173. package/jsx/core/Link/Link.stories.d.ts +1 -0
  174. package/jsx/core/Link/Link.stories.d.ts.map +1 -1
  175. package/jsx/core/Link/Link.stories.jsx +12 -1
  176. package/jsx/core/Link/Link.stories.jsx.map +1 -1
  177. package/jsx/core/ListToolbar/ListToolbar.stories.d.ts +7 -1
  178. package/jsx/core/ListToolbar/ListToolbar.stories.d.ts.map +1 -1
  179. package/jsx/core/ListToolbar/ListToolbar.stories.jsx +21 -6
  180. package/jsx/core/ListToolbar/ListToolbar.stories.jsx.map +1 -1
  181. package/jsx/core/Location/Location.stories.d.ts +4 -1
  182. package/jsx/core/Location/Location.stories.d.ts.map +1 -1
  183. package/jsx/core/Location/Location.stories.jsx +13 -6
  184. package/jsx/core/Location/Location.stories.jsx.map +1 -1
  185. package/jsx/core/Location/locationTestUtils.d.ts +3 -0
  186. package/jsx/core/Location/locationTestUtils.d.ts.map +1 -0
  187. package/jsx/core/Location/locationTestUtils.js +29 -0
  188. package/jsx/core/Location/locationTestUtils.js.map +1 -0
  189. package/jsx/core/Menu/Menu.stories.d.ts.map +1 -1
  190. package/jsx/core/Menu/Menu.stories.jsx +7 -6
  191. package/jsx/core/Menu/Menu.stories.jsx.map +1 -1
  192. package/jsx/core/Modal/Modal.stories.d.ts +10 -1
  193. package/jsx/core/Modal/Modal.stories.d.ts.map +1 -1
  194. package/jsx/core/Modal/Modal.stories.jsx +49 -26
  195. package/jsx/core/Modal/Modal.stories.jsx.map +1 -1
  196. package/jsx/core/MultiStepForm/MultiStepForm.mocks.d.ts +34 -0
  197. package/jsx/core/MultiStepForm/MultiStepForm.mocks.d.ts.map +1 -0
  198. package/jsx/core/MultiStepForm/MultiStepForm.mocks.jsx +124 -0
  199. package/jsx/core/MultiStepForm/MultiStepForm.mocks.jsx.map +1 -0
  200. package/jsx/core/{MultiStep/MultiStep.stories.d.ts → MultiStepForm/MultiStepForm.stories.d.ts} +2 -2
  201. package/jsx/core/MultiStepForm/MultiStepForm.stories.d.ts.map +1 -0
  202. package/jsx/core/MultiStepForm/MultiStepForm.stories.jsx +208 -0
  203. package/jsx/core/MultiStepForm/MultiStepForm.stories.jsx.map +1 -0
  204. package/jsx/core/Number/Number.stories.d.ts +5 -2
  205. package/jsx/core/Number/Number.stories.d.ts.map +1 -1
  206. package/jsx/core/Number/Number.stories.jsx +204 -24
  207. package/jsx/core/Number/Number.stories.jsx.map +1 -1
  208. package/jsx/core/PageTemplates/PageTemplates.mocks.d.ts +1 -1
  209. package/jsx/core/PageTemplates/PageTemplates.mocks.d.ts.map +1 -1
  210. package/jsx/core/Phone/Phone.stories.d.ts +4 -1
  211. package/jsx/core/Phone/Phone.stories.d.ts.map +1 -1
  212. package/jsx/core/Phone/Phone.stories.jsx +10 -3
  213. package/jsx/core/Phone/Phone.stories.jsx.map +1 -1
  214. package/jsx/core/Popover/Popover.stories.jsx +6 -6
  215. package/jsx/core/Popover/Popover.stories.jsx.map +1 -1
  216. package/jsx/core/RadioButton/RadioButton.stories.d.ts +6 -2
  217. package/jsx/core/RadioButton/RadioButton.stories.d.ts.map +1 -1
  218. package/jsx/core/RadioButton/RadioButton.stories.jsx +22 -5
  219. package/jsx/core/RadioButton/RadioButton.stories.jsx.map +1 -1
  220. package/jsx/core/RadioButtonGroup/RadioButtonGroup.stories.d.ts +6 -2
  221. package/jsx/core/RadioButtonGroup/RadioButtonGroup.stories.d.ts.map +1 -1
  222. package/jsx/core/RadioButtonGroup/RadioButtonGroup.stories.jsx +46 -5
  223. package/jsx/core/RadioButtonGroup/RadioButtonGroup.stories.jsx.map +1 -1
  224. package/jsx/core/SearchInput/SearchInput.mocks.d.ts +12 -0
  225. package/jsx/core/SearchInput/SearchInput.mocks.d.ts.map +1 -0
  226. package/jsx/core/SearchInput/SearchInput.mocks.js +25 -0
  227. package/jsx/core/SearchInput/SearchInput.mocks.js.map +1 -0
  228. package/jsx/core/SearchInput/SearchInput.stories.d.ts +1 -4
  229. package/jsx/core/SearchInput/SearchInput.stories.d.ts.map +1 -1
  230. package/jsx/core/SearchInput/SearchInput.stories.jsx +29 -17
  231. package/jsx/core/SearchInput/SearchInput.stories.jsx.map +1 -1
  232. package/jsx/core/Select/Select.stories.d.ts +1 -0
  233. package/jsx/core/Select/Select.stories.d.ts.map +1 -1
  234. package/jsx/core/Select/Select.stories.jsx +10 -3
  235. package/jsx/core/Select/Select.stories.jsx.map +1 -1
  236. package/jsx/core/SkipLinks/SkipLinks.stories.d.ts +6 -0
  237. package/jsx/core/SkipLinks/SkipLinks.stories.d.ts.map +1 -0
  238. package/jsx/core/SkipLinks/SkipLinks.stories.jsx +29 -0
  239. package/jsx/core/SkipLinks/SkipLinks.stories.jsx.map +1 -0
  240. package/jsx/core/SkipLinks/SkipLinks.styles.d.ts +2 -0
  241. package/jsx/core/SkipLinks/SkipLinks.styles.d.ts.map +1 -0
  242. package/jsx/core/SkipLinks/SkipLinks.styles.js +16 -0
  243. package/jsx/core/SkipLinks/SkipLinks.styles.js.map +1 -0
  244. package/jsx/core/SummaryList/SummaryList.stories.d.ts.map +1 -1
  245. package/jsx/core/SummaryList/SummaryList.stories.jsx +4 -4
  246. package/jsx/core/SummaryList/SummaryList.stories.jsx.map +1 -1
  247. package/jsx/core/Tabs/Tabs.stories.jsx +1 -1
  248. package/jsx/core/Tabs/Tabs.stories.jsx.map +1 -1
  249. package/jsx/core/TextArea/TextArea.stories.d.ts +4 -1
  250. package/jsx/core/TextArea/TextArea.stories.d.ts.map +1 -1
  251. package/jsx/core/TextArea/TextArea.stories.jsx +10 -3
  252. package/jsx/core/TextArea/TextArea.stories.jsx.map +1 -1
  253. package/jsx/core/Toaster/Toaster.stories.jsx +3 -3
  254. package/jsx/core/Toaster/Toaster.stories.jsx.map +1 -1
  255. package/jsx/core/Tree/Tree.mocks.d.ts +1 -1
  256. package/jsx/core/Tree/Tree.mocks.d.ts.map +1 -1
  257. package/jsx/core/Tree/Tree.stories.d.ts.map +1 -1
  258. package/jsx/core/Tree/Tree.stories.jsx +14 -0
  259. package/jsx/core/Tree/Tree.stories.jsx.map +1 -1
  260. package/jsx/cs/ArticleList/ArticleList.stories.d.ts.map +1 -1
  261. package/jsx/cs/ArticleList/ArticleList.stories.jsx +1 -1
  262. package/jsx/cs/ArticleList/ArticleList.stories.jsx.map +1 -1
  263. package/jsx/cs/CallControlPanel/CallControlPanel.mocks.d.ts +7 -2
  264. package/jsx/cs/CallControlPanel/CallControlPanel.mocks.d.ts.map +1 -1
  265. package/jsx/cs/CallControlPanel/CallControlPanel.mocks.js +151 -9
  266. package/jsx/cs/CallControlPanel/CallControlPanel.mocks.js.map +1 -1
  267. package/jsx/cs/CallControlPanel/CallControlPanel.stories.d.ts +5 -2
  268. package/jsx/cs/CallControlPanel/CallControlPanel.stories.d.ts.map +1 -1
  269. package/jsx/cs/CallControlPanel/CallControlPanel.stories.jsx +208 -90
  270. package/jsx/cs/CallControlPanel/CallControlPanel.stories.jsx.map +1 -1
  271. package/jsx/cs/IntelligentGuidance/IntelligentGuidance.stories.jsx +2 -2
  272. package/jsx/cs/IntelligentGuidance/IntelligentGuidance.stories.jsx.map +1 -1
  273. package/jsx/cs/InteractionNotification/InteractionNotification.stories.d.ts +1 -0
  274. package/jsx/cs/InteractionNotification/InteractionNotification.stories.d.ts.map +1 -1
  275. package/jsx/cs/InteractionNotification/InteractionNotification.stories.jsx +6 -6
  276. package/jsx/cs/InteractionNotification/InteractionNotification.stories.jsx.map +1 -1
  277. package/jsx/cs/InteractionTimer/InteractionTimer.mocks.js +5 -5
  278. package/jsx/cs/InteractionTimer/InteractionTimer.mocks.js.map +1 -1
  279. package/jsx/cs/InteractionTimer/InteractionTimer.stories.d.ts +1 -0
  280. package/jsx/cs/InteractionTimer/InteractionTimer.stories.d.ts.map +1 -1
  281. package/jsx/cs/InteractionTimer/InteractionTimer.stories.jsx +33 -14
  282. package/jsx/cs/InteractionTimer/InteractionTimer.stories.jsx.map +1 -1
  283. package/jsx/cs/TaskManager/TaskManager.mocks.d.ts +12 -0
  284. package/jsx/cs/TaskManager/TaskManager.mocks.d.ts.map +1 -1
  285. package/jsx/cs/TaskManager/TaskManager.mocks.js +86 -0
  286. package/jsx/cs/TaskManager/TaskManager.mocks.js.map +1 -1
  287. package/jsx/cs/TaskManager/TaskManager.stories.d.ts +2 -1
  288. package/jsx/cs/TaskManager/TaskManager.stories.d.ts.map +1 -1
  289. package/jsx/cs/TaskManager/TaskManager.stories.jsx +103 -25
  290. package/jsx/cs/TaskManager/TaskManager.stories.jsx.map +1 -1
  291. package/jsx/cs/TaskManager/TaskManager.styles.js +2 -1
  292. package/jsx/cs/TaskManager/TaskManager.styles.js.map +1 -1
  293. package/jsx/dnd/StandardDragDropList/Demo.d.ts +7 -0
  294. package/jsx/dnd/StandardDragDropList/Demo.d.ts.map +1 -0
  295. package/jsx/dnd/StandardDragDropList/Demo.jsx +158 -0
  296. package/jsx/dnd/StandardDragDropList/Demo.jsx.map +1 -0
  297. package/jsx/dnd/StandardDragDropList/GroupConfig.d.ts +10 -0
  298. package/jsx/dnd/StandardDragDropList/GroupConfig.d.ts.map +1 -0
  299. package/jsx/dnd/StandardDragDropList/GroupConfig.jsx +26 -0
  300. package/jsx/dnd/StandardDragDropList/GroupConfig.jsx.map +1 -0
  301. package/jsx/dnd/StandardDragDropList/ItemConfig.d.ts +12 -0
  302. package/jsx/dnd/StandardDragDropList/ItemConfig.d.ts.map +1 -0
  303. package/jsx/dnd/StandardDragDropList/ItemConfig.jsx +21 -0
  304. package/jsx/dnd/StandardDragDropList/ItemConfig.jsx.map +1 -0
  305. package/jsx/dnd/StandardDragDropList/Popover.d.ts +14 -0
  306. package/jsx/dnd/StandardDragDropList/Popover.d.ts.map +1 -0
  307. package/jsx/dnd/StandardDragDropList/Popover.jsx +51 -0
  308. package/jsx/dnd/StandardDragDropList/Popover.jsx.map +1 -0
  309. package/jsx/dnd/StandardDragDropList/SelectionMenu.d.ts +16 -0
  310. package/jsx/dnd/StandardDragDropList/SelectionMenu.d.ts.map +1 -0
  311. package/jsx/dnd/StandardDragDropList/SelectionMenu.jsx +104 -0
  312. package/jsx/dnd/StandardDragDropList/SelectionMenu.jsx.map +1 -0
  313. package/jsx/dnd/StandardDragDropList/StandardDragDropList.stories.d.ts +5 -0
  314. package/jsx/dnd/StandardDragDropList/StandardDragDropList.stories.d.ts.map +1 -0
  315. package/jsx/dnd/StandardDragDropList/StandardDragDropList.stories.jsx +15 -0
  316. package/jsx/dnd/StandardDragDropList/StandardDragDropList.stories.jsx.map +1 -0
  317. package/jsx/dnd/StandardDragDropList/mockData.d.ts +26 -0
  318. package/jsx/dnd/StandardDragDropList/mockData.d.ts.map +1 -0
  319. package/jsx/dnd/StandardDragDropList/mockData.js +77 -0
  320. package/jsx/dnd/StandardDragDropList/mockData.js.map +1 -0
  321. package/jsx/rte/Editor/Editor.stories.d.ts.map +1 -1
  322. package/jsx/rte/Editor/Editor.stories.jsx +1 -1
  323. package/jsx/rte/Editor/Editor.stories.jsx.map +1 -1
  324. package/jsx/rte/RichTextEditor/RichTextEditor.stories.d.ts +4 -1
  325. package/jsx/rte/RichTextEditor/RichTextEditor.stories.d.ts.map +1 -1
  326. package/jsx/rte/RichTextEditor/RichTextEditor.stories.jsx +11 -4
  327. package/jsx/rte/RichTextEditor/RichTextEditor.stories.jsx.map +1 -1
  328. package/jsx/rte/RichTextEditor/RichTextViewer.stories.d.ts.map +1 -1
  329. package/jsx/rte/RichTextEditor/RichTextViewer.stories.jsx +2 -2
  330. package/jsx/rte/RichTextEditor/RichTextViewer.stories.jsx.map +1 -1
  331. package/jsx/social/Chat/Chat.mocks.d.ts +15 -2
  332. package/jsx/social/Chat/Chat.mocks.d.ts.map +1 -1
  333. package/jsx/social/Chat/Chat.mocks.js +5 -6
  334. package/jsx/social/Chat/Chat.mocks.js.map +1 -1
  335. package/jsx/social/Chat/Chat.stories.d.ts.map +1 -1
  336. package/jsx/social/Chat/Chat.stories.jsx +91 -11
  337. package/jsx/social/Chat/Chat.stories.jsx.map +1 -1
  338. package/jsx/social/Email/Email.mocks.d.ts +70 -9
  339. package/jsx/social/Email/Email.mocks.d.ts.map +1 -1
  340. package/jsx/social/Email/Email.mocks.jsx +386 -55
  341. package/jsx/social/Email/Email.mocks.jsx.map +1 -1
  342. package/jsx/social/Email/Email.stories.d.ts +50 -11
  343. package/jsx/social/Email/Email.stories.d.ts.map +1 -1
  344. package/jsx/social/Email/Email.stories.jsx +851 -323
  345. package/jsx/social/Email/Email.stories.jsx.map +1 -1
  346. package/jsx/social/Email/Email.styles.d.ts +0 -1
  347. package/jsx/social/Email/Email.styles.d.ts.map +1 -1
  348. package/jsx/social/Email/Email.styles.js +0 -3
  349. package/jsx/social/Email/Email.styles.js.map +1 -1
  350. package/jsx/social/Feed/Feed.mocks.d.ts +13 -18
  351. package/jsx/social/Feed/Feed.mocks.d.ts.map +1 -1
  352. package/jsx/social/Feed/Feed.mocks.jsx +10 -5
  353. package/jsx/social/Feed/Feed.mocks.jsx.map +1 -1
  354. package/jsx/social/Feed/Feed.stories.d.ts +3 -2
  355. package/jsx/social/Feed/Feed.stories.d.ts.map +1 -1
  356. package/jsx/social/Feed/Feed.stories.jsx +12 -7
  357. package/jsx/social/Feed/Feed.stories.jsx.map +1 -1
  358. package/jsx/social/Feed/FeedNewPost.stories.d.ts.map +1 -1
  359. package/jsx/social/Feed/FeedNewPost.stories.jsx +4 -3
  360. package/jsx/social/Feed/FeedNewPost.stories.jsx.map +1 -1
  361. package/jsx/social/Feed/FeedPost.stories.d.ts.map +1 -1
  362. package/jsx/social/Feed/FeedPost.stories.jsx +12 -11
  363. package/jsx/social/Feed/FeedPost.stories.jsx.map +1 -1
  364. package/jsx/social/Feed/FeedReply.stories.d.ts +1 -1
  365. package/jsx/social/Feed/FeedReply.stories.d.ts.map +1 -1
  366. package/jsx/social/Feed/FeedReply.stories.jsx +7 -7
  367. package/jsx/social/Feed/FeedReply.stories.jsx.map +1 -1
  368. package/jsx/social/Feed/FeedReplyInput.stories.d.ts.map +1 -1
  369. package/jsx/social/Feed/FeedReplyInput.stories.jsx +4 -3
  370. package/jsx/social/Feed/FeedReplyInput.stories.jsx.map +1 -1
  371. package/jsx/tools/Clipboard/Clipboard.mocks.d.ts +6 -0
  372. package/jsx/tools/Clipboard/Clipboard.mocks.d.ts.map +1 -0
  373. package/jsx/tools/Clipboard/Clipboard.mocks.jsx +81 -0
  374. package/jsx/tools/Clipboard/Clipboard.mocks.jsx.map +1 -0
  375. package/jsx/tools/Clipboard/Clipboard.stories.d.ts +6 -0
  376. package/jsx/tools/Clipboard/Clipboard.stories.d.ts.map +1 -0
  377. package/jsx/tools/Clipboard/Clipboard.stories.jsx +69 -0
  378. package/jsx/tools/Clipboard/Clipboard.stories.jsx.map +1 -0
  379. package/jsx/tools/DevTools/DevTools.mocks.d.ts +3 -0
  380. package/jsx/tools/DevTools/DevTools.mocks.d.ts.map +1 -0
  381. package/jsx/tools/DevTools/DevTools.mocks.js +3 -0
  382. package/jsx/tools/DevTools/DevTools.mocks.js.map +1 -0
  383. package/jsx/tools/DevTools/DevTools.stories.d.ts +10 -0
  384. package/jsx/tools/DevTools/DevTools.stories.d.ts.map +1 -0
  385. package/jsx/tools/DevTools/DevTools.stories.jsx +35 -0
  386. package/jsx/tools/DevTools/DevTools.stories.jsx.map +1 -0
  387. package/jsx/tools/PreviewShell/PreviewShell.mocks.d.ts +9 -0
  388. package/jsx/tools/PreviewShell/PreviewShell.mocks.d.ts.map +1 -0
  389. package/jsx/tools/PreviewShell/PreviewShell.mocks.jsx +58 -0
  390. package/jsx/tools/PreviewShell/PreviewShell.mocks.jsx.map +1 -0
  391. package/jsx/tools/PreviewShell/PreviewShell.stories.d.ts +16 -0
  392. package/jsx/tools/PreviewShell/PreviewShell.stories.d.ts.map +1 -0
  393. package/jsx/tools/PreviewShell/PreviewShell.stories.jsx +153 -0
  394. package/jsx/tools/PreviewShell/PreviewShell.stories.jsx.map +1 -0
  395. package/jsx/tools/PreviewShell/PreviewShell.styles.d.ts +3 -0
  396. package/jsx/tools/PreviewShell/PreviewShell.styles.d.ts.map +1 -0
  397. package/jsx/tools/PreviewShell/PreviewShell.styles.js +7 -0
  398. package/jsx/tools/PreviewShell/PreviewShell.styles.js.map +1 -0
  399. package/jsx/work/AppAnnouncement/AppAnnouncement.stories.d.ts.map +1 -1
  400. package/jsx/work/AppAnnouncement/AppAnnouncement.stories.jsx +5 -4
  401. package/jsx/work/AppAnnouncement/AppAnnouncement.stories.jsx.map +1 -1
  402. package/jsx/work/CaseView/Attachments.mocks.jsx +5 -6
  403. package/jsx/work/CaseView/Attachments.mocks.jsx.map +1 -1
  404. package/jsx/work/CaseView/CaseView.mocks.d.ts +72 -2
  405. package/jsx/work/CaseView/CaseView.mocks.d.ts.map +1 -1
  406. package/jsx/work/CaseView/CaseView.mocks.jsx +201 -11
  407. package/jsx/work/CaseView/CaseView.mocks.jsx.map +1 -1
  408. package/jsx/work/CaseView/CaseView.stories.d.ts +4 -22
  409. package/jsx/work/CaseView/CaseView.stories.d.ts.map +1 -1
  410. package/jsx/work/CaseView/CaseView.stories.jsx +55 -230
  411. package/jsx/work/CaseView/CaseView.stories.jsx.map +1 -1
  412. package/jsx/work/CaseView/Pulse.mocks.d.ts +4 -3
  413. package/jsx/work/CaseView/Pulse.mocks.d.ts.map +1 -1
  414. package/jsx/work/CaseView/Pulse.mocks.jsx +2 -2
  415. package/jsx/work/CaseView/Pulse.mocks.jsx.map +1 -1
  416. package/jsx/work/ConfigurableLayout/ConfigurableLayout.stories.d.ts.map +1 -1
  417. package/jsx/work/ConfigurableLayout/ConfigurableLayout.stories.jsx +1 -0
  418. package/jsx/work/ConfigurableLayout/ConfigurableLayout.stories.jsx.map +1 -1
  419. package/jsx/work/Confirmation/Confirmation.stories.d.ts +3 -0
  420. package/jsx/work/Confirmation/Confirmation.stories.d.ts.map +1 -1
  421. package/jsx/work/Confirmation/Confirmation.stories.jsx +12 -8
  422. package/jsx/work/Confirmation/Confirmation.stories.jsx.map +1 -1
  423. package/jsx/work/Details/Details.stories.d.ts.map +1 -1
  424. package/jsx/work/Details/Details.stories.jsx +67 -64
  425. package/jsx/work/Details/Details.stories.jsx.map +1 -1
  426. package/jsx/work/SearchResults/SearchResults.mocks.d.ts +6 -0
  427. package/jsx/work/SearchResults/SearchResults.mocks.d.ts.map +1 -1
  428. package/jsx/work/SearchResults/SearchResults.mocks.jsx +39 -38
  429. package/jsx/work/SearchResults/SearchResults.mocks.jsx.map +1 -1
  430. package/jsx/work/SearchResults/SearchResults.stories.d.ts +1 -0
  431. package/jsx/work/SearchResults/SearchResults.stories.d.ts.map +1 -1
  432. package/jsx/work/SearchResults/SearchResults.stories.jsx +74 -44
  433. package/jsx/work/SearchResults/SearchResults.stories.jsx.map +1 -1
  434. package/jsx/work/Stages/Stages.mocks.d.ts +14 -0
  435. package/jsx/work/Stages/Stages.mocks.d.ts.map +1 -0
  436. package/jsx/work/Stages/Stages.mocks.jsx +40 -0
  437. package/jsx/work/Stages/Stages.mocks.jsx.map +1 -0
  438. package/jsx/work/Stages/Stages.stories.d.ts +1 -1
  439. package/jsx/work/Stages/Stages.stories.d.ts.map +1 -1
  440. package/jsx/work/Stages/Stages.stories.jsx +12 -46
  441. package/jsx/work/Stages/Stages.stories.jsx.map +1 -1
  442. package/jsx/work/Stakeholders/Stakeholders.stories.d.ts.map +1 -1
  443. package/jsx/work/Stakeholders/Stakeholders.stories.jsx +1 -0
  444. package/jsx/work/Stakeholders/Stakeholders.stories.jsx.map +1 -1
  445. package/jsx/work/Tasks/TaskList.stories.d.ts.map +1 -1
  446. package/jsx/work/Tasks/TaskList.stories.jsx +3 -1
  447. package/jsx/work/Tasks/TaskList.stories.jsx.map +1 -1
  448. package/jsx/work/Tasks/Tasks.stories.d.ts +4 -0
  449. package/jsx/work/Tasks/Tasks.stories.d.ts.map +1 -1
  450. package/jsx/work/Tasks/Tasks.stories.jsx +20 -10
  451. package/jsx/work/Tasks/Tasks.stories.jsx.map +1 -1
  452. package/jsx/work/Timeline/Timeline.stories.d.ts.map +1 -1
  453. package/jsx/work/Timeline/Timeline.stories.jsx +2 -1
  454. package/jsx/work/Timeline/Timeline.stories.jsx.map +1 -1
  455. package/jsx/wss/AppShell/AppShell.mocks.d.ts +35 -0
  456. package/jsx/wss/AppShell/AppShell.mocks.d.ts.map +1 -0
  457. package/jsx/wss/AppShell/AppShell.mocks.jsx +75 -0
  458. package/jsx/wss/AppShell/AppShell.mocks.jsx.map +1 -0
  459. package/jsx/wss/AppShell/AppShell.stories.d.ts +19 -0
  460. package/jsx/wss/AppShell/AppShell.stories.d.ts.map +1 -0
  461. package/jsx/wss/AppShell/AppShell.stories.jsx +68 -0
  462. package/jsx/wss/AppShell/AppShell.stories.jsx.map +1 -0
  463. package/jsx/wss/AppShell/AppShell.styles.d.ts +2 -0
  464. package/jsx/wss/AppShell/AppShell.styles.d.ts.map +1 -0
  465. package/jsx/wss/AppShell/AppShell.styles.js +5 -0
  466. package/jsx/wss/AppShell/AppShell.styles.js.map +1 -0
  467. package/jsx/wss/CaseView/CaseView.mocks.d.ts +13 -0
  468. package/jsx/wss/CaseView/CaseView.mocks.d.ts.map +1 -0
  469. package/jsx/wss/CaseView/CaseView.mocks.jsx +34 -0
  470. package/jsx/wss/CaseView/CaseView.mocks.jsx.map +1 -0
  471. package/jsx/wss/CaseView/CaseView.stories.d.ts +12 -0
  472. package/jsx/wss/CaseView/CaseView.stories.d.ts.map +1 -0
  473. package/jsx/wss/CaseView/CaseView.stories.jsx +69 -0
  474. package/jsx/wss/CaseView/CaseView.stories.jsx.map +1 -0
  475. package/jsx/wss/PageTemplates/PageTemplates.stories.d.ts +15 -0
  476. package/jsx/wss/PageTemplates/PageTemplates.stories.d.ts.map +1 -0
  477. package/jsx/wss/PageTemplates/PageTemplates.stories.jsx +48 -0
  478. package/jsx/wss/PageTemplates/PageTemplates.stories.jsx.map +1 -0
  479. package/jsx/wss/QuickCreate/QuickCreate.stories.d.ts +10 -0
  480. package/jsx/wss/QuickCreate/QuickCreate.stories.d.ts.map +1 -0
  481. package/jsx/wss/QuickCreate/QuickCreate.stories.jsx +37 -0
  482. package/jsx/wss/QuickCreate/QuickCreate.stories.jsx.map +1 -0
  483. package/lib/build/AppHeader/AppHeader.stories.d.ts +1 -1
  484. package/lib/build/AppHeader/AppHeader.stories.d.ts.map +1 -1
  485. package/lib/build/AppHeader/AppHeader.stories.js +100 -81
  486. package/lib/build/AppHeader/AppHeader.stories.js.map +1 -1
  487. package/lib/build/DynamicContentEditor/DynamicContentEditor.stories.d.ts +1 -1
  488. package/lib/build/DynamicContentEditor/DynamicContentEditor.stories.d.ts.map +1 -1
  489. package/lib/build/DynamicContentEditor/DynamicContentEditor.stories.js +22 -1
  490. package/lib/build/DynamicContentEditor/DynamicContentEditor.stories.js.map +1 -1
  491. package/lib/build/ExpressionBuilder/ExpressionBuilder.mocks.d.ts +60 -0
  492. package/lib/build/ExpressionBuilder/ExpressionBuilder.mocks.d.ts.map +1 -0
  493. package/lib/build/ExpressionBuilder/ExpressionBuilder.mocks.js +524 -0
  494. package/lib/build/ExpressionBuilder/ExpressionBuilder.mocks.js.map +1 -0
  495. package/lib/build/ExpressionBuilder/ExpressionBuilder.stories.d.ts +26 -0
  496. package/lib/build/ExpressionBuilder/ExpressionBuilder.stories.d.ts.map +1 -0
  497. package/lib/build/ExpressionBuilder/ExpressionBuilder.stories.js +336 -0
  498. package/lib/build/ExpressionBuilder/ExpressionBuilder.stories.js.map +1 -0
  499. package/lib/build/FlowModeller/AddNodeUtils.mocks.d.ts +4 -4
  500. package/lib/build/FlowModeller/AddNodeUtils.mocks.d.ts.map +1 -1
  501. package/lib/build/FlowModeller/AddNodeUtils.mocks.js.map +1 -1
  502. package/lib/build/FlowModeller/FlowModeller.mocks.d.ts +4 -2
  503. package/lib/build/FlowModeller/FlowModeller.mocks.d.ts.map +1 -1
  504. package/lib/build/FlowModeller/FlowModeller.mocks.js +117 -31
  505. package/lib/build/FlowModeller/FlowModeller.mocks.js.map +1 -1
  506. package/lib/build/FlowModeller/FlowModeller.stories.d.ts +7 -2
  507. package/lib/build/FlowModeller/FlowModeller.stories.d.ts.map +1 -1
  508. package/lib/build/FlowModeller/FlowModeller.stories.js +244 -64
  509. package/lib/build/FlowModeller/FlowModeller.stories.js.map +1 -1
  510. package/lib/build/LifeCycle/LifeCycle.mocks.d.ts.map +1 -1
  511. package/lib/build/LifeCycle/LifeCycle.mocks.js +40 -0
  512. package/lib/build/LifeCycle/LifeCycle.mocks.js.map +1 -1
  513. package/lib/build/ObjectSelect/ObjectSelect.mocks.d.ts +25 -8
  514. package/lib/build/ObjectSelect/ObjectSelect.mocks.d.ts.map +1 -1
  515. package/lib/build/ObjectSelect/ObjectSelect.mocks.js +122 -61
  516. package/lib/build/ObjectSelect/ObjectSelect.mocks.js.map +1 -1
  517. package/lib/build/ObjectSelect/ObjectSelect.stories.d.ts.map +1 -1
  518. package/lib/build/ObjectSelect/ObjectSelect.stories.js +116 -25
  519. package/lib/build/ObjectSelect/ObjectSelect.stories.js.map +1 -1
  520. package/lib/build/PageTemplates/PageTemplates.mocks.d.ts.map +1 -1
  521. package/lib/build/PageTemplates/PageTemplates.mocks.js +4 -4
  522. package/lib/build/PageTemplates/PageTemplates.mocks.js.map +1 -1
  523. package/lib/build/PageTemplates/PageTemplates.stories.d.ts.map +1 -1
  524. package/lib/build/PageTemplates/PageTemplates.stories.js +3 -3
  525. package/lib/build/PageTemplates/PageTemplates.stories.js.map +1 -1
  526. package/lib/build/Workbench/Workbench.stories.d.ts +1 -0
  527. package/lib/build/Workbench/Workbench.stories.d.ts.map +1 -1
  528. package/lib/build/Workbench/Workbench.stories.js +196 -4
  529. package/lib/build/Workbench/Workbench.stories.js.map +1 -1
  530. package/lib/condition-builder/ConditionBuilder/ConditionBuilder.mocks.d.ts +1 -1
  531. package/lib/condition-builder/ConditionBuilder/ConditionBuilder.mocks.d.ts.map +1 -1
  532. package/lib/condition-builder/ConditionBuilder/ConditionBuilder.mocks.js +3 -1
  533. package/lib/condition-builder/ConditionBuilder/ConditionBuilder.mocks.js.map +1 -1
  534. package/lib/condition-builder/ConditionBuilder/ConditionBuilder.stories.d.ts +2 -1
  535. package/lib/condition-builder/ConditionBuilder/ConditionBuilder.stories.d.ts.map +1 -1
  536. package/lib/condition-builder/ConditionBuilder/ConditionBuilder.stories.js +29 -15
  537. package/lib/condition-builder/ConditionBuilder/ConditionBuilder.stories.js.map +1 -1
  538. package/lib/condition-builder/ConditionBuilder/ConditionBuilder.styles.d.ts +1 -1
  539. package/lib/condition-builder/ConditionBuilder/ConditionBuilder.styles.d.ts.map +1 -1
  540. package/lib/condition-builder/ConditionBuilder/props.mock.d.ts.map +1 -1
  541. package/lib/condition-builder/ConditionBuilder/props.mock.js +132 -31
  542. package/lib/condition-builder/ConditionBuilder/props.mock.js.map +1 -1
  543. package/lib/condition-builder/ConditionInput/ConditionInput.stories.d.ts +10 -0
  544. package/lib/condition-builder/ConditionInput/ConditionInput.stories.d.ts.map +1 -0
  545. package/lib/condition-builder/ConditionInput/ConditionInput.stories.js +41 -0
  546. package/lib/condition-builder/ConditionInput/ConditionInput.stories.js.map +1 -0
  547. package/lib/condition-builder/PromotedFilters/PromotedFilters.mocks.d.ts +4 -0
  548. package/lib/condition-builder/PromotedFilters/PromotedFilters.mocks.d.ts.map +1 -0
  549. package/lib/condition-builder/PromotedFilters/PromotedFilters.mocks.js +181 -0
  550. package/lib/condition-builder/PromotedFilters/PromotedFilters.mocks.js.map +1 -0
  551. package/lib/condition-builder/PromotedFilters/PromotedFilters.stories.d.ts +8 -0
  552. package/lib/condition-builder/PromotedFilters/PromotedFilters.stories.d.ts.map +1 -0
  553. package/lib/condition-builder/PromotedFilters/PromotedFilters.stories.js +24 -0
  554. package/lib/condition-builder/PromotedFilters/PromotedFilters.stories.js.map +1 -0
  555. package/lib/condition-builder/PromotedFilters/PromotedFilters.styles.d.ts +9 -0
  556. package/lib/condition-builder/PromotedFilters/PromotedFilters.styles.d.ts.map +1 -0
  557. package/lib/condition-builder/PromotedFilters/PromotedFilters.styles.js +35 -0
  558. package/lib/condition-builder/PromotedFilters/PromotedFilters.styles.js.map +1 -0
  559. package/lib/core/AdditionalInfo/AdditionalInfo.stories.d.ts +9 -0
  560. package/lib/core/AdditionalInfo/AdditionalInfo.stories.d.ts.map +1 -0
  561. package/lib/core/AdditionalInfo/AdditionalInfo.stories.js +16 -0
  562. package/lib/core/AdditionalInfo/AdditionalInfo.stories.js.map +1 -0
  563. package/lib/core/AppShell/AppShell.mocks.d.ts +1 -1
  564. package/lib/core/AppShell/AppShell.mocks.js +5 -5
  565. package/lib/core/AppShell/AppShell.mocks.js.map +1 -1
  566. package/lib/core/AppShell/AppShell.stories.d.ts +2 -0
  567. package/lib/core/AppShell/AppShell.stories.d.ts.map +1 -1
  568. package/lib/core/AppShell/AppShell.stories.js +47 -13
  569. package/lib/core/AppShell/AppShell.stories.js.map +1 -1
  570. package/lib/core/Banner/Banner.stories.d.ts +0 -1
  571. package/lib/core/Banner/Banner.stories.d.ts.map +1 -1
  572. package/lib/core/Banner/Banner.stories.js +2 -13
  573. package/lib/core/Banner/Banner.stories.js.map +1 -1
  574. package/lib/core/Checkbox/Checkbox.stories.d.ts +6 -2
  575. package/lib/core/Checkbox/Checkbox.stories.d.ts.map +1 -1
  576. package/lib/core/Checkbox/Checkbox.stories.js +26 -7
  577. package/lib/core/Checkbox/Checkbox.stories.js.map +1 -1
  578. package/lib/core/CheckboxGroup/CheckboxGroup.stories.d.ts +6 -2
  579. package/lib/core/CheckboxGroup/CheckboxGroup.stories.d.ts.map +1 -1
  580. package/lib/core/CheckboxGroup/CheckboxGroup.stories.js +40 -4
  581. package/lib/core/CheckboxGroup/CheckboxGroup.stories.js.map +1 -1
  582. package/lib/core/ColorPicker/ColorPicker.stories.d.ts +4 -1
  583. package/lib/core/ColorPicker/ColorPicker.stories.d.ts.map +1 -1
  584. package/lib/core/ColorPicker/ColorPicker.stories.js +10 -3
  585. package/lib/core/ColorPicker/ColorPicker.stories.js.map +1 -1
  586. package/lib/core/ComboBox/ComboBox.stories.d.ts +1 -0
  587. package/lib/core/ComboBox/ComboBox.stories.d.ts.map +1 -1
  588. package/lib/core/ComboBox/ComboBox.stories.js +40 -8
  589. package/lib/core/ComboBox/ComboBox.stories.js.map +1 -1
  590. package/lib/core/CompositeInput/CompositeInput.mocks.d.ts +8 -0
  591. package/lib/core/CompositeInput/CompositeInput.mocks.d.ts.map +1 -0
  592. package/lib/core/CompositeInput/CompositeInput.mocks.js +6 -0
  593. package/lib/core/CompositeInput/CompositeInput.mocks.js.map +1 -0
  594. package/lib/core/CompositeInput/CompositeInput.stories.d.ts +9 -0
  595. package/lib/core/CompositeInput/CompositeInput.stories.d.ts.map +1 -0
  596. package/lib/core/CompositeInput/CompositeInput.stories.js +55 -0
  597. package/lib/core/CompositeInput/CompositeInput.stories.js.map +1 -0
  598. package/lib/core/CreditCard/CreditCard.stories.d.ts +4 -1
  599. package/lib/core/CreditCard/CreditCard.stories.d.ts.map +1 -1
  600. package/lib/core/CreditCard/CreditCard.stories.js +11 -4
  601. package/lib/core/CreditCard/CreditCard.stories.js.map +1 -1
  602. package/lib/core/Currency/Currency.stories.d.ts +6 -1
  603. package/lib/core/Currency/Currency.stories.d.ts.map +1 -1
  604. package/lib/core/Currency/Currency.stories.js +30 -7
  605. package/lib/core/Currency/Currency.stories.js.map +1 -1
  606. package/lib/core/DateTime/DateTime.stories.d.ts +41 -10
  607. package/lib/core/DateTime/DateTime.stories.d.ts.map +1 -1
  608. package/lib/core/DateTime/DateTime.stories.js +188 -17
  609. package/lib/core/DateTime/DateTime.stories.js.map +1 -1
  610. package/lib/core/DateTime/DateTimePicker.stories.d.ts.map +1 -1
  611. package/lib/core/DateTime/DateTimePicker.stories.js +1 -1
  612. package/lib/core/DateTime/DateTimePicker.stories.js.map +1 -1
  613. package/lib/core/Dialog/Dialog.stories.d.ts +6 -0
  614. package/lib/core/Dialog/Dialog.stories.d.ts.map +1 -0
  615. package/lib/core/Dialog/Dialog.stories.js +47 -0
  616. package/lib/core/Dialog/Dialog.stories.js.map +1 -0
  617. package/lib/core/FieldGroup/FieldGroup.stories.d.ts +2 -0
  618. package/lib/core/FieldGroup/FieldGroup.stories.d.ts.map +1 -1
  619. package/lib/core/FieldGroup/FieldGroup.stories.js +11 -3
  620. package/lib/core/FieldGroup/FieldGroup.stories.js.map +1 -1
  621. package/lib/core/FieldGroup/FieldGroupList.stories.d.ts.map +1 -1
  622. package/lib/core/FieldGroup/FieldGroupList.stories.js +4 -0
  623. package/lib/core/FieldGroup/FieldGroupList.stories.js.map +1 -1
  624. package/lib/core/FieldValueList/FieldValueList.stories.d.ts +1 -0
  625. package/lib/core/FieldValueList/FieldValueList.stories.d.ts.map +1 -1
  626. package/lib/core/FieldValueList/FieldValueList.stories.js +32 -2
  627. package/lib/core/FieldValueList/FieldValueList.stories.js.map +1 -1
  628. package/lib/core/FieldValueList/FieldValueList.styles.d.ts +2 -0
  629. package/lib/core/FieldValueList/FieldValueList.styles.d.ts.map +1 -0
  630. package/lib/core/FieldValueList/FieldValueList.styles.js +8 -0
  631. package/lib/core/FieldValueList/FieldValueList.styles.js.map +1 -0
  632. package/lib/core/File/FileDisplay.stories.d.ts.map +1 -1
  633. package/lib/core/File/FileDisplay.stories.js +10 -5
  634. package/lib/core/File/FileDisplay.stories.js.map +1 -1
  635. package/lib/core/Form/Form.mocks.d.ts +6 -0
  636. package/lib/core/Form/Form.mocks.d.ts.map +1 -1
  637. package/lib/core/Form/Form.mocks.js +28 -5
  638. package/lib/core/Form/Form.mocks.js.map +1 -1
  639. package/lib/core/Form/Form.stories.d.ts +1 -0
  640. package/lib/core/Form/Form.stories.d.ts.map +1 -1
  641. package/lib/core/Form/Form.stories.js +4 -1
  642. package/lib/core/Form/Form.stories.js.map +1 -1
  643. package/lib/core/HTML/HTML.stories.js +1 -1
  644. package/lib/core/HTML/HTML.stories.js.map +1 -1
  645. package/lib/core/Icon/Icon.stories.js.map +1 -1
  646. package/lib/core/IconPicker/IconPicker.stories.d.ts.map +1 -1
  647. package/lib/core/IconPicker/IconPicker.stories.js +6 -9
  648. package/lib/core/IconPicker/IconPicker.stories.js.map +1 -1
  649. package/lib/core/Input/Input.stories.d.ts +2 -0
  650. package/lib/core/Input/Input.stories.d.ts.map +1 -1
  651. package/lib/core/Input/Input.stories.js +78 -2
  652. package/lib/core/Input/Input.stories.js.map +1 -1
  653. package/lib/core/Lightbox/Lightbox.stories.js +1 -1
  654. package/lib/core/Lightbox/Lightbox.stories.js.map +1 -1
  655. package/lib/core/Link/Link.stories.d.ts +1 -0
  656. package/lib/core/Link/Link.stories.d.ts.map +1 -1
  657. package/lib/core/Link/Link.stories.js +5 -1
  658. package/lib/core/Link/Link.stories.js.map +1 -1
  659. package/lib/core/ListToolbar/ListToolbar.stories.d.ts +7 -1
  660. package/lib/core/ListToolbar/ListToolbar.stories.d.ts.map +1 -1
  661. package/lib/core/ListToolbar/ListToolbar.stories.js +21 -6
  662. package/lib/core/ListToolbar/ListToolbar.stories.js.map +1 -1
  663. package/lib/core/Location/Location.stories.d.ts +4 -1
  664. package/lib/core/Location/Location.stories.d.ts.map +1 -1
  665. package/lib/core/Location/Location.stories.js +13 -6
  666. package/lib/core/Location/Location.stories.js.map +1 -1
  667. package/lib/core/Location/locationTestUtils.d.ts +3 -0
  668. package/lib/core/Location/locationTestUtils.d.ts.map +1 -0
  669. package/lib/core/Location/locationTestUtils.js +30 -0
  670. package/lib/core/Location/locationTestUtils.js.map +1 -0
  671. package/lib/core/Menu/Menu.stories.d.ts.map +1 -1
  672. package/lib/core/Menu/Menu.stories.js +7 -6
  673. package/lib/core/Menu/Menu.stories.js.map +1 -1
  674. package/lib/core/Modal/Modal.stories.d.ts +10 -1
  675. package/lib/core/Modal/Modal.stories.d.ts.map +1 -1
  676. package/lib/core/Modal/Modal.stories.js +49 -26
  677. package/lib/core/Modal/Modal.stories.js.map +1 -1
  678. package/lib/core/MultiStepForm/MultiStepForm.mocks.d.ts +34 -0
  679. package/lib/core/MultiStepForm/MultiStepForm.mocks.d.ts.map +1 -0
  680. package/lib/core/MultiStepForm/MultiStepForm.mocks.js +75 -0
  681. package/lib/core/MultiStepForm/MultiStepForm.mocks.js.map +1 -0
  682. package/lib/core/{MultiStep/MultiStep.stories.d.ts → MultiStepForm/MultiStepForm.stories.d.ts} +2 -2
  683. package/lib/core/MultiStepForm/MultiStepForm.stories.d.ts.map +1 -0
  684. package/lib/core/MultiStepForm/MultiStepForm.stories.js +187 -0
  685. package/lib/core/MultiStepForm/MultiStepForm.stories.js.map +1 -0
  686. package/lib/core/Number/Number.stories.d.ts +5 -2
  687. package/lib/core/Number/Number.stories.d.ts.map +1 -1
  688. package/lib/core/Number/Number.stories.js +204 -24
  689. package/lib/core/Number/Number.stories.js.map +1 -1
  690. package/lib/core/PageTemplates/PageTemplates.mocks.d.ts +1 -1
  691. package/lib/core/PageTemplates/PageTemplates.mocks.d.ts.map +1 -1
  692. package/lib/core/Phone/Phone.stories.d.ts +4 -1
  693. package/lib/core/Phone/Phone.stories.d.ts.map +1 -1
  694. package/lib/core/Phone/Phone.stories.js +10 -3
  695. package/lib/core/Phone/Phone.stories.js.map +1 -1
  696. package/lib/core/Popover/Popover.stories.js +1 -1
  697. package/lib/core/Popover/Popover.stories.js.map +1 -1
  698. package/lib/core/RadioButton/RadioButton.stories.d.ts +6 -2
  699. package/lib/core/RadioButton/RadioButton.stories.d.ts.map +1 -1
  700. package/lib/core/RadioButton/RadioButton.stories.js +22 -5
  701. package/lib/core/RadioButton/RadioButton.stories.js.map +1 -1
  702. package/lib/core/RadioButtonGroup/RadioButtonGroup.stories.d.ts +6 -2
  703. package/lib/core/RadioButtonGroup/RadioButtonGroup.stories.d.ts.map +1 -1
  704. package/lib/core/RadioButtonGroup/RadioButtonGroup.stories.js +40 -4
  705. package/lib/core/RadioButtonGroup/RadioButtonGroup.stories.js.map +1 -1
  706. package/lib/core/SearchInput/SearchInput.mocks.d.ts +12 -0
  707. package/lib/core/SearchInput/SearchInput.mocks.d.ts.map +1 -0
  708. package/lib/core/SearchInput/SearchInput.mocks.js +25 -0
  709. package/lib/core/SearchInput/SearchInput.mocks.js.map +1 -0
  710. package/lib/core/SearchInput/SearchInput.stories.d.ts +1 -4
  711. package/lib/core/SearchInput/SearchInput.stories.d.ts.map +1 -1
  712. package/lib/core/SearchInput/SearchInput.stories.js +29 -15
  713. package/lib/core/SearchInput/SearchInput.stories.js.map +1 -1
  714. package/lib/core/Select/Select.stories.d.ts +1 -0
  715. package/lib/core/Select/Select.stories.d.ts.map +1 -1
  716. package/lib/core/Select/Select.stories.js +10 -3
  717. package/lib/core/Select/Select.stories.js.map +1 -1
  718. package/lib/core/SkipLinks/SkipLinks.stories.d.ts +6 -0
  719. package/lib/core/SkipLinks/SkipLinks.stories.d.ts.map +1 -0
  720. package/lib/core/SkipLinks/SkipLinks.stories.js +28 -0
  721. package/lib/core/SkipLinks/SkipLinks.stories.js.map +1 -0
  722. package/lib/core/SkipLinks/SkipLinks.styles.d.ts +2 -0
  723. package/lib/core/SkipLinks/SkipLinks.styles.d.ts.map +1 -0
  724. package/lib/core/SkipLinks/SkipLinks.styles.js +16 -0
  725. package/lib/core/SkipLinks/SkipLinks.styles.js.map +1 -0
  726. package/lib/core/SummaryList/SummaryList.stories.d.ts.map +1 -1
  727. package/lib/core/SummaryList/SummaryList.stories.js +4 -4
  728. package/lib/core/SummaryList/SummaryList.stories.js.map +1 -1
  729. package/lib/core/Tabs/Tabs.stories.js +1 -1
  730. package/lib/core/Tabs/Tabs.stories.js.map +1 -1
  731. package/lib/core/TextArea/TextArea.stories.d.ts +4 -1
  732. package/lib/core/TextArea/TextArea.stories.d.ts.map +1 -1
  733. package/lib/core/TextArea/TextArea.stories.js +10 -3
  734. package/lib/core/TextArea/TextArea.stories.js.map +1 -1
  735. package/lib/core/Toaster/Toaster.stories.js +3 -3
  736. package/lib/core/Toaster/Toaster.stories.js.map +1 -1
  737. package/lib/core/Tree/Tree.mocks.d.ts +1 -1
  738. package/lib/core/Tree/Tree.mocks.d.ts.map +1 -1
  739. package/lib/core/Tree/Tree.stories.d.ts.map +1 -1
  740. package/lib/core/Tree/Tree.stories.js +16 -0
  741. package/lib/core/Tree/Tree.stories.js.map +1 -1
  742. package/lib/cs/ArticleList/ArticleList.stories.d.ts.map +1 -1
  743. package/lib/cs/ArticleList/ArticleList.stories.js +1 -1
  744. package/lib/cs/ArticleList/ArticleList.stories.js.map +1 -1
  745. package/lib/cs/CallControlPanel/CallControlPanel.mocks.d.ts +7 -2
  746. package/lib/cs/CallControlPanel/CallControlPanel.mocks.d.ts.map +1 -1
  747. package/lib/cs/CallControlPanel/CallControlPanel.mocks.js +151 -9
  748. package/lib/cs/CallControlPanel/CallControlPanel.mocks.js.map +1 -1
  749. package/lib/cs/CallControlPanel/CallControlPanel.stories.d.ts +5 -2
  750. package/lib/cs/CallControlPanel/CallControlPanel.stories.d.ts.map +1 -1
  751. package/lib/cs/CallControlPanel/CallControlPanel.stories.js +208 -94
  752. package/lib/cs/CallControlPanel/CallControlPanel.stories.js.map +1 -1
  753. package/lib/cs/IntelligentGuidance/IntelligentGuidance.stories.js +2 -2
  754. package/lib/cs/IntelligentGuidance/IntelligentGuidance.stories.js.map +1 -1
  755. package/lib/cs/InteractionNotification/InteractionNotification.stories.d.ts +1 -0
  756. package/lib/cs/InteractionNotification/InteractionNotification.stories.d.ts.map +1 -1
  757. package/lib/cs/InteractionNotification/InteractionNotification.stories.js +24 -22
  758. package/lib/cs/InteractionNotification/InteractionNotification.stories.js.map +1 -1
  759. package/lib/cs/InteractionTimer/InteractionTimer.mocks.js +5 -5
  760. package/lib/cs/InteractionTimer/InteractionTimer.mocks.js.map +1 -1
  761. package/lib/cs/InteractionTimer/InteractionTimer.stories.d.ts +1 -0
  762. package/lib/cs/InteractionTimer/InteractionTimer.stories.d.ts.map +1 -1
  763. package/lib/cs/InteractionTimer/InteractionTimer.stories.js +33 -14
  764. package/lib/cs/InteractionTimer/InteractionTimer.stories.js.map +1 -1
  765. package/lib/cs/TaskManager/TaskManager.mocks.d.ts +12 -0
  766. package/lib/cs/TaskManager/TaskManager.mocks.d.ts.map +1 -1
  767. package/lib/cs/TaskManager/TaskManager.mocks.js +86 -0
  768. package/lib/cs/TaskManager/TaskManager.mocks.js.map +1 -1
  769. package/lib/cs/TaskManager/TaskManager.stories.d.ts +2 -1
  770. package/lib/cs/TaskManager/TaskManager.stories.d.ts.map +1 -1
  771. package/lib/cs/TaskManager/TaskManager.stories.js +103 -25
  772. package/lib/cs/TaskManager/TaskManager.stories.js.map +1 -1
  773. package/lib/cs/TaskManager/TaskManager.styles.js +2 -1
  774. package/lib/cs/TaskManager/TaskManager.styles.js.map +1 -1
  775. package/lib/dnd/StandardDragDropList/Demo.d.ts +7 -0
  776. package/lib/dnd/StandardDragDropList/Demo.d.ts.map +1 -0
  777. package/lib/dnd/StandardDragDropList/Demo.js +151 -0
  778. package/lib/dnd/StandardDragDropList/Demo.js.map +1 -0
  779. package/lib/dnd/StandardDragDropList/GroupConfig.d.ts +10 -0
  780. package/lib/dnd/StandardDragDropList/GroupConfig.d.ts.map +1 -0
  781. package/lib/dnd/StandardDragDropList/GroupConfig.js +18 -0
  782. package/lib/dnd/StandardDragDropList/GroupConfig.js.map +1 -0
  783. package/lib/dnd/StandardDragDropList/ItemConfig.d.ts +12 -0
  784. package/lib/dnd/StandardDragDropList/ItemConfig.d.ts.map +1 -0
  785. package/lib/dnd/StandardDragDropList/ItemConfig.js +20 -0
  786. package/lib/dnd/StandardDragDropList/ItemConfig.js.map +1 -0
  787. package/lib/dnd/StandardDragDropList/Popover.d.ts +14 -0
  788. package/lib/dnd/StandardDragDropList/Popover.d.ts.map +1 -0
  789. package/lib/dnd/StandardDragDropList/Popover.js +33 -0
  790. package/lib/dnd/StandardDragDropList/Popover.js.map +1 -0
  791. package/lib/dnd/StandardDragDropList/SelectionMenu.d.ts +16 -0
  792. package/lib/dnd/StandardDragDropList/SelectionMenu.d.ts.map +1 -0
  793. package/lib/dnd/StandardDragDropList/SelectionMenu.js +100 -0
  794. package/lib/dnd/StandardDragDropList/SelectionMenu.js.map +1 -0
  795. package/lib/dnd/StandardDragDropList/StandardDragDropList.stories.d.ts +5 -0
  796. package/lib/dnd/StandardDragDropList/StandardDragDropList.stories.d.ts.map +1 -0
  797. package/lib/dnd/StandardDragDropList/StandardDragDropList.stories.js +13 -0
  798. package/lib/dnd/StandardDragDropList/StandardDragDropList.stories.js.map +1 -0
  799. package/lib/dnd/StandardDragDropList/mockData.d.ts +26 -0
  800. package/lib/dnd/StandardDragDropList/mockData.d.ts.map +1 -0
  801. package/lib/dnd/StandardDragDropList/mockData.js +78 -0
  802. package/lib/dnd/StandardDragDropList/mockData.js.map +1 -0
  803. package/lib/rte/Editor/Editor.stories.d.ts.map +1 -1
  804. package/lib/rte/Editor/Editor.stories.js +1 -1
  805. package/lib/rte/Editor/Editor.stories.js.map +1 -1
  806. package/lib/rte/RichTextEditor/RichTextEditor.stories.d.ts +4 -1
  807. package/lib/rte/RichTextEditor/RichTextEditor.stories.d.ts.map +1 -1
  808. package/lib/rte/RichTextEditor/RichTextEditor.stories.js +11 -4
  809. package/lib/rte/RichTextEditor/RichTextEditor.stories.js.map +1 -1
  810. package/lib/rte/RichTextEditor/RichTextViewer.stories.d.ts.map +1 -1
  811. package/lib/rte/RichTextEditor/RichTextViewer.stories.js +2 -2
  812. package/lib/rte/RichTextEditor/RichTextViewer.stories.js.map +1 -1
  813. package/lib/social/Chat/Chat.mocks.d.ts +15 -2
  814. package/lib/social/Chat/Chat.mocks.d.ts.map +1 -1
  815. package/lib/social/Chat/Chat.mocks.js +5 -6
  816. package/lib/social/Chat/Chat.mocks.js.map +1 -1
  817. package/lib/social/Chat/Chat.stories.d.ts.map +1 -1
  818. package/lib/social/Chat/Chat.stories.js +70 -8
  819. package/lib/social/Chat/Chat.stories.js.map +1 -1
  820. package/lib/social/Email/Email.mocks.d.ts +70 -9
  821. package/lib/social/Email/Email.mocks.d.ts.map +1 -1
  822. package/lib/social/Email/Email.mocks.js +386 -55
  823. package/lib/social/Email/Email.mocks.js.map +1 -1
  824. package/lib/social/Email/Email.stories.d.ts +50 -11
  825. package/lib/social/Email/Email.stories.d.ts.map +1 -1
  826. package/lib/social/Email/Email.stories.js +822 -348
  827. package/lib/social/Email/Email.stories.js.map +1 -1
  828. package/lib/social/Email/Email.styles.d.ts +0 -1
  829. package/lib/social/Email/Email.styles.d.ts.map +1 -1
  830. package/lib/social/Email/Email.styles.js +0 -3
  831. package/lib/social/Email/Email.styles.js.map +1 -1
  832. package/lib/social/Feed/Feed.mocks.d.ts +13 -18
  833. package/lib/social/Feed/Feed.mocks.d.ts.map +1 -1
  834. package/lib/social/Feed/Feed.mocks.js +10 -5
  835. package/lib/social/Feed/Feed.mocks.js.map +1 -1
  836. package/lib/social/Feed/Feed.stories.d.ts +3 -2
  837. package/lib/social/Feed/Feed.stories.d.ts.map +1 -1
  838. package/lib/social/Feed/Feed.stories.js +12 -7
  839. package/lib/social/Feed/Feed.stories.js.map +1 -1
  840. package/lib/social/Feed/FeedNewPost.stories.d.ts.map +1 -1
  841. package/lib/social/Feed/FeedNewPost.stories.js +4 -3
  842. package/lib/social/Feed/FeedNewPost.stories.js.map +1 -1
  843. package/lib/social/Feed/FeedPost.stories.d.ts.map +1 -1
  844. package/lib/social/Feed/FeedPost.stories.js +12 -11
  845. package/lib/social/Feed/FeedPost.stories.js.map +1 -1
  846. package/lib/social/Feed/FeedReply.stories.d.ts +1 -1
  847. package/lib/social/Feed/FeedReply.stories.d.ts.map +1 -1
  848. package/lib/social/Feed/FeedReply.stories.js +7 -7
  849. package/lib/social/Feed/FeedReply.stories.js.map +1 -1
  850. package/lib/social/Feed/FeedReplyInput.stories.d.ts.map +1 -1
  851. package/lib/social/Feed/FeedReplyInput.stories.js +4 -3
  852. package/lib/social/Feed/FeedReplyInput.stories.js.map +1 -1
  853. package/lib/tools/Clipboard/Clipboard.mocks.d.ts +6 -0
  854. package/lib/tools/Clipboard/Clipboard.mocks.d.ts.map +1 -0
  855. package/lib/tools/Clipboard/Clipboard.mocks.js +75 -0
  856. package/lib/tools/Clipboard/Clipboard.mocks.js.map +1 -0
  857. package/lib/tools/Clipboard/Clipboard.stories.d.ts +6 -0
  858. package/lib/tools/Clipboard/Clipboard.stories.d.ts.map +1 -0
  859. package/lib/tools/Clipboard/Clipboard.stories.js +78 -0
  860. package/lib/tools/Clipboard/Clipboard.stories.js.map +1 -0
  861. package/lib/tools/DevTools/DevTools.mocks.d.ts +3 -0
  862. package/lib/tools/DevTools/DevTools.mocks.d.ts.map +1 -0
  863. package/lib/tools/DevTools/DevTools.mocks.js +3 -0
  864. package/lib/tools/DevTools/DevTools.mocks.js.map +1 -0
  865. package/lib/tools/DevTools/DevTools.stories.d.ts +10 -0
  866. package/lib/tools/DevTools/DevTools.stories.d.ts.map +1 -0
  867. package/lib/tools/DevTools/DevTools.stories.js +31 -0
  868. package/lib/tools/DevTools/DevTools.stories.js.map +1 -0
  869. package/lib/tools/PreviewShell/PreviewShell.mocks.d.ts +9 -0
  870. package/lib/tools/PreviewShell/PreviewShell.mocks.d.ts.map +1 -0
  871. package/lib/tools/PreviewShell/PreviewShell.mocks.js +57 -0
  872. package/lib/tools/PreviewShell/PreviewShell.mocks.js.map +1 -0
  873. package/lib/tools/PreviewShell/PreviewShell.stories.d.ts +16 -0
  874. package/lib/tools/PreviewShell/PreviewShell.stories.d.ts.map +1 -0
  875. package/lib/tools/PreviewShell/PreviewShell.stories.js +154 -0
  876. package/lib/tools/PreviewShell/PreviewShell.stories.js.map +1 -0
  877. package/lib/tools/PreviewShell/PreviewShell.styles.d.ts +3 -0
  878. package/lib/tools/PreviewShell/PreviewShell.styles.d.ts.map +1 -0
  879. package/lib/tools/PreviewShell/PreviewShell.styles.js +7 -0
  880. package/lib/tools/PreviewShell/PreviewShell.styles.js.map +1 -0
  881. package/lib/work/AppAnnouncement/AppAnnouncement.stories.d.ts.map +1 -1
  882. package/lib/work/AppAnnouncement/AppAnnouncement.stories.js +5 -4
  883. package/lib/work/AppAnnouncement/AppAnnouncement.stories.js.map +1 -1
  884. package/lib/work/CaseView/Attachments.mocks.js +5 -6
  885. package/lib/work/CaseView/Attachments.mocks.js.map +1 -1
  886. package/lib/work/CaseView/CaseView.mocks.d.ts +72 -2
  887. package/lib/work/CaseView/CaseView.mocks.d.ts.map +1 -1
  888. package/lib/work/CaseView/CaseView.mocks.js +191 -11
  889. package/lib/work/CaseView/CaseView.mocks.js.map +1 -1
  890. package/lib/work/CaseView/CaseView.stories.d.ts +4 -22
  891. package/lib/work/CaseView/CaseView.stories.d.ts.map +1 -1
  892. package/lib/work/CaseView/CaseView.stories.js +50 -240
  893. package/lib/work/CaseView/CaseView.stories.js.map +1 -1
  894. package/lib/work/CaseView/Pulse.mocks.d.ts +4 -3
  895. package/lib/work/CaseView/Pulse.mocks.d.ts.map +1 -1
  896. package/lib/work/CaseView/Pulse.mocks.js +2 -2
  897. package/lib/work/CaseView/Pulse.mocks.js.map +1 -1
  898. package/lib/work/ConfigurableLayout/ConfigurableLayout.stories.d.ts.map +1 -1
  899. package/lib/work/ConfigurableLayout/ConfigurableLayout.stories.js +1 -0
  900. package/lib/work/ConfigurableLayout/ConfigurableLayout.stories.js.map +1 -1
  901. package/lib/work/Confirmation/Confirmation.stories.d.ts +3 -0
  902. package/lib/work/Confirmation/Confirmation.stories.d.ts.map +1 -1
  903. package/lib/work/Confirmation/Confirmation.stories.js +12 -8
  904. package/lib/work/Confirmation/Confirmation.stories.js.map +1 -1
  905. package/lib/work/Details/Details.stories.d.ts.map +1 -1
  906. package/lib/work/Details/Details.stories.js +14 -59
  907. package/lib/work/Details/Details.stories.js.map +1 -1
  908. package/lib/work/SearchResults/SearchResults.mocks.d.ts +6 -0
  909. package/lib/work/SearchResults/SearchResults.mocks.d.ts.map +1 -1
  910. package/lib/work/SearchResults/SearchResults.mocks.js +39 -38
  911. package/lib/work/SearchResults/SearchResults.mocks.js.map +1 -1
  912. package/lib/work/SearchResults/SearchResults.stories.d.ts +1 -0
  913. package/lib/work/SearchResults/SearchResults.stories.d.ts.map +1 -1
  914. package/lib/work/SearchResults/SearchResults.stories.js +74 -44
  915. package/lib/work/SearchResults/SearchResults.stories.js.map +1 -1
  916. package/lib/work/Stages/Stages.mocks.d.ts +14 -0
  917. package/lib/work/Stages/Stages.mocks.d.ts.map +1 -0
  918. package/lib/work/Stages/Stages.mocks.js +39 -0
  919. package/lib/work/Stages/Stages.mocks.js.map +1 -0
  920. package/lib/work/Stages/Stages.stories.d.ts +1 -1
  921. package/lib/work/Stages/Stages.stories.d.ts.map +1 -1
  922. package/lib/work/Stages/Stages.stories.js +12 -44
  923. package/lib/work/Stages/Stages.stories.js.map +1 -1
  924. package/lib/work/Stakeholders/Stakeholders.stories.d.ts.map +1 -1
  925. package/lib/work/Stakeholders/Stakeholders.stories.js +1 -0
  926. package/lib/work/Stakeholders/Stakeholders.stories.js.map +1 -1
  927. package/lib/work/Tasks/TaskList.stories.d.ts.map +1 -1
  928. package/lib/work/Tasks/TaskList.stories.js +3 -1
  929. package/lib/work/Tasks/TaskList.stories.js.map +1 -1
  930. package/lib/work/Tasks/Tasks.stories.d.ts +4 -0
  931. package/lib/work/Tasks/Tasks.stories.d.ts.map +1 -1
  932. package/lib/work/Tasks/Tasks.stories.js +20 -8
  933. package/lib/work/Tasks/Tasks.stories.js.map +1 -1
  934. package/lib/work/Timeline/Timeline.stories.d.ts.map +1 -1
  935. package/lib/work/Timeline/Timeline.stories.js +2 -1
  936. package/lib/work/Timeline/Timeline.stories.js.map +1 -1
  937. package/lib/wss/AppShell/AppShell.mocks.d.ts +35 -0
  938. package/lib/wss/AppShell/AppShell.mocks.d.ts.map +1 -0
  939. package/lib/wss/AppShell/AppShell.mocks.js +70 -0
  940. package/lib/wss/AppShell/AppShell.mocks.js.map +1 -0
  941. package/lib/wss/AppShell/AppShell.stories.d.ts +19 -0
  942. package/lib/wss/AppShell/AppShell.stories.d.ts.map +1 -0
  943. package/lib/wss/AppShell/AppShell.stories.js +70 -0
  944. package/lib/wss/AppShell/AppShell.stories.js.map +1 -0
  945. package/lib/wss/AppShell/AppShell.styles.d.ts +2 -0
  946. package/lib/wss/AppShell/AppShell.styles.d.ts.map +1 -0
  947. package/lib/wss/AppShell/AppShell.styles.js +5 -0
  948. package/lib/wss/AppShell/AppShell.styles.js.map +1 -0
  949. package/lib/wss/CaseView/CaseView.mocks.d.ts +13 -0
  950. package/lib/wss/CaseView/CaseView.mocks.d.ts.map +1 -0
  951. package/lib/wss/CaseView/CaseView.mocks.js +35 -0
  952. package/lib/wss/CaseView/CaseView.mocks.js.map +1 -0
  953. package/lib/wss/CaseView/CaseView.stories.d.ts +12 -0
  954. package/lib/wss/CaseView/CaseView.stories.d.ts.map +1 -0
  955. package/lib/wss/CaseView/CaseView.stories.js +70 -0
  956. package/lib/wss/CaseView/CaseView.stories.js.map +1 -0
  957. package/lib/wss/PageTemplates/PageTemplates.stories.d.ts +15 -0
  958. package/lib/wss/PageTemplates/PageTemplates.stories.d.ts.map +1 -0
  959. package/lib/wss/PageTemplates/PageTemplates.stories.js +41 -0
  960. package/lib/wss/PageTemplates/PageTemplates.stories.js.map +1 -0
  961. package/lib/wss/QuickCreate/QuickCreate.stories.d.ts +10 -0
  962. package/lib/wss/QuickCreate/QuickCreate.stories.d.ts.map +1 -0
  963. package/lib/wss/QuickCreate/QuickCreate.stories.js +36 -0
  964. package/lib/wss/QuickCreate/QuickCreate.stories.js.map +1 -0
  965. package/package.json +11 -12
  966. package/jsx/core/MultiStep/MultiStep.stories.d.ts.map +0 -1
  967. package/jsx/core/MultiStep/MultiStep.stories.jsx +0 -56
  968. package/jsx/core/MultiStep/MultiStep.stories.jsx.map +0 -1
  969. package/jsx/cs/CSCaseView/CSAppShell.stories.d.ts +0 -11
  970. package/jsx/cs/CSCaseView/CSAppShell.stories.d.ts.map +0 -1
  971. package/jsx/cs/CSCaseView/CSAppShell.stories.jsx +0 -248
  972. package/jsx/cs/CSCaseView/CSAppShell.stories.jsx.map +0 -1
  973. package/jsx/cs/CSCaseView/CSCaseView.mocks.d.ts +0 -66
  974. package/jsx/cs/CSCaseView/CSCaseView.mocks.d.ts.map +0 -1
  975. package/jsx/cs/CSCaseView/CSCaseView.mocks.jsx +0 -253
  976. package/jsx/cs/CSCaseView/CSCaseView.mocks.jsx.map +0 -1
  977. package/lib/core/MultiStep/MultiStep.stories.d.ts.map +0 -1
  978. package/lib/core/MultiStep/MultiStep.stories.js +0 -36
  979. package/lib/core/MultiStep/MultiStep.stories.js.map +0 -1
  980. package/lib/cs/CSCaseView/CSAppShell.stories.d.ts +0 -11
  981. package/lib/cs/CSCaseView/CSAppShell.stories.d.ts.map +0 -1
  982. package/lib/cs/CSCaseView/CSAppShell.stories.js +0 -227
  983. package/lib/cs/CSCaseView/CSAppShell.stories.js.map +0 -1
  984. package/lib/cs/CSCaseView/CSCaseView.mocks.d.ts +0 -66
  985. package/lib/cs/CSCaseView/CSCaseView.mocks.d.ts.map +0 -1
  986. package/lib/cs/CSCaseView/CSCaseView.mocks.js +0 -240
  987. package/lib/cs/CSCaseView/CSCaseView.mocks.js.map +0 -1
@@ -1,31 +1,67 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
1
+ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
2
2
  // cSpell:words calibri Trichy Nagercoil
3
- import { useState, useRef, useContext, useCallback } from 'react';
3
+ import { useState, useRef, useCallback, useEffect, createRef } from 'react';
4
4
  import { action } from '@storybook/addon-actions';
5
- import { Card, CardContent, createUID, MenuButton, Icon, registerIcon, Flex, Button, ModalManagerContext, menuHelpers, CardHeader, Text, SummaryList, Grid, FieldValueList, StyledLabel } from '@pega/cosmos-react-core';
5
+ import { Card, CardContent, createUID, MenuButton, Icon, registerIcon, Flex, Button, menuHelpers, CardHeader, Text, SummaryList, Grid, FieldValueList, StyledLabel, Modal, useModalManager, useModalContext, useToaster, Banner } from '@pega/cosmos-react-core';
6
6
  import * as filterIcon from '@pega/cosmos-react-core/lib/components/Icon/icons/filter.icon';
7
- import { Email as EmailComponent, EmailConversation, EmailComposer, EmailShell, EmailSummaryItem, EmailSummaryList, EntityList } from '@pega/cosmos-react-social';
8
- import { bccParticipants, ccParticipants, emailBodyContent, participants, toParticipants, emailAttachments, EntityListMockData, viewAnalysisEmailHeaderMock, topicListMock, emailActions, generateEmailConversationParticipants, templates, handleExternalEntry, emailDemoActions, launchEmailComposer, LaunchAction, baseComposerProps, sentiment, emailSummaryItems, mockEmails, mockSuggestedReplies, mockEmailBodyTemplates } from './Email.mocks';
9
- import { StyledEmailCardContent, StyledViewAnalysis } from './Email.styles';
7
+ import { Email as EmailComponent, EmailConversation, EmailComposer, EmailShell, EmailSummaryItem, EmailSummaryList, EntityList, EmailManager, EmailCaseView } from '@pega/cosmos-react-social';
8
+ import { AppShellDemo } from '../../core/AppShell/AppShell.stories';
9
+ import { bccParticipants, ccParticipants, emailBodyContent, participants, toParticipants, emailAttachments, EntityListMockData, viewAnalysisEmailHeaderMock, topicListMock, generateEmailConversationParticipants, templates, handleExternalEntry, emailDemoActions, LaunchAction, baseComposerProps, sentiment, emailSummaryItems, mockEmails, mockSuggestedReplies, mockEmailBodyTemplates, forwardedContent, getCompositeId, emptyFieldErrorMessage, fieldValidation, emailWorklistItemsMock, contextMenuItemsMock, highlightedEntitiesMock, mockUploadImage, mailDeliverySystemEmail, supportTeamEmail, bodyData } from './Email.mocks';
10
+ import { StyledEmailCardContent } from './Email.styles';
10
11
  registerIcon(filterIcon);
11
12
  export default {
12
13
  title: 'Social/Email',
13
14
  component: EmailComponent
14
15
  };
15
- /*
16
-
17
- _____ _ _
18
- | ____|_ __ ___ __ _(_) |
19
- | _| | '_ ` _ \ / _` | | |
20
- | |___| | | | | | (_| | | |
21
- |_____|_| |_| |_|\__,_|_|_|
22
-
23
-
24
- */
25
16
  export const Email = (args) => {
26
- return (_jsx(Card, { children: _jsx(StyledEmailCardContent, { children: _jsx(EmailComponent, { id: createUID(), timeStamp: '2022-02-24T09:12', from: mockEmails['Laura Stevens'], cc: [mockEmails['Adam Gillchrist'], mockEmails['John Paul']], bcc: [mockEmails['Anton, Randy'], mockEmails['Hugh Phillips']], to: [mockEmails['Sara Davis'], mockEmails['John Brown'], mockEmails['Joe Stevens']], body: '<div> Hi Team, <br /> <br /> <div>Please find the below conversation & let us know the best fare (including taxes) per person.</div><br />Regards, <br /> Laura Stevens </div>', forwardedContent: args.forwardedContent, subject: 'Regarding flight booking', onReply: action('On reply'), onReplyAll: action('On reply all'), onForward: action('On forward'), onSuggestionClick: action('On Suggested reply clicked'), sentiment: {
27
- variant: 'positive'
28
- }, actions: emailActions, suggestions: mockSuggestedReplies, attachments: [
17
+ const contextMenuHandle = useRef(null);
18
+ const timeout = useRef(null);
19
+ const handleRightClick = (id, e) => {
20
+ action('onContextMenu')(id, e);
21
+ if (contextMenuHandle.current && args.enableContextMenu) {
22
+ const { setItems, setOpen, setLoading } = contextMenuHandle.current;
23
+ // Deciding not to show browser context menu
24
+ // This should be synchronus
25
+ e.preventDefault();
26
+ // Now open the custom context menu using the handle and show loader
27
+ setLoading(true);
28
+ setItems([]);
29
+ setOpen(true);
30
+ if (timeout.current) {
31
+ clearTimeout(timeout.current);
32
+ }
33
+ timeout.current = window.setTimeout(() => {
34
+ setItems(contextMenuItemsMock);
35
+ // Hide the loader
36
+ setLoading(false);
37
+ }, 1000);
38
+ }
39
+ };
40
+ useEffect(() => {
41
+ return () => {
42
+ if (timeout.current) {
43
+ window.clearTimeout(timeout.current);
44
+ }
45
+ };
46
+ }, []);
47
+ return (_jsx(Card, { children: _jsx(StyledEmailCardContent, { children: _jsx(EmailComponent, { id: createUID(), timeStamp: '2021-01-05T09:12', from: mockEmails['Laura Stevens'], cc: [mockEmails['Adam Gillchrist'], mockEmails['John Paul']], bcc: [mockEmails['Anton, Randy'], mockEmails['Hugh Phillips']], to: [mockEmails['Sara Davis'], mockEmails['John Brown'], mockEmails['Joe Stevens']], body: '<div>Hi,<br/><p>I am one of the customer of Indian Overseas Bank, <b><i>Nagercoil</i></b> branch, with code <b><a href="www.google.com"><i>3967</i></a></b>. I have a saving bank account here. My account number is <i>6785420965476</i>.</p><br/><p>I have been given a debit cum ATM card from this bank and the same has been lost when I was traveling from Nagercoil to Trichy by Bus on Jan 04, 2021. I remember that my ATM card number was 1920 6746 8653 1256.</p><br/>I hereby request you to block my debit card immediately to prevent misuse of the same by some others. Also I request you to give me an new debit card as early as possible.<br/><br/>Regards,<br/>Laura Stevens</div>', forwardedContent: args.forwardedContent, entityHighlightMapping: args.enableEntityHighlighting ? highlightedEntitiesMock : undefined, subject: 'I lost my debit card', banner: args.showEmailBanner
48
+ ? {
49
+ id: 'banner_1',
50
+ heading: 'Address not found ',
51
+ messages: [
52
+ '550 5.1.1 The email account that you tried to reach does not exist. Please try double-checking the recipients email address for typos or unnecessary spaces. Learn more at https://support.google.com/mail/?p=NoSuchUser k24-20020aa790d8000000b0050dd7e3b84csor451330pfk.28'
53
+ ]
54
+ }
55
+ : undefined, onReply: args.showDraft ? undefined : action('On reply'), onReplyAll: args.showDraft ? undefined : action('On reply all'), onForward: args.showDraft ? undefined : action('On forward'), onEditDraft: args.showDraft ? action('On forward') : undefined, onDeleteDraft: args.showDraft ? action('On forward') : undefined, onSuggestionClick: action('On Suggested reply clicked'), sentiment: {
56
+ variant: 'neutral'
57
+ }, status: args.showDraft ? 'draft' : undefined, suggestions: mockSuggestedReplies, contextMenu: {
58
+ onItemClick: (selectedValue) => {
59
+ action('onItemClick')(selectedValue);
60
+ contextMenuHandle.current?.setOpen(false);
61
+ },
62
+ onContextMenu: handleRightClick,
63
+ handle: contextMenuHandle
64
+ }, attachments: [
29
65
  {
30
66
  id: 'attachment_0',
31
67
  value: 'https://pega.com/media/document.doc',
@@ -45,149 +81,206 @@ export const Email = (args) => {
45
81
  }) }) }) }));
46
82
  };
47
83
  Email.args = {
84
+ enableEntityHighlighting: false,
85
+ enableContextMenu: false,
48
86
  // eslint-disable-next-line demo-patterns/literal-args
49
- forwardedContent: `
50
- <div id="pega-email-message-forward" style="font-family:OpenSans,sans-serif; border-left: 1px solid #c4c4c4; padding-left: 8px;">
51
- <div>
52
- <p class="pega-email-forward-header" style="font-size:smaller;color:#90909D;">--------------------Forwarded message--------------------<br />From: Person, Example &lt;example.person@pega.com&gt; &nbsp;<br />Date: Feb 23, 2022 9:29:59 PM&nbsp;<br />Subject: Regarding flight booking &nbsp;<br />To: Laura, Stevens &lt;laurastevens@example.com&gt;<br />&nbsp;</p>
53
- </div>
54
- <div class="pega-email-forward-content">
55
- <div class="WordSection1">
56
- <p class="MsoNormal" style="margin:0cm;font-size:11pt;font-family:'calibri' , sans-serif"><span style="color:black">Hi,&nbsp; </span></p>
57
- <p class="MsoNormal" style="margin:0cm;font-size:11pt;font-family:'calibri' , sans-serif"><span style="color:black">&nbsp;&nbsp; </span></p>
58
- <p class="MsoNormal" style="margin:0cm;font-size:11pt;font-family:'calibri' , sans-serif"><span style="color:black">I need to book a flight from Hyderabad to Chennai.&nbsp; </span></p>
59
- <p class="MsoNormal" style="margin:0cm;font-size:11pt;font-family:'calibri' , sans-serif"><span style="color:black">Please let me know the fare including taxes per each person. </span></p>
60
- <p class="MsoNormal" style="margin:0cm;font-size:11pt;font-family:'calibri' , sans-serif"><span style="color:black">&nbsp;&nbsp; </span></p>
61
- <p class="MsoNormal" style="margin:0cm;font-size:11pt;font-family:'calibri' , sans-serif"><span style="color:black">Thanks,&nbsp; </span></p>
62
- <p class="MsoNormal" style="margin:0cm;font-size:11pt;font-family:'calibri' , sans-serif"><span style="color:black">Goutham </span></p>
63
- </div>
64
- </div>
65
- </div>
66
- `
87
+ forwardedContent,
88
+ showEmailBanner: false,
89
+ showDraft: false
67
90
  };
68
91
  Email.argTypes = {
69
- forwardedContent: { control: { type: 'text' } }
92
+ enableEntityHighlighting: { control: { type: 'boolean' } },
93
+ enableContextMenu: { control: { type: 'boolean' } },
94
+ forwardedContent: { control: { type: 'text' } },
95
+ showEmailBanner: { control: { type: 'boolean' } },
96
+ showDraft: { control: { type: 'boolean' } }
70
97
  };
71
- export const ViewAnalysis = () => {
72
- const headerProps = {
73
- icon: 'list-number',
74
- text: 'Entities'
75
- };
76
- const itemsToRender = topicListMock.map(items => {
77
- return {
78
- ...items,
79
- primary: _jsx(StyledLabel, { children: items.primary }),
80
- secondary: (_jsxs(Flex, { container: { direction: 'row', justify: 'between' }, children: [_jsx(Text, { variant: 'primary', children: items.secondary.indicator }), _jsx(StyledLabel, { children: items.secondary.value })] }))
81
- };
98
+ export const Composer = (args) => {
99
+ const { enableResponseTypeToggle = true, enableSaveAsDraft = true } = args;
100
+ const [composerProgress, setComposerProgress] = useState(false);
101
+ const composerHandle = useRef(null);
102
+ const [data, setData] = useState({
103
+ to: { value: toParticipants },
104
+ cc: { value: [] },
105
+ bcc: { value: [] },
106
+ subject: { value: 'Request: Pause service' },
107
+ bodyContent: {
108
+ defaultValue: ''
109
+ },
110
+ responseType: 'reply',
111
+ selectedTemplateId: '',
112
+ attachments: emailAttachments,
113
+ bodyContentCurrentValue: ''
82
114
  });
83
- return (_jsx(StyledViewAnalysis, { children: _jsxs(Grid, { container: { rowGap: 2 }, children: [_jsx(EntityList, { header: headerProps, content: EntityListMockData }), _jsxs(Card, { children: [_jsxs(CardHeader, { container: { alignItems: 'center', gap: 1 }, children: [_jsx(Icon, { name: 'document-doc' }), _jsx(Text, { variant: 'h3', children: "Email header" })] }), _jsx(CardContent, { children: _jsx(FieldValueList, { fields: viewAnalysisEmailHeaderMock, variant: 'stacked' }) })] }), _jsx(SummaryList, { name: 'Topics', icon: 'headline', items: itemsToRender, noItemsText: 'No items' })] }) }));
84
- };
85
- export const EmailEntities = (args) => {
86
- const nestedEntities = ['Place: Nagercoil, Hyderabad', 'Location: Nagercoil'];
87
- return (_jsx(Card, { children: _jsx(StyledEmailCardContent, { children: _jsx(EmailComponent, { id: createUID(), timeStamp: '2021-01-05T09:12', from: mockEmails['Laura Stevens'], cc: [mockEmails['Adam Gillchrist'], mockEmails['John Paul']], bcc: [mockEmails['Anton, Randy'], mockEmails['Hugh Phillips']], to: [mockEmails['Sara Davis'], mockEmails['John Brown'], mockEmails['Joe Stevens']], body: '<div>Hi,<br/><p>I am one of the customer of Indian Overseas Bank, <b><i>Nagercoil</i></b> branch, with code <b><a href="www.google.com"><i>3967</i></a></b>. I have a saving bank account here. My account number is <i>6785420965476</i>.</p><br/><p>I have been given a debit cum ATM card from this bank and the same has been lost when I was traveling from Nagercoil to Trichy by Bus on Jan 04, 2021. I remember that my ATM card number was 1920 6746 8653 1256.</p><br/>I hereby request you to block my debit card immediately to prevent misuse of the same by some others. Also I request you to give me an new debit card as early as possible.<br/><br/>Regards,<br/>Laura Stevens</div>', entityHighlightMapping: args.enableEntityHighlighting
88
- ? [
89
- {
90
- value: '3967',
91
- type: 'system',
92
- name: 'BranchCode',
93
- variant: 0,
94
- description: 'Branch Code'
95
- },
96
- {
97
- value: 'Laura Stevens',
98
- type: 'system',
99
- name: 'Name',
100
- variant: 1,
101
- description: 'Name'
102
- },
103
- {
104
- value: 'Nagercoil',
105
- type: 'system',
106
- name: 'Location',
107
- variant: 2,
108
- description: nestedEntities
109
- },
110
- {
111
- value: 'Trichy',
112
- type: 'system',
113
- name: 'Location',
114
- variant: 2,
115
- description: 'Location'
116
- },
117
- {
118
- value: '6785420965476',
119
- type: 'system',
120
- name: 'AccountNumber',
121
- variant: 3,
122
- description: 'Account Number'
123
- },
124
- {
125
- value: '1920 6746 8653 1256',
126
- type: 'system',
127
- name: 'CardNumber',
128
- variant: 4,
129
- description: 'Card Number'
130
- },
131
- {
132
- value: 'Debit Card',
133
- type: 'system',
134
- name: 'CardType',
135
- variant: 5,
136
- description: 'Card Type'
137
- },
138
- {
139
- value: 'Jan 04, 2021',
140
- type: 'system',
141
- name: 'Date',
142
- variant: 6,
143
- description: 'Date'
144
- }
145
- ]
146
- : undefined, contextMenu: args.enableContextMenu
147
- ? {
148
- heading: 'Copy to',
149
- items: [
150
- {
151
- id: 'item_0',
152
- primary: 'Field 1',
153
- selected: false
154
- },
155
- {
156
- id: 'item_1',
157
- primary: 'Field 2',
158
- selected: true
159
- },
160
- {
161
- id: 'item_2',
162
- primary: 'Field 3',
163
- selected: true
164
- }
165
- ],
166
- onItemClick: action('On Copy')
115
+ const handleOnChange = (field, value) => {
116
+ if (field === 'bodyContent') {
117
+ setData(prev => ({
118
+ ...prev,
119
+ bodyContentCurrentValue: value
120
+ }));
121
+ }
122
+ else if (['responseType', 'attachments', 'selectedTemplateId'].includes(field)) {
123
+ setData(prev => ({
124
+ ...prev,
125
+ [field]: value
126
+ }));
127
+ }
128
+ else {
129
+ // Clearing error message as soon as value changes
130
+ setData(prev => {
131
+ return {
132
+ ...prev,
133
+ [field]: { error: undefined, value }
134
+ };
135
+ });
136
+ }
137
+ action('onChange')(field, value);
138
+ };
139
+ useEffect(() => {
140
+ if (data.responseType === 'reply') {
141
+ setData(prev => {
142
+ return {
143
+ ...prev,
144
+ to: {
145
+ ...prev.to,
146
+ value: [toParticipants[0]]
147
+ },
148
+ cc: {
149
+ ...prev.cc,
150
+ value: []
151
+ },
152
+ bcc: {
153
+ ...prev.bcc,
154
+ value: []
167
155
  }
168
- : undefined, subject: 'I lost my debit card', onReply: action('On reply'), onReplyAll: action('On reply all'), onForward: action('On forward'), onSuggestionClick: action('On Suggested reply clicked'), sentiment: {
169
- variant: 'neutral'
170
- }, actions: emailActions, suggestions: mockSuggestedReplies }) }) }));
156
+ };
157
+ });
158
+ }
159
+ else if (data.responseType === 'replyAll') {
160
+ setData(prev => {
161
+ return {
162
+ ...prev,
163
+ to: {
164
+ ...prev.to,
165
+ value: toParticipants
166
+ },
167
+ cc: {
168
+ ...prev.cc,
169
+ value: ccParticipants
170
+ },
171
+ bcc: {
172
+ ...prev.bcc,
173
+ value: bccParticipants
174
+ }
175
+ };
176
+ });
177
+ }
178
+ else if (data.responseType === 'forward') {
179
+ setData(prev => {
180
+ return {
181
+ ...prev,
182
+ to: {
183
+ ...prev.to,
184
+ value: []
185
+ },
186
+ cc: {
187
+ ...prev.cc,
188
+ value: []
189
+ },
190
+ bcc: {
191
+ ...prev.bcc,
192
+ value: []
193
+ }
194
+ };
195
+ });
196
+ }
197
+ }, [data.responseType]);
198
+ const onTemplateChange = (id) => {
199
+ const selectedTemplate = mockEmailBodyTemplates.find(template => template.id === id);
200
+ // Simulating api call
201
+ setComposerProgress({ message: 'Loading template...' });
202
+ setTimeout(() => {
203
+ setComposerProgress(false);
204
+ composerHandle.current?.replaceBodyContent(selectedTemplate?.content || '');
205
+ // Brings the cursor to the beginning of the body.
206
+ composerHandle.current?.setCursorLocationToStart?.();
207
+ }, 1000);
208
+ };
209
+ useEffect(() => {
210
+ if (data.selectedTemplateId)
211
+ onTemplateChange(data.selectedTemplateId);
212
+ }, [data.selectedTemplateId]);
213
+ const handleOnSend = () => {
214
+ setData(prev => {
215
+ return {
216
+ ...prev,
217
+ to: {
218
+ value: prev.to?.value || [],
219
+ error: data?.to?.value.length === 0 ? emptyFieldErrorMessage : fieldValidation(data?.to?.value)
220
+ },
221
+ cc: {
222
+ value: prev.cc?.value || [],
223
+ error: data.cc === undefined ? undefined : fieldValidation(data.cc.value)
224
+ },
225
+ bcc: {
226
+ value: prev.bcc?.value || [],
227
+ error: data.bcc === undefined ? undefined : fieldValidation(data.bcc.value)
228
+ },
229
+ subject: {
230
+ ...prev.subject,
231
+ error: data.subject?.value === '' ? emptyFieldErrorMessage : undefined
232
+ },
233
+ bodyContent: {
234
+ ...prev.bodyContent,
235
+ error: data.bodyContentCurrentValue === '' ? emptyFieldErrorMessage : undefined
236
+ }
237
+ };
238
+ });
239
+ };
240
+ const onImageAdded = (image, id) => {
241
+ action('On Image added');
242
+ setComposerProgress({ message: 'Uploading image' });
243
+ // Simulate image upload
244
+ mockUploadImage(image)
245
+ .then(({ src, alt }) => {
246
+ composerHandle.current?.updateImage({ src, alt }, id);
247
+ setComposerProgress(false);
248
+ })
249
+ .catch(() => {
250
+ setComposerProgress(false);
251
+ });
252
+ };
253
+ useEffect(() => {
254
+ setTimeout(() => {
255
+ composerHandle.current?.replaceBodyContent(bodyData);
256
+ // Brings the cursor to the beginning of the body.
257
+ composerHandle.current?.setCursorLocationToStart?.();
258
+ }, 100);
259
+ }, []);
260
+ return (_jsx(EmailComposer, { handle: composerHandle, progress: composerProgress, onSave: enableSaveAsDraft ? action('On save') : undefined, onSend: handleOnSend, onCancel: action('On cancel'), externalValidator: handleExternalEntry, participants: participants, onChange: handleOnChange, data: {
261
+ ...data,
262
+ responseType: enableResponseTypeToggle ? data.responseType : undefined
263
+ }, templates: templates, onImageAdded: onImageAdded }));
171
264
  };
172
- EmailEntities.args = {
173
- enableEntityHighlighting: true,
174
- enableContextMenu: true
265
+ Composer.args = {
266
+ enableResponseTypeToggle: true,
267
+ enableSaveAsDraft: true
175
268
  };
176
- EmailEntities.argTypes = {
177
- enableEntityHighlighting: { control: { type: 'boolean' } },
178
- enableContextMenu: { control: { type: 'boolean' } }
269
+ Composer.argTypes = {
270
+ enableResponseTypeToggle: {
271
+ control: 'boolean'
272
+ },
273
+ enableSaveAsDraft: {
274
+ control: { type: 'boolean' }
275
+ }
179
276
  };
180
- /*
181
-
182
- _____ _ _ ____ _ _
183
- | ____|_ __ ___ __ _(_) | / ___|___ _ ____ _____ _ __ ___ __ _| |_(_) ___ _ __
184
- | _| | '_ ` _ \ / _` | | | | | / _ \| '_ \ \ / / _ \ '__/ __|/ _` | __| |/ _ \| '_ \
185
- | |___| | | | | | (_| | | | | |__| (_) | | | \ V / __/ | \__ \ (_| | |_| | (_) | | | |
186
- |_____|_| |_| |_|\__,_|_|_| \____\___/|_| |_|\_/ \___|_| |___/\__,_|\__|_|\___/|_| |_|
187
-
188
-
189
- */
190
- export const emailConversation = () => {
277
+ // ______ ______ .__ __. ____ ____ _______ .______ _______. ___ .___________. __ ______ .__ __.
278
+ // / | / __ \ | \ | | \ \ / / | ____|| _ \ / | / \ | || | / __ \ | \ | |
279
+ // | ,----'| | | | | \| | \ \/ / | |__ | |_) | | (----` / ^ \ `---| |----`| | | | | | | \| |
280
+ // | | | | | | | . ` | \ / | __| | / \ \ / /_\ \ | | | | | | | | | . ` |
281
+ // | `----.| `--' | | |\ | \ / | |____ | |\ \----.----) | / _____ \ | | | | | `--' | | |\ |
282
+ // \______| \______/ |__| \__| \__/ |_______|| _| `._____|_______/ /__/ \__\ |__| |__| \______/ |__| \__|
283
+ export const Conversation = () => {
191
284
  const emailArr = [
192
285
  {
193
286
  id: 'item_0',
@@ -201,7 +294,6 @@ export const emailConversation = () => {
201
294
  onReply: action('On reply'),
202
295
  onForward: action('On forward'),
203
296
  onSuggestionClick: action('On Suggested reply clicked'),
204
- actions: emailActions,
205
297
  suggestions: mockSuggestedReplies
206
298
  },
207
299
  {
@@ -214,71 +306,240 @@ export const emailConversation = () => {
214
306
  body: '<div> Hi, <br /> <br /> <div>I’m still at the airport, I need help now!! </div> <br /><br /> Regards, <br /> Sara Davis </div>',
215
307
  onReply: action('On reply'),
216
308
  onForward: action('On forward'),
217
- onSuggestionClick: action('On Suggested reply clicked'),
218
- actions: emailActions
309
+ onSuggestionClick: action('On Suggested reply clicked')
219
310
  }
220
311
  ];
221
312
  return (_jsx(EmailConversation, { participants: generateEmailConversationParticipants(emailArr), from: generateEmailConversationParticipants(emailArr, ['from'])[0], to: generateEmailConversationParticipants(emailArr, ['to']), id: createUID(), timeStamp: emailArr[0].timeStamp, unReadEmailCount: emailArr.filter(item => item.unRead).length, emails: emailArr }));
222
313
  };
223
- /*
224
-
225
- _____ _ _ ____
226
- | ____|_ __ ___ __ _(_) | / ___|___ _ __ ___ _ __ ___ ___ ___ _ __
227
- | _| | '_ ` _ \ / _` | | | | | / _ \| '_ ` _ \| '_ \ / _ \/ __|/ _ \ '__|
228
- | |___| | | | | | (_| | | | | |__| (_) | | | | | | |_) | (_) \__ \ __/ |
229
- |_____|_| |_| |_|\__,_|_|_| \____\___/|_| |_| |_| .__/ \___/|___/\___|_|
230
- |_|
231
-
232
- */
233
- export const EmailComposerDemo = () => {
234
- const fileUploadInputRef = useRef(null);
235
- const [composerProgress, setComposerProgress] = useState(false);
236
- const [attachments, setAttachments] = useState(emailAttachments);
237
- const onTemplateChange = id => {
238
- const selectedTemplate = mockEmailBodyTemplates.find(template => template.id === id);
239
- // Simulating api call
240
- setComposerProgress({ message: 'Loading template...' });
241
- return new Promise(resolve => {
242
- setTimeout(() => {
243
- setComposerProgress(false);
244
- resolve(selectedTemplate?.content);
245
- }, 1000);
246
- });
247
- };
248
- return (_jsx(Card, { style: { width: '30rem' }, children: _jsxs(CardContent, { children: [_jsx(EmailComposer, { progress: composerProgress, onSend: action('On Send'), onCancel: action('On cancel'), externalValidator: handleExternalEntry, participants: participants, to: {
249
- reply: [participants[7].emailAddress],
250
- replyAll: toParticipants,
251
- forward: []
252
- }, cc: ccParticipants, bcc: bccParticipants, responseType: 'reply', subject: 'Request: Pause service', templates: templates, onTemplateChange: onTemplateChange, bodyContent: 'Hi, Hope you are doing well', onImageAdded: action('On Image added'), attachments: attachments.map(attachment => {
253
- return {
254
- ...attachment,
255
- onDelete: name => {
256
- setAttachments(prevAttachments => prevAttachments.filter(item => item.name !== name));
257
- }
258
- };
259
- }) }), _jsx("input", { ref: fileUploadInputRef, type: 'file', style: { display: 'none' }, onChange: (e) => {
260
- if (e.target.files) {
261
- setAttachments(prevAttachments => [
262
- ...prevAttachments,
263
- ...Array.from(e.target.files).map(file => {
264
- return {
265
- name: file.name
266
- };
267
- })
268
- ]);
269
- }
270
- } })] }) }));
271
- };
272
- export const EmailDemo = (args) => {
314
+ export const EmailShellDemo = (args) => {
315
+ const { create } = useModalManager();
316
+ const { push } = useToaster();
273
317
  const actions = ['Transfer', 'End conversation'].map(name => ({
274
318
  primary: name,
275
319
  id: name,
276
320
  onClick: action(`Clicked ${name}`)
277
321
  }));
278
- const { create } = useContext(ModalManagerContext);
322
+ const [composersData, setComposersData] = useState({});
323
+ const [conversationEmails, setConversationEmails] = useState([]);
324
+ const handleResponseTypeChange = (uid, responseType) => {
325
+ if (responseType === 'reply') {
326
+ setComposersData(prev => {
327
+ return {
328
+ ...prev,
329
+ [uid]: {
330
+ ...prev[uid],
331
+ data: {
332
+ ...prev[uid].data,
333
+ to: {
334
+ ...prev[uid].data.to,
335
+ value: [toParticipants[0]]
336
+ },
337
+ cc: {
338
+ ...prev[uid].data.cc,
339
+ value: []
340
+ },
341
+ bcc: {
342
+ ...prev[uid].data.bcc,
343
+ value: []
344
+ }
345
+ }
346
+ }
347
+ };
348
+ });
349
+ }
350
+ else if (responseType === 'replyAll') {
351
+ setComposersData(prev => {
352
+ return {
353
+ ...prev,
354
+ [uid]: {
355
+ ...prev[uid],
356
+ data: {
357
+ ...prev[uid].data,
358
+ to: {
359
+ ...prev[uid].data.to,
360
+ value: toParticipants
361
+ },
362
+ cc: {
363
+ ...prev[uid].data.cc,
364
+ value: ccParticipants
365
+ },
366
+ bcc: {
367
+ ...prev[uid].data.bcc,
368
+ value: bccParticipants
369
+ }
370
+ }
371
+ }
372
+ };
373
+ });
374
+ }
375
+ };
376
+ const handleTemplateIdChange = (uid, templateId) => {
377
+ const selectedTemplate = mockEmailBodyTemplates.find(template => template.id === templateId);
378
+ setComposersData(prev => {
379
+ return {
380
+ ...prev,
381
+ [uid]: {
382
+ ...prev[uid],
383
+ progress: { message: 'Loading template...' }
384
+ }
385
+ };
386
+ });
387
+ // Simulating api call
388
+ setTimeout(() => {
389
+ setComposersData(prev => {
390
+ return {
391
+ ...prev,
392
+ [uid]: {
393
+ ...prev[uid],
394
+ progress: false
395
+ }
396
+ };
397
+ });
398
+ let currentData = {};
399
+ setComposersData(prev => {
400
+ currentData = prev;
401
+ return prev;
402
+ });
403
+ if (currentData) {
404
+ currentData[uid]?.handle?.current?.replaceBodyContent(selectedTemplate?.content || '');
405
+ }
406
+ }, 1000);
407
+ };
408
+ const handleChange = (uid, field, value) => {
409
+ setComposersData(prevData => {
410
+ if (field === 'bodyContent') {
411
+ return {
412
+ ...prevData,
413
+ [uid]: {
414
+ ...prevData[uid],
415
+ bodyContentCurrentValue: value
416
+ }
417
+ };
418
+ }
419
+ return {
420
+ ...prevData,
421
+ [uid]: {
422
+ ...prevData[uid],
423
+ data: {
424
+ ...prevData[uid].data,
425
+ [field]: ['responseType', 'attachments', 'selectedTemplateId'].includes(field)
426
+ ? value
427
+ : {
428
+ error: undefined,
429
+ value
430
+ }
431
+ }
432
+ }
433
+ };
434
+ });
435
+ if (field === 'responseType') {
436
+ handleResponseTypeChange(uid, value);
437
+ }
438
+ else if (field === 'selectedTemplateId') {
439
+ handleTemplateIdChange(uid, value);
440
+ }
441
+ };
442
+ const MyModal = ({ currentID }) => {
443
+ const { dismiss } = useModalContext();
444
+ return (_jsx(Modal, { heading: 'Discard unsaved changes?', actions: _jsxs(_Fragment, { children: [_jsx(Button, { onClick: dismiss, children: "Go back" }), _jsxs("div", { children: [_jsx(Button, { onClick: () => {
445
+ dismiss();
446
+ setComposersData(prev => {
447
+ return {
448
+ ...prev,
449
+ [currentID]: {
450
+ ...prev[currentID],
451
+ progress: true
452
+ }
453
+ };
454
+ });
455
+ setTimeout(() => {
456
+ setComposersData(prev => {
457
+ const newComposersData = { ...prev };
458
+ delete newComposersData[currentID];
459
+ return newComposersData;
460
+ });
461
+ push({ content: 'Draft Saved' });
462
+ }, 1000);
463
+ }, children: "Save & close" }), _jsx(Button, { variant: 'primary', onClick: () => {
464
+ dismiss();
465
+ setComposersData(prev => {
466
+ const newComposersData = { ...prev };
467
+ delete newComposersData[currentID];
468
+ return newComposersData;
469
+ });
470
+ }, children: "Discard" })] })] }), children: _jsx(Text, { variant: 'primary', children: "You have unsaved changes. You can discard them or go back to keep working." }) }));
471
+ };
472
+ const handleCancel = (uid) => {
473
+ create(MyModal, { currentID: uid }, { alert: true });
474
+ };
475
+ const handleSend = (uid) => {
476
+ action('Send')();
477
+ setComposersData(prev => {
478
+ return {
479
+ ...prev,
480
+ [uid]: {
481
+ ...prev[uid],
482
+ progress: true
483
+ }
484
+ };
485
+ });
486
+ setTimeout(() => {
487
+ setComposersData(prev => {
488
+ const newComposersData = { ...prev };
489
+ delete newComposersData[uid];
490
+ return newComposersData;
491
+ });
492
+ push({ content: 'Email Send' });
493
+ }, 1000);
494
+ };
495
+ const handleSave = (uid) => {
496
+ action('Save')();
497
+ setComposersData(prev => {
498
+ return {
499
+ ...prev,
500
+ [uid]: {
501
+ ...prev[uid],
502
+ progress: true
503
+ }
504
+ };
505
+ });
506
+ setTimeout(() => {
507
+ setComposersData(prev => {
508
+ const newComposersData = { ...prev };
509
+ delete newComposersData[uid];
510
+ return newComposersData;
511
+ });
512
+ push({ content: 'Draft Saved' });
513
+ }, 1000);
514
+ };
515
+ const createOrActivateComposer = (id, launchAction, composerProps) => {
516
+ const uid = getCompositeId(id, launchAction);
517
+ if (composersData[uid]) {
518
+ // Activate the existing composer
519
+ composersData[uid].handle?.current?.activate();
520
+ }
521
+ else {
522
+ // Create new composer
523
+ setComposersData(prev => {
524
+ const composerHandle = createRef();
525
+ return {
526
+ ...prev,
527
+ [uid]: {
528
+ ...composerProps,
529
+ bodyContentCurrentValue: composerProps.data.bodyContent.defaultValue,
530
+ handle: composerHandle,
531
+ onChange: (field, value) => handleChange(uid, field, value),
532
+ onCancel: () => handleCancel(uid),
533
+ onSend: () => handleSend(uid),
534
+ onSave: () => handleSave(uid)
535
+ }
536
+ };
537
+ });
538
+ }
539
+ };
279
540
  const emailsData = [
280
541
  {
281
- id: 'item_0',
542
+ id: 'item0',
282
543
  timeStamp: '2021-01-05T09:12',
283
544
  from: participants[0],
284
545
  to: participants.slice(0, 2),
@@ -306,7 +567,7 @@ export const EmailDemo = (args) => {
306
567
  })
307
568
  },
308
569
  {
309
- id: 'item_1',
570
+ id: 'item1',
310
571
  timeStamp: '2021-01-02T03:12',
311
572
  from: participants[3],
312
573
  to: participants.slice(2, 4),
@@ -315,35 +576,44 @@ export const EmailDemo = (args) => {
315
576
  subject: 'Pause service'
316
577
  }
317
578
  ].map(emailData => {
318
- const emailActionItems = emailDemoActions(create, emailData.subject);
579
+ const emailActionItems = emailDemoActions(emailData.id, emailData.subject, createOrActivateComposer, false, emailData.body);
319
580
  return {
320
581
  ...emailData,
321
- onReply: id => {
322
- launchEmailComposer(id, LaunchAction.REPLY, {
582
+ onReply: (id) => {
583
+ createOrActivateComposer(id, LaunchAction.REPLY, {
323
584
  ...baseComposerProps,
324
- externalValidator: handleExternalEntry,
325
- responseType: 'reply',
326
- subject: `Re-${emailData.subject}` || ''
327
- }, create);
585
+ data: {
586
+ ...baseComposerProps.data,
587
+ responseType: 'reply',
588
+ subject: { value: `Re-${emailData.subject}` || '' }
589
+ },
590
+ externalValidator: handleExternalEntry
591
+ });
328
592
  },
329
593
  onForward: id => {
330
- launchEmailComposer(id, LaunchAction.FORWARD, {
594
+ createOrActivateComposer(id, LaunchAction.FORWARD, {
331
595
  ...baseComposerProps,
332
- externalValidator: handleExternalEntry,
333
- responseType: 'forward',
334
- subject: `Fw-${emailData.subject}` || ''
335
- }, create);
596
+ data: {
597
+ ...baseComposerProps.data,
598
+ responseType: 'forward',
599
+ subject: { value: `Fw-${emailData.subject}` || '' }
600
+ },
601
+ externalValidator: handleExternalEntry
602
+ });
336
603
  },
337
604
  onSuggestionClick: (id, suggestionId) => {
338
605
  const suggestion = emailData.suggestions?.find(item => item.id === suggestionId);
339
- launchEmailComposer(id, LaunchAction.SUGGESTION, {
606
+ createOrActivateComposer(id, LaunchAction.SUGGESTION, {
340
607
  ...baseComposerProps,
341
- externalValidator: handleExternalEntry,
342
- responseType: 'reply',
343
- subject: suggestion?.title || '',
344
- bodyContent: suggestion ? suggestion.content : '',
345
- defaultTemplateId: suggestion?.id
346
- }, create);
608
+ data: {
609
+ ...baseComposerProps.data,
610
+ responseType: 'reply',
611
+ subject: { value: suggestion?.title || '' },
612
+ bodyContent: { defaultValue: suggestion ? suggestion.content : '' },
613
+ selectedTemplateId: suggestion?.id
614
+ },
615
+ externalValidator: handleExternalEntry
616
+ });
347
617
  },
348
618
  actions: emailActionItems,
349
619
  tags: args.hideSuggestions
@@ -356,59 +626,133 @@ export const EmailDemo = (args) => {
356
626
  }
357
627
  };
358
628
  });
359
- const emailConversations = [
360
- [...emailsData],
361
- [
362
- {
363
- ...emailsData[0],
364
- timeStamp: '2021-01-03T17:15',
365
- from: mockEmails['Hugh Phillips'],
366
- to: [mockEmails['Mystery Rey'], ...emailsData[0].to],
367
- cc: [mockEmails['Adam Gillchrist']],
368
- bcc: [mockEmails['Anton, Randy'], mockEmails['Hugh Phillips']],
369
- body: '<div>Hi, <br /> <br /><div>Sure, Our executive will come and check your connection in 24hrs. </div> <br />Regards, <br />Hugh Phillips </div>'
370
- },
371
- {
372
- ...emailsData[1],
373
- unRead: false,
374
- timeStamp: '2021-01-02T14:16',
375
- from: mockEmails['Mystery Rey'],
376
- to: [mockEmails['Hugh Phillips']],
377
- body: '<div>Hi, <br /> <br /><div>Can you fix my internet connection. </div> <br /> <br />Regards, <br />Rey Mystery </div>'
378
- }
379
- ],
380
- [
381
- {
382
- ...emailsData[0],
383
- unRead: false,
384
- timeStamp: '2020-12-05T18:18',
385
- from: mockEmails['Laura Stevens'],
386
- to: [mockEmails['Sara Davis']],
387
- body: '<div>Hi, <br /> <br /><div>Sure, Our executive will call you shortly. </div> <br /> <br />Regards, <br />Laura Stevens </div>',
388
- sentiment: {
389
- variant: 'positive'
629
+ const DeleteDraft = ({ currentID }) => {
630
+ const { dismiss } = useModalContext();
631
+ return (_jsx(Modal, { heading: 'Delete draft?', actions: _jsxs(_Fragment, { children: [_jsx(Button, { onClick: dismiss, children: "Go back" }), _jsx(Button, { variant: 'primary', onClick: () => {
632
+ dismiss();
633
+ setConversationEmails(prev => {
634
+ const newEmailConversation = [];
635
+ prev.forEach(arr => {
636
+ const newArr = arr.filter(index => index.id !== currentID);
637
+ if (newArr.length !== 0)
638
+ newEmailConversation.push(newArr);
639
+ });
640
+ return newEmailConversation;
641
+ });
642
+ }, children: "Delete" })] }), children: _jsx(Text, { children: "Are you sure that you want to permanently delete the selected message?" }) }));
643
+ };
644
+ const deleteEmail = (id) => {
645
+ create(DeleteDraft, { currentID: id }, { alert: true });
646
+ };
647
+ useEffect(() => {
648
+ setConversationEmails([
649
+ [
650
+ {
651
+ ...emailsData[1],
652
+ id: 'item0',
653
+ from: mailDeliverySystemEmail,
654
+ to: [supportTeamEmail],
655
+ body: '<div>Hi, <br /> <br /><div>Your address change request is approved.</div> <br /> <br />Regards, <br />Support team </div>',
656
+ banner: {
657
+ id: 'banner_1',
658
+ heading: 'Address not found ',
659
+ messages: [
660
+ '550 5.1.1 The email account that you tried to reach does not exist. Please try double-checking the recipients email address for typos or unnecessary spaces. Learn more at https://support.google.com/mail/?p=NoSuchUser k24-20020aa790d8000000b0050dd7e3b84csor451330pfk.28'
661
+ ]
662
+ },
663
+ onReply: undefined,
664
+ onForward: undefined
665
+ },
666
+ { ...emailsData[1], unRead: false }
667
+ ],
668
+ [
669
+ {
670
+ ...emailsData[0],
671
+ id: 'item2',
672
+ status: 'draft',
673
+ onEditDraft: (id) => createOrActivateComposer(id, LaunchAction.REPLY, {
674
+ ...baseComposerProps,
675
+ data: {
676
+ ...baseComposerProps.data,
677
+ responseType: 'reply',
678
+ subject: { value: `Re-${emailsData[0].subject}` || '' },
679
+ bodyContent: { defaultValue: emailsData[0].body || '' }
680
+ }
681
+ }),
682
+ onDeleteDraft: (id) => deleteEmail(id),
683
+ onReply: undefined,
684
+ onForward: undefined,
685
+ suggestions: undefined,
686
+ unRead: false,
687
+ timeStamp: '2021-01-03T17:15',
688
+ from: mockEmails['Hugh Phillips'],
689
+ to: [mockEmails['Mystery Rey'], ...emailsData[0].to],
690
+ cc: [mockEmails['Adam Gillchrist']],
691
+ bcc: [mockEmails['Anton, Randy'], mockEmails['Hugh Phillips']],
692
+ body: '<div>Hi, <br /> <br /><div>Sure, Our executive will come and check your connection in 24hrs. </div> <br />Regards, <br />Hugh Phillips </div>'
693
+ },
694
+ {
695
+ ...emailsData[1],
696
+ id: 'item3',
697
+ status: 'draft',
698
+ onEditDraft: (id) => createOrActivateComposer(id, LaunchAction.REPLY, {
699
+ ...baseComposerProps,
700
+ data: {
701
+ ...baseComposerProps.data,
702
+ responseType: 'reply',
703
+ subject: { value: `Re-${emailsData[0].subject}` || '' },
704
+ bodyContent: { defaultValue: emailsData[0].body || '' }
705
+ }
706
+ }),
707
+ onDeleteDraft: (id) => deleteEmail(id),
708
+ onReply: undefined,
709
+ onForward: undefined,
710
+ suggestions: undefined,
711
+ unRead: false,
712
+ timeStamp: '2021-01-02T14:16',
713
+ from: mockEmails['Mystery Rey'],
714
+ to: [mockEmails['Hugh Phillips']],
715
+ body: '<div>Hi, <br /> <br /><div>Can you fix my internet connection. </div> <br /> <br />Regards, <br />Rey Mystery </div>'
390
716
  }
391
- },
392
- {
393
- ...emailsData[1],
394
- unRead: false,
395
- timeStamp: '2021-01-04T08:30',
396
- from: mockEmails['Sara Davis'],
397
- to: [mockEmails['Laura Stevens']],
398
- body: '<div>Hi, <br /> <br /><div>Can you show please explain your new mobile plans. </div> <br /> <br />Regards, <br />Sara Davis </div>'
399
- }
400
- ]
401
- ].map((emails, i) => {
717
+ ],
718
+ [
719
+ {
720
+ ...emailsData[0],
721
+ id: 'item4',
722
+ unRead: true,
723
+ timeStamp: '2020-12-05T18:18',
724
+ from: mockEmails['Laura Stevens'],
725
+ to: [mockEmails['Sara Davis']],
726
+ body: '<div>Hi, <br /> <br /><div>Sure, Our executive will call you shortly. </div> <br /> <br />Regards, <br />Laura Stevens </div>',
727
+ sentiment: {
728
+ variant: 'positive'
729
+ }
730
+ },
731
+ {
732
+ ...emailsData[1],
733
+ id: 'item5',
734
+ unRead: true,
735
+ timeStamp: '2021-01-04T08:30',
736
+ from: mockEmails['Sara Davis'],
737
+ to: [mockEmails['Laura Stevens']],
738
+ body: '<div>Hi, <br /> <br /><div>Can you show please explain your new mobile plans. </div> <br /> <br />Regards, <br />Sara Davis </div>'
739
+ }
740
+ ]
741
+ ]);
742
+ }, []);
743
+ const emailConversations = conversationEmails.map((emails, i) => {
402
744
  return {
403
- from: generateEmailConversationParticipants(emails, ['from'])[0],
404
- to: emails[0].to,
745
+ from: i === 0 ? emails[1].from : generateEmailConversationParticipants(emails, ['from'])[0],
746
+ to: i === 0 ? emails[1].to : emails[0].to,
405
747
  id: `item_${i}`,
406
748
  timeStamp: emails[0].timeStamp,
407
749
  unReadEmailCount: emails.filter(item => item.unRead).length,
408
750
  emails,
409
751
  sentiment: emails[0].sentiment,
410
752
  isForwarded: i !== 2,
411
- isCollapsed: i !== 0
753
+ isCollapsed: i !== 0,
754
+ drafts: i === 1,
755
+ undelivered: i === 0
412
756
  };
413
757
  });
414
758
  const singleEmailConversation = [
@@ -417,48 +761,103 @@ export const EmailDemo = (args) => {
417
761
  to: generateEmailConversationParticipants(emailsData, ['to']),
418
762
  id: 'item_0',
419
763
  timeStamp: new Date(emailsData[0].timeStamp),
420
- unReadEmailCount: emailsData.filter(item => item.unRead).length,
421
- emails: emailsData
764
+ unReadEmailCount: 1,
765
+ emails: [
766
+ {
767
+ ...emailsData[1],
768
+ id: 'item0',
769
+ from: mailDeliverySystemEmail,
770
+ to: [supportTeamEmail],
771
+ body: '<div>Hi, <br /> <br /><div>Your address change request is approved.</div> <br /> <br />Regards, <br />Support team </div>',
772
+ banner: {
773
+ id: 'banner_1',
774
+ heading: 'Address not found ',
775
+ messages: [
776
+ '550 5.1.1 The email account that you tried to reach does not exist. Please try double-checking the recipients email address for typos or unnecessary spaces. Learn more at https://support.google.com/mail/?p=NoSuchUser k24-20020aa790d8000000b0050dd7e3b84csor451330pfk.28'
777
+ ]
778
+ },
779
+ onReply: undefined,
780
+ onForward: undefined
781
+ },
782
+ { ...emailsData[1], unRead: false }
783
+ ]
422
784
  }
423
785
  ];
424
- return (_jsx(EmailShell, { style: {
425
- height: 'calc(100vh)',
426
- width: '30rem',
427
- margin: 'auto'
428
- }, headerProps: {
429
- actions: (_jsxs(Flex, { container: {
430
- alignItems: 'center',
431
- gap: 0
432
- }, children: [_jsx(Button, { variant: 'simple', icon: true, children: _jsx(Icon, { name: 'filter' }) }), _jsx(MenuButton, { variant: 'simple', text: 'More actions', icon: 'more', iconOnly: true, portal: true, menu: { items: actions } })] })),
433
- subject: 'Pause service'
434
- }, autoCollapse: args.autoCollapse, conversations: args.singleConversation ? singleEmailConversation : emailConversations }));
786
+ return (_jsxs(_Fragment, { children: [_jsx(EmailShell, { headerProps: args.showHeader
787
+ ? {
788
+ actions: (_jsxs(Flex, { container: {
789
+ alignItems: 'center',
790
+ gap: 0
791
+ }, children: [_jsx(Button, { variant: 'simple', icon: true, children: _jsx(Icon, { name: 'filter' }) }), _jsx(MenuButton, { variant: 'simple', text: 'More actions', icon: 'more', iconOnly: true, portal: true, menu: { items: actions } })] })),
792
+ subject: 'Pause service'
793
+ }
794
+ : undefined, autoCollapse: args.autoCollapse, conversations: args.singleConversation ? singleEmailConversation : emailConversations }), _jsx(_Fragment, { children: Object.keys(composersData).map(guid => {
795
+ return _jsx(EmailComposer, { ...composersData[guid] }, guid);
796
+ }) })] }));
435
797
  };
436
- EmailDemo.args = {
798
+ EmailShellDemo.args = {
437
799
  autoCollapse: true,
438
800
  hideSuggestions: false,
439
- singleConversation: true
801
+ singleConversation: false,
802
+ showHeader: true
440
803
  };
441
- EmailDemo.argTypes = {
804
+ EmailShellDemo.argTypes = {
442
805
  autoCollapse: { control: { type: 'boolean' } },
443
806
  hideSuggestions: { control: { type: 'boolean' } },
444
- singleConversation: { control: { type: 'boolean' } }
807
+ singleConversation: { control: { type: 'boolean' } },
808
+ showHeader: { control: { type: 'boolean' } }
445
809
  };
446
- EmailDemo.parameters = {
447
- layout: 'fullscreen'
810
+ export const EntityListDemo = (args) => {
811
+ const itemCounter = useRef(3);
812
+ const timeout = useRef(null);
813
+ const contextMenuHandle = useRef(null);
814
+ const headerProps = {
815
+ icon: 'list-number',
816
+ text: 'Entities'
817
+ };
818
+ const handleRightClick = (e) => {
819
+ action('onContextMenu')(e);
820
+ if (contextMenuHandle.current && args.enableContextMenu) {
821
+ itemCounter.current += 1;
822
+ const { setItems, setOpen, setLoading } = contextMenuHandle.current;
823
+ // Deciding not to show browser context menu
824
+ // This should be synchronus
825
+ e.preventDefault();
826
+ // Now open the custom context menu using the handle and show loader
827
+ setLoading(true);
828
+ setItems([]);
829
+ setOpen(true);
830
+ if (timeout.current) {
831
+ window.clearTimeout(timeout.current);
832
+ }
833
+ timeout.current = window.setTimeout(() => {
834
+ setItems(contextMenuItemsMock);
835
+ // Hide the loader
836
+ setLoading(false);
837
+ }, 1000);
838
+ }
839
+ };
840
+ useEffect(() => {
841
+ return () => {
842
+ if (timeout.current) {
843
+ window.clearTimeout(timeout.current);
844
+ }
845
+ };
846
+ }, []);
847
+ return (_jsx(EntityList, { header: headerProps, content: EntityListMockData, contextMenu: {
848
+ onItemClick: action('onItemClick'),
849
+ onContextMenu: args.onContextMenu || handleRightClick,
850
+ handle: contextMenuHandle
851
+ } }));
448
852
  };
449
- /*
450
- ______ _ _ _____ _____ _
451
- | ____| (_) | / ____| |_ _| |
452
- | |__ _ __ ___ __ _ _| | | (___ _ _ _ __ ___ _ __ ___ __ _ _ __ _ _ | | | |_ ___ _ __ ___
453
- | __| | '_ ` _ \ / _` | | | \___ \| | | | '_ ` _ \| '_ ` _ \ / _` | '__| | | | | | | __/ _ \ '_ ` _ \
454
- | |____| | | | | | (_| | | | ____) | |_| | | | | | | | | | | | (_| | | | |_| | _| |_| || __/ | | | | |
455
- |______|_| |_| |_|\__,_|_|_| |_____/ \__,_|_| |_| |_|_| |_| |_|\__,_|_| \__, | |_____|\__\___|_| |_| |_|
456
- __/ |
457
- |___/
458
- */
459
- export const EmailSummaryItemDemo = () => {
460
- const [active, setActive] = useState(false);
461
- return (_jsx(EmailSummaryItem, { style: { width: '25rem' }, id: createUID(), activeParticipants: [
853
+ EntityListDemo.args = {
854
+ enableContextMenu: true
855
+ };
856
+ EntityListDemo.argTypes = {
857
+ enableContextMenu: { control: { type: 'boolean' } }
858
+ };
859
+ export const EmailSummaryItemDemo = (args) => {
860
+ return (_jsx(EmailSummaryItem, { id: createUID(), activeParticipants: [
462
861
  {
463
862
  shortName: 'Robert',
464
863
  fullName: 'Robert Downer',
@@ -469,52 +868,24 @@ export const EmailSummaryItemDemo = () => {
469
868
  fullName: 'Nathan Swanson',
470
869
  emailAddress: 'nathan.swanson@example.com'
471
870
  }
472
- ], message: 'I have a quick question on traveling to India. How do I reach Hyderabad?', timeStamp: new Date(Date.UTC(new Date().getUTCFullYear(), new Date().getUTCMonth(), 24)), topic: 'Missing Luggage', sentiment: sentiment, urgency: 10, unreadEmailCount: active ? 0 : 8, active: active, onClick: () => {
473
- setActive(true);
871
+ ], message: 'I have a quick question on traveling to India. How do I reach Hyderabad?', timeStamp: new Date(Date.UTC(new Date().getUTCFullYear(), new Date().getUTCMonth(), 24)), topic: 'Missing Luggage', sentiment: sentiment, urgency: 10, unreadEmailCount: args.unreadEmailCount, active: args.isActive, onSelect: (id) => {
872
+ action('onSelect')(id);
474
873
  } }));
475
874
  };
476
- /*
477
- ______ _ _ _____ _ _ _
478
- | ____| (_) | / ____| | | (_) | |
479
- | |__ _ __ ___ __ _ _| | | (___ _ _ _ __ ___ _ __ ___ __ _ _ __ _ _ | | _ ___| |_
480
- | __| | '_ ` _ \ / _` | | | \___ \| | | | '_ ` _ \| '_ ` _ \ / _` | '__| | | | | | | / __| __|
481
- | |____| | | | | | (_| | | | ____) | |_| | | | | | | | | | | | (_| | | | |_| | | |____| \__ \ |_
482
- |______|_| |_| |_|\__,_|_|_| |_____/ \__,_|_| |_| |_|_| |_| |_|\__,_|_| \__, | |______|_|___/\__|
483
- __/ |
484
- |___/
485
- */
486
- export const EmailSummaryListDemo = () => {
875
+ EmailSummaryItemDemo.args = {
876
+ unreadEmailCount: 0,
877
+ isActive: false
878
+ };
879
+ EmailSummaryItemDemo.argTypes = {
880
+ unreadEmailCount: { control: { type: 'number' } },
881
+ isActive: { control: { type: 'boolean' } }
882
+ };
883
+ export const EmailSummaryListDemo = (args) => {
487
884
  const INITIAL_CHUNK_SIZE = 9;
488
885
  const APPEND_CHUNK_SIZE = 1;
489
- const emailSummaryListRef = useRef(null);
490
886
  const [allEmailItems, setAllEmailItems] = useState(emailSummaryItems.slice(0, INITIAL_CHUNK_SIZE));
491
- const [categories, setCategories] = useState([
492
- {
493
- id: 'item_0',
494
- primary: 'Default worklist',
495
- selected: false
496
- },
497
- {
498
- id: 'item_1',
499
- primary: 'Authors',
500
- selected: false
501
- },
502
- {
503
- id: 'item_2',
504
- primary: 'Administrators',
505
- selected: false
506
- },
507
- {
508
- id: 'item_3',
509
- primary: 'Managers',
510
- selected: false
511
- },
512
- {
513
- id: 'item_4',
514
- primary: 'Users',
515
- selected: false
516
- }
517
- ]);
887
+ const [categories, setCategories] = useState(emailWorklistItemsMock);
888
+ const [currentItemId, setCurrentItemId] = useState(emailSummaryItems[0].id);
518
889
  const handleItemClick = (id) => {
519
890
  const index = allEmailItems.findIndex(emailItem => {
520
891
  return emailItem.id === id;
@@ -522,6 +893,7 @@ export const EmailSummaryListDemo = () => {
522
893
  const newEmailItems = [...allEmailItems];
523
894
  newEmailItems.splice(index, 1, { ...allEmailItems[index], unreadEmailCount: 0 });
524
895
  setAllEmailItems(newEmailItems);
896
+ setCurrentItemId(id);
525
897
  };
526
898
  const onCategoryClick = (id) => {
527
899
  setCategories(cur => menuHelpers.toggleSelected(cur, id, 'single-select'));
@@ -544,9 +916,111 @@ export const EmailSummaryListDemo = () => {
544
916
  }, 1500);
545
917
  }
546
918
  }, [loading]);
547
- return (_jsx(EmailSummaryList, { style: { height: '100vh', width: '25rem', margin: 'auto' }, ref: emailSummaryListRef, unreadEmailCount: 99, categories: categories, items: allEmailItems, onItemClick: handleItemClick, onCategoryClick: onCategoryClick, onLoadMore: hasMore ? loadMore : undefined, loading: loading, emptyMessage: 'No emails.' }));
919
+ return (_jsx(EmailSummaryList, { unreadEmailCount: 99, categories: categories, items: args.items || allEmailItems, onItemClick: args.onItemClick || handleItemClick, onCategoryClick: onCategoryClick, onLoadMore: args.onLoadMore || (hasMore ? loadMore : undefined), loading: args.loading || loading, emptyMessage: 'No emails.', currentItemId: args.currentItemId || currentItemId }));
920
+ };
921
+ export const EmailCaseViewDemo = (args) => {
922
+ const content = _jsx(EmailShellDemo, {});
923
+ const utilities = (
924
+ // View analysis utility
925
+ _jsxs(Grid, { container: { rowGap: 2 }, children: [_jsx(EntityListDemo, {}), _jsxs(Card, { children: [_jsxs(CardHeader, { container: { alignItems: 'center', gap: 1 }, children: [_jsx(Icon, { name: 'document-doc' }), _jsx(Text, { variant: 'h3', children: "Email header" })] }), _jsx(CardContent, { children: _jsx(FieldValueList, { fields: viewAnalysisEmailHeaderMock, variant: 'stacked' }) })] }), _jsx(SummaryList, { name: 'Topics', icon: 'headline', items: topicListMock.map(items => ({
926
+ ...items,
927
+ primary: _jsx(StyledLabel, { children: items.primary }),
928
+ secondary: (_jsxs(Flex, { container: { direction: 'row', justify: 'between' }, children: [_jsx(Text, { variant: 'primary', children: items.secondary.indicator }), _jsx(StyledLabel, { children: items.secondary.value })] }))
929
+ })), noItemsText: 'No items' })] }));
930
+ return (_jsx(AppShellDemo, { appHeader: true, main: _jsx(EmailCaseView, { header: args.showHeader
931
+ ? {
932
+ icon: 'mail',
933
+ title: 'ET-5432'
934
+ }
935
+ : undefined, banners: args.showBanners && (_jsx(Banner, { id: 'error', variant: 'urgent', heading: 'Error', messages: ['Your email could not be delivered due to poor network connection.'] })), content: content, utilities: !args.noUtilityView && utilities, utilitiesSummaryItems: !args.noUtilityView
936
+ ? [
937
+ { iconName: 'list-number', count: 7 },
938
+ { iconName: 'document-doc', count: 1 },
939
+ { iconName: 'headline', count: 4 }
940
+ ]
941
+ : undefined, defaultUtilitiesExpanded: true }) }));
942
+ };
943
+ EmailCaseViewDemo.args = {
944
+ showBanners: false,
945
+ noUtilityView: false,
946
+ showHeader: true
947
+ };
948
+ EmailCaseViewDemo.argTypes = {
949
+ showBanners: { control: { type: 'boolean' } },
950
+ noUtilityView: { control: { type: 'boolean' } },
951
+ showHeader: { control: { type: 'boolean' } }
952
+ };
953
+ EmailCaseViewDemo.parameters = {
954
+ layout: 'fullscreen'
955
+ };
956
+ export const EmailManagerAppShell = (args) => {
957
+ const INITIAL_CHUNK_SIZE = 9;
958
+ const APPEND_CHUNK_SIZE = 1;
959
+ const [emailList, setEmailList] = useState(emailSummaryItems.slice(0, INITIAL_CHUNK_SIZE));
960
+ const [loading, setLoading] = useState(false);
961
+ const [hasMore, setHasMore] = useState(true);
962
+ const handleEmailItemClick = (id) => {
963
+ const index = emailList.findIndex(emailItem => {
964
+ return emailItem.id === id;
965
+ });
966
+ const newEmailList = [...emailList];
967
+ newEmailList.splice(index, 1, { ...emailList[index], unreadEmailCount: 0 });
968
+ setEmailList(newEmailList);
969
+ };
970
+ const onLoadMore = useCallback(() => {
971
+ if (!loading) {
972
+ setLoading(true);
973
+ setTimeout(() => {
974
+ setLoading(false);
975
+ setEmailList(prevItems => {
976
+ const previousItemsLength = prevItems.length;
977
+ const newItems = emailSummaryItems.slice(previousItemsLength, previousItemsLength + APPEND_CHUNK_SIZE);
978
+ if (newItems.length === 0) {
979
+ setHasMore(false);
980
+ }
981
+ return [...prevItems, ...newItems];
982
+ });
983
+ }, 1500);
984
+ }
985
+ }, [loading]);
986
+ const utilities = (
987
+ // View analysis utility
988
+ _jsxs(Grid, { container: { rowGap: 2 }, children: [_jsx(EntityListDemo, {}), _jsxs(Card, { children: [_jsxs(CardHeader, { container: { alignItems: 'center', gap: 1 }, children: [_jsx(Icon, { name: 'document-doc' }), _jsx(Text, { variant: 'h3', children: "Email header" })] }), _jsx(CardContent, { children: _jsx(FieldValueList, { fields: viewAnalysisEmailHeaderMock, variant: 'stacked' }) })] }), _jsx(SummaryList, { name: 'Topics', icon: 'headline', items: topicListMock.map(items => ({
989
+ ...items,
990
+ primary: _jsx(StyledLabel, { children: items.primary }),
991
+ secondary: (_jsxs(Flex, { container: { direction: 'row', justify: 'between' }, children: [_jsx(Text, { variant: 'primary', children: items.secondary.indicator }), _jsx(StyledLabel, { children: items.secondary.value })] }))
992
+ })), noItemsText: 'No items' })] }));
993
+ const content = _jsx(EmailShellDemo, { showHeader: false });
994
+ return (_jsx(AppShellDemo, { appHeader: true, main: _jsx(EmailManager, { header: args.showHeader
995
+ ? {
996
+ icon: 'mail',
997
+ title: 'Inbox'
998
+ }
999
+ : undefined, list: _jsx(EmailSummaryListDemo, { onItemClick: handleEmailItemClick, items: emailList, onLoadMore: hasMore ? onLoadMore : undefined, loading: loading }), emailCaseDetails: !args.showEmptyView && (_jsx(EmailCaseView, { banners: args.showCaseViewBanners && (_jsx(Banner, { id: 'error', variant: 'urgent', heading: 'Error', messages: [
1000
+ 'Your email could not be delivered due to poor network connection.'
1001
+ ] })), content: content, utilities: args.showUtilities && utilities, utilitiesSummaryItems: args.showUtilities
1002
+ ? [
1003
+ { iconName: 'list-number', count: 7 },
1004
+ { iconName: 'document-doc', count: 1 },
1005
+ { iconName: 'headline', count: 4 }
1006
+ ]
1007
+ : undefined, defaultUtilitiesExpanded: false })) }) }));
1008
+ };
1009
+ EmailManagerAppShell.args = {
1010
+ enableContextMenu: true,
1011
+ showEmptyView: false,
1012
+ showHeader: true,
1013
+ showCaseViewBanners: false,
1014
+ showUtilities: true
1015
+ };
1016
+ EmailManagerAppShell.argTypes = {
1017
+ enableContextMenu: { control: { type: 'boolean' } },
1018
+ showEmptyView: { control: { type: 'boolean' } },
1019
+ showHeader: { control: { type: 'boolean' } },
1020
+ showCaseViewBanners: { control: { type: 'boolean' } },
1021
+ showUtilities: { control: { type: 'boolean' } }
548
1022
  };
549
- EmailSummaryListDemo.parameters = {
1023
+ EmailManagerAppShell.parameters = {
550
1024
  layout: 'fullscreen'
551
1025
  };
552
1026
  //# sourceMappingURL=Email.stories.js.map