@pega/cosmos-react-build 9.0.0-build.9.8 → 9.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 (270) hide show
  1. package/lib/components/AppShell/AppShell.styles.d.ts +13 -11
  2. package/lib/components/AppShell/AppShell.styles.d.ts.map +1 -1
  3. package/lib/components/AppShell/Header/AppHeader.styles.d.ts +11 -7
  4. package/lib/components/AppShell/Header/AppHeader.styles.d.ts.map +1 -1
  5. package/lib/components/AppShell/Header/BranchButton.d.ts +6 -4
  6. package/lib/components/AppShell/Header/BranchButton.d.ts.map +1 -1
  7. package/lib/components/AppShell/Header/BranchButton.js.map +1 -1
  8. package/lib/components/AuthoringPanel/AuthoringPanel.styles.d.ts +753 -15
  9. package/lib/components/AuthoringPanel/AuthoringPanel.styles.d.ts.map +1 -1
  10. package/lib/components/AuthoringPanel/AuthoringPanel.styles.js +5 -4
  11. package/lib/components/AuthoringPanel/AuthoringPanel.styles.js.map +1 -1
  12. package/lib/components/Automation/Automation.js.map +1 -1
  13. package/lib/components/Automation/Automation.styles.d.ts +33 -10
  14. package/lib/components/Automation/Automation.styles.d.ts.map +1 -1
  15. package/lib/components/Automation/Automation.styles.js +1 -1
  16. package/lib/components/Automation/Automation.styles.js.map +1 -1
  17. package/lib/components/BackgroundPicker/BackgroundPicker.styles.d.ts +375 -11
  18. package/lib/components/BackgroundPicker/BackgroundPicker.styles.d.ts.map +1 -1
  19. package/lib/components/BackgroundPicker/BackgroundPicker.styles.js.map +1 -1
  20. package/lib/components/DynamicContentEditor/DynamicContentEditor.d.ts +8 -4
  21. package/lib/components/DynamicContentEditor/DynamicContentEditor.d.ts.map +1 -1
  22. package/lib/components/DynamicContentEditor/DynamicContentEditor.js +88 -68
  23. package/lib/components/DynamicContentEditor/DynamicContentEditor.js.map +1 -1
  24. package/lib/components/DynamicContentEditor/DynamicContentEditor.test-ids.d.ts +2 -0
  25. package/lib/components/DynamicContentEditor/DynamicContentEditor.test-ids.d.ts.map +1 -0
  26. package/lib/components/DynamicContentEditor/DynamicContentEditor.test-ids.js +9 -0
  27. package/lib/components/DynamicContentEditor/DynamicContentEditor.test-ids.js.map +1 -0
  28. package/lib/components/DynamicContentEditor/DynamicContentEditor.types.d.ts +12 -3
  29. package/lib/components/DynamicContentEditor/DynamicContentEditor.types.d.ts.map +1 -1
  30. package/lib/components/DynamicContentEditor/DynamicContentEditor.types.js +2 -1
  31. package/lib/components/DynamicContentEditor/DynamicContentEditor.types.js.map +1 -1
  32. package/lib/components/DynamicInput/DynamicInput.d.ts.map +1 -1
  33. package/lib/components/DynamicInput/DynamicInput.js +11 -5
  34. package/lib/components/DynamicInput/DynamicInput.js.map +1 -1
  35. package/lib/components/DynamicInput/DynamicInput.styles.d.ts +187 -2
  36. package/lib/components/DynamicInput/DynamicInput.styles.d.ts.map +1 -1
  37. package/lib/components/DynamicInput/DynamicInput.styles.js +29 -2
  38. package/lib/components/DynamicInput/DynamicInput.styles.js.map +1 -1
  39. package/lib/components/DynamicInput/DynamicInput.types.d.ts +4 -2
  40. package/lib/components/DynamicInput/DynamicInput.types.d.ts.map +1 -1
  41. package/lib/components/DynamicInput/DynamicInput.types.js.map +1 -1
  42. package/lib/components/DynamicInput/SourceButton.d.ts +1 -1
  43. package/lib/components/DynamicInput/SourceButton.d.ts.map +1 -1
  44. package/lib/components/DynamicInput/SourceButton.js.map +1 -1
  45. package/lib/components/DynamicInput/utils.d.ts.map +1 -1
  46. package/lib/components/DynamicInput/utils.js +5 -1
  47. package/lib/components/DynamicInput/utils.js.map +1 -1
  48. package/lib/components/EmptyRuleTemplate/EmptyRuleTemplate.d.ts +5 -5
  49. package/lib/components/EmptyRuleTemplate/EmptyRuleTemplate.d.ts.map +1 -1
  50. package/lib/components/EmptyRuleTemplate/EmptyRuleTemplate.js.map +1 -1
  51. package/lib/components/Expression/Expression.styles.d.ts +376 -8
  52. package/lib/components/Expression/Expression.styles.d.ts.map +1 -1
  53. package/lib/components/ExpressionBuilder/CodeEditor/CodeEditor.d.ts.map +1 -1
  54. package/lib/components/ExpressionBuilder/CodeEditor/CodeEditor.js +138 -41
  55. package/lib/components/ExpressionBuilder/CodeEditor/CodeEditor.js.map +1 -1
  56. package/lib/components/ExpressionBuilder/CodeEditor/CodeEditor.styles.d.ts +190 -8
  57. package/lib/components/ExpressionBuilder/CodeEditor/CodeEditor.styles.d.ts.map +1 -1
  58. package/lib/components/ExpressionBuilder/CodeEditor/CodeEditor.styles.js +53 -32
  59. package/lib/components/ExpressionBuilder/CodeEditor/CodeEditor.styles.js.map +1 -1
  60. package/lib/components/ExpressionBuilder/CodeEditor/CodeEditor.types.d.ts +2 -1
  61. package/lib/components/ExpressionBuilder/CodeEditor/CodeEditor.types.d.ts.map +1 -1
  62. package/lib/components/ExpressionBuilder/CodeEditor/CodeEditor.types.js.map +1 -1
  63. package/lib/components/ExpressionBuilder/CodeEditor/getCodeSuggestions.d.ts +1 -1
  64. package/lib/components/ExpressionBuilder/CodeEditor/getCodeSuggestions.d.ts.map +1 -1
  65. package/lib/components/ExpressionBuilder/CodeEditor/getCodeSuggestions.js +7 -7
  66. package/lib/components/ExpressionBuilder/CodeEditor/getCodeSuggestions.js.map +1 -1
  67. package/lib/components/ExpressionBuilder/ExpressionBuilder.d.ts.map +1 -1
  68. package/lib/components/ExpressionBuilder/ExpressionBuilder.js +7 -6
  69. package/lib/components/ExpressionBuilder/ExpressionBuilder.js.map +1 -1
  70. package/lib/components/ExpressionBuilder/ExpressionBuilder.styles.d.ts +211 -22
  71. package/lib/components/ExpressionBuilder/ExpressionBuilder.styles.d.ts.map +1 -1
  72. package/lib/components/ExpressionBuilder/ExpressionBuilder.styles.js +6 -0
  73. package/lib/components/ExpressionBuilder/ExpressionBuilder.styles.js.map +1 -1
  74. package/lib/components/ExpressionBuilder/ExpressionBuilder.types.d.ts +5 -3
  75. package/lib/components/ExpressionBuilder/ExpressionBuilder.types.d.ts.map +1 -1
  76. package/lib/components/ExpressionBuilder/ExpressionBuilder.types.js.map +1 -1
  77. package/lib/components/ExpressionBuilder/ExpressionItem.d.ts.map +1 -1
  78. package/lib/components/ExpressionBuilder/ExpressionItem.js +17 -13
  79. package/lib/components/ExpressionBuilder/ExpressionItem.js.map +1 -1
  80. package/lib/components/ExpressionBuilder/ExpressionList.d.ts.map +1 -1
  81. package/lib/components/ExpressionBuilder/ExpressionList.js +18 -13
  82. package/lib/components/ExpressionBuilder/ExpressionList.js.map +1 -1
  83. package/lib/components/ExpressionBuilder/index.d.ts +1 -1
  84. package/lib/components/ExpressionBuilder/index.d.ts.map +1 -1
  85. package/lib/components/ExpressionBuilder/index.js.map +1 -1
  86. package/lib/components/FieldReference/FieldReference.styles.d.ts +20 -11
  87. package/lib/components/FieldReference/FieldReference.styles.d.ts.map +1 -1
  88. package/lib/components/FieldReference/FieldReference.styles.js +10 -1
  89. package/lib/components/FieldReference/FieldReference.styles.js.map +1 -1
  90. package/lib/components/FieldReference/FieldReferenceDisplay.d.ts.map +1 -1
  91. package/lib/components/FieldReference/FieldReferenceDisplay.js +3 -3
  92. package/lib/components/FieldReference/FieldReferenceDisplay.js.map +1 -1
  93. package/lib/components/FieldReference/FieldReferenceInput.d.ts.map +1 -1
  94. package/lib/components/FieldReference/FieldReferenceInput.js +13 -5
  95. package/lib/components/FieldReference/FieldReferenceInput.js.map +1 -1
  96. package/lib/components/FlowModeller/AddNode.d.ts +22 -0
  97. package/lib/components/FlowModeller/AddNode.d.ts.map +1 -0
  98. package/lib/components/FlowModeller/AddNode.js +95 -0
  99. package/lib/components/FlowModeller/AddNode.js.map +1 -0
  100. package/lib/components/FlowModeller/Connector.d.ts +12 -0
  101. package/lib/components/FlowModeller/Connector.d.ts.map +1 -0
  102. package/lib/components/FlowModeller/Connector.js +84 -0
  103. package/lib/components/FlowModeller/Connector.js.map +1 -0
  104. package/lib/components/FlowModeller/DeleteDialog.d.ts +39 -0
  105. package/lib/components/FlowModeller/DeleteDialog.d.ts.map +1 -0
  106. package/lib/components/FlowModeller/DeleteDialog.js +158 -0
  107. package/lib/components/FlowModeller/DeleteDialog.js.map +1 -0
  108. package/lib/components/FlowModeller/FlowAuthoringPanel/FlowAuthoringPanel.d.ts +4 -0
  109. package/lib/components/FlowModeller/FlowAuthoringPanel/FlowAuthoringPanel.d.ts.map +1 -0
  110. package/lib/components/FlowModeller/FlowAuthoringPanel/FlowAuthoringPanel.js +37 -0
  111. package/lib/components/FlowModeller/FlowAuthoringPanel/FlowAuthoringPanel.js.map +1 -0
  112. package/lib/components/FlowModeller/FlowAuthoringPanel/FlowAuthoringPanel.styles.d.ts +8 -0
  113. package/lib/components/FlowModeller/FlowAuthoringPanel/FlowAuthoringPanel.styles.d.ts.map +1 -0
  114. package/lib/components/FlowModeller/FlowAuthoringPanel/FlowAuthoringPanel.styles.js +80 -0
  115. package/lib/components/FlowModeller/FlowAuthoringPanel/FlowAuthoringPanel.styles.js.map +1 -0
  116. package/lib/components/FlowModeller/FlowAuthoringPanel/FlowAuthoringPanel.types.d.ts +36 -0
  117. package/lib/components/FlowModeller/FlowAuthoringPanel/FlowAuthoringPanel.types.d.ts.map +1 -0
  118. package/lib/components/FlowModeller/FlowAuthoringPanel/FlowAuthoringPanel.types.js +2 -0
  119. package/lib/components/FlowModeller/FlowAuthoringPanel/FlowAuthoringPanel.types.js.map +1 -0
  120. package/lib/components/FlowModeller/FlowModeller.d.ts +5 -0
  121. package/lib/components/FlowModeller/FlowModeller.d.ts.map +1 -0
  122. package/lib/components/FlowModeller/FlowModeller.js +359 -0
  123. package/lib/components/FlowModeller/FlowModeller.js.map +1 -0
  124. package/lib/components/FlowModeller/FlowModeller.test-ids.d.ts +3 -0
  125. package/lib/components/FlowModeller/FlowModeller.test-ids.d.ts.map +1 -0
  126. package/lib/components/FlowModeller/FlowModeller.test-ids.js +5 -0
  127. package/lib/components/FlowModeller/FlowModeller.test-ids.js.map +1 -0
  128. package/lib/components/FlowModeller/FlowModeller.types.d.ts +84 -0
  129. package/lib/components/FlowModeller/FlowModeller.types.d.ts.map +1 -0
  130. package/lib/components/FlowModeller/FlowModeller.types.js +2 -0
  131. package/lib/components/FlowModeller/FlowModeller.types.js.map +1 -0
  132. package/lib/components/FlowModeller/FlowModellerContext.d.ts +10 -0
  133. package/lib/components/FlowModeller/FlowModellerContext.d.ts.map +1 -0
  134. package/lib/components/FlowModeller/FlowModellerContext.js +8 -0
  135. package/lib/components/FlowModeller/FlowModellerContext.js.map +1 -0
  136. package/lib/components/FlowModeller/Node/Node.types.d.ts +93 -0
  137. package/lib/components/FlowModeller/Node/Node.types.d.ts.map +1 -0
  138. package/lib/components/FlowModeller/Node/Node.types.js +27 -0
  139. package/lib/components/FlowModeller/Node/Node.types.js.map +1 -0
  140. package/lib/components/FlowModeller/Node/NodeTemplate.styles.d.ts +212 -0
  141. package/lib/components/FlowModeller/Node/NodeTemplate.styles.d.ts.map +1 -0
  142. package/lib/components/FlowModeller/Node/NodeTemplate.styles.js +144 -0
  143. package/lib/components/FlowModeller/Node/NodeTemplate.styles.js.map +1 -0
  144. package/lib/components/FlowModeller/Node/NodeTemplates.d.ts +5 -0
  145. package/lib/components/FlowModeller/Node/NodeTemplates.d.ts.map +1 -0
  146. package/lib/components/FlowModeller/Node/NodeTemplates.js +130 -0
  147. package/lib/components/FlowModeller/Node/NodeTemplates.js.map +1 -0
  148. package/lib/components/FlowModeller/Node.d.ts +10 -0
  149. package/lib/components/FlowModeller/Node.d.ts.map +1 -0
  150. package/lib/components/FlowModeller/Node.js +43 -0
  151. package/lib/components/FlowModeller/Node.js.map +1 -0
  152. package/lib/components/FlowModeller/Renderer/Renderer.d.ts +4 -0
  153. package/lib/components/FlowModeller/Renderer/Renderer.d.ts.map +1 -0
  154. package/lib/components/FlowModeller/Renderer/Renderer.js +198 -0
  155. package/lib/components/FlowModeller/Renderer/Renderer.js.map +1 -0
  156. package/lib/components/FlowModeller/Renderer/Renderer.types.d.ts +20 -0
  157. package/lib/components/FlowModeller/Renderer/Renderer.types.d.ts.map +1 -0
  158. package/lib/components/FlowModeller/Renderer/Renderer.types.js +2 -0
  159. package/lib/components/FlowModeller/Renderer/Renderer.types.js.map +1 -0
  160. package/lib/components/FlowModeller/Renderer/Utils/Graph.d.ts +63 -0
  161. package/lib/components/FlowModeller/Renderer/Utils/Graph.d.ts.map +1 -0
  162. package/lib/components/FlowModeller/Renderer/Utils/Graph.js +291 -0
  163. package/lib/components/FlowModeller/Renderer/Utils/Graph.js.map +1 -0
  164. package/lib/components/FlowModeller/Renderer/Utils/GraphLayout.d.ts +37 -0
  165. package/lib/components/FlowModeller/Renderer/Utils/GraphLayout.d.ts.map +1 -0
  166. package/lib/components/FlowModeller/Renderer/Utils/GraphLayout.js +114 -0
  167. package/lib/components/FlowModeller/Renderer/Utils/GraphLayout.js.map +1 -0
  168. package/lib/components/FlowModeller/Renderer/Utils/GraphTraversal.d.ts +29 -0
  169. package/lib/components/FlowModeller/Renderer/Utils/GraphTraversal.d.ts.map +1 -0
  170. package/lib/components/FlowModeller/Renderer/Utils/GraphTraversal.js +191 -0
  171. package/lib/components/FlowModeller/Renderer/Utils/GraphTraversal.js.map +1 -0
  172. package/lib/components/FlowModeller/Renderer/Utils/RendererUtils.d.ts +38 -0
  173. package/lib/components/FlowModeller/Renderer/Utils/RendererUtils.d.ts.map +1 -0
  174. package/lib/components/FlowModeller/Renderer/Utils/RendererUtils.js +363 -0
  175. package/lib/components/FlowModeller/Renderer/Utils/RendererUtils.js.map +1 -0
  176. package/lib/components/FlowModeller/Utils/addNodeUtils.d.ts +18 -0
  177. package/lib/components/FlowModeller/Utils/addNodeUtils.d.ts.map +1 -0
  178. package/lib/components/FlowModeller/Utils/addNodeUtils.js +148 -0
  179. package/lib/components/FlowModeller/Utils/addNodeUtils.js.map +1 -0
  180. package/lib/components/FlowModeller/Utils/deleteNodeUtils.d.ts +33 -0
  181. package/lib/components/FlowModeller/Utils/deleteNodeUtils.d.ts.map +1 -0
  182. package/lib/components/FlowModeller/Utils/deleteNodeUtils.js +89 -0
  183. package/lib/components/FlowModeller/Utils/deleteNodeUtils.js.map +1 -0
  184. package/lib/components/FlowModeller/constants.d.ts +10 -0
  185. package/lib/components/FlowModeller/constants.d.ts.map +1 -0
  186. package/lib/components/FlowModeller/constants.js +9 -0
  187. package/lib/components/FlowModeller/constants.js.map +1 -0
  188. package/lib/components/FlowModeller/helper.d.ts +39 -0
  189. package/lib/components/FlowModeller/helper.d.ts.map +1 -0
  190. package/lib/components/FlowModeller/helper.js +230 -0
  191. package/lib/components/FlowModeller/helper.js.map +1 -0
  192. package/lib/components/FlowModeller/index.d.ts +18 -0
  193. package/lib/components/FlowModeller/index.d.ts.map +1 -0
  194. package/lib/components/FlowModeller/index.js +11 -0
  195. package/lib/components/FlowModeller/index.js.map +1 -0
  196. package/lib/components/IconTile/IconTile.d.ts +2 -2
  197. package/lib/components/IconTile/IconTile.d.ts.map +1 -1
  198. package/lib/components/ItemLibrary/ItemLibrary.d.ts +2 -2
  199. package/lib/components/ItemLibrary/ItemLibrary.d.ts.map +1 -1
  200. package/lib/components/ItemLibrary/ItemLibrary.js +5 -1
  201. package/lib/components/ItemLibrary/ItemLibrary.js.map +1 -1
  202. package/lib/components/LifeCycle/Category.d.ts +6 -6
  203. package/lib/components/LifeCycle/Category.d.ts.map +1 -1
  204. package/lib/components/LifeCycle/LifeCycle.d.ts +184 -2
  205. package/lib/components/LifeCycle/LifeCycle.d.ts.map +1 -1
  206. package/lib/components/LifeCycle/LifeCycle.types.d.ts +70 -0
  207. package/lib/components/LifeCycle/LifeCycle.types.d.ts.map +1 -1
  208. package/lib/components/LifeCycle/Stage.d.ts +6 -6
  209. package/lib/components/LifeCycle/Stage.d.ts.map +1 -1
  210. package/lib/components/LifeCycle/Step.d.ts +8 -8
  211. package/lib/components/LifeCycle/Step.d.ts.map +1 -1
  212. package/lib/components/LifeCycle/Step.js +1 -1
  213. package/lib/components/LifeCycle/Step.js.map +1 -1
  214. package/lib/components/LifeCycle/Task.d.ts +14 -10
  215. package/lib/components/LifeCycle/Task.d.ts.map +1 -1
  216. package/lib/components/LifeCycle/TaskGroup.d.ts +3 -1
  217. package/lib/components/LifeCycle/TaskGroup.d.ts.map +1 -1
  218. package/lib/components/MobileBuildSummary/MobileBuildSummary.d.ts +2 -2
  219. package/lib/components/MobileBuildSummary/MobileBuildSummary.d.ts.map +1 -1
  220. package/lib/components/ObjectSelect/InputTree/InputTree.styles.d.ts +10 -8
  221. package/lib/components/ObjectSelect/InputTree/InputTree.styles.d.ts.map +1 -1
  222. package/lib/components/ObjectSelect/InputTree/InputTree.styles.js +1 -1
  223. package/lib/components/ObjectSelect/InputTree/InputTree.styles.js.map +1 -1
  224. package/lib/components/PageBanner/PageBanner.d.ts +3 -3
  225. package/lib/components/PageBanner/PageBanner.d.ts.map +1 -1
  226. package/lib/components/PageBanner/PageBanner.js +6 -2
  227. package/lib/components/PageBanner/PageBanner.js.map +1 -1
  228. package/lib/components/PageTemplates/ConstructPageTemplate/ConstructPageHeader.d.ts +4 -2
  229. package/lib/components/PageTemplates/ConstructPageTemplate/ConstructPageHeader.d.ts.map +1 -1
  230. package/lib/components/PageTemplates/ConstructPageTemplate/ConstructPageHeader.js +23 -12
  231. package/lib/components/PageTemplates/ConstructPageTemplate/ConstructPageHeader.js.map +1 -1
  232. package/lib/components/PageTemplates/ConstructPageTemplate/ConstructPageTemplate.d.ts.map +1 -1
  233. package/lib/components/PageTemplates/ConstructPageTemplate/ConstructPageTemplate.js +14 -5
  234. package/lib/components/PageTemplates/ConstructPageTemplate/ConstructPageTemplate.js.map +1 -1
  235. package/lib/components/PageTemplates/GalleryPage.d.ts +2 -2
  236. package/lib/components/PageTemplates/GalleryPage.d.ts.map +1 -1
  237. package/lib/components/PageTemplates/HeaderActionButtons.d.ts.map +1 -1
  238. package/lib/components/PageTemplates/HeaderActionButtons.js +11 -3
  239. package/lib/components/PageTemplates/HeaderActionButtons.js.map +1 -1
  240. package/lib/components/PageTemplates/PageTemplate.styles.d.ts +375 -8
  241. package/lib/components/PageTemplates/PageTemplate.styles.d.ts.map +1 -1
  242. package/lib/components/PageTemplates/PageTemplate.styles.js +18 -10
  243. package/lib/components/PageTemplates/PageTemplate.styles.js.map +1 -1
  244. package/lib/components/PageTemplates/PageTemplate.types.d.ts +18 -13
  245. package/lib/components/PageTemplates/PageTemplate.types.d.ts.map +1 -1
  246. package/lib/components/PageTemplates/PageTemplate.types.js.map +1 -1
  247. package/lib/components/PageTemplates/PageTemplates.d.ts +4 -1
  248. package/lib/components/PageTemplates/PageTemplates.d.ts.map +1 -1
  249. package/lib/components/PageTemplates/PageTemplates.js +9 -5
  250. package/lib/components/PageTemplates/PageTemplates.js.map +1 -1
  251. package/lib/components/PageTemplates/ShowcasePage.d.ts +2 -2
  252. package/lib/components/PageTemplates/ShowcasePage.d.ts.map +1 -1
  253. package/lib/components/RulePicker/RulePicker.d.ts +1 -1
  254. package/lib/components/SummaryCard/SummaryCard.d.ts.map +1 -1
  255. package/lib/components/SummaryCard/SummaryCard.js +13 -1
  256. package/lib/components/SummaryCard/SummaryCard.js.map +1 -1
  257. package/lib/components/Workbench/Workbench.styles.d.ts +12 -8
  258. package/lib/components/Workbench/Workbench.styles.d.ts.map +1 -1
  259. package/lib/index.d.ts +2 -0
  260. package/lib/index.d.ts.map +1 -1
  261. package/lib/index.js +2 -0
  262. package/lib/index.js.map +1 -1
  263. package/lib/utils/typeIconMapping.d.ts.map +1 -1
  264. package/lib/utils/typeIconMapping.js +2 -0
  265. package/lib/utils/typeIconMapping.js.map +1 -1
  266. package/lib/utils/utils.d.ts +5 -0
  267. package/lib/utils/utils.d.ts.map +1 -0
  268. package/lib/utils/utils.js +19 -0
  269. package/lib/utils/utils.js.map +1 -0
  270. package/package.json +7 -10
@@ -1 +1 @@
1
- {"version":3,"file":"SourceButton.js","sourceRoot":"","sources":["../../../src/components/DynamicInput/SourceButton.tsx"],"names":[],"mappings":";AAEA,OAAO,EACL,UAAU,EACV,OAAO,EAIR,MAAM,yBAAyB,CAAC;AAejC,MAAM,YAAY,GAA0B,CAAC,EAC3C,OAAO,EACP,IAAI,EACJ,cAAc,EACd,cAAc,EACd,MAAM,EACN,SAAS,EACT,GAAG,SAAS,EACM,EAAE,EAAE;IACtB,MAAM,CAAC,GAAG,OAAO,EAAE,CAAC;IAEpB,OAAO,CACL,KAAC,UAAU,IACT,MAAM,EAAE,MAAM,EACd,IAAI,EAAE,CAAC,CAAC,YAAY,CAAC,KACjB,SAAS,EACb,IAAI,EAAE,IAAI,EACV,OAAO,EAAC,YAAY,EACpB,IAAI,EAAE;YACJ,IAAI,EAAE,eAAe;YACrB,KAAK,EAAE,SAAS;YAChB,WAAW,EAAE,EAAE,CAAC,EAAE;gBAChB,cAAc,CAAC,EAAY,CAAC,CAAC;YAC/B,CAAC;SACF,EACD,SAAS,QACT,QAAQ,SACR,CACH,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,YAAY,CAAC","sourcesContent":["import type { FC } from 'react';\n\nimport {\n MenuButton,\n useI18n,\n type MenuButtonProps,\n type TestIdProp,\n type MenuProps\n} from '@pega/cosmos-react-core';\n\nimport type { ConstantFormat, DynamicInputProps, Source } from './DynamicInput.types';\n\ninterface SourceButtonProps\n extends Pick<DynamicInputProps, 'sources' | 'onSourceChange'>,\n TestIdProp {\n /** Source menu items. */\n menuItems: MenuProps['items'];\n /** The name of the icon for the selected source. */\n icon?: MenuButtonProps['icon'];\n /** The input format for constants. */\n constantFormat?: ConstantFormat;\n}\n\nconst SourceButton: FC<SourceButtonProps> = ({\n sources,\n icon,\n constantFormat,\n onSourceChange,\n testId,\n menuItems,\n ...restProps\n}: SourceButtonProps) => {\n const t = useI18n();\n\n return (\n <MenuButton\n testId={testId}\n text={t('value_type')}\n {...restProps}\n icon={icon}\n iconSet='streamline'\n menu={{\n mode: 'single-select',\n items: menuItems,\n onItemClick: id => {\n onSourceChange(id as Source);\n }\n }}\n showArrow\n iconOnly\n />\n );\n};\n\nexport default SourceButton;\n"]}
1
+ {"version":3,"file":"SourceButton.js","sourceRoot":"","sources":["../../../src/components/DynamicInput/SourceButton.tsx"],"names":[],"mappings":";AAEA,OAAO,EACL,UAAU,EACV,OAAO,EAIR,MAAM,yBAAyB,CAAC;AAejC,MAAM,YAAY,GAA0B,CAAC,EAC3C,OAAO,EACP,IAAI,EACJ,cAAc,EACd,cAAc,EACd,MAAM,EACN,SAAS,EACT,GAAG,SAAS,EACM,EAAE,EAAE;IACtB,MAAM,CAAC,GAAG,OAAO,EAAE,CAAC;IAEpB,OAAO,CACL,KAAC,UAAU,IACT,MAAM,EAAE,MAAM,EACd,IAAI,EAAE,CAAC,CAAC,YAAY,CAAC,KACjB,SAAS,EACb,IAAI,EAAE,IAAI,EACV,OAAO,EAAC,YAAY,EACpB,IAAI,EAAE;YACJ,IAAI,EAAE,eAAe;YACrB,KAAK,EAAE,SAAS;YAChB,WAAW,EAAE,EAAE,CAAC,EAAE;gBAChB,cAAc,CAAC,EAAY,CAAC,CAAC;YAC/B,CAAC;SACF,EACD,SAAS,QACT,QAAQ,SACR,CACH,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,YAAY,CAAC","sourcesContent":["import type { FC } from 'react';\n\nimport {\n MenuButton,\n useI18n,\n type MenuButtonProps,\n type TestIdProp,\n type MenuProps\n} from '@pega/cosmos-react-core';\n\nimport type { ConstantFormat, DynamicInputProps, Source } from './DynamicInput.types';\n\ninterface SourceButtonProps\n extends Pick<DynamicInputProps, 'sources' | 'onSourceChange' | 'disabled'>,\n TestIdProp {\n /** Source menu items. */\n menuItems: MenuProps['items'];\n /** The name of the icon for the selected source. */\n icon?: MenuButtonProps['icon'];\n /** The input format for constants. */\n constantFormat?: ConstantFormat;\n}\n\nconst SourceButton: FC<SourceButtonProps> = ({\n sources,\n icon,\n constantFormat,\n onSourceChange,\n testId,\n menuItems,\n ...restProps\n}: SourceButtonProps) => {\n const t = useI18n();\n\n return (\n <MenuButton\n testId={testId}\n text={t('value_type')}\n {...restProps}\n icon={icon}\n iconSet='streamline'\n menu={{\n mode: 'single-select',\n items: menuItems,\n onItemClick: id => {\n onSourceChange(id as Source);\n }\n }}\n showArrow\n iconOnly\n />\n );\n};\n\nexport default SourceButton;\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/components/DynamicInput/utils.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,cAAc,EAAE,iBAAiB,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAC;AAyBtF,eAAO,MAAM,aAAa,GAAI,oBAG3B;IACD,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,cAAc,CAAC;CACzB,KAAG,MAoBH,CAAC;AAEF,eAAO,MAAM,gBAAgB,GAAI,SAAS,iBAAiB,CAAC,SAAS,CAAC,KAAG,MAAM,GAAG,SAIjF,CAAC"}
1
+ {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/components/DynamicInput/utils.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,cAAc,EAAE,iBAAiB,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAC;AA2BtF,eAAO,MAAM,aAAa,GAAI,oBAG3B;IACD,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,cAAc,CAAC;CACzB,KAAG,MAwBH,CAAC;AAEF,eAAO,MAAM,gBAAgB,GAAI,SAAS,iBAAiB,CAAC,SAAS,CAAC,KAAG,MAAM,GAAG,SAIjF,CAAC"}
@@ -13,7 +13,8 @@ const iconMap = {
13
13
  Rule: 'rule-library',
14
14
  FieldReference: 'field-cursor',
15
15
  Advanced: 'function',
16
- Expression: 'expression'
16
+ Expression: 'expression',
17
+ ConfigurationSettings: 'toolbox-open'
17
18
  };
18
19
  export const getSourceIcon = ({ source, format }) => {
19
20
  let iconName;
@@ -29,6 +30,9 @@ export const getSourceIcon = ({ source, format }) => {
29
30
  if (source === 'Expression') {
30
31
  iconName = iconMap.Expression;
31
32
  }
33
+ if (source === 'ConfigurationSettings') {
34
+ iconName = iconMap.ConfigurationSettings;
35
+ }
32
36
  return iconName ?? iconMap.Text;
33
37
  };
34
38
  export const getCurrentSource = (sources) => {
@@ -1 +1 @@
1
- {"version":3,"file":"utils.js","sourceRoot":"","sources":["../../../src/components/DynamicInput/utils.ts"],"names":[],"mappings":"AAIA,MAAM,OAAO,GAKT;IACF,IAAI,EAAE,sBAAsB;IAC5B,kBAAkB,EAAE,sBAAsB;IAC1C,OAAO,EAAE,mBAAmB;IAC5B,UAAU,EAAE,YAAY;IACxB,OAAO,EAAE,uBAAuB;IAChC,OAAO,EAAE,gBAAgB;IACzB,QAAQ,EAAE,UAAU;IACpB,KAAK,EAAE,YAAY;IACnB,QAAQ,EAAE,wBAAwB;IAClC,IAAI,EAAE,gBAAgB;IACtB,IAAI,EAAE,OAAO;IACb,IAAI,EAAE,cAAc;IACpB,cAAc,EAAE,cAAc;IAC9B,QAAQ,EAAE,UAAU;IACpB,UAAU,EAAE,YAAY;CACzB,CAAC;AAEF,MAAM,CAAC,MAAM,aAAa,GAAG,CAAC,EAC5B,MAAM,EACN,MAAM,EAIP,EAAU,EAAE;IACX,IAAI,QAAQ,CAAC;IAEb,IAAI,MAAM,KAAK,UAAU,EAAE,CAAC;QAC1B,QAAQ,GAAG,OAAO,CAAC,MAAM,IAAI,MAAM,CAAC,CAAC;IACvC,CAAC;IAED,IAAI,MAAM,KAAK,MAAM,EAAE,CAAC;QACtB,QAAQ,GAAG,OAAO,CAAC,IAAI,CAAC;IAC1B,CAAC;IAED,IAAI,MAAM,KAAK,gBAAgB,EAAE,CAAC;QAChC,QAAQ,GAAG,OAAO,CAAC,cAAc,CAAC;IACpC,CAAC;IAED,IAAI,MAAM,KAAK,YAAY,EAAE,CAAC;QAC5B,QAAQ,GAAG,OAAO,CAAC,UAAU,CAAC;IAChC,CAAC;IAED,OAAO,QAAQ,IAAK,OAAO,CAAC,IAAe,CAAC;AAC9C,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAAC,OAAqC,EAAsB,EAAE;IAC5F,IAAI,CAAC,OAAO,CAAC,MAAM;QAAE,OAAO;IAE5B,OAAO,OAAO,CAAC,IAAI,CAAC,CAAC,EAAE,QAAQ,EAAE,EAAE,EAAE,CAAC,QAAQ,CAAC,EAAE,IAAI,IAAI,OAAO,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC;AAC3E,CAAC,CAAC","sourcesContent":["import type { StreamlineIconName } from '@pega/cosmos-react-core';\n\nimport type { ConstantFormat, DynamicInputProps, Source } from './DynamicInput.types';\n\nconst iconMap: Partial<Record<ConstantFormat, StreamlineIconName>> & {\n Rule: 'rule-library';\n FieldReference: 'field-cursor';\n Advanced: 'function';\n Expression: 'expression';\n} = {\n Text: 'dataviz-string-field',\n 'Text (paragraph)': 'dataviz-string-field',\n Boolean: 'circle-mixed-left',\n Percentage: 'percentage',\n Integer: 'dataviz-numeric-field',\n Decimal: 'number-decimal',\n Currency: 'currency',\n Phone: 'phone-call',\n DateTime: 'dataviz-datetime-field',\n Date: 'calendar-range',\n Time: 'clock',\n Rule: 'rule-library',\n FieldReference: 'field-cursor',\n Advanced: 'function',\n Expression: 'expression'\n};\n\nexport const getSourceIcon = ({\n source,\n format\n}: {\n source: Source;\n format?: ConstantFormat;\n}): string => {\n let iconName;\n\n if (source === 'Constant') {\n iconName = iconMap[format ?? 'Text'];\n }\n\n if (source === 'Rule') {\n iconName = iconMap.Rule;\n }\n\n if (source === 'FieldReference') {\n iconName = iconMap.FieldReference;\n }\n\n if (source === 'Expression') {\n iconName = iconMap.Expression;\n }\n\n return iconName ?? (iconMap.Text as string);\n};\n\nexport const getCurrentSource = (sources: DynamicInputProps['sources']): Source | undefined => {\n if (!sources.length) return;\n\n return sources.find(({ selected }) => selected)?.type || sources[0].type;\n};\n"]}
1
+ {"version":3,"file":"utils.js","sourceRoot":"","sources":["../../../src/components/DynamicInput/utils.ts"],"names":[],"mappings":"AAIA,MAAM,OAAO,GAMT;IACF,IAAI,EAAE,sBAAs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AI,CAAC,CAAC,EAAE,QAAQ,EAAE,EAAE,EAAE,CAAC,QAAQ,CAAC,EAAE,IAAI,IAAI,OAAO,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC;AAC3E,CAAC,CAAC","sourcesContent":["import type { StreamlineIconName } from '@pega/cosmos-react-core';\n\nimport type { ConstantFormat, DynamicInputProps, Source } from './DynamicInput.types';\n\nconst iconMap: Partial<Record<ConstantFormat, StreamlineIconName>> & {\n Rule: 'rule-library';\n FieldReference: 'field-cursor';\n Advanced: 'function';\n Expression: 'expression';\n ConfigurationSettings: 'toolbox-open';\n} = {\n Text: 'dataviz-string-field',\n 'Text (paragraph)': 'dataviz-string-field',\n Boolean: 'circle-mixed-left',\n Percentage: 'percentage',\n Integer: 'dataviz-numeric-field',\n Decimal: 'number-decimal',\n Currency: 'currency',\n Phone: 'phone-call',\n DateTime: 'dataviz-datetime-field',\n Date: 'calendar-range',\n Time: 'clock',\n Rule: 'rule-library',\n FieldReference: 'field-cursor',\n Advanced: 'function',\n Expression: 'expression',\n ConfigurationSettings: 'toolbox-open'\n};\n\nexport const getSourceIcon = ({\n source,\n format\n}: {\n source: Source;\n format?: ConstantFormat;\n}): string => {\n let iconName;\n\n if (source === 'Constant') {\n iconName = iconMap[format ?? 'Text'];\n }\n\n if (source === 'Rule') {\n iconName = iconMap.Rule;\n }\n\n if (source === 'FieldReference') {\n iconName = iconMap.FieldReference;\n }\n\n if (source === 'Expression') {\n iconName = iconMap.Expression;\n }\n\n if (source === 'ConfigurationSettings') {\n iconName = iconMap.ConfigurationSettings;\n }\n\n return iconName ?? (iconMap.Text as string);\n};\n\nexport const getCurrentSource = (sources: DynamicInputProps['sources']): Source | undefined => {\n if (!sources.length) return;\n\n return sources.find(({ selected }) => selected)?.type || sources[0].type;\n};\n"]}
@@ -21,12 +21,12 @@ export interface EmptyRuleTemplateProps extends BaseProps, NoChildrenProp, TestI
21
21
  /** Ref to the template. */
22
22
  ref?: Ref<HTMLDivElement>;
23
23
  }
24
- export declare const StyledEmptyRuleContainer: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
25
- export declare const StyledEmptyRuleContent: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
26
- export declare const StyledImageContainer: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
27
- export declare const StyledButtonContainer: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {
24
+ export declare const StyledEmptyRuleContainer: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
25
+ export declare const StyledEmptyRuleContent: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
26
+ export declare const StyledImageContainer: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
27
+ export declare const StyledButtonContainer: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
28
28
  isStacked: boolean;
29
- }, never>;
29
+ }>> & string;
30
30
  declare const _default: ForwardRefForwardPropsComponent<EmptyRuleTemplateProps> & {
31
31
  getTestIds: (testIdProp?: TestIdProp["testId"]) => import("@pega/cosmos-react-core").TestIdsRecord<readonly ["title", "description", "image", "more-info", "action", "actions-menu"]>;
32
32
  };
@@ -1 +1 @@
1
- {"version":3,"file":"EmptyRuleTemplate.d.ts","sourceRoot":"","sources":["../../../src/components/EmptyRuleTemplate/EmptyRuleTemplate.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,GAAG,EAAmB,MAAM,OAAO,CAAC;AAiBlD,OAAO,KAAK,EACV,UAAU,EACV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AC,IAAI,IAAC,MAAM,EAAE,OAAO,CAAC,QAAQ,EAAE,IAAI,EAAE,QAAQ,CAAC,IAAI,YAChD,QAAQ,CAAC,KAAK,GACV,CACR,EAEA,CAAC,aAAa,IAAI,WAAW,CAAC,IAAI,CACjC,MAAC,IAAI,IACH,EAAE,EAAE,qBAAqB,EACzB,SAAS,EAAE,CAAC,cAAc,EAC1B,SAAS,EAAE;gCACT,SAAS,EAAE,cAAc,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,QAAQ;gCAC5C,GAAG,EAAE,cAAc,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;6BAC5B,aAEA,aAAa,IAAI,CAChB,KAAC,MAAM,mBACQ,OAAO,CAAC,MAAM,EAC3B,OAAO,EAAE,aAAa,CAAC,OAAO,EAC9B,QAAQ,EAAE,aAAa,CAAC,QAAQ,YAE/B,aAAa,CAAC,IAAI,GACZ,CACV,EAEA,WAAW,IAAI,CACd,KAAC,UAAU,IACT,MAAM,EAAE,OAAO,CAAC,WAAW,KACvB,WAAW,EACf,QAAQ,EAAE,WAAW,CAAC,QAAQ,GAC9B,CACH,IACI,CACR,IACI,IACF,GACF,CACR,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,eAAe,WAAW,CAAC,iBAAiB,EAAE,2BAA2B,CAAC,CAAC","sourcesContent":["import { forwardRef } from 'react';\nimport type { Ref, PropsWithoutRef } from 'react';\nimport styled, { css } from 'styled-components';\n\nimport {\n Flex,\n Text,\n Image,\n Link,\n Button,\n MenuButton,\n ShowMoreLess,\n useTestIds,\n useBreakpoint,\n useConsolidatedRef,\n withTestIds,\n defaultThemeProp\n} from '@pega/cosmos-react-core';\nimport type {\n ImageProps,\n LinkProps,\n MenuButtonProps,\n Action,\n TestIdProp,\n BaseProps,\n NoChildrenProp,\n ForwardRefForwardPropsComponent\n} from '@pega/cosmos-react-core';\nimport { StyledMenuButton } from '@pega/cosmos-react-core/lib/components/MenuButton/MenuButton';\n\nimport { getEmptyRuleTemplateTestIds } from './EmptyRuleTemplate.test-ids';\n\nexport interface EmptyRuleTemplateProps extends BaseProps, NoChildrenProp, TestIdProp {\n /** The heading of the template */\n title: string;\n /** description of the template */\n description?: string;\n /** Image of the template */\n image?: ImageProps;\n /** Link pointing to external resource for more information */\n moreInfo?: {\n label: string;\n href: LinkProps['href'];\n };\n /** Call to action in the template */\n primaryAction?: Pick<Action, 'text' | 'onClick' | 'disabled'>;\n /** Select menu to choose the first action to proceed further */\n actionsMenu?: Pick<MenuButtonProps, 'text' | 'onClick' | 'onKeyDown' | 'menu'> & {\n disabled?: boolean;\n };\n /** Ref to the template. */\n ref?: Ref<HTMLDivElement>;\n}\n\nexport const StyledEmptyRuleContainer = styled.div(\n ({\n theme: {\n base: {\n 'content-width': { sm }\n }\n }\n }) => {\n return css`\n min-width: ${sm};\n height: 100%;\n text-align: center;\n `;\n }\n);\n\nStyledEmptyRuleContainer.defaultProps = defaultThemeProp;\n\nexport const StyledEmptyRuleContent = styled.div(\n ({\n theme: {\n base: {\n 'content-width': { xl }\n }\n }\n }) => {\n return css`\n max-width: ${xl};\n `;\n }\n);\n\nStyledEmptyRuleContent.defaultProps = defaultThemeProp;\n\nexport const StyledImageContainer = styled.div(({ theme }) => {\n return css`\n width: calc(30 * ${theme.base.spacing});\n\n img {\n object-fit: contain;\n min-width: 100%;\n }\n `;\n});\n\nStyledImageContainer.defaultProps = defaultThemeProp;\n\nexport const StyledButtonContainer = styled.div(({ isStacked }: { isStacked: boolean }) => {\n return (\n isStacked &&\n css`\n ${StyledMenuButton} {\n margin-inline-start: 0;\n }\n `\n );\n});\n\nconst EmptyRuleTemplate: ForwardRefForwardPropsComponent<EmptyRuleTemplateProps> = forwardRef(\n function EmptyRuleTemplate(\n {\n testId,\n title,\n image,\n description,\n moreInfo,\n primaryAction,\n actionsMenu\n }: PropsWithoutRef<EmptyRuleTemplateProps>,\n ref: EmptyRuleTemplateProps['ref']\n ) {\n const testIds = useTestIds(testId, getEmptyRuleTemplateTestIds);\n const templateRef = useConsolidatedRef<HTMLDivElement>(ref);\n const isSmallOrAbove = useBreakpoint('sm', { breakpointRef: templateRef });\n\n return (\n <Flex\n as={StyledEmptyRuleContainer}\n container={{ justify: 'center', alignItems: 'center' }}\n ref={templateRef}\n >\n <Flex\n as={StyledEmptyRuleContent}\n container={{\n direction: 'column',\n alignItems: 'center',\n rowGap: 2,\n pad: [4, 2]\n }}\n >\n {image && (\n <StyledImageContainer>\n <Image {...image} data-testId={testIds.image} />\n </StyledImageContainer>\n )}\n\n <Flex container={{ direction: 'column', alignItems: 'center', rowGap: 1 }}>\n <Text data-testId={testIds.title} variant='h2'>\n {title}\n </Text>\n\n {description && (\n <ShowMoreLess lines={2}>\n <Text data-testId={testIds.description} variant='secondary'>\n {description}\n </Text>\n </ShowMoreLess>\n )}\n\n {moreInfo && (\n <Link testId={testIds.moreInfo} href={moreInfo.href}>\n {moreInfo.label}\n </Link>\n )}\n\n {(primaryAction || actionsMenu) && (\n <Flex\n as={StyledButtonContainer}\n isStacked={!isSmallOrAbove}\n container={{\n direction: isSmallOrAbove ? 'row' : 'column',\n gap: isSmallOrAbove ? 0 : 1\n }}\n >\n {primaryAction && (\n <Button\n data-testid={testIds.action}\n onClick={primaryAction.onClick}\n disabled={primaryAction.disabled}\n >\n {primaryAction.text}\n </Button>\n )}\n\n {actionsMenu && (\n <MenuButton\n testId={testIds.actionsMenu}\n {...actionsMenu}\n disabled={actionsMenu.disabled}\n />\n )}\n </Flex>\n )}\n </Flex>\n </Flex>\n </Flex>\n );\n }\n);\n\nexport default withTestIds(EmptyRuleTemplate, getEmptyRuleTemplateTestIds);\n"]}
1
+ {"version":3,"file":"EmptyRuleTemplate.js","sourceRoot":"","sources":["../../../src/components/EmptyRuleTemplate/EmptyRuleTemplate.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;AAEnC,OAAO,MAAM,EAAE,EAAE,GAAG,EAAE,MAAM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WAAW,EAAE,OAAO,EAAC,WAAW,YACxD,WAAW,GACP,GACM,CAChB,EAEA,QAAQ,IAAI,CACX,KAAC,IAAI,IAAC,MAAM,EAAE,OAAO,CAAC,QAAQ,EAAE,IAAI,EAAE,QAAQ,CAAC,IAAI,YAChD,QAAQ,CAAC,KAAK,GACV,CACR,EAEA,CAAC,aAAa,IAAI,WAAW,CAAC,IAAI,CACjC,MAAC,IAAI,IACH,EAAE,EAAE,qBAAqB,EACzB,SAAS,EAAE,CAAC,cAAc,EAC1B,SAAS,EAAE;gCACT,SAAS,EAAE,cAAc,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,QAAQ;gCAC5C,GAAG,EAAE,cAAc,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;6BAC5B,aAEA,aAAa,IAAI,CAChB,KAAC,MAAM,mBACQ,OAAO,CAAC,MAAM,EAC3B,OAAO,EAAE,aAAa,CAAC,OAAO,EAC9B,QAAQ,EAAE,aAAa,CAAC,QAAQ,YAE/B,aAAa,CAAC,IAAI,GACZ,CACV,EAEA,WAAW,IAAI,CACd,KAAC,UAAU,IACT,MAAM,EAAE,OAAO,CAAC,WAAW,KACvB,WAAW,EACf,QAAQ,EAAE,WAAW,CAAC,QAAQ,GAC9B,CACH,IACI,CACR,IACI,IACF,GACF,CACR,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,eAAe,WAAW,CAAC,iBAAiB,EAAE,2BAA2B,CAAC,CAAC","sourcesContent":["import { forwardRef } from 'react';\nimport type { Ref, PropsWithoutRef } from 'react';\nimport styled, { css } from 'styled-components';\n\nimport {\n Flex,\n Text,\n Image,\n Link,\n Button,\n MenuButton,\n ShowMoreLess,\n useTestIds,\n useBreakpoint,\n useConsolidatedRef,\n withTestIds,\n defaultThemeProp\n} from '@pega/cosmos-react-core';\nimport type {\n ImageProps,\n LinkProps,\n MenuButtonProps,\n Action,\n TestIdProp,\n BaseProps,\n NoChildrenProp,\n ForwardRefForwardPropsComponent\n} from '@pega/cosmos-react-core';\nimport { StyledMenuButton } from '@pega/cosmos-react-core/lib/components/MenuButton/MenuButton';\n\nimport { getEmptyRuleTemplateTestIds } from './EmptyRuleTemplate.test-ids';\n\nexport interface EmptyRuleTemplateProps extends BaseProps, NoChildrenProp, TestIdProp {\n /** The heading of the template */\n title: string;\n /** description of the template */\n description?: string;\n /** Image of the template */\n image?: ImageProps;\n /** Link pointing to external resource for more information */\n moreInfo?: {\n label: string;\n href: LinkProps['href'];\n };\n /** Call to action in the template */\n primaryAction?: Pick<Action, 'text' | 'onClick' | 'disabled'>;\n /** Select menu to choose the first action to proceed further */\n actionsMenu?: Pick<MenuButtonProps, 'text' | 'onClick' | 'onKeyDown' | 'menu'> & {\n disabled?: boolean;\n };\n /** Ref to the template. */\n ref?: Ref<HTMLDivElement>;\n}\n\nexport const StyledEmptyRuleContainer = styled.div(\n ({\n theme: {\n base: {\n 'content-width': { sm }\n }\n }\n }) => {\n return css`\n min-width: ${sm};\n height: 100%;\n text-align: center;\n `;\n }\n);\n\nStyledEmptyRuleContainer.defaultProps = defaultThemeProp;\n\nexport const StyledEmptyRuleContent = styled.div(\n ({\n theme: {\n base: {\n 'content-width': { xl }\n }\n }\n }) => {\n return css`\n max-width: ${xl};\n `;\n }\n);\n\nStyledEmptyRuleContent.defaultProps = defaultThemeProp;\n\nexport const StyledImageContainer = styled.div(({ theme }) => {\n return css`\n width: calc(30 * ${theme.base.spacing});\n\n img {\n object-fit: contain;\n min-width: 100%;\n }\n `;\n});\n\nStyledImageContainer.defaultProps = defaultThemeProp;\n\nexport const StyledButtonContainer = styled.div<{ isStacked: boolean }>(({ isStacked }) => {\n return (\n isStacked &&\n css`\n ${StyledMenuButton} {\n margin-inline-start: 0;\n }\n `\n );\n});\n\nconst EmptyRuleTemplate: ForwardRefForwardPropsComponent<EmptyRuleTemplateProps> = forwardRef(\n function EmptyRuleTemplate(\n {\n testId,\n title,\n image,\n description,\n moreInfo,\n primaryAction,\n actionsMenu\n }: PropsWithoutRef<EmptyRuleTemplateProps>,\n ref: EmptyRuleTemplateProps['ref']\n ) {\n const testIds = useTestIds(testId, getEmptyRuleTemplateTestIds);\n const templateRef = useConsolidatedRef<HTMLDivElement>(ref);\n const isSmallOrAbove = useBreakpoint('sm', { breakpointRef: templateRef });\n\n return (\n <Flex\n as={StyledEmptyRuleContainer}\n container={{ justify: 'center', alignItems: 'center' }}\n ref={templateRef}\n >\n <Flex\n as={StyledEmptyRuleContent}\n container={{\n direction: 'column',\n alignItems: 'center',\n rowGap: 2,\n pad: [4, 2]\n }}\n >\n {image && (\n <StyledImageContainer>\n <Image {...image} data-testId={testIds.image} />\n </StyledImageContainer>\n )}\n\n <Flex container={{ direction: 'column', alignItems: 'center', rowGap: 1 }}>\n <Text data-testId={testIds.title} variant='h2'>\n {title}\n </Text>\n\n {description && (\n <ShowMoreLess lines={2}>\n <Text data-testId={testIds.description} variant='secondary'>\n {description}\n </Text>\n </ShowMoreLess>\n )}\n\n {moreInfo && (\n <Link testId={testIds.moreInfo} href={moreInfo.href}>\n {moreInfo.label}\n </Link>\n )}\n\n {(primaryAction || actionsMenu) && (\n <Flex\n as={StyledButtonContainer}\n isStacked={!isSmallOrAbove}\n container={{\n direction: isSmallOrAbove ? 'row' : 'column',\n gap: isSmallOrAbove ? 0 : 1\n }}\n >\n {primaryAction && (\n <Button\n data-testid={testIds.action}\n onClick={primaryAction.onClick}\n disabled={primaryAction.disabled}\n >\n {primaryAction.text}\n </Button>\n )}\n\n {actionsMenu && (\n <MenuButton\n testId={testIds.actionsMenu}\n {...actionsMenu}\n disabled={actionsMenu.disabled}\n />\n )}\n </Flex>\n )}\n </Flex>\n </Flex>\n </Flex>\n );\n }\n);\n\nexport default withTestIds(EmptyRuleTemplate, getEmptyRuleTemplateTestIds);\n"]}