@pega/react-sdk-components 0.23.25 → 0.23.27

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 (656) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +17 -0
  3. package/SECURITY.md +10 -0
  4. package/lib/bridge/Context/StoreContext.d.ts +3 -2
  5. package/lib/bridge/Context/StoreContext.d.ts.map +1 -1
  6. package/lib/bridge/Context/StoreContext.js +5 -6
  7. package/lib/bridge/Context/StoreContext.js.map +1 -1
  8. package/lib/bridge/helpers/sdk_component_map.d.ts +1 -0
  9. package/lib/bridge/helpers/sdk_component_map.d.ts.map +1 -1
  10. package/lib/bridge/helpers/sdk_component_map.js +45 -46
  11. package/lib/bridge/helpers/sdk_component_map.js.map +1 -1
  12. package/lib/bridge/react_pconnect.d.ts.map +1 -1
  13. package/lib/bridge/react_pconnect.js +18 -41
  14. package/lib/bridge/react_pconnect.js.map +1 -1
  15. package/lib/components/designSystemExtension/AlertBanner/AlertBanner.d.ts +10 -0
  16. package/lib/components/designSystemExtension/AlertBanner/AlertBanner.d.ts.map +1 -0
  17. package/lib/components/designSystemExtension/AlertBanner/AlertBanner.js +19 -0
  18. package/lib/components/designSystemExtension/AlertBanner/AlertBanner.js.map +1 -0
  19. package/lib/components/designSystemExtension/AlertBanner/index.d.ts +2 -0
  20. package/lib/components/designSystemExtension/AlertBanner/index.d.ts.map +1 -0
  21. package/lib/components/designSystemExtension/AlertBanner/index.js +2 -0
  22. package/lib/components/designSystemExtension/AlertBanner/index.js.map +1 -0
  23. package/lib/components/designSystemExtension/Banner/Banner.css +4 -0
  24. package/lib/components/designSystemExtension/Banner/Banner.d.ts +15 -1
  25. package/lib/components/designSystemExtension/Banner/Banner.d.ts.map +1 -1
  26. package/lib/components/designSystemExtension/Banner/Banner.js +8 -12
  27. package/lib/components/designSystemExtension/Banner/Banner.js.map +1 -1
  28. package/lib/components/designSystemExtension/CaseSummaryFields/CaseSummaryFields.css +0 -1
  29. package/lib/components/designSystemExtension/CaseSummaryFields/CaseSummaryFields.d.ts +6 -9
  30. package/lib/components/designSystemExtension/CaseSummaryFields/CaseSummaryFields.d.ts.map +1 -1
  31. package/lib/components/designSystemExtension/CaseSummaryFields/CaseSummaryFields.js +32 -33
  32. package/lib/components/designSystemExtension/CaseSummaryFields/CaseSummaryFields.js.map +1 -1
  33. package/lib/components/designSystemExtension/DetailsFields/DetailsFields.d.ts +4 -10
  34. package/lib/components/designSystemExtension/DetailsFields/DetailsFields.d.ts.map +1 -1
  35. package/lib/components/designSystemExtension/DetailsFields/DetailsFields.js +10 -23
  36. package/lib/components/designSystemExtension/DetailsFields/DetailsFields.js.map +1 -1
  37. package/lib/components/designSystemExtension/DetailsFields/index.js.map +1 -1
  38. package/lib/components/designSystemExtension/FieldGroup/FieldGroup.d.ts +8 -3
  39. package/lib/components/designSystemExtension/FieldGroup/FieldGroup.d.ts.map +1 -1
  40. package/lib/components/designSystemExtension/FieldGroup/FieldGroup.js +25 -14
  41. package/lib/components/designSystemExtension/FieldGroup/FieldGroup.js.map +1 -1
  42. package/lib/components/designSystemExtension/FieldGroupList/FieldGroupList.d.ts +7 -2
  43. package/lib/components/designSystemExtension/FieldGroupList/FieldGroupList.d.ts.map +1 -1
  44. package/lib/components/designSystemExtension/FieldGroupList/FieldGroupList.js +7 -19
  45. package/lib/components/designSystemExtension/FieldGroupList/FieldGroupList.js.map +1 -1
  46. package/lib/components/designSystemExtension/FieldValueList/FieldValueList.d.ts +7 -2
  47. package/lib/components/designSystemExtension/FieldValueList/FieldValueList.d.ts.map +1 -1
  48. package/lib/components/designSystemExtension/FieldValueList/FieldValueList.js +6 -12
  49. package/lib/components/designSystemExtension/FieldValueList/FieldValueList.js.map +1 -1
  50. package/lib/components/designSystemExtension/Operator/Operator.d.ts +16 -7
  51. package/lib/components/designSystemExtension/Operator/Operator.d.ts.map +1 -1
  52. package/lib/components/designSystemExtension/Operator/Operator.js +56 -73
  53. package/lib/components/designSystemExtension/Operator/Operator.js.map +1 -1
  54. package/lib/components/designSystemExtension/Pulse/Pulse.d.ts +5 -2
  55. package/lib/components/designSystemExtension/Pulse/Pulse.d.ts.map +1 -1
  56. package/lib/components/designSystemExtension/Pulse/Pulse.js +9 -15
  57. package/lib/components/designSystemExtension/Pulse/Pulse.js.map +1 -1
  58. package/lib/components/designSystemExtension/RichTextEditor/RichTextEditor.d.ts +19 -0
  59. package/lib/components/designSystemExtension/RichTextEditor/RichTextEditor.d.ts.map +1 -0
  60. package/lib/components/designSystemExtension/RichTextEditor/RichTextEditor.js +75 -0
  61. package/lib/components/designSystemExtension/RichTextEditor/RichTextEditor.js.map +1 -0
  62. package/lib/components/designSystemExtension/RichTextEditor/index.d.ts +2 -0
  63. package/lib/components/designSystemExtension/RichTextEditor/index.d.ts.map +1 -0
  64. package/lib/components/designSystemExtension/RichTextEditor/index.js +2 -0
  65. package/lib/components/designSystemExtension/RichTextEditor/index.js.map +1 -0
  66. package/lib/components/designSystemExtension/WssQuickCreate/WssQuickCreate.css +6 -2
  67. package/lib/components/designSystemExtension/WssQuickCreate/WssQuickCreate.d.ts +6 -1
  68. package/lib/components/designSystemExtension/WssQuickCreate/WssQuickCreate.d.ts.map +1 -1
  69. package/lib/components/designSystemExtension/WssQuickCreate/WssQuickCreate.js +5 -11
  70. package/lib/components/designSystemExtension/WssQuickCreate/WssQuickCreate.js.map +1 -1
  71. package/lib/components/field/AutoComplete/AutoComplete.d.ts +15 -1
  72. package/lib/components/field/AutoComplete/AutoComplete.d.ts.map +1 -1
  73. package/lib/components/field/AutoComplete/AutoComplete.js +17 -17
  74. package/lib/components/field/AutoComplete/AutoComplete.js.map +1 -1
  75. package/lib/components/field/CancelAlert/CancelAlert.d.ts +7 -2
  76. package/lib/components/field/CancelAlert/CancelAlert.d.ts.map +1 -1
  77. package/lib/components/field/CancelAlert/CancelAlert.js +11 -22
  78. package/lib/components/field/CancelAlert/CancelAlert.js.map +1 -1
  79. package/lib/components/field/CancelAlert/index.js.map +1 -1
  80. package/lib/components/field/Checkbox/Checkbox.d.ts +9 -1
  81. package/lib/components/field/Checkbox/Checkbox.d.ts.map +1 -1
  82. package/lib/components/field/Checkbox/Checkbox.js +12 -12
  83. package/lib/components/field/Checkbox/Checkbox.js.map +1 -1
  84. package/lib/components/field/Currency/Currency.d.ts +6 -1
  85. package/lib/components/field/Currency/Currency.d.ts.map +1 -1
  86. package/lib/components/field/Currency/Currency.js +14 -29
  87. package/lib/components/field/Currency/Currency.js.map +1 -1
  88. package/lib/components/field/Currency/currency-utils.d.ts +1 -1
  89. package/lib/components/field/Currency/currency-utils.d.ts.map +1 -1
  90. package/lib/components/field/Currency/currency-utils.js +5 -6
  91. package/lib/components/field/Currency/currency-utils.js.map +1 -1
  92. package/lib/components/field/Date/Date.d.ts +5 -1
  93. package/lib/components/field/Date/Date.d.ts.map +1 -1
  94. package/lib/components/field/Date/Date.js +26 -14
  95. package/lib/components/field/Date/Date.js.map +1 -1
  96. package/lib/components/field/DateTime/DateTime.d.ts +5 -1
  97. package/lib/components/field/DateTime/DateTime.d.ts.map +1 -1
  98. package/lib/components/field/DateTime/DateTime.js +16 -10
  99. package/lib/components/field/DateTime/DateTime.js.map +1 -1
  100. package/lib/components/field/Decimal/Decimal.d.ts +8 -1
  101. package/lib/components/field/Decimal/Decimal.d.ts.map +1 -1
  102. package/lib/components/field/Decimal/Decimal.js +32 -10
  103. package/lib/components/field/Decimal/Decimal.js.map +1 -1
  104. package/lib/components/field/Decimal/index.js.map +1 -1
  105. package/lib/components/field/Dropdown/Dropdown.d.ts +13 -1
  106. package/lib/components/field/Dropdown/Dropdown.d.ts.map +1 -1
  107. package/lib/components/field/Dropdown/Dropdown.js +115 -11
  108. package/lib/components/field/Dropdown/Dropdown.js.map +1 -1
  109. package/lib/components/field/Email/Email.d.ts +5 -1
  110. package/lib/components/field/Email/Email.d.ts.map +1 -1
  111. package/lib/components/field/Email/Email.js +12 -11
  112. package/lib/components/field/Email/Email.js.map +1 -1
  113. package/lib/components/field/Email/index.js.map +1 -1
  114. package/lib/components/field/Group/Group.d.ts +13 -0
  115. package/lib/components/field/Group/Group.d.ts.map +1 -0
  116. package/lib/components/field/Group/Group.js +13 -0
  117. package/lib/components/field/Group/Group.js.map +1 -0
  118. package/lib/components/field/Group/index.d.ts +2 -0
  119. package/lib/components/field/Group/index.d.ts.map +1 -0
  120. package/lib/components/field/Group/index.js +2 -0
  121. package/lib/components/field/Group/index.js.map +1 -0
  122. package/lib/components/field/Integer/Integer.d.ts +5 -1
  123. package/lib/components/field/Integer/Integer.d.ts.map +1 -1
  124. package/lib/components/field/Integer/Integer.js +10 -8
  125. package/lib/components/field/Integer/Integer.js.map +1 -1
  126. package/lib/components/field/Percentage/Percentage.d.ts +5 -1
  127. package/lib/components/field/Percentage/Percentage.d.ts.map +1 -1
  128. package/lib/components/field/Percentage/Percentage.js +10 -8
  129. package/lib/components/field/Percentage/Percentage.js.map +1 -1
  130. package/lib/components/field/Phone/Phone.d.ts +5 -1
  131. package/lib/components/field/Phone/Phone.d.ts.map +1 -1
  132. package/lib/components/field/Phone/Phone.js +12 -10
  133. package/lib/components/field/Phone/Phone.js.map +1 -1
  134. package/lib/components/field/Phone/index.js.map +1 -1
  135. package/lib/components/field/RadioButtons/RadioButtons.d.ts +7 -1
  136. package/lib/components/field/RadioButtons/RadioButtons.d.ts.map +1 -1
  137. package/lib/components/field/RadioButtons/RadioButtons.js +30 -13
  138. package/lib/components/field/RadioButtons/RadioButtons.js.map +1 -1
  139. package/lib/components/field/RichText/RichText.d.ts +7 -0
  140. package/lib/components/field/RichText/RichText.d.ts.map +1 -0
  141. package/lib/components/field/RichText/RichText.js +54 -0
  142. package/lib/components/field/RichText/RichText.js.map +1 -0
  143. package/lib/components/field/RichText/index.d.ts +2 -0
  144. package/lib/components/field/RichText/index.d.ts.map +1 -0
  145. package/lib/components/field/RichText/index.js +2 -0
  146. package/lib/components/field/RichText/index.js.map +1 -0
  147. package/lib/components/field/ScalarList/ScalarList.d.ts +13 -0
  148. package/lib/components/field/ScalarList/ScalarList.d.ts.map +1 -0
  149. package/lib/components/field/ScalarList/ScalarList.js +32 -0
  150. package/lib/components/field/ScalarList/ScalarList.js.map +1 -0
  151. package/lib/components/field/ScalarList/index.d.ts +2 -0
  152. package/lib/components/field/ScalarList/index.d.ts.map +1 -0
  153. package/lib/components/field/ScalarList/index.js +2 -0
  154. package/lib/components/field/ScalarList/index.js.map +1 -0
  155. package/lib/components/field/SemanticLink/SemanticLink.d.ts +5 -9
  156. package/lib/components/field/SemanticLink/SemanticLink.d.ts.map +1 -1
  157. package/lib/components/field/SemanticLink/SemanticLink.js +11 -19
  158. package/lib/components/field/SemanticLink/SemanticLink.js.map +1 -1
  159. package/lib/components/field/SemanticLink/utils.d.ts.map +1 -1
  160. package/lib/components/field/SemanticLink/utils.js +8 -8
  161. package/lib/components/field/SemanticLink/utils.js.map +1 -1
  162. package/lib/components/field/TextArea/TextArea.d.ts +6 -1
  163. package/lib/components/field/TextArea/TextArea.d.ts.map +1 -1
  164. package/lib/components/field/TextArea/TextArea.js +8 -6
  165. package/lib/components/field/TextArea/TextArea.js.map +1 -1
  166. package/lib/components/field/TextContent/TextContent.d.ts +7 -1
  167. package/lib/components/field/TextContent/TextContent.d.ts.map +1 -1
  168. package/lib/components/field/TextContent/TextContent.js +2 -2
  169. package/lib/components/field/TextContent/TextContent.js.map +1 -1
  170. package/lib/components/field/TextInput/TextInput.d.ts +6 -1
  171. package/lib/components/field/TextInput/TextInput.d.ts.map +1 -1
  172. package/lib/components/field/TextInput/TextInput.js +26 -6
  173. package/lib/components/field/TextInput/TextInput.js.map +1 -1
  174. package/lib/components/field/TextInput/index.js.map +1 -1
  175. package/lib/components/field/Time/Time.d.ts +5 -1
  176. package/lib/components/field/Time/Time.d.ts.map +1 -1
  177. package/lib/components/field/Time/Time.js +15 -9
  178. package/lib/components/field/Time/Time.js.map +1 -1
  179. package/lib/components/field/URL/URL.d.ts +5 -1
  180. package/lib/components/field/URL/URL.d.ts.map +1 -1
  181. package/lib/components/field/URL/URL.js +14 -8
  182. package/lib/components/field/URL/URL.js.map +1 -1
  183. package/lib/components/field/URL/index.js.map +1 -1
  184. package/lib/components/field/UserReference/UserReference.d.ts +20 -41
  185. package/lib/components/field/UserReference/UserReference.d.ts.map +1 -1
  186. package/lib/components/field/UserReference/UserReference.js +17 -46
  187. package/lib/components/field/UserReference/UserReference.js.map +1 -1
  188. package/lib/components/field/UserReference/UserReferenceUtils.js +2 -2
  189. package/lib/components/field/UserReference/UserReferenceUtils.js.map +1 -1
  190. package/lib/components/helpers/attachmentHelpers.d.ts +6 -6
  191. package/lib/components/helpers/attachmentHelpers.d.ts.map +1 -1
  192. package/lib/components/helpers/attachmentHelpers.js +8 -8
  193. package/lib/components/helpers/attachmentHelpers.js.map +1 -1
  194. package/lib/components/helpers/case-utils.d.ts +20 -0
  195. package/lib/components/helpers/case-utils.d.ts.map +1 -0
  196. package/lib/components/helpers/case-utils.js +82 -0
  197. package/lib/components/helpers/case-utils.js.map +1 -0
  198. package/lib/components/helpers/common-utils.d.ts +3 -0
  199. package/lib/components/helpers/common-utils.d.ts.map +1 -0
  200. package/lib/components/helpers/common-utils.js +8 -0
  201. package/lib/components/helpers/common-utils.js.map +1 -0
  202. package/lib/components/helpers/data_page.d.ts.map +1 -1
  203. package/lib/components/helpers/data_page.js +2 -3
  204. package/lib/components/helpers/data_page.js.map +1 -1
  205. package/lib/components/helpers/date-format-utils.d.ts +1 -6
  206. package/lib/components/helpers/date-format-utils.d.ts.map +1 -1
  207. package/lib/components/helpers/date-format-utils.js +23 -14
  208. package/lib/components/helpers/date-format-utils.js.map +1 -1
  209. package/lib/components/helpers/event-utils.d.ts +1 -1
  210. package/lib/components/helpers/event-utils.d.ts.map +1 -1
  211. package/lib/components/helpers/event-utils.js +3 -3
  212. package/lib/components/helpers/event-utils.js.map +1 -1
  213. package/lib/components/helpers/field-group-utils.d.ts +15 -2
  214. package/lib/components/helpers/field-group-utils.d.ts.map +1 -1
  215. package/lib/components/helpers/field-group-utils.js +5 -9
  216. package/lib/components/helpers/field-group-utils.js.map +1 -1
  217. package/lib/components/helpers/formatters/Boolean.d.ts +3 -3
  218. package/lib/components/helpers/formatters/Boolean.d.ts.map +1 -1
  219. package/lib/components/helpers/formatters/Boolean.js +9 -20
  220. package/lib/components/helpers/formatters/Boolean.js.map +1 -1
  221. package/lib/components/helpers/formatters/Currency.d.ts +6 -6
  222. package/lib/components/helpers/formatters/Currency.d.ts.map +1 -1
  223. package/lib/components/helpers/formatters/Currency.js +13 -13
  224. package/lib/components/helpers/formatters/Currency.js.map +1 -1
  225. package/lib/components/helpers/formatters/CurrencyMap.d.ts +881 -1399
  226. package/lib/components/helpers/formatters/CurrencyMap.d.ts.map +1 -1
  227. package/lib/components/helpers/formatters/CurrencyMap.js +500 -500
  228. package/lib/components/helpers/formatters/CurrencyMap.js.map +1 -1
  229. package/lib/components/helpers/formatters/Date.d.ts +5 -5
  230. package/lib/components/helpers/formatters/Date.d.ts.map +1 -1
  231. package/lib/components/helpers/formatters/Date.js +20 -20
  232. package/lib/components/helpers/formatters/Date.js.map +1 -1
  233. package/lib/components/helpers/formatters/common.d.ts +2 -2
  234. package/lib/components/helpers/formatters/common.d.ts.map +1 -1
  235. package/lib/components/helpers/formatters/common.js +4 -5
  236. package/lib/components/helpers/formatters/common.js.map +1 -1
  237. package/lib/components/helpers/formatters/index.d.ts +12 -12
  238. package/lib/components/helpers/formatters/index.d.ts.map +1 -1
  239. package/lib/components/helpers/formatters/index.js +19 -19
  240. package/lib/components/helpers/formatters/index.js.map +1 -1
  241. package/lib/components/helpers/reactContextHelpers.d.ts +3 -2
  242. package/lib/components/helpers/reactContextHelpers.d.ts.map +1 -1
  243. package/lib/components/helpers/reactContextHelpers.js +1 -1
  244. package/lib/components/helpers/reactContextHelpers.js.map +1 -1
  245. package/lib/components/helpers/simpleTableHelpers.d.ts +5 -3
  246. package/lib/components/helpers/simpleTableHelpers.d.ts.map +1 -1
  247. package/lib/components/helpers/simpleTableHelpers.js +51 -54
  248. package/lib/components/helpers/simpleTableHelpers.js.map +1 -1
  249. package/lib/components/helpers/state-utils.d.ts +4 -0
  250. package/lib/components/helpers/state-utils.d.ts.map +1 -0
  251. package/lib/components/helpers/state-utils.js +34 -0
  252. package/lib/components/helpers/state-utils.js.map +1 -0
  253. package/lib/components/helpers/template-utils.d.ts +7 -3
  254. package/lib/components/helpers/template-utils.d.ts.map +1 -1
  255. package/lib/components/helpers/template-utils.js +1 -2
  256. package/lib/components/helpers/template-utils.js.map +1 -1
  257. package/lib/components/helpers/utils.d.ts +2 -2
  258. package/lib/components/helpers/utils.d.ts.map +1 -1
  259. package/lib/components/helpers/utils.js +11 -10
  260. package/lib/components/helpers/utils.js.map +1 -1
  261. package/lib/components/helpers/versionHelpers.d.ts.map +1 -1
  262. package/lib/components/helpers/versionHelpers.js +1 -1
  263. package/lib/components/helpers/versionHelpers.js.map +1 -1
  264. package/lib/components/infra/ActionButtons/ActionButtons.d.ts +6 -13
  265. package/lib/components/infra/ActionButtons/ActionButtons.d.ts.map +1 -1
  266. package/lib/components/infra/ActionButtons/ActionButtons.js +13 -27
  267. package/lib/components/infra/ActionButtons/ActionButtons.js.map +1 -1
  268. package/lib/components/infra/ActionButtons/index.js.map +1 -1
  269. package/lib/components/infra/Assignment/Assignment.d.ts +9 -15
  270. package/lib/components/infra/Assignment/Assignment.d.ts.map +1 -1
  271. package/lib/components/infra/Assignment/Assignment.js +67 -70
  272. package/lib/components/infra/Assignment/Assignment.js.map +1 -1
  273. package/lib/components/infra/Assignment/index.js.map +1 -1
  274. package/lib/components/infra/AssignmentCard/AssignmentCard.d.ts +7 -15
  275. package/lib/components/infra/AssignmentCard/AssignmentCard.d.ts.map +1 -1
  276. package/lib/components/infra/AssignmentCard/AssignmentCard.js +6 -20
  277. package/lib/components/infra/AssignmentCard/AssignmentCard.js.map +1 -1
  278. package/lib/components/infra/AssignmentCard/index.js.map +1 -1
  279. package/lib/components/infra/Containers/FlowContainer/FlowContainer.d.ts +10 -20
  280. package/lib/components/infra/Containers/FlowContainer/FlowContainer.d.ts.map +1 -1
  281. package/lib/components/infra/Containers/FlowContainer/FlowContainer.js +69 -190
  282. package/lib/components/infra/Containers/FlowContainer/FlowContainer.js.map +1 -1
  283. package/lib/components/infra/Containers/FlowContainer/helpers.d.ts +12 -12
  284. package/lib/components/infra/Containers/FlowContainer/helpers.d.ts.map +1 -1
  285. package/lib/components/infra/Containers/FlowContainer/helpers.js +46 -45
  286. package/lib/components/infra/Containers/FlowContainer/helpers.js.map +1 -1
  287. package/lib/components/infra/Containers/FlowContainer/index.js.map +1 -1
  288. package/lib/components/infra/Containers/ModalViewContainer/ListViewActionButtons/ListViewActionButtons.d.ts +9 -0
  289. package/lib/components/infra/Containers/ModalViewContainer/ListViewActionButtons/ListViewActionButtons.d.ts.map +1 -0
  290. package/lib/components/infra/Containers/ModalViewContainer/ListViewActionButtons/ListViewActionButtons.js +37 -0
  291. package/lib/components/infra/Containers/ModalViewContainer/ListViewActionButtons/ListViewActionButtons.js.map +1 -0
  292. package/lib/components/infra/Containers/ModalViewContainer/ListViewActionButtons/index.d.ts +2 -0
  293. package/lib/components/infra/Containers/ModalViewContainer/ListViewActionButtons/index.d.ts.map +1 -0
  294. package/lib/components/infra/Containers/ModalViewContainer/ListViewActionButtons/index.js +2 -0
  295. package/lib/components/infra/Containers/ModalViewContainer/ListViewActionButtons/index.js.map +1 -0
  296. package/lib/components/infra/Containers/ModalViewContainer/ModalViewContainer.d.ts +8 -17
  297. package/lib/components/infra/Containers/ModalViewContainer/ModalViewContainer.d.ts.map +1 -1
  298. package/lib/components/infra/Containers/ModalViewContainer/ModalViewContainer.js +62 -42
  299. package/lib/components/infra/Containers/ModalViewContainer/ModalViewContainer.js.map +1 -1
  300. package/lib/components/infra/Containers/ModalViewContainer/index.js.map +1 -1
  301. package/lib/components/infra/Containers/SimpleView/SimpleView.d.ts +9 -0
  302. package/lib/components/infra/Containers/SimpleView/SimpleView.d.ts.map +1 -0
  303. package/lib/components/infra/Containers/SimpleView/SimpleView.js +29 -0
  304. package/lib/components/infra/Containers/SimpleView/SimpleView.js.map +1 -0
  305. package/lib/components/infra/Containers/SimpleView/helper.d.ts +10 -0
  306. package/lib/components/infra/Containers/SimpleView/helper.d.ts.map +1 -0
  307. package/lib/components/infra/Containers/SimpleView/helper.js +102 -0
  308. package/lib/components/infra/Containers/SimpleView/helper.js.map +1 -0
  309. package/lib/components/infra/Containers/SimpleView/index.d.ts +2 -0
  310. package/lib/components/infra/Containers/SimpleView/index.d.ts.map +1 -0
  311. package/lib/components/infra/Containers/SimpleView/index.js +2 -0
  312. package/lib/components/infra/Containers/SimpleView/index.js.map +1 -0
  313. package/lib/components/infra/Containers/ViewContainer/ViewContainer.d.ts +9 -22
  314. package/lib/components/infra/Containers/ViewContainer/ViewContainer.d.ts.map +1 -1
  315. package/lib/components/infra/Containers/ViewContainer/ViewContainer.js +27 -45
  316. package/lib/components/infra/Containers/ViewContainer/ViewContainer.js.map +1 -1
  317. package/lib/components/infra/Containers/helpers.d.ts +2 -0
  318. package/lib/components/infra/Containers/helpers.d.ts.map +1 -0
  319. package/lib/components/infra/Containers/helpers.js +7 -0
  320. package/lib/components/infra/Containers/helpers.js.map +1 -0
  321. package/lib/components/infra/DashboardFilter/DashboardFilter.d.ts +9 -20
  322. package/lib/components/infra/DashboardFilter/DashboardFilter.d.ts.map +1 -1
  323. package/lib/components/infra/DashboardFilter/DashboardFilter.js +15 -33
  324. package/lib/components/infra/DashboardFilter/DashboardFilter.js.map +1 -1
  325. package/lib/components/infra/DashboardFilter/filterUtils.d.ts.map +1 -1
  326. package/lib/components/infra/DashboardFilter/filterUtils.js +10 -12
  327. package/lib/components/infra/DashboardFilter/filterUtils.js.map +1 -1
  328. package/lib/components/infra/DeferLoad/DeferLoad.d.ts +8 -13
  329. package/lib/components/infra/DeferLoad/DeferLoad.d.ts.map +1 -1
  330. package/lib/components/infra/DeferLoad/DeferLoad.js +11 -22
  331. package/lib/components/infra/DeferLoad/DeferLoad.js.map +1 -1
  332. package/lib/components/infra/DeferLoad/index.js.map +1 -1
  333. package/lib/components/infra/ErrorBoundary/ErrorBoundary.d.ts +5 -12
  334. package/lib/components/infra/ErrorBoundary/ErrorBoundary.d.ts.map +1 -1
  335. package/lib/components/infra/ErrorBoundary/ErrorBoundary.js +21 -27
  336. package/lib/components/infra/ErrorBoundary/ErrorBoundary.js.map +1 -1
  337. package/lib/components/infra/MultiStep/MultiStep.css +11 -15
  338. package/lib/components/infra/MultiStep/MultiStep.d.ts +10 -18
  339. package/lib/components/infra/MultiStep/MultiStep.d.ts.map +1 -1
  340. package/lib/components/infra/MultiStep/MultiStep.js +34 -99
  341. package/lib/components/infra/MultiStep/MultiStep.js.map +1 -1
  342. package/lib/components/infra/MultiStep/index.js.map +1 -1
  343. package/lib/components/infra/NavBar/NavBar.css +103 -105
  344. package/lib/components/infra/NavBar/NavBar.d.ts +8 -16
  345. package/lib/components/infra/NavBar/NavBar.d.ts.map +1 -1
  346. package/lib/components/infra/NavBar/NavBar.js +22 -69
  347. package/lib/components/infra/NavBar/NavBar.js.map +1 -1
  348. package/lib/components/infra/Reference/Reference.d.ts +8 -17
  349. package/lib/components/infra/Reference/Reference.d.ts.map +1 -1
  350. package/lib/components/infra/Reference/Reference.js +5 -17
  351. package/lib/components/infra/Reference/Reference.js.map +1 -1
  352. package/lib/components/infra/Region/Region.d.ts +4 -8
  353. package/lib/components/infra/Region/Region.d.ts.map +1 -1
  354. package/lib/components/infra/Region/Region.js +2 -7
  355. package/lib/components/infra/Region/Region.js.map +1 -1
  356. package/lib/components/infra/RootContainer/RootContainer.d.ts +13 -20
  357. package/lib/components/infra/RootContainer/RootContainer.d.ts.map +1 -1
  358. package/lib/components/infra/RootContainer/RootContainer.js +46 -88
  359. package/lib/components/infra/RootContainer/RootContainer.js.map +1 -1
  360. package/lib/components/infra/RootContainer/index.js.map +1 -1
  361. package/lib/components/infra/Stages/Stages.d.ts +5 -8
  362. package/lib/components/infra/Stages/Stages.d.ts.map +1 -1
  363. package/lib/components/infra/Stages/Stages.js +20 -27
  364. package/lib/components/infra/Stages/Stages.js.map +1 -1
  365. package/lib/components/infra/VerticalTabs/LeftAlignVerticalTabs/LeftAlignVerticalTabs.d.ts.map +1 -1
  366. package/lib/components/infra/VerticalTabs/LeftAlignVerticalTabs/LeftAlignVerticalTabs.js +6 -8
  367. package/lib/components/infra/VerticalTabs/LeftAlignVerticalTabs/LeftAlignVerticalTabs.js.map +1 -1
  368. package/lib/components/infra/VerticalTabs/VerticalTabs/VerticalTabs.d.ts +4 -10
  369. package/lib/components/infra/VerticalTabs/VerticalTabs/VerticalTabs.d.ts.map +1 -1
  370. package/lib/components/infra/VerticalTabs/VerticalTabs/VerticalTabs.js +13 -17
  371. package/lib/components/infra/VerticalTabs/VerticalTabs/VerticalTabs.js.map +1 -1
  372. package/lib/components/infra/View/View.d.ts +13 -17
  373. package/lib/components/infra/View/View.d.ts.map +1 -1
  374. package/lib/components/infra/View/View.js +17 -69
  375. package/lib/components/infra/View/View.js.map +1 -1
  376. package/lib/components/template/AppShell/AppShell.css +22 -23
  377. package/lib/components/template/AppShell/AppShell.d.ts +20 -16
  378. package/lib/components/template/AppShell/AppShell.d.ts.map +1 -1
  379. package/lib/components/template/AppShell/AppShell.js +32 -50
  380. package/lib/components/template/AppShell/AppShell.js.map +1 -1
  381. package/lib/components/template/BannerPage/BannerPage.d.ts +12 -24
  382. package/lib/components/template/BannerPage/BannerPage.d.ts.map +1 -1
  383. package/lib/components/template/BannerPage/BannerPage.js +7 -25
  384. package/lib/components/template/BannerPage/BannerPage.js.map +1 -1
  385. package/lib/components/template/CaseSummary/CaseSummary.d.ts +5 -8
  386. package/lib/components/template/CaseSummary/CaseSummary.d.ts.map +1 -1
  387. package/lib/components/template/CaseSummary/CaseSummary.js +10 -12
  388. package/lib/components/template/CaseSummary/CaseSummary.js.map +1 -1
  389. package/lib/components/template/CaseView/CaseView.d.ts +10 -23
  390. package/lib/components/template/CaseView/CaseView.d.ts.map +1 -1
  391. package/lib/components/template/CaseView/CaseView.js +38 -65
  392. package/lib/components/template/CaseView/CaseView.js.map +1 -1
  393. package/lib/components/template/CaseViewActionsMenu/CaseViewActionsMenu.d.ts +8 -13
  394. package/lib/components/template/CaseViewActionsMenu/CaseViewActionsMenu.d.ts.map +1 -1
  395. package/lib/components/template/CaseViewActionsMenu/CaseViewActionsMenu.js +24 -20
  396. package/lib/components/template/CaseViewActionsMenu/CaseViewActionsMenu.js.map +1 -1
  397. package/lib/components/template/Confirmation/Confirmation.d.ts +10 -17
  398. package/lib/components/template/Confirmation/Confirmation.d.ts.map +1 -1
  399. package/lib/components/template/Confirmation/Confirmation.js +10 -28
  400. package/lib/components/template/Confirmation/Confirmation.js.map +1 -1
  401. package/lib/components/template/DataReference/DataReference.d.ts +15 -30
  402. package/lib/components/template/DataReference/DataReference.d.ts.map +1 -1
  403. package/lib/components/template/DataReference/DataReference.js +35 -72
  404. package/lib/components/template/DataReference/DataReference.js.map +1 -1
  405. package/lib/components/template/DefaultForm/DefaultForm.css +7 -3
  406. package/lib/components/template/DefaultForm/DefaultForm.d.ts +7 -11
  407. package/lib/components/template/DefaultForm/DefaultForm.d.ts.map +1 -1
  408. package/lib/components/template/DefaultForm/DefaultForm.js +11 -17
  409. package/lib/components/template/DefaultForm/DefaultForm.js.map +1 -1
  410. package/lib/components/template/DefaultForm/utils/index.d.ts +3 -0
  411. package/lib/components/template/DefaultForm/utils/index.d.ts.map +1 -0
  412. package/lib/components/template/DefaultForm/utils/index.js +27 -0
  413. package/lib/components/template/DefaultForm/utils/index.js.map +1 -0
  414. package/lib/components/template/Details/Details/Details.d.ts +7 -15
  415. package/lib/components/template/Details/Details/Details.d.ts.map +1 -1
  416. package/lib/components/template/Details/Details/Details.js +8 -21
  417. package/lib/components/template/Details/Details/Details.js.map +1 -1
  418. package/lib/components/template/Details/DetailsSubTabs/DetailsSubTabs.d.ts +7 -16
  419. package/lib/components/template/Details/DetailsSubTabs/DetailsSubTabs.d.ts.map +1 -1
  420. package/lib/components/template/Details/DetailsSubTabs/DetailsSubTabs.js +6 -23
  421. package/lib/components/template/Details/DetailsSubTabs/DetailsSubTabs.js.map +1 -1
  422. package/lib/components/template/Details/DetailsThreeColumn/DetailsThreeColumn.d.ts +7 -15
  423. package/lib/components/template/Details/DetailsThreeColumn/DetailsThreeColumn.d.ts.map +1 -1
  424. package/lib/components/template/Details/DetailsThreeColumn/DetailsThreeColumn.js +9 -22
  425. package/lib/components/template/Details/DetailsThreeColumn/DetailsThreeColumn.js.map +1 -1
  426. package/lib/components/template/Details/DetailsTwoColumn/DetailsTwoColumn.d.ts +7 -15
  427. package/lib/components/template/Details/DetailsTwoColumn/DetailsTwoColumn.d.ts.map +1 -1
  428. package/lib/components/template/Details/DetailsTwoColumn/DetailsTwoColumn.js +9 -22
  429. package/lib/components/template/Details/DetailsTwoColumn/DetailsTwoColumn.js.map +1 -1
  430. package/lib/components/template/Details/DetailsTwoColumn/index.js.map +1 -1
  431. package/lib/components/template/Details/DynamicTabs/DynamicTabs.d.ts +10 -0
  432. package/lib/components/template/Details/DynamicTabs/DynamicTabs.d.ts.map +1 -0
  433. package/lib/components/template/Details/DynamicTabs/DynamicTabs.js +45 -0
  434. package/lib/components/template/Details/DynamicTabs/DynamicTabs.js.map +1 -0
  435. package/lib/components/template/Details/DynamicTabs/index.d.ts +2 -0
  436. package/lib/components/template/Details/DynamicTabs/index.d.ts.map +1 -0
  437. package/lib/components/template/Details/DynamicTabs/index.js +2 -0
  438. package/lib/components/template/Details/DynamicTabs/index.js.map +1 -0
  439. package/lib/components/template/FieldGroupTemplate/FieldGroupTemplate.d.ts +12 -19
  440. package/lib/components/template/FieldGroupTemplate/FieldGroupTemplate.d.ts.map +1 -1
  441. package/lib/components/template/FieldGroupTemplate/FieldGroupTemplate.js +12 -27
  442. package/lib/components/template/FieldGroupTemplate/FieldGroupTemplate.js.map +1 -1
  443. package/lib/components/template/InlineDashboard/InlineDashboard.d.ts +7 -8
  444. package/lib/components/template/InlineDashboard/InlineDashboard.d.ts.map +1 -1
  445. package/lib/components/template/InlineDashboard/InlineDashboard.js +3 -14
  446. package/lib/components/template/InlineDashboard/InlineDashboard.js.map +1 -1
  447. package/lib/components/template/InlineDashboardPage/InlineDashboardPage.d.ts +8 -16
  448. package/lib/components/template/InlineDashboardPage/InlineDashboardPage.d.ts.map +1 -1
  449. package/lib/components/template/InlineDashboardPage/InlineDashboardPage.js +9 -17
  450. package/lib/components/template/InlineDashboardPage/InlineDashboardPage.js.map +1 -1
  451. package/lib/components/template/ListPage/ListPage.d.ts +5 -13
  452. package/lib/components/template/ListPage/ListPage.d.ts.map +1 -1
  453. package/lib/components/template/ListPage/ListPage.js +7 -11
  454. package/lib/components/template/ListPage/ListPage.js.map +1 -1
  455. package/lib/components/template/ListView/DefaultViewMeta.d.ts +1 -90
  456. package/lib/components/template/ListView/DefaultViewMeta.d.ts.map +1 -1
  457. package/lib/components/template/ListView/DefaultViewMeta.js.map +1 -1
  458. package/lib/components/template/ListView/ListView.d.ts +15 -8
  459. package/lib/components/template/ListView/ListView.d.ts.map +1 -1
  460. package/lib/components/template/ListView/ListView.js +166 -257
  461. package/lib/components/template/ListView/ListView.js.map +1 -1
  462. package/lib/components/template/ListView/hooks.d.ts.map +1 -1
  463. package/lib/components/template/ListView/hooks.js +4 -7
  464. package/lib/components/template/ListView/hooks.js.map +1 -1
  465. package/lib/components/template/ListView/utils.d.ts +72 -16
  466. package/lib/components/template/ListView/utils.d.ts.map +1 -1
  467. package/lib/components/template/ListView/utils.js +163 -33
  468. package/lib/components/template/ListView/utils.js.map +1 -1
  469. package/lib/components/template/MultiReferenceReadOnly/MultiReferenceReadOnly.d.ts +9 -13
  470. package/lib/components/template/MultiReferenceReadOnly/MultiReferenceReadOnly.d.ts.map +1 -1
  471. package/lib/components/template/MultiReferenceReadOnly/MultiReferenceReadOnly.js +5 -16
  472. package/lib/components/template/MultiReferenceReadOnly/MultiReferenceReadOnly.js.map +1 -1
  473. package/lib/components/template/NarrowWide/NarrowWide/NarrowWide.css +0 -2
  474. package/lib/components/template/NarrowWide/NarrowWide/NarrowWide.d.ts +11 -2
  475. package/lib/components/template/NarrowWide/NarrowWide/NarrowWide.d.ts.map +1 -1
  476. package/lib/components/template/NarrowWide/NarrowWide/NarrowWide.js +2 -10
  477. package/lib/components/template/NarrowWide/NarrowWide/NarrowWide.js.map +1 -1
  478. package/lib/components/template/NarrowWide/NarrowWideDetails/NarrowWideDetails.d.ts +7 -15
  479. package/lib/components/template/NarrowWide/NarrowWideDetails/NarrowWideDetails.d.ts.map +1 -1
  480. package/lib/components/template/NarrowWide/NarrowWideDetails/NarrowWideDetails.js +9 -22
  481. package/lib/components/template/NarrowWide/NarrowWideDetails/NarrowWideDetails.js.map +1 -1
  482. package/lib/components/template/NarrowWide/NarrowWideForm/NarrowWideForm.css +0 -2
  483. package/lib/components/template/NarrowWide/NarrowWideForm/NarrowWideForm.d.ts +6 -2
  484. package/lib/components/template/NarrowWide/NarrowWideForm/NarrowWideForm.d.ts.map +1 -1
  485. package/lib/components/template/NarrowWide/NarrowWideForm/NarrowWideForm.js +2 -5
  486. package/lib/components/template/NarrowWide/NarrowWideForm/NarrowWideForm.js.map +1 -1
  487. package/lib/components/template/NarrowWide/NarrowWidePage/NarrowWidePage.d.ts +8 -15
  488. package/lib/components/template/NarrowWide/NarrowWidePage/NarrowWidePage.d.ts.map +1 -1
  489. package/lib/components/template/NarrowWide/NarrowWidePage/NarrowWidePage.js +7 -18
  490. package/lib/components/template/NarrowWide/NarrowWidePage/NarrowWidePage.js.map +1 -1
  491. package/lib/components/template/OneColumn/OneColumn/OneColumn.d.ts +5 -8
  492. package/lib/components/template/OneColumn/OneColumn/OneColumn.d.ts.map +1 -1
  493. package/lib/components/template/OneColumn/OneColumn/OneColumn.js +9 -13
  494. package/lib/components/template/OneColumn/OneColumn/OneColumn.js.map +1 -1
  495. package/lib/components/template/OneColumn/OneColumnPage/OneColumnPage.d.ts +4 -8
  496. package/lib/components/template/OneColumn/OneColumnPage/OneColumnPage.d.ts.map +1 -1
  497. package/lib/components/template/OneColumn/OneColumnPage/OneColumnPage.js +5 -8
  498. package/lib/components/template/OneColumn/OneColumnPage/OneColumnPage.js.map +1 -1
  499. package/lib/components/template/OneColumn/OneColumnTab/OneColumnTab.d.ts +5 -8
  500. package/lib/components/template/OneColumn/OneColumnTab/OneColumnTab.d.ts.map +1 -1
  501. package/lib/components/template/OneColumn/OneColumnTab/OneColumnTab.js +2 -7
  502. package/lib/components/template/OneColumn/OneColumnTab/OneColumnTab.js.map +1 -1
  503. package/lib/components/template/PromotedFilters/PromotedFilters.css +1 -1
  504. package/lib/components/template/PromotedFilters/PromotedFilters.d.ts +9 -14
  505. package/lib/components/template/PromotedFilters/PromotedFilters.d.ts.map +1 -1
  506. package/lib/components/template/PromotedFilters/PromotedFilters.js +16 -29
  507. package/lib/components/template/PromotedFilters/PromotedFilters.js.map +1 -1
  508. package/lib/components/template/SimpleTable/SimpleTable/SimpleTable.d.ts +19 -1
  509. package/lib/components/template/SimpleTable/SimpleTable/SimpleTable.d.ts.map +1 -1
  510. package/lib/components/template/SimpleTable/SimpleTable/SimpleTable.js +62 -13
  511. package/lib/components/template/SimpleTable/SimpleTable/SimpleTable.js.map +1 -1
  512. package/lib/components/template/SimpleTable/SimpleTableManual/SimpleTableManual.d.ts +24 -2
  513. package/lib/components/template/SimpleTable/SimpleTableManual/SimpleTableManual.d.ts.map +1 -1
  514. package/lib/components/template/SimpleTable/SimpleTableManual/SimpleTableManual.js +109 -129
  515. package/lib/components/template/SimpleTable/SimpleTableManual/SimpleTableManual.js.map +1 -1
  516. package/lib/components/template/SimpleTable/SimpleTableSelect/SimpleTableSelect.d.ts +14 -29
  517. package/lib/components/template/SimpleTable/SimpleTableSelect/SimpleTableSelect.d.ts.map +1 -1
  518. package/lib/components/template/SimpleTable/SimpleTableSelect/SimpleTableSelect.js +15 -33
  519. package/lib/components/template/SimpleTable/SimpleTableSelect/SimpleTableSelect.js.map +1 -1
  520. package/lib/components/template/SingleReferenceReadOnly/SingleReferenceReadOnly.d.ts +14 -26
  521. package/lib/components/template/SingleReferenceReadOnly/SingleReferenceReadOnly.d.ts.map +1 -1
  522. package/lib/components/template/SingleReferenceReadOnly/SingleReferenceReadOnly.js +8 -29
  523. package/lib/components/template/SingleReferenceReadOnly/SingleReferenceReadOnly.js.map +1 -1
  524. package/lib/components/template/SubTabs/SubTabs.d.ts +5 -11
  525. package/lib/components/template/SubTabs/SubTabs.d.ts.map +1 -1
  526. package/lib/components/template/SubTabs/SubTabs.js +7 -17
  527. package/lib/components/template/SubTabs/SubTabs.js.map +1 -1
  528. package/lib/components/template/SubTabs/tabUtils.d.ts.map +1 -1
  529. package/lib/components/template/SubTabs/tabUtils.js +2 -4
  530. package/lib/components/template/SubTabs/tabUtils.js.map +1 -1
  531. package/lib/components/template/TwoColumn/TwoColumn/TwoColumn.css +0 -1
  532. package/lib/components/template/TwoColumn/TwoColumn/TwoColumn.d.ts +6 -12
  533. package/lib/components/template/TwoColumn/TwoColumn/TwoColumn.d.ts.map +1 -1
  534. package/lib/components/template/TwoColumn/TwoColumn/TwoColumn.js +15 -24
  535. package/lib/components/template/TwoColumn/TwoColumn/TwoColumn.js.map +1 -1
  536. package/lib/components/template/TwoColumn/TwoColumnPage/TwoColumnPage.d.ts +4 -8
  537. package/lib/components/template/TwoColumn/TwoColumnPage/TwoColumnPage.d.ts.map +1 -1
  538. package/lib/components/template/TwoColumn/TwoColumnPage/TwoColumnPage.js +5 -8
  539. package/lib/components/template/TwoColumn/TwoColumnPage/TwoColumnPage.js.map +1 -1
  540. package/lib/components/template/TwoColumn/TwoColumnTab/TwoColumnTab.d.ts +6 -12
  541. package/lib/components/template/TwoColumn/TwoColumnTab/TwoColumnTab.d.ts.map +1 -1
  542. package/lib/components/template/TwoColumn/TwoColumnTab/TwoColumnTab.js +15 -21
  543. package/lib/components/template/TwoColumn/TwoColumnTab/TwoColumnTab.js.map +1 -1
  544. package/lib/components/template/WideNarrow/WideNarrow/WideNarrow.css +0 -2
  545. package/lib/components/template/WideNarrow/WideNarrow/WideNarrow.d.ts +11 -2
  546. package/lib/components/template/WideNarrow/WideNarrow/WideNarrow.d.ts.map +1 -1
  547. package/lib/components/template/WideNarrow/WideNarrow/WideNarrow.js +3 -11
  548. package/lib/components/template/WideNarrow/WideNarrow/WideNarrow.js.map +1 -1
  549. package/lib/components/template/WideNarrow/WideNarrowDetails/WideNarrowDetails.d.ts +7 -15
  550. package/lib/components/template/WideNarrow/WideNarrowDetails/WideNarrowDetails.d.ts.map +1 -1
  551. package/lib/components/template/WideNarrow/WideNarrowDetails/WideNarrowDetails.js +23 -26
  552. package/lib/components/template/WideNarrow/WideNarrowDetails/WideNarrowDetails.js.map +1 -1
  553. package/lib/components/template/WideNarrow/WideNarrowForm/WideNarrowForm.css +0 -2
  554. package/lib/components/template/WideNarrow/WideNarrowForm/WideNarrowForm.d.ts +6 -2
  555. package/lib/components/template/WideNarrow/WideNarrowForm/WideNarrowForm.d.ts.map +1 -1
  556. package/lib/components/template/WideNarrow/WideNarrowForm/WideNarrowForm.js +2 -5
  557. package/lib/components/template/WideNarrow/WideNarrowForm/WideNarrowForm.js.map +1 -1
  558. package/lib/components/template/WideNarrow/WideNarrowPage/WideNarrowPage.d.ts +8 -15
  559. package/lib/components/template/WideNarrow/WideNarrowPage/WideNarrowPage.d.ts.map +1 -1
  560. package/lib/components/template/WideNarrow/WideNarrowPage/WideNarrowPage.js +7 -17
  561. package/lib/components/template/WideNarrow/WideNarrowPage/WideNarrowPage.js.map +1 -1
  562. package/lib/components/template/WideNarrow/WideNarrowPage/index.js.map +1 -1
  563. package/lib/components/template/WssNavBar/WssNavBar.d.ts +18 -1
  564. package/lib/components/template/WssNavBar/WssNavBar.d.ts.map +1 -1
  565. package/lib/components/template/WssNavBar/WssNavBar.js +19 -36
  566. package/lib/components/template/WssNavBar/WssNavBar.js.map +1 -1
  567. package/lib/components/widget/AppAnnouncement/AppAnnouncement.d.ts +9 -17
  568. package/lib/components/widget/AppAnnouncement/AppAnnouncement.d.ts.map +1 -1
  569. package/lib/components/widget/AppAnnouncement/AppAnnouncement.js +13 -37
  570. package/lib/components/widget/AppAnnouncement/AppAnnouncement.js.map +1 -1
  571. package/lib/components/widget/Attachment/Attachment.css +75 -4
  572. package/lib/components/widget/Attachment/Attachment.d.ts +8 -1
  573. package/lib/components/widget/Attachment/Attachment.d.ts.map +1 -1
  574. package/lib/components/widget/Attachment/Attachment.js +267 -340
  575. package/lib/components/widget/Attachment/Attachment.js.map +1 -1
  576. package/lib/components/widget/Attachment/index.js.map +1 -1
  577. package/lib/components/widget/CaseHistory/CaseHistory.d.ts +4 -7
  578. package/lib/components/widget/CaseHistory/CaseHistory.d.ts.map +1 -1
  579. package/lib/components/widget/CaseHistory/CaseHistory.js +38 -36
  580. package/lib/components/widget/CaseHistory/CaseHistory.js.map +1 -1
  581. package/lib/components/widget/CaseHistory/index.js.map +1 -1
  582. package/lib/components/widget/FileUtility/ActionButtonsForFileUtil/ActionButtonsForFileUtil.d.ts +9 -1
  583. package/lib/components/widget/FileUtility/ActionButtonsForFileUtil/ActionButtonsForFileUtil.d.ts.map +1 -1
  584. package/lib/components/widget/FileUtility/ActionButtonsForFileUtil/ActionButtonsForFileUtil.js +2 -4
  585. package/lib/components/widget/FileUtility/ActionButtonsForFileUtil/ActionButtonsForFileUtil.js.map +1 -1
  586. package/lib/components/widget/FileUtility/FileUtility/FileUtility.css +2 -2
  587. package/lib/components/widget/FileUtility/FileUtility/FileUtility.d.ts +5 -1
  588. package/lib/components/widget/FileUtility/FileUtility/FileUtility.d.ts.map +1 -1
  589. package/lib/components/widget/FileUtility/FileUtility/FileUtility.js +122 -141
  590. package/lib/components/widget/FileUtility/FileUtility/FileUtility.js.map +1 -1
  591. package/lib/components/widget/Followers/Followers.d.ts +5 -6
  592. package/lib/components/widget/Followers/Followers.d.ts.map +1 -1
  593. package/lib/components/widget/Followers/Followers.js +10 -25
  594. package/lib/components/widget/Followers/Followers.js.map +1 -1
  595. package/lib/components/widget/QuickCreate/QuickCreate.d.ts +8 -1
  596. package/lib/components/widget/QuickCreate/QuickCreate.d.ts.map +1 -1
  597. package/lib/components/widget/QuickCreate/QuickCreate.js +11 -10
  598. package/lib/components/widget/QuickCreate/QuickCreate.js.map +1 -1
  599. package/lib/components/widget/SummaryItem/SummaryItem.css +9 -9
  600. package/lib/components/widget/SummaryItem/SummaryItem.d.ts +8 -1
  601. package/lib/components/widget/SummaryItem/SummaryItem.d.ts.map +1 -1
  602. package/lib/components/widget/SummaryItem/SummaryItem.js +10 -25
  603. package/lib/components/widget/SummaryItem/SummaryItem.js.map +1 -1
  604. package/lib/components/widget/SummaryItem/index.js.map +1 -1
  605. package/lib/components/widget/SummaryList/SummaryList.d.ts +8 -1
  606. package/lib/components/widget/SummaryList/SummaryList.d.ts.map +1 -1
  607. package/lib/components/widget/SummaryList/SummaryList.js +6 -3
  608. package/lib/components/widget/SummaryList/SummaryList.js.map +1 -1
  609. package/lib/components/widget/ToDo/ToDo.css +4 -4
  610. package/lib/components/widget/ToDo/ToDo.d.ts +13 -27
  611. package/lib/components/widget/ToDo/ToDo.d.ts.map +1 -1
  612. package/lib/components/widget/ToDo/ToDo.js +30 -98
  613. package/lib/components/widget/ToDo/ToDo.js.map +1 -1
  614. package/lib/components_map.d.ts +3 -3
  615. package/lib/components_map.d.ts.map +1 -1
  616. package/lib/components_map.js +821 -818
  617. package/lib/components_map.js.map +1 -1
  618. package/lib/doc/KeyReleaseUpdates.md +66 -9
  619. package/lib/hooks/index.d.ts +4 -0
  620. package/lib/hooks/index.d.ts.map +1 -0
  621. package/lib/hooks/index.js +4 -0
  622. package/lib/hooks/index.js.map +1 -0
  623. package/lib/hooks/useAfterInitialEffect.d.ts +9 -0
  624. package/lib/hooks/useAfterInitialEffect.d.ts.map +1 -0
  625. package/lib/hooks/useAfterInitialEffect.js +16 -0
  626. package/lib/hooks/useAfterInitialEffect.js.map +1 -0
  627. package/lib/hooks/useConsolidatedRef.d.ts +9 -0
  628. package/lib/hooks/useConsolidatedRef.d.ts.map +1 -0
  629. package/lib/hooks/useConsolidatedRef.js +30 -0
  630. package/lib/hooks/useConsolidatedRef.js.map +1 -0
  631. package/lib/hooks/useUID.d.ts +8 -0
  632. package/lib/hooks/useUID.d.ts.map +1 -0
  633. package/lib/hooks/useUID.js +14 -0
  634. package/lib/hooks/useUID.js.map +1 -0
  635. package/lib/index.d.ts +1 -0
  636. package/lib/index.d.ts.map +1 -1
  637. package/lib/index.js +2 -1
  638. package/lib/index.js.map +1 -1
  639. package/lib/sdk-local-component-map.js +2 -2
  640. package/lib/sdk-pega-component-map.d.ts +21 -1
  641. package/lib/sdk-pega-component-map.js +112 -92
  642. package/lib/sdk-pega-component-map.js.map +1 -1
  643. package/lib/types/PConnProps.d.ts +41 -0
  644. package/package.json +5 -2
  645. package/lib/components/helpers/auth.d.ts +0 -16
  646. package/lib/components/helpers/auth.d.ts.map +0 -1
  647. package/lib/components/helpers/auth.js +0 -437
  648. package/lib/components/helpers/auth.js.map +0 -1
  649. package/lib/components/helpers/authManager.d.ts +0 -18
  650. package/lib/components/helpers/authManager.d.ts.map +0 -1
  651. package/lib/components/helpers/authManager.js +0 -589
  652. package/lib/components/helpers/authManager.js.map +0 -1
  653. package/lib/components/helpers/config_access.d.ts +0 -3
  654. package/lib/components/helpers/config_access.d.ts.map +0 -1
  655. package/lib/components/helpers/config_access.js +0 -268
  656. package/lib/components/helpers/config_access.js.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"FieldValueList.js","sourceRoot":"","sources":["../../../../src/components/designSystemExtension/FieldValueList/FieldValueList.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,IAAI,MAAM,wBAAwB,CAAC;AAC1C,OAAO,UAAU,MAAM,8BAA8B,CAAC;AACtD,OAAO,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC;AAEtD,MA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AAE;YAE/D,oBAAC,UAAU,IAAC,OAAO,EAAC,OAAO,EAAC,SAAS,EAAC,MAAM,EAAC,SAAS,EAAE,GAAG,OAAO,CAAC,UAAU,EAAE,IAC5E,IAAI,CACM,CACR,CACR,CAAC;IACJ,CAAC;IAED,SAAS,gBAAgB;QACvB,MAAM,cAAc,GAAG,eAAe,CAAC,KAAK,CAAC,CAAC;QAE9C,OAAO,CACL,oBAAC,IAAI,IACH,IAAI,QACJ,EAAE,EAAE,OAAO,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,EAClC,SAAS,EAAE,OAAO,KAAK,SAAS,CAAC,CAAC,CAAC,OAAO,CAAC,YAAY,CAAC,CAAC,CAAC,EAAE;YAE5D,oBAAC,UAAU,IACT,OAAO,EAAE,OAAO,KAAK,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,OAAO,EAC/C,SAAS,EAAC,MAAM,EAChB,SAAS,EAAE,OAAO,CAAC,UAAU,IAE5B,cAAc,CACJ,CACR,CACR,CAAC;IACJ,CAAC;IAED,OAAO,CACL,oBAAC,KAAK,CAAC,QAAQ;QACb,oBAAC,IAAI,IAAC,SAAS,QAAC,OAAO,EAAE,CAAC,EAAE,cAAc,EAAC,eAAe;YACvD,gBAAgB,EAAE;YAClB,gBAAgB,EAAE,CACd,CACQ,CAClB,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,cAAc,CAAC","sourcesContent":["import React from 'react';\n\nimport Grid from '@material-ui/core/Grid';\nimport Typography from '@material-ui/core/Typography';\nimport { makeStyles } from '@material-ui/core/styles';\n\nconst useStyles = makeStyles(theme => ({\n root: {\n marginRight: theme.spacing(1),\n marginLeft: theme.spacing(1),\n marginTop: theme.spacing(1),\n marginBottom: theme.spacing(1)\n },\n fieldLabel: {\n fontWeight: 400,\n color: theme.palette.text.secondary\n },\n fieldValue: {\n color: theme.palette.text.primary\n },\n noPaddingTop: {\n paddingTop: '0 !important'\n },\n noPaddingBottom: {\n paddingBottom: '0 !important'\n }\n}));\n\nfunction formatItemValue(value) {\n let formattedVal = value;\n\n // if the value is undefined or an empty string, we want to display it as \"---\"\n if (formattedVal === undefined || formattedVal === '') {\n formattedVal = '---';\n }\n\n return formattedVal;\n}\n\nconst FieldValueList = props => {\n const { name, value, variant = 'inline' } = props;\n const classes = useStyles();\n\n function getGridItemLabel() {\n return (\n <Grid\n item\n xs={variant === 'stacked' ? 12 : 6}\n className={variant === 'stacked' ? classes.noPaddingBottom : ''}\n >\n <Typography variant='body2' component='span' className={`${classes.fieldLabel}`}>\n {name}\n </Typography>\n </Grid>\n );\n }\n\n function getGridItemValue() {\n const formattedValue = formatItemValue(value);\n\n return (\n <Grid\n item\n xs={variant === 'stacked' ? 12 : 6}\n className={variant === 'stacked' ? classes.noPaddingTop : ''}\n >\n <Typography\n variant={variant === 'stacked' ? 'h6' : 'body2'}\n component='span'\n className={classes.fieldValue}\n >\n {formattedValue}\n </Typography>\n </Grid>\n );\n }\n\n return (\n <React.Fragment>\n <Grid container spacing={4} justifyContent='space-between'>\n {getGridItemLabel()}\n {getGridItemValue()}\n </Grid>\n </React.Fragment>\n );\n};\n\nexport default FieldValueList;\n"]}
1
+ {"version":3,"file":"FieldValueList.js","sourceRoot":"","sources":["../../../../src/components/designSystemExtension/FieldValueList/FieldValueList.tsx"],"names":[],"mappings":";AAAA,OAAO,IAAI,MAAM,wBAAwB,CAAC;AAC1C,OAAO,UAAU,MAAM,8BAA8B,CAAC;AACtD,OAAO,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC;AAWtD,MAAM,SAAS,GAAG,UAAU,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC;IACrC,IAAI,EAAE;QACJ,WAAW,EAAE,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC;QAC7B,UAAU,EAAE,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC;QAC5B,SAAS,EAAE,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC;QAC3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;QAE9C,OAAO,CACL,KAAC,IAAI,IAAC,IAAI,QAAC,EAAE,EAAE,OAAO,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,EAAE,SAAS,EAAE,OAAO,KAAK,SAAS,CAAC,CAAC,CAAC,OAAO,CAAC,YAAY,CAAC,CAAC,CAAC,EAAE,YACzG,KAAC,UAAU,IAAC,OAAO,EAAE,OAAO,KAAK,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,OAAO,EAAE,SAAS,EAAC,MAAM,EAAC,SAAS,EAAE,OAAO,CAAC,UAAU,YACxG,cAAc,GACJ,GACR,CACR,CAAC;IACJ,CAAC;IAED,OAAO,CACL,MAAC,IAAI,IAAC,SAAS,QAAC,OAAO,EAAE,CAAC,EAAE,cAAc,EAAC,eAAe,aACvD,gBAAgB,EAAE,EAClB,gBAAgB,EAAE,IACd,CACR,CAAC;AACJ,CAAC","sourcesContent":["import Grid from '@material-ui/core/Grid';\nimport Typography from '@material-ui/core/Typography';\nimport { makeStyles } from '@material-ui/core/styles';\n\n// FieldValueList is one of the few components that does NOT have getPConnect.\n// So, no need to extend PConnProps\ninterface FieldValueListProps {\n // If any, enter additional props that only exist on this component\n name?: string;\n value: any;\n variant?: string;\n}\n\nconst useStyles = makeStyles(theme => ({\n root: {\n marginRight: theme.spacing(1),\n marginLeft: theme.spacing(1),\n marginTop: theme.spacing(1),\n marginBottom: theme.spacing(1)\n },\n fieldLabel: {\n fontWeight: 400,\n color: theme.palette.text.secondary\n },\n fieldValue: {\n color: theme.palette.text.primary\n },\n noPaddingTop: {\n paddingTop: '0 !important'\n },\n noPaddingBottom: {\n paddingBottom: '0 !important'\n }\n}));\n\nfunction formatItemValue(value) {\n let formattedVal = value;\n\n // if the value is undefined or an empty string, we want to display it as \"---\"\n if (formattedVal === undefined || formattedVal === '') {\n formattedVal = '---';\n }\n\n return formattedVal;\n}\n\nexport default function FieldValueList(props: FieldValueListProps) {\n const { name, value, variant = 'inline' } = props;\n const classes = useStyles();\n\n function getGridItemLabel() {\n return (\n <Grid item xs={variant === 'stacked' ? 12 : 6} className={variant === 'stacked' ? classes.noPaddingBottom : ''}>\n <Typography variant='body2' component='span' className={`${classes.fieldLabel}`}>\n {name}\n </Typography>\n </Grid>\n );\n }\n\n function getGridItemValue() {\n const formattedValue = formatItemValue(value);\n\n return (\n <Grid item xs={variant === 'stacked' ? 12 : 6} className={variant === 'stacked' ? classes.noPaddingTop : ''}>\n <Typography variant={variant === 'stacked' ? 'h6' : 'body2'} component='span' className={classes.fieldValue}>\n {formattedValue}\n </Typography>\n </Grid>\n );\n }\n\n return (\n <Grid container spacing={4} justifyContent='space-between'>\n {getGridItemLabel()}\n {getGridItemValue()}\n </Grid>\n );\n}\n"]}
@@ -1,11 +1,20 @@
1
1
  /// <reference types="react" />
2
- import PropTypes from "prop-types";
3
- declare function Operator(props: any): JSX.Element;
4
- declare namespace Operator {
5
- var defaultProps: {};
6
- var propTypes: {
7
- caseOpConfig: PropTypes.Validator<object>;
2
+ import { PConnProps } from '../../../types/PConnProps';
3
+ interface OperatorProps extends PConnProps {
4
+ label: string;
5
+ createDateTime: string;
6
+ createLabel: string;
7
+ createOperator: {
8
+ userName: string;
9
+ userId: string;
10
+ };
11
+ updateDateTime: string;
12
+ updateLabel: string;
13
+ updateOperator: {
14
+ userName: string;
15
+ userId: string;
8
16
  };
9
17
  }
10
- export default Operator;
18
+ export default function Operator(props: OperatorProps): JSX.Element;
19
+ export {};
11
20
  //# sourceMappingURL=Operator.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Operator.d.ts","sourceRoot":"","sources":["../../../../src/components/designSystemExtension/Operator/Operator.tsx"],"names":[],"mappings":";AACA,OAAO,SAAS,MAAM,YAAY,CAAC;AAuBnC,iBAAwB,QAAQ,CAAC,KAAK,KAAA,eAoKrC;kBApKuB,QAAQ;;;;;;eAAR,QAAQ"}
1
+ {"version":3,"file":"Operator.d.ts","sourceRoot":"","sources":["../../../../src/components/designSystemExtension/Operator/Operator.tsx"],"names":[],"mappings":";AAQA,OAAO,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AAIvD,UAAU,aAAc,SAAQ,UAAU;IAExC,KAAK,EAAE,MAAM,CAAC;IACd,cAAc,EAAE,MAAM,CAAC;IACvB,WAAW,EAAE,MAAM,CAAC;IACpB,cAAc,EAAE;QAAE,QAAQ,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,MAAM,CAAA;KAAE,CAAC;IACrD,cAAc,EAAE,MAAM,CAAC;IACvB,WAAW,EAAE,MAAM,CAAC;IACpB,cAAc,EAAE;QAAE,QAAQ,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,MAAM,CAAA;KAAE,CAAC;CACtD;AAaD,MAAM,CAAC,OAAO,UAAU,QAAQ,CAAC,KAAK,EAAE,aAAa,eAoLpD"}
@@ -1,83 +1,82 @@
1
- import React, { useState } from "react";
2
- import PropTypes from "prop-types";
1
+ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
2
+ import React, { useState } from 'react';
3
3
  import TextField from '@material-ui/core/TextField';
4
4
  import Popover from '@material-ui/core/Popover';
5
5
  import Grid from '@material-ui/core/Grid';
6
6
  import Typography from '@material-ui/core/Typography';
7
7
  import { makeStyles } from '@material-ui/core/styles';
8
8
  import Utils from '../../helpers/utils';
9
- const useStyles = makeStyles((theme) => ({
9
+ const useStyles = makeStyles(theme => ({
10
10
  root: {
11
11
  padding: theme.spacing(1),
12
- margin: theme.spacing(1),
12
+ margin: theme.spacing(1)
13
13
  },
14
14
  popover: {
15
15
  padding: theme.spacing(1),
16
- margin: theme.spacing(1),
16
+ margin: theme.spacing(1)
17
17
  }
18
18
  }));
19
19
  export default function Operator(props) {
20
20
  // const componentName = "Operator";
21
- const { caseOpConfig } = props;
22
21
  const classes = useStyles();
23
- const fieldLabel = caseOpConfig.label.toLowerCase();
24
- let caseOpLabel = "---";
25
- let caseOpName = "---";
26
- let caseOpId = "";
27
- let caseTime = null;
28
- if (fieldLabel === "create operator") {
29
- caseOpLabel = caseOpConfig.createLabel;
30
- caseOpName = caseOpConfig.createOperator.userName;
31
- caseTime = caseOpConfig.createDateTime;
32
- caseOpId = caseOpConfig.createOperator.userId;
22
+ const fieldLabel = props.label.toLowerCase();
23
+ let caseOpLabel = '---';
24
+ let caseOpName = '---';
25
+ let caseOpId = '';
26
+ let caseTime = '';
27
+ if (fieldLabel === 'create operator') {
28
+ caseOpLabel = props.createLabel;
29
+ caseOpName = props.createOperator.userName;
30
+ caseTime = props.createDateTime;
31
+ caseOpId = props.createOperator.userId;
33
32
  }
34
- else if (fieldLabel === "update operator") {
35
- caseOpLabel = caseOpConfig.updateLabel;
36
- caseOpName = caseOpConfig.updateOperator.userName;
37
- caseTime = caseOpConfig.updateDateTime;
38
- caseOpId = caseOpConfig.updateOperator.userId;
33
+ else if (fieldLabel === 'update operator') {
34
+ caseOpLabel = props.updateLabel;
35
+ caseOpName = props.updateOperator.userName;
36
+ caseTime = props.updateDateTime;
37
+ caseOpId = props.updateOperator.userId;
39
38
  }
40
39
  // Popover-related
41
40
  const [popoverAnchorEl, setPopoverAnchorEl] = useState(null);
42
41
  const [popoverFields, setPopoverFields] = useState([]);
43
42
  const popoverOpen = Boolean(popoverAnchorEl);
44
43
  const popoverId = popoverOpen ? 'operator-details-popover' : undefined;
45
- const handlePopoverClose = (() => {
44
+ const handlePopoverClose = () => {
46
45
  setPopoverAnchorEl(null);
47
- });
46
+ };
48
47
  function showOperatorDetails(event) {
49
48
  const operatorPreviewPromise = PCore.getUserApi().getOperatorDetails(caseOpId);
49
+ const localizedVal = PCore.getLocaleUtils().getLocaleValue;
50
+ const localeCategory = 'Operator';
50
51
  operatorPreviewPromise.then((res) => {
51
- const fillerString = "---";
52
+ const fillerString = '---';
52
53
  let fields = [];
53
- if (res.data &&
54
- res.data.pyOperatorInfo &&
55
- res.data.pyOperatorInfo.pyUserName) {
54
+ if (res.data && res.data.pyOperatorInfo && res.data.pyOperatorInfo.pyUserName) {
56
55
  fields = [
57
56
  {
58
- id: "pyPosition",
59
- name: "Position",
57
+ id: 'pyPosition',
58
+ name: localizedVal('Position', localeCategory),
60
59
  value: res.data.pyOperatorInfo.pyPosition ? res.data.pyOperatorInfo.pyPosition : fillerString
61
60
  },
62
61
  {
63
- id: "pyOrganization",
64
- name: "Organization",
62
+ id: 'pyOrganization',
63
+ name: localizedVal('Organization', localeCategory),
65
64
  value: res.data.pyOperatorInfo.pyOrganization ? res.data.pyOperatorInfo.pyOrganization : fillerString
66
65
  },
67
66
  {
68
- id: "ReportToUserName",
69
- name: "Reports to",
67
+ id: 'ReportToUserName',
68
+ name: localizedVal('Reports to', localeCategory),
70
69
  value: res.data.pyOperatorInfo.pyReportToUserName ? res.data.pyOperatorInfo.pyReportToUserName : fillerString
71
70
  },
72
71
  {
73
- id: "pyTelephone",
74
- name: "Telephone",
75
- value: res.data.pyOperatorInfo.pyTelephone ? React.createElement("a", { href: `tel:${res.data.pyOperatorInfo.pyTelephone}` }, res.data.pyOperatorInfo.pyTelephone) : fillerString
72
+ id: 'pyTelephone',
73
+ name: localizedVal('Telephone', localeCategory),
74
+ value: res.data.pyOperatorInfo.pyTelephone ? (_jsx("a", { href: `tel:${res.data.pyOperatorInfo.pyTelephone}`, children: res.data.pyOperatorInfo.pyTelephone })) : (fillerString)
76
75
  },
77
76
  {
78
- id: "pyEmailAddress",
79
- name: "Email address",
80
- value: res.data.pyOperatorInfo.pyEmailAddress ? React.createElement("a", { href: `mailto:${res.data.pyOperatorInfo.pyEmailAddress}` }, res.data.pyOperatorInfo.pyEmailAddress) : fillerString
77
+ id: 'pyEmailAddress',
78
+ name: localizedVal('Email address', localeCategory),
79
+ value: res.data.pyOperatorInfo.pyEmailAddress ? (_jsx("a", { href: `mailto:${res.data.pyOperatorInfo.pyEmailAddress}`, children: res.data.pyOperatorInfo.pyEmailAddress })) : (fillerString)
81
80
  }
82
81
  ];
83
82
  }
@@ -86,28 +85,28 @@ export default function Operator(props) {
86
85
  console.log(`Operator: PCore.getUserApi().getOperatorDetails(${caseOpId}); returned empty res.data.pyOperatorInfo.pyUserName - adding default`);
87
86
  fields = [
88
87
  {
89
- id: "pyPosition",
90
- name: "Position",
88
+ id: 'pyPosition',
89
+ name: localizedVal('Position', localeCategory),
91
90
  value: fillerString
92
91
  },
93
92
  {
94
- id: "pyOrganization",
95
- name: "Organization",
93
+ id: 'pyOrganization',
94
+ name: localizedVal('Organization', localeCategory),
96
95
  value: fillerString
97
96
  },
98
97
  {
99
- id: "ReportToUserName",
100
- name: "Reports to",
98
+ id: 'ReportToUserName',
99
+ name: localizedVal('Reports to', localeCategory),
101
100
  value: fillerString
102
101
  },
103
102
  {
104
- id: "pyTelephone",
105
- name: "Telephone",
103
+ id: 'pyTelephone',
104
+ name: localizedVal('Telephone', localeCategory),
106
105
  value: fillerString
107
106
  },
108
107
  {
109
- id: "pyEmailAddress",
110
- name: "Email address",
108
+ id: 'pyEmailAddress',
109
+ name: localizedVal('Email address', localeCategory),
111
110
  value: fillerString
112
111
  }
113
112
  ];
@@ -125,31 +124,15 @@ export default function Operator(props) {
125
124
  return;
126
125
  }
127
126
  // There are fields, so build the grid.
128
- return React.createElement(Grid, { container: true, className: classes.popover, spacing: 1 },
129
- React.createElement(Grid, { item: true, xs: 12 },
130
- React.createElement(Typography, { variant: "h6" }, caseOpName)),
131
- popoverFields.map((field) => {
132
- return React.createElement(React.Fragment, { key: field.id },
133
- React.createElement(Grid, { container: true, item: true, xs: 12, spacing: 1 },
134
- React.createElement(Grid, { item: true, xs: 6 },
135
- React.createElement(Typography, { variant: "caption" }, field.name)),
136
- React.createElement(Grid, { item: true, xs: 6 },
137
- React.createElement(Typography, { variant: "subtitle2" }, field.value))));
138
- }));
127
+ return (_jsxs(Grid, { container: true, className: classes.popover, spacing: 1, children: [_jsx(Grid, { item: true, xs: 12, children: _jsx(Typography, { variant: 'h6', children: caseOpName }) }), popoverFields.map(field => {
128
+ return (_jsx(React.Fragment, { children: _jsxs(Grid, { container: true, item: true, xs: 12, spacing: 1, children: [_jsx(Grid, { item: true, xs: 6, children: _jsx(Typography, { variant: 'caption', children: field.name }) }), _jsx(Grid, { item: true, xs: 6, children: _jsx(Typography, { variant: 'subtitle2', children: field.value }) })] }) }, field.id));
129
+ })] }));
139
130
  }
140
131
  // End of popover-related
141
- return React.createElement(React.Fragment, null,
142
- React.createElement(TextField, { defaultValue: caseOpName, label: caseOpLabel, onClick: showOperatorDetails, InputProps: {
143
- readOnly: true,
144
- disableUnderline: true,
145
- inputProps: { style: { cursor: 'pointer' } }
146
- } }),
147
- React.createElement("br", null),
148
- Utils.generateDateTime(caseTime, "DateTime-Since"),
149
- React.createElement(Popover, { id: popoverId, open: popoverOpen, anchorEl: popoverAnchorEl, onClose: handlePopoverClose, anchorOrigin: { vertical: 'bottom', horizontal: 'center' }, transformOrigin: { vertical: 'top', horizontal: 'center' }, PaperProps: { style: { maxWidth: '45ch' } } }, getPopoverGrid()));
132
+ return (_jsxs(_Fragment, { children: [_jsx(TextField, { defaultValue: caseOpName, label: caseOpLabel, onClick: showOperatorDetails, InputProps: {
133
+ readOnly: true,
134
+ disableUnderline: true,
135
+ inputProps: { style: { cursor: 'pointer' } }
136
+ } }), _jsx("br", {}), Utils.generateDateTime(caseTime, 'DateTime-Since'), _jsx(Popover, { id: popoverId, open: popoverOpen, anchorEl: popoverAnchorEl, onClose: handlePopoverClose, anchorOrigin: { vertical: 'bottom', horizontal: 'center' }, transformOrigin: { vertical: 'top', horizontal: 'center' }, PaperProps: { style: { maxWidth: '45ch' } }, children: getPopoverGrid() })] }));
150
137
  }
151
- Operator.defaultProps = {};
152
- Operator.propTypes = {
153
- caseOpConfig: PropTypes.object.isRequired,
154
- };
155
138
  //# sourceMappingURL=Operator.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Operator.js","sourceRoot":"","sources":["../../../../src/components/designSystemExtension/Operator/Operator.tsx"],"names":[],"mappings":"AAAA,OAAO,K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useState} from \"react\";\nimport PropTypes from \"prop-types\";\nimport TextField from '@material-ui/core/TextField';\nimport Popover from '@material-ui/core/Popover';\nimport Grid from '@material-ui/core/Grid';\nimport Typography from '@material-ui/core/Typography';\n\nimport { makeStyles } from '@material-ui/core/styles';\n\nimport Utils from '../../helpers/utils';\n\ndeclare const PCore: any;\n\nconst useStyles = makeStyles((theme) => ({\n root: {\n padding: theme.spacing(1),\n margin: theme.spacing(1),\n },\n popover: {\n padding: theme.spacing(1),\n margin: theme.spacing(1),\n }\n}));\n\nexport default function Operator(props) {\n // const componentName = \"Operator\";\n const { caseOpConfig } = props;\n const classes = useStyles();\n\n const fieldLabel = caseOpConfig.label.toLowerCase();\n let caseOpLabel = \"---\";\n let caseOpName = \"---\";\n let caseOpId = \"\";\n let caseTime = null;\n\n if (fieldLabel === \"create operator\") {\n caseOpLabel = caseOpConfig.createLabel;\n caseOpName = caseOpConfig.createOperator.userName;\n caseTime = caseOpConfig.createDateTime;\n caseOpId = caseOpConfig.createOperator.userId;\n } else if (fieldLabel === \"update operator\") {\n caseOpLabel = caseOpConfig.updateLabel;\n caseOpName = caseOpConfig.updateOperator.userName;\n caseTime = caseOpConfig.updateDateTime;\n caseOpId = caseOpConfig.updateOperator.userId;\n }\n\n // Popover-related\n const [popoverAnchorEl, setPopoverAnchorEl] = useState(null);\n const [popoverFields, setPopoverFields] = useState<Array<any>>([]);\n\n const popoverOpen = Boolean(popoverAnchorEl);\n const popoverId = popoverOpen ? 'operator-details-popover' : undefined;\n\n const handlePopoverClose = (() => {\n setPopoverAnchorEl(null);\n })\n\n function showOperatorDetails(event) {\n\n const operatorPreviewPromise = PCore.getUserApi().getOperatorDetails(caseOpId);\n\n operatorPreviewPromise.then((res) => {\n const fillerString = \"---\";\n let fields: any = [];\n if (\n res.data &&\n res.data.pyOperatorInfo &&\n res.data.pyOperatorInfo.pyUserName\n ) {\n fields = [\n {\n id: \"pyPosition\",\n name: \"Position\",\n value: res.data.pyOperatorInfo.pyPosition ? res.data.pyOperatorInfo.pyPosition : fillerString\n },\n {\n id: \"pyOrganization\",\n name: \"Organization\",\n value: res.data.pyOperatorInfo.pyOrganization ? res.data.pyOperatorInfo.pyOrganization : fillerString\n },\n {\n id: \"ReportToUserName\",\n name: \"Reports to\",\n value: res.data.pyOperatorInfo.pyReportToUserName ? res.data.pyOperatorInfo.pyReportToUserName : fillerString\n },\n {\n id: \"pyTelephone\",\n name: \"Telephone\",\n value: res.data.pyOperatorInfo.pyTelephone ? <a href={`tel:${res.data.pyOperatorInfo.pyTelephone}`}>{res.data.pyOperatorInfo.pyTelephone}</a> : fillerString\n },\n {\n id: \"pyEmailAddress\",\n name: \"Email address\",\n value: res.data.pyOperatorInfo.pyEmailAddress ? <a href={`mailto:${res.data.pyOperatorInfo.pyEmailAddress}`}>{res.data.pyOperatorInfo.pyEmailAddress}</a> : fillerString\n }\n ];\n } else {\n // eslint-disable-next-line no-console\n console.log(`Operator: PCore.getUserApi().getOperatorDetails(${caseOpId}); returned empty res.data.pyOperatorInfo.pyUserName - adding default`);\n fields = [\n {\n id: \"pyPosition\",\n name: \"Position\",\n value: fillerString\n },\n {\n id: \"pyOrganization\",\n name: \"Organization\",\n value: fillerString\n },\n {\n id: \"ReportToUserName\",\n name: \"Reports to\",\n value: fillerString\n },\n {\n id: \"pyTelephone\",\n name: \"Telephone\",\n value: fillerString\n },\n {\n id: \"pyEmailAddress\",\n name: \"Email address\",\n value: fillerString\n }\n ];\n }\n // Whatever the fields are, update the component's popoverFields\n setPopoverFields(fields);\n });\n\n setPopoverAnchorEl(event.currentTarget);\n }\n\n function getPopoverGrid() {\n // return popoverFields.map((field) => {\n // return <div className={classes.popover}>{field.name}: {field.value}</div>\n // })\n\n if (popoverFields.length === 0) {\n return;\n }\n\n // There are fields, so build the grid.\n return <Grid container className={classes.popover} spacing={1}>\n <Grid item xs={12}><Typography variant=\"h6\">{caseOpName}</Typography></Grid>\n {popoverFields.map((field) => {\n return <React.Fragment key={field.id}>\n <Grid container item xs={12} spacing={1}>\n <Grid item xs={6}><Typography variant=\"caption\">{field.name}</Typography></Grid>\n <Grid item xs={6}><Typography variant=\"subtitle2\">{field.value}</Typography></Grid>\n </Grid>\n </React.Fragment>\n })}\n </Grid>\n\n }\n\n // End of popover-related\n\n return <React.Fragment>\n <TextField\n defaultValue={caseOpName}\n label={caseOpLabel}\n onClick={showOperatorDetails}\n InputProps={{\n readOnly: true,\n disableUnderline: true,\n inputProps: {style: {cursor: 'pointer'}}\n }}\n />\n <br />\n {Utils.generateDateTime(caseTime, \"DateTime-Since\")}\n\n <Popover\n id={popoverId}\n open={popoverOpen}\n anchorEl={popoverAnchorEl}\n onClose={handlePopoverClose}\n anchorOrigin={{ vertical: 'bottom', horizontal: 'center'}}\n transformOrigin={{ vertical: 'top', horizontal: 'center'}}\n PaperProps={{ style: {maxWidth: '45ch'}}}\n >\n {getPopoverGrid()}\n </Popover>\n </React.Fragment>;\n\n}\n\nOperator.defaultProps = {\n}\n\nOperator.propTypes = {\n caseOpConfig: PropTypes.object.isRequired,\n};\n"]}
1
+ {"version":3,"file":"Operator.js","sourceRoot":"","sources":["../../../../src/components/designSystemExtension/Operator/Operator.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,SAAS,MAAM,6BAA6B,CAAC;AACpD,OAAO,OAAO,MAAM,2BAA2B,CAAC;AAChD,OAAO,IAAI,MAAM,wBAAwB,CAAC;AAC1C,OAAO,UAAU,MAAM,8BAA8B,CAAC;AACtD,OAAO,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC;AAEtD,OAAO,KAAK,MAAM,qBAAqB,CAAC;AAgBxC,MAAM,SAAS,GAAG,UAAU,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC;IACrC,IAAI,EAAE;QACJ,OAAO,EAAE,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC;QACzB,MAAM,EAAE,KAAK,CAAC,OAAO,CAAC,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,KAAC,UAAU,IAAC,OAAO,EAAC,WAAW,YAAE,KAAK,CAAC,KAAK,GAAc,GACrD,IACF,IARY,KAAK,CAAC,EAAE,CASZ,CAClB,CAAC;gBACJ,CAAC,CAAC,IACG,CACR,CAAC;IACJ,CAAC;IAED,yBAAyB;IAEzB,OAAO,CACL,8BACE,KAAC,SAAS,IACR,YAAY,EAAE,UAAU,EACxB,KAAK,EAAE,WAAW,EAClB,OAAO,EAAE,mBAAmB,EAC5B,UAAU,EAAE;oBACV,QAAQ,EAAE,IAAI;oBACd,gBAAgB,EAAE,IAAI;oBACtB,UAAU,EAAE,EAAE,KAAK,EAAE,EAAE,MAAM,EAAE,SAAS,EAAE,EAAE;iBAC7C,GACD,EACF,cAAM,EACL,KAAK,CAAC,gBAAgB,CAAC,QAAQ,EAAE,gBAAgB,CAAC,EAEnD,KAAC,OAAO,IACN,EAAE,EAAE,SAAS,EACb,IAAI,EAAE,WAAW,EACjB,QAAQ,EAAE,eAAe,EACzB,OAAO,EAAE,kBAAkB,EAC3B,YAAY,EAAE,EAAE,QAAQ,EAAE,QAAQ,EAAE,UAAU,EAAE,QAAQ,EAAE,EAC1D,eAAe,EAAE,EAAE,QAAQ,EAAE,KAAK,EAAE,UAAU,EAAE,QAAQ,EAAE,EAC1D,UAAU,EAAE,EAAE,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,EAAE,EAAE,YAE1C,cAAc,EAAE,GACT,IACT,CACJ,CAAC;AACJ,CAAC","sourcesContent":["import React, { useState } from 'react';\nimport TextField from '@material-ui/core/TextField';\nimport Popover from '@material-ui/core/Popover';\nimport Grid from '@material-ui/core/Grid';\nimport Typography from '@material-ui/core/Typography';\nimport { makeStyles } from '@material-ui/core/styles';\n\nimport Utils from '../../helpers/utils';\nimport { PConnProps } from '../../../types/PConnProps';\n\n// Operator is one of the few components that does NOT have getPConnect.\n// So, no need to extend PConnProps\ninterface OperatorProps extends PConnProps {\n // If any, enter additional props that only exist on this component\n label: string;\n createDateTime: string;\n createLabel: string;\n createOperator: { userName: string; userId: string };\n updateDateTime: string;\n updateLabel: string;\n updateOperator: { userName: string; userId: string };\n}\n\nconst useStyles = makeStyles(theme => ({\n root: {\n padding: theme.spacing(1),\n margin: theme.spacing(1)\n },\n popover: {\n padding: theme.spacing(1),\n margin: theme.spacing(1)\n }\n}));\n\nexport default function Operator(props: OperatorProps) {\n // const componentName = \"Operator\";\n const classes = useStyles();\n\n const fieldLabel = props.label.toLowerCase();\n let caseOpLabel = '---';\n let caseOpName = '---';\n let caseOpId = '';\n let caseTime = '';\n\n if (fieldLabel === 'create operator') {\n caseOpLabel = props.createLabel;\n caseOpName = props.createOperator.userName;\n caseTime = props.createDateTime;\n caseOpId = props.createOperator.userId;\n } else if (fieldLabel === 'update operator') {\n caseOpLabel = props.updateLabel;\n caseOpName = props.updateOperator.userName;\n caseTime = props.updateDateTime;\n caseOpId = props.updateOperator.userId;\n }\n\n // Popover-related\n const [popoverAnchorEl, setPopoverAnchorEl] = useState(null);\n const [popoverFields, setPopoverFields] = useState<any[]>([]);\n\n const popoverOpen = Boolean(popoverAnchorEl);\n const popoverId = popoverOpen ? 'operator-details-popover' : undefined;\n\n const handlePopoverClose = () => {\n setPopoverAnchorEl(null);\n };\n\n function showOperatorDetails(event) {\n const operatorPreviewPromise = PCore.getUserApi().getOperatorDetails(caseOpId);\n const localizedVal = PCore.getLocaleUtils().getLocaleValue;\n const localeCategory = 'Operator';\n\n operatorPreviewPromise.then((res: any) => {\n const fillerString = '---';\n let fields: any = [];\n if (res.data && res.data.pyOperatorInfo && res.data.pyOperatorInfo.pyUserName) {\n fields = [\n {\n id: 'pyPosition',\n name: localizedVal('Position', localeCategory),\n value: res.data.pyOperatorInfo.pyPosition ? res.data.pyOperatorInfo.pyPosition : fillerString\n },\n {\n id: 'pyOrganization',\n name: localizedVal('Organization', localeCategory),\n value: res.data.pyOperatorInfo.pyOrganization ? res.data.pyOperatorInfo.pyOrganization : fillerString\n },\n {\n id: 'ReportToUserName',\n name: localizedVal('Reports to', localeCategory),\n value: res.data.pyOperatorInfo.pyReportToUserName ? res.data.pyOperatorInfo.pyReportToUserName : fillerString\n },\n {\n id: 'pyTelephone',\n name: localizedVal('Telephone', localeCategory),\n value: res.data.pyOperatorInfo.pyTelephone ? (\n <a href={`tel:${res.data.pyOperatorInfo.pyTelephone}`}>{res.data.pyOperatorInfo.pyTelephone}</a>\n ) : (\n fillerString\n )\n },\n {\n id: 'pyEmailAddress',\n name: localizedVal('Email address', localeCategory),\n value: res.data.pyOperatorInfo.pyEmailAddress ? (\n <a href={`mailto:${res.data.pyOperatorInfo.pyEmailAddress}`}>{res.data.pyOperatorInfo.pyEmailAddress}</a>\n ) : (\n fillerString\n )\n }\n ];\n } else {\n // eslint-disable-next-line no-console\n console.log(\n `Operator: PCore.getUserApi().getOperatorDetails(${caseOpId}); returned empty res.data.pyOperatorInfo.pyUserName - adding default`\n );\n fields = [\n {\n id: 'pyPosition',\n name: localizedVal('Position', localeCategory),\n value: fillerString\n },\n {\n id: 'pyOrganization',\n name: localizedVal('Organization', localeCategory),\n value: fillerString\n },\n {\n id: 'ReportToUserName',\n name: localizedVal('Reports to', localeCategory),\n value: fillerString\n },\n {\n id: 'pyTelephone',\n name: localizedVal('Telephone', localeCategory),\n value: fillerString\n },\n {\n id: 'pyEmailAddress',\n name: localizedVal('Email address', localeCategory),\n value: fillerString\n }\n ];\n }\n // Whatever the fields are, update the component's popoverFields\n setPopoverFields(fields);\n });\n\n setPopoverAnchorEl(event.currentTarget);\n }\n\n function getPopoverGrid() {\n // return popoverFields.map((field) => {\n // return <div className={classes.popover}>{field.name}: {field.value}</div>\n // })\n\n if (popoverFields.length === 0) {\n return;\n }\n\n // There are fields, so build the grid.\n return (\n <Grid container className={classes.popover} spacing={1}>\n <Grid item xs={12}>\n <Typography variant='h6'>{caseOpName}</Typography>\n </Grid>\n {popoverFields.map(field => {\n return (\n <React.Fragment key={field.id}>\n <Grid container item xs={12} spacing={1}>\n <Grid item xs={6}>\n <Typography variant='caption'>{field.name}</Typography>\n </Grid>\n <Grid item xs={6}>\n <Typography variant='subtitle2'>{field.value}</Typography>\n </Grid>\n </Grid>\n </React.Fragment>\n );\n })}\n </Grid>\n );\n }\n\n // End of popover-related\n\n return (\n <>\n <TextField\n defaultValue={caseOpName}\n label={caseOpLabel}\n onClick={showOperatorDetails}\n InputProps={{\n readOnly: true,\n disableUnderline: true,\n inputProps: { style: { cursor: 'pointer' } }\n }}\n />\n <br />\n {Utils.generateDateTime(caseTime, 'DateTime-Since')}\n\n <Popover\n id={popoverId}\n open={popoverOpen}\n anchorEl={popoverAnchorEl}\n onClose={handlePopoverClose}\n anchorOrigin={{ vertical: 'bottom', horizontal: 'center' }}\n transformOrigin={{ vertical: 'top', horizontal: 'center' }}\n PaperProps={{ style: { maxWidth: '45ch' } }}\n >\n {getPopoverGrid()}\n </Popover>\n </>\n );\n}\n"]}
@@ -1,3 +1,6 @@
1
- /// <reference types="react" />
2
- export default function Pulse(): JSX.Element;
1
+ import { PropsWithChildren } from 'react';
2
+ interface PulseProps {
3
+ }
4
+ export default function Pulse(props: PropsWithChildren<PulseProps>): JSX.Element;
5
+ export {};
3
6
  //# sourceMappingURL=Pulse.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Pulse.d.ts","sourceRoot":"","sources":["../../../../src/components/designSystemExtension/Pulse/Pulse.tsx"],"names":[],"mappings":";AAcA,MAAM,CAAC,OAAO,UAAU,KAAK,gBAY5B"}
1
+ {"version":3,"file":"Pulse.d.ts","sourceRoot":"","sources":["../../../../src/components/designSystemExtension/Pulse/Pulse.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAM1C,UAAU,UAAU;CAEnB;AAWD,MAAM,CAAC,OAAO,UAAU,KAAK,CAAC,KAAK,EAAE,iBAAiB,CAAC,UAAU,CAAC,eAajE"}
@@ -1,24 +1,18 @@
1
- import React from "react";
2
- // import PropTypes from "prop-types";
3
- import { Card, CardContent, CardHeader, Typography } from "@material-ui/core";
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { Card, CardContent, CardHeader, Typography } from '@material-ui/core';
4
3
  import { makeStyles } from '@material-ui/core/styles';
5
- const useStyles = makeStyles((theme) => ({
4
+ const useStyles = makeStyles(theme => ({
6
5
  root: {
7
6
  marginTop: theme.spacing(1),
8
7
  marginBottom: theme.spacing(1),
9
- borderLeft: "6px solid",
8
+ borderLeft: '6px solid',
10
9
  borderLeftColor: theme.palette.primary.light
11
- },
10
+ }
12
11
  }));
13
- export default function Pulse( /* props */) {
14
- // const { children } = props;
12
+ export default function Pulse(props) {
13
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
14
+ const { children } = props;
15
15
  const classes = useStyles();
16
- return (React.createElement(Card, { className: classes.root },
17
- React.createElement(CardHeader, { title: React.createElement(Typography, { variant: "h6" }, "Pulse") }),
18
- React.createElement(CardContent, null,
19
- React.createElement(Typography, null, "Pulse"))));
16
+ return (_jsxs(Card, { className: classes.root, children: [_jsx(CardHeader, { title: _jsx(Typography, { variant: 'h6', children: "Pulse" }) }), _jsx(CardContent, { children: _jsx(Typography, { children: "Pulse" }) })] }));
20
17
  }
21
- // Pulse.propTypes = {
22
- // children: PropTypes.arrayOf(PropTypes.node).isRequired
23
- // };
24
18
  //# sourceMappingURL=Pulse.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Pulse.js","sourceRoot":"","sources":["../../../../src/components/designSystemExtension/Pulse/Pulse.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,sCAAsC;AACtC,OAAO,EAAE,IAAI,EAAE,WAAW,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAC9E,OAAO,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC;AAEtD,MAAM,SAAS,GAAG,UAAU,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC;IACvC,IAAI,EAAE;QACJ,SAAS,EAAE,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC;QAC3B,YAAY,EAAE,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC;QAC9B,UAAU,EAAE,WAAW;QACvB,eAAe,EAAE,KAAK,CAAC,OAAO,CAAC,OAAO,CAAC,KAAK;KAC7C;CACF,CAAC,CAAC,CAAC;AAEJ,MAAM,CAAC,OAAO,UAAU,KAAK,EAAC,WAAW;IACvC,8BAA8B;IAC9B,MAAM,OAAO,GAAG,SAAS,EAAE,CAAC;IAE5B,OAAO,CACH,oBAAC,IAAI,IAAC,SAAS,EAAE,OAAO,CAAC,IAAI;QAC3B,oBAAC,UAAU,IAAC,KAAK,EAAE,oBAAC,UAAU,IAAC,OAAO,EAAC,IAAI,YAAmB,GAAI;QAClE,oBAAC,WAAW;YACV,oBAAC,UAAU,gBAAmB,CAClB,CACT,CACR,CAAC;AACN,CAAC;AAED,sBAAsB;AACtB,2DAA2D;AAC3D,KAAK","sourcesContent":["import React from \"react\";\n// import PropTypes from \"prop-types\";\nimport { Card, CardContent, CardHeader, Typography } from \"@material-ui/core\";\nimport { makeStyles } from '@material-ui/core/styles';\n\nconst useStyles = makeStyles((theme) => ({\n root: {\n marginTop: theme.spacing(1),\n marginBottom: theme.spacing(1),\n borderLeft: \"6px solid\",\n borderLeftColor: theme.palette.primary.light\n },\n}));\n\nexport default function Pulse(/* props */) {\n // const { children } = props;\n const classes = useStyles();\n\n return (\n <Card className={classes.root}>\n <CardHeader title={<Typography variant=\"h6\">Pulse</Typography>} />\n <CardContent>\n <Typography>Pulse</Typography>\n </CardContent>\n </Card>\n );\n}\n\n// Pulse.propTypes = {\n// children: PropTypes.arrayOf(PropTypes.node).isRequired\n// };\n"]}
1
+ {"version":3,"file":"Pulse.js","sourceRoot":"","sources":["../../../../src/components/designSystemExtension/Pulse/Pulse.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,IAAI,EAAE,WAAW,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAC9E,OAAO,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC;AAQtD,MAAM,SAAS,GAAG,UAAU,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC;IACrC,IAAI,EAAE;QACJ,SAAS,EAAE,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC;QAC3B,YAAY,EAAE,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC;QAC9B,UAAU,EAAE,WAAW;QACvB,eAAe,EAAE,KAAK,CAAC,OAAO,CAAC,OAAO,CAAC,KAAK;KAC7C;CACF,CAAC,CAAC,CAAC;AAEJ,MAAM,CAAC,OAAO,UAAU,KAAK,CAAC,KAAoC;IAChE,6DAA6D;IAC7D,MAAM,EAAE,QAAQ,EAAE,GAAG,KAAK,CAAC;IAC3B,MAAM,OAAO,GAAG,SAAS,EAAE,CAAC;IAE5B,OAAO,CACL,MAAC,IAAI,IAAC,SAAS,EAAE,OAAO,CAAC,IAAI,aAC3B,KAAC,UAAU,IAAC,KAAK,EAAE,KAAC,UAAU,IAAC,OAAO,EAAC,IAAI,sBAAmB,GAAI,EAClE,KAAC,WAAW,cACV,KAAC,UAAU,wBAAmB,GAClB,IACT,CACR,CAAC;AACJ,CAAC","sourcesContent":["import { PropsWithChildren } from 'react';\nimport { Card, CardContent, CardHeader, Typography } from '@material-ui/core';\nimport { makeStyles } from '@material-ui/core/styles';\n\n// Pulse is one of the few components that does NOT have getPConnect.\n// So, no need to extend PConnProps\ninterface PulseProps {\n // If any, enter additional props that only exist on this component\n}\n\nconst useStyles = makeStyles(theme => ({\n root: {\n marginTop: theme.spacing(1),\n marginBottom: theme.spacing(1),\n borderLeft: '6px solid',\n borderLeftColor: theme.palette.primary.light\n }\n}));\n\nexport default function Pulse(props: PropsWithChildren<PulseProps>) {\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n const { children } = props;\n const classes = useStyles();\n\n return (\n <Card className={classes.root}>\n <CardHeader title={<Typography variant='h6'>Pulse</Typography>} />\n <CardContent>\n <Typography>Pulse</Typography>\n </CardContent>\n </Card>\n );\n}\n"]}
@@ -0,0 +1,19 @@
1
+ import React from 'react';
2
+ interface RichTextEditorProps {
3
+ id?: string;
4
+ defaultValue: string;
5
+ label: string;
6
+ labelHidden: boolean;
7
+ info: string;
8
+ testId: string;
9
+ placeholder: string;
10
+ disabled: boolean;
11
+ required: boolean;
12
+ readOnly: boolean;
13
+ error: boolean;
14
+ onBlur: React.EventHandler<any>;
15
+ onChange: React.EventHandler<any>;
16
+ }
17
+ declare const RichTextEditor: React.ForwardRefExoticComponent<RichTextEditorProps & React.RefAttributes<unknown>>;
18
+ export default RichTextEditor;
19
+ //# sourceMappingURL=RichTextEditor.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RichTextEditor.d.ts","sourceRoot":"","sources":["../../../../src/components/designSystemExtension/RichTextEditor/RichTextEditor.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAqB,MAAM,OAAO,CAAC;AAe1C,UAAU,mBAAmB;IAC3B,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,YAAY,EAAE,MAAM,CAAC;IACrB,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,OAAO,CAAC;IACrB,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;IACf,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,EAAE,OAAO,CAAC;IAClB,QAAQ,EAAE,OAAO,CAAC;IAClB,QAAQ,EAAE,OAAO,CAAC;IAClB,KAAK,EAAE,OAAO,CAAC;IACf,MAAM,EAAE,KAAK,CAAC,YAAY,CAAC,GAAG,CAAC,CAAC;IAChC,QAAQ,EAAE,KAAK,CAAC,YAAY,CAAC,GAAG,CAAC,CAAC;CACnC;AAED,QAAA,MAAM,cAAc,qFAwFlB,CAAC;AAEH,eAAe,cAAc,CAAC"}
@@ -0,0 +1,75 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { forwardRef } from 'react';
3
+ import { Editor } from '@tinymce/tinymce-react';
4
+ import { FormControl, FormHelperText, InputLabel, makeStyles } from '@material-ui/core';
5
+ import { useAfterInitialEffect, useConsolidatedRef, useUID } from '../../../hooks';
6
+ const useStyles = makeStyles(theme => ({
7
+ fieldLabel: {
8
+ position: 'relative',
9
+ transform: 'translate(0, 0px) scale(1)',
10
+ marginBottom: '5px',
11
+ color: theme.palette.text.secondary
12
+ }
13
+ }));
14
+ const RichTextEditor = forwardRef(function RichTextEditor(props, ref) {
15
+ const classes = useStyles();
16
+ const uid = useUID();
17
+ const { id = uid, defaultValue, label, labelHidden, info, testId, placeholder, disabled, required, readOnly, error, onBlur, onChange } = props;
18
+ const editorRef = useConsolidatedRef(ref);
19
+ let richTextComponent = null;
20
+ useAfterInitialEffect(() => {
21
+ editorRef?.current.mode.set(readOnly || disabled ? 'readonly' : 'design');
22
+ }, [readOnly, disabled]);
23
+ const filePickerCallback = cb => {
24
+ const input = document.createElement('input');
25
+ input.setAttribute('type', 'file');
26
+ input.setAttribute('accept', 'image/*');
27
+ input.addEventListener('change', (e) => {
28
+ const file = e.target.files[0];
29
+ const reader = new FileReader();
30
+ reader.addEventListener('load', () => {
31
+ /*
32
+ Note: Now we need to register the blob in TinyMCEs image blob
33
+ registry. In the next release this part hopefully won't be
34
+ necessary, as we are looking to handle it internally.
35
+ */
36
+ const blobId = `blobid${new Date().getTime()}`;
37
+ const blobCache = editorRef.current.editorUpload.blobCache;
38
+ const base64 = reader.result.split(',')[1];
39
+ const blobInfo = blobCache.create(blobId, file, base64);
40
+ blobCache.add(blobInfo);
41
+ /* call the callback and populate the Title field with the file name */
42
+ cb(blobInfo.blobUri(), { title: file.name });
43
+ });
44
+ reader.readAsDataURL(file);
45
+ });
46
+ input.click();
47
+ };
48
+ if (readOnly) {
49
+ const value = defaultValue || '--';
50
+ // eslint-disable-next-line react/no-danger
51
+ richTextComponent = _jsx("div", { id: id, className: 'readonly-richtext-editor', dangerouslySetInnerHTML: { __html: value } }, id);
52
+ }
53
+ else {
54
+ richTextComponent = (_jsx(Editor, { tinymceScriptSrc: 'tinymce/tinymce.min.js', onInit: (_evt, editor) => {
55
+ editorRef.current = editor;
56
+ }, id: id, initialValue: defaultValue, disabled: disabled, init: {
57
+ placeholder,
58
+ menubar: false,
59
+ statusbar: false,
60
+ min_height: 130,
61
+ plugins: ['lists', 'advlist', 'autolink', 'image', 'link', 'autoresize'],
62
+ autoresize_bottom_margin: 0,
63
+ toolbar: disabled ? false : 'blocks | bold italic strikethrough | bullist numlist outdent indent | link image',
64
+ toolbar_location: 'bottom',
65
+ content_style: 'body { font-family:Helvetica, Arial,sans-serif; font-size:14px }',
66
+ branding: false,
67
+ paste_data_images: true,
68
+ file_picker_types: 'image',
69
+ file_picker_callback: filePickerCallback
70
+ }, onBlur: onBlur, onEditorChange: onChange }));
71
+ }
72
+ return (_jsxs(FormControl, { "data-test-id": testId, error: error, required: required, children: [!labelHidden && (_jsx(InputLabel, { id: 'demo-simple-select-error-label', className: classes.fieldLabel, children: label })), richTextComponent, info && _jsx(FormHelperText, { children: info })] }));
73
+ });
74
+ export default RichTextEditor;
75
+ //# sourceMappingURL=RichTextEditor.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RichTextEditor.js","sourceRoot":"","sources":["../../../../src/components/designSystemExtension/RichTextEditor/RichTextEditor.tsx"],"names":[],"mappings":";AAAA,OAAc,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;AAC1C,OAAO,EAAE,MAAM,EAAE,MAAM,wBAAwB,CAAC;AAChD,OAAO,EAAE,WAAW,EAAE,cAAc,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAExF,OAAO,EAAE,qBAAqB,EAAE,kBAAkB,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAEnF,MAAM,SAAS,GAAG,UAAU,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC;IACrC,UAAU,EAAE;QACV,QAA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ACD,EAAE,EAAE,EAAE,EACN,YAAY,EAAE,YAAY,EAC1B,QAAQ,EAAE,QAAQ,EAClB,IAAI,EAAE;gBACJ,WAAW;gBACX,OAAO,EAAE,KAAK;gBACd,SAAS,EAAE,KAAK;gBAChB,UAAU,EAAE,GAAG;gBACf,OAAO,EAAE,CAAC,OAAO,EAAE,SAAS,EAAE,UAAU,EAAE,OAAO,EAAE,MAAM,EAAE,YAAY,CAAC;gBACxE,wBAAwB,EAAE,CAAC;gBAC3B,OAAO,EAAE,QAAQ,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,kFAAkF;gBAC9G,gBAAgB,EAAE,QAAQ;gBAC1B,aAAa,EAAE,kEAAkE;gBACjF,QAAQ,EAAE,KAAK;gBACf,iBAAiB,EAAE,IAAI;gBACvB,iBAAiB,EAAE,OAAO;gBAC1B,oBAAoB,EAAE,kBAAkB;aACzC,EACD,MAAM,EAAE,MAAM,EACd,cAAc,EAAE,QAAQ,GACxB,CACH,CAAC;KACH;IAED,OAAO,CACL,MAAC,WAAW,oBAAe,MAAM,EAAE,KAAK,EAAE,KAAK,EAAE,QAAQ,EAAE,QAAQ,aAChE,CAAC,WAAW,IAAI,CACf,KAAC,UAAU,IAAC,EAAE,EAAC,gCAAgC,EAAC,SAAS,EAAE,OAAO,CAAC,UAAU,YAC1E,KAAK,GACK,CACd,EACA,iBAAiB,EACjB,IAAI,IAAI,KAAC,cAAc,cAAE,IAAI,GAAkB,IACpC,CACf,CAAC;AACJ,CAAC,CAAC,CAAC;AAEH,eAAe,cAAc,CAAC","sourcesContent":["import React, { forwardRef } from 'react';\nimport { Editor } from '@tinymce/tinymce-react';\nimport { FormControl, FormHelperText, InputLabel, makeStyles } from '@material-ui/core';\n\nimport { useAfterInitialEffect, useConsolidatedRef, useUID } from '../../../hooks';\n\nconst useStyles = makeStyles(theme => ({\n fieldLabel: {\n position: 'relative',\n transform: 'translate(0, 0px) scale(1)',\n marginBottom: '5px',\n color: theme.palette.text.secondary\n }\n}));\n\ninterface RichTextEditorProps {\n id?: string;\n defaultValue: string;\n label: string;\n labelHidden: boolean;\n info: string;\n testId: string;\n placeholder: string;\n disabled: boolean;\n required: boolean;\n readOnly: boolean;\n error: boolean;\n onBlur: React.EventHandler<any>;\n onChange: React.EventHandler<any>;\n}\n\nconst RichTextEditor = forwardRef(function RichTextEditor(props: RichTextEditorProps, ref) {\n const classes = useStyles();\n const uid = useUID();\n const { id = uid, defaultValue, label, labelHidden, info, testId, placeholder, disabled, required, readOnly, error, onBlur, onChange } = props;\n\n const editorRef: any = useConsolidatedRef(ref);\n let richTextComponent: any = null;\n\n useAfterInitialEffect(() => {\n editorRef?.current.mode.set(readOnly || disabled ? 'readonly' : 'design');\n }, [readOnly, disabled]);\n\n const filePickerCallback = cb => {\n const input = document.createElement('input');\n input.setAttribute('type', 'file');\n input.setAttribute('accept', 'image/*');\n\n input.addEventListener('change', (e: any) => {\n const file = e.target.files[0];\n\n const reader: any = new FileReader();\n reader.addEventListener('load', () => {\n /*\n Note: Now we need to register the blob in TinyMCEs image blob\n registry. In the next release this part hopefully won't be\n necessary, as we are looking to handle it internally.\n */\n const blobId = `blobid${new Date().getTime()}`;\n const blobCache = editorRef.current.editorUpload.blobCache;\n const base64 = reader.result.split(',')[1];\n const blobInfo = blobCache.create(blobId, file, base64);\n blobCache.add(blobInfo);\n\n /* call the callback and populate the Title field with the file name */\n cb(blobInfo.blobUri(), { title: file.name });\n });\n reader.readAsDataURL(file);\n });\n\n input.click();\n };\n\n if (readOnly) {\n const value = defaultValue || '--';\n // eslint-disable-next-line react/no-danger\n richTextComponent = <div key={id} id={id} className='readonly-richtext-editor' dangerouslySetInnerHTML={{ __html: value }} />;\n } else {\n richTextComponent = (\n <Editor\n tinymceScriptSrc='tinymce/tinymce.min.js'\n onInit={(_evt, editor) => {\n editorRef.current = editor;\n }}\n id={id}\n initialValue={defaultValue}\n disabled={disabled}\n init={{\n placeholder,\n menubar: false,\n statusbar: false,\n min_height: 130,\n plugins: ['lists', 'advlist', 'autolink', 'image', 'link', 'autoresize'],\n autoresize_bottom_margin: 0,\n toolbar: disabled ? false : 'blocks | bold italic strikethrough | bullist numlist outdent indent | link image',\n toolbar_location: 'bottom',\n content_style: 'body { font-family:Helvetica, Arial,sans-serif; font-size:14px }',\n branding: false,\n paste_data_images: true,\n file_picker_types: 'image',\n file_picker_callback: filePickerCallback\n }}\n onBlur={onBlur}\n onEditorChange={onChange}\n />\n );\n }\n\n return (\n <FormControl data-test-id={testId} error={error} required={required}>\n {!labelHidden && (\n <InputLabel id='demo-simple-select-error-label' className={classes.fieldLabel}>\n {label}\n </InputLabel>\n )}\n {richTextComponent}\n {info && <FormHelperText>{info}</FormHelperText>}\n </FormControl>\n );\n});\n\nexport default RichTextEditor;\n"]}
@@ -0,0 +1,2 @@
1
+ export { default } from './RichTextEditor';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/designSystemExtension/RichTextEditor/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC"}
@@ -0,0 +1,2 @@
1
+ export { default } from './RichTextEditor';
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/designSystemExtension/RichTextEditor/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC","sourcesContent":["export { default } from './RichTextEditor';\n"]}
@@ -1,7 +1,7 @@
1
1
  .quick-link-ul-list {
2
2
  list-style: none;
3
3
  padding: 0;
4
- grid-template-columns: repeat(3, 1fr);
4
+ grid-template-columns: repeat(auto-fill, minmax(min(40ch, 100%), 1fr));
5
5
  display: grid;
6
6
  gap: calc(1rem);
7
7
  }
@@ -33,4 +33,8 @@
33
33
  display: flex;
34
34
  align-items: center;
35
35
  gap: 0.5rem;
36
- }
36
+ }
37
+
38
+ .quick-link-heading {
39
+ margin-top: 8px;
40
+ }
@@ -1,4 +1,9 @@
1
1
  /// <reference types="react" />
2
2
  import './WssQuickCreate.css';
3
- export default function WssQuickCreate(props: any): JSX.Element;
3
+ interface WssQuickCreateProps {
4
+ heading: string;
5
+ actions?: any[];
6
+ }
7
+ export default function WssQuickCreate(props: WssQuickCreateProps): JSX.Element;
8
+ export {};
4
9
  //# sourceMappingURL=WssQuickCreate.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"WssQuickCreate.d.ts","sourceRoot":"","sources":["../../../../src/components/designSystemExtension/WssQuickCreate/WssQuickCreate.tsx"],"names":[],"mappings":";AAEA,OAAO,sBAAsB,CAAC;AAE9B,MAAM,CAAC,OAAO,UAAU,cAAc,CAAC,KAAK,KAAA,eAuB3C"}
1
+ {"version":3,"file":"WssQuickCreate.d.ts","sourceRoot":"","sources":["../../../../src/components/designSystemExtension/WssQuickCreate/WssQuickCreate.tsx"],"names":[],"mappings":";AACA,OAAO,sBAAsB,CAAC;AAI9B,UAAU,mBAAmB;IAE3B,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,CAAC,EAAE,GAAG,EAAE,CAAC;CACjB;AAED,MAAM,CAAC,OAAO,UAAU,cAAc,CAAC,KAAK,EAAE,mBAAmB,eAyBhE"}
@@ -1,17 +1,11 @@
1
- import React from 'react';
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import { Button } from '@material-ui/core';
3
3
  import './WssQuickCreate.css';
4
4
  export default function WssQuickCreate(props) {
5
5
  const { heading, actions } = props;
6
- return (React.createElement("div", null,
7
- React.createElement("h1", null, heading),
8
- React.createElement("ul", { className: 'quick-link-ul-list' }, actions &&
9
- actions.map(element => {
10
- return (React.createElement("li", { className: 'quick-link-list', key: element.label },
11
- React.createElement(Button, { className: 'quick-link-button', onClick: element.onClick },
12
- React.createElement("span", { className: 'quick-link-button-span' },
13
- element.icon && React.createElement("img", { className: 'quick-link-icon', src: element.icon }),
14
- React.createElement("span", null, element.label)))));
15
- }))));
6
+ return (_jsxs("div", { children: [_jsx("h1", { id: 'quick-links-heading', className: 'quick-link-heading', children: heading }), _jsx("ul", { id: 'quick-links', className: 'quick-link-ul-list', children: actions &&
7
+ actions.map(element => {
8
+ return (_jsx("li", { className: 'quick-link-list', children: _jsx(Button, { className: 'quick-link-button', onClick: element.onClick, children: _jsxs("span", { className: 'quick-link-button-span', children: [element.icon && _jsx("img", { className: 'quick-link-icon', src: element.icon }), _jsx("span", { children: element.label })] }) }) }, element.label));
9
+ }) })] }));
16
10
  }
17
11
  //# sourceMappingURL=WssQuickCreate.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"WssQuickCreate.js","sourceRoot":"","sources":["../../../../src/components/designSystemExtension/WssQuickCreate/WssQuickCreate.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAC3C,OAAO,sBAAsB,CAAC;AAE9B,MAAM,CAAC,OAAO,UAAU,cAAc,CAAC,KAAK;IAC1C,MAAM,EAAE,OAAO,EAAE,OAAO,EAAE,GAAG,KAAK,CAAC;IAEnC,OAAO,CACL;QACE,gCAAK,OAAO,CAAM;QAClB,4BAAI,SAAS,EAAC,oBAAoB,IAC/B,OAAO;YACN,OAAO,CAAC,GAAG,CAAC,OAAO,CAAC,EAAE;gBACpB,OAAO,CACP,4BAAI,SAAS,EAAC,iBAAiB,EAAC,GAAG,EAAE,OAAO,CAAC,KAAK;oBAChD,oBAAC,MAAM,IAAC,SAAS,EAAC,mBAAmB,EAAC,OAAO,EAAE,OAAO,CAAC,OAAO;wBAC5D,8BAAM,SAAS,EAAC,wBAAwB;4BACrC,OAAO,CAAC,IAAI,IAAI,6BAAK,SAAS,EAAC,iBAAiB,EAAC,GAAG,EAAE,OAAO,CAAC,IAAI,GAAG;4BACtE,kCAAO,OAAO,CAAC,KAAK,CAAQ,CACvB,CACA,CACN,CACJ,CAAC;YACJ,CAAC,CAAC,CACD,CACD,CACP,CAAC;AACJ,CAAC","sourcesContent":["import React from 'react';\nimport { Button } from '@material-ui/core';\nimport './WssQuickCreate.css';\n\nexport default function WssQuickCreate(props) {\n const { heading, actions } = props;\n\n return (\n <div>\n <h1>{heading}</h1>\n <ul className='quick-link-ul-list'>\n {actions &&\n actions.map(element => {\n return (\n <li className='quick-link-list' key={element.label}>\n <Button className='quick-link-button' onClick={element.onClick}>\n <span className='quick-link-button-span'>\n {element.icon && <img className='quick-link-icon' src={element.icon}/>}\n <span>{element.label}</span>\n </span>\n </Button>\n </li>\n );\n })}\n </ul>\n </div>\n );\n}\n"]}
1
+ {"version":3,"file":"WssQuickCreate.js","sourceRoot":"","sources":["../../../../src/components/designSystemExtension/WssQuickCreate/WssQuickCreate.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAC3C,OAAO,sBAAsB,CAAC;AAU9B,MAAM,CAAC,OAAO,UAAU,cAAc,CAAC,KAA0B;IAC/D,MAAM,EAAE,OAAO,EAAE,OAAO,EAAE,GAAG,KAAK,CAAC;IAEnC,OAAO,CACL,0BACE,aAAI,EAAE,EAAC,qBAAqB,EAAC,SAAS,EAAC,oBAAoB,YACxD,OAAO,GACL,EACL,aAAI,EAAE,EAAC,aAAa,EAAC,SAAS,EAAC,oBAAoB,YAChD,OAAO;oBACN,OAAO,CAAC,GAAG,CAAC,OAAO,CAAC,EAAE;wBACpB,OAAO,CACL,aAAI,SAAS,EAAC,iBAAiB,YAC7B,KAAC,MAAM,IAAC,SAAS,EAAC,mBAAmB,EAAC,OAAO,EAAE,OAAO,CAAC,OAAO,YAC5D,gBAAM,SAAS,EAAC,wBAAwB,aACrC,OAAO,CAAC,IAAI,IAAI,cAAK,SAAS,EAAC,iBAAiB,EAAC,GAAG,EAAE,OAAO,CAAC,IAAI,GAAI,EACvE,yBAAO,OAAO,CAAC,KAAK,GAAQ,IACvB,GACA,IAN0B,OAAO,CAAC,KAAK,CAO7C,CACN,CAAC;oBACJ,CAAC,CAAC,GACD,IACD,CACP,CAAC;AACJ,CAAC","sourcesContent":["import { Button } from '@material-ui/core';\nimport './WssQuickCreate.css';\n\n// WssQuickCreate is one of the few components that does NOT have getPConnect.\n// So, no need to extend PConnProps\ninterface WssQuickCreateProps {\n // If any, enter additional props that only exist on this component\n heading: string;\n actions?: any[];\n}\n\nexport default function WssQuickCreate(props: WssQuickCreateProps) {\n const { heading, actions } = props;\n\n return (\n <div>\n <h1 id='quick-links-heading' className='quick-link-heading'>\n {heading}\n </h1>\n <ul id='quick-links' className='quick-link-ul-list'>\n {actions &&\n actions.map(element => {\n return (\n <li className='quick-link-list' key={element.label}>\n <Button className='quick-link-button' onClick={element.onClick}>\n <span className='quick-link-button-span'>\n {element.icon && <img className='quick-link-icon' src={element.icon} />}\n <span>{element.label}</span>\n </span>\n </Button>\n </li>\n );\n })}\n </ul>\n </div>\n );\n}\n"]}