@pega/react-sdk-components 8.23.11 → 23.1.10

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 (499) hide show
  1. package/lib/components/designSystemExtension/AlertBanner/AlertBanner.d.ts +7 -10
  2. package/lib/components/designSystemExtension/AlertBanner/AlertBanner.d.ts.map +1 -1
  3. package/lib/components/designSystemExtension/AlertBanner/AlertBanner.js +0 -7
  4. package/lib/components/designSystemExtension/AlertBanner/AlertBanner.js.map +1 -1
  5. package/lib/components/designSystemExtension/Banner/Banner.d.ts +15 -1
  6. package/lib/components/designSystemExtension/Banner/Banner.d.ts.map +1 -1
  7. package/lib/components/designSystemExtension/Banner/Banner.js.map +1 -1
  8. package/lib/components/designSystemExtension/CaseSummaryFields/CaseSummaryFields.d.ts +6 -9
  9. package/lib/components/designSystemExtension/CaseSummaryFields/CaseSummaryFields.d.ts.map +1 -1
  10. package/lib/components/designSystemExtension/CaseSummaryFields/CaseSummaryFields.js +3 -7
  11. package/lib/components/designSystemExtension/CaseSummaryFields/CaseSummaryFields.js.map +1 -1
  12. package/lib/components/designSystemExtension/DetailsFields/DetailsFields.d.ts +4 -10
  13. package/lib/components/designSystemExtension/DetailsFields/DetailsFields.d.ts.map +1 -1
  14. package/lib/components/designSystemExtension/DetailsFields/DetailsFields.js +1 -8
  15. package/lib/components/designSystemExtension/DetailsFields/DetailsFields.js.map +1 -1
  16. package/lib/components/designSystemExtension/FieldGroup/FieldGroup.d.ts +6 -2
  17. package/lib/components/designSystemExtension/FieldGroup/FieldGroup.d.ts.map +1 -1
  18. package/lib/components/designSystemExtension/FieldGroup/FieldGroup.js +3 -3
  19. package/lib/components/designSystemExtension/FieldGroup/FieldGroup.js.map +1 -1
  20. package/lib/components/designSystemExtension/FieldGroupList/FieldGroupList.d.ts +7 -2
  21. package/lib/components/designSystemExtension/FieldGroupList/FieldGroupList.d.ts.map +1 -1
  22. package/lib/components/designSystemExtension/FieldGroupList/FieldGroupList.js +3 -3
  23. package/lib/components/designSystemExtension/FieldGroupList/FieldGroupList.js.map +1 -1
  24. package/lib/components/designSystemExtension/FieldValueList/FieldValueList.d.ts +7 -2
  25. package/lib/components/designSystemExtension/FieldValueList/FieldValueList.d.ts.map +1 -1
  26. package/lib/components/designSystemExtension/FieldValueList/FieldValueList.js +3 -3
  27. package/lib/components/designSystemExtension/FieldValueList/FieldValueList.js.map +1 -1
  28. package/lib/components/designSystemExtension/Operator/Operator.d.ts +17 -7
  29. package/lib/components/designSystemExtension/Operator/Operator.d.ts.map +1 -1
  30. package/lib/components/designSystemExtension/Operator/Operator.js +1 -6
  31. package/lib/components/designSystemExtension/Operator/Operator.js.map +1 -1
  32. package/lib/components/designSystemExtension/Pulse/Pulse.d.ts +5 -1
  33. package/lib/components/designSystemExtension/Pulse/Pulse.d.ts.map +1 -1
  34. package/lib/components/designSystemExtension/Pulse/Pulse.js +3 -6
  35. package/lib/components/designSystemExtension/Pulse/Pulse.js.map +1 -1
  36. package/lib/components/designSystemExtension/RichTextEditor/RichTextEditor.d.ts +19 -0
  37. package/lib/components/designSystemExtension/RichTextEditor/RichTextEditor.d.ts.map +1 -0
  38. package/lib/components/designSystemExtension/RichTextEditor/RichTextEditor.js +77 -0
  39. package/lib/components/designSystemExtension/RichTextEditor/RichTextEditor.js.map +1 -0
  40. package/lib/components/designSystemExtension/RichTextEditor/index.d.ts +2 -0
  41. package/lib/components/designSystemExtension/RichTextEditor/index.d.ts.map +1 -0
  42. package/lib/components/designSystemExtension/RichTextEditor/index.js +2 -0
  43. package/lib/components/designSystemExtension/RichTextEditor/index.js.map +1 -0
  44. package/lib/components/designSystemExtension/WssQuickCreate/WssQuickCreate.d.ts +6 -1
  45. package/lib/components/designSystemExtension/WssQuickCreate/WssQuickCreate.d.ts.map +1 -1
  46. package/lib/components/designSystemExtension/WssQuickCreate/WssQuickCreate.js.map +1 -1
  47. package/lib/components/field/AutoComplete/AutoComplete.d.ts +15 -1
  48. package/lib/components/field/AutoComplete/AutoComplete.d.ts.map +1 -1
  49. package/lib/components/field/AutoComplete/AutoComplete.js +18 -16
  50. package/lib/components/field/AutoComplete/AutoComplete.js.map +1 -1
  51. package/lib/components/field/CancelAlert/CancelAlert.d.ts +7 -2
  52. package/lib/components/field/CancelAlert/CancelAlert.d.ts.map +1 -1
  53. package/lib/components/field/CancelAlert/CancelAlert.js +3 -3
  54. package/lib/components/field/CancelAlert/CancelAlert.js.map +1 -1
  55. package/lib/components/field/Checkbox/Checkbox.d.ts.map +1 -1
  56. package/lib/components/field/Checkbox/Checkbox.js +35 -7
  57. package/lib/components/field/Checkbox/Checkbox.js.map +1 -1
  58. package/lib/components/field/Currency/Currency.d.ts +6 -1
  59. package/lib/components/field/Currency/Currency.d.ts.map +1 -1
  60. package/lib/components/field/Currency/Currency.js +12 -12
  61. package/lib/components/field/Currency/Currency.js.map +1 -1
  62. package/lib/components/field/Currency/currency-utils.d.ts.map +1 -1
  63. package/lib/components/field/Currency/currency-utils.js +1 -1
  64. package/lib/components/field/Currency/currency-utils.js.map +1 -1
  65. package/lib/components/field/Date/Date.d.ts +5 -1
  66. package/lib/components/field/Date/Date.d.ts.map +1 -1
  67. package/lib/components/field/Date/Date.js +9 -7
  68. package/lib/components/field/Date/Date.js.map +1 -1
  69. package/lib/components/field/DateTime/DateTime.d.ts +5 -1
  70. package/lib/components/field/DateTime/DateTime.d.ts.map +1 -1
  71. package/lib/components/field/DateTime/DateTime.js +15 -9
  72. package/lib/components/field/DateTime/DateTime.js.map +1 -1
  73. package/lib/components/field/Decimal/Decimal.d.ts +8 -1
  74. package/lib/components/field/Decimal/Decimal.d.ts.map +1 -1
  75. package/lib/components/field/Decimal/Decimal.js +11 -10
  76. package/lib/components/field/Decimal/Decimal.js.map +1 -1
  77. package/lib/components/field/Dropdown/Dropdown.d.ts.map +1 -1
  78. package/lib/components/field/Dropdown/Dropdown.js +26 -12
  79. package/lib/components/field/Dropdown/Dropdown.js.map +1 -1
  80. package/lib/components/field/Email/Email.d.ts +5 -1
  81. package/lib/components/field/Email/Email.d.ts.map +1 -1
  82. package/lib/components/field/Email/Email.js +7 -5
  83. package/lib/components/field/Email/Email.js.map +1 -1
  84. package/lib/components/field/Integer/Integer.d.ts +5 -1
  85. package/lib/components/field/Integer/Integer.d.ts.map +1 -1
  86. package/lib/components/field/Integer/Integer.js +6 -4
  87. package/lib/components/field/Integer/Integer.js.map +1 -1
  88. package/lib/components/field/Percentage/Percentage.d.ts +5 -1
  89. package/lib/components/field/Percentage/Percentage.d.ts.map +1 -1
  90. package/lib/components/field/Percentage/Percentage.js +6 -4
  91. package/lib/components/field/Percentage/Percentage.js.map +1 -1
  92. package/lib/components/field/Phone/Phone.d.ts +5 -1
  93. package/lib/components/field/Phone/Phone.d.ts.map +1 -1
  94. package/lib/components/field/Phone/Phone.js +8 -6
  95. package/lib/components/field/Phone/Phone.js.map +1 -1
  96. package/lib/components/field/RadioButtons/RadioButtons.d.ts.map +1 -1
  97. package/lib/components/field/RadioButtons/RadioButtons.js +21 -14
  98. package/lib/components/field/RadioButtons/RadioButtons.js.map +1 -1
  99. package/lib/components/field/RichText/RichText.d.ts +7 -0
  100. package/lib/components/field/RichText/RichText.d.ts.map +1 -0
  101. package/lib/components/field/RichText/RichText.js +53 -0
  102. package/lib/components/field/RichText/RichText.js.map +1 -0
  103. package/lib/components/field/RichText/index.d.ts +2 -0
  104. package/lib/components/field/RichText/index.d.ts.map +1 -0
  105. package/lib/components/field/RichText/index.js +2 -0
  106. package/lib/components/field/RichText/index.js.map +1 -0
  107. package/lib/components/field/ScalarList/ScalarList.d.ts +13 -0
  108. package/lib/components/field/ScalarList/ScalarList.d.ts.map +1 -0
  109. package/lib/components/field/ScalarList/ScalarList.js +34 -0
  110. package/lib/components/field/ScalarList/ScalarList.js.map +1 -0
  111. package/lib/components/field/ScalarList/index.d.ts +2 -0
  112. package/lib/components/field/ScalarList/index.d.ts.map +1 -0
  113. package/lib/components/field/ScalarList/index.js +2 -0
  114. package/lib/components/field/ScalarList/index.js.map +1 -0
  115. package/lib/components/field/SemanticLink/SemanticLink.d.ts +5 -9
  116. package/lib/components/field/SemanticLink/SemanticLink.d.ts.map +1 -1
  117. package/lib/components/field/SemanticLink/SemanticLink.js +10 -14
  118. package/lib/components/field/SemanticLink/SemanticLink.js.map +1 -1
  119. package/lib/components/field/TextArea/TextArea.d.ts +6 -1
  120. package/lib/components/field/TextArea/TextArea.d.ts.map +1 -1
  121. package/lib/components/field/TextArea/TextArea.js +5 -3
  122. package/lib/components/field/TextArea/TextArea.js.map +1 -1
  123. package/lib/components/field/TextContent/TextContent.d.ts +7 -1
  124. package/lib/components/field/TextContent/TextContent.d.ts.map +1 -1
  125. package/lib/components/field/TextContent/TextContent.js.map +1 -1
  126. package/lib/components/field/TextInput/TextInput.d.ts +6 -1
  127. package/lib/components/field/TextInput/TextInput.d.ts.map +1 -1
  128. package/lib/components/field/TextInput/TextInput.js +7 -5
  129. package/lib/components/field/TextInput/TextInput.js.map +1 -1
  130. package/lib/components/field/Time/Time.d.ts +5 -1
  131. package/lib/components/field/Time/Time.d.ts.map +1 -1
  132. package/lib/components/field/Time/Time.js +10 -8
  133. package/lib/components/field/Time/Time.js.map +1 -1
  134. package/lib/components/field/URL/URL.d.ts +5 -1
  135. package/lib/components/field/URL/URL.d.ts.map +1 -1
  136. package/lib/components/field/URL/URL.js +6 -4
  137. package/lib/components/field/URL/URL.js.map +1 -1
  138. package/lib/components/field/UserReference/UserReference.d.ts +19 -40
  139. package/lib/components/field/UserReference/UserReference.d.ts.map +1 -1
  140. package/lib/components/field/UserReference/UserReference.js +16 -45
  141. package/lib/components/field/UserReference/UserReference.js.map +1 -1
  142. package/lib/components/helpers/attachmentHelpers.d.ts +3 -3
  143. package/lib/components/helpers/attachmentHelpers.d.ts.map +1 -1
  144. package/lib/components/helpers/attachmentHelpers.js.map +1 -1
  145. package/lib/components/helpers/auth.d.ts +8 -6
  146. package/lib/components/helpers/auth.d.ts.map +1 -1
  147. package/lib/components/helpers/auth.js +642 -327
  148. package/lib/components/helpers/auth.js.map +1 -1
  149. package/lib/components/helpers/authManager.d.ts +20 -17
  150. package/lib/components/helpers/authManager.d.ts.map +1 -1
  151. package/lib/components/helpers/authManager.js +711 -439
  152. package/lib/components/helpers/authManager.js.map +1 -1
  153. package/lib/components/helpers/case-utils.d.ts.map +1 -1
  154. package/lib/components/helpers/case-utils.js +5 -4
  155. package/lib/components/helpers/case-utils.js.map +1 -1
  156. package/lib/components/helpers/common-utils.d.ts +1 -1
  157. package/lib/components/helpers/common-utils.js.map +1 -1
  158. package/lib/components/helpers/config_access.d.ts.map +1 -1
  159. package/lib/components/helpers/config_access.js +0 -63
  160. package/lib/components/helpers/config_access.js.map +1 -1
  161. package/lib/components/helpers/date-format-utils.d.ts +1 -6
  162. package/lib/components/helpers/date-format-utils.d.ts.map +1 -1
  163. package/lib/components/helpers/date-format-utils.js.map +1 -1
  164. package/lib/components/helpers/event-utils.d.ts +1 -1
  165. package/lib/components/helpers/event-utils.d.ts.map +1 -1
  166. package/lib/components/helpers/event-utils.js.map +1 -1
  167. package/lib/components/helpers/field-group-utils.d.ts.map +1 -1
  168. package/lib/components/helpers/field-group-utils.js +4 -8
  169. package/lib/components/helpers/field-group-utils.js.map +1 -1
  170. package/lib/components/helpers/formatters/Currency.d.ts +6 -6
  171. package/lib/components/helpers/formatters/Currency.js +2 -2
  172. package/lib/components/helpers/formatters/Currency.js.map +1 -1
  173. package/lib/components/helpers/formatters/CurrencyMap.d.ts +69 -320
  174. package/lib/components/helpers/formatters/CurrencyMap.d.ts.map +1 -1
  175. package/lib/components/helpers/formatters/CurrencyMap.js.map +1 -1
  176. package/lib/components/helpers/formatters/Date.d.ts +4 -4
  177. package/lib/components/helpers/formatters/Date.js.map +1 -1
  178. package/lib/components/helpers/formatters/common.d.ts +1 -1
  179. package/lib/components/helpers/formatters/common.d.ts.map +1 -1
  180. package/lib/components/helpers/formatters/common.js.map +1 -1
  181. package/lib/components/helpers/formatters/index.d.ts +11 -11
  182. package/lib/components/helpers/formatters/index.d.ts.map +1 -1
  183. package/lib/components/helpers/formatters/index.js.map +1 -1
  184. package/lib/components/helpers/simpleTableHelpers.d.ts +3 -1
  185. package/lib/components/helpers/simpleTableHelpers.d.ts.map +1 -1
  186. package/lib/components/helpers/simpleTableHelpers.js +5 -3
  187. package/lib/components/helpers/simpleTableHelpers.js.map +1 -1
  188. package/lib/components/helpers/state-utils.d.ts.map +1 -1
  189. package/lib/components/helpers/state-utils.js.map +1 -1
  190. package/lib/components/helpers/template-utils.d.ts +7 -3
  191. package/lib/components/helpers/template-utils.d.ts.map +1 -1
  192. package/lib/components/helpers/template-utils.js +1 -0
  193. package/lib/components/helpers/template-utils.js.map +1 -1
  194. package/lib/components/helpers/versionHelpers.d.ts +6 -0
  195. package/lib/components/helpers/versionHelpers.d.ts.map +1 -1
  196. package/lib/components/helpers/versionHelpers.js +6 -0
  197. package/lib/components/helpers/versionHelpers.js.map +1 -1
  198. package/lib/components/infra/ActionButtons/ActionButtons.d.ts +6 -13
  199. package/lib/components/infra/ActionButtons/ActionButtons.d.ts.map +1 -1
  200. package/lib/components/infra/ActionButtons/ActionButtons.js +1 -13
  201. package/lib/components/infra/ActionButtons/ActionButtons.js.map +1 -1
  202. package/lib/components/infra/Assignment/Assignment.d.ts +1 -16
  203. package/lib/components/infra/Assignment/Assignment.d.ts.map +1 -1
  204. package/lib/components/infra/Assignment/Assignment.js +23 -23
  205. package/lib/components/infra/Assignment/Assignment.js.map +1 -1
  206. package/lib/components/infra/AssignmentCard/AssignmentCard.d.ts +8 -14
  207. package/lib/components/infra/AssignmentCard/AssignmentCard.d.ts.map +1 -1
  208. package/lib/components/infra/AssignmentCard/AssignmentCard.js +3 -16
  209. package/lib/components/infra/AssignmentCard/AssignmentCard.js.map +1 -1
  210. package/lib/components/infra/Containers/FlowContainer/FlowContainer.d.ts +1 -21
  211. package/lib/components/infra/Containers/FlowContainer/FlowContainer.d.ts.map +1 -1
  212. package/lib/components/infra/Containers/FlowContainer/FlowContainer.js +41 -48
  213. package/lib/components/infra/Containers/FlowContainer/FlowContainer.js.map +1 -1
  214. package/lib/components/infra/Containers/FlowContainer/helpers.d.ts.map +1 -1
  215. package/lib/components/infra/Containers/FlowContainer/helpers.js.map +1 -1
  216. package/lib/components/infra/Containers/ModalViewContainer/ModalViewContainer.d.ts +1 -17
  217. package/lib/components/infra/Containers/ModalViewContainer/ModalViewContainer.d.ts.map +1 -1
  218. package/lib/components/infra/Containers/ModalViewContainer/ModalViewContainer.js +4 -15
  219. package/lib/components/infra/Containers/ModalViewContainer/ModalViewContainer.js.map +1 -1
  220. package/lib/components/infra/Containers/ViewContainer/ViewContainer.d.ts +9 -22
  221. package/lib/components/infra/Containers/ViewContainer/ViewContainer.d.ts.map +1 -1
  222. package/lib/components/infra/Containers/ViewContainer/ViewContainer.js +9 -22
  223. package/lib/components/infra/Containers/ViewContainer/ViewContainer.js.map +1 -1
  224. package/lib/components/infra/DashboardFilter/DashboardFilter.d.ts +9 -19
  225. package/lib/components/infra/DashboardFilter/DashboardFilter.d.ts.map +1 -1
  226. package/lib/components/infra/DashboardFilter/DashboardFilter.js +2 -16
  227. package/lib/components/infra/DashboardFilter/DashboardFilter.js.map +1 -1
  228. package/lib/components/infra/DashboardFilter/filterUtils.d.ts.map +1 -1
  229. package/lib/components/infra/DashboardFilter/filterUtils.js +1 -1
  230. package/lib/components/infra/DashboardFilter/filterUtils.js.map +1 -1
  231. package/lib/components/infra/DeferLoad/DeferLoad.d.ts +1 -14
  232. package/lib/components/infra/DeferLoad/DeferLoad.d.ts.map +1 -1
  233. package/lib/components/infra/DeferLoad/DeferLoad.js +13 -15
  234. package/lib/components/infra/DeferLoad/DeferLoad.js.map +1 -1
  235. package/lib/components/infra/ErrorBoundary/ErrorBoundary.d.ts +5 -12
  236. package/lib/components/infra/ErrorBoundary/ErrorBoundary.d.ts.map +1 -1
  237. package/lib/components/infra/ErrorBoundary/ErrorBoundary.js +3 -13
  238. package/lib/components/infra/ErrorBoundary/ErrorBoundary.js.map +1 -1
  239. package/lib/components/infra/MultiStep/MultiStep.d.ts +11 -17
  240. package/lib/components/infra/MultiStep/MultiStep.d.ts.map +1 -1
  241. package/lib/components/infra/MultiStep/MultiStep.js +4 -18
  242. package/lib/components/infra/MultiStep/MultiStep.js.map +1 -1
  243. package/lib/components/infra/NavBar/NavBar.d.ts +8 -16
  244. package/lib/components/infra/NavBar/NavBar.d.ts.map +1 -1
  245. package/lib/components/infra/NavBar/NavBar.js +3 -16
  246. package/lib/components/infra/NavBar/NavBar.js.map +1 -1
  247. package/lib/components/infra/Reference/Reference.d.ts +1 -18
  248. package/lib/components/infra/Reference/Reference.d.ts.map +1 -1
  249. package/lib/components/infra/Reference/Reference.js +11 -16
  250. package/lib/components/infra/Reference/Reference.js.map +1 -1
  251. package/lib/components/infra/Region/Region.d.ts +4 -7
  252. package/lib/components/infra/Region/Region.d.ts.map +1 -1
  253. package/lib/components/infra/Region/Region.js +0 -4
  254. package/lib/components/infra/Region/Region.js.map +1 -1
  255. package/lib/components/infra/RootContainer/RootContainer.d.ts +1 -21
  256. package/lib/components/infra/RootContainer/RootContainer.d.ts.map +1 -1
  257. package/lib/components/infra/RootContainer/RootContainer.js +4 -21
  258. package/lib/components/infra/RootContainer/RootContainer.js.map +1 -1
  259. package/lib/components/infra/Stages/Stages.d.ts +5 -8
  260. package/lib/components/infra/Stages/Stages.d.ts.map +1 -1
  261. package/lib/components/infra/Stages/Stages.js +1 -6
  262. package/lib/components/infra/Stages/Stages.js.map +1 -1
  263. package/lib/components/infra/VerticalTabs/LeftAlignVerticalTabs/LeftAlignVerticalTabs.d.ts.map +1 -1
  264. package/lib/components/infra/VerticalTabs/LeftAlignVerticalTabs/LeftAlignVerticalTabs.js.map +1 -1
  265. package/lib/components/infra/VerticalTabs/VerticalTabs/VerticalTabs.d.ts +4 -10
  266. package/lib/components/infra/VerticalTabs/VerticalTabs/VerticalTabs.d.ts.map +1 -1
  267. package/lib/components/infra/VerticalTabs/VerticalTabs/VerticalTabs.js +4 -9
  268. package/lib/components/infra/VerticalTabs/VerticalTabs/VerticalTabs.js.map +1 -1
  269. package/lib/components/infra/View/View.d.ts +13 -16
  270. package/lib/components/infra/View/View.d.ts.map +1 -1
  271. package/lib/components/infra/View/View.js +4 -21
  272. package/lib/components/infra/View/View.js.map +1 -1
  273. package/lib/components/template/AppShell/AppShell.d.ts +20 -15
  274. package/lib/components/template/AppShell/AppShell.d.ts.map +1 -1
  275. package/lib/components/template/AppShell/AppShell.js +10 -22
  276. package/lib/components/template/AppShell/AppShell.js.map +1 -1
  277. package/lib/components/template/BannerPage/BannerPage.d.ts +11 -23
  278. package/lib/components/template/BannerPage/BannerPage.d.ts.map +1 -1
  279. package/lib/components/template/BannerPage/BannerPage.js +4 -22
  280. package/lib/components/template/BannerPage/BannerPage.js.map +1 -1
  281. package/lib/components/template/CaseSummary/CaseSummary.d.ts +5 -7
  282. package/lib/components/template/CaseSummary/CaseSummary.d.ts.map +1 -1
  283. package/lib/components/template/CaseSummary/CaseSummary.js +6 -6
  284. package/lib/components/template/CaseSummary/CaseSummary.js.map +1 -1
  285. package/lib/components/template/CaseView/CaseView.d.ts +10 -22
  286. package/lib/components/template/CaseView/CaseView.d.ts.map +1 -1
  287. package/lib/components/template/CaseView/CaseView.js +8 -21
  288. package/lib/components/template/CaseView/CaseView.js.map +1 -1
  289. package/lib/components/template/CaseViewActionsMenu/CaseViewActionsMenu.d.ts +8 -15
  290. package/lib/components/template/CaseViewActionsMenu/CaseViewActionsMenu.d.ts.map +1 -1
  291. package/lib/components/template/CaseViewActionsMenu/CaseViewActionsMenu.js +0 -12
  292. package/lib/components/template/CaseViewActionsMenu/CaseViewActionsMenu.js.map +1 -1
  293. package/lib/components/template/Confirmation/Confirmation.d.ts +10 -16
  294. package/lib/components/template/Confirmation/Confirmation.d.ts.map +1 -1
  295. package/lib/components/template/Confirmation/Confirmation.js +12 -23
  296. package/lib/components/template/Confirmation/Confirmation.js.map +1 -1
  297. package/lib/components/template/DataReference/DataReference.d.ts +15 -30
  298. package/lib/components/template/DataReference/DataReference.d.ts.map +1 -1
  299. package/lib/components/template/DataReference/DataReference.js +25 -48
  300. package/lib/components/template/DataReference/DataReference.js.map +1 -1
  301. package/lib/components/template/DefaultForm/DefaultForm.d.ts +1 -11
  302. package/lib/components/template/DefaultForm/DefaultForm.d.ts.map +1 -1
  303. package/lib/components/template/DefaultForm/DefaultForm.js +9 -10
  304. package/lib/components/template/DefaultForm/DefaultForm.js.map +1 -1
  305. package/lib/components/template/Details/Details/Details.d.ts +1 -16
  306. package/lib/components/template/Details/Details/Details.d.ts.map +1 -1
  307. package/lib/components/template/Details/Details/Details.js +10 -15
  308. package/lib/components/template/Details/Details/Details.js.map +1 -1
  309. package/lib/components/template/Details/DetailsSubTabs/DetailsSubTabs.d.ts +7 -15
  310. package/lib/components/template/Details/DetailsSubTabs/DetailsSubTabs.d.ts.map +1 -1
  311. package/lib/components/template/Details/DetailsSubTabs/DetailsSubTabs.js +1 -13
  312. package/lib/components/template/Details/DetailsSubTabs/DetailsSubTabs.js.map +1 -1
  313. package/lib/components/template/Details/DetailsThreeColumn/DetailsThreeColumn.d.ts +1 -16
  314. package/lib/components/template/Details/DetailsThreeColumn/DetailsThreeColumn.d.ts.map +1 -1
  315. package/lib/components/template/Details/DetailsThreeColumn/DetailsThreeColumn.js +14 -16
  316. package/lib/components/template/Details/DetailsThreeColumn/DetailsThreeColumn.js.map +1 -1
  317. package/lib/components/template/Details/DetailsTwoColumn/DetailsTwoColumn.d.ts +1 -16
  318. package/lib/components/template/Details/DetailsTwoColumn/DetailsTwoColumn.d.ts.map +1 -1
  319. package/lib/components/template/Details/DetailsTwoColumn/DetailsTwoColumn.js +14 -16
  320. package/lib/components/template/Details/DetailsTwoColumn/DetailsTwoColumn.js.map +1 -1
  321. package/lib/components/template/Details/DynamicTabs/DynamicTabs.d.ts +4 -0
  322. package/lib/components/template/Details/DynamicTabs/DynamicTabs.d.ts.map +1 -0
  323. package/lib/components/template/Details/DynamicTabs/DynamicTabs.js +56 -0
  324. package/lib/components/template/Details/DynamicTabs/DynamicTabs.js.map +1 -0
  325. package/lib/components/template/Details/DynamicTabs/index.d.ts +2 -0
  326. package/lib/components/template/Details/DynamicTabs/index.d.ts.map +1 -0
  327. package/lib/components/template/Details/DynamicTabs/index.js +2 -0
  328. package/lib/components/template/Details/DynamicTabs/index.js.map +1 -0
  329. package/lib/components/template/FieldGroupTemplate/FieldGroupTemplate.d.ts +12 -19
  330. package/lib/components/template/FieldGroupTemplate/FieldGroupTemplate.d.ts.map +1 -1
  331. package/lib/components/template/FieldGroupTemplate/FieldGroupTemplate.js +7 -21
  332. package/lib/components/template/FieldGroupTemplate/FieldGroupTemplate.js.map +1 -1
  333. package/lib/components/template/InlineDashboard/InlineDashboard.d.ts +7 -7
  334. package/lib/components/template/InlineDashboard/InlineDashboard.d.ts.map +1 -1
  335. package/lib/components/template/InlineDashboard/InlineDashboard.js +0 -5
  336. package/lib/components/template/InlineDashboard/InlineDashboard.js.map +1 -1
  337. package/lib/components/template/InlineDashboardPage/InlineDashboardPage.d.ts +8 -15
  338. package/lib/components/template/InlineDashboardPage/InlineDashboardPage.d.ts.map +1 -1
  339. package/lib/components/template/InlineDashboardPage/InlineDashboardPage.js +6 -15
  340. package/lib/components/template/InlineDashboardPage/InlineDashboardPage.js.map +1 -1
  341. package/lib/components/template/ListPage/ListPage.d.ts +5 -13
  342. package/lib/components/template/ListPage/ListPage.d.ts.map +1 -1
  343. package/lib/components/template/ListPage/ListPage.js +6 -10
  344. package/lib/components/template/ListPage/ListPage.js.map +1 -1
  345. package/lib/components/template/ListView/ListView.d.ts +1 -9
  346. package/lib/components/template/ListView/ListView.d.ts.map +1 -1
  347. package/lib/components/template/ListView/ListView.js +177 -192
  348. package/lib/components/template/ListView/ListView.js.map +1 -1
  349. package/lib/components/template/ListView/utils.d.ts +44 -0
  350. package/lib/components/template/ListView/utils.d.ts.map +1 -1
  351. package/lib/components/template/ListView/utils.js +142 -1
  352. package/lib/components/template/ListView/utils.js.map +1 -1
  353. package/lib/components/template/MultiReferenceReadOnly/MultiReferenceReadOnly.d.ts +9 -13
  354. package/lib/components/template/MultiReferenceReadOnly/MultiReferenceReadOnly.d.ts.map +1 -1
  355. package/lib/components/template/MultiReferenceReadOnly/MultiReferenceReadOnly.js +2 -13
  356. package/lib/components/template/MultiReferenceReadOnly/MultiReferenceReadOnly.js.map +1 -1
  357. package/lib/components/template/NarrowWide/NarrowWide/NarrowWide.d.ts +10 -1
  358. package/lib/components/template/NarrowWide/NarrowWide/NarrowWide.d.ts.map +1 -1
  359. package/lib/components/template/NarrowWide/NarrowWide/NarrowWide.js.map +1 -1
  360. package/lib/components/template/NarrowWide/NarrowWideDetails/NarrowWideDetails.d.ts +1 -16
  361. package/lib/components/template/NarrowWide/NarrowWideDetails/NarrowWideDetails.d.ts.map +1 -1
  362. package/lib/components/template/NarrowWide/NarrowWideDetails/NarrowWideDetails.js +14 -16
  363. package/lib/components/template/NarrowWide/NarrowWideDetails/NarrowWideDetails.js.map +1 -1
  364. package/lib/components/template/NarrowWide/NarrowWideForm/NarrowWideForm.d.ts +5 -1
  365. package/lib/components/template/NarrowWide/NarrowWideForm/NarrowWideForm.d.ts.map +1 -1
  366. package/lib/components/template/NarrowWide/NarrowWideForm/NarrowWideForm.js.map +1 -1
  367. package/lib/components/template/NarrowWide/NarrowWidePage/NarrowWidePage.d.ts +7 -14
  368. package/lib/components/template/NarrowWide/NarrowWidePage/NarrowWidePage.d.ts.map +1 -1
  369. package/lib/components/template/NarrowWide/NarrowWidePage/NarrowWidePage.js +4 -13
  370. package/lib/components/template/NarrowWide/NarrowWidePage/NarrowWidePage.js.map +1 -1
  371. package/lib/components/template/OneColumn/OneColumn/OneColumn.d.ts +4 -7
  372. package/lib/components/template/OneColumn/OneColumn/OneColumn.d.ts.map +1 -1
  373. package/lib/components/template/OneColumn/OneColumn/OneColumn.js +0 -5
  374. package/lib/components/template/OneColumn/OneColumn/OneColumn.js.map +1 -1
  375. package/lib/components/template/OneColumn/OneColumnPage/OneColumnPage.d.ts +4 -8
  376. package/lib/components/template/OneColumn/OneColumnPage/OneColumnPage.d.ts.map +1 -1
  377. package/lib/components/template/OneColumn/OneColumnPage/OneColumnPage.js +3 -6
  378. package/lib/components/template/OneColumn/OneColumnPage/OneColumnPage.js.map +1 -1
  379. package/lib/components/template/OneColumn/OneColumnTab/OneColumnTab.d.ts +4 -7
  380. package/lib/components/template/OneColumn/OneColumnTab/OneColumnTab.d.ts.map +1 -1
  381. package/lib/components/template/OneColumn/OneColumnTab/OneColumnTab.js +0 -5
  382. package/lib/components/template/OneColumn/OneColumnTab/OneColumnTab.js.map +1 -1
  383. package/lib/components/template/PromotedFilters/PromotedFilters.d.ts +1 -15
  384. package/lib/components/template/PromotedFilters/PromotedFilters.d.ts.map +1 -1
  385. package/lib/components/template/PromotedFilters/PromotedFilters.js +15 -11
  386. package/lib/components/template/PromotedFilters/PromotedFilters.js.map +1 -1
  387. package/lib/components/template/SimpleTable/SimpleTable/SimpleTable.d.ts.map +1 -1
  388. package/lib/components/template/SimpleTable/SimpleTable/SimpleTable.js +57 -5
  389. package/lib/components/template/SimpleTable/SimpleTable/SimpleTable.js.map +1 -1
  390. package/lib/components/template/SimpleTable/SimpleTableManual/SimpleTableManual.d.ts +18 -1
  391. package/lib/components/template/SimpleTable/SimpleTableManual/SimpleTableManual.d.ts.map +1 -1
  392. package/lib/components/template/SimpleTable/SimpleTableManual/SimpleTableManual.js +3 -3
  393. package/lib/components/template/SimpleTable/SimpleTableManual/SimpleTableManual.js.map +1 -1
  394. package/lib/components/template/SimpleTable/SimpleTableSelect/SimpleTableSelect.d.ts +1 -29
  395. package/lib/components/template/SimpleTable/SimpleTableSelect/SimpleTableSelect.d.ts.map +1 -1
  396. package/lib/components/template/SimpleTable/SimpleTableSelect/SimpleTableSelect.js +22 -28
  397. package/lib/components/template/SimpleTable/SimpleTableSelect/SimpleTableSelect.js.map +1 -1
  398. package/lib/components/template/SingleReferenceReadOnly/SingleReferenceReadOnly.d.ts +14 -26
  399. package/lib/components/template/SingleReferenceReadOnly/SingleReferenceReadOnly.d.ts.map +1 -1
  400. package/lib/components/template/SingleReferenceReadOnly/SingleReferenceReadOnly.js +5 -26
  401. package/lib/components/template/SingleReferenceReadOnly/SingleReferenceReadOnly.js.map +1 -1
  402. package/lib/components/template/SubTabs/SubTabs.d.ts +4 -10
  403. package/lib/components/template/SubTabs/SubTabs.d.ts.map +1 -1
  404. package/lib/components/template/SubTabs/SubTabs.js +1 -8
  405. package/lib/components/template/SubTabs/SubTabs.js.map +1 -1
  406. package/lib/components/template/SubTabs/tabUtils.d.ts.map +1 -1
  407. package/lib/components/template/SubTabs/tabUtils.js.map +1 -1
  408. package/lib/components/template/TwoColumn/TwoColumn/TwoColumn.d.ts +5 -11
  409. package/lib/components/template/TwoColumn/TwoColumn/TwoColumn.d.ts.map +1 -1
  410. package/lib/components/template/TwoColumn/TwoColumn/TwoColumn.js +1 -12
  411. package/lib/components/template/TwoColumn/TwoColumn/TwoColumn.js.map +1 -1
  412. package/lib/components/template/TwoColumn/TwoColumnPage/TwoColumnPage.d.ts +4 -8
  413. package/lib/components/template/TwoColumn/TwoColumnPage/TwoColumnPage.d.ts.map +1 -1
  414. package/lib/components/template/TwoColumn/TwoColumnPage/TwoColumnPage.js +3 -6
  415. package/lib/components/template/TwoColumn/TwoColumnPage/TwoColumnPage.js.map +1 -1
  416. package/lib/components/template/TwoColumn/TwoColumnTab/TwoColumnTab.d.ts +5 -11
  417. package/lib/components/template/TwoColumn/TwoColumnTab/TwoColumnTab.d.ts.map +1 -1
  418. package/lib/components/template/TwoColumn/TwoColumnTab/TwoColumnTab.js +1 -9
  419. package/lib/components/template/TwoColumn/TwoColumnTab/TwoColumnTab.js.map +1 -1
  420. package/lib/components/template/WideNarrow/WideNarrow/WideNarrow.d.ts +10 -1
  421. package/lib/components/template/WideNarrow/WideNarrow/WideNarrow.d.ts.map +1 -1
  422. package/lib/components/template/WideNarrow/WideNarrow/WideNarrow.js +1 -1
  423. package/lib/components/template/WideNarrow/WideNarrow/WideNarrow.js.map +1 -1
  424. package/lib/components/template/WideNarrow/WideNarrowDetails/WideNarrowDetails.d.ts +1 -16
  425. package/lib/components/template/WideNarrow/WideNarrowDetails/WideNarrowDetails.d.ts.map +1 -1
  426. package/lib/components/template/WideNarrow/WideNarrowDetails/WideNarrowDetails.js +31 -23
  427. package/lib/components/template/WideNarrow/WideNarrowDetails/WideNarrowDetails.js.map +1 -1
  428. package/lib/components/template/WideNarrow/WideNarrowForm/WideNarrowForm.d.ts +5 -1
  429. package/lib/components/template/WideNarrow/WideNarrowForm/WideNarrowForm.d.ts.map +1 -1
  430. package/lib/components/template/WideNarrow/WideNarrowForm/WideNarrowForm.js.map +1 -1
  431. package/lib/components/template/WideNarrow/WideNarrowPage/WideNarrowPage.d.ts +7 -14
  432. package/lib/components/template/WideNarrow/WideNarrowPage/WideNarrowPage.d.ts.map +1 -1
  433. package/lib/components/template/WideNarrow/WideNarrowPage/WideNarrowPage.js +4 -14
  434. package/lib/components/template/WideNarrow/WideNarrowPage/WideNarrowPage.js.map +1 -1
  435. package/lib/components/template/WssNavBar/WssNavBar.d.ts +17 -1
  436. package/lib/components/template/WssNavBar/WssNavBar.d.ts.map +1 -1
  437. package/lib/components/template/WssNavBar/WssNavBar.js.map +1 -1
  438. package/lib/components/widget/AppAnnouncement/AppAnnouncement.d.ts +8 -17
  439. package/lib/components/widget/AppAnnouncement/AppAnnouncement.d.ts.map +1 -1
  440. package/lib/components/widget/AppAnnouncement/AppAnnouncement.js +4 -19
  441. package/lib/components/widget/AppAnnouncement/AppAnnouncement.js.map +1 -1
  442. package/lib/components/widget/Attachment/Attachment.d.ts.map +1 -1
  443. package/lib/components/widget/Attachment/Attachment.js +24 -16
  444. package/lib/components/widget/Attachment/Attachment.js.map +1 -1
  445. package/lib/components/widget/CaseHistory/CaseHistory.d.ts +4 -7
  446. package/lib/components/widget/CaseHistory/CaseHistory.d.ts.map +1 -1
  447. package/lib/components/widget/CaseHistory/CaseHistory.js +4 -8
  448. package/lib/components/widget/CaseHistory/CaseHistory.js.map +1 -1
  449. package/lib/components/widget/FileUtility/ActionButtonsForFileUtil/ActionButtonsForFileUtil.d.ts +8 -1
  450. package/lib/components/widget/FileUtility/ActionButtonsForFileUtil/ActionButtonsForFileUtil.d.ts.map +1 -1
  451. package/lib/components/widget/FileUtility/ActionButtonsForFileUtil/ActionButtonsForFileUtil.js.map +1 -1
  452. package/lib/components/widget/FileUtility/FileUtility/FileUtility.d.ts +5 -1
  453. package/lib/components/widget/FileUtility/FileUtility/FileUtility.d.ts.map +1 -1
  454. package/lib/components/widget/FileUtility/FileUtility/FileUtility.js +31 -21
  455. package/lib/components/widget/FileUtility/FileUtility/FileUtility.js.map +1 -1
  456. package/lib/components/widget/Followers/Followers.d.ts +4 -5
  457. package/lib/components/widget/Followers/Followers.d.ts.map +1 -1
  458. package/lib/components/widget/Followers/Followers.js +3 -10
  459. package/lib/components/widget/Followers/Followers.js.map +1 -1
  460. package/lib/components/widget/QuickCreate/QuickCreate.d.ts.map +1 -1
  461. package/lib/components/widget/QuickCreate/QuickCreate.js +10 -2
  462. package/lib/components/widget/QuickCreate/QuickCreate.js.map +1 -1
  463. package/lib/components/widget/SummaryItem/SummaryItem.d.ts +7 -1
  464. package/lib/components/widget/SummaryItem/SummaryItem.d.ts.map +1 -1
  465. package/lib/components/widget/SummaryItem/SummaryItem.js.map +1 -1
  466. package/lib/components/widget/SummaryList/SummaryList.d.ts +7 -1
  467. package/lib/components/widget/SummaryList/SummaryList.d.ts.map +1 -1
  468. package/lib/components/widget/SummaryList/SummaryList.js +5 -2
  469. package/lib/components/widget/SummaryList/SummaryList.js.map +1 -1
  470. package/lib/components/widget/ToDo/ToDo.d.ts +13 -27
  471. package/lib/components/widget/ToDo/ToDo.d.ts.map +1 -1
  472. package/lib/components/widget/ToDo/ToDo.js +28 -64
  473. package/lib/components/widget/ToDo/ToDo.js.map +1 -1
  474. package/lib/doc/KeyReleaseUpdates.md +22 -0
  475. package/lib/hooks/index.d.ts +4 -0
  476. package/lib/hooks/index.d.ts.map +1 -0
  477. package/lib/hooks/index.js +4 -0
  478. package/lib/hooks/index.js.map +1 -0
  479. package/lib/hooks/useAfterInitialEffect.d.ts +9 -0
  480. package/lib/hooks/useAfterInitialEffect.d.ts.map +1 -0
  481. package/lib/hooks/useAfterInitialEffect.js +16 -0
  482. package/lib/hooks/useAfterInitialEffect.js.map +1 -0
  483. package/lib/hooks/useConsolidatedRef.d.ts +9 -0
  484. package/lib/hooks/useConsolidatedRef.d.ts.map +1 -0
  485. package/lib/hooks/useConsolidatedRef.js +30 -0
  486. package/lib/hooks/useConsolidatedRef.js.map +1 -0
  487. package/lib/hooks/useUID.d.ts +8 -0
  488. package/lib/hooks/useUID.d.ts.map +1 -0
  489. package/lib/hooks/useUID.js +14 -0
  490. package/lib/hooks/useUID.js.map +1 -0
  491. package/lib/index.d.ts +1 -0
  492. package/lib/index.d.ts.map +1 -1
  493. package/lib/index.js +2 -1
  494. package/lib/index.js.map +1 -1
  495. package/lib/sdk-pega-component-map.d.ts +17 -1
  496. package/lib/sdk-pega-component-map.js +17 -1
  497. package/lib/sdk-pega-component-map.js.map +1 -1
  498. package/lib/types/PConnProps.d.ts +42 -0
  499. package/package.json +1 -1
@@ -0,0 +1,56 @@
1
+ import React, { Children, useState, useMemo } from 'react';
2
+ import { makeStyles, Tab, Tabs } from '@material-ui/core';
3
+ import { TabContext, TabPanel } from '@material-ui/lab';
4
+ import { buildView } from '../../../helpers/field-group-utils';
5
+ // import type { PConnProps } from '../../../../types/PConnProps';
6
+ const useStyles = makeStyles(() => ({
7
+ tab: {
8
+ minWidth: '72px'
9
+ }
10
+ }));
11
+ // ListViewProps can't be used until getComponentConfig is NOT private
12
+ // interface DynamicTabsProps extends PConnProps {
13
+ // // If any, enter additional props that only exist on this component
14
+ // showLabel: boolean;
15
+ // label: string;
16
+ // referenceList?: Array<any>;
17
+ // }
18
+ function DynamicTabs(props /*: DynamicTabsProps */) {
19
+ const classes = useStyles();
20
+ const { referenceList, showLabel, label, getPConnect } = props;
21
+ const pConnect = getPConnect();
22
+ // Get the inherited props from the parent to determine label settings
23
+ const propsToUse = { label, showLabel, ...pConnect.getInheritedProps() };
24
+ const defaultTabIndex = 0;
25
+ const { tablabel } = pConnect.getComponentConfig();
26
+ const tablabelProp = PCore.getAnnotationUtils().getPropertyName(tablabel);
27
+ const referenceListData = pConnect.getValue(`${referenceList}.pxResults`, ''); // 2nd arg empty string until typedefs properly allow optional
28
+ const memoisedTabViews = useMemo(() => {
29
+ pConnect.setInheritedProp('displayMode', 'LABELS_LEFT');
30
+ pConnect.setInheritedProp('readOnly', true);
31
+ return (referenceListData &&
32
+ Children.toArray(referenceListData.map((item, index) => {
33
+ return React.createElement(React.Fragment, { key: item[tablabelProp] }, buildView(pConnect, index, ''));
34
+ })));
35
+ }, [referenceListData]);
36
+ const [panelShown, changePanel] = useState(defaultTabIndex);
37
+ const handleTabClick = (e, id) => {
38
+ changePanel(parseInt(id, 10));
39
+ };
40
+ // Loop over the tab contents and and pull out the labels for the navigation
41
+ const tabItems = referenceListData?.map((item, i) => {
42
+ const currentTabLabel = item[tablabelProp] || PCore.getLocaleUtils().getLocaleValue('No label specified in config', 'Generic');
43
+ return {
44
+ name: currentTabLabel,
45
+ id: i
46
+ };
47
+ }) || [];
48
+ return (React.createElement(React.Fragment, null,
49
+ propsToUse.label && React.createElement("h3", { id: "dynamic-tabs-title" }, propsToUse.label),
50
+ React.createElement(TabContext, { value: panelShown.toString() },
51
+ React.createElement(Tabs, { onChange: handleTabClick, value: panelShown, variant: "scrollable", scrollButtons: "auto", indicatorColor: "primary", id: "dynamic-tabs" }, tabItems.map((tab) => (React.createElement(Tab, { key: tab.id, label: tab.name, value: tab.id, className: classes.tab })))),
52
+ tabItems.map((tab) => (React.createElement(TabPanel, { key: tab.id, value: tab.id.toString(), tabIndex: +tab.id, id: "dynamic-tabpanel" },
53
+ React.createElement("div", null, memoisedTabViews[parseInt(tab.id, 10)] || 'No content exists')))))));
54
+ }
55
+ export default DynamicTabs;
56
+ //# sourceMappingURL=DynamicTabs.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DynamicTabs.js","sourceRoot":"","sources":["../../../../../src/components/template/Details/DynamicTabs/DynamicTabs.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AAC3D,OAAO,EAAE,UAAU,EAAE,GAAG,EAAE,IAAI,EAAE,MAAM,mBAAmB,CAAC;AAC1D,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AACxD,OAAO,EAAE,SAAS,EAAE,MAAM,oCAAoC,CAAC;AAC/D,kEAAkE;AAElE,MAAM,SAAS,GAAG,UAAU,CAAC,GAAG,EAAE,CAAC,CAAC;IAClC,GAAG,EAAE;QACH,QAAQ,EAAE,MAAM;KACjB;CACF,CAAC,CAAC,CAAC;AAEJ,sEAAsE;AACtE,kDAAkD;AAClD,wEAAwE;AACxE,wBAAwB;AACxB,mBAAmB;AACnB,gCAAgC;AAChC,IAAI;AAEJ,SAAS,WAAW,CAAC,KAAK,CAAC,uBAAuB;IAChD,MAAM,OAAO,GAAG,SAAS,EAAE,CAAC;IAC5B,MAAM,EAAE,aAAa,EAAE,SAAS,EAAE,KAAK,EAAE,WAAW,EAAE,GAAG,KAAK,CAAC;IAC/D,MAAM,QAAQ,GAAG,WAAW,EAAE,CAAC;IAC/B,sEAAsE;IACtE,MAAM,UAAU,GAAG,EAAE,KAAK,EAAE,SAAS,EAAE,GAAG,QAAQ,CAAC,iBAAiB,EAAE,EAAE,CAAC;IACzE,MAAM,eAAe,GAAG,CAAC,CAAC;IAC1B,MAAM,EAAE,QAAQ,EAAE,GAAG,QAAQ,CAAC,kBAAkB,EAAE,CAAC;IACnD,MAAM,YAAY,GAAG,KA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C;IACJ,CAAC,CAAC,IAAI,EAAE,CAAC;IAEX,OAAO,CACL;QACG,UAAU,CAAC,KAAK,IAAI,4BAAI,EAAE,EAAC,oBAAoB,IAAE,UAAU,CAAC,KAAK,CAAM;QACxE,oBAAC,UAAU,IAAC,KAAK,EAAE,UAAU,CAAC,QAAQ,EAAE;YACtC,oBAAC,IAAI,IAAC,QAAQ,EAAE,cAAc,EAAE,KAAK,EAAE,UAAU,EAAE,OAAO,EAAC,YAAY,EAAC,aAAa,EAAC,MAAM,EAAC,cAAc,EAAC,SAAS,EAAC,EAAE,EAAC,cAAc,IACpI,QAAQ,CAAC,GAAG,CAAC,CAAC,GAAQ,EAAE,EAAE,CAAC,CAC1B,oBAAC,GAAG,IAAC,GAAG,EAAE,GAAG,CAAC,EAAE,EAAE,KAAK,EAAE,GAAG,CAAC,IAAI,EAAE,KAAK,EAAE,GAAG,CAAC,EAAE,EAAE,SAAS,EAAE,OAAO,CAAC,GAAG,GAAI,CAC7E,CAAC,CACG;YAEN,QAAQ,CAAC,GAAG,CAAC,CAAC,GAAQ,EAAE,EAAE,CAAC,CAC1B,oBAAC,QAAQ,IAAC,GAAG,EAAE,GAAG,CAAC,EAAE,EAAE,KAAK,EAAE,GAAG,CAAC,EAAE,CAAC,QAAQ,EAAE,EAAE,QAAQ,EAAE,CAAC,GAAG,CAAC,EAAE,EAAE,EAAE,EAAC,kBAAkB;gBACvF,iCAAM,gBAAgB,CAAC,QAAQ,CAAC,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC,IAAI,mBAAmB,CAAO,CACjE,CACZ,CAAC,CACS,CACZ,CACJ,CAAC;AACJ,CAAC;AAED,eAAe,WAAW,CAAC","sourcesContent":["import React, { Children, useState, useMemo } from 'react';\nimport { makeStyles, Tab, Tabs } from '@material-ui/core';\nimport { TabContext, TabPanel } from '@material-ui/lab';\nimport { buildView } from '../../../helpers/field-group-utils';\n// import type { PConnProps } from '../../../../types/PConnProps';\n\nconst useStyles = makeStyles(() => ({\n tab: {\n minWidth: '72px'\n }\n}));\n\n// ListViewProps can't be used until getComponentConfig is NOT private\n// interface DynamicTabsProps extends PConnProps {\n// // If any, enter additional props that only exist on this component\n// showLabel: boolean;\n// label: string;\n// referenceList?: Array<any>;\n// }\n\nfunction DynamicTabs(props /*: DynamicTabsProps */) {\n const classes = useStyles();\n const { referenceList, showLabel, label, getPConnect } = props;\n const pConnect = getPConnect();\n // Get the inherited props from the parent to determine label settings\n const propsToUse = { label, showLabel, ...pConnect.getInheritedProps() };\n const defaultTabIndex = 0;\n const { tablabel } = pConnect.getComponentConfig();\n const tablabelProp = PCore.getAnnotationUtils().getPropertyName(tablabel);\n const referenceListData = pConnect.getValue(`${referenceList}.pxResults`, ''); // 2nd arg empty string until typedefs properly allow optional\n const memoisedTabViews = useMemo(() => {\n pConnect.setInheritedProp('displayMode', 'LABELS_LEFT');\n pConnect.setInheritedProp('readOnly', true);\n\n return (\n referenceListData &&\n Children.toArray(\n referenceListData.map((item, index) => {\n return <React.Fragment key={item[tablabelProp]}>{buildView(pConnect, index, '')}</React.Fragment>;\n })\n )\n );\n }, [referenceListData]);\n const [panelShown, changePanel] = useState(defaultTabIndex);\n const handleTabClick = (e, id) => {\n changePanel(parseInt(id, 10));\n };\n // Loop over the tab contents and and pull out the labels for the navigation\n const tabItems =\n referenceListData?.map((item, i) => {\n const currentTabLabel = item[tablabelProp] || PCore.getLocaleUtils().getLocaleValue('No label specified in config', 'Generic');\n return {\n name: currentTabLabel,\n id: i\n };\n }) || [];\n\n return (\n <>\n {propsToUse.label && <h3 id=\"dynamic-tabs-title\">{propsToUse.label}</h3>}\n <TabContext value={panelShown.toString()}>\n <Tabs onChange={handleTabClick} value={panelShown} variant=\"scrollable\" scrollButtons=\"auto\" indicatorColor=\"primary\" id=\"dynamic-tabs\">\n {tabItems.map((tab: any) => (\n <Tab key={tab.id} label={tab.name} value={tab.id} className={classes.tab} />\n ))}\n </Tabs>\n\n {tabItems.map((tab: any) => (\n <TabPanel key={tab.id} value={tab.id.toString()} tabIndex={+tab.id} id=\"dynamic-tabpanel\">\n <div>{memoisedTabViews[parseInt(tab.id, 10)] || 'No content exists'}</div>\n </TabPanel>\n ))}\n </TabContext>\n </>\n );\n}\n\nexport default DynamicTabs;\n"]}
@@ -0,0 +1,2 @@
1
+ export { default } from './DynamicTabs';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/template/Details/DynamicTabs/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC"}
@@ -0,0 +1,2 @@
1
+ export { default } from './DynamicTabs';
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/components/template/Details/DynamicTabs/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC","sourcesContent":["export { default } from './DynamicTabs';\n"]}
@@ -1,22 +1,15 @@
1
1
  /// <reference types="react" />
2
- import PropTypes from 'prop-types';
3
- declare function FieldGroupTemplate(props: any): JSX.Element;
4
- declare namespace FieldGroupTemplate {
5
- var defaultProps: {
6
- referenceList: never[];
7
- heading: undefined;
8
- contextClass: null;
9
- displayMode: undefined;
10
- };
11
- var propTypes: {
12
- referenceList: PropTypes.Requireable<unknown[]>;
13
- contextClass: PropTypes.Requireable<string>;
14
- getPConnect: PropTypes.Validator<(...args: any[]) => any>;
15
- renderMode: PropTypes.Validator<string>;
16
- heading: PropTypes.Requireable<string>;
17
- lookForChildInConfig: PropTypes.Requireable<boolean>;
18
- displayMode: PropTypes.Requireable<string>;
19
- };
2
+ import type { PConnProps } from '../../../types/PConnProps';
3
+ interface FieldGroupTemplateProps extends PConnProps {
4
+ referenceList?: Array<any>;
5
+ contextClass: string;
6
+ renderMode?: string;
7
+ heading?: string;
8
+ lookForChildInConfig?: boolean;
9
+ displayMode?: string;
10
+ fieldHeader?: string;
11
+ allowTableEdit: boolean;
20
12
  }
21
- export default FieldGroupTemplate;
13
+ export default function FieldGroupTemplate(props: FieldGroupTemplateProps): JSX.Element;
14
+ export {};
22
15
  //# sourceMappingURL=FieldGroupTemplate.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"FieldGroupTemplate.d.ts","sourceRoot":"","sources":["../../../../src/components/template/FieldGroupTemplate/FieldGroupTemplate.tsx"],"names":[],"mappings":";AAEA,OAAO,SAAS,MAAM,YAAY,CAAC;AAWnC,iBAAwB,kBAAkB,CAAC,KAAK,KAAA,eAqF/C;kBArFuB,kBAAkB;;;;;;;;;;;;;;;;;eAAlB,kBAAkB"}
1
+ {"version":3,"file":"FieldGroupTemplate.d.ts","sourceRoot":"","sources":["../../../../src/components/template/FieldGroupTemplate/FieldGroupTemplate.tsx"],"names":[],"mappings":";AAKA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AAE5D,UAAU,uBAAwB,SAAQ,UAAU;IAElD,aAAa,CAAC,EAAE,KAAK,CAAC,GAAG,CAAC,CAAC;IAC3B,YAAY,EAAE,MAAM,CAAC;IACrB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,oBAAoB,CAAC,EAAE,OAAO,CAAC;IAC/B,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,cAAc,EAAE,OAAO,CAAA;CACxB;AAGD,MAAM,CAAC,OAAO,UAAU,kBAAkB,CAAC,KAAK,EAAE,uBAAuB,eAyFxE"}
@@ -1,11 +1,12 @@
1
1
  /* eslint-disable react-hooks/rules-of-hooks */
2
2
  import React, { useMemo } from 'react';
3
- import PropTypes from 'prop-types';
4
- import FieldGroup from '../../designSystemExtension/FieldGroup';
5
- import FieldGroupList from '../../designSystemExtension/FieldGroupList';
6
3
  import { getReferenceList, buildView } from '../../helpers/field-group-utils';
4
+ import { getComponentFromMap } from '../../../bridge/helpers/sdk_component_map';
7
5
  export default function FieldGroupTemplate(props) {
8
- const { referenceList, renderMode, contextClass, getPConnect, lookForChildInConfig, heading, displayMode, fieldHeader, allowTableEdit: allowAddEdit } = props;
6
+ // Get emitted components from map (so we can get any override that may exist)
7
+ const FieldGroup = getComponentFromMap('FieldGroup');
8
+ const FieldGroupList = getComponentFromMap('FieldGroupList');
9
+ const { referenceList = [], renderMode, contextClass, getPConnect, lookForChildInConfig, heading = '', displayMode, fieldHeader, allowTableEdit: allowAddEdit } = props;
9
10
  const pConn = getPConnect();
10
11
  const resolvedList = getReferenceList(pConn);
11
12
  pConn.setReferenceList(resolvedList);
@@ -23,7 +24,7 @@ export default function FieldGroupTemplate(props) {
23
24
  pConn.getListActions().insert({ classID: contextClass }, referenceList.length, pageReference);
24
25
  }
25
26
  else {
26
- pConn.getListActions().insert({}, referenceList.length);
27
+ pConn.getListActions().insert({}, referenceList.length, null); // 3rd arg null until typedef marked correctly as optional
27
28
  }
28
29
  };
29
30
  if (!isReadonlyMode) {
@@ -35,7 +36,7 @@ export default function FieldGroupTemplate(props) {
35
36
  pConn.getListActions().deleteEntry(index, pageReference);
36
37
  }
37
38
  else {
38
- pConn.getListActions().deleteEntry(index);
39
+ pConn.getListActions().deleteEntry(index, null); // 2nd arg null until typedef marked correctly as optional
39
40
  }
40
41
  };
41
42
  if (referenceList.length === 0 && allowAddEdit !== false) {
@@ -61,19 +62,4 @@ export default function FieldGroupTemplate(props) {
61
62
  }, []);
62
63
  return React.createElement("div", null, memoisedReadOnlyList);
63
64
  }
64
- FieldGroupTemplate.defaultProps = {
65
- referenceList: [],
66
- heading: undefined,
67
- contextClass: null,
68
- displayMode: undefined
69
- };
70
- FieldGroupTemplate.propTypes = {
71
- referenceList: PropTypes.arrayOf(Object),
72
- contextClass: PropTypes.string,
73
- getPConnect: PropTypes.func.isRequired,
74
- renderMode: PropTypes.string.isRequired,
75
- heading: PropTypes.string,
76
- lookForChildInConfig: PropTypes.bool,
77
- displayMode: PropTypes.string
78
- };
79
65
  //# sourceMappingURL=FieldGroupTemplate.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"FieldGroupTemplate.js","sourceRoot":"","sources":["../../../../src/components/template/FieldGroupTemplate/FieldGroupTemplate.tsx"],"names":[],"mappings":"AAAA,+CAA+C;AAC/C,OAAO,KAAK,EAAE,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,SAAS,MAAM,YAAY,CAAC;AAEnC,OAAO,UAAU,MAAM,wCAAwC,CAAC;AAChE,OAAO,cAAc,MAAM,4CAA4C,CAAC;AACxE,OAAO,EAAE,gBAAgB,EAAE,SAAS,EAAE,MAAM,iCAAiC,CAAC;AAO9E,MAAM,CAAC,OAAO,UAAU,kBAAkB,CAAC,KAAK;IAC9C,MAAM,EACJ,aAAa,EACb,UAAU,EACV,YAAY,EACZ,WAAW,EACX,oBAAoB,EACpB,OAAO,EACP,WAAW,EACX,WAAW,EACX,cAAc,EAAE,YAAY,EAC7B,GAAG,KAAK,CAAC;IACV,MAAM,KAAK,GAAG,WAAW,EAAE,CAAC;IAC5B,MAAM,YAAY,GAAG,gBAAgB,CAAC,KAAK,CAAC,CAAC;IAC7C,KAAK,CAAC,gBAAgB,CAAC,YAAY,CAAC,CAAC;IACrC,MAAM,aAAa,GAAG,GAAG,KAAK,CAAC,gBAAgB,EAAE,GAAG,YAAY,EAAE,CAAC;IACnE,MAAM,cAAc,GAAG,UAAU,KAAK,UAAU,IAAI,WAAW,KAAK,aAAa,CAAC;IAClF,MAAM,OAAO,GAAG,OAAO,IAAI,KAAK,CAAC;IAEjC,MAAM,oBAAoB,GAAG,CAAC,IAAI,EAAE,KAAK,EAAE,EAAE;QAC3C,IAAI,WAAW,KAAK,aAAa,IAAI,OAAO,IAAI,IAAI,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,EAAE;YAC1E,OAAO,IAAI,CAAC,OAAO,CAAC,S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I;IAClB,WAAW,EAAE,SAAS;CACvB,CAAC;AAEF,kBAAkB,CAAC,SAAS,GAAG;IAC7B,aAAa,EAAE,SAAS,CAAC,OAAO,CAAC,MAAM,CAAC;IACxC,YAAY,EAAE,SAAS,CAAC,MAAM;IAC9B,WAAW,EAAE,SAAS,CAAC,IAAI,CAAC,UAAU;IACtC,UAAU,EAAE,SAAS,CAAC,MAAM,CAAC,UAAU;IACvC,OAAO,EAAE,SAAS,CAAC,MAAM;IACzB,oBAAoB,EAAE,SAAS,CAAC,IAAI;IACpC,WAAW,EAAE,SAAS,CAAC,MAAM;CAC9B,CAAC","sourcesContent":["/* eslint-disable react-hooks/rules-of-hooks */\nimport React, { useMemo } from 'react';\nimport PropTypes from 'prop-types';\n\nimport FieldGroup from '../../designSystemExtension/FieldGroup';\nimport FieldGroupList from '../../designSystemExtension/FieldGroupList';\nimport { getReferenceList, buildView } from '../../helpers/field-group-utils';\n\nimport PCoreType from '@pega/pcore-pconnect-typedefs/types/pcore';\n\ndeclare const PCore: typeof PCoreType;\n\n\nexport default function FieldGroupTemplate(props) {\n const {\n referenceList,\n renderMode,\n contextClass,\n getPConnect,\n lookForChildInConfig,\n heading,\n displayMode,\n fieldHeader,\n allowTableEdit: allowAddEdit\n } = props;\n const pConn = getPConnect();\n const resolvedList = getReferenceList(pConn);\n pConn.setReferenceList(resolvedList);\n const pageReference = `${pConn.getPageReference()}${resolvedList}`;\n const isReadonlyMode = renderMode === 'ReadOnly' || displayMode === 'LABELS_LEFT';\n const HEADING = heading ?? 'Row';\n\n const getDynamicHeaderProp = (item, index) => {\n if (fieldHeader === 'propertyRef' && heading && item[heading.substring(1)]) {\n return item[heading.substring(1)];\n }\n return `Row ${index + 1}`;\n };\n\n const addRecord = () => {\n if (PCore.getPCoreVersion()?.includes('8.7')) {\n pConn.getListActions().insert({ classID: contextClass }, referenceList.length, pageReference);\n } else {\n pConn.getListActions().insert({}, referenceList.length);\n }\n };\n\n if (!isReadonlyMode) {\n const addFieldGroupItem = () => {\n addRecord();\n };\n const deleteFieldGroupItem = index => {\n if (PCore.getPCoreVersion()?.includes('8.7')) {\n pConn.getListActions().deleteEntry(index, pageReference);\n } else {\n pConn.getListActions().deleteEntry(index);\n }\n };\n if (referenceList.length === 0 && allowAddEdit !== false) {\n addFieldGroupItem();\n }\n\n const MemoisedChildren = useMemo(() => {\n return referenceList.map((item, index) => ({\n id: index,\n name:\n fieldHeader === 'propertyRef'\n ? getDynamicHeaderProp(item, index)\n : `${HEADING} ${index + 1}`,\n children: buildView(pConn, index, lookForChildInConfig)\n }));\n }, [referenceList?.length]);\n\n return (\n <FieldGroupList\n items={MemoisedChildren}\n onAdd={allowAddEdit !== false ? addFieldGroupItem : undefined}\n onDelete={allowAddEdit !== false ? deleteFieldGroupItem : undefined}\n />\n );\n }\n\n pConn.setInheritedProp('displayMode', 'LABELS_LEFT');\n const memoisedReadOnlyList = useMemo(() => {\n return referenceList.map((item, index) => {\n const key = item[heading] || `field-group-row-${index}`;\n return (\n <FieldGroup\n key={key}\n name={fieldHeader === 'propertyRef' ? getDynamicHeaderProp(item, index) : `${HEADING} ${index + 1}`}\n >\n {buildView(pConn, index, lookForChildInConfig)}\n </FieldGroup>\n );\n });\n }, []);\n\n return <div>{memoisedReadOnlyList}</div>;\n}\n\nFieldGroupTemplate.defaultProps = {\n referenceList: [],\n heading: undefined,\n contextClass: null,\n displayMode: undefined\n};\n\nFieldGroupTemplate.propTypes = {\n referenceList: PropTypes.arrayOf(Object),\n contextClass: PropTypes.string,\n getPConnect: PropTypes.func.isRequired,\n renderMode: PropTypes.string.isRequired,\n heading: PropTypes.string,\n lookForChildInConfig: PropTypes.bool,\n displayMode: PropTypes.string\n};\n"]}
1
+ {"version":3,"file":"FieldGroupTemplate.js","sourceRoot":"","sources":["../../../../src/components/template/FieldGroupTemplate/FieldGroupTemplate.tsx"],"names":[],"mappings":"AAAA,+CAA+C;AAC/C,OAAO,KAAK,EAAE,EAAE,OAAO,EAAE,MAAM,OAAO,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,oBAAoB,CAAC;aACxD,CAAC,CAAC,CAAC;QACN,CAAC,EAAE,CAAC,aAAa,EAAE,MAAM,CAAC,CAAC,CAAC;QAE5B,OAAO,CACL,oBAAC,cAAc,IACb,KAAK,EAAE,gBAAgB,EACvB,KAAK,EAAE,YAAY,KAAK,KAAK,CAAC,CAAC,CAAC,iBAAiB,CAAC,CAAC,CAAC,SAAS,EAC7D,QAAQ,EAAE,YAAY,KAAK,KAAK,CAAC,CAAC,CAAC,oBAAoB,CAAC,CAAC,CAAC,SAAS,GACnE,CACH,CAAC;KACH;IAED,KAAK,CAAC,gBAAgB,CAAC,aAAa,EAAE,aAAa,CAAC,CAAC;IACrD,MAAM,oBAAoB,GAAG,OAAO,CAAC,GAAG,EAAE;QACxC,OAAO,aAAa,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,KAAK,EAAE,EAAE;YACvC,MAAM,GAAG,GAAG,IAAI,CAAC,OAAO,CAAC,IAAI,mBAAmB,KAAK,EAAE,CAAC;YACxD,OAAO,CACL,oBAAC,UAAU,IACT,GAAG,EAAE,GAAG,EACR,IAAI,EAAE,WAAW,KAAK,aAAa,CAAC,CAAC,CAAC,oBAAoB,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC,CAAC,CAAC,GAAG,OAAO,IAAI,KAAK,GAAG,CAAC,EAAE,IAElG,SAAS,CAAC,KAAK,EAAE,KAAK,EAAE,oBAAoB,CAAC,CACnC,CACd,CAAC;QACJ,CAAC,CAAC,CAAC;IACL,CAAC,EAAE,EAAE,CAAC,CAAC;IAEP,OAAO,iCAAM,oBAAoB,CAAO,CAAC;AAC3C,CAAC","sourcesContent":["/* eslint-disable react-hooks/rules-of-hooks */\nimport React, { useMemo } from 'react';\nimport { getReferenceList, buildView } from '../../helpers/field-group-utils';\nimport { getComponentFromMap } from '../../../bridge/helpers/sdk_component_map';\n\nimport type { PConnProps } from '../../../types/PConnProps';\n\ninterface FieldGroupTemplateProps extends PConnProps {\n // If any, enter additional props that only exist on this component\n referenceList?: Array<any>,\n contextClass: string,\n renderMode?: string,\n heading?: string,\n lookForChildInConfig?: boolean,\n displayMode?: string,\n fieldHeader?: string,\n allowTableEdit: boolean\n}\n\n\nexport default function FieldGroupTemplate(props: FieldGroupTemplateProps) {\n // Get emitted components from map (so we can get any override that may exist)\n const FieldGroup = getComponentFromMap('FieldGroup');\n const FieldGroupList = getComponentFromMap('FieldGroupList');\n\n const {\n referenceList = [],\n renderMode,\n contextClass,\n getPConnect,\n lookForChildInConfig,\n heading = '',\n displayMode,\n fieldHeader,\n allowTableEdit: allowAddEdit\n } = props;\n const pConn = getPConnect();\n const resolvedList = getReferenceList(pConn);\n pConn.setReferenceList(resolvedList);\n const pageReference = `${pConn.getPageReference()}${resolvedList}`;\n const isReadonlyMode = renderMode === 'ReadOnly' || displayMode === 'LABELS_LEFT';\n const HEADING = heading ?? 'Row';\n\n const getDynamicHeaderProp = (item, index) => {\n if (fieldHeader === 'propertyRef' && heading && item[heading.substring(1)]) {\n return item[heading.substring(1)];\n }\n return `Row ${index + 1}`;\n };\n\n const addRecord = () => {\n if (PCore.getPCoreVersion()?.includes('8.7')) {\n pConn.getListActions().insert({ classID: contextClass }, referenceList.length, pageReference);\n } else {\n pConn.getListActions().insert({}, referenceList.length, null); // 3rd arg null until typedef marked correctly as optional\n }\n };\n\n if (!isReadonlyMode) {\n const addFieldGroupItem = () => {\n addRecord();\n };\n const deleteFieldGroupItem = index => {\n if (PCore.getPCoreVersion()?.includes('8.7')) {\n pConn.getListActions().deleteEntry(index, pageReference);\n } else {\n pConn.getListActions().deleteEntry(index, null); // 2nd arg null until typedef marked correctly as optional\n }\n };\n if (referenceList.length === 0 && allowAddEdit !== false) {\n addFieldGroupItem();\n }\n\n const MemoisedChildren = useMemo(() => {\n return referenceList.map((item, index) => ({\n id: index,\n name:\n fieldHeader === 'propertyRef'\n ? getDynamicHeaderProp(item, index)\n : `${HEADING} ${index + 1}`,\n children: buildView(pConn, index, lookForChildInConfig)\n }));\n }, [referenceList?.length]);\n\n return (\n <FieldGroupList\n items={MemoisedChildren}\n onAdd={allowAddEdit !== false ? addFieldGroupItem : undefined}\n onDelete={allowAddEdit !== false ? deleteFieldGroupItem : undefined}\n />\n );\n }\n\n pConn.setInheritedProp('displayMode', 'LABELS_LEFT');\n const memoisedReadOnlyList = useMemo(() => {\n return referenceList.map((item, index) => {\n const key = item[heading] || `field-group-row-${index}`;\n return (\n <FieldGroup\n key={key}\n name={fieldHeader === 'propertyRef' ? getDynamicHeaderProp(item, index) : `${HEADING} ${index + 1}`}\n >\n {buildView(pConn, index, lookForChildInConfig)}\n </FieldGroup>\n );\n });\n }, []);\n\n return <div>{memoisedReadOnlyList}</div>;\n}\n"]}
@@ -1,10 +1,10 @@
1
1
  /// <reference types="react" />
2
- import PropTypes from 'prop-types';
3
- declare function InlineDashboard(props: any): JSX.Element;
4
- declare namespace InlineDashboard {
5
- var propTypes: {
6
- children: PropTypes.Validator<PropTypes.ReactNodeLike[]>;
7
- };
2
+ import type { PConnProps } from '../../../types/PConnProps';
3
+ interface InlineDashboardProps extends PConnProps {
4
+ children: Array<any>;
5
+ title: string;
6
+ filterPosition?: string;
8
7
  }
9
- export default InlineDashboard;
8
+ export default function InlineDashboard(props: InlineDashboardProps): JSX.Element;
9
+ export {};
10
10
  //# sourceMappingURL=InlineDashboard.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"InlineDashboard.d.ts","sourceRoot":"","sources":["../../../../src/components/template/InlineDashboard/InlineDashboard.tsx"],"names":[],"mappings":";AACA,OAAO,SAAS,MAAM,YAAY,CAAC;AA+BnC,iBAAwB,eAAe,CAAC,KAAK,KAAA,eAkC5C;kBAlCuB,eAAe;;;;;eAAf,eAAe"}
1
+ {"version":3,"file":"InlineDashboard.d.ts","sourceRoot":"","sources":["../../../../src/components/template/InlineDashboard/InlineDashboard.tsx"],"names":[],"mappings":";AAGA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AAG5D,UAAU,oBAAqB,SAAQ,UAAU;IAE/C,QAAQ,EAAE,KAAK,CAAC,GAAG,CAAC,CAAC;IACrB,KAAK,EAAE,MAAM,CAAC;IACd,cAAc,CAAC,EAAE,MAAM,CAAA;CACxB;AA8BD,MAAM,CAAC,OAAO,UAAU,eAAe,CAAC,KAAK,EAAE,oBAAoB,eAkClE"}
@@ -1,5 +1,4 @@
1
1
  import React from 'react';
2
- import PropTypes from 'prop-types';
3
2
  import { Grid, Typography } from '@material-ui/core';
4
3
  import { makeStyles } from '@material-ui/core/styles';
5
4
  const useStyles = makeStyles(( /* theme */) => ({
@@ -41,8 +40,4 @@ export default function InlineDashboard(props) {
41
40
  React.createElement(Grid, { item: true, xs: 9 }, children[0]),
42
41
  React.createElement(Grid, { item: true, xs: 3, className: classes.inlineStyles }, children[1])))));
43
42
  }
44
- InlineDashboard.propTypes = {
45
- children: PropTypes.arrayOf(PropTypes.node).isRequired
46
- // template: PropTypes.string.isRequired
47
- };
48
43
  //# sourceMappingURL=InlineDashboard.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"InlineDashboard.js","sourceRoot":"","sources":["../../../../src/components/template/InlineDashboard/InlineDashboard.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,SAAS,MAAM,YAAY,CAAC;AACnC,OAAO,EAAE,IAAI,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AACrD,OAAO,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC;AAEtD,MAAM,SAAS,GAAG,UAAU,CAAC,EAAC,WAAW,EAAE,EAAE,CAAC,CAAC;IAC7C,YAAY,EAAE;QACZ,UAAU,EAAE,GAAG;QACf,QAAQ,EAAE,SAAS;KACpB;IACD,eAAe,EAAE;QACf,SAAS,EAAE,MAAM;QACjB,YAAY,EAAE,MAAM;KACrB;IACD,SAAS,EAAE;QACT,OAAO,EAAE,MAAM;QACf,GAAG,EAAE,MAAM;QACX,YAAY,EAAE,UAAU;KACzB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,IACb,QAAQ,CAAC,CAAC,CAAC,CACP;YACP,oBAAC,IAAI,IAAC,IAAI,QAAC,EAAE,EAAE,CAAC,EAAE,SAAS,EAAE,OAAO,CAAC,YAAY,IAC9C,QAAQ,CAAC,CAAC,CAAC,CACP,CACF,CACR,CACA,CACJ,CAAC;AACJ,CAAC;AAED,eAAe,CAAC,SAAS,GAAG;IAC1B,QAAQ,EAAE,SAAS,CAAC,OAAO,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC,UAAU;IACtD,wCAAwC;CACzC,CAAC","sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport { Grid, Typography } from '@material-ui/core';\nimport { makeStyles } from '@material-ui/core/styles';\n\nconst useStyles = makeStyles((/* theme */) => ({\n headerStyles: {\n fontWeight: 500,\n fontSize: '1.25rem'\n },\n containerStyles: {\n marginTop: '1rem',\n marginBottom: '1rem'\n },\n colStyles: {\n display: 'grid',\n gap: '1rem',\n alignContent: 'baseline'\n },\n filterContainerStyles: {\n display: 'grid',\n gap: '1rem',\n gridTemplateColumns: 'repeat(7, 1fr);'\n },\n inlineStyles: {\n display: 'grid',\n gap: '1rem',\n alignContent: 'baseline',\n marginTop: '1rem'\n }\n}));\n\nexport default function InlineDashboard(props) {\n const classes = useStyles();\n\n const { children, title, filterPosition } = props;\n\n const direction = filterPosition === 'inline-start' ? 'row-reverse' : 'row';\n return (\n <>\n <Typography variant='h4' className={classes.headerStyles}>\n {title}\n </Typography>\n\n {filterPosition === 'block-start' && (\n <Grid container spacing={2} direction='column-reverse' className={classes.containerStyles}>\n <Grid item xs={12} className={classes.colStyles}>\n {children[0]}\n </Grid>\n <Grid item xs={12} className={classes.filterContainerStyles}>\n {children[1]}\n </Grid>\n </Grid>\n )}\n {filterPosition !== 'block-start' && (\n <Grid container spacing={2} direction={direction} className={classes.containerStyles}>\n <Grid item xs={9}>\n {children[0]}\n </Grid>\n <Grid item xs={3} className={classes.inlineStyles}>\n {children[1]}\n </Grid>\n </Grid>\n )}\n </>\n );\n}\n\nInlineDashboard.propTypes = {\n children: PropTypes.arrayOf(PropTypes.node).isRequired\n // template: PropTypes.string.isRequired\n};\n"]}
1
+ {"version":3,"file":"InlineDashboard.js","sourceRoot":"","sources":["../../../../src/components/template/InlineDashboard/InlineDashboard.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,IAAI,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AACrD,OAAO,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC;AAYtD,MAAM,SAAS,GAAG,UAAU,CAAC,EAAC,WAAW,EAAE,EAAE,CAAC,CAAC;IAC7C,YAAY,EAAE;QACZ,UAAU,EAAE,GAAG;QACf,QAAQ,EAAE,SAAS;KACpB;IACD,eAAe,EAAE;QACf,SAAS,EAAE,MAAM;QACjB,YAAY,EAAE,MAAM;KACrB;IACD,SAAS,EAAE;QACT,OAAO,EAAE,MAAM;QACf,GAAG,EAAE,MAAM;QACX,YAAY,EAAE,UAAU;KACzB;IACD,qBAAqB,EAAE;QACrB,OAAO,EAAE,MAAM;QACf,GAAG,EAAE,MAAM;QACX,mBAAmB,EAAE,iBAAiB;KACvC;IACD,YAAY,EAAE;QACZ,OAAO,EAAE,MAAM;QACf,GAAG,EAAE,MAAM;QACX,YAAY,EAAE,UAAU;QACxB,SAAS,EAAE,MAAM;KAClB;CACF,CAAC,CAAC,CAAC;AAEJ,MAAM,CAAC,OAAO,UAAU,eAAe,CAAC,KAA2B;IACjE,MAAM,OAAO,GAAG,SAAS,EAAE,CAAC;IAE5B,MAAM,EAAE,QAAQ,EAAE,KAAK,EAAE,cAAc,EAAE,GAAG,KAAK,CAAC;IAElD,MAAM,SAAS,GAAG,cAAc,KAAK,cAAc,CAAC,CAAC,CAAC,aAAa,CAAC,CAAC,CAAC,KAAK,CAAC;IAC5E,OAAO,CACL;QACE,oBAAC,UAAU,IAAC,OAAO,EAAC,IAAI,EAAC,SAAS,EAAE,OAAO,CAAC,YAAY,IACrD,KAAK,CACK;QAEZ,cAAc,KAAK,aAAa,IAAI,CACnC,oBAAC,IAAI,IAAC,SAAS,QAAC,OAAO,EAAE,CAAC,EAAE,SAAS,EAAC,gBAAgB,EAAC,SAAS,EAAE,OAAO,CAAC,eAAe;YACvF,oBAAC,IAAI,IAAC,IAAI,QAAC,EAAE,EAAE,EAAE,EAAE,SAAS,EAAE,OAAO,CAAC,SAAS,IAC5C,QAAQ,CAAC,CAAC,CAAC,CACP;YACP,oBAAC,IAAI,IAAC,IAAI,QAAC,EAAE,EAAE,EAAE,EAAE,SAAS,EAAE,OAAO,CAAC,qBAAqB,IACxD,QAAQ,CAAC,CAAC,CAAC,CACP,CACF,CACR;QACA,cAAc,KAAK,aAAa,IAAI,CACnC,oBAAC,IAAI,IAAC,SAAS,QAAC,OAAO,EAAE,CAAC,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,OAAO,CAAC,eAAe;YAClF,oBAAC,IAAI,IAAC,IAAI,QAAC,EAAE,EAAE,CAAC,IACb,QAAQ,CAAC,CAAC,CAAC,CACP;YACP,oBAAC,IAAI,IAAC,IAAI,QAAC,EAAE,EAAE,CAAC,EAAE,SAAS,EAAE,OAAO,CAAC,YAAY,IAC9C,QAAQ,CAAC,CAAC,CAAC,CACP,CACF,CACR,CACA,CACJ,CAAC;AACJ,CAAC","sourcesContent":["import React from 'react';\nimport { Grid, Typography } from '@material-ui/core';\nimport { makeStyles } from '@material-ui/core/styles';\nimport type { PConnProps } from '../../../types/PConnProps';\n\n// InlineDashboard does NOT have getPConnect. So, no need to extend from PConnProps\ninterface InlineDashboardProps extends PConnProps {\n // If any, enter additional props that only exist on this component\n children: Array<any>,\n title: string,\n filterPosition?: string\n}\n\n\nconst useStyles = makeStyles((/* theme */) => ({\n headerStyles: {\n fontWeight: 500,\n fontSize: '1.25rem'\n },\n containerStyles: {\n marginTop: '1rem',\n marginBottom: '1rem'\n },\n colStyles: {\n display: 'grid',\n gap: '1rem',\n alignContent: 'baseline'\n },\n filterContainerStyles: {\n display: 'grid',\n gap: '1rem',\n gridTemplateColumns: 'repeat(7, 1fr);'\n },\n inlineStyles: {\n display: 'grid',\n gap: '1rem',\n alignContent: 'baseline',\n marginTop: '1rem'\n }\n}));\n\nexport default function InlineDashboard(props: InlineDashboardProps) {\n const classes = useStyles();\n\n const { children, title, filterPosition } = props;\n\n const direction = filterPosition === 'inline-start' ? 'row-reverse' : 'row';\n return (\n <>\n <Typography variant='h4' className={classes.headerStyles}>\n {title}\n </Typography>\n\n {filterPosition === 'block-start' && (\n <Grid container spacing={2} direction='column-reverse' className={classes.containerStyles}>\n <Grid item xs={12} className={classes.colStyles}>\n {children[0]}\n </Grid>\n <Grid item xs={12} className={classes.filterContainerStyles}>\n {children[1]}\n </Grid>\n </Grid>\n )}\n {filterPosition !== 'block-start' && (\n <Grid container spacing={2} direction={direction} className={classes.containerStyles}>\n <Grid item xs={9}>\n {children[0]}\n </Grid>\n <Grid item xs={3} className={classes.inlineStyles}>\n {children[1]}\n </Grid>\n </Grid>\n )}\n </>\n );\n}\n"]}
@@ -1,18 +1,11 @@
1
1
  /// <reference types="react" />
2
- import PropTypes from 'prop-types';
3
- declare function InlineDashboardPage(props: any): JSX.Element;
4
- declare namespace InlineDashboardPage {
5
- var propTypes: {
6
- children: PropTypes.Validator<PropTypes.ReactNodeLike[]>;
7
- getPConnect: PropTypes.Validator<(...args: any[]) => any>;
8
- title: PropTypes.Validator<string>;
9
- icon: PropTypes.Requireable<string>;
10
- filterPosition: PropTypes.Requireable<string>;
11
- };
12
- var defaultProps: {
13
- icon: string;
14
- filterPosition: string;
15
- };
2
+ import type { PConnProps } from '../../../types/PConnProps';
3
+ interface InlineDashboardPageProps extends PConnProps {
4
+ children: Array<any>;
5
+ title: string;
6
+ icon?: string;
7
+ filterPosition?: string;
16
8
  }
17
- export default InlineDashboardPage;
9
+ export default function InlineDashboardPage(props: InlineDashboardPageProps): JSX.Element;
10
+ export {};
18
11
  //# sourceMappingURL=InlineDashboardPage.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"InlineDashboardPage.d.ts","sourceRoot":"","sources":["../../../../src/components/template/InlineDashboardPage/InlineDashboardPage.tsx"],"names":[],"mappings":";AAEA,OAAO,SAAS,MAAM,YAAY,CAAC;AAKnC,iBAAwB,mBAAmB,CAAC,KAAK,KAAA,eAoBhD;kBApBuB,mBAAmB;;;;;;;;;;;;;eAAnB,mBAAmB"}
1
+ {"version":3,"file":"InlineDashboardPage.d.ts","sourceRoot":"","sources":["../../../../src/components/template/InlineDashboardPage/InlineDashboardPage.tsx"],"names":[],"mappings":";AAMA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AAG5D,UAAU,wBAAyB,SAAQ,UAAU;IAEnD,QAAQ,EAAE,KAAK,CAAC,GAAG,CAAC,CAAC;IACrB,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,cAAc,CAAC,EAAE,MAAM,CAAA;CACxB;AAGD,MAAM,CAAC,OAAO,UAAU,mBAAmB,CAAC,KAAK,EAAE,wBAAwB,eAwB1E"}
@@ -1,15 +1,17 @@
1
1
  import React from 'react';
2
2
  import { useMemo, Children, useEffect, useState } from 'react';
3
- import PropTypes from 'prop-types';
4
3
  import { buildFilterComponents } from '../../infra/DashboardFilter/filterUtils';
5
- import InlineDashboard from '../InlineDashboard';
4
+ import { getComponentFromMap } from '../../../bridge/helpers/sdk_component_map';
6
5
  export default function InlineDashboardPage(props) {
7
- const { children, getPConnect } = props;
6
+ // Get emitted components from map (so we can get any override that may exist)
7
+ const InlineDashboard = getComponentFromMap("InlineDashboard");
8
+ // eslint-disable-next-line no-unused-vars, @typescript-eslint/no-unused-vars
9
+ const { children, getPConnect, icon = '', filterPosition = 'block-start' } = props;
8
10
  const [filterComponents, setFilterComponents] = useState([]);
9
11
  const childArray = useMemo(() => {
10
12
  return Children.toArray(children);
11
13
  }, [children]);
12
- const allFilters = getPConnect().getRawMetadata().children[1];
14
+ const allFilters = getPConnect().getRawMetadata()["children"][1];
13
15
  useEffect(() => {
14
16
  setFilterComponents(buildFilterComponents(getPConnect, allFilters));
15
17
  }, []);
@@ -20,15 +22,4 @@ export default function InlineDashboardPage(props) {
20
22
  inlineProps.children[1] = filterComponents;
21
23
  return React.createElement(InlineDashboard, { ...inlineProps });
22
24
  }
23
- InlineDashboardPage.propTypes = {
24
- children: PropTypes.arrayOf(PropTypes.node).isRequired,
25
- getPConnect: PropTypes.func.isRequired,
26
- title: PropTypes.string.isRequired,
27
- icon: PropTypes.string,
28
- filterPosition: PropTypes.string
29
- };
30
- InlineDashboardPage.defaultProps = {
31
- icon: '',
32
- filterPosition: 'block-start'
33
- };
34
25
  //# sourceMappingURL=InlineDashboardPage.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"InlineDashboardPage.js","sourceRoot":"","sources":["../../../../src/components/template/InlineDashboardPage/InlineDashboardPage.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAC/D,OAAO,SAAS,MAAM,YAAY,CAAC;AAEnC,OAAO,EAAE,qBAAqB,EAAE,MAAM,yCAAyC,CAAC;AAChF,OAAO,eAAe,MAAM,oBAAoB,CAAC;AAEjD,MAAM,CAAC,OAAO,UAAU,mBAAmB,CAAC,KAAK;IAC/C,MAAM,EAAE,QAAQ,EAAE,WAAW,EAAE,GAAG,KAAK,CAAC;IACxC,MAAM,CAAC,gBAAgB,EAAE,mBAAmB,CAAC,GAAG,QAAQ,CAAC,EAAE,CAAC,CAAC;IAC7D,MAAM,UAAU,GAAG,OAAO,CAAC,GAAG,EAAE;QAC9B,OAAO,QAAQ,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC;IACpC,CAAC,EAAE,CAAC,QAAQ,CAAC,CAAC,CAAC;IAEf,MAAM,UAAU,GAAG,WAAW,EAAE,CAAC,cAAc,EAAE,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC;IAE9D,SAAS,CAAC,GAAG,EAAE;QACb,mBAAmB,CAAC,qBAAqB,CAAC,WAAW,EAAE,UAAU,CAAC,CAAC,CAAC;IACtE,CAAC,EAAE,EAAE,CAAC,CAAC;IAEP,MAAM,WAAW,GAAG,KAAK,CAAC;IAC1B,sBAAsB;IACtB,WAAW,CAAC,QAAQ,CAAC,CAAC,CAAC,GAAG,UAAU,CAAC,CAAC,CAAC,CAAC;IACxC,eAAe;IACf,WAAW,CAAC,QAAQ,CAAC,CAAC,CAAC,GAAG,gBAAgB,CAAC;IAE3C,OAAO,oBAAC,eAAe,OAAK,WAAW,GAAI,CAAC;AAC9C,CAAC;AAED,mBAAmB,CAAC,SAAS,GAAG;IAC9B,QAAQ,EAAE,SAAS,CAAC,OAAO,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC,UAAU;IACtD,WAAW,EAAE,SAAS,CAAC,IAAI,CAAC,UAAU;IACtC,KAAK,EAAE,SAAS,CAAC,MAAM,CAAC,UAAU;IAClC,IAAI,EAAE,SAAS,CAAC,MAAM;IACtB,cAAc,EAAE,SAAS,CAAC,MAAM;CACjC,CAAC;AAEF,mBAAmB,CAAC,YAAY,GAAG;IACjC,IAAI,EAAE,EAAE;IACR,cAAc,EAAE,aAAa;CAC9B,CAAC","sourcesContent":["import React from 'react';\nimport { useMemo, Children, useEffect, useState } from 'react';\nimport PropTypes from 'prop-types';\n\nimport { buildFilterComponents } from '../../infra/DashboardFilter/filterUtils';\nimport InlineDashboard from '../InlineDashboard';\n\nexport default function InlineDashboardPage(props) {\n const { children, getPConnect } = props;\n const [filterComponents, setFilterComponents] = useState([]);\n const childArray = useMemo(() => {\n return Children.toArray(children);\n }, [children]);\n\n const allFilters = getPConnect().getRawMetadata().children[1];\n\n useEffect(() => {\n setFilterComponents(buildFilterComponents(getPConnect, allFilters));\n }, []);\n\n const inlineProps = props;\n // Region layout views\n inlineProps.children[0] = childArray[0];\n // filter items\n inlineProps.children[1] = filterComponents;\n\n return <InlineDashboard {...inlineProps} />;\n}\n\nInlineDashboardPage.propTypes = {\n children: PropTypes.arrayOf(PropTypes.node).isRequired,\n getPConnect: PropTypes.func.isRequired,\n title: PropTypes.string.isRequired,\n icon: PropTypes.string,\n filterPosition: PropTypes.string\n};\n\nInlineDashboardPage.defaultProps = {\n icon: '',\n filterPosition: 'block-start'\n};\n"]}
1
+ {"version":3,"file":"InlineDashboardPage.js","sourceRoot":"","sources":["../../../../src/components/template/InlineDashboardPage/InlineDashboardPage.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAE/D,OAAO,EAAE,qBAAqB,EAAE,MAAM,yCAAyC,CAAC;AAChF,OAAO,EAAE,mBAAmB,EAAE,MAAM,2CAA2C,CAAC;AAchF,MAAM,CAAC,OAAO,UAAU,mBAAmB,CAAC,KAA+B;IACzE,8EAA8E;IAC9E,MAAM,eAAe,GAAG,mBAAmB,CAAC,iBAAiB,CAAC,CAAC;IAE/D,6EAA6E;IAC7E,MAAM,EAAE,QAAQ,EAAE,WAAW,EAAE,IAAI,GAAG,EAAE,EAAE,cAAc,GAAG,aAAa,EAAG,GAAG,KAAK,CAAC;IACpF,MAAM,CAAC,gBAAgB,EAAE,mBAAmB,CAAC,GAAG,QAAQ,CAAC,EAAE,CAAC,CAAC;IAC7D,MAAM,UAAU,GAAG,OAAO,CAAC,GAAG,EAAE;QAC9B,OAAO,QAAQ,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC;IACpC,CAAC,EAAE,CAAC,QAAQ,CAAC,CAAC,CAAC;IAEf,MAAM,UAAU,GAAG,WAAW,EAAE,CAAC,cAAc,EAAE,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,CAAC;IAEjE,SAAS,CAAC,GAAG,EAAE;QACb,mBAAmB,CAAC,qBAAqB,CAAC,WAAW,EAAE,UAAU,CAAC,CAAC,CAAC;IACtE,CAAC,EAAE,EAAE,CAAC,CAAC;IAEP,MAAM,WAAW,GAAG,KAAK,CAAC;IAC1B,sBAAsB;IACtB,WAAW,CAAC,QAAQ,CAAC,CAAC,CAAC,GAAG,UAAU,CAAC,CAAC,CAAC,CAAC;IACxC,eAAe;IACf,WAAW,CAAC,QAAQ,CAAC,CAAC,CAAC,GAAG,gBAAgB,CAAC;IAE3C,OAAO,oBAAC,eAAe,OAAK,WAAW,GAAI,CAAC;AAC9C,CAAC","sourcesContent":["import React from 'react';\nimport { useMemo, Children, useEffect, useState } from 'react';\n\nimport { buildFilterComponents } from '../../infra/DashboardFilter/filterUtils';\nimport { getComponentFromMap } from '../../../bridge/helpers/sdk_component_map';\n\nimport type { PConnProps } from '../../../types/PConnProps';\n\n\ninterface InlineDashboardPageProps extends PConnProps {\n // If any, enter additional props that only exist on this component\n children: Array<any>,\n title: string,\n icon?: string,\n filterPosition?: string\n}\n\n\nexport default function InlineDashboardPage(props: InlineDashboardPageProps) {\n // Get emitted components from map (so we can get any override that may exist)\n const InlineDashboard = getComponentFromMap(\"InlineDashboard\");\n\n // eslint-disable-next-line no-unused-vars, @typescript-eslint/no-unused-vars\n const { children, getPConnect, icon = '', filterPosition = 'block-start' } = props;\n const [filterComponents, setFilterComponents] = useState([]);\n const childArray = useMemo(() => {\n return Children.toArray(children);\n }, [children]);\n\n const allFilters = getPConnect().getRawMetadata()[\"children\"][1];\n\n useEffect(() => {\n setFilterComponents(buildFilterComponents(getPConnect, allFilters));\n }, []);\n\n const inlineProps = props;\n // Region layout views\n inlineProps.children[0] = childArray[0];\n // filter items\n inlineProps.children[1] = filterComponents;\n\n return <InlineDashboard {...inlineProps} />;\n}\n"]}
@@ -1,16 +1,8 @@
1
1
  /// <reference types="react" />
2
- import PropTypes from "prop-types";
3
- declare function ListPage(props: any): JSX.Element;
4
- declare namespace ListPage {
5
- var defaultProps: {
6
- parameters: undefined;
7
- };
8
- var propTypes: {
9
- getPConnect: PropTypes.Validator<(...args: any[]) => any>;
10
- parameters: PropTypes.Requireable<{
11
- [x: string]: any;
12
- }>;
13
- };
2
+ import type { PConnProps } from '../../../types/PConnProps';
3
+ interface ListPageProps extends PConnProps {
4
+ parameters: object;
14
5
  }
15
- export default ListPage;
6
+ export default function ListPage(props: ListPageProps): JSX.Element;
7
+ export {};
16
8
  //# sourceMappingURL=ListPage.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ListPage.d.ts","sourceRoot":"","sources":["../../../../src/components/template/ListPage/ListPage.tsx"],"names":[],"mappings":";AACA,OAAO,SAAS,MAAM,YAAY,CAAC;AAInC,iBAAwB,QAAQ,CAAC,KAAK,KAAA,eAKrC;kBALuB,QAAQ;;;;;;;;;;;eAAR,QAAQ"}
1
+ {"version":3,"file":"ListPage.d.ts","sourceRoot":"","sources":["../../../../src/components/template/ListPage/ListPage.tsx"],"names":[],"mappings":";AAGA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AAE5D,UAAU,aAAc,SAAQ,UAAU;IAExC,UAAU,EAAE,MAAM,CAAA;CACnB;AAGD,MAAM,CAAC,OAAO,UAAU,QAAQ,CAAC,KAAK,EAAE,aAAa,eASpD"}
@@ -1,14 +1,10 @@
1
1
  import React from "react";
2
- import PropTypes from "prop-types";
3
- import ListView from '../ListView';
2
+ import { getComponentFromMap } from '../../../bridge/helpers/sdk_component_map';
4
3
  export default function ListPage(props) {
5
- return (React.createElement(ListView, { ...props }));
4
+ // Get emitted components from map (so we can get any override that may exist)
5
+ const ListView = getComponentFromMap('ListView');
6
+ // special case for ListView - add in a prop
7
+ const listViewProps = { ...props, bInForm: false };
8
+ return (React.createElement(ListView, { ...listViewProps }));
6
9
  }
7
- ListPage.defaultProps = {
8
- parameters: undefined
9
- };
10
- ListPage.propTypes = {
11
- getPConnect: PropTypes.func.isRequired,
12
- parameters: PropTypes.objectOf(PropTypes.any)
13
- };
14
10
  //# sourceMappingURL=ListPage.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ListPage.js","sourceRoot":"","sources":["../../../../src/components/template/ListPage/ListPage.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,SAAS,MAAM,YAAY,CAAC;AAEnC,OAAO,QAAQ,MAAM,aAAa,CAAC;AAEnC,MAAM,CAAC,OAAO,UAAU,QAAQ,CAAC,KAAK;IAEpC,OAAO,CACL,oBAAC,QAAQ,OAAM,KAAK,GAAa,CAClC,CAAA;AACH,CAAC;AAED,QAAQ,CAAC,YAAY,GAAG;IACtB,UAAU,EAAE,SAAS;CACtB,CAAC;AAEF,QAAQ,CAAC,SAAS,GAAG;IACnB,WAAW,EAAE,SAAS,CAAC,IAAI,CAAC,UAAU;IACtC,UAAU,EAAE,SAAS,CAAC,QAAQ,CAAC,SAAS,CAAC,GAAG,CAAC;CAC9C,CAAC","sourcesContent":["import React from \"react\";\nimport PropTypes from \"prop-types\";\n\nimport ListView from '../ListView';\n\nexport default function ListPage(props) {\n\n return (\n <ListView {...props}></ListView>\n )\n}\n\nListPage.defaultProps = {\n parameters: undefined\n};\n\nListPage.propTypes = {\n getPConnect: PropTypes.func.isRequired,\n parameters: PropTypes.objectOf(PropTypes.any)\n};\n"]}
1
+ {"version":3,"file":"ListPage.js","sourceRoot":"","sources":["../../../../src/components/template/ListPage/ListPage.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,mBAAmB,EAAE,MAAM,2CAA2C,CAAC;AAUhF,MAAM,CAAC,OAAO,UAAU,QAAQ,CAAC,KAAoB;IACnD,8EAA8E;IAC9E,MAAM,QAAQ,GAAG,mBAAmB,CAAC,UAAU,CAAC,CAAC;IAElD,4CAA4C;IAC5C,MAAM,aAAa,GAAG,EAAC,GAAG,KAAK,EAAE,OAAO,EAAE,KAAK,EAAC,CAAC;IAChD,OAAO,CACL,oBAAC,QAAQ,OAAM,aAAa,GAAa,CAC1C,CAAA;AACH,CAAC","sourcesContent":["import React from \"react\";\nimport { getComponentFromMap } from '../../../bridge/helpers/sdk_component_map';\n\nimport type { PConnProps } from '../../../types/PConnProps';\n\ninterface ListPageProps extends PConnProps {\n // If any, enter additional props that only exist on this component\n parameters: object\n}\n\n\nexport default function ListPage(props: ListPageProps) {\n // Get emitted components from map (so we can get any override that may exist)\n const ListView = getComponentFromMap('ListView');\n\n // special case for ListView - add in a prop\n const listViewProps = {...props, bInForm: false};\n return (\n <ListView {...listViewProps}></ListView>\n )\n}\n"]}
@@ -1,12 +1,4 @@
1
1
  /// <reference types="react" />
2
- import PropTypes from 'prop-types';
3
2
  import './ListView.css';
4
- declare function ListView(props: any): JSX.Element;
5
- declare namespace ListView {
6
- var defaultProps: {};
7
- var propTypes: {
8
- getPConnect: PropTypes.Validator<(...args: any[]) => any>;
9
- };
10
- }
11
- export default ListView;
3
+ export default function ListView(props: any): JSX.Element;
12
4
  //# sourceMappingURL=ListView.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ListView.d.ts","sourceRoot":"","sources":["../../../../src/components/template/ListView/ListView.tsx"],"names":[],"mappings":";AAMA,OAAO,SAAS,MAAM,YAAY,CAAC;AAkCnC,OAAO,gBAAgB,CAAC;AAmBxB,iBAAwB,QAAQ,CAAC,KAAK,KAAA,eAkuCrC;kBAluCuB,QAAQ;;;;;;eAAR,QAAQ"}
1
+ {"version":3,"file":"ListView.d.ts","sourceRoot":"","sources":["../../../../src/components/template/ListView/ListView.tsx"],"names":[],"mappings":";AAsCA,OAAO,gBAAgB,CAAC;AAuCxB,MAAM,CAAC,OAAO,UAAU,QAAQ,CAAC,KAAK,KAAA,eA+oCrC"}