@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
@@ -1,14 +1,8 @@
1
1
  /// <reference types="react" />
2
- import PropTypes from "prop-types";
3
- declare function TwoColumn(props: any): JSX.Element;
4
- declare namespace TwoColumn {
5
- var propTypes: {
6
- children: PropTypes.Validator<PropTypes.ReactNodeLike[]>;
7
- templateCol: PropTypes.Requireable<string>;
8
- };
9
- var defaultProps: {
10
- templateCol: string;
11
- };
2
+ interface TwoColumnProps {
3
+ children: Array<any>;
4
+ templateCol?: string;
12
5
  }
13
- export default TwoColumn;
6
+ export default function TwoColumn(props: TwoColumnProps): JSX.Element;
7
+ export {};
14
8
  //# sourceMappingURL=TwoColumn.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"TwoColumn.d.ts","sourceRoot":"","sources":["../../../../../src/components/template/TwoColumn/TwoColumn/TwoColumn.tsx"],"names":[],"mappings":";AACA,OAAO,SAAS,MAAM,YAAY,CAAC;AAYnC,iBAAwB,SAAS,CAAC,KAAK,KAAA,eAgCtC;kBAhCuB,SAAS;;;;;;;;;eAAT,SAAS"}
1
+ {"version":3,"file":"TwoColumn.d.ts","sourceRoot":"","sources":["../../../../../src/components/template/TwoColumn/TwoColumn/TwoColumn.tsx"],"names":[],"mappings":";AAKA,UAAU,cAAc;IAEtB,QAAQ,EAAE,KAAK,CAAC,GAAG,CAAC,CAAC;IACrB,WAAW,CAAC,EAAE,MAAM,CAAA;CACrB;AAWD,MAAM,CAAC,OAAO,UAAU,SAAS,CAAC,KAAK,EAAE,cAAc,eAgCtD"}
@@ -1,5 +1,4 @@
1
1
  import React from "react";
2
- import PropTypes from "prop-types";
3
2
  import { Grid } from "@material-ui/core";
4
3
  import { makeStyles } from '@material-ui/core/styles';
5
4
  const useStyles = makeStyles(() => ({
@@ -11,7 +10,7 @@ const useStyles = makeStyles(() => ({
11
10
  }));
12
11
  export default function TwoColumn(props) {
13
12
  const classes = useStyles();
14
- const { children, templateCol } = props;
13
+ const { children, templateCol = '1fr 1fr' } = props;
15
14
  if (children.length !== 2) {
16
15
  // eslint-disable-next-line no-console
17
16
  console.error(`TwoColumn template sees more than 2 columns: ${children.length}`);
@@ -30,14 +29,4 @@ export default function TwoColumn(props) {
30
29
  React.createElement(Grid, { item: true, xs: 12, md: aSize, className: classes.colStyles }, children[0]),
31
30
  React.createElement(Grid, { item: true, xs: 12, md: bSize, className: classes.colStyles }, children[1])));
32
31
  }
33
- TwoColumn.propTypes = {
34
- children: PropTypes.arrayOf(PropTypes.node).isRequired,
35
- // title: PropTypes.string,
36
- templateCol: PropTypes.string,
37
- // icon: PropTypes.string
38
- };
39
- TwoColumn.defaultProps = {
40
- templateCol: "1fr 1fr",
41
- // icon: ""
42
- };
43
32
  //# sourceMappingURL=TwoColumn.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"TwoColumn.js","sourceRoot":"","sources":["../../../../../src/components/template/TwoColumn/TwoColumn/TwoColumn.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,SAAS,MAAM,YAAY,CAAC;AACnC,OAAO,EAAE,IAAI,EAAY,MAAM,mBAAmB,CAAC;AACnD,OAAO,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC;AAEtD,MAAM,SAAS,GAAG,UAAU,CAAC,GAAG,EAAE,CAAC,CAAC;IAClC,SAAS,EAAE;QACT,OAAO,EAAE,MAAM;QACf,GAAG,EAAE,MAAM;QACX,YAAY,EAAE,UAAU;KACzB;CACF,CAAC,CAAC,CAAC;AAEJ,MAAM,CAAC,OAAO,UAAU,SAAS,CAAC,KAAK;IACrC,MAAM,OAAO,GAAG,SAAS,EAAE,CAAC;IAE7B,MAAM,EAAC,QAAQ,EAAE,WAAW,EAAC,GAAG,KAAK,CAAC;IAEtC,IAAI,QAAQ,CAAC,MAAM,KAAK,CAAC,EAAE;QAC1B,sCAAsC;QACtC,OAAO,CAAC,KAAK,CAAE,gDAAgD,QAAQ,CAAC,MAAM,EAAE,CAAC,CAAC;KAClF;IAEA,qBAAqB;IACrB,sFAAsF;IACtF,8BAA8B;IAC9B,IAAI,KAAK,GAAa,CAAC,CAAC;IACxB,IAAI,KAAK,GAAa,CAAC,CAAC;IAExB,MAAM,SAAS,GAAG,WAAW,CAAC,UAAU,CAAC,SAAS,EAAE,EAAE,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC,EAAE,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC;IAC5F,MAAM,SAAS,GAAG,SAAS,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,GAAG,EAAE,EAAE,CAAC,GAAG,GAAG,CAAC,EAAE,CAAC,CAAC,CAAC;IAC3D,MAAM,KAAK,GAAG,EAAE,GAAG,SAAS,CAAC;IAC7B,KAAK,GAAG,CAAC,KAAK,GAAG,SAAS,CAAC,CAAC,CAAC,CAAa,CAAC;IAC3C,KAAK,GAAG,CAAC,KAAK,GAAG,SAAS,CAAC,CAAC,CAAC,CAAa,CAAC;IAE5C,OAAO,CACL,oBAAC,IAAI,IAAC,SAAS,QAAC,OAAO,EAAE,CAAC;QACxB,oBAAC,IAAI,IAAC,IAAI,QAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,KAAK,EAAE,SAAS,EAAE,OAAO,CAAC,SAAS,IACvD,QAAQ,CAAC,CAAC,CAAC,CACP;QACP,oBAAC,IAAI,IAAC,IAAI,QAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,KAAK,EAAE,SAAS,EAAE,OAAO,CAAC,SAAS,IACvD,QAAQ,CAAC,CAAC,CAAC,CACP,CACF,CACR,CAAA;AACF,CAAC;AAED,SAAS,CAAC,SAAS,GAAG;IACpB,QAAQ,EAAE,SAAS,CAAC,OAAO,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC,UAAU;IACtD,2BAA2B;IAC3B,WAAW,EAAE,SAAS,CAAC,MAAM;IAC7B,yBAAyB;CAC1B,CAAC;AAEF,SAAS,CAAC,YAAY,GAAG;IACvB,WAAW,EAAE,SAAS;IACtB,WAAW;CACZ,CAAC","sourcesContent":["import React from \"react\";\nimport PropTypes from \"prop-types\";\nimport { Grid, GridSize } from \"@material-ui/core\";\nimport { makeStyles } from '@material-ui/core/styles';\n\nconst useStyles = makeStyles(() => ({\n colStyles: {\n display: \"grid\",\n gap: \"1rem\",\n alignContent: \"baseline\",\n },\n}));\n\nexport default function TwoColumn(props) {\n const classes = useStyles();\n\n const {children, templateCol} = props;\n\n if (children.length !== 2) {\n // eslint-disable-next-line no-console\n console.error( `TwoColumn template sees more than 2 columns: ${children.length}`);\n }\n\n // Calculate the size\n // Default to assume the 2 columns are evenly split. However, override if templateCol\n // (example value: \"1fr 1fr\")\n let aSize: GridSize = 6;\n let bSize: GridSize = 6;\n\n const colAArray = templateCol.replaceAll(/[a-z]+/g, \"\").split(/\\s/).map(itm => Number(itm));\n const totalCols = colAArray.reduce((v, itm) => itm + v, 0);\n const ratio = 12 / totalCols;\n aSize = (ratio * colAArray[0]) as GridSize;\n bSize = (ratio * colAArray[1]) as GridSize;\n\n return (\n <Grid container spacing={1}>\n <Grid item xs={12} md={aSize} className={classes.colStyles}>\n {children[0]}\n </Grid>\n <Grid item xs={12} md={bSize} className={classes.colStyles}>\n {children[1]}\n </Grid>\n </Grid>\n )\n}\n\nTwoColumn.propTypes = {\n children: PropTypes.arrayOf(PropTypes.node).isRequired,\n // title: PropTypes.string,\n templateCol: PropTypes.string,\n // icon: PropTypes.string\n};\n\nTwoColumn.defaultProps = {\n templateCol: \"1fr 1fr\",\n // icon: \"\"\n};\n"]}
1
+ {"version":3,"file":"TwoColumn.js","sourceRoot":"","sources":["../../../../../src/components/template/TwoColumn/TwoColumn/TwoColumn.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,IAAI,EAAY,MAAM,mBAAmB,CAAC;AACnD,OAAO,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC;AAUtD,MAAM,SAAS,GAAG,UAAU,CAAC,GAAG,EAAE,CAAC,CAAC;IAClC,SAAS,EAAE;QACT,OAAO,EAAE,MAAM;QACf,GAAG,EAAE,MAAM;QACX,YAAY,EAAE,UAAU;KACzB;CACF,CAAC,CAAC,CAAC;AAEJ,MAAM,CAAC,OAAO,UAAU,SAAS,CAAC,KAAqB;IACrD,MAAM,OAAO,GAAG,SAAS,EAAE,CAAC;IAE7B,MAAM,EAAC,QAAQ,EAAE,WAAW,GAAG,SAAS,EAAE,GAAG,KAAK,CAAC;IAEnD,IAAI,QAAQ,CAAC,MAAM,KAAK,CAAC,EAAE;QAC1B,sCAAsC;QACtC,OAAO,CAAC,KAAK,CAAE,gDAAgD,QAAQ,CAAC,MAAM,EAAE,CAAC,CAAC;KAClF;IAEA,qBAAqB;IACrB,sFAAsF;IACtF,8BAA8B;IAC9B,IAAI,KAAK,GAAa,CAAC,CAAC;IACxB,IAAI,KAAK,GAAa,CAAC,CAAC;IAExB,MAAM,SAAS,GAAG,WAAW,CAAC,UAAU,CAAC,SAAS,EAAE,EAAE,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC,EAAE,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC;IAC5F,MAAM,SAAS,GAAG,SAAS,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,GAAG,EAAE,EAAE,CAAC,GAAG,GAAG,CAAC,EAAE,CAAC,CAAC,CAAC;IAC3D,MAAM,KAAK,GAAG,EAAE,GAAG,SAAS,CAAC;IAC7B,KAAK,GAAG,CAAC,KAAK,GAAG,SAAS,CAAC,CAAC,CAAC,CAAa,CAAC;IAC3C,KAAK,GAAG,CAAC,KAAK,GAAG,SAAS,CAAC,CAAC,CAAC,CAAa,CAAC;IAE5C,OAAO,CACL,oBAAC,IAAI,IAAC,SAAS,QAAC,OAAO,EAAE,CAAC;QACxB,oBAAC,IAAI,IAAC,IAAI,QAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,KAAK,EAAE,SAAS,EAAE,OAAO,CAAC,SAAS,IACvD,QAAQ,CAAC,CAAC,CAAC,CACP;QACP,oBAAC,IAAI,IAAC,IAAI,QAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,KAAK,EAAE,SAAS,EAAE,OAAO,CAAC,SAAS,IACvD,QAAQ,CAAC,CAAC,CAAC,CACP,CACF,CACR,CAAA;AACF,CAAC","sourcesContent":["import React from \"react\";\nimport { Grid, GridSize } from \"@material-ui/core\";\nimport { makeStyles } from '@material-ui/core/styles';\n\n// TwoColumn does NOT have getPConnect. So, no need to extend from PConnProps\ninterface TwoColumnProps {\n // If any, enter additional props that only exist on this component\n children: Array<any>,\n templateCol?: string\n}\n\n\nconst useStyles = makeStyles(() => ({\n colStyles: {\n display: \"grid\",\n gap: \"1rem\",\n alignContent: \"baseline\",\n },\n}));\n\nexport default function TwoColumn(props: TwoColumnProps) {\n const classes = useStyles();\n\n const {children, templateCol = '1fr 1fr' } = props;\n\n if (children.length !== 2) {\n // eslint-disable-next-line no-console\n console.error( `TwoColumn template sees more than 2 columns: ${children.length}`);\n }\n\n // Calculate the size\n // Default to assume the 2 columns are evenly split. However, override if templateCol\n // (example value: \"1fr 1fr\")\n let aSize: GridSize = 6;\n let bSize: GridSize = 6;\n\n const colAArray = templateCol.replaceAll(/[a-z]+/g, \"\").split(/\\s/).map(itm => Number(itm));\n const totalCols = colAArray.reduce((v, itm) => itm + v, 0);\n const ratio = 12 / totalCols;\n aSize = (ratio * colAArray[0]) as GridSize;\n bSize = (ratio * colAArray[1]) as GridSize;\n\n return (\n <Grid container spacing={1}>\n <Grid item xs={12} md={aSize} className={classes.colStyles}>\n {children[0]}\n </Grid>\n <Grid item xs={12} md={bSize} className={classes.colStyles}>\n {children[1]}\n </Grid>\n </Grid>\n )\n}\n"]}
@@ -1,11 +1,7 @@
1
1
  /// <reference types="react" />
2
- import PropTypes from "prop-types";
3
- declare function TwoColumnPage(props: any): JSX.Element;
4
- declare namespace TwoColumnPage {
5
- var propTypes: {
6
- children: PropTypes.Validator<PropTypes.ReactNodeLike[]>;
7
- };
8
- var defaultProps: {};
2
+ interface TwoColumnPageProps {
3
+ children: Array<any>;
9
4
  }
10
- export default TwoColumnPage;
5
+ export default function TwoColumnPage(props: TwoColumnPageProps): JSX.Element;
6
+ export {};
11
7
  //# sourceMappingURL=TwoColumnPage.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"TwoColumnPage.d.ts","sourceRoot":"","sources":["../../../../../src/components/template/TwoColumn/TwoColumnPage/TwoColumnPage.tsx"],"names":[],"mappings":";AACA,OAAO,SAAS,MAAM,YAAY,CAAC;AAQnC,iBAAwB,aAAa,CAAC,KAAK,KAAA,eAO1C;kBAPuB,aAAa;;;;;;eAAb,aAAa"}
1
+ {"version":3,"file":"TwoColumnPage.d.ts","sourceRoot":"","sources":["../../../../../src/components/template/TwoColumn/TwoColumnPage/TwoColumnPage.tsx"],"names":[],"mappings":";AAIA,UAAU,kBAAkB;IAE1B,QAAQ,EAAE,KAAK,CAAC,GAAG,CAAC,CAAA;CACrB;AAOD,MAAM,CAAC,OAAO,UAAU,aAAa,CAAC,KAAK,EAAE,kBAAkB,eAS9D"}
@@ -1,15 +1,12 @@
1
1
  import React from "react";
2
- import PropTypes from "prop-types";
3
- import TwoColumn from '../TwoColumn/TwoColumn';
2
+ import { getComponentFromMap } from '../../../../bridge/helpers/sdk_component_map';
4
3
  /*
5
4
  * The wrapper handles knowing how to take in just children
6
5
  * and mapping to the TwoColumn template.
7
6
  */
8
7
  export default function TwoColumnPage(props) {
8
+ // Get emitted components from map (so we can get any override that may exist)
9
+ const TwoColumn = getComponentFromMap('TwoColumn');
9
10
  return (React.createElement(TwoColumn, { ...props }));
10
11
  }
11
- TwoColumnPage.propTypes = {
12
- children: PropTypes.arrayOf(PropTypes.node).isRequired,
13
- };
14
- TwoColumnPage.defaultProps = {};
15
12
  //# sourceMappingURL=TwoColumnPage.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"TwoColumnPage.js","sourceRoot":"","sources":["../../../../../src/components/template/TwoColumn/TwoColumnPage/TwoColumnPage.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,SAAS,MAAM,YAAY,CAAC;AAEnC,OAAO,SAAS,MAAM,wBAAwB,CAAC;AAE/C;;;GAGG;AACH,MAAM,CAAC,OAAO,UAAU,aAAa,CAAC,KAAK;IAEzC,OAAO,CACL,oBAAC,SAAS,OACJ,KAAK,GACT,CACH,CAAC;AACJ,CAAC;AAED,aAAa,CAAC,SAAS,GAAG;IACxB,QAAQ,EAAE,SAAS,CAAC,OAAO,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC,UAAU;CACvD,CAAC;AAEF,aAAa,CAAC,YAAY,GAAG,EAC5B,CAAC","sourcesContent":["import React from \"react\";\nimport PropTypes from \"prop-types\";\n\nimport TwoColumn from '../TwoColumn/TwoColumn';\n\n/*\n * The wrapper handles knowing how to take in just children\n * and mapping to the TwoColumn template.\n */\nexport default function TwoColumnPage(props) {\n\n return (\n <TwoColumn\n {...props}\n />\n );\n}\n\nTwoColumnPage.propTypes = {\n children: PropTypes.arrayOf(PropTypes.node).isRequired,\n};\n\nTwoColumnPage.defaultProps = {\n};\n"]}
1
+ {"version":3,"file":"TwoColumnPage.js","sourceRoot":"","sources":["../../../../../src/components/template/TwoColumn/TwoColumnPage/TwoColumnPage.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,mBAAmB,EAAE,MAAM,8CAA8C,CAAC;AASnF;;;GAGG;AACH,MAAM,CAAC,OAAO,UAAU,aAAa,CAAC,KAAyB;IAC7D,8EAA8E;IAC9E,MAAM,SAAS,GAAG,mBAAmB,CAAC,WAAW,CAAC,CAAC;IAEnD,OAAO,CACL,oBAAC,SAAS,OACJ,KAAK,GACT,CACH,CAAC;AACJ,CAAC","sourcesContent":["import React from \"react\";\nimport { getComponentFromMap } from '../../../../bridge/helpers/sdk_component_map';\n\n// TwoColumnPage does NOT have getPConnect. So, no need to extend from PConnProps\ninterface TwoColumnPageProps{\n // If any, enter additional props that only exist on this component\n children: Array<any>\n}\n\n\n/*\n * The wrapper handles knowing how to take in just children\n * and mapping to the TwoColumn template.\n */\nexport default function TwoColumnPage(props: TwoColumnPageProps) {\n // Get emitted components from map (so we can get any override that may exist)\n const TwoColumn = getComponentFromMap('TwoColumn');\n\n return (\n <TwoColumn\n {...props}\n />\n );\n}\n"]}
@@ -1,14 +1,8 @@
1
1
  /// <reference types="react" />
2
- import PropTypes from "prop-types";
3
- declare function TwoColumnTab(props: any): JSX.Element;
4
- declare namespace TwoColumnTab {
5
- var propTypes: {
6
- children: PropTypes.Validator<PropTypes.ReactNodeLike[]>;
7
- templateCol: PropTypes.Requireable<string>;
8
- };
9
- var defaultProps: {
10
- templateCol: string;
11
- };
2
+ interface TwoColumnTabProps {
3
+ children: Array<any>;
4
+ templateCol?: string;
12
5
  }
13
- export default TwoColumnTab;
6
+ export default function TwoColumnTab(props: TwoColumnTabProps): JSX.Element;
7
+ export {};
14
8
  //# sourceMappingURL=TwoColumnTab.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"TwoColumnTab.d.ts","sourceRoot":"","sources":["../../../../../src/components/template/TwoColumn/TwoColumnTab/TwoColumnTab.tsx"],"names":[],"mappings":";AACA,OAAO,SAAS,MAAM,YAAY,CAAC;AAYnC,iBAAwB,YAAY,CAAC,KAAK,KAAA,eAgCzC;kBAhCuB,YAAY;;;;;;;;;eAAZ,YAAY"}
1
+ {"version":3,"file":"TwoColumnTab.d.ts","sourceRoot":"","sources":["../../../../../src/components/template/TwoColumn/TwoColumnTab/TwoColumnTab.tsx"],"names":[],"mappings":";AAKA,UAAU,iBAAiB;IAEzB,QAAQ,EAAE,KAAK,CAAC,GAAG,CAAC,CAAC;IACrB,WAAW,CAAC,EAAE,MAAM,CAAA;CACrB;AAWD,MAAM,CAAC,OAAO,UAAU,YAAY,CAAC,KAAK,EAAC,iBAAiB,eAgC3D"}
@@ -1,5 +1,4 @@
1
1
  import React from "react";
2
- import PropTypes from "prop-types";
3
2
  import { Grid } from "@material-ui/core";
4
3
  import { makeStyles } from '@material-ui/core/styles';
5
4
  const useStyles = makeStyles(() => ({
@@ -11,7 +10,7 @@ const useStyles = makeStyles(() => ({
11
10
  }));
12
11
  export default function TwoColumnTab(props) {
13
12
  const classes = useStyles();
14
- const { children, templateCol } = props;
13
+ const { children, templateCol = '1fr 1fr' } = props;
15
14
  if (children.length !== 2) {
16
15
  // eslint-disable-next-line no-console
17
16
  console.error(`TwoColumn template sees more than 2 columns: ${children.length}`);
@@ -30,11 +29,4 @@ export default function TwoColumnTab(props) {
30
29
  React.createElement(Grid, { item: true, xs: 12, md: aSize, className: classes.colStyles }, children[0]),
31
30
  React.createElement(Grid, { item: true, xs: 12, md: bSize, className: classes.colStyles }, children[1])));
32
31
  }
33
- TwoColumnTab.propTypes = {
34
- children: PropTypes.arrayOf(PropTypes.node).isRequired,
35
- templateCol: PropTypes.string,
36
- };
37
- TwoColumnTab.defaultProps = {
38
- templateCol: "1fr 1fr",
39
- };
40
32
  //# sourceMappingURL=TwoColumnTab.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"TwoColumnTab.js","sourceRoot":"","sources":["../../../../../src/components/template/TwoColumn/TwoColumnTab/TwoColumnTab.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,SAAS,MAAM,YAAY,CAAC;AACnC,OAAO,EAAE,IAAI,EAAY,MAAM,mBAAmB,CAAC;AACnD,OAAO,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC;AAEtD,MAAM,SAAS,GAAG,UAAU,CAAC,GAAG,EAAE,CAAC,CAAC;IAClC,SAAS,EAAE;QACT,OAAO,EAAE,MAAM;QACf,GAAG,EAAE,MAAM;QACX,YAAY,EAAE,UAAU;KACzB;CACF,CAAC,CAAC,CAAC;AAEJ,MAAM,CAAC,OAAO,UAAU,YAAY,CAAC,KAAK;IACxC,MAAM,OAAO,GAAG,SAAS,EAAE,CAAC;IAE7B,MAAM,EAAC,QAAQ,EAAE,WAAW,EAAC,GAAG,KAAK,CAAC;IAEtC,IAAI,QAAQ,CAAC,MAAM,KAAK,CAAC,EAAE;QAC1B,sCAAsC;QACtC,OAAO,CAAC,KAAK,CAAE,gDAAgD,QAAQ,CAAC,MAAM,EAAE,CAAC,CAAC;KAClF;IAEA,qBAAqB;IACrB,sFAAsF;IACtF,8BAA8B;IAC9B,IAAI,KAAK,GAAa,CAAC,CAAC;IACxB,IAAI,KAAK,GAAa,CAAC,CAAC;IAExB,MAAM,SAAS,GAAG,WAAW,CAAC,UAAU,CAAC,SAAS,EAAE,EAAE,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC,EAAE,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC;IAC5F,MAAM,SAAS,GAAG,SAAS,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,GAAG,EAAE,EAAE,CAAC,GAAG,GAAG,CAAC,EAAE,CAAC,CAAC,CAAC;IAC3D,MAAM,KAAK,GAAG,EAAE,GAAG,SAAS,CAAC;IAC7B,KAAK,GAAG,CAAC,KAAK,GAAG,SAAS,CAAC,CAAC,CAAC,CAAa,CAAC;IAC3C,KAAK,GAAG,CAAC,KAAK,GAAG,SAAS,CAAC,CAAC,CAAC,CAAa,CAAC;IAE5C,OAAO,CACL,oBAAC,IAAI,IAAC,SAAS,QAAC,OAAO,EAAE,CAAC;QACxB,oBAAC,IAAI,IAAC,IAAI,QAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,KAAK,EAAE,SAAS,EAAE,OAAO,CAAC,SAAS,IACvD,QAAQ,CAAC,CAAC,CAAC,CACP;QACP,oBAAC,IAAI,IAAC,IAAI,QAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,KAAK,EAAE,SAAS,EAAE,OAAO,CAAC,SAAS,IACvD,QAAQ,CAAC,CAAC,CAAC,CACP,CACF,CACR,CAAA;AACF,CAAC;AAED,YAAY,CAAC,SAAS,GAAG;IACvB,QAAQ,EAAE,SAAS,CAAC,OAAO,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC,UAAU;IACtD,WAAW,EAAE,SAAS,CAAC,MAAM;CAC9B,CAAC;AAEF,YAAY,CAAC,YAAY,GAAG;IAC1B,WAAW,EAAE,SAAS;CACvB,CAAC","sourcesContent":["import React from \"react\";\nimport PropTypes from \"prop-types\";\nimport { Grid, GridSize } from \"@material-ui/core\";\nimport { makeStyles } from '@material-ui/core/styles';\n\nconst useStyles = makeStyles(() => ({\n colStyles: {\n display: \"grid\",\n gap: \"1rem\",\n alignContent: \"baseline\",\n },\n}));\n\nexport default function TwoColumnTab(props) {\n const classes = useStyles();\n\n const {children, templateCol} = props;\n\n if (children.length !== 2) {\n // eslint-disable-next-line no-console\n console.error( `TwoColumn template sees more than 2 columns: ${children.length}`);\n }\n\n // Calculate the size\n // Default to assume the 2 columns are evenly split. However, override if templateCol\n // (example value: \"1fr 1fr\")\n let aSize: GridSize = 6;\n let bSize: GridSize = 6;\n\n const colAArray = templateCol.replaceAll(/[a-z]+/g, \"\").split(/\\s/).map(itm => Number(itm));\n const totalCols = colAArray.reduce((v, itm) => itm + v, 0);\n const ratio = 12 / totalCols;\n aSize = (ratio * colAArray[0]) as GridSize;\n bSize = (ratio * colAArray[1]) as GridSize;\n\n return (\n <Grid container spacing={1}>\n <Grid item xs={12} md={aSize} className={classes.colStyles}>\n {children[0]}\n </Grid>\n <Grid item xs={12} md={bSize} className={classes.colStyles}>\n {children[1]}\n </Grid>\n </Grid>\n )\n}\n\nTwoColumnTab.propTypes = {\n children: PropTypes.arrayOf(PropTypes.node).isRequired,\n templateCol: PropTypes.string,\n};\n\nTwoColumnTab.defaultProps = {\n templateCol: \"1fr 1fr\",\n};\n"]}
1
+ {"version":3,"file":"TwoColumnTab.js","sourceRoot":"","sources":["../../../../../src/components/template/TwoColumn/TwoColumnTab/TwoColumnTab.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,IAAI,EAAY,MAAM,mBAAmB,CAAC;AACnD,OAAO,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC;AAUtD,MAAM,SAAS,GAAG,UAAU,CAAC,GAAG,EAAE,CAAC,CAAC;IAClC,SAAS,EAAE;QACT,OAAO,EAAE,MAAM;QACf,GAAG,EAAE,MAAM;QACX,YAAY,EAAE,UAAU;KACzB;CACF,CAAC,CAAC,CAAC;AAEJ,MAAM,CAAC,OAA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E,OAAO,CAAC,SAAS,IACvD,QAAQ,CAAC,CAAC,CAAC,CACP,CACF,CACR,CAAA;AACF,CAAC","sourcesContent":["import React from \"react\";\nimport { Grid, GridSize } from \"@material-ui/core\";\nimport { makeStyles } from '@material-ui/core/styles';\n\n// TwoColumnTab does NOT have getPConnect. So, no need to extend from PConnProps\ninterface TwoColumnTabProps {\n // If any, enter additional props that only exist on this component\n children: Array<any>,\n templateCol?: string\n}\n\n\nconst useStyles = makeStyles(() => ({\n colStyles: {\n display: \"grid\",\n gap: \"1rem\",\n alignContent: \"baseline\",\n },\n}));\n\nexport default function TwoColumnTab(props:TwoColumnTabProps) {\n const classes = useStyles();\n\n const {children, templateCol = '1fr 1fr'} = props;\n\n if (children.length !== 2) {\n // eslint-disable-next-line no-console\n console.error( `TwoColumn template sees more than 2 columns: ${children.length}`);\n }\n\n // Calculate the size\n // Default to assume the 2 columns are evenly split. However, override if templateCol\n // (example value: \"1fr 1fr\")\n let aSize: GridSize = 6;\n let bSize: GridSize = 6;\n\n const colAArray = templateCol.replaceAll(/[a-z]+/g, \"\").split(/\\s/).map(itm => Number(itm));\n const totalCols = colAArray.reduce((v, itm) => itm + v, 0);\n const ratio = 12 / totalCols;\n aSize = (ratio * colAArray[0]) as GridSize;\n bSize = (ratio * colAArray[1]) as GridSize;\n\n return (\n <Grid container spacing={1}>\n <Grid item xs={12} md={aSize} className={classes.colStyles}>\n {children[0]}\n </Grid>\n <Grid item xs={12} md={bSize} className={classes.colStyles}>\n {children[1]}\n </Grid>\n </Grid>\n )\n}\n"]}
@@ -1,4 +1,13 @@
1
1
  /// <reference types="react" />
2
2
  import './WideNarrow.css';
3
- export default function WideNarrow(props: any): JSX.Element;
3
+ interface WideNarrowProps {
4
+ a: any;
5
+ b: any;
6
+ children?: Array<any>;
7
+ title?: string;
8
+ cols?: string;
9
+ icon?: string;
10
+ }
11
+ export default function WideNarrow(props: WideNarrowProps): JSX.Element;
12
+ export {};
4
13
  //# sourceMappingURL=WideNarrow.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"WideNarrow.d.ts","sourceRoot":"","sources":["../../../../../src/components/template/WideNarrow/WideNarrow/WideNarrow.tsx"],"names":[],"mappings":";AAEA,OAAO,kBAAkB,CAAC;AAE1B,MAAM,CAAC,OAAO,UAAU,UAAU,CAAC,KAAK,KAAA,eA8BvC"}
1
+ {"version":3,"file":"WideNarrow.d.ts","sourceRoot":"","sources":["../../../../../src/components/template/WideNarrow/WideNarrow/WideNarrow.tsx"],"names":[],"mappings":";AACA,OAAO,kBAAkB,CAAC;AAG1B,UAAU,eAAe;IAEvB,CAAC,EAAE,GAAG,CAAC;IACP,CAAC,EAAE,GAAG,CAAC;IACP,QAAQ,CAAC,EAAE,KAAK,CAAC,GAAG,CAAC,CAAC;IAEtB,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd,IAAI,CAAC,EAAE,MAAM,CAAA;CACd;AAGD,MAAM,CAAC,OAAO,UAAU,UAAU,CAAC,KAAK,EAAE,eAAe,eA8BxD"}
@@ -2,7 +2,7 @@ import React from "react";
2
2
  import './WideNarrow.css';
3
3
  export default function WideNarrow(props) {
4
4
  // const {a, b /*, cols, icon, title */ } = props;
5
- const { a, b, children } = props;
5
+ const { a, b, children = [] } = props;
6
6
  return (React.createElement(React.Fragment, null,
7
7
  children && children.length === 2 &&
8
8
  React.createElement("div", { className: "psdk-wide-narrow-column" },
@@ -1 +1 @@
1
- {"version":3,"file":"WideNarrow.js","sourceRoot":"","sources":["../../../../../src/components/template/WideNarrow/WideNarrow/WideNarrow.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,kBAAkB,CAAC;AAE1B,MAAM,CAAC,OAAO,UAAU,UAAU,CAAC,KAAK;IACtC,kDAAkD;IAClD,MAAM,EAAE,CAAC,EAAE,CAAC,EAAE,QAAQ,EAAE,GAAG,KAAK,CAAC;IAEjC,OAAO,CACL,oBAAC,KAAK,CAAC,QAAQ;QACd,QAAQ,IAAI,QAAQ,CAAC,MAAM,KAAK,CAAC;YAChC,6BAAK,SAAS,EAAC,yBAAyB;gBACtC,6BAAK,SAAS,EAAC,yBAAyB,IACrC,QAAQ,CAAC,CAAC,CAAC,CACR;gBACN,6BAAK,SAAS,EAAC,2BAA2B,IACvC,QAAQ,CAAC,CAAC,CAAC,CACR,CACF;QAEP,CAAC,IAAI,CAAC;YACL,6BAAK,SAAS,EAAC,yBAAyB;gBACtC,6BAAK,SAAS,EAAC,yBAAyB,IACrC,CAAC,CACE;gBACN,6BAAK,SAAS,EAAC,2BAA2B,IACvC,CAAC,CACE,CACF,CAES,CAElB,CAAA;AAEH,CAAC","sourcesContent":["import React from \"react\";\n\nimport './WideNarrow.css';\n\nexport default function WideNarrow(props) {\n // const {a, b /*, cols, icon, title */ } = props;\n const { a, b, children } = props;\n\n return (\n <React.Fragment>\n {children && children.length === 2 &&\n <div className=\"psdk-wide-narrow-column\">\n <div className=\"psdk-wide-column-column\">\n {children[0]}\n </div>\n <div className=\"psdk-narrow-column-column\">\n {children[1]}\n </div>\n </div>\n }\n {a && b &&\n <div className=\"psdk-wide-narrow-column\">\n <div className=\"psdk-wide-column-column\">\n {a}\n </div>\n <div className=\"psdk-narrow-column-column\">\n {b}\n </div>\n </div>\n }\n </React.Fragment>\n\n )\n\n}\n"]}
1
+ {"version":3,"file":"WideNarrow.js","sourceRoot":"","sources":["../../../../../src/components/template/WideNarrow/WideNarrow/WideNarrow.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,kBAAkB,CAAC;AAiB1B,MAAM,CAAC,OAAO,UAAU,UAAU,CAAC,KAAsB;IACvD,kDAAkD;IAClD,MAAM,EAAE,CAAC,EAAE,CAAC,EAAE,QAAQ,GAAG,EAAE,EAAE,GAAG,KAAK,CAAC;IAEtC,OAAO,CACL,oBAAC,KAAK,CAAC,QAAQ;QACd,QAAQ,IAAI,QAAQ,CAAC,MAAM,KAAK,CAAC;YAChC,6BAAK,SAAS,EAAC,yBAAyB;gBACtC,6BAAK,SAAS,EAAC,yBAAyB,IACrC,QAAQ,CAAC,CAAC,CAAC,CACR;gBACN,6BAAK,SAAS,EAAC,2BAA2B,IACvC,QAAQ,CAAC,CAAC,CAAC,CACR,CACF;QAEP,CAAC,IAAI,CAAC;YACL,6BAAK,SAAS,EAAC,yBAAyB;gBACtC,6BAAK,SAAS,EAAC,yBAAyB,IACrC,CAAC,CACE;gBACN,6BAAK,SAAS,EAAC,2BAA2B,IACvC,CAAC,CACE,CACF,CAES,CAElB,CAAA;AAEH,CAAC","sourcesContent":["import React from \"react\";\nimport './WideNarrow.css';\n\n// WideNarrow does NOT have getPConnect. So, no need to extend from PConnProps\ninterface WideNarrowProps {\n // If any, enter additional props that only exist on this component\n a: any,\n b: any,\n children?: Array<any>,\n // eslint-disable-next-line react/no-unused-prop-types\n title?: string,\n // eslint-disable-next-line react/no-unused-prop-types\n cols?: string,\n // eslint-disable-next-line react/no-unused-prop-types\n icon?: string\n}\n\n\nexport default function WideNarrow(props: WideNarrowProps) {\n // const {a, b /*, cols, icon, title */ } = props;\n const { a, b, children = [] } = props;\n\n return (\n <React.Fragment>\n {children && children.length === 2 &&\n <div className=\"psdk-wide-narrow-column\">\n <div className=\"psdk-wide-column-column\">\n {children[0]}\n </div>\n <div className=\"psdk-narrow-column-column\">\n {children[1]}\n </div>\n </div>\n }\n {a && b &&\n <div className=\"psdk-wide-narrow-column\">\n <div className=\"psdk-wide-column-column\">\n {a}\n </div>\n <div className=\"psdk-narrow-column-column\">\n {b}\n </div>\n </div>\n }\n </React.Fragment>\n\n )\n\n}\n"]}
@@ -1,18 +1,3 @@
1
1
  /// <reference types="react" />
2
- import PropTypes from 'prop-types';
3
- declare function WideNarrowDetails(props: any): JSX.Element;
4
- declare namespace WideNarrowDetails {
5
- var defaultProps: {
6
- label: undefined;
7
- showLabel: boolean;
8
- showHighlightedData: boolean;
9
- };
10
- var propTypes: {
11
- showLabel: PropTypes.Requireable<boolean>;
12
- label: PropTypes.Requireable<string>;
13
- getPConnect: PropTypes.Validator<(...args: any[]) => any>;
14
- showHighlightedData: PropTypes.Requireable<boolean>;
15
- };
16
- }
17
- export default WideNarrowDetails;
2
+ export default function WideNarrowDetails(props: any): JSX.Element;
18
3
  //# sourceMappingURL=WideNarrowDetails.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"WideNarrowDetails.d.ts","sourceRoot":"","sources":["../../../../../src/components/template/WideNarrow/WideNarrowDetails/WideNarrowDetails.tsx"],"names":[],"mappings":";AACA,OAAO,SAAS,MAAM,YAAY,CAAC;AAQnC,iBAAwB,iBAAiB,CAAC,KAAK,KAAA,eAyD9C;kBAzDuB,iBAAiB;;;;;;;;;;;;;eAAjB,iBAAiB"}
1
+ {"version":3,"file":"WideNarrowDetails.d.ts","sourceRoot":"","sources":["../../../../../src/components/template/WideNarrow/WideNarrowDetails/WideNarrowDetails.tsx"],"names":[],"mappings":";AAkBA,MAAM,CAAC,OAAO,UAAU,iBAAiB,CAAC,KAAK,KAAA,eAuE9C"}
@@ -1,11 +1,20 @@
1
1
  import React, { createElement } from 'react';
2
- import PropTypes from 'prop-types';
3
2
  import Grid from '@material-ui/core/Grid';
4
3
  import createPConnectComponent from '../../../../bridge/react_pconnect';
5
- import FieldGroup from '../../../designSystemExtension/FieldGroup';
4
+ import { getComponentFromMap } from '../../../../bridge/helpers/sdk_component_map';
5
+ // import type { PConnProps } from '../../../../types/PConnProps';
6
+ // Can't use PConnProps until PConnect.getChildren() type is ok
7
+ // interface WideNarrowDetailsProps extends PConnProps {
8
+ // // If any, enter additional props that only exist on this component
9
+ // showLabel?: boolean,
10
+ // label?: string,
11
+ // showHighlightedData?: boolean
12
+ // }
6
13
  const COLUMN_WIDTHS = [8, 4];
7
- export default function WideNarrowDetails(props) {
8
- const { label, showLabel, getPConnect, showHighlightedData } = props;
14
+ export default function WideNarrowDetails(props /* : WideNarrowDetailsProps */) {
15
+ // Get emitted components from map (so we can get any override that may exist)
16
+ const FieldGroup = getComponentFromMap('FieldGroup');
17
+ const { label, showLabel = true, getPConnect, showHighlightedData = false } = props;
9
18
  // Get the inherited props from the parent to determine label settings
10
19
  const propsToUse = { label, showLabel, ...getPConnect().getInheritedProps() };
11
20
  // Set display mode prop and re-create the children so this part of the dom tree renders
@@ -14,11 +23,17 @@ export default function WideNarrowDetails(props) {
14
23
  getPConnect().setInheritedProp('readOnly', true);
15
24
  const children = getPConnect()
16
25
  .getChildren()
17
- .map((configObject, index) => createElement(createPConnectComponent(), {
18
- ...configObject,
19
- // eslint-disable-next-line react/no-array-index-key
20
- key: index.toString()
21
- }));
26
+ ?.map((configObject, index) => {
27
+ let theConfigObject = configObject;
28
+ if (!theConfigObject) {
29
+ theConfigObject = {};
30
+ }
31
+ return createElement(createPConnectComponent(), {
32
+ ...theConfigObject,
33
+ // eslint-disable-next-line react/no-array-index-key
34
+ key: index.toString()
35
+ });
36
+ });
22
37
  // Set up highlighted data to pass in return if is set to show, need raw metadata to pass to createComponent
23
38
  let highlightedDataArr = [];
24
39
  if (showHighlightedData) {
@@ -30,22 +45,15 @@ export default function WideNarrowDetails(props) {
30
45
  field.type = 'TextInput';
31
46
  field.config.displayAsStatus = true;
32
47
  }
33
- return getPConnect().createComponent(field);
48
+ return getPConnect().createComponent(field, '', '', {}); // 2nd, 3rd, and 4th args empty string/object/null until typedef marked correctly as optional
34
49
  });
35
50
  }
36
- return (React.createElement(FieldGroup, { name: propsToUse.showLabel ? propsToUse.label : '' },
51
+ let theName = '';
52
+ if (propsToUse?.showLabel && propsToUse.label) {
53
+ theName = propsToUse.label;
54
+ }
55
+ return (React.createElement(FieldGroup, { name: theName },
37
56
  showHighlightedData && highlightedDataArr.length > 0 && (React.createElement(Grid, { container: true, spacing: 1, style: { padding: '0 0 1em' } }, highlightedDataArr.map((child, i) => (React.createElement(Grid, { item: true, xs: COLUMN_WIDTHS[i], key: `hf-${i + 1}` }, child))))),
38
- React.createElement(Grid, { container: true, spacing: 1 }, children.map((child, i) => (React.createElement(Grid, { item: true, xs: COLUMN_WIDTHS[i], key: `r-${i + 1}` }, child))))));
57
+ React.createElement(Grid, { container: true, spacing: 1 }, children?.map((child, i) => (React.createElement(Grid, { item: true, xs: COLUMN_WIDTHS[i], key: `r-${i + 1}` }, child))))));
39
58
  }
40
- WideNarrowDetails.defaultProps = {
41
- label: undefined,
42
- showLabel: true,
43
- showHighlightedData: false
44
- };
45
- WideNarrowDetails.propTypes = {
46
- showLabel: PropTypes.bool,
47
- label: PropTypes.string,
48
- getPConnect: PropTypes.func.isRequired,
49
- showHighlightedData: PropTypes.bool
50
- };
51
59
  //# sourceMappingURL=WideNarrowDetails.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"WideNarrowDetails.js","sourceRoot":"","sources":["../../../../../src/components/template/WideNarrow/WideNarrowDetails/WideNarrowDetails.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAC7C,OAAO,SAAS,MAAM,YAAY,CAAC;AACnC,OAAO,IAAI,MAAM,wBAAwB,CAAC;AAE1C,OAAO,uBAAuB,MAAM,mCAAmC,CAAC;AACxE,OAAO,UAAU,MAAM,2CAA2C,CAAC;AAEnE,MAAM,aAAa,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;AAE7B,MAAM,CAAC,OAAO,UAAU,iBAAiB,CAAC,KAAK;IAC7C,MAAM,EAAE,KAAK,EAAE,SAAS,EAAE,WAAW,EAAE,mBAAmB,EAAE,GAAG,KAAK,CAAC;IAErE,sEAAsE;IACtE,MAAM,UAAU,GAAG,EAAE,KAAK,EAAE,SAAS,EAAE,GAAG,WAAW,EAAE,CAAC,iBAAiB,EAAE,EAAE,CAAC;IAE9E,wFAAwF;IACxF,qDAAqD;IACrD,WAAW,EAAE,CAAC,gBAAgB,CAAC,aAAa,EAAE,aAAa,CAAC,CAAC;IAC7D,WA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EAAE,CAAC,CACpC,oBAAC,IAAI,IAAC,IAAI,QAAC,EAAE,EAAE,aAAa,CAAC,CAAC,CAAa,EAAE,GAAG,EAAE,MAAM,CAAC,GAAG,CAAC,EAAE,IAC5D,KAAK,CACD,CACR,CAAC,CACG,CACR;QACD,oBAAC,IAAI,IAAC,SAAS,QAAC,OAAO,EAAE,CAAC,IACvB,QAAQ,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,CAAC,EAAE,EAAE,CAAC,CAC1B,oBAAC,IAAI,IAAC,IAAI,QAAC,EAAE,EAAE,aAAa,CAAC,CAAC,CAAa,EAAE,GAAG,EAAE,KAAK,CAAC,GAAG,CAAC,EAAE,IAC3D,KAAK,CACD,CACR,CAAC,CACG,CACI,CACd,CAAC;AACJ,CAAC;AAED,iBAAiB,CAAC,YAAY,GAAG;IAC/B,KAAK,EAAE,SAAS;IAChB,SAAS,EAAE,IAAI;IACf,mBAAmB,EAAE,KAAK;CAC3B,CAAC;AAEF,iBAAiB,CAAC,SAAS,GAAG;IAC5B,SAAS,EAAE,SAAS,CAAC,IAAI;IACzB,KAAK,EAAE,SAAS,CAAC,MAAM;IACvB,WAAW,EAAE,SAAS,CAAC,IAAI,CAAC,UAAU;IACtC,mBAAmB,EAAE,SAAS,CAAC,IAAI;CACpC,CAAC","sourcesContent":["import React, { createElement } from 'react';\nimport PropTypes from 'prop-types';\nimport Grid from '@material-ui/core/Grid';\nimport { GridSize } from '@material-ui/core/Grid';\nimport createPConnectComponent from '../../../../bridge/react_pconnect';\nimport FieldGroup from '../../../designSystemExtension/FieldGroup';\n\nconst COLUMN_WIDTHS = [8, 4];\n\nexport default function WideNarrowDetails(props) {\n const { label, showLabel, getPConnect, showHighlightedData } = props;\n\n // Get the inherited props from the parent to determine label settings\n const propsToUse = { label, showLabel, ...getPConnect().getInheritedProps() };\n\n // Set display mode prop and re-create the children so this part of the dom tree renders\n // in a readonly (display) mode instead of a editable\n getPConnect().setInheritedProp('displayMode', 'LABELS_LEFT');\n getPConnect().setInheritedProp('readOnly', true);\n const children = getPConnect()\n .getChildren()\n .map((configObject, index) =>\n createElement(createPConnectComponent(), {\n ...configObject,\n // eslint-disable-next-line react/no-array-index-key\n key: index.toString()\n })\n );\n\n // Set up highlighted data to pass in return if is set to show, need raw metadata to pass to createComponent\n let highlightedDataArr = [];\n if (showHighlightedData) {\n const { highlightedData = [] } = getPConnect().getRawMetadata().config;\n highlightedDataArr = highlightedData.map(field => {\n field.config.displayMode = 'STACKED_LARGE_VAL';\n\n // Mark as status display when using pyStatusWork\n if (field.config.value === '@P .pyStatusWork') {\n field.type = 'TextInput';\n field.config.displayAsStatus = true;\n }\n\n return getPConnect().createComponent(field);\n });\n }\n\n return (\n <FieldGroup name={propsToUse.showLabel ? propsToUse.label : ''}>\n {showHighlightedData && highlightedDataArr.length > 0 && (\n <Grid container spacing={1} style={{ padding: '0 0 1em' }}>\n {highlightedDataArr.map((child, i) => (\n <Grid item xs={COLUMN_WIDTHS[i] as GridSize} key={`hf-${i + 1}`}>\n {child}\n </Grid>\n ))}\n </Grid>\n )}\n <Grid container spacing={1}>\n {children.map((child, i) => (\n <Grid item xs={COLUMN_WIDTHS[i] as GridSize} key={`r-${i + 1}`}>\n {child}\n </Grid>\n ))}\n </Grid>\n </FieldGroup>\n );\n}\n\nWideNarrowDetails.defaultProps = {\n label: undefined,\n showLabel: true,\n showHighlightedData: false\n};\n\nWideNarrowDetails.propTypes = {\n showLabel: PropTypes.bool,\n label: PropTypes.string,\n getPConnect: PropTypes.func.isRequired,\n showHighlightedData: PropTypes.bool\n};\n"]}
1
+ {"version":3,"file":"WideNarrowDetails.js","sourceRoot":"","sources":["../../../../../src/components/template/WideNarrow/WideNarrowDetails/WideNarrowDetails.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAC7C,OAAO,IAAI,MAAM,wBAAwB,CAAC;AAE1C,OAAO,uBAAuB,MAAM,mCAAmC,CAAC;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K,EAAE,CAAC,EAAE,EAAE,CAAC,CAC3B,oBAAC,IAAI,IAAC,IAAI,QAAC,EAAE,EAAE,aAAa,CAAC,CAAC,CAAa,EAAE,GAAG,EAAE,KAAK,CAAC,GAAG,CAAC,EAAE,IAC3D,KAAK,CACD,CACR,CAAC,CACG,CACI,CACd,CAAC;AACJ,CAAC","sourcesContent":["import React, { createElement } from 'react';\nimport Grid from '@material-ui/core/Grid';\nimport { GridSize } from '@material-ui/core/Grid';\nimport createPConnectComponent from '../../../../bridge/react_pconnect';\nimport { getComponentFromMap } from '../../../../bridge/helpers/sdk_component_map';\n\n// import type { PConnProps } from '../../../../types/PConnProps';\n\n// Can't use PConnProps until PConnect.getChildren() type is ok\n// interface WideNarrowDetailsProps extends PConnProps {\n// // If any, enter additional props that only exist on this component\n// showLabel?: boolean,\n// label?: string,\n// showHighlightedData?: boolean\n// }\n\nconst COLUMN_WIDTHS = [8, 4];\n\nexport default function WideNarrowDetails(props /* : WideNarrowDetailsProps */) {\n // Get emitted components from map (so we can get any override that may exist)\n const FieldGroup = getComponentFromMap('FieldGroup');\n\n const { label, showLabel = true, getPConnect, showHighlightedData = false } = props;\n\n // Get the inherited props from the parent to determine label settings\n const propsToUse = { label, showLabel, ...getPConnect().getInheritedProps() };\n\n // Set display mode prop and re-create the children so this part of the dom tree renders\n // in a readonly (display) mode instead of a editable\n getPConnect().setInheritedProp('displayMode', 'LABELS_LEFT');\n getPConnect().setInheritedProp('readOnly', true);\n const children = getPConnect()\n .getChildren()\n ?.map((configObject, index) => {\n let theConfigObject: object = configObject;\n if (!theConfigObject) {\n theConfigObject = {}\n }\n\n return createElement(createPConnectComponent(), {\n ...theConfigObject,\n // eslint-disable-next-line react/no-array-index-key\n key: index.toString()\n });\n });\n\n // Set up highlighted data to pass in return if is set to show, need raw metadata to pass to createComponent\n let highlightedDataArr = [];\n if (showHighlightedData) {\n const { highlightedData = [] } = getPConnect().getRawMetadata().config;\n highlightedDataArr = highlightedData.map(field => {\n field.config.displayMode = 'STACKED_LARGE_VAL';\n\n // Mark as status display when using pyStatusWork\n if (field.config.value === '@P .pyStatusWork') {\n field.type = 'TextInput';\n field.config.displayAsStatus = true;\n }\n\n return getPConnect().createComponent(field,\n '', '', {}); // 2nd, 3rd, and 4th args empty string/object/null until typedef marked correctly as optional\n });\n }\n\n let theName = '';\n if (propsToUse?.showLabel && propsToUse.label ) {\n theName = propsToUse.label;\n }\n\n return (\n <FieldGroup name={theName}>\n {showHighlightedData && highlightedDataArr.length > 0 && (\n <Grid container spacing={1} style={{ padding: '0 0 1em' }}>\n {highlightedDataArr.map((child, i) => (\n <Grid item xs={COLUMN_WIDTHS[i] as GridSize} key={`hf-${i + 1}`}>\n {child}\n </Grid>\n ))}\n </Grid>\n )}\n <Grid container spacing={1}>\n {children?.map((child, i) => (\n <Grid item xs={COLUMN_WIDTHS[i] as GridSize} key={`r-${i + 1}`}>\n {child}\n </Grid>\n ))}\n </Grid>\n </FieldGroup>\n );\n}\n"]}
@@ -1,4 +1,8 @@
1
1
  /// <reference types="react" />
2
2
  import './WideNarrowForm.css';
3
- export default function WideNarrowForm(props: any): JSX.Element;
3
+ interface WideNarrowFormProps {
4
+ children: Array<any>;
5
+ }
6
+ export default function WideNarrowForm(props: WideNarrowFormProps): JSX.Element;
7
+ export {};
4
8
  //# sourceMappingURL=WideNarrowForm.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"WideNarrowForm.d.ts","sourceRoot":"","sources":["../../../../../src/components/template/WideNarrow/WideNarrowForm/WideNarrowForm.tsx"],"names":[],"mappings":";AAEA,OAAO,sBAAsB,CAAC;AAE9B,MAAM,CAAC,OAAO,UAAU,cAAc,CAAC,KAAK,KAAA,eAmB3C"}
1
+ {"version":3,"file":"WideNarrowForm.d.ts","sourceRoot":"","sources":["../../../../../src/components/template/WideNarrow/WideNarrowForm/WideNarrowForm.tsx"],"names":[],"mappings":";AAEA,OAAO,sBAAsB,CAAC;AAG9B,UAAU,mBAAmB;IAE3B,QAAQ,EAAE,KAAK,CAAC,GAAG,CAAC,CAAA;CACrB;AAED,MAAM,CAAC,OAAO,UAAU,cAAc,CAAC,KAAK,EAAE,mBAAmB,eAmBhE"}
@@ -1 +1 @@
1
- {"version":3,"file":"WideNarrowForm.js","sourceRoot":"","sources":["../../../../../src/components/template/WideNarrow/WideNarrowForm/WideNarrowForm.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,sBAAsB,CAAC;AAE9B,MAAM,CAAC,OAAO,UAAU,cAAc,CAAC,KAAK;IAC1C,MAAM,EAAC,QAAQ,EAAC,GAAG,KAAK,CAAC;IAEzB,OAAO,CACL,oBAAC,KAAK,CAAC,QAAQ,QACd,QAAQ,IAAI,QAAQ,CAAC,MAAM,KAAK,CAAC;QAChC,6BAAK,SAAS,EAAC,yBAAyB;YACtC,6BAAK,SAAS,EAAC,yBAAyB,IACrC,QAAQ,CAAC,CAAC,CAAC,CACR;YACN,6BAAK,SAAS,EAAC,2BAA2B,IACvC,QAAQ,CAAC,CAAC,CAAC,CACR,CACF,CAES,CAElB,CAAA;AAEH,CAAC","sourcesContent":["import React from \"react\";\n\nimport './WideNarrowForm.css';\n\nexport default function WideNarrowForm(props) {\n const {children} = props;\n\n return (\n <React.Fragment>\n {children && children.length === 2 &&\n <div className=\"psdk-wide-narrow-column\">\n <div className=\"psdk-wide-column-column\">\n {children[0]}\n </div>\n <div className=\"psdk-narrow-column-column\">\n {children[1]}\n </div>\n </div>\n }\n </React.Fragment>\n\n )\n\n}\n"]}
1
+ {"version":3,"file":"WideNarrowForm.js","sourceRoot":"","sources":["../../../../../src/components/template/WideNarrow/WideNarrowForm/WideNarrowForm.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,sBAAsB,CAAC;AAQ9B,MAAM,CAAC,OAAO,UAAU,cAAc,CAAC,KAA0B;IAC/D,MAAM,EAAC,QAAQ,EAAC,GAAG,KAAK,CAAC;IAEzB,OAAO,CACL,oBAAC,KAAK,CAAC,QAAQ,QACd,QAAQ,IAAI,QAAQ,CAAC,MAAM,KAAK,CAAC;QAChC,6BAAK,SAAS,EAAC,yBAAyB;YACtC,6BAAK,SAAS,EAAC,yBAAyB,IACrC,QAAQ,CAAC,CAAC,CAAC,CACR;YACN,6BAAK,SAAS,EAAC,2BAA2B,IACvC,QAAQ,CAAC,CAAC,CAAC,CACR,CACF,CAES,CAElB,CAAA;AAEH,CAAC","sourcesContent":["import React from \"react\";\n\nimport './WideNarrowForm.css';\n\n// WideNarrowForm does NOT have getPConnect. So, no need to extend from PConnProps\ninterface WideNarrowFormProps {\n // If any, enter additional props that only exist on this component\n children: Array<any>\n}\n\nexport default function WideNarrowForm(props: WideNarrowFormProps) {\n const {children} = props;\n\n return (\n <React.Fragment>\n {children && children.length === 2 &&\n <div className=\"psdk-wide-narrow-column\">\n <div className=\"psdk-wide-column-column\">\n {children[0]}\n </div>\n <div className=\"psdk-narrow-column-column\">\n {children[1]}\n </div>\n </div>\n }\n </React.Fragment>\n\n )\n\n}\n"]}
@@ -1,17 +1,10 @@
1
1
  /// <reference types="react" />
2
- import PropTypes from "prop-types";
3
- declare function WideNarrowPage(props: any): JSX.Element;
4
- declare namespace WideNarrowPage {
5
- var propTypes: {
6
- children: PropTypes.Validator<PropTypes.ReactNodeLike[]>;
7
- title: PropTypes.Validator<string>;
8
- templateCol: PropTypes.Requireable<string>;
9
- icon: PropTypes.Requireable<string>;
10
- };
11
- var defaultProps: {
12
- templateCol: string;
13
- icon: string;
14
- };
2
+ interface WideNarrowPageProps {
3
+ children: Array<any>;
4
+ title: string;
5
+ templateCol?: string;
6
+ icon?: string;
15
7
  }
16
- export default WideNarrowPage;
8
+ export default function WideNarrowPage(props: WideNarrowPageProps): JSX.Element;
9
+ export {};
17
10
  //# sourceMappingURL=WideNarrowPage.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"WideNarrowPage.d.ts","sourceRoot":"","sources":["../../../../../src/components/template/WideNarrow/WideNarrowPage/WideNarrowPage.tsx"],"names":[],"mappings":";AACA,OAAO,SAAS,MAAM,YAAY,CAAC;AASnC,iBAAwB,cAAc,CAAC,KAAK,KAAA,eAe3C;kBAfuB,cAAc;;;;;;;;;;;;eAAd,cAAc"}
1
+ {"version":3,"file":"WideNarrowPage.d.ts","sourceRoot":"","sources":["../../../../../src/components/template/WideNarrow/WideNarrowPage/WideNarrowPage.tsx"],"names":[],"mappings":";AAIA,UAAU,mBAAmB;IAE3B,QAAQ,EAAE,KAAK,CAAC,GAAG,CAAC,CAAC;IACrB,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,IAAI,CAAC,EAAE,MAAM,CAAA;CACd;AAOD,MAAM,CAAC,OAAO,UAAU,cAAc,CAAC,KAAK,EAAE,mBAAmB,eAkBhE"}
@@ -1,25 +1,15 @@
1
1
  import React, { Children } from "react";
2
- import PropTypes from "prop-types";
3
- // import { TwoColumnPage as TwoColumn } from "@pega/cosmos-react-core";
4
- import WideNarrow from '../WideNarrow/WideNarrow';
2
+ import { getComponentFromMap } from '../../../../bridge/helpers/sdk_component_map';
5
3
  /*
6
4
  * The wrapper handles knowing how to take in just children and mapping
7
5
  * to the Cosmos template.
8
6
  */
9
7
  export default function WideNarrowPage(props) {
10
- const { children, title, templateCol, icon } = props;
8
+ // Get emitted components from map (so we can get any override that may exist)
9
+ const WideNarrow = getComponentFromMap('WideNarrow');
10
+ const { children, title, templateCol = '1fr 1fr', icon = '' } = props;
11
11
  const childArray = Children.toArray(children);
12
12
  return (React.createElement("div", null,
13
13
  React.createElement(WideNarrow, { a: childArray[0], b: childArray[1], title: title, cols: templateCol, icon: icon?.replace("pi pi-", "") })));
14
14
  }
15
- WideNarrowPage.propTypes = {
16
- children: PropTypes.arrayOf(PropTypes.node).isRequired,
17
- title: PropTypes.string.isRequired,
18
- templateCol: PropTypes.string,
19
- icon: PropTypes.string
20
- };
21
- WideNarrowPage.defaultProps = {
22
- templateCol: "1fr 1fr",
23
- icon: ""
24
- };
25
15
  //# sourceMappingURL=WideNarrowPage.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"WideNarrowPage.js","sourceRoot":"","sources":["../../../../../src/components/template/WideNarrow/WideNarrowPage/WideNarrowPage.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,SAAS,MAAM,YAAY,CAAC;AAEnC,wEAAwE;AACxE,OAAO,UAAU,MAAM,0BAA0B,CAAC;AAElD;;;GAGG;AACH,MAAM,CAAC,OAAO,UAAU,cAAc,CAAC,KAAK;IAC1C,MAAM,EAAE,QAAQ,EAAE,KAAK,EAAE,WAAW,EAAE,IAAI,EAAE,GAAG,KAAK,CAAC;IACrD,MAAM,UAAU,GAAG,QAAQ,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC;IAE9C,OAAO,CACL;QACA,oBAAC,UAAU,IACP,CAAC,EAAE,UAAU,CAAC,CAAC,CAAC,EAChB,CAAC,EAAE,UAAU,CAAC,CAAC,CAAC,EAChB,KAAK,EAAE,KAAK,EACZ,IAAI,EAAE,WAAW,EACjB,IAAI,EAAE,IAAI,EAAE,OAAO,CAAC,QAAQ,EAAE,EAAE,CAAC,GACjC,CACE,CACP,CAAC;AACJ,CAAC;AAED,cAAc,CAAC,SAAS,GAAG;IACzB,QAAQ,EAAE,SAAS,CAAC,OAAO,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC,UAAU;IACtD,KAAK,EAAE,SAAS,CAAC,MAAM,CAAC,UAAU;IAClC,WAAW,EAAE,SAAS,CAAC,MAAM;IAC7B,IAAI,EAAE,SAAS,CAAC,MAAM;CACvB,CAAC;AAEF,cAAc,CAAC,YAAY,GAAG;IAC5B,WAAW,EAAE,SAAS;IACtB,IAAI,EAAE,EAAE;CACT,CAAC","sourcesContent":["import React, { Children } from \"react\";\nimport PropTypes from \"prop-types\";\n\n// import { TwoColumnPage as TwoColumn } from \"@pega/cosmos-react-core\";\nimport WideNarrow from '../WideNarrow/WideNarrow';\n\n/*\n * The wrapper handles knowing how to take in just children and mapping\n * to the Cosmos template.\n */\nexport default function WideNarrowPage(props) {\n const { children, title, templateCol, icon } = props;\n const childArray = Children.toArray(children);\n\n return (\n <div>\n <WideNarrow\n a={childArray[0]}\n b={childArray[1]}\n title={title}\n cols={templateCol}\n icon={icon?.replace(\"pi pi-\", \"\")}\n />\n </div>\n );\n}\n\nWideNarrowPage.propTypes = {\n children: PropTypes.arrayOf(PropTypes.node).isRequired,\n title: PropTypes.string.isRequired,\n templateCol: PropTypes.string,\n icon: PropTypes.string\n};\n\nWideNarrowPage.defaultProps = {\n templateCol: \"1fr 1fr\",\n icon: \"\"\n};\n"]}
1
+ {"version":3,"file":"WideNarrowPage.js","sourceRoot":"","sources":["../../../../../src/components/template/WideNarrow/WideNarrowPage/WideNarrowPage.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,EAAE,mBAAmB,EAAE,MAAM,8CAA8C,CAAC;AAYnF;;;GAGG;AACH,MAAM,CAAC,OAAO,UAAU,cAAc,CAAC,KAA0B;IAC/D,8EAA8E;IAC9E,MAAM,UAAU,GAAG,mBAAmB,CAAC,YAAY,CAAC,CAAC;IAErD,MAAM,EAAE,QAAQ,EAAE,KAAK,EAAE,WAAW,GAAG,SAAS,EAAE,IAAI,GAAG,EAAE,EAAE,GAAG,KAAK,CAAC;IACtE,MAAM,UAAU,GAAG,QAAQ,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC;IAE9C,OAAO,CACL;QACA,oBAAC,UAAU,IACP,CAAC,EAAE,UAAU,CAAC,CAAC,CAAC,EAChB,CAAC,EAAE,UAAU,CAAC,CAAC,CAAC,EAChB,KAAK,EAAE,KAAK,EACZ,IAAI,EAAE,WAAW,EACjB,IAAI,EAAE,IAAI,EAAE,OAAO,CAAC,QAAQ,EAAE,EAAE,CAAC,GACjC,CACE,CACP,CAAC;AACJ,CAAC","sourcesContent":["import React, { Children } from \"react\";\nimport { getComponentFromMap } from '../../../../bridge/helpers/sdk_component_map';\n\n// WideNarrowPage does NOT have getPConnect. So, no need to extend from PConnProps\ninterface WideNarrowPageProps {\n // If any, enter additional props that only exist on this component\n children: Array<any>,\n title: string,\n templateCol?: string,\n icon?: string\n}\n\n\n/*\n * The wrapper handles knowing how to take in just children and mapping\n * to the Cosmos template.\n */\nexport default function WideNarrowPage(props: WideNarrowPageProps) {\n // Get emitted components from map (so we can get any override that may exist)\n const WideNarrow = getComponentFromMap('WideNarrow');\n\n const { children, title, templateCol = '1fr 1fr', icon = '' } = props;\n const childArray = Children.toArray(children);\n\n return (\n <div>\n <WideNarrow\n a={childArray[0]}\n b={childArray[1]}\n title={title}\n cols={templateCol}\n icon={icon?.replace(\"pi pi-\", \"\")}\n />\n </div>\n );\n}\n"]}
@@ -1,4 +1,20 @@
1
1
  /// <reference types="react" />
2
2
  import './WssNavBar.css';
3
- export default function WssNavBar(props: any): JSX.Element;
3
+ interface WssNavBarProps {
4
+ appInfo: any;
5
+ navLinks: Array<any>;
6
+ operator: {
7
+ currentUserInitials: string;
8
+ };
9
+ navDisplayOptions: {
10
+ alignment: string;
11
+ position: string;
12
+ };
13
+ portalName: string;
14
+ imageSrc: string;
15
+ fullImageSrc: string;
16
+ appName: any;
17
+ }
18
+ export default function WssNavBar(props: WssNavBarProps): JSX.Element;
19
+ export {};
4
20
  //# sourceMappingURL=WssNavBar.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"WssNavBar.d.ts","sourceRoot":"","sources":["../../../../src/components/template/WssNavBar/WssNavBar.tsx"],"names":[],"mappings":";AAWA,OAAO,iBAAiB,CAAC;AAuBzB,MAAM,CAAC,OAAO,UAAU,SAAS,CAAC,KAAK,KAAA,eA+GtC"}
1
+ {"version":3,"file":"WssNavBar.d.ts","sourceRoot":"","sources":["../../../../src/components/template/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C,EAC3B,OAAO,EAAE,mBAAmB;4BAE5B,oBAAC,QAAQ,IAAC,OAAO,EAAE,MAAM;gCACvB,oBAAC,UAAU,iBAAoB,CACtB,CACN,CACH,CACE;gBACT,QAAQ,KAAK,OAAO,IAAI,0CAAG,eAAe,CAAI,CACrC,CACL,CACL,CACP,CAAC;AACJ,CAAC","sourcesContent":["import React, { useState } from 'react';\nimport { makeStyles } from '@material-ui/core/styles';\nimport AppBar from '@material-ui/core/AppBar';\nimport Box from '@material-ui/core/Box';\nimport Toolbar from '@material-ui/core/Toolbar';\nimport Container from '@material-ui/core/Container';\nimport { IconButton, Menu, MenuItem, Typography } from '@material-ui/core';\nimport { Button } from '@material-ui/core';\nimport Avatar from '@material-ui/core/Avatar';\nimport MenuIcon from '@material-ui/icons/Menu';\nimport { logout } from '../../helpers/authManager';\nimport './WssNavBar.css';\n\nconst useStyles = makeStyles(theme => ({\n root: {\n display: 'flex'\n },\n content: {\n flexGrow: 1,\n height: '100vh',\n marginLeft: theme.spacing(2),\n marginRight: theme.spacing(2)\n },\n appListLogo: {\n width: '3.6rem'\n },\n appName: {\n color: 'white',\n marginLeft: theme.spacing(2),\n marginRight: theme.spacing(4),\n fontSize: '1.5rem'\n }\n}));\n\nexport default function WssNavBar(props) {\n const { appInfo, navLinks, operator, navDisplayOptions } = props;\n const { alignment, position } = navDisplayOptions;\n const classes = useStyles();\n\n const [anchorElNav, setAnchorElNav] = useState<null | HTMLElement>(null);\n const [anchorElUser, setAnchorElUser] = useState<null | HTMLElement>(null);\n\n const handleOpenNavMenu = (event: React.MouseEvent<HTMLElement>) => {\n setAnchorElNav(event.currentTarget);\n };\n const handleOpenUserMenu = (event: React.MouseEvent<HTMLElement>) => {\n setAnchorElUser(event.currentTarget);\n };\n\n const handleCloseNavMenu = () => {\n setAnchorElNav(null);\n };\n\n const handleCloseUserMenu = () => {\n setAnchorElUser(null);\n };\n\n const navLinksContent = (\n <Box id=\"nav-links\"\n sx={{ flexGrow: 1, display: { xs: 'none', md: 'flex' } }}\n style={{ justifyContent: alignment }}\n >\n {navLinks.map(link => (\n <Button className='link-style' key={link.text} onClick={link.onClick}>\n {link.text}\n </Button>\n ))}\n </Box>\n );\n\n return (\n <div id='NavBar' className='nav-bar'>\n <AppBar position='static' color='primary'>\n <Container maxWidth='xl'>\n <Toolbar disableGutters style={{ justifyContent: 'space-between' }}>\n <Button id=\"appName\" style={{ textTransform: 'capitalize' }} onClick={appInfo.onClick}>\n <img src={appInfo.imageSrc} className={classes.appListLogo} />\n <span className={classes.appName}>{appInfo.appName}</span>\n </Button>\n <Box sx={{ flexGrow: 1, display: { xs: 'flex', md: 'none' } }}>\n <IconButton\n size='small'\n aria-label='account of current user'\n aria-controls='menu-appbar'\n aria-haspopup='true'\n onClick={handleOpenNavMenu}\n color='inherit'\n >\n <MenuIcon />\n </IconButton>\n <Menu\n id='menu-appbar'\n anchorEl={anchorElNav}\n anchorOrigin={{\n vertical: 'bottom',\n horizontal: 'left'\n }}\n keepMounted\n transformOrigin={{\n vertical: 'top',\n horizontal: 'left'\n }}\n open={Boolean(anchorElNav)}\n onClose={handleCloseNavMenu}\n >\n {navLinks.map(link => (\n <MenuItem key={link.text} onClick={link.onClick}>\n <Typography>{link.text}</Typography>\n </MenuItem>\n ))}\n </Menu>\n </Box>\n\n {position === 'inline' && <>{navLinksContent}</>}\n\n <Box sx={{ flexGrow: 0 }}>\n <IconButton onClick={handleOpenUserMenu}>\n <Avatar>{operator.currentUserInitials}</Avatar>\n </IconButton>\n <Menu\n id='menu-appbar'\n anchorEl={anchorElUser}\n anchorOrigin={{\n vertical: 'top',\n horizontal: 'right'\n }}\n keepMounted\n transformOrigin={{\n vertical: 'top',\n horizontal: 'right'\n }}\n open={Boolean(anchorElUser)}\n onClose={handleCloseUserMenu}\n >\n <MenuItem onClick={logout}>\n <Typography>Logout</Typography>\n </MenuItem>\n </Menu>\n </Box>\n </Toolbar>\n {position === 'below' && <>{navLinksContent}</>}\n </Container>\n </AppBar>\n </div>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,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,CAAC,CACpB,oBAAC,QAAQ,IAAC,GAAG,EAAE,IAAI,CAAC,IAAI,EAAE,OAAO,EAAE,IAAI,CAAC,OAAO;4BAC7C,oBAAC,UAAU,QAAE,IAAI,CAAC,IAAI,CAAc,CAC3B,CACZ,CAAC,CACG,CACH;oBAEL,QAAQ,KAAK,QAAQ,IAAI,0CAAG,eAAe,CAAI;oBAEhD,oBAAC,GAAG,IAAC,EAAE,EAAE,EAAE,QAAQ,EAAE,CAAC,EAAE;wBACtB,oBAAC,UAAU,IAAC,OAAO,EAAE,kBAAkB;4BACrC,oBAAC,MAAM,QAAE,QAAQ,CAAC,mBAAmB,CAAU,CACpC;wBACb,oBAAC,IAAI,IACH,EAAE,EAAC,aAAa,EAChB,QAAQ,EAAE,YAAY,EACtB,YAAY,EAAE;gCACZ,QAAQ,EAAE,KAAK;gCACf,UAAU,EAAE,OAAO;6BACpB,EACD,WAAW,QACX,eAAe,EAAE;gCACf,QAAQ,EAAE,KAAK;gCACf,UAAU,EAAE,OAAO;6BACpB,EACD,IAAI,EAAE,OAAO,CAAC,YAAY,CAAC,EAC3B,OAAO,EAAE,mBAAmB;4BAE5B,oBAAC,QAAQ,IAAC,OAAO,EAAE,MAAM;gCACvB,oBAAC,UAAU,iBAAoB,CACtB,CACN,CACH,CACE;gBACT,QAAQ,KAAK,OAAO,IAAI,0CAAG,eAAe,CAAI,CACrC,CACL,CACL,CACP,CAAC;AACJ,CAAC","sourcesContent":["import React, { useState } from 'react';\nimport { makeStyles } from '@material-ui/core/styles';\nimport AppBar from '@material-ui/core/AppBar';\nimport Box from '@material-ui/core/Box';\nimport Toolbar from '@material-ui/core/Toolbar';\nimport Container from '@material-ui/core/Container';\nimport { IconButton, Menu, MenuItem, Typography } from '@material-ui/core';\nimport { Button } from '@material-ui/core';\nimport Avatar from '@material-ui/core/Avatar';\nimport MenuIcon from '@material-ui/icons/Menu';\nimport { logout } from '../../helpers/authManager';\nimport './WssNavBar.css';\n\n// WssNavBar does NOT have getPConnect. So, no need to extend from PConnProps\n\ninterface WssNavBarProps {\n // If any, enter additional props that only exist on this component\n appInfo: any,\n navLinks: Array<any>\n operator: { currentUserInitials: string },\n navDisplayOptions: { alignment: string, position: string},\n // eslint-disable-next-line react/no-unused-prop-types\n portalName: string,\n imageSrc: string,\n // eslint-disable-next-line react/no-unused-prop-types\n fullImageSrc: string,\n appName: any\n}\n\n\nconst useStyles = makeStyles(theme => ({\n root: {\n display: 'flex'\n },\n content: {\n flexGrow: 1,\n height: '100vh',\n marginLeft: theme.spacing(2),\n marginRight: theme.spacing(2)\n },\n appListLogo: {\n width: '3.6rem'\n },\n appName: {\n color: 'white',\n marginLeft: theme.spacing(2),\n marginRight: theme.spacing(4),\n fontSize: '1.5rem'\n }\n}));\n\nexport default function WssNavBar(props: WssNavBarProps) {\n const { appInfo, navLinks, operator, navDisplayOptions } = props;\n const { alignment, position } = navDisplayOptions;\n const classes = useStyles();\n\n const [anchorElNav, setAnchorElNav] = useState<null | HTMLElement>(null);\n const [anchorElUser, setAnchorElUser] = useState<null | HTMLElement>(null);\n\n const handleOpenNavMenu = (event: React.MouseEvent<HTMLElement>) => {\n setAnchorElNav(event.currentTarget);\n };\n const handleOpenUserMenu = (event: React.MouseEvent<HTMLElement>) => {\n setAnchorElUser(event.currentTarget);\n };\n\n const handleCloseNavMenu = () => {\n setAnchorElNav(null);\n };\n\n const handleCloseUserMenu = () => {\n setAnchorElUser(null);\n };\n\n const navLinksContent = (\n <Box id=\"nav-links\"\n sx={{ flexGrow: 1, display: { xs: 'none', md: 'flex' } }}\n style={{ justifyContent: alignment }}\n >\n {navLinks.map(link => (\n <Button className='link-style' key={link.text} onClick={link.onClick}>\n {link.text}\n </Button>\n ))}\n </Box>\n );\n\n return (\n <div id='NavBar' className='nav-bar'>\n <AppBar position='static' color='primary'>\n <Container maxWidth='xl'>\n <Toolbar disableGutters style={{ justifyContent: 'space-between' }}>\n <Button id=\"appName\" style={{ textTransform: 'capitalize' }} onClick={appInfo.onClick}>\n <img src={appInfo.imageSrc} className={classes.appListLogo} />\n <span className={classes.appName}>{appInfo.appName}</span>\n </Button>\n <Box sx={{ flexGrow: 1, display: { xs: 'flex', md: 'none' } }}>\n <IconButton\n size='small'\n aria-label='account of current user'\n aria-controls='menu-appbar'\n aria-haspopup='true'\n onClick={handleOpenNavMenu}\n color='inherit'\n >\n <MenuIcon />\n </IconButton>\n <Menu\n id='menu-appbar'\n anchorEl={anchorElNav}\n anchorOrigin={{\n vertical: 'bottom',\n horizontal: 'left'\n }}\n keepMounted\n transformOrigin={{\n vertical: 'top',\n horizontal: 'left'\n }}\n open={Boolean(anchorElNav)}\n onClose={handleCloseNavMenu}\n >\n {navLinks.map(link => (\n <MenuItem key={link.text} onClick={link.onClick}>\n <Typography>{link.text}</Typography>\n </MenuItem>\n ))}\n </Menu>\n </Box>\n\n {position === 'inline' && <>{navLinksContent}</>}\n\n <Box sx={{ flexGrow: 0 }}>\n <IconButton onClick={handleOpenUserMenu}>\n <Avatar>{operator.currentUserInitials}</Avatar>\n </IconButton>\n <Menu\n id='menu-appbar'\n anchorEl={anchorElUser}\n anchorOrigin={{\n vertical: 'top',\n horizontal: 'right'\n }}\n keepMounted\n transformOrigin={{\n vertical: 'top',\n horizontal: 'right'\n }}\n open={Boolean(anchorElUser)}\n onClose={handleCloseUserMenu}\n >\n <MenuItem onClick={logout}>\n <Typography>Logout</Typography>\n </MenuItem>\n </Menu>\n </Box>\n </Toolbar>\n {position === 'below' && <>{navLinksContent}</>}\n </Container>\n </AppBar>\n </div>\n );\n}\n"]}
@@ -1,19 +1,10 @@
1
1
  /// <reference types="react" />
2
- import PropTypes from "prop-types";
3
- declare const AppAnnouncement: {
4
- (props: any): JSX.Element;
5
- propTypes: {
6
- header: PropTypes.Requireable<string>;
7
- description: PropTypes.Requireable<string>;
8
- datasource: PropTypes.Requireable<Object>;
9
- whatsnewlink: PropTypes.Requireable<string>;
10
- };
11
- defaultProps: {
12
- header: string;
13
- description: string;
14
- datasource: never[];
15
- whatsnewlink: string;
16
- };
17
- };
18
- export default AppAnnouncement;
2
+ interface AppAnnouncementProps {
3
+ header?: string;
4
+ description?: string;
5
+ datasource?: any;
6
+ whatsnewlink?: string;
7
+ }
8
+ export default function AppAnnouncement(props: AppAnnouncementProps): JSX.Element;
9
+ export {};
19
10
  //# sourceMappingURL=AppAnnouncement.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"AppAnnouncement.d.ts","sourceRoot":"","sources":["../../../../src/components/widget/AppAnnouncement/AppAnnouncement.tsx"],"names":[],"mappings":";AACA,OAAO,SAAS,MAAM,YAAY,CAAC;AAanC,QAAA,MAAM,eAAe;;;;;;;;;;;;;;CAkCpB,CAAC;AAkBF,eAAe,eAAe,CAAC"}
1
+ {"version":3,"file":"AppAnnouncement.d.ts","sourceRoot":"","sources":["../../../../src/components/widget/AppAnnouncement/AppAnnouncement.tsx"],"names":[],"mappings":";AAMA,UAAU,oBAAoB;IAE5B,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,UAAU,CAAC,EAAE,GAAG,CAAC;IACjB,YAAY,CAAC,EAAE,MAAM,CAAA;CACtB;AAYD,MAAM,CAAC,OAAO,UAAU,eAAe,CAAC,KAAK,EAAE,oBAAoB,eAkClE"}