udp-react-enterprise-component-library 27.0.0-next.12 → 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 (540) hide show
  1. package/dist/.tsbuildinfo +1 -1
  2. package/dist/UI/fluent-web-components/UdpIconPicker.d.ts +4 -1
  3. package/dist/UI/fluent-web-components/UdpIconPicker.d.ts.map +1 -1
  4. package/dist/UI/fluent-web-components/UdpIconPicker.js +2 -2
  5. package/dist/UI/fluent-web-components/UdpIconPicker.js.map +1 -1
  6. package/dist/UI/fluent-web-components/UdpIconPicker.mjs +32 -28
  7. package/dist/UI/fluent-web-components/UdpIconPicker.mjs.map +1 -1
  8. package/dist/UI/fluent-web-components/UdpLink.d.ts +6 -0
  9. package/dist/UI/fluent-web-components/UdpLink.d.ts.map +1 -1
  10. package/dist/UI/fluent-web-components/UdpLink.js.map +1 -1
  11. package/dist/UI/fluent-web-components/UdpLink.mjs.map +1 -1
  12. package/dist/UI/fluent-web-components/types.d.ts +2 -0
  13. package/dist/UI/fluent-web-components/types.d.ts.map +1 -1
  14. package/dist/UI/widgets/library/InquiryFindRecordsWidget/InquiryFindRecordsWidget.d.ts +16 -3
  15. package/dist/UI/widgets/library/InquiryFindRecordsWidget/InquiryFindRecordsWidget.d.ts.map +1 -1
  16. package/dist/UI/widgets/library/InquiryFindRecordsWidget/InquiryFindRecordsWidget.js +36 -13
  17. package/dist/UI/widgets/library/InquiryFindRecordsWidget/InquiryFindRecordsWidget.js.map +1 -1
  18. package/dist/UI/widgets/library/InquiryFindRecordsWidget/InquiryFindRecordsWidget.mjs +119 -62
  19. package/dist/UI/widgets/library/InquiryFindRecordsWidget/InquiryFindRecordsWidget.mjs.map +1 -1
  20. package/dist/UI/widgets/library/InquiryFindRecordsWidget/index.mjs +3 -2
  21. package/dist/UI/widgets/library/InquiryRecentRecordsWidget/InquiryRecentRecordsWidget.d.ts +9 -2
  22. package/dist/UI/widgets/library/InquiryRecentRecordsWidget/InquiryRecentRecordsWidget.d.ts.map +1 -1
  23. package/dist/UI/widgets/library/InquiryRecentRecordsWidget/InquiryRecentRecordsWidget.js +18 -18
  24. package/dist/UI/widgets/library/InquiryRecentRecordsWidget/InquiryRecentRecordsWidget.js.map +1 -1
  25. package/dist/UI/widgets/library/InquiryRecentRecordsWidget/InquiryRecentRecordsWidget.mjs +79 -67
  26. package/dist/UI/widgets/library/InquiryRecentRecordsWidget/InquiryRecentRecordsWidget.mjs.map +1 -1
  27. package/dist/UI/widgets/library/InquiryRemindersWidget/InquiryRemindersWidget.d.ts +8 -2
  28. package/dist/UI/widgets/library/InquiryRemindersWidget/InquiryRemindersWidget.d.ts.map +1 -1
  29. package/dist/UI/widgets/library/InquiryRemindersWidget/InquiryRemindersWidget.js +32 -16
  30. package/dist/UI/widgets/library/InquiryRemindersWidget/InquiryRemindersWidget.js.map +1 -1
  31. package/dist/UI/widgets/library/InquiryRemindersWidget/InquiryRemindersWidget.mjs +129 -102
  32. package/dist/UI/widgets/library/InquiryRemindersWidget/InquiryRemindersWidget.mjs.map +1 -1
  33. package/dist/UI/widgets/library/InquiryRemindersWidget/reminderRowModel.d.ts +3 -2
  34. package/dist/UI/widgets/library/InquiryRemindersWidget/reminderRowModel.d.ts.map +1 -1
  35. package/dist/UI/widgets/library/InquiryRemindersWidget/reminderRowModel.js +11 -12
  36. package/dist/UI/widgets/library/InquiryRemindersWidget/reminderRowModel.js.map +1 -1
  37. package/dist/UI/widgets/library/InquiryRemindersWidget/reminderRowModel.mjs +6 -4
  38. package/dist/UI/widgets/library/InquiryRemindersWidget/reminderRowModel.mjs.map +1 -1
  39. package/dist/UI/widgets/library/InquiryRemindersWidget/useInquiryReminders.d.ts +2 -19
  40. package/dist/UI/widgets/library/InquiryRemindersWidget/useInquiryReminders.d.ts.map +1 -1
  41. package/dist/UI/widgets/library/InquiryRemindersWidget/useInquiryReminders.js +4 -5
  42. package/dist/UI/widgets/library/InquiryRemindersWidget/useInquiryReminders.js.map +1 -1
  43. package/dist/UI/widgets/library/InquiryRemindersWidget/useInquiryReminders.mjs +5 -4
  44. package/dist/UI/widgets/library/InquiryRemindersWidget/useInquiryReminders.mjs.map +1 -1
  45. package/dist/actionPanels/index.d.ts +0 -2
  46. package/dist/actionPanels/index.d.ts.map +1 -1
  47. package/dist/actionPanels/index.js +0 -2
  48. package/dist/actionPanels/index.js.map +1 -1
  49. package/dist/actionPanels/panelActionFields.d.ts +9 -26
  50. package/dist/actionPanels/panelActionFields.d.ts.map +1 -1
  51. package/dist/actionPanels/panelActionFields.js +32 -55
  52. package/dist/actionPanels/panelActionFields.js.map +1 -1
  53. package/dist/actionPanels/panelActionFields.mjs +159 -375
  54. package/dist/actionPanels/panelActionFields.mjs.map +1 -1
  55. package/dist/actionPanels/panelOperations.d.ts +15 -41
  56. package/dist/actionPanels/panelOperations.d.ts.map +1 -1
  57. package/dist/actionPanels/panelOperations.js +51 -89
  58. package/dist/actionPanels/panelOperations.js.map +1 -1
  59. package/dist/actionPanels/panelOperations.mjs +37 -92
  60. package/dist/actionPanels/panelOperations.mjs.map +1 -1
  61. package/dist/domain/actionPanel/actionTypeMeta.d.ts +15 -2
  62. package/dist/domain/actionPanel/actionTypeMeta.d.ts.map +1 -1
  63. package/dist/domain/actionPanel/actionTypeMeta.js +21 -2
  64. package/dist/domain/actionPanel/actionTypeMeta.js.map +1 -1
  65. package/dist/domain/actionPanel/actionTypeMeta.mjs +18 -3
  66. package/dist/domain/actionPanel/actionTypeMeta.mjs.map +1 -1
  67. package/dist/domain/actionPanel/buttonOrder.d.ts +67 -0
  68. package/dist/domain/actionPanel/buttonOrder.d.ts.map +1 -0
  69. package/dist/domain/actionPanel/buttonOrder.js +105 -0
  70. package/dist/domain/actionPanel/buttonOrder.js.map +1 -0
  71. package/dist/domain/actionPanel/buttonOrder.mjs +90 -0
  72. package/dist/domain/actionPanel/buttonOrder.mjs.map +1 -0
  73. package/dist/domain/actionPanel/index.d.ts +1 -0
  74. package/dist/domain/actionPanel/index.d.ts.map +1 -1
  75. package/dist/domain/actionPanel/index.js +1 -0
  76. package/dist/domain/actionPanel/index.js.map +1 -1
  77. package/dist/domain/actionPanel/index.mjs +4 -3
  78. package/dist/domain/actionPanel/serialize.d.ts +6 -2
  79. package/dist/domain/actionPanel/serialize.d.ts.map +1 -1
  80. package/dist/domain/actionPanel/serialize.js +10 -3
  81. package/dist/domain/actionPanel/serialize.js.map +1 -1
  82. package/dist/domain/actionPanel/serialize.mjs +7 -3
  83. package/dist/domain/actionPanel/serialize.mjs.map +1 -1
  84. package/dist/domain/actionPanel/types.d.ts +24 -8
  85. package/dist/domain/actionPanel/types.d.ts.map +1 -1
  86. package/dist/domain/actionPanel/types.js.map +1 -1
  87. package/dist/domain/actionPanel/types.mjs.map +1 -1
  88. package/dist/domain/inquiryTree/describe.d.ts +15 -3
  89. package/dist/domain/inquiryTree/describe.d.ts.map +1 -1
  90. package/dist/domain/inquiryTree/describe.js +32 -28
  91. package/dist/domain/inquiryTree/describe.js.map +1 -1
  92. package/dist/domain/inquiryTree/describe.mjs +34 -16
  93. package/dist/domain/inquiryTree/describe.mjs.map +1 -1
  94. package/dist/domain/inquiryTree/displayTree.d.ts +75 -97
  95. package/dist/domain/inquiryTree/displayTree.d.ts.map +1 -1
  96. package/dist/domain/inquiryTree/displayTree.js +418 -551
  97. package/dist/domain/inquiryTree/displayTree.js.map +1 -1
  98. package/dist/domain/inquiryTree/displayTree.mjs +345 -414
  99. package/dist/domain/inquiryTree/displayTree.mjs.map +1 -1
  100. package/dist/domain/inquiryTree/groups.d.ts +2 -0
  101. package/dist/domain/inquiryTree/groups.d.ts.map +1 -1
  102. package/dist/domain/inquiryTree/groups.js.map +1 -1
  103. package/dist/domain/inquiryTree/groups.mjs.map +1 -1
  104. package/dist/domain/inquiryTree/index.d.ts +1 -1
  105. package/dist/domain/inquiryTree/index.d.ts.map +1 -1
  106. package/dist/domain/inquiryTree/index.js +1 -1
  107. package/dist/domain/inquiryTree/index.js.map +1 -1
  108. package/dist/domain/inquiryTree/index.mjs +12 -12
  109. package/dist/domain/inquiryTree/lazyLoad.d.ts +20 -129
  110. package/dist/domain/inquiryTree/lazyLoad.d.ts.map +1 -1
  111. package/dist/domain/inquiryTree/lazyLoad.js +48 -233
  112. package/dist/domain/inquiryTree/lazyLoad.js.map +1 -1
  113. package/dist/domain/inquiryTree/lazyLoad.mjs +32 -187
  114. package/dist/domain/inquiryTree/lazyLoad.mjs.map +1 -1
  115. package/dist/domain/inquiryTree/legalChildren.d.ts +13 -14
  116. package/dist/domain/inquiryTree/legalChildren.d.ts.map +1 -1
  117. package/dist/domain/inquiryTree/legalChildren.js +21 -42
  118. package/dist/domain/inquiryTree/legalChildren.js.map +1 -1
  119. package/dist/domain/inquiryTree/legalChildren.mjs +19 -37
  120. package/dist/domain/inquiryTree/legalChildren.mjs.map +1 -1
  121. package/dist/domain/inquiryTree/names.d.ts +38 -0
  122. package/dist/domain/inquiryTree/names.d.ts.map +1 -0
  123. package/dist/domain/inquiryTree/names.js +64 -0
  124. package/dist/domain/inquiryTree/names.js.map +1 -0
  125. package/dist/domain/inquiryTree/names.mjs +56 -0
  126. package/dist/domain/inquiryTree/names.mjs.map +1 -0
  127. package/dist/domain/inquiryTree/operations.d.ts +6 -2
  128. package/dist/domain/inquiryTree/operations.d.ts.map +1 -1
  129. package/dist/domain/inquiryTree/operations.js +17 -16
  130. package/dist/domain/inquiryTree/operations.js.map +1 -1
  131. package/dist/domain/inquiryTree/operations.mjs +14 -11
  132. package/dist/domain/inquiryTree/operations.mjs.map +1 -1
  133. package/dist/domain/inquiryTree/rules.d.ts +3 -4
  134. package/dist/domain/inquiryTree/rules.d.ts.map +1 -1
  135. package/dist/domain/inquiryTree/rules.js +3 -13
  136. package/dist/domain/inquiryTree/rules.js.map +1 -1
  137. package/dist/domain/inquiryTree/rules.mjs +3 -9
  138. package/dist/domain/inquiryTree/rules.mjs.map +1 -1
  139. package/dist/domain/inquiryTree/runtime.d.ts +23 -16
  140. package/dist/domain/inquiryTree/runtime.d.ts.map +1 -1
  141. package/dist/domain/inquiryTree/runtime.js +46 -54
  142. package/dist/domain/inquiryTree/runtime.js.map +1 -1
  143. package/dist/domain/inquiryTree/runtime.mjs +31 -26
  144. package/dist/domain/inquiryTree/runtime.mjs.map +1 -1
  145. package/dist/domain/inquiryTree/serialize.d.ts +20 -29
  146. package/dist/domain/inquiryTree/serialize.d.ts.map +1 -1
  147. package/dist/domain/inquiryTree/serialize.js +93 -205
  148. package/dist/domain/inquiryTree/serialize.js.map +1 -1
  149. package/dist/domain/inquiryTree/serialize.mjs +89 -180
  150. package/dist/domain/inquiryTree/serialize.mjs.map +1 -1
  151. package/dist/domain/inquiryTree/types.d.ts +146 -65
  152. package/dist/domain/inquiryTree/types.d.ts.map +1 -1
  153. package/dist/domain/inquiryTree/types.js +5 -0
  154. package/dist/domain/inquiryTree/types.js.map +1 -1
  155. package/dist/domain/inquiryTree/types.mjs +3 -1
  156. package/dist/domain/inquiryTree/types.mjs.map +1 -1
  157. package/dist/domain/inquiryTree/validate.d.ts +9 -2
  158. package/dist/domain/inquiryTree/validate.d.ts.map +1 -1
  159. package/dist/domain/inquiryTree/validate.js +30 -58
  160. package/dist/domain/inquiryTree/validate.js.map +1 -1
  161. package/dist/domain/inquiryTree/validate.mjs +29 -44
  162. package/dist/domain/inquiryTree/validate.mjs.map +1 -1
  163. package/dist/domain/inquiryTree/view.d.ts +8 -12
  164. package/dist/domain/inquiryTree/view.d.ts.map +1 -1
  165. package/dist/domain/inquiryTree/view.js +40 -66
  166. package/dist/domain/inquiryTree/view.js.map +1 -1
  167. package/dist/domain/inquiryTree/view.mjs +30 -60
  168. package/dist/domain/inquiryTree/view.mjs.map +1 -1
  169. package/dist/domain/inquiryTree/waveLoad.d.ts +32 -48
  170. package/dist/domain/inquiryTree/waveLoad.d.ts.map +1 -1
  171. package/dist/domain/inquiryTree/waveLoad.js +75 -90
  172. package/dist/domain/inquiryTree/waveLoad.js.map +1 -1
  173. package/dist/domain/inquiryTree/waveLoad.mjs +54 -60
  174. package/dist/domain/inquiryTree/waveLoad.mjs.map +1 -1
  175. package/dist/domain/inquiryTree/wireString.d.ts +5 -0
  176. package/dist/domain/inquiryTree/wireString.d.ts.map +1 -1
  177. package/dist/domain/inquiryTree/wireString.js +11 -0
  178. package/dist/domain/inquiryTree/wireString.js.map +1 -1
  179. package/dist/domain/inquiryTree/wireString.mjs +10 -1
  180. package/dist/domain/inquiryTree/wireString.mjs.map +1 -1
  181. package/dist/domain/nodeView/index.mjs +2 -2
  182. package/dist/domain/nodeView/model.d.ts +35 -30
  183. package/dist/domain/nodeView/model.d.ts.map +1 -1
  184. package/dist/domain/nodeView/model.js +108 -69
  185. package/dist/domain/nodeView/model.js.map +1 -1
  186. package/dist/domain/nodeView/model.mjs +86 -36
  187. package/dist/domain/nodeView/model.mjs.map +1 -1
  188. package/dist/icons/legacyIconNames.d.ts.map +1 -1
  189. package/dist/icons/legacyIconNames.js +46 -1
  190. package/dist/icons/legacyIconNames.js.map +1 -1
  191. package/dist/icons/legacyIconNames.mjs +46 -1
  192. package/dist/icons/legacyIconNames.mjs.map +1 -1
  193. package/dist/index.mjs +10 -12
  194. package/dist/inquiry/Inquiry.d.ts +3 -0
  195. package/dist/inquiry/Inquiry.d.ts.map +1 -1
  196. package/dist/inquiry/Inquiry.js +3 -0
  197. package/dist/inquiry/Inquiry.js.map +1 -1
  198. package/dist/inquiry/Inquiry.mjs +3 -0
  199. package/dist/inquiry/Inquiry.mjs.map +1 -1
  200. package/dist/inquiry/v2/InquiryV2.d.ts +8 -6
  201. package/dist/inquiry/v2/InquiryV2.d.ts.map +1 -1
  202. package/dist/inquiry/v2/InquiryV2.js +45 -24
  203. package/dist/inquiry/v2/InquiryV2.js.map +1 -1
  204. package/dist/inquiry/v2/InquiryV2.mjs +108 -61
  205. package/dist/inquiry/v2/InquiryV2.mjs.map +1 -1
  206. package/dist/inquiry/v2/InquiryV2.module.css +60 -15
  207. package/dist/inquiry/v2/InquiryWorkspace.d.ts +9 -9
  208. package/dist/inquiry/v2/InquiryWorkspace.d.ts.map +1 -1
  209. package/dist/inquiry/v2/InquiryWorkspace.js +531 -408
  210. package/dist/inquiry/v2/InquiryWorkspace.js.map +1 -1
  211. package/dist/inquiry/v2/InquiryWorkspace.mjs +524 -408
  212. package/dist/inquiry/v2/InquiryWorkspace.mjs.map +1 -1
  213. package/dist/inquiry/v2/ai/InquiryV2Copilot.d.ts +3 -2
  214. package/dist/inquiry/v2/ai/InquiryV2Copilot.d.ts.map +1 -1
  215. package/dist/inquiry/v2/ai/InquiryV2Copilot.js +20 -37
  216. package/dist/inquiry/v2/ai/InquiryV2Copilot.js.map +1 -1
  217. package/dist/inquiry/v2/ai/InquiryV2Copilot.mjs +19 -31
  218. package/dist/inquiry/v2/ai/InquiryV2Copilot.mjs.map +1 -1
  219. package/dist/inquiry/v2/ai/copilotModel.d.ts +6 -14
  220. package/dist/inquiry/v2/ai/copilotModel.d.ts.map +1 -1
  221. package/dist/inquiry/v2/ai/copilotModel.js +35 -87
  222. package/dist/inquiry/v2/ai/copilotModel.js.map +1 -1
  223. package/dist/inquiry/v2/ai/copilotModel.mjs +23 -47
  224. package/dist/inquiry/v2/ai/copilotModel.mjs.map +1 -1
  225. package/dist/inquiry/v2/api/queries.d.ts +46 -73
  226. package/dist/inquiry/v2/api/queries.d.ts.map +1 -1
  227. package/dist/inquiry/v2/api/queries.js +151 -210
  228. package/dist/inquiry/v2/api/queries.js.map +1 -1
  229. package/dist/inquiry/v2/api/queries.mjs +227 -183
  230. package/dist/inquiry/v2/api/queries.mjs.map +1 -1
  231. package/dist/inquiry/v2/capabilities/actions/ActionsCapability.d.ts.map +1 -1
  232. package/dist/inquiry/v2/capabilities/actions/ActionsCapability.js +103 -32
  233. package/dist/inquiry/v2/capabilities/actions/ActionsCapability.js.map +1 -1
  234. package/dist/inquiry/v2/capabilities/actions/ActionsCapability.mjs +92 -32
  235. package/dist/inquiry/v2/capabilities/actions/ActionsCapability.mjs.map +1 -1
  236. package/dist/inquiry/v2/capabilities/actions/ActionsCapability.module.css +8 -1
  237. package/dist/inquiry/v2/capabilities/actions/EntityFormSurface.d.ts +20 -16
  238. package/dist/inquiry/v2/capabilities/actions/EntityFormSurface.d.ts.map +1 -1
  239. package/dist/inquiry/v2/capabilities/actions/EntityFormSurface.js +111 -68
  240. package/dist/inquiry/v2/capabilities/actions/EntityFormSurface.js.map +1 -1
  241. package/dist/inquiry/v2/capabilities/actions/EntityFormSurface.mjs +108 -142
  242. package/dist/inquiry/v2/capabilities/actions/EntityFormSurface.mjs.map +1 -1
  243. package/dist/inquiry/v2/capabilities/actions/RetrieveSurface.mjs +1 -1
  244. package/dist/inquiry/v2/capabilities/actions/actionModel.d.ts +66 -50
  245. package/dist/inquiry/v2/capabilities/actions/actionModel.d.ts.map +1 -1
  246. package/dist/inquiry/v2/capabilities/actions/actionModel.js +141 -66
  247. package/dist/inquiry/v2/capabilities/actions/actionModel.js.map +1 -1
  248. package/dist/inquiry/v2/capabilities/actions/actionModel.mjs +115 -53
  249. package/dist/inquiry/v2/capabilities/actions/actionModel.mjs.map +1 -1
  250. package/dist/inquiry/v2/capabilities/actions/parentKeyDefaults.d.ts +26 -0
  251. package/dist/inquiry/v2/capabilities/actions/parentKeyDefaults.d.ts.map +1 -0
  252. package/dist/inquiry/v2/capabilities/actions/parentKeyDefaults.js +36 -0
  253. package/dist/inquiry/v2/capabilities/actions/parentKeyDefaults.js.map +1 -0
  254. package/dist/inquiry/v2/capabilities/actions/parentKeyDefaults.mjs +41 -0
  255. package/dist/inquiry/v2/capabilities/actions/parentKeyDefaults.mjs.map +1 -0
  256. package/dist/inquiry/v2/capabilities/actions/runAction.d.ts +3 -2
  257. package/dist/inquiry/v2/capabilities/actions/runAction.d.ts.map +1 -1
  258. package/dist/inquiry/v2/capabilities/actions/runAction.js +27 -23
  259. package/dist/inquiry/v2/capabilities/actions/runAction.js.map +1 -1
  260. package/dist/inquiry/v2/capabilities/actions/runAction.mjs +26 -20
  261. package/dist/inquiry/v2/capabilities/actions/runAction.mjs.map +1 -1
  262. package/dist/inquiry/v2/capabilities/actions/useHeaderFold.d.ts +20 -0
  263. package/dist/inquiry/v2/capabilities/actions/useHeaderFold.d.ts.map +1 -0
  264. package/dist/inquiry/v2/capabilities/actions/useHeaderFold.js +112 -0
  265. package/dist/inquiry/v2/capabilities/actions/useHeaderFold.js.map +1 -0
  266. package/dist/inquiry/v2/capabilities/actions/useHeaderFold.mjs +118 -0
  267. package/dist/inquiry/v2/capabilities/actions/useHeaderFold.mjs.map +1 -0
  268. package/dist/inquiry/v2/capabilities/actions/useSheetPanel.d.ts +25 -1
  269. package/dist/inquiry/v2/capabilities/actions/useSheetPanel.d.ts.map +1 -1
  270. package/dist/inquiry/v2/capabilities/actions/useSheetPanel.js +7 -4
  271. package/dist/inquiry/v2/capabilities/actions/useSheetPanel.js.map +1 -1
  272. package/dist/inquiry/v2/capabilities/actions/useSheetPanel.mjs +9 -4
  273. package/dist/inquiry/v2/capabilities/actions/useSheetPanel.mjs.map +1 -1
  274. package/dist/inquiry/v2/capabilities/alerts/AlertsCapability.d.ts +5 -3
  275. package/dist/inquiry/v2/capabilities/alerts/AlertsCapability.d.ts.map +1 -1
  276. package/dist/inquiry/v2/capabilities/alerts/AlertsCapability.js +11 -8
  277. package/dist/inquiry/v2/capabilities/alerts/AlertsCapability.js.map +1 -1
  278. package/dist/inquiry/v2/capabilities/alerts/AlertsCapability.mjs +13 -7
  279. package/dist/inquiry/v2/capabilities/alerts/AlertsCapability.mjs.map +1 -1
  280. package/dist/inquiry/v2/capabilities/alerts/AlertsCapability.module.css +4 -4
  281. package/dist/inquiry/v2/capabilities/header/HeaderCapability.d.ts +1 -1
  282. package/dist/inquiry/v2/capabilities/header/HeaderCapability.d.ts.map +1 -1
  283. package/dist/inquiry/v2/capabilities/header/HeaderCapability.js +20 -17
  284. package/dist/inquiry/v2/capabilities/header/HeaderCapability.js.map +1 -1
  285. package/dist/inquiry/v2/capabilities/header/HeaderCapability.mjs +101 -111
  286. package/dist/inquiry/v2/capabilities/header/HeaderCapability.mjs.map +1 -1
  287. package/dist/inquiry/v2/capabilities/header/HeaderCapability.module.css +9 -6
  288. package/dist/inquiry/v2/capabilities/tabs/TabsCapability.d.ts +2 -1
  289. package/dist/inquiry/v2/capabilities/tabs/TabsCapability.d.ts.map +1 -1
  290. package/dist/inquiry/v2/capabilities/tabs/TabsCapability.js +9 -2
  291. package/dist/inquiry/v2/capabilities/tabs/TabsCapability.js.map +1 -1
  292. package/dist/inquiry/v2/capabilities/tabs/TabsCapability.mjs +18 -15
  293. package/dist/inquiry/v2/capabilities/tabs/TabsCapability.mjs.map +1 -1
  294. package/dist/inquiry/v2/index.d.ts +0 -1
  295. package/dist/inquiry/v2/index.d.ts.map +1 -1
  296. package/dist/inquiry/v2/index.js.map +1 -1
  297. package/dist/inquiry/v2/kernel/ActionRunnerContext.d.ts +3 -3
  298. package/dist/inquiry/v2/kernel/ActionRunnerContext.d.ts.map +1 -1
  299. package/dist/inquiry/v2/kernel/ActionRunnerContext.js +11 -5
  300. package/dist/inquiry/v2/kernel/ActionRunnerContext.js.map +1 -1
  301. package/dist/inquiry/v2/kernel/ActionRunnerContext.mjs +15 -12
  302. package/dist/inquiry/v2/kernel/ActionRunnerContext.mjs.map +1 -1
  303. package/dist/inquiry/v2/kernel/ReadOnlyContext.d.ts +3 -0
  304. package/dist/inquiry/v2/kernel/ReadOnlyContext.d.ts.map +1 -0
  305. package/dist/inquiry/v2/kernel/ReadOnlyContext.js +14 -0
  306. package/dist/inquiry/v2/kernel/ReadOnlyContext.js.map +1 -0
  307. package/dist/inquiry/v2/kernel/ReadOnlyContext.mjs +20 -0
  308. package/dist/inquiry/v2/kernel/ReadOnlyContext.mjs.map +1 -0
  309. package/dist/inquiry/v2/kernel/RecordContext.d.ts +2 -0
  310. package/dist/inquiry/v2/kernel/RecordContext.d.ts.map +1 -1
  311. package/dist/inquiry/v2/kernel/RecordContext.js.map +1 -1
  312. package/dist/inquiry/v2/kernel/RecordContext.mjs.map +1 -1
  313. package/dist/inquiry/v2/kernel/UdpNodeView.d.ts.map +1 -1
  314. package/dist/inquiry/v2/kernel/UdpNodeView.js +18 -13
  315. package/dist/inquiry/v2/kernel/UdpNodeView.js.map +1 -1
  316. package/dist/inquiry/v2/kernel/UdpNodeView.mjs +177 -140
  317. package/dist/inquiry/v2/kernel/UdpNodeView.mjs.map +1 -1
  318. package/dist/inquiry/v2/kernel/UdpNodeView.module.css +56 -5
  319. package/dist/inquiry/v2/kernel/capabilities.d.ts +0 -2
  320. package/dist/inquiry/v2/kernel/capabilities.d.ts.map +1 -1
  321. package/dist/inquiry/v2/kernel/capabilities.js.map +1 -1
  322. package/dist/inquiry/v2/kernel/capabilities.mjs.map +1 -1
  323. package/dist/inquiry/v2/landing/InquiryExplorePage.d.ts +26 -37
  324. package/dist/inquiry/v2/landing/InquiryExplorePage.d.ts.map +1 -1
  325. package/dist/inquiry/v2/landing/InquiryExplorePage.js +48 -57
  326. package/dist/inquiry/v2/landing/InquiryExplorePage.js.map +1 -1
  327. package/dist/inquiry/v2/landing/InquiryExplorePage.mjs +102 -106
  328. package/dist/inquiry/v2/landing/InquiryExplorePage.mjs.map +1 -1
  329. package/dist/inquiry/v2/landing/InquiryExplorePage.module.css +58 -6
  330. package/dist/inquiry/v2/landing/InquiryLanding.d.ts +3 -3
  331. package/dist/inquiry/v2/landing/InquiryLanding.d.ts.map +1 -1
  332. package/dist/inquiry/v2/landing/InquiryLanding.js +8 -3
  333. package/dist/inquiry/v2/landing/InquiryLanding.js.map +1 -1
  334. package/dist/inquiry/v2/landing/InquiryLanding.mjs +51 -35
  335. package/dist/inquiry/v2/landing/InquiryLanding.mjs.map +1 -1
  336. package/dist/inquiry/v2/landing/InquiryLanding.module.css +8 -0
  337. package/dist/inquiry/v2/page/UdpPageRenderer.d.ts +5 -1
  338. package/dist/inquiry/v2/page/UdpPageRenderer.d.ts.map +1 -1
  339. package/dist/inquiry/v2/page/UdpPageRenderer.js +13 -1
  340. package/dist/inquiry/v2/page/UdpPageRenderer.js.map +1 -1
  341. package/dist/inquiry/v2/page/UdpPageRenderer.mjs +36 -7
  342. package/dist/inquiry/v2/page/UdpPageRenderer.mjs.map +1 -1
  343. package/dist/inquiry/v2/search/InquirySearchPanel.d.ts +1 -7
  344. package/dist/inquiry/v2/search/InquirySearchPanel.d.ts.map +1 -1
  345. package/dist/inquiry/v2/search/InquirySearchPanel.js +6 -13
  346. package/dist/inquiry/v2/search/InquirySearchPanel.js.map +1 -1
  347. package/dist/inquiry/v2/search/InquirySearchPanel.mjs +4 -8
  348. package/dist/inquiry/v2/search/InquirySearchPanel.mjs.map +1 -1
  349. package/dist/inquiry/v2/search/RecordFinder.d.ts +30 -1
  350. package/dist/inquiry/v2/search/RecordFinder.d.ts.map +1 -1
  351. package/dist/inquiry/v2/search/RecordFinder.js +43 -20
  352. package/dist/inquiry/v2/search/RecordFinder.js.map +1 -1
  353. package/dist/inquiry/v2/search/RecordFinder.mjs +68 -42
  354. package/dist/inquiry/v2/search/RecordFinder.mjs.map +1 -1
  355. package/dist/inquiry/v2/search/index.d.ts +3 -3
  356. package/dist/inquiry/v2/search/index.d.ts.map +1 -1
  357. package/dist/inquiry/v2/search/index.js +1 -1
  358. package/dist/inquiry/v2/search/index.js.map +1 -1
  359. package/dist/inquiry/v2/search/searchModel.d.ts +130 -23
  360. package/dist/inquiry/v2/search/searchModel.d.ts.map +1 -1
  361. package/dist/inquiry/v2/search/searchModel.js +237 -36
  362. package/dist/inquiry/v2/search/searchModel.js.map +1 -1
  363. package/dist/inquiry/v2/search/searchModel.mjs +207 -34
  364. package/dist/inquiry/v2/search/searchModel.mjs.map +1 -1
  365. package/dist/inquiry/v2/search/useInquirySearch.d.ts.map +1 -1
  366. package/dist/inquiry/v2/search/useInquirySearch.js +46 -19
  367. package/dist/inquiry/v2/search/useInquirySearch.js.map +1 -1
  368. package/dist/inquiry/v2/search/useInquirySearch.mjs +83 -84
  369. package/dist/inquiry/v2/search/useInquirySearch.mjs.map +1 -1
  370. package/dist/inquiry/v2/tree/InquiryFluentTreeMenu.d.ts +4 -1
  371. package/dist/inquiry/v2/tree/InquiryFluentTreeMenu.d.ts.map +1 -1
  372. package/dist/inquiry/v2/tree/InquiryFluentTreeMenu.js +174 -166
  373. package/dist/inquiry/v2/tree/InquiryFluentTreeMenu.js.map +1 -1
  374. package/dist/inquiry/v2/tree/InquiryFluentTreeMenu.mjs +343 -325
  375. package/dist/inquiry/v2/tree/InquiryFluentTreeMenu.mjs.map +1 -1
  376. package/dist/inquiry/v2/tree/InquiryMenuToolbar.d.ts +3 -1
  377. package/dist/inquiry/v2/tree/InquiryMenuToolbar.d.ts.map +1 -1
  378. package/dist/inquiry/v2/tree/InquiryMenuToolbar.js +8 -7
  379. package/dist/inquiry/v2/tree/InquiryMenuToolbar.js.map +1 -1
  380. package/dist/inquiry/v2/tree/InquiryMenuToolbar.mjs +68 -72
  381. package/dist/inquiry/v2/tree/InquiryMenuToolbar.mjs.map +1 -1
  382. package/dist/inquiry/v2/tree/LoadRecordDialog.d.ts +3 -3
  383. package/dist/inquiry/v2/tree/LoadRecordDialog.d.ts.map +1 -1
  384. package/dist/inquiry/v2/tree/LoadRecordDialog.js +12 -7
  385. package/dist/inquiry/v2/tree/LoadRecordDialog.js.map +1 -1
  386. package/dist/inquiry/v2/tree/LoadRecordDialog.mjs +48 -33
  387. package/dist/inquiry/v2/tree/LoadRecordDialog.mjs.map +1 -1
  388. package/dist/inquiry/v2/tree/NodeList.d.ts.map +1 -1
  389. package/dist/inquiry/v2/tree/NodeList.js +17 -6
  390. package/dist/inquiry/v2/tree/NodeList.js.map +1 -1
  391. package/dist/inquiry/v2/tree/NodeList.mjs +49 -36
  392. package/dist/inquiry/v2/tree/NodeList.mjs.map +1 -1
  393. package/dist/inquiry/v2/tree/arrivalModel.d.ts +15 -0
  394. package/dist/inquiry/v2/tree/arrivalModel.d.ts.map +1 -1
  395. package/dist/inquiry/v2/tree/arrivalModel.js +14 -1
  396. package/dist/inquiry/v2/tree/arrivalModel.js.map +1 -1
  397. package/dist/inquiry/v2/tree/arrivalModel.mjs +12 -1
  398. package/dist/inquiry/v2/tree/arrivalModel.mjs.map +1 -1
  399. package/dist/inquiry/v2/tree/branchRefreshModel.d.ts +32 -0
  400. package/dist/inquiry/v2/tree/branchRefreshModel.d.ts.map +1 -0
  401. package/dist/inquiry/v2/tree/branchRefreshModel.js +62 -0
  402. package/dist/inquiry/v2/tree/branchRefreshModel.js.map +1 -0
  403. package/dist/inquiry/v2/tree/branchRefreshModel.mjs +60 -0
  404. package/dist/inquiry/v2/tree/branchRefreshModel.mjs.map +1 -0
  405. package/dist/inquiry/v2/tree/droppedPageModel.d.ts +23 -1
  406. package/dist/inquiry/v2/tree/droppedPageModel.d.ts.map +1 -1
  407. package/dist/inquiry/v2/tree/droppedPageModel.js +53 -26
  408. package/dist/inquiry/v2/tree/droppedPageModel.js.map +1 -1
  409. package/dist/inquiry/v2/tree/droppedPageModel.mjs +48 -20
  410. package/dist/inquiry/v2/tree/droppedPageModel.mjs.map +1 -1
  411. package/dist/inquiry/v2/tree/fluentTreeMenu/treeMenuVisuals.d.ts +7 -12
  412. package/dist/inquiry/v2/tree/fluentTreeMenu/treeMenuVisuals.d.ts.map +1 -1
  413. package/dist/inquiry/v2/tree/fluentTreeMenu/treeMenuVisuals.js +44 -15
  414. package/dist/inquiry/v2/tree/fluentTreeMenu/treeMenuVisuals.js.map +1 -1
  415. package/dist/inquiry/v2/tree/fluentTreeMenu/treeMenuVisuals.mjs +34 -15
  416. package/dist/inquiry/v2/tree/fluentTreeMenu/treeMenuVisuals.mjs.map +1 -1
  417. package/dist/inquiry/v2/tree/fluentTreeMenu/useAggregateBadges.d.ts.map +1 -1
  418. package/dist/inquiry/v2/tree/fluentTreeMenu/useAggregateBadges.js +7 -18
  419. package/dist/inquiry/v2/tree/fluentTreeMenu/useAggregateBadges.js.map +1 -1
  420. package/dist/inquiry/v2/tree/fluentTreeMenu/useAggregateBadges.mjs +6 -14
  421. package/dist/inquiry/v2/tree/fluentTreeMenu/useAggregateBadges.mjs.map +1 -1
  422. package/dist/inquiry/v2/tree/fluentTreeMenu/useChildCountBadges.d.ts +20 -16
  423. package/dist/inquiry/v2/tree/fluentTreeMenu/useChildCountBadges.d.ts.map +1 -1
  424. package/dist/inquiry/v2/tree/fluentTreeMenu/useChildCountBadges.js +77 -55
  425. package/dist/inquiry/v2/tree/fluentTreeMenu/useChildCountBadges.js.map +1 -1
  426. package/dist/inquiry/v2/tree/fluentTreeMenu/useChildCountBadges.mjs +85 -106
  427. package/dist/inquiry/v2/tree/fluentTreeMenu/useChildCountBadges.mjs.map +1 -1
  428. package/dist/inquiry/v2/tree/lineageModel.d.ts +18 -1
  429. package/dist/inquiry/v2/tree/lineageModel.d.ts.map +1 -1
  430. package/dist/inquiry/v2/tree/lineageModel.js +71 -2
  431. package/dist/inquiry/v2/tree/lineageModel.js.map +1 -1
  432. package/dist/inquiry/v2/tree/lineageModel.mjs +53 -3
  433. package/dist/inquiry/v2/tree/lineageModel.mjs.map +1 -1
  434. package/dist/inquiry/v2/tree/menuRebuildModel.d.ts +10 -27
  435. package/dist/inquiry/v2/tree/menuRebuildModel.d.ts.map +1 -1
  436. package/dist/inquiry/v2/tree/menuRebuildModel.js +8 -58
  437. package/dist/inquiry/v2/tree/menuRebuildModel.js.map +1 -1
  438. package/dist/inquiry/v2/tree/menuRebuildModel.mjs +8 -51
  439. package/dist/inquiry/v2/tree/menuRebuildModel.mjs.map +1 -1
  440. package/dist/inquiry/v2/tree/pagedChildrenModel.d.ts +26 -0
  441. package/dist/inquiry/v2/tree/pagedChildrenModel.d.ts.map +1 -0
  442. package/dist/inquiry/v2/tree/pagedChildrenModel.js +56 -0
  443. package/dist/inquiry/v2/tree/pagedChildrenModel.js.map +1 -0
  444. package/dist/inquiry/v2/tree/pagedChildrenModel.mjs +43 -0
  445. package/dist/inquiry/v2/tree/pagedChildrenModel.mjs.map +1 -0
  446. package/dist/inquiry/v2/tree/rootRemovalModel.d.ts +7 -0
  447. package/dist/inquiry/v2/tree/rootRemovalModel.d.ts.map +1 -1
  448. package/dist/inquiry/v2/tree/rootRemovalModel.js +31 -5
  449. package/dist/inquiry/v2/tree/rootRemovalModel.js.map +1 -1
  450. package/dist/inquiry/v2/tree/rootRemovalModel.mjs +21 -4
  451. package/dist/inquiry/v2/tree/rootRemovalModel.mjs.map +1 -1
  452. package/dist/inquiry/v2/tree/treeFilterModel.d.ts +0 -2
  453. package/dist/inquiry/v2/tree/treeFilterModel.d.ts.map +1 -1
  454. package/dist/inquiry/v2/tree/treeFilterModel.js +0 -7
  455. package/dist/inquiry/v2/tree/treeFilterModel.js.map +1 -1
  456. package/dist/inquiry/v2/tree/treeFilterModel.mjs.map +1 -1
  457. package/dist/inquiry/v2/tree/useInquiryMenu.d.ts +16 -7
  458. package/dist/inquiry/v2/tree/useInquiryMenu.d.ts.map +1 -1
  459. package/dist/inquiry/v2/tree/useInquiryMenu.js +401 -163
  460. package/dist/inquiry/v2/tree/useInquiryMenu.js.map +1 -1
  461. package/dist/inquiry/v2/tree/useInquiryMenu.mjs +511 -310
  462. package/dist/inquiry/v2/tree/useInquiryMenu.mjs.map +1 -1
  463. package/dist/inquiry/v2/tree/waveLoader.d.ts +10 -11
  464. package/dist/inquiry/v2/tree/waveLoader.d.ts.map +1 -1
  465. package/dist/inquiry/v2/tree/waveLoader.js +78 -72
  466. package/dist/inquiry/v2/tree/waveLoader.js.map +1 -1
  467. package/dist/inquiry/v2/tree/waveLoader.mjs +79 -68
  468. package/dist/inquiry/v2/tree/waveLoader.mjs.map +1 -1
  469. package/dist/inquiry/v2/widgets/listRow.module.css +27 -0
  470. package/dist/inquiry/v2/widgets/widgetRowModel.d.ts +6 -2
  471. package/dist/inquiry/v2/widgets/widgetRowModel.d.ts.map +1 -1
  472. package/dist/inquiry/v2/widgets/widgetRowModel.js +49 -14
  473. package/dist/inquiry/v2/widgets/widgetRowModel.js.map +1 -1
  474. package/dist/inquiry/v2/widgets/widgetRowModel.mjs +36 -12
  475. package/dist/inquiry/v2/widgets/widgetRowModel.mjs.map +1 -1
  476. package/dist/maintenance/UdpTaggedRecordsPage.mjs +1 -1
  477. package/dist/maintenance/api/lookupApi.mjs +1 -1
  478. package/dist/maintenance/api/tagsApi.mjs +1 -1
  479. package/dist/maintenance/config/nodeDefaults.d.ts.map +1 -1
  480. package/dist/maintenance/config/nodeDefaults.js +16 -5
  481. package/dist/maintenance/config/nodeDefaults.js.map +1 -1
  482. package/dist/maintenance/config/nodeDefaults.mjs +14 -5
  483. package/dist/maintenance/config/nodeDefaults.mjs.map +1 -1
  484. package/dist/maintenance/config/useEntityConfig.mjs +1 -1
  485. package/dist/maintenance/config/useLinkedLabels.mjs +1 -1
  486. package/dist/maintenance/grid/MaintenanceGrid.mjs +1 -1
  487. package/dist/maintenance/metadata/useEntityMetadata.mjs +1 -1
  488. package/dist/maintenance/record/ChildTab.mjs +1 -1
  489. package/dist/maintenance/record/DeleteRecordDialog.mjs +1 -1
  490. package/dist/maintenance/record/LinkRecordsSheet.mjs +1 -1
  491. package/dist/maintenance/record/RecordFacts.mjs +1 -1
  492. package/dist/maintenance/record/RecordSheet.mjs +2 -2
  493. package/dist/maintenance/record/displayValue.mjs +1 -1
  494. package/dist/maintenance/record/stampDisplayText.mjs +1 -1
  495. package/dist/maintenance/settings/useEntityCatalog.mjs +1 -1
  496. package/dist/maintenanceEngine/tableBrowser/TableColumnDefs.d.ts +4 -5
  497. package/dist/maintenanceEngine/tableBrowser/TableColumnDefs.d.ts.map +1 -1
  498. package/dist/stores/inquiryStore.d.ts +2 -1
  499. package/dist/stores/inquiryStore.d.ts.map +1 -1
  500. package/dist/stores/inquiryStore.js +4 -3
  501. package/dist/stores/inquiryStore.js.map +1 -1
  502. package/dist/stores/inquiryStore.mjs +18 -11
  503. package/dist/stores/inquiryStore.mjs.map +1 -1
  504. package/dist/udp/pages/UdpMaintenanceEnginePage/UdpMaintenanceEnginePage.d.ts.map +1 -1
  505. package/dist/udp/pages/UdpMaintenanceEnginePage/UdpMaintenanceEnginePage.js +1 -1
  506. package/dist/udp/pages/UdpMaintenanceEnginePage/UdpMaintenanceEnginePage.js.map +1 -1
  507. package/dist/udp/pages/UdpMaintenanceEnginePage/UdpMaintenanceEnginePage.mjs +2 -1
  508. package/dist/udp/pages/UdpMaintenanceEnginePage/UdpMaintenanceEnginePage.mjs.map +1 -1
  509. package/dist/udp/pages/UdpMaintenanceEnginePage/components/EntitiyTimeLine.mjs +1 -1
  510. package/dist/udp/utilities/useDateStringColumnDef.d.ts +1 -1
  511. package/dist/utilities/i18n/locales/es-US.json +23 -5
  512. package/dist/utilities/i18n/locales/es-US.mjs +24 -4
  513. package/dist/utilities/i18n/locales/fr-CA.json +23 -5
  514. package/dist/utilities/i18n/locales/fr-CA.mjs +24 -4
  515. package/package.json +30 -18
  516. package/dist/actionPanels/PanelActionForm.d.ts +0 -56
  517. package/dist/actionPanels/PanelActionForm.d.ts.map +0 -1
  518. package/dist/actionPanels/PanelActionForm.js +0 -30
  519. package/dist/actionPanels/PanelActionForm.js.map +0 -1
  520. package/dist/actionPanels/PanelActionForm.mjs +0 -168
  521. package/dist/actionPanels/PanelActionForm.mjs.map +0 -1
  522. package/dist/actionPanels/PanelEditor.d.ts +0 -44
  523. package/dist/actionPanels/PanelEditor.d.ts.map +0 -1
  524. package/dist/actionPanels/PanelEditor.js +0 -78
  525. package/dist/actionPanels/PanelEditor.js.map +0 -1
  526. package/dist/actionPanels/PanelEditor.mjs +0 -345
  527. package/dist/actionPanels/PanelEditor.mjs.map +0 -1
  528. package/dist/actionPanels/panelActionFields.module.css +0 -18
  529. package/dist/domain/inquiryTree/ruleBindings.d.ts +0 -10
  530. package/dist/domain/inquiryTree/ruleBindings.d.ts.map +0 -1
  531. package/dist/domain/inquiryTree/ruleBindings.js +0 -20
  532. package/dist/domain/inquiryTree/ruleBindings.js.map +0 -1
  533. package/dist/domain/inquiryTree/ruleBindings.mjs +0 -21
  534. package/dist/domain/inquiryTree/ruleBindings.mjs.map +0 -1
  535. package/dist/inquiry/v2/kernel/readOnlyModel.d.ts +0 -17
  536. package/dist/inquiry/v2/kernel/readOnlyModel.d.ts.map +0 -1
  537. package/dist/inquiry/v2/kernel/readOnlyModel.js +0 -19
  538. package/dist/inquiry/v2/kernel/readOnlyModel.js.map +0 -1
  539. package/dist/inquiry/v2/kernel/readOnlyModel.mjs +0 -21
  540. package/dist/inquiry/v2/kernel/readOnlyModel.mjs.map +0 -1
@@ -7,38 +7,42 @@ import { UdpSkeletonLoading } from "../../UI/fluent-web-components/UdpSkeletonLo
7
7
  import { UdpSpinner } from "../../UI/fluent-web-components/UdpSpinner.mjs";
8
8
  import { UdpText } from "../../UI/fluent-web-components/UdpText.mjs";
9
9
  import { UdpTooltip } from "../../UI/fluent-web-components/UdpTooltip.mjs";
10
+ import { useTenant } from "../../utilities/tenant/useTenant.mjs";
10
11
  import { useAuthedUser } from "../../utilities/auth/useAuthedUser.mjs";
11
- import { getSearchIdentifiers } from "../../domain/inquiryTree/runtime.mjs";
12
- import { buildRecordEntryFilterElements, parseInitialRecordCount } from "../../domain/inquiryTree/waveLoad.mjs";
13
- import { makeDisplayTreeStructure } from "../../domain/inquiryTree/displayTree.mjs";
14
- import { executeApiMethodWithParameters, fetchApiMethodsByIds, fetchChildRows, fetchEntityMeta, fetchInquiryTree, fetchRecordByIdentifiers, fetchRecordsByIdentifierSets, invalidateInquiryRowData, recordRecentlyLoadedNodes, stampRecordRows, useApiCatalogBinding, usePrefetchLookupMethod, usePromotedMethodEntities, useRootRecords, useTreeCatalogObjects } from "./api/queries.mjs";
15
- import { capabilityKeys } from "./kernel/capabilities.mjs";
16
- import { decideSearchValueOutcome, deriveSearchableEntities, searchHashFor, simpleEntityName } from "./search/searchModel.mjs";
12
+ import { sameEntityName } from "../../domain/inquiryTree/legalChildren.mjs";
13
+ import { isDragEntity, nodeEntityName } from "../../domain/inquiryTree/displayTree.mjs";
14
+ import { parseInitialRecordCount } from "../../domain/inquiryTree/waveLoad.mjs";
15
+ import { decideSearchValueOutcome, deriveSearchableEntities, hasIdentifierValue, levelForBusinessObjectKey, nestedRootOf, refreshedRow, resolveDeepLink, searchHashFor, treeTitleOf } from "./search/searchModel.mjs";
16
+ import { executeApiMethodWithParameters, fetchApiMethodsByIds, fetchChildRows, fetchEntityMeta, fetchInquiryTree, fetchRecordsByIdentifierSets, fetchRowsForIdentifierSets, invalidateInquiryRowData, recordRecentlyLoadedNodes, stampRecordRows, useApiCatalogBinding, useLinkedTrees, usePrefetchLookupMethod, usePromotedMethodEntities, useRootRecords, useTreeCatalogObjects } from "./api/queries.mjs";
17
17
  import { UdpNodeView } from "./kernel/UdpNodeView.mjs";
18
18
  import { SNACKBAR_TOP_CENTER } from "./ui/snackbar.mjs";
19
+ import { findRecordRoot, locateNodeById } from "./tree/lineageModel.mjs";
19
20
  import { NodeList } from "./tree/NodeList.mjs";
20
- import { findSeedLevel, hydrateRowsWithWaves, loadLazyChildren } from "./tree/waveLoader.mjs";
21
+ import { hydrateRowsWithWaves, loadLazyChildren } from "./tree/waveLoader.mjs";
22
+ import { rootRecordsOf } from "./tree/rootRemovalModel.mjs";
21
23
  import { useHydratedRootRows } from "./tree/useHydratedRootRows.mjs";
22
24
  import { useInstanceParamValues } from "./api/useInstanceParamValues.mjs";
23
25
  import { SEARCH_TIMEOUT_MS, useInquirySearch } from "./search/useInquirySearch.mjs";
24
26
  import { InquirySearchPanel } from "./search/InquirySearchPanel.mjs";
25
27
  import { computeTreeFilter, flattenFilterRows } from "./tree/treeFilterModel.mjs";
26
- import { dropPageNode } from "./tree/droppedPageModel.mjs";
27
28
  import { buildIdentifierFilterElements, useInquiryMenu } from "./tree/useInquiryMenu.mjs";
28
- import { isReadOnlyView, viewCapabilities } from "./kernel/readOnlyModel.mjs";
29
+ import { ReadOnlyContext } from "./kernel/ReadOnlyContext.mjs";
29
30
  import { InquiryMenuToolbar } from "./tree/InquiryMenuToolbar.mjs";
30
31
  import { LoadRecordDialog } from "./tree/LoadRecordDialog.mjs";
31
32
  import { computeRootPaging, nextRootPages, rootRequestSize } from "./tree/rootPagingModel.mjs";
32
- import { deriveArrival } from "./tree/arrivalModel.mjs";
33
+ import { deriveArrival, idleRecordPane } from "./tree/arrivalModel.mjs";
33
34
  import { ExecuteApiDropDialog } from "./tree/ExecuteApiDropDialog.mjs";
34
35
  import { InquiryLanding } from "./landing/InquiryLanding.mjs";
35
36
  import { useIsTruncated } from "./ui/useIsTruncated.mjs";
36
37
  import { InquiryCopilotDock, useCopilotDockSplit } from "./ai/InquiryCopilotDock.mjs";
37
38
  import { useInquiryCopilot } from "./ai/InquiryV2Copilot.mjs";
39
+ import { promotedSourceFrom } from "../../maintenance/api/promoted.mjs";
40
+ import { stampDisplayText } from "../../maintenance/record/stampDisplayText.mjs";
38
41
  import React, { useCallback, useEffect, useMemo, useRef, useState } from "react";
39
42
  import { useSnackbar } from "notistack";
40
43
  import { useTranslation } from "react-i18next";
41
44
  import { useQueryClient } from "@tanstack/react-query";
45
+ import { flushSync } from "react-dom";
42
46
  import styles from "./InquiryV2.module.css";
43
47
  //#region src/inquiry/v2/InquiryWorkspace.tsx
44
48
  /**
@@ -49,7 +53,7 @@ import styles from "./InquiryV2.module.css";
49
53
  * in over the network through the wave loader. Tree and search stay KERNEL
50
54
  * CONSUMERS — the kernel just renders whichever display node is selected.
51
55
  *
52
- * It is a PURE component over data and callbacks: it is handed the detailed
56
+ * It is a PURE component over data and callbacks: it is handed the
53
57
  * tree and knows nothing about where it came from, the URL, or the app's
54
58
  * stores. InquiryV2 is the route shell that fetches by id and mirrors the
55
59
  * selection into the address bar; the Tree Builder's Preview hands it the
@@ -63,49 +67,125 @@ import styles from "./InquiryV2.module.css";
63
67
  * touches the record pane; only activation changes the selection. Advanced
64
68
  * search keeps its own entry in the ⋯ overflow.
65
69
  */
70
+ /** Label widths for a record's placeholder child rows — varied, like names. */
71
+ const SKELETON_CHILD_WIDTHS = [
72
+ "55%",
73
+ "40%",
74
+ "50%"
75
+ ];
66
76
  /**
67
- * Rows still on their way, drawn on the tree row's own geometry (chevron box,
68
- * icon chip, label) so the pane never goes blank between asking for a record
69
- * and seeing it — and the rows that land replace the placeholders in place.
77
+ * How many child rows a loading record's placeholder shows. None when records
78
+ * land closed (the root level's own `isExpanded`). Otherwise the levels under
79
+ * the root that always render, since a level that hides when empty may not be
80
+ * there at all — and one row when every level is like that, so the placeholder
81
+ * still reads as a record with something under it.
70
82
  */
71
- const TreeSkeletonRows = (t0) => {
72
- const $ = c(2);
73
- const { count } = t0;
74
- let t1;
75
- if ($[0] !== count) {
76
- t1 = /* @__PURE__ */ React.createElement("div", null, Array.from({ length: count }, _temp));
77
- $[0] = count;
78
- $[1] = t1;
79
- } else t1 = $[1];
80
- return t1;
83
+ const skeletonChildCount = (rootNode) => {
84
+ if (!rootNode?.isExpanded) return 0;
85
+ const levels = rootNode.children ?? [];
86
+ const certain = levels.filter((level) => !level.hideEmptyGroups).length;
87
+ return Math.min(SKELETON_CHILD_WIDTHS.length, certain || Math.min(1, levels.length));
81
88
  };
82
- /** v1's entity-name rule: the fully qualified name, or the same simple name. */
83
- const sameEntityName = (a, b) => a === b || simpleEntityName(a) === simpleEntityName(b);
84
- /**
85
- * Which searchable level a `businessObjectKey` — or a bare entity name — belongs
86
- * to. The key's prefix is the record's fully qualified class name; an exact
87
- * match wins over a simple-name one (v1's lookup rule). One reader for every
88
- * door that arrives with a key or name: the `?node` deep link, a widget's
89
- * loadInquiryNode and the recently-loaded history.
90
- */
91
- const entityForBusinessObjectKey = (entities, businessObjectKey) => {
92
- const fullyQualifiedName = businessObjectKey.split("|")[0];
93
- return entities.find((entity) => entity.entityName === fullyQualifiedName) ?? entities.find((entity) => sameEntityName(entity.entityName, fullyQualifiedName)) ?? null;
89
+ /** One placeholder row: the tree row's chevron box, icon and label. */
90
+ const TreeSkeletonRow = (t0) => {
91
+ const $ = c(12);
92
+ const { child, compact, width } = t0;
93
+ const icon = compact ? "16px" : "20px";
94
+ const t1 = child && styles.skeletonChild;
95
+ const t2 = compact && styles.skeletonCompact;
96
+ let t3;
97
+ if ($[0] !== t1 || $[1] !== t2) {
98
+ t3 = [
99
+ styles.skeletonRow,
100
+ t1,
101
+ t2
102
+ ].filter(Boolean);
103
+ $[0] = t1;
104
+ $[1] = t2;
105
+ $[2] = t3;
106
+ } else t3 = $[2];
107
+ const t4 = t3.join(" ");
108
+ let t5;
109
+ if ($[3] === Symbol.for("react.memo_cache_sentinel")) {
110
+ t5 = /* @__PURE__ */ React.createElement("span", { className: styles.skeletonChevron }, /* @__PURE__ */ React.createElement(UdpSkeletonLoading, {
111
+ width: "12px",
112
+ height: "12px",
113
+ borderRadius: "3px"
114
+ }));
115
+ $[3] = t5;
116
+ } else t5 = $[3];
117
+ let t6;
118
+ if ($[4] !== icon) {
119
+ t6 = /* @__PURE__ */ React.createElement(UdpSkeletonLoading, {
120
+ width: icon,
121
+ height: icon,
122
+ borderRadius: "4px"
123
+ });
124
+ $[4] = icon;
125
+ $[5] = t6;
126
+ } else t6 = $[5];
127
+ let t7;
128
+ if ($[6] !== width) {
129
+ t7 = /* @__PURE__ */ React.createElement(UdpSkeletonLoading, {
130
+ className: styles.skeletonLabel,
131
+ width,
132
+ height: "16px"
133
+ });
134
+ $[6] = width;
135
+ $[7] = t7;
136
+ } else t7 = $[7];
137
+ let t8;
138
+ if ($[8] !== t4 || $[9] !== t6 || $[10] !== t7) {
139
+ t8 = /* @__PURE__ */ React.createElement("div", { className: t4 }, t5, t6, t7);
140
+ $[8] = t4;
141
+ $[9] = t6;
142
+ $[10] = t7;
143
+ $[11] = t8;
144
+ } else t8 = $[11];
145
+ return t8;
94
146
  };
95
147
  /**
96
- * A tree's nested root — the flat wire structure composed into the display
97
- * tree. v2's rule: a level opens because an EAGER level renders under it.
148
+ * Records still on their way, drawn on the tree row's exact geometry — each an
149
+ * open root with its child rows beneath it, as it will land — so the pane never
150
+ * goes blank between asking for a record and seeing it, and the rows that
151
+ * arrive take the placeholders' places.
98
152
  */
99
- const nestedRootOf = (tree) => {
100
- if (!tree?.treeStructure?.length) return null;
101
- const structure = makeDisplayTreeStructure(tree.treeStructure, "id", "parentId", "parentGroupId", "config");
102
- return (Array.isArray(structure) ? structure[0] : structure) ?? null;
153
+ const TreeSkeletonRows = (t0) => {
154
+ const $ = c(10);
155
+ const { count, childCount, compact, afterRows } = t0;
156
+ const t1 = afterRows ? styles.skeletonAfterRows : void 0;
157
+ let t2;
158
+ if ($[0] !== childCount || $[1] !== compact || $[2] !== count) {
159
+ let t3;
160
+ if ($[4] !== childCount || $[5] !== compact) {
161
+ t3 = (_, index) => /* @__PURE__ */ React.createElement(React.Fragment, { key: index }, /* @__PURE__ */ React.createElement(TreeSkeletonRow, {
162
+ compact,
163
+ width: "45%"
164
+ }), SKELETON_CHILD_WIDTHS.slice(0, childCount).map((width) => /* @__PURE__ */ React.createElement(TreeSkeletonRow, {
165
+ key: width,
166
+ child: true,
167
+ compact,
168
+ width
169
+ })));
170
+ $[4] = childCount;
171
+ $[5] = compact;
172
+ $[6] = t3;
173
+ } else t3 = $[6];
174
+ t2 = Array.from({ length: count }, t3);
175
+ $[0] = childCount;
176
+ $[1] = compact;
177
+ $[2] = count;
178
+ $[3] = t2;
179
+ } else t2 = $[3];
180
+ let t3;
181
+ if ($[7] !== t1 || $[8] !== t2) {
182
+ t3 = /* @__PURE__ */ React.createElement("div", { className: t1 }, t2);
183
+ $[7] = t1;
184
+ $[8] = t2;
185
+ $[9] = t3;
186
+ } else t3 = $[9];
187
+ return t3;
103
188
  };
104
- /**
105
- * The entity's config level. Its config comes off the FLAT wire node; its
106
- * levels only hang off the nested seed, which is what the wave planner walks.
107
- */
108
- const seedLevelFor = (rootNode, entity) => findSeedLevel(rootNode, entity.rootNode.id) ?? entity.rootNode;
109
189
  /** One recently-loaded history entry for a record loaded at `entity`'s level. */
110
190
  const historyEntryFor = (entity, label, filterElements) => ({
111
191
  apiMethodId: entity.apiMethodId,
@@ -114,34 +194,57 @@ const historyEntryFor = (entity, label, filterElements) => ({
114
194
  label,
115
195
  filterElements
116
196
  });
117
- /** An identifier value as comparable text; anything non-scalar is blank. */
118
- const asText = (value) => typeof value === "string" || typeof value === "number" || typeof value === "boolean" ? String(value) : "";
119
- const InquiryWorkspace = ({ treeId, tree, capabilities, readOnly: readOnlyProp, searchValue, deepLink = null, treeHidden = false, assistant = true, containerId = "", onSelectionChange }) => {
197
+ const InquiryWorkspace = ({ treeId, tree, capabilities, readOnly = false, searchValue, deepLink = null, treeHidden = false, assistant = true, containerId = "", onSelectionChange }) => {
120
198
  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]);
199
+ const rootNode = useMemo(() => nestedRootOf(tree.nodes), [tree]);
124
200
  const entityName = typeof rootNode?.properties?.catalogReturnObject === "string" ? rootNode.properties.catalogReturnObject : "";
125
201
  const user = useAuthedUser();
126
202
  const { data: catalogBinding } = useApiCatalogBinding(user?.currentTenantId);
127
- const catalogId = tree.apiMethodInstance?.apiCatalogId ?? catalogBinding?.apiCatalogId;
203
+ const catalogId = tree.wrapper.apiMethodInstance?.apiCatalogId ?? catalogBinding?.apiCatalogId;
128
204
  const { data: catalogObjects, isError: catalogError, isSuccess: catalogLoaded } = useTreeCatalogObjects(catalogId, treeId);
129
205
  const catalogMissing = catalogLoaded && !catalogObjects?.length;
130
- const catalogUnavailable = catalogError || catalogMissing;
131
- const { data: promotedEntities, isError: promotedError } = usePromotedMethodEntities(catalogId, tree.product?.productId);
206
+ const { data: promotedEntities, isError: promotedError } = usePromotedMethodEntities(catalogId, tree.wrapper.product?.productId);
207
+ /**
208
+ * The catalog and the promotions have both answered (or failed). Everything
209
+ * that composes or loads records waits on this — the root page's hydration,
210
+ * a deep link, a `?searchValue` arrival: a load run before the promotions
211
+ * land plans no child level ("Promote … child entity") and keeps that empty
212
+ * branch.
213
+ */
214
+ const metadataSettled = (catalogObjects !== void 0 || catalogError) && (promotedEntities !== void 0 || promotedError);
215
+ const queryClient = useQueryClient();
216
+ const tenantId = useTenant()?.activeTenant?.tenantId ?? null;
217
+ const lookupContext = useMemo(() => ({
218
+ queryClient,
219
+ catalogId,
220
+ catalogObjects,
221
+ stampDisplayText: (entityName, rows) => stampDisplayText(entityName, rows, promotedSourceFrom(promotedEntities, `${catalogId}|${tree.wrapper.product?.productId}`), tenantId)
222
+ }), [
223
+ queryClient,
224
+ catalogId,
225
+ catalogObjects,
226
+ promotedEntities,
227
+ tree.wrapper.product?.productId,
228
+ tenantId
229
+ ]);
230
+ const stampRows = useCallback((levelEntityName, rows, lookupsMap) => stampRecordRows(lookupContext, levelEntityName, rows, lookupsMap), [lookupContext]);
132
231
  usePrefetchLookupMethod(catalogId);
133
- const nestedEntities = useMemo(() => {
134
- const map = {};
135
- for (const node of tree?.treeStructure ?? []) {
136
- const properties = node.properties ?? {};
137
- const key = properties["catalogObjectKey"];
138
- const nodeEntity = properties["catalogReturnObject"];
139
- if (typeof key === "string" && typeof nodeEntity === "string") map[key] = nodeEntity;
140
- }
141
- return map;
142
- }, [tree]);
143
232
  const paramValues = useInstanceParamValues();
144
- const searchableEntities = useMemo(() => tree ? deriveSearchableEntities(tree, paramValues) : [], [tree, paramValues]);
233
+ const { trees: linkedTrees, settled: linkedTreesSettled } = useLinkedTrees(tree);
234
+ const searchableEntities = useMemo(() => deriveSearchableEntities(tree, linkedTrees, paramValues).map((entity) => ({
235
+ ...entity,
236
+ stampRows: (rows, lookupsMap) => stampRows(entity.entityName, rows, lookupsMap)
237
+ })), [
238
+ tree,
239
+ linkedTrees,
240
+ paramValues,
241
+ stampRows
242
+ ]);
243
+ /**
244
+ * A deep link or arrival term resolved before the linked trees land would
245
+ * miss their levels, so both wait for them as well as for the metadata.
246
+ */
247
+ const searchSettled = metadataSettled && linkedTreesSettled;
145
248
  /** The tree's own root entity — what the Load dialog lists by default. */
146
249
  const rootSearchEntity = useMemo(() => searchableEntities.find((entity) => entity.isRoot) ?? null, [searchableEntities]);
147
250
  /**
@@ -150,23 +253,22 @@ const InquiryWorkspace = ({ treeId, tree, capabilities, readOnly: readOnlyProp,
150
253
  * is nothing left to search for.
151
254
  */
152
255
  const arrivalTerm = deepLink ? "" : searchValue?.trim() ?? "";
153
- /** The searchable level the deep-linked key belongs to (v1's lookup rule). */
154
- const deepLinkEntity = useMemo(() => deepLink ? entityForBusinessObjectKey(searchableEntities, deepLink.businessObjectKey) : null, [deepLink, searchableEntities]);
155
- const deepLinkFilters = useMemo(() => {
156
- if (!deepLink || !deepLinkEntity || !catalogObjects?.length) return null;
157
- const filters = buildRecordEntryFilterElements(getSearchIdentifiers(catalogObjects, deepLinkEntity.entityName), deepLink.nodeSearch);
158
- return filters.length ? filters : null;
159
- }, [
256
+ /** The level and identifier filters the deep link names (resolveDeepLink). */
257
+ const deepLinkTarget = useMemo(() => deepLink ? resolveDeepLink(searchableEntities, catalogObjects, deepLink) : null, [
160
258
  deepLink,
161
- deepLinkEntity,
259
+ searchableEntities,
162
260
  catalogObjects
163
261
  ]);
262
+ const deepLinkEntity = deepLinkTarget?.entity ?? null;
263
+ const deepLinkFilters = deepLinkTarget?.filterElements.length ? deepLinkTarget.filterElements : null;
264
+ /** True once the link has been honored — or reported as unusable. */
265
+ const [deepLinkSettled, setDeepLinkSettled] = useState(!deepLink);
266
+ /** A link that could not be honored: a root link stops replacing the root page. */
267
+ const [rootLinkDropped, setRootLinkDropped] = useState(false);
164
268
  /** A deep link to the ROOT level replaces the root page with that record. */
165
- const deepLinkIsRoot = !!deepLinkEntity?.isRoot;
269
+ const deepLinkIsRoot = !!deepLinkEntity?.isRoot && !rootLinkDropped;
166
270
  /** A resolvable deep link holds the first fetch until its filters are ready. */
167
271
  const deepLinkPending = !!deepLink && !!deepLinkEntity && !deepLinkFilters;
168
- /** True once the link has been honored — or reported as unusable. */
169
- const [deepLinkSettled, setDeepLinkSettled] = useState(!deepLink);
170
272
  /**
171
273
  * How many pages of root records the user has asked for. One request, one
172
274
  * window: growing this re-requests the root query at N× the configured page
@@ -184,7 +286,7 @@ const InquiryWorkspace = ({ treeId, tree, capabilities, readOnly: readOnlyProp,
184
286
  * matrix, including the root level's `loadRecordsOnOpen` override and the one
185
287
  * URL that still fetches on arrival.
186
288
  */
187
- const explorePageId = typeof tree?.explorePageId === "string" ? tree.explorePageId : "";
289
+ const explorePageId = tree.wrapper.explorePageId ?? "";
188
290
  const { seedRootRecords, autoSelectFirst } = deriveArrival({
189
291
  explorePageId,
190
292
  loadRecordsOnOpen: rootNode?.properties?.loadRecordsOnOpen,
@@ -192,7 +294,7 @@ const InquiryWorkspace = ({ treeId, tree, capabilities, readOnly: readOnlyProp,
192
294
  });
193
295
  const { data: records, isPending: recordsPending, isFetching: recordsFetching, isError: recordsError } = useRootRecords({
194
296
  treeId,
195
- apiMethodId: tree?.apiMethodInstance?.apiMethodId,
297
+ apiMethodId: tree.wrapper.apiMethodInstance?.apiMethodId,
196
298
  entityName,
197
299
  instanceFilters: rootSearchEntity?.instanceFilters,
198
300
  identifierFilters: deepLinkIsRoot ? deepLinkFilters : null,
@@ -205,18 +307,7 @@ const InquiryWorkspace = ({ treeId, tree, capabilities, readOnly: readOnlyProp,
205
307
  * show a spinner nothing will ever end.
206
308
  */
207
309
  const recordsLoading = seedRootRecords && recordsPending;
208
- const queryClient = useQueryClient();
209
- const stampRows = useCallback((levelEntityName, rows, lookupsMap) => stampRecordRows({
210
- queryClient,
211
- catalogId,
212
- catalogObjects,
213
- nestedEntities
214
- }, levelEntityName, rows, lookupsMap), [
215
- queryClient,
216
- catalogId,
217
- catalogObjects,
218
- nestedEntities
219
- ]);
310
+ /** What every lookup-stamping pass carries (stampRecordRows). */
220
311
  const waveContext = useMemo(() => ({
221
312
  fetchRows: (apiMethodId, data) => fetchChildRows(queryClient, apiMethodId, data),
222
313
  catalogObjects,
@@ -235,7 +326,7 @@ const InquiryWorkspace = ({ treeId, tree, capabilities, readOnly: readOnlyProp,
235
326
  records,
236
327
  entityName,
237
328
  waveContext,
238
- ready: (catalogObjects !== void 0 || catalogError) && (promotedEntities !== void 0 || promotedError)
329
+ ready: metadataSettled
239
330
  });
240
331
  /** How much of the root record set is on screen, and what is left. */
241
332
  const rootPaging = computeRootPaging({
@@ -252,52 +343,138 @@ const InquiryWorkspace = ({ treeId, tree, capabilities, readOnly: readOnlyProp,
252
343
  promotedEntities,
253
344
  autoSelectFirst
254
345
  });
346
+ const loadRecord = menu.loadRecord;
347
+ const findConfigLevel = menu.findConfigLevel;
255
348
  /**
256
- * The tree pane holds nothing and has nothing coming. Rows-in-hand counts as
257
- * "coming": the menu is composed in an effect, one render after the page
258
- * lands, and the empty state must not flash over a tree that is about to fill.
349
+ * The root page is in hand and the menu has not been built from it yet — it
350
+ * is hydrated first, then composed in an effect — so the rows are COMING and
351
+ * the pane shows their placeholders, never the empty state. A menu that was
352
+ * built from this page and holds nothing is different: the user removed its
353
+ * rows, and the pane is simply empty.
259
354
  */
260
355
  /** Records asked for by hand (Load, finder, history, deep link) not yet in the menu. */
261
356
  const [loadsInFlight, setLoadsInFlight] = useState(0);
262
- const treeHasRows = menu.menuList.length > 0 || !!rootRows?.length;
263
- const treeLoading = recordsLoading || loadsInFlight > 0;
357
+ /**
358
+ * Records grafted into the menu that the tree has not DRAWN yet. The tree is
359
+ * a web component: it renders a frame or more after React commits, so
360
+ * dropping a record's placeholder in the commit that grafts it left the pane
361
+ * blank until the row painted. The placeholder is dropped instead when the
362
+ * tree's box grows — a ResizeObserver runs after layout and before paint, so
363
+ * the row arrives and its placeholder leaves in the same frame.
364
+ */
365
+ const undrawnLoads = useRef(0);
366
+ const [treeBox, setTreeBox] = useState(null);
367
+ useEffect(() => {
368
+ if (!treeBox) return void 0;
369
+ const observer = new ResizeObserver(() => {
370
+ const drawn = undrawnLoads.current;
371
+ if (!drawn) return;
372
+ undrawnLoads.current = 0;
373
+ flushSync(() => setLoadsInFlight((count) => count - drawn));
374
+ });
375
+ observer.observe(treeBox);
376
+ return () => observer.disconnect();
377
+ }, [treeBox]);
378
+ const treeHasRows = menu.menuList.length > 0;
379
+ const rowsComposing = !treeHasRows && !!rootRows?.length && (!menuRows || menu.seededRows !== menuRows);
380
+ const treeLoading = recordsLoading || rowsComposing || loadsInFlight > 0;
381
+ /**
382
+ * ARRIVAL FOCUS. The tree is where work in the viewer starts, so once its
383
+ * first rows are drawn the keyboard is already in it (on the selected row):
384
+ * the arrow keys answer without a click first. Once per visit. It takes focus
385
+ * from the page or from the app chrome that brought the user here (the menu
386
+ * link they clicked) — never from something they have already focused inside
387
+ * the viewer, and never in a read-only preview, whose host keeps the focus.
388
+ */
389
+ const arrivalFocused = useRef(false);
390
+ useEffect(() => {
391
+ if (arrivalFocused.current || !treeBox || !treeHasRows) return;
392
+ arrivalFocused.current = true;
393
+ if (readOnly) return;
394
+ if (treeBox.closest(`.${styles.workspace}`)?.contains(document.activeElement)) return;
395
+ treeBox.querySelector("udp-tree")?.setFocus();
396
+ }, [
397
+ treeBox,
398
+ treeHasRows,
399
+ readOnly
400
+ ]);
401
+ /**
402
+ * F6 — the desktop convention for hopping between panes, with or without
403
+ * Shift (there are two): from the tree, or anywhere else in the viewer, to
404
+ * the record; from the record back to the tree's selected row. Left to the
405
+ * browser when there is no tree to hop to.
406
+ */
407
+ const recordPaneRef = useRef(null);
408
+ const handlePaneKey = (event) => {
409
+ if (event.key !== "F6" || event.altKey || event.ctrlKey || event.metaKey) return;
410
+ const record = recordPaneRef.current;
411
+ const treeEl = treeBox?.querySelector("udp-tree");
412
+ if (!record || !treeEl) return;
413
+ event.preventDefault();
414
+ if (record.contains(document.activeElement)) treeEl.setFocus();
415
+ else record.focus();
416
+ };
417
+ /**
418
+ * MORE ROOT RECORDS — the tree's own last row, so it is reached and run with
419
+ * the keys that work every other row. Stood down while a hand-loaded record
420
+ * is on its way: that record lands in this row's place, and its placeholder
421
+ * holds the spot until it does.
422
+ */
423
+ const rootMore = useMemo(() => rootPaging.showLoadMore && loadsInFlight === 0 ? {
424
+ label: t("inquiry.tree.showMoreRecords", {
425
+ defaultValue: "Show {{amount}} more",
426
+ amount: rootPaging.nextCount
427
+ }),
428
+ loading: rootPaging.isLoadingMore,
429
+ onShowMore: () => setRootPages(nextRootPages)
430
+ } : void 0, [
431
+ rootPaging.showLoadMore,
432
+ rootPaging.nextCount,
433
+ rootPaging.isLoadingMore,
434
+ loadsInFlight,
435
+ t
436
+ ]);
437
+ /** The tree pane holds nothing and has nothing coming. */
264
438
  const treeIsEmpty = !treeHasRows && !treeLoading;
439
+ /**
440
+ * One placeholder per record on its way, whichever way it is coming. A root
441
+ * deep link's page is the one record the URL names, not a page of them.
442
+ */
443
+ const pendingRowCount = recordsLoading ? deepLinkIsRoot ? 1 : initialRecordCount : (rowsComposing ? rootRows?.length ?? 0 : 0) + loadsInFlight;
265
444
  /** The menu's lazy-expand loader: one level, one batched request, cached. */
266
445
  const loadChildren = useCallback(({ node, pageNumber }) => loadLazyChildren({
267
446
  node,
268
- seed: rootNode,
447
+ findLevel: findConfigLevel,
269
448
  pageNumber,
270
449
  context: waveContext,
271
450
  makeId: () => crypto.randomUUID()
272
- }), [rootNode, waveContext]);
451
+ }), [findConfigLevel, waveContext]);
273
452
  const [sidebarOpen, setSidebarOpen] = useState(true);
274
453
  const copilotSplit = useCopilotDockSplit();
275
454
  const [treeViewMode, setTreeViewMode] = useState(TreeViewModeEnums.Classic);
276
455
  const [dropExecute, setDropExecute] = useState(null);
277
456
  const [dropExecuting, setDropExecuting] = useState(false);
278
457
  const { enqueueSnackbar } = useSnackbar();
458
+ /** Every toast this workspace raises: top-center, one variant. */
459
+ const notify = useCallback((message, variant) => enqueueSnackbar(message, {
460
+ variant,
461
+ anchorOrigin: SNACKBAR_TOP_CENTER
462
+ }), [enqueueSnackbar]);
279
463
  const handleDropNode = (source, target) => {
280
- const sourceEntity = source?.properties?.catalogReturnObject;
281
- const dropActions = (target?.properties?.nodeActions ?? []).filter((nodeAction) => nodeAction?.triggerType === NodeActionTriggerEnums.On_Node_Drop && nodeAction?.dragEntityName === sourceEntity);
282
- const pageNode = dropPageNode(target, source, () => crypto.randomUUID());
283
- if (pageNode) menu.showDroppedPage(pageNode);
464
+ const sourceEntity = nodeEntityName(source);
465
+ const dropActions = (target?.properties?.nodeActions ?? []).filter((nodeAction) => nodeAction?.triggerType === NodeActionTriggerEnums.On_Node_Drop && isDragEntity(nodeAction?.dragEntityName, sourceEntity));
466
+ const pageNode = menu.dropOnto(target, source);
284
467
  const methodIds = dropActions.filter((nodeAction) => nodeAction.actionTypeId === NodeActionEnums.Execute_Api).map((nodeAction) => String(nodeAction.actionValue ?? "")).filter(Boolean);
285
468
  if (pageNode && !methodIds.length) return;
286
469
  if (!methodIds.length) {
287
- if (dropActions.length) enqueueSnackbar(t("inquiry.drop.unsupportedAction", { defaultValue: "That drop action is not supported by this viewer yet." }), {
288
- variant: "warning",
289
- anchorOrigin: SNACKBAR_TOP_CENTER
290
- });
470
+ if (dropActions.length) notify(t("inquiry.drop.unsupportedAction", { defaultValue: "That drop action is not supported by this viewer yet." }), "warning");
291
471
  return;
292
472
  }
293
473
  fetchApiMethodsByIds(catalogId ?? "", methodIds).then((methods) => setDropExecute({
294
474
  source,
295
475
  target,
296
476
  methods
297
- })).catch(() => enqueueSnackbar("Unable to load the API methods for this drop action.", {
298
- variant: "error",
299
- anchorOrigin: SNACKBAR_TOP_CENTER
300
- }));
477
+ })).catch(() => notify(t("inquiry.drop.methodsUnavailable", { defaultValue: "Unable to load the API methods for this drop action." }), "error"));
301
478
  };
302
479
  const onDropNode = readOnly ? void 0 : handleDropNode;
303
480
  const executeDrop = async (method) => {
@@ -310,16 +487,16 @@ const InquiryWorkspace = ({ treeId, tree, capabilities, readOnly: readOnlyProp,
310
487
  sourceNodeType: dropExecute.source.properties?.catalogReturnObject,
311
488
  targetNodeType: dropExecute.target.properties?.catalogReturnObject
312
489
  } });
313
- enqueueSnackbar(`${method.name ?? "API"} executed successfully.`, {
314
- variant: "success",
315
- anchorOrigin: SNACKBAR_TOP_CENTER
316
- });
490
+ notify(t("inquiry.drop.executed", {
491
+ defaultValue: "{{name}} executed successfully.",
492
+ name: method.name ?? "API"
493
+ }), "success");
317
494
  refreshTree();
318
495
  } catch {
319
- enqueueSnackbar(`Unable to execute ${method.name ?? "the API"}.`, {
320
- variant: "error",
321
- anchorOrigin: SNACKBAR_TOP_CENTER
322
- });
496
+ notify(t("inquiry.drop.executeFailed", {
497
+ defaultValue: "Unable to execute {{name}}.",
498
+ name: method.name ?? "the API"
499
+ }), "error");
323
500
  } finally {
324
501
  setDropExecuting(false);
325
502
  setDropExecute(null);
@@ -327,8 +504,8 @@ const InquiryWorkspace = ({ treeId, tree, capabilities, readOnly: readOnlyProp,
327
504
  };
328
505
  /**
329
506
  * A saved query filter whose `params.*` placeholder could not be resolved is
330
- * dropped rather than sent literally — which silently WIDENS the tree. Say so
331
- * once per tree, beside everything else the pane reports.
507
+ * dropped rather than sent literally — which WIDENS the tree. Legacy dropped
508
+ * it silently; log it once per tree for whoever is debugging the config.
332
509
  */
333
510
  const reportedDropsRef = useRef("");
334
511
  const droppedParamFields = rootSearchEntity?.instanceFilters.droppedFields;
@@ -338,19 +515,7 @@ const InquiryWorkspace = ({ treeId, tree, capabilities, readOnly: readOnlyProp,
338
515
  if (reportedDropsRef.current === signature) return;
339
516
  reportedDropsRef.current = signature;
340
517
  console.warn("[inquiry-v2] query filters dropped — unresolved params placeholder:", droppedParamFields.join(", "));
341
- enqueueSnackbar(t("inquiry.query.droppedParamFilters", {
342
- defaultValue: "Showing more records than this tree’s query defines — its saved filters on {{fields}} were skipped because their parameter values are unavailable.",
343
- fields: droppedParamFields.join(", ")
344
- }), {
345
- variant: "warning",
346
- anchorOrigin: SNACKBAR_TOP_CENTER
347
- });
348
- }, [
349
- treeId,
350
- droppedParamFields,
351
- t,
352
- enqueueSnackbar
353
- ]);
518
+ }, [treeId, droppedParamFields]);
354
519
  const [filterText, setFilterText] = useState("");
355
520
  const [stepAt, setStepAt] = useState(-1);
356
521
  const filterRows = useMemo(() => flattenFilterRows(menu.menuList), [menu.menuList]);
@@ -392,19 +557,16 @@ const InquiryWorkspace = ({ treeId, tree, capabilities, readOnly: readOnlyProp,
392
557
  };
393
558
  /** The singular catalog noun for prose ("Resource"), never a class path. */
394
559
  const entityNoun = searchableEntities[0]?.entityNoun ?? "";
395
- const [loadOpen, setLoadOpen] = useState(false);
396
- const [loadPrefill, setLoadPrefill] = useState("");
560
+ /** The Load dialog, open with its prefill text — null when closed. */
561
+ const [loadDialog, setLoadDialog] = useState(null);
397
562
  /**
398
- * The advanced-search VIEW: whether the search panel is up, and the filter it
399
- * opens with. The ⋯ menu's entry opens it empty (the drawer is where the user
563
+ * The advanced-search VIEW: the filter the search panel opens with, or null
564
+ * while the panel is down. The ⋯ menu's entry opens it empty (the drawer is where the user
400
565
  * builds the filter); the copilot's Apply card opens it with a filter already
401
566
  * built, which is the same state the drawer's own submit produces. One piece
402
567
  * of state, so both doors lead to the same screen — and so undo is a restore.
403
568
  */
404
- const [advancedView, setAdvancedView] = useState({
405
- open: false,
406
- preset: null
407
- });
569
+ const [advancedView, setAdvancedView] = useState(null);
408
570
  const advancedViewRef = useRef(advancedView);
409
571
  useEffect(() => {
410
572
  advancedViewRef.current = advancedView;
@@ -412,31 +574,20 @@ const InquiryWorkspace = ({ treeId, tree, capabilities, readOnly: readOnlyProp,
412
574
  const applyAdvancedSearch = useCallback((preset) => {
413
575
  if (!searchableEntities.some((entity) => entity.key === preset.entityKey)) return null;
414
576
  const previous = advancedViewRef.current;
415
- setAdvancedView({
416
- open: true,
417
- preset
418
- });
577
+ setAdvancedView({ preset });
419
578
  return () => setAdvancedView(previous);
420
579
  }, [searchableEntities]);
421
- /** businessObjectKeys already loaded as roots — the popover's dedup label. */
422
- const loadedKeys = useMemo(() => new Set(menu.menuList.flatMap((entry) => entry.map((root) => root.nodeObj?.businessObjectKey))), [menu.menuList]);
423
- const openLoad = (prefill) => {
424
- setLoadPrefill(prefill);
425
- setLoadOpen(true);
426
- };
580
+ /**
581
+ * businessObjectKeys already loaded as roots — the popover's dedup label.
582
+ * Under group headings too, when the root level groups its records.
583
+ */
584
+ const loadedKeys = useMemo(() => new Set(menu.menuList.flatMap((entry) => entry.flatMap(rootRecordsOf).map((root) => root.nodeObj?.businessObjectKey))), [menu.menuList]);
585
+ const openLoad = (prefill) => setLoadDialog({ prefill });
427
586
  /** The lookup-stamping context a record fetch at `levelEntityName` carries. */
428
587
  const lookupContextFor = useCallback((levelEntityName) => ({
429
- queryClient,
430
- catalogId,
431
- catalogObjects,
432
- nestedEntities,
588
+ ...lookupContext,
433
589
  entityName: levelEntityName
434
- }), [
435
- queryClient,
436
- catalogId,
437
- catalogObjects,
438
- nestedEntities
439
- ]);
590
+ }), [lookupContext]);
440
591
  /**
441
592
  * RECENTLY LOADED (v1 parity) — the tree's server-held history. A read-only
442
593
  * view writes none, so its writer is a no-op rather than a check at each load.
@@ -455,45 +606,16 @@ const InquiryWorkspace = ({ treeId, tree, capabilities, readOnly: readOnlyProp,
455
606
  user?.id
456
607
  ]);
457
608
  /**
458
- * Bring one record in: refetch it by identifier (LEAN — the search result may
459
- * be a projection), fill its eager levels with the same waves the root page
460
- * gets, then graft it into the menu. Every hop degrades to the row it already
461
- * has rather than failing the load.
609
+ * Bring records in — every door (the Load dialog, the finder's "Load
610
+ * selected", a deep link, `?searchValue`, a widget's loadInquiryNode, the
611
+ * history, load-to-tree) funnels through here. One identifier search per
612
+ * entity (the picks' identifier sets OR'd; LEAN — a search result may be a
613
+ * projection), ONE wave pass over the fetched rows, then each grafted into
614
+ * the menu and the whole load written to the history in ONE post. A missed
615
+ * row or a failed wave pass degrades to the row a pick already has; a failed
616
+ * fetch rejects the load when no pick in that entity's group has one.
462
617
  */
463
- const loadRecordIntoMenu = useCallback(async (entity, filterElements, fallbackRow, options) => {
464
- setLoadsInFlight((count) => count + 1);
465
- try {
466
- let record = null;
467
- try {
468
- record = await fetchRecordByIdentifiers(queryClient, entity.apiMethodId, filterElements, lookupContextFor(entity.entityName));
469
- } catch {
470
- record = null;
471
- }
472
- const source = record ?? fallbackRow;
473
- if (!source) return null;
474
- const [hydratedRow] = await hydrateRowsWithWaves(seedLevelFor(rootNode, entity), [source], waveContext);
475
- const outcome = menu.loadRecord(entity.rootNode, hydratedRow ?? source);
476
- if (outcome && !outcome.alreadyLoaded && options?.recordHistory !== false) recordHistory([historyEntryFor(entity, outcome.label, filterElements)]);
477
- return outcome;
478
- } finally {
479
- setLoadsInFlight((count) => count - 1);
480
- }
481
- }, [
482
- queryClient,
483
- lookupContextFor,
484
- rootNode,
485
- waveContext,
486
- menu,
487
- recordHistory
488
- ]);
489
- /**
490
- * Bring MANY records in — the finder's "Load selected". One identifier
491
- * search per entity (the picks' identifier sets OR'd), ONE wave pass over
492
- * all the fetched rows, then each grafted into the menu locally and the
493
- * whole load written to the history in ONE post. The per-record path made
494
- * 50+ requests for a 20-record bulk load; this makes a handful.
495
- */
496
- const loadRecordsIntoMenu = useCallback(async (picks) => {
618
+ const loadRecordsIntoMenu = useCallback(async (picks, options) => {
497
619
  const outcomes = [];
498
620
  const historyEntries = [];
499
621
  setLoadsInFlight((count) => count + picks.length);
@@ -503,58 +625,56 @@ const InquiryWorkspace = ({ treeId, tree, capabilities, readOnly: readOnlyProp,
503
625
  const key = pick.entity.key;
504
626
  byEntity.set(key, [...byEntity.get(key) ?? [], pick]);
505
627
  });
506
- (await Promise.all([...byEntity.values()].map(async (group) => {
628
+ const loaded = await Promise.all([...byEntity.values()].map(async (group) => {
507
629
  const entity = group[0].entity;
508
- const sets = group.map((pick) => buildIdentifierFilterElements(catalogObjects, entity.entityName, pick.row));
509
- let fetched = [];
630
+ const sets = group.map((pick) => pick.filterElements);
631
+ let found = [];
510
632
  try {
511
- fetched = await fetchRecordsByIdentifierSets(queryClient, entity.apiMethodId, sets, lookupContextFor(entity.entityName));
512
- } catch {
513
- fetched = [];
633
+ found = await fetchRowsForIdentifierSets(queryClient, entity.apiMethodId, sets, lookupContextFor(entity.entityName));
634
+ } catch (error) {
635
+ if (!group.some((pick) => pick.fallbackRow)) throw error;
514
636
  }
515
- const candidates = fetched.map((row) => ({
516
- row,
517
- keys: new Map(Object.keys(row).map((key) => [key.toLowerCase(), key]))
518
- }));
519
- const sources = group.map((pick, setIndex) => {
520
- const set = sets[setIndex];
521
- if (!set.length) return pick.row;
522
- return candidates.find(({ row, keys }) => set.every((element) => {
523
- const key = keys.get(asText(element.searchField).toLowerCase());
524
- return key !== void 0 && asText(row[key]) === asText(element.searchValue);
525
- }))?.row ?? pick.row;
526
- });
527
- let hydrated = sources;
637
+ const sources = group.map((pick, setIndex) => found[setIndex] ?? pick.fallbackRow ?? null);
638
+ const present = sources.filter((row) => !!row);
639
+ let hydrated = present;
528
640
  try {
529
- hydrated = await hydrateRowsWithWaves(seedLevelFor(rootNode, entity), sources, waveContext);
641
+ hydrated = await hydrateRowsWithWaves(entity.rootNode, present, waveContext);
530
642
  } catch {
531
- hydrated = sources;
643
+ hydrated = present;
532
644
  }
645
+ let next = 0;
533
646
  return {
534
647
  entity,
535
648
  sets,
536
- sources,
537
- hydrated
649
+ rows: sources.map((row) => {
650
+ if (!row) return null;
651
+ const hydratedRow = hydrated[next] ?? row;
652
+ next += 1;
653
+ return hydratedRow;
654
+ })
538
655
  };
539
- }))).forEach(({ entity, sets, sources, hydrated }) => {
540
- hydrated.forEach((row, index) => {
541
- const outcome = menu.loadRecord(entity.rootNode, row ?? sources[index]);
656
+ }));
657
+ let selected = false;
658
+ loaded.forEach(({ entity, sets, rows }) => {
659
+ rows.forEach((row, index) => {
660
+ const outcome = row ? loadRecord(entity.rootNode, row, { select: !selected }) : null;
661
+ if (outcome) selected = true;
542
662
  outcomes.push(outcome);
543
- if (outcome && !outcome.alreadyLoaded) historyEntries.push(historyEntryFor(entity, outcome.label, sets[index]));
663
+ if (outcome && !outcome.alreadyLoaded && options?.recordHistory !== false) historyEntries.push(historyEntryFor(entity, outcome.label, sets[index]));
544
664
  });
545
665
  });
546
- recordHistory(historyEntries);
666
+ if (historyEntries.length) recordHistory(historyEntries);
547
667
  return outcomes;
548
668
  } finally {
549
- setLoadsInFlight((count) => count - picks.length);
669
+ const grafted = outcomes.filter((outcome) => outcome && !outcome.alreadyLoaded).length;
670
+ undrawnLoads.current += grafted;
671
+ setLoadsInFlight((count) => count - (picks.length - grafted));
550
672
  }
551
673
  }, [
552
674
  queryClient,
553
- catalogObjects,
554
675
  lookupContextFor,
555
- rootNode,
556
676
  waveContext,
557
- menu,
677
+ loadRecord,
558
678
  recordHistory
559
679
  ]);
560
680
  /**
@@ -565,36 +685,34 @@ const InquiryWorkspace = ({ treeId, tree, capabilities, readOnly: readOnlyProp,
565
685
  */
566
686
  const reportLoadOutcome = (outcome) => {
567
687
  if (!outcome) {
568
- enqueueSnackbar(t("inquiry.load.notFoundNotice", { defaultValue: "That record could not be loaded." }), {
569
- variant: "warning",
570
- anchorOrigin: SNACKBAR_TOP_CENTER
571
- });
688
+ notify(t("inquiry.load.notFoundNotice", { defaultValue: "That record could not be loaded." }), "warning");
572
689
  return;
573
690
  }
574
691
  const label = outcome.label || entityNoun;
575
692
  if (outcome.alreadyLoaded) {
576
- enqueueSnackbar(t("inquiry.load.alreadyLoadedNotice", {
693
+ notify(t("inquiry.load.alreadyLoadedNotice", {
577
694
  defaultValue: "{{label}} is already loaded.",
578
695
  label
579
- }), {
580
- variant: "info",
581
- anchorOrigin: SNACKBAR_TOP_CENTER
582
- });
696
+ }), "info");
583
697
  return;
584
698
  }
585
- enqueueSnackbar(t("inquiry.load.loadedNotice", {
699
+ notify(t("inquiry.load.loadedNotice", {
586
700
  defaultValue: "{{label}} loaded.",
587
701
  label
588
- }), {
589
- variant: "success",
590
- anchorOrigin: SNACKBAR_TOP_CENTER
591
- });
702
+ }), "success");
592
703
  };
704
+ /** Load one pick and report it; a failed load reports as not loaded. */
705
+ const loadAndReport = (pick) => loadRecordsIntoMenu([pick]).then(([outcome = null]) => outcome).catch(() => null).then(reportLoadOutcome);
706
+ /** A picked search row as a load: its identifier filters, the row as fallback. */
707
+ const pickFor = (entity, row) => ({
708
+ entity,
709
+ filterElements: buildIdentifierFilterElements(catalogObjects, entity.entityName, row),
710
+ fallbackRow: row
711
+ });
593
712
  /** Returns what was loaded, so a non-clicking caller (the copilot) can say so. */
594
713
  const handleLoadRecord = async (entity, row) => {
595
- setLoadOpen(false);
596
- setLoadPrefill("");
597
- const outcome = await loadRecordIntoMenu(entity, buildIdentifierFilterElements(catalogObjects, entity.entityName, row), row);
714
+ setLoadDialog(null);
715
+ const [outcome = null] = await loadRecordsIntoMenu([pickFor(entity, row)]);
598
716
  reportLoadOutcome(outcome);
599
717
  return outcome;
600
718
  };
@@ -605,47 +723,37 @@ const InquiryWorkspace = ({ treeId, tree, capabilities, readOnly: readOnlyProp,
605
723
  handleLoadRecord(picks[0].entity, picks[0].row);
606
724
  return;
607
725
  }
608
- setLoadOpen(false);
609
- setLoadPrefill("");
610
- const outcomes = await loadRecordsIntoMenu(picks);
726
+ setLoadDialog(null);
727
+ const outcomes = await loadRecordsIntoMenu(picks.map(({ entity, row }) => pickFor(entity, row)));
611
728
  const loaded = outcomes.filter((outcome) => outcome && !outcome.alreadyLoaded).length;
612
729
  const missed = outcomes.filter((outcome) => !outcome).length;
613
730
  if (loaded) {
614
- enqueueSnackbar(t("inquiry.load.bulkLoadedNotice", {
731
+ notify(t("inquiry.load.bulkLoadedNotice", {
615
732
  defaultValue: "{{count}} records loaded.",
616
733
  count: loaded
617
- }), {
618
- variant: "success",
619
- anchorOrigin: SNACKBAR_TOP_CENTER
620
- });
734
+ }), "success");
621
735
  return;
622
736
  }
623
- enqueueSnackbar(missed ? t("inquiry.load.bulkFailedNotice", { defaultValue: "Those records could not be loaded." }) : t("inquiry.load.bulkAlreadyLoadedNotice", { defaultValue: "Those records are already loaded." }), {
624
- variant: missed ? "warning" : "info",
625
- anchorOrigin: SNACKBAR_TOP_CENTER
626
- });
737
+ notify(missed ? t("inquiry.load.bulkFailedNotice", { defaultValue: "Those records could not be loaded." }) : t("inquiry.load.bulkAlreadyLoadedNotice", { defaultValue: "Those records are already loaded." }), missed ? "warning" : "info");
627
738
  };
628
739
  /**
629
740
  * v1's load-to-tree (InquiryContainer handleLoadingSpecificNode): the record
630
741
  * opens as a new root SHAPED BY THE CONFIGURED TREE — the active tab's
631
742
  * `trees` entry naming the record's entity. It rides the same kernel path an
632
743
  * associated-tree search hit uses (a foreign root node handed to
633
- * menu.loadRecord); the target tree is fetched detailed (v1's
634
- * executeGetDetailedTree, cached) and nested so the new root carries its own
635
- * child levels. Kept out of the recently-loaded history — see the
636
- * loadRecordIntoMenu option.
744
+ * menu.loadRecord); the target tree is fetched (cached) and nested so the
745
+ * new root carries its own child levels. Kept out of the recently-loaded
746
+ * history — see the loadRecordsIntoMenu option.
637
747
  */
638
748
  const loadRecordIntoConfiguredTree = useCallback(async (targetTreeId, request) => {
639
749
  let outcome = null;
640
750
  try {
641
- const targetTree = await fetchInquiryTree(queryClient, targetTreeId);
642
- const entity = deriveSearchableEntities(targetTree).find((e) => e.isRoot) ?? null;
643
- const nestedRoot = nestedRootOf(targetTree);
644
- const filterElements = entity ? buildIdentifierFilterElements(catalogObjects, entity.entityName, request) : [];
645
- if (entity && nestedRoot && filterElements.length) outcome = await loadRecordIntoMenu({
646
- ...entity,
647
- rootNode: nestedRoot
648
- }, filterElements, void 0, { recordHistory: false });
751
+ const entity = deriveSearchableEntities(await fetchInquiryTree(queryClient, targetTreeId), null).find((e) => e.isRoot) ?? null;
752
+ const filterElements = entity ? buildIdentifierFilterElements(catalogObjects, entity.entityName, request).filter(hasIdentifierValue) : [];
753
+ if (entity && filterElements.length) [outcome = null] = await loadRecordsIntoMenu([{
754
+ entity,
755
+ filterElements
756
+ }], { recordHistory: false });
649
757
  } catch {
650
758
  outcome = null;
651
759
  }
@@ -653,7 +761,7 @@ const InquiryWorkspace = ({ treeId, tree, capabilities, readOnly: readOnlyProp,
653
761
  }, [
654
762
  queryClient,
655
763
  catalogObjects,
656
- loadRecordIntoMenu
764
+ loadRecordsIntoMenu
657
765
  ]);
658
766
  /**
659
767
  * v1's `loadInquiryNode`, the contract page widgets call to put a record they
@@ -675,23 +783,23 @@ const InquiryWorkspace = ({ treeId, tree, capabilities, readOnly: readOnlyProp,
675
783
  loadRecordIntoConfiguredTree(targetRef.treeId, request);
676
784
  return;
677
785
  }
678
- const entity = businessObjectKey ? entityForBusinessObjectKey(searchableEntities, businessObjectKey) : null;
679
- const filterElements = entity ? buildIdentifierFilterElements(catalogObjects, entity.entityName, request) : [];
786
+ const { entity } = levelForBusinessObjectKey(searchableEntities, businessObjectKey);
787
+ const filterElements = entity ? buildIdentifierFilterElements(catalogObjects, entity.entityName, request).filter(hasIdentifierValue) : [];
680
788
  if (!entity || !filterElements.length) {
681
- enqueueSnackbar(t("inquiry.load.unknownEntityNotice", {
789
+ notify(t("inquiry.load.unknownEntityNotice", {
682
790
  defaultValue: "Could not load that record — this tree does not show “{{key}}”.",
683
791
  key: businessObjectKey || entityNoun
684
- }), {
685
- variant: "warning",
686
- anchorOrigin: SNACKBAR_TOP_CENTER
687
- });
792
+ }), "warning");
688
793
  return;
689
794
  }
690
- loadRecordIntoMenu(entity, filterElements).then(reportLoadOutcome);
795
+ loadAndReport({
796
+ entity,
797
+ filterElements
798
+ });
691
799
  }, [
692
800
  searchableEntities,
693
801
  catalogObjects,
694
- loadRecordIntoMenu,
802
+ loadRecordsIntoMenu,
695
803
  loadRecordIntoConfiguredTree,
696
804
  entityNoun,
697
805
  t
@@ -705,59 +813,75 @@ const InquiryWorkspace = ({ treeId, tree, capabilities, readOnly: readOnlyProp,
705
813
  * identical to picking the record out of + Load.
706
814
  */
707
815
  const handleRecentlyLoadedClick = useCallback((entry) => {
708
- const entityName = entry?.nodeDetails?.catalogReturnObject ?? "";
709
- const entity = entityName ? entityForBusinessObjectKey(searchableEntities, entityName) : null;
710
- const filterElements = Array.isArray(entry?.queryPayload?.filterElements) ? entry.queryPayload.filterElements : [];
816
+ const { entity } = levelForBusinessObjectKey(searchableEntities, entry?.nodeDetails?.catalogReturnObject ?? "");
817
+ const filterElements = Array.isArray(entry?.queryPayload?.filterElements) ? entry.queryPayload.filterElements.filter(hasIdentifierValue) : [];
711
818
  if (!entity || !filterElements.length) {
712
819
  reportLoadOutcome(null);
713
820
  return;
714
821
  }
715
- loadRecordIntoMenu(entity, filterElements).catch(() => null).then(reportLoadOutcome);
716
- }, [searchableEntities, loadRecordIntoMenu]);
822
+ loadAndReport({
823
+ entity,
824
+ filterElements
825
+ });
826
+ }, [searchableEntities, loadRecordsIntoMenu]);
717
827
  /**
718
828
  * REFRESH TREE, both halves.
719
829
  *
720
830
  * Invalidating the row families re-reads everything a QUERY owns — the root
721
831
  * page and the badges, which is why the counts beside a mutated row update on
722
- * their own. It cannot reach the row itself when that row was grafted in by a
723
- * lazy expand: nothing observes `['inquiry','childBatch']`, so invalidating it
724
- * refetches nothing, and the rebuild that would recompose the branch only runs
725
- * when the ROOT page answers differently — which a child mutation never makes
726
- * it do. So the refresh also re-reads the record the pane is looking at (the
727
- * one an action over it just changed) and stamps it back onto every row that
728
- * holds it.
832
+ * their own. Rows below the root are owned by no query (the wave loader and
833
+ * lazy expands grafted them), so the refresh also re-reads the RECORD ROOT of
834
+ * the selection — the record an action over the selection, or under it, can
835
+ * have changed below — and the menu recomposes that branch, re-opened to
836
+ * where the user had it (branchRefreshModel). v1 re-fetched the selected root
837
+ * record the same way. A root record the server no longer returns is gone,
838
+ * and its row goes with it.
729
839
  *
730
- * The node is read through a ref so this stays stable across selections: it is
731
- * handed to the kernel as an effect override, and the kernel rebuilds its
732
- * whole effects bag whenever the override changes.
840
+ * The selection is read through a ref so this stays stable across
841
+ * selections: it is handed to the kernel as an effect override, and the
842
+ * kernel rebuilds its whole effects bag whenever the override changes. The
843
+ * refs are the menu's own, so a rebuild made in the same tick (Refresh
844
+ * bringing removed records back) is already what this reads.
733
845
  */
734
- const selectedNodeRef = useRef(null);
735
- useEffect(() => {
736
- selectedNodeRef.current = menu.selectedNode;
737
- }, [menu.selectedNode]);
738
- const restampRecords = menu.restampRecords;
739
- const refreshTree = useCallback(() => {
740
- invalidateInquiryRowData(queryClient);
741
- (async () => {
742
- const node = selectedNodeRef.current;
743
- const levelEntityName = typeof node?.properties?.catalogReturnObject === "string" ? node.properties.catalogReturnObject : "";
744
- if (!node?.nodeObj || !levelEntityName || !catalogId) return;
745
- const filterElements = buildIdentifierFilterElements(catalogObjects, levelEntityName, node.nodeObj);
846
+ const { menuListRef, selectedIdRef } = menu;
847
+ const refreshRecord = menu.refreshRecord;
848
+ const refreshTree = useCallback(async () => {
849
+ const rereadBranch = async () => {
850
+ const target = findRecordRoot(locateNodeById(menuListRef.current, selectedIdRef.current)?.root, selectedIdRef.current);
851
+ const level = findConfigLevel(target?.configNodeId);
852
+ const levelEntityName = typeof level?.properties?.catalogReturnObject === "string" ? level.properties.catalogReturnObject : "";
853
+ if (!target?.nodeObj || !level || !levelEntityName || !catalogId) return;
854
+ const filterElements = buildIdentifierFilterElements(catalogObjects, levelEntityName, target.nodeObj);
746
855
  if (!filterElements.length) return;
747
856
  try {
748
857
  const apiMethodId = (await fetchEntityMeta(queryClient, catalogId, levelEntityName)).promoted?.unityBaseSearchMethod?.apiMethodId;
749
858
  if (!apiMethodId) return;
750
- const row = await fetchRecordByIdentifiers(queryClient, apiMethodId, filterElements, lookupContextFor(levelEntityName));
751
- if (row) restampRecords([row]);
859
+ const row = refreshedRow(await fetchRecordsByIdentifierSets(queryClient, apiMethodId, [filterElements], lookupContextFor(levelEntityName)), target.nodeObj.businessObjectKey);
860
+ if (row === void 0) return;
861
+ const [hydrated = null] = row ? await hydrateRowsWithWaves(level, [row], waveContext) : [];
862
+ await refreshRecord(target, hydrated, loadChildren);
752
863
  } catch {}
753
- })();
864
+ };
865
+ await Promise.all([invalidateInquiryRowData(queryClient), rereadBranch()]);
754
866
  }, [
755
867
  queryClient,
868
+ findConfigLevel,
756
869
  catalogId,
757
870
  catalogObjects,
758
871
  lookupContextFor,
759
- restampRecords
872
+ waveContext,
873
+ loadChildren,
874
+ refreshRecord,
875
+ menuListRef,
876
+ selectedIdRef
760
877
  ]);
878
+ const [refreshing, setRefreshing] = useState(false);
879
+ const restoreRemoved = menu.restoreRemoved;
880
+ const handleRefresh = useCallback(() => {
881
+ setRefreshing(true);
882
+ restoreRemoved();
883
+ refreshTree().finally(() => setRefreshing(false));
884
+ }, [refreshTree, restoreRemoved]);
761
885
  /**
762
886
  * The kernel's effect overrides. `loadNode` being a real function here (and
763
887
  * null in an embedder) is also what lights up the widget Load button.
@@ -797,12 +921,12 @@ const InquiryWorkspace = ({ treeId, tree, capabilities, readOnly: readOnlyProp,
797
921
  /** One-shot latch: survives StrictMode's double effect invoke, which state can't. */
798
922
  const arrivalHandledRef = useRef(false);
799
923
  /**
800
- * Searching before the searchable set and the catalog are in hand would settle
924
+ * Searching before the searchable set and the metadata are in hand would settle
801
925
  * on an empty result and open the dialog against a term that was never asked.
802
926
  * Until then the term is withheld, which leaves the hook with empty text and
803
927
  * therefore no queries at all.
804
928
  */
805
- const arrivalReady = !!searchableEntities.length && (!!catalogObjects?.length || catalogUnavailable);
929
+ const arrivalReady = !!searchableEntities.length && searchSettled;
806
930
  const arrivalSearch = useInquirySearch({
807
931
  entities: searchableEntities,
808
932
  text: !arrivalSettled && arrivalReady ? arrivalTerm : "",
@@ -823,11 +947,11 @@ const InquiryWorkspace = ({ treeId, tree, capabilities, readOnly: readOnlyProp,
823
947
  });
824
948
  if (outcome === "wait") return;
825
949
  arrivalHandledRef.current = true;
826
- setArrivalSettled(true);
827
950
  if (outcome === "load" && arrivalSearch.singleResult) {
828
- handleLoadRecord(arrivalSearch.singleResult.entity, arrivalSearch.singleResult.row);
951
+ handleLoadRecord(arrivalSearch.singleResult.entity, arrivalSearch.singleResult.row).finally(() => setArrivalSettled(true));
829
952
  return;
830
953
  }
954
+ setArrivalSettled(true);
831
955
  openLoad(arrivalTerm);
832
956
  }, [
833
957
  arrivalSettled,
@@ -841,54 +965,62 @@ const InquiryWorkspace = ({ treeId, tree, capabilities, readOnly: readOnlyProp,
841
965
  * top of the page, the same way the Load dialog loads one.
842
966
  *
843
967
  * Unlike v1, a link that cannot be honored SAYS SO — an unrecognised entity,
844
- * missing identifier values or a record that no longer exists left v1 showing
845
- * a silently empty tree.
968
+ * a link that does not identify one record, or no single record matching it
969
+ * left v1 showing a silently empty tree (or the wrong record).
846
970
  */
847
971
  useEffect(() => {
848
972
  if (!deepLink || deepLinkSettled) return;
849
973
  if (!searchableEntities.length) return;
850
- if (!catalogObjects?.length && !catalogUnavailable) return;
974
+ if (!searchSettled) return;
975
+ const reportFailure = (reason) => {
976
+ notify({
977
+ unresolved: t("inquiry.deepLink.unresolved", {
978
+ defaultValue: "Could not open the linked record — this tree does not recognize “{{key}}”.",
979
+ key: deepLink.businessObjectKey
980
+ }),
981
+ incomplete: t("inquiry.deepLink.incomplete", { defaultValue: "Could not open the linked record — the link does not identify one record." }),
982
+ notFound: t("inquiry.deepLink.notFound", { defaultValue: "Could not open the linked record — no single record matches it." }),
983
+ failed: t("inquiry.deepLink.failed", { defaultValue: "Could not open the linked record." })
984
+ }[reason], "warning");
985
+ };
851
986
  if (!deepLinkEntity || !deepLinkFilters) {
852
987
  setDeepLinkSettled(true);
853
- enqueueSnackbar(t("inquiry.deepLink.unresolved", {
854
- defaultValue: "Could not open the linked record — this tree does not recognize “{{key}}”.",
855
- key: deepLink.businessObjectKey
856
- }), {
857
- variant: "warning",
858
- anchorOrigin: SNACKBAR_TOP_CENTER
859
- });
988
+ setRootLinkDropped(true);
989
+ if (deepLinkTarget?.ambiguous) reportFailure("incomplete");
990
+ else if (!deepLinkEntity) reportFailure("unresolved");
991
+ else reportFailure(catalogObjects?.length ? "incomplete" : "failed");
860
992
  return;
861
993
  }
862
994
  if (deepLinkIsRoot) {
863
995
  if (recordsPending) return;
864
996
  setDeepLinkSettled(true);
865
- if (!records?.rows?.length) enqueueSnackbar(t("inquiry.deepLink.notFound", { defaultValue: "The linked record could not be found." }), {
866
- variant: "warning",
867
- anchorOrigin: SNACKBAR_TOP_CENTER
868
- });
997
+ if (records?.rows?.length) return;
998
+ setRootLinkDropped(true);
999
+ reportFailure(recordsError ? "failed" : "notFound");
869
1000
  return;
870
1001
  }
871
1002
  setDeepLinkSettled(true);
872
- loadRecordIntoMenu(deepLinkEntity, deepLinkFilters).then((outcome) => {
873
- if (outcome) return;
874
- enqueueSnackbar(t("inquiry.deepLink.notFound", { defaultValue: "The linked record could not be found." }), {
875
- variant: "warning",
876
- anchorOrigin: SNACKBAR_TOP_CENTER
877
- });
878
- });
1003
+ loadRecordsIntoMenu([{
1004
+ entity: deepLinkEntity,
1005
+ filterElements: deepLinkFilters
1006
+ }]).then(([outcome]) => {
1007
+ if (!outcome) reportFailure("notFound");
1008
+ }, () => reportFailure("failed"));
879
1009
  }, [
880
1010
  deepLink,
881
1011
  deepLinkSettled,
1012
+ deepLinkTarget,
882
1013
  deepLinkEntity,
883
1014
  deepLinkFilters,
1015
+ catalogObjects,
884
1016
  deepLinkIsRoot,
885
1017
  searchableEntities.length,
886
- catalogObjects,
887
- catalogUnavailable,
1018
+ searchSettled,
888
1019
  records,
889
1020
  recordsPending,
890
- loadRecordIntoMenu,
891
- enqueueSnackbar,
1021
+ recordsError,
1022
+ loadRecordsIntoMenu,
1023
+ notify,
892
1024
  t
893
1025
  ]);
894
1026
  /**
@@ -940,10 +1072,7 @@ const InquiryWorkspace = ({ treeId, tree, capabilities, readOnly: readOnlyProp,
940
1072
  id: "advancedSearch",
941
1073
  text: t("inquiry.advancedSearch.title", { defaultValue: "Advanced Search" }),
942
1074
  iconName: "filter",
943
- onClick: () => setAdvancedView({
944
- open: true,
945
- preset: null
946
- })
1075
+ onClick: () => setAdvancedView({ preset: null })
947
1076
  }] : []
948
1077
  ], [
949
1078
  t,
@@ -953,7 +1082,7 @@ const InquiryWorkspace = ({ treeId, tree, capabilities, readOnly: readOnlyProp,
953
1082
  treeViewMode,
954
1083
  searchableEntities.length
955
1084
  ]);
956
- const treeName = typeof tree?.name === "string" && tree.name ? tree.name : "Inquiry";
1085
+ const treeName = treeTitleOf(tree) || "Inquiry";
957
1086
  /**
958
1087
  * The pane title only gets a tooltip when the name is actually cut off. The
959
1088
  * pane is user-resizable, so this is measured (ResizeObserver) rather than
@@ -986,34 +1115,47 @@ const InquiryWorkspace = ({ treeId, tree, capabilities, readOnly: readOnlyProp,
986
1115
  * The record side of the pane — the whole screen when the tree is hidden, so
987
1116
  * it is composed once and placed by the branch below rather than duplicated.
988
1117
  */
989
- const recordPane = /* @__PURE__ */ React.createElement("div", { className: styles.main }, advancedView.open ? /* @__PURE__ */ React.createElement(InquirySearchPanel, {
1118
+ const title = /* @__PURE__ */ React.createElement("div", {
1119
+ ref: titleRef,
1120
+ className: styles.title
1121
+ }, /* @__PURE__ */ React.createElement(UdpText, {
1122
+ variant: "subtitle2",
1123
+ as: "span",
1124
+ block: false
1125
+ }, treeName));
1126
+ const idlePane = idleRecordPane({
1127
+ arrivalPending: (!arrivalSettled || !searchSettled) && searchableEntities.length > 0,
1128
+ explorePageId,
1129
+ recordsLoading
1130
+ });
1131
+ const recordPane = /* @__PURE__ */ React.createElement("div", {
1132
+ ref: recordPaneRef,
1133
+ className: styles.main,
1134
+ role: "region",
1135
+ "aria-label": t("inquiry.record.region", { defaultValue: "Record" }),
1136
+ tabIndex: -1
1137
+ }, advancedView ? /* @__PURE__ */ React.createElement(InquirySearchPanel, {
990
1138
  key: advancedView.preset ? searchHashFor("advanced", advancedView.preset.entityKey, advancedView.preset.elements) : "advanced",
991
1139
  entities: searchableEntities,
992
1140
  text: "",
993
1141
  initialAdvanced: advancedView.preset,
994
1142
  initialAdvancedOpen: !advancedView.preset,
995
1143
  onLoadRecord: (entity, row) => {
996
- setAdvancedView({
997
- open: false,
998
- preset: null
999
- });
1144
+ setAdvancedView(null);
1000
1145
  handleLoadRecord(entity, row);
1001
1146
  },
1002
- onClear: () => setAdvancedView({
1003
- open: false,
1004
- preset: null
1005
- })
1147
+ onClear: () => setAdvancedView(null)
1006
1148
  }) : menu.selectedNode ? /* @__PURE__ */ React.createElement(UdpNodeView, {
1007
1149
  treeId,
1008
1150
  node: menu.selectedNode,
1009
1151
  parentNode: menu.selectedParent,
1010
1152
  containerId,
1011
- capabilities: nodeCapabilities,
1153
+ capabilities,
1012
1154
  effects: nodeEffects,
1013
1155
  menuRootNode: menu.selectedRoot,
1014
1156
  activeTabId,
1015
1157
  onActiveTabChange: switchTab
1016
- }) : explorePageId ? /* @__PURE__ */ React.createElement(InquiryLanding, {
1158
+ }) : idlePane === "loading" ? /* @__PURE__ */ React.createElement("div", { className: styles.centered }, /* @__PURE__ */ React.createElement(UdpSpinner, null)) : idlePane === "landing" ? /* @__PURE__ */ React.createElement(InquiryLanding, {
1017
1159
  pageId: explorePageId,
1018
1160
  tree,
1019
1161
  treeId,
@@ -1025,8 +1167,11 @@ const InquiryWorkspace = ({ treeId, tree, capabilities, readOnly: readOnlyProp,
1025
1167
  onLoadRecords: (picks) => {
1026
1168
  handleLoadRecords(picks);
1027
1169
  }
1028
- }) : recordsLoading ? /* @__PURE__ */ React.createElement("div", { className: styles.centered }, /* @__PURE__ */ React.createElement(UdpSpinner, null)) : /* @__PURE__ */ React.createElement("div", { className: styles.centered }, /* @__PURE__ */ React.createElement(UdpText, { variant: "body1" }, treeHidden ? t("inquiry.emptyRecordPaneNoTree", { defaultValue: "No record to show." }) : t("inquiry.emptyRecordPane", { defaultValue: "Select a record from the tree, or use Load to bring one in." }))));
1029
- return /* @__PURE__ */ React.createElement("div", { className: styles.workspace }, treeHidden ? recordPane : /* @__PURE__ */ React.createElement(UdpSidebarLayout, {
1170
+ }) : /* @__PURE__ */ React.createElement("div", { className: styles.centered }, /* @__PURE__ */ React.createElement(UdpText, { variant: "body1" }, treeHidden ? t("inquiry.emptyRecordPaneNoTree", { defaultValue: "No record to show." }) : t("inquiry.emptyRecordPane", { defaultValue: "Select a record from the tree, or use Load to bring one in." }))));
1171
+ return /* @__PURE__ */ React.createElement(ReadOnlyContext.Provider, { value: readOnly }, /* @__PURE__ */ React.createElement("div", {
1172
+ className: styles.workspace,
1173
+ onKeyDown: handlePaneKey
1174
+ }, treeHidden ? recordPane : /* @__PURE__ */ React.createElement(UdpSidebarLayout, {
1030
1175
  fill: true,
1031
1176
  resizable: true,
1032
1177
  sidebarWidth: "300px",
@@ -1040,27 +1185,14 @@ const InquiryWorkspace = ({ treeId, tree, capabilities, readOnly: readOnlyProp,
1040
1185
  }, /* @__PURE__ */ React.createElement("div", {
1041
1186
  slot: "sidebar-header",
1042
1187
  className: styles.sidebarHeader
1043
- }, titleTruncated ? /* @__PURE__ */ React.createElement(UdpTooltip, { content: treeName }, /* @__PURE__ */ React.createElement("div", {
1044
- ref: titleRef,
1045
- className: styles.title
1046
- }, /* @__PURE__ */ React.createElement(UdpText, {
1047
- variant: "subtitle2",
1048
- as: "span",
1049
- block: false
1050
- }, treeName))) : /* @__PURE__ */ React.createElement("div", {
1051
- ref: titleRef,
1052
- className: styles.title
1053
- }, /* @__PURE__ */ React.createElement(UdpText, {
1054
- variant: "subtitle2",
1055
- as: "span",
1056
- block: false
1057
- }, treeName)), /* @__PURE__ */ React.createElement(InquiryMenuToolbar, {
1188
+ }, titleTruncated ? /* @__PURE__ */ React.createElement(UdpTooltip, { content: treeName }, title) : title, /* @__PURE__ */ React.createElement(InquiryMenuToolbar, {
1058
1189
  filterText,
1059
1190
  onFilterTextChange: applyFilterText,
1060
1191
  onFilterKeyDown: handleFilterKeyDown,
1061
1192
  filterDisabled: filterRows.length === 0,
1062
1193
  onLoad: () => openLoad(""),
1063
- onRefresh: refreshTree,
1194
+ onRefresh: handleRefresh,
1195
+ refreshing,
1064
1196
  overflowItems
1065
1197
  })), /* @__PURE__ */ React.createElement("div", { slot: "sidebar" }, recordsError && /* @__PURE__ */ React.createElement(UdpMessageBar, {
1066
1198
  intent: "error",
@@ -1068,7 +1200,7 @@ const InquiryWorkspace = ({ treeId, tree, capabilities, readOnly: readOnlyProp,
1068
1200
  }, t("inquiry.tree.recordsFailed", { defaultValue: "Records could not be loaded. Refresh to try again." })), catalogMissing && /* @__PURE__ */ React.createElement(UdpMessageBar, { intent: "warning" }, t("inquiry.tree.catalogMissing", { defaultValue: "Advanced search is limited for this tree." })), treeIsEmpty && /* @__PURE__ */ React.createElement("div", { className: styles.emptyTree }, /* @__PURE__ */ React.createElement(UdpText, {
1069
1201
  variant: "caption1",
1070
1202
  as: "span"
1071
- }, t("inquiry.tree.nothingLoaded", { defaultValue: "No records loaded. Use Load to bring one into the tree." }))), treeHasRows && /* @__PURE__ */ React.createElement(NodeList, {
1203
+ }, t("inquiry.tree.nothingLoaded", { defaultValue: "No records loaded. Use Load to bring one into the tree." }))), /* @__PURE__ */ React.createElement("div", { ref: setTreeBox }, treeHasRows && /* @__PURE__ */ React.createElement(NodeList, {
1072
1204
  menuItemsList: menu.menuList,
1073
1205
  onSelectNode: menu.handleSelectNode,
1074
1206
  onDropNode,
@@ -1076,22 +1208,20 @@ const InquiryWorkspace = ({ treeId, tree, capabilities, readOnly: readOnlyProp,
1076
1208
  sidebarExpanded: sidebarOpen,
1077
1209
  catalogObjects,
1078
1210
  promotedEntities: promotedEntities ?? [],
1079
- treeStructureArr: tree?.treeStructure ?? [],
1211
+ findLevel: findConfigLevel,
1080
1212
  setMenuList: menu.setMenuList,
1081
1213
  loadChildren,
1214
+ rootMore,
1082
1215
  treeViewMode,
1083
1216
  filter,
1084
1217
  onRemoveRoot: menu.removeRoot,
1085
1218
  removeRootLabel: t("common.remove", { defaultValue: "Remove" })
1086
- }), treeLoading && /* @__PURE__ */ React.createElement(TreeSkeletonRows, { count: recordsLoading ? initialRecordCount : loadsInFlight }), rootPaging.showLoadMore && /* @__PURE__ */ React.createElement("div", { className: styles.showMore }, /* @__PURE__ */ React.createElement(UdpButton, {
1087
- appearance: "transparent",
1088
- size: "small",
1089
- loading: rootPaging.isLoadingMore,
1090
- onClick: () => setRootPages(nextRootPages)
1091
- }, t("inquiry.tree.showMoreRecords", {
1092
- defaultValue: "Show {{amount}} more",
1093
- amount: rootPaging.nextCount
1094
- }))), filter.active && filter.matchIds.length === 0 && filter.query.length >= 1 && /* @__PURE__ */ React.createElement("div", { className: styles.bridge }, /* @__PURE__ */ React.createElement(UdpText, {
1219
+ })), treeLoading && /* @__PURE__ */ React.createElement(TreeSkeletonRows, {
1220
+ count: pendingRowCount,
1221
+ childCount: skeletonChildCount(rootNode),
1222
+ compact: treeViewMode === TreeViewModeEnums.Compact,
1223
+ afterRows: treeHasRows
1224
+ }), filter.active && filter.matchIds.length === 0 && filter.query.length >= 1 && /* @__PURE__ */ React.createElement("div", { className: styles.bridge }, /* @__PURE__ */ React.createElement(UdpText, {
1095
1225
  variant: "caption1",
1096
1226
  as: "span"
1097
1227
  }, t("inquiry.filter.notInTree", { defaultValue: "Not in the tree." })), /* @__PURE__ */ React.createElement(UdpButton, {
@@ -1109,10 +1239,10 @@ const InquiryWorkspace = ({ treeId, tree, capabilities, readOnly: readOnlyProp,
1109
1239
  slot: "sidebar-footer",
1110
1240
  onOpenChange: copilotSplit.onOpenChange
1111
1241
  }), recordPane), /* @__PURE__ */ React.createElement(LoadRecordDialog, {
1112
- key: `load-${loadOpen}-${loadPrefill}`,
1113
- open: loadOpen,
1242
+ key: `load-${!!loadDialog}-${loadDialog?.prefill ?? ""}`,
1243
+ open: !!loadDialog,
1114
1244
  entities: searchableEntities,
1115
- initialText: loadPrefill,
1245
+ initialText: loadDialog?.prefill ?? "",
1116
1246
  defaultRows: stampedRows,
1117
1247
  defaultTotal: records?.total,
1118
1248
  defaultEntity: rootSearchEntity,
@@ -1125,8 +1255,7 @@ const InquiryWorkspace = ({ treeId, tree, capabilities, readOnly: readOnlyProp,
1125
1255
  handleLoadRecords(picks);
1126
1256
  },
1127
1257
  onClose: () => {
1128
- setLoadOpen(false);
1129
- setLoadPrefill("");
1258
+ setLoadDialog(null);
1130
1259
  }
1131
1260
  }), /* @__PURE__ */ React.createElement(ExecuteApiDropDialog, {
1132
1261
  open: !!dropExecute,
@@ -1136,21 +1265,8 @@ const InquiryWorkspace = ({ treeId, tree, capabilities, readOnly: readOnlyProp,
1136
1265
  executeDrop(method);
1137
1266
  },
1138
1267
  onClose: () => setDropExecute(null)
1139
- }));
1268
+ })));
1140
1269
  };
1141
- function _temp(_, index) {
1142
- return /* @__PURE__ */ React.createElement("div", {
1143
- key: index,
1144
- className: styles.skeletonRow
1145
- }, /* @__PURE__ */ React.createElement(UdpSkeletonLoading, {
1146
- width: "24px",
1147
- height: "24px",
1148
- borderRadius: "6px"
1149
- }), /* @__PURE__ */ React.createElement(UdpSkeletonLoading, {
1150
- width: "60%",
1151
- height: "16px"
1152
- }));
1153
- }
1154
1270
  //#endregion
1155
1271
  export { InquiryWorkspace };
1156
1272