@pega/react-sdk-components 24.2.11 → 25.1.11

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 (665) hide show
  1. package/lib/bridge/Context/StoreContext.d.ts +0 -1
  2. package/lib/bridge/Context/StoreContext.d.ts.map +1 -1
  3. package/lib/bridge/Context/StoreContext.js.map +1 -1
  4. package/lib/bridge/helpers/sdk_component_map.d.ts.map +1 -1
  5. package/lib/bridge/helpers/sdk_component_map.js +0 -6
  6. package/lib/bridge/helpers/sdk_component_map.js.map +1 -1
  7. package/lib/bridge/react_pconnect.d.ts.map +1 -1
  8. package/lib/bridge/react_pconnect.js +11 -14
  9. package/lib/bridge/react_pconnect.js.map +1 -1
  10. package/lib/components/designSystemExtension/AlertBanner/AlertBanner.css +46 -0
  11. package/lib/components/designSystemExtension/AlertBanner/AlertBanner.d.ts +2 -1
  12. package/lib/components/designSystemExtension/AlertBanner/AlertBanner.d.ts.map +1 -1
  13. package/lib/components/designSystemExtension/AlertBanner/AlertBanner.js +18 -16
  14. package/lib/components/designSystemExtension/AlertBanner/AlertBanner.js.map +1 -1
  15. package/lib/components/designSystemExtension/Banner/Banner.css +1 -1
  16. package/lib/components/designSystemExtension/Banner/Banner.d.ts.map +1 -1
  17. package/lib/components/designSystemExtension/Banner/Banner.js +2 -2
  18. package/lib/components/designSystemExtension/Banner/Banner.js.map +1 -1
  19. package/lib/components/designSystemExtension/CaseSummaryFields/CaseSummaryFields.css +0 -1
  20. package/lib/components/designSystemExtension/CaseSummaryFields/CaseSummaryFields.d.ts.map +1 -1
  21. package/lib/components/designSystemExtension/CaseSummaryFields/CaseSummaryFields.js +50 -35
  22. package/lib/components/designSystemExtension/CaseSummaryFields/CaseSummaryFields.js.map +1 -1
  23. package/lib/components/designSystemExtension/DetailsFields/DetailsFields.d.ts.map +1 -1
  24. package/lib/components/designSystemExtension/DetailsFields/DetailsFields.js +6 -8
  25. package/lib/components/designSystemExtension/DetailsFields/DetailsFields.js.map +1 -1
  26. package/lib/components/designSystemExtension/FieldGroup/FieldGroup.d.ts +1 -1
  27. package/lib/components/designSystemExtension/FieldGroup/FieldGroup.d.ts.map +1 -1
  28. package/lib/components/designSystemExtension/FieldGroup/FieldGroup.js +3 -5
  29. package/lib/components/designSystemExtension/FieldGroup/FieldGroup.js.map +1 -1
  30. package/lib/components/designSystemExtension/FieldGroupList/FieldGroupList.js +3 -3
  31. package/lib/components/designSystemExtension/FieldGroupList/FieldGroupList.js.map +1 -1
  32. package/lib/components/designSystemExtension/FieldValueList/FieldValueList.d.ts.map +1 -1
  33. package/lib/components/designSystemExtension/FieldValueList/FieldValueList.js +4 -6
  34. package/lib/components/designSystemExtension/FieldValueList/FieldValueList.js.map +1 -1
  35. package/lib/components/designSystemExtension/Operator/Operator.d.ts +1 -1
  36. package/lib/components/designSystemExtension/Operator/Operator.d.ts.map +1 -1
  37. package/lib/components/designSystemExtension/Operator/Operator.js +12 -9
  38. package/lib/components/designSystemExtension/Operator/Operator.js.map +1 -1
  39. package/lib/components/designSystemExtension/Pulse/Pulse.d.ts +1 -1
  40. package/lib/components/designSystemExtension/Pulse/Pulse.d.ts.map +1 -1
  41. package/lib/components/designSystemExtension/Pulse/Pulse.js.map +1 -1
  42. package/lib/components/designSystemExtension/RichTextEditor/RichTextEditor.d.ts.map +1 -1
  43. package/lib/components/designSystemExtension/RichTextEditor/RichTextEditor.js +32 -4
  44. package/lib/components/designSystemExtension/RichTextEditor/RichTextEditor.js.map +1 -1
  45. package/lib/components/designSystemExtension/WssQuickCreate/WssQuickCreate.css +7 -14
  46. package/lib/components/designSystemExtension/WssQuickCreate/WssQuickCreate.d.ts.map +1 -1
  47. package/lib/components/designSystemExtension/WssQuickCreate/WssQuickCreate.js +12 -2
  48. package/lib/components/designSystemExtension/WssQuickCreate/WssQuickCreate.js.map +1 -1
  49. package/lib/components/field/AutoComplete/AutoComplete.d.ts +1 -1
  50. package/lib/components/field/AutoComplete/AutoComplete.d.ts.map +1 -1
  51. package/lib/components/field/AutoComplete/AutoComplete.js.map +1 -1
  52. package/lib/components/field/CancelAlert/CancelAlert.css +4 -4
  53. package/lib/components/field/CancelAlert/CancelAlert.d.ts +1 -1
  54. package/lib/components/field/CancelAlert/CancelAlert.d.ts.map +1 -1
  55. package/lib/components/field/CancelAlert/CancelAlert.js +3 -3
  56. package/lib/components/field/CancelAlert/CancelAlert.js.map +1 -1
  57. package/lib/components/field/Checkbox/Checkbox.d.ts +9 -1
  58. package/lib/components/field/Checkbox/Checkbox.d.ts.map +1 -1
  59. package/lib/components/field/Checkbox/Checkbox.js +52 -3
  60. package/lib/components/field/Checkbox/Checkbox.js.map +1 -1
  61. package/lib/components/field/Currency/Currency.d.ts +1 -1
  62. package/lib/components/field/Currency/Currency.d.ts.map +1 -1
  63. package/lib/components/field/Currency/Currency.js +2 -2
  64. package/lib/components/field/Currency/Currency.js.map +1 -1
  65. package/lib/components/field/Currency/currency-utils.d.ts.map +1 -1
  66. package/lib/components/field/Currency/currency-utils.js +0 -2
  67. package/lib/components/field/Currency/currency-utils.js.map +1 -1
  68. package/lib/components/field/Date/Date.d.ts +1 -1
  69. package/lib/components/field/Date/Date.d.ts.map +1 -1
  70. package/lib/components/field/Date/Date.js +3 -6
  71. package/lib/components/field/Date/Date.js.map +1 -1
  72. package/lib/components/field/DateTime/DateTime.d.ts +1 -1
  73. package/lib/components/field/DateTime/DateTime.d.ts.map +1 -1
  74. package/lib/components/field/DateTime/DateTime.js +4 -7
  75. package/lib/components/field/DateTime/DateTime.js.map +1 -1
  76. package/lib/components/field/Decimal/Decimal.d.ts +1 -1
  77. package/lib/components/field/Decimal/Decimal.d.ts.map +1 -1
  78. package/lib/components/field/Decimal/Decimal.js +2 -4
  79. package/lib/components/field/Decimal/Decimal.js.map +1 -1
  80. package/lib/components/field/Dropdown/Dropdown.d.ts +1 -1
  81. package/lib/components/field/Dropdown/Dropdown.d.ts.map +1 -1
  82. package/lib/components/field/Dropdown/Dropdown.js +6 -9
  83. package/lib/components/field/Dropdown/Dropdown.js.map +1 -1
  84. package/lib/components/field/Email/Email.d.ts +1 -1
  85. package/lib/components/field/Email/Email.d.ts.map +1 -1
  86. package/lib/components/field/Email/Email.js +6 -7
  87. package/lib/components/field/Email/Email.js.map +1 -1
  88. package/lib/components/field/Group/Group.d.ts +2 -2
  89. package/lib/components/field/Group/Group.d.ts.map +1 -1
  90. package/lib/components/field/Group/Group.js +4 -3
  91. package/lib/components/field/Group/Group.js.map +1 -1
  92. package/lib/components/field/Integer/Integer.d.ts +1 -1
  93. package/lib/components/field/Integer/Integer.d.ts.map +1 -1
  94. package/lib/components/field/Integer/Integer.js +4 -5
  95. package/lib/components/field/Integer/Integer.js.map +1 -1
  96. package/lib/components/field/Location/Location.css +4 -0
  97. package/lib/components/field/Location/Location.d.ts +11 -0
  98. package/lib/components/field/Location/Location.d.ts.map +1 -0
  99. package/lib/components/field/Location/Location.js +158 -0
  100. package/lib/components/field/Location/Location.js.map +1 -0
  101. package/lib/components/field/Location/index.d.ts +2 -0
  102. package/lib/components/field/Location/index.d.ts.map +1 -0
  103. package/lib/components/field/Location/index.js +2 -0
  104. package/lib/components/field/Location/index.js.map +1 -0
  105. package/lib/components/field/Multiselect/Multiselect.js.map +1 -1
  106. package/lib/components/field/Multiselect/utils.d.ts +2 -1
  107. package/lib/components/field/Multiselect/utils.d.ts.map +1 -1
  108. package/lib/components/field/Multiselect/utils.js +1 -1
  109. package/lib/components/field/Multiselect/utils.js.map +1 -1
  110. package/lib/components/field/ObjectReference/ObjectReference.d.ts +16 -0
  111. package/lib/components/field/ObjectReference/ObjectReference.d.ts.map +1 -0
  112. package/lib/components/field/ObjectReference/ObjectReference.js +165 -0
  113. package/lib/components/field/ObjectReference/ObjectReference.js.map +1 -0
  114. package/lib/components/field/ObjectReference/index.d.ts +2 -0
  115. package/lib/components/field/ObjectReference/index.d.ts.map +1 -0
  116. package/lib/components/field/ObjectReference/index.js +2 -0
  117. package/lib/components/field/ObjectReference/index.js.map +1 -0
  118. package/lib/components/field/ObjectReference/utils.d.ts +17 -0
  119. package/lib/components/field/ObjectReference/utils.d.ts.map +1 -0
  120. package/lib/components/field/ObjectReference/utils.js +99 -0
  121. package/lib/components/field/ObjectReference/utils.js.map +1 -0
  122. package/lib/components/field/Percentage/Percentage.d.ts +1 -1
  123. package/lib/components/field/Percentage/Percentage.d.ts.map +1 -1
  124. package/lib/components/field/Percentage/Percentage.js +2 -5
  125. package/lib/components/field/Percentage/Percentage.js.map +1 -1
  126. package/lib/components/field/Phone/Phone.d.ts +1 -1
  127. package/lib/components/field/Phone/Phone.d.ts.map +1 -1
  128. package/lib/components/field/Phone/Phone.js +6 -4
  129. package/lib/components/field/Phone/Phone.js.map +1 -1
  130. package/lib/components/field/RadioButtons/RadioButtons.d.ts +8 -1
  131. package/lib/components/field/RadioButtons/RadioButtons.d.ts.map +1 -1
  132. package/lib/components/field/RadioButtons/RadioButtons.js +12 -1
  133. package/lib/components/field/RadioButtons/RadioButtons.js.map +1 -1
  134. package/lib/components/field/RichText/RichText.css +79 -0
  135. package/lib/components/field/RichText/RichText.d.ts +2 -1
  136. package/lib/components/field/RichText/RichText.d.ts.map +1 -1
  137. package/lib/components/field/RichText/RichText.js +1 -0
  138. package/lib/components/field/RichText/RichText.js.map +1 -1
  139. package/lib/components/field/ScalarList/ScalarList.d.ts +1 -1
  140. package/lib/components/field/ScalarList/ScalarList.d.ts.map +1 -1
  141. package/lib/components/field/ScalarList/ScalarList.js +1 -2
  142. package/lib/components/field/ScalarList/ScalarList.js.map +1 -1
  143. package/lib/components/field/SelectableCard/SelectableCard.d.ts +2 -0
  144. package/lib/components/field/SelectableCard/SelectableCard.d.ts.map +1 -0
  145. package/lib/components/field/SelectableCard/SelectableCard.js +68 -0
  146. package/lib/components/field/SelectableCard/SelectableCard.js.map +1 -0
  147. package/lib/components/field/SelectableCard/index.d.ts +2 -0
  148. package/lib/components/field/SelectableCard/index.d.ts.map +1 -0
  149. package/lib/components/field/SelectableCard/index.js +2 -0
  150. package/lib/components/field/SelectableCard/index.js.map +1 -0
  151. package/lib/components/field/SelectableCard/utils.d.ts +13 -0
  152. package/lib/components/field/SelectableCard/utils.d.ts.map +1 -0
  153. package/lib/components/field/SelectableCard/utils.js +183 -0
  154. package/lib/components/field/SelectableCard/utils.js.map +1 -0
  155. package/lib/components/field/SemanticLink/SemanticLink.d.ts +10 -2
  156. package/lib/components/field/SemanticLink/SemanticLink.d.ts.map +1 -1
  157. package/lib/components/field/SemanticLink/SemanticLink.js +128 -15
  158. package/lib/components/field/SemanticLink/SemanticLink.js.map +1 -1
  159. package/lib/components/field/SemanticLink/utils.js +1 -1
  160. package/lib/components/field/SemanticLink/utils.js.map +1 -1
  161. package/lib/components/field/TextArea/TextArea.d.ts +1 -1
  162. package/lib/components/field/TextArea/TextArea.d.ts.map +1 -1
  163. package/lib/components/field/TextArea/TextArea.js +4 -5
  164. package/lib/components/field/TextArea/TextArea.js.map +1 -1
  165. package/lib/components/field/TextContent/TextContent.d.ts +1 -1
  166. package/lib/components/field/TextContent/TextContent.d.ts.map +1 -1
  167. package/lib/components/field/TextContent/TextContent.js +0 -1
  168. package/lib/components/field/TextContent/TextContent.js.map +1 -1
  169. package/lib/components/field/TextInput/TextInput.d.ts +1 -1
  170. package/lib/components/field/TextInput/TextInput.d.ts.map +1 -1
  171. package/lib/components/field/TextInput/TextInput.js +4 -5
  172. package/lib/components/field/TextInput/TextInput.js.map +1 -1
  173. package/lib/components/field/Time/Time.d.ts +1 -1
  174. package/lib/components/field/Time/Time.d.ts.map +1 -1
  175. package/lib/components/field/Time/Time.js +2 -5
  176. package/lib/components/field/Time/Time.js.map +1 -1
  177. package/lib/components/field/URL/URL.d.ts +1 -1
  178. package/lib/components/field/URL/URL.d.ts.map +1 -1
  179. package/lib/components/field/URL/URL.js +4 -5
  180. package/lib/components/field/URL/URL.js.map +1 -1
  181. package/lib/components/field/UserReference/UserReference.d.ts +1 -2
  182. package/lib/components/field/UserReference/UserReference.d.ts.map +1 -1
  183. package/lib/components/field/UserReference/UserReference.js +1 -2
  184. package/lib/components/field/UserReference/UserReference.js.map +1 -1
  185. package/lib/components/field/UserReference/UserReferenceUtils.d.ts.map +1 -1
  186. package/lib/components/field/UserReference/UserReferenceUtils.js.map +1 -1
  187. package/lib/components/helpers/attachmentShared.d.ts +2 -0
  188. package/lib/components/helpers/attachmentShared.d.ts.map +1 -0
  189. package/lib/components/helpers/attachmentShared.js +6 -0
  190. package/lib/components/helpers/attachmentShared.js.map +1 -0
  191. package/lib/components/helpers/case-utils.js.map +1 -1
  192. package/lib/components/helpers/common-utils.d.ts +1 -1
  193. package/lib/components/helpers/common-utils.d.ts.map +1 -1
  194. package/lib/components/helpers/common-utils.js +1 -2
  195. package/lib/components/helpers/common-utils.js.map +1 -1
  196. package/lib/components/helpers/data_page.d.ts.map +1 -1
  197. package/lib/components/helpers/data_page.js +0 -1
  198. package/lib/components/helpers/data_page.js.map +1 -1
  199. package/lib/components/helpers/date-format-utils.d.ts.map +1 -1
  200. package/lib/components/helpers/event-utils.d.ts.map +1 -1
  201. package/lib/components/helpers/event-utils.js.map +1 -1
  202. package/lib/components/helpers/field-group-utils.d.ts +1 -1
  203. package/lib/components/helpers/field-group-utils.d.ts.map +1 -1
  204. package/lib/components/helpers/field-group-utils.js.map +1 -1
  205. package/lib/components/helpers/formatters/Boolean.js.map +1 -1
  206. package/lib/components/helpers/formatters/Currency.d.ts +1 -0
  207. package/lib/components/helpers/formatters/Currency.d.ts.map +1 -1
  208. package/lib/components/helpers/formatters/Currency.js +8 -4
  209. package/lib/components/helpers/formatters/Currency.js.map +1 -1
  210. package/lib/components/helpers/formatters/CurrencyMap.d.ts.map +1 -1
  211. package/lib/components/helpers/formatters/CurrencyMap.js +0 -1
  212. package/lib/components/helpers/formatters/CurrencyMap.js.map +1 -1
  213. package/lib/components/helpers/formatters/Date.js.map +1 -1
  214. package/lib/components/helpers/formatters/index.d.ts +1 -0
  215. package/lib/components/helpers/formatters/index.d.ts.map +1 -1
  216. package/lib/components/helpers/formatters/index.js.map +1 -1
  217. package/lib/components/helpers/instructions-utils.d.ts.map +1 -1
  218. package/lib/components/helpers/object-utils.d.ts +9 -0
  219. package/lib/components/helpers/object-utils.d.ts.map +1 -0
  220. package/lib/components/helpers/object-utils.js +11 -0
  221. package/lib/components/helpers/object-utils.js.map +1 -0
  222. package/lib/components/helpers/reactContextHelpers.d.ts +0 -1
  223. package/lib/components/helpers/reactContextHelpers.d.ts.map +1 -1
  224. package/lib/components/helpers/simpleTableHelpers.d.ts +15 -1
  225. package/lib/components/helpers/simpleTableHelpers.d.ts.map +1 -1
  226. package/lib/components/helpers/simpleTableHelpers.js +111 -5
  227. package/lib/components/helpers/simpleTableHelpers.js.map +1 -1
  228. package/lib/components/helpers/state-utils.d.ts.map +1 -1
  229. package/lib/components/helpers/state-utils.js.map +1 -1
  230. package/lib/components/helpers/template-utils.js.map +1 -1
  231. package/lib/components/helpers/utils.d.ts +1 -0
  232. package/lib/components/helpers/utils.d.ts.map +1 -1
  233. package/lib/components/helpers/utils.js +7 -1
  234. package/lib/components/helpers/utils.js.map +1 -1
  235. package/lib/components/helpers/versionHelpers.d.ts.map +1 -1
  236. package/lib/components/helpers/versionHelpers.js +0 -1
  237. package/lib/components/helpers/versionHelpers.js.map +1 -1
  238. package/lib/components/infra/ActionButtons/ActionButtons.d.ts.map +1 -1
  239. package/lib/components/infra/ActionButtons/ActionButtons.js +12 -7
  240. package/lib/components/infra/ActionButtons/ActionButtons.js.map +1 -1
  241. package/lib/components/infra/Assignment/Assignment.d.ts +2 -2
  242. package/lib/components/infra/Assignment/Assignment.d.ts.map +1 -1
  243. package/lib/components/infra/Assignment/Assignment.js +38 -30
  244. package/lib/components/infra/Assignment/Assignment.js.map +1 -1
  245. package/lib/components/infra/Assignment/useValidationBanner.d.ts +7 -0
  246. package/lib/components/infra/Assignment/useValidationBanner.d.ts.map +1 -0
  247. package/lib/components/infra/Assignment/useValidationBanner.js +26 -0
  248. package/lib/components/infra/Assignment/useValidationBanner.js.map +1 -0
  249. package/lib/components/infra/AssignmentCard/AssignmentCard.d.ts +2 -2
  250. package/lib/components/infra/AssignmentCard/AssignmentCard.d.ts.map +1 -1
  251. package/lib/components/infra/AssignmentCard/AssignmentCard.js.map +1 -1
  252. package/lib/components/infra/Containers/FlowContainer/FlowContainer.d.ts +1 -2
  253. package/lib/components/infra/Containers/FlowContainer/FlowContainer.d.ts.map +1 -1
  254. package/lib/components/infra/Containers/FlowContainer/FlowContainer.js +20 -85
  255. package/lib/components/infra/Containers/FlowContainer/FlowContainer.js.map +1 -1
  256. package/lib/components/infra/Containers/FlowContainer/helpers.d.ts.map +1 -1
  257. package/lib/components/infra/Containers/FlowContainer/helpers.js.map +1 -1
  258. package/lib/components/infra/Containers/ModalViewContainer/ListViewActionButtons/ListViewActionButtons.d.ts +1 -1
  259. package/lib/components/infra/Containers/ModalViewContainer/ListViewActionButtons/ListViewActionButtons.d.ts.map +1 -1
  260. package/lib/components/infra/Containers/ModalViewContainer/ListViewActionButtons/ListViewActionButtons.js +0 -1
  261. package/lib/components/infra/Containers/ModalViewContainer/ListViewActionButtons/ListViewActionButtons.js.map +1 -1
  262. package/lib/components/infra/Containers/ModalViewContainer/ModalViewContainer.d.ts +5 -1
  263. package/lib/components/infra/Containers/ModalViewContainer/ModalViewContainer.d.ts.map +1 -1
  264. package/lib/components/infra/Containers/ModalViewContainer/ModalViewContainer.js +4 -5
  265. package/lib/components/infra/Containers/ModalViewContainer/ModalViewContainer.js.map +1 -1
  266. package/lib/components/infra/Containers/SimpleView/SimpleView.d.ts +0 -1
  267. package/lib/components/infra/Containers/SimpleView/SimpleView.d.ts.map +1 -1
  268. package/lib/components/infra/Containers/SimpleView/helper.d.ts +0 -1
  269. package/lib/components/infra/Containers/SimpleView/helper.d.ts.map +1 -1
  270. package/lib/components/infra/Containers/SimpleView/helper.js.map +1 -1
  271. package/lib/components/infra/Containers/ViewContainer/ViewContainer.d.ts +5 -1
  272. package/lib/components/infra/Containers/ViewContainer/ViewContainer.d.ts.map +1 -1
  273. package/lib/components/infra/Containers/ViewContainer/ViewContainer.js +7 -11
  274. package/lib/components/infra/Containers/ViewContainer/ViewContainer.js.map +1 -1
  275. package/lib/components/infra/Containers/container-helpers.d.ts +1 -0
  276. package/lib/components/infra/Containers/container-helpers.d.ts.map +1 -1
  277. package/lib/components/infra/Containers/container-helpers.js +46 -1
  278. package/lib/components/infra/Containers/container-helpers.js.map +1 -1
  279. package/lib/components/infra/DashboardFilter/DashboardFilter.d.ts +2 -2
  280. package/lib/components/infra/DashboardFilter/DashboardFilter.d.ts.map +1 -1
  281. package/lib/components/infra/DashboardFilter/DashboardFilter.js +1 -4
  282. package/lib/components/infra/DashboardFilter/DashboardFilter.js.map +1 -1
  283. package/lib/components/infra/DashboardFilter/filterUtils.d.ts.map +1 -1
  284. package/lib/components/infra/DashboardFilter/filterUtils.js +2 -3
  285. package/lib/components/infra/DashboardFilter/filterUtils.js.map +1 -1
  286. package/lib/components/infra/DeferLoad/DeferLoad.d.ts +2 -1
  287. package/lib/components/infra/DeferLoad/DeferLoad.d.ts.map +1 -1
  288. package/lib/components/infra/DeferLoad/DeferLoad.js +26 -13
  289. package/lib/components/infra/DeferLoad/DeferLoad.js.map +1 -1
  290. package/lib/components/infra/ErrorBoundary/ErrorBoundary.d.ts +1 -1
  291. package/lib/components/infra/ErrorBoundary/ErrorBoundary.d.ts.map +1 -1
  292. package/lib/components/infra/ErrorBoundary/ErrorBoundary.js +0 -2
  293. package/lib/components/infra/ErrorBoundary/ErrorBoundary.js.map +1 -1
  294. package/lib/components/infra/MultiStep/MultiStep.css +48 -70
  295. package/lib/components/infra/MultiStep/MultiStep.d.ts +2 -2
  296. package/lib/components/infra/MultiStep/MultiStep.d.ts.map +1 -1
  297. package/lib/components/infra/MultiStep/MultiStep.js +19 -37
  298. package/lib/components/infra/MultiStep/MultiStep.js.map +1 -1
  299. package/lib/components/infra/NavBar/NavBar.css +1 -1
  300. package/lib/components/infra/NavBar/NavBar.d.ts +1 -1
  301. package/lib/components/infra/NavBar/NavBar.d.ts.map +1 -1
  302. package/lib/components/infra/NavBar/NavBar.js +19 -7
  303. package/lib/components/infra/NavBar/NavBar.js.map +1 -1
  304. package/lib/components/infra/Reference/Reference.d.ts +1 -1
  305. package/lib/components/infra/Reference/Reference.d.ts.map +1 -1
  306. package/lib/components/infra/Reference/Reference.js +6 -3
  307. package/lib/components/infra/Reference/Reference.js.map +1 -1
  308. package/lib/components/infra/Region/Region.d.ts +1 -1
  309. package/lib/components/infra/Region/Region.d.ts.map +1 -1
  310. package/lib/components/infra/Region/Region.js.map +1 -1
  311. package/lib/components/infra/RootContainer/RootContainer.d.ts +2 -2
  312. package/lib/components/infra/RootContainer/RootContainer.d.ts.map +1 -1
  313. package/lib/components/infra/RootContainer/RootContainer.js +4 -6
  314. package/lib/components/infra/RootContainer/RootContainer.js.map +1 -1
  315. package/lib/components/infra/Stages/Stages.d.ts +1 -1
  316. package/lib/components/infra/Stages/Stages.d.ts.map +1 -1
  317. package/lib/components/infra/Stages/Stages.js +2 -2
  318. package/lib/components/infra/Stages/Stages.js.map +1 -1
  319. package/lib/components/infra/VerticalTabs/VerticalTabs/VerticalTabs.js +1 -1
  320. package/lib/components/infra/VerticalTabs/VerticalTabs/VerticalTabs.js.map +1 -1
  321. package/lib/components/infra/View/View.d.ts +2 -2
  322. package/lib/components/infra/View/View.d.ts.map +1 -1
  323. package/lib/components/infra/View/View.js +7 -7
  324. package/lib/components/infra/View/View.js.map +1 -1
  325. package/lib/components/template/AdvancedSearch/AdvancedSearch.d.ts +2 -0
  326. package/lib/components/template/AdvancedSearch/AdvancedSearch.d.ts.map +1 -0
  327. package/lib/components/template/AdvancedSearch/AdvancedSearch.js +68 -0
  328. package/lib/components/template/AdvancedSearch/AdvancedSearch.js.map +1 -0
  329. package/lib/components/template/AdvancedSearch/SearchGroup/persistUtils.d.ts +23 -0
  330. package/lib/components/template/AdvancedSearch/SearchGroup/persistUtils.d.ts.map +1 -0
  331. package/lib/components/template/AdvancedSearch/SearchGroup/persistUtils.js +26 -0
  332. package/lib/components/template/AdvancedSearch/SearchGroup/persistUtils.js.map +1 -0
  333. package/lib/components/template/AdvancedSearch/SearchGroups/SearchGroups.d.ts +3 -0
  334. package/lib/components/template/AdvancedSearch/SearchGroups/SearchGroups.d.ts.map +1 -0
  335. package/lib/components/template/AdvancedSearch/SearchGroups/SearchGroups.js +179 -0
  336. package/lib/components/template/AdvancedSearch/SearchGroups/SearchGroups.js.map +1 -0
  337. package/lib/components/template/AdvancedSearch/SearchGroups/hooks.d.ts +10 -0
  338. package/lib/components/template/AdvancedSearch/SearchGroups/hooks.d.ts.map +1 -0
  339. package/lib/components/template/AdvancedSearch/SearchGroups/hooks.js +25 -0
  340. package/lib/components/template/AdvancedSearch/SearchGroups/hooks.js.map +1 -0
  341. package/lib/components/template/AdvancedSearch/SearchGroups/index.d.ts +2 -0
  342. package/lib/components/template/AdvancedSearch/SearchGroups/index.d.ts.map +1 -0
  343. package/lib/components/template/AdvancedSearch/SearchGroups/index.js +2 -0
  344. package/lib/components/template/AdvancedSearch/SearchGroups/index.js.map +1 -0
  345. package/lib/components/template/AdvancedSearch/SearchGroups/utils.d.ts +16 -0
  346. package/lib/components/template/AdvancedSearch/SearchGroups/utils.d.ts.map +1 -0
  347. package/lib/components/template/AdvancedSearch/SearchGroups/utils.js +22 -0
  348. package/lib/components/template/AdvancedSearch/SearchGroups/utils.js.map +1 -0
  349. package/lib/components/template/AdvancedSearch/TemplateContext.d.ts +10 -0
  350. package/lib/components/template/AdvancedSearch/TemplateContext.d.ts.map +1 -0
  351. package/lib/components/template/AdvancedSearch/TemplateContext.js +11 -0
  352. package/lib/components/template/AdvancedSearch/TemplateContext.js.map +1 -0
  353. package/lib/components/template/AdvancedSearch/index.d.ts +2 -0
  354. package/lib/components/template/AdvancedSearch/index.d.ts.map +1 -0
  355. package/lib/components/template/AdvancedSearch/index.js +2 -0
  356. package/lib/components/template/AdvancedSearch/index.js.map +1 -0
  357. package/lib/components/template/AppShell/AppShell.css +1 -5
  358. package/lib/components/template/AppShell/AppShell.d.ts +2 -2
  359. package/lib/components/template/AppShell/AppShell.d.ts.map +1 -1
  360. package/lib/components/template/AppShell/AppShell.js +10 -13
  361. package/lib/components/template/AppShell/AppShell.js.map +1 -1
  362. package/lib/components/template/BannerPage/BannerPage.d.ts +2 -2
  363. package/lib/components/template/BannerPage/BannerPage.d.ts.map +1 -1
  364. package/lib/components/template/BannerPage/BannerPage.js.map +1 -1
  365. package/lib/components/template/CaseSummary/CaseSummary.d.ts +4 -2
  366. package/lib/components/template/CaseSummary/CaseSummary.d.ts.map +1 -1
  367. package/lib/components/template/CaseSummary/CaseSummary.js +22 -39
  368. package/lib/components/template/CaseSummary/CaseSummary.js.map +1 -1
  369. package/lib/components/template/CaseView/CaseView.d.ts +2 -2
  370. package/lib/components/template/CaseView/CaseView.d.ts.map +1 -1
  371. package/lib/components/template/CaseView/CaseView.js +13 -15
  372. package/lib/components/template/CaseView/CaseView.js.map +1 -1
  373. package/lib/components/template/CaseViewActionsMenu/CaseViewActionsMenu.d.ts +1 -1
  374. package/lib/components/template/CaseViewActionsMenu/CaseViewActionsMenu.d.ts.map +1 -1
  375. package/lib/components/template/CaseViewActionsMenu/CaseViewActionsMenu.js +1 -1
  376. package/lib/components/template/CaseViewActionsMenu/CaseViewActionsMenu.js.map +1 -1
  377. package/lib/components/template/Confirmation/Confirmation.d.ts +2 -2
  378. package/lib/components/template/Confirmation/Confirmation.d.ts.map +1 -1
  379. package/lib/components/template/Confirmation/Confirmation.js +0 -1
  380. package/lib/components/template/Confirmation/Confirmation.js.map +1 -1
  381. package/lib/components/template/DataReference/DataReference.d.ts +9 -2
  382. package/lib/components/template/DataReference/DataReference.d.ts.map +1 -1
  383. package/lib/components/template/DataReference/DataReference.js +239 -80
  384. package/lib/components/template/DataReference/DataReference.js.map +1 -1
  385. package/lib/components/template/DataReference/DataReferenceAdvancedSearchContext.d.ts +8 -0
  386. package/lib/components/template/DataReference/DataReferenceAdvancedSearchContext.d.ts.map +1 -0
  387. package/lib/components/template/DataReference/DataReferenceAdvancedSearchContext.js +9 -0
  388. package/lib/components/template/DataReference/DataReferenceAdvancedSearchContext.js.map +1 -0
  389. package/lib/components/template/DataReference/SearchForm.d.ts +3 -0
  390. package/lib/components/template/DataReference/SearchForm.d.ts.map +1 -0
  391. package/lib/components/template/DataReference/SearchForm.js +87 -0
  392. package/lib/components/template/DataReference/SearchForm.js.map +1 -0
  393. package/lib/components/template/DataReference/utils.d.ts +15 -0
  394. package/lib/components/template/DataReference/utils.d.ts.map +1 -0
  395. package/lib/components/template/DataReference/utils.js +75 -0
  396. package/lib/components/template/DataReference/utils.js.map +1 -0
  397. package/lib/components/template/DefaultForm/DefaultForm.d.ts +2 -2
  398. package/lib/components/template/DefaultForm/DefaultForm.d.ts.map +1 -1
  399. package/lib/components/template/DefaultForm/DefaultForm.js.map +1 -1
  400. package/lib/components/template/DefaultForm/utils/index.d.ts.map +1 -1
  401. package/lib/components/template/DefaultForm/utils/index.js +1 -2
  402. package/lib/components/template/DefaultForm/utils/index.js.map +1 -1
  403. package/lib/components/template/DefaultPage/DefaultPage.d.ts +36 -0
  404. package/lib/components/template/DefaultPage/DefaultPage.d.ts.map +1 -0
  405. package/lib/components/template/DefaultPage/DefaultPage.js +28 -0
  406. package/lib/components/template/DefaultPage/DefaultPage.js.map +1 -0
  407. package/lib/components/template/DefaultPage/index.d.ts +2 -0
  408. package/lib/components/template/DefaultPage/index.d.ts.map +1 -0
  409. package/lib/components/template/DefaultPage/index.js +2 -0
  410. package/lib/components/template/DefaultPage/index.js.map +1 -0
  411. package/lib/components/template/Details/Details/Details.d.ts +1 -1
  412. package/lib/components/template/Details/Details/Details.d.ts.map +1 -1
  413. package/lib/components/template/Details/Details/Details.js +2 -3
  414. package/lib/components/template/Details/Details/Details.js.map +1 -1
  415. package/lib/components/template/Details/DetailsSubTabs/DetailsSubTabs.d.ts +2 -2
  416. package/lib/components/template/Details/DetailsSubTabs/DetailsSubTabs.d.ts.map +1 -1
  417. package/lib/components/template/Details/DetailsSubTabs/DetailsSubTabs.js.map +1 -1
  418. package/lib/components/template/Details/DetailsThreeColumn/DetailsThreeColumn.d.ts +1 -1
  419. package/lib/components/template/Details/DetailsThreeColumn/DetailsThreeColumn.d.ts.map +1 -1
  420. package/lib/components/template/Details/DetailsThreeColumn/DetailsThreeColumn.js +2 -3
  421. package/lib/components/template/Details/DetailsThreeColumn/DetailsThreeColumn.js.map +1 -1
  422. package/lib/components/template/Details/DetailsTwoColumn/DetailsTwoColumn.d.ts +1 -1
  423. package/lib/components/template/Details/DetailsTwoColumn/DetailsTwoColumn.d.ts.map +1 -1
  424. package/lib/components/template/Details/DetailsTwoColumn/DetailsTwoColumn.js +2 -3
  425. package/lib/components/template/Details/DetailsTwoColumn/DetailsTwoColumn.js.map +1 -1
  426. package/lib/components/template/Details/DynamicTabs/DynamicTabs.d.ts +1 -1
  427. package/lib/components/template/Details/DynamicTabs/DynamicTabs.d.ts.map +1 -1
  428. package/lib/components/template/Details/DynamicTabs/DynamicTabs.js.map +1 -1
  429. package/lib/components/template/FieldGroupTemplate/FieldGroupTemplate.d.ts +2 -1
  430. package/lib/components/template/FieldGroupTemplate/FieldGroupTemplate.d.ts.map +1 -1
  431. package/lib/components/template/FieldGroupTemplate/FieldGroupTemplate.js +8 -5
  432. package/lib/components/template/FieldGroupTemplate/FieldGroupTemplate.js.map +1 -1
  433. package/lib/components/template/HierarchicalForm/HierarchicalForm.d.ts +4 -0
  434. package/lib/components/template/HierarchicalForm/HierarchicalForm.d.ts.map +1 -0
  435. package/lib/components/template/HierarchicalForm/HierarchicalForm.js +16 -0
  436. package/lib/components/template/HierarchicalForm/HierarchicalForm.js.map +1 -0
  437. package/lib/components/template/HierarchicalForm/hooks.d.ts +15 -0
  438. package/lib/components/template/HierarchicalForm/hooks.d.ts.map +1 -0
  439. package/lib/components/template/HierarchicalForm/hooks.js +163 -0
  440. package/lib/components/template/HierarchicalForm/hooks.js.map +1 -0
  441. package/lib/components/template/HierarchicalForm/index.d.ts +2 -0
  442. package/lib/components/template/HierarchicalForm/index.d.ts.map +1 -0
  443. package/lib/components/template/HierarchicalForm/index.js +2 -0
  444. package/lib/components/template/HierarchicalForm/index.js.map +1 -0
  445. package/lib/components/template/InlineDashboard/InlineDashboard.d.ts +2 -2
  446. package/lib/components/template/InlineDashboard/InlineDashboard.d.ts.map +1 -1
  447. package/lib/components/template/InlineDashboard/InlineDashboard.js +2 -2
  448. package/lib/components/template/InlineDashboard/InlineDashboard.js.map +1 -1
  449. package/lib/components/template/InlineDashboardPage/InlineDashboardPage.d.ts +2 -2
  450. package/lib/components/template/InlineDashboardPage/InlineDashboardPage.d.ts.map +1 -1
  451. package/lib/components/template/InlineDashboardPage/InlineDashboardPage.js.map +1 -1
  452. package/lib/components/template/ListPage/ListPage.d.ts +1 -1
  453. package/lib/components/template/ListPage/ListPage.d.ts.map +1 -1
  454. package/lib/components/template/ListPage/ListPage.js.map +1 -1
  455. package/lib/components/template/ListView/DefaultViewMeta.js.map +1 -1
  456. package/lib/components/template/ListView/ListView.d.ts +5 -1
  457. package/lib/components/template/ListView/ListView.d.ts.map +1 -1
  458. package/lib/components/template/ListView/ListView.js +186 -70
  459. package/lib/components/template/ListView/ListView.js.map +1 -1
  460. package/lib/components/template/ListView/hooks.d.ts.map +1 -1
  461. package/lib/components/template/ListView/hooks.js +2 -5
  462. package/lib/components/template/ListView/hooks.js.map +1 -1
  463. package/lib/components/template/ListView/utils.d.ts.map +1 -1
  464. package/lib/components/template/ListView/utils.js +28 -5
  465. package/lib/components/template/ListView/utils.js.map +1 -1
  466. package/lib/components/template/MultiReferenceReadOnly/MultiReferenceReadOnly.d.ts +4 -2
  467. package/lib/components/template/MultiReferenceReadOnly/MultiReferenceReadOnly.d.ts.map +1 -1
  468. package/lib/components/template/MultiReferenceReadOnly/MultiReferenceReadOnly.js +13 -1
  469. package/lib/components/template/MultiReferenceReadOnly/MultiReferenceReadOnly.js.map +1 -1
  470. package/lib/components/template/NarrowWide/NarrowWide/NarrowWide.d.ts +2 -2
  471. package/lib/components/template/NarrowWide/NarrowWide/NarrowWide.d.ts.map +1 -1
  472. package/lib/components/template/NarrowWide/NarrowWide/NarrowWide.js.map +1 -1
  473. package/lib/components/template/NarrowWide/NarrowWideDetails/NarrowWideDetails.d.ts +1 -1
  474. package/lib/components/template/NarrowWide/NarrowWideDetails/NarrowWideDetails.d.ts.map +1 -1
  475. package/lib/components/template/NarrowWide/NarrowWideDetails/NarrowWideDetails.js +2 -3
  476. package/lib/components/template/NarrowWide/NarrowWideDetails/NarrowWideDetails.js.map +1 -1
  477. package/lib/components/template/NarrowWide/NarrowWideForm/NarrowWideForm.d.ts +2 -2
  478. package/lib/components/template/NarrowWide/NarrowWideForm/NarrowWideForm.d.ts.map +1 -1
  479. package/lib/components/template/NarrowWide/NarrowWideForm/NarrowWideForm.js.map +1 -1
  480. package/lib/components/template/NarrowWide/NarrowWidePage/NarrowWidePage.d.ts +2 -2
  481. package/lib/components/template/NarrowWide/NarrowWidePage/NarrowWidePage.d.ts.map +1 -1
  482. package/lib/components/template/NarrowWide/NarrowWidePage/NarrowWidePage.js.map +1 -1
  483. package/lib/components/template/ObjectPage/index.d.ts +2 -0
  484. package/lib/components/template/ObjectPage/index.d.ts.map +1 -0
  485. package/lib/components/template/ObjectPage/index.js +2 -0
  486. package/lib/components/template/ObjectPage/index.js.map +1 -0
  487. package/lib/components/template/OneColumn/OneColumn/OneColumn.d.ts +2 -2
  488. package/lib/components/template/OneColumn/OneColumn/OneColumn.d.ts.map +1 -1
  489. package/lib/components/template/OneColumn/OneColumn/OneColumn.js +2 -2
  490. package/lib/components/template/OneColumn/OneColumn/OneColumn.js.map +1 -1
  491. package/lib/components/template/OneColumn/OneColumnPage/OneColumnPage.d.ts +1 -1
  492. package/lib/components/template/OneColumn/OneColumnPage/OneColumnPage.d.ts.map +1 -1
  493. package/lib/components/template/OneColumn/OneColumnPage/OneColumnPage.js.map +1 -1
  494. package/lib/components/template/OneColumn/OneColumnTab/OneColumnTab.d.ts +2 -2
  495. package/lib/components/template/OneColumn/OneColumnTab/OneColumnTab.d.ts.map +1 -1
  496. package/lib/components/template/OneColumn/OneColumnTab/OneColumnTab.js.map +1 -1
  497. package/lib/components/template/PromotedFilters/PromotedFilters.d.ts +1 -1
  498. package/lib/components/template/PromotedFilters/PromotedFilters.d.ts.map +1 -1
  499. package/lib/components/template/PromotedFilters/PromotedFilters.js +0 -1
  500. package/lib/components/template/PromotedFilters/PromotedFilters.js.map +1 -1
  501. package/lib/components/template/SelfServiceCaseView/SelfServiceCaseView.d.ts +2 -0
  502. package/lib/components/template/SelfServiceCaseView/SelfServiceCaseView.d.ts.map +1 -0
  503. package/lib/components/template/SelfServiceCaseView/SelfServiceCaseView.js +84 -0
  504. package/lib/components/template/SelfServiceCaseView/SelfServiceCaseView.js.map +1 -0
  505. package/lib/components/template/SelfServiceCaseView/index.d.ts +2 -0
  506. package/lib/components/template/SelfServiceCaseView/index.d.ts.map +1 -0
  507. package/lib/components/template/SelfServiceCaseView/index.js +2 -0
  508. package/lib/components/template/SelfServiceCaseView/index.js.map +1 -0
  509. package/lib/components/template/SimpleTable/SimpleTable/SimpleTable.d.ts +1 -1
  510. package/lib/components/template/SimpleTable/SimpleTable/SimpleTable.d.ts.map +1 -1
  511. package/lib/components/template/SimpleTable/SimpleTable/SimpleTable.js +1 -2
  512. package/lib/components/template/SimpleTable/SimpleTable/SimpleTable.js.map +1 -1
  513. package/lib/components/template/SimpleTable/SimpleTableManual/SimpleTableManual.d.ts +2 -2
  514. package/lib/components/template/SimpleTable/SimpleTableManual/SimpleTableManual.d.ts.map +1 -1
  515. package/lib/components/template/SimpleTable/SimpleTableManual/SimpleTableManual.js +37 -33
  516. package/lib/components/template/SimpleTable/SimpleTableManual/SimpleTableManual.js.map +1 -1
  517. package/lib/components/template/SimpleTable/SimpleTableSelect/SimpleTableSelect.d.ts +1 -1
  518. package/lib/components/template/SimpleTable/SimpleTableSelect/SimpleTableSelect.d.ts.map +1 -1
  519. package/lib/components/template/SimpleTable/SimpleTableSelect/SimpleTableSelect.js.map +1 -1
  520. package/lib/components/template/SimpleTable/SimpleTableSelectReadonly/SimpleTableSelectReadonly.d.ts +17 -0
  521. package/lib/components/template/SimpleTable/SimpleTableSelectReadonly/SimpleTableSelectReadonly.d.ts.map +1 -0
  522. package/lib/components/template/SimpleTable/SimpleTableSelectReadonly/SimpleTableSelectReadonly.js +94 -0
  523. package/lib/components/template/SimpleTable/SimpleTableSelectReadonly/SimpleTableSelectReadonly.js.map +1 -0
  524. package/lib/components/template/SimpleTable/SimpleTableSelectReadonly/index.d.ts +2 -0
  525. package/lib/components/template/SimpleTable/SimpleTableSelectReadonly/index.d.ts.map +1 -0
  526. package/lib/components/template/SimpleTable/SimpleTableSelectReadonly/index.js +2 -0
  527. package/lib/components/template/SimpleTable/SimpleTableSelectReadonly/index.js.map +1 -0
  528. package/lib/components/template/SingleReferenceReadOnly/SingleReferenceReadOnly.d.ts +1 -1
  529. package/lib/components/template/SingleReferenceReadOnly/SingleReferenceReadOnly.d.ts.map +1 -1
  530. package/lib/components/template/SingleReferenceReadOnly/SingleReferenceReadOnly.js +3 -2
  531. package/lib/components/template/SingleReferenceReadOnly/SingleReferenceReadOnly.js.map +1 -1
  532. package/lib/components/template/SubTabs/SubTabs.d.ts +2 -2
  533. package/lib/components/template/SubTabs/SubTabs.d.ts.map +1 -1
  534. package/lib/components/template/SubTabs/SubTabs.js.map +1 -1
  535. package/lib/components/template/SubTabs/tabUtils.d.ts +10 -0
  536. package/lib/components/template/SubTabs/tabUtils.d.ts.map +1 -1
  537. package/lib/components/template/SubTabs/tabUtils.js +102 -1
  538. package/lib/components/template/SubTabs/tabUtils.js.map +1 -1
  539. package/lib/components/template/TwoColumn/TwoColumn/TwoColumn.d.ts +2 -2
  540. package/lib/components/template/TwoColumn/TwoColumn/TwoColumn.d.ts.map +1 -1
  541. package/lib/components/template/TwoColumn/TwoColumn/TwoColumn.js +2 -3
  542. package/lib/components/template/TwoColumn/TwoColumn/TwoColumn.js.map +1 -1
  543. package/lib/components/template/TwoColumn/TwoColumnPage/TwoColumnPage.d.ts +1 -1
  544. package/lib/components/template/TwoColumn/TwoColumnPage/TwoColumnPage.d.ts.map +1 -1
  545. package/lib/components/template/TwoColumn/TwoColumnPage/TwoColumnPage.js.map +1 -1
  546. package/lib/components/template/TwoColumn/TwoColumnTab/TwoColumnTab.d.ts +2 -2
  547. package/lib/components/template/TwoColumn/TwoColumnTab/TwoColumnTab.d.ts.map +1 -1
  548. package/lib/components/template/TwoColumn/TwoColumnTab/TwoColumnTab.js +2 -3
  549. package/lib/components/template/TwoColumn/TwoColumnTab/TwoColumnTab.js.map +1 -1
  550. package/lib/components/template/WideNarrow/WideNarrow/WideNarrow.d.ts +2 -2
  551. package/lib/components/template/WideNarrow/WideNarrow/WideNarrow.d.ts.map +1 -1
  552. package/lib/components/template/WideNarrow/WideNarrow/WideNarrow.js.map +1 -1
  553. package/lib/components/template/WideNarrow/WideNarrowDetails/WideNarrowDetails.d.ts +1 -1
  554. package/lib/components/template/WideNarrow/WideNarrowDetails/WideNarrowDetails.d.ts.map +1 -1
  555. package/lib/components/template/WideNarrow/WideNarrowDetails/WideNarrowDetails.js +2 -3
  556. package/lib/components/template/WideNarrow/WideNarrowDetails/WideNarrowDetails.js.map +1 -1
  557. package/lib/components/template/WideNarrow/WideNarrowForm/WideNarrowForm.d.ts +2 -2
  558. package/lib/components/template/WideNarrow/WideNarrowForm/WideNarrowForm.d.ts.map +1 -1
  559. package/lib/components/template/WideNarrow/WideNarrowForm/WideNarrowForm.js.map +1 -1
  560. package/lib/components/template/WideNarrow/WideNarrowPage/WideNarrowPage.d.ts +2 -2
  561. package/lib/components/template/WideNarrow/WideNarrowPage/WideNarrowPage.d.ts.map +1 -1
  562. package/lib/components/template/WideNarrow/WideNarrowPage/WideNarrowPage.js.map +1 -1
  563. package/lib/components/template/WssNavBar/WssNavBar.css +1 -1
  564. package/lib/components/template/WssNavBar/WssNavBar.d.ts +1 -1
  565. package/lib/components/template/WssNavBar/WssNavBar.d.ts.map +1 -1
  566. package/lib/components/template/WssNavBar/WssNavBar.js +4 -4
  567. package/lib/components/template/WssNavBar/WssNavBar.js.map +1 -1
  568. package/lib/components/template/utils.d.ts +7 -0
  569. package/lib/components/template/utils.d.ts.map +1 -0
  570. package/lib/components/template/utils.js +52 -0
  571. package/lib/components/template/utils.js.map +1 -0
  572. package/lib/components/widget/AppAnnouncement/AppAnnouncement.d.ts +1 -1
  573. package/lib/components/widget/AppAnnouncement/AppAnnouncement.d.ts.map +1 -1
  574. package/lib/components/widget/AppAnnouncement/AppAnnouncement.js.map +1 -1
  575. package/lib/components/widget/Attachment/Attachment.css +6 -8
  576. package/lib/components/widget/Attachment/Attachment.d.ts +4 -2
  577. package/lib/components/widget/Attachment/Attachment.d.ts.map +1 -1
  578. package/lib/components/widget/Attachment/Attachment.js +255 -202
  579. package/lib/components/widget/Attachment/Attachment.js.map +1 -1
  580. package/lib/components/widget/Attachment/Attachment.types.d.ts +90 -0
  581. package/lib/components/widget/Attachment/Attachment.types.d.ts.map +1 -0
  582. package/lib/components/widget/Attachment/Attachment.types.js +2 -0
  583. package/lib/components/widget/Attachment/Attachment.types.js.map +1 -0
  584. package/lib/components/widget/Attachment/AttachmentUtils.d.ts +25 -0
  585. package/lib/components/widget/Attachment/AttachmentUtils.d.ts.map +1 -0
  586. package/lib/components/widget/Attachment/AttachmentUtils.js +255 -0
  587. package/lib/components/widget/Attachment/AttachmentUtils.js.map +1 -0
  588. package/lib/components/widget/CaseHistory/CaseHistory.d.ts +1 -1
  589. package/lib/components/widget/CaseHistory/CaseHistory.d.ts.map +1 -1
  590. package/lib/components/widget/CaseHistory/CaseHistory.js +2 -2
  591. package/lib/components/widget/CaseHistory/CaseHistory.js.map +1 -1
  592. package/lib/components/widget/FileUtility/ActionButtonsForFileUtil/ActionButtonsForFileUtil.css +0 -14
  593. package/lib/components/widget/FileUtility/ActionButtonsForFileUtil/ActionButtonsForFileUtil.d.ts +1 -1
  594. package/lib/components/widget/FileUtility/ActionButtonsForFileUtil/ActionButtonsForFileUtil.d.ts.map +1 -1
  595. package/lib/components/widget/FileUtility/ActionButtonsForFileUtil/ActionButtonsForFileUtil.js +1 -1
  596. package/lib/components/widget/FileUtility/ActionButtonsForFileUtil/ActionButtonsForFileUtil.js.map +1 -1
  597. package/lib/components/widget/FileUtility/FileUtility/FileUtility.css +7 -6
  598. package/lib/components/widget/FileUtility/FileUtility/FileUtility.d.ts +2 -1
  599. package/lib/components/widget/FileUtility/FileUtility/FileUtility.d.ts.map +1 -1
  600. package/lib/components/widget/FileUtility/FileUtility/FileUtility.js +29 -17
  601. package/lib/components/widget/FileUtility/FileUtility/FileUtility.js.map +1 -1
  602. package/lib/components/widget/Followers/Followers.d.ts +2 -2
  603. package/lib/components/widget/Followers/Followers.d.ts.map +1 -1
  604. package/lib/components/widget/Followers/Followers.js +0 -2
  605. package/lib/components/widget/Followers/Followers.js.map +1 -1
  606. package/lib/components/widget/QuickCreate/QuickCreate.d.ts +1 -1
  607. package/lib/components/widget/QuickCreate/QuickCreate.d.ts.map +1 -1
  608. package/lib/components/widget/QuickCreate/QuickCreate.js +0 -1
  609. package/lib/components/widget/QuickCreate/QuickCreate.js.map +1 -1
  610. package/lib/components/widget/SummaryItem/SummaryItem.css +9 -11
  611. package/lib/components/widget/SummaryItem/SummaryItem.d.ts +1 -1
  612. package/lib/components/widget/SummaryItem/SummaryItem.d.ts.map +1 -1
  613. package/lib/components/widget/SummaryItem/SummaryItem.js +1 -1
  614. package/lib/components/widget/SummaryItem/SummaryItem.js.map +1 -1
  615. package/lib/components/widget/SummaryList/SummaryList.d.ts +1 -1
  616. package/lib/components/widget/SummaryList/SummaryList.d.ts.map +1 -1
  617. package/lib/components/widget/SummaryList/SummaryList.js.map +1 -1
  618. package/lib/components/widget/ToDo/ToDo.css +1 -13
  619. package/lib/components/widget/ToDo/ToDo.d.ts +1 -1
  620. package/lib/components/widget/ToDo/ToDo.d.ts.map +1 -1
  621. package/lib/components/widget/ToDo/ToDo.js +21 -16
  622. package/lib/components/widget/ToDo/ToDo.js.map +1 -1
  623. package/lib/hooks/useAfterInitialEffect.d.ts +1 -1
  624. package/lib/hooks/useAfterInitialEffect.d.ts.map +1 -1
  625. package/lib/hooks/useAfterInitialEffect.js.map +1 -1
  626. package/lib/hooks/useConsolidatedRef.d.ts +1 -1
  627. package/lib/hooks/useConsolidatedRef.d.ts.map +1 -1
  628. package/lib/hooks/useConsolidatedRef.js.map +1 -1
  629. package/lib/hooks/useFocusFirstField.d.ts +3 -3
  630. package/lib/hooks/useFocusFirstField.d.ts.map +1 -1
  631. package/lib/hooks/useFocusFirstField.js +19 -12
  632. package/lib/hooks/useFocusFirstField.js.map +1 -1
  633. package/lib/hooks/useGetTabsCount.d.ts +10 -0
  634. package/lib/hooks/useGetTabsCount.d.ts.map +1 -0
  635. package/lib/hooks/useGetTabsCount.js +165 -0
  636. package/lib/hooks/useGetTabsCount.js.map +1 -0
  637. package/lib/hooks/useIsMount.d.ts +2 -0
  638. package/lib/hooks/useIsMount.d.ts.map +1 -0
  639. package/lib/hooks/useIsMount.js +9 -0
  640. package/lib/hooks/useIsMount.js.map +1 -0
  641. package/lib/hooks/useScrolltoTop.d.ts.map +1 -1
  642. package/lib/mediaco/ToDo/ToDo.css +81 -0
  643. package/lib/mediaco/ToDo/ToDo.d.ts +16 -0
  644. package/lib/mediaco/ToDo/ToDo.d.ts.map +1 -0
  645. package/lib/mediaco/ToDo/ToDo.js +187 -0
  646. package/lib/mediaco/ToDo/ToDo.js.map +1 -0
  647. package/lib/mediaco/ToDo/index.d.ts +2 -0
  648. package/lib/mediaco/ToDo/index.d.ts.map +1 -0
  649. package/lib/mediaco/ToDo/index.js +2 -0
  650. package/lib/mediaco/ToDo/index.js.map +1 -0
  651. package/lib/samples/Embedded/styles.css +26 -0
  652. package/lib/sdk-pega-component-map.d.ts +125 -103
  653. package/lib/sdk-pega-component-map.d.ts.map +1 -1
  654. package/lib/sdk-pega-component-map.js +26 -3
  655. package/lib/sdk-pega-component-map.js.map +1 -1
  656. package/lib/theme.d.ts +30 -1
  657. package/lib/theme.d.ts.map +1 -1
  658. package/lib/theme.js +209 -2
  659. package/lib/theme.js.map +1 -1
  660. package/lib/types/PConnProps.d.ts +1 -1
  661. package/package.json +32 -1
  662. package/lib/components/helpers/attachmentHelpers.d.ts +0 -13
  663. package/lib/components/helpers/attachmentHelpers.d.ts.map +0 -1
  664. package/lib/components/helpers/attachmentHelpers.js +0 -72
  665. package/lib/components/helpers/attachmentHelpers.js.map +0 -1
@@ -3,11 +3,10 @@ import { useState, useEffect, createElement } from 'react';
3
3
  import { Box, Card, CircularProgress } from '@mui/material';
4
4
  import makeStyles from '@mui/styles/makeStyles';
5
5
  import createPConnectComponent from '../../../bridge/react_pconnect';
6
- //
7
- // WARNING: It is not expected that this file should be modified. It is part of infrastructure code that works with
8
- // Redux and creation/update of Redux containers and PConnect. Modifying this code could have undesireable results and
9
- // is totally at your own risk.
10
- //
6
+ /**
7
+ * WARNING: This file is part of the infrastructure component responsible for working with Redux and managing the creation and update of Redux containers and PConnect.
8
+ * You may override Material components within this component if needed, but do not modify any container-related logic. Changing this logic can lead to unexpected behavior.
9
+ */
11
10
  const useStyles = makeStyles(theme => ({
12
11
  root: {
13
12
  paddingRight: theme.spacing(1),
@@ -21,7 +20,7 @@ const useStyles = makeStyles(theme => ({
21
20
  }
22
21
  }));
23
22
  export default function DeferLoad(props) {
24
- const { getPConnect, name, deferLoadId, isTab, lastUpdateCaseTime } = props;
23
+ const { getPConnect, name, deferLoadId, isTab, lastUpdateCaseTime, template } = props;
25
24
  const [content, setContent] = useState(null);
26
25
  const [isLoading, setLoading] = useState(true);
27
26
  const [currentLoadedAssignment, setCurrentLoadedAssignment] = useState('');
@@ -48,12 +47,12 @@ export default function DeferLoad(props) {
48
47
  const isContainerPreview = /preview_[0-9]*/g.test(pConnect.getContextName());
49
48
  const getViewOptions = () => ({
50
49
  viewContext: resourceType,
51
- pageClass: loadViewCaseID ? '' : pConnect.getDataObject('').pyPortal.classID,
50
+ pageClass: loadViewCaseID ? '' : pConnect.getDataObject('').pyPortal.classID, // 2nd arg empty string until typedef allows optional
52
51
  container: isContainerPreview ? 'preview' : undefined,
53
52
  containerName: isContainerPreview ? 'preview' : undefined,
54
53
  updateData: isContainerPreview
55
54
  });
56
- const onResponse = data => {
55
+ const onResponse = (data, isEditable = false) => {
57
56
  setLoading(false);
58
57
  if (deferLoadId) {
59
58
  PCore.getDeferLoadManager().start(name, getPConnect().getCaseInfo().getKey(), getPConnect().getPageReference().replace('caseInfo.content', ''), getPConnect().getContextName(), deferLoadId);
@@ -63,11 +62,16 @@ export default function DeferLoad(props) {
63
62
  meta: data,
64
63
  options: {
65
64
  context: pConnect.getContextName(),
66
- pageReference: pConnect.getPageReference()
65
+ pageReference: pConnect.getPageReference(),
66
+ target: pConnect.getTarget(),
67
+ hasForm: true,
68
+ viewName: pConnect.viewName
67
69
  }
68
70
  };
69
71
  const configObject = PCore.createPConnect(config);
70
- configObject.getPConnect().setInheritedProp('displayMode', 'DISPLAY_ONLY');
72
+ if (!isEditable) {
73
+ configObject.getPConnect().setInheritedProp('displayMode', 'DISPLAY_ONLY');
74
+ }
71
75
  setContent(createElement(createPConnectComponent(), configObject));
72
76
  if (deferLoadId) {
73
77
  PCore.getDeferLoadManager().stop(deferLoadId, getPConnect().getContextName());
@@ -84,7 +88,7 @@ export default function DeferLoad(props) {
84
88
  .getActionsApi()
85
89
  .showData(name, dataContext, dataContextParameters, {
86
90
  skipSemanticUrl: true,
87
- // @ts-ignore
91
+ // @ts-expect-error
88
92
  isDeferLoaded: true
89
93
  })
90
94
  .then(data => {
@@ -92,7 +96,6 @@ export default function DeferLoad(props) {
92
96
  });
93
97
  }
94
98
  else {
95
- // eslint-disable-next-line no-console
96
99
  console.error('Cannot load the defer loaded view without container information');
97
100
  }
98
101
  }
@@ -105,6 +108,17 @@ export default function DeferLoad(props) {
105
108
  onResponse(data);
106
109
  });
107
110
  }
111
+ else if (template === 'HierarchicalForm') {
112
+ const root = {
113
+ config: {
114
+ context: pConnect.getPageReference(),
115
+ name,
116
+ type: 'view'
117
+ },
118
+ type: 'reference'
119
+ };
120
+ onResponse(root, true);
121
+ }
108
122
  else {
109
123
  getPConnect()
110
124
  .getActionsApi()
@@ -113,7 +127,6 @@ export default function DeferLoad(props) {
113
127
  onResponse(data.root);
114
128
  })
115
129
  .catch(error => {
116
- // eslint-disable-next-line no-console
117
130
  console.log(`deferload: ${error}`);
118
131
  });
119
132
  }
@@ -1 +1 @@
1
- {"version":3,"file":"DeferLoad.js","sourceRoot":"","sources":["../../../../src/components/infra/DeferLoad/DeferLoad.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAC3D,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC;AAC5D,OAAO,UAAU,MAAM,wBAAwB,CAAC;AAEhD,OAAO,uBAAuB,MAAM,gCAAgC,CAAC;AAarE,EAAE;AACF,qHAAqH;AACrH,uHAAuH;AACvH,+BAA+B;AAC/B,EAAE;AAEF,MAAM,SAAS,GAAG,UAAU,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC;IACrC,IAAI,EAAE;QACJ,YAAY,EAAE,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC;QAC9B,WAAW,EAAE,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC;QAC7B,UAAU,EAAE,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC;QAC5B,aAAa,EAAE,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC;QAC/B,WAAW,EAAE,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC;QAC7B,UAAU,EAAE,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC;QAC5B,SAAS,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AAC,CAAC,CAAC,CACF,KAAC,IAAI,IAAC,EAAE,EAAC,WAAW,EAAC,SAAS,EAAE,OAAO,CAAC,IAAI,YAC1C,4BAAG,OAAO,GAAI,GACT,CACR,CAAC;KACH;IAED,OAAO,gBAAgB,CAAC;AAC1B,CAAC","sourcesContent":["import { useState, useEffect, createElement } from 'react';\nimport { Box, Card, CircularProgress } from '@mui/material';\nimport makeStyles from '@mui/styles/makeStyles';\n\nimport createPConnectComponent from '../../../bridge/react_pconnect';\n\nimport { PConnProps } from '../../../types/PConnProps';\n\ninterface DeferLoadProps extends PConnProps {\n // If any, enter additional props that only exist on this component\n name: string;\n isChildDeferLoad?: boolean;\n isTab: boolean;\n deferLoadId: string;\n lastUpdateCaseTime: any;\n}\n\n//\n// WARNING: It is not expected that this file should be modified. It is part of infrastructure code that works with\n// Redux and creation/update of Redux containers and PConnect. Modifying this code could have undesireable results and\n// is totally at your own risk.\n//\n\nconst useStyles = makeStyles(theme => ({\n root: {\n paddingRight: theme.spacing(1),\n paddingLeft: theme.spacing(1),\n paddingTop: theme.spacing(1),\n paddingBottom: theme.spacing(1),\n marginRight: theme.spacing(1),\n marginLeft: theme.spacing(1),\n marginTop: theme.spacing(1),\n marginBottom: theme.spacing(1)\n }\n}));\n\nexport default function DeferLoad(props: DeferLoadProps) {\n const { getPConnect, name, deferLoadId, isTab, lastUpdateCaseTime } = props;\n const [content, setContent] = useState<any>(null);\n const [isLoading, setLoading] = useState(true);\n const [currentLoadedAssignment, setCurrentLoadedAssignment] = useState('');\n\n const classes = useStyles();\n\n const pConnect = getPConnect();\n const constants = PCore.getConstants();\n\n const theRequestedAssignment = pConnect.getValue(PCore.getConstants().CASE_INFO.ASSIGNMENT_LABEL, ''); // 2nd arg empty string until typedef allows optional\n if (theRequestedAssignment !== currentLoadedAssignment) {\n // console.log(`DeferLoad: currentLoadedAssignment about to change from ${currentLoadedAssignment} to ${theRequestedAssignment}`);\n setCurrentLoadedAssignment(theRequestedAssignment);\n }\n\n const { CASE, PAGE, DATA } = constants.RESOURCE_TYPES;\n const loadViewCaseID = pConnect.getValue(constants.PZINSKEY, '') || pConnect.getValue(constants.CASE_INFO.CASE_INFO_ID, ''); // 2nd arg empty string until typedef allows optional\n let containerName;\n let containerItemData;\n const targetName = pConnect.getTarget();\n if (targetName) {\n containerName = PCore.getContainerUtils().getActiveContainerItemName(targetName);\n\n containerItemData = PCore.getContainerUtils().getContainerItemData(targetName, containerName);\n }\n\n const { resourceType = CASE } = containerItemData || {\n resourceType: loadViewCaseID ? CASE : PAGE\n };\n const isContainerPreview = /preview_[0-9]*/g.test(pConnect.getContextName());\n\n const getViewOptions = () => ({\n viewContext: resourceType,\n pageClass: loadViewCaseID ? '' : (pConnect.getDataObject('') as any).pyPortal.classID, // 2nd arg empty string until typedef allows optional\n container: isContainerPreview ? 'preview' : undefined,\n containerName: isContainerPreview ? 'preview' : undefined,\n updateData: isContainerPreview\n });\n\n const onResponse = data => {\n setLoading(false);\n if (deferLoadId) {\n PCore.getDeferLoadManager().start(\n name,\n getPConnect().getCaseInfo().getKey(),\n getPConnect().getPageReference().replace('caseInfo.content', ''),\n getPConnect().getContextName(),\n deferLoadId\n );\n }\n\n if (data && !(data.type && data.type === 'error')) {\n const config = {\n meta: data,\n options: {\n context: pConnect.getContextName(),\n pageReference: pConnect.getPageReference()\n }\n };\n const configObject = PCore.createPConnect(config);\n configObject.getPConnect().setInheritedProp('displayMode', 'DISPLAY_ONLY');\n setContent(createElement(createPConnectComponent(), configObject));\n if (deferLoadId) {\n PCore.getDeferLoadManager().stop(deferLoadId, getPConnect().getContextName());\n }\n }\n };\n\n useEffect(() => {\n if (resourceType === DATA) {\n // Rendering defer loaded tabs in data context\n if (containerName) {\n const dataContext = PCore.getStoreValue('.dataContext', 'dataInfo', containerName);\n const dataContextParameters = PCore.getStoreValue('.dataContextParameters', 'dataInfo', containerName);\n\n getPConnect()\n .getActionsApi()\n .showData(name, dataContext, dataContextParameters, {\n skipSemanticUrl: true,\n // @ts-ignore\n isDeferLoaded: true\n })\n .then(data => {\n onResponse(data);\n });\n } else {\n // eslint-disable-next-line no-console\n console.error('Cannot load the defer loaded view without container information');\n }\n } else if (resourceType === PAGE) {\n // Rendering defer loaded tabs in case/ page context\n getPConnect()\n .getActionsApi()\n .loadView(encodeURI(loadViewCaseID), name, getViewOptions())\n .then(data => {\n onResponse(data);\n });\n } else {\n getPConnect()\n .getActionsApi()\n .refreshCaseView(encodeURI(loadViewCaseID), name, '') // 3rd arg empty string until typedef allows optional\n .then((data: any) => {\n onResponse(data.root);\n })\n .catch(error => {\n // eslint-disable-next-line no-console\n console.log(`deferload: ${error}`);\n });\n }\n }, [name, getPConnect, currentLoadedAssignment, lastUpdateCaseTime]);\n /* TODO Cosmos need to handle for now added a wrapper div with pos relative */\n let deferLoadContent;\n if (isLoading) {\n deferLoadContent = (\n <div style={{ position: 'relative', height: '100px' }}>\n <Box textAlign='center'>\n <CircularProgress />\n </Box>\n </div>\n );\n } else {\n deferLoadContent = !isTab ? (\n <div className={classes.root}>{content}</div>\n ) : (\n <Card id='DeferLoad' className={classes.root}>\n <>{content}</>\n </Card>\n );\n }\n\n return deferLoadContent;\n}\n"]}
1
+ {"version":3,"file":"DeferLoad.js","sourceRoot":"","sources":["../../../../src/components/infra/DeferLoad/DeferLoad.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAC3D,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC;AAC5D,OAAO,UAAU,MAAM,wBAAwB,CAAC;AAEhD,OAAO,uBAAuB,MAAM,gCAAgC,CAAC;AAcrE;;;GAGG;AAEH,MAAM,SAAS,GAAG,UAAU,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC;IACrC,IAAI,EAAE;QACJ,YAAY,EAAE,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC;QAC9B,WAAW,EAAE,KAA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C;aAAM,CAAC;YACN,WAAW,EAAE;iBACV,aAAa,EAAE;iBACf,eAAe,CAAC,SAAS,CAAC,cAAc,CAAC,EAAE,IAAI,EAAE,EAAE,CAAC,CAAC,qDAAqD;iBAC1G,IAAI,CAAC,CAAC,IAAS,EAAE,EAAE;gBAClB,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;YACxB,CAAC,CAAC;iBACD,KAAK,CAAC,KAAK,CAAC,EAAE;gBACb,OAAO,CAAC,GAAG,CAAC,cAAc,KAAK,EAAE,CAAC,CAAC;YACrC,CAAC,CAAC,CAAC;QACP,CAAC;IACH,CAAC,EAAE,CAAC,IAAI,EAAE,WAAW,EAAE,uBAAuB,EAAE,kBAAkB,CAAC,CAAC,CAAC;IACrE,8EAA8E;IAC9E,IAAI,gBAAgB,CAAC;IACrB,IAAI,SAAS,EAAE,CAAC;QACd,gBAAgB,GAAG,CACjB,cAAK,KAAK,EAAE,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,EAAE,OAAO,EAAE,YACnD,KAAC,GAAG,IAAC,SAAS,EAAC,QAAQ,YACrB,KAAC,gBAAgB,KAAG,GAChB,GACF,CACP,CAAC;IACJ,CAAC;SAAM,CAAC;QACN,gBAAgB,GAAG,CAAC,KAAK,CAAC,CAAC,CAAC,CAC1B,cAAK,SAAS,EAAE,OAAO,CAAC,IAAI,YAAG,OAAO,GAAO,CAC9C,CAAC,CAAC,CAAC,CACF,KAAC,IAAI,IAAC,EAAE,EAAC,WAAW,EAAC,SAAS,EAAE,OAAO,CAAC,IAAI,YAC1C,4BAAG,OAAO,GAAI,GACT,CACR,CAAC;IACJ,CAAC;IAED,OAAO,gBAAgB,CAAC;AAC1B,CAAC","sourcesContent":["import { useState, useEffect, createElement } from 'react';\nimport { Box, Card, CircularProgress } from '@mui/material';\nimport makeStyles from '@mui/styles/makeStyles';\n\nimport createPConnectComponent from '../../../bridge/react_pconnect';\n\nimport type { PConnProps } from '../../../types/PConnProps';\n\ninterface DeferLoadProps extends PConnProps {\n // If any, enter additional props that only exist on this component\n name: string;\n isChildDeferLoad?: boolean;\n isTab: boolean;\n deferLoadId: string;\n lastUpdateCaseTime: any;\n template?: string;\n}\n\n/**\n * WARNING: This file is part of the infrastructure component responsible for working with Redux and managing the creation and update of Redux containers and PConnect.\n * You may override Material components within this component if needed, but do not modify any container-related logic. Changing this logic can lead to unexpected behavior.\n */\n\nconst useStyles = makeStyles(theme => ({\n root: {\n paddingRight: theme.spacing(1),\n paddingLeft: theme.spacing(1),\n paddingTop: theme.spacing(1),\n paddingBottom: theme.spacing(1),\n marginRight: theme.spacing(1),\n marginLeft: theme.spacing(1),\n marginTop: theme.spacing(1),\n marginBottom: theme.spacing(1)\n }\n}));\n\nexport default function DeferLoad(props: DeferLoadProps) {\n const { getPConnect, name, deferLoadId, isTab, lastUpdateCaseTime, template } = props;\n const [content, setContent] = useState<any>(null);\n const [isLoading, setLoading] = useState(true);\n const [currentLoadedAssignment, setCurrentLoadedAssignment] = useState('');\n\n const classes = useStyles();\n\n const pConnect = getPConnect();\n const constants = PCore.getConstants();\n\n const theRequestedAssignment = pConnect.getValue(PCore.getConstants().CASE_INFO.ASSIGNMENT_LABEL, ''); // 2nd arg empty string until typedef allows optional\n if (theRequestedAssignment !== currentLoadedAssignment) {\n // console.log(`DeferLoad: currentLoadedAssignment about to change from ${currentLoadedAssignment} to ${theRequestedAssignment}`);\n setCurrentLoadedAssignment(theRequestedAssignment);\n }\n\n const { CASE, PAGE, DATA } = constants.RESOURCE_TYPES;\n const loadViewCaseID = pConnect.getValue(constants.PZINSKEY, '') || pConnect.getValue(constants.CASE_INFO.CASE_INFO_ID, ''); // 2nd arg empty string until typedef allows optional\n let containerName;\n let containerItemData;\n const targetName = pConnect.getTarget();\n if (targetName) {\n containerName = PCore.getContainerUtils().getActiveContainerItemName(targetName);\n\n containerItemData = PCore.getContainerUtils().getContainerItemData(targetName, containerName);\n }\n\n const { resourceType = CASE } = containerItemData || {\n resourceType: loadViewCaseID ? CASE : PAGE\n };\n const isContainerPreview = /preview_[0-9]*/g.test(pConnect.getContextName());\n\n const getViewOptions = () => ({\n viewContext: resourceType,\n pageClass: loadViewCaseID ? '' : (pConnect.getDataObject('') as any).pyPortal.classID, // 2nd arg empty string until typedef allows optional\n container: isContainerPreview ? 'preview' : undefined,\n containerName: isContainerPreview ? 'preview' : undefined,\n updateData: isContainerPreview\n });\n\n const onResponse = (data: any, isEditable = false) => {\n setLoading(false);\n if (deferLoadId) {\n PCore.getDeferLoadManager().start(\n name,\n getPConnect().getCaseInfo().getKey(),\n getPConnect().getPageReference().replace('caseInfo.content', ''),\n getPConnect().getContextName(),\n deferLoadId\n );\n }\n\n if (data && !(data.type && data.type === 'error')) {\n const config = {\n meta: data,\n options: {\n context: pConnect.getContextName(),\n pageReference: pConnect.getPageReference(),\n target: pConnect.getTarget(),\n hasForm: true,\n viewName: (pConnect as any).viewName\n }\n };\n const configObject = PCore.createPConnect(config);\n if (!isEditable) {\n configObject.getPConnect().setInheritedProp('displayMode', 'DISPLAY_ONLY');\n }\n setContent(createElement(createPConnectComponent(), configObject));\n if (deferLoadId) {\n PCore.getDeferLoadManager().stop(deferLoadId, getPConnect().getContextName());\n }\n }\n };\n\n useEffect(() => {\n if (resourceType === DATA) {\n // Rendering defer loaded tabs in data context\n if (containerName) {\n const dataContext = PCore.getStoreValue('.dataContext', 'dataInfo', containerName);\n const dataContextParameters = PCore.getStoreValue('.dataContextParameters', 'dataInfo', containerName);\n\n getPConnect()\n .getActionsApi()\n .showData(name, dataContext, dataContextParameters, {\n skipSemanticUrl: true,\n // @ts-expect-error\n isDeferLoaded: true\n })\n .then(data => {\n onResponse(data);\n });\n } else {\n console.error('Cannot load the defer loaded view without container information');\n }\n } else if (resourceType === PAGE) {\n // Rendering defer loaded tabs in case/ page context\n getPConnect()\n .getActionsApi()\n .loadView(encodeURI(loadViewCaseID), name, getViewOptions())\n .then(data => {\n onResponse(data);\n });\n } else if (template === 'HierarchicalForm') {\n const root = {\n config: {\n context: pConnect.getPageReference(),\n name,\n type: 'view'\n },\n type: 'reference'\n };\n onResponse(root, true);\n } else {\n getPConnect()\n .getActionsApi()\n .refreshCaseView(encodeURI(loadViewCaseID), name, '') // 3rd arg empty string until typedef allows optional\n .then((data: any) => {\n onResponse(data.root);\n })\n .catch(error => {\n console.log(`deferload: ${error}`);\n });\n }\n }, [name, getPConnect, currentLoadedAssignment, lastUpdateCaseTime]);\n /* TODO Cosmos need to handle for now added a wrapper div with pos relative */\n let deferLoadContent;\n if (isLoading) {\n deferLoadContent = (\n <div style={{ position: 'relative', height: '100px' }}>\n <Box textAlign='center'>\n <CircularProgress />\n </Box>\n </div>\n );\n } else {\n deferLoadContent = !isTab ? (\n <div className={classes.root}>{content}</div>\n ) : (\n <Card id='DeferLoad' className={classes.root}>\n <>{content}</>\n </Card>\n );\n }\n\n return deferLoadContent;\n}\n"]}
@@ -1,4 +1,4 @@
1
- import { PConnProps } from '../../../types/PConnProps';
1
+ import type { PConnProps } from '../../../types/PConnProps';
2
2
  interface ErrorBoundaryProps extends PConnProps {
3
3
  isInternalError?: boolean;
4
4
  }
@@ -1 +1 @@
1
- {"version":3,"file":"ErrorBoundary.d.ts","sourceRoot":"","sources":["../../../../src/components/infra/ErrorBoundary/ErrorBoundary.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AAEvD,UAAU,kBAAmB,SAAQ,UAAU;IAE7C,eAAe,CAAC,EAAE,OAAO,CAAC;CAC3B;AAED,MAAM,CAAC,OAAO,UAAU,aAAa,CAAC,KAAK,EAAE,kBAAkB,kDAsC9D"}
1
+ {"version":3,"file":"ErrorBoundary.d.ts","sourceRoot":"","sources":["../../../../src/components/infra/ErrorBoundary/ErrorBoundary.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AAE5D,UAAU,kBAAmB,SAAQ,UAAU;IAE7C,eAAe,CAAC,EAAE,OAAO,CAAC;CAC3B;AAED,MAAM,CAAC,OAAO,UAAU,aAAa,CAAC,KAAK,EAAE,kBAAkB,kDAoC9D"}
@@ -13,7 +13,6 @@ export default function ErrorBoundary(props) {
13
13
  }
14
14
  const pConn = getPConnect();
15
15
  if (!isInternalError) {
16
- // eslint-disable-next-line no-console
17
16
  console.error(`
18
17
  ${localizedVal('Unable to load the component', localeCategory)} ${pConn.getComponentName()}
19
18
  ${localizedVal('This might be due to the view metadata getting corrupted or the component file missing.', localeCategory)}
@@ -25,7 +24,6 @@ export default function ErrorBoundary(props) {
25
24
  }
26
25
  if (pConn.getContainerName() === WORK_AREA || pConn.isInsideList() === true || pConn.getContainerName() === 'modal') {
27
26
  const { publish } = PCore.getPubSubUtils();
28
- // @ts-ignore - second parameter “payload” for publish method should be optional
29
27
  publish(ERROR_WHILE_RENDERING);
30
28
  return null;
31
29
  }
@@ -1 +1 @@
1
- {"version":3,"file":"ErrorBoundary.js","sourceRoot":"","sources":["../../../../src/components/infra/ErrorBoundary/ErrorBoundary.tsx"],"names":[],"mappings":";AAOA,MAAM,CAAC,OAAO,UAAU,aAAa,CAAC,KAAyB;IAC7D,MAAM,QAAQ,GAAG,KAAK,CAAC,eAAe,EAAE,CAAC,uBAAuB,EAAE,CAAC;IACnE,MAAM,YAAY,GAAG,KAAK,CAAC,cAAc,EAAE,CAAC,cAAc,CAAC;IAC3D,MAAM,cAAc,GAAG,UAAU,CAAC;IAClC,MAAM,UAAU,GAAG,YAAY,CAAC,QAAQ,EAAE,cAAc,CAAC,CAAC;IAC1D,MAAM,SAAS,GAAG,UAAU,CAAC;IAC7B,MAAM,qBAAqB,GAAG,uBAAuB,CAAC;IACtD,MAAM,EAAE,WAAW,EAAE,eAAe,GAAG,KAAK,EAAE,GAAG,KAAK,CAAC;IAEvD,MAAM,WAAW,GAAG,wBAAM,UAAU,GAAO,CAAC;IAE5C,IAAI,CAAC,WAAW,EAAE;QAChB,OAAO,WAAW,CAAC;KACpB;IAED,MAAM,KAAK,GAAG,WAAW,EAAE,CAAC;IAE5B,IAAI,CAAC,eAAe,EAAE;QACpB,sCAAsC;QACtC,OAAO,CAAC,KAAK,CAAC;IACd,YAAY,CAAC,8BAA8B,EAAE,cAAc,CAAC,IAAI,KAAK,CAAC,gBAAgB,EAAE;IACxF,YAAY,CAAC,yFAAyF,EAAE,cAAc,CAAC;oCACvF,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,cAAc,EAAE,CAAC;CACzE,CAAC,CAAC;KACA;IAED,IAAK,KAAK,CAAC,cAAc,EAAU,CAAC,IAAI,KAAK,MAAM,EAAE;QACnD,OAAO,WAAW,CAAC;KACpB;IAED,IAAI,KAAK,CAAC,gBAAgB,EAAE,KAAK,SAAS,IAAI,KAAK,CAAC,YAAY,EAAE,KAAK,IAAI,IAAI,KAAK,CAAC,gBAAgB,EAAE,KAAK,OAAO,EAAE;QACnH,MAAM,EAAE,OAAO,EAAE,GAAG,KAAK,CAAC,cAAc,EAAE,CAAC;QAC3C,gFAAgF;QAChF,OAAO,CAAC,qBAAqB,CAAC,CAAC;QAC/B,OAAO,IAAI,CAAC;KACb;IAED,OAAO,WAAW,CAAC;AACrB,CAAC","sourcesContent":["import { PConnProps } from '../../../types/PConnProps';\n\ninterface ErrorBoundaryProps extends PConnProps {\n // If any, enter additional props that only exist on this component\n isInternalError?: boolean;\n}\n\nexport default function ErrorBoundary(props: ErrorBoundaryProps) {\n const errorMsg = PCore.getErrorHandler().getGenericFailedMessage();\n const localizedVal = PCore.getLocaleUtils().getLocaleValue;\n const localeCategory = 'Messages';\n const ERROR_TEXT = localizedVal(errorMsg, localeCategory);\n const WORK_AREA = 'workarea';\n const ERROR_WHILE_RENDERING = 'ERROR_WHILE_RENDERING';\n const { getPConnect, isInternalError = false } = props;\n\n const theErrorDiv = <div>{ERROR_TEXT}</div>;\n\n if (!getPConnect) {\n return theErrorDiv;\n }\n\n const pConn = getPConnect();\n\n if (!isInternalError) {\n // eslint-disable-next-line no-console\n console.error(`\n ${localizedVal('Unable to load the component', localeCategory)} ${pConn.getComponentName()}\n ${localizedVal('This might be due to the view metadata getting corrupted or the component file missing.', localeCategory)}\n Raw metadata for the component: ${JSON.stringify(pConn.getRawMetadata())}\n`);\n }\n\n if ((pConn.getConfigProps() as any).type === 'page') {\n return theErrorDiv;\n }\n\n if (pConn.getContainerName() === WORK_AREA || pConn.isInsideList() === true || pConn.getContainerName() === 'modal') {\n const { publish } = PCore.getPubSubUtils();\n // @ts-ignore - second parameter “payload” for publish method should be optional\n publish(ERROR_WHILE_RENDERING);\n return null;\n }\n\n return theErrorDiv;\n}\n"]}
1
+ {"version":3,"file":"ErrorBoundary.js","sourceRoot":"","sources":["../../../../src/components/infra/ErrorBoundary/ErrorBoundary.tsx"],"names":[],"mappings":";AAOA,MAAM,CAAC,OAAO,UAAU,aAAa,CAAC,KAAyB;IAC7D,MAAM,QAAQ,GAAG,KAAK,CAAC,eAAe,EAAE,CAAC,uBAAuB,EAAE,CAAC;IACnE,MAAM,YAAY,GAAG,KAAK,CAAC,cAAc,EAAE,CAAC,cAAc,CAAC;IAC3D,MAAM,cAAc,GAAG,UAAU,CAAC;IAClC,MAAM,UAAU,GAAG,YAAY,CAAC,QAAQ,EAAE,cAAc,CAAC,CAAC;IAC1D,MAAM,SAAS,GAAG,UAAU,CAAC;IAC7B,MAAM,qBAAqB,GAAG,uBAAuB,CAAC;IACtD,MAAM,EAAE,WAAW,EAAE,eAAe,GAAG,KAAK,EAAE,GAAG,KAAK,CAAC;IAEvD,MAAM,WAAW,GAAG,wBAAM,UAAU,GAAO,CAAC;IAE5C,IAAI,CAAC,WAAW,EAAE,CAAC;QACjB,OAAO,WAAW,CAAC;IACrB,CAAC;IAED,MAAM,KAAK,GAAG,WAAW,EAAE,CAAC;IAE5B,IAAI,CAAC,eAAe,EAAE,CAAC;QACrB,OAAO,CAAC,KAAK,CAAC;IACd,YAAY,CAAC,8BAA8B,EAAE,cAAc,CAAC,IAAI,KAAK,CAAC,gBAAgB,EAAE;IACxF,YAAY,CAAC,yFAAyF,EAAE,cAAc,CAAC;oCACvF,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,cAAc,EAAE,CAAC;CACzE,CAAC,CAAC;IACD,CAAC;IAED,IAAK,KAAK,CAAC,cAAc,EAAU,CAAC,IAAI,KAAK,MAAM,EAAE,CAAC;QACpD,OAAO,WAAW,CAAC;IACrB,CAAC;IAED,IAAI,KAAK,CAAC,gBAAgB,EAAE,KAAK,SAAS,IAAI,KAAK,CAAC,YAAY,EAAE,KAAK,IAAI,IAAI,KAAK,CAAC,gBAAgB,EAAE,KAAK,OAAO,EAAE,CAAC;QACpH,MAAM,EAAE,OAAO,EAAE,GAAG,KAAK,CAAC,cAAc,EAAE,CAAC;QAC3C,OAAO,CAAC,qBAAqB,CAAC,CAAC;QAC/B,OAAO,IAAI,CAAC;IACd,CAAC;IAED,OAAO,WAAW,CAAC;AACrB,CAAC","sourcesContent":["import type { PConnProps } from '../../../types/PConnProps';\n\ninterface ErrorBoundaryProps extends PConnProps {\n // If any, enter additional props that only exist on this component\n isInternalError?: boolean;\n}\n\nexport default function ErrorBoundary(props: ErrorBoundaryProps) {\n const errorMsg = PCore.getErrorHandler().getGenericFailedMessage();\n const localizedVal = PCore.getLocaleUtils().getLocaleValue;\n const localeCategory = 'Messages';\n const ERROR_TEXT = localizedVal(errorMsg, localeCategory);\n const WORK_AREA = 'workarea';\n const ERROR_WHILE_RENDERING = 'ERROR_WHILE_RENDERING';\n const { getPConnect, isInternalError = false } = props;\n\n const theErrorDiv = <div>{ERROR_TEXT}</div>;\n\n if (!getPConnect) {\n return theErrorDiv;\n }\n\n const pConn = getPConnect();\n\n if (!isInternalError) {\n console.error(`\n ${localizedVal('Unable to load the component', localeCategory)} ${pConn.getComponentName()}\n ${localizedVal('This might be due to the view metadata getting corrupted or the component file missing.', localeCategory)}\n Raw metadata for the component: ${JSON.stringify(pConn.getRawMetadata())}\n`);\n }\n\n if ((pConn.getConfigProps() as any).type === 'page') {\n return theErrorDiv;\n }\n\n if (pConn.getContainerName() === WORK_AREA || pConn.isInsideList() === true || pConn.getContainerName() === 'modal') {\n const { publish } = PCore.getPubSubUtils();\n publish(ERROR_WHILE_RENDERING);\n return null;\n }\n\n return theErrorDiv;\n}\n"]}
@@ -17,7 +17,7 @@
17
17
 
18
18
  .psdk-current-svg-icon {
19
19
  width: 1rem;
20
- filter: var(--app-primary-color-filter);
20
+ filter: var(--svg-color);
21
21
  }
22
22
 
23
23
  .psdk-not-current-svg-icon {
@@ -40,7 +40,7 @@ mat-horizontal-stepper {
40
40
 
41
41
  .psdk-sub-step-not-current {
42
42
  padding-left: 0.625rem;
43
- color: rgba(0, 0, 0, 0.54);
43
+ color: var(--step-label-color);
44
44
  }
45
45
 
46
46
  .psdk-flow-container-top {
@@ -79,36 +79,37 @@ mat-horizontal-stepper {
79
79
 
80
80
  .psdk-vertical-step-icon {
81
81
  margin-right: 12px;
82
- background-color: var(--app-neutral-color);
83
- color: #fff;
84
82
  border-radius: 50%;
85
83
  height: 24px;
86
84
  width: 24px;
87
- flex-shrink: 0;
88
85
  position: relative;
89
86
  }
90
87
 
88
+ .success .psdk-vertical-step-icon {
89
+ background-color: var(--stepper-completed-bg-color);
90
+ color: var(--app-text-color);
91
+ }
92
+
93
+ .future .psdk-vertical-step-icon {
94
+ color: var(--app-neutral-color);
95
+ border: 1px solid var(--app-neutral-color);
96
+ }
97
+
98
+ .current .psdk-vertical-step-icon {
99
+ background-color: var(--app-primary-color);
100
+ color: var(--app-text-color);
101
+ flex-shrink: 0;
102
+ }
103
+
91
104
  .psdk-vertical-step-icon-content {
92
105
  position: absolute;
93
106
  top: 50%;
94
107
  left: 50%;
95
108
  transform: translate(-50%, -50%);
96
- color: #fff;
97
- }
98
-
99
- .psdk-vertical-step-icon-selected {
100
- margin-right: 12px;
101
- background-color: var(--app-primary-color);
102
- color: #fff;
103
- border-radius: 50%;
104
- height: 24px;
105
- width: 24px;
106
- flex-shrink: 0;
107
- position: relative;
108
109
  }
109
110
 
110
111
  .psdk-vertical-step-label {
111
- color: rgba(0, 0, 0, 0.54);
112
+ color: var(--step-label-color);
112
113
  display: inline-block;
113
114
  white-space: nowrap;
114
115
  overflow: hidden;
@@ -119,16 +120,8 @@ mat-horizontal-stepper {
119
120
  font-weight: 500;
120
121
  }
121
122
 
122
- .psdk-vertical-step-label-selected {
123
- color: rgba(0, 0, 0, 0.87);
124
- display: inline-block;
125
- white-space: nowrap;
126
- overflow: hidden;
127
- text-overflow: ellipsis;
128
- min-width: 50px;
129
- vertical-align: middle;
130
- font-size: 14px;
131
- font-weight: 500;
123
+ .current .psdk-vertical-step-label {
124
+ color: var(--text-primary-color);
132
125
  }
133
126
 
134
127
  .psdk-vertical-step-body {
@@ -150,7 +143,7 @@ mat-horizontal-stepper {
150
143
  border-left-style: solid;
151
144
  top: -16px;
152
145
  bottom: -16px;
153
- border-left-color: rgba(0, 0, 0, 0.12);
146
+ border-left-color: var(--app-neutral-color);
154
147
  }
155
148
 
156
149
  .psdk-horizontal-stepper {
@@ -162,33 +155,39 @@ mat-horizontal-stepper {
162
155
  white-space: nowrap;
163
156
  display: flex;
164
157
  align-items: center;
165
- text-align: left;
166
158
  }
167
159
 
168
160
  .psdk-horizontal-step-header {
169
- overflow: hidden;
170
161
  outline: none;
171
162
  cursor: pointer;
172
163
  position: relative;
173
164
  box-sizing: content-box;
174
165
  display: flex;
175
166
  height: 72px;
176
- overflow: hidden;
177
167
  align-items: center;
178
- padding: 0 24px;
179
168
  }
180
169
 
181
170
  .psdk-horizontal-step-icon {
182
- background-color: var(--app-neutral-color);
183
- color: #fff;
171
+ color: white;
184
172
  border-radius: 50%;
185
173
  height: 24px;
186
174
  width: 24px;
187
- flex-shrink: 0;
188
175
  position: relative;
189
- display: block;
190
- margin-right: 8px;
191
- flex: none;
176
+ }
177
+
178
+ .future .psdk-horizontal-step-icon {
179
+ color: var(--app-neutral-color);
180
+ border: 1px solid var(--app-neutral-color);
181
+ }
182
+
183
+ .current .psdk-horizontal-step-icon {
184
+ color: var(--app-text-color);
185
+ background-color: var(--app-primary-color);
186
+ }
187
+
188
+ .success .psdk-horizontal-step-icon {
189
+ color: var(--app-text-color);
190
+ background-color: var(--stepper-completed-bg-color);
192
191
  }
193
192
 
194
193
  .psdk-horizontal-step-icon-content {
@@ -199,45 +198,24 @@ mat-horizontal-stepper {
199
198
  transform: translate(-50%, -50%);
200
199
  }
201
200
 
202
- .psdk-horizontal-step-icon-selected {
203
- background-color: var(--app-primary-color);
204
- color: #fff;
205
- border-radius: 50%;
206
- height: 24px;
207
- width: 24px;
208
- flex-shrink: 0;
209
- position: relative;
210
- display: block;
211
- margin-right: 8px;
212
- flex: none;
213
- }
214
-
215
201
  .psdk-horizontal-step-label {
216
- color: rgba(0, 0, 0, 0.54);
217
- display: inline-block;
218
- min-width: 50px;
219
- vertical-align: middle;
202
+ color: var(--text-secondary-color);
220
203
  font-size: 14px;
221
204
  font-weight: 500;
222
205
  white-space: initial;
223
206
  }
224
207
 
225
- .psdk-horizontal-step-label-selected {
226
- color: rgba(0, 0, 0, 0.87);
227
- display: inline-block;
228
- min-width: 50px;
229
- vertical-align: middle;
230
- font-size: 14px;
231
- font-weight: 500;
232
- white-space: initial;
208
+ .current .psdk-horizontal-step-label {
209
+ color: var(--text-primary-color);
210
+ margin-left: 8px;
233
211
  }
234
212
 
235
- .psdk-horizontal-step-line {
236
- border-top-color: rgba(0, 0, 0, 0.12);
237
- border-top-width: 1px;
238
- border-top-style: solid;
213
+ .flex-auto {
239
214
  flex: auto;
240
- height: 0;
241
- margin: 0 -16px;
215
+ }
216
+
217
+ .psdk-horizontal-step-line {
218
+ border-top: 1px solid var(--app-neutral-color);
242
219
  min-width: 32px;
220
+ margin: 0px 8px;
243
221
  }
@@ -1,5 +1,5 @@
1
- import { PropsWithChildren } from 'react';
2
- import { PConnProps } from '../../../types/PConnProps';
1
+ import { type PropsWithChildren } from 'react';
2
+ import type { PConnProps } from '../../../types/PConnProps';
3
3
  import './MultiStep.css';
4
4
  interface MultiStepProps extends PConnProps {
5
5
  itemKey: string;
@@ -1 +1 @@
1
- {"version":3,"file":"MultiStep.d.ts","sourceRoot":"","sources":["../../../../src/components/infra/MultiStep/MultiStep.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAGjD,OAAO,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AAEvD,OAAO,iBAAiB,CAAC;AAEzB,UAAU,cAAe,SAAQ,UAAU;IAEzC,OAAO,EAAE,MAAM,CAAC;IAChB,aAAa,EAAE,GAAG,EAAE,CAAC;IACrB,aAAa,EAAE,GAAG,CAAC;IACnB,WAAW,EAAE,OAAO,CAAC;IACrB,iBAAiB,EAAE,GAAG,CAAC;CACxB;AAED,MAAM,CAAC,OAAO,UAAU,SAAS,CAAC,KAAK,EAAE,iBAAiB,CAAC,cAAc,CAAC,2CA+KzE"}
1
+ {"version":3,"file":"MultiStep.d.ts","sourceRoot":"","sources":["../../../../src/components/infra/MultiStep/MultiStep.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,KAAK,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAGtD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AAE5D,OAAO,iBAAiB,CAAC;AAEzB,UAAU,cAAe,SAAQ,UAAU;IAEzC,OAAO,EAAE,MAAM,CAAC;IAChB,aAAa,EAAE,GAAG,EAAE,CAAC;IACrB,aAAa,EAAE,GAAG,CAAC;IACnB,WAAW,EAAE,OAAO,CAAC;IACrB,iBAAiB,EAAE,GAAG,CAAC;CACxB;AAED,MAAM,CAAC,OAAO,UAAU,SAAS,CAAC,KAAK,EAAE,iBAAiB,CAAC,cAAc,CAAC,2CAqJzE"}
@@ -1,5 +1,5 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import React from 'react';
2
+ import React, {} from 'react';
3
3
  import { getComponentFromMap } from '../../../bridge/helpers/sdk_component_map';
4
4
  import './MultiStep.css';
5
5
  export default function MultiStep(props) {
@@ -12,53 +12,35 @@ export default function MultiStep(props) {
12
12
  const lastActiveStepIndex = arNavigationSteps.findLastIndex(({ visited_status: vs }) => vs === 'success');
13
13
  currentStep = arNavigationSteps[lastActiveStepIndex >= 0 ? lastActiveStepIndex : 0];
14
14
  }
15
- // const svgCurrent = Utils.getImageSrc("circle-solid", Utils.getSDKStaticConentUrl());
16
- // const svgNotCurrent = Utils.getImageSrc("circle-solid", Utils.getSDKStaticConentUrl());
17
- function _getVIconClass(status) {
18
- if (status === 'current') {
19
- return 'psdk-vertical-step-icon-selected';
20
- }
21
- return 'psdk-vertical-step-icon';
22
- }
23
- function _getVLabelClass(status) {
24
- if (status === 'current') {
25
- return 'psdk-vertical-step-label-selected';
26
- }
27
- return 'psdk-vertical-step-label';
28
- }
29
15
  function _getVBodyClass(index) {
30
- if (index < arNavigationSteps.length - 1) {
31
- return 'psdk-vertical-step-body psdk-vertical-step-line';
32
- }
33
- return 'psdk-vertical-step-body';
34
- }
35
- function _getHIconClass(step) {
36
- if (step.ID === currentStep?.ID) {
37
- return 'psdk-horizontal-step-icon-selected';
38
- }
39
- return 'psdk-horizontal-step-icon';
40
- }
41
- function _getHLabelClass(step) {
42
- if (step.ID === currentStep?.ID) {
43
- return 'psdk-horizontal-step-label-selected';
44
- }
45
- return 'psdk-horizontal-step-label';
46
- }
47
- function _showHLine(index) {
48
- return index < arNavigationSteps.length - 1;
16
+ const baseClass = 'psdk-vertical-step-body';
17
+ const isNotLastStep = index < arNavigationSteps.length - 1;
18
+ return isNotLastStep ? `${baseClass} psdk-vertical-step-line` : baseClass;
19
+ }
20
+ function _getAutoFlexClass(currentStep) {
21
+ const currentStepIndex = arNavigationSteps.findIndex(step => step.ID === currentStep?.ID);
22
+ const totalSteps = arNavigationSteps.length;
23
+ const lastStep = arNavigationSteps[totalSteps - 1];
24
+ // Apply flex-auto class if current step is active OR if current step is second-to-last and the last step is active
25
+ const isCurrentStepActive = currentStep.visited_status === 'current';
26
+ const isSecondToLastWithActiveLastStep = currentStepIndex === totalSteps - 2 && lastStep?.visited_status === 'current';
27
+ return isCurrentStepActive || isSecondToLastWithActiveLastStep ? 'flex-auto' : '';
28
+ }
29
+ function isLastStep(index) {
30
+ return index === arNavigationSteps.length - 1;
49
31
  }
50
32
  function buttonPress(sAction, sButtonType) {
51
33
  onButtonPress(sAction, sButtonType);
52
34
  }
53
35
  return (_jsx("div", { children: bIsVertical ? (_jsx("div", { className: 'psdk-vertical-stepper', children: arNavigationSteps.map((mainStep, index) => {
54
- return (_jsx(React.Fragment, { children: _jsxs("div", { className: 'psdk-vertical-step', children: [_jsxs("div", { className: 'psdk-vertical-step-header', children: [_jsx("div", { className: _getVIconClass(mainStep.visited_status), children: _jsx("div", { className: 'psdk-vertical-step-icon-content', children: _jsx("span", { children: index + 1 }) }) }), _jsx("div", { className: _getVLabelClass(mainStep.visited_status), children: mainStep.name })] }), _jsxs("div", { className: _getVBodyClass(index), children: [mainStep?.steps && (_jsx("ul", { style: {
36
+ return (_jsx(React.Fragment, { children: _jsxs("div", { className: 'psdk-vertical-step', children: [_jsxs("div", { className: `psdk-vertical-step-header ${mainStep.visited_status}`, children: [_jsx("div", { className: `psdk-vertical-step-icon`, children: _jsx("div", { className: 'psdk-vertical-step-icon-content', children: _jsx("span", { children: index + 1 }) }) }), _jsx("div", { className: 'psdk-vertical-step-label', children: mainStep.visited_status === 'current' && mainStep.name })] }), _jsxs("div", { className: _getVBodyClass(index), children: [mainStep?.steps && (_jsx("ul", { style: {
55
37
  paddingInlineStart: '0rem',
56
38
  marginLeft: '-7px'
57
39
  }, children: mainStep.steps.forEach(subStep => {
58
40
  _jsxs("li", { className: 'psdk-sub-step-list', children: [_jsxs("div", { style: { display: 'inline-flex' }, children: [subStep.visited_status === 'current' && _jsx("img", { className: 'psdk-current-svg-icon', src: '{svgCurrent}' }), subStep.visited_status !== 'current' && _jsx("img", { className: 'psdk-not-current-svg-icon', src: '{svgNotCurrent}' }), subStep.visited_status === 'current' && _jsx("label", { className: 'psdk-sub-step-current', children: subStep.name }), subStep.visited_status !== 'current' && _jsx("label", { className: 'psdk-sub-step-not-current', children: subStep.name })] }), subStep.visited_status === 'current' && (_jsx("div", { children: _jsx(AssignmentCard, { getPConnect: getPConnect, itemKey: itemKey, actionButtons: actionButtons, onButtonPress: buttonPress, children: children }) }))] });
59
- }) })), !mainStep?.steps && mainStep.visited_status === 'current' && (_jsx(AssignmentCard, { getPConnect: getPConnect, itemKey: itemKey, actionButtons: actionButtons, onButtonPress: buttonPress, children: children }))] })] }) }, mainStep.actionID));
41
+ }) })), !mainStep?.steps && mainStep.visited_status === 'current' && (_jsx("div", { style: { paddingLeft: 20 }, children: _jsx(AssignmentCard, { getPConnect: getPConnect, itemKey: itemKey, actionButtons: actionButtons, onButtonPress: buttonPress, children: children }) }))] })] }) }, mainStep.actionID));
60
42
  }) })) : (_jsxs("div", { className: 'psdk-horizontal-stepper', children: [_jsx("div", { className: 'psdk-horizontal-stepper-header-container', children: arNavigationSteps.map((mainStep, index) => {
61
- return (_jsxs(React.Fragment, { children: [_jsxs("div", { className: 'psdk-horizontal-step-header', children: [_jsx("div", { className: _getHIconClass(mainStep), children: _jsx("div", { className: 'psdk-horizontal-step-icon-content', children: _jsx("span", { children: index + 1 }) }) }), _jsx("div", { className: _getHLabelClass(mainStep), children: _jsx("div", { className: 'psdk-horizontal-step-text-label', id: 'selected-label', children: mainStep.name }) })] }), _showHLine(index) && _jsx("div", { className: 'psdk-horizontal-step-line' })] }, mainStep.actionID));
43
+ return (_jsxs(React.Fragment, { children: [_jsxs("div", { className: `psdk-horizontal-step-header ${mainStep.visited_status}`, children: [_jsx("div", { className: 'psdk-horizontal-step-icon', children: _jsx("div", { className: 'psdk-horizontal-step-icon-content', children: _jsx("span", { children: index + 1 }) }) }), _jsx("div", { className: 'psdk-horizontal-step-label', children: mainStep.visited_status === 'current' && mainStep.name })] }), !isLastStep(index) && _jsx("div", { className: `psdk-horizontal-step-line ${_getAutoFlexClass(mainStep)}` })] }, mainStep.actionID));
62
44
  }) }), arNavigationSteps.map(mainStep => {
63
45
  return (_jsxs(React.Fragment, { children: [mainStep.steps && (_jsx("ul", { style: { paddingInlineStart: '0rem', marginLeft: '35px' }, children: mainStep.steps.map(subStep => (_jsxs("li", { className: 'psdk-sub-step-list', children: [_jsxs("div", { style: { display: 'inline-flex' }, children: [subStep.visited_status === 'current' && _jsx("img", { className: 'psdk-current-svg-icon', src: '{svgCurrent}' }), subStep.visited_status !== 'current' && _jsx("img", { className: 'psdk-not-current-svg-icon', src: '{svgNotCurrent}' }), subStep.visited_status === 'current' && _jsx("label", { className: 'psdk-sub-step-current', children: subStep.name }), subStep.visited_status !== 'current' && _jsx("label", { className: 'psdk-sub-step-not-current', children: subStep.name })] }), subStep.visited_status === 'current' && (_jsx(AssignmentCard, { getPConnect: getPConnect, itemKey: itemKey, actionButtons: actionButtons, onButtonPress: buttonPress, children: children }))] }))) })), !mainStep?.steps && mainStep.ID === currentStep?.ID && (_jsx(AssignmentCard, { getPConnect: getPConnect, itemKey: itemKey, actionButtons: actionButtons, onButtonPress: buttonPress, children: children }))] }, mainStep.actionID));
64
46
  })] })) }));
@@ -1 +1 @@
1
- {"version":3,"file":"MultiStep.js","sourceRoot":"","sources":["../../../../src/components/infra/MultiStep/MultiStep.tsx"],"names":[],"mappings":";AAAA,OAAO,KAA4B,MAAM,OAAO,CAAC;AAEjD,OAAO,EAAE,mBAAmB,EAAE,MAAM,2CAA2C,CAAC;AAGhF,OAAO,iBAAiB,CAAC;AAWzB,MAAM,CAAC,OAAO,UAAU,SAAS,CAAC,KAAwC;IACxE,8EAA8E;IAC9E,MAAM,cAAc,GAAG,mBAAmB,CAAC,gBAAgB,CAAC,CAAC;IAE7D,MAAM,EAAE,WAAW,EAAE,QAAQ,EAAE,OAAO,GAAG,EAAE,EAAE,aAAa,EAAE,aAAa,EAAE,GAAG,KAAK,CAAC;IACpF,M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D,KAAC,cAAc,IAAC,WAAW,EAAE,WAAW,EAAE,OAAO,EAAE,OAAO,EAAE,aAAa,EAAE,aAAa,EAAE,aAAa,EAAE,WAAW,YACjH,QAAQ,GACM,CAClB,KAxBkB,QAAQ,CAAC,QAAQ,CAyBrB,CAClB,CAAC;gBACJ,CAAC,CAAC,IACE,CACP,GACG,CACP,CAAC;AACJ,CAAC","sourcesContent":["import React, { PropsWithChildren } from 'react';\n\nimport { getComponentFromMap } from '../../../bridge/helpers/sdk_component_map';\nimport { PConnProps } from '../../../types/PConnProps';\n\nimport './MultiStep.css';\n\ninterface MultiStepProps extends PConnProps {\n // If any, enter additional props that only exist on this component\n itemKey: string;\n actionButtons: any[];\n onButtonPress: any;\n bIsVertical: boolean;\n arNavigationSteps: any;\n}\n\nexport default function MultiStep(props: PropsWithChildren<MultiStepProps>) {\n // Get emitted components from map (so we can get any override that may exist)\n const AssignmentCard = getComponentFromMap('AssignmentCard');\n\n const { getPConnect, children, itemKey = '', actionButtons, onButtonPress } = props;\n const { bIsVertical, arNavigationSteps } = props;\n\n let currentStep = arNavigationSteps.find(({ visited_status: vs }) => vs === 'current');\n if (!currentStep) {\n const lastActiveStepIndex = arNavigationSteps.findLastIndex(({ visited_status: vs }) => vs === 'success');\n currentStep = arNavigationSteps[lastActiveStepIndex >= 0 ? lastActiveStepIndex : 0];\n }\n\n // const svgCurrent = Utils.getImageSrc(\"circle-solid\", Utils.getSDKStaticConentUrl());\n // const svgNotCurrent = Utils.getImageSrc(\"circle-solid\", Utils.getSDKStaticConentUrl());\n\n function _getVIconClass(status): string {\n if (status === 'current') {\n return 'psdk-vertical-step-icon-selected';\n }\n\n return 'psdk-vertical-step-icon';\n }\n\n function _getVLabelClass(status): string {\n if (status === 'current') {\n return 'psdk-vertical-step-label-selected';\n }\n\n return 'psdk-vertical-step-label';\n }\n\n function _getVBodyClass(index: number): string {\n if (index < arNavigationSteps.length - 1) {\n return 'psdk-vertical-step-body psdk-vertical-step-line';\n }\n\n return 'psdk-vertical-step-body';\n }\n\n function _getHIconClass(step): string {\n if (step.ID === currentStep?.ID) {\n return 'psdk-horizontal-step-icon-selected';\n }\n\n return 'psdk-horizontal-step-icon';\n }\n\n function _getHLabelClass(step): string {\n if (step.ID === currentStep?.ID) {\n return 'psdk-horizontal-step-label-selected';\n }\n\n return 'psdk-horizontal-step-label';\n }\n\n function _showHLine(index: number): boolean {\n return index < arNavigationSteps.length - 1;\n }\n\n function buttonPress(sAction: string, sButtonType: string) {\n onButtonPress(sAction, sButtonType);\n }\n\n return (\n <div>\n {bIsVertical ? (\n <div className='psdk-vertical-stepper'>\n {arNavigationSteps.map((mainStep, index) => {\n return (\n <React.Fragment key={mainStep.actionID}>\n <div className='psdk-vertical-step'>\n <div className='psdk-vertical-step-header'>\n <div className={_getVIconClass(mainStep.visited_status)}>\n <div className='psdk-vertical-step-icon-content'>\n <span>{index + 1}</span>\n </div>\n </div>\n <div className={_getVLabelClass(mainStep.visited_status)}>{mainStep.name}</div>\n </div>\n <div className={_getVBodyClass(index)}>\n {mainStep?.steps && (\n <ul\n style={{\n paddingInlineStart: '0rem',\n marginLeft: '-7px'\n }}\n >\n {mainStep.steps.forEach(subStep => {\n <li className='psdk-sub-step-list'>\n <div style={{ display: 'inline-flex' }}>\n {subStep.visited_status === 'current' && <img className='psdk-current-svg-icon' src='{svgCurrent}' />}\n {subStep.visited_status !== 'current' && <img className='psdk-not-current-svg-icon' src='{svgNotCurrent}' />}\n {subStep.visited_status === 'current' && <label className='psdk-sub-step-current'>{subStep.name}</label>}\n {subStep.visited_status !== 'current' && <label className='psdk-sub-step-not-current'>{subStep.name}</label>}\n </div>\n {subStep.visited_status === 'current' && (\n <div>\n <AssignmentCard getPConnect={getPConnect} itemKey={itemKey} actionButtons={actionButtons} onButtonPress={buttonPress}>\n {children}\n </AssignmentCard>\n </div>\n )}\n </li>;\n })}\n </ul>\n )}\n {!mainStep?.steps && mainStep.visited_status === 'current' && (\n <AssignmentCard getPConnect={getPConnect} itemKey={itemKey} actionButtons={actionButtons} onButtonPress={buttonPress}>\n {children}\n </AssignmentCard>\n )}\n </div>\n </div>\n </React.Fragment>\n );\n })}\n </div>\n ) : (\n <div className='psdk-horizontal-stepper'>\n <div className='psdk-horizontal-stepper-header-container'>\n {arNavigationSteps.map((mainStep, index) => {\n return (\n <React.Fragment key={mainStep.actionID}>\n <div className='psdk-horizontal-step-header'>\n <div className={_getHIconClass(mainStep)}>\n <div className='psdk-horizontal-step-icon-content'>\n <span>{index + 1}</span>\n </div>\n </div>\n <div className={_getHLabelClass(mainStep)}>\n <div className='psdk-horizontal-step-text-label' id='selected-label'>\n {mainStep.name}\n </div>\n </div>\n </div>\n {_showHLine(index) && <div className='psdk-horizontal-step-line' />}\n </React.Fragment>\n );\n })}\n </div>\n {arNavigationSteps.map(mainStep => {\n return (\n <React.Fragment key={mainStep.actionID}>\n {mainStep.steps && (\n <ul style={{ paddingInlineStart: '0rem', marginLeft: '35px' }}>\n {mainStep.steps.map(subStep => (\n <li className='psdk-sub-step-list'>\n <div style={{ display: 'inline-flex' }}>\n {subStep.visited_status === 'current' && <img className='psdk-current-svg-icon' src='{svgCurrent}' />}\n {subStep.visited_status !== 'current' && <img className='psdk-not-current-svg-icon' src='{svgNotCurrent}' />}\n {subStep.visited_status === 'current' && <label className='psdk-sub-step-current'>{subStep.name}</label>}\n {subStep.visited_status !== 'current' && <label className='psdk-sub-step-not-current'>{subStep.name}</label>}\n </div>\n {subStep.visited_status === 'current' && (\n <AssignmentCard getPConnect={getPConnect} itemKey={itemKey} actionButtons={actionButtons} onButtonPress={buttonPress}>\n {children}\n </AssignmentCard>\n )}\n </li>\n ))}\n </ul>\n )}\n {!mainStep?.steps && mainStep.ID === currentStep?.ID && (\n <AssignmentCard getPConnect={getPConnect} itemKey={itemKey} actionButtons={actionButtons} onButtonPress={buttonPress}>\n {children}\n </AssignmentCard>\n )}\n </React.Fragment>\n );\n })}\n </div>\n )}\n </div>\n );\n}\n"]}
1
+ {"version":3,"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,EAAC,2BAA2B,EAAC,GAAG,EAAC,iBAAiB,GAAG,EAC3G,OAAO,CAAC,cAAc,KAAK,SAAS,IAAI,gBAAO,SAAS,EAAC,uBAAuB,YAAE,OAAO,CAAC,IAAI,GAAS,EACvG,OAAO,CAAC,cAAc,KAAK,SAAS,IAAI,gBAAO,SAAS,EAAC,2BAA2B,YAAE,OAAO,CAAC,IAAI,GAAS,IACxG,EACL,OAAO,CAAC,cAAc,KAAK,SAAS,IAAI,CACvC,KAAC,cAAc,IAAC,WAAW,EAAE,WAAW,EAAE,OAAO,EAAE,OAAO,EAAE,aAAa,EAAE,aAAa,EAAE,aAAa,EAAE,WAAW,YACjH,QAAQ,GACM,CAClB,IACE,CACN,CAAC,GACC,CACN,EACA,CAAC,QAAQ,EAAE,KAAK,IAAI,QAAQ,CAAC,EAAE,KAAK,WAAW,EAAE,EAAE,IAAI,CACtD,KAAC,cAAc,IAAC,WAAW,EAAE,WAAW,EAAE,OAAO,EAAE,OAAO,EAAE,aAAa,EAAE,aAAa,EAAE,aAAa,EAAE,WAAW,YACjH,QAAQ,GACM,CAClB,KAxBkB,QAAQ,CAAC,QAAQ,CAyBrB,CAClB,CAAC;gBACJ,CAAC,CAAC,IACE,CACP,GACG,CACP,CAAC;AACJ,CAAC","sourcesContent":["import React, { type PropsWithChildren } from 'react';\n\nimport { getComponentFromMap } from '../../../bridge/helpers/sdk_component_map';\nimport type { PConnProps } from '../../../types/PConnProps';\n\nimport './MultiStep.css';\n\ninterface MultiStepProps extends PConnProps {\n // If any, enter additional props that only exist on this component\n itemKey: string;\n actionButtons: any[];\n onButtonPress: any;\n bIsVertical: boolean;\n arNavigationSteps: any;\n}\n\nexport default function MultiStep(props: PropsWithChildren<MultiStepProps>) {\n // Get emitted components from map (so we can get any override that may exist)\n const AssignmentCard = getComponentFromMap('AssignmentCard');\n\n const { getPConnect, children, itemKey = '', actionButtons, onButtonPress } = props;\n const { bIsVertical, arNavigationSteps } = props;\n\n let currentStep = arNavigationSteps.find(({ visited_status: vs }) => vs === 'current');\n if (!currentStep) {\n const lastActiveStepIndex = arNavigationSteps.findLastIndex(({ visited_status: vs }) => vs === 'success');\n currentStep = arNavigationSteps[lastActiveStepIndex >= 0 ? lastActiveStepIndex : 0];\n }\n\n function _getVBodyClass(index: number): string {\n const baseClass = 'psdk-vertical-step-body';\n const isNotLastStep = index < arNavigationSteps.length - 1;\n\n return isNotLastStep ? `${baseClass} psdk-vertical-step-line` : baseClass;\n }\n\n function _getAutoFlexClass(currentStep): string {\n const currentStepIndex = arNavigationSteps.findIndex(step => step.ID === currentStep?.ID);\n const totalSteps = arNavigationSteps.length;\n const lastStep = arNavigationSteps[totalSteps - 1];\n\n // Apply flex-auto class if current step is active OR if current step is second-to-last and the last step is active\n const isCurrentStepActive = currentStep.visited_status === 'current';\n const isSecondToLastWithActiveLastStep = currentStepIndex === totalSteps - 2 && lastStep?.visited_status === 'current';\n\n return isCurrentStepActive || isSecondToLastWithActiveLastStep ? 'flex-auto' : '';\n }\n\n function isLastStep(index: number): boolean {\n return index === arNavigationSteps.length - 1;\n }\n\n function buttonPress(sAction: string, sButtonType: string) {\n onButtonPress(sAction, sButtonType);\n }\n\n return (\n <div>\n {bIsVertical ? (\n <div className='psdk-vertical-stepper'>\n {arNavigationSteps.map((mainStep, index) => {\n return (\n <React.Fragment key={mainStep.actionID}>\n <div className='psdk-vertical-step'>\n <div className={`psdk-vertical-step-header ${mainStep.visited_status}`}>\n <div className={`psdk-vertical-step-icon`}>\n <div className='psdk-vertical-step-icon-content'>\n <span>{index + 1}</span>\n </div>\n </div>\n <div className='psdk-vertical-step-label'>{mainStep.visited_status === 'current' && mainStep.name}</div>\n </div>\n <div className={_getVBodyClass(index)}>\n {mainStep?.steps && (\n <ul\n style={{\n paddingInlineStart: '0rem',\n marginLeft: '-7px'\n }}\n >\n {mainStep.steps.forEach(subStep => {\n <li className='psdk-sub-step-list'>\n <div style={{ display: 'inline-flex' }}>\n {subStep.visited_status === 'current' && <img className='psdk-current-svg-icon' src='{svgCurrent}' />}\n {subStep.visited_status !== 'current' && <img className='psdk-not-current-svg-icon' src='{svgNotCurrent}' />}\n {subStep.visited_status === 'current' && <label className='psdk-sub-step-current'>{subStep.name}</label>}\n {subStep.visited_status !== 'current' && <label className='psdk-sub-step-not-current'>{subStep.name}</label>}\n </div>\n {subStep.visited_status === 'current' && (\n <div>\n <AssignmentCard getPConnect={getPConnect} itemKey={itemKey} actionButtons={actionButtons} onButtonPress={buttonPress}>\n {children}\n </AssignmentCard>\n </div>\n )}\n </li>;\n })}\n </ul>\n )}\n {!mainStep?.steps && mainStep.visited_status === 'current' && (\n <div style={{ paddingLeft: 20 }}>\n <AssignmentCard getPConnect={getPConnect} itemKey={itemKey} actionButtons={actionButtons} onButtonPress={buttonPress}>\n {children}\n </AssignmentCard>\n </div>\n )}\n </div>\n </div>\n </React.Fragment>\n );\n })}\n </div>\n ) : (\n <div className='psdk-horizontal-stepper'>\n <div className='psdk-horizontal-stepper-header-container'>\n {arNavigationSteps.map((mainStep, index) => {\n return (\n <React.Fragment key={mainStep.actionID}>\n <div className={`psdk-horizontal-step-header ${mainStep.visited_status}`}>\n <div className='psdk-horizontal-step-icon'>\n <div className='psdk-horizontal-step-icon-content'>\n <span>{index + 1}</span>\n </div>\n </div>\n <div className='psdk-horizontal-step-label'>{mainStep.visited_status === 'current' && mainStep.name}</div>\n </div>\n {!isLastStep(index) && <div className={`psdk-horizontal-step-line ${_getAutoFlexClass(mainStep)}`} />}\n </React.Fragment>\n );\n })}\n </div>\n {arNavigationSteps.map(mainStep => {\n return (\n <React.Fragment key={mainStep.actionID}>\n {mainStep.steps && (\n <ul style={{ paddingInlineStart: '0rem', marginLeft: '35px' }}>\n {mainStep.steps.map(subStep => (\n <li className='psdk-sub-step-list'>\n <div style={{ display: 'inline-flex' }}>\n {subStep.visited_status === 'current' && <img className='psdk-current-svg-icon' src='{svgCurrent}' />}\n {subStep.visited_status !== 'current' && <img className='psdk-not-current-svg-icon' src='{svgNotCurrent}' />}\n {subStep.visited_status === 'current' && <label className='psdk-sub-step-current'>{subStep.name}</label>}\n {subStep.visited_status !== 'current' && <label className='psdk-sub-step-not-current'>{subStep.name}</label>}\n </div>\n {subStep.visited_status === 'current' && (\n <AssignmentCard getPConnect={getPConnect} itemKey={itemKey} actionButtons={actionButtons} onButtonPress={buttonPress}>\n {children}\n </AssignmentCard>\n )}\n </li>\n ))}\n </ul>\n )}\n {!mainStep?.steps && mainStep.ID === currentStep?.ID && (\n <AssignmentCard getPConnect={getPConnect} itemKey={itemKey} actionButtons={actionButtons} onButtonPress={buttonPress}>\n {children}\n </AssignmentCard>\n )}\n </React.Fragment>\n );\n })}\n </div>\n )}\n </div>\n );\n}\n"]}
@@ -154,7 +154,7 @@
154
154
  text-align: center;
155
155
  display: inline-flex;
156
156
  background: var(--app-neutral-color);
157
- color: white;
157
+ color: var(--app-text-color);
158
158
  font-weight: normal;
159
159
  font-size: 1rem;
160
160
  }
@@ -1,4 +1,4 @@
1
- import { PConnProps } from '../../../types/PConnProps';
1
+ import type { PConnProps } from '../../../types/PConnProps';
2
2
  import './NavBar.css';
3
3
  interface NavBarProps extends PConnProps {
4
4
  appName?: string;
@@ -1 +1 @@
1
- {"version":3,"file":"NavBar.d.ts","sourceRoot":"","sources":["../../../../src/components/infra/NavBar/NavBar.tsx"],"names":[],"mappings":"AAsCA,OAAO,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AAEvD,OAAO,cAAc,CAAC;AAEtB,UAAU,WAAY,SAAQ,UAAU;IAGtC,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,KAAK,CAAC,EAAE,GAAG,EAAE,CAAC;IACd,SAAS,EAAE,GAAG,EAAE,CAAC;IACjB,KAAK,CAAC,EAAE,GAAG,CAAC;CACb;AAiED,MAAM,CAAC,OAAO,UAAU,MAAM,CAAC,KAAK,EAAE,WAAW,2CAuLhD"}
1
+ {"version":3,"file":"NavBar.d.ts","sourceRoot":"","sources":["../../../../src/components/infra/NavBar/NavBar.tsx"],"names":[],"mappings":"AAsCA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AAE5D,OAAO,cAAc,CAAC;AAEtB,UAAU,WAAY,SAAQ,UAAU;IAGtC,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,KAAK,CAAC,EAAE,GAAG,EAAE,CAAC;IACd,SAAS,EAAE,GAAG,EAAE,CAAC;IACjB,KAAK,CAAC,EAAE,GAAG,CAAC;CACb;AAkED,MAAM,CAAC,OAAO,UAAU,MAAM,CAAC,KAAK,EAAE,WAAW,2CAqMhD"}