@pega/cosmos-react-demos 8.0.0-build.9.1 → 8.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (697) hide show
  1. package/jsx/build/BackgroundPicker/BackgroundPicker.stories.d.ts +9 -0
  2. package/jsx/build/BackgroundPicker/BackgroundPicker.stories.d.ts.map +1 -0
  3. package/jsx/build/BackgroundPicker/BackgroundPicker.stories.jsx +42 -0
  4. package/jsx/build/BackgroundPicker/BackgroundPicker.stories.jsx.map +1 -0
  5. package/jsx/build/DynamicInput/DynamicInput.stories.d.ts +2 -2
  6. package/jsx/build/DynamicInput/DynamicInput.stories.d.ts.map +1 -1
  7. package/jsx/build/DynamicInput/DynamicInput.stories.jsx +37 -13
  8. package/jsx/build/DynamicInput/DynamicInput.stories.jsx.map +1 -1
  9. package/jsx/build/Expression/Expression.mocks.d.ts +11 -0
  10. package/jsx/build/Expression/Expression.mocks.d.ts.map +1 -0
  11. package/jsx/build/Expression/Expression.mocks.js +41 -0
  12. package/jsx/build/Expression/Expression.mocks.js.map +1 -0
  13. package/jsx/build/Expression/Expression.stories.d.ts +18 -0
  14. package/jsx/build/Expression/Expression.stories.d.ts.map +1 -0
  15. package/jsx/build/Expression/Expression.stories.jsx +57 -0
  16. package/jsx/build/Expression/Expression.stories.jsx.map +1 -0
  17. package/jsx/build/Expression/useMockExpression.d.ts +96 -0
  18. package/jsx/build/Expression/useMockExpression.d.ts.map +1 -0
  19. package/jsx/build/Expression/useMockExpression.js +321 -0
  20. package/jsx/build/Expression/useMockExpression.js.map +1 -0
  21. package/jsx/build/ExpressionBuilder/ExpressionBuilder.mocks.d.ts +59 -0
  22. package/jsx/build/ExpressionBuilder/ExpressionBuilder.mocks.d.ts.map +1 -0
  23. package/jsx/build/ExpressionBuilder/ExpressionBuilder.mocks.js +568 -0
  24. package/jsx/build/ExpressionBuilder/ExpressionBuilder.mocks.js.map +1 -0
  25. package/jsx/build/FieldReference/FieldReference.mocks.d.ts.map +1 -1
  26. package/jsx/build/FieldReference/FieldReference.mocks.js +7 -2
  27. package/jsx/build/FieldReference/FieldReference.mocks.js.map +1 -1
  28. package/jsx/build/IconTile/IconTile.mocks.d.ts +8 -0
  29. package/jsx/build/IconTile/IconTile.mocks.d.ts.map +1 -0
  30. package/jsx/build/IconTile/IconTile.mocks.js +247 -0
  31. package/jsx/build/IconTile/IconTile.mocks.js.map +1 -0
  32. package/jsx/build/IconTile/IconTile.stories.d.ts +11 -0
  33. package/jsx/build/IconTile/IconTile.stories.d.ts.map +1 -0
  34. package/jsx/build/IconTile/IconTile.stories.jsx +29 -0
  35. package/jsx/build/IconTile/IconTile.stories.jsx.map +1 -0
  36. package/jsx/build/ItemLibrary/LibraryPicker.mocks.d.ts +3 -0
  37. package/jsx/build/ItemLibrary/LibraryPicker.mocks.d.ts.map +1 -0
  38. package/jsx/build/ItemLibrary/LibraryPicker.mocks.js +40 -0
  39. package/jsx/build/ItemLibrary/LibraryPicker.mocks.js.map +1 -0
  40. package/jsx/build/ItemLibrary/LibraryPicker.stories.d.ts +5 -0
  41. package/jsx/build/ItemLibrary/LibraryPicker.stories.d.ts.map +1 -0
  42. package/jsx/build/ItemLibrary/LibraryPicker.stories.jsx +32 -0
  43. package/jsx/build/ItemLibrary/LibraryPicker.stories.jsx.map +1 -0
  44. package/jsx/build/LifeCycle/LifeCycle.mocks.d.ts +382 -0
  45. package/jsx/build/LifeCycle/LifeCycle.mocks.d.ts.map +1 -0
  46. package/jsx/build/LifeCycle/LifeCycle.mocks.js +1652 -0
  47. package/jsx/build/LifeCycle/LifeCycle.mocks.js.map +1 -0
  48. package/jsx/build/LifeCycle/LifeCycle.stories.d.ts +23 -0
  49. package/jsx/build/LifeCycle/LifeCycle.stories.d.ts.map +1 -0
  50. package/jsx/build/LifeCycle/LifeCycle.stories.jsx +1115 -0
  51. package/jsx/build/LifeCycle/LifeCycle.stories.jsx.map +1 -0
  52. package/jsx/build/LifeCycle/LifeCycle.styles.d.ts +5 -0
  53. package/jsx/build/LifeCycle/LifeCycle.styles.d.ts.map +1 -0
  54. package/jsx/build/LifeCycle/LifeCycle.styles.js +9 -0
  55. package/jsx/build/LifeCycle/LifeCycle.styles.js.map +1 -0
  56. package/jsx/build/LifeCycle/LifeCycleTest.mocks.d.ts +18 -0
  57. package/jsx/build/LifeCycle/LifeCycleTest.mocks.d.ts.map +1 -0
  58. package/jsx/build/LifeCycle/LifeCycleTest.mocks.js +5998 -0
  59. package/jsx/build/LifeCycle/LifeCycleTest.mocks.js.map +1 -0
  60. package/jsx/build/LifeCycle/utils.d.ts +123 -0
  61. package/jsx/build/LifeCycle/utils.d.ts.map +1 -0
  62. package/jsx/build/LifeCycle/utils.js +304 -0
  63. package/jsx/build/LifeCycle/utils.js.map +1 -0
  64. package/jsx/condition-builder/ConditionBuilder/ConditionBuilder.styles.d.ts +1 -1
  65. package/jsx/condition-builder/ConditionBuilder/ConditionBuilder.styles.d.ts.map +1 -1
  66. package/jsx/condition-builder/ConditionBuilder/props.mock.d.ts.map +1 -1
  67. package/jsx/condition-builder/ConditionBuilder/props.mock.js +9 -1
  68. package/jsx/condition-builder/ConditionBuilder/props.mock.js.map +1 -1
  69. package/jsx/condition-builder/PromotedFilters/PromotedFilters.mocks.d.ts +2 -2
  70. package/jsx/condition-builder/PromotedFilters/PromotedFilters.mocks.d.ts.map +1 -1
  71. package/jsx/condition-builder/PromotedFilters/PromotedFilters.mocks.js +50 -5
  72. package/jsx/condition-builder/PromotedFilters/PromotedFilters.mocks.js.map +1 -1
  73. package/jsx/condition-builder/PromotedFilters/PromotedFilters.stories.d.ts.map +1 -1
  74. package/jsx/condition-builder/PromotedFilters/PromotedFilters.stories.jsx.map +1 -1
  75. package/jsx/condition-builder/PromotedFilters/PromotedFilters.styles.d.ts +2 -2
  76. package/jsx/condition-builder/PromotedFilters/PromotedFilters.styles.d.ts.map +1 -1
  77. package/jsx/core/AppShell/AppShell.stories.d.ts +3 -3
  78. package/jsx/core/AppShell/AppShell.stories.d.ts.map +1 -1
  79. package/jsx/core/AppShell/AppShell.stories.jsx.map +1 -1
  80. package/jsx/core/Banner/Banner.mocks.d.ts +4 -1
  81. package/jsx/core/Banner/Banner.mocks.d.ts.map +1 -1
  82. package/jsx/core/Banner/Banner.mocks.jsx.map +1 -1
  83. package/jsx/core/Banner/Banner.stories.d.ts +1 -1
  84. package/jsx/core/Banner/Banner.stories.d.ts.map +1 -1
  85. package/jsx/core/Banner/Banner.stories.jsx +20 -7
  86. package/jsx/core/Banner/Banner.stories.jsx.map +1 -1
  87. package/jsx/core/Button/Button.stories.d.ts +0 -1
  88. package/jsx/core/Button/Button.stories.d.ts.map +1 -1
  89. package/jsx/core/Button/Button.stories.jsx +0 -13
  90. package/jsx/core/Button/Button.stories.jsx.map +1 -1
  91. package/jsx/core/Checkbox/Checkbox.stories.d.ts +11 -2
  92. package/jsx/core/Checkbox/Checkbox.stories.d.ts.map +1 -1
  93. package/jsx/core/Checkbox/Checkbox.stories.jsx +68 -8
  94. package/jsx/core/Checkbox/Checkbox.stories.jsx.map +1 -1
  95. package/jsx/core/CheckboxGroup/CheckboxGroup.stories.d.ts +10 -1
  96. package/jsx/core/CheckboxGroup/CheckboxGroup.stories.d.ts.map +1 -1
  97. package/jsx/core/CheckboxGroup/CheckboxGroup.stories.jsx +91 -38
  98. package/jsx/core/CheckboxGroup/CheckboxGroup.stories.jsx.map +1 -1
  99. package/jsx/core/CheckboxGroup/CheckboxGroup.styles.d.ts +2 -2
  100. package/jsx/core/CheckboxGroup/CheckboxGroup.styles.d.ts.map +1 -1
  101. package/jsx/core/DateTime/DateTimeDisplay.stories.jsx +1 -1
  102. package/jsx/core/DateTime/DateTimeDisplay.stories.jsx.map +1 -1
  103. package/jsx/core/File/FileDisplay.stories.d.ts +1 -0
  104. package/jsx/core/File/FileDisplay.stories.d.ts.map +1 -1
  105. package/jsx/core/File/FileDisplay.stories.jsx +5 -3
  106. package/jsx/core/File/FileDisplay.stories.jsx.map +1 -1
  107. package/jsx/core/Fullscreen/Fullscreen.styles.d.ts +1 -1
  108. package/jsx/core/Fullscreen/Fullscreen.styles.d.ts.map +1 -1
  109. package/jsx/core/Icon/Icon.stories.d.ts.map +1 -1
  110. package/jsx/core/Icon/Icon.stories.jsx +4 -4
  111. package/jsx/core/Icon/Icon.stories.jsx.map +1 -1
  112. package/jsx/core/IconPicker/IconPicker.mocks.d.ts +1 -1
  113. package/jsx/core/IconPicker/IconPicker.mocks.d.ts.map +1 -1
  114. package/jsx/core/IconPicker/IconPicker.stories.d.ts.map +1 -1
  115. package/jsx/core/IconPicker/IconPicker.stories.jsx +1 -1
  116. package/jsx/core/IconPicker/IconPicker.stories.jsx.map +1 -1
  117. package/jsx/core/ListToolbar/ListToolbar.stories.d.ts +1 -0
  118. package/jsx/core/ListToolbar/ListToolbar.stories.d.ts.map +1 -1
  119. package/jsx/core/ListToolbar/ListToolbar.stories.jsx +20 -2
  120. package/jsx/core/ListToolbar/ListToolbar.stories.jsx.map +1 -1
  121. package/jsx/core/Location/locationTestUtils.d.ts.map +1 -1
  122. package/jsx/core/Location/locationTestUtils.js +1 -0
  123. package/jsx/core/Location/locationTestUtils.js.map +1 -1
  124. package/jsx/core/Menu/Menu.stories.d.ts.map +1 -1
  125. package/jsx/core/Menu/Menu.stories.jsx +10 -1
  126. package/jsx/core/Menu/Menu.stories.jsx.map +1 -1
  127. package/jsx/core/MultiStepForm/MultiStepForm.mocks.d.ts +15 -16
  128. package/jsx/core/MultiStepForm/MultiStepForm.mocks.d.ts.map +1 -1
  129. package/jsx/core/MultiStepForm/MultiStepForm.mocks.jsx +5 -7
  130. package/jsx/core/MultiStepForm/MultiStepForm.mocks.jsx.map +1 -1
  131. package/jsx/core/PageTemplates/GridLayout.mocks.d.ts +42 -0
  132. package/jsx/core/PageTemplates/GridLayout.mocks.d.ts.map +1 -0
  133. package/jsx/core/PageTemplates/GridLayout.mocks.jsx +152 -0
  134. package/jsx/core/PageTemplates/GridLayout.mocks.jsx.map +1 -0
  135. package/jsx/core/PageTemplates/GridLayout.stories.d.ts +6 -0
  136. package/jsx/core/PageTemplates/GridLayout.stories.d.ts.map +1 -0
  137. package/jsx/core/PageTemplates/GridLayout.stories.jsx +81 -0
  138. package/jsx/core/PageTemplates/GridLayout.stories.jsx.map +1 -0
  139. package/jsx/core/PageTemplates/PageTemplates.stories.d.ts +2 -0
  140. package/jsx/core/PageTemplates/PageTemplates.stories.d.ts.map +1 -1
  141. package/jsx/core/PageTemplates/PageTemplates.stories.jsx +48 -2
  142. package/jsx/core/PageTemplates/PageTemplates.stories.jsx.map +1 -1
  143. package/jsx/core/PageTemplates/PageTemplates.styles.d.ts +2 -0
  144. package/jsx/core/PageTemplates/PageTemplates.styles.d.ts.map +1 -1
  145. package/jsx/core/PageTemplates/PageTemplates.styles.js +9 -0
  146. package/jsx/core/PageTemplates/PageTemplates.styles.js.map +1 -1
  147. package/jsx/core/RadioButton/RadioButton.stories.d.ts +11 -2
  148. package/jsx/core/RadioButton/RadioButton.stories.d.ts.map +1 -1
  149. package/jsx/core/RadioButton/RadioButton.stories.jsx +61 -4
  150. package/jsx/core/RadioButton/RadioButton.stories.jsx.map +1 -1
  151. package/jsx/core/RadioButtonGroup/RadioButtonGroup.stories.d.ts +11 -2
  152. package/jsx/core/RadioButtonGroup/RadioButtonGroup.stories.d.ts.map +1 -1
  153. package/jsx/core/RadioButtonGroup/RadioButtonGroup.stories.jsx +203 -48
  154. package/jsx/core/RadioButtonGroup/RadioButtonGroup.stories.jsx.map +1 -1
  155. package/jsx/core/RadioButtonGroup/RadioButtonGroup.styles.d.ts +2 -2
  156. package/jsx/core/RadioButtonGroup/RadioButtonGroup.styles.d.ts.map +1 -1
  157. package/jsx/core/Select/Select.stories.jsx +8 -8
  158. package/jsx/core/Select/Select.stories.jsx.map +1 -1
  159. package/jsx/core/SelectionCard/SelectionCard.stories.d.ts +15 -0
  160. package/jsx/core/SelectionCard/SelectionCard.stories.d.ts.map +1 -0
  161. package/jsx/core/SelectionCard/SelectionCard.stories.jsx +76 -0
  162. package/jsx/core/SelectionCard/SelectionCard.stories.jsx.map +1 -0
  163. package/jsx/core/Tabs/Tabs.stories.d.ts +1 -0
  164. package/jsx/core/Tabs/Tabs.stories.d.ts.map +1 -1
  165. package/jsx/core/Tabs/Tabs.stories.jsx +20 -11
  166. package/jsx/core/Tabs/Tabs.stories.jsx.map +1 -1
  167. package/jsx/dnd/DragDropList/DragDropList.styles.d.ts +1 -1
  168. package/jsx/dnd/DragDropList/DragDropList.styles.d.ts.map +1 -1
  169. package/jsx/dnd/DragDropList/DragDropList.styles.js.map +1 -1
  170. package/jsx/dnd/StandardDragDropList/Demo.d.ts +5 -1
  171. package/jsx/dnd/StandardDragDropList/Demo.d.ts.map +1 -1
  172. package/jsx/dnd/StandardDragDropList/Demo.jsx +21 -3
  173. package/jsx/dnd/StandardDragDropList/Demo.jsx.map +1 -1
  174. package/jsx/dnd/StandardDragDropList/StandardDragDropList.stories.d.ts +3 -2
  175. package/jsx/dnd/StandardDragDropList/StandardDragDropList.stories.d.ts.map +1 -1
  176. package/jsx/dnd/StandardDragDropList/StandardDragDropList.stories.jsx +8 -4
  177. package/jsx/dnd/StandardDragDropList/StandardDragDropList.stories.jsx.map +1 -1
  178. package/jsx/dnd/StandardDragDropList/mockData.d.ts.map +1 -1
  179. package/jsx/dnd/StandardDragDropList/mockData.js +1 -0
  180. package/jsx/dnd/StandardDragDropList/mockData.js.map +1 -1
  181. package/jsx/rte/Editor/Editor.stories.d.ts +1 -0
  182. package/jsx/rte/Editor/Editor.stories.d.ts.map +1 -1
  183. package/jsx/rte/Editor/Editor.stories.jsx +10 -0
  184. package/jsx/rte/Editor/Editor.stories.jsx.map +1 -1
  185. package/jsx/social/Chat/Chat.mocks.d.ts.map +1 -1
  186. package/jsx/social/Chat/Chat.mocks.js +12 -2
  187. package/jsx/social/Chat/Chat.mocks.js.map +1 -1
  188. package/jsx/social/Chat/Chat.stories.d.ts +2 -0
  189. package/jsx/social/Chat/Chat.stories.d.ts.map +1 -1
  190. package/jsx/social/Chat/Chat.stories.jsx +11 -5
  191. package/jsx/social/Chat/Chat.stories.jsx.map +1 -1
  192. package/jsx/social/Email/Email.mocks.d.ts.map +1 -1
  193. package/jsx/social/Email/Email.mocks.jsx +7 -0
  194. package/jsx/social/Email/Email.mocks.jsx.map +1 -1
  195. package/jsx/social/Email/Email.stories.d.ts.map +1 -1
  196. package/jsx/social/Email/Email.stories.jsx +123 -11
  197. package/jsx/social/Email/Email.stories.jsx.map +1 -1
  198. package/jsx/social/Feed/Feed.mocks.d.ts +40 -18
  199. package/jsx/social/Feed/Feed.mocks.d.ts.map +1 -1
  200. package/jsx/social/Feed/Feed.mocks.jsx +132 -42
  201. package/jsx/social/Feed/Feed.mocks.jsx.map +1 -1
  202. package/jsx/social/Feed/Feed.stories.d.ts +6 -1
  203. package/jsx/social/Feed/Feed.stories.d.ts.map +1 -1
  204. package/jsx/social/Feed/Feed.stories.jsx +82 -19
  205. package/jsx/social/Feed/Feed.stories.jsx.map +1 -1
  206. package/jsx/social/Feed/FeedNewPost.mocks.d.ts +7 -3
  207. package/jsx/social/Feed/FeedNewPost.mocks.d.ts.map +1 -1
  208. package/jsx/social/Feed/FeedNewPost.mocks.jsx +154 -23
  209. package/jsx/social/Feed/FeedNewPost.mocks.jsx.map +1 -1
  210. package/jsx/social/Feed/FeedPost.mocks.d.ts +1 -1
  211. package/jsx/social/Feed/FeedPost.mocks.d.ts.map +1 -1
  212. package/jsx/social/Feed/FeedPost.mocks.jsx +248 -43
  213. package/jsx/social/Feed/FeedPost.mocks.jsx.map +1 -1
  214. package/jsx/social/Feed/FeedReply.mocks.d.ts.map +1 -1
  215. package/jsx/social/Feed/FeedReply.mocks.jsx +45 -9
  216. package/jsx/social/Feed/FeedReply.mocks.jsx.map +1 -1
  217. package/jsx/social/Feed/LogActivityPostType.mocks.d.ts +21 -0
  218. package/jsx/social/Feed/LogActivityPostType.mocks.d.ts.map +1 -0
  219. package/jsx/social/Feed/LogActivityPostType.mocks.jsx +145 -0
  220. package/jsx/social/Feed/LogActivityPostType.mocks.jsx.map +1 -0
  221. package/jsx/social/OpenGraphPreview/OpenGraphPreview.mocks.d.ts +28 -0
  222. package/jsx/social/OpenGraphPreview/OpenGraphPreview.mocks.d.ts.map +1 -0
  223. package/jsx/social/OpenGraphPreview/OpenGraphPreview.mocks.js +28 -0
  224. package/jsx/social/OpenGraphPreview/OpenGraphPreview.mocks.js.map +1 -0
  225. package/jsx/social/OpenGraphPreview/OpenGraphPreview.stories.d.ts +9 -0
  226. package/jsx/social/OpenGraphPreview/OpenGraphPreview.stories.d.ts.map +1 -0
  227. package/jsx/social/OpenGraphPreview/OpenGraphPreview.stories.jsx +27 -0
  228. package/jsx/social/OpenGraphPreview/OpenGraphPreview.stories.jsx.map +1 -0
  229. package/jsx/work/Article/Article.stories.d.ts.map +1 -1
  230. package/jsx/work/Article/Article.stories.jsx +15 -12
  231. package/jsx/work/Article/Article.stories.jsx.map +1 -1
  232. package/jsx/work/ArticleList/ArticleBuddy.stories.d.ts.map +1 -1
  233. package/jsx/work/ArticleList/ArticleBuddy.stories.jsx +31 -7
  234. package/jsx/work/ArticleList/ArticleBuddy.stories.jsx.map +1 -1
  235. package/jsx/work/ArticleList/ArticleList.mocks.d.ts +6 -4
  236. package/jsx/work/ArticleList/ArticleList.mocks.d.ts.map +1 -1
  237. package/jsx/work/ArticleList/ArticleList.mocks.js +75 -53
  238. package/jsx/work/ArticleList/ArticleList.mocks.js.map +1 -1
  239. package/jsx/work/ArticleList/ArticleList.stories.d.ts.map +1 -1
  240. package/jsx/work/ArticleList/ArticleList.stories.jsx +62 -38
  241. package/jsx/work/ArticleList/ArticleList.stories.jsx.map +1 -1
  242. package/jsx/work/CaseHierarchy/CaseHierarchy.stories.d.ts +14 -0
  243. package/jsx/work/CaseHierarchy/CaseHierarchy.stories.d.ts.map +1 -0
  244. package/jsx/work/CaseHierarchy/CaseHierarchy.stories.jsx +123 -0
  245. package/jsx/work/CaseHierarchy/CaseHierarchy.stories.jsx.map +1 -0
  246. package/jsx/work/CaseView/Attachments.mocks.jsx.map +1 -1
  247. package/jsx/work/CaseView/CaseView.mocks.d.ts +34 -6
  248. package/jsx/work/CaseView/CaseView.mocks.d.ts.map +1 -1
  249. package/jsx/work/CaseView/CaseView.mocks.jsx +107 -28
  250. package/jsx/work/CaseView/CaseView.mocks.jsx.map +1 -1
  251. package/jsx/work/CaseView/CaseView.stories.d.ts.map +1 -1
  252. package/jsx/work/CaseView/CaseView.stories.jsx +11 -5
  253. package/jsx/work/CaseView/CaseView.stories.jsx.map +1 -1
  254. package/jsx/work/Details/Details.stories.d.ts +1 -0
  255. package/jsx/work/Details/Details.stories.d.ts.map +1 -1
  256. package/jsx/work/Details/Details.stories.jsx +6 -4
  257. package/jsx/work/Details/Details.stories.jsx.map +1 -1
  258. package/jsx/work/GenAICoach/GenAICoach.mocks.d.ts +16 -4
  259. package/jsx/work/GenAICoach/GenAICoach.mocks.d.ts.map +1 -1
  260. package/jsx/work/GenAICoach/GenAICoach.mocks.js +142 -13
  261. package/jsx/work/GenAICoach/GenAICoach.mocks.js.map +1 -1
  262. package/jsx/work/GenAICoach/GenAICoach.stories.d.ts +10 -1
  263. package/jsx/work/GenAICoach/GenAICoach.stories.d.ts.map +1 -1
  264. package/jsx/work/GenAICoach/GenAICoach.stories.jsx +260 -51
  265. package/jsx/work/GenAICoach/GenAICoach.stories.jsx.map +1 -1
  266. package/jsx/work/GenAICoach/useGenAICoach.d.ts.map +1 -1
  267. package/jsx/work/GenAICoach/useGenAICoach.js +103 -34
  268. package/jsx/work/GenAICoach/useGenAICoach.js.map +1 -1
  269. package/jsx/work/HierarchicalAssignments/HierarchicalAssignments.mock.d.ts.map +1 -1
  270. package/jsx/work/HierarchicalAssignments/HierarchicalAssignments.mock.jsx +39 -16
  271. package/jsx/work/HierarchicalAssignments/HierarchicalAssignments.mock.jsx.map +1 -1
  272. package/jsx/work/HierarchicalAssignments/HierarchicalAssignments.stories.d.ts +1 -0
  273. package/jsx/work/HierarchicalAssignments/HierarchicalAssignments.stories.d.ts.map +1 -1
  274. package/jsx/work/HierarchicalAssignments/HierarchicalAssignments.stories.jsx +4 -1
  275. package/jsx/work/HierarchicalAssignments/HierarchicalAssignments.stories.jsx.map +1 -1
  276. package/jsx/work/SearchResults/SearchResults.mocks.d.ts +6 -2
  277. package/jsx/work/SearchResults/SearchResults.mocks.d.ts.map +1 -1
  278. package/jsx/work/SearchResults/SearchResults.mocks.jsx.map +1 -1
  279. package/jsx/work/SearchResults/SearchResults.stories.d.ts.map +1 -1
  280. package/jsx/work/SearchResults/SearchResults.stories.jsx.map +1 -1
  281. package/jsx/work/Stages/Stages.mocks.jsx +1 -1
  282. package/jsx/work/Stages/Stages.mocks.jsx.map +1 -1
  283. package/jsx/work/Stakeholders/Stakeholders.mocks.d.ts +1 -1
  284. package/jsx/work/Stakeholders/Stakeholders.mocks.d.ts.map +1 -1
  285. package/jsx/work/Stakeholders/Stakeholders.mocks.jsx +3 -3
  286. package/jsx/work/Stakeholders/Stakeholders.mocks.jsx.map +1 -1
  287. package/jsx/work/Stakeholders/Stakeholders.stories.d.ts +1 -0
  288. package/jsx/work/Stakeholders/Stakeholders.stories.d.ts.map +1 -1
  289. package/jsx/work/Stakeholders/Stakeholders.stories.jsx +31 -7
  290. package/jsx/work/Stakeholders/Stakeholders.stories.jsx.map +1 -1
  291. package/jsx/work/Timeline/Timeline.mocks.d.ts.map +1 -1
  292. package/jsx/work/Timeline/Timeline.mocks.jsx +1 -0
  293. package/jsx/work/Timeline/Timeline.mocks.jsx.map +1 -1
  294. package/jsx/work/UtilitiesLayout/UtilitiesLayout.stories.d.ts +0 -1
  295. package/jsx/work/UtilitiesLayout/UtilitiesLayout.stories.d.ts.map +1 -1
  296. package/jsx/work/UtilitiesLayout/UtilitiesLayout.stories.jsx +0 -3
  297. package/jsx/work/UtilitiesLayout/UtilitiesLayout.stories.jsx.map +1 -1
  298. package/jsx/wss/AppShell/AppShell.mocks.d.ts +2 -1
  299. package/jsx/wss/AppShell/AppShell.mocks.d.ts.map +1 -1
  300. package/jsx/wss/AppShell/AppShell.mocks.jsx +1 -1
  301. package/jsx/wss/AppShell/AppShell.mocks.jsx.map +1 -1
  302. package/jsx/wss/AppShell/AppShell.stories.d.ts +1 -0
  303. package/jsx/wss/AppShell/AppShell.stories.d.ts.map +1 -1
  304. package/jsx/wss/AppShell/AppShell.stories.jsx +5 -3
  305. package/jsx/wss/AppShell/AppShell.stories.jsx.map +1 -1
  306. package/jsx/wss/AppShell/AppShell.styles.d.ts +3 -1
  307. package/jsx/wss/AppShell/AppShell.styles.d.ts.map +1 -1
  308. package/jsx/wss/AppShell/AppShell.styles.js +11 -4
  309. package/jsx/wss/AppShell/AppShell.styles.js.map +1 -1
  310. package/jsx/wss/CaseView/CaseView.mocks.d.ts +5 -0
  311. package/jsx/wss/CaseView/CaseView.mocks.d.ts.map +1 -1
  312. package/jsx/wss/CaseView/CaseView.mocks.jsx +55 -1
  313. package/jsx/wss/CaseView/CaseView.mocks.jsx.map +1 -1
  314. package/jsx/wss/CaseView/CaseView.stories.d.ts +1 -0
  315. package/jsx/wss/CaseView/CaseView.stories.d.ts.map +1 -1
  316. package/jsx/wss/CaseView/CaseView.stories.jsx +6 -3
  317. package/jsx/wss/CaseView/CaseView.stories.jsx.map +1 -1
  318. package/lib/build/BackgroundPicker/BackgroundPicker.stories.d.ts +9 -0
  319. package/lib/build/BackgroundPicker/BackgroundPicker.stories.d.ts.map +1 -0
  320. package/lib/build/BackgroundPicker/BackgroundPicker.stories.js +43 -0
  321. package/lib/build/BackgroundPicker/BackgroundPicker.stories.js.map +1 -0
  322. package/lib/build/DynamicInput/DynamicInput.stories.d.ts +2 -2
  323. package/lib/build/DynamicInput/DynamicInput.stories.d.ts.map +1 -1
  324. package/lib/build/DynamicInput/DynamicInput.stories.js +37 -14
  325. package/lib/build/DynamicInput/DynamicInput.stories.js.map +1 -1
  326. package/lib/build/Expression/Expression.mocks.d.ts +11 -0
  327. package/lib/build/Expression/Expression.mocks.d.ts.map +1 -0
  328. package/lib/build/Expression/Expression.mocks.js +41 -0
  329. package/lib/build/Expression/Expression.mocks.js.map +1 -0
  330. package/lib/build/Expression/Expression.stories.d.ts +18 -0
  331. package/lib/build/Expression/Expression.stories.d.ts.map +1 -0
  332. package/lib/build/Expression/Expression.stories.js +58 -0
  333. package/lib/build/Expression/Expression.stories.js.map +1 -0
  334. package/lib/build/Expression/useMockExpression.d.ts +96 -0
  335. package/lib/build/Expression/useMockExpression.d.ts.map +1 -0
  336. package/lib/build/Expression/useMockExpression.js +321 -0
  337. package/lib/build/Expression/useMockExpression.js.map +1 -0
  338. package/lib/build/ExpressionBuilder/ExpressionBuilder.mocks.d.ts +59 -0
  339. package/lib/build/ExpressionBuilder/ExpressionBuilder.mocks.d.ts.map +1 -0
  340. package/lib/build/ExpressionBuilder/ExpressionBuilder.mocks.js +568 -0
  341. package/lib/build/ExpressionBuilder/ExpressionBuilder.mocks.js.map +1 -0
  342. package/lib/build/FieldReference/FieldReference.mocks.d.ts.map +1 -1
  343. package/lib/build/FieldReference/FieldReference.mocks.js +7 -2
  344. package/lib/build/FieldReference/FieldReference.mocks.js.map +1 -1
  345. package/lib/build/IconTile/IconTile.mocks.d.ts +8 -0
  346. package/lib/build/IconTile/IconTile.mocks.d.ts.map +1 -0
  347. package/lib/build/IconTile/IconTile.mocks.js +247 -0
  348. package/lib/build/IconTile/IconTile.mocks.js.map +1 -0
  349. package/lib/build/IconTile/IconTile.stories.d.ts +11 -0
  350. package/lib/build/IconTile/IconTile.stories.d.ts.map +1 -0
  351. package/lib/build/IconTile/IconTile.stories.js +30 -0
  352. package/lib/build/IconTile/IconTile.stories.js.map +1 -0
  353. package/lib/build/ItemLibrary/LibraryPicker.mocks.d.ts +3 -0
  354. package/lib/build/ItemLibrary/LibraryPicker.mocks.d.ts.map +1 -0
  355. package/lib/build/ItemLibrary/LibraryPicker.mocks.js +40 -0
  356. package/lib/build/ItemLibrary/LibraryPicker.mocks.js.map +1 -0
  357. package/lib/build/ItemLibrary/LibraryPicker.stories.d.ts +5 -0
  358. package/lib/build/ItemLibrary/LibraryPicker.stories.d.ts.map +1 -0
  359. package/lib/build/ItemLibrary/LibraryPicker.stories.js +29 -0
  360. package/lib/build/ItemLibrary/LibraryPicker.stories.js.map +1 -0
  361. package/lib/build/LifeCycle/LifeCycle.mocks.d.ts +382 -0
  362. package/lib/build/LifeCycle/LifeCycle.mocks.d.ts.map +1 -0
  363. package/lib/build/LifeCycle/LifeCycle.mocks.js +1653 -0
  364. package/lib/build/LifeCycle/LifeCycle.mocks.js.map +1 -0
  365. package/lib/build/LifeCycle/LifeCycle.stories.d.ts +23 -0
  366. package/lib/build/LifeCycle/LifeCycle.stories.d.ts.map +1 -0
  367. package/lib/build/LifeCycle/LifeCycle.stories.js +1307 -0
  368. package/lib/build/LifeCycle/LifeCycle.stories.js.map +1 -0
  369. package/lib/build/LifeCycle/LifeCycle.styles.d.ts +5 -0
  370. package/lib/build/LifeCycle/LifeCycle.styles.d.ts.map +1 -0
  371. package/lib/build/LifeCycle/LifeCycle.styles.js +9 -0
  372. package/lib/build/LifeCycle/LifeCycle.styles.js.map +1 -0
  373. package/lib/build/LifeCycle/LifeCycleTest.mocks.d.ts +18 -0
  374. package/lib/build/LifeCycle/LifeCycleTest.mocks.d.ts.map +1 -0
  375. package/lib/build/LifeCycle/LifeCycleTest.mocks.js +5998 -0
  376. package/lib/build/LifeCycle/LifeCycleTest.mocks.js.map +1 -0
  377. package/lib/build/LifeCycle/utils.d.ts +123 -0
  378. package/lib/build/LifeCycle/utils.d.ts.map +1 -0
  379. package/lib/build/LifeCycle/utils.js +304 -0
  380. package/lib/build/LifeCycle/utils.js.map +1 -0
  381. package/lib/condition-builder/ConditionBuilder/ConditionBuilder.styles.d.ts +1 -1
  382. package/lib/condition-builder/ConditionBuilder/ConditionBuilder.styles.d.ts.map +1 -1
  383. package/lib/condition-builder/ConditionBuilder/props.mock.d.ts.map +1 -1
  384. package/lib/condition-builder/ConditionBuilder/props.mock.js +9 -1
  385. package/lib/condition-builder/ConditionBuilder/props.mock.js.map +1 -1
  386. package/lib/condition-builder/PromotedFilters/PromotedFilters.mocks.d.ts +2 -2
  387. package/lib/condition-builder/PromotedFilters/PromotedFilters.mocks.d.ts.map +1 -1
  388. package/lib/condition-builder/PromotedFilters/PromotedFilters.mocks.js +50 -5
  389. package/lib/condition-builder/PromotedFilters/PromotedFilters.mocks.js.map +1 -1
  390. package/lib/condition-builder/PromotedFilters/PromotedFilters.stories.d.ts.map +1 -1
  391. package/lib/condition-builder/PromotedFilters/PromotedFilters.stories.js.map +1 -1
  392. package/lib/condition-builder/PromotedFilters/PromotedFilters.styles.d.ts +2 -2
  393. package/lib/condition-builder/PromotedFilters/PromotedFilters.styles.d.ts.map +1 -1
  394. package/lib/core/AppShell/AppShell.mocks.d.ts +2 -2
  395. package/lib/core/AppShell/AppShell.mocks.d.ts.map +1 -1
  396. package/lib/core/AppShell/AppShell.stories.d.ts +3 -3
  397. package/lib/core/AppShell/AppShell.stories.d.ts.map +1 -1
  398. package/lib/core/AppShell/AppShell.stories.js.map +1 -1
  399. package/lib/core/Banner/Banner.mocks.d.ts +5 -2
  400. package/lib/core/Banner/Banner.mocks.d.ts.map +1 -1
  401. package/lib/core/Banner/Banner.mocks.js.map +1 -1
  402. package/lib/core/Banner/Banner.stories.d.ts +1 -1
  403. package/lib/core/Banner/Banner.stories.d.ts.map +1 -1
  404. package/lib/core/Banner/Banner.stories.js +20 -7
  405. package/lib/core/Banner/Banner.stories.js.map +1 -1
  406. package/lib/core/Button/Button.stories.d.ts +0 -1
  407. package/lib/core/Button/Button.stories.d.ts.map +1 -1
  408. package/lib/core/Button/Button.stories.js +0 -11
  409. package/lib/core/Button/Button.stories.js.map +1 -1
  410. package/lib/core/Checkbox/Checkbox.stories.d.ts +11 -2
  411. package/lib/core/Checkbox/Checkbox.stories.d.ts.map +1 -1
  412. package/lib/core/Checkbox/Checkbox.stories.js +68 -10
  413. package/lib/core/Checkbox/Checkbox.stories.js.map +1 -1
  414. package/lib/core/CheckboxGroup/CheckboxGroup.stories.d.ts +10 -1
  415. package/lib/core/CheckboxGroup/CheckboxGroup.stories.d.ts.map +1 -1
  416. package/lib/core/CheckboxGroup/CheckboxGroup.stories.js +89 -18
  417. package/lib/core/CheckboxGroup/CheckboxGroup.stories.js.map +1 -1
  418. package/lib/core/CheckboxGroup/CheckboxGroup.styles.d.ts +2 -2
  419. package/lib/core/CheckboxGroup/CheckboxGroup.styles.d.ts.map +1 -1
  420. package/lib/core/ComboBox/ComboBox.mocks.d.ts +1 -1
  421. package/lib/core/ComboBox/ComboBox.mocks.d.ts.map +1 -1
  422. package/lib/core/CompositeInput/CompositeInput.mocks.d.ts +1 -1
  423. package/lib/core/CompositeInput/CompositeInput.mocks.d.ts.map +1 -1
  424. package/lib/core/Configuration/Configuration.mocks.d.ts +1 -1
  425. package/lib/core/Configuration/Configuration.mocks.d.ts.map +1 -1
  426. package/lib/core/DateTime/DateTimeDisplay.stories.js +1 -1
  427. package/lib/core/DateTime/DateTimeDisplay.stories.js.map +1 -1
  428. package/lib/core/Dialog/FormDialog.mocks.d.ts +2 -2
  429. package/lib/core/Dialog/FormDialog.mocks.d.ts.map +1 -1
  430. package/lib/core/Dialog/InfoDialog.mocks.d.ts +2 -2
  431. package/lib/core/Dialog/InfoDialog.mocks.d.ts.map +1 -1
  432. package/lib/core/FieldGroup/FieldGroupList.mocks.d.ts +3 -3
  433. package/lib/core/FieldGroup/FieldGroupList.mocks.d.ts.map +1 -1
  434. package/lib/core/FieldValueList/FieldValueList.mocks.d.ts +1 -1
  435. package/lib/core/File/FileDisplay.stories.d.ts +1 -0
  436. package/lib/core/File/FileDisplay.stories.d.ts.map +1 -1
  437. package/lib/core/File/FileDisplay.stories.js +5 -3
  438. package/lib/core/File/FileDisplay.stories.js.map +1 -1
  439. package/lib/core/Form/Form.mocks.d.ts +2 -2
  440. package/lib/core/Form/Form.mocks.d.ts.map +1 -1
  441. package/lib/core/Fullscreen/Fullscreen.styles.d.ts +1 -1
  442. package/lib/core/Fullscreen/Fullscreen.styles.d.ts.map +1 -1
  443. package/lib/core/Icon/Icon.stories.d.ts.map +1 -1
  444. package/lib/core/Icon/Icon.stories.js +4 -4
  445. package/lib/core/Icon/Icon.stories.js.map +1 -1
  446. package/lib/core/IconPicker/IconPicker.mocks.d.ts +1 -1
  447. package/lib/core/IconPicker/IconPicker.mocks.d.ts.map +1 -1
  448. package/lib/core/IconPicker/IconPicker.stories.d.ts.map +1 -1
  449. package/lib/core/IconPicker/IconPicker.stories.js +1 -1
  450. package/lib/core/IconPicker/IconPicker.stories.js.map +1 -1
  451. package/lib/core/ListToolbar/ListToolbar.mocks.d.ts +2 -2
  452. package/lib/core/ListToolbar/ListToolbar.mocks.d.ts.map +1 -1
  453. package/lib/core/ListToolbar/ListToolbar.stories.d.ts +1 -0
  454. package/lib/core/ListToolbar/ListToolbar.stories.d.ts.map +1 -1
  455. package/lib/core/ListToolbar/ListToolbar.stories.js +10 -2
  456. package/lib/core/ListToolbar/ListToolbar.stories.js.map +1 -1
  457. package/lib/core/LiveLog/LiveLog.mocks.d.ts +1 -1
  458. package/lib/core/LiveLog/LiveLog.mocks.d.ts.map +1 -1
  459. package/lib/core/Location/Location.mocks.d.ts +1 -1
  460. package/lib/core/Location/Location.mocks.d.ts.map +1 -1
  461. package/lib/core/Location/locationTestUtils.d.ts.map +1 -1
  462. package/lib/core/Location/locationTestUtils.js +1 -0
  463. package/lib/core/Location/locationTestUtils.js.map +1 -1
  464. package/lib/core/Menu/Menu.stories.d.ts.map +1 -1
  465. package/lib/core/Menu/Menu.stories.js +10 -1
  466. package/lib/core/Menu/Menu.stories.js.map +1 -1
  467. package/lib/core/Modal/Modal.mocks.d.ts +8 -8
  468. package/lib/core/Modal/Modal.mocks.d.ts.map +1 -1
  469. package/lib/core/MultiStepForm/MultiStepForm.mocks.d.ts +20 -21
  470. package/lib/core/MultiStepForm/MultiStepForm.mocks.d.ts.map +1 -1
  471. package/lib/core/MultiStepForm/MultiStepForm.mocks.js +5 -7
  472. package/lib/core/MultiStepForm/MultiStepForm.mocks.js.map +1 -1
  473. package/lib/core/PageTemplates/GridLayout.mocks.d.ts +42 -0
  474. package/lib/core/PageTemplates/GridLayout.mocks.d.ts.map +1 -0
  475. package/lib/core/PageTemplates/GridLayout.mocks.js +131 -0
  476. package/lib/core/PageTemplates/GridLayout.mocks.js.map +1 -0
  477. package/lib/core/PageTemplates/GridLayout.stories.d.ts +6 -0
  478. package/lib/core/PageTemplates/GridLayout.stories.d.ts.map +1 -0
  479. package/lib/core/PageTemplates/GridLayout.stories.js +54 -0
  480. package/lib/core/PageTemplates/GridLayout.stories.js.map +1 -0
  481. package/lib/core/PageTemplates/PageTemplates.stories.d.ts +2 -0
  482. package/lib/core/PageTemplates/PageTemplates.stories.d.ts.map +1 -1
  483. package/lib/core/PageTemplates/PageTemplates.stories.js +41 -2
  484. package/lib/core/PageTemplates/PageTemplates.stories.js.map +1 -1
  485. package/lib/core/PageTemplates/PageTemplates.styles.d.ts +2 -0
  486. package/lib/core/PageTemplates/PageTemplates.styles.d.ts.map +1 -1
  487. package/lib/core/PageTemplates/PageTemplates.styles.js +9 -0
  488. package/lib/core/PageTemplates/PageTemplates.styles.js.map +1 -1
  489. package/lib/core/Popover/Popover.mocks.d.ts +1 -1
  490. package/lib/core/Popover/Popover.mocks.d.ts.map +1 -1
  491. package/lib/core/RadioButton/RadioButton.stories.d.ts +11 -2
  492. package/lib/core/RadioButton/RadioButton.stories.d.ts.map +1 -1
  493. package/lib/core/RadioButton/RadioButton.stories.js +61 -4
  494. package/lib/core/RadioButton/RadioButton.stories.js.map +1 -1
  495. package/lib/core/RadioButtonGroup/RadioButtonGroup.stories.d.ts +11 -2
  496. package/lib/core/RadioButtonGroup/RadioButtonGroup.stories.d.ts.map +1 -1
  497. package/lib/core/RadioButtonGroup/RadioButtonGroup.stories.js +196 -21
  498. package/lib/core/RadioButtonGroup/RadioButtonGroup.stories.js.map +1 -1
  499. package/lib/core/RadioButtonGroup/RadioButtonGroup.styles.d.ts +2 -2
  500. package/lib/core/RadioButtonGroup/RadioButtonGroup.styles.d.ts.map +1 -1
  501. package/lib/core/Select/Select.stories.js +2 -2
  502. package/lib/core/Select/Select.stories.js.map +1 -1
  503. package/lib/core/SelectionCard/SelectionCard.stories.d.ts +15 -0
  504. package/lib/core/SelectionCard/SelectionCard.stories.d.ts.map +1 -0
  505. package/lib/core/SelectionCard/SelectionCard.stories.js +77 -0
  506. package/lib/core/SelectionCard/SelectionCard.stories.js.map +1 -0
  507. package/lib/core/Table/Table.mocks.d.ts +1 -1
  508. package/lib/core/Tabs/Tabs.mocks.d.ts +1 -1
  509. package/lib/core/Tabs/Tabs.mocks.d.ts.map +1 -1
  510. package/lib/core/Tabs/Tabs.stories.d.ts +1 -0
  511. package/lib/core/Tabs/Tabs.stories.d.ts.map +1 -1
  512. package/lib/core/Tabs/Tabs.stories.js +12 -6
  513. package/lib/core/Tabs/Tabs.stories.js.map +1 -1
  514. package/lib/dnd/DragDropList/DragDropList.mocks.d.ts +2 -2
  515. package/lib/dnd/DragDropList/DragDropList.mocks.d.ts.map +1 -1
  516. package/lib/dnd/DragDropList/DragDropList.styles.d.ts +1 -1
  517. package/lib/dnd/DragDropList/DragDropList.styles.d.ts.map +1 -1
  518. package/lib/dnd/DragDropList/DragDropList.styles.js.map +1 -1
  519. package/lib/dnd/StandardDragDropList/Demo.d.ts +5 -1
  520. package/lib/dnd/StandardDragDropList/Demo.d.ts.map +1 -1
  521. package/lib/dnd/StandardDragDropList/Demo.js +21 -3
  522. package/lib/dnd/StandardDragDropList/Demo.js.map +1 -1
  523. package/lib/dnd/StandardDragDropList/GroupConfig.d.ts +1 -1
  524. package/lib/dnd/StandardDragDropList/GroupConfig.d.ts.map +1 -1
  525. package/lib/dnd/StandardDragDropList/ItemConfig.d.ts +1 -1
  526. package/lib/dnd/StandardDragDropList/ItemConfig.d.ts.map +1 -1
  527. package/lib/dnd/StandardDragDropList/Popover.d.ts +1 -1
  528. package/lib/dnd/StandardDragDropList/Popover.d.ts.map +1 -1
  529. package/lib/dnd/StandardDragDropList/SelectionMenu.d.ts +1 -1
  530. package/lib/dnd/StandardDragDropList/SelectionMenu.d.ts.map +1 -1
  531. package/lib/dnd/StandardDragDropList/StandardDragDropList.stories.d.ts +3 -2
  532. package/lib/dnd/StandardDragDropList/StandardDragDropList.stories.d.ts.map +1 -1
  533. package/lib/dnd/StandardDragDropList/StandardDragDropList.stories.js +7 -3
  534. package/lib/dnd/StandardDragDropList/StandardDragDropList.stories.js.map +1 -1
  535. package/lib/dnd/StandardDragDropList/mockData.d.ts.map +1 -1
  536. package/lib/dnd/StandardDragDropList/mockData.js +1 -0
  537. package/lib/dnd/StandardDragDropList/mockData.js.map +1 -1
  538. package/lib/rte/Editor/Editor.stories.d.ts +1 -0
  539. package/lib/rte/Editor/Editor.stories.d.ts.map +1 -1
  540. package/lib/rte/Editor/Editor.stories.js +8 -1
  541. package/lib/rte/Editor/Editor.stories.js.map +1 -1
  542. package/lib/social/Chat/Chat.mocks.d.ts.map +1 -1
  543. package/lib/social/Chat/Chat.mocks.js +12 -2
  544. package/lib/social/Chat/Chat.mocks.js.map +1 -1
  545. package/lib/social/Chat/Chat.stories.d.ts +2 -0
  546. package/lib/social/Chat/Chat.stories.d.ts.map +1 -1
  547. package/lib/social/Chat/Chat.stories.js +11 -5
  548. package/lib/social/Chat/Chat.stories.js.map +1 -1
  549. package/lib/social/Email/Email.mocks.d.ts +1 -1
  550. package/lib/social/Email/Email.mocks.d.ts.map +1 -1
  551. package/lib/social/Email/Email.mocks.js +7 -0
  552. package/lib/social/Email/Email.mocks.js.map +1 -1
  553. package/lib/social/Email/Email.stories.d.ts.map +1 -1
  554. package/lib/social/Email/Email.stories.js +123 -11
  555. package/lib/social/Email/Email.stories.js.map +1 -1
  556. package/lib/social/Feed/Feed.mocks.d.ts +42 -20
  557. package/lib/social/Feed/Feed.mocks.d.ts.map +1 -1
  558. package/lib/social/Feed/Feed.mocks.js +125 -38
  559. package/lib/social/Feed/Feed.mocks.js.map +1 -1
  560. package/lib/social/Feed/Feed.stories.d.ts +6 -1
  561. package/lib/social/Feed/Feed.stories.d.ts.map +1 -1
  562. package/lib/social/Feed/Feed.stories.js +81 -18
  563. package/lib/social/Feed/Feed.stories.js.map +1 -1
  564. package/lib/social/Feed/FeedNewPost.mocks.d.ts +7 -3
  565. package/lib/social/Feed/FeedNewPost.mocks.d.ts.map +1 -1
  566. package/lib/social/Feed/FeedNewPost.mocks.js +156 -24
  567. package/lib/social/Feed/FeedNewPost.mocks.js.map +1 -1
  568. package/lib/social/Feed/FeedPost.mocks.d.ts +1 -1
  569. package/lib/social/Feed/FeedPost.mocks.d.ts.map +1 -1
  570. package/lib/social/Feed/FeedPost.mocks.js +247 -42
  571. package/lib/social/Feed/FeedPost.mocks.js.map +1 -1
  572. package/lib/social/Feed/FeedReply.mocks.d.ts +1 -1
  573. package/lib/social/Feed/FeedReply.mocks.d.ts.map +1 -1
  574. package/lib/social/Feed/FeedReply.mocks.js +45 -9
  575. package/lib/social/Feed/FeedReply.mocks.js.map +1 -1
  576. package/lib/social/Feed/LogActivityPostType.mocks.d.ts +21 -0
  577. package/lib/social/Feed/LogActivityPostType.mocks.d.ts.map +1 -0
  578. package/lib/social/Feed/LogActivityPostType.mocks.js +133 -0
  579. package/lib/social/Feed/LogActivityPostType.mocks.js.map +1 -0
  580. package/lib/social/OpenGraphPreview/OpenGraphPreview.mocks.d.ts +28 -0
  581. package/lib/social/OpenGraphPreview/OpenGraphPreview.mocks.d.ts.map +1 -0
  582. package/lib/social/OpenGraphPreview/OpenGraphPreview.mocks.js +28 -0
  583. package/lib/social/OpenGraphPreview/OpenGraphPreview.mocks.js.map +1 -0
  584. package/lib/social/OpenGraphPreview/OpenGraphPreview.stories.d.ts +9 -0
  585. package/lib/social/OpenGraphPreview/OpenGraphPreview.stories.d.ts.map +1 -0
  586. package/lib/social/OpenGraphPreview/OpenGraphPreview.stories.js +22 -0
  587. package/lib/social/OpenGraphPreview/OpenGraphPreview.stories.js.map +1 -0
  588. package/lib/work/Article/Article.stories.d.ts.map +1 -1
  589. package/lib/work/Article/Article.stories.js +15 -12
  590. package/lib/work/Article/Article.stories.js.map +1 -1
  591. package/lib/work/ArticleList/ArticleBuddy.stories.d.ts.map +1 -1
  592. package/lib/work/ArticleList/ArticleBuddy.stories.js +31 -7
  593. package/lib/work/ArticleList/ArticleBuddy.stories.js.map +1 -1
  594. package/lib/work/ArticleList/ArticleList.mocks.d.ts +6 -4
  595. package/lib/work/ArticleList/ArticleList.mocks.d.ts.map +1 -1
  596. package/lib/work/ArticleList/ArticleList.mocks.js +75 -53
  597. package/lib/work/ArticleList/ArticleList.mocks.js.map +1 -1
  598. package/lib/work/ArticleList/ArticleList.stories.d.ts.map +1 -1
  599. package/lib/work/ArticleList/ArticleList.stories.js +62 -38
  600. package/lib/work/ArticleList/ArticleList.stories.js.map +1 -1
  601. package/lib/work/CaseHierarchy/CaseHierarchy.stories.d.ts +14 -0
  602. package/lib/work/CaseHierarchy/CaseHierarchy.stories.d.ts.map +1 -0
  603. package/lib/work/CaseHierarchy/CaseHierarchy.stories.js +126 -0
  604. package/lib/work/CaseHierarchy/CaseHierarchy.stories.js.map +1 -0
  605. package/lib/work/CaseView/Attachments.mocks.d.ts +1 -1
  606. package/lib/work/CaseView/Attachments.mocks.d.ts.map +1 -1
  607. package/lib/work/CaseView/Attachments.mocks.js.map +1 -1
  608. package/lib/work/CaseView/CaseView.mocks.d.ts +40 -12
  609. package/lib/work/CaseView/CaseView.mocks.d.ts.map +1 -1
  610. package/lib/work/CaseView/CaseView.mocks.js +107 -29
  611. package/lib/work/CaseView/CaseView.mocks.js.map +1 -1
  612. package/lib/work/CaseView/CaseView.stories.d.ts.map +1 -1
  613. package/lib/work/CaseView/CaseView.stories.js +11 -5
  614. package/lib/work/CaseView/CaseView.stories.js.map +1 -1
  615. package/lib/work/CaseView/Details.mocks.d.ts +1 -1
  616. package/lib/work/CaseView/Details.mocks.d.ts.map +1 -1
  617. package/lib/work/CaseView/Pulse.mocks.d.ts +1 -1
  618. package/lib/work/CaseView/Pulse.mocks.d.ts.map +1 -1
  619. package/lib/work/ConfigurableLayout/ConfigurableLayout.mocks.d.ts +6 -6
  620. package/lib/work/ConfigurableLayout/ConfigurableLayout.mocks.d.ts.map +1 -1
  621. package/lib/work/Details/Details.stories.d.ts +1 -0
  622. package/lib/work/Details/Details.stories.d.ts.map +1 -1
  623. package/lib/work/Details/Details.stories.js +6 -4
  624. package/lib/work/Details/Details.stories.js.map +1 -1
  625. package/lib/work/GenAICoach/GenAICoach.mocks.d.ts +16 -4
  626. package/lib/work/GenAICoach/GenAICoach.mocks.d.ts.map +1 -1
  627. package/lib/work/GenAICoach/GenAICoach.mocks.js +142 -13
  628. package/lib/work/GenAICoach/GenAICoach.mocks.js.map +1 -1
  629. package/lib/work/GenAICoach/GenAICoach.stories.d.ts +10 -1
  630. package/lib/work/GenAICoach/GenAICoach.stories.d.ts.map +1 -1
  631. package/lib/work/GenAICoach/GenAICoach.stories.js +259 -50
  632. package/lib/work/GenAICoach/GenAICoach.stories.js.map +1 -1
  633. package/lib/work/GenAICoach/useGenAICoach.d.ts.map +1 -1
  634. package/lib/work/GenAICoach/useGenAICoach.js +103 -34
  635. package/lib/work/GenAICoach/useGenAICoach.js.map +1 -1
  636. package/lib/work/HierarchicalAssignments/HierarchicalAssignments.mock.d.ts +4 -4
  637. package/lib/work/HierarchicalAssignments/HierarchicalAssignments.mock.d.ts.map +1 -1
  638. package/lib/work/HierarchicalAssignments/HierarchicalAssignments.mock.js +39 -16
  639. package/lib/work/HierarchicalAssignments/HierarchicalAssignments.mock.js.map +1 -1
  640. package/lib/work/HierarchicalAssignments/HierarchicalAssignments.stories.d.ts +1 -0
  641. package/lib/work/HierarchicalAssignments/HierarchicalAssignments.stories.d.ts.map +1 -1
  642. package/lib/work/HierarchicalAssignments/HierarchicalAssignments.stories.js +4 -1
  643. package/lib/work/HierarchicalAssignments/HierarchicalAssignments.stories.js.map +1 -1
  644. package/lib/work/Predictions/Predictions.mocks.d.ts +1 -1
  645. package/lib/work/Predictions/Predictions.mocks.d.ts.map +1 -1
  646. package/lib/work/SearchResults/SearchResults.mocks.d.ts +6 -2
  647. package/lib/work/SearchResults/SearchResults.mocks.d.ts.map +1 -1
  648. package/lib/work/SearchResults/SearchResults.mocks.js.map +1 -1
  649. package/lib/work/SearchResults/SearchResults.stories.d.ts.map +1 -1
  650. package/lib/work/SearchResults/SearchResults.stories.js.map +1 -1
  651. package/lib/work/Stages/Stages.mocks.d.ts +1 -1
  652. package/lib/work/Stages/Stages.mocks.js +1 -1
  653. package/lib/work/Stages/Stages.mocks.js.map +1 -1
  654. package/lib/work/Stakeholders/Stakeholders.mocks.d.ts +2 -2
  655. package/lib/work/Stakeholders/Stakeholders.mocks.d.ts.map +1 -1
  656. package/lib/work/Stakeholders/Stakeholders.mocks.js +3 -3
  657. package/lib/work/Stakeholders/Stakeholders.mocks.js.map +1 -1
  658. package/lib/work/Stakeholders/Stakeholders.stories.d.ts +1 -0
  659. package/lib/work/Stakeholders/Stakeholders.stories.d.ts.map +1 -1
  660. package/lib/work/Stakeholders/Stakeholders.stories.js +32 -7
  661. package/lib/work/Stakeholders/Stakeholders.stories.js.map +1 -1
  662. package/lib/work/Timeline/Timeline.mocks.d.ts.map +1 -1
  663. package/lib/work/Timeline/Timeline.mocks.js +1 -0
  664. package/lib/work/Timeline/Timeline.mocks.js.map +1 -1
  665. package/lib/work/UtilitiesLayout/UtilitiesLayout.stories.d.ts +0 -1
  666. package/lib/work/UtilitiesLayout/UtilitiesLayout.stories.d.ts.map +1 -1
  667. package/lib/work/UtilitiesLayout/UtilitiesLayout.stories.js +0 -3
  668. package/lib/work/UtilitiesLayout/UtilitiesLayout.stories.js.map +1 -1
  669. package/lib/wss/AppShell/AppShell.mocks.d.ts +5 -4
  670. package/lib/wss/AppShell/AppShell.mocks.d.ts.map +1 -1
  671. package/lib/wss/AppShell/AppShell.mocks.js +1 -1
  672. package/lib/wss/AppShell/AppShell.mocks.js.map +1 -1
  673. package/lib/wss/AppShell/AppShell.stories.d.ts +1 -0
  674. package/lib/wss/AppShell/AppShell.stories.d.ts.map +1 -1
  675. package/lib/wss/AppShell/AppShell.stories.js +5 -3
  676. package/lib/wss/AppShell/AppShell.stories.js.map +1 -1
  677. package/lib/wss/AppShell/AppShell.styles.d.ts +3 -1
  678. package/lib/wss/AppShell/AppShell.styles.d.ts.map +1 -1
  679. package/lib/wss/AppShell/AppShell.styles.js +11 -4
  680. package/lib/wss/AppShell/AppShell.styles.js.map +1 -1
  681. package/lib/wss/CaseView/CaseView.mocks.d.ts +6 -1
  682. package/lib/wss/CaseView/CaseView.mocks.d.ts.map +1 -1
  683. package/lib/wss/CaseView/CaseView.mocks.js +55 -1
  684. package/lib/wss/CaseView/CaseView.mocks.js.map +1 -1
  685. package/lib/wss/CaseView/CaseView.stories.d.ts +1 -0
  686. package/lib/wss/CaseView/CaseView.stories.d.ts.map +1 -1
  687. package/lib/wss/CaseView/CaseView.stories.js +6 -3
  688. package/lib/wss/CaseView/CaseView.stories.js.map +1 -1
  689. package/package.json +13 -13
  690. package/jsx/work/Timeline/Timeline.stories.d.ts +0 -11
  691. package/jsx/work/Timeline/Timeline.stories.d.ts.map +0 -1
  692. package/jsx/work/Timeline/Timeline.stories.jsx +0 -85
  693. package/jsx/work/Timeline/Timeline.stories.jsx.map +0 -1
  694. package/lib/work/Timeline/Timeline.stories.d.ts +0 -11
  695. package/lib/work/Timeline/Timeline.stories.d.ts.map +0 -1
  696. package/lib/work/Timeline/Timeline.stories.js +0 -79
  697. package/lib/work/Timeline/Timeline.stories.js.map +0 -1
@@ -0,0 +1,59 @@
1
+ import type { AutoCompleteTriggerChar, CursorPosition, ExpressionBuilderProps } from '@pega/cosmos-react-build';
2
+ export declare const getFilterRegex: (inputValue: string) => RegExp;
3
+ export declare const errors = "Error message 1. Some unrealistic error message. Server unreachable. Check your network connection and try again";
4
+ export declare const items: ({
5
+ id: string;
6
+ testId: string;
7
+ primary: string;
8
+ type: string;
9
+ expression: string;
10
+ details: {
11
+ primary: {
12
+ field: string;
13
+ value: string;
14
+ }[];
15
+ output: {
16
+ field: string;
17
+ value: string;
18
+ }[];
19
+ input: {
20
+ id: string;
21
+ field: string;
22
+ type: string;
23
+ }[];
24
+ };
25
+ } | {
26
+ id: string;
27
+ testId: string;
28
+ primary: string;
29
+ type: string;
30
+ expression: string;
31
+ details: {
32
+ primary: {
33
+ field: string;
34
+ value: string;
35
+ }[];
36
+ output: {
37
+ field: string;
38
+ value: string;
39
+ }[];
40
+ input?: undefined;
41
+ };
42
+ })[];
43
+ export declare const suggestedFields: {
44
+ primary: string;
45
+ id: string;
46
+ secondary: string[];
47
+ }[];
48
+ export declare const getScopeFromPosition: (cursorPosition: CursorPosition, autoCompleteTrigger: AutoCompleteTriggerChar, value: string) => string;
49
+ export declare const getSuggestedFunction: (scope: string) => {
50
+ primary: string;
51
+ id: string;
52
+ secondary: string[];
53
+ }[];
54
+ export declare const suggestedRuleType: {
55
+ primary: string;
56
+ id: string;
57
+ }[];
58
+ export declare const inLineErrorsMocks: ExpressionBuilderProps['inLineErrors'];
59
+ //# sourceMappingURL=ExpressionBuilder.mocks.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ExpressionBuilder.mocks.d.ts","sourceRoot":"","sources":["../../../src/build/ExpressionBuilder/ExpressionBuilder.mocks.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,uBAAuB,EACvB,cAAc,EACd,sBAAsB,EACvB,MAAM,0BAA0B,CAAC;AAElC,eAAO,MAAM,cAAc,eAAgB,MAAM,WAEhD,CAAC;AAEF,eAAO,MAAM,MAAM,qHACiG,CAAC;AAErH,eAAO,MAAM,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IA8ejB,CAAC;AAEF,eAAO,MAAM,eAAe;;;;GAMvB,CAAC;AAEN,eAAO,MAAM,oBAAoB,mBACf,cAAc,uBACT,uBAAuB,SACrC,MAAM,KACZ,MAuBF,CAAC;AAEF,eAAO,MAAM,oBAAoB,UAAW,MAAM;;;;GAyBjD,CAAC;AAEF,eAAO,MAAM,iBAAiB;;;GAK7B,CAAC;AAEF,eAAO,MAAM,iBAAiB,EAAE,sBAAsB,CAAC,cAAc,CAWpE,CAAC"}
@@ -0,0 +1,568 @@
1
+ import { createUID } from '@pega/cosmos-react-core';
2
+ export const getFilterRegex = (inputValue) => {
3
+ return new RegExp(`${inputValue.replace(/[.*+\-?^${}()|[\]\\]/g, '\\$&')}`, 'i');
4
+ };
5
+ export const errors = 'Error message 1. Some unrealistic error message. Server unreachable. Check your network connection and try again';
6
+ export const items = [
7
+ {
8
+ id: createUID(),
9
+ testId: createUID(),
10
+ primary: 'Validate loan value',
11
+ type: 'Decision',
12
+ expression: '@validateLoanValue()',
13
+ details: {
14
+ primary: [
15
+ {
16
+ field: 'Description',
17
+ value: 'Function to validate loan value through simple interest or compound interest based on user choice'
18
+ },
19
+ {
20
+ field: 'Scope',
21
+ value: 'CCDBankLoan'
22
+ },
23
+ {
24
+ field: 'Namespace',
25
+ value: 'px'
26
+ }
27
+ ],
28
+ output: [
29
+ {
30
+ field: 'isValid',
31
+ value: 'Boolean'
32
+ }
33
+ ],
34
+ input: [
35
+ {
36
+ id: 'accountNumber',
37
+ field: 'Account number',
38
+ type: 'text'
39
+ },
40
+ {
41
+ id: 'term',
42
+ field: 'Term in years',
43
+ type: 'number'
44
+ },
45
+ {
46
+ id: 'accountType',
47
+ field: 'Account type',
48
+ type: 'text'
49
+ }
50
+ ]
51
+ }
52
+ },
53
+ {
54
+ id: createUID(),
55
+ testId: createUID(),
56
+ primary: 'Loan amount under 100k',
57
+ type: 'When',
58
+ expression: '@isLoanAmountUnder100k()',
59
+ details: {
60
+ primary: [
61
+ {
62
+ field: 'Scope',
63
+ value: 'CCDBankLoan'
64
+ },
65
+ {
66
+ field: 'Namespace',
67
+ value: 'px'
68
+ }
69
+ ],
70
+ output: [
71
+ {
72
+ field: 'isUnder100k',
73
+ value: 'Boolean'
74
+ }
75
+ ],
76
+ input: [
77
+ {
78
+ id: 'accountNumber',
79
+ field: 'Account number',
80
+ type: 'text'
81
+ }
82
+ ]
83
+ }
84
+ },
85
+ {
86
+ id: createUID(),
87
+ testId: createUID(),
88
+ primary: 'Loan number',
89
+ type: 'Field',
90
+ expression: '.loanNumber',
91
+ details: {
92
+ primary: [
93
+ {
94
+ field: 'Description',
95
+ value: 'Loan account number of current customer'
96
+ },
97
+ {
98
+ field: 'Scope',
99
+ value: 'CCDBankLoan'
100
+ },
101
+ {
102
+ field: 'Namespace',
103
+ value: 'px'
104
+ }
105
+ ],
106
+ output: []
107
+ }
108
+ },
109
+ {
110
+ id: createUID(),
111
+ testId: createUID(),
112
+ primary: 'Customer name',
113
+ type: 'Field',
114
+ expression: '.customerName',
115
+ details: {
116
+ primary: [
117
+ {
118
+ field: 'Description',
119
+ value: 'Fullname of current customer'
120
+ },
121
+ {
122
+ field: 'Scope',
123
+ value: 'CCDBankLoan'
124
+ },
125
+ {
126
+ field: 'Namespace',
127
+ value: 'px'
128
+ }
129
+ ],
130
+ output: []
131
+ }
132
+ },
133
+ {
134
+ id: createUID(),
135
+ testId: createUID(),
136
+ primary: 'Max',
137
+ type: 'Function',
138
+ expression: 'Math@Function:max()',
139
+ details: {
140
+ primary: [
141
+ {
142
+ field: 'Description',
143
+ value: 'Returns max of two numbers'
144
+ },
145
+ {
146
+ field: 'Scope',
147
+ value: 'Math'
148
+ },
149
+ {
150
+ field: 'Namespace',
151
+ value: 'py'
152
+ }
153
+ ],
154
+ output: [
155
+ {
156
+ field: 'max',
157
+ value: 'Number'
158
+ }
159
+ ],
160
+ input: [
161
+ {
162
+ id: 'param1',
163
+ field: 'Param 1',
164
+ type: 'number'
165
+ },
166
+ {
167
+ id: 'param2',
168
+ field: 'Param 2',
169
+ type: 'number'
170
+ }
171
+ ]
172
+ }
173
+ },
174
+ {
175
+ id: createUID(),
176
+ testId: createUID(),
177
+ primary: 'Min',
178
+ type: 'Function',
179
+ expression: 'Math@Function:min()',
180
+ details: {
181
+ primary: [
182
+ {
183
+ field: 'Description',
184
+ value: 'Return min of two numbers'
185
+ },
186
+ {
187
+ field: 'Scope',
188
+ value: 'Math'
189
+ },
190
+ {
191
+ field: 'Namespace',
192
+ value: 'py'
193
+ }
194
+ ],
195
+ output: [
196
+ {
197
+ field: 'min',
198
+ value: 'Number'
199
+ }
200
+ ],
201
+ input: [
202
+ {
203
+ id: 'param1',
204
+ field: 'Param 1',
205
+ type: 'number'
206
+ },
207
+ {
208
+ id: 'param2',
209
+ field: 'Param 2',
210
+ type: 'number'
211
+ }
212
+ ]
213
+ }
214
+ },
215
+ {
216
+ id: createUID(),
217
+ testId: createUID(),
218
+ primary: 'Sum',
219
+ type: 'Function',
220
+ expression: 'Math@Function:sum()',
221
+ details: {
222
+ primary: [
223
+ {
224
+ field: 'Description',
225
+ value: 'Return sum of two numbers'
226
+ },
227
+ {
228
+ field: 'Scope',
229
+ value: 'Math'
230
+ },
231
+ {
232
+ field: 'Namespace',
233
+ value: 'py'
234
+ }
235
+ ],
236
+ output: [
237
+ {
238
+ field: 'sum',
239
+ value: 'Number'
240
+ }
241
+ ],
242
+ input: [
243
+ {
244
+ id: 'param1',
245
+ field: 'Param 1',
246
+ type: 'number'
247
+ },
248
+ {
249
+ id: 'param2',
250
+ field: 'Param 2',
251
+ type: 'number'
252
+ }
253
+ ]
254
+ }
255
+ },
256
+ {
257
+ id: createUID(),
258
+ testId: createUID(),
259
+ primary: 'Absolute',
260
+ type: 'Function',
261
+ expression: 'Math@Function:abs()',
262
+ details: {
263
+ primary: [
264
+ {
265
+ field: 'Description',
266
+ value: 'Return absolute value of a number'
267
+ },
268
+ {
269
+ field: 'Scope',
270
+ value: 'Math'
271
+ },
272
+ {
273
+ field: 'Namespace',
274
+ value: 'py'
275
+ }
276
+ ],
277
+ output: [
278
+ {
279
+ field: 'abs',
280
+ value: 'Number'
281
+ }
282
+ ],
283
+ input: [
284
+ {
285
+ id: 'param1',
286
+ field: 'Param 1',
287
+ type: 'number'
288
+ }
289
+ ]
290
+ }
291
+ },
292
+ {
293
+ id: createUID(),
294
+ testId: createUID(),
295
+ primary: 'Square root',
296
+ type: 'Function',
297
+ expression: 'Math@Function:sqrt()',
298
+ details: {
299
+ primary: [
300
+ {
301
+ field: 'Description',
302
+ value: 'Return square root of a number'
303
+ },
304
+ {
305
+ field: 'Scope',
306
+ value: 'Math'
307
+ },
308
+ {
309
+ field: 'Namespace',
310
+ value: 'py'
311
+ }
312
+ ],
313
+ output: [
314
+ {
315
+ field: 'squareRoot',
316
+ value: 'Number'
317
+ }
318
+ ],
319
+ input: [
320
+ {
321
+ id: 'param1',
322
+ field: 'Param 1',
323
+ type: 'number'
324
+ }
325
+ ]
326
+ }
327
+ },
328
+ {
329
+ id: createUID(),
330
+ testId: createUID(),
331
+ primary: 'Average',
332
+ type: 'Function',
333
+ expression: 'Math@Function:average()',
334
+ details: {
335
+ primary: [
336
+ {
337
+ field: 'Description',
338
+ value: 'Return average value of two number'
339
+ },
340
+ {
341
+ field: 'Scope',
342
+ value: 'Math'
343
+ },
344
+ {
345
+ field: 'Namespace',
346
+ value: 'py'
347
+ }
348
+ ],
349
+ output: [
350
+ {
351
+ field: 'average',
352
+ value: 'Number'
353
+ }
354
+ ],
355
+ input: [
356
+ {
357
+ id: 'param1',
358
+ field: 'Param 1',
359
+ type: 'number'
360
+ },
361
+ {
362
+ id: 'param2',
363
+ field: 'Param 2',
364
+ type: 'number'
365
+ }
366
+ ]
367
+ }
368
+ },
369
+ {
370
+ id: createUID(),
371
+ testId: createUID(),
372
+ primary: 'Year',
373
+ type: 'Function',
374
+ expression: 'Date@Function:Year()',
375
+ details: {
376
+ primary: [
377
+ {
378
+ field: 'Description',
379
+ value: 'Returns the integer year value of given date/datetime'
380
+ },
381
+ {
382
+ field: 'Scope',
383
+ value: 'Date'
384
+ },
385
+ {
386
+ field: 'Namespace',
387
+ value: 'py'
388
+ }
389
+ ],
390
+ output: [
391
+ {
392
+ field: 'Date',
393
+ value: 'Date'
394
+ }
395
+ ],
396
+ input: [
397
+ {
398
+ id: 'param1',
399
+ field: 'Param 1',
400
+ type: 'Date'
401
+ }
402
+ ]
403
+ }
404
+ },
405
+ {
406
+ id: createUID(),
407
+ testId: createUID(),
408
+ primary: 'Month',
409
+ type: 'Function',
410
+ expression: 'Date@Function:Month()',
411
+ details: {
412
+ primary: [
413
+ {
414
+ field: 'Description',
415
+ value: 'Returns the integer month value of given date/datetime'
416
+ },
417
+ {
418
+ field: 'Scope',
419
+ value: 'Date'
420
+ },
421
+ {
422
+ field: 'Namespace',
423
+ value: 'py'
424
+ }
425
+ ],
426
+ output: [
427
+ {
428
+ field: 'Date',
429
+ value: 'Date'
430
+ }
431
+ ],
432
+ input: [
433
+ {
434
+ id: 'param1',
435
+ field: 'Param 1',
436
+ type: 'Date'
437
+ }
438
+ ]
439
+ }
440
+ },
441
+ {
442
+ id: createUID(),
443
+ testId: createUID(),
444
+ primary: 'Is the current browser Firefox',
445
+ type: 'When',
446
+ expression: '@isFirefox',
447
+ details: {
448
+ primary: [
449
+ {
450
+ field: 'Description',
451
+ value: 'Return true if the current browser is Firefox'
452
+ },
453
+ {
454
+ field: 'Scope',
455
+ value: 'base'
456
+ },
457
+ {
458
+ field: 'Namespace',
459
+ value: 'py'
460
+ }
461
+ ],
462
+ output: [
463
+ {
464
+ field: 'isFirefox',
465
+ value: 'Boolean'
466
+ }
467
+ ]
468
+ }
469
+ },
470
+ {
471
+ id: createUID(),
472
+ testId: createUID(),
473
+ primary: 'Is the current browser Internet Explorer',
474
+ type: 'When',
475
+ expression: '@isIE',
476
+ details: {
477
+ primary: [
478
+ {
479
+ field: 'Description',
480
+ value: 'Return true if the current browser is IE'
481
+ },
482
+ {
483
+ field: 'Scope',
484
+ value: 'base'
485
+ },
486
+ {
487
+ field: 'Namespace',
488
+ value: 'py'
489
+ }
490
+ ],
491
+ output: [
492
+ {
493
+ field: 'isIE',
494
+ value: 'Boolean'
495
+ }
496
+ ]
497
+ }
498
+ }
499
+ ];
500
+ export const suggestedFields = items
501
+ .filter(item => item.type === 'Field')
502
+ .map(item => ({
503
+ primary: item.expression.substring(1),
504
+ id: item.expression,
505
+ secondary: [`class: ${item.details.primary.find(({ field }) => field === 'Scope')?.value}`]
506
+ }));
507
+ export const getScopeFromPosition = (cursorPosition, autoCompleteTrigger, value) => {
508
+ const cursorLineText = value.split('\n')[cursorPosition.line];
509
+ const textTillCursorPos = cursorLineText.substring(0, cursorPosition.ch);
510
+ let start = textTillCursorPos?.lastIndexOf(' ');
511
+ if (start === -1) {
512
+ start = 0;
513
+ }
514
+ const currentWord = textTillCursorPos.substring(start, cursorPosition.ch);
515
+ let regexp;
516
+ if (autoCompleteTrigger === '.') {
517
+ regexp = /[\w$]*(\.+[\w$)[\](]*)+/g;
518
+ }
519
+ else {
520
+ regexp = /[\w@'-]*[@:]/g;
521
+ }
522
+ const tokenArray = [...currentWord.matchAll(regexp)];
523
+ let queryToken = '';
524
+ if (tokenArray.length > 0) {
525
+ const queryString = tokenArray[tokenArray.length - 1][0];
526
+ queryToken = queryString.substring(0, queryString.length - 1);
527
+ }
528
+ return queryToken;
529
+ };
530
+ export const getSuggestedFunction = (scope) => {
531
+ const functionList = items.filter(item => item.type === 'Function');
532
+ let scopeBasedList = functionList;
533
+ if (scope !== '') {
534
+ scopeBasedList = functionList.filter(item => item.details.primary.find(obj => obj.field === 'Scope')?.value === scope);
535
+ }
536
+ return scopeBasedList.map(item => {
537
+ const expressionList = item.expression.split(':');
538
+ const paramString = item.details.input
539
+ ?.map(param => {
540
+ return param.id;
541
+ })
542
+ .join(',');
543
+ const expression = expressionList[expressionList.length - 1];
544
+ const id = `${expression.slice(0, expression.length - 1)}${paramString})`;
545
+ return {
546
+ primary: expression.substring(0, expression.length - 2),
547
+ id: `:${id}`,
548
+ secondary: [`Scope: ${item.details.primary.find(({ field }) => field === 'Scope')?.value}`]
549
+ };
550
+ });
551
+ };
552
+ export const suggestedRuleType = ['@Automation:', '@Function:', '@Decision:', '@When:'].map(item => ({
553
+ primary: item.substring(1, item.length - 1),
554
+ id: item
555
+ }));
556
+ export const inLineErrorsMocks = [
557
+ {
558
+ start: { line: 0, ch: 14 },
559
+ end: { line: 0, ch: 17 },
560
+ messages: ['Max function accepts 2 arguments']
561
+ },
562
+ {
563
+ start: { line: 0, ch: 0 },
564
+ end: { line: 0, ch: 4 },
565
+ messages: ['Scope should be different', 'Math@ is not correct']
566
+ }
567
+ ];
568
+ //# sourceMappingURL=ExpressionBuilder.mocks.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ExpressionBuilder.mocks.js","sourceRoot":"","sources":["../../../src/build/ExpressionBuilder/ExpressionBuilder.mocks.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AAOpD,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,UAAkB,EAAE,EAAE;IACnD,OAAO,IAAI,MAAM,CAAC,GAAG,UAAU,CAAC,OAAO,CAAC,uBAAuB,EAAE,MAAM,CAAC,EAAE,EAAE,GAAG,CAAC,CAAC;AACnF,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,MAAM,GACjB,kHAAkH,CAAC;AAErH,MAAM,CAAC,MAAM,KAAK,GAAG;IACnB;QACE,EAAE,EAAE,SAAS,EAAE;QACf,MAAM,EAAE,SAAS,EAAE;QACnB,OAAO,EAAE,qBAAqB;QAC9B,IAAI,EAAE,UAAU;QAChB,UAAU,EAAE,sBAAsB;QAClC,OAAO,EAAE;YACP,OAAO,EAAE;gBACP;oBACE,KAAK,EAAE,aAAa;oBACpB,KAAK,EACH,mGAAmG;iBACtG;gBACD;oBACE,KAAK,EAAE,OAAO;oBACd,KAAK,EAAE,aAAa;iBACrB;gBACD;oBACE,KAAK,EAAE,WAAW;oBAClB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,EAAE,EAAE,IAAI,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE;QACvB,QAAQ,EAAE,CAAC,2BAA2B,EAAE,sBAAsB,CAAC;KAChE;CACF,CAAC","sourcesContent":["import { createUID } from '@pega/cosmos-react-core';\nimport type {\n AutoCompleteTriggerChar,\n CursorPosition,\n ExpressionBuilderProps\n} from '@pega/cosmos-react-build';\n\nexport const getFilterRegex = (inputValue: string) => {\n return new RegExp(`${inputValue.replace(/[.*+\\-?^${}()|[\\]\\\\]/g, '\\\\$&')}`, 'i');\n};\n\nexport const errors =\n 'Error message 1. Some unrealistic error message. Server unreachable. Check your network connection and try again';\n\nexport const items = [\n {\n id: createUID(),\n testId: createUID(),\n primary: 'Validate loan value',\n type: 'Decision',\n expression: '@validateLoanValue()',\n details: {\n primary: [\n {\n field: 'Description',\n value:\n 'Function to validate loan value through simple interest or compound interest based on user choice'\n },\n {\n field: 'Scope',\n value: 'CCDBankLoan'\n },\n {\n field: 'Namespace',\n value: 'px'\n }\n ],\n output: [\n {\n field: 'isValid',\n value: 'Boolean'\n }\n ],\n input: [\n {\n id: 'accountNumber',\n field: 'Account number',\n type: 'text'\n },\n {\n id: 'term',\n field: 'Term in years',\n type: 'number'\n },\n {\n id: 'accountType',\n field: 'Account type',\n type: 'text'\n }\n ]\n }\n },\n {\n id: createUID(),\n testId: createUID(),\n primary: 'Loan amount under 100k',\n type: 'When',\n expression: '@isLoanAmountUnder100k()',\n details: {\n primary: [\n {\n field: 'Scope',\n value: 'CCDBankLoan'\n },\n {\n field: 'Namespace',\n value: 'px'\n }\n ],\n output: [\n {\n field: 'isUnder100k',\n value: 'Boolean'\n }\n ],\n input: [\n {\n id: 'accountNumber',\n field: 'Account number',\n type: 'text'\n }\n ]\n }\n },\n {\n id: createUID(),\n testId: createUID(),\n primary: 'Loan number',\n type: 'Field',\n expression: '.loanNumber',\n details: {\n primary: [\n {\n field: 'Description',\n value: 'Loan account number of current customer'\n },\n {\n field: 'Scope',\n value: 'CCDBankLoan'\n },\n {\n field: 'Namespace',\n value: 'px'\n }\n ],\n output: []\n }\n },\n {\n id: createUID(),\n testId: createUID(),\n primary: 'Customer name',\n type: 'Field',\n expression: '.customerName',\n details: {\n primary: [\n {\n field: 'Description',\n value: 'Fullname of current customer'\n },\n {\n field: 'Scope',\n value: 'CCDBankLoan'\n },\n {\n field: 'Namespace',\n value: 'px'\n }\n ],\n output: []\n }\n },\n {\n id: createUID(),\n testId: createUID(),\n primary: 'Max',\n type: 'Function',\n expression: 'Math@Function:max()',\n details: {\n primary: [\n {\n field: 'Description',\n value: 'Returns max of two numbers'\n },\n {\n field: 'Scope',\n value: 'Math'\n },\n {\n field: 'Namespace',\n value: 'py'\n }\n ],\n output: [\n {\n field: 'max',\n value: 'Number'\n }\n ],\n input: [\n {\n id: 'param1',\n field: 'Param 1',\n type: 'number'\n },\n {\n id: 'param2',\n field: 'Param 2',\n type: 'number'\n }\n ]\n }\n },\n {\n id: createUID(),\n testId: createUID(),\n primary: 'Min',\n type: 'Function',\n expression: 'Math@Function:min()',\n details: {\n primary: [\n {\n field: 'Description',\n value: 'Return min of two numbers'\n },\n {\n field: 'Scope',\n value: 'Math'\n },\n {\n field: 'Namespace',\n value: 'py'\n }\n ],\n output: [\n {\n field: 'min',\n value: 'Number'\n }\n ],\n input: [\n {\n id: 'param1',\n field: 'Param 1',\n type: 'number'\n },\n {\n id: 'param2',\n field: 'Param 2',\n type: 'number'\n }\n ]\n }\n },\n {\n id: createUID(),\n testId: createUID(),\n primary: 'Sum',\n type: 'Function',\n expression: 'Math@Function:sum()',\n details: {\n primary: [\n {\n field: 'Description',\n value: 'Return sum of two numbers'\n },\n {\n field: 'Scope',\n value: 'Math'\n },\n {\n field: 'Namespace',\n value: 'py'\n }\n ],\n output: [\n {\n field: 'sum',\n value: 'Number'\n }\n ],\n input: [\n {\n id: 'param1',\n field: 'Param 1',\n type: 'number'\n },\n {\n id: 'param2',\n field: 'Param 2',\n type: 'number'\n }\n ]\n }\n },\n {\n id: createUID(),\n testId: createUID(),\n primary: 'Absolute',\n type: 'Function',\n expression: 'Math@Function:abs()',\n details: {\n primary: [\n {\n field: 'Description',\n value: 'Return absolute value of a number'\n },\n {\n field: 'Scope',\n value: 'Math'\n },\n {\n field: 'Namespace',\n value: 'py'\n }\n ],\n output: [\n {\n field: 'abs',\n value: 'Number'\n }\n ],\n input: [\n {\n id: 'param1',\n field: 'Param 1',\n type: 'number'\n }\n ]\n }\n },\n {\n id: createUID(),\n testId: createUID(),\n primary: 'Square root',\n type: 'Function',\n expression: 'Math@Function:sqrt()',\n details: {\n primary: [\n {\n field: 'Description',\n value: 'Return square root of a number'\n },\n {\n field: 'Scope',\n value: 'Math'\n },\n {\n field: 'Namespace',\n value: 'py'\n }\n ],\n output: [\n {\n field: 'squareRoot',\n value: 'Number'\n }\n ],\n input: [\n {\n id: 'param1',\n field: 'Param 1',\n type: 'number'\n }\n ]\n }\n },\n {\n id: createUID(),\n testId: createUID(),\n primary: 'Average',\n type: 'Function',\n expression: 'Math@Function:average()',\n details: {\n primary: [\n {\n field: 'Description',\n value: 'Return average value of two number'\n },\n {\n field: 'Scope',\n value: 'Math'\n },\n {\n field: 'Namespace',\n value: 'py'\n }\n ],\n output: [\n {\n field: 'average',\n value: 'Number'\n }\n ],\n input: [\n {\n id: 'param1',\n field: 'Param 1',\n type: 'number'\n },\n {\n id: 'param2',\n field: 'Param 2',\n type: 'number'\n }\n ]\n }\n },\n {\n id: createUID(),\n testId: createUID(),\n primary: 'Year',\n type: 'Function',\n expression: 'Date@Function:Year()',\n details: {\n primary: [\n {\n field: 'Description',\n value: 'Returns the integer year value of given date/datetime'\n },\n {\n field: 'Scope',\n value: 'Date'\n },\n {\n field: 'Namespace',\n value: 'py'\n }\n ],\n output: [\n {\n field: 'Date',\n value: 'Date'\n }\n ],\n input: [\n {\n id: 'param1',\n field: 'Param 1',\n type: 'Date'\n }\n ]\n }\n },\n {\n id: createUID(),\n testId: createUID(),\n primary: 'Month',\n type: 'Function',\n expression: 'Date@Function:Month()',\n details: {\n primary: [\n {\n field: 'Description',\n value: 'Returns the integer month value of given date/datetime'\n },\n {\n field: 'Scope',\n value: 'Date'\n },\n {\n field: 'Namespace',\n value: 'py'\n }\n ],\n output: [\n {\n field: 'Date',\n value: 'Date'\n }\n ],\n input: [\n {\n id: 'param1',\n field: 'Param 1',\n type: 'Date'\n }\n ]\n }\n },\n {\n id: createUID(),\n testId: createUID(),\n primary: 'Is the current browser Firefox',\n type: 'When',\n expression: '@isFirefox',\n details: {\n primary: [\n {\n field: 'Description',\n value: 'Return true if the current browser is Firefox'\n },\n {\n field: 'Scope',\n value: 'base'\n },\n {\n field: 'Namespace',\n value: 'py'\n }\n ],\n output: [\n {\n field: 'isFirefox',\n value: 'Boolean'\n }\n ]\n }\n },\n {\n id: createUID(),\n testId: createUID(),\n primary: 'Is the current browser Internet Explorer',\n type: 'When',\n expression: '@isIE',\n details: {\n primary: [\n {\n field: 'Description',\n value: 'Return true if the current browser is IE'\n },\n {\n field: 'Scope',\n value: 'base'\n },\n {\n field: 'Namespace',\n value: 'py'\n }\n ],\n output: [\n {\n field: 'isIE',\n value: 'Boolean'\n }\n ]\n }\n }\n];\n\nexport const suggestedFields = items\n .filter(item => item.type === 'Field')\n .map(item => ({\n primary: item.expression.substring(1),\n id: item.expression,\n secondary: [`class: ${item.details.primary.find(({ field }) => field === 'Scope')?.value}`]\n }));\n\nexport const getScopeFromPosition = (\n cursorPosition: CursorPosition,\n autoCompleteTrigger: AutoCompleteTriggerChar,\n value: string\n): string => {\n const cursorLineText = value.split('\\n')[cursorPosition.line];\n const textTillCursorPos = cursorLineText.substring(0, cursorPosition.ch);\n let start = textTillCursorPos?.lastIndexOf(' ');\n if (start === -1) {\n start = 0;\n }\n const currentWord = textTillCursorPos.substring(start, cursorPosition.ch);\n\n let regexp;\n if (autoCompleteTrigger === '.') {\n regexp = /[\\w$]*(\\.+[\\w$)[\\](]*)+/g;\n } else {\n regexp = /[\\w@'-]*[@:]/g;\n }\n\n const tokenArray = [...currentWord.matchAll(regexp)];\n let queryToken = '';\n if (tokenArray.length > 0) {\n const queryString = tokenArray[tokenArray.length - 1][0];\n queryToken = queryString.substring(0, queryString.length - 1);\n }\n return queryToken;\n};\n\nexport const getSuggestedFunction = (scope: string) => {\n const functionList = items.filter(item => item.type === 'Function');\n\n let scopeBasedList = functionList;\n if (scope !== '') {\n scopeBasedList = functionList.filter(\n item => item.details.primary.find(obj => obj.field === 'Scope')?.value === scope\n );\n }\n\n return scopeBasedList.map(item => {\n const expressionList = item.expression.split(':');\n const paramString = item.details.input\n ?.map(param => {\n return param.id;\n })\n .join(',');\n const expression = expressionList[expressionList.length - 1];\n const id = `${expression.slice(0, expression.length - 1)}${paramString})`;\n return {\n primary: expression.substring(0, expression.length - 2),\n id: `:${id}`,\n secondary: [`Scope: ${item.details.primary.find(({ field }) => field === 'Scope')?.value}`]\n };\n });\n};\n\nexport const suggestedRuleType = ['@Automation:', '@Function:', '@Decision:', '@When:'].map(\n item => ({\n primary: item.substring(1, item.length - 1),\n id: item\n })\n);\n\nexport const inLineErrorsMocks: ExpressionBuilderProps['inLineErrors'] = [\n {\n start: { line: 0, ch: 14 },\n end: { line: 0, ch: 17 },\n messages: ['Max function accepts 2 arguments']\n },\n {\n start: { line: 0, ch: 0 },\n end: { line: 0, ch: 4 },\n messages: ['Scope should be different', 'Math@ is not correct']\n }\n];\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"FieldReference.mocks.d.ts","sourceRoot":"","sources":["../../../src/build/FieldReference/FieldReference.mocks.ts"],"names":[],"mappings":"AAAA,OAAO,EAA6B,KAAK,QAAQ,EAAE,KAAK,cAAc,EAAE,MAAM,OAAO,CAAC;AAEtF,OAAO,EACL,KAAK,wBAAwB,EAC7B,KAAK,sBAAsB,EAC3B,KAAK,KAAK,EACV,KAAK,UAAU,EACf,KAAK,uBAAuB,EAE5B,KAAK,0BAA0B,EAGhC,MAAM,0BAA0B,CAAC;AAIlC,eAAO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