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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (670) hide show
  1. package/dist/.tsbuildinfo +1 -1
  2. package/dist/UI/feedback/PageLoading.d.ts +11 -1
  3. package/dist/UI/feedback/PageLoading.d.ts.map +1 -1
  4. package/dist/UI/feedback/PageLoading.js +12 -12
  5. package/dist/UI/feedback/PageLoading.js.map +1 -1
  6. package/dist/UI/feedback/PageLoading.mjs +35 -21
  7. package/dist/UI/feedback/PageLoading.mjs.map +1 -1
  8. package/dist/UI/feedback/PageLoading.module.css +9 -0
  9. package/dist/UI/fluent-web-components/UdpIconPicker.d.ts +4 -1
  10. package/dist/UI/fluent-web-components/UdpIconPicker.d.ts.map +1 -1
  11. package/dist/UI/fluent-web-components/UdpIconPicker.js +2 -2
  12. package/dist/UI/fluent-web-components/UdpIconPicker.js.map +1 -1
  13. package/dist/UI/fluent-web-components/UdpIconPicker.mjs +32 -28
  14. package/dist/UI/fluent-web-components/UdpIconPicker.mjs.map +1 -1
  15. package/dist/UI/fluent-web-components/UdpLink.d.ts +6 -0
  16. package/dist/UI/fluent-web-components/UdpLink.d.ts.map +1 -1
  17. package/dist/UI/fluent-web-components/UdpLink.js.map +1 -1
  18. package/dist/UI/fluent-web-components/UdpLink.mjs.map +1 -1
  19. package/dist/UI/fluent-web-components/index.d.ts +10 -0
  20. package/dist/UI/fluent-web-components/index.d.ts.map +1 -1
  21. package/dist/UI/fluent-web-components/index.js +10 -0
  22. package/dist/UI/fluent-web-components/index.js.map +1 -1
  23. package/dist/UI/fluent-web-components/shell/UdpShell.d.ts +10 -0
  24. package/dist/UI/fluent-web-components/shell/UdpShell.d.ts.map +1 -0
  25. package/dist/UI/fluent-web-components/shell/UdpShell.js +7 -0
  26. package/dist/UI/fluent-web-components/shell/UdpShell.js.map +1 -0
  27. package/dist/UI/fluent-web-components/shell/UdpShell.mjs +19 -0
  28. package/dist/UI/fluent-web-components/shell/UdpShell.mjs.map +1 -0
  29. package/dist/UI/fluent-web-components/shell/UdpShellAppBar.d.ts +11 -0
  30. package/dist/UI/fluent-web-components/shell/UdpShellAppBar.d.ts.map +1 -0
  31. package/dist/UI/fluent-web-components/shell/UdpShellAppBar.js +7 -0
  32. package/dist/UI/fluent-web-components/shell/UdpShellAppBar.js.map +1 -0
  33. package/dist/UI/fluent-web-components/shell/UdpShellAppBar.mjs +19 -0
  34. package/dist/UI/fluent-web-components/shell/UdpShellAppBar.mjs.map +1 -0
  35. package/dist/UI/fluent-web-components/shell/UdpShellAppBarAction.d.ts +16 -0
  36. package/dist/UI/fluent-web-components/shell/UdpShellAppBarAction.d.ts.map +1 -0
  37. package/dist/UI/fluent-web-components/shell/UdpShellAppBarAction.js +7 -0
  38. package/dist/UI/fluent-web-components/shell/UdpShellAppBarAction.js.map +1 -0
  39. package/dist/UI/fluent-web-components/shell/UdpShellAppBarAction.mjs +19 -0
  40. package/dist/UI/fluent-web-components/shell/UdpShellAppBarAction.mjs.map +1 -0
  41. package/dist/UI/fluent-web-components/shell/UdpShellNav.d.ts +21 -0
  42. package/dist/UI/fluent-web-components/shell/UdpShellNav.d.ts.map +1 -0
  43. package/dist/UI/fluent-web-components/shell/UdpShellNav.js +7 -0
  44. package/dist/UI/fluent-web-components/shell/UdpShellNav.js.map +1 -0
  45. package/dist/UI/fluent-web-components/shell/UdpShellNav.mjs +19 -0
  46. package/dist/UI/fluent-web-components/shell/UdpShellNav.mjs.map +1 -0
  47. package/dist/UI/fluent-web-components/shell/UdpShellRibbon.d.ts +10 -0
  48. package/dist/UI/fluent-web-components/shell/UdpShellRibbon.d.ts.map +1 -0
  49. package/dist/UI/fluent-web-components/shell/UdpShellRibbon.js +7 -0
  50. package/dist/UI/fluent-web-components/shell/UdpShellRibbon.js.map +1 -0
  51. package/dist/UI/fluent-web-components/shell/UdpShellRibbon.mjs +19 -0
  52. package/dist/UI/fluent-web-components/shell/UdpShellRibbon.mjs.map +1 -0
  53. package/dist/UI/fluent-web-components/shell/UdpShellSidebar.d.ts +13 -0
  54. package/dist/UI/fluent-web-components/shell/UdpShellSidebar.d.ts.map +1 -0
  55. package/dist/UI/fluent-web-components/shell/UdpShellSidebar.js +7 -0
  56. package/dist/UI/fluent-web-components/shell/UdpShellSidebar.js.map +1 -0
  57. package/dist/UI/fluent-web-components/shell/UdpShellSidebar.mjs +19 -0
  58. package/dist/UI/fluent-web-components/shell/UdpShellSidebar.mjs.map +1 -0
  59. package/dist/UI/fluent-web-components/types.d.ts +2 -0
  60. package/dist/UI/fluent-web-components/types.d.ts.map +1 -1
  61. package/dist/UI/widgets/library/InquiryFindRecordsWidget/InquiryFindRecordsWidget.d.ts +16 -3
  62. package/dist/UI/widgets/library/InquiryFindRecordsWidget/InquiryFindRecordsWidget.d.ts.map +1 -1
  63. package/dist/UI/widgets/library/InquiryFindRecordsWidget/InquiryFindRecordsWidget.js +36 -13
  64. package/dist/UI/widgets/library/InquiryFindRecordsWidget/InquiryFindRecordsWidget.js.map +1 -1
  65. package/dist/UI/widgets/library/InquiryFindRecordsWidget/InquiryFindRecordsWidget.mjs +119 -62
  66. package/dist/UI/widgets/library/InquiryFindRecordsWidget/InquiryFindRecordsWidget.mjs.map +1 -1
  67. package/dist/UI/widgets/library/InquiryFindRecordsWidget/index.mjs +3 -2
  68. package/dist/UI/widgets/library/InquiryRecentRecordsWidget/InquiryRecentRecordsWidget.d.ts +9 -2
  69. package/dist/UI/widgets/library/InquiryRecentRecordsWidget/InquiryRecentRecordsWidget.d.ts.map +1 -1
  70. package/dist/UI/widgets/library/InquiryRecentRecordsWidget/InquiryRecentRecordsWidget.js +18 -18
  71. package/dist/UI/widgets/library/InquiryRecentRecordsWidget/InquiryRecentRecordsWidget.js.map +1 -1
  72. package/dist/UI/widgets/library/InquiryRecentRecordsWidget/InquiryRecentRecordsWidget.mjs +79 -67
  73. package/dist/UI/widgets/library/InquiryRecentRecordsWidget/InquiryRecentRecordsWidget.mjs.map +1 -1
  74. package/dist/UI/widgets/library/InquiryRemindersWidget/InquiryRemindersWidget.d.ts +8 -2
  75. package/dist/UI/widgets/library/InquiryRemindersWidget/InquiryRemindersWidget.d.ts.map +1 -1
  76. package/dist/UI/widgets/library/InquiryRemindersWidget/InquiryRemindersWidget.js +32 -16
  77. package/dist/UI/widgets/library/InquiryRemindersWidget/InquiryRemindersWidget.js.map +1 -1
  78. package/dist/UI/widgets/library/InquiryRemindersWidget/InquiryRemindersWidget.mjs +129 -102
  79. package/dist/UI/widgets/library/InquiryRemindersWidget/InquiryRemindersWidget.mjs.map +1 -1
  80. package/dist/UI/widgets/library/InquiryRemindersWidget/reminderRowModel.d.ts +3 -2
  81. package/dist/UI/widgets/library/InquiryRemindersWidget/reminderRowModel.d.ts.map +1 -1
  82. package/dist/UI/widgets/library/InquiryRemindersWidget/reminderRowModel.js +11 -12
  83. package/dist/UI/widgets/library/InquiryRemindersWidget/reminderRowModel.js.map +1 -1
  84. package/dist/UI/widgets/library/InquiryRemindersWidget/reminderRowModel.mjs +6 -4
  85. package/dist/UI/widgets/library/InquiryRemindersWidget/reminderRowModel.mjs.map +1 -1
  86. package/dist/UI/widgets/library/InquiryRemindersWidget/useInquiryReminders.d.ts +2 -19
  87. package/dist/UI/widgets/library/InquiryRemindersWidget/useInquiryReminders.d.ts.map +1 -1
  88. package/dist/UI/widgets/library/InquiryRemindersWidget/useInquiryReminders.js +4 -5
  89. package/dist/UI/widgets/library/InquiryRemindersWidget/useInquiryReminders.js.map +1 -1
  90. package/dist/UI/widgets/library/InquiryRemindersWidget/useInquiryReminders.mjs +5 -4
  91. package/dist/UI/widgets/library/InquiryRemindersWidget/useInquiryReminders.mjs.map +1 -1
  92. package/dist/actionPanels/index.d.ts +0 -2
  93. package/dist/actionPanels/index.d.ts.map +1 -1
  94. package/dist/actionPanels/index.js +0 -2
  95. package/dist/actionPanels/index.js.map +1 -1
  96. package/dist/actionPanels/panelActionFields.d.ts +9 -26
  97. package/dist/actionPanels/panelActionFields.d.ts.map +1 -1
  98. package/dist/actionPanels/panelActionFields.js +32 -55
  99. package/dist/actionPanels/panelActionFields.js.map +1 -1
  100. package/dist/actionPanels/panelActionFields.mjs +159 -375
  101. package/dist/actionPanels/panelActionFields.mjs.map +1 -1
  102. package/dist/actionPanels/panelOperations.d.ts +15 -41
  103. package/dist/actionPanels/panelOperations.d.ts.map +1 -1
  104. package/dist/actionPanels/panelOperations.js +51 -89
  105. package/dist/actionPanels/panelOperations.js.map +1 -1
  106. package/dist/actionPanels/panelOperations.mjs +37 -92
  107. package/dist/actionPanels/panelOperations.mjs.map +1 -1
  108. package/dist/aiAssistant/aiFeatures.d.ts +1 -1
  109. package/dist/aiAssistant/aiFeatures.d.ts.map +1 -1
  110. package/dist/aiAssistant/aiFeatures.js +5 -0
  111. package/dist/aiAssistant/aiFeatures.js.map +1 -1
  112. package/dist/aiAssistant/aiFeatures.mjs +5 -1
  113. package/dist/aiAssistant/aiFeatures.mjs.map +1 -1
  114. package/dist/dashboard/DashboardWidget.d.ts.map +1 -1
  115. package/dist/dashboard/DashboardWidget.js +1 -1
  116. package/dist/dashboard/DashboardWidget.js.map +1 -1
  117. package/dist/dashboard/DashboardWidget.mjs +24 -21
  118. package/dist/dashboard/DashboardWidget.mjs.map +1 -1
  119. package/dist/domain/actionPanel/actionTypeMeta.d.ts +15 -2
  120. package/dist/domain/actionPanel/actionTypeMeta.d.ts.map +1 -1
  121. package/dist/domain/actionPanel/actionTypeMeta.js +21 -2
  122. package/dist/domain/actionPanel/actionTypeMeta.js.map +1 -1
  123. package/dist/domain/actionPanel/actionTypeMeta.mjs +18 -3
  124. package/dist/domain/actionPanel/actionTypeMeta.mjs.map +1 -1
  125. package/dist/domain/actionPanel/buttonOrder.d.ts +67 -0
  126. package/dist/domain/actionPanel/buttonOrder.d.ts.map +1 -0
  127. package/dist/domain/actionPanel/buttonOrder.js +105 -0
  128. package/dist/domain/actionPanel/buttonOrder.js.map +1 -0
  129. package/dist/domain/actionPanel/buttonOrder.mjs +90 -0
  130. package/dist/domain/actionPanel/buttonOrder.mjs.map +1 -0
  131. package/dist/domain/actionPanel/index.d.ts +1 -0
  132. package/dist/domain/actionPanel/index.d.ts.map +1 -1
  133. package/dist/domain/actionPanel/index.js +1 -0
  134. package/dist/domain/actionPanel/index.js.map +1 -1
  135. package/dist/domain/actionPanel/index.mjs +4 -3
  136. package/dist/domain/actionPanel/serialize.d.ts +6 -2
  137. package/dist/domain/actionPanel/serialize.d.ts.map +1 -1
  138. package/dist/domain/actionPanel/serialize.js +10 -3
  139. package/dist/domain/actionPanel/serialize.js.map +1 -1
  140. package/dist/domain/actionPanel/serialize.mjs +7 -3
  141. package/dist/domain/actionPanel/serialize.mjs.map +1 -1
  142. package/dist/domain/actionPanel/types.d.ts +24 -8
  143. package/dist/domain/actionPanel/types.d.ts.map +1 -1
  144. package/dist/domain/actionPanel/types.js.map +1 -1
  145. package/dist/domain/actionPanel/types.mjs.map +1 -1
  146. package/dist/domain/inquiryTree/describe.d.ts +15 -3
  147. package/dist/domain/inquiryTree/describe.d.ts.map +1 -1
  148. package/dist/domain/inquiryTree/describe.js +32 -28
  149. package/dist/domain/inquiryTree/describe.js.map +1 -1
  150. package/dist/domain/inquiryTree/describe.mjs +34 -16
  151. package/dist/domain/inquiryTree/describe.mjs.map +1 -1
  152. package/dist/domain/inquiryTree/displayTree.d.ts +75 -97
  153. package/dist/domain/inquiryTree/displayTree.d.ts.map +1 -1
  154. package/dist/domain/inquiryTree/displayTree.js +418 -551
  155. package/dist/domain/inquiryTree/displayTree.js.map +1 -1
  156. package/dist/domain/inquiryTree/displayTree.mjs +345 -414
  157. package/dist/domain/inquiryTree/displayTree.mjs.map +1 -1
  158. package/dist/domain/inquiryTree/groups.d.ts +2 -0
  159. package/dist/domain/inquiryTree/groups.d.ts.map +1 -1
  160. package/dist/domain/inquiryTree/groups.js.map +1 -1
  161. package/dist/domain/inquiryTree/groups.mjs.map +1 -1
  162. package/dist/domain/inquiryTree/index.d.ts +1 -1
  163. package/dist/domain/inquiryTree/index.d.ts.map +1 -1
  164. package/dist/domain/inquiryTree/index.js +1 -1
  165. package/dist/domain/inquiryTree/index.js.map +1 -1
  166. package/dist/domain/inquiryTree/index.mjs +12 -12
  167. package/dist/domain/inquiryTree/lazyLoad.d.ts +20 -129
  168. package/dist/domain/inquiryTree/lazyLoad.d.ts.map +1 -1
  169. package/dist/domain/inquiryTree/lazyLoad.js +48 -233
  170. package/dist/domain/inquiryTree/lazyLoad.js.map +1 -1
  171. package/dist/domain/inquiryTree/lazyLoad.mjs +32 -187
  172. package/dist/domain/inquiryTree/lazyLoad.mjs.map +1 -1
  173. package/dist/domain/inquiryTree/legalChildren.d.ts +13 -14
  174. package/dist/domain/inquiryTree/legalChildren.d.ts.map +1 -1
  175. package/dist/domain/inquiryTree/legalChildren.js +21 -42
  176. package/dist/domain/inquiryTree/legalChildren.js.map +1 -1
  177. package/dist/domain/inquiryTree/legalChildren.mjs +19 -37
  178. package/dist/domain/inquiryTree/legalChildren.mjs.map +1 -1
  179. package/dist/domain/inquiryTree/names.d.ts +38 -0
  180. package/dist/domain/inquiryTree/names.d.ts.map +1 -0
  181. package/dist/domain/inquiryTree/names.js +64 -0
  182. package/dist/domain/inquiryTree/names.js.map +1 -0
  183. package/dist/domain/inquiryTree/names.mjs +56 -0
  184. package/dist/domain/inquiryTree/names.mjs.map +1 -0
  185. package/dist/domain/inquiryTree/operations.d.ts +6 -2
  186. package/dist/domain/inquiryTree/operations.d.ts.map +1 -1
  187. package/dist/domain/inquiryTree/operations.js +17 -16
  188. package/dist/domain/inquiryTree/operations.js.map +1 -1
  189. package/dist/domain/inquiryTree/operations.mjs +14 -11
  190. package/dist/domain/inquiryTree/operations.mjs.map +1 -1
  191. package/dist/domain/inquiryTree/rules.d.ts +3 -4
  192. package/dist/domain/inquiryTree/rules.d.ts.map +1 -1
  193. package/dist/domain/inquiryTree/rules.js +3 -13
  194. package/dist/domain/inquiryTree/rules.js.map +1 -1
  195. package/dist/domain/inquiryTree/rules.mjs +3 -9
  196. package/dist/domain/inquiryTree/rules.mjs.map +1 -1
  197. package/dist/domain/inquiryTree/runtime.d.ts +23 -16
  198. package/dist/domain/inquiryTree/runtime.d.ts.map +1 -1
  199. package/dist/domain/inquiryTree/runtime.js +46 -54
  200. package/dist/domain/inquiryTree/runtime.js.map +1 -1
  201. package/dist/domain/inquiryTree/runtime.mjs +31 -26
  202. package/dist/domain/inquiryTree/runtime.mjs.map +1 -1
  203. package/dist/domain/inquiryTree/serialize.d.ts +20 -29
  204. package/dist/domain/inquiryTree/serialize.d.ts.map +1 -1
  205. package/dist/domain/inquiryTree/serialize.js +93 -205
  206. package/dist/domain/inquiryTree/serialize.js.map +1 -1
  207. package/dist/domain/inquiryTree/serialize.mjs +89 -180
  208. package/dist/domain/inquiryTree/serialize.mjs.map +1 -1
  209. package/dist/domain/inquiryTree/types.d.ts +146 -65
  210. package/dist/domain/inquiryTree/types.d.ts.map +1 -1
  211. package/dist/domain/inquiryTree/types.js +5 -0
  212. package/dist/domain/inquiryTree/types.js.map +1 -1
  213. package/dist/domain/inquiryTree/types.mjs +3 -1
  214. package/dist/domain/inquiryTree/types.mjs.map +1 -1
  215. package/dist/domain/inquiryTree/validate.d.ts +9 -2
  216. package/dist/domain/inquiryTree/validate.d.ts.map +1 -1
  217. package/dist/domain/inquiryTree/validate.js +30 -58
  218. package/dist/domain/inquiryTree/validate.js.map +1 -1
  219. package/dist/domain/inquiryTree/validate.mjs +29 -44
  220. package/dist/domain/inquiryTree/validate.mjs.map +1 -1
  221. package/dist/domain/inquiryTree/view.d.ts +8 -12
  222. package/dist/domain/inquiryTree/view.d.ts.map +1 -1
  223. package/dist/domain/inquiryTree/view.js +40 -66
  224. package/dist/domain/inquiryTree/view.js.map +1 -1
  225. package/dist/domain/inquiryTree/view.mjs +30 -60
  226. package/dist/domain/inquiryTree/view.mjs.map +1 -1
  227. package/dist/domain/inquiryTree/waveLoad.d.ts +32 -48
  228. package/dist/domain/inquiryTree/waveLoad.d.ts.map +1 -1
  229. package/dist/domain/inquiryTree/waveLoad.js +75 -90
  230. package/dist/domain/inquiryTree/waveLoad.js.map +1 -1
  231. package/dist/domain/inquiryTree/waveLoad.mjs +54 -60
  232. package/dist/domain/inquiryTree/waveLoad.mjs.map +1 -1
  233. package/dist/domain/inquiryTree/wireString.d.ts +5 -0
  234. package/dist/domain/inquiryTree/wireString.d.ts.map +1 -1
  235. package/dist/domain/inquiryTree/wireString.js +11 -0
  236. package/dist/domain/inquiryTree/wireString.js.map +1 -1
  237. package/dist/domain/inquiryTree/wireString.mjs +10 -1
  238. package/dist/domain/inquiryTree/wireString.mjs.map +1 -1
  239. package/dist/domain/nodeView/index.mjs +2 -2
  240. package/dist/domain/nodeView/model.d.ts +35 -30
  241. package/dist/domain/nodeView/model.d.ts.map +1 -1
  242. package/dist/domain/nodeView/model.js +108 -69
  243. package/dist/domain/nodeView/model.js.map +1 -1
  244. package/dist/domain/nodeView/model.mjs +86 -36
  245. package/dist/domain/nodeView/model.mjs.map +1 -1
  246. package/dist/errorBoundary/ErrorBoundary.d.ts +17 -1
  247. package/dist/errorBoundary/ErrorBoundary.d.ts.map +1 -1
  248. package/dist/errorBoundary/ErrorBoundary.js +25 -21
  249. package/dist/errorBoundary/ErrorBoundary.js.map +1 -1
  250. package/dist/errorBoundary/ErrorBoundary.mjs +22 -34
  251. package/dist/errorBoundary/ErrorBoundary.mjs.map +1 -1
  252. package/dist/errorBoundary/ErrorBoundaryFallback.d.ts +10 -0
  253. package/dist/errorBoundary/ErrorBoundaryFallback.d.ts.map +1 -0
  254. package/dist/errorBoundary/ErrorBoundaryFallback.js +8 -0
  255. package/dist/errorBoundary/ErrorBoundaryFallback.js.map +1 -0
  256. package/dist/errorBoundary/ErrorBoundaryFallback.mjs +91 -0
  257. package/dist/errorBoundary/ErrorBoundaryFallback.mjs.map +1 -0
  258. package/dist/icons/legacyIconNames.d.ts.map +1 -1
  259. package/dist/icons/legacyIconNames.js +46 -1
  260. package/dist/icons/legacyIconNames.js.map +1 -1
  261. package/dist/icons/legacyIconNames.mjs +46 -1
  262. package/dist/icons/legacyIconNames.mjs.map +1 -1
  263. package/dist/index.mjs +19 -14
  264. package/dist/inquiry/Inquiry.d.ts +3 -0
  265. package/dist/inquiry/Inquiry.d.ts.map +1 -1
  266. package/dist/inquiry/Inquiry.js +3 -0
  267. package/dist/inquiry/Inquiry.js.map +1 -1
  268. package/dist/inquiry/Inquiry.mjs +3 -0
  269. package/dist/inquiry/Inquiry.mjs.map +1 -1
  270. package/dist/inquiry/InquiryContainer.d.ts.map +1 -1
  271. package/dist/inquiry/InquiryContainer.js +22 -21
  272. package/dist/inquiry/InquiryContainer.js.map +1 -1
  273. package/dist/inquiry/InquiryContainer.mjs +14 -10
  274. package/dist/inquiry/InquiryContainer.mjs.map +1 -1
  275. package/dist/inquiry/InquiryTreeMenu.d.ts.map +1 -1
  276. package/dist/inquiry/InquiryTreeMenu.js +14 -23
  277. package/dist/inquiry/InquiryTreeMenu.js.map +1 -1
  278. package/dist/inquiry/InquiryTreeMenu.mjs +20 -20
  279. package/dist/inquiry/InquiryTreeMenu.mjs.map +1 -1
  280. package/dist/inquiry/v2/InquiryV2.d.ts +8 -6
  281. package/dist/inquiry/v2/InquiryV2.d.ts.map +1 -1
  282. package/dist/inquiry/v2/InquiryV2.js +45 -24
  283. package/dist/inquiry/v2/InquiryV2.js.map +1 -1
  284. package/dist/inquiry/v2/InquiryV2.mjs +108 -61
  285. package/dist/inquiry/v2/InquiryV2.mjs.map +1 -1
  286. package/dist/inquiry/v2/InquiryV2.module.css +60 -15
  287. package/dist/inquiry/v2/InquiryWorkspace.d.ts +9 -9
  288. package/dist/inquiry/v2/InquiryWorkspace.d.ts.map +1 -1
  289. package/dist/inquiry/v2/InquiryWorkspace.js +531 -408
  290. package/dist/inquiry/v2/InquiryWorkspace.js.map +1 -1
  291. package/dist/inquiry/v2/InquiryWorkspace.mjs +524 -408
  292. package/dist/inquiry/v2/InquiryWorkspace.mjs.map +1 -1
  293. package/dist/inquiry/v2/ai/InquiryV2Copilot.d.ts +3 -2
  294. package/dist/inquiry/v2/ai/InquiryV2Copilot.d.ts.map +1 -1
  295. package/dist/inquiry/v2/ai/InquiryV2Copilot.js +20 -37
  296. package/dist/inquiry/v2/ai/InquiryV2Copilot.js.map +1 -1
  297. package/dist/inquiry/v2/ai/InquiryV2Copilot.mjs +19 -31
  298. package/dist/inquiry/v2/ai/InquiryV2Copilot.mjs.map +1 -1
  299. package/dist/inquiry/v2/ai/copilotModel.d.ts +6 -14
  300. package/dist/inquiry/v2/ai/copilotModel.d.ts.map +1 -1
  301. package/dist/inquiry/v2/ai/copilotModel.js +35 -87
  302. package/dist/inquiry/v2/ai/copilotModel.js.map +1 -1
  303. package/dist/inquiry/v2/ai/copilotModel.mjs +23 -47
  304. package/dist/inquiry/v2/ai/copilotModel.mjs.map +1 -1
  305. package/dist/inquiry/v2/api/queries.d.ts +46 -73
  306. package/dist/inquiry/v2/api/queries.d.ts.map +1 -1
  307. package/dist/inquiry/v2/api/queries.js +151 -210
  308. package/dist/inquiry/v2/api/queries.js.map +1 -1
  309. package/dist/inquiry/v2/api/queries.mjs +227 -183
  310. package/dist/inquiry/v2/api/queries.mjs.map +1 -1
  311. package/dist/inquiry/v2/capabilities/actions/ActionsCapability.d.ts.map +1 -1
  312. package/dist/inquiry/v2/capabilities/actions/ActionsCapability.js +103 -32
  313. package/dist/inquiry/v2/capabilities/actions/ActionsCapability.js.map +1 -1
  314. package/dist/inquiry/v2/capabilities/actions/ActionsCapability.mjs +92 -32
  315. package/dist/inquiry/v2/capabilities/actions/ActionsCapability.mjs.map +1 -1
  316. package/dist/inquiry/v2/capabilities/actions/ActionsCapability.module.css +8 -1
  317. package/dist/inquiry/v2/capabilities/actions/EntityFormSurface.d.ts +20 -16
  318. package/dist/inquiry/v2/capabilities/actions/EntityFormSurface.d.ts.map +1 -1
  319. package/dist/inquiry/v2/capabilities/actions/EntityFormSurface.js +111 -68
  320. package/dist/inquiry/v2/capabilities/actions/EntityFormSurface.js.map +1 -1
  321. package/dist/inquiry/v2/capabilities/actions/EntityFormSurface.mjs +108 -142
  322. package/dist/inquiry/v2/capabilities/actions/EntityFormSurface.mjs.map +1 -1
  323. package/dist/inquiry/v2/capabilities/actions/RetrieveSurface.mjs +1 -1
  324. package/dist/inquiry/v2/capabilities/actions/actionModel.d.ts +66 -50
  325. package/dist/inquiry/v2/capabilities/actions/actionModel.d.ts.map +1 -1
  326. package/dist/inquiry/v2/capabilities/actions/actionModel.js +141 -66
  327. package/dist/inquiry/v2/capabilities/actions/actionModel.js.map +1 -1
  328. package/dist/inquiry/v2/capabilities/actions/actionModel.mjs +115 -53
  329. package/dist/inquiry/v2/capabilities/actions/actionModel.mjs.map +1 -1
  330. package/dist/inquiry/v2/capabilities/actions/parentKeyDefaults.d.ts +26 -0
  331. package/dist/inquiry/v2/capabilities/actions/parentKeyDefaults.d.ts.map +1 -0
  332. package/dist/inquiry/v2/capabilities/actions/parentKeyDefaults.js +36 -0
  333. package/dist/inquiry/v2/capabilities/actions/parentKeyDefaults.js.map +1 -0
  334. package/dist/inquiry/v2/capabilities/actions/parentKeyDefaults.mjs +41 -0
  335. package/dist/inquiry/v2/capabilities/actions/parentKeyDefaults.mjs.map +1 -0
  336. package/dist/inquiry/v2/capabilities/actions/runAction.d.ts +3 -2
  337. package/dist/inquiry/v2/capabilities/actions/runAction.d.ts.map +1 -1
  338. package/dist/inquiry/v2/capabilities/actions/runAction.js +27 -23
  339. package/dist/inquiry/v2/capabilities/actions/runAction.js.map +1 -1
  340. package/dist/inquiry/v2/capabilities/actions/runAction.mjs +26 -20
  341. package/dist/inquiry/v2/capabilities/actions/runAction.mjs.map +1 -1
  342. package/dist/inquiry/v2/capabilities/actions/useHeaderFold.d.ts +20 -0
  343. package/dist/inquiry/v2/capabilities/actions/useHeaderFold.d.ts.map +1 -0
  344. package/dist/inquiry/v2/capabilities/actions/useHeaderFold.js +112 -0
  345. package/dist/inquiry/v2/capabilities/actions/useHeaderFold.js.map +1 -0
  346. package/dist/inquiry/v2/capabilities/actions/useHeaderFold.mjs +118 -0
  347. package/dist/inquiry/v2/capabilities/actions/useHeaderFold.mjs.map +1 -0
  348. package/dist/inquiry/v2/capabilities/actions/useSheetPanel.d.ts +25 -1
  349. package/dist/inquiry/v2/capabilities/actions/useSheetPanel.d.ts.map +1 -1
  350. package/dist/inquiry/v2/capabilities/actions/useSheetPanel.js +7 -4
  351. package/dist/inquiry/v2/capabilities/actions/useSheetPanel.js.map +1 -1
  352. package/dist/inquiry/v2/capabilities/actions/useSheetPanel.mjs +9 -4
  353. package/dist/inquiry/v2/capabilities/actions/useSheetPanel.mjs.map +1 -1
  354. package/dist/inquiry/v2/capabilities/alerts/AlertsCapability.d.ts +5 -3
  355. package/dist/inquiry/v2/capabilities/alerts/AlertsCapability.d.ts.map +1 -1
  356. package/dist/inquiry/v2/capabilities/alerts/AlertsCapability.js +11 -8
  357. package/dist/inquiry/v2/capabilities/alerts/AlertsCapability.js.map +1 -1
  358. package/dist/inquiry/v2/capabilities/alerts/AlertsCapability.mjs +13 -7
  359. package/dist/inquiry/v2/capabilities/alerts/AlertsCapability.mjs.map +1 -1
  360. package/dist/inquiry/v2/capabilities/alerts/AlertsCapability.module.css +4 -4
  361. package/dist/inquiry/v2/capabilities/header/HeaderCapability.d.ts +1 -1
  362. package/dist/inquiry/v2/capabilities/header/HeaderCapability.d.ts.map +1 -1
  363. package/dist/inquiry/v2/capabilities/header/HeaderCapability.js +20 -17
  364. package/dist/inquiry/v2/capabilities/header/HeaderCapability.js.map +1 -1
  365. package/dist/inquiry/v2/capabilities/header/HeaderCapability.mjs +101 -111
  366. package/dist/inquiry/v2/capabilities/header/HeaderCapability.mjs.map +1 -1
  367. package/dist/inquiry/v2/capabilities/header/HeaderCapability.module.css +9 -6
  368. package/dist/inquiry/v2/capabilities/tabs/TabsCapability.d.ts +2 -1
  369. package/dist/inquiry/v2/capabilities/tabs/TabsCapability.d.ts.map +1 -1
  370. package/dist/inquiry/v2/capabilities/tabs/TabsCapability.js +9 -2
  371. package/dist/inquiry/v2/capabilities/tabs/TabsCapability.js.map +1 -1
  372. package/dist/inquiry/v2/capabilities/tabs/TabsCapability.mjs +18 -15
  373. package/dist/inquiry/v2/capabilities/tabs/TabsCapability.mjs.map +1 -1
  374. package/dist/inquiry/v2/index.d.ts +0 -1
  375. package/dist/inquiry/v2/index.d.ts.map +1 -1
  376. package/dist/inquiry/v2/index.js.map +1 -1
  377. package/dist/inquiry/v2/kernel/ActionRunnerContext.d.ts +3 -3
  378. package/dist/inquiry/v2/kernel/ActionRunnerContext.d.ts.map +1 -1
  379. package/dist/inquiry/v2/kernel/ActionRunnerContext.js +11 -5
  380. package/dist/inquiry/v2/kernel/ActionRunnerContext.js.map +1 -1
  381. package/dist/inquiry/v2/kernel/ActionRunnerContext.mjs +15 -12
  382. package/dist/inquiry/v2/kernel/ActionRunnerContext.mjs.map +1 -1
  383. package/dist/inquiry/v2/kernel/ReadOnlyContext.d.ts +3 -0
  384. package/dist/inquiry/v2/kernel/ReadOnlyContext.d.ts.map +1 -0
  385. package/dist/inquiry/v2/kernel/ReadOnlyContext.js +14 -0
  386. package/dist/inquiry/v2/kernel/ReadOnlyContext.js.map +1 -0
  387. package/dist/inquiry/v2/kernel/ReadOnlyContext.mjs +20 -0
  388. package/dist/inquiry/v2/kernel/ReadOnlyContext.mjs.map +1 -0
  389. package/dist/inquiry/v2/kernel/RecordContext.d.ts +2 -0
  390. package/dist/inquiry/v2/kernel/RecordContext.d.ts.map +1 -1
  391. package/dist/inquiry/v2/kernel/RecordContext.js.map +1 -1
  392. package/dist/inquiry/v2/kernel/RecordContext.mjs.map +1 -1
  393. package/dist/inquiry/v2/kernel/UdpNodeView.d.ts.map +1 -1
  394. package/dist/inquiry/v2/kernel/UdpNodeView.js +18 -13
  395. package/dist/inquiry/v2/kernel/UdpNodeView.js.map +1 -1
  396. package/dist/inquiry/v2/kernel/UdpNodeView.mjs +177 -140
  397. package/dist/inquiry/v2/kernel/UdpNodeView.mjs.map +1 -1
  398. package/dist/inquiry/v2/kernel/UdpNodeView.module.css +56 -5
  399. package/dist/inquiry/v2/kernel/capabilities.d.ts +0 -2
  400. package/dist/inquiry/v2/kernel/capabilities.d.ts.map +1 -1
  401. package/dist/inquiry/v2/kernel/capabilities.js.map +1 -1
  402. package/dist/inquiry/v2/kernel/capabilities.mjs.map +1 -1
  403. package/dist/inquiry/v2/landing/InquiryExplorePage.d.ts +26 -37
  404. package/dist/inquiry/v2/landing/InquiryExplorePage.d.ts.map +1 -1
  405. package/dist/inquiry/v2/landing/InquiryExplorePage.js +48 -57
  406. package/dist/inquiry/v2/landing/InquiryExplorePage.js.map +1 -1
  407. package/dist/inquiry/v2/landing/InquiryExplorePage.mjs +102 -106
  408. package/dist/inquiry/v2/landing/InquiryExplorePage.mjs.map +1 -1
  409. package/dist/inquiry/v2/landing/InquiryExplorePage.module.css +58 -6
  410. package/dist/inquiry/v2/landing/InquiryLanding.d.ts +3 -3
  411. package/dist/inquiry/v2/landing/InquiryLanding.d.ts.map +1 -1
  412. package/dist/inquiry/v2/landing/InquiryLanding.js +8 -3
  413. package/dist/inquiry/v2/landing/InquiryLanding.js.map +1 -1
  414. package/dist/inquiry/v2/landing/InquiryLanding.mjs +51 -35
  415. package/dist/inquiry/v2/landing/InquiryLanding.mjs.map +1 -1
  416. package/dist/inquiry/v2/landing/InquiryLanding.module.css +8 -0
  417. package/dist/inquiry/v2/page/UdpPageRenderer.d.ts +5 -1
  418. package/dist/inquiry/v2/page/UdpPageRenderer.d.ts.map +1 -1
  419. package/dist/inquiry/v2/page/UdpPageRenderer.js +13 -1
  420. package/dist/inquiry/v2/page/UdpPageRenderer.js.map +1 -1
  421. package/dist/inquiry/v2/page/UdpPageRenderer.mjs +36 -7
  422. package/dist/inquiry/v2/page/UdpPageRenderer.mjs.map +1 -1
  423. package/dist/inquiry/v2/search/InquirySearchPanel.d.ts +1 -7
  424. package/dist/inquiry/v2/search/InquirySearchPanel.d.ts.map +1 -1
  425. package/dist/inquiry/v2/search/InquirySearchPanel.js +6 -13
  426. package/dist/inquiry/v2/search/InquirySearchPanel.js.map +1 -1
  427. package/dist/inquiry/v2/search/InquirySearchPanel.mjs +4 -8
  428. package/dist/inquiry/v2/search/InquirySearchPanel.mjs.map +1 -1
  429. package/dist/inquiry/v2/search/RecordFinder.d.ts +30 -1
  430. package/dist/inquiry/v2/search/RecordFinder.d.ts.map +1 -1
  431. package/dist/inquiry/v2/search/RecordFinder.js +43 -20
  432. package/dist/inquiry/v2/search/RecordFinder.js.map +1 -1
  433. package/dist/inquiry/v2/search/RecordFinder.mjs +68 -42
  434. package/dist/inquiry/v2/search/RecordFinder.mjs.map +1 -1
  435. package/dist/inquiry/v2/search/index.d.ts +3 -3
  436. package/dist/inquiry/v2/search/index.d.ts.map +1 -1
  437. package/dist/inquiry/v2/search/index.js +1 -1
  438. package/dist/inquiry/v2/search/index.js.map +1 -1
  439. package/dist/inquiry/v2/search/searchModel.d.ts +130 -23
  440. package/dist/inquiry/v2/search/searchModel.d.ts.map +1 -1
  441. package/dist/inquiry/v2/search/searchModel.js +237 -36
  442. package/dist/inquiry/v2/search/searchModel.js.map +1 -1
  443. package/dist/inquiry/v2/search/searchModel.mjs +207 -34
  444. package/dist/inquiry/v2/search/searchModel.mjs.map +1 -1
  445. package/dist/inquiry/v2/search/useInquirySearch.d.ts.map +1 -1
  446. package/dist/inquiry/v2/search/useInquirySearch.js +46 -19
  447. package/dist/inquiry/v2/search/useInquirySearch.js.map +1 -1
  448. package/dist/inquiry/v2/search/useInquirySearch.mjs +83 -84
  449. package/dist/inquiry/v2/search/useInquirySearch.mjs.map +1 -1
  450. package/dist/inquiry/v2/tree/InquiryFluentTreeMenu.d.ts +4 -1
  451. package/dist/inquiry/v2/tree/InquiryFluentTreeMenu.d.ts.map +1 -1
  452. package/dist/inquiry/v2/tree/InquiryFluentTreeMenu.js +174 -166
  453. package/dist/inquiry/v2/tree/InquiryFluentTreeMenu.js.map +1 -1
  454. package/dist/inquiry/v2/tree/InquiryFluentTreeMenu.mjs +343 -325
  455. package/dist/inquiry/v2/tree/InquiryFluentTreeMenu.mjs.map +1 -1
  456. package/dist/inquiry/v2/tree/InquiryMenuToolbar.d.ts +3 -1
  457. package/dist/inquiry/v2/tree/InquiryMenuToolbar.d.ts.map +1 -1
  458. package/dist/inquiry/v2/tree/InquiryMenuToolbar.js +8 -7
  459. package/dist/inquiry/v2/tree/InquiryMenuToolbar.js.map +1 -1
  460. package/dist/inquiry/v2/tree/InquiryMenuToolbar.mjs +68 -72
  461. package/dist/inquiry/v2/tree/InquiryMenuToolbar.mjs.map +1 -1
  462. package/dist/inquiry/v2/tree/LoadRecordDialog.d.ts +3 -3
  463. package/dist/inquiry/v2/tree/LoadRecordDialog.d.ts.map +1 -1
  464. package/dist/inquiry/v2/tree/LoadRecordDialog.js +12 -7
  465. package/dist/inquiry/v2/tree/LoadRecordDialog.js.map +1 -1
  466. package/dist/inquiry/v2/tree/LoadRecordDialog.mjs +48 -33
  467. package/dist/inquiry/v2/tree/LoadRecordDialog.mjs.map +1 -1
  468. package/dist/inquiry/v2/tree/NodeList.d.ts.map +1 -1
  469. package/dist/inquiry/v2/tree/NodeList.js +17 -6
  470. package/dist/inquiry/v2/tree/NodeList.js.map +1 -1
  471. package/dist/inquiry/v2/tree/NodeList.mjs +49 -36
  472. package/dist/inquiry/v2/tree/NodeList.mjs.map +1 -1
  473. package/dist/inquiry/v2/tree/arrivalModel.d.ts +15 -0
  474. package/dist/inquiry/v2/tree/arrivalModel.d.ts.map +1 -1
  475. package/dist/inquiry/v2/tree/arrivalModel.js +14 -1
  476. package/dist/inquiry/v2/tree/arrivalModel.js.map +1 -1
  477. package/dist/inquiry/v2/tree/arrivalModel.mjs +12 -1
  478. package/dist/inquiry/v2/tree/arrivalModel.mjs.map +1 -1
  479. package/dist/inquiry/v2/tree/branchRefreshModel.d.ts +32 -0
  480. package/dist/inquiry/v2/tree/branchRefreshModel.d.ts.map +1 -0
  481. package/dist/inquiry/v2/tree/branchRefreshModel.js +62 -0
  482. package/dist/inquiry/v2/tree/branchRefreshModel.js.map +1 -0
  483. package/dist/inquiry/v2/tree/branchRefreshModel.mjs +60 -0
  484. package/dist/inquiry/v2/tree/branchRefreshModel.mjs.map +1 -0
  485. package/dist/inquiry/v2/tree/droppedPageModel.d.ts +23 -1
  486. package/dist/inquiry/v2/tree/droppedPageModel.d.ts.map +1 -1
  487. package/dist/inquiry/v2/tree/droppedPageModel.js +53 -26
  488. package/dist/inquiry/v2/tree/droppedPageModel.js.map +1 -1
  489. package/dist/inquiry/v2/tree/droppedPageModel.mjs +48 -20
  490. package/dist/inquiry/v2/tree/droppedPageModel.mjs.map +1 -1
  491. package/dist/inquiry/v2/tree/fluentTreeMenu/treeMenuVisuals.d.ts +7 -12
  492. package/dist/inquiry/v2/tree/fluentTreeMenu/treeMenuVisuals.d.ts.map +1 -1
  493. package/dist/inquiry/v2/tree/fluentTreeMenu/treeMenuVisuals.js +44 -15
  494. package/dist/inquiry/v2/tree/fluentTreeMenu/treeMenuVisuals.js.map +1 -1
  495. package/dist/inquiry/v2/tree/fluentTreeMenu/treeMenuVisuals.mjs +34 -15
  496. package/dist/inquiry/v2/tree/fluentTreeMenu/treeMenuVisuals.mjs.map +1 -1
  497. package/dist/inquiry/v2/tree/fluentTreeMenu/useAggregateBadges.d.ts.map +1 -1
  498. package/dist/inquiry/v2/tree/fluentTreeMenu/useAggregateBadges.js +7 -18
  499. package/dist/inquiry/v2/tree/fluentTreeMenu/useAggregateBadges.js.map +1 -1
  500. package/dist/inquiry/v2/tree/fluentTreeMenu/useAggregateBadges.mjs +6 -14
  501. package/dist/inquiry/v2/tree/fluentTreeMenu/useAggregateBadges.mjs.map +1 -1
  502. package/dist/inquiry/v2/tree/fluentTreeMenu/useChildCountBadges.d.ts +20 -16
  503. package/dist/inquiry/v2/tree/fluentTreeMenu/useChildCountBadges.d.ts.map +1 -1
  504. package/dist/inquiry/v2/tree/fluentTreeMenu/useChildCountBadges.js +77 -55
  505. package/dist/inquiry/v2/tree/fluentTreeMenu/useChildCountBadges.js.map +1 -1
  506. package/dist/inquiry/v2/tree/fluentTreeMenu/useChildCountBadges.mjs +85 -106
  507. package/dist/inquiry/v2/tree/fluentTreeMenu/useChildCountBadges.mjs.map +1 -1
  508. package/dist/inquiry/v2/tree/lineageModel.d.ts +18 -1
  509. package/dist/inquiry/v2/tree/lineageModel.d.ts.map +1 -1
  510. package/dist/inquiry/v2/tree/lineageModel.js +71 -2
  511. package/dist/inquiry/v2/tree/lineageModel.js.map +1 -1
  512. package/dist/inquiry/v2/tree/lineageModel.mjs +53 -3
  513. package/dist/inquiry/v2/tree/lineageModel.mjs.map +1 -1
  514. package/dist/inquiry/v2/tree/menuRebuildModel.d.ts +10 -27
  515. package/dist/inquiry/v2/tree/menuRebuildModel.d.ts.map +1 -1
  516. package/dist/inquiry/v2/tree/menuRebuildModel.js +8 -58
  517. package/dist/inquiry/v2/tree/menuRebuildModel.js.map +1 -1
  518. package/dist/inquiry/v2/tree/menuRebuildModel.mjs +8 -51
  519. package/dist/inquiry/v2/tree/menuRebuildModel.mjs.map +1 -1
  520. package/dist/inquiry/v2/tree/pagedChildrenModel.d.ts +26 -0
  521. package/dist/inquiry/v2/tree/pagedChildrenModel.d.ts.map +1 -0
  522. package/dist/inquiry/v2/tree/pagedChildrenModel.js +56 -0
  523. package/dist/inquiry/v2/tree/pagedChildrenModel.js.map +1 -0
  524. package/dist/inquiry/v2/tree/pagedChildrenModel.mjs +43 -0
  525. package/dist/inquiry/v2/tree/pagedChildrenModel.mjs.map +1 -0
  526. package/dist/inquiry/v2/tree/rootRemovalModel.d.ts +7 -0
  527. package/dist/inquiry/v2/tree/rootRemovalModel.d.ts.map +1 -1
  528. package/dist/inquiry/v2/tree/rootRemovalModel.js +31 -5
  529. package/dist/inquiry/v2/tree/rootRemovalModel.js.map +1 -1
  530. package/dist/inquiry/v2/tree/rootRemovalModel.mjs +21 -4
  531. package/dist/inquiry/v2/tree/rootRemovalModel.mjs.map +1 -1
  532. package/dist/inquiry/v2/tree/treeFilterModel.d.ts +0 -2
  533. package/dist/inquiry/v2/tree/treeFilterModel.d.ts.map +1 -1
  534. package/dist/inquiry/v2/tree/treeFilterModel.js +0 -7
  535. package/dist/inquiry/v2/tree/treeFilterModel.js.map +1 -1
  536. package/dist/inquiry/v2/tree/treeFilterModel.mjs.map +1 -1
  537. package/dist/inquiry/v2/tree/useInquiryMenu.d.ts +16 -7
  538. package/dist/inquiry/v2/tree/useInquiryMenu.d.ts.map +1 -1
  539. package/dist/inquiry/v2/tree/useInquiryMenu.js +401 -163
  540. package/dist/inquiry/v2/tree/useInquiryMenu.js.map +1 -1
  541. package/dist/inquiry/v2/tree/useInquiryMenu.mjs +511 -310
  542. package/dist/inquiry/v2/tree/useInquiryMenu.mjs.map +1 -1
  543. package/dist/inquiry/v2/tree/waveLoader.d.ts +10 -11
  544. package/dist/inquiry/v2/tree/waveLoader.d.ts.map +1 -1
  545. package/dist/inquiry/v2/tree/waveLoader.js +78 -72
  546. package/dist/inquiry/v2/tree/waveLoader.js.map +1 -1
  547. package/dist/inquiry/v2/tree/waveLoader.mjs +79 -68
  548. package/dist/inquiry/v2/tree/waveLoader.mjs.map +1 -1
  549. package/dist/inquiry/v2/widgets/listRow.module.css +27 -0
  550. package/dist/inquiry/v2/widgets/widgetRowModel.d.ts +6 -2
  551. package/dist/inquiry/v2/widgets/widgetRowModel.d.ts.map +1 -1
  552. package/dist/inquiry/v2/widgets/widgetRowModel.js +49 -14
  553. package/dist/inquiry/v2/widgets/widgetRowModel.js.map +1 -1
  554. package/dist/inquiry/v2/widgets/widgetRowModel.mjs +36 -12
  555. package/dist/inquiry/v2/widgets/widgetRowModel.mjs.map +1 -1
  556. package/dist/maintenance/UdpTaggedRecordsPage.mjs +1 -1
  557. package/dist/maintenance/api/lookupApi.mjs +1 -1
  558. package/dist/maintenance/api/tagsApi.mjs +1 -1
  559. package/dist/maintenance/config/nodeDefaults.d.ts.map +1 -1
  560. package/dist/maintenance/config/nodeDefaults.js +16 -5
  561. package/dist/maintenance/config/nodeDefaults.js.map +1 -1
  562. package/dist/maintenance/config/nodeDefaults.mjs +14 -5
  563. package/dist/maintenance/config/nodeDefaults.mjs.map +1 -1
  564. package/dist/maintenance/config/useEntityConfig.mjs +1 -1
  565. package/dist/maintenance/config/useLinkedLabels.mjs +1 -1
  566. package/dist/maintenance/grid/MaintenanceGrid.mjs +1 -1
  567. package/dist/maintenance/metadata/useEntityMetadata.mjs +1 -1
  568. package/dist/maintenance/record/ChildTab.mjs +1 -1
  569. package/dist/maintenance/record/DeleteRecordDialog.mjs +1 -1
  570. package/dist/maintenance/record/LinkRecordsSheet.mjs +1 -1
  571. package/dist/maintenance/record/RecordFacts.mjs +1 -1
  572. package/dist/maintenance/record/RecordSheet.mjs +2 -2
  573. package/dist/maintenance/record/displayValue.mjs +1 -1
  574. package/dist/maintenance/record/stampDisplayText.mjs +1 -1
  575. package/dist/maintenance/settings/UdpEntitySettingsPage.d.ts.map +1 -1
  576. package/dist/maintenance/settings/UdpEntitySettingsPage.js +3 -0
  577. package/dist/maintenance/settings/UdpEntitySettingsPage.js.map +1 -1
  578. package/dist/maintenance/settings/UdpEntitySettingsPage.mjs +2 -0
  579. package/dist/maintenance/settings/UdpEntitySettingsPage.mjs.map +1 -1
  580. package/dist/maintenance/settings/useEntityCatalog.mjs +1 -1
  581. package/dist/maintenanceEngine/tableBrowser/TableColumnDefs.d.ts +4 -5
  582. package/dist/maintenanceEngine/tableBrowser/TableColumnDefs.d.ts.map +1 -1
  583. package/dist/page/PageContainer/PageContainer.d.ts.map +1 -1
  584. package/dist/page/PageContainer/PageContainer.js +4 -11
  585. package/dist/page/PageContainer/PageContainer.js.map +1 -1
  586. package/dist/page/PageContainer/PageContainer.mjs +39 -50
  587. package/dist/page/PageContainer/PageContainer.mjs.map +1 -1
  588. package/dist/stores/inquiryStore.d.ts +2 -1
  589. package/dist/stores/inquiryStore.d.ts.map +1 -1
  590. package/dist/stores/inquiryStore.js +4 -3
  591. package/dist/stores/inquiryStore.js.map +1 -1
  592. package/dist/stores/inquiryStore.mjs +18 -11
  593. package/dist/stores/inquiryStore.mjs.map +1 -1
  594. package/dist/udp/extraFields/useExtraFieldsGridConfig.d.ts +3 -2
  595. package/dist/udp/extraFields/useExtraFieldsGridConfig.d.ts.map +1 -1
  596. package/dist/udp/extraFields/useExtraFieldsGridConfig.js +7 -6
  597. package/dist/udp/extraFields/useExtraFieldsGridConfig.js.map +1 -1
  598. package/dist/udp/extraFields/useExtraFieldsGridConfig.mjs +27 -22
  599. package/dist/udp/extraFields/useExtraFieldsGridConfig.mjs.map +1 -1
  600. package/dist/udp/fileImportMapping/FileImportMappingWizard.d.ts.map +1 -1
  601. package/dist/udp/fileImportMapping/FileImportMappingWizard.js +4 -4
  602. package/dist/udp/fileImportMapping/FileImportMappingWizard.js.map +1 -1
  603. package/dist/udp/fileImportMapping/FileImportMappingWizard.mjs +10 -9
  604. package/dist/udp/fileImportMapping/FileImportMappingWizard.mjs.map +1 -1
  605. package/dist/udp/pages/UdpMaintenanceEnginePage/UdpMaintenanceEnginePage.d.ts.map +1 -1
  606. package/dist/udp/pages/UdpMaintenanceEnginePage/UdpMaintenanceEnginePage.js +1 -1
  607. package/dist/udp/pages/UdpMaintenanceEnginePage/UdpMaintenanceEnginePage.js.map +1 -1
  608. package/dist/udp/pages/UdpMaintenanceEnginePage/UdpMaintenanceEnginePage.mjs +2 -1
  609. package/dist/udp/pages/UdpMaintenanceEnginePage/UdpMaintenanceEnginePage.mjs.map +1 -1
  610. package/dist/udp/pages/UdpMaintenanceEnginePage/components/EntitiyTimeLine.mjs +1 -1
  611. package/dist/udp/pages/UdpTransactionsPage/components/DynamicTransactionDomainForm.d.ts.map +1 -1
  612. package/dist/udp/pages/UdpTransactionsPage/components/DynamicTransactionDomainForm.js +84 -27
  613. package/dist/udp/pages/UdpTransactionsPage/components/DynamicTransactionDomainForm.js.map +1 -1
  614. package/dist/udp/pages/UdpTransactionsPage/components/DynamicTransactionDomainForm.mjs +53 -23
  615. package/dist/udp/pages/UdpTransactionsPage/components/DynamicTransactionDomainForm.mjs.map +1 -1
  616. package/dist/udp/pages/UdpTransactionsPage/components/DynamicTransactionDomainFormFields.d.ts.map +1 -1
  617. package/dist/udp/pages/UdpTransactionsPage/components/DynamicTransactionDomainFormFields.js +45 -32
  618. package/dist/udp/pages/UdpTransactionsPage/components/DynamicTransactionDomainFormFields.js.map +1 -1
  619. package/dist/udp/pages/UdpTransactionsPage/components/DynamicTransactionDomainFormFields.mjs +27 -33
  620. package/dist/udp/pages/UdpTransactionsPage/components/DynamicTransactionDomainFormFields.mjs.map +1 -1
  621. package/dist/udp/pages/UdpTranslationsPage/UdpTranslationsPage.d.ts.map +1 -1
  622. package/dist/udp/pages/UdpTranslationsPage/UdpTranslationsPage.js +14 -16
  623. package/dist/udp/pages/UdpTranslationsPage/UdpTranslationsPage.js.map +1 -1
  624. package/dist/udp/pages/UdpTranslationsPage/UdpTranslationsPage.mjs +2 -4
  625. package/dist/udp/pages/UdpTranslationsPage/UdpTranslationsPage.mjs.map +1 -1
  626. package/dist/udp/utilities/useDateStringColumnDef.d.ts +1 -1
  627. package/dist/utilities/i18n/locales/es-US.json +24 -9
  628. package/dist/utilities/i18n/locales/es-US.mjs +25 -8
  629. package/dist/utilities/i18n/locales/fr-CA.json +24 -9
  630. package/dist/utilities/i18n/locales/fr-CA.mjs +25 -8
  631. package/dist/utilities/tree/TreeUtilities.d.ts +10 -10
  632. package/dist/utilities/tree/TreeUtilities.d.ts.map +1 -1
  633. package/dist/utilities/tree/TreeUtilities.js +41 -58
  634. package/dist/utilities/tree/TreeUtilities.js.map +1 -1
  635. package/dist/utilities/tree/TreeUtilities.mjs +32 -41
  636. package/dist/utilities/tree/TreeUtilities.mjs.map +1 -1
  637. package/dist/utilities/tree/lazyLevels.d.ts +32 -0
  638. package/dist/utilities/tree/lazyLevels.d.ts.map +1 -0
  639. package/dist/utilities/tree/lazyLevels.js +25 -0
  640. package/dist/utilities/tree/lazyLevels.js.map +1 -0
  641. package/dist/utilities/tree/lazyLevels.mjs +16 -0
  642. package/dist/utilities/tree/lazyLevels.mjs.map +1 -0
  643. package/dist/utilities/types.d.ts +4 -4
  644. package/dist/utilities/types.d.ts.map +1 -1
  645. package/package.json +62 -18
  646. package/dist/actionPanels/PanelActionForm.d.ts +0 -56
  647. package/dist/actionPanels/PanelActionForm.d.ts.map +0 -1
  648. package/dist/actionPanels/PanelActionForm.js +0 -30
  649. package/dist/actionPanels/PanelActionForm.js.map +0 -1
  650. package/dist/actionPanels/PanelActionForm.mjs +0 -168
  651. package/dist/actionPanels/PanelActionForm.mjs.map +0 -1
  652. package/dist/actionPanels/PanelEditor.d.ts +0 -44
  653. package/dist/actionPanels/PanelEditor.d.ts.map +0 -1
  654. package/dist/actionPanels/PanelEditor.js +0 -78
  655. package/dist/actionPanels/PanelEditor.js.map +0 -1
  656. package/dist/actionPanels/PanelEditor.mjs +0 -345
  657. package/dist/actionPanels/PanelEditor.mjs.map +0 -1
  658. package/dist/actionPanels/panelActionFields.module.css +0 -18
  659. package/dist/domain/inquiryTree/ruleBindings.d.ts +0 -10
  660. package/dist/domain/inquiryTree/ruleBindings.d.ts.map +0 -1
  661. package/dist/domain/inquiryTree/ruleBindings.js +0 -20
  662. package/dist/domain/inquiryTree/ruleBindings.js.map +0 -1
  663. package/dist/domain/inquiryTree/ruleBindings.mjs +0 -21
  664. package/dist/domain/inquiryTree/ruleBindings.mjs.map +0 -1
  665. package/dist/inquiry/v2/kernel/readOnlyModel.d.ts +0 -17
  666. package/dist/inquiry/v2/kernel/readOnlyModel.d.ts.map +0 -1
  667. package/dist/inquiry/v2/kernel/readOnlyModel.js +0 -19
  668. package/dist/inquiry/v2/kernel/readOnlyModel.js.map +0 -1
  669. package/dist/inquiry/v2/kernel/readOnlyModel.mjs +0 -21
  670. package/dist/inquiry/v2/kernel/readOnlyModel.mjs.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"useInquiryMenu.mjs","names":["useCallback","useEffect","useMemo","useRef","useState","buildDisplayNodeForRecord","buildDisplayTree","buildPreloadedDisplayList","buildRecordEntryFilterElements","getSearchIdentifiers","getSearchValueString","CatalogObject","PromotedEntity","resolveRowLabel","DisplayNode","TreeNode","findNodeById","findRecordParent","locateNodeById","preserveMenuWorkspace","restampMenuRecords","removeRootFromMenus","firstRecordId","locateRecordByKey","reselectAfterRebuild","InquiryMenu","setExpandedDeep","node","expanded","cachedOnly","properties","isExpanded","children","forEach","child","buildIdentifierFilterElements","catalogObjects","entityName","row","Record","Array","length","identifiers","toString","LoadRecordResult","rootId","nodeId","label","alreadyLoaded","LoadRecordOutcome","UseInquiryMenuArgs","seed","rows","promotedEntities","autoSelectFirst","useInquiryMenu","t0","$","_c","t1","undefined","t2","makeId","_temp","loadMode","const","buildOptions","t3","Symbol","for","menuList","setMenuList","selectedId","setSelectedId","t4","location","selectedNode","selectedRoot","root","t5","menuIndex","selectedParent","t6","built","isArray","buildSeededList","t7","menuListRef","t8","t9","current","t10","loadedRootsRef","t11","droppedPagesRef","selectedIdRef","t12","t13","t14","t15","previous","list","fresh","loadedRoots","droppedPages","t16","nodeObj","isGroupNode","String","id","handleSelectNode","t17","selectNodeById","t18","configNode","key","businessObjectKey","existing","subtree","built_0","pages","previous_0","map","menu","index","loadRecord","t19","page","some","candidate_0","candidate","previous_1","menu_0","root_0","previous_2","showDroppedPage","t20","rows_0","previous_3","node_0","row_0","configNode_0","configNodeId","wasLazyLoaded","restampRecords","t21","_temp5","expandAll","t22","nodeId_0","target","menu_3","root_2","expandPath","node_1","onPath","previous_5","next_0","_temp6","next","menu_5","root_3","expandNode","t23","_temp0","collapseAll","t24","outcome","removed","menus","filter","root_5","root_6","selectedNodeId","removeRoot","expansionSnapshotRef","t25","ids","wanted","Set","previous_7","needsWork","check","node_2","has","menu_8","snapshot","Map","record","node_3","set","menu_9","next_2","_temp1","open","node_4","menu_11","expandForFilter","t26","snapshot_0","previous_8","next_3","_temp10","apply","node_5","was","get","menu_13","restoreExpansion","t27","list_0","resetTree","t28","crypto","randomUUID","_temp2","menu_1","structuredClone","_temp3","root_1","_temp4","menu_2","previous_4","menu_4","_temp7","menu_6","_temp8","root_4","_temp9","menu_7","previous_6","next_1","menu_10","menu_12"],"sources":["../../../../src/inquiry/v2/tree/useInquiryMenu.ts"],"sourcesContent":["/**\n * Menu-list state for the v2 inquiry tree pane — the one owner of what the\n * shared NodeList/InquiryFluentTreeMenu renders and which display node the\n * kernel shows.\n *\n * A MENU IS A LIST OF ROOTS, not a single root. The tree's whole root-record\n * page is ONE menu whose roots render as siblings at depth 0, so the tree pane\n * mounts one InquiryFluentTreeMenu (one set of badge hooks, one drag session,\n * one expand/collapse bookkeeping) instead of one per record. menuList stays a\n * list because the workspace genuinely holds several menus: a search-loaded\n * record is prepended as its own single-root menu (v1's load-record UX), as\n * are Move-to-top associated trees.\n *\n * Composition follows the Tree Builder preview's live-menu path: the nested\n * seed (makeDisplayTreeStructure output, built once by the caller from the\n * detailed tree) + the root-record page → buildPreloadedDisplayList, so root\n * group configuration, icons, and lazy-child descriptors are all stamped by the\n * domain pipeline. `rows` arrive WAVE-HYDRATED (v2/tree/waveLoader): every\n * eager level's records are already grafted onto their parent row, so the\n * composer builds them without a second thought. Lazy levels page in through\n * the menu's injected `loadChildren` and report mutations via setMenuList.\n *\n * Selection is held as a display id and everything else — its menu, root,\n * node and record parent — is DERIVED from the current menu list\n * (selectionModel), so lazy-load mutations (which clone-and-replace roots) never\n * leave the kernel holding a stale node object, and no change to the list's\n * structure has to patch the selection.\n *\n * A REBUILD (root-page refetch, catalog arrival) IS NOT A RESET. It re-selects\n * the same record by businessObjectKey and carries the rest of the workspace\n * across through menuRebuildModel — the roots the user loaded in, and how far\n * they had opened the tree. Only `resetTree` throws that away. A mutation on a\n * CHILD record leaves the root page answering identically, so no rebuild fires\n * at all: `restampRecords` is what re-reads that record into the rows holding it.\n *\n * Loaded records graft through the same pipeline: the searched entity's config\n * node is located in the nested seed and buildDisplayTree composes its subtree\n * for the picked row; the built root is APPENDED to the first menu's root list\n * (deduped by businessObjectKey — loading an already-listed record just selects\n * it). Existing rows never move: their order is the query's orderElements.\n * Loaded roots live until they are removed, or the tree is reset.\n */\nimport { useCallback, useEffect, useMemo, useRef, useState } from 'react';\nimport {\n buildDisplayNodeForRecord,\n buildDisplayTree,\n buildPreloadedDisplayList\n} from '../../../domain/inquiryTree';\nimport {\n buildRecordEntryFilterElements,\n getSearchIdentifiers,\n getSearchValueString\n} from '../../../domain/inquiryTree';\nimport type {\n CatalogObject,\n PromotedEntity\n} from '../../../domain/inquiryTree';\nimport { resolveRowLabel } from '../../../domain/inquiryTree/displayTree';\nimport type { DisplayNode } from '../../../domain/inquiryTree/displayTree';\nimport type { TreeNode } from '../../../domain/inquiryTree/types';\nimport { findNodeById, findRecordParent, locateNodeById } from './lineageModel';\nimport { preserveMenuWorkspace, restampMenuRecords } from './menuRebuildModel';\nimport { removeRootFromMenus } from './rootRemovalModel';\nimport {\n firstRecordId,\n locateRecordByKey,\n reselectAfterRebuild\n} from './selectionModel';\n\n/** One menu = the roots it renders as depth-0 siblings. */\nexport type InquiryMenu = DisplayNode[];\n\n/**\n * v1's expandAllNodes/collapseAllNodes walk. `cachedOnly` skips lazy levels\n * whose children haven't loaded, so expand-all never triggers a fetch storm —\n * unloaded lazy folders stay collapsed until the user opens them.\n * (`properties.lazyLoad` here is the DISPLAY marker the composer stamps on rows\n * that have an unloaded level, not the retired wire flag.)\n */\nconst setExpandedDeep = (\n node: DisplayNode,\n expanded: boolean,\n cachedOnly: boolean\n): void => {\n if (\n cachedOnly &&\n node.properties?.['lazyLoad'] &&\n !node['completedLoadingChildren']\n ) {\n return;\n }\n node.isExpanded = expanded;\n (node.children ?? []).forEach((child) =>\n setExpandedDeep(child, expanded, cachedOnly)\n );\n};\n\n/**\n * Identifier `=` filters for a row — the load-record refetch recipe. Same\n * builder the URL deep link uses (`?nodeSearch=` is literally this row's\n * comma-joined identifier values), so a link and a click resolve identically.\n */\nexport const buildIdentifierFilterElements = (\n catalogObjects: CatalogObject[] | undefined,\n entityName: string,\n row: Record<string, unknown>\n): Array<Record<string, unknown>> => {\n if (!catalogObjects?.length || !entityName) return [];\n const identifiers = getSearchIdentifiers(catalogObjects, entityName) ?? [];\n if (!identifiers.length) return [];\n return buildRecordEntryFilterElements(\n identifiers,\n getSearchValueString(row, identifiers.toString())\n );\n};\n\n/** What `loadRecord` did, so the caller can word its toast. */\nexport interface LoadRecordResult {\n /** The root the record lives under (what Remove would drop). */\n rootId: string;\n /** The row that became the selection. */\n nodeId: string;\n /**\n * The record's DISPLAY label, read off the node that was actually built — the\n * same string the tree row shows. Callers must never re-derive it from raw\n * columns; that is how a GUID reaches the user.\n */\n label: string;\n /** True when the record was already a root and was selected, not added. */\n alreadyLoaded: boolean;\n}\n\nexport type LoadRecordOutcome = LoadRecordResult | null;\n\nexport interface UseInquiryMenuArgs {\n /** Nested display seed — makeDisplayTreeStructure(tree.treeStructure)[0]. */\n seed: DisplayNode | null;\n /** The root-record page (useRootRecords rows). */\n rows: Array<Record<string, unknown>> | undefined;\n catalogObjects?: CatalogObject[];\n promotedEntities?: PromotedEntity[];\n /**\n * Whether a build with nothing to re-select falls back to the first record.\n *\n * A tree that configures an `explorePageId` has a LANDING SCREEN, and landing\n * on it is the whole point — auto-selecting row one would mean the page its\n * author built could never be seen. So the viewer turns this off for exactly\n * those trees and leaves every other tree opening on its first record, as it\n * does today. The one exception — a `?node` deep link naming a ROOT record,\n * where the seeded page IS the record the URL asked for — and the rest of the\n * arrival matrix live in ../tree/arrivalModel.\n */\n autoSelectFirst?: boolean;\n}\n\nexport const useInquiryMenu = ({\n seed,\n rows,\n catalogObjects,\n promotedEntities,\n autoSelectFirst = true\n}: UseInquiryMenuArgs) => {\n // v2 composes under the CONFIG rule: a level is eager because the tree says\n // so, never because a response happened to nest its rows. The composer's\n // default is v1's data-decides rule, so this opt-in is what separates the two\n // viewers running in one bundle.\n const buildOptions = useMemo(\n () => ({\n makeId: () => crypto.randomUUID(),\n loadMode: 'config' as const,\n catalogObjects,\n promotedEntities\n }),\n [catalogObjects, promotedEntities]\n );\n\n const [menuList, setMenuList] = useState<InquiryMenu[]>([]);\n const [selectedId, setSelectedId] = useState<string | null>(null);\n\n const location = useMemo(\n () => locateNodeById(menuList, selectedId),\n [menuList, selectedId]\n );\n const selectedNode = location?.node ?? null;\n /** The selected row's own root record — what the kernel files notes against. */\n const selectedRoot = location?.root ?? null;\n\n /**\n * The selected row's RECORD parent (v1's `selectedNode.parentNode`, derived\n * rather than stamped on click — see lineageModel). Derived from the live menu\n * for the same reason `selectedNode` is: a rebuild or a bulk expand replaces\n * the node objects, and a stamped lineage would go stale with them.\n */\n const selectedParent = useMemo<DisplayNode | null>(\n () =>\n location ? findRecordParent(menuList[location.menuIndex], location.node) : null,\n [menuList, location]\n );\n\n /**\n * The seeded page is ONE menu: buildPreloadedDisplayList already returns the\n * tree's root list (record roots, or the configured top-level group nodes),\n * which is exactly a menu's roots — so the domain layer needs no change and\n * the consumer just stops splitting the list into N menus.\n */\n const buildSeededList = useCallback((): InquiryMenu[] => {\n if (!seed || !rows?.length) return [];\n const built = buildPreloadedDisplayList(seed, rows, buildOptions);\n return Array.isArray(built) && built.length ? [built] : [];\n }, [seed, rows, buildOptions]);\n\n /**\n * The live menu, and the roots the USER put in it. A rebuild reads both to\n * carry the workspace across (menuRebuildModel) — refs because the rebuild\n * effect must not re-run when either changes; only the seed and the refetched\n * page trigger it.\n */\n const menuListRef = useRef<InquiryMenu[]>([]);\n useEffect(() => {\n menuListRef.current = menuList;\n }, [menuList]);\n const loadedRootsRef = useRef<DisplayNode[]>([]);\n // Page roots built by Load_Inquiry_Page drops, newest first (droppedPageModel).\n const droppedPagesRef = useRef<DisplayNode[]>([]);\n const selectedIdRef = useRef<string | null>(null);\n useEffect(() => {\n selectedIdRef.current = selectedId;\n }, [selectedId]);\n\n useEffect(() => {\n if (!seed) return;\n const previous = menuListRef.current;\n const list = preserveMenuWorkspace({\n fresh: buildSeededList(),\n previous,\n loadedRoots: loadedRootsRef.current,\n droppedPages: droppedPagesRef.current\n });\n setMenuList(list);\n setSelectedId(\n reselectAfterRebuild({\n list,\n previous,\n selectedId: selectedIdRef.current,\n autoSelectFirst\n })\n );\n }, [seed, buildSeededList, autoSelectFirst]);\n\n /** NodeList onSelectNode — group/synthetic rows only expand, never load. */\n const handleSelectNode = useCallback(\n (node: DisplayNode | null | undefined) => {\n if (!node?.nodeObj || node.isGroupNode) return;\n setSelectedId(String(node.id));\n },\n []\n );\n\n /**\n * Select a row the user reached without clicking it — the filter's Enter/F3\n * stepping. Identical to a click: unselectable rows (groups) are ignored, so\n * the record pane only ever changes for a real record.\n */\n const selectNodeById = useCallback(\n (nodeId: string) => handleSelectNode(locateNodeById(menuList, nodeId)?.node),\n [menuList, handleSelectNode]\n );\n\n /**\n * Load a record picked outside the tree (the + Load popover) into the menu.\n * Loading ADDS: the built root is appended to the first menu's root list and\n * becomes the selection, leaving every existing row exactly where the query\n * put it. An already-loaded record is not\n * duplicated — it is simply selected (dedup by businessObjectKey), and the\n * caller is told so it can say \"already loaded\" instead of \"loaded\".\n */\n const loadRecord = useCallback(\n (\n configNode: DisplayNode,\n row: Record<string, unknown>\n ): LoadRecordOutcome => {\n const key = row?.businessObjectKey;\n const existing = key != null ? locateRecordByKey(menuList, key) : null;\n if (existing) {\n setSelectedId(String(existing.node.id));\n return {\n rootId: String(existing.root.id),\n nodeId: String(existing.node.id),\n label: resolveRowLabel(existing.node),\n alreadyLoaded: true\n };\n }\n const subtree =\n seed && configNode?.id != null\n ? findNodeById(seed, String(configNode.id))\n : null;\n const built = subtree\n ? buildDisplayTree(row, subtree, buildOptions)\n : buildDisplayNodeForRecord(\n configNode as unknown as TreeNode,\n row,\n buildOptions\n );\n const root = Array.isArray(built) ? built[0] : built;\n if (!root) return null;\n // APPENDED, never sorted in. The root list's order belongs to the Data\n // Builder query's orderElements — the rows already on screen are in the\n // order the query authored, and a load has no business rewriting it. The\n // new record is selected, so \"where did it go\" is answered by selection,\n // not by resorting everything the user was looking at.\n // Into the first RECORD menu — dropped-page roots sit above it as menus\n // of their own (droppedPageModel), and a record never joins one.\n const pages = droppedPagesRef.current.length;\n setMenuList((previous) => {\n if (previous.length <= pages) return [...previous, [root]];\n return previous.map((menu, index) =>\n index === pages ? [...menu, root] : menu\n );\n });\n // Remembered so the next rebuild re-grafts it: a refetched root page has\n // no reason to contain a record the user reached for by hand.\n loadedRootsRef.current = [...loadedRootsRef.current, root];\n setSelectedId(String(root.id));\n return {\n rootId: String(root.id),\n nodeId: String(root.id),\n label: resolveRowLabel(root),\n alreadyLoaded: false\n };\n },\n [menuList, seed, buildOptions]\n );\n\n /**\n * Show a Load_Inquiry_Page drop's page root (droppedPageModel.dropPageNode)\n * and select it. A root the menu already holds (a repeat drop onto it) is\n * replaced in place; a new one is prepended as its own menu, as v1 did.\n */\n const showDroppedPage = useCallback((page: DisplayNode) => {\n const id = String(page.id);\n if (droppedPagesRef.current.some((candidate) => String(candidate.id) === id)) {\n droppedPagesRef.current = droppedPagesRef.current.map((candidate) =>\n String(candidate.id) === id ? page : candidate\n );\n setMenuList((previous) =>\n previous.map((menu) =>\n menu.map((root) => (String(root.id) === id ? page : root))\n )\n );\n } else {\n droppedPagesRef.current = [page, ...droppedPagesRef.current];\n setMenuList((previous) => [[page], ...previous]);\n }\n setSelectedId(id);\n }, []);\n\n /**\n * Re-read records into the rows that already show them — what a refresh owes\n * a row a QUERY doesn't own (menuRebuildModel.restampMenuRecords explains\n * why). Each row is re-composed from its own config level through the SAME\n * builder that made it, so a refreshed row is byte-shaped like a rebuilt one;\n * its display id, children and expansion are kept, because only the record\n * changed.\n */\n const restampRecords = useCallback(\n (rows: Array<Record<string, unknown>>) => {\n if (!rows.length) return;\n setMenuList((previous) =>\n restampMenuRecords(previous, rows, (node, row) => {\n const configNode =\n node.configNodeId != null\n ? findNodeById(seed, String(node.configNodeId))\n : null;\n if (!configNode) return null;\n return buildDisplayNodeForRecord(\n configNode as unknown as TreeNode,\n row,\n {\n ...buildOptions,\n makeId: () => String(node.id),\n wasLazyLoaded: !!node['wasLazyLoaded']\n }\n );\n })\n );\n },\n [seed, buildOptions]\n );\n\n /** Expand every loaded level (v1 parity, minus its lazy fetch storm). */\n const expandAll = useCallback(() => {\n setMenuList((previous) => {\n const next = previous.map((menu) => structuredClone(menu));\n next.forEach((menu) =>\n menu.forEach((root) => setExpandedDeep(root, true, true))\n );\n return next;\n });\n }, []);\n\n /**\n * Expand ONE row and every ancestor above it, so it is on screen open — the\n * copilot's chevron. Unlike expandAll this does reach an unloaded lazy level:\n * the row is flagged expanded and the menu's pre-expanded-lazy-row effect\n * fetches its children exactly as a click would. Returns the row as it was\n * before the flip (so a caller can tell whether a fetch will follow), or null\n * when no such row is loaded.\n */\n const expandNode = useCallback(\n (nodeId: string): DisplayNode | null => {\n let target: DisplayNode | null = null;\n for (const menu of menuList) {\n for (const root of menu) {\n target = findNodeById(root, nodeId);\n if (target) break;\n }\n if (target) break;\n }\n if (!target) return null;\n const expandPath = (node: DisplayNode): boolean => {\n const onPath =\n String(node.id) === nodeId ||\n (node.children ?? []).some((child) => expandPath(child));\n if (onPath) node.isExpanded = true;\n return onPath;\n };\n setMenuList((previous) => {\n const next = previous.map((menu) => structuredClone(menu));\n next.forEach((menu) => menu.forEach((root) => expandPath(root)));\n return next;\n });\n return target;\n },\n [menuList]\n );\n\n const collapseAll = useCallback(() => {\n setMenuList((previous) => {\n const next = previous.map((menu) => structuredClone(menu));\n next.forEach((menu) =>\n menu.forEach((root) => setExpandedDeep(root, false, false))\n );\n return next;\n });\n }, []);\n\n /**\n * Remove one ROOT record from the workspace (v1 handleRemoveMenuItem, now\n * addressed by the row it lives on rather than by the invisible selection —\n * the destructive verb sits on its target). Survivors keep their positions:\n * `filter` preserves order, so removing a row never reshuffles the rest — the\n * list stays in the order the Data Builder query authored. The menu itself\n * disappears once its last root is gone; a selection inside the removed root\n * is CLEARED, never handed to a neighbour (rootRemovalModel).\n */\n const removeRoot = useCallback(\n (rootId: string) => {\n const outcome = removeRootFromMenus(menuList, rootId, selectedId);\n if (!outcome.removed) return;\n setMenuList(outcome.menus);\n // Removing a loaded root must also retire it from the graft list, or the\n // next rebuild would bring back the row the user just dismissed.\n loadedRootsRef.current = loadedRootsRef.current.filter(\n (root) => String(root.id) !== rootId\n );\n droppedPagesRef.current = droppedPagesRef.current.filter(\n (root) => String(root.id) !== rootId\n );\n setSelectedId(outcome.selectedNodeId);\n },\n [menuList, selectedId]\n );\n\n /**\n * FILTER EXPANSION. Matches inside collapsed branches must be visible while a\n * filter is live and the tree must go back to how the user left it on clear,\n * so the first filter expansion snapshots every row's `isExpanded` and\n * `restoreExpansion` plays it back. `isExpanded` is the seed the tree menu\n * reads (its own per-row overrides yield to a bulk seed rewrite), so this is\n * the same lever expand-all/collapse-all pull.\n */\n const expansionSnapshotRef = useRef<Map<string, boolean> | null>(null);\n\n const expandForFilter = useCallback((ids: string[]) => {\n if (!ids.length) return;\n const wanted = new Set(ids);\n setMenuList((previous) => {\n // Nothing to do when every wanted row is already open — guards the effect\n // that calls this on each match-set change from looping.\n let needsWork = false;\n const check = (node: DisplayNode): void => {\n if (wanted.has(String(node.id)) && !node.isExpanded) needsWork = true;\n (node.children ?? []).forEach(check);\n };\n previous.forEach((menu) => menu.forEach(check));\n if (!needsWork) return previous;\n\n if (!expansionSnapshotRef.current) {\n const snapshot = new Map<string, boolean>();\n const record = (node: DisplayNode): void => {\n snapshot.set(String(node.id), !!node.isExpanded);\n (node.children ?? []).forEach(record);\n };\n previous.forEach((menu) => menu.forEach(record));\n expansionSnapshotRef.current = snapshot;\n }\n\n const next = previous.map((menu) => structuredClone(menu));\n const open = (node: DisplayNode): void => {\n if (wanted.has(String(node.id))) node.isExpanded = true;\n (node.children ?? []).forEach(open);\n };\n next.forEach((menu) => menu.forEach(open));\n return next;\n });\n }, []);\n\n const restoreExpansion = useCallback(() => {\n const snapshot = expansionSnapshotRef.current;\n if (!snapshot) return;\n expansionSnapshotRef.current = null;\n setMenuList((previous) => {\n const next = previous.map((menu) => structuredClone(menu));\n const apply = (node: DisplayNode): void => {\n const was = snapshot.get(String(node.id));\n if (was !== undefined) node.isExpanded = was;\n (node.children ?? []).forEach(apply);\n };\n next.forEach((menu) => menu.forEach(apply));\n return next;\n });\n }, []);\n\n /** Reset to the seeded root page (drops search-loaded roots + removals). */\n const resetTree = useCallback(() => {\n // Reset is the ONE rebuild that keeps nothing — the graft list goes with it,\n // so the tree really does come back as the query authored it.\n loadedRootsRef.current = [];\n droppedPagesRef.current = [];\n const list = buildSeededList();\n setMenuList(list);\n // Reset goes all the way back to how the tree opens — which, for a tree\n // with a landing screen, is the landing screen.\n setSelectedId(autoSelectFirst ? firstRecordId(list) : null);\n }, [buildSeededList, autoSelectFirst]);\n\n return {\n menuList,\n setMenuList,\n selectedId,\n selectedNode,\n selectedRoot,\n selectedParent,\n handleSelectNode,\n selectNodeById,\n loadRecord,\n showDroppedPage,\n restampRecords,\n expandAll,\n expandNode,\n collapseAll,\n removeRoot,\n resetTree,\n expandForFilter,\n restoreExpansion\n };\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA+EA,MAAM0B,mBACJC,MACAC,UACAC,eACS;AACT,KACEA,cACAF,KAAKG,aAAa,eAClB,CAACH,KAAK,4BAEN;AAEFA,MAAKI,aAAaH;AAClB,EAACD,KAAKK,YAAY,EAAE,EAAEC,SAASC,UAC7BR,gBAAgBQ,OAAON,UAAUC,WACnC,CAAC;;;;;;;AAQH,MAAaM,iCACXC,gBACAC,YACAC,QACmC;AACnC,KAAI,CAACF,gBAAgBK,UAAU,CAACJ,WAAY,QAAO,EAAE;CACrD,MAAMK,cAAcjC,qBAAqB2B,gBAAgBC,WAAW,IAAI,EAAE;AA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,IAAA,MAAAe;AAAAf,IAAA,MAAAmB;AAAAnB,IAAA,MAAAwB;AAAAxB,IAAA,MAAAoB;AAAApB,IAAA,MAAA2J;OAAAA,OAAA3J,EAAA;AAAA,QAnBM2J;;AAvYqB,SAAArJ,QAAA;AAAA,QAaVsJ,OAAMC,YAAa;;AAbT,SAAAC,OAAAC,QAAA;AAAA,QA6OYC,gBAAgB9F,OAAK;;AA7OjC,SAAA+F,OAAAC,QAAA;AAAA,QA+OCjM,gBAAgBoD,QAAM,MAAM,KAAK;;AA/OlC,SAAA8I,OAAAC,QAAA;AAAA,QA+OtBlG,OAAI1F,QAASyL,OAA4C;;AA/OnC,SAAAxE,OAAA4E,YAAA;CA6OxB,MAAA/D,OAAa3D,WAAQsB,IAAK6F,OAAgC;AAC1DxD,MAAI9H,QAAS2L,OAEZ;AAAA,QACM7D;;AAjPiB,SAAAD,OAAAiE,QAAA;AAAA,QAgRcN,gBAAgB9F,OAAK;;AAhRnC,SAAAqG,OAAAC,QAAA;AAAA,QA2RYR,gBAAgB9F,OAAK;;AA3RjC,SAAAuG,OAAAC,QAAA;AAAA,QA6RCzM,gBAAgBoD,QAAM,OAAO,MAAM;;AA7RpC,SAAAsJ,OAAAC,QAAA;AAAA,QA6RtB1G,OAAI1F,QAASiM,OAA8C;;AA7RrC,SAAA9D,OAAAkE,YAAA;CA2RxB,MAAAC,SAAanI,WAAQsB,IAAKsG,OAAgC;AAC1DjE,QAAI9H,QAASmM,OAEZ;AAAA,QACMrE;;AA/RiB,SAAAkC,OAAAuC,SAAA;AAAA,QAgWYf,gBAAgB9F,QAAK;;AAhWjC,SAAA+E,QAAA+B,SAAA;AAAA,QA+WYhB,gBAAgB9F,QAAK"}
1
+ {"version":3,"file":"useInquiryMenu.mjs","names":["useCallback","useEffect","useMemo","useRef","useState","buildDisplayTree","buildPreloadedDisplayList","buildRecordEntryFilterElements","getSearchIdentifiers","CatalogObject","PromotedEntity","groupsLevelRecords","hasUnloadedChildren","resolveRowLabel","DisplayNode","ancestorIdsOf","findNodeById","findRecordParent","locateInMenus","locateNodeById","patchMenuEntry","reloadBranch","LoadChildren","asDrop","dropPageNode","isDroppedPageNode","rebuildDroppedPage","DroppedPageSource","preserveMenuWorkspace","removeRootFromMenus","firstRecordId","locateRecordByKey","reselectAfterRebuild","InquiryMenu","LoadedRoot","level","row","Record","node","collectRowIds","menus","cachedOnly","Set","ids","walk","add","id","children","forEach","menu","setExpansion","expandedOf","next","map","copy","expanded","isExpanded","some","index","revealRow","openSelf","location","root","buildIdentifierFilterElements","catalogObjects","entityName","Array","length","identifiers","identifier","LoadRecordResult","rootId","nodeId","label","alreadyLoaded","LoadRecordOutcome","UseInquiryMenuArgs","seed","rows","promotedEntities","autoSelectFirst","useInquiryMenu","t0","$","_c","t1","undefined","t2","makeId","_temp","buildOptions","t3","Symbol","for","menuList","setMenuList","selectedId","setSelectedId","seededRows","setSeededRows","t4","selectedNode","selectedRoot","t5","menuIndex","selectedParent","t6","joinsRootGroups","t7","removedKeysRef","t8","loaded","keys","_temp2","joining","filter","_temp3","row_0","has","businessObjectKey","kept","row_1","current","pageRows","built","isArray","buildSeededList","t9","menuListRef","t10","t11","t12","update","updateMenuList","t13","loadedRootsRef","t14","foreignLevelsRef","t15","own","level_0","found","findConfigLevel","t16","level_1","row_2","built_0","composeRecord","t17","droppedPagesRef","selectedIdRef","t18","t19","t20","previous","fresh","loadedRoots","loaded_0","_temp4","droppedPages","flatMap","page","composeWorkspace","t21","t22","previous_0","loaded_2","node_0","list","nextSelectedId","t23","node_1","nodeObj","isGroupNode","id_0","String","previous_1","handleSelectNode","t24","selectNodeById","t25","configNode","row_3","t26","select","t27","key","delete","existing","id_1","previous_2","level_2","root_1","previous_3","list_0","placed","loaded_3","id_2","nextSelectedId_0","pages","previous_4","loadRecord","target","source","_temp5","drop","existing_0","find","page_0","pageSource","drops","crypto","randomUUID","targetLevelId","configNodeId","targetRecord","page_1","candidate","previous_5","menu_0","root_2","previous_6","dropOnto","record","row_4","loadChildren","before","key_0","location_0","node_2","old","level_3","parentId","parentGroupId","parentGroupName","entityNodeParentId","swap","nodes","node_3","isRoot","list_1","menu_1","_temp6","oldKey","loaded_4","selectedAt","selected","reselected","_temp7","key_2","_temp8","refreshRecord","t28","_temp0","expandAll","t29","nodeId_0","target_0","previous_8","expandNode","t30","_temp10","collapseAll","t31","outcome","removed","key_3","loaded_5","page_2","selectedNodeId","removeRoot","expansionSnapshotRef","t32","wanted","previous_10","_temp11","snapshot","Map","record_0","node_4","set","menu_3","expandForFilter","t33","snapshot_0","previous_11","node_5","get","restoreExpansion","t34","size","clear","previous_12","list_2","nextSelectedId_1","restoreRemoved","t35","list_3","firstId","resetTree","t36","root_0","loaded_1","menu_2","key_1","found_0","_temp9","previous_7","_temp1","previous_9"],"sources":["../../../../src/inquiry/v2/tree/useInquiryMenu.ts"],"sourcesContent":["/**\n * Menu-list state for the v2 inquiry tree pane — the one owner of what the\n * shared NodeList/InquiryFluentTreeMenu renders and which display node the\n * kernel shows.\n *\n * A MENU IS A LIST OF ROOTS, not a single root. The tree's whole root-record\n * page is ONE menu whose roots render as siblings at depth 0, so the tree pane\n * mounts one InquiryFluentTreeMenu (one set of badge hooks, one drag session,\n * one expand/collapse bookkeeping) instead of one per record. menuList stays a\n * list because the workspace genuinely holds several menus: a search-loaded\n * record is prepended as its own single-root menu (v1's load-record UX), as\n * are Move-to-top associated trees.\n *\n * Composition follows the Tree Builder preview's live-menu path: the nested\n * seed (makeDisplayTreeStructure output, built once by the caller from the\n * tree) + the root-record page → buildPreloadedDisplayList, so root\n * group configuration, icons, and lazy-child descriptors are all stamped by the\n * domain pipeline. `rows` arrive WAVE-HYDRATED (v2/tree/waveLoader): every\n * eager level's records are already grafted onto their parent row, so the\n * composer builds them without a second thought. Lazy levels page in through\n * the menu's injected `loadChildren` and report mutations via setMenuList.\n *\n * Selection is held as a display id and everything else — its menu, root,\n * node and record parent — is DERIVED from the current menu list\n * (selectionModel), so lazy-load mutations (which clone-and-replace roots) never\n * leave the kernel holding a stale node object, and no change to the list's\n * structure has to patch the selection.\n *\n * A REBUILD (root-page refetch, catalog arrival) IS NOT A RESET. It re-selects\n * the same record by businessObjectKey and carries the rest of the workspace\n * across through menuRebuildModel — the roots the user loaded in, and how far\n * they had opened the tree. Only `resetTree` throws that away. A mutation on a\n * CHILD record leaves the root page answering identically, so no rebuild fires\n * at all: `refreshRecord` recomposes the branch that mutation touched.\n *\n * Loaded records graft through the same pipeline: the searched entity's config\n * node is located in the nested seed and buildDisplayTree composes its subtree\n * for the picked row; the built root is APPENDED to the first menu's root list\n * (deduped by businessObjectKey — loading an already-listed record just selects\n * it). Existing rows never move: their order is the query's orderElements.\n * Loaded roots live until they are removed, or the tree is reset.\n */\nimport { useCallback, useEffect, useMemo, useRef, useState } from 'react';\nimport {\n buildDisplayTree,\n buildPreloadedDisplayList\n} from '../../../domain/inquiryTree';\nimport {\n buildRecordEntryFilterElements,\n getSearchIdentifiers\n} from '../../../domain/inquiryTree';\nimport type {\n CatalogObject,\n PromotedEntity\n} from '../../../domain/inquiryTree';\nimport {\n groupsLevelRecords,\n hasUnloadedChildren,\n resolveRowLabel\n} from '../../../domain/inquiryTree/displayTree';\nimport type { DisplayNode } from '../../../domain/inquiryTree/displayTree';\nimport {\n ancestorIdsOf,\n findNodeById,\n findRecordParent,\n locateInMenus,\n locateNodeById,\n patchMenuEntry\n} from './lineageModel';\nimport { reloadBranch } from './branchRefreshModel';\nimport type { LoadChildren } from './branchRefreshModel';\nimport {\n asDrop,\n dropPageNode,\n isDroppedPageNode,\n rebuildDroppedPage\n} from './droppedPageModel';\nimport type { DroppedPageSource } from './droppedPageModel';\nimport { preserveMenuWorkspace } from './menuRebuildModel';\nimport { removeRootFromMenus } from './rootRemovalModel';\nimport {\n firstRecordId,\n locateRecordByKey,\n reselectAfterRebuild\n} from './selectionModel';\n\n/** One menu = the roots it renders as depth-0 siblings. */\nexport type InquiryMenu = DisplayNode[];\n\n/** A root the user loaded: what it is made from, and the node last built. */\ninterface LoadedRoot {\n level: DisplayNode;\n row: Record<string, unknown>;\n node: DisplayNode;\n}\n\n/**\n * v1's expandAllNodes/collapseAllNodes walk: every row id. `cachedOnly` stops\n * at lazy levels whose children haven't loaded, so expand-all never triggers a\n * fetch storm — unloaded lazy folders stay collapsed until the user opens them.\n */\nconst collectRowIds = (\n menus: InquiryMenu[],\n cachedOnly: boolean\n): Set<unknown> => {\n const ids = new Set<unknown>();\n const walk = (node: DisplayNode): void => {\n if (cachedOnly && hasUnloadedChildren(node)) return;\n ids.add(node.id);\n (node.children ?? []).forEach(walk);\n };\n menus.forEach((menu) => menu.forEach(walk));\n return ids;\n};\n\n/**\n * Set `isExpanded` on the rows `ids` names, path-copying (patchMenuEntry):\n * untouched rows keep their identity, and nothing to change → same list.\n */\nconst setExpansion = (\n menus: InquiryMenu[],\n ids: Set<unknown>,\n expandedOf: (node: DisplayNode) => boolean\n): InquiryMenu[] => {\n const next = menus.map((menu) =>\n patchMenuEntry(menu, ids, (copy) => {\n const expanded = expandedOf(copy);\n if (copy.isExpanded === expanded) return false;\n copy.isExpanded = expanded;\n return true;\n })\n );\n return next.some((menu, index) => menu !== menus[index]) ? next : menus;\n};\n\n/**\n * Open every row above `id` (and `id` itself when `openSelf`). The tree item\n * shows a selected row's ancestors open on its own, so a row selected inside\n * a collapsed branch (a deep link, a load, filter stepping, the copilot, the\n * default selection) must open them in the model too — else the first chevron\n * click on such an ancestor flips it to open, which it already looks, and\n * nothing visibly happens.\n */\nconst revealRow = (\n menus: InquiryMenu[],\n id: string | null,\n openSelf = false\n): InquiryMenu[] => {\n const location = locateNodeById(menus, id);\n if (!location) return menus;\n const ids = new Set(ancestorIdsOf(location.root, id));\n if (openSelf) ids.add(location.node.id);\n return setExpansion(menus, ids, () => true);\n};\n\n/**\n * Identifier `=` filters for a row — the load-record refetch recipe: the\n * entity's catalog identifiers, read off the row. (A `?node` link resolves\n * through its level's identifiers instead — getLevelSearchIdentifiers, where\n * an associatedTreePrimaryKeyMap replaces them.)\n */\nexport const buildIdentifierFilterElements = (\n catalogObjects: CatalogObject[] | undefined,\n entityName: string,\n row: Record<string, unknown>\n): Array<Record<string, unknown>> => {\n if (!catalogObjects?.length || !entityName) return [];\n const identifiers = getSearchIdentifiers(catalogObjects, entityName) ?? [];\n if (!identifiers.length) return [];\n return buildRecordEntryFilterElements(\n identifiers,\n identifiers.map((identifier) => row[identifier])\n );\n};\n\n/** What `loadRecord` did, so the caller can word its toast. */\nexport interface LoadRecordResult {\n /** The root the record lives under (what Remove would drop). */\n rootId: string;\n /** The row that became the selection. */\n nodeId: string;\n /**\n * The record's DISPLAY label, read off the node that was actually built — the\n * same string the tree row shows. Callers must never re-derive it from raw\n * columns; that is how a GUID reaches the user.\n */\n label: string;\n /** True when the record was already a root and was selected, not added. */\n alreadyLoaded: boolean;\n}\n\nexport type LoadRecordOutcome = LoadRecordResult | null;\n\nexport interface UseInquiryMenuArgs {\n /** Nested display seed — nestedRootOf(tree.nodes). */\n seed: DisplayNode | null;\n /** The root-record page (useRootRecords rows). */\n rows: Array<Record<string, unknown>> | undefined;\n catalogObjects?: CatalogObject[];\n promotedEntities?: PromotedEntity[];\n /**\n * Whether a build with nothing to re-select falls back to the first record.\n *\n * A tree that configures an `explorePageId` has a LANDING SCREEN, and landing\n * on it is the whole point — auto-selecting row one would mean the page its\n * author built could never be seen. So the viewer turns this off for exactly\n * those trees and leaves every other tree opening on its first record, as it\n * does today. The one exception — a `?node` deep link naming a ROOT record,\n * where the seeded page IS the record the URL asked for — and the rest of the\n * arrival matrix live in ../tree/arrivalModel.\n */\n autoSelectFirst?: boolean;\n}\n\nexport const useInquiryMenu = ({\n seed,\n rows,\n catalogObjects,\n promotedEntities,\n autoSelectFirst = true\n}: UseInquiryMenuArgs) => {\n const buildOptions = useMemo(\n () => ({\n makeId: () => crypto.randomUUID(),\n catalogObjects,\n promotedEntities\n }),\n [catalogObjects, promotedEntities]\n );\n\n const [menuList, setMenuList] = useState<InquiryMenu[]>([]);\n const [selectedId, setSelectedId] = useState<string | null>(null);\n /**\n * The rows the menu was last built from. The build runs in an effect, so a\n * host can tell rows that are about to appear (not built yet) from a menu\n * that was built and then emptied by the user.\n */\n const [seededRows, setSeededRows] = useState(rows);\n\n const location = useMemo(\n () => locateNodeById(menuList, selectedId),\n [menuList, selectedId]\n );\n const selectedNode = location?.node ?? null;\n /** The selected row's own root record — what the kernel files notes against. */\n const selectedRoot = location?.root ?? null;\n\n /**\n * The selected row's RECORD parent (v1's `selectedNode.parentNode`, derived\n * rather than stamped on click — see lineageModel). Derived from the live menu\n * for the same reason `selectedNode` is: a rebuild or a bulk expand replaces\n * the node objects, and a stamped lineage would go stale with them.\n */\n const selectedParent = useMemo<DisplayNode | null>(\n () =>\n location ? findRecordParent(menuList[location.menuIndex], location.node) : null,\n [menuList, location]\n );\n\n /**\n * A root the user loaded joins the root page's groups when the root level\n * groups its records — it is one more root record, so it belongs in its\n * group, not appended flat below them.\n */\n const joinsRootGroups = useCallback(\n (level: DisplayNode) => !!seed && level.id === seed.id && groupsLevelRecords(seed),\n [seed]\n );\n\n /**\n * The page's records the user removed (✕), by record. Every rebuild leaves\n * them out — a later Load, a refetch after a save — until the user asks for\n * the page again: the toolbar's Refresh (`restoreRemoved`), Reset tree, or\n * loading that record by hand.\n */\n const removedKeysRef = useRef(new Set<unknown>());\n\n /**\n * The seeded page is ONE menu: buildPreloadedDisplayList already returns the\n * tree's root list (record roots, or the configured top-level group nodes),\n * which is exactly a menu's roots — so the domain layer needs no change and\n * the consumer just stops splitting the list into N menus. Loaded roots that\n * join the root groups are built with the page.\n */\n const buildSeededList = useCallback(\n (loaded: LoadedRoot[]): InquiryMenu[] => {\n if (!seed) return [];\n const keys = new Set((rows ?? []).map((row) => row.businessObjectKey));\n const joining = loaded\n .filter((root) => joinsRootGroups(root.level))\n .map((root) => root.row)\n .filter((row) => !keys.has(row.businessObjectKey));\n const kept = (rows ?? []).filter(\n (row) => !removedKeysRef.current.has(row.businessObjectKey)\n );\n const pageRows = [...kept, ...joining];\n if (!pageRows.length) return [];\n const built = buildPreloadedDisplayList(seed, pageRows, buildOptions);\n return Array.isArray(built) && built.length ? [built] : [];\n },\n [seed, rows, buildOptions, joinsRootGroups]\n );\n\n /**\n * The live menu, and the roots the USER put in it. A rebuild reads both to\n * carry the workspace across (menuRebuildModel) — refs because the rebuild\n * effect must not re-run when either changes; only the seed and the refetched\n * page trigger it.\n */\n const menuListRef = useRef<InquiryMenu[]>([]);\n useEffect(() => {\n menuListRef.current = menuList;\n }, [menuList]);\n /**\n * A menu update the ref sees at once, not after the next render — for a\n * writer that reads the ref back in the same tick (loadRecord in a bulk\n * load's loop).\n */\n const updateMenuList = useCallback(\n (update: (menus: InquiryMenu[]) => InquiryMenu[]) => {\n menuListRef.current = update(menuListRef.current);\n setMenuList(update);\n },\n []\n );\n /**\n * The roots the USER loaded, kept as what they are MADE FROM — the config\n * level and the record — with the node last built from them. Every rebuild\n * composes them again against the current config, so a label or rule the\n * Tree Builder just changed reaches them exactly as it reaches the page.\n */\n const loadedRootsRef = useRef<LoadedRoot[]>([]);\n /**\n * Config levels of OTHER trees that loaded roots were composed against. A\n * row's `configNodeId` names its level; ids are tree-node GUIDs, unique\n * across trees, so one lookup over this tree's seed and these finds any row's\n * level.\n */\n const foreignLevelsRef = useRef<DisplayNode[]>([]);\n const findConfigLevel = useCallback(\n (id: string | number | null | undefined): DisplayNode | null => {\n const own = findNodeById(seed, id);\n if (own) return own;\n for (const level of foreignLevelsRef.current) {\n const found = findNodeById(level, id);\n if (found) return found;\n }\n return null;\n },\n [seed]\n );\n /** One record composed against its level's CURRENT config. */\n const composeRecord = useCallback(\n (level: DisplayNode, row: Record<string, unknown>): DisplayNode | null => {\n const built = buildDisplayTree(\n row,\n findConfigLevel(level.id) ?? level,\n buildOptions\n );\n return (Array.isArray(built) ? built[0] : built) ?? null;\n },\n [findConfigLevel, buildOptions]\n );\n /**\n * Load_Inquiry_Page drops, newest first, kept as the drops they were made\n * from (droppedPageModel) and rebuilt against the current config.\n */\n const droppedPagesRef = useRef<DroppedPageSource[]>([]);\n const selectedIdRef = useRef<string | null>(null);\n useEffect(() => {\n selectedIdRef.current = selectedId;\n }, [selectedId]);\n\n /** The whole workspace composed again from what it is made of. */\n const composeWorkspace = useCallback(\n (previous: InquiryMenu[]): InquiryMenu[] =>\n preserveMenuWorkspace({\n fresh: buildSeededList(loadedRootsRef.current),\n previous,\n loadedRoots: loadedRootsRef.current\n .filter((loaded) => !joinsRootGroups(loaded.level))\n .map((loaded) => loaded.node),\n droppedPages: droppedPagesRef.current.flatMap((page) => {\n const node = rebuildDroppedPage(page, findConfigLevel);\n return node ? [node] : [];\n })\n }),\n [buildSeededList, joinsRootGroups, findConfigLevel]\n );\n\n useEffect(() => {\n if (!seed) return;\n const previous = menuListRef.current;\n loadedRootsRef.current = loadedRootsRef.current.flatMap((loaded) => {\n const node = composeRecord(loaded.level, loaded.row);\n return node ? [{ ...loaded, node }] : [];\n });\n // A local composer, not a parent's setter.\n // eslint-disable-next-line react-you-might-not-need-an-effect/no-pass-data-to-parent\n const list = composeWorkspace(previous);\n const nextSelectedId = reselectAfterRebuild({\n list,\n previous,\n selectedId: selectedIdRef.current,\n autoSelectFirst\n });\n setMenuList(revealRow(list, nextSelectedId));\n setSelectedId(nextSelectedId);\n // Not derived state: it records which rows THIS build consumed, which only\n // the effect knows.\n // eslint-disable-next-line react-you-might-not-need-an-effect/no-derived-state\n setSeededRows(rows);\n }, [seed, rows, composeWorkspace, composeRecord, autoSelectFirst]);\n\n /** NodeList onSelectNode — group/synthetic rows only expand, never load. */\n const handleSelectNode = useCallback(\n (node: DisplayNode | null | undefined) => {\n if (!node?.nodeObj || node.isGroupNode) return;\n const id = String(node.id);\n setMenuList((previous) => revealRow(previous, id));\n setSelectedId(id);\n },\n []\n );\n\n /**\n * Select a row the user reached without clicking it — the filter's Enter/F3\n * stepping, the copilot. Identical to a click: unselectable rows (groups) are\n * ignored, so the record pane only ever changes for a real record, and the\n * row is revealed.\n */\n const selectNodeById = useCallback(\n (nodeId: string) => handleSelectNode(locateNodeById(menuList, nodeId)?.node),\n [menuList, handleSelectNode]\n );\n\n /**\n * Load a record picked outside the tree (the + Load popover) into the menu.\n * Loading ADDS: the built root is appended to the first menu's root list and\n * becomes the selection, leaving every existing row exactly where the query\n * put it. An already-loaded record is not\n * duplicated — it is simply selected (dedup by businessObjectKey), and the\n * caller is told so it can say \"already loaded\" instead of \"loaded\".\n * `select: false` loads without moving the selection: a bulk load selects\n * only its first record, the top of what it adds.\n */\n const loadRecord = useCallback(\n (\n configNode: DisplayNode,\n row: Record<string, unknown>,\n { select = true }: { select?: boolean } = {}\n ): LoadRecordOutcome => {\n const key = row?.businessObjectKey;\n // Asked for by hand: no longer removed.\n removedKeysRef.current.delete(key);\n // The ref, not this render's `menuList`: a bulk load calls this after\n // awaits and in a loop, so the list may have changed since — including\n // a record the previous iteration just appended.\n const existing =\n key != null ? locateRecordByKey(menuListRef.current, key) : null;\n if (existing) {\n const id = String(existing.node.id);\n if (select) {\n updateMenuList((previous) => revealRow(previous, id));\n setSelectedId(id);\n }\n return {\n rootId: String(existing.root.id),\n nodeId: id,\n label: resolveRowLabel(existing.node),\n alreadyLoaded: true\n };\n }\n // A level of ANOTHER tree (an associated tree's hit, load-to-tree) is\n // remembered, so its rows can find their levels on expand and refresh.\n if (!findNodeById(seed, configNode?.id)) {\n foreignLevelsRef.current = [\n ...foreignLevelsRef.current.filter((level) => level.id !== configNode.id),\n configNode\n ];\n }\n const root = composeRecord(configNode, row);\n if (!root) return null;\n if (joinsRootGroups(configNode)) {\n loadedRootsRef.current = [\n ...loadedRootsRef.current,\n { level: configNode, row, node: root }\n ];\n // Regrouping mints new row ids, so the selection is carried by record.\n const previous = menuListRef.current;\n const list = composeWorkspace(previous);\n const placed = key != null ? locateRecordByKey(list, key) : null;\n if (!placed) {\n // No heading took it (a hidden outlier): it was never loaded, so the\n // next rebuild must not carry it either.\n loadedRootsRef.current = loadedRootsRef.current.filter(\n (loaded) => loaded.node !== root\n );\n return null;\n }\n const id = String(placed.node.id);\n const nextSelectedId = select\n ? id\n : reselectAfterRebuild({\n list,\n previous,\n selectedId: selectedIdRef.current,\n autoSelectFirst: false\n });\n selectedIdRef.current = nextSelectedId;\n // A record asked for by hand is on screen whether or not it is the one\n // selected: its heading opens. (The workspace also keeps the record's\n // placeholder until the tree draws its row.)\n updateMenuList(() => revealRow(revealRow(list, nextSelectedId), id));\n setSelectedId(nextSelectedId);\n return {\n rootId: String(placed.root.id),\n nodeId: id,\n label: resolveRowLabel(placed.node),\n alreadyLoaded: false\n };\n }\n // APPENDED, never sorted in. The root list's order belongs to the Data\n // Builder query's orderElements — the rows already on screen are in the\n // order the query authored, and a load has no business rewriting it. The\n // new record is selected, so \"where did it go\" is answered by selection,\n // not by resorting everything the user was looking at.\n // Into the first RECORD menu — dropped-page roots sit above it as menus\n // of their own (droppedPageModel), and a record never joins one.\n const pages = droppedPagesRef.current.length;\n updateMenuList((previous) => {\n if (previous.length <= pages) return [...previous, [root]];\n return previous.map((menu, index) =>\n index === pages ? [...menu, root] : menu\n );\n });\n // Remembered so the next rebuild re-grafts it: a refetched root page has\n // no reason to contain a record the user reached for by hand.\n loadedRootsRef.current = [\n ...loadedRootsRef.current,\n { level: configNode, row, node: root }\n ];\n if (select) setSelectedId(String(root.id));\n return {\n rootId: String(root.id),\n nodeId: String(root.id),\n label: resolveRowLabel(root),\n alreadyLoaded: false\n };\n },\n [seed, composeRecord, updateMenuList, joinsRootGroups, composeWorkspace]\n );\n\n /**\n * Drop `source` onto `target` as a Load_Inquiry_Page drop and select the page\n * root it loads (droppedPageModel). A drop onto a page root extends it in\n * place; any other drop prepends a new page as its own menu, as v1 did.\n * Returns null — and changes nothing — when the target configures no page\n * for the dragged entity.\n */\n const dropOnto = useCallback(\n (target: DisplayNode, source: DisplayNode): DisplayNode | null => {\n if (!dropPageNode(target, source, () => '')) return null;\n const drop = asDrop(source);\n const existing = isDroppedPageNode(target)\n ? droppedPagesRef.current.find((page) => page.id === String(target.id))\n : undefined;\n const pageSource: DroppedPageSource = existing\n ? { ...existing, drops: [...existing.drops, drop] }\n : {\n id: crypto.randomUUID(),\n targetLevelId: String(target.configNodeId ?? ''),\n targetRecord: target.nodeObj,\n drops: [drop]\n };\n const page = rebuildDroppedPage(pageSource, findConfigLevel);\n if (!page) return null;\n if (existing) {\n droppedPagesRef.current = droppedPagesRef.current.map((candidate) =>\n candidate.id === pageSource.id ? pageSource : candidate\n );\n setMenuList((previous) =>\n previous.map((menu) =>\n menu.map((root) => (String(root.id) === pageSource.id ? page : root))\n )\n );\n } else {\n droppedPagesRef.current = [pageSource, ...droppedPagesRef.current];\n setMenuList((previous) => [[page], ...previous]);\n }\n setSelectedId(pageSource.id);\n return page;\n },\n [findConfigLevel]\n );\n\n /**\n * Swap one RECORD row's whole branch for a fresh composition of `row` — the\n * refresh a mutation owes the rows no query owns (branchRefreshModel). The\n * branch is composed by the SAME builder `loadRecord` uses, re-opened and\n * re-fetched to where the user had it, and only then swapped in, so the\n * selection is re-found by record key on the finished branch: the same\n * record if it is still there, else its record parent, else the refreshed\n * row. A null `row` means the record is gone and its row goes with it.\n *\n * `record` is the row as the caller read it. It is found by id, else by\n * record on its level: the caller re-reads the record first, and a rebuild\n * that lands meanwhile (the root page answering differently after the same\n * save) re-mints every row id.\n */\n const refreshRecord = useCallback(\n async (\n record: DisplayNode,\n row: Record<string, unknown> | null,\n loadChildren: LoadChildren\n ): Promise<void> => {\n const before = menuListRef.current;\n const key = record.nodeObj?.businessObjectKey;\n const location =\n locateNodeById(before, String(record.id)) ??\n (key == null\n ? null\n : locateInMenus(\n before,\n (node) =>\n !node.isGroupNode &&\n node.configNodeId === record.configNodeId &&\n node.nodeObj?.businessObjectKey === key\n ));\n if (!location) return;\n const old = location.node;\n\n let fresh: DisplayNode | null = null;\n if (row) {\n const level = findConfigLevel(old.configNodeId);\n fresh = level ? composeRecord(level, row) : null;\n if (!fresh) return;\n await reloadBranch(fresh, old, loadChildren);\n // It sits where the old row sat.\n fresh.parentId = old.parentId;\n fresh.parentGroupId = old.parentGroupId;\n fresh['parentGroupName'] = old['parentGroupName'];\n fresh['entityNodeParentId'] = old['entityNodeParentId'];\n }\n\n /** `old` swapped for `fresh` — or dropped, when the record is gone. */\n const swap = (nodes: DisplayNode[]): DisplayNode[] =>\n nodes.flatMap((node) =>\n node.id !== old.id ? [node] : fresh ? [fresh] : []\n );\n const isRoot = location.root === old;\n const list = menuListRef.current\n .map((menu) =>\n isRoot\n ? swap(menu)\n : patchMenuEntry(menu, new Set([old.parentId]), (copy) => {\n copy.children = swap(copy.children ?? []);\n return true;\n })\n )\n .filter((menu) => menu.length > 0);\n // By record as well as by row: a loaded root that joined a group\n // heading is not a depth-0 root, and regrouping re-minted its id.\n const oldKey = old.nodeObj?.businessObjectKey;\n loadedRootsRef.current = loadedRootsRef.current.flatMap((loaded) =>\n loaded.node.id !== old.id &&\n (oldKey == null ||\n loaded.level.id !== old.configNodeId ||\n loaded.row.businessObjectKey !== oldKey)\n ? [loaded]\n : fresh && row\n ? [{ ...loaded, row, node: fresh }]\n : []\n );\n setMenuList(list);\n // The selection as it is NOW: the re-fetch above takes a moment, and the\n // user may have picked another row while it ran. A row outside the\n // branch kept its id and stays selected; one inside it was re-minted and\n // is found again by record — itself, else its parent, else the branch.\n if (locateNodeById(list, selectedIdRef.current)) return;\n const selectedAt = locateNodeById(\n menuListRef.current,\n selectedIdRef.current\n );\n const selected = selectedAt?.node;\n const reselected = [\n selected?.nodeObj?.businessObjectKey,\n findRecordParent(\n menuListRef.current[selectedAt?.menuIndex ?? location.menuIndex],\n selected\n )?.nodeObj?.businessObjectKey,\n old.nodeObj?.businessObjectKey\n ]\n .filter((key) => key != null)\n .map((key) => locateRecordByKey(list, key))\n .find((found) => !!found);\n setSelectedId(reselected ? String(reselected.node.id) : null);\n },\n [composeRecord, findConfigLevel]\n );\n\n /** Expand every loaded level (v1 parity, minus its lazy fetch storm). */\n const expandAll = useCallback(() => {\n setMenuList((previous) =>\n setExpansion(previous, collectRowIds(previous, true), () => true)\n );\n }, []);\n\n /**\n * Expand ONE row and every ancestor above it, so it is on screen open — the\n * copilot's chevron. Unlike expandAll this does reach an unloaded lazy level:\n * the row is flagged expanded and the menu's pre-expanded-lazy-row effect\n * fetches its children exactly as a click would. Returns the row as it was\n * before the flip (so a caller can tell whether a fetch will follow), or null\n * when no such row is loaded.\n */\n const expandNode = useCallback(\n (nodeId: string): DisplayNode | null => {\n const target = locateNodeById(menuList, nodeId)?.node ?? null;\n if (target) setMenuList((previous) => revealRow(previous, nodeId, true));\n return target;\n },\n [menuList]\n );\n\n const collapseAll = useCallback(() => {\n setMenuList((previous) =>\n setExpansion(previous, collectRowIds(previous, false), () => false)\n );\n }, []);\n\n /**\n * Remove one ROOT record from the workspace (v1 handleRemoveMenuItem, now\n * addressed by the row it lives on rather than by the invisible selection —\n * the destructive verb sits on its target). Survivors keep their positions:\n * `filter` preserves order, so removing a row never reshuffles the rest — the\n * list stays in the order the Data Builder query authored. The menu itself\n * disappears once its last root is gone; a selection inside the removed root\n * is CLEARED, never handed to a neighbour (rootRemovalModel).\n */\n const removeRoot = useCallback(\n (rootId: string) => {\n const outcome = removeRootFromMenus(menuList, rootId, selectedId);\n if (!outcome.removed) return;\n setMenuList(outcome.menus);\n // Removing a loaded root must also retire it from the graft list, or the\n // next rebuild would bring back the row the user just dismissed.\n // By record, not row id: a root under a group heading was re-minted when\n // the page regrouped around it.\n const key = outcome.removed.nodeObj?.businessObjectKey;\n if (key != null) removedKeysRef.current.add(key);\n loadedRootsRef.current = loadedRootsRef.current.filter(\n (loaded) =>\n String(loaded.node.id) !== rootId &&\n (key == null || loaded.row.businessObjectKey !== key)\n );\n droppedPagesRef.current = droppedPagesRef.current.filter(\n (page) => page.id !== rootId\n );\n setSelectedId(outcome.selectedNodeId);\n },\n [menuList, selectedId]\n );\n\n /**\n * FILTER EXPANSION. Matches inside collapsed branches must be visible while a\n * filter is live and the tree must go back to how the user left it on clear,\n * so the first filter expansion snapshots every row's `isExpanded` and\n * `restoreExpansion` plays it back. `isExpanded` is the seed the tree menu\n * reads (its own per-row overrides yield to a bulk seed rewrite), so this is\n * the same lever expand-all/collapse-all pull.\n */\n const expansionSnapshotRef = useRef<Map<string, boolean> | null>(null);\n\n const expandForFilter = useCallback((ids: string[]) => {\n if (!ids.length) return;\n const wanted = new Set(ids);\n setMenuList((previous) => {\n const next = setExpansion(previous, wanted, () => true);\n // Nothing to do when every wanted row is already open — guards the effect\n // that calls this on each match-set change from looping.\n if (next === previous) return previous;\n\n if (!expansionSnapshotRef.current) {\n const snapshot = new Map<string, boolean>();\n const record = (node: DisplayNode): void => {\n snapshot.set(String(node.id), !!node.isExpanded);\n (node.children ?? []).forEach(record);\n };\n previous.forEach((menu) => menu.forEach(record));\n expansionSnapshotRef.current = snapshot;\n }\n return next;\n });\n }, []);\n\n const restoreExpansion = useCallback(() => {\n const snapshot = expansionSnapshotRef.current;\n if (!snapshot) return;\n expansionSnapshotRef.current = null;\n setMenuList((previous) =>\n setExpansion(\n previous,\n new Set(snapshot.keys()),\n (node) => !!snapshot.get(String(node.id))\n )\n );\n }, []);\n\n /** Reset to the seeded root page (drops search-loaded roots + removals). */\n /** The toolbar's Refresh: the page's removed records come back. */\n const restoreRemoved = useCallback(() => {\n if (!removedKeysRef.current.size) return;\n removedKeysRef.current.clear();\n const previous = menuListRef.current;\n const list = composeWorkspace(previous);\n const nextSelectedId = reselectAfterRebuild({\n list,\n previous,\n selectedId: selectedIdRef.current,\n autoSelectFirst: false\n });\n // Seen at once (the refs): the rebuild re-minted every row id, and the\n // refresh that follows in the same tick looks the selection up by id.\n selectedIdRef.current = nextSelectedId;\n updateMenuList(() => revealRow(list, nextSelectedId));\n setSelectedId(nextSelectedId);\n }, [composeWorkspace, updateMenuList]);\n\n const resetTree = useCallback(() => {\n // Reset is the ONE rebuild that keeps nothing — the graft list goes with it,\n // so the tree really does come back as the query authored it.\n loadedRootsRef.current = [];\n droppedPagesRef.current = [];\n foreignLevelsRef.current = [];\n removedKeysRef.current.clear();\n const list = buildSeededList([]);\n // Reset goes all the way back to how the tree opens — which, for a tree\n // with a landing screen, is the landing screen.\n const firstId = autoSelectFirst ? firstRecordId(list) : null;\n setMenuList(revealRow(list, firstId));\n setSelectedId(firstId);\n }, [buildSeededList, autoSelectFirst]);\n\n return {\n menuList,\n menuListRef,\n setMenuList,\n seededRows,\n selectedId,\n selectedIdRef,\n selectedNode,\n selectedRoot,\n selectedParent,\n handleSelectNode,\n selectNodeById,\n loadRecord,\n dropOnto,\n refreshRecord,\n findConfigLevel,\n expandAll,\n expandNode,\n collapseAll,\n removeRoot,\n restoreRemoved,\n resetTree,\n expandForFilter,\n restoreExpansion\n };\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAqGA,MAAMuC,iBACJC,OACAC,eACiB;CACjB,MAAME,sBAAM,IAAID,KAAc;CAC9B,MAAME,QAAQN,SAA4B;AACxC,MAAIG,cAAc7B,oBAAoB0B,KAAK,CAAE;AAC7CK,MAAIE,IAAIP,KAAKQ,GAAG;AAChB,GAACR,KAAKS,YAAY,EAAE,EAAEC,QAAQJ,KAAK;;AAErCJ,OAAMQ,SAASC,SAASA,KAAKD,QAAQJ,KAAK,CAAC;AAC3C,QAAOD;;;;;;AAOT,MAAMO,gBACJV,OACAG,KACAQ,eACkB;CAClB,MAAMC,OAAOZ,MAAMa,KAAKJ,SACtB7B,eAAe6B,MAAMN,MAAMW,SAAS;EAClC,MAAMC,WAAWJ,WAAWG,KAAK;AACjC,MAAIA,KAAKE,eAAeD,SAAU,QAAO;AACzCD,OAAKE,aAAaD;AAClB,SAAO;GAEX,CAAC;AACD,QAAOH,KAAKK,MAAMR,MAAMS,UAAUT,SAAST,MAAMkB,OAAO,GAAGN,OAAOZ;;;;;;;;;;AAWpE,MAAMmB,aACJnB,OACAM,IACAc,WAAW,UACO;CAClB,MAA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AAAgD,YAAA;AAAA,QAigBxBnQ,aAAawG,YAAUnH,cAAcmH,YAAU,MAAM,EAAE0J,OAAY;;AAjgB3C,SAAAjC,UAAA;AAAA,QAojB0B"}
@@ -34,18 +34,14 @@ export interface WaveContext {
34
34
  * IDENTITY CONTRACT).
35
35
  */
36
36
  export declare const hydrateRowsWithWaves: (origin: DisplayNode, rows: Row[], context: WaveContext) => Promise<Row[]>;
37
- /** Find a config level in the nested seed by its wire treeStructure id. */
38
- export declare const findSeedLevel: (node: DisplayNode, id: string) => DisplayNode;
39
37
  export interface LazyChildrenResult {
40
38
  children: DisplayNode[];
41
39
  hasMoreChildren: boolean;
42
40
  /**
43
- * The FIRST failure's own message when there is one, never a bare `true`: the
44
- * menu renders a stamped string verbatim and falls back to "Error Retrieving
45
- * Children" otherwise, and that generic row is unreadable — a planning
46
- * failure (un-promoted child entity, no catalog association, a level that has
47
- * left the configuration) issues NO request at all, so the network tells the
48
- * reader nothing either.
41
+ * The FIRST failure's own message when there is one, never a bare `true`: a
42
+ * planning failure (un-promoted child entity, no catalog association, a
43
+ * level that has left the configuration) issues NO request at all, so this
44
+ * message — logged by the menu — is the only trace it leaves.
49
45
  */
50
46
  errorRetrievingChildren: string | boolean;
51
47
  /** The parent's row, unchanged — v2 never rewrites it on a child fetch. */
@@ -54,8 +50,11 @@ export interface LazyChildrenResult {
54
50
  export interface LoadLazyChildrenArgs {
55
51
  /** The display row being expanded. */
56
52
  node: DisplayNode;
57
- /** The nested tree config (makeDisplayTreeStructure output). */
58
- seed: DisplayNode | null;
53
+ /**
54
+ * The config level a row's `configNodeId` names — the menu's lookup, which
55
+ * spans this tree and any other tree a loaded root came from.
56
+ */
57
+ findLevel: (id: string | number | null | undefined) => DisplayNode | null;
59
58
  /** 1 for the first page; Show More asks for the next. */
60
59
  pageNumber?: number;
61
60
  context: WaveContext;
@@ -67,6 +66,6 @@ export interface LoadLazyChildrenArgs {
67
66
  * rows, then composition through the display pipeline, so a lazily-loaded level
68
67
  * groups, hides and nests exactly like an eager one.
69
68
  */
70
- export declare const loadLazyChildren: ({ node, seed, pageNumber, context, makeId }: LoadLazyChildrenArgs) => Promise<LazyChildrenResult>;
69
+ export declare const loadLazyChildren: ({ node, findLevel, pageNumber, context, makeId }: LoadLazyChildrenArgs) => Promise<LazyChildrenResult>;
71
70
  export {};
72
71
  //# sourceMappingURL=waveLoader.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"waveLoader.d.ts","sourceRoot":"","sources":["../../../../src/inquiry/v2/tree/waveLoader.ts"],"names":[],"mappings":"AAsCA,OAAO,KAAK,EACV,aAAa,EAIb,cAAc,EACf,MAAM,6BAA6B,CAAC;AACrC,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,yCAAyC,CAAC;AAE3E,KAAK,GAAG,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;AAEnC,4EAA4E;AAC5E,MAAM,WAAW,eAAe;IAC9B,IAAI,EAAE,GAAG,EAAE,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;IACd,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI,CAAC;CAC7C;AAED;;;;;GAKG;AACH,MAAM,WAAW,WAAW;IAC1B,iFAAiF;IACjF,SAAS,EAAE,CAAC,WAAW,EAAE,MAAM,EAAE,IAAI,EAAE,GAAG,KAAK,OAAO,CAAC,eAAe,CAAC,CAAC;IACxE,cAAc,CAAC,EAAE,aAAa,EAAE,GAAG,IAAI,CAAC;IACxC,gBAAgB,CAAC,EAAE,cAAc,EAAE,GAAG,IAAI,CAAC;IAC3C;;;OAGG;IACH,SAAS,EAAE,CACT,UAAU,EAAE,MAAM,GAAG,SAAS,EAC9B,IAAI,EAAE,GAAG,EAAE,EACX,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI,KACxC,OAAO,CAAC,GAAG,EAAE,CAAC,CAAC;IACpB,6EAA6E;IAC7E,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
  * - `hydrateRowsWithWaves` fills the EAGER levels below a set of loaded rows,
7
7
  * breadth-first: one batched `parentFK IN (…)` request per level per wave,
8
- * levels within a wave in parallel, waves serial by depth. Fetched rows are
8
+ * paged until the server's total is reached (an eager level has no Show
9
+ * More, so it loads whole), levels within a wave in parallel, waves serial
10
+ * by depth. Fetched rows are
9
11
  * written onto their parent row under the level's association key, so the
10
- * display composer walks one row graph and never has to know whether the
11
- * server nested anything (it no longer does — every request is lean).
12
+ * display composer walks one row graph.
12
13
  * - `loadLazyChildren` fills ONE level on expand: the same planner with a
13
14
  * single parent value, then the eager levels below it, then composition.
14
15
  *
@@ -25,34 +26,80 @@
25
26
  * discard it the moment that input is superseded; serving a hydration of stale
26
27
  * rows is how a menu ends up rendering records the rest of the pane can't see.
27
28
  */
28
- import { CHILD_PAGE_SIZE, buildManyToManyChildRequestData, buildPreloadedDisplayList, graftChildRows, planChildLevelFetch, planEagerWaves, sliceBulkChildRows, sliceManyToManyChildRows, splitChildLevels } from '../../../domain/inquiryTree';
29
+ import { buildManyToManyChildRequestData, buildPreloadedDisplayList, graftChildRows, parseLazyPageSize, planChildLevelFetch, planEagerWaves, sliceBulkChildRows, sliceManyToManyChildRows, splitChildLevels } from '../../../domain/inquiryTree';
30
+ import { keyGroupHeadings } from './pagedChildrenModel';
31
+ /**
32
+ * One request's rows. `complete` keeps asking for the next page while the
33
+ * server reports more: an eager level has no Show More, so it must arrive whole
34
+ * (v1 nested eager children uncapped). A lazy page is one page — the menu's
35
+ * Show More asks for the next.
36
+ */
37
+ const fetchRows = async (context, apiMethodId, data, complete) => {
38
+ var _a;
39
+ const first = await context.fetchRows(apiMethodId, data);
40
+ if (!complete)
41
+ return first;
42
+ const rows = [...first.rows];
43
+ let pageNumber = Number((_a = data['pageNumber']) !== null && _a !== void 0 ? _a : 1);
44
+ while (rows.length < first.total) {
45
+ pageNumber += 1;
46
+ const next = await context.fetchRows(apiMethodId, Object.assign(Object.assign({}, data), { pageNumber }));
47
+ if (!next.rows.length)
48
+ break;
49
+ rows.push(...next.rows);
50
+ }
51
+ return Object.assign(Object.assign({}, first), { rows });
52
+ };
29
53
  /** Run ONE planned request and map its rows back to the parents that claim them. */
30
- const runChildFetch = async (context, request) => {
31
- const first = await context.fetchRows(request.apiMethodId, request.data);
54
+ const runChildFetch = async (context, request, complete) => {
55
+ const first = await fetchRows(context, request.apiMethodId, request.data, complete);
56
+ const { total } = first;
32
57
  if (request.kind === 'single') {
33
58
  return {
34
- [request.parentKey]: await context.stampRows(request.catalogReturnObject, first.rows, first.lookupsMap)
59
+ slices: {
60
+ [request.parentKey]: await context.stampRows(request.catalogReturnObject, first.rows, first.lookupsMap)
61
+ },
62
+ total
35
63
  };
36
64
  }
37
65
  if (request.kind === 'bulk') {
38
- return sliceBulkChildRows(request, await context.stampRows(request.catalogReturnObject, first.rows, first.lookupsMap));
66
+ return {
67
+ slices: sliceBulkChildRows(request, await context.stampRows(request.catalogReturnObject, first.rows, first.lookupsMap)),
68
+ total
69
+ };
39
70
  }
40
71
  // Many-to-many: the first hop returned JOINING rows (which carry the parent
41
- // key AND the child key); the second fetches every child they name at once.
42
- if (!first.rows.length)
43
- return sliceBulkChildRows(request, []);
44
- const second = await context.fetchRows(request.childApiMethodId, buildManyToManyChildRequestData(request, first.rows, first.rows.length));
45
- return sliceManyToManyChildRows(request, first.rows, await context.stampRows(request.catalogReturnObject, second.rows, second.lookupsMap));
72
+ // key AND the child key); the second fetches every child they name at once,
73
+ // always whole — it answers exactly the joining rows already in hand. The
74
+ // page (and so the total) is the joining rows': a short second hop is no
75
+ // sign the parent has nothing more.
76
+ if (!first.rows.length) {
77
+ return { slices: sliceBulkChildRows(request, []), total };
78
+ }
79
+ const second = await fetchRows(context, request.childApiMethodId, buildManyToManyChildRequestData(request, first.rows, first.rows.length), true);
80
+ return {
81
+ slices: sliceManyToManyChildRows(request, first.rows, await context.stampRows(request.catalogReturnObject, second.rows, second.lookupsMap)),
82
+ total
83
+ };
46
84
  };
47
- /** Fetch one level for a set of parents: plan → requests (parallel) → slices. */
48
- const fetchLevel = async (context, plan, parents, options = {}) => {
49
- const { requests, errorsByParentKey } = planChildLevelFetch(plan, parents, context.catalogObjects, context.promotedEntities, options);
85
+ /**
86
+ * Fetch one level for a set of parents: plan → requests (parallel) → slices.
87
+ * With a `page` it fetches that page (lazy expand / Show More); without one
88
+ * the level loads whole (an eager wave).
89
+ */
90
+ const fetchLevel = async (context, plan, parents, page) => {
91
+ const complete = !page;
92
+ const { requests, errorsByParentKey } = planChildLevelFetch(plan, parents, context.catalogObjects, context.promotedEntities, page);
50
93
  const errors = Array.from(new Set(Object.values(errorsByParentKey)));
51
94
  const rowsByParentKey = {};
95
+ let hasMore = false;
52
96
  const settled = await Promise.all(requests.map(async (request) => {
53
97
  var _a;
54
98
  try {
55
- return await runChildFetch(context, request);
99
+ const { slices, total } = await runChildFetch(context, request, complete);
100
+ if (page && total > page.pageNumber * page.pageSize)
101
+ hasMore = true;
102
+ return slices;
56
103
  }
57
104
  catch (error) {
58
105
  // A failed level renders empty rather than taking the wave down; the
@@ -70,7 +117,7 @@ const fetchLevel = async (context, plan, parents, options = {}) => {
70
117
  var _a;
71
118
  return (_a = context.onLevelError) === null || _a === void 0 ? void 0 : _a.call(context, message);
72
119
  });
73
- return { rowsByParentKey, errors };
120
+ return { rowsByParentKey, errors, hasMore };
74
121
  };
75
122
  /**
76
123
  * Fill every eager level below `origin` for `rows`, breadth-first. Returns a
@@ -85,7 +132,8 @@ export const hydrateRowsWithWaves = async (origin, rows, context) => {
85
132
  const waves = planEagerWaves(origin);
86
133
  if (!waves.length)
87
134
  return rows;
88
- const hydrated = rows.map((row) => structuredClone(row));
135
+ // Shallow is enough: grafting only writes a level's key onto each row.
136
+ const hydrated = rows.map((row) => (Object.assign({}, row)));
89
137
  const parentsByLevelId = new Map();
90
138
  parentsByLevelId.set(String(origin.id), hydrated.map((row, index) => ({ key: `#${index}`, row })));
91
139
  for (const wave of waves) {
@@ -102,51 +150,15 @@ export const hydrateRowsWithWaves = async (origin, rows, context) => {
102
150
  }
103
151
  return hydrated;
104
152
  };
105
- /** Find a config level in the nested seed by its wire treeStructure id. */
106
- export const findSeedLevel = (node, id) => {
107
- var _a;
108
- if (!node || !id)
109
- return null;
110
- if (String(node.id) === String(id))
111
- return node;
112
- for (const child of (_a = node.children) !== null && _a !== void 0 ? _a : []) {
113
- const match = findSeedLevel(child, id);
114
- if (match)
115
- return match;
116
- }
117
- return null;
118
- };
119
- /**
120
- * A level composed as a display ROOT must not carry its own catalogObjectKey.
121
- * The composer collects the keys of the levels BELOW its root in order and
122
- * indexes its config levels by position against that list (the legacy
123
- * processReferences scheme, which every tree satisfies because a tree root's
124
- * key is empty). Composing a lazily-expanded level as a root breaks that
125
- * assumption: its key would shift the list by one and every level beneath it
126
- * would resolve to the wrong config node — silently dropping the eager
127
- * grandchildren that were just fetched.
128
- */
129
- const asCompositionRoot = (level) => (Object.assign(Object.assign({}, level), { properties: Object.assign(Object.assign({}, level.properties), { catalogObjectKey: '' }) }));
130
- /**
131
- * Put the level's own key back on the rows that came from it, so a lazily
132
- * paged-in row is byte-identical to the same row composed eagerly.
133
- */
134
- const restoreCatalogObjectKey = (node, configNodeId, catalogObjectKey) => {
135
- var _a;
136
- if (!node.isGroupNode && String(node.configNodeId) === configNodeId) {
137
- node.properties = Object.assign(Object.assign({}, node.properties), { catalogObjectKey });
138
- }
139
- ((_a = node.children) !== null && _a !== void 0 ? _a : []).forEach((child) => restoreCatalogObjectKey(child, configNodeId, catalogObjectKey));
140
- };
141
153
  /**
142
154
  * Page in ONE row's lazy levels. Same planner and the same batched request as a
143
155
  * wave — with a single parent value — then the eager levels below the fetched
144
156
  * rows, then composition through the display pipeline, so a lazily-loaded level
145
157
  * groups, hides and nests exactly like an eager one.
146
158
  */
147
- export const loadLazyChildren = async ({ node, seed, pageNumber = 1, context, makeId }) => {
159
+ export const loadLazyChildren = async ({ node, findLevel, pageNumber = 1, context, makeId }) => {
148
160
  var _a, _b, _c;
149
- const configNode = findSeedLevel(seed, node.configNodeId);
161
+ const configNode = findLevel(node.configNodeId);
150
162
  if (!configNode) {
151
163
  return {
152
164
  children: [],
@@ -156,7 +168,8 @@ export const loadLazyChildren = async ({ node, seed, pageNumber = 1, context, ma
156
168
  };
157
169
  }
158
170
  const parentRef = { key: 'p', row: (_b = node.nodeObj) !== null && _b !== void 0 ? _b : {} };
159
- const { lazyChildNodes } = splitChildLevels(configNode, 'config');
171
+ const { lazyChildNodes } = splitChildLevels(configNode);
172
+ const pageSize = parseLazyPageSize(configNode);
160
173
  let hasMoreChildren = false;
161
174
  // Per LEVEL, positionally — the levels settle in whatever order the network
162
175
  // returns them, and "the first error" has to mean the first configured level
@@ -166,7 +179,7 @@ export const loadLazyChildren = async ({ node, seed, pageNumber = 1, context, ma
166
179
  var _a, _b;
167
180
  var _c, _d;
168
181
  const catalogObjectKey = (_a = childNode.properties) === null || _a === void 0 ? void 0 : _a['catalogObjectKey'];
169
- const { rowsByParentKey, errors } = await fetchLevel(context, { parentNode: configNode, childNode, catalogObjectKey }, [parentRef], { pageNumber });
182
+ const { rowsByParentKey, errors, hasMore } = await fetchLevel(context, { parentNode: configNode, childNode, catalogObjectKey }, [parentRef], { pageSize, pageNumber });
170
183
  if (errors.length) {
171
184
  // Name the level the message belongs to: one misconfigured level under
172
185
  // a parent must not read as "this row's children failed".
@@ -174,18 +187,16 @@ export const loadLazyChildren = async ({ node, seed, pageNumber = 1, context, ma
174
187
  levelErrors[levelIndex] = `${levelName}: ${errors[0]}`;
175
188
  }
176
189
  const childRows = (_c = rowsByParentKey[parentRef.key]) !== null && _c !== void 0 ? _c : [];
177
- // A full page means there is probably another — the menu's Show More row.
178
- if (childRows.length >= CHILD_PAGE_SIZE)
190
+ // The server's total, not the page's length, says whether Show More has
191
+ // anything to show.
192
+ if (hasMore)
179
193
  hasMoreChildren = true;
180
194
  const hydrated = await hydrateRowsWithWaves(childNode, childRows, context);
181
- const built = (_d = buildPreloadedDisplayList(asCompositionRoot(childNode), hydrated, {
195
+ return ((_d = buildPreloadedDisplayList(childNode, hydrated, {
182
196
  makeId,
183
- loadMode: 'config',
184
197
  catalogObjects: context.catalogObjects,
185
198
  promotedEntities: context.promotedEntities
186
- })) !== null && _d !== void 0 ? _d : [];
187
- built.forEach((root) => restoreCatalogObjectKey(root, String(childNode.id), catalogObjectKey));
188
- return built;
199
+ })) !== null && _d !== void 0 ? _d : []);
189
200
  }));
190
201
  const children = levels.flat();
191
202
  children.forEach((child) => {
@@ -195,13 +206,8 @@ export const loadLazyChildren = async ({ node, seed, pageNumber = 1, context, ma
195
206
  child.parentGroupId = (_b = node.id) !== null && _b !== void 0 ? _b : null;
196
207
  else
197
208
  child['entityNodeParentId'] = (_c = node.id) !== null && _c !== void 0 ? _c : null;
198
- // Marks the row as paged in, which is what lets the menu dedup by
199
- // businessObjectKey when Show More appends the next page. It is NOT the
200
- // legacy rule-evaluation flag: v2's fetch returns flat child-entity rows
201
- // (the many-to-many joining row never reaches the composer), so rules
202
- // evaluate against the same shape an eager level produces.
203
- child['wasLazyLoaded'] = true;
204
209
  });
210
+ keyGroupHeadings(children, String(node.id));
205
211
  return {
206
212
  children,
207
213
  hasMoreChildren,
@@ -1 +1 @@
1
- {"version":3,"file":"waveLoader.js","sourceRoot":"","sources":["../../../../src/inquiry/v2/tree/waveLoader.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,OAAO,EACL,eAAe,EACf,+BAA+B,EAC/B,yBAAyB,EACzB,cAAc,EACd,mBAAmB,EACnB,cAAc,EACd,kBAAkB,EAClB,wBAAwB,EACxB,gBAAgB,EACjB,MAAM,6BAA6B,CAAC;AAiDrC,oFAAoF;AACpF,MAAM,aAAa,GAAG,KAAK,EACzB,OAAoB,EACpB,OAAmB,EACa,EAAE,CAAC;IACnC,MAAM,KAAK,GAAG,MAAM,OAAO,CAAC,SAAS,CAAC,OAAO,CAAC,WAAW,EAAE,OAAO,CAAC,IAAI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