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
@@ -6,7 +6,7 @@
6
6
  * in over the network through the wave loader. Tree and search stay KERNEL
7
7
  * CONSUMERS — the kernel just renders whichever display node is selected.
8
8
  *
9
- * It is a PURE component over data and callbacks: it is handed the detailed
9
+ * It is a PURE component over data and callbacks: it is handed the
10
10
  * tree and knows nothing about where it came from, the URL, or the app's
11
11
  * stores. InquiryV2 is the route shell that fetches by id and mirrors the
12
12
  * selection into the address bar; the Tree Builder's Preview hands it the
@@ -21,6 +21,7 @@
21
21
  * search keeps its own entry in the ⋯ overflow.
22
22
  */
23
23
  import React, { useCallback, useEffect, useMemo, useRef, useState } from 'react';
24
+ import { flushSync } from 'react-dom';
24
25
  import { useQueryClient } from '@tanstack/react-query';
25
26
  import { useTranslation } from 'react-i18next';
26
27
  import { useSnackbar } from 'notistack';
@@ -34,70 +35,70 @@ import { UdpSpinner } from '../../UI/fluent-web-components/UdpSpinner';
34
35
  import { UdpSkeletonLoading } from '../../UI/fluent-web-components/UdpSkeletonLoading';
35
36
  import { UdpMessageBar } from '../../UI/fluent-web-components/UdpMessageBar';
36
37
  import { UdpText } from '../../UI/fluent-web-components/UdpText';
37
- import { buildRecordEntryFilterElements, getSearchIdentifiers, makeDisplayTreeStructure, parseInitialRecordCount } from '../../domain/inquiryTree';
38
- import { executeApiMethodWithParameters, fetchApiMethodsByIds, fetchChildRows, fetchEntityMeta, fetchInquiryTree, fetchRecordByIdentifiers, fetchRecordsByIdentifierSets, invalidateInquiryRowData, recordRecentlyLoadedNodes, useApiCatalogBinding, usePrefetchLookupMethod, usePromotedMethodEntities, useRootRecords, useTreeCatalogObjects, stampRecordRows } from './api/queries';
39
- import { findSeedLevel, hydrateRowsWithWaves, loadLazyChildren } from './tree/waveLoader';
38
+ import { parseInitialRecordCount, sameEntityName } from '../../domain/inquiryTree';
39
+ import { isDragEntity, nodeEntityName } from '../../domain/inquiryTree/displayTree';
40
+ import { executeApiMethodWithParameters, fetchApiMethodsByIds, fetchChildRows, fetchEntityMeta, fetchInquiryTree, fetchRecordsByIdentifierSets, fetchRowsForIdentifierSets, invalidateInquiryRowData, recordRecentlyLoadedNodes, useApiCatalogBinding, useLinkedTrees, usePrefetchLookupMethod, usePromotedMethodEntities, useRootRecords, useTreeCatalogObjects, stampRecordRows } from './api/queries';
41
+ import { hydrateRowsWithWaves, loadLazyChildren } from './tree/waveLoader';
42
+ import { findRecordRoot, locateNodeById } from './tree/lineageModel';
43
+ import { rootRecordsOf } from './tree/rootRemovalModel';
40
44
  import { useHydratedRootRows } from './tree/useHydratedRootRows';
41
45
  import { useInstanceParamValues } from './api/useInstanceParamValues';
42
46
  import { UdpNodeView } from './kernel/UdpNodeView';
43
- import { InquirySearchPanel, decideSearchValueOutcome, deriveSearchableEntities, searchHashFor, simpleEntityName } from './search';
47
+ import { InquirySearchPanel, decideSearchValueOutcome, deriveSearchableEntities, searchHashFor } from './search';
48
+ import { hasIdentifierValue, levelForBusinessObjectKey, nestedRootOf, refreshedRow, treeTitleOf, resolveDeepLink } from './search/searchModel';
44
49
  import { LOAD_DEBOUNCE_MS, LOAD_MIN_CHARS, LOAD_PAGE_SIZE, SEARCH_TIMEOUT_MS, useInquirySearch } from './search/useInquirySearch';
45
50
  import { buildIdentifierFilterElements, useInquiryMenu } from './tree/useInquiryMenu';
46
- import { isReadOnlyView, viewCapabilities } from './kernel/readOnlyModel';
47
- import { capabilityKeys } from './kernel/capabilities';
48
- import { dropPageNode } from './tree/droppedPageModel';
51
+ import { ReadOnlyContext } from './kernel/ReadOnlyContext';
49
52
  import { InquiryMenuToolbar } from './tree/InquiryMenuToolbar';
50
53
  import { LoadRecordDialog } from './tree/LoadRecordDialog';
51
54
  import { computeTreeFilter, flattenFilterRows } from './tree/treeFilterModel';
52
55
  import { ROOT_PAGES_START, computeRootPaging, nextRootPages, rootRequestSize } from './tree/rootPagingModel';
53
- import { deriveArrival } from './tree/arrivalModel';
56
+ import { deriveArrival, idleRecordPane } from './tree/arrivalModel';
54
57
  import { ExecuteApiDropDialog } from './tree/ExecuteApiDropDialog';
55
58
  import { InquiryLanding } from './landing/InquiryLanding';
56
59
  import { useIsTruncated } from './ui/useIsTruncated';
57
60
  import { SNACKBAR_TOP_CENTER } from './ui/snackbar';
58
61
  import { InquiryCopilotDock, useCopilotDockSplit } from './ai/InquiryCopilotDock';
59
62
  import { useInquiryCopilot } from './ai/InquiryV2Copilot';
63
+ import { useTenant } from '../../utilities/tenant/useTenant';
64
+ import { promotedSourceFrom } from '../../maintenance/api/promoted';
65
+ import { stampDisplayText } from '../../maintenance/record/stampDisplayText';
60
66
  import styles from './InquiryV2.module.css';
67
+ /** Label widths for a record's placeholder child rows — varied, like names. */
68
+ const SKELETON_CHILD_WIDTHS = ['55%', '40%', '50%'];
61
69
  /**
62
- * Rows still on their way, drawn on the tree row's own geometry (chevron box,
63
- * icon chip, label) so the pane never goes blank between asking for a record
64
- * and seeing it — and the rows that land replace the placeholders in place.
70
+ * How many child rows a loading record's placeholder shows. None when records
71
+ * land closed (the root level's own `isExpanded`). Otherwise the levels under
72
+ * the root that always render, since a level that hides when empty may not be
73
+ * there at all — and one row when every level is like that, so the placeholder
74
+ * still reads as a record with something under it.
65
75
  */
66
- const TreeSkeletonRows = ({ count }) => (React.createElement("div", null, Array.from({ length: count }, (_, index) => (React.createElement("div", { key: index, className: styles.skeletonRow }, React.createElement(UdpSkeletonLoading, { width: "24px", height: "24px", borderRadius: "6px" }), React.createElement(UdpSkeletonLoading, { width: "60%", height: "16px" }))))));
67
- /** v1's entity-name rule: the fully qualified name, or the same simple name. */
68
- const sameEntityName = (a, b) => a === b || simpleEntityName(a) === simpleEntityName(b);
69
- /**
70
- * Which searchable level a `businessObjectKey` — or a bare entity name — belongs
71
- * to. The key's prefix is the record's fully qualified class name; an exact
72
- * match wins over a simple-name one (v1's lookup rule). One reader for every
73
- * door that arrives with a key or name: the `?node` deep link, a widget's
74
- * loadInquiryNode and the recently-loaded history.
75
- */
76
- const entityForBusinessObjectKey = (entities, businessObjectKey) => {
77
- var _a, _b;
78
- const fullyQualifiedName = businessObjectKey.split('|')[0];
79
- return ((_b = (_a = entities.find((entity) => entity.entityName === fullyQualifiedName)) !== null && _a !== void 0 ? _a : entities.find((entity) => sameEntityName(entity.entityName, fullyQualifiedName))) !== null && _b !== void 0 ? _b : null);
80
- };
81
- /**
82
- * A tree's nested root — the flat wire structure composed into the display
83
- * tree. v2's rule: a level opens because an EAGER level renders under it.
84
- */
85
- const nestedRootOf = (tree) => {
76
+ const skeletonChildCount = (rootNode) => {
86
77
  var _a;
87
- var _b;
88
- if (!((_a = tree === null || tree === void 0 ? void 0 : tree.treeStructure) === null || _a === void 0 ? void 0 : _a.length))
89
- return null;
90
- const structure = makeDisplayTreeStructure(tree.treeStructure, 'id', 'parentId', 'parentGroupId', 'config');
91
- return (_b = (Array.isArray(structure) ? structure[0] : structure)) !== null && _b !== void 0 ? _b : null;
78
+ if (!(rootNode === null || rootNode === void 0 ? void 0 : rootNode.isExpanded))
79
+ return 0;
80
+ const levels = (_a = rootNode.children) !== null && _a !== void 0 ? _a : [];
81
+ const certain = levels.filter((level) => !level.hideEmptyGroups).length;
82
+ return Math.min(SKELETON_CHILD_WIDTHS.length, certain || Math.min(1, levels.length));
83
+ };
84
+ /** One placeholder row: the tree row's chevron box, icon and label. */
85
+ const TreeSkeletonRow = ({ child, compact, width }) => {
86
+ const icon = compact ? '16px' : '20px';
87
+ return (React.createElement("div", { className: [
88
+ styles.skeletonRow,
89
+ child && styles.skeletonChild,
90
+ compact && styles.skeletonCompact
91
+ ]
92
+ .filter(Boolean)
93
+ .join(' ') }, React.createElement("span", { className: styles.skeletonChevron }, React.createElement(UdpSkeletonLoading, { width: "12px", height: "12px", borderRadius: "3px" })), React.createElement(UdpSkeletonLoading, { width: icon, height: icon, borderRadius: "4px" }), React.createElement(UdpSkeletonLoading, { className: styles.skeletonLabel, width: width, height: "16px" })));
92
94
  };
93
95
  /**
94
- * The entity's config level. Its config comes off the FLAT wire node; its
95
- * levels only hang off the nested seed, which is what the wave planner walks.
96
+ * Records still on their way, drawn on the tree row's exact geometry — each an
97
+ * open root with its child rows beneath it, as it will land — so the pane never
98
+ * goes blank between asking for a record and seeing it, and the rows that
99
+ * arrive take the placeholders' places.
96
100
  */
97
- const seedLevelFor = (rootNode, entity) => {
98
- var _a;
99
- return (_a = findSeedLevel(rootNode, entity.rootNode.id)) !== null && _a !== void 0 ? _a : entity.rootNode;
100
- };
101
+ const TreeSkeletonRows = ({ count, childCount, compact, afterRows }) => (React.createElement("div", { className: afterRows ? styles.skeletonAfterRows : undefined }, Array.from({ length: count }, (_, index) => (React.createElement(React.Fragment, { key: index }, React.createElement(TreeSkeletonRow, { compact: compact, width: "45%" }), SKELETON_CHILD_WIDTHS.slice(0, childCount).map((width) => (React.createElement(TreeSkeletonRow, { key: width, child: true, compact: compact, width: width }))))))));
101
102
  /** One recently-loaded history entry for a record loaded at `entity`'s level. */
102
103
  const historyEntryFor = (entity, label, filterElements) => {
103
104
  var _a;
@@ -110,17 +111,11 @@ const historyEntryFor = (entity, label, filterElements) => {
110
111
  filterElements
111
112
  });
112
113
  };
113
- /** An identifier value as comparable text; anything non-scalar is blank. */
114
- const asText = (value) => typeof value === 'string' || typeof value === 'number' || typeof value === 'boolean'
115
- ? String(value)
116
- : '';
117
- export const InquiryWorkspace = ({ treeId, tree, capabilities, readOnly: readOnlyProp, searchValue, deepLink = null, treeHidden = false, assistant = true, containerId = '', onSelectionChange }) => {
118
- var _a, _b, _c, _d, _e, _f;
119
- var _g, _h, _j, _k, _l, _m, _o, _p;
114
+ export const InquiryWorkspace = ({ treeId, tree, capabilities, readOnly = false, searchValue, deepLink = null, treeHidden = false, assistant = true, containerId = '', onSelectionChange }) => {
115
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j;
116
+ var _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x;
120
117
  const { t } = useTranslation();
121
- const readOnly = isReadOnlyView(readOnlyProp, capabilities);
122
- const nodeCapabilities = useMemo(() => viewCapabilities(readOnly, capabilities, capabilityKeys), [readOnly, capabilities]);
123
- const rootNode = useMemo(() => nestedRootOf(tree), [tree]);
118
+ const rootNode = useMemo(() => nestedRootOf(tree.nodes), [tree]);
124
119
  const entityName = typeof ((_a = rootNode === null || rootNode === void 0 ? void 0 : rootNode.properties) === null || _a === void 0 ? void 0 : _a.catalogReturnObject) === 'string'
125
120
  ? rootNode.properties.catalogReturnObject
126
121
  : '';
@@ -135,44 +130,54 @@ export const InquiryWorkspace = ({ treeId, tree, capabilities, readOnly: readOnl
135
130
  // wrong catalog for a tree from another product (every entity comes back
136
131
  // absent: no identifiers, no promotions, no field picker), which is exactly
137
132
  // what the Tree Builder previews and what a cross-product link opens.
138
- const catalogId = (_g = (_b = tree.apiMethodInstance) === null || _b === void 0 ? void 0 : _b.apiCatalogId) !== null && _g !== void 0 ? _g : catalogBinding === null || catalogBinding === void 0 ? void 0 : catalogBinding.apiCatalogId;
133
+ const catalogId = (_k = (_b = tree.wrapper.apiMethodInstance) === null || _b === void 0 ? void 0 : _b.apiCatalogId) !== null && _k !== void 0 ? _k : catalogBinding === null || catalogBinding === void 0 ? void 0 : catalogBinding.apiCatalogId;
139
134
  const { data: catalogObjects, isError: catalogError, isSuccess: catalogLoaded } = useTreeCatalogObjects(catalogId, treeId);
140
135
  // The catalog answered with NO entities for this tree (a tree whose product
141
136
  // is not in this tenant's catalog). Every identifier-based path — loading a
142
137
  // record, the deep link, the advanced field picker — has nothing to work
143
- // from, so the pane says so once, and the waits that gate on the catalog
144
- // treat it as settled rather than pending forever.
138
+ // from, so the pane says so once; the waits that gate on the catalog treat
139
+ // it as settled (metadataSettled) rather than pending forever.
145
140
  const catalogMissing = catalogLoaded && !(catalogObjects === null || catalogObjects === void 0 ? void 0 : catalogObjects.length);
146
- const catalogUnavailable = catalogError || catalogMissing;
147
- const { data: promotedEntities, isError: promotedError } = usePromotedMethodEntities(catalogId, (_c = tree.product) === null || _c === void 0 ? void 0 : _c.productId);
141
+ const { data: promotedEntities, isError: promotedError } = usePromotedMethodEntities(catalogId, (_c = tree.wrapper.product) === null || _c === void 0 ? void 0 : _c.productId);
142
+ /**
143
+ * The catalog and the promotions have both answered (or failed). Everything
144
+ * that composes or loads records waits on this — the root page's hydration,
145
+ * a deep link, a `?searchValue` arrival: a load run before the promotions
146
+ * land plans no child level ("Promote … child entity") and keeps that empty
147
+ * branch.
148
+ */
149
+ const metadataSettled = (catalogObjects !== undefined || catalogError) &&
150
+ (promotedEntities !== undefined || promotedError);
151
+ const queryClient = useQueryClient();
152
+ const tenantId = (_l = (_e = (_d = useTenant()) === null || _d === void 0 ? void 0 : _d.activeTenant) === null || _e === void 0 ? void 0 : _e.tenantId) !== null && _l !== void 0 ? _l : null;
153
+ const lookupContext = useMemo(() => ({
154
+ queryClient,
155
+ catalogId,
156
+ catalogObjects,
157
+ stampDisplayText: (entityName, rows) => {
158
+ var _a;
159
+ return stampDisplayText(entityName, rows, promotedSourceFrom(promotedEntities, `${catalogId}|${(_a = tree.wrapper.product) === null || _a === void 0 ? void 0 : _a.productId}`), tenantId);
160
+ }
161
+ }), [queryClient, catalogId, catalogObjects, promotedEntities, (_f = tree.wrapper.product) === null || _f === void 0 ? void 0 : _f.productId, tenantId]);
162
+ const stampRows = useCallback((levelEntityName, rows, lookupsMap) => stampRecordRows(lookupContext, levelEntityName, rows, lookupsMap), [lookupContext]);
148
163
  // Warm the lookup get-data method with this wave so the first stamping pass
149
164
  // doesn't have to discover it serially.
150
165
  usePrefetchLookupMethod(catalogId);
151
- // Every non-root level keyed by the association it rides on the parent row
152
- // (`resourceAssignment` → `Assignment`): the wave loader grafts each level's
153
- // fetched rows onto their parent under that key, and a response's lookupsMap
154
- // describes only the entity it searched — so rows are stamped from their own
155
- // level's entity config.
156
- const nestedEntities = useMemo(() => {
157
- var _a, _b;
158
- const map = {};
159
- for (const node of (_a = tree === null || tree === void 0 ? void 0 : tree.treeStructure) !== null && _a !== void 0 ? _a : []) {
160
- const properties = (_b = node.properties) !== null && _b !== void 0 ? _b : {};
161
- const key = properties['catalogObjectKey'];
162
- const nodeEntity = properties['catalogReturnObject'];
163
- if (typeof key === 'string' && typeof nodeEntity === 'string') {
164
- map[key] = nodeEntity;
165
- }
166
- }
167
- return map;
168
- }, [tree]);
169
166
  // The searchable set, with each entity's Data Builder query filters already
170
167
  // parsed and its `params.*` placeholders resolved. Derived BEFORE the root
171
168
  // page because the root request composes the root entity's saved filters in —
172
169
  // ad-hoc execution ignores the instance body, so this is the only way a
173
170
  // query's own filters reach the server.
174
171
  const paramValues = useInstanceParamValues();
175
- const searchableEntities = useMemo(() => (tree ? deriveSearchableEntities(tree, paramValues) : []), [tree, paramValues]);
172
+ const { trees: linkedTrees, settled: linkedTreesSettled } = useLinkedTrees(tree);
173
+ // Search results are rows like any other: stamped with display text the
174
+ // same way the tree's rows are, so a finder never shows a raw key.
175
+ const searchableEntities = useMemo(() => deriveSearchableEntities(tree, linkedTrees, paramValues).map((entity) => (Object.assign(Object.assign({}, entity), { stampRows: (rows, lookupsMap) => stampRows(entity.entityName, rows, lookupsMap) }))), [tree, linkedTrees, paramValues, stampRows]);
176
+ /**
177
+ * A deep link or arrival term resolved before the linked trees land would
178
+ * miss their levels, so both wait for them as well as for the metadata.
179
+ */
180
+ const searchSettled = metadataSettled && linkedTreesSettled;
176
181
  /** The tree's own root entity — what the Load dialog lists by default. */
177
182
  const rootSearchEntity = useMemo(() => {
178
183
  var _a;
@@ -184,23 +189,23 @@ export const InquiryWorkspace = ({ treeId, tree, capabilities, readOnly: readOnl
184
189
  * and a `?node` deep link outranks both — it names one exact record, so there
185
190
  * is nothing left to search for.
186
191
  */
187
- const arrivalTerm = deepLink ? '' : ((_h = searchValue === null || searchValue === void 0 ? void 0 : searchValue.trim()) !== null && _h !== void 0 ? _h : '');
188
- /** The searchable level the deep-linked key belongs to (v1's lookup rule). */
189
- const deepLinkEntity = useMemo(() => deepLink
190
- ? entityForBusinessObjectKey(searchableEntities, deepLink.businessObjectKey)
191
- : null, [deepLink, searchableEntities]);
192
- const deepLinkFilters = useMemo(() => {
193
- if (!deepLink || !deepLinkEntity || !(catalogObjects === null || catalogObjects === void 0 ? void 0 : catalogObjects.length))
194
- return null;
195
- const filters = buildRecordEntryFilterElements(getSearchIdentifiers(catalogObjects, deepLinkEntity.entityName), deepLink.nodeSearch);
196
- return filters.length ? filters : null;
197
- }, [deepLink, deepLinkEntity, catalogObjects]);
192
+ const arrivalTerm = deepLink ? '' : (_m = searchValue === null || searchValue === void 0 ? void 0 : searchValue.trim()) !== null && _m !== void 0 ? _m : '';
193
+ /** The level and identifier filters the deep link names (resolveDeepLink). */
194
+ const deepLinkTarget = useMemo(() => deepLink
195
+ ? resolveDeepLink(searchableEntities, catalogObjects, deepLink)
196
+ : null, [deepLink, searchableEntities, catalogObjects]);
197
+ const deepLinkEntity = (_o = deepLinkTarget === null || deepLinkTarget === void 0 ? void 0 : deepLinkTarget.entity) !== null && _o !== void 0 ? _o : null;
198
+ const deepLinkFilters = (deepLinkTarget === null || deepLinkTarget === void 0 ? void 0 : deepLinkTarget.filterElements.length)
199
+ ? deepLinkTarget.filterElements
200
+ : null;
201
+ /** True once the link has been honored — or reported as unusable. */
202
+ const [deepLinkSettled, setDeepLinkSettled] = useState(!deepLink);
203
+ /** A link that could not be honored: a root link stops replacing the root page. */
204
+ const [rootLinkDropped, setRootLinkDropped] = useState(false);
198
205
  /** A deep link to the ROOT level replaces the root page with that record. */
199
- const deepLinkIsRoot = !!(deepLinkEntity === null || deepLinkEntity === void 0 ? void 0 : deepLinkEntity.isRoot);
206
+ const deepLinkIsRoot = !!(deepLinkEntity === null || deepLinkEntity === void 0 ? void 0 : deepLinkEntity.isRoot) && !rootLinkDropped;
200
207
  /** A resolvable deep link holds the first fetch until its filters are ready. */
201
208
  const deepLinkPending = !!deepLink && !!deepLinkEntity && !deepLinkFilters;
202
- /** True once the link has been honored — or reported as unusable. */
203
- const [deepLinkSettled, setDeepLinkSettled] = useState(!deepLink);
204
209
  /* ------------------------------------------------------------ root paging */
205
210
  /**
206
211
  * How many pages of root records the user has asked for. One request, one
@@ -220,15 +225,15 @@ export const InquiryWorkspace = ({ treeId, tree, capabilities, readOnly: readOnl
220
225
  * matrix, including the root level's `loadRecordsOnOpen` override and the one
221
226
  * URL that still fetches on arrival.
222
227
  */
223
- const explorePageId = typeof (tree === null || tree === void 0 ? void 0 : tree.explorePageId) === 'string' ? tree.explorePageId : '';
228
+ const explorePageId = (_p = tree.wrapper.explorePageId) !== null && _p !== void 0 ? _p : '';
224
229
  const { seedRootRecords, autoSelectFirst } = deriveArrival({
225
230
  explorePageId,
226
- loadRecordsOnOpen: (_d = rootNode === null || rootNode === void 0 ? void 0 : rootNode.properties) === null || _d === void 0 ? void 0 : _d.loadRecordsOnOpen,
231
+ loadRecordsOnOpen: (_g = rootNode === null || rootNode === void 0 ? void 0 : rootNode.properties) === null || _g === void 0 ? void 0 : _g.loadRecordsOnOpen,
227
232
  deepLinkIsRoot
228
233
  });
229
234
  const { data: records, isPending: recordsPending, isFetching: recordsFetching, isError: recordsError } = useRootRecords({
230
235
  treeId,
231
- apiMethodId: (_e = tree === null || tree === void 0 ? void 0 : tree.apiMethodInstance) === null || _e === void 0 ? void 0 : _e.apiMethodId,
236
+ apiMethodId: (_h = tree.wrapper.apiMethodInstance) === null || _h === void 0 ? void 0 : _h.apiMethodId,
232
237
  entityName,
233
238
  instanceFilters: rootSearchEntity === null || rootSearchEntity === void 0 ? void 0 : rootSearchEntity.instanceFilters,
234
239
  identifierFilters: deepLinkIsRoot ? deepLinkFilters : null,
@@ -247,9 +252,8 @@ export const InquiryWorkspace = ({ treeId, tree, capabilities, readOnly: readOnl
247
252
  * show a spinner nothing will ever end.
248
253
  */
249
254
  const recordsLoading = seedRootRecords && recordsPending;
250
- const queryClient = useQueryClient();
251
255
  /* ------------------------------------------------------------- wave load */
252
- const stampRows = useCallback((levelEntityName, rows, lookupsMap) => stampRecordRows({ queryClient, catalogId, catalogObjects, nestedEntities }, levelEntityName, rows, lookupsMap), [queryClient, catalogId, catalogObjects, nestedEntities]);
256
+ /** What every lookup-stamping pass carries (stampRecordRows). */
253
257
  const waveContext = useMemo(() => ({
254
258
  fetchRows: (apiMethodId, data) => fetchChildRows(queryClient, apiMethodId, data),
255
259
  catalogObjects,
@@ -263,15 +267,14 @@ export const InquiryWorkspace = ({ treeId, tree, capabilities, readOnly: readOnl
263
267
  records,
264
268
  entityName,
265
269
  waveContext,
266
- ready: (catalogObjects !== undefined || catalogError) &&
267
- (promotedEntities !== undefined || promotedError)
270
+ ready: metadataSettled
268
271
  });
269
272
  /** How much of the root record set is on screen, and what is left. */
270
273
  const rootPaging = computeRootPaging({
271
274
  pageSize: initialRecordCount,
272
275
  pagesLoaded: rootPages,
273
- loadedCount: (_j = rootRows === null || rootRows === void 0 ? void 0 : rootRows.length) !== null && _j !== void 0 ? _j : 0,
274
- total: (_k = records === null || records === void 0 ? void 0 : records.total) !== null && _k !== void 0 ? _k : 0,
276
+ loadedCount: (_q = rootRows === null || rootRows === void 0 ? void 0 : rootRows.length) !== null && _q !== void 0 ? _q : 0,
277
+ total: (_r = records === null || records === void 0 ? void 0 : records.total) !== null && _r !== void 0 ? _r : 0,
275
278
  isFetching: recordsFetching
276
279
  });
277
280
  const menu = useInquiryMenu({
@@ -281,24 +284,131 @@ export const InquiryWorkspace = ({ treeId, tree, capabilities, readOnly: readOnl
281
284
  promotedEntities,
282
285
  autoSelectFirst
283
286
  });
287
+ // The hook returns a fresh object each render; callbacks depend on the
288
+ // stable function, not on it.
289
+ const loadRecord = menu.loadRecord;
290
+ const findConfigLevel = menu.findConfigLevel;
284
291
  /**
285
- * The tree pane holds nothing and has nothing coming. Rows-in-hand counts as
286
- * "coming": the menu is composed in an effect, one render after the page
287
- * lands, and the empty state must not flash over a tree that is about to fill.
292
+ * The root page is in hand and the menu has not been built from it yet — it
293
+ * is hydrated first, then composed in an effect — so the rows are COMING and
294
+ * the pane shows their placeholders, never the empty state. A menu that was
295
+ * built from this page and holds nothing is different: the user removed its
296
+ * rows, and the pane is simply empty.
288
297
  */
289
298
  /** Records asked for by hand (Load, finder, history, deep link) not yet in the menu. */
290
299
  const [loadsInFlight, setLoadsInFlight] = useState(0);
291
- const treeHasRows = menu.menuList.length > 0 || !!(rootRows === null || rootRows === void 0 ? void 0 : rootRows.length);
292
- const treeLoading = recordsLoading || loadsInFlight > 0;
300
+ /**
301
+ * Records grafted into the menu that the tree has not DRAWN yet. The tree is
302
+ * a web component: it renders a frame or more after React commits, so
303
+ * dropping a record's placeholder in the commit that grafts it left the pane
304
+ * blank until the row painted. The placeholder is dropped instead when the
305
+ * tree's box grows — a ResizeObserver runs after layout and before paint, so
306
+ * the row arrives and its placeholder leaves in the same frame.
307
+ */
308
+ const undrawnLoads = useRef(0);
309
+ const [treeBox, setTreeBox] = useState(null);
310
+ useEffect(() => {
311
+ if (!treeBox)
312
+ return undefined;
313
+ const observer = new ResizeObserver(() => {
314
+ const drawn = undrawnLoads.current;
315
+ if (!drawn)
316
+ return;
317
+ undrawnLoads.current = 0;
318
+ flushSync(() => setLoadsInFlight((count) => count - drawn));
319
+ });
320
+ observer.observe(treeBox);
321
+ return () => observer.disconnect();
322
+ }, [treeBox]);
323
+ const treeHasRows = menu.menuList.length > 0;
324
+ const rowsComposing = !treeHasRows &&
325
+ !!(rootRows === null || rootRows === void 0 ? void 0 : rootRows.length) &&
326
+ (!menuRows || menu.seededRows !== menuRows);
327
+ const treeLoading = recordsLoading || rowsComposing || loadsInFlight > 0;
328
+ /**
329
+ * ARRIVAL FOCUS. The tree is where work in the viewer starts, so once its
330
+ * first rows are drawn the keyboard is already in it (on the selected row):
331
+ * the arrow keys answer without a click first. Once per visit. It takes focus
332
+ * from the page or from the app chrome that brought the user here (the menu
333
+ * link they clicked) — never from something they have already focused inside
334
+ * the viewer, and never in a read-only preview, whose host keeps the focus.
335
+ */
336
+ const arrivalFocused = useRef(false);
337
+ useEffect(() => {
338
+ var _a;
339
+ if (arrivalFocused.current || !treeBox || !treeHasRows)
340
+ return;
341
+ arrivalFocused.current = true;
342
+ if (readOnly)
343
+ return;
344
+ const workspace = treeBox.closest(`.${styles.workspace}`);
345
+ if (workspace === null || workspace === void 0 ? void 0 : workspace.contains(document.activeElement))
346
+ return;
347
+ void ((_a = treeBox
348
+ .querySelector('udp-tree')) === null || _a === void 0 ? void 0 : _a.setFocus());
349
+ }, [treeBox, treeHasRows, readOnly]);
350
+ /**
351
+ * F6 — the desktop convention for hopping between panes, with or without
352
+ * Shift (there are two): from the tree, or anywhere else in the viewer, to
353
+ * the record; from the record back to the tree's selected row. Left to the
354
+ * browser when there is no tree to hop to.
355
+ */
356
+ const recordPaneRef = useRef(null);
357
+ const handlePaneKey = (event) => {
358
+ if (event.key !== 'F6' || event.altKey || event.ctrlKey || event.metaKey) {
359
+ return;
360
+ }
361
+ const record = recordPaneRef.current;
362
+ const treeEl = treeBox === null || treeBox === void 0 ? void 0 : treeBox.querySelector('udp-tree');
363
+ if (!record || !treeEl)
364
+ return;
365
+ event.preventDefault();
366
+ if (record.contains(document.activeElement))
367
+ void treeEl.setFocus();
368
+ else
369
+ record.focus();
370
+ };
371
+ /**
372
+ * MORE ROOT RECORDS — the tree's own last row, so it is reached and run with
373
+ * the keys that work every other row. Stood down while a hand-loaded record
374
+ * is on its way: that record lands in this row's place, and its placeholder
375
+ * holds the spot until it does.
376
+ */
377
+ const rootMore = useMemo(() => rootPaging.showLoadMore && loadsInFlight === 0
378
+ ? {
379
+ label: t('inquiry.tree.showMoreRecords', {
380
+ defaultValue: 'Show {{amount}} more',
381
+ amount: rootPaging.nextCount
382
+ }),
383
+ loading: rootPaging.isLoadingMore,
384
+ onShowMore: () => setRootPages(nextRootPages)
385
+ }
386
+ : undefined, [
387
+ rootPaging.showLoadMore,
388
+ rootPaging.nextCount,
389
+ rootPaging.isLoadingMore,
390
+ loadsInFlight,
391
+ t
392
+ ]);
393
+ /** The tree pane holds nothing and has nothing coming. */
293
394
  const treeIsEmpty = !treeHasRows && !treeLoading;
395
+ /**
396
+ * One placeholder per record on its way, whichever way it is coming. A root
397
+ * deep link's page is the one record the URL names, not a page of them.
398
+ */
399
+ const pendingRowCount = recordsLoading
400
+ ? deepLinkIsRoot
401
+ ? 1
402
+ : initialRecordCount
403
+ : (rowsComposing ? ((_s = rootRows === null || rootRows === void 0 ? void 0 : rootRows.length) !== null && _s !== void 0 ? _s : 0) : 0) + loadsInFlight;
294
404
  /** The menu's lazy-expand loader: one level, one batched request, cached. */
295
405
  const loadChildren = useCallback(({ node, pageNumber }) => loadLazyChildren({
296
406
  node,
297
- seed: rootNode,
407
+ findLevel: findConfigLevel,
298
408
  pageNumber,
299
409
  context: waveContext,
300
410
  makeId: () => crypto.randomUUID()
301
- }), [rootNode, waveContext]);
411
+ }), [findConfigLevel, waveContext]);
302
412
  const [sidebarOpen, setSidebarOpen] = useState(true);
303
413
  // The tree/copilot split inside the pane — owned by the dock, set on the
304
414
  // layout, which is where the drag seam lives.
@@ -310,15 +420,15 @@ export const InquiryWorkspace = ({ treeId, tree, capabilities, readOnly: readOnl
310
420
  const [dropExecute, setDropExecute] = useState(null);
311
421
  const [dropExecuting, setDropExecuting] = useState(false);
312
422
  const { enqueueSnackbar } = useSnackbar();
423
+ /** Every toast this workspace raises: top-center, one variant. */
424
+ const notify = useCallback((message, variant) => enqueueSnackbar(message, { variant, anchorOrigin: SNACKBAR_TOP_CENTER }), [enqueueSnackbar]);
313
425
  const handleDropNode = (source, target) => {
314
- var _a, _b;
315
- var _c;
316
- const sourceEntity = (_a = source === null || source === void 0 ? void 0 : source.properties) === null || _a === void 0 ? void 0 : _a.catalogReturnObject;
317
- const dropActions = ((_c = (_b = target === null || target === void 0 ? void 0 : target.properties) === null || _b === void 0 ? void 0 : _b.nodeActions) !== null && _c !== void 0 ? _c : []).filter((nodeAction) => (nodeAction === null || nodeAction === void 0 ? void 0 : nodeAction.triggerType) === NodeActionTriggerEnums.On_Node_Drop &&
318
- (nodeAction === null || nodeAction === void 0 ? void 0 : nodeAction.dragEntityName) === sourceEntity);
319
- const pageNode = dropPageNode(target, source, () => crypto.randomUUID());
320
- if (pageNode)
321
- menu.showDroppedPage(pageNode);
426
+ var _a;
427
+ var _b;
428
+ const sourceEntity = nodeEntityName(source);
429
+ const dropActions = ((_b = (_a = target === null || target === void 0 ? void 0 : target.properties) === null || _a === void 0 ? void 0 : _a.nodeActions) !== null && _b !== void 0 ? _b : []).filter((nodeAction) => (nodeAction === null || nodeAction === void 0 ? void 0 : nodeAction.triggerType) === NodeActionTriggerEnums.On_Node_Drop &&
430
+ isDragEntity(nodeAction === null || nodeAction === void 0 ? void 0 : nodeAction.dragEntityName, sourceEntity));
431
+ const pageNode = menu.dropOnto(target, source);
322
432
  const methodIds = dropActions
323
433
  .filter((nodeAction) => nodeAction.actionTypeId === NodeActionEnums.Execute_Api)
324
434
  .map((nodeAction) => {
@@ -334,21 +444,17 @@ export const InquiryWorkspace = ({ treeId, tree, capabilities, readOnly: readOnl
334
444
  // configure an action v2 can't run yet is a different story, and the user
335
445
  // is owed the reason rather than a dead gesture.
336
446
  if (dropActions.length) {
337
- enqueueSnackbar(t('inquiry.drop.unsupportedAction', {
447
+ notify(t('inquiry.drop.unsupportedAction', {
338
448
  defaultValue: 'That drop action is not supported by this viewer yet.'
339
- }), {
340
- variant: 'warning',
341
- anchorOrigin: SNACKBAR_TOP_CENTER
342
- });
449
+ }), 'warning');
343
450
  }
344
451
  return;
345
452
  }
346
453
  fetchApiMethodsByIds(catalogId !== null && catalogId !== void 0 ? catalogId : '', methodIds)
347
454
  .then((methods) => setDropExecute({ source, target, methods }))
348
- .catch(() => enqueueSnackbar('Unable to load the API methods for this drop action.', {
349
- variant: 'error',
350
- anchorOrigin: SNACKBAR_TOP_CENTER
351
- }));
455
+ .catch(() => notify(t('inquiry.drop.methodsUnavailable', {
456
+ defaultValue: 'Unable to load the API methods for this drop action.'
457
+ }), 'error'));
352
458
  };
353
459
  // No drop handler in a read-only view: rows then neither drag nor accept
354
460
  // drops, so a preview can never run a drop action.
@@ -370,19 +476,19 @@ export const InquiryWorkspace = ({ treeId, tree, capabilities, readOnly: readOnl
370
476
  targetNodeType: (_b = dropExecute.target.properties) === null || _b === void 0 ? void 0 : _b.catalogReturnObject
371
477
  }
372
478
  });
373
- enqueueSnackbar(`${(_c = method.name) !== null && _c !== void 0 ? _c : 'API'} executed successfully.`, {
374
- variant: 'success',
375
- anchorOrigin: SNACKBAR_TOP_CENTER
376
- });
479
+ notify(t('inquiry.drop.executed', {
480
+ defaultValue: '{{name}} executed successfully.',
481
+ name: (_c = method.name) !== null && _c !== void 0 ? _c : 'API'
482
+ }), 'success');
377
483
  // The refresh mechanism: re-pull every row family the drop may have
378
484
  // changed; the menu rebuild preserves the workspace around it.
379
- refreshTree();
485
+ void refreshTree();
380
486
  }
381
487
  catch (_e) {
382
- enqueueSnackbar(`Unable to execute ${(_d = method.name) !== null && _d !== void 0 ? _d : 'the API'}.`, {
383
- variant: 'error',
384
- anchorOrigin: SNACKBAR_TOP_CENTER
385
- });
488
+ notify(t('inquiry.drop.executeFailed', {
489
+ defaultValue: 'Unable to execute {{name}}.',
490
+ name: (_d = method.name) !== null && _d !== void 0 ? _d : 'the API'
491
+ }), 'error');
386
492
  }
387
493
  finally {
388
494
  setDropExecuting(false);
@@ -391,13 +497,13 @@ export const InquiryWorkspace = ({ treeId, tree, capabilities, readOnly: readOnl
391
497
  };
392
498
  /**
393
499
  * A saved query filter whose `params.*` placeholder could not be resolved is
394
- * dropped rather than sent literally — which silently WIDENS the tree. Say so
395
- * once per tree, beside everything else the pane reports.
500
+ * dropped rather than sent literally — which WIDENS the tree. Legacy dropped
501
+ * it silently; log it once per tree for whoever is debugging the config.
396
502
  */
397
503
  const reportedDropsRef = useRef('');
398
504
  const droppedParamFields = rootSearchEntity === null || rootSearchEntity === void 0 ? void 0 : rootSearchEntity.instanceFilters.droppedFields;
399
505
  /* eslint-disable react-you-might-not-need-an-effect/no-pass-data-to-parent --
400
- a one-shot report to the platform snackbar, not data lifted to a parent. */
506
+ a one-shot console report, not data lifted to a parent. */
401
507
  useEffect(() => {
402
508
  if (!(droppedParamFields === null || droppedParamFields === void 0 ? void 0 : droppedParamFields.length))
403
509
  return;
@@ -406,14 +512,7 @@ export const InquiryWorkspace = ({ treeId, tree, capabilities, readOnly: readOnl
406
512
  return;
407
513
  reportedDropsRef.current = signature;
408
514
  console.warn('[inquiry-v2] query filters dropped — unresolved params placeholder:', droppedParamFields.join(', '));
409
- enqueueSnackbar(t('inquiry.query.droppedParamFilters', {
410
- defaultValue: 'Showing more records than this tree’s query defines — its saved filters on {{fields}} were skipped because their parameter values are unavailable.',
411
- fields: droppedParamFields.join(', ')
412
- }), {
413
- variant: 'warning',
414
- anchorOrigin: SNACKBAR_TOP_CENTER
415
- });
416
- }, [treeId, droppedParamFields, t, enqueueSnackbar]);
515
+ }, [treeId, droppedParamFields]);
417
516
  /* eslint-enable react-you-might-not-need-an-effect/no-pass-data-to-parent */
418
517
  /* ------------------------------------------------------------------ filter */
419
518
  // Filtering is a presentation pass over rows that are already loaded: it
@@ -463,18 +562,18 @@ export const InquiryWorkspace = ({ treeId, tree, capabilities, readOnly: readOnl
463
562
  };
464
563
  /* -------------------------------------------------------------------- load */
465
564
  /** The singular catalog noun for prose ("Resource"), never a class path. */
466
- const entityNoun = (_l = (_f = searchableEntities[0]) === null || _f === void 0 ? void 0 : _f.entityNoun) !== null && _l !== void 0 ? _l : '';
467
- const [loadOpen, setLoadOpen] = useState(false);
468
- const [loadPrefill, setLoadPrefill] = useState('');
565
+ const entityNoun = (_t = (_j = searchableEntities[0]) === null || _j === void 0 ? void 0 : _j.entityNoun) !== null && _t !== void 0 ? _t : '';
566
+ /** The Load dialog, open with its prefill text — null when closed. */
567
+ const [loadDialog, setLoadDialog] = useState(null);
469
568
  /* --------------------------------------------------------- advanced search */
470
569
  /**
471
- * The advanced-search VIEW: whether the search panel is up, and the filter it
472
- * opens with. The ⋯ menu's entry opens it empty (the drawer is where the user
570
+ * The advanced-search VIEW: the filter the search panel opens with, or null
571
+ * while the panel is down. The ⋯ menu's entry opens it empty (the drawer is where the user
473
572
  * builds the filter); the copilot's Apply card opens it with a filter already
474
573
  * built, which is the same state the drawer's own submit produces. One piece
475
574
  * of state, so both doors lead to the same screen — and so undo is a restore.
476
575
  */
477
- const [advancedView, setAdvancedView] = useState({ open: false, preset: null });
576
+ const [advancedView, setAdvancedView] = useState(null);
478
577
  const advancedViewRef = useRef(advancedView);
479
578
  useEffect(() => {
480
579
  advancedViewRef.current = advancedView;
@@ -483,26 +582,22 @@ export const InquiryWorkspace = ({ treeId, tree, capabilities, readOnly: readOnl
483
582
  if (!searchableEntities.some((entity) => entity.key === preset.entityKey))
484
583
  return null;
485
584
  const previous = advancedViewRef.current;
486
- setAdvancedView({ open: true, preset });
585
+ setAdvancedView({ preset });
487
586
  return () => setAdvancedView(previous);
488
587
  }, [searchableEntities]);
489
- /** businessObjectKeys already loaded as roots — the popover's dedup label. */
490
- const loadedKeys = useMemo(() => new Set(menu.menuList.flatMap((entry) => entry.map((root) => {
588
+ /**
589
+ * businessObjectKeys already loaded as roots — the popover's dedup label.
590
+ * Under group headings too, when the root level groups its records.
591
+ */
592
+ const loadedKeys = useMemo(() => new Set(menu.menuList.flatMap((entry) => entry
593
+ .flatMap(rootRecordsOf)
594
+ .map((root) => {
491
595
  var _a;
492
596
  return (_a = root.nodeObj) === null || _a === void 0 ? void 0 : _a.businessObjectKey;
493
597
  }))), [menu.menuList]);
494
- const openLoad = (prefill) => {
495
- setLoadPrefill(prefill);
496
- setLoadOpen(true);
497
- };
598
+ const openLoad = (prefill) => setLoadDialog({ prefill });
498
599
  /** The lookup-stamping context a record fetch at `levelEntityName` carries. */
499
- const lookupContextFor = useCallback((levelEntityName) => ({
500
- queryClient,
501
- catalogId,
502
- catalogObjects,
503
- nestedEntities,
504
- entityName: levelEntityName
505
- }), [queryClient, catalogId, catalogObjects, nestedEntities]);
600
+ const lookupContextFor = useCallback((levelEntityName) => (Object.assign(Object.assign({}, lookupContext), { entityName: levelEntityName })), [lookupContext]);
506
601
  /**
507
602
  * RECENTLY LOADED (v1 parity) — the tree's server-held history. A read-only
508
603
  * view writes none, so its writer is a no-op rather than a check at each load.
@@ -517,52 +612,16 @@ export const InquiryWorkspace = ({ treeId, tree, capabilities, readOnly: readOnl
517
612
  });
518
613
  }, [readOnly, queryClient, treeId, user === null || user === void 0 ? void 0 : user.id]);
519
614
  /**
520
- * Bring one record in: refetch it by identifier (LEAN — the search result may
521
- * be a projection), fill its eager levels with the same waves the root page
522
- * gets, then graft it into the menu. Every hop degrades to the row it already
523
- * has rather than failing the load.
615
+ * Bring records in — every door (the Load dialog, the finder's "Load
616
+ * selected", a deep link, `?searchValue`, a widget's loadInquiryNode, the
617
+ * history, load-to-tree) funnels through here. One identifier search per
618
+ * entity (the picks' identifier sets OR'd; LEAN — a search result may be a
619
+ * projection), ONE wave pass over the fetched rows, then each grafted into
620
+ * the menu and the whole load written to the history in ONE post. A missed
621
+ * row or a failed wave pass degrades to the row a pick already has; a failed
622
+ * fetch rejects the load when no pick in that entity's group has one.
524
623
  */
525
- const loadRecordIntoMenu = useCallback(async (entity, filterElements, fallbackRow, options) => {
526
- setLoadsInFlight((count) => count + 1);
527
- try {
528
- let record = null;
529
- try {
530
- record = await fetchRecordByIdentifiers(queryClient, entity.apiMethodId, filterElements, lookupContextFor(entity.entityName));
531
- }
532
- catch (_a) {
533
- record = null;
534
- }
535
- const source = record !== null && record !== void 0 ? record : fallbackRow;
536
- if (!source)
537
- return null;
538
- const [hydratedRow] = await hydrateRowsWithWaves(seedLevelFor(rootNode, entity), [source], waveContext);
539
- const outcome = menu.loadRecord(entity.rootNode, hydratedRow !== null && hydratedRow !== void 0 ? hydratedRow : source);
540
- // Every door that brings a record in by hand — the Load dialog, a deep
541
- // link, `?searchValue`, a widget's loadInquiryNode, a click on the
542
- // history itself — funnels through here, so the history is written from
543
- // ONE place. A record that was already on screen was not loaded and is
544
- // not recorded.
545
- if (outcome &&
546
- !outcome.alreadyLoaded &&
547
- (options === null || options === void 0 ? void 0 : options.recordHistory) !== false) {
548
- recordHistory([
549
- historyEntryFor(entity, outcome.label, filterElements)
550
- ]);
551
- }
552
- return outcome;
553
- }
554
- finally {
555
- setLoadsInFlight((count) => count - 1);
556
- }
557
- }, [queryClient, lookupContextFor, rootNode, waveContext, menu, recordHistory]);
558
- /**
559
- * Bring MANY records in — the finder's "Load selected". One identifier
560
- * search per entity (the picks' identifier sets OR'd), ONE wave pass over
561
- * all the fetched rows, then each grafted into the menu locally and the
562
- * whole load written to the history in ONE post. The per-record path made
563
- * 50+ requests for a 20-record bulk load; this makes a handful.
564
- */
565
- const loadRecordsIntoMenu = useCallback(async (picks) => {
624
+ const loadRecordsIntoMenu = useCallback(async (picks, options) => {
566
625
  const outcomes = [];
567
626
  const historyEntries = [];
568
627
  setLoadsInFlight((count) => count + picks.length);
@@ -574,70 +633,76 @@ export const InquiryWorkspace = ({ treeId, tree, capabilities, readOnly: readOnl
574
633
  const key = pick.entity.key;
575
634
  byEntity.set(key, [...((_a = byEntity.get(key)) !== null && _a !== void 0 ? _a : []), pick]);
576
635
  });
577
- // Every entity's fetch and waves run at once; the menu is still
578
- // grafted in pick order below.
636
+ // Every entity's fetch and waves run at once.
579
637
  const loaded = await Promise.all([...byEntity.values()].map(async (group) => {
580
638
  const entity = group[0].entity;
581
- const sets = group.map((pick) => buildIdentifierFilterElements(catalogObjects, entity.entityName, pick.row));
582
- let fetched = [];
639
+ const sets = group.map((pick) => pick.filterElements);
640
+ let found = [];
583
641
  try {
584
- fetched = await fetchRecordsByIdentifierSets(queryClient, entity.apiMethodId, sets, lookupContextFor(entity.entityName));
642
+ found = await fetchRowsForIdentifierSets(queryClient, entity.apiMethodId, sets, lookupContextFor(entity.entityName));
585
643
  }
586
- catch (_a) {
587
- fetched = [];
644
+ catch (error) {
645
+ // Picks with a row of their own degrade to it; picks without one
646
+ // (a link, a widget, the history) fail the load.
647
+ if (!group.some((pick) => pick.fallbackRow))
648
+ throw error;
588
649
  }
589
- // Pair each pick to its fetched row by identifier values; a miss
590
- // degrades to the row the finder already has (same fallback the
591
- // single-record path makes).
592
- const candidates = fetched.map((row) => ({
593
- row,
594
- keys: new Map(Object.keys(row).map((key) => [key.toLowerCase(), key]))
595
- }));
650
+ // A miss degrades to the row the pick already has.
596
651
  const sources = group.map((pick, setIndex) => {
597
- var _a;
598
- const set = sets[setIndex];
599
- if (!set.length)
600
- return pick.row;
601
- const match = candidates.find(({ row, keys }) => set.every((element) => {
602
- const key = keys.get(asText(element.searchField).toLowerCase());
603
- return (key !== undefined &&
604
- asText(row[key]) === asText(element.searchValue));
605
- }));
606
- return (_a = match === null || match === void 0 ? void 0 : match.row) !== null && _a !== void 0 ? _a : pick.row;
652
+ var _a, _b;
653
+ return (_b = (_a = found[setIndex]) !== null && _a !== void 0 ? _a : pick.fallbackRow) !== null && _b !== void 0 ? _b : null;
607
654
  });
608
- let hydrated = sources;
655
+ const present = sources.filter((row) => !!row);
656
+ let hydrated = present;
609
657
  try {
610
- hydrated = await hydrateRowsWithWaves(seedLevelFor(rootNode, entity), sources, waveContext);
658
+ hydrated = await hydrateRowsWithWaves(entity.rootNode, present, waveContext);
611
659
  }
612
- catch (_b) {
613
- hydrated = sources;
660
+ catch (_a) {
661
+ hydrated = present;
614
662
  }
615
- return { entity, sets, sources, hydrated };
663
+ let next = 0;
664
+ const rows = sources.map((row) => {
665
+ var _a;
666
+ if (!row)
667
+ return null;
668
+ const hydratedRow = (_a = hydrated[next]) !== null && _a !== void 0 ? _a : row;
669
+ next += 1;
670
+ return hydratedRow;
671
+ });
672
+ return { entity, sets, rows };
616
673
  }));
617
- loaded.forEach(({ entity, sets, sources, hydrated }) => {
618
- hydrated.forEach((row, index) => {
619
- const outcome = menu.loadRecord(entity.rootNode, row !== null && row !== void 0 ? row : sources[index]);
674
+ // The first record loaded is the one selected — the top of what the
675
+ // load adds, not whichever came last.
676
+ let selected = false;
677
+ loaded.forEach(({ entity, sets, rows }) => {
678
+ rows.forEach((row, index) => {
679
+ const outcome = row
680
+ ? loadRecord(entity.rootNode, row, { select: !selected })
681
+ : null;
682
+ if (outcome)
683
+ selected = true;
620
684
  outcomes.push(outcome);
621
- if (outcome && !outcome.alreadyLoaded) {
685
+ // A record that was already on screen was not loaded and is not
686
+ // recorded.
687
+ if (outcome &&
688
+ !outcome.alreadyLoaded &&
689
+ (options === null || options === void 0 ? void 0 : options.recordHistory) !== false) {
622
690
  historyEntries.push(historyEntryFor(entity, outcome.label, sets[index]));
623
691
  }
624
692
  });
625
693
  });
626
- recordHistory(historyEntries);
694
+ if (historyEntries.length)
695
+ recordHistory(historyEntries);
627
696
  return outcomes;
628
697
  }
629
698
  finally {
630
- setLoadsInFlight((count) => count - picks.length);
699
+ // A record that reached the menu keeps its placeholder until the tree
700
+ // draws it (see `undrawnLoads`); the rest have nothing coming.
701
+ const grafted = outcomes.filter((outcome) => outcome && !outcome.alreadyLoaded).length;
702
+ undrawnLoads.current += grafted;
703
+ setLoadsInFlight((count) => count - (picks.length - grafted));
631
704
  }
632
- }, [
633
- queryClient,
634
- catalogObjects,
635
- lookupContextFor,
636
- rootNode,
637
- waveContext,
638
- menu,
639
- recordHistory
640
- ]);
705
+ }, [queryClient, lookupContextFor, waveContext, loadRecord, recordHistory]);
641
706
  /**
642
707
  * Say what a load did — the one report every door into the tree makes (the
643
708
  * Load dialog, `?searchValue`, a widget's loadInquiryNode). The label comes
@@ -646,29 +711,39 @@ export const InquiryWorkspace = ({ treeId, tree, capabilities, readOnly: readOnl
646
711
  */
647
712
  const reportLoadOutcome = (outcome) => {
648
713
  if (!outcome) {
649
- enqueueSnackbar(t('inquiry.load.notFoundNotice', {
714
+ notify(t('inquiry.load.notFoundNotice', {
650
715
  defaultValue: 'That record could not be loaded.'
651
- }), {
652
- variant: 'warning',
653
- anchorOrigin: SNACKBAR_TOP_CENTER
654
- });
716
+ }), 'warning');
655
717
  return;
656
718
  }
657
719
  const label = outcome.label || entityNoun;
658
720
  if (outcome.alreadyLoaded) {
659
- enqueueSnackbar(t('inquiry.load.alreadyLoadedNotice', {
721
+ notify(t('inquiry.load.alreadyLoadedNotice', {
660
722
  defaultValue: '{{label}} is already loaded.',
661
723
  label
662
- }), { variant: 'info', anchorOrigin: SNACKBAR_TOP_CENTER });
724
+ }), 'info');
663
725
  return;
664
726
  }
665
- enqueueSnackbar(t('inquiry.load.loadedNotice', { defaultValue: '{{label}} loaded.', label }), { variant: 'success', anchorOrigin: SNACKBAR_TOP_CENTER });
727
+ notify(t('inquiry.load.loadedNotice', {
728
+ defaultValue: '{{label}} loaded.',
729
+ label
730
+ }), 'success');
666
731
  };
732
+ /** Load one pick and report it; a failed load reports as not loaded. */
733
+ const loadAndReport = (pick) => loadRecordsIntoMenu([pick])
734
+ .then(([outcome = null]) => outcome)
735
+ .catch(() => null)
736
+ .then(reportLoadOutcome);
737
+ /** A picked search row as a load: its identifier filters, the row as fallback. */
738
+ const pickFor = (entity, row) => ({
739
+ entity,
740
+ filterElements: buildIdentifierFilterElements(catalogObjects, entity.entityName, row),
741
+ fallbackRow: row
742
+ });
667
743
  /** Returns what was loaded, so a non-clicking caller (the copilot) can say so. */
668
744
  const handleLoadRecord = async (entity, row) => {
669
- setLoadOpen(false);
670
- setLoadPrefill('');
671
- const outcome = await loadRecordIntoMenu(entity, buildIdentifierFilterElements(catalogObjects, entity.entityName, row), row);
745
+ setLoadDialog(null);
746
+ const [outcome = null] = await loadRecordsIntoMenu([pickFor(entity, row)]);
672
747
  reportLoadOutcome(outcome);
673
748
  return outcome;
674
749
  };
@@ -680,48 +755,45 @@ export const InquiryWorkspace = ({ treeId, tree, capabilities, readOnly: readOnl
680
755
  void handleLoadRecord(picks[0].entity, picks[0].row);
681
756
  return;
682
757
  }
683
- setLoadOpen(false);
684
- setLoadPrefill('');
685
- const outcomes = await loadRecordsIntoMenu(picks);
758
+ setLoadDialog(null);
759
+ const outcomes = await loadRecordsIntoMenu(picks.map(({ entity, row }) => pickFor(entity, row)));
686
760
  const loaded = outcomes.filter((outcome) => outcome && !outcome.alreadyLoaded).length;
687
761
  const missed = outcomes.filter((outcome) => !outcome).length;
688
762
  if (loaded) {
689
- enqueueSnackbar(t('inquiry.load.bulkLoadedNotice', {
763
+ notify(t('inquiry.load.bulkLoadedNotice', {
690
764
  defaultValue: '{{count}} records loaded.',
691
765
  count: loaded
692
- }), { variant: 'success', anchorOrigin: SNACKBAR_TOP_CENTER });
766
+ }), 'success');
693
767
  return;
694
768
  }
695
- enqueueSnackbar(missed
769
+ notify(missed
696
770
  ? t('inquiry.load.bulkFailedNotice', {
697
771
  defaultValue: 'Those records could not be loaded.'
698
772
  })
699
773
  : t('inquiry.load.bulkAlreadyLoadedNotice', {
700
774
  defaultValue: 'Those records are already loaded.'
701
- }), { variant: missed ? 'warning' : 'info', anchorOrigin: SNACKBAR_TOP_CENTER });
775
+ }), missed ? 'warning' : 'info');
702
776
  };
703
777
  /**
704
778
  * v1's load-to-tree (InquiryContainer handleLoadingSpecificNode): the record
705
779
  * opens as a new root SHAPED BY THE CONFIGURED TREE — the active tab's
706
780
  * `trees` entry naming the record's entity. It rides the same kernel path an
707
781
  * associated-tree search hit uses (a foreign root node handed to
708
- * menu.loadRecord); the target tree is fetched detailed (v1's
709
- * executeGetDetailedTree, cached) and nested so the new root carries its own
710
- * child levels. Kept out of the recently-loaded history — see the
711
- * loadRecordIntoMenu option.
782
+ * menu.loadRecord); the target tree is fetched (cached) and nested so the
783
+ * new root carries its own child levels. Kept out of the recently-loaded
784
+ * history — see the loadRecordsIntoMenu option.
712
785
  */
713
786
  const loadRecordIntoConfiguredTree = useCallback(async (targetTreeId, request) => {
714
787
  var _a;
715
788
  let outcome = null;
716
789
  try {
717
790
  const targetTree = await fetchInquiryTree(queryClient, targetTreeId);
718
- const entity = (_a = deriveSearchableEntities(targetTree).find((e) => e.isRoot)) !== null && _a !== void 0 ? _a : null;
719
- const nestedRoot = nestedRootOf(targetTree);
791
+ const entity = (_a = deriveSearchableEntities(targetTree, null).find((e) => e.isRoot)) !== null && _a !== void 0 ? _a : null;
720
792
  const filterElements = entity
721
- ? buildIdentifierFilterElements(catalogObjects, entity.entityName, request)
793
+ ? buildIdentifierFilterElements(catalogObjects, entity.entityName, request).filter(hasIdentifierValue)
722
794
  : [];
723
- if (entity && nestedRoot && filterElements.length) {
724
- outcome = await loadRecordIntoMenu(Object.assign(Object.assign({}, entity), { rootNode: nestedRoot }), filterElements, undefined, { recordHistory: false });
795
+ if (entity && filterElements.length) {
796
+ [outcome = null] = await loadRecordsIntoMenu([{ entity, filterElements }], { recordHistory: false });
725
797
  }
726
798
  }
727
799
  catch (_b) {
@@ -731,7 +803,7 @@ export const InquiryWorkspace = ({ treeId, tree, capabilities, readOnly: readOnl
731
803
  },
732
804
  // reportLoadOutcome is re-created per render and is read, not watched.
733
805
  // eslint-disable-next-line react-hooks/exhaustive-deps
734
- [queryClient, catalogObjects, loadRecordIntoMenu]);
806
+ [queryClient, catalogObjects, loadRecordsIntoMenu]);
735
807
  /**
736
808
  * v1's `loadInquiryNode`, the contract page widgets call to put a record they
737
809
  * are showing INTO the tree (a linked asset's grid row, a child asset). The
@@ -760,30 +832,26 @@ export const InquiryWorkspace = ({ treeId, tree, capabilities, readOnly: readOnl
760
832
  void loadRecordIntoConfiguredTree(targetRef.treeId, request);
761
833
  return;
762
834
  }
763
- const entity = businessObjectKey
764
- ? entityForBusinessObjectKey(searchableEntities, businessObjectKey)
765
- : null;
835
+ const { entity } = levelForBusinessObjectKey(searchableEntities, businessObjectKey);
766
836
  const filterElements = entity
767
- ? buildIdentifierFilterElements(catalogObjects, entity.entityName, request)
837
+ ? buildIdentifierFilterElements(catalogObjects, entity.entityName, request).filter(hasIdentifierValue)
768
838
  : [];
769
839
  if (!entity || !filterElements.length) {
770
- enqueueSnackbar(t('inquiry.load.unknownEntityNotice', {
840
+ notify(t('inquiry.load.unknownEntityNotice', {
771
841
  defaultValue: 'Could not load that record — this tree does not show “{{key}}”.',
772
842
  key: businessObjectKey || entityNoun
773
- }), {
774
- variant: 'warning',
775
- anchorOrigin: SNACKBAR_TOP_CENTER
776
- });
843
+ }), 'warning');
777
844
  return;
778
845
  }
779
- void loadRecordIntoMenu(entity, filterElements).then(reportLoadOutcome);
846
+ void loadAndReport({ entity, filterElements });
780
847
  },
781
- // reportLoadOutcome is re-created per render and is read, not watched.
848
+ // loadAndReport is re-created per render and is read, not watched; the
849
+ // loadRecordsIntoMenu it calls is.
782
850
  // eslint-disable-next-line react-hooks/exhaustive-deps
783
851
  [
784
852
  searchableEntities,
785
853
  catalogObjects,
786
- loadRecordIntoMenu,
854
+ loadRecordsIntoMenu,
787
855
  loadRecordIntoConfiguredTree,
788
856
  entityNoun,
789
857
  t
@@ -800,16 +868,14 @@ export const InquiryWorkspace = ({ treeId, tree, capabilities, readOnly: readOnl
800
868
  var _a, _b;
801
869
  var _c;
802
870
  const entityName = (_c = (_a = entry === null || entry === void 0 ? void 0 : entry.nodeDetails) === null || _a === void 0 ? void 0 : _a.catalogReturnObject) !== null && _c !== void 0 ? _c : '';
803
- const entity = entityName
804
- ? entityForBusinessObjectKey(searchableEntities, entityName)
805
- : null;
871
+ const { entity } = levelForBusinessObjectKey(searchableEntities, entityName);
806
872
  // The stored payload is the identifier search that loaded the record
807
873
  // (v1 and v2 both write `getSearchObject(identifierFilters, 1, 1)`), so
808
874
  // its filter elements go straight into the same load path every other
809
875
  // door uses — the skeleton shows on the click, and the record is fetched
810
876
  // once, not replayed and then fetched again.
811
877
  const filterElements = Array.isArray((_b = entry === null || entry === void 0 ? void 0 : entry.queryPayload) === null || _b === void 0 ? void 0 : _b.filterElements)
812
- ? entry.queryPayload.filterElements
878
+ ? entry.queryPayload.filterElements.filter(hasIdentifierValue)
813
879
  : [];
814
880
  if (!entity || !filterElements.length) {
815
881
  // A history entry this tree can no longer resolve is not an error the
@@ -818,47 +884,46 @@ export const InquiryWorkspace = ({ treeId, tree, capabilities, readOnly: readOnl
818
884
  reportLoadOutcome(null);
819
885
  return;
820
886
  }
821
- void loadRecordIntoMenu(entity, filterElements)
822
- .catch(() => null)
823
- .then(reportLoadOutcome);
887
+ void loadAndReport({ entity, filterElements });
824
888
  },
825
- // reportLoadOutcome is re-created per render and is read, not watched.
889
+ // loadAndReport and reportLoadOutcome are re-created per render and are
890
+ // read, not watched; the loadRecordsIntoMenu they call is.
826
891
  // eslint-disable-next-line react-hooks/exhaustive-deps
827
- [searchableEntities, loadRecordIntoMenu]);
892
+ [searchableEntities, loadRecordsIntoMenu]);
828
893
  /* ----------------------------------------------------------- refreshTree */
829
894
  /**
830
895
  * REFRESH TREE, both halves.
831
896
  *
832
897
  * Invalidating the row families re-reads everything a QUERY owns — the root
833
898
  * page and the badges, which is why the counts beside a mutated row update on
834
- * their own. It cannot reach the row itself when that row was grafted in by a
835
- * lazy expand: nothing observes `['inquiry','childBatch']`, so invalidating it
836
- * refetches nothing, and the rebuild that would recompose the branch only runs
837
- * when the ROOT page answers differently — which a child mutation never makes
838
- * it do. So the refresh also re-reads the record the pane is looking at (the
839
- * one an action over it just changed) and stamps it back onto every row that
840
- * holds it.
899
+ * their own. Rows below the root are owned by no query (the wave loader and
900
+ * lazy expands grafted them), so the refresh also re-reads the RECORD ROOT of
901
+ * the selection — the record an action over the selection, or under it, can
902
+ * have changed below — and the menu recomposes that branch, re-opened to
903
+ * where the user had it (branchRefreshModel). v1 re-fetched the selected root
904
+ * record the same way. A root record the server no longer returns is gone,
905
+ * and its row goes with it.
841
906
  *
842
- * The node is read through a ref so this stays stable across selections: it is
843
- * handed to the kernel as an effect override, and the kernel rebuilds its
844
- * whole effects bag whenever the override changes.
907
+ * The selection is read through a ref so this stays stable across
908
+ * selections: it is handed to the kernel as an effect override, and the
909
+ * kernel rebuilds its whole effects bag whenever the override changes. The
910
+ * refs are the menu's own, so a rebuild made in the same tick (Refresh
911
+ * bringing removed records back) is already what this reads.
845
912
  */
846
- const selectedNodeRef = useRef(null);
847
- useEffect(() => {
848
- selectedNodeRef.current = menu.selectedNode;
849
- }, [menu.selectedNode]);
850
- const restampRecords = menu.restampRecords;
851
- const refreshTree = useCallback(() => {
852
- invalidateInquiryRowData(queryClient);
853
- void (async () => {
913
+ const { menuListRef, selectedIdRef } = menu;
914
+ const refreshRecord = menu.refreshRecord;
915
+ const refreshTree = useCallback(async () => {
916
+ const rereadBranch = async () => {
854
917
  var _a, _b, _c;
855
- const node = selectedNodeRef.current;
856
- const levelEntityName = typeof ((_a = node === null || node === void 0 ? void 0 : node.properties) === null || _a === void 0 ? void 0 : _a.catalogReturnObject) === 'string'
857
- ? node.properties.catalogReturnObject
918
+ const location = locateNodeById(menuListRef.current, selectedIdRef.current);
919
+ const target = findRecordRoot(location === null || location === void 0 ? void 0 : location.root, selectedIdRef.current);
920
+ const level = findConfigLevel(target === null || target === void 0 ? void 0 : target.configNodeId);
921
+ const levelEntityName = typeof ((_a = level === null || level === void 0 ? void 0 : level.properties) === null || _a === void 0 ? void 0 : _a.catalogReturnObject) === 'string'
922
+ ? level.properties.catalogReturnObject
858
923
  : '';
859
- if (!(node === null || node === void 0 ? void 0 : node.nodeObj) || !levelEntityName || !catalogId)
924
+ if (!(target === null || target === void 0 ? void 0 : target.nodeObj) || !level || !levelEntityName || !catalogId)
860
925
  return;
861
- const filterElements = buildIdentifierFilterElements(catalogObjects, levelEntityName, node.nodeObj);
926
+ const filterElements = buildIdentifierFilterElements(catalogObjects, levelEntityName, target.nodeObj);
862
927
  if (!filterElements.length)
863
928
  return;
864
929
  try {
@@ -868,22 +933,41 @@ export const InquiryWorkspace = ({ treeId, tree, capabilities, readOnly: readOnl
868
933
  const apiMethodId = (_c = (_b = meta.promoted) === null || _b === void 0 ? void 0 : _b.unityBaseSearchMethod) === null || _c === void 0 ? void 0 : _c.apiMethodId;
869
934
  if (!apiMethodId)
870
935
  return;
871
- const row = await fetchRecordByIdentifiers(queryClient, apiMethodId, filterElements, lookupContextFor(levelEntityName));
872
- if (row)
873
- restampRecords([row]);
936
+ const row = refreshedRow(await fetchRecordsByIdentifierSets(queryClient, apiMethodId, [filterElements], lookupContextFor(levelEntityName)), target.nodeObj.businessObjectKey);
937
+ if (row === undefined)
938
+ return;
939
+ const [hydrated = null] = row
940
+ ? await hydrateRowsWithWaves(level, [row], waveContext)
941
+ : [];
942
+ await refreshRecord(target, hydrated, loadChildren);
874
943
  }
875
944
  catch (_d) {
876
- // A refresh that cannot re-read the row leaves it exactly as it was —
877
- // still the last answer the server gave. The toolbar's Refresh retries.
945
+ // A refresh that cannot re-read the branch leaves it exactly as it was
946
+ // — still the last answer the server gave. The toolbar's Refresh retries.
878
947
  }
879
- })();
948
+ };
949
+ await Promise.all([invalidateInquiryRowData(queryClient), rereadBranch()]);
880
950
  }, [
881
951
  queryClient,
952
+ findConfigLevel,
882
953
  catalogId,
883
954
  catalogObjects,
884
955
  lookupContextFor,
885
- restampRecords
956
+ waveContext,
957
+ loadChildren,
958
+ refreshRecord,
959
+ menuListRef,
960
+ selectedIdRef
886
961
  ]);
962
+ // The toolbar's Refresh shows its own refresh in flight.
963
+ const [refreshing, setRefreshing] = useState(false);
964
+ const restoreRemoved = menu.restoreRemoved;
965
+ const handleRefresh = useCallback(() => {
966
+ setRefreshing(true);
967
+ // Refresh asks for the page again, records removed from it included.
968
+ restoreRemoved();
969
+ void refreshTree().finally(() => setRefreshing(false));
970
+ }, [refreshTree, restoreRemoved]);
887
971
  /**
888
972
  * The kernel's effect overrides. `loadNode` being a real function here (and
889
973
  * null in an embedder) is also what lights up the widget Load button.
@@ -896,7 +980,9 @@ export const InquiryWorkspace = ({ treeId, tree, capabilities, readOnly: readOnl
896
980
  * copilot can read and switch it.
897
981
  */
898
982
  const [tabChoice, setTabChoice] = useState(null);
899
- const selectedNodeId = menu.selectedNode ? String(menu.selectedNode.id) : null;
983
+ const selectedNodeId = menu.selectedNode
984
+ ? String(menu.selectedNode.id)
985
+ : null;
900
986
  const activeTabId = tabChoice && tabChoice.nodeId === selectedNodeId
901
987
  ? tabChoice.tabId
902
988
  : undefined;
@@ -921,13 +1007,12 @@ export const InquiryWorkspace = ({ treeId, tree, capabilities, readOnly: readOnl
921
1007
  /** One-shot latch: survives StrictMode's double effect invoke, which state can't. */
922
1008
  const arrivalHandledRef = useRef(false);
923
1009
  /**
924
- * Searching before the searchable set and the catalog are in hand would settle
1010
+ * Searching before the searchable set and the metadata are in hand would settle
925
1011
  * on an empty result and open the dialog against a term that was never asked.
926
1012
  * Until then the term is withheld, which leaves the hook with empty text and
927
1013
  * therefore no queries at all.
928
1014
  */
929
- const arrivalReady = !!searchableEntities.length &&
930
- (!!(catalogObjects === null || catalogObjects === void 0 ? void 0 : catalogObjects.length) || catalogUnavailable);
1015
+ const arrivalReady = !!searchableEntities.length && searchSettled;
931
1016
  const arrivalSearch = useInquirySearch({
932
1017
  entities: searchableEntities,
933
1018
  text: !arrivalSettled && arrivalReady ? arrivalTerm : '',
@@ -957,13 +1042,14 @@ export const InquiryWorkspace = ({ treeId, tree, capabilities, readOnly: readOnl
957
1042
  if (outcome === 'wait')
958
1043
  return;
959
1044
  arrivalHandledRef.current = true;
960
- setArrivalSettled(true);
961
1045
  if (outcome === 'load' && arrivalSearch.singleResult) {
962
1046
  // The same path a chosen dialog row takes — including its loaded /
963
1047
  // already-loaded notice, which is the only report this flow makes.
964
- void handleLoadRecord(arrivalSearch.singleResult.entity, arrivalSearch.singleResult.row);
1048
+ // Settled once the record is in, so the pane loads until then.
1049
+ void handleLoadRecord(arrivalSearch.singleResult.entity, arrivalSearch.singleResult.row).finally(() => setArrivalSettled(true));
965
1050
  return;
966
1051
  }
1052
+ setArrivalSettled(true);
967
1053
  openLoad(arrivalTerm);
968
1054
  // handleLoadRecord/openLoad are re-created per render and are read, not
969
1055
  // watched — the effect fires off the search outcome alone.
@@ -978,8 +1064,8 @@ export const InquiryWorkspace = ({ treeId, tree, capabilities, readOnly: readOnl
978
1064
  * top of the page, the same way the Load dialog loads one.
979
1065
  *
980
1066
  * Unlike v1, a link that cannot be honored SAYS SO — an unrecognised entity,
981
- * missing identifier values or a record that no longer exists left v1 showing
982
- * a silently empty tree.
1067
+ * a link that does not identify one record, or no single record matching it
1068
+ * left v1 showing a silently empty tree (or the wrong record).
983
1069
  */
984
1070
  useEffect(() => {
985
1071
  var _a;
@@ -987,59 +1073,75 @@ export const InquiryWorkspace = ({ treeId, tree, capabilities, readOnly: readOnl
987
1073
  return;
988
1074
  if (!searchableEntities.length)
989
1075
  return;
990
- // Wait for the catalog the identifiers come from — unless it failed, in
991
- // which case the link is unusable and the pane should say so and move on.
992
- if (!(catalogObjects === null || catalogObjects === void 0 ? void 0 : catalogObjects.length) && !catalogUnavailable)
1076
+ // Wait for the catalog the identifiers come from and the promotions the
1077
+ // record's levels load through — a failed catalog settles too, and the
1078
+ // link then says it could not be opened and moves on.
1079
+ if (!searchSettled)
993
1080
  return;
1081
+ const reportFailure = (reason) => {
1082
+ const messages = {
1083
+ unresolved: t('inquiry.deepLink.unresolved', {
1084
+ defaultValue: 'Could not open the linked record — this tree does not recognize “{{key}}”.',
1085
+ key: deepLink.businessObjectKey
1086
+ }),
1087
+ incomplete: t('inquiry.deepLink.incomplete', {
1088
+ defaultValue: 'Could not open the linked record — the link does not identify one record.'
1089
+ }),
1090
+ notFound: t('inquiry.deepLink.notFound', {
1091
+ defaultValue: 'Could not open the linked record — no single record matches it.'
1092
+ }),
1093
+ failed: t('inquiry.deepLink.failed', {
1094
+ defaultValue: 'Could not open the linked record.'
1095
+ })
1096
+ };
1097
+ notify(messages[reason], 'warning');
1098
+ };
994
1099
  if (!deepLinkEntity || !deepLinkFilters) {
995
1100
  setDeepLinkSettled(true);
996
- enqueueSnackbar(t('inquiry.deepLink.unresolved', {
997
- defaultValue: 'Could not open the linked record — this tree does not recognize “{{key}}”.',
998
- key: deepLink.businessObjectKey
999
- }), {
1000
- variant: 'warning',
1001
- anchorOrigin: SNACKBAR_TOP_CENTER
1002
- });
1101
+ setRootLinkDropped(true);
1102
+ // Without a catalog, a link to a known level cannot be judged.
1103
+ if (deepLinkTarget === null || deepLinkTarget === void 0 ? void 0 : deepLinkTarget.ambiguous)
1104
+ reportFailure('incomplete');
1105
+ else if (!deepLinkEntity)
1106
+ reportFailure('unresolved');
1107
+ else
1108
+ reportFailure((catalogObjects === null || catalogObjects === void 0 ? void 0 : catalogObjects.length) ? 'incomplete' : 'failed');
1003
1109
  return;
1004
1110
  }
1005
1111
  if (deepLinkIsRoot) {
1006
1112
  if (recordsPending)
1007
1113
  return;
1008
1114
  setDeepLinkSettled(true);
1009
- if (!((_a = records === null || records === void 0 ? void 0 : records.rows) === null || _a === void 0 ? void 0 : _a.length)) {
1010
- enqueueSnackbar(t('inquiry.deepLink.notFound', {
1011
- defaultValue: 'The linked record could not be found.'
1012
- }), {
1013
- variant: 'warning',
1014
- anchorOrigin: SNACKBAR_TOP_CENTER
1015
- });
1016
- }
1115
+ // The root query keeps its page only when exactly one record matched;
1116
+ // otherwise the link is dropped and the tree arrives as if it had none.
1117
+ if ((_a = records === null || records === void 0 ? void 0 : records.rows) === null || _a === void 0 ? void 0 : _a.length)
1118
+ return;
1119
+ setRootLinkDropped(true);
1120
+ reportFailure(recordsError ? 'failed' : 'notFound');
1017
1121
  return;
1018
1122
  }
1019
1123
  setDeepLinkSettled(true);
1020
- void loadRecordIntoMenu(deepLinkEntity, deepLinkFilters).then((outcome) => {
1021
- if (outcome)
1022
- return;
1023
- enqueueSnackbar(t('inquiry.deepLink.notFound', {
1024
- defaultValue: 'The linked record could not be found.'
1025
- }), {
1026
- variant: 'warning',
1027
- anchorOrigin: SNACKBAR_TOP_CENTER
1028
- });
1029
- });
1124
+ void loadRecordsIntoMenu([
1125
+ { entity: deepLinkEntity, filterElements: deepLinkFilters }
1126
+ ]).then(([outcome]) => {
1127
+ if (!outcome)
1128
+ reportFailure('notFound');
1129
+ }, () => reportFailure('failed'));
1030
1130
  }, [
1031
1131
  deepLink,
1032
1132
  deepLinkSettled,
1133
+ deepLinkTarget,
1033
1134
  deepLinkEntity,
1034
1135
  deepLinkFilters,
1136
+ catalogObjects,
1035
1137
  deepLinkIsRoot,
1036
1138
  searchableEntities.length,
1037
- catalogObjects,
1038
- catalogUnavailable,
1139
+ searchSettled,
1039
1140
  records,
1040
1141
  recordsPending,
1041
- loadRecordIntoMenu,
1042
- enqueueSnackbar,
1142
+ recordsError,
1143
+ loadRecordsIntoMenu,
1144
+ notify,
1043
1145
  t
1044
1146
  ]);
1045
1147
  /* ------------------------------------------------------ selection report */
@@ -1069,7 +1171,9 @@ export const InquiryWorkspace = ({ treeId, tree, capabilities, readOnly: readOnl
1069
1171
  const overflowItems = useMemo(() => [
1070
1172
  {
1071
1173
  id: 'collapseAll',
1072
- text: t('inquiry.controls.collapseAll', { defaultValue: 'Collapse All' }),
1174
+ text: t('inquiry.controls.collapseAll', {
1175
+ defaultValue: 'Collapse All'
1176
+ }),
1073
1177
  iconName: 'chevron-down-up',
1074
1178
  onClick: menu.collapseAll
1075
1179
  },
@@ -1088,8 +1192,12 @@ export const InquiryWorkspace = ({ treeId, tree, capabilities, readOnly: readOnl
1088
1192
  {
1089
1193
  id: 'treeViewMode',
1090
1194
  text: treeViewMode === TreeViewModeEnums.Compact
1091
- ? t('inquiry.controls.classicView', { defaultValue: 'Classic View' })
1092
- : t('inquiry.controls.compactView', { defaultValue: 'Compact View' }),
1195
+ ? t('inquiry.controls.classicView', {
1196
+ defaultValue: 'Classic View'
1197
+ })
1198
+ : t('inquiry.controls.compactView', {
1199
+ defaultValue: 'Compact View'
1200
+ }),
1093
1201
  iconName: treeViewMode === TreeViewModeEnums.Compact
1094
1202
  ? 'apps-list-detail'
1095
1203
  : 'apps-list',
@@ -1105,12 +1213,19 @@ export const InquiryWorkspace = ({ treeId, tree, capabilities, readOnly: readOnl
1105
1213
  defaultValue: 'Advanced Search'
1106
1214
  }),
1107
1215
  iconName: 'filter',
1108
- onClick: () => setAdvancedView({ open: true, preset: null })
1216
+ onClick: () => setAdvancedView({ preset: null })
1109
1217
  }
1110
1218
  ]
1111
1219
  : [])
1112
- ], [t, menu.collapseAll, menu.expandAll, menu.resetTree, treeViewMode, searchableEntities.length]);
1113
- const treeName = typeof (tree === null || tree === void 0 ? void 0 : tree.name) === 'string' && tree.name ? tree.name : 'Inquiry';
1220
+ ], [
1221
+ t,
1222
+ menu.collapseAll,
1223
+ menu.expandAll,
1224
+ menu.resetTree,
1225
+ treeViewMode,
1226
+ searchableEntities.length
1227
+ ]);
1228
+ const treeName = treeTitleOf(tree) || 'Inquiry';
1114
1229
  /**
1115
1230
  * The pane title only gets a tooltip when the name is actually cut off. The
1116
1231
  * pane is user-resizable, so this is measured (ResizeObserver) rather than
@@ -1122,7 +1237,7 @@ export const InquiryWorkspace = ({ treeId, tree, capabilities, readOnly: readOnl
1122
1237
  // The viewer's AI function: every tool is a function this file already calls
1123
1238
  // for its own controls. Handed to the docked assistant below.
1124
1239
  const copilot = useInquiryCopilot({
1125
- tree: tree,
1240
+ tree,
1126
1241
  searchableEntities: searchableEntities,
1127
1242
  menuList: menu.menuList,
1128
1243
  selectedNode: menu.selectedNode,
@@ -1138,7 +1253,7 @@ export const InquiryWorkspace = ({ treeId, tree, capabilities, readOnly: readOnl
1138
1253
  onFilterTextChange: applyFilterText,
1139
1254
  onExpandAll: menu.expandAll,
1140
1255
  onCollapseAll: menu.collapseAll,
1141
- onApplyAdvancedSearch: applyAdvancedSearch,
1256
+ onApplyAdvancedSearch: applyAdvancedSearch
1142
1257
  });
1143
1258
  if (!rootNode) {
1144
1259
  return (React.createElement("div", { className: styles.centered }, React.createElement(UdpText, { variant: "body1" }, "Failed to load the inquiry tree.")));
@@ -1147,7 +1262,19 @@ export const InquiryWorkspace = ({ treeId, tree, capabilities, readOnly: readOnl
1147
1262
  * The record side of the pane — the whole screen when the tree is hidden, so
1148
1263
  * it is composed once and placed by the branch below rather than duplicated.
1149
1264
  */
1150
- const recordPane = (React.createElement("div", { className: styles.main }, advancedView.open ? (React.createElement(InquirySearchPanel
1265
+ const title = (React.createElement("div", { ref: titleRef, className: styles.title }, React.createElement(UdpText, { variant: "subtitle2", as: "span", block: false }, treeName)));
1266
+ const idlePane = idleRecordPane({
1267
+ // A tree with nothing searchable never runs its arrival, so never waits on
1268
+ // it. The landing waits for the searchable set too: its recently-loaded,
1269
+ // reminder and find rows resolve their level from it.
1270
+ arrivalPending: (!arrivalSettled || !searchSettled) && searchableEntities.length > 0,
1271
+ explorePageId,
1272
+ recordsLoading
1273
+ });
1274
+ const recordPane = (
1275
+ // A focus target of its own (never a tab stop), so F6 has somewhere to land
1276
+ // whatever the record holds; Tab from here enters the record's controls.
1277
+ React.createElement("div", { ref: recordPaneRef, className: styles.main, role: "region", "aria-label": t('inquiry.record.region', { defaultValue: 'Record' }), tabIndex: -1 }, advancedView ? (React.createElement(InquirySearchPanel
1151
1278
  // A proposal applied over an open panel is a different search:
1152
1279
  // remount so the panel starts from the filter it was given.
1153
1280
  , {
@@ -1159,25 +1286,23 @@ export const InquiryWorkspace = ({ treeId, tree, capabilities, readOnly: readOnl
1159
1286
  // With a filter already built the results ARE the screen; without
1160
1287
  // one the drawer is where the user builds it.
1161
1288
  initialAdvanced: advancedView.preset, initialAdvancedOpen: !advancedView.preset, onLoadRecord: (entity, row) => {
1162
- setAdvancedView({ open: false, preset: null });
1289
+ setAdvancedView(null);
1163
1290
  void handleLoadRecord(entity, row);
1164
- }, onClear: () => setAdvancedView({ open: false, preset: null }) })) : menu.selectedNode ? (React.createElement(UdpNodeView, { treeId: treeId, node: menu.selectedNode,
1291
+ }, onClear: () => setAdvancedView(null) })) : menu.selectedNode ? (React.createElement(UdpNodeView, { treeId: treeId, node: menu.selectedNode,
1165
1292
  // The record this row hangs off — the lineage v1 handed page and
1166
1293
  // action pages as `parentNodeObj`.
1167
- parentNode: menu.selectedParent, containerId: containerId, capabilities: nodeCapabilities, effects: nodeEffects,
1294
+ parentNode: menu.selectedParent, containerId: containerId, capabilities: capabilities, effects: nodeEffects,
1168
1295
  // The selected row's own root record — the filed-for tree shared
1169
1296
  // surfaces (notes/reminders) offer for attachment.
1170
- menuRootNode: menu.selectedRoot, activeTabId: activeTabId, onActiveTabChange: switchTab })) : explorePageId ? (
1297
+ menuRootNode: menu.selectedRoot, activeTabId: activeTabId, onActiveTabChange: switchTab })) : idlePane === 'loading' ? (React.createElement("div", { className: styles.centered }, React.createElement(UdpSpinner, null))) : idlePane === 'landing' ? (
1171
1298
  // THE TREE'S LANDING SCREEN (v1 InquiryContainer.jsx:2849). With no
1172
1299
  // record selected, a tree that names an explore page shows that page
1173
- // here rather than a sentence telling the user to pick something. It
1174
- // renders straight away — the landing owns its own data and has no
1175
- // reason to sit behind the tree's root page, so no spinner precedes it.
1300
+ // here rather than a sentence telling the user to pick something.
1176
1301
  React.createElement(InquiryLanding, { pageId: explorePageId, tree: tree, treeId: treeId, catalogObjects: catalogObjects, onLoadedNodeClick: handleRecentlyLoadedClick, onLoadRecord: (entity, row) => {
1177
1302
  void handleLoadRecord(entity, row);
1178
1303
  }, onLoadRecords: (picks) => {
1179
1304
  void handleLoadRecords(picks);
1180
- } })) : recordsLoading ? (React.createElement("div", { className: styles.centered }, React.createElement(UdpSpinner, null))) : (React.createElement("div", { className: styles.centered }, React.createElement(UdpText, { variant: "body1" }, treeHidden
1305
+ } })) : (React.createElement("div", { className: styles.centered }, React.createElement(UdpText, { variant: "body1" }, treeHidden
1181
1306
  ? t('inquiry.emptyRecordPaneNoTree', {
1182
1307
  defaultValue: 'No record to show.'
1183
1308
  })
@@ -1188,29 +1313,28 @@ export const InquiryWorkspace = ({ treeId, tree, capabilities, readOnly: readOnl
1188
1313
  // Height-bearing: the host gives this element its height (InquiryV2's
1189
1314
  // viewport wrapper, the Tree Builder's workspace body) and `fill` gives
1190
1315
  // each pane its own independent scroll.
1191
- React.createElement("div", { className: styles.workspace }, treeHidden ? (
1316
+ React.createElement(ReadOnlyContext.Provider, { value: readOnly }, React.createElement("div", { className: styles.workspace, onKeyDown: handlePaneKey }, treeHidden ? (
1192
1317
  // No tree means no sidebar shell at all — not a collapsed rail. The
1193
1318
  // record view IS the page.
1194
- recordPane) : (React.createElement(UdpSidebarLayout, { fill: true, resizable: true, sidebarWidth: "300px", minSidebarWidth: 220, maxSidebarWidth: 520, footerResizable: assistant && copilotSplit.footerResizable, footerHeight: copilotSplit.footerHeight, minFooterHeight: 200, onFooterHeightChange: copilotSplit.onFooterHeightChange, onOpenChange: (event) => setSidebarOpen(event.detail) }, React.createElement("div", { slot: "sidebar-header", className: styles.sidebarHeader }, titleTruncated ? (React.createElement(UdpTooltip, { content: treeName }, React.createElement("div", { ref: titleRef, className: styles.title }, React.createElement(UdpText, { variant: "subtitle2", as: "span", block: false }, treeName)))) : (React.createElement("div", { ref: titleRef, className: styles.title }, React.createElement(UdpText, { variant: "subtitle2", as: "span", block: false }, treeName))), React.createElement(InquiryMenuToolbar, { filterText: filterText, onFilterTextChange: applyFilterText, onFilterKeyDown: handleFilterKeyDown, filterDisabled: filterRows.length === 0, onLoad: () => openLoad(''), onRefresh: refreshTree, overflowItems: overflowItems })), React.createElement("div", { slot: "sidebar" }, recordsError && (React.createElement(UdpMessageBar, { intent: "error", layout: "multiline" }, t('inquiry.tree.recordsFailed', {
1319
+ recordPane) : (React.createElement(UdpSidebarLayout, { fill: true, resizable: true, sidebarWidth: "300px", minSidebarWidth: 220, maxSidebarWidth: 520, footerResizable: assistant && copilotSplit.footerResizable, footerHeight: copilotSplit.footerHeight, minFooterHeight: 200, onFooterHeightChange: copilotSplit.onFooterHeightChange, onOpenChange: (event) => setSidebarOpen(event.detail) }, React.createElement("div", { slot: "sidebar-header", className: styles.sidebarHeader }, titleTruncated ? (React.createElement(UdpTooltip, { content: treeName }, title)) : (title), React.createElement(InquiryMenuToolbar, { filterText: filterText, onFilterTextChange: applyFilterText, onFilterKeyDown: handleFilterKeyDown, filterDisabled: filterRows.length === 0, onLoad: () => openLoad(''), onRefresh: handleRefresh, refreshing: refreshing, overflowItems: overflowItems })), React.createElement("div", { slot: "sidebar" }, recordsError && (React.createElement(UdpMessageBar, { intent: "error", layout: "multiline" }, t('inquiry.tree.recordsFailed', {
1195
1320
  defaultValue: 'Records could not be loaded. Refresh to try again.'
1196
1321
  }))), catalogMissing && (React.createElement(UdpMessageBar, { intent: "warning" }, t('inquiry.tree.catalogMissing', {
1197
1322
  defaultValue: 'Advanced search is limited for this tree.'
1198
1323
  }))), treeIsEmpty && (
1199
1324
  /* NOTHING LOADED. An explore-first tree opens with an empty tree pane
1200
- on purpose, and a blank 300px column reads as broken — so it says
1201
- what it is, in one quiet caption line on the same grid as the rows
1202
- that will arrive. No art and no button: + Load is directly above it
1203
- in the toolbar, so a second door here would be the same command
1204
- twice. NodeList is not rendered at all in this state: its own empty
1205
- state is 42px of artwork and an untranslated "No Entity Opened",
1206
- which is shared with v1 and the Tree Builder preview and stays
1207
- theirs. */
1325
+ on purpose, and a blank 300px column reads as broken — so it says
1326
+ what it is, in one quiet caption line on the same grid as the rows
1327
+ that will arrive. No art and no button: + Load is directly above it
1328
+ in the toolbar, so a second door here would be the same command
1329
+ twice. NodeList is not rendered at all in this state: its own empty
1330
+ state is 42px of artwork and an untranslated "No Entity Opened",
1331
+ which is shared with v1 and the Tree Builder preview and stays
1332
+ theirs. */
1208
1333
  React.createElement("div", { className: styles.emptyTree }, React.createElement(UdpText, { variant: "caption1", as: "span" }, t('inquiry.tree.nothingLoaded', {
1209
1334
  defaultValue: 'No records loaded. Use Load to bring one into the tree.'
1210
- })))), treeHasRows && (React.createElement(NodeList, { menuItemsList: menu.menuList, onSelectNode: menu.handleSelectNode, onDropNode: onDropNode, selectedNodeId: (_m = menu.selectedId) !== null && _m !== void 0 ? _m : '', sidebarExpanded: sidebarOpen, catalogObjects: catalogObjects, promotedEntities: promotedEntities !== null && promotedEntities !== void 0 ? promotedEntities : [], treeStructureArr: (_o = tree === null || tree === void 0 ? void 0 : tree.treeStructure) !== null && _o !== void 0 ? _o : [], setMenuList: menu.setMenuList, loadChildren: loadChildren, treeViewMode: treeViewMode, filter: filter, onRemoveRoot: menu.removeRoot, removeRootLabel: t('common.remove', { defaultValue: 'Remove' }) })), treeLoading && (React.createElement(TreeSkeletonRows, { count: recordsLoading ? initialRecordCount : loadsInFlight })), rootPaging.showLoadMore && (React.createElement("div", { className: styles.showMore }, React.createElement(UdpButton, { appearance: "transparent", size: "small", loading: rootPaging.isLoadingMore, onClick: () => setRootPages(nextRootPages) }, t('inquiry.tree.showMoreRecords', {
1211
- defaultValue: 'Show {{amount}} more',
1212
- amount: rootPaging.nextCount
1213
- })))), filter.active &&
1335
+ })))), React.createElement("div", { ref: setTreeBox }, treeHasRows && (React.createElement(NodeList, { menuItemsList: menu.menuList, onSelectNode: menu.handleSelectNode, onDropNode: onDropNode, selectedNodeId: (_u = menu.selectedId) !== null && _u !== void 0 ? _u : '', sidebarExpanded: sidebarOpen, catalogObjects: catalogObjects, promotedEntities: promotedEntities !== null && promotedEntities !== void 0 ? promotedEntities : [], findLevel: findConfigLevel, setMenuList: menu.setMenuList, loadChildren: loadChildren, rootMore: rootMore, treeViewMode: treeViewMode, filter: filter, onRemoveRoot: menu.removeRoot, removeRootLabel: t('common.remove', {
1336
+ defaultValue: 'Remove'
1337
+ }) }))), treeLoading && (React.createElement(TreeSkeletonRows, { count: pendingRowCount, childCount: skeletonChildCount(rootNode), compact: treeViewMode === TreeViewModeEnums.Compact, afterRows: treeHasRows })), filter.active &&
1214
1338
  filter.matchIds.length === 0 &&
1215
1339
  filter.query.length >= LOAD_MIN_CHARS && (React.createElement("div", { className: styles.bridge }, React.createElement(UdpText, { variant: "caption1", as: "span" }, t('inquiry.filter.notInTree', {
1216
1340
  defaultValue: 'Not in the tree.'
@@ -1224,7 +1348,7 @@ export const InquiryWorkspace = ({ treeId, tree, capabilities, readOnly: readOnl
1224
1348
  , {
1225
1349
  // Remounted per open (and per handed-over prefill) so the dialog always
1226
1350
  // starts from the term it was opened with.
1227
- key: `load-${loadOpen}-${loadPrefill}`, open: loadOpen, entities: searchableEntities, initialText: loadPrefill,
1351
+ key: `load-${!!loadDialog}-${(_v = loadDialog === null || loadDialog === void 0 ? void 0 : loadDialog.prefill) !== null && _v !== void 0 ? _v : ''}`, open: !!loadDialog, entities: searchableEntities, initialText: (_w = loadDialog === null || loadDialog === void 0 ? void 0 : loadDialog.prefill) !== null && _w !== void 0 ? _w : '',
1228
1352
  // The dialog's default listing IS the menu's own first page — already
1229
1353
  // fetched and cached here, so opening Load costs no request.
1230
1354
  defaultRows: stampedRows, defaultTotal: records === null || records === void 0 ? void 0 : records.total, defaultEntity: rootSearchEntity, loadedKeys: loadedKeys, catalogObjects: catalogObjects, onChoose: (entity, row) => {
@@ -1232,10 +1356,9 @@ export const InquiryWorkspace = ({ treeId, tree, capabilities, readOnly: readOnl
1232
1356
  }, onChooseMany: (picks) => {
1233
1357
  void handleLoadRecords(picks);
1234
1358
  }, onClose: () => {
1235
- setLoadOpen(false);
1236
- setLoadPrefill('');
1237
- } }), React.createElement(ExecuteApiDropDialog, { open: !!dropExecute, methods: (_p = dropExecute === null || dropExecute === void 0 ? void 0 : dropExecute.methods) !== null && _p !== void 0 ? _p : [], executing: dropExecuting, onExecute: (method) => {
1359
+ setLoadDialog(null);
1360
+ } }), React.createElement(ExecuteApiDropDialog, { open: !!dropExecute, methods: (_x = dropExecute === null || dropExecute === void 0 ? void 0 : dropExecute.methods) !== null && _x !== void 0 ? _x : [], executing: dropExecuting, onExecute: (method) => {
1238
1361
  void executeDrop(method);
1239
- }, onClose: () => setDropExecute(null) })));
1362
+ }, onClose: () => setDropExecute(null) }))));
1240
1363
  };
1241
1364
  //# sourceMappingURL=InquiryWorkspace.js.map