udp-react-enterprise-component-library 27.0.0-next.11 → 27.0.0-next.13

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 (670) hide show
  1. package/dist/.tsbuildinfo +1 -1
  2. package/dist/UI/feedback/PageLoading.d.ts +11 -1
  3. package/dist/UI/feedback/PageLoading.d.ts.map +1 -1
  4. package/dist/UI/feedback/PageLoading.js +12 -12
  5. package/dist/UI/feedback/PageLoading.js.map +1 -1
  6. package/dist/UI/feedback/PageLoading.mjs +35 -21
  7. package/dist/UI/feedback/PageLoading.mjs.map +1 -1
  8. package/dist/UI/feedback/PageLoading.module.css +9 -0
  9. package/dist/UI/fluent-web-components/UdpIconPicker.d.ts +4 -1
  10. package/dist/UI/fluent-web-components/UdpIconPicker.d.ts.map +1 -1
  11. package/dist/UI/fluent-web-components/UdpIconPicker.js +2 -2
  12. package/dist/UI/fluent-web-components/UdpIconPicker.js.map +1 -1
  13. package/dist/UI/fluent-web-components/UdpIconPicker.mjs +32 -28
  14. package/dist/UI/fluent-web-components/UdpIconPicker.mjs.map +1 -1
  15. package/dist/UI/fluent-web-components/UdpLink.d.ts +6 -0
  16. package/dist/UI/fluent-web-components/UdpLink.d.ts.map +1 -1
  17. package/dist/UI/fluent-web-components/UdpLink.js.map +1 -1
  18. package/dist/UI/fluent-web-components/UdpLink.mjs.map +1 -1
  19. package/dist/UI/fluent-web-components/index.d.ts +10 -0
  20. package/dist/UI/fluent-web-components/index.d.ts.map +1 -1
  21. package/dist/UI/fluent-web-components/index.js +10 -0
  22. package/dist/UI/fluent-web-components/index.js.map +1 -1
  23. package/dist/UI/fluent-web-components/shell/UdpShell.d.ts +10 -0
  24. package/dist/UI/fluent-web-components/shell/UdpShell.d.ts.map +1 -0
  25. package/dist/UI/fluent-web-components/shell/UdpShell.js +7 -0
  26. package/dist/UI/fluent-web-components/shell/UdpShell.js.map +1 -0
  27. package/dist/UI/fluent-web-components/shell/UdpShell.mjs +19 -0
  28. package/dist/UI/fluent-web-components/shell/UdpShell.mjs.map +1 -0
  29. package/dist/UI/fluent-web-components/shell/UdpShellAppBar.d.ts +11 -0
  30. package/dist/UI/fluent-web-components/shell/UdpShellAppBar.d.ts.map +1 -0
  31. package/dist/UI/fluent-web-components/shell/UdpShellAppBar.js +7 -0
  32. package/dist/UI/fluent-web-components/shell/UdpShellAppBar.js.map +1 -0
  33. package/dist/UI/fluent-web-components/shell/UdpShellAppBar.mjs +19 -0
  34. package/dist/UI/fluent-web-components/shell/UdpShellAppBar.mjs.map +1 -0
  35. package/dist/UI/fluent-web-components/shell/UdpShellAppBarAction.d.ts +16 -0
  36. package/dist/UI/fluent-web-components/shell/UdpShellAppBarAction.d.ts.map +1 -0
  37. package/dist/UI/fluent-web-components/shell/UdpShellAppBarAction.js +7 -0
  38. package/dist/UI/fluent-web-components/shell/UdpShellAppBarAction.js.map +1 -0
  39. package/dist/UI/fluent-web-components/shell/UdpShellAppBarAction.mjs +19 -0
  40. package/dist/UI/fluent-web-components/shell/UdpShellAppBarAction.mjs.map +1 -0
  41. package/dist/UI/fluent-web-components/shell/UdpShellNav.d.ts +21 -0
  42. package/dist/UI/fluent-web-components/shell/UdpShellNav.d.ts.map +1 -0
  43. package/dist/UI/fluent-web-components/shell/UdpShellNav.js +7 -0
  44. package/dist/UI/fluent-web-components/shell/UdpShellNav.js.map +1 -0
  45. package/dist/UI/fluent-web-components/shell/UdpShellNav.mjs +19 -0
  46. package/dist/UI/fluent-web-components/shell/UdpShellNav.mjs.map +1 -0
  47. package/dist/UI/fluent-web-components/shell/UdpShellRibbon.d.ts +10 -0
  48. package/dist/UI/fluent-web-components/shell/UdpShellRibbon.d.ts.map +1 -0
  49. package/dist/UI/fluent-web-components/shell/UdpShellRibbon.js +7 -0
  50. package/dist/UI/fluent-web-components/shell/UdpShellRibbon.js.map +1 -0
  51. package/dist/UI/fluent-web-components/shell/UdpShellRibbon.mjs +19 -0
  52. package/dist/UI/fluent-web-components/shell/UdpShellRibbon.mjs.map +1 -0
  53. package/dist/UI/fluent-web-components/shell/UdpShellSidebar.d.ts +13 -0
  54. package/dist/UI/fluent-web-components/shell/UdpShellSidebar.d.ts.map +1 -0
  55. package/dist/UI/fluent-web-components/shell/UdpShellSidebar.js +7 -0
  56. package/dist/UI/fluent-web-components/shell/UdpShellSidebar.js.map +1 -0
  57. package/dist/UI/fluent-web-components/shell/UdpShellSidebar.mjs +19 -0
  58. package/dist/UI/fluent-web-components/shell/UdpShellSidebar.mjs.map +1 -0
  59. package/dist/UI/fluent-web-components/types.d.ts +2 -0
  60. package/dist/UI/fluent-web-components/types.d.ts.map +1 -1
  61. package/dist/UI/widgets/library/InquiryFindRecordsWidget/InquiryFindRecordsWidget.d.ts +16 -3
  62. package/dist/UI/widgets/library/InquiryFindRecordsWidget/InquiryFindRecordsWidget.d.ts.map +1 -1
  63. package/dist/UI/widgets/library/InquiryFindRecordsWidget/InquiryFindRecordsWidget.js +36 -13
  64. package/dist/UI/widgets/library/InquiryFindRecordsWidget/InquiryFindRecordsWidget.js.map +1 -1
  65. package/dist/UI/widgets/library/InquiryFindRecordsWidget/InquiryFindRecordsWidget.mjs +119 -62
  66. package/dist/UI/widgets/library/InquiryFindRecordsWidget/InquiryFindRecordsWidget.mjs.map +1 -1
  67. package/dist/UI/widgets/library/InquiryFindRecordsWidget/index.mjs +3 -2
  68. package/dist/UI/widgets/library/InquiryRecentRecordsWidget/InquiryRecentRecordsWidget.d.ts +9 -2
  69. package/dist/UI/widgets/library/InquiryRecentRecordsWidget/InquiryRecentRecordsWidget.d.ts.map +1 -1
  70. package/dist/UI/widgets/library/InquiryRecentRecordsWidget/InquiryRecentRecordsWidget.js +18 -18
  71. package/dist/UI/widgets/library/InquiryRecentRecordsWidget/InquiryRecentRecordsWidget.js.map +1 -1
  72. package/dist/UI/widgets/library/InquiryRecentRecordsWidget/InquiryRecentRecordsWidget.mjs +79 -67
  73. package/dist/UI/widgets/library/InquiryRecentRecordsWidget/InquiryRecentRecordsWidget.mjs.map +1 -1
  74. package/dist/UI/widgets/library/InquiryRemindersWidget/InquiryRemindersWidget.d.ts +8 -2
  75. package/dist/UI/widgets/library/InquiryRemindersWidget/InquiryRemindersWidget.d.ts.map +1 -1
  76. package/dist/UI/widgets/library/InquiryRemindersWidget/InquiryRemindersWidget.js +32 -16
  77. package/dist/UI/widgets/library/InquiryRemindersWidget/InquiryRemindersWidget.js.map +1 -1
  78. package/dist/UI/widgets/library/InquiryRemindersWidget/InquiryRemindersWidget.mjs +129 -102
  79. package/dist/UI/widgets/library/InquiryRemindersWidget/InquiryRemindersWidget.mjs.map +1 -1
  80. package/dist/UI/widgets/library/InquiryRemindersWidget/reminderRowModel.d.ts +3 -2
  81. package/dist/UI/widgets/library/InquiryRemindersWidget/reminderRowModel.d.ts.map +1 -1
  82. package/dist/UI/widgets/library/InquiryRemindersWidget/reminderRowModel.js +11 -12
  83. package/dist/UI/widgets/library/InquiryRemindersWidget/reminderRowModel.js.map +1 -1
  84. package/dist/UI/widgets/library/InquiryRemindersWidget/reminderRowModel.mjs +6 -4
  85. package/dist/UI/widgets/library/InquiryRemindersWidget/reminderRowModel.mjs.map +1 -1
  86. package/dist/UI/widgets/library/InquiryRemindersWidget/useInquiryReminders.d.ts +2 -19
  87. package/dist/UI/widgets/library/InquiryRemindersWidget/useInquiryReminders.d.ts.map +1 -1
  88. package/dist/UI/widgets/library/InquiryRemindersWidget/useInquiryReminders.js +4 -5
  89. package/dist/UI/widgets/library/InquiryRemindersWidget/useInquiryReminders.js.map +1 -1
  90. package/dist/UI/widgets/library/InquiryRemindersWidget/useInquiryReminders.mjs +5 -4
  91. package/dist/UI/widgets/library/InquiryRemindersWidget/useInquiryReminders.mjs.map +1 -1
  92. package/dist/actionPanels/index.d.ts +0 -2
  93. package/dist/actionPanels/index.d.ts.map +1 -1
  94. package/dist/actionPanels/index.js +0 -2
  95. package/dist/actionPanels/index.js.map +1 -1
  96. package/dist/actionPanels/panelActionFields.d.ts +9 -26
  97. package/dist/actionPanels/panelActionFields.d.ts.map +1 -1
  98. package/dist/actionPanels/panelActionFields.js +32 -55
  99. package/dist/actionPanels/panelActionFields.js.map +1 -1
  100. package/dist/actionPanels/panelActionFields.mjs +159 -375
  101. package/dist/actionPanels/panelActionFields.mjs.map +1 -1
  102. package/dist/actionPanels/panelOperations.d.ts +15 -41
  103. package/dist/actionPanels/panelOperations.d.ts.map +1 -1
  104. package/dist/actionPanels/panelOperations.js +51 -89
  105. package/dist/actionPanels/panelOperations.js.map +1 -1
  106. package/dist/actionPanels/panelOperations.mjs +37 -92
  107. package/dist/actionPanels/panelOperations.mjs.map +1 -1
  108. package/dist/aiAssistant/aiFeatures.d.ts +1 -1
  109. package/dist/aiAssistant/aiFeatures.d.ts.map +1 -1
  110. package/dist/aiAssistant/aiFeatures.js +5 -0
  111. package/dist/aiAssistant/aiFeatures.js.map +1 -1
  112. package/dist/aiAssistant/aiFeatures.mjs +5 -1
  113. package/dist/aiAssistant/aiFeatures.mjs.map +1 -1
  114. package/dist/dashboard/DashboardWidget.d.ts.map +1 -1
  115. package/dist/dashboard/DashboardWidget.js +1 -1
  116. package/dist/dashboard/DashboardWidget.js.map +1 -1
  117. package/dist/dashboard/DashboardWidget.mjs +24 -21
  118. package/dist/dashboard/DashboardWidget.mjs.map +1 -1
  119. package/dist/domain/actionPanel/actionTypeMeta.d.ts +15 -2
  120. package/dist/domain/actionPanel/actionTypeMeta.d.ts.map +1 -1
  121. package/dist/domain/actionPanel/actionTypeMeta.js +21 -2
  122. package/dist/domain/actionPanel/actionTypeMeta.js.map +1 -1
  123. package/dist/domain/actionPanel/actionTypeMeta.mjs +18 -3
  124. package/dist/domain/actionPanel/actionTypeMeta.mjs.map +1 -1
  125. package/dist/domain/actionPanel/buttonOrder.d.ts +67 -0
  126. package/dist/domain/actionPanel/buttonOrder.d.ts.map +1 -0
  127. package/dist/domain/actionPanel/buttonOrder.js +105 -0
  128. package/dist/domain/actionPanel/buttonOrder.js.map +1 -0
  129. package/dist/domain/actionPanel/buttonOrder.mjs +90 -0
  130. package/dist/domain/actionPanel/buttonOrder.mjs.map +1 -0
  131. package/dist/domain/actionPanel/index.d.ts +1 -0
  132. package/dist/domain/actionPanel/index.d.ts.map +1 -1
  133. package/dist/domain/actionPanel/index.js +1 -0
  134. package/dist/domain/actionPanel/index.js.map +1 -1
  135. package/dist/domain/actionPanel/index.mjs +4 -3
  136. package/dist/domain/actionPanel/serialize.d.ts +6 -2
  137. package/dist/domain/actionPanel/serialize.d.ts.map +1 -1
  138. package/dist/domain/actionPanel/serialize.js +10 -3
  139. package/dist/domain/actionPanel/serialize.js.map +1 -1
  140. package/dist/domain/actionPanel/serialize.mjs +7 -3
  141. package/dist/domain/actionPanel/serialize.mjs.map +1 -1
  142. package/dist/domain/actionPanel/types.d.ts +24 -8
  143. package/dist/domain/actionPanel/types.d.ts.map +1 -1
  144. package/dist/domain/actionPanel/types.js.map +1 -1
  145. package/dist/domain/actionPanel/types.mjs.map +1 -1
  146. package/dist/domain/inquiryTree/describe.d.ts +15 -3
  147. package/dist/domain/inquiryTree/describe.d.ts.map +1 -1
  148. package/dist/domain/inquiryTree/describe.js +32 -28
  149. package/dist/domain/inquiryTree/describe.js.map +1 -1
  150. package/dist/domain/inquiryTree/describe.mjs +34 -16
  151. package/dist/domain/inquiryTree/describe.mjs.map +1 -1
  152. package/dist/domain/inquiryTree/displayTree.d.ts +75 -97
  153. package/dist/domain/inquiryTree/displayTree.d.ts.map +1 -1
  154. package/dist/domain/inquiryTree/displayTree.js +418 -551
  155. package/dist/domain/inquiryTree/displayTree.js.map +1 -1
  156. package/dist/domain/inquiryTree/displayTree.mjs +345 -414
  157. package/dist/domain/inquiryTree/displayTree.mjs.map +1 -1
  158. package/dist/domain/inquiryTree/groups.d.ts +2 -0
  159. package/dist/domain/inquiryTree/groups.d.ts.map +1 -1
  160. package/dist/domain/inquiryTree/groups.js.map +1 -1
  161. package/dist/domain/inquiryTree/groups.mjs.map +1 -1
  162. package/dist/domain/inquiryTree/index.d.ts +1 -1
  163. package/dist/domain/inquiryTree/index.d.ts.map +1 -1
  164. package/dist/domain/inquiryTree/index.js +1 -1
  165. package/dist/domain/inquiryTree/index.js.map +1 -1
  166. package/dist/domain/inquiryTree/index.mjs +12 -12
  167. package/dist/domain/inquiryTree/lazyLoad.d.ts +20 -129
  168. package/dist/domain/inquiryTree/lazyLoad.d.ts.map +1 -1
  169. package/dist/domain/inquiryTree/lazyLoad.js +48 -233
  170. package/dist/domain/inquiryTree/lazyLoad.js.map +1 -1
  171. package/dist/domain/inquiryTree/lazyLoad.mjs +32 -187
  172. package/dist/domain/inquiryTree/lazyLoad.mjs.map +1 -1
  173. package/dist/domain/inquiryTree/legalChildren.d.ts +13 -14
  174. package/dist/domain/inquiryTree/legalChildren.d.ts.map +1 -1
  175. package/dist/domain/inquiryTree/legalChildren.js +21 -42
  176. package/dist/domain/inquiryTree/legalChildren.js.map +1 -1
  177. package/dist/domain/inquiryTree/legalChildren.mjs +19 -37
  178. package/dist/domain/inquiryTree/legalChildren.mjs.map +1 -1
  179. package/dist/domain/inquiryTree/names.d.ts +38 -0
  180. package/dist/domain/inquiryTree/names.d.ts.map +1 -0
  181. package/dist/domain/inquiryTree/names.js +64 -0
  182. package/dist/domain/inquiryTree/names.js.map +1 -0
  183. package/dist/domain/inquiryTree/names.mjs +56 -0
  184. package/dist/domain/inquiryTree/names.mjs.map +1 -0
  185. package/dist/domain/inquiryTree/operations.d.ts +6 -2
  186. package/dist/domain/inquiryTree/operations.d.ts.map +1 -1
  187. package/dist/domain/inquiryTree/operations.js +17 -16
  188. package/dist/domain/inquiryTree/operations.js.map +1 -1
  189. package/dist/domain/inquiryTree/operations.mjs +14 -11
  190. package/dist/domain/inquiryTree/operations.mjs.map +1 -1
  191. package/dist/domain/inquiryTree/rules.d.ts +3 -4
  192. package/dist/domain/inquiryTree/rules.d.ts.map +1 -1
  193. package/dist/domain/inquiryTree/rules.js +3 -13
  194. package/dist/domain/inquiryTree/rules.js.map +1 -1
  195. package/dist/domain/inquiryTree/rules.mjs +3 -9
  196. package/dist/domain/inquiryTree/rules.mjs.map +1 -1
  197. package/dist/domain/inquiryTree/runtime.d.ts +23 -16
  198. package/dist/domain/inquiryTree/runtime.d.ts.map +1 -1
  199. package/dist/domain/inquiryTree/runtime.js +46 -54
  200. package/dist/domain/inquiryTree/runtime.js.map +1 -1
  201. package/dist/domain/inquiryTree/runtime.mjs +31 -26
  202. package/dist/domain/inquiryTree/runtime.mjs.map +1 -1
  203. package/dist/domain/inquiryTree/serialize.d.ts +20 -29
  204. package/dist/domain/inquiryTree/serialize.d.ts.map +1 -1
  205. package/dist/domain/inquiryTree/serialize.js +93 -205
  206. package/dist/domain/inquiryTree/serialize.js.map +1 -1
  207. package/dist/domain/inquiryTree/serialize.mjs +89 -180
  208. package/dist/domain/inquiryTree/serialize.mjs.map +1 -1
  209. package/dist/domain/inquiryTree/types.d.ts +146 -65
  210. package/dist/domain/inquiryTree/types.d.ts.map +1 -1
  211. package/dist/domain/inquiryTree/types.js +5 -0
  212. package/dist/domain/inquiryTree/types.js.map +1 -1
  213. package/dist/domain/inquiryTree/types.mjs +3 -1
  214. package/dist/domain/inquiryTree/types.mjs.map +1 -1
  215. package/dist/domain/inquiryTree/validate.d.ts +9 -2
  216. package/dist/domain/inquiryTree/validate.d.ts.map +1 -1
  217. package/dist/domain/inquiryTree/validate.js +30 -58
  218. package/dist/domain/inquiryTree/validate.js.map +1 -1
  219. package/dist/domain/inquiryTree/validate.mjs +29 -44
  220. package/dist/domain/inquiryTree/validate.mjs.map +1 -1
  221. package/dist/domain/inquiryTree/view.d.ts +8 -12
  222. package/dist/domain/inquiryTree/view.d.ts.map +1 -1
  223. package/dist/domain/inquiryTree/view.js +40 -66
  224. package/dist/domain/inquiryTree/view.js.map +1 -1
  225. package/dist/domain/inquiryTree/view.mjs +30 -60
  226. package/dist/domain/inquiryTree/view.mjs.map +1 -1
  227. package/dist/domain/inquiryTree/waveLoad.d.ts +32 -48
  228. package/dist/domain/inquiryTree/waveLoad.d.ts.map +1 -1
  229. package/dist/domain/inquiryTree/waveLoad.js +75 -90
  230. package/dist/domain/inquiryTree/waveLoad.js.map +1 -1
  231. package/dist/domain/inquiryTree/waveLoad.mjs +54 -60
  232. package/dist/domain/inquiryTree/waveLoad.mjs.map +1 -1
  233. package/dist/domain/inquiryTree/wireString.d.ts +5 -0
  234. package/dist/domain/inquiryTree/wireString.d.ts.map +1 -1
  235. package/dist/domain/inquiryTree/wireString.js +11 -0
  236. package/dist/domain/inquiryTree/wireString.js.map +1 -1
  237. package/dist/domain/inquiryTree/wireString.mjs +10 -1
  238. package/dist/domain/inquiryTree/wireString.mjs.map +1 -1
  239. package/dist/domain/nodeView/index.mjs +2 -2
  240. package/dist/domain/nodeView/model.d.ts +35 -30
  241. package/dist/domain/nodeView/model.d.ts.map +1 -1
  242. package/dist/domain/nodeView/model.js +108 -69
  243. package/dist/domain/nodeView/model.js.map +1 -1
  244. package/dist/domain/nodeView/model.mjs +86 -36
  245. package/dist/domain/nodeView/model.mjs.map +1 -1
  246. package/dist/errorBoundary/ErrorBoundary.d.ts +17 -1
  247. package/dist/errorBoundary/ErrorBoundary.d.ts.map +1 -1
  248. package/dist/errorBoundary/ErrorBoundary.js +25 -21
  249. package/dist/errorBoundary/ErrorBoundary.js.map +1 -1
  250. package/dist/errorBoundary/ErrorBoundary.mjs +22 -34
  251. package/dist/errorBoundary/ErrorBoundary.mjs.map +1 -1
  252. package/dist/errorBoundary/ErrorBoundaryFallback.d.ts +10 -0
  253. package/dist/errorBoundary/ErrorBoundaryFallback.d.ts.map +1 -0
  254. package/dist/errorBoundary/ErrorBoundaryFallback.js +8 -0
  255. package/dist/errorBoundary/ErrorBoundaryFallback.js.map +1 -0
  256. package/dist/errorBoundary/ErrorBoundaryFallback.mjs +91 -0
  257. package/dist/errorBoundary/ErrorBoundaryFallback.mjs.map +1 -0
  258. package/dist/icons/legacyIconNames.d.ts.map +1 -1
  259. package/dist/icons/legacyIconNames.js +46 -1
  260. package/dist/icons/legacyIconNames.js.map +1 -1
  261. package/dist/icons/legacyIconNames.mjs +46 -1
  262. package/dist/icons/legacyIconNames.mjs.map +1 -1
  263. package/dist/index.mjs +19 -14
  264. package/dist/inquiry/Inquiry.d.ts +3 -0
  265. package/dist/inquiry/Inquiry.d.ts.map +1 -1
  266. package/dist/inquiry/Inquiry.js +3 -0
  267. package/dist/inquiry/Inquiry.js.map +1 -1
  268. package/dist/inquiry/Inquiry.mjs +3 -0
  269. package/dist/inquiry/Inquiry.mjs.map +1 -1
  270. package/dist/inquiry/InquiryContainer.d.ts.map +1 -1
  271. package/dist/inquiry/InquiryContainer.js +22 -21
  272. package/dist/inquiry/InquiryContainer.js.map +1 -1
  273. package/dist/inquiry/InquiryContainer.mjs +14 -10
  274. package/dist/inquiry/InquiryContainer.mjs.map +1 -1
  275. package/dist/inquiry/InquiryTreeMenu.d.ts.map +1 -1
  276. package/dist/inquiry/InquiryTreeMenu.js +14 -23
  277. package/dist/inquiry/InquiryTreeMenu.js.map +1 -1
  278. package/dist/inquiry/InquiryTreeMenu.mjs +20 -20
  279. package/dist/inquiry/InquiryTreeMenu.mjs.map +1 -1
  280. package/dist/inquiry/v2/InquiryV2.d.ts +8 -6
  281. package/dist/inquiry/v2/InquiryV2.d.ts.map +1 -1
  282. package/dist/inquiry/v2/InquiryV2.js +45 -24
  283. package/dist/inquiry/v2/InquiryV2.js.map +1 -1
  284. package/dist/inquiry/v2/InquiryV2.mjs +108 -61
  285. package/dist/inquiry/v2/InquiryV2.mjs.map +1 -1
  286. package/dist/inquiry/v2/InquiryV2.module.css +60 -15
  287. package/dist/inquiry/v2/InquiryWorkspace.d.ts +9 -9
  288. package/dist/inquiry/v2/InquiryWorkspace.d.ts.map +1 -1
  289. package/dist/inquiry/v2/InquiryWorkspace.js +531 -408
  290. package/dist/inquiry/v2/InquiryWorkspace.js.map +1 -1
  291. package/dist/inquiry/v2/InquiryWorkspace.mjs +524 -408
  292. package/dist/inquiry/v2/InquiryWorkspace.mjs.map +1 -1
  293. package/dist/inquiry/v2/ai/InquiryV2Copilot.d.ts +3 -2
  294. package/dist/inquiry/v2/ai/InquiryV2Copilot.d.ts.map +1 -1
  295. package/dist/inquiry/v2/ai/InquiryV2Copilot.js +20 -37
  296. package/dist/inquiry/v2/ai/InquiryV2Copilot.js.map +1 -1
  297. package/dist/inquiry/v2/ai/InquiryV2Copilot.mjs +19 -31
  298. package/dist/inquiry/v2/ai/InquiryV2Copilot.mjs.map +1 -1
  299. package/dist/inquiry/v2/ai/copilotModel.d.ts +6 -14
  300. package/dist/inquiry/v2/ai/copilotModel.d.ts.map +1 -1
  301. package/dist/inquiry/v2/ai/copilotModel.js +35 -87
  302. package/dist/inquiry/v2/ai/copilotModel.js.map +1 -1
  303. package/dist/inquiry/v2/ai/copilotModel.mjs +23 -47
  304. package/dist/inquiry/v2/ai/copilotModel.mjs.map +1 -1
  305. package/dist/inquiry/v2/api/queries.d.ts +46 -73
  306. package/dist/inquiry/v2/api/queries.d.ts.map +1 -1
  307. package/dist/inquiry/v2/api/queries.js +151 -210
  308. package/dist/inquiry/v2/api/queries.js.map +1 -1
  309. package/dist/inquiry/v2/api/queries.mjs +227 -183
  310. package/dist/inquiry/v2/api/queries.mjs.map +1 -1
  311. package/dist/inquiry/v2/capabilities/actions/ActionsCapability.d.ts.map +1 -1
  312. package/dist/inquiry/v2/capabilities/actions/ActionsCapability.js +103 -32
  313. package/dist/inquiry/v2/capabilities/actions/ActionsCapability.js.map +1 -1
  314. package/dist/inquiry/v2/capabilities/actions/ActionsCapability.mjs +92 -32
  315. package/dist/inquiry/v2/capabilities/actions/ActionsCapability.mjs.map +1 -1
  316. package/dist/inquiry/v2/capabilities/actions/ActionsCapability.module.css +8 -1
  317. package/dist/inquiry/v2/capabilities/actions/EntityFormSurface.d.ts +20 -16
  318. package/dist/inquiry/v2/capabilities/actions/EntityFormSurface.d.ts.map +1 -1
  319. package/dist/inquiry/v2/capabilities/actions/EntityFormSurface.js +111 -68
  320. package/dist/inquiry/v2/capabilities/actions/EntityFormSurface.js.map +1 -1
  321. package/dist/inquiry/v2/capabilities/actions/EntityFormSurface.mjs +108 -142
  322. package/dist/inquiry/v2/capabilities/actions/EntityFormSurface.mjs.map +1 -1
  323. package/dist/inquiry/v2/capabilities/actions/RetrieveSurface.mjs +1 -1
  324. package/dist/inquiry/v2/capabilities/actions/actionModel.d.ts +66 -50
  325. package/dist/inquiry/v2/capabilities/actions/actionModel.d.ts.map +1 -1
  326. package/dist/inquiry/v2/capabilities/actions/actionModel.js +141 -66
  327. package/dist/inquiry/v2/capabilities/actions/actionModel.js.map +1 -1
  328. package/dist/inquiry/v2/capabilities/actions/actionModel.mjs +115 -53
  329. package/dist/inquiry/v2/capabilities/actions/actionModel.mjs.map +1 -1
  330. package/dist/inquiry/v2/capabilities/actions/parentKeyDefaults.d.ts +26 -0
  331. package/dist/inquiry/v2/capabilities/actions/parentKeyDefaults.d.ts.map +1 -0
  332. package/dist/inquiry/v2/capabilities/actions/parentKeyDefaults.js +36 -0
  333. package/dist/inquiry/v2/capabilities/actions/parentKeyDefaults.js.map +1 -0
  334. package/dist/inquiry/v2/capabilities/actions/parentKeyDefaults.mjs +41 -0
  335. package/dist/inquiry/v2/capabilities/actions/parentKeyDefaults.mjs.map +1 -0
  336. package/dist/inquiry/v2/capabilities/actions/runAction.d.ts +3 -2
  337. package/dist/inquiry/v2/capabilities/actions/runAction.d.ts.map +1 -1
  338. package/dist/inquiry/v2/capabilities/actions/runAction.js +27 -23
  339. package/dist/inquiry/v2/capabilities/actions/runAction.js.map +1 -1
  340. package/dist/inquiry/v2/capabilities/actions/runAction.mjs +26 -20
  341. package/dist/inquiry/v2/capabilities/actions/runAction.mjs.map +1 -1
  342. package/dist/inquiry/v2/capabilities/actions/useHeaderFold.d.ts +20 -0
  343. package/dist/inquiry/v2/capabilities/actions/useHeaderFold.d.ts.map +1 -0
  344. package/dist/inquiry/v2/capabilities/actions/useHeaderFold.js +112 -0
  345. package/dist/inquiry/v2/capabilities/actions/useHeaderFold.js.map +1 -0
  346. package/dist/inquiry/v2/capabilities/actions/useHeaderFold.mjs +118 -0
  347. package/dist/inquiry/v2/capabilities/actions/useHeaderFold.mjs.map +1 -0
  348. package/dist/inquiry/v2/capabilities/actions/useSheetPanel.d.ts +25 -1
  349. package/dist/inquiry/v2/capabilities/actions/useSheetPanel.d.ts.map +1 -1
  350. package/dist/inquiry/v2/capabilities/actions/useSheetPanel.js +7 -4
  351. package/dist/inquiry/v2/capabilities/actions/useSheetPanel.js.map +1 -1
  352. package/dist/inquiry/v2/capabilities/actions/useSheetPanel.mjs +9 -4
  353. package/dist/inquiry/v2/capabilities/actions/useSheetPanel.mjs.map +1 -1
  354. package/dist/inquiry/v2/capabilities/alerts/AlertsCapability.d.ts +5 -3
  355. package/dist/inquiry/v2/capabilities/alerts/AlertsCapability.d.ts.map +1 -1
  356. package/dist/inquiry/v2/capabilities/alerts/AlertsCapability.js +11 -8
  357. package/dist/inquiry/v2/capabilities/alerts/AlertsCapability.js.map +1 -1
  358. package/dist/inquiry/v2/capabilities/alerts/AlertsCapability.mjs +13 -7
  359. package/dist/inquiry/v2/capabilities/alerts/AlertsCapability.mjs.map +1 -1
  360. package/dist/inquiry/v2/capabilities/alerts/AlertsCapability.module.css +4 -4
  361. package/dist/inquiry/v2/capabilities/header/HeaderCapability.d.ts +1 -1
  362. package/dist/inquiry/v2/capabilities/header/HeaderCapability.d.ts.map +1 -1
  363. package/dist/inquiry/v2/capabilities/header/HeaderCapability.js +20 -17
  364. package/dist/inquiry/v2/capabilities/header/HeaderCapability.js.map +1 -1
  365. package/dist/inquiry/v2/capabilities/header/HeaderCapability.mjs +101 -111
  366. package/dist/inquiry/v2/capabilities/header/HeaderCapability.mjs.map +1 -1
  367. package/dist/inquiry/v2/capabilities/header/HeaderCapability.module.css +9 -6
  368. package/dist/inquiry/v2/capabilities/tabs/TabsCapability.d.ts +2 -1
  369. package/dist/inquiry/v2/capabilities/tabs/TabsCapability.d.ts.map +1 -1
  370. package/dist/inquiry/v2/capabilities/tabs/TabsCapability.js +9 -2
  371. package/dist/inquiry/v2/capabilities/tabs/TabsCapability.js.map +1 -1
  372. package/dist/inquiry/v2/capabilities/tabs/TabsCapability.mjs +18 -15
  373. package/dist/inquiry/v2/capabilities/tabs/TabsCapability.mjs.map +1 -1
  374. package/dist/inquiry/v2/index.d.ts +0 -1
  375. package/dist/inquiry/v2/index.d.ts.map +1 -1
  376. package/dist/inquiry/v2/index.js.map +1 -1
  377. package/dist/inquiry/v2/kernel/ActionRunnerContext.d.ts +3 -3
  378. package/dist/inquiry/v2/kernel/ActionRunnerContext.d.ts.map +1 -1
  379. package/dist/inquiry/v2/kernel/ActionRunnerContext.js +11 -5
  380. package/dist/inquiry/v2/kernel/ActionRunnerContext.js.map +1 -1
  381. package/dist/inquiry/v2/kernel/ActionRunnerContext.mjs +15 -12
  382. package/dist/inquiry/v2/kernel/ActionRunnerContext.mjs.map +1 -1
  383. package/dist/inquiry/v2/kernel/ReadOnlyContext.d.ts +3 -0
  384. package/dist/inquiry/v2/kernel/ReadOnlyContext.d.ts.map +1 -0
  385. package/dist/inquiry/v2/kernel/ReadOnlyContext.js +14 -0
  386. package/dist/inquiry/v2/kernel/ReadOnlyContext.js.map +1 -0
  387. package/dist/inquiry/v2/kernel/ReadOnlyContext.mjs +20 -0
  388. package/dist/inquiry/v2/kernel/ReadOnlyContext.mjs.map +1 -0
  389. package/dist/inquiry/v2/kernel/RecordContext.d.ts +2 -0
  390. package/dist/inquiry/v2/kernel/RecordContext.d.ts.map +1 -1
  391. package/dist/inquiry/v2/kernel/RecordContext.js.map +1 -1
  392. package/dist/inquiry/v2/kernel/RecordContext.mjs.map +1 -1
  393. package/dist/inquiry/v2/kernel/UdpNodeView.d.ts.map +1 -1
  394. package/dist/inquiry/v2/kernel/UdpNodeView.js +18 -13
  395. package/dist/inquiry/v2/kernel/UdpNodeView.js.map +1 -1
  396. package/dist/inquiry/v2/kernel/UdpNodeView.mjs +177 -140
  397. package/dist/inquiry/v2/kernel/UdpNodeView.mjs.map +1 -1
  398. package/dist/inquiry/v2/kernel/UdpNodeView.module.css +56 -5
  399. package/dist/inquiry/v2/kernel/capabilities.d.ts +0 -2
  400. package/dist/inquiry/v2/kernel/capabilities.d.ts.map +1 -1
  401. package/dist/inquiry/v2/kernel/capabilities.js.map +1 -1
  402. package/dist/inquiry/v2/kernel/capabilities.mjs.map +1 -1
  403. package/dist/inquiry/v2/landing/InquiryExplorePage.d.ts +26 -37
  404. package/dist/inquiry/v2/landing/InquiryExplorePage.d.ts.map +1 -1
  405. package/dist/inquiry/v2/landing/InquiryExplorePage.js +48 -57
  406. package/dist/inquiry/v2/landing/InquiryExplorePage.js.map +1 -1
  407. package/dist/inquiry/v2/landing/InquiryExplorePage.mjs +102 -106
  408. package/dist/inquiry/v2/landing/InquiryExplorePage.mjs.map +1 -1
  409. package/dist/inquiry/v2/landing/InquiryExplorePage.module.css +58 -6
  410. package/dist/inquiry/v2/landing/InquiryLanding.d.ts +3 -3
  411. package/dist/inquiry/v2/landing/InquiryLanding.d.ts.map +1 -1
  412. package/dist/inquiry/v2/landing/InquiryLanding.js +8 -3
  413. package/dist/inquiry/v2/landing/InquiryLanding.js.map +1 -1
  414. package/dist/inquiry/v2/landing/InquiryLanding.mjs +51 -35
  415. package/dist/inquiry/v2/landing/InquiryLanding.mjs.map +1 -1
  416. package/dist/inquiry/v2/landing/InquiryLanding.module.css +8 -0
  417. package/dist/inquiry/v2/page/UdpPageRenderer.d.ts +5 -1
  418. package/dist/inquiry/v2/page/UdpPageRenderer.d.ts.map +1 -1
  419. package/dist/inquiry/v2/page/UdpPageRenderer.js +13 -1
  420. package/dist/inquiry/v2/page/UdpPageRenderer.js.map +1 -1
  421. package/dist/inquiry/v2/page/UdpPageRenderer.mjs +36 -7
  422. package/dist/inquiry/v2/page/UdpPageRenderer.mjs.map +1 -1
  423. package/dist/inquiry/v2/search/InquirySearchPanel.d.ts +1 -7
  424. package/dist/inquiry/v2/search/InquirySearchPanel.d.ts.map +1 -1
  425. package/dist/inquiry/v2/search/InquirySearchPanel.js +6 -13
  426. package/dist/inquiry/v2/search/InquirySearchPanel.js.map +1 -1
  427. package/dist/inquiry/v2/search/InquirySearchPanel.mjs +4 -8
  428. package/dist/inquiry/v2/search/InquirySearchPanel.mjs.map +1 -1
  429. package/dist/inquiry/v2/search/RecordFinder.d.ts +30 -1
  430. package/dist/inquiry/v2/search/RecordFinder.d.ts.map +1 -1
  431. package/dist/inquiry/v2/search/RecordFinder.js +43 -20
  432. package/dist/inquiry/v2/search/RecordFinder.js.map +1 -1
  433. package/dist/inquiry/v2/search/RecordFinder.mjs +68 -42
  434. package/dist/inquiry/v2/search/RecordFinder.mjs.map +1 -1
  435. package/dist/inquiry/v2/search/index.d.ts +3 -3
  436. package/dist/inquiry/v2/search/index.d.ts.map +1 -1
  437. package/dist/inquiry/v2/search/index.js +1 -1
  438. package/dist/inquiry/v2/search/index.js.map +1 -1
  439. package/dist/inquiry/v2/search/searchModel.d.ts +130 -23
  440. package/dist/inquiry/v2/search/searchModel.d.ts.map +1 -1
  441. package/dist/inquiry/v2/search/searchModel.js +237 -36
  442. package/dist/inquiry/v2/search/searchModel.js.map +1 -1
  443. package/dist/inquiry/v2/search/searchModel.mjs +207 -34
  444. package/dist/inquiry/v2/search/searchModel.mjs.map +1 -1
  445. package/dist/inquiry/v2/search/useInquirySearch.d.ts.map +1 -1
  446. package/dist/inquiry/v2/search/useInquirySearch.js +46 -19
  447. package/dist/inquiry/v2/search/useInquirySearch.js.map +1 -1
  448. package/dist/inquiry/v2/search/useInquirySearch.mjs +83 -84
  449. package/dist/inquiry/v2/search/useInquirySearch.mjs.map +1 -1
  450. package/dist/inquiry/v2/tree/InquiryFluentTreeMenu.d.ts +4 -1
  451. package/dist/inquiry/v2/tree/InquiryFluentTreeMenu.d.ts.map +1 -1
  452. package/dist/inquiry/v2/tree/InquiryFluentTreeMenu.js +174 -166
  453. package/dist/inquiry/v2/tree/InquiryFluentTreeMenu.js.map +1 -1
  454. package/dist/inquiry/v2/tree/InquiryFluentTreeMenu.mjs +343 -325
  455. package/dist/inquiry/v2/tree/InquiryFluentTreeMenu.mjs.map +1 -1
  456. package/dist/inquiry/v2/tree/InquiryMenuToolbar.d.ts +3 -1
  457. package/dist/inquiry/v2/tree/InquiryMenuToolbar.d.ts.map +1 -1
  458. package/dist/inquiry/v2/tree/InquiryMenuToolbar.js +8 -7
  459. package/dist/inquiry/v2/tree/InquiryMenuToolbar.js.map +1 -1
  460. package/dist/inquiry/v2/tree/InquiryMenuToolbar.mjs +68 -72
  461. package/dist/inquiry/v2/tree/InquiryMenuToolbar.mjs.map +1 -1
  462. package/dist/inquiry/v2/tree/LoadRecordDialog.d.ts +3 -3
  463. package/dist/inquiry/v2/tree/LoadRecordDialog.d.ts.map +1 -1
  464. package/dist/inquiry/v2/tree/LoadRecordDialog.js +12 -7
  465. package/dist/inquiry/v2/tree/LoadRecordDialog.js.map +1 -1
  466. package/dist/inquiry/v2/tree/LoadRecordDialog.mjs +48 -33
  467. package/dist/inquiry/v2/tree/LoadRecordDialog.mjs.map +1 -1
  468. package/dist/inquiry/v2/tree/NodeList.d.ts.map +1 -1
  469. package/dist/inquiry/v2/tree/NodeList.js +17 -6
  470. package/dist/inquiry/v2/tree/NodeList.js.map +1 -1
  471. package/dist/inquiry/v2/tree/NodeList.mjs +49 -36
  472. package/dist/inquiry/v2/tree/NodeList.mjs.map +1 -1
  473. package/dist/inquiry/v2/tree/arrivalModel.d.ts +15 -0
  474. package/dist/inquiry/v2/tree/arrivalModel.d.ts.map +1 -1
  475. package/dist/inquiry/v2/tree/arrivalModel.js +14 -1
  476. package/dist/inquiry/v2/tree/arrivalModel.js.map +1 -1
  477. package/dist/inquiry/v2/tree/arrivalModel.mjs +12 -1
  478. package/dist/inquiry/v2/tree/arrivalModel.mjs.map +1 -1
  479. package/dist/inquiry/v2/tree/branchRefreshModel.d.ts +32 -0
  480. package/dist/inquiry/v2/tree/branchRefreshModel.d.ts.map +1 -0
  481. package/dist/inquiry/v2/tree/branchRefreshModel.js +62 -0
  482. package/dist/inquiry/v2/tree/branchRefreshModel.js.map +1 -0
  483. package/dist/inquiry/v2/tree/branchRefreshModel.mjs +60 -0
  484. package/dist/inquiry/v2/tree/branchRefreshModel.mjs.map +1 -0
  485. package/dist/inquiry/v2/tree/droppedPageModel.d.ts +23 -1
  486. package/dist/inquiry/v2/tree/droppedPageModel.d.ts.map +1 -1
  487. package/dist/inquiry/v2/tree/droppedPageModel.js +53 -26
  488. package/dist/inquiry/v2/tree/droppedPageModel.js.map +1 -1
  489. package/dist/inquiry/v2/tree/droppedPageModel.mjs +48 -20
  490. package/dist/inquiry/v2/tree/droppedPageModel.mjs.map +1 -1
  491. package/dist/inquiry/v2/tree/fluentTreeMenu/treeMenuVisuals.d.ts +7 -12
  492. package/dist/inquiry/v2/tree/fluentTreeMenu/treeMenuVisuals.d.ts.map +1 -1
  493. package/dist/inquiry/v2/tree/fluentTreeMenu/treeMenuVisuals.js +44 -15
  494. package/dist/inquiry/v2/tree/fluentTreeMenu/treeMenuVisuals.js.map +1 -1
  495. package/dist/inquiry/v2/tree/fluentTreeMenu/treeMenuVisuals.mjs +34 -15
  496. package/dist/inquiry/v2/tree/fluentTreeMenu/treeMenuVisuals.mjs.map +1 -1
  497. package/dist/inquiry/v2/tree/fluentTreeMenu/useAggregateBadges.d.ts.map +1 -1
  498. package/dist/inquiry/v2/tree/fluentTreeMenu/useAggregateBadges.js +7 -18
  499. package/dist/inquiry/v2/tree/fluentTreeMenu/useAggregateBadges.js.map +1 -1
  500. package/dist/inquiry/v2/tree/fluentTreeMenu/useAggregateBadges.mjs +6 -14
  501. package/dist/inquiry/v2/tree/fluentTreeMenu/useAggregateBadges.mjs.map +1 -1
  502. package/dist/inquiry/v2/tree/fluentTreeMenu/useChildCountBadges.d.ts +20 -16
  503. package/dist/inquiry/v2/tree/fluentTreeMenu/useChildCountBadges.d.ts.map +1 -1
  504. package/dist/inquiry/v2/tree/fluentTreeMenu/useChildCountBadges.js +77 -55
  505. package/dist/inquiry/v2/tree/fluentTreeMenu/useChildCountBadges.js.map +1 -1
  506. package/dist/inquiry/v2/tree/fluentTreeMenu/useChildCountBadges.mjs +85 -106
  507. package/dist/inquiry/v2/tree/fluentTreeMenu/useChildCountBadges.mjs.map +1 -1
  508. package/dist/inquiry/v2/tree/lineageModel.d.ts +18 -1
  509. package/dist/inquiry/v2/tree/lineageModel.d.ts.map +1 -1
  510. package/dist/inquiry/v2/tree/lineageModel.js +71 -2
  511. package/dist/inquiry/v2/tree/lineageModel.js.map +1 -1
  512. package/dist/inquiry/v2/tree/lineageModel.mjs +53 -3
  513. package/dist/inquiry/v2/tree/lineageModel.mjs.map +1 -1
  514. package/dist/inquiry/v2/tree/menuRebuildModel.d.ts +10 -27
  515. package/dist/inquiry/v2/tree/menuRebuildModel.d.ts.map +1 -1
  516. package/dist/inquiry/v2/tree/menuRebuildModel.js +8 -58
  517. package/dist/inquiry/v2/tree/menuRebuildModel.js.map +1 -1
  518. package/dist/inquiry/v2/tree/menuRebuildModel.mjs +8 -51
  519. package/dist/inquiry/v2/tree/menuRebuildModel.mjs.map +1 -1
  520. package/dist/inquiry/v2/tree/pagedChildrenModel.d.ts +26 -0
  521. package/dist/inquiry/v2/tree/pagedChildrenModel.d.ts.map +1 -0
  522. package/dist/inquiry/v2/tree/pagedChildrenModel.js +56 -0
  523. package/dist/inquiry/v2/tree/pagedChildrenModel.js.map +1 -0
  524. package/dist/inquiry/v2/tree/pagedChildrenModel.mjs +43 -0
  525. package/dist/inquiry/v2/tree/pagedChildrenModel.mjs.map +1 -0
  526. package/dist/inquiry/v2/tree/rootRemovalModel.d.ts +7 -0
  527. package/dist/inquiry/v2/tree/rootRemovalModel.d.ts.map +1 -1
  528. package/dist/inquiry/v2/tree/rootRemovalModel.js +31 -5
  529. package/dist/inquiry/v2/tree/rootRemovalModel.js.map +1 -1
  530. package/dist/inquiry/v2/tree/rootRemovalModel.mjs +21 -4
  531. package/dist/inquiry/v2/tree/rootRemovalModel.mjs.map +1 -1
  532. package/dist/inquiry/v2/tree/treeFilterModel.d.ts +0 -2
  533. package/dist/inquiry/v2/tree/treeFilterModel.d.ts.map +1 -1
  534. package/dist/inquiry/v2/tree/treeFilterModel.js +0 -7
  535. package/dist/inquiry/v2/tree/treeFilterModel.js.map +1 -1
  536. package/dist/inquiry/v2/tree/treeFilterModel.mjs.map +1 -1
  537. package/dist/inquiry/v2/tree/useInquiryMenu.d.ts +16 -7
  538. package/dist/inquiry/v2/tree/useInquiryMenu.d.ts.map +1 -1
  539. package/dist/inquiry/v2/tree/useInquiryMenu.js +401 -163
  540. package/dist/inquiry/v2/tree/useInquiryMenu.js.map +1 -1
  541. package/dist/inquiry/v2/tree/useInquiryMenu.mjs +511 -310
  542. package/dist/inquiry/v2/tree/useInquiryMenu.mjs.map +1 -1
  543. package/dist/inquiry/v2/tree/waveLoader.d.ts +10 -11
  544. package/dist/inquiry/v2/tree/waveLoader.d.ts.map +1 -1
  545. package/dist/inquiry/v2/tree/waveLoader.js +78 -72
  546. package/dist/inquiry/v2/tree/waveLoader.js.map +1 -1
  547. package/dist/inquiry/v2/tree/waveLoader.mjs +79 -68
  548. package/dist/inquiry/v2/tree/waveLoader.mjs.map +1 -1
  549. package/dist/inquiry/v2/widgets/listRow.module.css +27 -0
  550. package/dist/inquiry/v2/widgets/widgetRowModel.d.ts +6 -2
  551. package/dist/inquiry/v2/widgets/widgetRowModel.d.ts.map +1 -1
  552. package/dist/inquiry/v2/widgets/widgetRowModel.js +49 -14
  553. package/dist/inquiry/v2/widgets/widgetRowModel.js.map +1 -1
  554. package/dist/inquiry/v2/widgets/widgetRowModel.mjs +36 -12
  555. package/dist/inquiry/v2/widgets/widgetRowModel.mjs.map +1 -1
  556. package/dist/maintenance/UdpTaggedRecordsPage.mjs +1 -1
  557. package/dist/maintenance/api/lookupApi.mjs +1 -1
  558. package/dist/maintenance/api/tagsApi.mjs +1 -1
  559. package/dist/maintenance/config/nodeDefaults.d.ts.map +1 -1
  560. package/dist/maintenance/config/nodeDefaults.js +16 -5
  561. package/dist/maintenance/config/nodeDefaults.js.map +1 -1
  562. package/dist/maintenance/config/nodeDefaults.mjs +14 -5
  563. package/dist/maintenance/config/nodeDefaults.mjs.map +1 -1
  564. package/dist/maintenance/config/useEntityConfig.mjs +1 -1
  565. package/dist/maintenance/config/useLinkedLabels.mjs +1 -1
  566. package/dist/maintenance/grid/MaintenanceGrid.mjs +1 -1
  567. package/dist/maintenance/metadata/useEntityMetadata.mjs +1 -1
  568. package/dist/maintenance/record/ChildTab.mjs +1 -1
  569. package/dist/maintenance/record/DeleteRecordDialog.mjs +1 -1
  570. package/dist/maintenance/record/LinkRecordsSheet.mjs +1 -1
  571. package/dist/maintenance/record/RecordFacts.mjs +1 -1
  572. package/dist/maintenance/record/RecordSheet.mjs +2 -2
  573. package/dist/maintenance/record/displayValue.mjs +1 -1
  574. package/dist/maintenance/record/stampDisplayText.mjs +1 -1
  575. package/dist/maintenance/settings/UdpEntitySettingsPage.d.ts.map +1 -1
  576. package/dist/maintenance/settings/UdpEntitySettingsPage.js +3 -0
  577. package/dist/maintenance/settings/UdpEntitySettingsPage.js.map +1 -1
  578. package/dist/maintenance/settings/UdpEntitySettingsPage.mjs +2 -0
  579. package/dist/maintenance/settings/UdpEntitySettingsPage.mjs.map +1 -1
  580. package/dist/maintenance/settings/useEntityCatalog.mjs +1 -1
  581. package/dist/maintenanceEngine/tableBrowser/TableColumnDefs.d.ts +4 -5
  582. package/dist/maintenanceEngine/tableBrowser/TableColumnDefs.d.ts.map +1 -1
  583. package/dist/page/PageContainer/PageContainer.d.ts.map +1 -1
  584. package/dist/page/PageContainer/PageContainer.js +4 -11
  585. package/dist/page/PageContainer/PageContainer.js.map +1 -1
  586. package/dist/page/PageContainer/PageContainer.mjs +39 -50
  587. package/dist/page/PageContainer/PageContainer.mjs.map +1 -1
  588. package/dist/stores/inquiryStore.d.ts +2 -1
  589. package/dist/stores/inquiryStore.d.ts.map +1 -1
  590. package/dist/stores/inquiryStore.js +4 -3
  591. package/dist/stores/inquiryStore.js.map +1 -1
  592. package/dist/stores/inquiryStore.mjs +18 -11
  593. package/dist/stores/inquiryStore.mjs.map +1 -1
  594. package/dist/udp/extraFields/useExtraFieldsGridConfig.d.ts +3 -2
  595. package/dist/udp/extraFields/useExtraFieldsGridConfig.d.ts.map +1 -1
  596. package/dist/udp/extraFields/useExtraFieldsGridConfig.js +7 -6
  597. package/dist/udp/extraFields/useExtraFieldsGridConfig.js.map +1 -1
  598. package/dist/udp/extraFields/useExtraFieldsGridConfig.mjs +27 -22
  599. package/dist/udp/extraFields/useExtraFieldsGridConfig.mjs.map +1 -1
  600. package/dist/udp/fileImportMapping/FileImportMappingWizard.d.ts.map +1 -1
  601. package/dist/udp/fileImportMapping/FileImportMappingWizard.js +4 -4
  602. package/dist/udp/fileImportMapping/FileImportMappingWizard.js.map +1 -1
  603. package/dist/udp/fileImportMapping/FileImportMappingWizard.mjs +10 -9
  604. package/dist/udp/fileImportMapping/FileImportMappingWizard.mjs.map +1 -1
  605. package/dist/udp/pages/UdpMaintenanceEnginePage/UdpMaintenanceEnginePage.d.ts.map +1 -1
  606. package/dist/udp/pages/UdpMaintenanceEnginePage/UdpMaintenanceEnginePage.js +1 -1
  607. package/dist/udp/pages/UdpMaintenanceEnginePage/UdpMaintenanceEnginePage.js.map +1 -1
  608. package/dist/udp/pages/UdpMaintenanceEnginePage/UdpMaintenanceEnginePage.mjs +2 -1
  609. package/dist/udp/pages/UdpMaintenanceEnginePage/UdpMaintenanceEnginePage.mjs.map +1 -1
  610. package/dist/udp/pages/UdpMaintenanceEnginePage/components/EntitiyTimeLine.mjs +1 -1
  611. package/dist/udp/pages/UdpTransactionsPage/components/DynamicTransactionDomainForm.d.ts.map +1 -1
  612. package/dist/udp/pages/UdpTransactionsPage/components/DynamicTransactionDomainForm.js +84 -27
  613. package/dist/udp/pages/UdpTransactionsPage/components/DynamicTransactionDomainForm.js.map +1 -1
  614. package/dist/udp/pages/UdpTransactionsPage/components/DynamicTransactionDomainForm.mjs +53 -23
  615. package/dist/udp/pages/UdpTransactionsPage/components/DynamicTransactionDomainForm.mjs.map +1 -1
  616. package/dist/udp/pages/UdpTransactionsPage/components/DynamicTransactionDomainFormFields.d.ts.map +1 -1
  617. package/dist/udp/pages/UdpTransactionsPage/components/DynamicTransactionDomainFormFields.js +45 -32
  618. package/dist/udp/pages/UdpTransactionsPage/components/DynamicTransactionDomainFormFields.js.map +1 -1
  619. package/dist/udp/pages/UdpTransactionsPage/components/DynamicTransactionDomainFormFields.mjs +27 -33
  620. package/dist/udp/pages/UdpTransactionsPage/components/DynamicTransactionDomainFormFields.mjs.map +1 -1
  621. package/dist/udp/pages/UdpTranslationsPage/UdpTranslationsPage.d.ts.map +1 -1
  622. package/dist/udp/pages/UdpTranslationsPage/UdpTranslationsPage.js +14 -16
  623. package/dist/udp/pages/UdpTranslationsPage/UdpTranslationsPage.js.map +1 -1
  624. package/dist/udp/pages/UdpTranslationsPage/UdpTranslationsPage.mjs +2 -4
  625. package/dist/udp/pages/UdpTranslationsPage/UdpTranslationsPage.mjs.map +1 -1
  626. package/dist/udp/utilities/useDateStringColumnDef.d.ts +1 -1
  627. package/dist/utilities/i18n/locales/es-US.json +24 -9
  628. package/dist/utilities/i18n/locales/es-US.mjs +25 -8
  629. package/dist/utilities/i18n/locales/fr-CA.json +24 -9
  630. package/dist/utilities/i18n/locales/fr-CA.mjs +25 -8
  631. package/dist/utilities/tree/TreeUtilities.d.ts +10 -10
  632. package/dist/utilities/tree/TreeUtilities.d.ts.map +1 -1
  633. package/dist/utilities/tree/TreeUtilities.js +41 -58
  634. package/dist/utilities/tree/TreeUtilities.js.map +1 -1
  635. package/dist/utilities/tree/TreeUtilities.mjs +32 -41
  636. package/dist/utilities/tree/TreeUtilities.mjs.map +1 -1
  637. package/dist/utilities/tree/lazyLevels.d.ts +32 -0
  638. package/dist/utilities/tree/lazyLevels.d.ts.map +1 -0
  639. package/dist/utilities/tree/lazyLevels.js +25 -0
  640. package/dist/utilities/tree/lazyLevels.js.map +1 -0
  641. package/dist/utilities/tree/lazyLevels.mjs +16 -0
  642. package/dist/utilities/tree/lazyLevels.mjs.map +1 -0
  643. package/dist/utilities/types.d.ts +4 -4
  644. package/dist/utilities/types.d.ts.map +1 -1
  645. package/package.json +62 -18
  646. package/dist/actionPanels/PanelActionForm.d.ts +0 -56
  647. package/dist/actionPanels/PanelActionForm.d.ts.map +0 -1
  648. package/dist/actionPanels/PanelActionForm.js +0 -30
  649. package/dist/actionPanels/PanelActionForm.js.map +0 -1
  650. package/dist/actionPanels/PanelActionForm.mjs +0 -168
  651. package/dist/actionPanels/PanelActionForm.mjs.map +0 -1
  652. package/dist/actionPanels/PanelEditor.d.ts +0 -44
  653. package/dist/actionPanels/PanelEditor.d.ts.map +0 -1
  654. package/dist/actionPanels/PanelEditor.js +0 -78
  655. package/dist/actionPanels/PanelEditor.js.map +0 -1
  656. package/dist/actionPanels/PanelEditor.mjs +0 -345
  657. package/dist/actionPanels/PanelEditor.mjs.map +0 -1
  658. package/dist/actionPanels/panelActionFields.module.css +0 -18
  659. package/dist/domain/inquiryTree/ruleBindings.d.ts +0 -10
  660. package/dist/domain/inquiryTree/ruleBindings.d.ts.map +0 -1
  661. package/dist/domain/inquiryTree/ruleBindings.js +0 -20
  662. package/dist/domain/inquiryTree/ruleBindings.js.map +0 -1
  663. package/dist/domain/inquiryTree/ruleBindings.mjs +0 -21
  664. package/dist/domain/inquiryTree/ruleBindings.mjs.map +0 -1
  665. package/dist/inquiry/v2/kernel/readOnlyModel.d.ts +0 -17
  666. package/dist/inquiry/v2/kernel/readOnlyModel.d.ts.map +0 -1
  667. package/dist/inquiry/v2/kernel/readOnlyModel.js +0 -19
  668. package/dist/inquiry/v2/kernel/readOnlyModel.js.map +0 -1
  669. package/dist/inquiry/v2/kernel/readOnlyModel.mjs +0 -21
  670. package/dist/inquiry/v2/kernel/readOnlyModel.mjs.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"model.mjs","names":["applyRule","mapRuleVariables","formatTreeLabel","resolveRowLabel","DisplayNode","JsonLogic","toWireString","CollapseDefault","displayString","value","undefined","JSON","stringify","String","CollapseState","show","expanded","HeaderFieldDisplay","BADGE_COLORS","const","BadgeColor","HeaderField","label","display","color","NodeViewTab","id","pageId","pageHeaderPageId","pageHeaderCollapse","queryId","queryParamMapping","requiredFieldMapping","Record","trees","NodeViewHeader","kind","fields","NodeAlert","alertId","NodeViewModel","headerTitle","header","headerCollapse","tabs","panels","alerts","NodeViewPresence","title","body","actions","NodeViewLayout","showBand","compactTitleRow","showEmptyState","resolveNodeViewLayout","presence","RuleBearing","propertyMapping","jsonLogic","PageCandidate","sequenceNo","page","TabWire","displayName","pageHeaderPages","defaultPageHeaderExpanded","name","bySequence","list","T","sort","a","b","Number","passesRule","candidate","nodeObj","rule","resolveFirstMatchingPageId","candidates","length","HeaderBadgeRule","expression","HeaderFieldConfig","isShown","propertyName","property","joiningEntityKey","badgeColor","badgeRules","asBadgeColor","includes","resolveBadge","config","match","find","readRecordValue","source","resolveHeaderFields","node","configs","properties","pageHeaderConfiguration","catalogObjectKey","joined","badge","text","field","push","resolveNodeAlerts","isGroupNode","Array","filter","alert","map","resolveCollapse","resolveTabs","nodePageHeaderDefault","visible","tab","trim","resolveNodeViewModel","headerName","defaultNodeHeaderExpanded","headerPageId","nodeHeaderPages"],"sources":["../../../src/domain/nodeView/model.ts"],"sourcesContent":["/**\n * Node-view model resolution — the pure heart of the inquiry v2 kernel\n * (inquiry-v2-architecture.md §4.2).\n *\n * Given a loaded display node, derive everything the node view renders:\n * header title, header kind (page / static fields / none), collapse defaults,\n * the VISIBLE tab list (jsonLogic rules applied, stable ids, resolved per-tab\n * page-header page), and action panels. One shared first-matching-candidate\n * walk serves tabs, nodeHeaderPages, and pageHeaderPages.\n *\n * Deliberate fixes vs the legacy container (audit §3): numeric sequenceNo\n * ordering, visibility-filtered tabs drive everything (raw config count is\n * never consulted), stable tab identity instead of array indexes.\n */\nimport { applyRule, mapRuleVariables } from '../inquiryTree/rules';\nimport { formatTreeLabel } from '../inquiryTree/view';\nimport { resolveRowLabel } from '../inquiryTree/displayTree';\nimport type { DisplayNode } from '../inquiryTree/displayTree';\nimport type { JsonLogic } from '../inquiryTree/types';\nimport { toWireString } from '../inquiryTree/wireString';\n\nexport type CollapseDefault = 'hidden' | 'expanded' | 'collapsed';\n\n/** Display-safe stringification: objects never render as '[object Object]'. */\nconst displayString = (value: unknown): string => {\n if (value === undefined || value === null || value === '') return '';\n if (typeof value === 'object') return JSON.stringify(value);\n return String(value as string | number | boolean);\n};\n\nexport interface CollapseState {\n /** false = the strip (and its chevron) does not exist. */\n show: boolean;\n /** Initial expanded state when shown. */\n expanded: boolean;\n}\n\n/** How a header entry renders. Absent on the wire = 'field' (legacy trees). */\nexport type HeaderFieldDisplay = 'field' | 'stat' | 'badge';\n\n/**\n * The `UdpBadge` `color` prop's legal values, declared beside the config that\n * picks one so Tree Builder offers exactly the set the viewer can render.\n * Anything else resolves colorless rather than reaching the component.\n */\nexport const BADGE_COLORS = [\n 'brand',\n 'danger',\n 'important',\n 'informative',\n 'severe',\n 'subtle',\n 'success',\n 'warning'\n] as const;\n\nexport type BadgeColor = (typeof BADGE_COLORS)[number];\n\nexport interface HeaderField {\n label: string;\n /**\n * The string the entry displays. For fields and stats that is the record\n * value; for badges it is the badge's own text — the value, except for a\n * boolean flag, whose display string IS the entry's name (\"Confidential\").\n * The renderer prints this slot and nothing else.\n */\n value: string;\n /** 'field' unless the entry configures otherwise. */\n display: HeaderFieldDisplay;\n /** Badge color — badge entries only, absent when none is configured. */\n color?: BadgeColor;\n}\n\nexport interface NodeViewTab {\n /** Stable identity: config id, falling back to pageId. Never an index. */\n id: string;\n label: string;\n pageId: string;\n /** Rule-resolved page-header page for this tab, or null. */\n pageHeaderPageId: string | null;\n /**\n * Per-tab page-header band display: the tab's own\n * `defaultPageHeaderExpanded`, falling back to the node-wide value —\n * legacy trees (node value only) render identically; a tab value is the\n * more precise override.\n */\n pageHeaderCollapse: CollapseState;\n queryId: string;\n queryParamMapping: unknown;\n requiredFieldMapping: Record<string, unknown>;\n trees: unknown[];\n}\n\nexport type NodeViewHeader =\n | { kind: 'page'; pageId: string }\n | { kind: 'fields'; fields: HeaderField[] }\n | { kind: 'none' };\n\n/** A node-level alert reference (legacy `properties.alerts` row). */\nexport interface NodeAlert {\n /** Stable row id (falls back to the alertId). */\n id: string;\n /** The alert (aggregate-threshold) config id to fetch and render. */\n alertId: string;\n}\n\nexport interface NodeViewModel {\n headerTitle: string;\n header: NodeViewHeader;\n headerCollapse: CollapseState;\n /**\n * Node-wide page-header default. Rendering consults the ACTIVE TAB's\n * `pageHeaderCollapse` (which already folds this in as fallback); this\n * stays for consumers that need the node default itself.\n */\n pageHeaderCollapse: CollapseState;\n tabs: NodeViewTab[];\n panels: unknown[];\n /** Node-level alert refs; the fetch/threshold render lives in the capability. */\n alerts: NodeAlert[];\n}\n\n/**\n * What the node view actually has to render, once the model AND the embedder's\n * capability allowlist have both been applied. The kernel supplies this (only\n * it knows the allowlist); the decision below is pure.\n */\nexport interface NodeViewPresence {\n /** A non-blank resolved header title. */\n title: boolean;\n /** The node-header capability renders (page or static fields). */\n header: boolean;\n /** The tab strip renders (more than one visible tab). */\n tabs: boolean;\n /** A tab page renders below the band. */\n body: boolean;\n /** The actions capability renders (configured panels). */\n actions: boolean;\n /** Node-level alert chips render. */\n alerts: boolean;\n}\n\n/** How the node view degrades when its config gives it little or nothing. */\nexport interface NodeViewLayout {\n /** The header band renders at all. False = no band, no divider. */\n showBand: boolean;\n /**\n * The title row degrades to a slim right-aligned actions row: a blank title\n * with nothing below it (no header fields, no tabs) leaves the band's height\n * unjustified, so it compacts instead of floating the actions in dead space.\n */\n compactTitleRow: boolean;\n /** Nothing at all is configured — the pane shows a quiet empty state. */\n showEmptyState: boolean;\n}\n\n/**\n * The node view's degradation rule (one place, so band and body agree):\n *\n * - the band exists when anything can sit in it — title, header, tabs,\n * actions, or alerts;\n * - it compacts when it exists but has no title AND nothing below the title\n * row (header/tabs) to justify the full band height;\n * - the empty state shows only when the band has nothing AND there is no body.\n *\n * Capability semantics are untouched: a node with a tab, header, or actions is\n * never \"empty\".\n */\nexport const resolveNodeViewLayout = (\n presence: NodeViewPresence\n): NodeViewLayout => {\n const showBand =\n presence.title ||\n presence.header ||\n presence.tabs ||\n presence.actions ||\n presence.alerts;\n return {\n showBand,\n compactTitleRow:\n showBand && !presence.title && !presence.header && !presence.tabs,\n showEmptyState: !showBand && !presence.body\n };\n};\n\ninterface RuleBearing {\n propertyMapping?: Record<string, string> | null;\n jsonLogic?: JsonLogic | null;\n}\n\ninterface PageCandidate extends RuleBearing {\n sequenceNo?: number | string;\n page?: { pageId?: string | null } | null;\n}\n\ninterface TabWire extends PageCandidate {\n id?: string | number;\n displayName?: string | null;\n trees?: unknown[] | null;\n requiredFieldMapping?: Record<string, unknown> | null;\n queryId?: string | null;\n queryParamMapping?: unknown;\n pageHeaderPages?: PageCandidate[] | null;\n /** Per-tab page-header display override (same vocabulary as the node key). */\n defaultPageHeaderExpanded?: string | null;\n page?: { pageId?: string | null; name?: string | null } | null;\n}\n\nconst bySequence = <T extends { sequenceNo?: number | string }>(\n list: T[]\n): T[] =>\n [...list].sort(\n (a, b) =>\n (Number(a.sequenceNo ?? 0) || 0) - (Number(b.sequenceNo ?? 0) || 0)\n );\n\n/** True when the candidate has no rule, or its rule passes against the record. */\nconst passesRule = (\n candidate: RuleBearing,\n nodeObj: Record<string, unknown>\n): boolean => {\n if (!candidate.propertyMapping || !candidate.jsonLogic) return true;\n const rule = mapRuleVariables(candidate.propertyMapping, candidate.jsonLogic);\n return !!applyRule(rule, nodeObj, null, false);\n};\n\n/**\n * The shared sequence-ordered, rule-gated candidate walk: first candidate\n * whose rule passes (rule-less candidates always match) wins.\n */\nexport const resolveFirstMatchingPageId = (\n candidates: PageCandidate[] | null | undefined,\n nodeObj: Record<string, unknown>\n): string | null => {\n if (!candidates?.length) return null;\n for (const candidate of bySequence(candidates)) {\n if (passesRule(candidate, nodeObj)) {\n return candidate.page?.pageId ?? null;\n }\n }\n return null;\n};\n\n/**\n * One badge color rule — the `ConditionalIconRule` shape (inquiryTree/types.ts)\n * reduced to what a badge needs, and evaluated by the same rule engine.\n */\nexport interface HeaderBadgeRule {\n id?: string;\n color?: string;\n expression?: JsonLogic | null;\n}\n\ninterface HeaderFieldConfig {\n isShown?: boolean;\n name?: string;\n propertyName?: string;\n property?: string;\n joiningEntityKey?: string;\n /** Absent = 'field', so old trees and the v1 viewer are unaffected. */\n display?: HeaderFieldDisplay;\n /** Unconditional badge color; ignored once badgeRules are configured. */\n badgeColor?: string;\n badgeRules?: HeaderBadgeRule[];\n}\n\nconst asBadgeColor = (color: unknown): BadgeColor | undefined =>\n BADGE_COLORS.includes(color as BadgeColor) ? (color as BadgeColor) : undefined;\n\n/**\n * Whether a badge entry renders at all, and in which color. With rules, the\n * first whose expression passes wins and no match means no badge; without\n * rules, a truthy value shows the entry's unconditional color. One semantics,\n * no special cases. The expressions go through `applyRule` — the same evaluator\n * the tree's conditional icon/adornment rules use, so one rule behaves\n * identically wherever a designer puts it.\n */\nconst resolveBadge = (\n config: HeaderFieldConfig,\n value: unknown,\n nodeObj: Record<string, unknown>\n): { color: BadgeColor | undefined } | null => {\n if (config.badgeRules?.length) {\n const match = config.badgeRules.find(\n (rule) =>\n rule.expression && applyRule(rule.expression, nodeObj, null, false)\n );\n return match ? { color: asBadgeColor(match.color) } : null;\n }\n return value ? { color: asBadgeColor(config.badgeColor) } : null;\n};\n\n/**\n * Read a record property, preferring the lookup display text the data layer\n * stamps beside it (`<field>LookupValue` — the grid/WR row-stamping idiom).\n * Unstamped fields (no lookup, or an unresolved one) read as before.\n */\nconst readRecordValue = (\n source: Record<string, unknown> | undefined,\n property: string\n): unknown => source?.[`${property}LookupValue`] ?? source?.[property];\n\n/**\n * Static header fields (legacy NodeDetails value resolution, ported pure):\n * value from the record by propertyName, with the joining-entity fallback\n * chain when `joiningEntityKey` is configured. Pure — lookup resolution\n * happens in the data layer (inquiry/v2/api/queries.ts), never here.\n *\n * The entry's `display` selects how the renderer types the pair; badges also\n * resolve their visibility and color here, so the renderer stays dumb.\n */\nexport const resolveHeaderFields = (node: DisplayNode): HeaderField[] => {\n const configs = node.properties?.pageHeaderConfiguration as\n | HeaderFieldConfig[]\n | undefined;\n const nodeObj = node.nodeObj;\n if (!configs?.length || !nodeObj) return [];\n const fields: HeaderField[] = [];\n for (const config of configs) {\n if (!config.isShown) continue;\n const propertyName = config.propertyName ?? '';\n const property = config.property || propertyName;\n let value = readRecordValue(nodeObj, propertyName);\n if (config.joiningEntityKey) {\n if (config.joiningEntityKey === node.properties?.catalogObjectKey) {\n value = readRecordValue(nodeObj, property);\n } else {\n const joined = nodeObj[config.joiningEntityKey] as\n | Record<string, unknown>\n | undefined;\n value =\n readRecordValue(joined, property) ??\n readRecordValue(nodeObj, property);\n }\n }\n const display = config.display ?? 'field';\n // A falsy value (no rules) or a rule set with no match drops the badge.\n const badge =\n display === 'badge' ? resolveBadge(config, value, nodeObj) : null;\n if (display === 'badge' && !badge) continue;\n\n // Badge text: a boolean is a FLAG, and the flag's display string is the\n // entry's name (\"Confidential\"); every other value-bearing field shows its\n // VALUE, same as a plain field (lookup display text already preferred by\n // `readRecordValue`). Rules only decide whether — and in what colour — the\n // badge shows; they never change its text.\n const name = config.name ?? '';\n const text =\n display === 'badge' && typeof value === 'boolean'\n ? name\n : displayString(value);\n\n // Empty stays empty — the renderer decides the placeholder (legacy: 'N/A').\n const field: HeaderField = {\n label: name,\n value: text,\n display\n };\n if (badge?.color) field.color = badge.color;\n fields.push(field);\n }\n return fields;\n};\n\n/**\n * Node-level alert refs (legacy EntityHeader → UdpAlertsContainer read of\n * `properties.alerts`): the `{ id, alertId }` rows, entity nodes only (group\n * nodes never carried alerts). Pure — the `alert/{alertId}` fetch and the\n * threshold-status render happen in the alerts capability.\n */\nexport const resolveNodeAlerts = (node: DisplayNode): NodeAlert[] => {\n if (node.isGroupNode) return [];\n const alerts = node.properties?.alerts as\n | Array<{ id?: unknown; alertId?: unknown }>\n | undefined;\n if (!alerts?.length) return [];\n return alerts\n .filter((alert) => alert && alert.alertId != null && alert.alertId !== '')\n .map((alert) => ({\n id: alert.id != null ? toWireString(alert.id) : toWireString(alert.alertId),\n alertId: toWireString(alert.alertId)\n }));\n};\n\nconst resolveCollapse = (value: unknown): CollapseState => {\n if (!value || value === 'hidden') return { show: false, expanded: false };\n return { show: true, expanded: value === 'expanded' };\n};\n\n/** Visible tabs: sequence-ordered, rule-filtered, stable ids. */\nexport const resolveTabs = (node: DisplayNode): NodeViewTab[] => {\n const tabs = node.properties?.tabs as TabWire[] | undefined;\n const nodeObj = node.nodeObj ?? {};\n const nodePageHeaderDefault = node.properties?.defaultPageHeaderExpanded;\n if (!tabs?.length) return [];\n const visible: NodeViewTab[] = [];\n for (const tab of bySequence(tabs)) {\n if (!passesRule(tab, nodeObj)) continue;\n const pageId = tab.page?.pageId ?? '';\n const label =\n tab.displayName?.trim() || tab.page?.name?.trim() || '';\n visible.push({\n id: tab.id !== undefined && tab.id !== null ? String(tab.id) : pageId,\n label,\n pageId,\n pageHeaderPageId: resolveFirstMatchingPageId(\n tab.pageHeaderPages ?? null,\n nodeObj\n ),\n pageHeaderCollapse: resolveCollapse(\n tab.defaultPageHeaderExpanded || nodePageHeaderDefault\n ),\n queryId: tab.queryId ?? '',\n queryParamMapping: tab.queryParamMapping ?? null,\n requiredFieldMapping: tab.requiredFieldMapping ?? {},\n trees: tab.trees ?? []\n });\n }\n return visible;\n};\n\nexport const resolveNodeViewModel = (node: DisplayNode): NodeViewModel => {\n const properties = node.properties ?? {};\n const nodeObj = node.nodeObj ?? {};\n\n // `formatTreeLabel` is a legacy port whose quirks are preserved on purpose:\n // handed no template at all (a node with no configured headerName) it returns\n // that missing template back, TYPED as string but undefined at runtime. The\n // model owns the contract — `headerTitle: string` — so it is made true here\n // rather than at each of the readers, one of which (the kernel's empty-state\n // check, UdpNodeView.tsx) called `.trim()` on it and crashed the viewer.\n //\n // A string, though, is not yet a TITLE: a level configuring no headerName\n // rendered a blank title row for a record whose name the tree row showed\n // perfectly well. Hence the fallback contract, stated once here: a configured\n // headerName wins, and a level that configures none shows exactly what its\n // tree row shows (`resolveRowLabel`, the one row-label reader). Group nodes\n // are unchanged — their row label IS `properties.label`.\n const headerTitle =\n displayString(\n node.isGroupNode\n ? properties.label\n : formatTreeLabel(properties.headerName as string | undefined, nodeObj)\n ) || resolveRowLabel(node);\n\n const headerCollapse = resolveCollapse(properties.defaultNodeHeaderExpanded);\n const pageHeaderCollapse = resolveCollapse(\n properties.defaultPageHeaderExpanded\n );\n\n let header: NodeViewHeader = { kind: 'none' };\n if (headerCollapse.show) {\n const headerPageId = resolveFirstMatchingPageId(\n properties.nodeHeaderPages as PageCandidate[] | undefined,\n nodeObj\n );\n if (headerPageId) {\n header = { kind: 'page', pageId: headerPageId };\n } else {\n const fields = resolveHeaderFields(node);\n header = fields.length ? { kind: 'fields', fields } : { kind: 'none' };\n }\n }\n\n return {\n headerTitle,\n header,\n headerCollapse,\n pageHeaderCollapse,\n tabs: resolveTabs(node),\n panels: (properties.panels as unknown[] | undefined) ?? [],\n alerts: resolveNodeAlerts(node)\n };\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAwBA,MAAMQ,iBAAiBC,UAA2B;AAChD,KAAIA,UAAUC,KAAAA,KAAaD,UAAU,QAAQA,UAAU,GAAI,QAAO;AAClE,KAAI,OAAOA,UAAU,SAAU,QAAOE,KAAKC,UAAUH,MAAM;AAC3D,QAAOI,OAAOJ,MAAmC;;;;;;;AAkBnD,MAAaS,eAAe;CAC1B;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACD;;;;;;;;;;;;;AAkHD,MAAaqC,yBACXC,aACmB;CACnB,MAAMJ,WACJI,SAASR,SACTQ,SAASd,UACTc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AAaG,wBAAwBtB,SAAqC;CACxE,MAAME,aAAaF,KAAKE,cAAc,EAAE;CACxC,MAAMzB,UAAUuB,KAAKvB,WAAW,EAAE;CAelC,MAAMpC,cACJjC,cACE4F,KAAKW,cACDT,WAAWhF,QACXpB,gBAAgBoG,WAAWqB,YAAkC9C,QACnE,CAAC,IAAI1E,gBAAgBiG,KAAK;CAE5B,MAAMzD,iBAAiByE,gBAAgBd,WAAWsB,0BAA0B;CAC5E,MAAM/F,qBAAqBuF,gBACzBd,WAAWpC,0BACZ;CAED,IAAIxB,SAAyB,EAAEN,MAAM,QAAQ;AAC7C,KAAIO,eAAe5B,MAAM;EACvB,MAAM8G,eAAe9C,2BACnBuB,WAAWwB,iBACXjD,QACD;AACD,MAAIgD,aACFnF,UAAS;GAAEN,MAAM;GAAQT,QAAQkG;GAAc;OAC1C;GACL,MAAMxF,SAAS8D,oBAAoBC,KAAK;AACxC1D,YAASL,OAAO4C,SAAS;IAAE7C,MAAM;IAAUC;IAAQ,GAAG,EAAED,MAAM,QAAQ;;;AAI1E,QAAO;EACLK;EACAC;EACAC;EACAd;EACAe,MAAMyE,YAAYjB,KAAK;EACvBvD,QAASyD,WAAWzD,UAAoC,EAAE;EAC1DC,QAAQgE,kBAAkBV,KAAI;EAC/B"}
1
+ {"version":3,"file":"model.mjs","names":["applyRule","mapRuleVariables","formatTreeLabel","resolveRowLabel","DisplayNode","HeaderPageRef","JsonLogic","NodePanel","NodeTab","TreeRuleBinding","toWireString","queryParamsFromRecord","displayString","value","undefined","JSON","stringify","String","CollapseState","show","expanded","HeaderFieldDisplay","BADGE_COLORS","const","BadgeColor","NEUTRAL_BADGE_COLOR","HeaderField","label","display","color","NodeViewTab","id","pageId","pageHeaderPageId","pageHeaderCollapse","queryId","queryParamMapping","requiredFieldMapping","Record","trees","NodeViewHeader","kind","fields","NodeAlert","alertId","params","staged","NodeViewModel","headerTitle","header","headerCollapse","tabs","panels","alerts","titleBadges","FieldBadge","NodeViewPresence","title","body","actions","NodeViewLayout","showBand","compactTitleRow","showEmptyState","resolveNodeViewLayout","presence","bySequence","sequenceNo","list","T","sort","a","b","Number","passesRule","candidate","nodeObj","propertyMapping","jsonLogic","rule","resolveFirstMatchingPageId","candidates","length","page","HeaderBadgeRule","expression","HeaderFieldConfig","isShown","name","propertyName","property","joiningEntityKey","badgeColor","badgeRules","onRow","onTitle","asBadgeColor","includes","resolveBadge","config","base","match","find","readRecordValue","source","fieldConfigs","node","properties","pageHeaderConfiguration","readEntryValue","catalogObjectKey","joined","badgeText","resolveHeaderFields","badge","field","push","text","resolveFieldBadges","place","badges","resolveRowBadges","resolveTitleBadges","resolveNodeAlerts","isGroupNode","Array","paramMappings","stagedAlert","filter","alert","map","resolveCollapse","resolveTabs","nodePageHeaderDefault","defaultPageHeaderExpanded","visible","tab","displayName","trim","pageHeaderPages","resolveNodeViewModel","headerName","defaultNodeHeaderExpanded","headerPageId","nodeHeaderPages"],"sources":["../../../src/domain/nodeView/model.ts"],"sourcesContent":["/**\n * Node-view model resolution — the pure heart of the inquiry v2 kernel\n * (inquiry-v2-architecture.md §4.2).\n *\n * Given a loaded display node, derive everything the node view renders:\n * header title, header kind (page / static fields / none), collapse defaults,\n * the VISIBLE tab list (jsonLogic rules applied, stable ids, resolved per-tab\n * page-header page), and action panels. One shared first-matching-candidate\n * walk serves tabs, nodeHeaderPages, and pageHeaderPages.\n *\n * Deliberate fixes vs the legacy container (audit §3): numeric sequenceNo\n * ordering, visibility-filtered tabs drive everything (raw config count is\n * never consulted), stable tab identity instead of array indexes.\n */\nimport { applyRule, mapRuleVariables } from '../inquiryTree/rules';\nimport { formatTreeLabel } from '../inquiryTree/view';\nimport { resolveRowLabel } from '../inquiryTree/displayTree';\nimport type { DisplayNode } from '../inquiryTree/displayTree';\nimport type {\n HeaderPageRef,\n JsonLogic,\n NodePanel,\n NodeTab,\n TreeRuleBinding\n} from '../inquiryTree/types';\nimport { toWireString } from '../inquiryTree/wireString';\nimport { queryParamsFromRecord } from '../inquiryTree/runtime';\n/** Display-safe stringification: objects never render as '[object Object]'. */\nconst displayString = (value: unknown): string => {\n if (value === undefined || value === null || value === '') return '';\n if (typeof value === 'object') return JSON.stringify(value);\n return String(value as string | number | boolean);\n};\n\nexport interface CollapseState {\n /** false = the strip (and its chevron) does not exist. */\n show: boolean;\n /** Initial expanded state when shown. */\n expanded: boolean;\n}\n\n/** How a header entry renders. Absent on the wire = 'field' (legacy trees). */\nexport type HeaderFieldDisplay = 'field' | 'stat' | 'badge';\n\n/**\n * The `UdpBadge` `color` prop's legal values, declared beside the config that\n * picks one so Tree Builder offers exactly the set the viewer can render.\n * Anything else resolves colorless rather than reaching the component.\n */\nexport const BADGE_COLORS = [\n 'brand',\n 'danger',\n 'important',\n 'informative',\n 'severe',\n 'subtle',\n 'success',\n 'warning'\n] as const;\n\nexport type BadgeColor = (typeof BADGE_COLORS)[number];\n\n/** A badge with no colour of its own to fall back on. */\nconst NEUTRAL_BADGE_COLOR: BadgeColor = 'informative';\n\nexport interface HeaderField {\n label: string;\n /**\n * The string the entry displays. For fields and stats that is the record\n * value; for badges it is the badge's own text — the value, except for a\n * boolean flag, whose display string IS the entry's name (\"Confidential\").\n * The renderer prints this slot and nothing else.\n */\n value: string;\n /** 'field' unless the entry configures otherwise. */\n display: HeaderFieldDisplay;\n /** Badge color — badge entries only, absent when none is configured. */\n color?: BadgeColor;\n}\n\nexport interface NodeViewTab {\n /** Stable identity: config id, falling back to pageId. Never an index. */\n id: string;\n label: string;\n pageId: string;\n /** Rule-resolved page-header page for this tab, or null. */\n pageHeaderPageId: string | null;\n /** The page-header band display: the node-wide\n * `defaultPageHeaderExpanded`, the one setting every tab shares (as v1). */\n pageHeaderCollapse: CollapseState;\n queryId: string;\n queryParamMapping: unknown;\n requiredFieldMapping: Record<string, unknown>;\n trees: unknown[];\n}\n\nexport type NodeViewHeader =\n | { kind: 'page'; pageId: string }\n | { kind: 'fields'; fields: HeaderField[] }\n | { kind: 'none' };\n\n/** A node-level alert reference (legacy `properties.alerts` row). */\nexport interface NodeAlert {\n /** Stable row id (falls back to the alertId). */\n id: string;\n /** The alert (aggregate-threshold) config id to fetch and render. */\n alertId: string;\n /**\n * The alert query's parameters filled from this record (the row's\n * `paramMappings`, as row aggregate chips map theirs) — what scopes the\n * alert's number to the record. Empty = the query runs unparameterised.\n */\n params: Record<string, unknown>;\n /**\n * The alert config itself, when the row carries one the tree has not saved\n * yet (a builder's staged header badge, `stagedAlert`) — drawn as it is,\n * with no `alert/{alertId}` fetch: the id may not exist yet.\n */\n staged?: Record<string, unknown>;\n}\n\nexport interface NodeViewModel {\n headerTitle: string;\n header: NodeViewHeader;\n headerCollapse: CollapseState;\n tabs: NodeViewTab[];\n panels: NodePanel[];\n /** Node-level alert refs; the fetch/threshold render lives in the capability. */\n alerts: NodeAlert[];\n /** The fields drawn as badges beside the title (`onTitle`), after the alerts. */\n titleBadges: FieldBadge[];\n}\n\n/**\n * What the node view actually has to render, once the model AND the embedder's\n * capability allowlist have both been applied. The kernel supplies this (only\n * it knows the allowlist); the decision below is pure.\n */\nexport interface NodeViewPresence {\n /** A non-blank resolved header title. */\n title: boolean;\n /** The node-header capability renders (page or static fields). */\n header: boolean;\n /** The tab strip renders (more than one visible tab). */\n tabs: boolean;\n /** A tab page renders below the band. */\n body: boolean;\n /** The actions capability renders (configured panels). */\n actions: boolean;\n /** Badges render beside the title (alerts or field badges). */\n alerts: boolean;\n}\n\n/** How the node view degrades when its config gives it little or nothing. */\nexport interface NodeViewLayout {\n /** The header band renders at all. False = no band, no divider. */\n showBand: boolean;\n /**\n * The title row degrades to a slim right-aligned actions row: a blank title\n * with nothing below it (no header fields, no tabs) leaves the band's height\n * unjustified, so it compacts instead of floating the actions in dead space.\n */\n compactTitleRow: boolean;\n /** Nothing at all is configured — the pane shows a quiet empty state. */\n showEmptyState: boolean;\n}\n\n/**\n * The node view's degradation rule (one place, so band and body agree):\n *\n * - the band exists when anything can sit in it — title, header, tabs,\n * actions, or alerts;\n * - it compacts when it exists but has no title AND nothing below the title\n * row (header/tabs) to justify the full band height;\n * - the empty state shows only when the band has nothing AND there is no body.\n *\n * Capability semantics are untouched: a node with a tab, header, or actions is\n * never \"empty\".\n */\nexport const resolveNodeViewLayout = (\n presence: NodeViewPresence\n): NodeViewLayout => {\n const showBand =\n presence.title ||\n presence.header ||\n presence.tabs ||\n presence.actions ||\n presence.alerts;\n return {\n showBand,\n compactTitleRow:\n showBand && !presence.title && !presence.header && !presence.tabs,\n showEmptyState: !showBand && !presence.body\n };\n};\n\nconst bySequence = <T extends { sequenceNo?: number | string }>(\n list: T[]\n): T[] =>\n [...list].sort(\n (a, b) =>\n (Number(a.sequenceNo ?? 0) || 0) - (Number(b.sequenceNo ?? 0) || 0)\n );\n\n/** True when the candidate has no rule, or its rule passes against the record. */\nconst passesRule = (\n candidate: TreeRuleBinding,\n nodeObj: Record<string, unknown>\n): boolean => {\n if (!candidate.propertyMapping || !candidate.jsonLogic) return true;\n const rule = mapRuleVariables(candidate.propertyMapping, candidate.jsonLogic);\n return !!applyRule(rule, nodeObj);\n};\n\n/**\n * The shared sequence-ordered, rule-gated candidate walk: first candidate\n * whose rule passes (rule-less candidates always match) wins.\n */\nexport const resolveFirstMatchingPageId = (\n candidates: HeaderPageRef[] | null | undefined,\n nodeObj: Record<string, unknown>\n): string | null => {\n if (!candidates?.length) return null;\n for (const candidate of bySequence(candidates)) {\n if (passesRule(candidate, nodeObj)) {\n return candidate.page?.pageId ?? null;\n }\n }\n return null;\n};\n\n/**\n * One badge color rule — the `ConditionalIconRule` shape (inquiryTree/types.ts)\n * reduced to what a badge needs, and evaluated by the same rule engine.\n */\nexport interface HeaderBadgeRule {\n id?: string;\n color?: string;\n expression?: JsonLogic | null;\n}\n\ninterface HeaderFieldConfig {\n isShown?: boolean;\n name?: string;\n propertyName?: string;\n property?: string;\n joiningEntityKey?: string;\n /** Absent = 'field', so old trees and the v1 viewer are unaffected. */\n display?: HeaderFieldDisplay;\n /** Unconditional badge color; ignored once badgeRules are configured. */\n badgeColor?: string;\n badgeRules?: HeaderBadgeRule[];\n /** Also drawn as a badge on the record's tree row (resolveRowBadges). */\n onRow?: boolean;\n /** Also drawn as a badge beside the record's title (resolveTitleBadges). */\n onTitle?: boolean;\n}\n\nconst asBadgeColor = (color: unknown): BadgeColor | undefined =>\n BADGE_COLORS.includes(color as BadgeColor) ? (color as BadgeColor) : undefined;\n\n/**\n * Whether a badge entry renders at all, and in which color. A badge shows when\n * its value is present (a boolean flag only when true). The entry's own color\n * is the badge's color; rules override it for the records they match, first\n * match wins — the conditional icon's grammar, where the base icon is what\n * \"all other records\" get. A value no rule matches therefore still shows, in\n * the entry's color: a field must never vanish just because its value is one\n * the designer did not single out. The expressions go through `applyRule` —\n * the same evaluator the tree's conditional icon/adornment rules use, so one\n * rule behaves identically wherever a designer puts it.\n */\nconst resolveBadge = (\n config: HeaderFieldConfig,\n value: unknown,\n nodeObj: Record<string, unknown>\n): { color: BadgeColor | undefined } | null => {\n if (!value) return null;\n const base = asBadgeColor(config.badgeColor);\n if (!config.badgeRules?.length) return { color: base };\n const match = config.badgeRules.find(\n (rule) => rule.expression && applyRule(rule.expression, nodeObj)\n );\n return {\n color: match ? asBadgeColor(match.color) : (base ?? NEUTRAL_BADGE_COLOR)\n };\n};\n\n/**\n * Read a record property, preferring the lookup display text the data layer\n * stamps beside it (`<field>LookupValue` — the grid/WR row-stamping idiom).\n * Unstamped fields (no lookup, or an unresolved one) read as before.\n */\nconst readRecordValue = (\n source: Record<string, unknown> | undefined,\n property: string\n): unknown => source?.[`${property}LookupValue`] ?? source?.[property];\n\nconst fieldConfigs = (node: DisplayNode): HeaderFieldConfig[] =>\n (node.properties?.pageHeaderConfiguration as\n | HeaderFieldConfig[]\n | undefined) ?? [];\n\n/** An entry's value from the record, through its joining entity when it has one. */\nconst readEntryValue = (\n config: HeaderFieldConfig,\n node: DisplayNode,\n nodeObj: Record<string, unknown>\n): unknown => {\n const propertyName = config.propertyName ?? '';\n const property = config.property || propertyName;\n if (!config.joiningEntityKey) return readRecordValue(nodeObj, propertyName);\n if (config.joiningEntityKey === node.properties?.catalogObjectKey) {\n return readRecordValue(nodeObj, property);\n }\n const joined = nodeObj[config.joiningEntityKey] as\n | Record<string, unknown>\n | undefined;\n return readRecordValue(joined, property) ?? readRecordValue(nodeObj, property);\n};\n\n/**\n * Badge text: a boolean is a FLAG, and the flag's display string is the\n * entry's name (\"Confidential\"); every other value-bearing field shows its\n * VALUE, same as a plain field (lookup display text already preferred by\n * `readRecordValue`). Rules only decide whether — and in what colour — the\n * badge shows; they never change its text.\n */\nconst badgeText = (config: HeaderFieldConfig, value: unknown): string =>\n typeof value === 'boolean' ? (config.name ?? '') : displayString(value);\n\n/**\n * Static header fields (legacy NodeDetails value resolution, ported pure):\n * value from the record by propertyName, with the joining-entity fallback\n * chain when `joiningEntityKey` is configured. Pure — lookup resolution\n * happens in the data layer (inquiry/v2/api/queries.ts), never here.\n *\n * The entry's `display` selects how the renderer types the pair; badges also\n * resolve their visibility and color here, so the renderer stays dumb.\n */\nexport const resolveHeaderFields = (node: DisplayNode): HeaderField[] => {\n const nodeObj = node.nodeObj;\n if (!nodeObj) return [];\n const fields: HeaderField[] = [];\n for (const config of fieldConfigs(node)) {\n if (!config.isShown) continue;\n const value = readEntryValue(config, node, nodeObj);\n const display = config.display ?? 'field';\n // A badge with no value to show is dropped (resolveBadge).\n const badge =\n display === 'badge' ? resolveBadge(config, value, nodeObj) : null;\n if (display === 'badge' && !badge) continue;\n\n // Empty stays empty — the renderer decides the placeholder (legacy: 'N/A').\n const field: HeaderField = {\n label: config.name ?? '',\n value:\n display === 'badge' ? badgeText(config, value) : displayString(value),\n display\n };\n if (badge?.color) field.color = badge.color;\n fields.push(field);\n }\n return fields;\n};\n\n/** One field drawn as a badge outside the header's details. */\nexport interface FieldBadge {\n text: string;\n /** Absent when the field's badge has no colour configured. */\n color?: BadgeColor;\n}\n\n/**\n * The fields a level draws as badges in one of the two places outside the\n * header's details — its tree rows (`onRow`) or beside the record's title\n * (`onTitle`) — in list order. It is the header's own entry, read by the\n * header's own functions — value, text, visibility and colour — so a field's\n * badge is the same badge in every place, and can only be configured once.\n * Whether the details show the field (`isShown`), and how (`display`), is the\n * details' business alone.\n */\nconst resolveFieldBadges = (\n node: DisplayNode,\n place: 'onRow' | 'onTitle'\n): FieldBadge[] => {\n const nodeObj = node.nodeObj;\n if (!nodeObj) return [];\n const badges: FieldBadge[] = [];\n for (const config of fieldConfigs(node)) {\n if (!config[place]) continue;\n const value = readEntryValue(config, node, nodeObj);\n const badge = resolveBadge(config, value, nodeObj);\n if (!badge) continue;\n const text = badgeText(config, value);\n if (!text) continue;\n badges.push(badge.color ? { text, color: badge.color } : { text });\n }\n return badges;\n};\n\n/** The field badges on a record's tree row. */\nexport const resolveRowBadges = (node: DisplayNode): FieldBadge[] =>\n resolveFieldBadges(node, 'onRow');\n\n/** The field badges beside a record's title. */\nexport const resolveTitleBadges = (node: DisplayNode): FieldBadge[] =>\n resolveFieldBadges(node, 'onTitle');\n\n/**\n * Node-level alert refs (legacy EntityHeader → UdpAlertsContainer read of\n * `properties.alerts`): the `{ id, alertId, paramMappings }` rows, entity nodes only (group\n * nodes never carried alerts). Pure — the `alert/{alertId}` fetch and the\n * threshold-status render happen in the alerts capability.\n */\nexport const resolveNodeAlerts = (node: DisplayNode): NodeAlert[] => {\n if (node.isGroupNode) return [];\n const alerts = node.properties?.alerts as\n | Array<{\n id?: unknown;\n alertId?: unknown;\n paramMappings?: Record<string, string> | null;\n stagedAlert?: Record<string, unknown> | null;\n }>\n | undefined;\n if (!alerts?.length) return [];\n return alerts\n .filter((alert) => alert && alert.alertId != null && alert.alertId !== '')\n .map((alert) => ({\n id: alert.id != null ? toWireString(alert.id) : toWireString(alert.alertId),\n alertId: toWireString(alert.alertId),\n params: queryParamsFromRecord(node.nodeObj, alert.paramMappings),\n ...(alert.stagedAlert ? { staged: alert.stagedAlert } : {})\n }));\n};\n\nconst resolveCollapse = (value: unknown): CollapseState => {\n if (!value || value === 'hidden') return { show: false, expanded: false };\n return { show: true, expanded: value === 'expanded' };\n};\n\n/**\n * Visible tabs: sequence-ordered, rule-filtered, stable ids. A tab with no\n * page (saved as `page: ''`) has nothing to show and is skipped.\n */\nexport const resolveTabs = (node: DisplayNode): NodeViewTab[] => {\n const tabs = node.properties?.tabs as NodeTab[] | undefined;\n const nodeObj = node.nodeObj ?? {};\n const nodePageHeaderDefault = node.properties?.defaultPageHeaderExpanded;\n if (!tabs?.length) return [];\n const visible: NodeViewTab[] = [];\n for (const tab of bySequence(tabs)) {\n const pageId = tab.page?.pageId ?? '';\n if (!pageId || !passesRule(tab, nodeObj)) continue;\n const label =\n tab.displayName?.trim() || tab.page?.name?.trim() || '';\n visible.push({\n id: tab.id !== undefined && tab.id !== null ? String(tab.id) : pageId,\n label,\n pageId,\n pageHeaderPageId: resolveFirstMatchingPageId(\n tab.pageHeaderPages ?? null,\n nodeObj\n ),\n pageHeaderCollapse: resolveCollapse(nodePageHeaderDefault),\n queryId: tab.queryId ?? '',\n queryParamMapping: tab.queryParamMapping ?? null,\n requiredFieldMapping: tab.requiredFieldMapping ?? {},\n trees: tab.trees ?? []\n });\n }\n return visible;\n};\n\nexport const resolveNodeViewModel = (node: DisplayNode): NodeViewModel => {\n const properties = node.properties ?? {};\n const nodeObj = node.nodeObj ?? {};\n\n // A configured headerName wins; a level that configures none shows exactly\n // what its tree row shows. Group nodes' row label IS `properties.label`.\n const headerTitle =\n (node.isGroupNode\n ? displayString(properties.label)\n : formatTreeLabel(properties.headerName as string | undefined, nodeObj)) ||\n resolveRowLabel(node);\n\n const headerCollapse = resolveCollapse(properties.defaultNodeHeaderExpanded);\n let header: NodeViewHeader = { kind: 'none' };\n if (headerCollapse.show) {\n const headerPageId = resolveFirstMatchingPageId(\n properties.nodeHeaderPages as HeaderPageRef[] | undefined,\n nodeObj\n );\n if (headerPageId) {\n header = { kind: 'page', pageId: headerPageId };\n } else {\n const fields = resolveHeaderFields(node);\n header = fields.length ? { kind: 'fields', fields } : { kind: 'none' };\n }\n }\n\n return {\n headerTitle,\n header,\n headerCollapse,\n tabs: resolveTabs(node),\n panels: (properties.panels as NodePanel[] | undefined) ?? [],\n alerts: resolveNodeAlerts(node),\n titleBadges: resolveTitleBadges(node)\n };\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;AA4BA,MAAMY,iBAAiBC,UAA2B;AAChD,KAAIA,UAAUC,KAAAA,KAAaD,UAAU,QAAQA,UAAU,GAAI,QAAO;AAClE,KAAI,OAAOA,UAAU,SAAU,QAAOE,KAAKC,UAAUH,MAAM;AAC3D,QAAOI,OAAOJ,MAAmC;;;;;;;AAkBnD,MAAaS,eAAe;CAC1B;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACD;;AAKD,MAAMG,sBAAkC;;;;;;;;;;;;;AAoHxC,MAAauC,yBACXC,aACmB;CACnB,MAAMJ,WACJI,SAASR,SACTQ,SAAShB,UACTgB,SAASd,QACTc,SAASN,WACTM,SAASZ;AACX,QAAO;EACLQ;EACAC,iBACED,YAAY,CAACI,SAASR,SAAS,CAACQ,SAAShB,UAAU,CAACgB,SAASd;EAC/DY,gBAAgB,CAACF,YAAY,CAACI,SAASP;EACxC;;AAGH,MAAMQ,cACJE,SAEA,CAAC,GAAGA,KAAK,CAACE,MACPC,GAAGC,OACDC,OAAOF,EAAEJ,cAAc,EAAE,IAAI,MAAMM,OAAOD,EAAEL,cAAc,EAAE,IAAI,GACpE;;AAGH,MAAMO,cACJC,WACAC,YACY;AACZ,KAAI,CAACD,UAAUE,mBAAmB,CAACF,UAAUG,UAAW,QAAO;AAE/D,QAAO,CAAC,CAAC9E,UADIC,iBAAiB0E,UAAUE,iBAAiBF,UAAUG,UAAU,EACpDF,QAAQ;;;;;;AAOnC,MAAaI,8BACXC,YACAL,YACkB;AAClB,KAAI,CAACK,YAAYC,OAAQ,QAAO;AAChC,MAAK,MAAMP,aAAaT,WAAWe,WAAW,CAC5C,KAAIP,WAAWC,WAAWC,Q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IAAIzG,OAAO,OAAOd,OAAOuH,IAAIzG,GAAG,GAAGC;GAC/DL;GACAK;GACAC,kBAAkB+C,2BAChBwD,IAAIG,mBAAmB,MACvB/D,QACD;GACD1C,oBAAoBiG,gBAAgBE,sBAAsB;GAC1DlG,SAASqG,IAAIrG,WAAW;GACxBC,mBAAmBoG,IAAIpG,qBAAqB;GAC5CC,sBAAsBmG,IAAInG,wBAAwB,EAAE;GACpDE,OAAOiG,IAAIjG,SAAS,EAAA;GACrB,CAAC;;AAEJ,QAAOgG;;AAGT,MAAaK,wBAAwBlC,SAAqC;CACxE,MAAMC,aAAaD,KAAKC,cAAc,EAAE;CACxC,MAAM/B,UAAU8B,KAAK9B,WAAW,EAAE;CAIlC,MAAM5B,eACH0D,KAAKkB,cACFhH,cAAc+F,WAAWhF,MAAM,GAC/BzB,gBAAgByG,WAAWkC,YAAkCjE,QAAQ,KACzEzE,gBAAgBuG,KAAK;CAEvB,MAAMxD,iBAAiBiF,gBAAgBxB,WAAWmC,0BAA0B;CAC5E,IAAI7F,SAAyB,EAAER,MAAM,QAAQ;AAC7C,KAAIS,eAAe/B,MAAM;EACvB,MAAM4H,eAAe/D,2BACnB2B,WAAWqC,iBACXpE,QACD;AACD,MAAImE,aACF9F,UAAS;GAAER,MAAM;GAAQT,QAAQ+G;GAAc;OAC1C;GACL,MAAMrG,SAASuE,oBAAoBP,KAAK;AACxCzD,YAASP,OAAOwC,SAAS;IAAEzC,MAAM;IAAUC;IAAQ,GAAG,EAAED,MAAM,QAAQ;;;AAI1E,QAAO;EACLO;EACAC;EACAC;EACAC,MAAMiF,YAAY1B,KAAK;EACvBtD,QAASuD,WAAWvD,UAAsC,EAAE;EAC5DC,QAAQsE,kBAAkBjB,KAAK;EAC/BpD,aAAaoE,mBAAmBhB,KAAI;EACrC"}
@@ -1,4 +1,19 @@
1
1
  import React from 'react';
2
+ export interface ErrorBoundaryAction {
3
+ label: string;
4
+ onClick: () => void;
5
+ /** udp icon-registry name, e.g. "warning", "info" */
6
+ iconName?: string;
7
+ appearance?: 'primary' | 'secondary' | 'outline' | 'subtle' | 'transparent';
8
+ }
9
+ export interface ErrorBoundaryProps {
10
+ children?: React.ReactNode;
11
+ title?: string;
12
+ message?: string;
13
+ /** Buttons shown under the error message; omit to render no actions. */
14
+ actions?: ErrorBoundaryAction[];
15
+ onError?: (error: Error, info: React.ErrorInfo) => void;
16
+ }
2
17
  /**
3
18
  * The boundary itself must stay a class (getDerivedStateFromError /
4
19
  * componentDidCatch), so `t` is injected by this thin function wrapper rather
@@ -6,6 +21,7 @@ import React from 'react';
6
21
  * return type can't be named portably, which fails declaration emit (TS2742).
7
22
  * Errors from children still land on the inner class - it is the boundary.
8
23
  */
9
- declare const ErrorBoundary: (props: any) => React.JSX.Element;
24
+ declare const ErrorBoundary: (props: ErrorBoundaryProps) => React.JSX.Element;
25
+ export { ErrorBoundary };
10
26
  export default ErrorBoundary;
11
27
  //# sourceMappingURL=ErrorBoundary.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ErrorBoundary.d.ts","sourceRoot":"","sources":["../../src/errorBoundary/ErrorBoundary.jsx"],"names":[],"mappings":"AAAA,OAAO,KAAoB,MAAM,OAAO,CAAC;AAwFzC;;;;;;GAMG;AACH,QAAA,MAAM,aAAa,mCAGlB,CAAC;AAEF,eAAe,aAAa,CAAC"}
1
+ {"version":3,"file":"ErrorBoundary.d.ts","sourceRoot":"","sources":["../../src/errorBoundary/ErrorBoundary.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAoC,MAAM,OAAO,CAAC;AAUzD,MAAM,WAAW,mBAAmB;IAClC,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,qDAAqD;IACrD,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,UAAU,CAAC,EAAE,SAAS,GAAG,WAAW,GAAG,SAAS,GAAG,QAAQ,GAAG,aAAa,CAAC;CAC7E;AAED,MAAM,WAAW,kBAAkB;IACjC,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,wEAAwE;IACxE,OAAO,CAAC,EAAE,mBAAmB,EAAE,CAAC;IAChC,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,EAAE,IAAI,EAAE,KAAK,CAAC,SAAS,KAAK,IAAI,CAAC;CACzD;AAuFD;;;;;;GAMG;AACH,QAAA,MAAM,aAAa,kDAGlB,CAAC;AAEF,OAAO,EAAE,aAAa,EAAE,CAAC;AACzB,eAAe,aAAa,CAAC"}
@@ -1,17 +1,20 @@
1
- import React, { Component } from 'react';
1
+ import React, { Component, lazy, Suspense } from 'react';
2
2
  import { useTranslation } from 'react-i18next';
3
- import { Adornment } from '../UI';
4
- import { Sticky } from '../UI';
5
- import { Typography } from '../UI/dataDisplay/typography';
3
+ // Shell imports this boundary on every page load, but the fallback only ever
4
+ // renders after an error — so the Fluent runtime it needs is split out of the
5
+ // eager graph rather than riding along with the boundary.
6
+ const ErrorBoundaryFallback = lazy(() => import('./ErrorBoundaryFallback').then((m) => ({ default: m.ErrorBoundaryFallback })));
6
7
  class ErrorBoundaryBase extends Component {
7
8
  constructor(props) {
9
+ var _a;
8
10
  super(props);
9
11
  this.state = {
10
12
  hasError: false,
11
13
  };
12
- if (import.meta.env && import.meta.env.DEV && import.meta.hot) {
14
+ const meta = import.meta;
15
+ if (((_a = meta.env) === null || _a === void 0 ? void 0 : _a.DEV) && meta.hot) {
13
16
  // reset the error boundary when there are HMR changes detected
14
- import.meta.hot.on('vite:beforeUpdate', () => {
17
+ meta.hot.on('vite:beforeUpdate', () => {
15
18
  // If this boundary caught an error, reset it on HMR
16
19
  if (this.state.hasError) {
17
20
  this.setState({ hasError: false });
@@ -19,30 +22,30 @@ class ErrorBoundaryBase extends Component {
19
22
  });
20
23
  }
21
24
  }
22
- static getDerivedStateFromError(error) {
25
+ static getDerivedStateFromError() {
23
26
  return {
24
27
  hasError: true,
25
28
  };
26
29
  }
27
30
  componentDidCatch(error, info) {
28
- console.log(error);
29
- console.log(info);
31
+ if (this.props.onError) {
32
+ this.props.onError(error, info);
33
+ }
34
+ else {
35
+ console.log(error);
36
+ console.log(info);
37
+ }
30
38
  }
31
39
  render() {
40
+ var _a, _b;
32
41
  const { hasError } = this.state;
33
- const { children, t } = this.props;
42
+ const { children, actions, t } = this.props;
43
+ const title = (_a = this.props.title) !== null && _a !== void 0 ? _a : t('errorBoundary.title', { defaultValue: 'A fatal error has occurred.' });
44
+ const message = (_b = this.props.message) !== null && _b !== void 0 ? _b : t('errorBoundary.description', {
45
+ defaultValue: 'We are sorry this happened. A log of this error has been recorded and sent to support.',
46
+ });
34
47
  if (hasError) {
35
- return (React.createElement("div", { style: { height: "100%", display: "flex" } }, React.createElement("div", null, React.createElement(Adornment, { color: "error" })), React.createElement("div", { style: { marginLeft: 32 } }, React.createElement("div", { style: { marginTop: 64 } }, React.createElement(Typography, { style: { margin: 8 }, variant: "h3" }, t('errorBoundary.title', {
36
- defaultValue: 'A fatal error has occurred.'
37
- })), React.createElement(Typography, { style: { margin: 8 }, variant: "body2" }, t('errorBoundary.description', {
38
- defaultValue: 'We are sorry this happened. A log of this error has been recorded and sent to support.'
39
- }))), React.createElement("div", { style: { marginTop: 118, display: "flex", flexDirection: "column", alignItems: "flex-start" } }, React.createElement(Sticky, { text: t('errorBoundary.createTicket', {
40
- defaultValue: 'Create a support ticket'
41
- }), size: "small", color: "success" }), React.createElement(Sticky, { text: t('errorBoundary.reportBug', {
42
- defaultValue: 'Report this bug'
43
- }), size: "small", color: "warning" }), React.createElement(Sticky, { text: t('errorBoundary.viewDocuments', {
44
- defaultValue: 'View Documents'
45
- }), size: "small", color: "info" })))));
48
+ return (React.createElement(Suspense, { fallback: React.createElement("div", { style: { height: '100%', display: 'flex', flexDirection: 'column', gap: 8, padding: 32 } }, React.createElement("h3", null, title), React.createElement("p", null, message)) }, React.createElement(ErrorBoundaryFallback, { title: title, message: message, actions: actions })));
46
49
  }
47
50
  return children;
48
51
  }
@@ -58,5 +61,6 @@ const ErrorBoundary = (props) => {
58
61
  const { t } = useTranslation();
59
62
  return React.createElement(ErrorBoundaryBase, Object.assign({}, props, { t: t }));
60
63
  };
64
+ export { ErrorBoundary };
61
65
  export default ErrorBoundary;
62
66
  //# sourceMappingURL=ErrorBoundary.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ErrorBoundary.js","sourceRoot":"","sources":["../../src/errorBoundary/ErrorBoundary.jsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACzC,OAAO,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AAC/C,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAClC,OAAO,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,UAAU,EAAE,MAAM,8BAA8B,CAAC;AAC1D,MAAM,iBAAkB,SAAQ,SAAS;IACvC,YAAY,KAAK,EAAE;QACjB,KAAK,CAAC,KAAK,CAAC,CAAC;QACb,IAAI,CAAC,KAAK,GAAG;YACX,QAAQ,EAAE,KAAK;SAChB,CAAC;QAEF,IAAI,OAAO,IAAI,CAAC,GAAG,IAAI,OAAO,IAAI,CAAC,GAAG,CAAC,GAAG,IAAI,OAAO,IAAI,CAAC,GAAG,EAAE,CAAC;YAC9D,+DAA+D;YAC/D,OAAO,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,mBAAmB,EAAE,GAAG,EAAE,CAAC;gBAC5C,oDAAoD;gBACpD,IAAI,IAAI,CAAC,KAAK,CAAC,QAAQ,EAAE,CAAC;oBACxB,IAAI,CAAC,QAAQ,CAAC,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC,CAAC;gBACrC,CAAC;YAAA,CACF,CAAC,CAAC;QACL,CAAC;IAAA,CACF;IAED,MAAM,CAAC,wBAAwB,CAAC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C,CAAC;QAC5E,MAAM,OAAO,SACX,IAAI,CAAC,KAAK,CAAC,OAAO,mCAClB,CAAC,CAAC,2BAA2B,EAAE;YAC7B,YAAY,EACV,wFAAwF;SAC3F,CAAC,CAAC;QACL,IAAI,QAAQ,EAAE,CAAC;YACb,OAAO,CACL,oBAAC,QAAQ,IACP,QAAQ,EACN,6BAAK,KAAK,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,aAAa,EAAE,QAAQ,EAAE,GAAG,EAAE,CAAC,EAAE,OAAO,EAAE,EAAE,EAAE,IAC3F,gCAAK,KAAK,CAAM,EAChB,+BAAI,OAAO,CAAK,CACZ,IAGR,oBAAC,qBAAqB,IAAC,KAAK,EAAE,KAAK,EAAE,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,OAAO,GAAI,CAClE,CACZ,CAAC;QACJ,CAAC;QACD,OAAO,QAAQ,CAAC;IAAA,CACjB;CACF;AAED;;;;;;GAMG;AACH,MAAM,aAAa,GAAG,CAAC,KAAyB,EAAE,EAAE,CAAC;IACnD,MAAM,EAAE,CAAC,EAAE,GAAG,cAAc,EAAE,CAAC;IAC/B,OAAO,oBAAC,iBAAiB,oBAAK,KAAK,IAAE,CAAC,EAAE,CAAC,IAAI,CAAC;AAAA,CAC/C,CAAC;AAEF,OAAO,EAAE,aAAa,EAAE,CAAC;AACzB,eAAe,aAAa,CAAC"}
@@ -1,55 +1,43 @@
1
1
  import { c } from "../reactCompilerRuntime.mjs";
2
- import { Typography } from "../UI/dataDisplay/typography/Typography.mjs";
3
- import { Adornment } from "../UI/components/feedback/Adornment.mjs";
4
- import { Sticky } from "../UI/components/dataDisplay/Sticky.mjs";
5
- import React, { Component } from "react";
2
+ import React, { Component, Suspense, lazy } from "react";
6
3
  import { useTranslation } from "react-i18next";
7
- //#region src/errorBoundary/ErrorBoundary.jsx
4
+ //#region src/errorBoundary/ErrorBoundary.tsx
5
+ const ErrorBoundaryFallback = lazy(() => import("./ErrorBoundaryFallback.mjs").then((m) => ({ default: m.ErrorBoundaryFallback })));
8
6
  var ErrorBoundaryBase = class extends Component {
9
7
  constructor(props) {
10
8
  super(props);
11
9
  this.state = { hasError: false };
12
- if (import.meta.env && import.meta.env.DEV && import.meta.hot) import.meta.hot.on("vite:beforeUpdate", () => {
10
+ const meta = import.meta;
11
+ if (meta.env?.DEV && meta.hot) meta.hot.on("vite:beforeUpdate", () => {
13
12
  if (this.state.hasError) this.setState({ hasError: false });
14
13
  });
15
14
  }
16
- static getDerivedStateFromError(error) {
15
+ static getDerivedStateFromError() {
17
16
  return { hasError: true };
18
17
  }
19
18
  componentDidCatch(error, info) {
20
- console.log(error);
21
- console.log(info);
19
+ if (this.props.onError) this.props.onError(error, info);
20
+ else {
21
+ console.log(error);
22
+ console.log(info);
23
+ }
22
24
  }
23
25
  render() {
24
26
  const { hasError } = this.state;
25
- const { children, t } = this.props;
26
- if (hasError) return /* @__PURE__ */ React.createElement("div", { style: {
27
+ const { children, actions, t } = this.props;
28
+ const title = this.props.title ?? t("errorBoundary.title", { defaultValue: "A fatal error has occurred." });
29
+ const message = this.props.message ?? t("errorBoundary.description", { defaultValue: "We are sorry this happened. A log of this error has been recorded and sent to support." });
30
+ if (hasError) return /* @__PURE__ */ React.createElement(Suspense, { fallback: /* @__PURE__ */ React.createElement("div", { style: {
27
31
  height: "100%",
28
- display: "flex"
29
- } }, /* @__PURE__ */ React.createElement("div", null, /* @__PURE__ */ React.createElement(Adornment, { color: "error" })), /* @__PURE__ */ React.createElement("div", { style: { marginLeft: 32 } }, /* @__PURE__ */ React.createElement("div", { style: { marginTop: 64 } }, /* @__PURE__ */ React.createElement(Typography, {
30
- style: { margin: 8 },
31
- variant: "h3"
32
- }, t("errorBoundary.title", { defaultValue: "A fatal error has occurred." })), /* @__PURE__ */ React.createElement(Typography, {
33
- style: { margin: 8 },
34
- variant: "body2"
35
- }, t("errorBoundary.description", { defaultValue: "We are sorry this happened. A log of this error has been recorded and sent to support." }))), /* @__PURE__ */ React.createElement("div", { style: {
36
- marginTop: 118,
37
32
  display: "flex",
38
33
  flexDirection: "column",
39
- alignItems: "flex-start"
40
- } }, /* @__PURE__ */ React.createElement(Sticky, {
41
- text: t("errorBoundary.createTicket", { defaultValue: "Create a support ticket" }),
42
- size: "small",
43
- color: "success"
44
- }), /* @__PURE__ */ React.createElement(Sticky, {
45
- text: t("errorBoundary.reportBug", { defaultValue: "Report this bug" }),
46
- size: "small",
47
- color: "warning"
48
- }), /* @__PURE__ */ React.createElement(Sticky, {
49
- text: t("errorBoundary.viewDocuments", { defaultValue: "View Documents" }),
50
- size: "small",
51
- color: "info"
52
- }))));
34
+ gap: 8,
35
+ padding: 32
36
+ } }, /* @__PURE__ */ React.createElement("h3", null, title), /* @__PURE__ */ React.createElement("p", null, message)) }, /* @__PURE__ */ React.createElement(ErrorBoundaryFallback, {
37
+ title,
38
+ message,
39
+ actions
40
+ }));
53
41
  return children;
54
42
  }
55
43
  };
@@ -1 +1 @@
1
- {"version":3,"file":"ErrorBoundary.mjs","names":["React","Component","useTranslation","Adornment","Sticky","Typography","ErrorBoundaryBase","constructor","props","state","hasError","import","meta","env","DEV","hot","on","setState","getDerivedStateFromError","error","componentDidCatch","info","console","log","render","children","t","height","display","marginLeft","marginTop","margin","defaultValue","flexDirection","alignItems","ErrorBoundary","$","_c","t0"],"sources":["../../src/errorBoundary/ErrorBoundary.jsx"],"sourcesContent":["import React, { Component } from 'react';\nimport { useTranslation } from 'react-i18next';\nimport { Adornment } from '../UI';\nimport { Sticky } from '../UI';\nimport { Typography } from '../UI/dataDisplay/typography';\nclass ErrorBoundaryBase extends Component {\n constructor(props) {\n super(props);\n this.state = {\n hasError: false,\n };\n\n if (import.meta.env && import.meta.env.DEV && import.meta.hot) {\n // reset the error boundary when there are HMR changes detected\n import.meta.hot.on('vite:beforeUpdate', () => {\n // If this boundary caught an error, reset it on HMR\n if (this.state.hasError) {\n this.setState({ hasError: false });\n }\n });\n }\n }\n\n static getDerivedStateFromError(error) {\n return {\n hasError: true,\n };\n }\n\n componentDidCatch(error, info) {\n console.log(error);\n console.log(info);\n }\n\n render() {\n const { hasError } = this.state;\n const { children, t } = this.props;\n if (hasError) {\n return (\n <div style={{ height: \"100%\", display: \"flex\" }}>\n <div>\n <Adornment color=\"error\" />\n </div>\n <div style={{ marginLeft: 32 }}>\n <div style={{ marginTop: 64 }}>\n <Typography style={{ margin: 8 }} variant=\"h3\">\n {t('errorBoundary.title', {\n defaultValue: 'A fatal error has occurred.'\n })}\n </Typography>\n <Typography style={{ margin: 8 }} variant=\"body2\">\n {t('errorBoundary.description', {\n defaultValue:\n 'We are sorry this happened. A log of this error has been recorded and sent to support.'\n })}\n </Typography>\n </div>\n <div style={{ marginTop: 118, display: \"flex\", flexDirection: \"column\", alignItems: \"flex-start\" }}>\n <Sticky\n text={t('errorBoundary.createTicket', {\n defaultValue: 'Create a support ticket'\n })}\n size=\"small\"\n color=\"success\"\n />\n <Sticky\n text={t('errorBoundary.reportBug', {\n defaultValue: 'Report this bug'\n })}\n size=\"small\"\n color=\"warning\"\n />\n <Sticky\n text={t('errorBoundary.viewDocuments', {\n defaultValue: 'View Documents'\n })}\n size=\"small\"\n color=\"info\"\n />\n </div>\n </div>\n </div>\n )\n }\n return children;\n }\n}\n\n/**\n * The boundary itself must stay a class (getDerivedStateFromError /\n * componentDidCatch), so `t` is injected by this thin function wrapper rather\n * than the withTranslation HOC: under pnpm's nested layout the HOC's inferred\n * return type can't be named portably, which fails declaration emit (TS2742).\n * Errors from children still land on the inner class - it is the boundary.\n */\nconst ErrorBoundary = (props) => {\n const { t } = useTranslation();\n return <ErrorBoundaryBase {...props} t={t} />;\n};\n\nexport default ErrorBoundary;\n"],"mappings":";;;;;;;AAKA,IAAMM,oBAAN,cAAgCL,UAAU;CACxCM,YAAYC,OAAO;AACjB,QAAMA,MAAM;AACZ,OAAKC,QAAQ,EACXC,UAAU,OACX;AAED,MAAIC,OAAOC,KAAKC,OAAOF,OAAOC,KAAK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2B,EACjCM,cAAc,mBACf,CAAC;GACF,MAAK;GACL,OAAM;GAAS,CAAA,EAEjB,sBAAA,cAAC,QAAD;GACE,MAAMN,EAAE,+BAA+B,EACrCM,cAAc,kBACf,CAAC;GACF,MAAK;GACL,OAAM;GAAM,CAAA,CAEX,CACF,CACD;AAGV,SAAOP;;;;;;;;;;AAWX,MAAMU,iBAAgB3B,UAAA;CAAA,MAAA4B,IAAAC,EAAA,EAAA;CACpB,MAAA,EAAAX,MAAcxB,gBAAgB;CAAC,IAAAoC;AAAA,KAAAF,EAAA,OAAA5B,SAAA4B,EAAA,OAAAV,GAAA;AACxBY,OAAA,sBAAA,cAAC,mBAAD;GAAkB,GAAK9B;GAAUkB;GAAK,CAAA;AAAAU,IAAA,KAAA5B;AAAA4B,IAAA,KAAAV;AAAAU,IAAA,KAAAE;OAAAA,MAAAF,EAAA;AAAA,QAAtCE"}
1
+ {"version":3,"file":"ErrorBoundary.mjs","names":["React","Component","lazy","Suspense","useTranslation","ErrorBoundaryFallback","then","m","default","ErrorBoundaryAction","label","onClick","iconName","appearance","ErrorBoundaryProps","children","ReactNode","title","message","actions","onError","error","Error","info","ErrorInfo","ErrorBoundaryState","hasError","TranslateFn","key","options","defaultValue","ErrorBoundaryBaseProps","t","ViteImportMeta","env","DEV","hot","on","event","cb","ErrorBoundaryBase","constructor","props","state","meta","import","setState","getDerivedStateFromError","componentDidCatch","console","log","render","height","display","flexDirection","gap","padding","ErrorBoundary","$","_c","t0"],"sources":["../../src/errorBoundary/ErrorBoundary.tsx"],"sourcesContent":["import React, { Component, lazy, Suspense } from 'react';\nimport { useTranslation } from 'react-i18next';\n\n// Shell imports this boundary on every page load, but the fallback only ever\n// renders after an error — so the Fluent runtime it needs is split out of the\n// eager graph rather than riding along with the boundary.\nconst ErrorBoundaryFallback = lazy(() =>\n import('./ErrorBoundaryFallback').then((m) => ({ default: m.ErrorBoundaryFallback })),\n);\n\nexport interface ErrorBoundaryAction {\n label: string;\n onClick: () => void;\n /** udp icon-registry name, e.g. \"warning\", \"info\" */\n iconName?: string;\n appearance?: 'primary' | 'secondary' | 'outline' | 'subtle' | 'transparent';\n}\n\nexport interface ErrorBoundaryProps {\n children?: React.ReactNode;\n title?: string;\n message?: string;\n /** Buttons shown under the error message; omit to render no actions. */\n actions?: ErrorBoundaryAction[];\n onError?: (error: Error, info: React.ErrorInfo) => void;\n}\n\ninterface ErrorBoundaryState {\n hasError: boolean;\n}\n\n/**\n * Structural type for the `t` passed down to the class. Declared inline rather\n * than imported from i18next so declaration emit never has to name a type from\n * a nested pnpm dependency (TS2742).\n */\ntype TranslateFn = (key: string, options?: { defaultValue?: string }) => string;\n\ninterface ErrorBoundaryBaseProps extends ErrorBoundaryProps {\n t: TranslateFn;\n}\n\n/** Vite-injected import.meta fields, absent in other bundlers. */\ninterface ViteImportMeta {\n env?: { DEV?: boolean };\n hot?: { on: (event: string, cb: () => void) => void };\n}\n\nclass ErrorBoundaryBase extends Component<ErrorBoundaryBaseProps, ErrorBoundaryState> {\n constructor(props: ErrorBoundaryBaseProps) {\n super(props);\n this.state = {\n hasError: false,\n };\n\n const meta = import.meta as ViteImportMeta;\n if (meta.env?.DEV && meta.hot) {\n // reset the error boundary when there are HMR changes detected\n meta.hot.on('vite:beforeUpdate', () => {\n // If this boundary caught an error, reset it on HMR\n if (this.state.hasError) {\n this.setState({ hasError: false });\n }\n });\n }\n }\n\n static getDerivedStateFromError() {\n return {\n hasError: true,\n };\n }\n\n componentDidCatch(error: Error, info: React.ErrorInfo) {\n if (this.props.onError) {\n this.props.onError(error, info);\n } else {\n console.log(error);\n console.log(info);\n }\n }\n\n render() {\n const { hasError } = this.state;\n const { children, actions, t } = this.props;\n const title =\n this.props.title ??\n t('errorBoundary.title', { defaultValue: 'A fatal error has occurred.' });\n const message =\n this.props.message ??\n t('errorBoundary.description', {\n defaultValue:\n 'We are sorry this happened. A log of this error has been recorded and sent to support.',\n });\n if (hasError) {\n return (\n <Suspense\n fallback={\n <div style={{ height: '100%', display: 'flex', flexDirection: 'column', gap: 8, padding: 32 }}>\n <h3>{title}</h3>\n <p>{message}</p>\n </div>\n }\n >\n <ErrorBoundaryFallback title={title} message={message} actions={actions} />\n </Suspense>\n );\n }\n return children;\n }\n}\n\n/**\n * The boundary itself must stay a class (getDerivedStateFromError /\n * componentDidCatch), so `t` is injected by this thin function wrapper rather\n * than the withTranslation HOC: under pnpm's nested layout the HOC's inferred\n * return type can't be named portably, which fails declaration emit (TS2742).\n * Errors from children still land on the inner class - it is the boundary.\n */\nconst ErrorBoundary = (props: ErrorBoundaryProps) => {\n const { t } = useTranslation();\n return <ErrorBoundaryBase {...props} t={t} />;\n};\n\nexport { ErrorBoundary };\nexport default ErrorBoundary;\n"],"mappings":";;;;AAMA,MAAMK,wBAAwBH,WAC5B,OAAO,+BAA2BI,MAAMC,OAAO,EAAEC,SAASD,EAAEF,uBAAuB,EACrF,CAAC;AAwCD,IAAMmC,oBAAN,cAAgCvC,UAAsD;CACpFwC,YAAYC,OAA+B;AACzC,QAAMA,MAAM;AACZ,OAAKC,QAAQ,EACXjB,UAAU,OACX;EAED,MAAMkB,OAAOC,OAAOD;AACpB,MAAIA,KAAKV,KAAKC,OAAOS,KAAKR,IAExBQ,MAAKR,IAAIC,GAAG,2BAA2B;AAErC,OAAI,KAAKM,MAAMjB,SACb,MAAKoB,SAAS,EAAEpB,UAAU,OAAO,CAAC;IAEpC;;CAIN,OAAOqB,2BAA2B;AAChC,SAAO,EACLrB,UAAU,MACX;;CAGHsB,kBAAkB3B,OAAcE,MAAuB;AACrD,MAAI,KAAKmB,MAAMtB,QACb,MAAKsB,MAAMtB,QAAQC,OAAOE,KAAK;OAC1B;AACL0B,WAAQC,IAAI7B,MAAM;AAClB4B,WAAQC,IAAI3B,KAAK;;;CAIrB4B,SAAS;EACP,MAAM,EAAEzB,aAAa,KAAKiB;EAC1B,MAAM,EAAE5B,UAAUI,SAASa,MAAM,KAAKU;EACtC,MAAMzB,QACJ,KAAKyB,MAAMzB,SACXe,EAAE,uBAAuB,EAAEF,cAAc,+BAA+B,CAAC;EAC3E,MAAMZ,UACJ,KAAKwB,MAAMxB,WACXc,EAAE,6BAA6B,EAC7BF,cACE,0FACH,CAAC;AACJ,MAAIJ,SACF,QACE,sBAAA,cAAC,UAAD,EACE,UACE,sBAAA,cAAC,OAAD,EAAK,OAAO;GAAE0B,QAAQ;GAAQC,SAAS;GAAQC,eAAe;GAAUC,KAAK;GAAGC,SAAS;GAAI,EAI/F,EAHI,sBAAA,cAAC,MAAA,MAAIvC,MAAU,EACf,sBAAA,cAAC,KAAA,MAAGC,QAAW,CAEnB,EAGS,EADT,sBAAA,cAAC,uBAAD;GAA8BD;GAAgBC;GAAkBC;GAAQ,CAAA,CAC/D;AAGf,SAAOJ;;;;;;;;;;AAWX,MAAM0C,iBAAgBf,UAAA;CAAA,MAAAgB,IAAAC,EAAA,EAAA;CACpB,MAAA,EAAA3B,MAAc5B,gBAAgB;CAAC,IAAAwD;AAAA,KAAAF,EAAA,OAAAhB,SAAAgB,EAAA,OAAA1B,GAAA;AACxB4B,OAAA,sBAAA,cAAC,mBAAD;GAAkB,GAAKlB;GAAUV;GAAK,CAAA;AAAA0B,IAAA,KAAAhB;AAAAgB,IAAA,KAAA1B;AAAA0B,IAAA,KAAAE;OAAAA,MAAAF,EAAA;AAAA,QAAtCE"}
@@ -0,0 +1,10 @@
1
+ import React from 'react';
2
+ import type { ErrorBoundaryAction } from './ErrorBoundary';
3
+ export interface ErrorBoundaryFallbackProps {
4
+ title: string;
5
+ message: string;
6
+ actions?: ErrorBoundaryAction[];
7
+ }
8
+ export declare const ErrorBoundaryFallback: ({ title, message, actions }: ErrorBoundaryFallbackProps) => React.JSX.Element;
9
+ export default ErrorBoundaryFallback;
10
+ //# sourceMappingURL=ErrorBoundaryFallback.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ErrorBoundaryFallback.d.ts","sourceRoot":"","sources":["../../src/errorBoundary/ErrorBoundaryFallback.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,iBAAiB,CAAC;AAE3D,MAAM,WAAW,0BAA0B;IACzC,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,CAAC,EAAE,mBAAmB,EAAE,CAAC;CACjC;AAED,eAAO,MAAM,qBAAqB,gFA4BjC,CAAC;AAEF,eAAe,qBAAqB,CAAC"}
@@ -0,0 +1,8 @@
1
+ import React from 'react';
2
+ import { UdpButton, UdpIcon, UdpText } from '../UI/fluent-web-components';
3
+ export const ErrorBoundaryFallback = ({ title, message, actions }) => (React.createElement("div", { style: { height: '100%', display: 'flex', gap: 16, padding: 32 } }, React.createElement(UdpIcon, { name: "error", variant: "filled", size: "lg", color: "var(--colorStatusDangerForeground1, #b10e1c)" }), React.createElement("div", { style: { display: 'flex', flexDirection: 'column', gap: 8 } }, React.createElement(UdpText, { variant: "title3", as: "h3" }, title), React.createElement(UdpText, { variant: "body2", as: "p" }, message), actions && actions.length > 0 && (React.createElement("div", { style: { display: 'flex', flexDirection: 'column', alignItems: 'flex-start', gap: 8, marginTop: 16 } }, actions.map((action) => {
4
+ var _a;
5
+ return (React.createElement(UdpButton, { key: action.label, appearance: (_a = action.appearance) !== null && _a !== void 0 ? _a : 'secondary', size: "small", startIconName: action.iconName, onClick: action.onClick }, action.label));
6
+ }))))));
7
+ export default ErrorBoundaryFallback;
8
+ //# sourceMappingURL=ErrorBoundaryFallback.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ErrorBoundaryFallback.js","sourceRoot":"","sources":["../../src/errorBoundary/ErrorBoundaryFallback.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,6BAA6B,CAAC;AAS1E,MAAM,CAAC,MAAM,qBAAqB,GAAG,CA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Button } from "../UI/fluent-web-components/UdpButton.mjs";
3
+ import { UdpIcon } from "../UI/fluent-web-components/UdpIcon.mjs";
4
+ import { UdpText } from "../UI/fluent-web-components/UdpText.mjs";
5
+ import React from "react";
6
+ //#region src/errorBoundary/ErrorBoundaryFallback.tsx
7
+ const ErrorBoundaryFallback = (t0) => {
8
+ const $ = c(13);
9
+ const { title, message, actions } = t0;
10
+ let t1;
11
+ let t2;
12
+ let t3;
13
+ if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
14
+ t1 = {
15
+ height: "100%",
16
+ display: "flex",
17
+ gap: 16,
18
+ padding: 32
19
+ };
20
+ t2 = /* @__PURE__ */ React.createElement(UdpIcon, {
21
+ name: "error",
22
+ variant: "filled",
23
+ size: "lg",
24
+ color: "var(--colorStatusDangerForeground1, #b10e1c)"
25
+ });
26
+ t3 = {
27
+ display: "flex",
28
+ flexDirection: "column",
29
+ gap: 8
30
+ };
31
+ $[0] = t1;
32
+ $[1] = t2;
33
+ $[2] = t3;
34
+ } else {
35
+ t1 = $[0];
36
+ t2 = $[1];
37
+ t3 = $[2];
38
+ }
39
+ let t4;
40
+ if ($[3] !== title) {
41
+ t4 = /* @__PURE__ */ React.createElement(UdpText, {
42
+ variant: "title3",
43
+ as: "h3"
44
+ }, title);
45
+ $[3] = title;
46
+ $[4] = t4;
47
+ } else t4 = $[4];
48
+ let t5;
49
+ if ($[5] !== message) {
50
+ t5 = /* @__PURE__ */ React.createElement(UdpText, {
51
+ variant: "body2",
52
+ as: "p"
53
+ }, message);
54
+ $[5] = message;
55
+ $[6] = t5;
56
+ } else t5 = $[6];
57
+ let t6;
58
+ if ($[7] !== actions) {
59
+ t6 = actions && actions.length > 0 && /* @__PURE__ */ React.createElement("div", { style: {
60
+ display: "flex",
61
+ flexDirection: "column",
62
+ alignItems: "flex-start",
63
+ gap: 8,
64
+ marginTop: 16
65
+ } }, actions.map(_temp));
66
+ $[7] = actions;
67
+ $[8] = t6;
68
+ } else t6 = $[8];
69
+ let t7;
70
+ if ($[9] !== t4 || $[10] !== t5 || $[11] !== t6) {
71
+ t7 = /* @__PURE__ */ React.createElement("div", { style: t1 }, t2, /* @__PURE__ */ React.createElement("div", { style: t3 }, t4, t5, t6));
72
+ $[9] = t4;
73
+ $[10] = t5;
74
+ $[11] = t6;
75
+ $[12] = t7;
76
+ } else t7 = $[12];
77
+ return t7;
78
+ };
79
+ function _temp(action) {
80
+ return /* @__PURE__ */ React.createElement(UdpButton, {
81
+ key: action.label,
82
+ appearance: action.appearance ?? "secondary",
83
+ size: "small",
84
+ startIconName: action.iconName,
85
+ onClick: action.onClick
86
+ }, action.label);
87
+ }
88
+ //#endregion
89
+ export { ErrorBoundaryFallback };
90
+
91
+ //# sourceMappingURL=ErrorBoundaryFallback.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ErrorBoundaryFallback.mjs","names":["React","UdpButton","UdpIcon","UdpText","ErrorBoundaryAction","ErrorBoundaryFallbackProps","title","message","actions","ErrorBoundaryFallback","t0","$","_c","t1","t2","t3","Symbol","for","height","display","gap","padding","flexDirection","t4","t5","t6","length","alignItems","marginTop","map","_temp","t7","action","label","appearance","iconName","onClick"],"sources":["../../src/errorBoundary/ErrorBoundaryFallback.tsx"],"sourcesContent":["import React from 'react';\nimport { UdpButton, UdpIcon, UdpText } from '../UI/fluent-web-components';\nimport type { ErrorBoundaryAction } from './ErrorBoundary';\n\nexport interface ErrorBoundaryFallbackProps {\n title: string;\n message: string;\n actions?: ErrorBoundaryAction[];\n}\n\nexport const ErrorBoundaryFallback = ({ title, message, actions }: ErrorBoundaryFallbackProps) => (\n <div style={{ height: '100%', display: 'flex', gap: 16, padding: 32 }}>\n <UdpIcon\n name=\"error\"\n variant=\"filled\"\n size=\"lg\"\n color=\"var(--colorStatusDangerForeground1, #b10e1c)\"\n />\n <div style={{ display: 'flex', flexDirection: 'column', gap: 8 }}>\n <UdpText variant=\"title3\" as=\"h3\">{title}</UdpText>\n <UdpText variant=\"body2\" as=\"p\">{message}</UdpText>\n {actions && actions.length > 0 && (\n <div style={{ display: 'flex', flexDirection: 'column', alignItems: 'flex-start', gap: 8, marginTop: 16 }}>\n {actions.map((action) => (\n <UdpButton\n key={action.label}\n appearance={action.appearance ?? 'secondary'}\n size=\"small\"\n startIconName={action.iconName}\n onClick={action.onClick}\n >\n {action.label}\n </UdpButton>\n ))}\n </div>\n )}\n </div>\n </div>\n);\n\nexport default ErrorBoundaryFallback;\n"],"mappings":";;;;;;AAUA,MAAaS,yBAAwBC,OAAA;CAAA,MAAAC,IAAAC,EAAA,GAAA;CAAC,MAAA,EAAAN,OAAAC,SAAAC,YAAAE;CAAuD,IAAAG;CAAA,IAAAC;CAAA,IAAAC;AAAA,KAAAJ,EAAA,OAAAK,OAAAC,IAAA,4BAAA,EAAA;AAC/EJ,OAAA;GAAAK,QAAU;GAAMC,SAAW;GAAMC,KAAO;GAAEC,SAAW;GAAI;AACnEP,OAAA,sBAAA,cAAC,SAAD;GACO,MAAA;GACG,SAAA;GACH,MAAA;GACC,OAAA;GACN,CAAA;AACUC,OAAA;GAAAI,SAAW;GAAMG,eAAiB;GAAQF,KAAO;GAAG;AAAAT,IAAA,KAAAE;AAAAF,IAAA,KAAAG;AAAAH,IAAA,KAAAI;QAAA;AAAAF,OAAAF,EAAA;AAAAG,OAAAH,EAAA;AAAAI,OAAAJ,EAAA;;CAAA,IAAAY;AAAA,KAAAZ,EAAA,OAAAL,OAAA;AAC9DiB,OAAA,sBAAA,cAAC,SAAD;GAAiB,SAAA;GAAY,IAAA;GAAsB,EAAhBjB,MAAgB;AAAAK,IAAA,KAAAL;AAAAK,IAAA,KAAAY;OAAAA,MAAAZ,EAAA;CAAA,IAAAa;AAAA,KAAAb,EAAA,OAAAJ,SAAA;AACnDiB,OAAA,sBAAA,cAAC,SAAD;GAAiB,SAAA;GAAW,IAAA;GAAuB,EAAlBjB,QAAkB;AAAAI,IAAA,KAAAJ;AAAAI,IAAA,KAAAa;OAAAA,MAAAb,EAAA;CAAA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MAAM,EAAE,MAAM,CAAC,CAiRpE,CAAC;AAEL,iFAA+E;AAC/E,eAAO,MAAM,0BAA0B,EAAE,SAAS,MAAM,EAUtD,CAAC;AAOH;;;;GAIG;AACH,eAAO,MAAM,gBAAgB,4DAMY,CAAC"}
1
+ {"version":3,"file":"legacyIconNames.d.ts","sourceRoot":"","sources":["../../src/icons/legacyIconNames.ts"],"names":[],"mappings":"AAKA,yDAAyD;AACzD,eAAO,MAAM,kBAAkB,2BACD,CAAC;AAE/B;;;;;;GAMG;AACH,eAAO,MAAM,eAAe,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CA0E3D,CAAC;AASH;;;;;;;GAOG;AACH,eAAO,MAAM,eAAe,+DAW3B,CAAC;AAEF;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,0BAA0B,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAiRpE,CAAC;AAEL,iFAA+E;AAC/E,eAAO,MAAM,0BAA0B,EAAE,SAAS,MAAM,EAUtD,CAAC;AAOH;;;;GAIG;AACH,eAAO,MAAM,gBAAgB,4DAMY,CAAC"}
@@ -10,33 +10,78 @@ export const isRegistryIconName = (name) => STENCIL_ICON_NAMES.has(name);
10
10
  * icon that still carries meaning instead of a wrong picture.
11
11
  */
12
12
  export const LEGACY_ICON_MAP = Object.freeze({
13
+ AccountActivityIcon: 'person',
14
+ AccountBrowserIcon: 'person',
15
+ AccountManagementIcon: 'people-settings',
13
16
  AccountsIcon: 'people',
17
+ ActivateOrdersIcon: 'clipboard-checkmark',
18
+ ActivityFeedIcon: 'broad-activity-feed',
14
19
  AddFavoriteFillIcon: 'star',
20
+ AddFriendIcon: 'person',
21
+ AddHomeIcon: 'home',
22
+ AddInIcon: 'apps-add-in',
15
23
  AddNotesIcon: 'notebook',
24
+ AddOnlineMeetingIcon: 'calendar-video',
25
+ AlignVerticalBottomIcon: 'align-bottom',
26
+ AndroidLogoIcon: 'phone',
27
+ AppIconDefaultIcon: 'app-generic',
28
+ AppIconDefaultListIcon: 'apps-list',
29
+ AssignIcon: 'person',
30
+ BadgeIcon: 'contact-card',
31
+ BankSolidIcon: 'building',
32
+ BarChartVerticalFilterSolidIcon: 'data-bar-vertical',
16
33
  BuildQueueIcon: 'wrench',
17
34
  BulletedListIcon: 'list',
35
+ BusinessCenterLogoIcon: 'organization',
18
36
  CalendarAgendaIcon: 'calendar-agenda',
37
+ ChildofIcon: 'branch',
19
38
  CityNextIcon: 'building-multiple',
39
+ ConstructionConeSolidIcon: 'road-cone',
20
40
  ContactIcon: 'person',
21
41
  ContactListIcon: 'people',
42
+ CRMReportIcon: 'chart',
22
43
  DataflowsIcon: 'arrow-routing',
23
44
  DocumentSetIcon: 'document',
24
45
  EditIcon: 'edit',
25
46
  EngineeringGroupIcon: 'wrench',
26
47
  FabricFolderIcon: 'folder',
48
+ FavoriteStarFillIcon: 'star',
27
49
  FileASPXIcon: 'document',
50
+ FileSymlinkIcon: 'link',
51
+ FinancialIcon: 'money',
52
+ FinancialSolidIcon: 'money',
53
+ FunctionalManagerDashboardIcon: 'gauge',
54
+ GiftboxOpenIcon: 'box',
55
+ GiftBoxSolidIcon: 'box',
56
+ HealthSolidIcon: 'clipboard-pulse',
57
+ HeartFillIcon: 'hand-open-heart',
58
+ MapPin12Icon: 'location',
28
59
  MapPinIcon: 'location',
29
60
  NewsIcon: 'notebook',
30
- POIIcon: 'location',
61
+ OfflineStorageSolidIcon: 'database',
62
+ OpenFileIcon: 'folder-open',
31
63
  PageIcon: 'document',
64
+ POIIcon: 'location',
32
65
  ProcessingIcon: 'settings',
66
+ ProductIcon: 'box',
33
67
  ProductVariantIcon: 'box',
68
+ ProjectCollectionIcon: 'board',
69
+ ReminderPersonIcon: 'calendar-person',
34
70
  ReminderTimeIcon: 'clock',
35
71
  RepairIcon: 'wrench',
72
+ RowsChildIcon: 'branch',
73
+ SearchDataIcon: 'search',
74
+ ServerEnviromentIcon: 'database',
36
75
  SplitIcon: 'board-split',
76
+ StreetIcon: 'road',
77
+ SuitcaseIcon: 'backpack',
78
+ SyncIcon: 'arrow-sync',
37
79
  TaskLogoIcon: 'task-list',
38
80
  TaskManagerIcon: 'task-list',
39
81
  TransitionPushIcon: 'panel-right-expand',
82
+ ViewDashboardIcon: 'board',
83
+ WaterDropIcon: 'drop',
84
+ WebAppBuilderFragmentIcon: 'app-generic',
40
85
  WorkItemIcon: 'clipboard-task'
41
86
  });
42
87
  const toKebab = (name) => name