@pega/react-sdk-components 23.1.10 → 23.1.12

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 (605) 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.js +3 -3
  5. package/lib/bridge/Context/StoreContext.js.map +1 -1
  6. package/lib/bridge/helpers/sdk_component_map.d.ts.map +1 -1
  7. package/lib/bridge/helpers/sdk_component_map.js +24 -47
  8. package/lib/bridge/helpers/sdk_component_map.js.map +1 -1
  9. package/lib/bridge/react_pconnect.d.ts.map +1 -1
  10. package/lib/bridge/react_pconnect.js +17 -28
  11. package/lib/bridge/react_pconnect.js.map +1 -1
  12. package/lib/components/designSystemExtension/AlertBanner/AlertBanner.d.ts +1 -1
  13. package/lib/components/designSystemExtension/AlertBanner/AlertBanner.d.ts.map +1 -1
  14. package/lib/components/designSystemExtension/AlertBanner/AlertBanner.js +2 -2
  15. package/lib/components/designSystemExtension/AlertBanner/AlertBanner.js.map +1 -1
  16. package/lib/components/designSystemExtension/Banner/Banner.d.ts.map +1 -1
  17. package/lib/components/designSystemExtension/Banner/Banner.js +2 -10
  18. package/lib/components/designSystemExtension/Banner/Banner.js.map +1 -1
  19. package/lib/components/designSystemExtension/CaseSummaryFields/CaseSummaryFields.css +0 -1
  20. package/lib/components/designSystemExtension/CaseSummaryFields/CaseSummaryFields.d.ts +1 -1
  21. package/lib/components/designSystemExtension/CaseSummaryFields/CaseSummaryFields.d.ts.map +1 -1
  22. package/lib/components/designSystemExtension/CaseSummaryFields/CaseSummaryFields.js +30 -27
  23. package/lib/components/designSystemExtension/CaseSummaryFields/CaseSummaryFields.js.map +1 -1
  24. package/lib/components/designSystemExtension/DetailsFields/DetailsFields.d.ts +1 -1
  25. package/lib/components/designSystemExtension/DetailsFields/DetailsFields.d.ts.map +1 -1
  26. package/lib/components/designSystemExtension/DetailsFields/DetailsFields.js +9 -15
  27. package/lib/components/designSystemExtension/DetailsFields/DetailsFields.js.map +1 -1
  28. package/lib/components/designSystemExtension/DetailsFields/index.js.map +1 -1
  29. package/lib/components/designSystemExtension/FieldGroup/FieldGroup.d.ts +5 -4
  30. package/lib/components/designSystemExtension/FieldGroup/FieldGroup.d.ts.map +1 -1
  31. package/lib/components/designSystemExtension/FieldGroup/FieldGroup.js +23 -12
  32. package/lib/components/designSystemExtension/FieldGroup/FieldGroup.js.map +1 -1
  33. package/lib/components/designSystemExtension/FieldGroupList/FieldGroupList.d.ts +1 -1
  34. package/lib/components/designSystemExtension/FieldGroupList/FieldGroupList.d.ts.map +1 -1
  35. package/lib/components/designSystemExtension/FieldGroupList/FieldGroupList.js +4 -16
  36. package/lib/components/designSystemExtension/FieldGroupList/FieldGroupList.js.map +1 -1
  37. package/lib/components/designSystemExtension/FieldValueList/FieldValueList.d.ts +1 -0
  38. package/lib/components/designSystemExtension/FieldValueList/FieldValueList.d.ts.map +1 -1
  39. package/lib/components/designSystemExtension/FieldValueList/FieldValueList.js +7 -11
  40. package/lib/components/designSystemExtension/FieldValueList/FieldValueList.js.map +1 -1
  41. package/lib/components/designSystemExtension/Operator/Operator.d.ts +15 -15
  42. package/lib/components/designSystemExtension/Operator/Operator.d.ts.map +1 -1
  43. package/lib/components/designSystemExtension/Operator/Operator.js +49 -62
  44. package/lib/components/designSystemExtension/Operator/Operator.js.map +1 -1
  45. package/lib/components/designSystemExtension/Pulse/Pulse.d.ts +2 -3
  46. package/lib/components/designSystemExtension/Pulse/Pulse.d.ts.map +1 -1
  47. package/lib/components/designSystemExtension/Pulse/Pulse.js +7 -10
  48. package/lib/components/designSystemExtension/Pulse/Pulse.js.map +1 -1
  49. package/lib/components/designSystemExtension/RichTextEditor/RichTextEditor.d.ts.map +1 -1
  50. package/lib/components/designSystemExtension/RichTextEditor/RichTextEditor.js +7 -9
  51. package/lib/components/designSystemExtension/RichTextEditor/RichTextEditor.js.map +1 -1
  52. package/lib/components/designSystemExtension/WssQuickCreate/WssQuickCreate.d.ts +1 -1
  53. package/lib/components/designSystemExtension/WssQuickCreate/WssQuickCreate.d.ts.map +1 -1
  54. package/lib/components/designSystemExtension/WssQuickCreate/WssQuickCreate.js +5 -11
  55. package/lib/components/designSystemExtension/WssQuickCreate/WssQuickCreate.js.map +1 -1
  56. package/lib/components/field/AutoComplete/AutoComplete.d.ts +2 -2
  57. package/lib/components/field/AutoComplete/AutoComplete.d.ts.map +1 -1
  58. package/lib/components/field/AutoComplete/AutoComplete.js +21 -23
  59. package/lib/components/field/AutoComplete/AutoComplete.js.map +1 -1
  60. package/lib/components/field/CancelAlert/CancelAlert.d.ts +8 -3
  61. package/lib/components/field/CancelAlert/CancelAlert.d.ts.map +1 -1
  62. package/lib/components/field/CancelAlert/CancelAlert.js +76 -68
  63. package/lib/components/field/CancelAlert/CancelAlert.js.map +1 -1
  64. package/lib/components/field/CancelAlert/index.js.map +1 -1
  65. package/lib/components/field/Checkbox/Checkbox.d.ts +16 -1
  66. package/lib/components/field/Checkbox/Checkbox.d.ts.map +1 -1
  67. package/lib/components/field/Checkbox/Checkbox.js +59 -45
  68. package/lib/components/field/Checkbox/Checkbox.js.map +1 -1
  69. package/lib/components/field/Currency/Currency.d.ts +1 -1
  70. package/lib/components/field/Currency/Currency.d.ts.map +1 -1
  71. package/lib/components/field/Currency/Currency.js +13 -34
  72. package/lib/components/field/Currency/Currency.js.map +1 -1
  73. package/lib/components/field/Currency/currency-utils.d.ts.map +1 -1
  74. package/lib/components/field/Currency/currency-utils.js +4 -5
  75. package/lib/components/field/Currency/currency-utils.js.map +1 -1
  76. package/lib/components/field/Date/Date.d.ts +1 -1
  77. package/lib/components/field/Date/Date.d.ts.map +1 -1
  78. package/lib/components/field/Date/Date.js +14 -10
  79. package/lib/components/field/Date/Date.js.map +1 -1
  80. package/lib/components/field/DateTime/DateTime.d.ts +1 -1
  81. package/lib/components/field/DateTime/DateTime.d.ts.map +1 -1
  82. package/lib/components/field/DateTime/DateTime.js +8 -8
  83. package/lib/components/field/DateTime/DateTime.js.map +1 -1
  84. package/lib/components/field/Decimal/Decimal.d.ts +2 -1
  85. package/lib/components/field/Decimal/Decimal.d.ts.map +1 -1
  86. package/lib/components/field/Decimal/Decimal.js +18 -28
  87. package/lib/components/field/Decimal/Decimal.js.map +1 -1
  88. package/lib/components/field/Decimal/index.js.map +1 -1
  89. package/lib/components/field/Dropdown/Dropdown.d.ts +13 -1
  90. package/lib/components/field/Dropdown/Dropdown.d.ts.map +1 -1
  91. package/lib/components/field/Dropdown/Dropdown.js +105 -29
  92. package/lib/components/field/Dropdown/Dropdown.js.map +1 -1
  93. package/lib/components/field/Email/Email.d.ts +1 -1
  94. package/lib/components/field/Email/Email.d.ts.map +1 -1
  95. package/lib/components/field/Email/Email.js +8 -9
  96. package/lib/components/field/Email/Email.js.map +1 -1
  97. package/lib/components/field/Email/index.js.map +1 -1
  98. package/lib/components/field/Group/Group.d.ts +13 -0
  99. package/lib/components/field/Group/Group.d.ts.map +1 -0
  100. package/lib/components/field/Group/Group.js +15 -0
  101. package/lib/components/field/Group/Group.js.map +1 -0
  102. package/lib/components/field/Group/index.d.ts +2 -0
  103. package/lib/components/field/Group/index.d.ts.map +1 -0
  104. package/lib/components/field/Group/index.js +2 -0
  105. package/lib/components/field/Group/index.js.map +1 -0
  106. package/lib/components/field/Integer/Integer.d.ts +1 -1
  107. package/lib/components/field/Integer/Integer.d.ts.map +1 -1
  108. package/lib/components/field/Integer/Integer.js +6 -6
  109. package/lib/components/field/Integer/Integer.js.map +1 -1
  110. package/lib/components/field/MultiSelect/Multiselect.d.ts +3 -0
  111. package/lib/components/field/MultiSelect/Multiselect.d.ts.map +1 -0
  112. package/lib/components/field/MultiSelect/Multiselect.js +175 -0
  113. package/lib/components/field/MultiSelect/Multiselect.js.map +1 -0
  114. package/lib/components/field/MultiSelect/index.d.ts +2 -0
  115. package/lib/components/field/MultiSelect/index.d.ts.map +1 -0
  116. package/lib/components/field/MultiSelect/index.js +2 -0
  117. package/lib/components/field/MultiSelect/index.js.map +1 -0
  118. package/lib/components/field/MultiSelect/utils.d.ts +10 -0
  119. package/lib/components/field/MultiSelect/utils.d.ts.map +1 -0
  120. package/lib/components/field/MultiSelect/utils.js +197 -0
  121. package/lib/components/field/MultiSelect/utils.js.map +1 -0
  122. package/lib/components/field/Percentage/Percentage.d.ts +2 -1
  123. package/lib/components/field/Percentage/Percentage.d.ts.map +1 -1
  124. package/lib/components/field/Percentage/Percentage.js +25 -28
  125. package/lib/components/field/Percentage/Percentage.js.map +1 -1
  126. package/lib/components/field/Phone/Phone.d.ts +1 -1
  127. package/lib/components/field/Phone/Phone.d.ts.map +1 -1
  128. package/lib/components/field/Phone/Phone.js +9 -10
  129. package/lib/components/field/Phone/Phone.js.map +1 -1
  130. package/lib/components/field/Phone/index.js.map +1 -1
  131. package/lib/components/field/RadioButtons/RadioButtons.d.ts +7 -1
  132. package/lib/components/field/RadioButtons/RadioButtons.d.ts.map +1 -1
  133. package/lib/components/field/RadioButtons/RadioButtons.js +18 -21
  134. package/lib/components/field/RadioButtons/RadioButtons.js.map +1 -1
  135. package/lib/components/field/RichText/RichText.d.ts +1 -1
  136. package/lib/components/field/RichText/RichText.d.ts.map +1 -1
  137. package/lib/components/field/RichText/RichText.js +9 -8
  138. package/lib/components/field/RichText/RichText.js.map +1 -1
  139. package/lib/components/field/ScalarList/ScalarList.d.ts +1 -1
  140. package/lib/components/field/ScalarList/ScalarList.d.ts.map +1 -1
  141. package/lib/components/field/ScalarList/ScalarList.js +7 -9
  142. package/lib/components/field/ScalarList/ScalarList.js.map +1 -1
  143. package/lib/components/field/SemanticLink/SemanticLink.d.ts +1 -1
  144. package/lib/components/field/SemanticLink/SemanticLink.d.ts.map +1 -1
  145. package/lib/components/field/SemanticLink/SemanticLink.js +4 -8
  146. package/lib/components/field/SemanticLink/SemanticLink.js.map +1 -1
  147. package/lib/components/field/SemanticLink/utils.d.ts.map +1 -1
  148. package/lib/components/field/SemanticLink/utils.js +8 -8
  149. package/lib/components/field/SemanticLink/utils.js.map +1 -1
  150. package/lib/components/field/TextArea/TextArea.d.ts +1 -1
  151. package/lib/components/field/TextArea/TextArea.d.ts.map +1 -1
  152. package/lib/components/field/TextArea/TextArea.js +5 -5
  153. package/lib/components/field/TextArea/TextArea.js.map +1 -1
  154. package/lib/components/field/TextContent/TextContent.d.ts +1 -1
  155. package/lib/components/field/TextContent/TextContent.d.ts.map +1 -1
  156. package/lib/components/field/TextContent/TextContent.js +2 -2
  157. package/lib/components/field/TextContent/TextContent.js.map +1 -1
  158. package/lib/components/field/TextInput/TextInput.d.ts +1 -1
  159. package/lib/components/field/TextInput/TextInput.d.ts.map +1 -1
  160. package/lib/components/field/TextInput/TextInput.js +7 -6
  161. package/lib/components/field/TextInput/TextInput.js.map +1 -1
  162. package/lib/components/field/TextInput/index.js.map +1 -1
  163. package/lib/components/field/Time/Time.d.ts +1 -1
  164. package/lib/components/field/Time/Time.d.ts.map +1 -1
  165. package/lib/components/field/Time/Time.js +7 -7
  166. package/lib/components/field/Time/Time.js.map +1 -1
  167. package/lib/components/field/URL/URL.d.ts +1 -1
  168. package/lib/components/field/URL/URL.d.ts.map +1 -1
  169. package/lib/components/field/URL/URL.js +6 -6
  170. package/lib/components/field/URL/URL.js.map +1 -1
  171. package/lib/components/field/URL/index.js.map +1 -1
  172. package/lib/components/field/UserReference/UserReference.d.ts +3 -3
  173. package/lib/components/field/UserReference/UserReference.d.ts.map +1 -1
  174. package/lib/components/field/UserReference/UserReference.js +11 -11
  175. package/lib/components/field/UserReference/UserReference.js.map +1 -1
  176. package/lib/components/field/UserReference/UserReferenceUtils.js +2 -2
  177. package/lib/components/field/UserReference/UserReferenceUtils.js.map +1 -1
  178. package/lib/components/helpers/attachmentHelpers.d.ts.map +1 -1
  179. package/lib/components/helpers/attachmentHelpers.js +6 -6
  180. package/lib/components/helpers/attachmentHelpers.js.map +1 -1
  181. package/lib/components/helpers/case-utils.d.ts.map +1 -1
  182. package/lib/components/helpers/case-utils.js +5 -5
  183. package/lib/components/helpers/case-utils.js.map +1 -1
  184. package/lib/components/helpers/common-utils.d.ts +1 -0
  185. package/lib/components/helpers/common-utils.d.ts.map +1 -1
  186. package/lib/components/helpers/common-utils.js +4 -1
  187. package/lib/components/helpers/common-utils.js.map +1 -1
  188. package/lib/components/helpers/data_page.d.ts.map +1 -1
  189. package/lib/components/helpers/data_page.js +2 -3
  190. package/lib/components/helpers/data_page.js.map +1 -1
  191. package/lib/components/helpers/date-format-utils.js.map +1 -1
  192. package/lib/components/helpers/event-utils.js +3 -3
  193. package/lib/components/helpers/event-utils.js.map +1 -1
  194. package/lib/components/helpers/field-group-utils.js +1 -1
  195. package/lib/components/helpers/field-group-utils.js.map +1 -1
  196. package/lib/components/helpers/formatters/Boolean.d.ts.map +1 -1
  197. package/lib/components/helpers/formatters/Boolean.js +9 -20
  198. package/lib/components/helpers/formatters/Boolean.js.map +1 -1
  199. package/lib/components/helpers/formatters/Currency.d.ts +2 -2
  200. package/lib/components/helpers/formatters/Currency.d.ts.map +1 -1
  201. package/lib/components/helpers/formatters/Currency.js +13 -14
  202. package/lib/components/helpers/formatters/Currency.js.map +1 -1
  203. package/lib/components/helpers/formatters/CurrencyMap.d.ts.map +1 -1
  204. package/lib/components/helpers/formatters/CurrencyMap.js +500 -500
  205. package/lib/components/helpers/formatters/CurrencyMap.js.map +1 -1
  206. package/lib/components/helpers/formatters/Date.d.ts +4 -4
  207. package/lib/components/helpers/formatters/Date.d.ts.map +1 -1
  208. package/lib/components/helpers/formatters/Date.js +20 -20
  209. package/lib/components/helpers/formatters/Date.js.map +1 -1
  210. package/lib/components/helpers/formatters/common.d.ts.map +1 -1
  211. package/lib/components/helpers/formatters/common.js +1 -1
  212. package/lib/components/helpers/formatters/common.js.map +1 -1
  213. package/lib/components/helpers/formatters/index.d.ts +6 -6
  214. package/lib/components/helpers/formatters/index.d.ts.map +1 -1
  215. package/lib/components/helpers/formatters/index.js +25 -19
  216. package/lib/components/helpers/formatters/index.js.map +1 -1
  217. package/lib/components/helpers/instructions-utils.d.ts +5 -0
  218. package/lib/components/helpers/instructions-utils.d.ts.map +1 -0
  219. package/lib/components/helpers/instructions-utils.js +36 -0
  220. package/lib/components/helpers/instructions-utils.js.map +1 -0
  221. package/lib/components/helpers/reactContextHelpers.d.ts.map +1 -1
  222. package/lib/components/helpers/reactContextHelpers.js +1 -1
  223. package/lib/components/helpers/reactContextHelpers.js.map +1 -1
  224. package/lib/components/helpers/simpleTableHelpers.d.ts.map +1 -1
  225. package/lib/components/helpers/simpleTableHelpers.js +44 -52
  226. package/lib/components/helpers/simpleTableHelpers.js.map +1 -1
  227. package/lib/components/helpers/state-utils.d.ts.map +1 -1
  228. package/lib/components/helpers/state-utils.js +6 -8
  229. package/lib/components/helpers/state-utils.js.map +1 -1
  230. package/lib/components/helpers/template-utils.d.ts +1 -1
  231. package/lib/components/helpers/template-utils.d.ts.map +1 -1
  232. package/lib/components/helpers/template-utils.js +1 -2
  233. package/lib/components/helpers/template-utils.js.map +1 -1
  234. package/lib/components/helpers/utils.d.ts +1 -1
  235. package/lib/components/helpers/utils.d.ts.map +1 -1
  236. package/lib/components/helpers/utils.js +3 -8
  237. package/lib/components/helpers/utils.js.map +1 -1
  238. package/lib/components/helpers/versionHelpers.d.ts.map +1 -1
  239. package/lib/components/helpers/versionHelpers.js +1 -1
  240. package/lib/components/helpers/versionHelpers.js.map +1 -1
  241. package/lib/components/infra/ActionButtons/ActionButtons.d.ts +2 -2
  242. package/lib/components/infra/ActionButtons/ActionButtons.d.ts.map +1 -1
  243. package/lib/components/infra/ActionButtons/ActionButtons.js +10 -14
  244. package/lib/components/infra/ActionButtons/ActionButtons.js.map +1 -1
  245. package/lib/components/infra/ActionButtons/index.js.map +1 -1
  246. package/lib/components/infra/Assignment/Assignment.d.ts +10 -2
  247. package/lib/components/infra/Assignment/Assignment.d.ts.map +1 -1
  248. package/lib/components/infra/Assignment/Assignment.js +68 -71
  249. package/lib/components/infra/Assignment/Assignment.js.map +1 -1
  250. package/lib/components/infra/Assignment/index.js.map +1 -1
  251. package/lib/components/infra/AssignmentCard/AssignmentCard.d.ts +3 -5
  252. package/lib/components/infra/AssignmentCard/AssignmentCard.d.ts.map +1 -1
  253. package/lib/components/infra/AssignmentCard/AssignmentCard.js +4 -5
  254. package/lib/components/infra/AssignmentCard/AssignmentCard.js.map +1 -1
  255. package/lib/components/infra/AssignmentCard/index.js.map +1 -1
  256. package/lib/components/infra/Containers/FlowContainer/FlowContainer.d.ts +11 -1
  257. package/lib/components/infra/Containers/FlowContainer/FlowContainer.d.ts.map +1 -1
  258. package/lib/components/infra/Containers/FlowContainer/FlowContainer.js +36 -158
  259. package/lib/components/infra/Containers/FlowContainer/FlowContainer.js.map +1 -1
  260. package/lib/components/infra/Containers/FlowContainer/helpers.d.ts.map +1 -1
  261. package/lib/components/infra/Containers/FlowContainer/helpers.js +30 -30
  262. package/lib/components/infra/Containers/FlowContainer/helpers.js.map +1 -1
  263. package/lib/components/infra/Containers/FlowContainer/index.js.map +1 -1
  264. package/lib/components/infra/Containers/ModalViewContainer/ListViewActionButtons/ListViewActionButtons.d.ts +9 -0
  265. package/lib/components/infra/Containers/ModalViewContainer/ListViewActionButtons/ListViewActionButtons.d.ts.map +1 -0
  266. package/lib/components/infra/Containers/ModalViewContainer/ListViewActionButtons/ListViewActionButtons.js +36 -0
  267. package/lib/components/infra/Containers/ModalViewContainer/ListViewActionButtons/ListViewActionButtons.js.map +1 -0
  268. package/lib/components/infra/Containers/ModalViewContainer/ListViewActionButtons/index.d.ts +2 -0
  269. package/lib/components/infra/Containers/ModalViewContainer/ListViewActionButtons/index.d.ts.map +1 -0
  270. package/lib/components/infra/Containers/ModalViewContainer/ListViewActionButtons/index.js +2 -0
  271. package/lib/components/infra/Containers/ModalViewContainer/ListViewActionButtons/index.js.map +1 -0
  272. package/lib/components/infra/Containers/ModalViewContainer/ModalViewContainer.d.ts +8 -1
  273. package/lib/components/infra/Containers/ModalViewContainer/ModalViewContainer.d.ts.map +1 -1
  274. package/lib/components/infra/Containers/ModalViewContainer/ModalViewContainer.js +178 -160
  275. package/lib/components/infra/Containers/ModalViewContainer/ModalViewContainer.js.map +1 -1
  276. package/lib/components/infra/Containers/ModalViewContainer/index.js.map +1 -1
  277. package/lib/components/infra/Containers/SimpleView/SimpleView.d.ts +9 -0
  278. package/lib/components/infra/Containers/SimpleView/SimpleView.d.ts.map +1 -0
  279. package/lib/components/infra/Containers/SimpleView/SimpleView.js +29 -0
  280. package/lib/components/infra/Containers/SimpleView/SimpleView.js.map +1 -0
  281. package/lib/components/infra/Containers/SimpleView/helper.d.ts +10 -0
  282. package/lib/components/infra/Containers/SimpleView/helper.d.ts.map +1 -0
  283. package/lib/components/infra/Containers/SimpleView/helper.js +102 -0
  284. package/lib/components/infra/Containers/SimpleView/helper.js.map +1 -0
  285. package/lib/components/infra/Containers/SimpleView/index.d.ts +2 -0
  286. package/lib/components/infra/Containers/SimpleView/index.d.ts.map +1 -0
  287. package/lib/components/infra/Containers/SimpleView/index.js +2 -0
  288. package/lib/components/infra/Containers/SimpleView/index.js.map +1 -0
  289. package/lib/components/infra/Containers/ViewContainer/ViewContainer.d.ts +1 -1
  290. package/lib/components/infra/Containers/ViewContainer/ViewContainer.d.ts.map +1 -1
  291. package/lib/components/infra/Containers/ViewContainer/ViewContainer.js +17 -24
  292. package/lib/components/infra/Containers/ViewContainer/ViewContainer.js.map +1 -1
  293. package/lib/components/infra/Containers/helpers.d.ts +2 -0
  294. package/lib/components/infra/Containers/helpers.d.ts.map +1 -0
  295. package/lib/components/infra/Containers/helpers.js +7 -0
  296. package/lib/components/infra/Containers/helpers.js.map +1 -0
  297. package/lib/components/infra/DashboardFilter/DashboardFilter.d.ts +3 -4
  298. package/lib/components/infra/DashboardFilter/DashboardFilter.d.ts.map +1 -1
  299. package/lib/components/infra/DashboardFilter/DashboardFilter.js +13 -17
  300. package/lib/components/infra/DashboardFilter/DashboardFilter.js.map +1 -1
  301. package/lib/components/infra/DashboardFilter/filterUtils.d.ts.map +1 -1
  302. package/lib/components/infra/DashboardFilter/filterUtils.js +10 -12
  303. package/lib/components/infra/DashboardFilter/filterUtils.js.map +1 -1
  304. package/lib/components/infra/DeferLoad/DeferLoad.d.ts +9 -1
  305. package/lib/components/infra/DeferLoad/DeferLoad.d.ts.map +1 -1
  306. package/lib/components/infra/DeferLoad/DeferLoad.js +8 -17
  307. package/lib/components/infra/DeferLoad/DeferLoad.js.map +1 -1
  308. package/lib/components/infra/DeferLoad/index.js.map +1 -1
  309. package/lib/components/infra/ErrorBoundary/ErrorBoundary.d.ts +1 -1
  310. package/lib/components/infra/ErrorBoundary/ErrorBoundary.d.ts.map +1 -1
  311. package/lib/components/infra/ErrorBoundary/ErrorBoundary.js +15 -14
  312. package/lib/components/infra/ErrorBoundary/ErrorBoundary.js.map +1 -1
  313. package/lib/components/infra/MultiStep/MultiStep.css +11 -15
  314. package/lib/components/infra/MultiStep/MultiStep.d.ts +5 -7
  315. package/lib/components/infra/MultiStep/MultiStep.d.ts.map +1 -1
  316. package/lib/components/infra/MultiStep/MultiStep.js +29 -80
  317. package/lib/components/infra/MultiStep/MultiStep.js.map +1 -1
  318. package/lib/components/infra/MultiStep/index.js.map +1 -1
  319. package/lib/components/infra/NavBar/NavBar.css +103 -105
  320. package/lib/components/infra/NavBar/NavBar.d.ts +3 -3
  321. package/lib/components/infra/NavBar/NavBar.d.ts.map +1 -1
  322. package/lib/components/infra/NavBar/NavBar.js +18 -52
  323. package/lib/components/infra/NavBar/NavBar.js.map +1 -1
  324. package/lib/components/infra/Reference/Reference.d.ts +9 -1
  325. package/lib/components/infra/Reference/Reference.d.ts.map +1 -1
  326. package/lib/components/infra/Reference/Reference.js +6 -13
  327. package/lib/components/infra/Reference/Reference.js.map +1 -1
  328. package/lib/components/infra/Region/Region.d.ts +2 -3
  329. package/lib/components/infra/Region/Region.d.ts.map +1 -1
  330. package/lib/components/infra/Region/Region.js +2 -3
  331. package/lib/components/infra/Region/Region.js.map +1 -1
  332. package/lib/components/infra/RootContainer/RootContainer.d.ts +14 -1
  333. package/lib/components/infra/RootContainer/RootContainer.d.ts.map +1 -1
  334. package/lib/components/infra/RootContainer/RootContainer.js +40 -62
  335. package/lib/components/infra/RootContainer/RootContainer.js.map +1 -1
  336. package/lib/components/infra/RootContainer/index.js.map +1 -1
  337. package/lib/components/infra/Stages/Stages.d.ts +2 -2
  338. package/lib/components/infra/Stages/Stages.d.ts.map +1 -1
  339. package/lib/components/infra/Stages/Stages.js +18 -21
  340. package/lib/components/infra/Stages/Stages.js.map +1 -1
  341. package/lib/components/infra/VerticalTabs/LeftAlignVerticalTabs/LeftAlignVerticalTabs.d.ts.map +1 -1
  342. package/lib/components/infra/VerticalTabs/LeftAlignVerticalTabs/LeftAlignVerticalTabs.js +6 -8
  343. package/lib/components/infra/VerticalTabs/LeftAlignVerticalTabs/LeftAlignVerticalTabs.js.map +1 -1
  344. package/lib/components/infra/VerticalTabs/VerticalTabs/VerticalTabs.d.ts +1 -1
  345. package/lib/components/infra/VerticalTabs/VerticalTabs/VerticalTabs.d.ts.map +1 -1
  346. package/lib/components/infra/VerticalTabs/VerticalTabs/VerticalTabs.js +10 -9
  347. package/lib/components/infra/VerticalTabs/VerticalTabs/VerticalTabs.js.map +1 -1
  348. package/lib/components/infra/View/View.d.ts +3 -4
  349. package/lib/components/infra/View/View.d.ts.map +1 -1
  350. package/lib/components/infra/View/View.js +6 -11
  351. package/lib/components/infra/View/View.js.map +1 -1
  352. package/lib/components/template/AppShell/AppShell.css +22 -23
  353. package/lib/components/template/AppShell/AppShell.d.ts +6 -7
  354. package/lib/components/template/AppShell/AppShell.d.ts.map +1 -1
  355. package/lib/components/template/AppShell/AppShell.js +23 -29
  356. package/lib/components/template/AppShell/AppShell.js.map +1 -1
  357. package/lib/components/template/BannerPage/BannerPage.d.ts +4 -4
  358. package/lib/components/template/BannerPage/BannerPage.d.ts.map +1 -1
  359. package/lib/components/template/BannerPage/BannerPage.js +3 -3
  360. package/lib/components/template/BannerPage/BannerPage.js.map +1 -1
  361. package/lib/components/template/CaseSummary/CaseSummary.d.ts +3 -4
  362. package/lib/components/template/CaseSummary/CaseSummary.d.ts.map +1 -1
  363. package/lib/components/template/CaseSummary/CaseSummary.js +44 -8
  364. package/lib/components/template/CaseSummary/CaseSummary.js.map +1 -1
  365. package/lib/components/template/CaseView/CaseView.d.ts +3 -4
  366. package/lib/components/template/CaseView/CaseView.d.ts.map +1 -1
  367. package/lib/components/template/CaseView/CaseView.js +18 -41
  368. package/lib/components/template/CaseView/CaseView.js.map +1 -1
  369. package/lib/components/template/CaseViewActionsMenu/CaseViewActionsMenu.d.ts +3 -3
  370. package/lib/components/template/CaseViewActionsMenu/CaseViewActionsMenu.d.ts.map +1 -1
  371. package/lib/components/template/CaseViewActionsMenu/CaseViewActionsMenu.js +37 -7
  372. package/lib/components/template/CaseViewActionsMenu/CaseViewActionsMenu.js.map +1 -1
  373. package/lib/components/template/Confirmation/Confirmation.d.ts +3 -4
  374. package/lib/components/template/Confirmation/Confirmation.d.ts.map +1 -1
  375. package/lib/components/template/Confirmation/Confirmation.js +7 -14
  376. package/lib/components/template/Confirmation/Confirmation.js.map +1 -1
  377. package/lib/components/template/DataReference/DataReference.d.ts +4 -4
  378. package/lib/components/template/DataReference/DataReference.d.ts.map +1 -1
  379. package/lib/components/template/DataReference/DataReference.js +35 -49
  380. package/lib/components/template/DataReference/DataReference.js.map +1 -1
  381. package/lib/components/template/DefaultForm/DefaultForm.css +7 -3
  382. package/lib/components/template/DefaultForm/DefaultForm.d.ts +8 -2
  383. package/lib/components/template/DefaultForm/DefaultForm.d.ts.map +1 -1
  384. package/lib/components/template/DefaultForm/DefaultForm.js +5 -14
  385. package/lib/components/template/DefaultForm/DefaultForm.js.map +1 -1
  386. package/lib/components/template/Details/Details/Details.d.ts +8 -1
  387. package/lib/components/template/Details/Details/Details.d.ts.map +1 -1
  388. package/lib/components/template/Details/Details/Details.js +5 -13
  389. package/lib/components/template/Details/Details/Details.js.map +1 -1
  390. package/lib/components/template/Details/DetailsSubTabs/DetailsSubTabs.d.ts +3 -4
  391. package/lib/components/template/Details/DetailsSubTabs/DetailsSubTabs.d.ts.map +1 -1
  392. package/lib/components/template/Details/DetailsSubTabs/DetailsSubTabs.js +5 -10
  393. package/lib/components/template/Details/DetailsSubTabs/DetailsSubTabs.js.map +1 -1
  394. package/lib/components/template/Details/DetailsThreeColumn/DetailsThreeColumn.d.ts +8 -1
  395. package/lib/components/template/Details/DetailsThreeColumn/DetailsThreeColumn.d.ts.map +1 -1
  396. package/lib/components/template/Details/DetailsThreeColumn/DetailsThreeColumn.js +5 -16
  397. package/lib/components/template/Details/DetailsThreeColumn/DetailsThreeColumn.js.map +1 -1
  398. package/lib/components/template/Details/DetailsTwoColumn/DetailsTwoColumn.d.ts +8 -1
  399. package/lib/components/template/Details/DetailsTwoColumn/DetailsTwoColumn.d.ts.map +1 -1
  400. package/lib/components/template/Details/DetailsTwoColumn/DetailsTwoColumn.js +5 -16
  401. package/lib/components/template/Details/DetailsTwoColumn/DetailsTwoColumn.js.map +1 -1
  402. package/lib/components/template/Details/DetailsTwoColumn/index.js.map +1 -1
  403. package/lib/components/template/Details/DynamicTabs/DynamicTabs.d.ts +7 -1
  404. package/lib/components/template/Details/DynamicTabs/DynamicTabs.d.ts.map +1 -1
  405. package/lib/components/template/Details/DynamicTabs/DynamicTabs.js +6 -17
  406. package/lib/components/template/Details/DynamicTabs/DynamicTabs.js.map +1 -1
  407. package/lib/components/template/FieldGroupTemplate/FieldGroupTemplate.d.ts +2 -2
  408. package/lib/components/template/FieldGroupTemplate/FieldGroupTemplate.d.ts.map +1 -1
  409. package/lib/components/template/FieldGroupTemplate/FieldGroupTemplate.js +8 -9
  410. package/lib/components/template/FieldGroupTemplate/FieldGroupTemplate.js.map +1 -1
  411. package/lib/components/template/InlineDashboard/InlineDashboard.d.ts +3 -4
  412. package/lib/components/template/InlineDashboard/InlineDashboard.d.ts.map +1 -1
  413. package/lib/components/template/InlineDashboard/InlineDashboard.js +3 -9
  414. package/lib/components/template/InlineDashboard/InlineDashboard.js.map +1 -1
  415. package/lib/components/template/InlineDashboardPage/InlineDashboardPage.d.ts +3 -4
  416. package/lib/components/template/InlineDashboardPage/InlineDashboardPage.d.ts.map +1 -1
  417. package/lib/components/template/InlineDashboardPage/InlineDashboardPage.js +7 -6
  418. package/lib/components/template/InlineDashboardPage/InlineDashboardPage.js.map +1 -1
  419. package/lib/components/template/ListPage/ListPage.d.ts +1 -1
  420. package/lib/components/template/ListPage/ListPage.d.ts.map +1 -1
  421. package/lib/components/template/ListPage/ListPage.js +2 -2
  422. package/lib/components/template/ListPage/ListPage.js.map +1 -1
  423. package/lib/components/template/ListView/DefaultViewMeta.d.ts.map +1 -1
  424. package/lib/components/template/ListView/DefaultViewMeta.js.map +1 -1
  425. package/lib/components/template/ListView/ListView.d.ts +16 -1
  426. package/lib/components/template/ListView/ListView.d.ts.map +1 -1
  427. package/lib/components/template/ListView/ListView.js +106 -181
  428. package/lib/components/template/ListView/ListView.js.map +1 -1
  429. package/lib/components/template/ListView/hooks.d.ts.map +1 -1
  430. package/lib/components/template/ListView/hooks.js +4 -6
  431. package/lib/components/template/ListView/hooks.js.map +1 -1
  432. package/lib/components/template/ListView/utils.d.ts +1 -1
  433. package/lib/components/template/ListView/utils.d.ts.map +1 -1
  434. package/lib/components/template/ListView/utils.js +38 -46
  435. package/lib/components/template/ListView/utils.js.map +1 -1
  436. package/lib/components/template/MultiReferenceReadOnly/MultiReferenceReadOnly.d.ts +1 -1
  437. package/lib/components/template/MultiReferenceReadOnly/MultiReferenceReadOnly.d.ts.map +1 -1
  438. package/lib/components/template/MultiReferenceReadOnly/MultiReferenceReadOnly.js +3 -3
  439. package/lib/components/template/MultiReferenceReadOnly/MultiReferenceReadOnly.js.map +1 -1
  440. package/lib/components/template/NarrowWide/NarrowWide/NarrowWide.css +0 -2
  441. package/lib/components/template/NarrowWide/NarrowWide/NarrowWide.d.ts +4 -4
  442. package/lib/components/template/NarrowWide/NarrowWide/NarrowWide.d.ts.map +1 -1
  443. package/lib/components/template/NarrowWide/NarrowWide/NarrowWide.js +2 -10
  444. package/lib/components/template/NarrowWide/NarrowWide/NarrowWide.js.map +1 -1
  445. package/lib/components/template/NarrowWide/NarrowWideDetails/NarrowWideDetails.d.ts +8 -1
  446. package/lib/components/template/NarrowWide/NarrowWideDetails/NarrowWideDetails.d.ts.map +1 -1
  447. package/lib/components/template/NarrowWide/NarrowWideDetails/NarrowWideDetails.js +5 -16
  448. package/lib/components/template/NarrowWide/NarrowWideDetails/NarrowWideDetails.js.map +1 -1
  449. package/lib/components/template/NarrowWide/NarrowWideForm/NarrowWideForm.css +0 -2
  450. package/lib/components/template/NarrowWide/NarrowWideForm/NarrowWideForm.d.ts +4 -4
  451. package/lib/components/template/NarrowWide/NarrowWideForm/NarrowWideForm.d.ts.map +1 -1
  452. package/lib/components/template/NarrowWide/NarrowWideForm/NarrowWideForm.js +2 -5
  453. package/lib/components/template/NarrowWide/NarrowWideForm/NarrowWideForm.js.map +1 -1
  454. package/lib/components/template/NarrowWide/NarrowWidePage/NarrowWidePage.d.ts +4 -4
  455. package/lib/components/template/NarrowWide/NarrowWidePage/NarrowWidePage.d.ts.map +1 -1
  456. package/lib/components/template/NarrowWide/NarrowWidePage/NarrowWidePage.js +3 -5
  457. package/lib/components/template/NarrowWide/NarrowWidePage/NarrowWidePage.js.map +1 -1
  458. package/lib/components/template/OneColumn/OneColumn/OneColumn.d.ts +4 -4
  459. package/lib/components/template/OneColumn/OneColumn/OneColumn.d.ts.map +1 -1
  460. package/lib/components/template/OneColumn/OneColumn/OneColumn.js +9 -8
  461. package/lib/components/template/OneColumn/OneColumn/OneColumn.js.map +1 -1
  462. package/lib/components/template/OneColumn/OneColumnPage/OneColumnPage.d.ts +2 -2
  463. package/lib/components/template/OneColumn/OneColumnPage/OneColumnPage.d.ts.map +1 -1
  464. package/lib/components/template/OneColumn/OneColumnPage/OneColumnPage.js +2 -2
  465. package/lib/components/template/OneColumn/OneColumnPage/OneColumnPage.js.map +1 -1
  466. package/lib/components/template/OneColumn/OneColumnTab/OneColumnTab.d.ts +4 -4
  467. package/lib/components/template/OneColumn/OneColumnTab/OneColumnTab.d.ts.map +1 -1
  468. package/lib/components/template/OneColumn/OneColumnTab/OneColumnTab.js +2 -2
  469. package/lib/components/template/OneColumn/OneColumnTab/OneColumnTab.js.map +1 -1
  470. package/lib/components/template/PromotedFilters/PromotedFilters.css +1 -1
  471. package/lib/components/template/PromotedFilters/PromotedFilters.d.ts +10 -1
  472. package/lib/components/template/PromotedFilters/PromotedFilters.d.ts.map +1 -1
  473. package/lib/components/template/PromotedFilters/PromotedFilters.js +12 -29
  474. package/lib/components/template/PromotedFilters/PromotedFilters.js.map +1 -1
  475. package/lib/components/template/SimpleTable/SimpleTable/SimpleTable.d.ts +19 -1
  476. package/lib/components/template/SimpleTable/SimpleTable/SimpleTable.d.ts.map +1 -1
  477. package/lib/components/template/SimpleTable/SimpleTable/SimpleTable.js +17 -20
  478. package/lib/components/template/SimpleTable/SimpleTable/SimpleTable.js.map +1 -1
  479. package/lib/components/template/SimpleTable/SimpleTableManual/SimpleTableManual.d.ts +12 -7
  480. package/lib/components/template/SimpleTable/SimpleTableManual/SimpleTableManual.d.ts.map +1 -1
  481. package/lib/components/template/SimpleTable/SimpleTableManual/SimpleTableManual.js +124 -134
  482. package/lib/components/template/SimpleTable/SimpleTableManual/SimpleTableManual.js.map +1 -1
  483. package/lib/components/template/SimpleTable/SimpleTableSelect/SimpleTableSelect.d.ts +14 -1
  484. package/lib/components/template/SimpleTable/SimpleTableSelect/SimpleTableSelect.d.ts.map +1 -1
  485. package/lib/components/template/SimpleTable/SimpleTableSelect/SimpleTableSelect.js +9 -21
  486. package/lib/components/template/SimpleTable/SimpleTableSelect/SimpleTableSelect.js.map +1 -1
  487. package/lib/components/template/SingleReferenceReadOnly/SingleReferenceReadOnly.d.ts +1 -1
  488. package/lib/components/template/SingleReferenceReadOnly/SingleReferenceReadOnly.d.ts.map +1 -1
  489. package/lib/components/template/SingleReferenceReadOnly/SingleReferenceReadOnly.js +5 -5
  490. package/lib/components/template/SingleReferenceReadOnly/SingleReferenceReadOnly.js.map +1 -1
  491. package/lib/components/template/SubTabs/SubTabs.d.ts +4 -4
  492. package/lib/components/template/SubTabs/SubTabs.d.ts.map +1 -1
  493. package/lib/components/template/SubTabs/SubTabs.js +6 -9
  494. package/lib/components/template/SubTabs/SubTabs.js.map +1 -1
  495. package/lib/components/template/SubTabs/tabUtils.d.ts.map +1 -1
  496. package/lib/components/template/SubTabs/tabUtils.js +2 -4
  497. package/lib/components/template/SubTabs/tabUtils.js.map +1 -1
  498. package/lib/components/template/TwoColumn/TwoColumn/TwoColumn.css +0 -1
  499. package/lib/components/template/TwoColumn/TwoColumn/TwoColumn.d.ts +4 -4
  500. package/lib/components/template/TwoColumn/TwoColumn/TwoColumn.d.ts.map +1 -1
  501. package/lib/components/template/TwoColumn/TwoColumn/TwoColumn.js +14 -12
  502. package/lib/components/template/TwoColumn/TwoColumn/TwoColumn.js.map +1 -1
  503. package/lib/components/template/TwoColumn/TwoColumnPage/TwoColumnPage.d.ts +2 -2
  504. package/lib/components/template/TwoColumn/TwoColumnPage/TwoColumnPage.d.ts.map +1 -1
  505. package/lib/components/template/TwoColumn/TwoColumnPage/TwoColumnPage.js +2 -2
  506. package/lib/components/template/TwoColumn/TwoColumnPage/TwoColumnPage.js.map +1 -1
  507. package/lib/components/template/TwoColumn/TwoColumnTab/TwoColumnTab.d.ts +4 -4
  508. package/lib/components/template/TwoColumn/TwoColumnTab/TwoColumnTab.d.ts.map +1 -1
  509. package/lib/components/template/TwoColumn/TwoColumnTab/TwoColumnTab.js +14 -12
  510. package/lib/components/template/TwoColumn/TwoColumnTab/TwoColumnTab.js.map +1 -1
  511. package/lib/components/template/WideNarrow/WideNarrow/WideNarrow.css +0 -2
  512. package/lib/components/template/WideNarrow/WideNarrow/WideNarrow.d.ts +4 -4
  513. package/lib/components/template/WideNarrow/WideNarrow/WideNarrow.d.ts.map +1 -1
  514. package/lib/components/template/WideNarrow/WideNarrow/WideNarrow.js +2 -10
  515. package/lib/components/template/WideNarrow/WideNarrow/WideNarrow.js.map +1 -1
  516. package/lib/components/template/WideNarrow/WideNarrowDetails/WideNarrowDetails.d.ts +8 -1
  517. package/lib/components/template/WideNarrow/WideNarrowDetails/WideNarrowDetails.d.ts.map +1 -1
  518. package/lib/components/template/WideNarrow/WideNarrowDetails/WideNarrowDetails.js +5 -16
  519. package/lib/components/template/WideNarrow/WideNarrowDetails/WideNarrowDetails.js.map +1 -1
  520. package/lib/components/template/WideNarrow/WideNarrowForm/WideNarrowForm.css +0 -2
  521. package/lib/components/template/WideNarrow/WideNarrowForm/WideNarrowForm.d.ts +4 -4
  522. package/lib/components/template/WideNarrow/WideNarrowForm/WideNarrowForm.d.ts.map +1 -1
  523. package/lib/components/template/WideNarrow/WideNarrowForm/WideNarrowForm.js +2 -5
  524. package/lib/components/template/WideNarrow/WideNarrowForm/WideNarrowForm.js.map +1 -1
  525. package/lib/components/template/WideNarrow/WideNarrowPage/WideNarrowPage.d.ts +4 -4
  526. package/lib/components/template/WideNarrow/WideNarrowPage/WideNarrowPage.d.ts.map +1 -1
  527. package/lib/components/template/WideNarrow/WideNarrowPage/WideNarrowPage.js +3 -3
  528. package/lib/components/template/WideNarrow/WideNarrowPage/WideNarrowPage.js.map +1 -1
  529. package/lib/components/template/WideNarrow/WideNarrowPage/index.js.map +1 -1
  530. package/lib/components/template/WssNavBar/WssNavBar.d.ts +3 -2
  531. package/lib/components/template/WssNavBar/WssNavBar.d.ts.map +1 -1
  532. package/lib/components/template/WssNavBar/WssNavBar.js +20 -37
  533. package/lib/components/template/WssNavBar/WssNavBar.js.map +1 -1
  534. package/lib/components/widget/AppAnnouncement/AppAnnouncement.d.ts +2 -1
  535. package/lib/components/widget/AppAnnouncement/AppAnnouncement.d.ts.map +1 -1
  536. package/lib/components/widget/AppAnnouncement/AppAnnouncement.js +10 -19
  537. package/lib/components/widget/AppAnnouncement/AppAnnouncement.js.map +1 -1
  538. package/lib/components/widget/Attachment/Attachment.css +60 -1
  539. package/lib/components/widget/Attachment/Attachment.d.ts +8 -1
  540. package/lib/components/widget/Attachment/Attachment.d.ts.map +1 -1
  541. package/lib/components/widget/Attachment/Attachment.js +279 -353
  542. package/lib/components/widget/Attachment/Attachment.js.map +1 -1
  543. package/lib/components/widget/Attachment/index.js.map +1 -1
  544. package/lib/components/widget/CaseHistory/CaseHistory.d.ts +1 -1
  545. package/lib/components/widget/CaseHistory/CaseHistory.d.ts.map +1 -1
  546. package/lib/components/widget/CaseHistory/CaseHistory.js +37 -31
  547. package/lib/components/widget/CaseHistory/CaseHistory.js.map +1 -1
  548. package/lib/components/widget/CaseHistory/index.js.map +1 -1
  549. package/lib/components/widget/FileUtility/ActionButtonsForFileUtil/ActionButtonsForFileUtil.d.ts +4 -3
  550. package/lib/components/widget/FileUtility/ActionButtonsForFileUtil/ActionButtonsForFileUtil.d.ts.map +1 -1
  551. package/lib/components/widget/FileUtility/ActionButtonsForFileUtil/ActionButtonsForFileUtil.js +2 -4
  552. package/lib/components/widget/FileUtility/ActionButtonsForFileUtil/ActionButtonsForFileUtil.js.map +1 -1
  553. package/lib/components/widget/FileUtility/FileUtility/FileUtility.css +2 -2
  554. package/lib/components/widget/FileUtility/FileUtility/FileUtility.d.ts +1 -1
  555. package/lib/components/widget/FileUtility/FileUtility/FileUtility.d.ts.map +1 -1
  556. package/lib/components/widget/FileUtility/FileUtility/FileUtility.js +107 -136
  557. package/lib/components/widget/FileUtility/FileUtility/FileUtility.js.map +1 -1
  558. package/lib/components/widget/Followers/Followers.d.ts +4 -4
  559. package/lib/components/widget/Followers/Followers.d.ts.map +1 -1
  560. package/lib/components/widget/Followers/Followers.js +8 -16
  561. package/lib/components/widget/Followers/Followers.js.map +1 -1
  562. package/lib/components/widget/QuickCreate/QuickCreate.d.ts +8 -1
  563. package/lib/components/widget/QuickCreate/QuickCreate.d.ts.map +1 -1
  564. package/lib/components/widget/QuickCreate/QuickCreate.js +57 -35
  565. package/lib/components/widget/QuickCreate/QuickCreate.js.map +1 -1
  566. package/lib/components/widget/SummaryItem/SummaryItem.css +9 -9
  567. package/lib/components/widget/SummaryItem/SummaryItem.d.ts +3 -2
  568. package/lib/components/widget/SummaryItem/SummaryItem.d.ts.map +1 -1
  569. package/lib/components/widget/SummaryItem/SummaryItem.js +8 -23
  570. package/lib/components/widget/SummaryItem/SummaryItem.js.map +1 -1
  571. package/lib/components/widget/SummaryItem/index.js.map +1 -1
  572. package/lib/components/widget/SummaryList/SummaryList.d.ts +3 -2
  573. package/lib/components/widget/SummaryList/SummaryList.d.ts.map +1 -1
  574. package/lib/components/widget/SummaryList/SummaryList.js +3 -3
  575. package/lib/components/widget/SummaryList/SummaryList.js.map +1 -1
  576. package/lib/components/widget/ToDo/ToDo.css +4 -4
  577. package/lib/components/widget/ToDo/ToDo.d.ts +1 -1
  578. package/lib/components/widget/ToDo/ToDo.d.ts.map +1 -1
  579. package/lib/components/widget/ToDo/ToDo.js +31 -67
  580. package/lib/components/widget/ToDo/ToDo.js.map +1 -1
  581. package/lib/components_map.d.ts +2 -2
  582. package/lib/components_map.d.ts.map +1 -1
  583. package/lib/components_map.js +4 -2
  584. package/lib/components_map.js.map +1 -1
  585. package/lib/doc/KeyReleaseUpdates.md +21 -4
  586. package/lib/hooks/useConsolidatedRef.js +2 -2
  587. package/lib/hooks/useConsolidatedRef.js.map +1 -1
  588. package/lib/sdk-local-component-map.js +2 -2
  589. package/lib/sdk-pega-component-map.d.ts +6 -0
  590. package/lib/sdk-pega-component-map.js +106 -100
  591. package/lib/sdk-pega-component-map.js.map +1 -1
  592. package/lib/types/PConnProps.d.ts +14 -15
  593. package/package.json +5 -2
  594. package/lib/components/helpers/auth.d.ts +0 -18
  595. package/lib/components/helpers/auth.d.ts.map +0 -1
  596. package/lib/components/helpers/auth.js +0 -752
  597. package/lib/components/helpers/auth.js.map +0 -1
  598. package/lib/components/helpers/authManager.d.ts +0 -21
  599. package/lib/components/helpers/authManager.d.ts.map +0 -1
  600. package/lib/components/helpers/authManager.js +0 -864
  601. package/lib/components/helpers/authManager.js.map +0 -1
  602. package/lib/components/helpers/config_access.d.ts +0 -3
  603. package/lib/components/helpers/config_access.d.ts.map +0 -1
  604. package/lib/components/helpers/config_access.js +0 -198
  605. package/lib/components/helpers/config_access.js.map +0 -1
@@ -1,34 +1,34 @@
1
1
  import { Utils } from './utils';
2
- export const TABLE_CELL = "SdkRenderer";
3
- export const DELETE_ICON = "DeleteIcon";
2
+ export const TABLE_CELL = 'SdkRenderer';
3
+ export const DELETE_ICON = 'DeleteIcon';
4
4
  // BUG-615253: Workaround for autosize in table with lazy loading components
5
5
  /* istanbul ignore next */
6
6
  function getFieldWidth(field, label) {
7
7
  let width;
8
8
  switch (field.type) {
9
- case "Time":
9
+ case 'Time':
10
10
  width = 150;
11
11
  break;
12
- case "Date":
12
+ case 'Date':
13
13
  width = 160;
14
14
  break;
15
- case "DateTime":
15
+ case 'DateTime':
16
16
  width = 205;
17
17
  break;
18
- case "AutoComplete":
19
- case "TextArea":
18
+ case 'AutoComplete':
19
+ case 'TextArea':
20
20
  width = 190;
21
21
  break;
22
- case "Currency":
23
- case "TextInput":
22
+ case 'Currency':
23
+ case 'TextInput':
24
24
  width = 182;
25
25
  break;
26
- case "Checkbox":
26
+ case 'Checkbox':
27
27
  // eslint-disable-next-line no-case-declarations
28
- const text = document.createElement("span");
28
+ const text = document.createElement('span');
29
29
  document.body.appendChild(text);
30
- text.style.fontSize = "13px";
31
- text.style.position = "absolute";
30
+ text.style.fontSize = '13px';
31
+ text.style.position = 'absolute';
32
32
  text.innerHTML = label;
33
33
  width = Math.ceil(text.clientWidth) + 30;
34
34
  document.body.removeChild(text);
@@ -38,22 +38,24 @@ function getFieldWidth(field, label) {
38
38
  }
39
39
  return width;
40
40
  }
41
- export const getContext = (thePConn) => {
41
+ export const getContext = thePConn => {
42
42
  const contextName = thePConn.getContextName();
43
43
  const pageReference = thePConn.getPageReference();
44
- let { referenceList } = thePConn.getStateProps()?.config || thePConn.getStateProps();
45
- const pageReferenceForRows = referenceList.startsWith(".")
46
- ? `${pageReference}.${referenceList.substring(1)}`
47
- : referenceList;
44
+ const { referenceList } = thePConn.getStateProps()?.config || thePConn.getStateProps();
45
+ const pageReferenceForRows = referenceList.startsWith('.') ? `${pageReference}.${referenceList.substring(1)}` : referenceList;
48
46
  // removing "caseInfo.content" prefix to avoid setting it as a target while preparing pageInstructions
49
- referenceList = pageReferenceForRows.replace(PCore.getConstants().CASE_INFO.CASE_INFO_CONTENT, "");
47
+ // skipping the removal as StateMachine itself is removing this case info prefix while preparing pageInstructions
48
+ // referenceList = pageReferenceForRows.replace(
49
+ // PCore.getConstants().CASE_INFO.CASE_INFO_CONTENT,
50
+ // ""
51
+ // );
50
52
  return {
51
53
  contextName,
52
54
  referenceListStr: referenceList,
53
55
  pageReferenceForRows
54
56
  };
55
57
  };
56
- export const populateRowKey = (rawData) => {
58
+ export const populateRowKey = rawData => {
57
59
  return rawData.map((row, index) => {
58
60
  return { ...row, index };
59
61
  });
@@ -61,7 +63,7 @@ export const populateRowKey = (rawData) => {
61
63
  export const getApiContext = (processedData, pConnect, reorderCB) => {
62
64
  return {
63
65
  fetchData: () => {
64
- return new Promise((resolve) => {
66
+ return new Promise(resolve => {
65
67
  resolve({
66
68
  data: processedData,
67
69
  filteredRecordCount: processedData.length,
@@ -75,9 +77,7 @@ export const getApiContext = (processedData, pConnect, reorderCB) => {
75
77
  applyRowReorder: (sourceKey, destinationKey) => {
76
78
  // indexes are keys for simple table so, it should work.
77
79
  reorderCB();
78
- return Promise.resolve(pConnect
79
- .getListActions()
80
- .reorder(parseInt(sourceKey, 10), parseInt(destinationKey, 10)));
80
+ return Promise.resolve(pConnect.getListActions().reorder(parseInt(sourceKey, 10), parseInt(destinationKey, 10)));
81
81
  }
82
82
  };
83
83
  };
@@ -95,22 +95,22 @@ export const buildMetaForListView = (fieldMetadata, fields, type, ruleClass, nam
95
95
  reorderFields: true,
96
96
  toggleFieldVisibility: true,
97
97
  title: propertyLabel,
98
- personalizationId: "" /* TODO */,
99
- template: "ListView",
98
+ personalizationId: '' /* TODO */,
99
+ template: 'ListView',
100
100
  presets: [
101
101
  {
102
- name: "presets",
103
- template: "Table",
102
+ name: 'presets',
103
+ template: 'Table',
104
104
  config: {},
105
105
  children: [
106
106
  {
107
- name: "Columns",
108
- type: "Region",
107
+ name: 'Columns',
108
+ type: 'Region',
109
109
  children: fields
110
110
  }
111
111
  ],
112
112
  label: propertyLabel,
113
- id: "P_" /* TODO */
113
+ id: 'P_' /* TODO */
114
114
  }
115
115
  ],
116
116
  ruleClass
@@ -120,10 +120,10 @@ export const buildMetaForListView = (fieldMetadata, fields, type, ruleClass, nam
120
120
  export const buildFieldsForTable = (configFields, fields, showDeleteButton) => {
121
121
  const fieldDefs = configFields.map((field, index) => {
122
122
  return {
123
- type: "text",
123
+ type: 'text',
124
124
  label: fields[index].config.label || fields[index].config.caption,
125
125
  fillAvailableSpace: !!field.config.fillAvailableSpace,
126
- id: index,
126
+ id: `${index}`,
127
127
  name: field.config.value.substr(4),
128
128
  cellRenderer: TABLE_CELL,
129
129
  sort: false,
@@ -139,7 +139,7 @@ export const buildFieldsForTable = (configFields, fields, showDeleteButton) => {
139
139
  // ONLY add DELETE_ICON to fields when the table is requested as EDITABLE
140
140
  if (showDeleteButton) {
141
141
  fieldDefs.push({
142
- type: "text",
142
+ type: 'text',
143
143
  id: fieldDefs.length,
144
144
  cellRenderer: DELETE_ICON,
145
145
  sort: false,
@@ -154,17 +154,17 @@ export const buildFieldsForTable = (configFields, fields, showDeleteButton) => {
154
154
  export const createMetaForTable = (fields, renderMode) => {
155
155
  return {
156
156
  height: {
157
- minHeight: "auto",
158
- fitHeightToElement: "fitHeightToElement",
159
- deltaAdjustment: "deltaAdjustment",
157
+ minHeight: 'auto',
158
+ fitHeightToElement: 'fitHeightToElement',
159
+ deltaAdjustment: 'deltaAdjustment',
160
160
  autoSize: true
161
161
  },
162
162
  fieldDefs: fields,
163
- itemKey: "index",
163
+ itemKey: 'index',
164
164
  grouping: false,
165
165
  reorderFields: false,
166
- reorderItems: renderMode === "Editable",
167
- dragHandle: renderMode === "Editable",
166
+ reorderItems: renderMode === 'Editable',
167
+ dragHandle: renderMode === 'Editable',
168
168
  globalSearch: false,
169
169
  personalization: false,
170
170
  toggleFieldVisibility: false,
@@ -202,28 +202,20 @@ export function createPConnect(contextName, referenceList, pageReference) {
202
202
  const { getPConnect } = PCore.createPConnect(config);
203
203
  return getPConnect();
204
204
  }
205
- ;
206
- export const filterData = (filterByColumns) => {
205
+ export const filterData = filterByColumns => {
207
206
  return function filteringData(item) {
208
207
  let bKeep = true;
209
208
  for (const filterObj of filterByColumns) {
210
- if (filterObj.containsFilterValue !== '' ||
211
- filterObj.containsFilter === 'null' ||
212
- filterObj.containsFilter === 'notnull') {
209
+ if (filterObj.containsFilterValue !== '' || filterObj.containsFilter === 'null' || filterObj.containsFilter === 'notnull') {
213
210
  let value;
214
211
  let filterValue;
215
212
  switch (filterObj.type) {
216
213
  case 'Date':
217
214
  case 'DateTime':
218
215
  case 'Time':
219
- value =
220
- item[filterObj.ref] !== null ?? item[filterObj.ref] !== ''
221
- ? Utils.getSeconds(item[filterObj.ref])
222
- : null;
216
+ value = item[filterObj.ref] !== null ?? item[filterObj.ref] !== '' ? Utils.getSeconds(item[filterObj.ref]) : null;
223
217
  filterValue =
224
- filterObj.containsFilterValue !== null && filterObj.containsFilterValue !== ''
225
- ? Utils.getSeconds(filterObj.containsFilterValue)
226
- : null;
218
+ filterObj.containsFilterValue !== null && filterObj.containsFilterValue !== '' ? Utils.getSeconds(filterObj.containsFilterValue) : null;
227
219
  // eslint-disable-next-line sonarjs/no-nested-switch
228
220
  switch (filterObj.containsFilter) {
229
221
  case 'notequal':
@@ -1 +1 @@
1
- {"version":3,"file":"simpleTableHelpers.js","sourceRoot":"","sources":["../../../src/components/helpers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AM;4BAER,KAAK,YAAY;gCACf,IAAI,KAAK,CAAC,OAAO,CAAC,WAAW,CAAC,KAAK,CAAC,EAAE;oCACpC,KAAK,GAAG,KAAK,CAAC;iCACf;gCACD,MAAM;4BAER;gCACE,MAAM;yBACT;wBAED,MAAM;iBACT;aACF;YAED,+BAA+B;YAC/B,IAAI,CAAC,KAAK,EAAE;gBACV,MAAM;aACP;SACF;QACD,OAAO,KAAK,CAAC;IACf,CAAC,CAAA;AACH,CAAC,CAAA","sourcesContent":["import { Utils } from './utils';\n\n\nexport const TABLE_CELL = \"SdkRenderer\";\nexport const DELETE_ICON = \"DeleteIcon\";\n\n// BUG-615253: Workaround for autosize in table with lazy loading components\n/* istanbul ignore next */\nfunction getFieldWidth(field, label) {\n let width: number;\n switch (field.type) {\n case \"Time\":\n width = 150;\n break;\n case \"Date\":\n width = 160;\n break;\n case \"DateTime\":\n width = 205;\n break;\n case \"AutoComplete\":\n case \"TextArea\":\n width = 190;\n break;\n case \"Currency\":\n case \"TextInput\":\n width = 182;\n break;\n case \"Checkbox\":\n // eslint-disable-next-line no-case-declarations\n const text = document.createElement(\"span\");\n document.body.appendChild(text);\n text.style.fontSize = \"13px\";\n text.style.position = \"absolute\";\n text.innerHTML = label;\n width = Math.ceil(text.clientWidth) + 30;\n document.body.removeChild(text);\n break;\n default:\n width = 180;\n }\n return width;\n}\n\nexport const getContext = (thePConn) => {\n const contextName = thePConn.getContextName();\n const pageReference = thePConn.getPageReference();\n let { referenceList } = thePConn.getStateProps()?.config || thePConn.getStateProps();\n const pageReferenceForRows = referenceList.startsWith(\".\")\n ? `${pageReference}.${referenceList.substring(1)}`\n : referenceList;\n\n // removing \"caseInfo.content\" prefix to avoid setting it as a target while preparing pageInstructions\n referenceList = pageReferenceForRows.replace(\n PCore.getConstants().CASE_INFO.CASE_INFO_CONTENT,\n \"\"\n );\n\n return {\n contextName,\n referenceListStr: referenceList,\n pageReferenceForRows\n };\n};\n\nexport const populateRowKey = (rawData) => {\n return rawData.map((row: any, index: number) => {\n return { ...row, index };\n });\n};\n\nexport const getApiContext = (processedData, pConnect, reorderCB) => {\n return {\n fetchData: () => {\n return new Promise((resolve) => {\n resolve({\n data: processedData,\n filteredRecordCount: processedData.length,\n totalRecordCount: processedData.length\n });\n });\n },\n fetchPersonalizations: () => {\n return Promise.resolve({});\n },\n applyRowReorder: (sourceKey, destinationKey) => {\n // indexes are keys for simple table so, it should work.\n reorderCB();\n return Promise.resolve(\n pConnect\n .getListActions()\n .reorder(parseInt(sourceKey, 10), parseInt(destinationKey, 10))\n );\n }\n };\n};\n\nexport const buildMetaForListView = (\n fieldMetadata,\n fields,\n type,\n ruleClass,\n name,\n propertyLabel,\n isDataObject,\n parameters\n) => {\n return {\n name,\n config: {\n type,\n referenceList: fieldMetadata.datasource.name,\n parameters: parameters ?? fieldMetadata.datasource.parameters,\n personalization: false,\n isDataObject,\n grouping: true,\n globalSearch: true,\n reorderFields: true,\n toggleFieldVisibility: true,\n title: propertyLabel,\n personalizationId: \"\" /* TODO */,\n template: \"ListView\",\n presets: [\n {\n name: \"presets\",\n template: \"Table\",\n config: {},\n children: [\n {\n name: \"Columns\",\n type: \"Region\",\n children: fields\n }\n ],\n label: propertyLabel,\n id: \"P_\" /* TODO */\n }\n ],\n ruleClass\n }\n };\n};\n\nexport const buildFieldsForTable = (configFields, fields, showDeleteButton) => {\n const fieldDefs = configFields.map((field, index) => {\n return {\n type: \"text\",\n label: fields[index].config.label || fields[index].config.caption,\n fillAvailableSpace: !!field.config.fillAvailableSpace,\n id: index,\n name: field.config.value.substr(4),\n cellRenderer: TABLE_CELL,\n sort: false,\n noContextMenu: true,\n showMenu: false,\n meta: {\n ...field\n },\n // BUG-615253: Workaround for autosize in table with lazy loading components\n width: getFieldWidth(field, fields[index].config.label)\n };\n });\n\n // ONLY add DELETE_ICON to fields when the table is requested as EDITABLE\n if (showDeleteButton) {\n fieldDefs.push({\n type: \"text\",\n id: fieldDefs.length,\n cellRenderer: DELETE_ICON,\n sort: false,\n noContextMenu: true,\n showMenu: false,\n // BUG-615253: Workaround for autosize in table with lazy loading components\n width: 46\n });\n }\n\n return fieldDefs;\n};\n\nexport const createMetaForTable = (fields, renderMode) => {\n return {\n height: {\n minHeight: \"auto\",\n fitHeightToElement: \"fitHeightToElement\",\n deltaAdjustment: \"deltaAdjustment\",\n autoSize: true\n },\n fieldDefs: fields,\n itemKey: \"index\",\n grouping: false,\n reorderFields: false,\n reorderItems: renderMode === \"Editable\",\n dragHandle: renderMode === \"Editable\",\n globalSearch: false,\n personalization: false,\n toggleFieldVisibility: false,\n toolbar: false,\n footer: false,\n filterExpression: null,\n editing: false,\n timezone: PCore.getEnvironmentInfo().getTimeZone()\n };\n};\n\n/**\n * This method returns a callBack function for Add action.\n * @param {object} pConnect - PConnect object\n * @param {number} index - index of the page list to add\n */\nexport const getAddRowCallback = (pConnect, index) => {\n return () => pConnect.getListActions().insert({}, index, ''); // 3rd arg null until typedef marked correctly as optional\n};\n\n/**\n * This method creates a PConnect object with proper options for Add and Delete actions\n * @param {string} contextName - contextName\n * @param {string} referenceList - referenceList\n * @param {string} pageReference - pageReference\n */\n// NOTE: use of type \"any\" is required since TypeScript doesn't allow private/protected properties\n// to be exported from a class (TS4094 error)\nexport function createPConnect(contextName, referenceList, pageReference): any {\n const options = {\n context: contextName,\n pageReference,\n referenceList\n };\n\n // create PConnect object\n const config = { meta: {}, options };\n const { getPConnect } = PCore.createPConnect(config);\n\n return getPConnect();\n};\n\nexport const filterData = (filterByColumns) => {\n return function filteringData(item) {\n let bKeep = true;\n for (const filterObj of filterByColumns) {\n if (\n filterObj.containsFilterValue !== '' ||\n filterObj.containsFilter === 'null' ||\n filterObj.containsFilter === 'notnull'\n ) {\n let value: any;\n let filterValue: any;\n\n switch (filterObj.type) {\n case 'Date':\n case 'DateTime':\n case 'Time':\n value =\n item[filterObj.ref] !== null ?? item[filterObj.ref] !== ''\n ? Utils.getSeconds(item[filterObj.ref])\n : null;\n filterValue =\n filterObj.containsFilterValue !== null && filterObj.containsFilterValue !== ''\n ? Utils.getSeconds(filterObj.containsFilterValue)\n : null;\n\n // eslint-disable-next-line sonarjs/no-nested-switch\n switch (filterObj.containsFilter) {\n case 'notequal':\n // becasue filterValue is in minutes, need to have a range of less than 60 secons\n\n if (value !== null && filterValue !== null) {\n // get rid of milliseconds\n value /= 1000;\n filterValue /= 1000;\n\n const diff = value - filterValue;\n if (diff >= 0 && diff < 60) {\n bKeep = false;\n }\n }\n\n break;\n\n case 'equal':\n // becasue filterValue is in minutes, need to have a range of less than 60 secons\n\n if (value !== null && filterValue !== null) {\n // get rid of milliseconds\n value /= 1000;\n filterValue /= 1000;\n\n const diff = value - filterValue;\n if (diff !== 0) {\n bKeep = false;\n }\n }\n\n break;\n\n case 'after':\n if (value < filterValue) {\n bKeep = false;\n }\n break;\n\n case 'before':\n if (value > filterValue) {\n bKeep = false;\n }\n break;\n\n case 'null':\n if (value !== null) {\n bKeep = false;\n }\n break;\n\n case 'notnull':\n if (value === null) {\n bKeep = false;\n }\n break;\n\n default:\n break;\n }\n break;\n\n default:\n value = item[filterObj.ref].toLowerCase();\n filterValue = filterObj.containsFilterValue.toLowerCase();\n\n // eslint-disable-next-line sonarjs/no-nested-switch\n switch (filterObj.containsFilter) {\n case 'contains':\n if (value.indexOf(filterValue) < 0) {\n bKeep = false;\n }\n break;\n\n case 'equals':\n if (value !== filterValue) {\n bKeep = false;\n }\n break;\n\n case 'startswith':\n if (value.indexOf(filterValue) !== 0) {\n bKeep = false;\n }\n break;\n\n default:\n break;\n }\n\n break;\n }\n }\n\n // if don't keep stop filtering\n if (!bKeep) {\n break;\n }\n }\n return bKeep;\n }\n}\n"]}
1
+ {"version":3,"file":"simpleTableHelpers.js","sourceRoot":"","sources":["../../../src/components/helpers/simpleTableHelpers.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAEhC,MAAM,CAAC,MAAM,UAAU,GAAG,aAAa,CAAC;AACxC,MA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AC,KAAK,EAAE;gBACV,MAAM;aACP;SACF;QACD,OAAO,KAAK,CAAC;IACf,CAAC,CAAC;AACJ,CAAC,CAAC","sourcesContent":["import { Utils } from './utils';\n\nexport const TABLE_CELL = 'SdkRenderer';\nexport const DELETE_ICON = 'DeleteIcon';\n\n// BUG-615253: Workaround for autosize in table with lazy loading components\n/* istanbul ignore next */\nfunction getFieldWidth(field, label) {\n let width: number;\n switch (field.type) {\n case 'Time':\n width = 150;\n break;\n case 'Date':\n width = 160;\n break;\n case 'DateTime':\n width = 205;\n break;\n case 'AutoComplete':\n case 'TextArea':\n width = 190;\n break;\n case 'Currency':\n case 'TextInput':\n width = 182;\n break;\n case 'Checkbox':\n // eslint-disable-next-line no-case-declarations\n const text = document.createElement('span');\n document.body.appendChild(text);\n text.style.fontSize = '13px';\n text.style.position = 'absolute';\n text.innerHTML = label;\n width = Math.ceil(text.clientWidth) + 30;\n document.body.removeChild(text);\n break;\n default:\n width = 180;\n }\n return width;\n}\n\nexport const getContext = thePConn => {\n const contextName = thePConn.getContextName();\n const pageReference = thePConn.getPageReference();\n const { referenceList } = thePConn.getStateProps()?.config || thePConn.getStateProps();\n const pageReferenceForRows = referenceList.startsWith('.') ? `${pageReference}.${referenceList.substring(1)}` : referenceList;\n\n // removing \"caseInfo.content\" prefix to avoid setting it as a target while preparing pageInstructions\n // skipping the removal as StateMachine itself is removing this case info prefix while preparing pageInstructions\n // referenceList = pageReferenceForRows.replace(\n // PCore.getConstants().CASE_INFO.CASE_INFO_CONTENT,\n // \"\"\n // );\n\n return {\n contextName,\n referenceListStr: referenceList,\n pageReferenceForRows\n };\n};\n\nexport const populateRowKey = rawData => {\n return rawData.map((row: any, index: number) => {\n return { ...row, index };\n });\n};\n\nexport const getApiContext = (processedData, pConnect, reorderCB) => {\n return {\n fetchData: () => {\n return new Promise(resolve => {\n resolve({\n data: processedData,\n filteredRecordCount: processedData.length,\n totalRecordCount: processedData.length\n });\n });\n },\n fetchPersonalizations: () => {\n return Promise.resolve({});\n },\n applyRowReorder: (sourceKey, destinationKey) => {\n // indexes are keys for simple table so, it should work.\n reorderCB();\n return Promise.resolve(pConnect.getListActions().reorder(parseInt(sourceKey, 10), parseInt(destinationKey, 10)));\n }\n };\n};\n\nexport const buildMetaForListView = (fieldMetadata, fields, type, ruleClass, name, propertyLabel, isDataObject, parameters) => {\n return {\n name,\n config: {\n type,\n referenceList: fieldMetadata.datasource.name,\n parameters: parameters ?? fieldMetadata.datasource.parameters,\n personalization: false,\n isDataObject,\n grouping: true,\n globalSearch: true,\n reorderFields: true,\n toggleFieldVisibility: true,\n title: propertyLabel,\n personalizationId: '' /* TODO */,\n template: 'ListView',\n presets: [\n {\n name: 'presets',\n template: 'Table',\n config: {},\n children: [\n {\n name: 'Columns',\n type: 'Region',\n children: fields\n }\n ],\n label: propertyLabel,\n id: 'P_' /* TODO */\n }\n ],\n ruleClass\n }\n };\n};\n\nexport const buildFieldsForTable = (configFields, fields, showDeleteButton) => {\n const fieldDefs = configFields.map((field, index) => {\n return {\n type: 'text',\n label: fields[index].config.label || fields[index].config.caption,\n fillAvailableSpace: !!field.config.fillAvailableSpace,\n id: `${index}`,\n name: field.config.value.substr(4),\n cellRenderer: TABLE_CELL,\n sort: false,\n noContextMenu: true,\n showMenu: false,\n meta: {\n ...field\n },\n // BUG-615253: Workaround for autosize in table with lazy loading components\n width: getFieldWidth(field, fields[index].config.label)\n };\n });\n\n // ONLY add DELETE_ICON to fields when the table is requested as EDITABLE\n if (showDeleteButton) {\n fieldDefs.push({\n type: 'text',\n id: fieldDefs.length,\n cellRenderer: DELETE_ICON,\n sort: false,\n noContextMenu: true,\n showMenu: false,\n // BUG-615253: Workaround for autosize in table with lazy loading components\n width: 46\n });\n }\n\n return fieldDefs;\n};\n\nexport const createMetaForTable = (fields, renderMode) => {\n return {\n height: {\n minHeight: 'auto',\n fitHeightToElement: 'fitHeightToElement',\n deltaAdjustment: 'deltaAdjustment',\n autoSize: true\n },\n fieldDefs: fields,\n itemKey: 'index',\n grouping: false,\n reorderFields: false,\n reorderItems: renderMode === 'Editable',\n dragHandle: renderMode === 'Editable',\n globalSearch: false,\n personalization: false,\n toggleFieldVisibility: false,\n toolbar: false,\n footer: false,\n filterExpression: null,\n editing: false,\n timezone: PCore.getEnvironmentInfo().getTimeZone()\n };\n};\n\n/**\n * This method returns a callBack function for Add action.\n * @param {object} pConnect - PConnect object\n * @param {number} index - index of the page list to add\n */\nexport const getAddRowCallback = (pConnect, index) => {\n return () => pConnect.getListActions().insert({}, index, ''); // 3rd arg null until typedef marked correctly as optional\n};\n\n/**\n * This method creates a PConnect object with proper options for Add and Delete actions\n * @param {string} contextName - contextName\n * @param {string} referenceList - referenceList\n * @param {string} pageReference - pageReference\n */\n// NOTE: use of type \"any\" is required since TypeScript doesn't allow private/protected properties\n// to be exported from a class (TS4094 error)\nexport function createPConnect(contextName, referenceList, pageReference): any {\n const options = {\n context: contextName,\n pageReference,\n referenceList\n };\n\n // create PConnect object\n const config = { meta: {}, options };\n const { getPConnect } = PCore.createPConnect(config);\n\n return getPConnect();\n}\n\nexport const filterData = filterByColumns => {\n return function filteringData(item) {\n let bKeep = true;\n for (const filterObj of filterByColumns) {\n if (filterObj.containsFilterValue !== '' || filterObj.containsFilter === 'null' || filterObj.containsFilter === 'notnull') {\n let value: any;\n let filterValue: any;\n\n switch (filterObj.type) {\n case 'Date':\n case 'DateTime':\n case 'Time':\n value = item[filterObj.ref] !== null ?? item[filterObj.ref] !== '' ? Utils.getSeconds(item[filterObj.ref]) : null;\n filterValue =\n filterObj.containsFilterValue !== null && filterObj.containsFilterValue !== '' ? Utils.getSeconds(filterObj.containsFilterValue) : null;\n\n // eslint-disable-next-line sonarjs/no-nested-switch\n switch (filterObj.containsFilter) {\n case 'notequal':\n // becasue filterValue is in minutes, need to have a range of less than 60 secons\n\n if (value !== null && filterValue !== null) {\n // get rid of milliseconds\n value /= 1000;\n filterValue /= 1000;\n\n const diff = value - filterValue;\n if (diff >= 0 && diff < 60) {\n bKeep = false;\n }\n }\n\n break;\n\n case 'equal':\n // becasue filterValue is in minutes, need to have a range of less than 60 secons\n\n if (value !== null && filterValue !== null) {\n // get rid of milliseconds\n value /= 1000;\n filterValue /= 1000;\n\n const diff = value - filterValue;\n if (diff !== 0) {\n bKeep = false;\n }\n }\n\n break;\n\n case 'after':\n if (value < filterValue) {\n bKeep = false;\n }\n break;\n\n case 'before':\n if (value > filterValue) {\n bKeep = false;\n }\n break;\n\n case 'null':\n if (value !== null) {\n bKeep = false;\n }\n break;\n\n case 'notnull':\n if (value === null) {\n bKeep = false;\n }\n break;\n\n default:\n break;\n }\n break;\n\n default:\n value = item[filterObj.ref].toLowerCase();\n filterValue = filterObj.containsFilterValue.toLowerCase();\n\n // eslint-disable-next-line sonarjs/no-nested-switch\n switch (filterObj.containsFilter) {\n case 'contains':\n if (value.indexOf(filterValue) < 0) {\n bKeep = false;\n }\n break;\n\n case 'equals':\n if (value !== filterValue) {\n bKeep = false;\n }\n break;\n\n case 'startswith':\n if (value.indexOf(filterValue) !== 0) {\n bKeep = false;\n }\n break;\n\n default:\n break;\n }\n\n break;\n }\n }\n\n // if don't keep stop filtering\n if (!bKeep) {\n break;\n }\n }\n return bKeep;\n };\n};\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"state-utils.d.ts","sourceRoot":"","sources":["../../../src/components/helpers/state-utils.tsx"],"names":[],"mappings":";AAKA,QAAA,MAAM,cAAc,gDACC,GAAG,mCAsCvB,CAAC;AAEF,eAAe,cAAc,CAAC"}
1
+ {"version":3,"file":"state-utils.d.ts","sourceRoot":"","sources":["../../../src/components/helpers/state-utils.tsx"],"names":[],"mappings":";AAKA,QAAA,MAAM,cAAc,gDACC,GAAG,mCAkCvB,CAAC;AAEF,eAAe,cAAc,CAAC"}
@@ -1,4 +1,5 @@
1
- import React, { useContext } from 'react';
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { useContext } from 'react';
2
3
  import { connect, Provider, shallowEqual } from 'react-redux';
3
4
  import ReactReduxContext from '../../bridge/Context/StoreContext';
4
5
  const connectToState = (mapStateToProps = () => { }) => {
@@ -13,22 +14,19 @@ const connectToState = (mapStateToProps = () => { }) => {
13
14
  // Compare start props
14
15
  const c11nEnv = next.getPConnect();
15
16
  const allStateProps = c11nEnv.getStateProps();
16
- for (const key in allStateProps) {
17
- if (!shallowEqual(next[key], prev[key]) ||
18
- (next.routingInfo && !PCore.isDeepEqual(next.routingInfo, prev.routingInfo))) {
17
+ for (const key of Object.keys(allStateProps)) {
18
+ if (!shallowEqual(next[key], prev[key]) || (next.routingInfo && !PCore.isDeepEqual(next.routingInfo, prev.routingInfo))) {
19
19
  return false;
20
20
  }
21
21
  }
22
22
  /* TODO For some rawConfig we are not getting routingInfo under allStateProps */
23
23
  return !('routingInfo' in next &&
24
- (!shallowEqual(next.routingInfo, prev.routingInfo) ||
25
- !PCore.isDeepEqual(next.routingInfo, prev.routingInfo)));
24
+ (!shallowEqual(next.routingInfo, prev.routingInfo) || !PCore.isDeepEqual(next.routingInfo, prev.routingInfo)));
26
25
  }
27
26
  })(Component);
28
27
  return (ownProps = {}) => {
29
28
  const { store } = useContext(ReactReduxContext);
30
- return (React.createElement(Provider, { store: store },
31
- React.createElement(ConnectedComponent, { ...ownProps })));
29
+ return (_jsx(Provider, { store: store, children: _jsx(ConnectedComponent, { ...ownProps }) }));
32
30
  };
33
31
  };
34
32
  };
@@ -1 +1 @@
1
- {"version":3,"file":"state-utils.js","sourceRoot":"","sources":["../../../src/components/helpers/state-utils.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;AAC1C,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAC9D,OAAO,iBAAiB,MAAM,mCAAmC,CAAC;AAGlE,MAAM,cAAc,GAAG,CAAC,eAAe,GAAG,GAAG,EAAE,GAAE,CAAC,EAAE,EAAE;IACpD,OAAO,CAAC,S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ACpB,oBAAC,kBAAkB,OAAK,QAAQ,GAAI,CAC3B,CACZ,CAAC;QACJ,CAAC,CAAC;IACJ,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,cAAc,CAAC","sourcesContent":["import React, { useContext } from 'react';\nimport { connect, Provider, shallowEqual } from 'react-redux';\nimport ReactReduxContext from '../../bridge/Context/StoreContext';\n\n\nconst connectToState = (mapStateToProps = () => {}) => {\n return (Component: any) => {\n const ConnectedComponent = connect(mapStateToProps, null, null, {\n areStatePropsEqual: (next, prev: any) => {\n // Compare visibility\n const prevWasVisible = prev.visibility !== false;\n if (next.visibility !== undefined && next.visibility !== prevWasVisible) {\n return false;\n }\n // Compare start props\n const c11nEnv = next.getPConnect();\n const allStateProps = c11nEnv.getStateProps();\n for (const key in allStateProps) {\n if (\n !shallowEqual(next[key], prev[key]) ||\n (next.routingInfo && !PCore.isDeepEqual(next.routingInfo, prev.routingInfo))\n ) {\n return false;\n }\n }\n /* TODO For some rawConfig we are not getting routingInfo under allStateProps */\n return !(\n 'routingInfo' in next &&\n (!shallowEqual(next.routingInfo, prev.routingInfo) ||\n !PCore.isDeepEqual(next.routingInfo, prev.routingInfo))\n );\n }\n })(Component);\n\n return (ownProps = {}) => {\n const { store } = useContext<any>(ReactReduxContext);\n\n return (\n <Provider store={store}>\n <ConnectedComponent {...ownProps} />\n </Provider>\n );\n };\n };\n};\n\nexport default connectToState;\n"]}
1
+ {"version":3,"file":"state-utils.js","sourceRoot":"","sources":["../../../src/components/helpers/state-utils.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;AACnC,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAE9D,OAAO,iBAAiB,MAAM,mCAAmC,CAAC;AAElE,MAAM,cAAc,GAAG,CAAC,eAAe,GAAG,GAAG,EAAE,GAAE,CAAC,EAAE,EAAE;IACpD,OAAO,CAAC,SAAc,EAAE,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K,EAAE,KAAK,YACpB,KAAC,kBAAkB,OAAK,QAAQ,GAAI,GAC3B,CACZ,CAAC;QACJ,CAAC,CAAC;IACJ,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,cAAc,CAAC","sourcesContent":["import { useContext } from 'react';\nimport { connect, Provider, shallowEqual } from 'react-redux';\n\nimport ReactReduxContext from '../../bridge/Context/StoreContext';\n\nconst connectToState = (mapStateToProps = () => {}) => {\n return (Component: any) => {\n const ConnectedComponent = connect(mapStateToProps, null, null, {\n areStatePropsEqual: (next, prev: any) => {\n // Compare visibility\n const prevWasVisible = prev.visibility !== false;\n if (next.visibility !== undefined && next.visibility !== prevWasVisible) {\n return false;\n }\n // Compare start props\n const c11nEnv = next.getPConnect();\n const allStateProps = c11nEnv.getStateProps();\n for (const key of Object.keys(allStateProps)) {\n if (!shallowEqual(next[key], prev[key]) || (next.routingInfo && !PCore.isDeepEqual(next.routingInfo, prev.routingInfo))) {\n return false;\n }\n }\n /* TODO For some rawConfig we are not getting routingInfo under allStateProps */\n return !(\n 'routingInfo' in next &&\n (!shallowEqual(next.routingInfo, prev.routingInfo) || !PCore.isDeepEqual(next.routingInfo, prev.routingInfo))\n );\n }\n })(Component);\n\n return (ownProps = {}) => {\n const { store } = useContext<any>(ReactReduxContext);\n\n return (\n <Provider store={store}>\n <ConnectedComponent {...ownProps} />\n </Provider>\n );\n };\n };\n};\n\nexport default connectToState;\n"]}
@@ -1,5 +1,5 @@
1
1
  export declare function getAllFields(pConnect: any): any[];
2
- export declare function filterForFieldValueList(fields: Array<any>): {
2
+ export declare function filterForFieldValueList(fields: any[]): {
3
3
  id: any;
4
4
  name: any;
5
5
  value: any;
@@ -1 +1 @@
1
- {"version":3,"file":"template-utils.d.ts","sourceRoot":"","sources":["../../../src/components/helpers/template-utils.ts"],"names":[],"mappings":"AAGA,wBAAgB,YAAY,CAAC,QAAQ,EAAE,GAAG,SAUzC;AAED,wBAAgB,uBAAuB,CAAC,MAAM,EAAE,KAAK,CAAC,GAAG,CAAC;;;;IAQzD;AAED;;;GAGG;AACH,wBAAgB,mBAAmB,CAAC,QAAQ,KAAA,WAY3C;AAED;;;;GAIG;AACH,wBAAgB,eAAe,CAAC,QAAQ,KAAA,EAAE,YAAY,GAAE,MAAmB,GAAG,MAAM,GAAG,SAAS,CA8B/F"}
1
+ {"version":3,"file":"template-utils.d.ts","sourceRoot":"","sources":["../../../src/components/helpers/template-utils.ts"],"names":[],"mappings":"AAEA,wBAAgB,YAAY,CAAC,QAAQ,EAAE,GAAG,SAUzC;AAED,wBAAgB,uBAAuB,CAAC,MAAM,EAAE,GAAG,EAAE;;;;IAQpD;AAED;;;GAGG;AACH,wBAAgB,mBAAmB,CAAC,QAAQ,KAAA,WAY3C;AAED;;;;GAIG;AACH,wBAAgB,eAAe,CAAC,QAAQ,KAAA,EAAE,YAAY,GAAE,MAAmB,GAAG,MAAM,GAAG,SAAS,CA4B/F"}
@@ -39,8 +39,7 @@ export function getIsAssignmentView(pConnect) {
39
39
  * @param {string} [instructions="casestep"] 'casestep', 'none', or the html content of a Rule-UI-Paragraph rule (processed via core's paragraph annotation handler)
40
40
  */
41
41
  export function getInstructions(pConnect, instructions = 'casestep') {
42
- const caseStepInstructions = PCore.getConstants().CASE_INFO.INSTRUCTIONS &&
43
- pConnect.getValue(PCore.getConstants().CASE_INFO.INSTRUCTIONS);
42
+ const caseStepInstructions = PCore.getConstants().CASE_INFO.INSTRUCTIONS && pConnect.getValue(PCore.getConstants().CASE_INFO.INSTRUCTIONS);
44
43
  // Determine if this view is the current assignment/step view
45
44
  const isCurrentAssignmentView = getIsAssignmentView(pConnect);
46
45
  // Case step instructions
@@ -1 +1 @@
1
- {"version":3,"file":"template-utils.js","sourceRoot":"","sources":["../../../src/components/helpers/template-utils.ts"],"names":[],"mappings":"AAAA,mEAAmE;AAGnE,MAAM,UAAU,YAAY,CAAC,QAAa;IACxC,MAAM,QAAQ,GAAG,QAAQ,CAAC,cAAc,EAAE,CAAC;IAC3C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AAC,cAAc,EAAE,IAAI,QAAQ,CAAC,iBAAiB,EAAE,EAAE,CAAC;IAErF,OAAO,gBAAgB,KAAK,aAAa,CAAC;AAC5C,CAAC;AAED;;;;GAIG;AACH,MAAM,UAAU,eAAe,CAAC,QAAQ,EAAE,eAAuB,UAAU;IACzE,MAAM,oBAAoB,GACxB,KAAK,CAAC,YAAY,EAAE,CAAC,SAAS,CAAC,YAAY;QAC3C,QAAQ,CAAC,QAAQ,CAAC,KAAK,CAAC,YAAY,EAAE,CAAC,SAAS,CAAC,YAAY,CAAC,CAAC;IAEjE,6DAA6D;IAC7D,MAAM,uBAAuB,GAAG,mBAAmB,CAAC,QAAQ,CAAC,CAAC;IAE9D,yBAAyB;IACzB,IAAI,YAAY,KAAK,UAAU,IAAI,uBAAuB,IAAI,oBAAoB,EAAE,MAAM,EAAE;QAC1F,OAAO,oBAAoB,CAAC;KAC7B;IAED,kBAAkB;IAClB,IAAI,YAAY,KAAK,MAAM,EAAE;QAC3B,OAAO,SAAS,CAAC;KAClB;IAED,kFAAkF;IAClF,IAAI,YAAY,EAAE,UAAU,CAAC,YAAY,CAAC,EAAE;QAC1C,OAAO,SAAS,CAAC;KAClB;IAED,oCAAoC;IACpC,iGAAiG;IACjG,+CAA+C;IAC/C,IAAI,YAAY,KAAK,UAAU,IAAI,YAAY,KAAK,MAAM,EAAE;QAC1D,OAAO,YAAY,CAAC;KACrB;IACD,OAAO,SAAS,CAAC;AACnB,CAAC","sourcesContent":["// This file is adapted from React DX components/template/utils.js\n\n\nexport function getAllFields(pConnect: any) {\n const metadata = pConnect.getRawMetadata();\n let allFields: Array<any> = [];\n if (metadata.children && metadata.children.map) {\n allFields = metadata.children.map(fields => {\n const children = fields.children instanceof Array ? fields.children : [];\n return children.map(field => field.config);\n });\n }\n return allFields;\n}\n\nexport function filterForFieldValueList(fields: Array<any>) {\n return fields\n .filter(({ visibility }) => visibility !== false)\n .map(({ value, label }) => ({\n id: label.toLowerCase(),\n name: label,\n value\n }));\n}\n\n/**\n * Determine if the current view is the view of the case step/assignment.\n * @param {Function} pConnect PConnect object for the component\n */\nexport function getIsAssignmentView(pConnect) {\n // Get caseInfo content from the store which contains the view info about the current assignment/step\n // TODO To be replaced with pConnect.getCaseInfo().getCurrentAssignmentView when it's available\n const assignmentViewClass = pConnect.getValue(PCore.getConstants().CASE_INFO.CASE_INFO_CLASSID);\n const assignmentViewName = pConnect.getValue(PCore.getConstants().CASE_INFO.ASSIGNMENTACTION_ID);\n\n const assignmentViewId = `${assignmentViewName}!${assignmentViewClass}`;\n\n // Get the info about the current view from pConnect\n const currentViewId = `${pConnect.getCurrentView()}!${pConnect.getCurrentClassID()}`;\n\n return assignmentViewId === currentViewId;\n}\n\n/**\n * A hook that gets the instructions content for a view.\n * @param {Function} pConnect PConnect object for the component\n * @param {string} [instructions=\"casestep\"] 'casestep', 'none', or the html content of a Rule-UI-Paragraph rule (processed via core's paragraph annotation handler)\n */\nexport function getInstructions(pConnect, instructions: string = 'casestep'): string | undefined {\n const caseStepInstructions =\n PCore.getConstants().CASE_INFO.INSTRUCTIONS &&\n pConnect.getValue(PCore.getConstants().CASE_INFO.INSTRUCTIONS);\n\n // Determine if this view is the current assignment/step view\n const isCurrentAssignmentView = getIsAssignmentView(pConnect);\n\n // Case step instructions\n if (instructions === 'casestep' && isCurrentAssignmentView && caseStepInstructions?.length) {\n return caseStepInstructions;\n }\n\n // No instructions\n if (instructions === 'none') {\n return undefined;\n }\n\n // If the annotation wasn't processed correctly, don't return any instruction text\n if (instructions?.startsWith('@PARAGRAPH')) {\n return undefined;\n }\n\n // Custom instructions from the view\n // The raw metadata for `instructions` will be something like '@PARAGRAPH .SomeParagraphRule' but\n // it is evaluated by core logic to the content\n if (instructions !== 'casestep' && instructions !== 'none') {\n return instructions;\n }\n return undefined;\n}\n"]}
1
+ {"version":3,"file":"template-utils.js","sourceRoot":"","sources":["../../../src/components/helpers/template-utils.ts"],"names":[],"mappings":"AAAA,mEAAmE;AAEnE,MAAM,UA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kB,IAAI,mBAAmB,EAAE,CAAC;IAExE,oDAAoD;IACpD,MAAM,aAAa,GAAG,GAAG,QAAQ,CAAC,cAAc,EAAE,IAAI,QAAQ,CAAC,iBAAiB,EAAE,EAAE,CAAC;IAErF,OAAO,gBAAgB,KAAK,aAAa,CAAC;AAC5C,CAAC;AAED;;;;GAIG;AACH,MAAM,UAAU,eAAe,CAAC,QAAQ,EAAE,eAAuB,UAAU;IACzE,MAAM,oBAAoB,GAAG,KAAK,CAAC,YAAY,EAAE,CAAC,SAAS,CAAC,YAAY,IAAI,QAAQ,CAAC,QAAQ,CAAC,KAAK,CAAC,YAAY,EAAE,CAAC,SAAS,CAAC,YAAY,CAAC,CAAC;IAE3I,6DAA6D;IAC7D,MAAM,uBAAuB,GAAG,mBAAmB,CAAC,QAAQ,CAAC,CAAC;IAE9D,yBAAyB;IACzB,IAAI,YAAY,KAAK,UAAU,IAAI,uBAAuB,IAAI,oBAAoB,EAAE,MAAM,EAAE;QAC1F,OAAO,oBAAoB,CAAC;KAC7B;IAED,kBAAkB;IAClB,IAAI,YAAY,KAAK,MAAM,EAAE;QAC3B,OAAO,SAAS,CAAC;KAClB;IAED,kFAAkF;IAClF,IAAI,YAAY,EAAE,UAAU,CAAC,YAAY,CAAC,EAAE;QAC1C,OAAO,SAAS,CAAC;KAClB;IAED,oCAAoC;IACpC,iGAAiG;IACjG,+CAA+C;IAC/C,IAAI,YAAY,KAAK,UAAU,IAAI,YAAY,KAAK,MAAM,EAAE;QAC1D,OAAO,YAAY,CAAC;KACrB;IACD,OAAO,SAAS,CAAC;AACnB,CAAC","sourcesContent":["// This file is adapted from React DX components/template/utils.js\n\nexport function getAllFields(pConnect: any) {\n const metadata = pConnect.getRawMetadata();\n let allFields: any[] = [];\n if (metadata.children && metadata.children.map) {\n allFields = metadata.children.map(fields => {\n const children = fields.children instanceof Array ? fields.children : [];\n return children.map(field => field.config);\n });\n }\n return allFields;\n}\n\nexport function filterForFieldValueList(fields: any[]) {\n return fields\n .filter(({ visibility }) => visibility !== false)\n .map(({ value, label }) => ({\n id: label.toLowerCase(),\n name: label,\n value\n }));\n}\n\n/**\n * Determine if the current view is the view of the case step/assignment.\n * @param {Function} pConnect PConnect object for the component\n */\nexport function getIsAssignmentView(pConnect) {\n // Get caseInfo content from the store which contains the view info about the current assignment/step\n // TODO To be replaced with pConnect.getCaseInfo().getCurrentAssignmentView when it's available\n const assignmentViewClass = pConnect.getValue(PCore.getConstants().CASE_INFO.CASE_INFO_CLASSID);\n const assignmentViewName = pConnect.getValue(PCore.getConstants().CASE_INFO.ASSIGNMENTACTION_ID);\n\n const assignmentViewId = `${assignmentViewName}!${assignmentViewClass}`;\n\n // Get the info about the current view from pConnect\n const currentViewId = `${pConnect.getCurrentView()}!${pConnect.getCurrentClassID()}`;\n\n return assignmentViewId === currentViewId;\n}\n\n/**\n * A hook that gets the instructions content for a view.\n * @param {Function} pConnect PConnect object for the component\n * @param {string} [instructions=\"casestep\"] 'casestep', 'none', or the html content of a Rule-UI-Paragraph rule (processed via core's paragraph annotation handler)\n */\nexport function getInstructions(pConnect, instructions: string = 'casestep'): string | undefined {\n const caseStepInstructions = PCore.getConstants().CASE_INFO.INSTRUCTIONS && pConnect.getValue(PCore.getConstants().CASE_INFO.INSTRUCTIONS);\n\n // Determine if this view is the current assignment/step view\n const isCurrentAssignmentView = getIsAssignmentView(pConnect);\n\n // Case step instructions\n if (instructions === 'casestep' && isCurrentAssignmentView && caseStepInstructions?.length) {\n return caseStepInstructions;\n }\n\n // No instructions\n if (instructions === 'none') {\n return undefined;\n }\n\n // If the annotation wasn't processed correctly, don't return any instruction text\n if (instructions?.startsWith('@PARAGRAPH')) {\n return undefined;\n }\n\n // Custom instructions from the view\n // The raw metadata for `instructions` will be something like '@PARAGRAPH .SomeParagraphRule' but\n // it is evaluated by core logic to the content\n if (instructions !== 'casestep' && instructions !== 'none') {\n return instructions;\n }\n return undefined;\n}\n"]}
@@ -2,7 +2,7 @@ export declare class Utils {
2
2
  static lastControlID: number;
3
3
  static getSDKStaticConentUrl(): string;
4
4
  static getUniqueControlID(): string;
5
- static getOptionList(configProps: any, dataObject: any): Array<any>;
5
+ static getOptionList(configProps: any, dataObject: any): any[];
6
6
  static getInitials(userName: string): string;
7
7
  static getImageSrc(name: string, serverUrl: string): string;
8
8
  static getIconPath(serverUrl: string): string;
@@ -1 +1 @@
1
- {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/components/helpers/utils.ts"],"names":[],"mappings":"AAUA,qBAAa,KAAK;IAChB,MAAM,CAAC,aAAa,EAAE,MAAM,CAAK;IAEjC,MAAM,CAAC,qBAAqB;IAW5B,MAAM,CAAC,kBAAkB,IAAI,MAAM;IAQnC,MAAM,CAAC,aAAa,CAAC,WAAW,EAAE,GAAG,EAAE,UAAU,EAAE,GAAG,GAAG,KAAK,CAAC,GAAG,CAAC;IAwCnE,MAAM,CAAC,WAAW,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM;IAoB5C,MAAM,CAAC,WAAW,CAAC,IAAI,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,GAAG,MAAM;IAS3D,MAAM,CAAC,WAAW,CAAC,SAAS,EAAE,MAAM,GAAG,MAAM;IAK7C,MAAM,CAAC,eAAe,CAAC,OAAO,EAAE,GAAG,GAAG,OAAO;IAiB7C,MAAM,CAAC,YAAY,CAAC,OAAO,KAAA,EAAE,UAAU,KAAA;IAuFvC,MAAM,CAAC,gBAAgB,CAAC,WAAW,KAAA,EAAE,UAAU,KAAA;IA4E/C,MAAM,CAAC,UAAU,CAAC,KAAK,KAAA,GAAG,GAAG;IAI7B,MAAM,CAAC,mBAAmB,CAAC,QAAQ,KAAA,GAAG,MAAM;IA2B5C,MAAM,CAAC,oBAAoB,CAAC,UAAU,KAAA;IAetC,MAAM,CAAC,WAAW,CAAC,IAAI,KAAA;IAIvB,MAAM,CAAC,QAAQ,CAAC,QAAQ,KAAA;CAGzB;AAED,eAAe,KAAK,CAAC"}
1
+ {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/components/helpers/utils.ts"],"names":[],"mappings":"AAUA,qBAAa,KAAK;IAChB,MAAM,CAAC,aAAa,SAAK;IAEzB,MAAM,CAAC,qBAAqB;IAW5B,MAAM,CAAC,kBAAkB,IAAI,MAAM;IAQnC,MAAM,CAAC,aAAa,CAAC,WAAW,EAAE,GAAG,EAAE,UAAU,EAAE,GAAG,GAAG,GAAG,EAAE;IAwC9D,MAAM,CAAC,WAAW,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM;IAoB5C,MAAM,CAAC,WAAW,CAAC,IAAI,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,GAAG,MAAM;IAS3D,MAAM,CAAC,WAAW,CAAC,SAAS,EAAE,MAAM,GAAG,MAAM;IAK7C,MAAM,CAAC,eAAe,CAAC,OAAO,EAAE,GAAG,GAAG,OAAO;IAiB7C,MAAM,CAAC,YAAY,CAAC,OAAO,KAAA,EAAE,UAAU,KAAA;IAuFvC,MAAM,CAAC,gBAAgB,CAAC,WAAW,KAAA,EAAE,UAAU,KAAA;IA4E/C,MAAM,CAAC,UAAU,CAAC,KAAK,KAAA,GAAG,GAAG;IAI7B,MAAM,CAAC,mBAAmB,CAAC,QAAQ,KAAA,GAAG,MAAM;IA2B5C,MAAM,CAAC,oBAAoB,CAAC,UAAU,KAAA;IAetC,MAAM,CAAC,WAAW,CAAC,IAAI,KAAA;IAIvB,MAAM,CAAC,QAAQ,CAAC,QAAQ,KAAA;CAGzB;AAED,eAAe,KAAK,CAAC"}
@@ -2,11 +2,12 @@ import dayjs from 'dayjs';
2
2
  import customParseFormat from 'dayjs/plugin/customParseFormat';
3
3
  import localizedFormat from 'dayjs/plugin/localizedFormat';
4
4
  import relativeTime from 'dayjs/plugin/relativeTime';
5
- import { SdkConfigAccess } from './config_access';
5
+ import { SdkConfigAccess } from '@pega/auth/lib/sdk-auth-manager';
6
6
  dayjs.extend(customParseFormat);
7
7
  dayjs.extend(localizedFormat);
8
8
  dayjs.extend(relativeTime);
9
9
  export class Utils {
10
+ static lastControlID = 0;
10
11
  static getSDKStaticConentUrl() {
11
12
  const sdkConfigServer = SdkConfigAccess.getSdkConfigServer();
12
13
  // NOTE: Needs a trailing slash! So add one if not provided
@@ -35,7 +36,7 @@ export class Utils {
35
36
  // get data page
36
37
  // eslint-disable-next-line no-case-declarations
37
38
  const dataPage = configProps.datasource;
38
- if (dataObject[dataPage]) {
39
+ if (typeof dataPage === 'string' && dataObject[dataPage]) {
39
40
  // eslint-disable-next-line no-alert
40
41
  alert('need to handle data page');
41
42
  }
@@ -306,11 +307,5 @@ export class Utils {
306
307
  return objValue && typeof objValue === 'object' && objValue.constructor === Object;
307
308
  }
308
309
  }
309
- Object.defineProperty(Utils, "lastControlID", {
310
- enumerable: true,
311
- configurable: true,
312
- writable: true,
313
- value: 0
314
- });
315
310
  export default Utils;
316
311
  //# sourceMappingURL=utils.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"utils.js","sourceRoot":"","sources":["../../../src/components/helpers/utils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,iBAAiB,MAAM,gCAAgC,CAAC;AAC/D,OAAO,eAAe,MAAM,8BAA8B,CAAC;AAC3D,OAAO,YAAY,MAAM,2BAA2B,CAAC;AACrD,OAAO,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAElD,KAAK,CAAC,MAAM,CAAC,iBAAiB,CAAC,CAAC;AAChC,KAAK,CAAC,MAAM,CAAC,eAAe,CAAC,CAAC;AAC9B,KAAK,CAAC,MAAM,CAAC,YAAY,CAAC,CAAC;AAE3B,MAAM,OAAO,KAAK;IAGhB,MAAM,CAAC,qBAAqB;QAC1B,MAAM,eAAe,GAAG,eAAe,CAAC,kBAAkB,EAAE,CAAC;QAE7D,2DAA2D;QAC3D,IAAI,CAAC,eAAe,CAAC,mBAAmB,CAAC,QAAQ,CAAC,GAAG,CAAC,EAAE;YACtD,eAAe,CA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,IAAI,GAAG,mBAAmB,CAAC;aAC5B;SACF;QAED,OAAO,IAAI,CAAC;IACd,CAAC;IAED,MAAM,CAAC,oBAAoB,CAAC,UAAU;QACpC,IAAI,IAAI,CAAC;QACT,QAAQ,UAAU,CAAC,IAAI,EAAE;YACvB,KAAK,MAAM;gBACT,IAAI,GAAG,IAAI,CAAC,mBAAmB,CAAC,UAAU,CAAC,QAAQ,CAAC,CAAC;gBACrD,MAAM;YACR,KAAK,KAAK;gBACR,IAAI,GAAG,OAAO,CAAC;gBACf,MAAM;YACR;gBACE,IAAI,GAAG,cAAc,CAAC;SACzB;QACD,OAAO,IAAI,CAAC;IACd,CAAC;IAED,MAAM,CAAC,WAAW,CAAC,IAAI;QACrB,OAAO,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC;IACtC,CAAC;IAED,MAAM,CAAC,QAAQ,CAAC,QAAQ;QACtB,OAAO,QAAQ,IAAI,OAAO,QAAQ,KAAK,QAAQ,IAAI,QAAQ,CAAC,WAAW,KAAK,MAAM,CAAC;IACrF,CAAC;;AAvUM;;;;WAAwB,CAAC;GAAC;AA0UnC,eAAe,KAAK,CAAC","sourcesContent":["import dayjs from 'dayjs';\nimport customParseFormat from 'dayjs/plugin/customParseFormat';\nimport localizedFormat from 'dayjs/plugin/localizedFormat';\nimport relativeTime from 'dayjs/plugin/relativeTime';\nimport { SdkConfigAccess } from './config_access';\n\ndayjs.extend(customParseFormat);\ndayjs.extend(localizedFormat);\ndayjs.extend(relativeTime);\n\nexport class Utils {\n static lastControlID: number = 0;\n\n static getSDKStaticConentUrl() {\n const sdkConfigServer = SdkConfigAccess.getSdkConfigServer();\n\n // NOTE: Needs a trailing slash! So add one if not provided\n if (!sdkConfigServer.sdkContentServerUrl.endsWith('/')) {\n sdkConfigServer.sdkContentServerUrl = `${sdkConfigServer.sdkContentServerUrl}/`;\n }\n\n return `${sdkConfigServer.sdkContentServerUrl}constellation/`;\n }\n\n static getUniqueControlID(): string {\n const sPrefix = 'control-';\n\n this.lastControlID += 1;\n\n return sPrefix + this.lastControlID.toString();\n }\n\n static getOptionList(configProps: any, dataObject: any): Array<any> {\n const listType = configProps.listType;\n let arReturn: Array<any> = [];\n\n if (listType) {\n switch (listType.toLowerCase()) {\n case 'associated':\n // data source should be an array\n if (typeof configProps.datasource === 'object') {\n arReturn = configProps.datasource;\n }\n break;\n\n case 'datapage':\n // get data page\n // eslint-disable-next-line no-case-declarations\n const dataPage = configProps.datasource;\n if (dataObject[dataPage]) {\n // eslint-disable-next-line no-alert\n alert('need to handle data page');\n } else {\n let listSourceItems = configProps.listOutput;\n if (typeof dataPage === 'object' && !Array.isArray(listSourceItems)) {\n listSourceItems = dataPage.source ? dataPage.source : [];\n }\n (listSourceItems || []).forEach(item => {\n item.value = item.text ? item.text : item.value;\n });\n arReturn = listSourceItems || [];\n }\n break;\n\n default:\n break;\n }\n }\n\n return arReturn;\n }\n\n static getInitials(userName: string): string {\n let userInitials = userName;\n\n if (userName && userName !== '') {\n userInitials = userName.charAt(0);\n\n if (userName.lastIndexOf(' ') > 0) {\n const lastName = userName.substring(userName.lastIndexOf(' ') + 1);\n userInitials += lastName.charAt(0);\n } else if (userName.lastIndexOf('.') > 0) {\n const lastName = userName.substring(userName.lastIndexOf('.') + 1);\n userInitials += lastName.charAt(0);\n }\n } else {\n userInitials = '';\n }\n\n return userInitials.toUpperCase();\n }\n\n static getImageSrc(name: string, serverUrl: string): string {\n let iconName = name.replace('pi-', '').replace('pi ', '').trim();\n if (iconName === 'line-chart') {\n iconName = 'chart-line';\n }\n\n return this.getIconPath(serverUrl).concat(iconName).concat('.svg');\n }\n\n static getIconPath(serverUrl: string): string {\n // Directory in the constellation folder where the icons will be\n return serverUrl.concat('icons/');\n }\n\n static getBooleanValue(inValue: any): boolean {\n let bReturn = false;\n\n if (typeof inValue === 'string') {\n // Experiment with having \"\" be true, too (and \"on\")\n if (inValue.toLowerCase() === 'true' || inValue.toLowerCase() === 'on' || inValue === '') {\n bReturn = true;\n }\n } else {\n bReturn = inValue;\n }\n\n return bReturn;\n }\n\n // Note: Explored using formatters/format but that doesn't do the same as this function. So not possible to just invoke\n // format and do away with all the separate Pega possible dateFormats.\n static generateDate(dateVal, dateFormat) {\n let sReturnDate = dateVal;\n\n if (dateVal === null || dateVal === '') {\n return dateVal;\n }\n\n // VRS: Dont think we need the below line. Commenting out for now. (2020.05.20)\n // dateTimeVal = dateTimeVal.replace(\"GMT\", \"+0000\")\n // Anything else would require a specific String pattern be specified as an argument to the dayjs constructor\n\n // if date has a \".\", then of the format YYYMMDD[T]HHmmss[.]SSS Z, need to change to YYYYMMDD\n if (dateVal.indexOf('.') >= 0) {\n // VRS: Dont think we need the dateVal.replace(\"GMT\", \"+0000\"). Commenting out for now. (2020.05.20)\n // dateVal = dayjs(dateVal.replace(\"GMT\", \"+0000\"), \"YYYYMMDD[T]HHmmss[.]SSS Z\").format(\"YYYYMMDD\");\n // dateVal format appears to be YYYY-MM-DDThh:mm:ss.SSSZ (which is the default dayjs expected format)\n // Don't change the dateVal passed to dayjs (rather just set a default sReturnDate--if that is what we want to do)\n // (better might be just doing that in a default switch block)\n sReturnDate = dayjs(dateVal).format('YYYYMMDD');\n }\n\n switch (dateFormat) {\n case 'Date-Short':\n // 1/1/01\n sReturnDate = dayjs(dateVal).format('M/D/YY');\n break;\n case 'Date-Short-YYYY':\n // 1/1/2001\n sReturnDate = dayjs(dateVal).format('M/D/YYYY');\n break;\n case 'Date-Short-Custom':\n // 01/01/01\n sReturnDate = dayjs(dateVal).format('MM/DD/YY');\n break;\n case 'Date-Short-Custom-YYYY':\n // 01/01/2001\n sReturnDate = dayjs(dateVal).format('L');\n break;\n case 'Date-Medium':\n // Jan 1, 2001\n sReturnDate = dayjs(dateVal).format('ll');\n break;\n case 'Date-DayMonthYear-Custom':\n // 01-Jan-2001\n sReturnDate = dayjs(dateVal).format('DD-MMM-YYYY');\n break;\n case 'Date-Full':\n // Monday, January 1, 2001\n sReturnDate = dayjs(dateVal).format('dddd, MMMM D, YYYY');\n break;\n case 'DateTime-Frame':\n case 'DateTime-Frame-Short':\n case 'DateTime-Since':\n // 2 days, 5 hours ago\n sReturnDate = dayjs(dateVal).fromNow();\n break;\n case 'Date-Long':\n // January 1, 2001\n sReturnDate = dayjs(dateVal).format('MMMM D, YYYY');\n break;\n case 'Date-ISO-8601':\n // 2001/01/01 y/m/d\n sReturnDate = dayjs(dateVal).format('YYYY/MM/DD');\n break;\n case 'Date-Gregorian-1':\n // 01 January, 2001\n sReturnDate = dayjs(dateVal).format('DD MMMM, YYYY');\n break;\n case 'Date-Gregorian-2':\n // January 01, 2001\n sReturnDate = dayjs(dateVal).format('MMMM DD, YYYY');\n break;\n case 'Date-Gregorian-3':\n // 2001, January 01\n sReturnDate = dayjs(dateVal).format('YYYY, MMMM DD');\n break;\n case 'DateTime-Custom':\n break;\n default:\n break;\n }\n\n return sReturnDate;\n }\n\n // Note: Explored using formatters/format but that doesn't do the same as this function. So not possible to just invoke\n // format and do away with all the separate Pega possible dateFormats.\n static generateDateTime(dateTimeVal, dateFormat) {\n let sReturnDate = dateTimeVal;\n\n if (dateTimeVal === null || dateTimeVal === '') {\n return dateTimeVal;\n }\n\n // VRS: Dont think we need the below line. Commenting out for now. (2020.05.20)\n // dateTimeVal = dateTimeVal.replace(\"GMT\", \"+0000\")\n // dateTimeVal format appears to be YYYY-MM-DDThh:mm:ss.SSSZ (which is the default dayjs expected format)\n // Anything else would require a specific String pattern be specified as an argument to the dayjs constructor\n\n switch (dateFormat) {\n case 'DateTime-Short':\n // 1/1/01 1:00 AM\n sReturnDate = dayjs(dateTimeVal).format('M/D/YY h:mm A');\n break;\n case 'DateTime-Short-Custom':\n // 01/01/01 01:00 AM\n sReturnDate = dayjs(dateTimeVal).format('MM/DD/YY hh:mm A');\n break;\n case 'DateTime-Short-YYYY-Custom':\n // 01/01/2001 01:00 AM\n sReturnDate = dayjs(dateTimeVal).format('M/D/YYYY hh:mm A');\n break;\n case 'DateTime-Short-YYYY':\n // 1/1/2001 1:00 AM\n sReturnDate = dayjs(dateTimeVal).format('M/D/YYYY h:mm A');\n break;\n case 'DateTime-Medium':\n // Jan 1, 2001 1:00:00 AM\n sReturnDate = dayjs(dateTimeVal).format('MMM D, YYYY h:mm:ss A');\n break;\n case 'DateTime-Long':\n // January 1, 2001 1:00:00 AM\n sReturnDate = dayjs(dateTimeVal).format('MMMM D, YYYY h:mm:ss A');\n break;\n case 'DateTime-DayMonthYear-Custom':\n // 01-Jan-2001 1:00:00 AM\n sReturnDate = dayjs(dateTimeVal).format('DD-MMM-YYYY h:mm:ss A');\n break;\n case 'DateTime-Full':\n // Monday, January 1, 2001 1:00 AM EDT\n sReturnDate = dayjs(dateTimeVal).format('dddd, MMMM D, YYYY h:mm A z');\n break;\n case 'DateTime-Frame':\n case 'DateTime-Frame-Short':\n case 'DateTime-Since':\n // 2 days, 5 hours ago\n sReturnDate = dayjs(dateTimeVal).fromNow();\n break;\n case 'DateTime-ISO-8601':\n // 2001/01/01 1:00:00 AM y/m/d\n sReturnDate = dayjs(dateTimeVal).format('YYYY/MM/DD h:mm:ss A');\n break;\n case 'DateTime-Gregorian-1':\n // 01 January, 2001 1:00:00 AM\n sReturnDate = dayjs(dateTimeVal).format('DD MMMM, YYYY h:mm:ss A');\n break;\n case 'DateTime-Gregorian-2':\n // January 01, 2001 1:00:00 AM\n sReturnDate = dayjs(dateTimeVal).format('MMMM DD, YYYY h:mm:ss A');\n break;\n case 'DateTime-Gregorian-3':\n // 2001, January 01 1:00:00 AM\n sReturnDate = dayjs(dateTimeVal).format('YYYY, MMMM DD h:mm:ss A');\n break;\n case 'DateTime-Custom':\n break;\n default:\n break;\n }\n\n return sReturnDate;\n }\n\n static getSeconds(sTime): any {\n return dayjs(sTime).valueOf();\n }\n\n static getIconFromFileType(fileType): string {\n let icon = 'document-doc';\n if (!fileType) return icon;\n if (fileType.startsWith('audio')) {\n icon = 'audio';\n } else if (fileType.startsWith('video')) {\n icon = 'video';\n } else if (fileType.startsWith('image')) {\n icon = 'picture';\n } else if (fileType.includes('pdf')) {\n icon = 'document-pdf';\n } else {\n const [, subtype] = fileType.split('/');\n const foundMatch = sources => {\n return sources.some(key => subtype.includes(key));\n };\n\n if (foundMatch(['excel', 'spreadsheet'])) {\n icon = 'document-xls';\n } else if (foundMatch(['zip', 'compressed', 'gzip', 'rar', 'tar'])) {\n icon = 'document-compress';\n }\n }\n\n return icon;\n }\n\n static getIconForAttachment(attachment) {\n let icon;\n switch (attachment.type) {\n case 'FILE':\n icon = this.getIconFromFileType(attachment.mimeType);\n break;\n case 'URL':\n icon = 'chain';\n break;\n default:\n icon = 'document-doc';\n }\n return icon;\n }\n\n static getLastChar(text) {\n return text.charAt(text.length - 1);\n }\n\n static isObject(objValue) {\n return objValue && typeof objValue === 'object' && objValue.constructor === Object;\n }\n}\n\nexport default Utils;\n"]}
1
+ {"version":3,"file":"utils.js","sourceRoot":"","sources":["../../../src/components/helpers/utils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,iBAAiB,MAAM,gCAAgC,CAAC;AAC/D,OAAO,eAAe,MAAM,8BAA8B,CAAC;AAC3D,OAAO,YAAY,MAAM,2BAA2B,CAAC;AACrD,OAAO,EAAE,eAAe,EAAE,MAAM,iCAAiC,CAAC;AAElE,KAAK,CAAC,MAAM,CAAC,iBAAiB,CAAC,CAAC;AAChC,KAAK,CAAC,MAAM,CAAC,eAAe,CAAC,CAAC;AAC9B,KAAK,CAAC,MAAM,CAAC,YAAY,CAAC,CAAC;AAE3B,MAAM,OAAO,KAAK;IAChB,MAAM,CAAC,aAAa,GAAG,CAAC,CAAC;IAEzB,MAAM,CAAC,qBAAqB;QAC1B,MAAM,eAAe,GAAG,eAAe,CAAC,kBAAkB,EAAE,CAAC;QAE7D,2DAA2D;QAC3D,IAAI,CAAC,eAAe,CAAC,mBAAmB,CAAC,QAAQ,CAAC,GAAG,CAAC,EAAE;YACt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,KAAK,EAAE,KAAK,CAAC,CAAC,EAAE;gBAClE,IAAI,GAAG,mBAAmB,CAAC;aAC5B;SACF;QAED,OAAO,IAAI,CAAC;IACd,CAAC;IAED,MAAM,CAAC,oBAAoB,CAAC,UAAU;QACpC,IAAI,IAAI,CAAC;QACT,QAAQ,UAAU,CAAC,IAAI,EAAE;YACvB,KAAK,MAAM;gBACT,IAAI,GAAG,IAAI,CAAC,mBAAmB,CAAC,UAAU,CAAC,QAAQ,CAAC,CAAC;gBACrD,MAAM;YACR,KAAK,KAAK;gBACR,IAAI,GAAG,OAAO,CAAC;gBACf,MAAM;YACR;gBACE,IAAI,GAAG,cAAc,CAAC;SACzB;QACD,OAAO,IAAI,CAAC;IACd,CAAC;IAED,MAAM,CAAC,WAAW,CAAC,IAAI;QACrB,OAAO,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC;IACtC,CAAC;IAED,MAAM,CAAC,QAAQ,CAAC,QAAQ;QACtB,OAAO,QAAQ,IAAI,OAAO,QAAQ,KAAK,QAAQ,IAAI,QAAQ,CAAC,WAAW,KAAK,MAAM,CAAC;IACrF,CAAC;;AAGH,eAAe,KAAK,CAAC","sourcesContent":["import dayjs from 'dayjs';\nimport customParseFormat from 'dayjs/plugin/customParseFormat';\nimport localizedFormat from 'dayjs/plugin/localizedFormat';\nimport relativeTime from 'dayjs/plugin/relativeTime';\nimport { SdkConfigAccess } from '@pega/auth/lib/sdk-auth-manager';\n\ndayjs.extend(customParseFormat);\ndayjs.extend(localizedFormat);\ndayjs.extend(relativeTime);\n\nexport class Utils {\n static lastControlID = 0;\n\n static getSDKStaticConentUrl() {\n const sdkConfigServer = SdkConfigAccess.getSdkConfigServer();\n\n // NOTE: Needs a trailing slash! So add one if not provided\n if (!sdkConfigServer.sdkContentServerUrl.endsWith('/')) {\n sdkConfigServer.sdkContentServerUrl = `${sdkConfigServer.sdkContentServerUrl}/`;\n }\n\n return `${sdkConfigServer.sdkContentServerUrl}constellation/`;\n }\n\n static getUniqueControlID(): string {\n const sPrefix = 'control-';\n\n this.lastControlID += 1;\n\n return sPrefix + this.lastControlID.toString();\n }\n\n static getOptionList(configProps: any, dataObject: any): any[] {\n const listType = configProps.listType;\n let arReturn: any[] = [];\n\n if (listType) {\n switch (listType.toLowerCase()) {\n case 'associated':\n // data source should be an array\n if (typeof configProps.datasource === 'object') {\n arReturn = configProps.datasource;\n }\n break;\n\n case 'datapage':\n // get data page\n // eslint-disable-next-line no-case-declarations\n const dataPage = configProps.datasource;\n if (typeof dataPage === 'string' && dataObject[dataPage]) {\n // eslint-disable-next-line no-alert\n alert('need to handle data page');\n } else {\n let listSourceItems = configProps.listOutput;\n if (typeof dataPage === 'object' && !Array.isArray(listSourceItems)) {\n listSourceItems = dataPage.source ? dataPage.source : [];\n }\n (listSourceItems || []).forEach(item => {\n item.value = item.text ? item.text : item.value;\n });\n arReturn = listSourceItems || [];\n }\n break;\n\n default:\n break;\n }\n }\n\n return arReturn;\n }\n\n static getInitials(userName: string): string {\n let userInitials = userName;\n\n if (userName && userName !== '') {\n userInitials = userName.charAt(0);\n\n if (userName.lastIndexOf(' ') > 0) {\n const lastName = userName.substring(userName.lastIndexOf(' ') + 1);\n userInitials += lastName.charAt(0);\n } else if (userName.lastIndexOf('.') > 0) {\n const lastName = userName.substring(userName.lastIndexOf('.') + 1);\n userInitials += lastName.charAt(0);\n }\n } else {\n userInitials = '';\n }\n\n return userInitials.toUpperCase();\n }\n\n static getImageSrc(name: string, serverUrl: string): string {\n let iconName = name.replace('pi-', '').replace('pi ', '').trim();\n if (iconName === 'line-chart') {\n iconName = 'chart-line';\n }\n\n return this.getIconPath(serverUrl).concat(iconName).concat('.svg');\n }\n\n static getIconPath(serverUrl: string): string {\n // Directory in the constellation folder where the icons will be\n return serverUrl.concat('icons/');\n }\n\n static getBooleanValue(inValue: any): boolean {\n let bReturn = false;\n\n if (typeof inValue === 'string') {\n // Experiment with having \"\" be true, too (and \"on\")\n if (inValue.toLowerCase() === 'true' || inValue.toLowerCase() === 'on' || inValue === '') {\n bReturn = true;\n }\n } else {\n bReturn = inValue;\n }\n\n return bReturn;\n }\n\n // Note: Explored using formatters/format but that doesn't do the same as this function. So not possible to just invoke\n // format and do away with all the separate Pega possible dateFormats.\n static generateDate(dateVal, dateFormat) {\n let sReturnDate = dateVal;\n\n if (dateVal === null || dateVal === '') {\n return dateVal;\n }\n\n // VRS: Dont think we need the below line. Commenting out for now. (2020.05.20)\n // dateTimeVal = dateTimeVal.replace(\"GMT\", \"+0000\")\n // Anything else would require a specific String pattern be specified as an argument to the dayjs constructor\n\n // if date has a \".\", then of the format YYYMMDD[T]HHmmss[.]SSS Z, need to change to YYYYMMDD\n if (dateVal.indexOf('.') >= 0) {\n // VRS: Dont think we need the dateVal.replace(\"GMT\", \"+0000\"). Commenting out for now. (2020.05.20)\n // dateVal = dayjs(dateVal.replace(\"GMT\", \"+0000\"), \"YYYYMMDD[T]HHmmss[.]SSS Z\").format(\"YYYYMMDD\");\n // dateVal format appears to be YYYY-MM-DDThh:mm:ss.SSSZ (which is the default dayjs expected format)\n // Don't change the dateVal passed to dayjs (rather just set a default sReturnDate--if that is what we want to do)\n // (better might be just doing that in a default switch block)\n sReturnDate = dayjs(dateVal).format('YYYYMMDD');\n }\n\n switch (dateFormat) {\n case 'Date-Short':\n // 1/1/01\n sReturnDate = dayjs(dateVal).format('M/D/YY');\n break;\n case 'Date-Short-YYYY':\n // 1/1/2001\n sReturnDate = dayjs(dateVal).format('M/D/YYYY');\n break;\n case 'Date-Short-Custom':\n // 01/01/01\n sReturnDate = dayjs(dateVal).format('MM/DD/YY');\n break;\n case 'Date-Short-Custom-YYYY':\n // 01/01/2001\n sReturnDate = dayjs(dateVal).format('L');\n break;\n case 'Date-Medium':\n // Jan 1, 2001\n sReturnDate = dayjs(dateVal).format('ll');\n break;\n case 'Date-DayMonthYear-Custom':\n // 01-Jan-2001\n sReturnDate = dayjs(dateVal).format('DD-MMM-YYYY');\n break;\n case 'Date-Full':\n // Monday, January 1, 2001\n sReturnDate = dayjs(dateVal).format('dddd, MMMM D, YYYY');\n break;\n case 'DateTime-Frame':\n case 'DateTime-Frame-Short':\n case 'DateTime-Since':\n // 2 days, 5 hours ago\n sReturnDate = dayjs(dateVal).fromNow();\n break;\n case 'Date-Long':\n // January 1, 2001\n sReturnDate = dayjs(dateVal).format('MMMM D, YYYY');\n break;\n case 'Date-ISO-8601':\n // 2001/01/01 y/m/d\n sReturnDate = dayjs(dateVal).format('YYYY/MM/DD');\n break;\n case 'Date-Gregorian-1':\n // 01 January, 2001\n sReturnDate = dayjs(dateVal).format('DD MMMM, YYYY');\n break;\n case 'Date-Gregorian-2':\n // January 01, 2001\n sReturnDate = dayjs(dateVal).format('MMMM DD, YYYY');\n break;\n case 'Date-Gregorian-3':\n // 2001, January 01\n sReturnDate = dayjs(dateVal).format('YYYY, MMMM DD');\n break;\n case 'DateTime-Custom':\n break;\n default:\n break;\n }\n\n return sReturnDate;\n }\n\n // Note: Explored using formatters/format but that doesn't do the same as this function. So not possible to just invoke\n // format and do away with all the separate Pega possible dateFormats.\n static generateDateTime(dateTimeVal, dateFormat) {\n let sReturnDate = dateTimeVal;\n\n if (dateTimeVal === null || dateTimeVal === '') {\n return dateTimeVal;\n }\n\n // VRS: Dont think we need the below line. Commenting out for now. (2020.05.20)\n // dateTimeVal = dateTimeVal.replace(\"GMT\", \"+0000\")\n // dateTimeVal format appears to be YYYY-MM-DDThh:mm:ss.SSSZ (which is the default dayjs expected format)\n // Anything else would require a specific String pattern be specified as an argument to the dayjs constructor\n\n switch (dateFormat) {\n case 'DateTime-Short':\n // 1/1/01 1:00 AM\n sReturnDate = dayjs(dateTimeVal).format('M/D/YY h:mm A');\n break;\n case 'DateTime-Short-Custom':\n // 01/01/01 01:00 AM\n sReturnDate = dayjs(dateTimeVal).format('MM/DD/YY hh:mm A');\n break;\n case 'DateTime-Short-YYYY-Custom':\n // 01/01/2001 01:00 AM\n sReturnDate = dayjs(dateTimeVal).format('M/D/YYYY hh:mm A');\n break;\n case 'DateTime-Short-YYYY':\n // 1/1/2001 1:00 AM\n sReturnDate = dayjs(dateTimeVal).format('M/D/YYYY h:mm A');\n break;\n case 'DateTime-Medium':\n // Jan 1, 2001 1:00:00 AM\n sReturnDate = dayjs(dateTimeVal).format('MMM D, YYYY h:mm:ss A');\n break;\n case 'DateTime-Long':\n // January 1, 2001 1:00:00 AM\n sReturnDate = dayjs(dateTimeVal).format('MMMM D, YYYY h:mm:ss A');\n break;\n case 'DateTime-DayMonthYear-Custom':\n // 01-Jan-2001 1:00:00 AM\n sReturnDate = dayjs(dateTimeVal).format('DD-MMM-YYYY h:mm:ss A');\n break;\n case 'DateTime-Full':\n // Monday, January 1, 2001 1:00 AM EDT\n sReturnDate = dayjs(dateTimeVal).format('dddd, MMMM D, YYYY h:mm A z');\n break;\n case 'DateTime-Frame':\n case 'DateTime-Frame-Short':\n case 'DateTime-Since':\n // 2 days, 5 hours ago\n sReturnDate = dayjs(dateTimeVal).fromNow();\n break;\n case 'DateTime-ISO-8601':\n // 2001/01/01 1:00:00 AM y/m/d\n sReturnDate = dayjs(dateTimeVal).format('YYYY/MM/DD h:mm:ss A');\n break;\n case 'DateTime-Gregorian-1':\n // 01 January, 2001 1:00:00 AM\n sReturnDate = dayjs(dateTimeVal).format('DD MMMM, YYYY h:mm:ss A');\n break;\n case 'DateTime-Gregorian-2':\n // January 01, 2001 1:00:00 AM\n sReturnDate = dayjs(dateTimeVal).format('MMMM DD, YYYY h:mm:ss A');\n break;\n case 'DateTime-Gregorian-3':\n // 2001, January 01 1:00:00 AM\n sReturnDate = dayjs(dateTimeVal).format('YYYY, MMMM DD h:mm:ss A');\n break;\n case 'DateTime-Custom':\n break;\n default:\n break;\n }\n\n return sReturnDate;\n }\n\n static getSeconds(sTime): any {\n return dayjs(sTime).valueOf();\n }\n\n static getIconFromFileType(fileType): string {\n let icon = 'document-doc';\n if (!fileType) return icon;\n if (fileType.startsWith('audio')) {\n icon = 'audio';\n } else if (fileType.startsWith('video')) {\n icon = 'video';\n } else if (fileType.startsWith('image')) {\n icon = 'picture';\n } else if (fileType.includes('pdf')) {\n icon = 'document-pdf';\n } else {\n const [, subtype] = fileType.split('/');\n const foundMatch = sources => {\n return sources.some(key => subtype.includes(key));\n };\n\n if (foundMatch(['excel', 'spreadsheet'])) {\n icon = 'document-xls';\n } else if (foundMatch(['zip', 'compressed', 'gzip', 'rar', 'tar'])) {\n icon = 'document-compress';\n }\n }\n\n return icon;\n }\n\n static getIconForAttachment(attachment) {\n let icon;\n switch (attachment.type) {\n case 'FILE':\n icon = this.getIconFromFileType(attachment.mimeType);\n break;\n case 'URL':\n icon = 'chain';\n break;\n default:\n icon = 'document-doc';\n }\n return icon;\n }\n\n static getLastChar(text) {\n return text.charAt(text.length - 1);\n }\n\n static isObject(objValue) {\n return objValue && typeof objValue === 'object' && objValue.constructor === Object;\n }\n}\n\nexport default Utils;\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"versionHelpers.d.ts","sourceRoot":"","sources":["../../../src/components/helpers/versionHelpers.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAGH,eAAO,MAAM,UAAU,QAAQ,CAAC;AAEhC,wBAAgB,uBAAuB,SAOtC"}
1
+ {"version":3,"file":"versionHelpers.d.ts","sourceRoot":"","sources":["../../../src/components/helpers/versionHelpers.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,eAAO,MAAM,UAAU,QAAQ,CAAC;AAEhC,wBAAgB,uBAAuB,SAKtC"}
@@ -4,7 +4,7 @@
4
4
  * Container helper functions that can identify which version of
5
5
  * PCore/PConnect is being run
6
6
  */
7
- export const sdkVersion = "8.7";
7
+ export const sdkVersion = '8.7';
8
8
  export function compareSdkPCoreVersions() {
9
9
  // const theConstellationVersion = PCore.getPCoreVersion();
10
10
  // eslint-disable-next-line no-console
@@ -1 +1 @@
1
- {"version":3,"file":"versionHelpers.js","sourceRoot":"","sources":["../../../src/components/helpers/versionHelpers.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAGH,MAAM,CAAC,MAAM,UAAU,GAAG,KAAK,CAAC;AAEhC,MAAM,UAAU,uBAAuB;IAErC,2DAA2D;IAE3D,sCAAsC;IACtC,OAAO,CAAC,IAAI,CAAC,+BAA+B,KAAK,CAAC,eAAe,EAAE,4DAA4D,CAAC,CAAC;AAEnI,CAAC","sourcesContent":["/**\n * versionHelpers.ts\n *\n * Container helper functions that can identify which version of\n * PCore/PConnect is being run\n */\n\n\nexport const sdkVersion = \"8.7\";\n\nexport function compareSdkPCoreVersions() {\n\n // const theConstellationVersion = PCore.getPCoreVersion();\n\n // eslint-disable-next-line no-console\n console.warn(`Using Constellation version ${PCore.getPCoreVersion()}. Ensure this is the same version as your Infinity server.`);\n\n}\n"]}
1
+ {"version":3,"file":"versionHelpers.js","sourceRoot":"","sources":["../../../src/components/helpers/versionHelpers.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,MAAM,CAAC,MAAM,UAAU,GAAG,KAAK,CAAC;AAEhC,MAAM,UAAU,uBAAuB;IACrC,2DAA2D;IAE3D,sCAAsC;IACtC,OAAO,CAAC,IAAI,CAAC,+BAA+B,KAAK,CAAC,eAAe,EAAE,4DAA4D,CAAC,CAAC;AACnI,CAAC","sourcesContent":["/**\n * versionHelpers.ts\n *\n * Container helper functions that can identify which version of\n * PCore/PConnect is being run\n */\n\nexport const sdkVersion = '8.7';\n\nexport function compareSdkPCoreVersions() {\n // const theConstellationVersion = PCore.getPCoreVersion();\n\n // eslint-disable-next-line no-console\n console.warn(`Using Constellation version ${PCore.getPCoreVersion()}. Ensure this is the same version as your Infinity server.`);\n}\n"]}
@@ -1,7 +1,7 @@
1
1
  /// <reference types="react" />
2
2
  interface ActionButtonsProps {
3
- arMainButtons?: Array<any>;
4
- arSecondaryButtons?: Array<any>;
3
+ arMainButtons?: any[];
4
+ arSecondaryButtons?: any[];
5
5
  onButtonPress: any;
6
6
  }
7
7
  export default function ActionButtons(props: ActionButtonsProps): JSX.Element;
@@ -1 +1 @@
1
- {"version":3,"file":"ActionButtons.d.ts","sourceRoot":"","sources":["../../../../src/components/infra/ActionButtons/ActionButtons.tsx"],"names":[],"mappings":";AAOA,UAAU,kBAAkB;IAE1B,aAAa,CAAC,EAAE,KAAK,CAAC,GAAG,CAAC,CAAC;IAC3B,kBAAkB,CAAC,EAAE,KAAK,CAAC,GAAG,CAAC,CAAC;IAChC,aAAa,EAAE,GAAG,CAAA;CACnB;AAcD,MAAM,CAAC,OAAO,UAAU,aAAa,CAAC,KAAK,EAAE,kBAAkB,eAsC9D"}
1
+ {"version":3,"file":"ActionButtons.d.ts","sourceRoot":"","sources":["../../../../src/components/infra/ActionButtons/ActionButtons.tsx"],"names":[],"mappings":";AAKA,UAAU,kBAAkB;IAE1B,aAAa,CAAC,EAAE,GAAG,EAAE,CAAC;IACtB,kBAAkB,CAAC,EAAE,GAAG,EAAE,CAAC;IAC3B,aAAa,EAAE,GAAG,CAAC;CACpB;AAYD,MAAM,CAAC,OAAO,UAAU,aAAa,CAAC,KAAK,EAAE,kBAAkB,eAmD9D"}