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,9 +1,10 @@
1
1
  import { applyRule, mapRuleVariables } from "./rules.mjs";
2
2
  import { NODE_GROUP_OUTLIER, NODE_GROUP_TYPE, compareGroupByOrder, getGroupChildMap, getLabelFromProperty, orderGroupsByOrder } from "./groups.mjs";
3
3
  import { toWireString } from "./wireString.mjs";
4
- import { buildRuntimeSearchState, evaluateConditionalAdornmentParts, evaluateConditionalIconParts, getSearchIdentifiers, isNodeHidden, resolveDisplayDetails, resolveDisplayName, resolveHeaderTitle } from "./runtime.mjs";
4
+ import { buildRuntimeSearchState, evaluateConditionalAdornmentParts, evaluateConditionalIconParts, isNodeHidden, resolveDisplayDetails, resolveDisplayName } from "./runtime.mjs";
5
5
  import { buildLazyLoadDescriptors } from "./lazyLoad.mjs";
6
- import { isEagerLevel } from "./waveLoad.mjs";
6
+ import { levelName } from "./names.mjs";
7
+ import { deepClone } from "../jsonClone.mjs";
7
8
  //#region src/domain/inquiryTree/displayTree.ts
8
9
  /**
9
10
  * Display-tree production pipeline — the pure port of the legacy renderer's
@@ -14,32 +15,22 @@ import { isEagerLevel } from "./waveLoad.mjs";
14
15
  * - makeTreeStructure (:17-93) → makeDisplayTreeStructure
15
16
  * - getSearchValueString (:2808-2815) → getSearchValueString
16
17
  *
17
- * OUTPUT SHAPE IS THE EXACT LEGACY DISPLAY-NODE SHAPE (Phase B compatibility
18
- * layer): nested nodes with children[], isExpanded, fresh per-row id,
18
+ * OUTPUT SHAPE: nested nodes with children[], isExpanded, fresh per-row id,
19
19
  * parentId/entityNodeParentId, nodeObj, lazyLoadChildrenArr, parentGroupName,
20
- * and `properties` carrying nodeLabel/nodeSubLabel/headerTitle, the
21
- * conditionalNodeIcon… and conditionalNodeAdornment… triples, and
22
- * searchIdentifier/filterElements/searchValue — everything InquiryTreeMenu.renderTree
23
- * (InquiryTreeMenu.jsx:337-475) and the InquiryContainer consumers read.
20
+ * the row's own display state (childState, draggable) and `properties` — the
21
+ * level's config plus nodeLabel/nodeSubLabel, the conditionalNodeIcon… and
22
+ * conditionalNodeAdornment… triples, and searchValue.
24
23
  *
25
- * EAGER/LAZY: TWO RULES, CHOSEN BY THE CALLER (`LoadMode`, below) — because v1
26
- * and v2 compose through this same module and decide differently:
27
- * - 'legacy-data' (THE DEFAULT, v1): the DATA decides — a level renders from
28
- * the nested rows the response carried, and loads lazily when it carried
29
- * none; `properties.lazyLoad` forces lazy. Preserved verbatim in
30
- * resolveLegacyLoadMode, and it dies with InquiryContainer.
31
- * - 'config' (v2 + the Tree Builder's v2 preview): the CONFIG decides — a
32
- * level is eager only when `properties.eagerLoad === true`, and its rows
33
- * are fetched in breadth-first waves and grafted onto the parent rows
34
- * under their catalogObjectKey before composition, so this module walks
35
- * one row graph regardless of whether the server nested anything.
36
- * Either way splitChildLevels is the ONE owner: nothing downstream re-decides.
24
+ * EAGER/LAZY: THE CONFIG DECIDES — a level's child levels are eager unless it
25
+ * sets `lazyLoad` (loadsChildrenLazily, read off the parent), and eager rows
26
+ * are fetched in breadth-first waves and grafted onto the parent rows under
27
+ * their catalogObjectKey before composition, so this module walks one row
28
+ * graph regardless of whether the server nested anything. splitChildLevels is
29
+ * the ONE owner: nothing downstream re-decides.
37
30
  *
38
- * DRAGGABILITY follows the same split: 'legacy-data' reads the authored
39
- * `isDraggable` flag untouched, 'config' DERIVES it from the tree's own
40
- * On_Node_Drop actions (collectDropSourceEntities / isDraggableLevel, stamped
41
- * onto the seed in makeDisplayTreeStructure — the one place that sees every
42
- * level at once).
31
+ * DRAGGABILITY is DERIVED from the tree's own On_Node_Drop actions
32
+ * (collectDropSourceEntities / isDraggableLevel, stamped onto the seed in
33
+ * makeDisplayTreeStructure — the one place that sees every level at once).
43
34
  *
44
35
  * PURITY: unlike legacy (which mutated the shared treeStructure and aliased
45
36
  * query rows into nodeObj), every entry point deep-clones its tree AND row
@@ -60,34 +51,61 @@ import { isEagerLevel } from "./waveLoad.mjs";
60
51
  * → makeDisplayTreeStructure(ts) (:569,:731,:1140,:1293,:1811,:2143,:2558)
61
52
  * formatTreeMenuItem(row, tree, catalog, promoted, assocTree, lazy)
62
53
  * → buildDisplayTree(row, tree, { makeId, catalogObjects: catalog,
63
- * promotedEntities: promoted, associatedInquiryTree: assocTree,
64
- * wasLazyLoaded: lazy }) (:574,:736,:1145,:1305,:1816,:1901,:2148;
54
+ * promotedEntities: promoted }) (:574,:736,:1145,:1305,:1816,:1901,:2148;
65
55
  * InquiryTreeMenu :186,:249,:595)
66
56
  * constructPreloadedTree(tree, pageList, catalog)
67
57
  * → buildPreloadedDisplayList(tree, pageList, { makeId, catalogObjects: catalog }) (:2563)
68
58
  * getSearchValueString(nodeObj, searchIdentifier) — unchanged signature (:598,:749,:1838)
69
59
  */
60
+ /** Where the row's child levels stand — THE chevron/fetch predicate. */
61
+ const rowChildState = (node) => node?.childState ?? "none";
62
+ /** A lazy level the row has not loaded yet: what an expand fetches. */
63
+ const hasUnloadedChildren = (node) => {
64
+ const state = rowChildState(node);
65
+ return state === "lazy" || state === "error";
66
+ };
67
+ /**
68
+ * THE load rule, read off the parent: a level's child levels load lazily —
69
+ * collapsed, fetched on expand — when it sets `lazyLoad`, and eagerly
70
+ * otherwise. One setting on the parent, the one both builders store and v1
71
+ * reads.
72
+ */
73
+ const loadsChildrenLazily = (level) => !!level?.properties?.["lazyLoad"];
70
74
  /**
71
- * The row's DISPLAY label — the exact string the tree renders for a node:
72
- * the group's own label, or the entity row's resolved `nodeLabel` (stamped by
73
- * processObjIndexInPlace from the `displayName` template) falling back to the
74
- * level's configured name, as renderTree :367 has always done. One reader for
75
- * both the menu/filter and the record pane, so nothing derives it twice.
75
+ * The row's DISPLAY label — the exact string the tree renders for a node: the
76
+ * entity row's resolved `nodeLabel` (stamped by processObjIndexInPlace from the
77
+ * `displayName` template), else the level's name as the Tree Builder shows it
78
+ * (levelName — a group's label). Never blank. One reader for the menu/filter
79
+ * and the record pane, so nothing derives it twice.
76
80
  */
77
81
  const resolveRowLabel = (node) => {
78
- const properties = node.properties ?? {};
79
- const label = node.isGroupNode ? properties["label"] : properties["nodeLabel"] || properties["name"];
80
- return typeof label === "string" ? label : "";
82
+ const label = node.isGroupNode ? null : node.properties?.["nodeLabel"];
83
+ return typeof label === "string" && label || levelName({
84
+ ...node,
85
+ properties: node.properties ?? {}
86
+ });
81
87
  };
82
88
  /** The row's entity name — `properties.catalogReturnObject` when it is a string. */
83
89
  const nodeEntityName = (node) => {
84
90
  const entity = node?.properties?.["catalogReturnObject"];
85
91
  return typeof entity === "string" ? entity : void 0;
86
92
  };
87
- /** Deep clone (structuredClone ≈ lodash cloneDeep for wire/query JSON). */
88
- const deepClone = (value) => value === void 0 ? value : structuredClone(value);
93
+ /**
94
+ * A level node's per-row copy: everything but its config subtree is cloned
95
+ * (enrichment rewrites id/properties), while `children` stays the shared
96
+ * config array — enrichment and the walkers only read it, and
97
+ * makeTreeStructureInPlace replaces it before anything is nested.
98
+ */
99
+ const cloneLevel = (node) => {
100
+ const copy = deepClone({
101
+ ...node,
102
+ children: void 0
103
+ });
104
+ copy.children = node.children;
105
+ return copy;
106
+ };
89
107
  /** checkNodeIsHidden (TreeUtilities.js:2199-2229) — delegates to the runtime port. */
90
- const checkDisplayNodeHidden = (node, item, wasLazyLoaded) => isNodeHidden(node, item, wasLazyLoaded ?? false);
108
+ const checkDisplayNodeHidden = (node, item) => isNodeHidden(node, item);
91
109
  /**
92
110
  * GroupNode model port (models/GroupNode.ts:16-46) in the exact legacy display
93
111
  * shape and key order. Legacy defaulted a missing id to uuid() — makeId here.
@@ -113,22 +131,6 @@ const makeDisplayGroupNode = (init, makeId) => ({
113
131
  },
114
132
  isOutlierGroup: init.isOutlierGroup || false
115
133
  });
116
- /** Port of processCatalogObjectKeysInOrder (TreeUtilities.js:365-378). */
117
- const collectCatalogObjectKeysInOrder = (tree, keys) => {
118
- if (!tree?.children?.length) keys.push(tree?.properties?.["catalogObjectKey"]);
119
- else {
120
- if (tree?.properties?.["catalogObjectKey"]) keys.push(tree.properties["catalogObjectKey"]);
121
- tree.children.forEach((node) => collectCatalogObjectKeysInOrder(node, keys));
122
- }
123
- };
124
- /** Port of processOrderedTreeData (TreeUtilities.js:380-389) — pre-order flatten. */
125
- const flattenTreeInPreOrder = (tree, treeData) => {
126
- if (!tree?.children?.length) treeData.push(tree);
127
- else {
128
- treeData.push(tree);
129
- tree.children.forEach((node) => flattenTreeInPreOrder(node, treeData));
130
- }
131
- };
132
134
  /** Port of findNodeById (TreeUtilities.js:1599-1609). */
133
135
  const findDisplayNodeById = (tree, id) => {
134
136
  let result = null;
@@ -157,10 +159,9 @@ const findDisplayNodesByIdAndLabel = (tree, id, label) => {
157
159
  return results;
158
160
  };
159
161
  /**
160
- * DRAGGABILITY IS DERIVED IN 'config' MODE (it is authored in 'legacy-data' —
161
- * see makeTreeStructureInPlace). A row can only be picked up where dropping it
162
- * somewhere would do something, so the drag side is computed from the drop side
163
- * rather than ticked on its own:
162
+ * DRAGGABILITY IS DERIVED (see makeTreeStructureInPlace). A row can only be
163
+ * picked up where dropping it somewhere would do something, so the drag side is
164
+ * computed from the drop side rather than ticked on its own:
164
165
  *
165
166
  * a level's rows are draggable ⟺ SOME level of the tree carries an
166
167
  * `On_Node_Drop` node action whose `dragEntityName` accepts this level's
@@ -169,9 +170,9 @@ const findDisplayNodesByIdAndLabel = (tree, id, label) => {
169
170
  * That is exactly the accept rule the drop side already runs — the target row's
170
171
  * accepts are its On_Node_Drop actions' dragEntityNames
171
172
  * (InquiryFluentTreeMenu.jsx itemDropAccepts), matched against the source row's
172
- * `catalogReturnObject` drag tag case-insensitively, with `'*'` accepting
173
- * anything (udp-tree's dragMatchesAccepts). Deriving from the same rule is what
174
- * makes "draggable" and "droppable" impossible to disagree.
173
+ * `catalogReturnObject` drag tag case-insensitively (isDragEntity). Deriving
174
+ * from the same rule is what makes "draggable" and "droppable" impossible to
175
+ * disagree.
175
176
  *
176
177
  * Trigger type is the whole gate, as on the drop side: whether the action then
177
178
  * runs an API or opens a page is the drop handler's business, not the grip's.
@@ -182,7 +183,14 @@ const findDisplayNodesByIdAndLabel = (tree, id, label) => {
182
183
  * as the drop side compares it (a wire enum: the number 1, never a name).
183
184
  */
184
185
  const ON_NODE_DROP_TRIGGER = 1;
185
- /** `'*'` in the returned set means "every entity is accepted somewhere". */
186
+ /** An entity name as a drag tag: the full name, case-folded (blank if none). */
187
+ const dragTag = (entityName) => typeof entityName === "string" ? entityName.toLowerCase() : "";
188
+ /** Whether a drop action's `dragEntityName` names `entityName` — the gate's rule. */
189
+ const isDragEntity = (dragEntityName, entityName) => {
190
+ const tag = dragTag(entityName);
191
+ return !!tag && dragTag(dragEntityName) === tag;
192
+ };
193
+ /** The drag tags some level's On_Node_Drop actions accept. */
186
194
  const collectDropSourceEntities = (levels) => {
187
195
  const accepted = /* @__PURE__ */ new Set();
188
196
  (levels ?? []).forEach((level) => {
@@ -191,8 +199,8 @@ const collectDropSourceEntities = (levels) => {
191
199
  actions.forEach((action) => {
192
200
  const row = action;
193
201
  if (row?.triggerType !== ON_NODE_DROP_TRIGGER) return;
194
- const entity = row?.dragEntityName;
195
- if (typeof entity === "string" && entity) accepted.add(entity.toLowerCase());
202
+ const tag = dragTag(row?.dragEntityName);
203
+ if (tag) accepted.add(tag);
196
204
  });
197
205
  });
198
206
  return accepted;
@@ -200,11 +208,16 @@ const collectDropSourceEntities = (levels) => {
200
208
  /** Whether this level's rows are draggable, given the tree's accepted entities. */
201
209
  const isDraggableLevel = (node, acceptedEntities) => {
202
210
  if (!node || node.isGroupNode) return false;
203
- if (acceptedEntities.has("*")) return true;
204
- const entity = nodeEntityName(node);
205
- return entity ? acceptedEntities.has(entity.toLowerCase()) : false;
211
+ const tag = dragTag(nodeEntityName(node));
212
+ return !!tag && acceptedEntities.has(tag);
206
213
  };
207
214
  /**
215
+ * A hideEmptyGroups heading with no record anywhere under it. Lazily fetched
216
+ * levels keep every heading (so a Show More page merges into them in config
217
+ * order); the menu hides these when it draws the tree.
218
+ */
219
+ const isEmptyHiddenHeading = (node) => !!node?.isGroupNode && !!node.hideEmptyGroups && (node.children ?? []).every(isEmptyHiddenHeading);
220
+ /**
208
221
  * In-place port of makeTreeStructure (TreeUtilities.js:17-93): resets every
209
222
  * node's children, seeds isExpanded from defaultDisplay/lazyLoad for entity
210
223
  * nodes without one, nests by parentKey/parentGroupKey (group nodes dedup by
@@ -212,17 +225,15 @@ const isDraggableLevel = (node, acceptedEntities) => {
212
225
  * the presence of parentGroupId), prunes empty hideEmptyGroups groups, and
213
226
  * returns a single root bare or several as an array.
214
227
  */
215
- const makeTreeStructureInPlace = (treeData, key, parentKey, parentGroupKey = "parentGroupId", loadMode = DEFAULT_LOAD_MODE) => {
228
+ const makeTreeStructureInPlace = (treeData, key, parentKey, parentGroupKey = "parentGroupId") => {
216
229
  if (!treeData) return [];
217
- const parentsOfEagerLevels = /* @__PURE__ */ new Set();
218
- if (loadMode === "config") treeData.forEach((node) => {
219
- if (!node?.isGroupNode && isEagerLevel(node)) parentsOfEagerLevels.add(node[parentKey]);
230
+ const parentsOfLevels = /* @__PURE__ */ new Set();
231
+ treeData.forEach((node) => {
232
+ if (!node?.isGroupNode) parentsOfLevels.add(node[parentKey]);
220
233
  });
221
- const dropSourceEntities = loadMode === "config" ? collectDropSourceEntities(treeData) : /* @__PURE__ */ new Set();
222
234
  treeData.forEach((node) => {
223
235
  node.children = [];
224
- if (loadMode === "config" && !node.isGroupNode) node.properties["isDraggable"] = isDraggableLevel(node, dropSourceEntities);
225
- if (node["isExpanded"] === void 0 && !node.isGroupNode) node.isExpanded = loadMode === "config" ? node.properties["defaultDisplay"] !== "collapsed" && parentsOfEagerLevels.has(node[key]) : !(node.properties["defaultDisplay"] === "collapsed" || node.properties["lazyLoad"]);
236
+ if (node["isExpanded"] === void 0 && !node.isGroupNode) node.isExpanded = node.properties["defaultDisplay"] !== "collapsed" && !loadsChildrenLazily(node) && parentsOfLevels.has(node[key]);
226
237
  });
227
238
  const roots = treeData.filter((node) => !(node?.isGroupNode ? node[parentGroupKey] : node[parentKey]));
228
239
  const childrenByParent = /* @__PURE__ */ new Map();
@@ -262,146 +273,89 @@ const makeTreeStructureInPlace = (treeData, key, parentKey, parentGroupKey = "pa
262
273
  return filteredRoots;
263
274
  };
264
275
  /**
265
- * Pure port of makeTreeStructure (TreeUtilities.js:17-93) — flat display/wire
276
+ * Pure port of makeTreeStructure (TreeUtilities.js:17-93) — the tree's flat
266
277
  * nodes → nested display seed. Legacy mutated the caller's treeStructure
267
278
  * (poisoning shared caches); this deep-clones the input first, so the caller's
268
279
  * array is never touched. Defaults match every legacy call site
269
280
  * (`makeTreeStructure(ts, 'id', 'parentId')` — InquiryContainer.jsx:569,:731,
270
281
  * :1140,:1293,:1811,:2143,:2558).
271
282
  */
272
- const makeDisplayTreeStructure = (treeData, key = "id", parentKey = "parentId", parentGroupKey = "parentGroupId", loadMode = DEFAULT_LOAD_MODE) => {
283
+ const makeDisplayTreeStructure = (treeData, key = "id", parentKey = "parentId", parentGroupKey = "parentGroupId") => {
273
284
  if (!treeData) return [];
274
- return makeTreeStructureInPlace(deepClone(treeData), key, parentKey, parentGroupKey, loadMode);
275
- };
276
- /** The safe default: unopted callers keep v1 semantics. */
277
- const DEFAULT_LOAD_MODE = "legacy-data";
278
- /**
279
- * v1's eager/lazy rule, preserved verbatim (this is the former
280
- * `resolveLoadMode`):
281
- *
282
- * A child level renders from nested eager data when the parent row carries
283
- * it; otherwise it loads lazily. `properties.lazyLoad` is a FORCED-LAZY
284
- * OVERRIDE — a level marked lazy ignores whatever eager data the row happens
285
- * to carry.
286
- *
287
- * - the row carries the child's catalogObjectKey (any value, `[]` included)
288
- * → eager: the level renders from that data, no descriptors, groups apply;
289
- * - the row carries null/undefined/no key at all
290
- * → lazy: search descriptors are built so the menu shows a chevron and
291
- * pages the level in on expand;
292
- * - a child level with no catalogObjectKey binds to no data and takes no
293
- * part in the decision.
294
- *
295
- * @deprecated Dies with v1 (`src/inquiry/InquiryContainer.jsx`). New code
296
- * passes `loadMode: 'config'`; nothing else may call this.
297
- */
298
- const resolveLegacyLoadMode = (node, parentRow) => {
299
- const children = node?.children ?? [];
300
- if (node?.properties?.["lazyLoad"]) return {
301
- eagerChildKeys: /* @__PURE__ */ new Set(),
302
- lazyChildNodes: children,
303
- forcedLazy: true
304
- };
305
- const row = parentRow ?? {};
306
- const eagerChildKeys = /* @__PURE__ */ new Set();
307
- const lazyChildNodes = [];
308
- children.forEach((child) => {
309
- const key = child?.properties?.["catalogObjectKey"];
310
- if (!key) return;
311
- if (row[key] == null) lazyChildNodes.push(child);
312
- else eagerChildKeys.add(key);
285
+ const levels = deepClone(treeData);
286
+ const dropSourceEntities = collectDropSourceEntities(levels);
287
+ levels.forEach((node) => {
288
+ if (!node.isGroupNode) node.draggable = isDraggableLevel(node, dropSourceEntities);
313
289
  });
314
- return {
315
- eagerChildKeys,
316
- lazyChildNodes,
317
- forcedLazy: false
318
- };
290
+ return makeTreeStructureInPlace(levels, key, parentKey, parentGroupKey);
319
291
  };
320
292
  /**
321
- * v2's eager/lazy rule: config decides. An eager level whose rows the wave
322
- * loader could not fetch renders EMPTY — it never silently becomes lazy — and
323
- * a lazy level ignores anything that happens to ride the row.
293
+ * THE EAGER/LAZY SPLIT for one level: config decides (loadsChildrenLazily). An
294
+ * eager level whose rows the wave loader could not fetch renders EMPTY — it
295
+ * never silently becomes lazy — and a lazy level ignores anything that happens
296
+ * to ride the row. Nothing downstream re-decides it.
324
297
  */
325
- const resolveConfiguredLoadMode = (node) => {
298
+ const splitChildLevels = (node) => {
326
299
  const eagerChildKeys = /* @__PURE__ */ new Set();
327
300
  const lazyChildNodes = [];
301
+ const lazy = loadsChildrenLazily(node);
328
302
  (node?.children ?? []).forEach((child) => {
329
303
  const key = child?.properties?.["catalogObjectKey"];
330
304
  if (!key) return;
331
- if (isEagerLevel(child)) eagerChildKeys.add(key);
332
- else lazyChildNodes.push(child);
305
+ if (lazy) lazyChildNodes.push(child);
306
+ else eagerChildKeys.add(key);
333
307
  });
334
308
  return {
335
309
  eagerChildKeys,
336
- lazyChildNodes,
337
- forcedLazy: false
310
+ lazyChildNodes
338
311
  };
339
312
  };
340
313
  /**
341
- * THE EAGER/LAZY SPLIT for one level, under the caller's chosen rule. Nothing
342
- * downstream re-decides it.
343
- */
344
- const splitChildLevels = (node, loadMode = DEFAULT_LOAD_MODE, parentRow) => loadMode === "config" ? resolveConfiguredLoadMode(node) : resolveLegacyLoadMode(node, parentRow);
345
- /**
346
314
  * In-place port of processObjIndex (TreeUtilities.js:594-716), composed from
347
315
  * the runtime.ts ports where legacy wrote properties: the
348
316
  * conditionalNodeIcon… and conditionalNodeAdornment… triples via
349
- * evaluateConditionalIconParts/evaluateConditionalAdornmentParts,
350
- * searchIdentifier/filterElements/searchValue via getSearchIdentifiers +
351
- * buildRuntimeSearchState (one documented micro-divergence: a falsy non-nullish
352
- * associatedTreePrimaryKeyMap value ('') resolves to '' instead of the
353
- * identifier name — buildRuntimeSearchState uses ?? where legacy used a
354
- * ternary), labels via resolveDisplayName/Details/HeaderTitle, and
355
- * lazyLoadChildrenArr via buildLazyLoadDescriptors (getLazyLoadChildrenArr
356
- * :735-957 including the 'Error: Promote …' message, last child wins).
317
+ * evaluateConditionalIconParts/evaluateConditionalAdornmentParts, searchValue
318
+ * via buildRuntimeSearchState (one documented micro-divergence: a falsy
319
+ * non-nullish associatedTreePrimaryKeyMap value ('') resolves to '' instead of
320
+ * the identifier name — buildRuntimeSearchState uses ?? where legacy used a
321
+ * ternary), labels via resolveDisplayName/Details, and lazyLoadChildrenArr +
322
+ * childState via buildLazyLoadDescriptors (getLazyLoadChildrenArr :735-957
323
+ * including the 'Error: Promote …' message, last child wins).
357
324
  *
358
325
  * The eager/lazy split is NOT decided here — it asks splitChildLevels (the one
359
326
  * owner) and returns that split so the walkers can honor it without
360
327
  * re-deriving it.
361
328
  */
362
- const processObjIndexInPlace = (node, obj, parentId, catalogObjects, promotedEntities, wasLazyLoaded, makeId, loadMode) => {
363
- const entityView = node;
329
+ const processObjIndexInPlace = (node, obj, parentId, { makeId, catalogObjects, promotedEntities }) => {
364
330
  const props = node.properties;
365
- const iconParts = evaluateConditionalIconParts(entityView, obj, wasLazyLoaded ?? false);
331
+ const iconParts = evaluateConditionalIconParts(node, obj);
366
332
  if (iconParts) {
367
333
  props["conditionalNodeIconName"] = iconParts.name;
368
334
  props["conditionalNodeIconColor"] = iconParts.colorHex;
369
335
  props["conditionalNodeIconType"] = iconParts.type;
370
336
  props["conditionalNodeIconFluentName"] = iconParts.fluentName;
371
337
  }
372
- const adornmentParts = evaluateConditionalAdornmentParts(entityView, obj, wasLazyLoaded ?? false);
338
+ const adornmentParts = evaluateConditionalAdornmentParts(node, obj);
373
339
  if (adornmentParts) {
374
340
  props["conditionalNodeAdornmentName"] = adornmentParts.name;
375
341
  props["conditionalNodeAdornmentColor"] = adornmentParts.colorHex;
376
342
  props["conditionalNodeAdornmentType"] = adornmentParts.type;
377
343
  props["conditionalNodeAdornmentFluentName"] = adornmentParts.fluentName;
378
344
  }
379
- if (props["catalogReturnObject"]) {
380
- props["searchIdentifier"] = getSearchIdentifiers(catalogObjects, props["catalogReturnObject"]).join(",");
381
- const associatedTreePrimaryKeyMap = props["associatedTreePrimaryKeyMap"];
382
- if (associatedTreePrimaryKeyMap) props["searchIdentifier"] = Object.keys(associatedTreePrimaryKeyMap);
383
- const searchState = buildRuntimeSearchState(entityView, obj, catalogObjects);
384
- props["filterElements"] = searchState.filterElements;
385
- props["searchValue"] = searchState.searchValue;
386
- }
387
- props["nodeLabel"] = resolveDisplayName(entityView, obj);
388
- props["nodeSubLabel"] = resolveDisplayDetails(entityView, obj);
389
- props["headerTitle"] = resolveHeaderTitle(entityView, obj);
345
+ if (props["catalogReturnObject"]) props["searchValue"] = buildRuntimeSearchState(node, obj, catalogObjects).searchValue;
346
+ props["nodeLabel"] = resolveDisplayName(node, obj);
347
+ props["nodeSubLabel"] = resolveDisplayDetails(node, obj);
390
348
  node.parentId = parentId;
391
349
  node["entityNodeParentId"] = parentId;
392
350
  node["configNodeId"] = node.id;
393
351
  node.id = makeId();
394
352
  node.nodeObj = obj;
395
- const split = splitChildLevels(node, loadMode, obj);
396
- if (split.forcedLazy) {
397
- const { descriptors, errorRetrievingChildren } = buildLazyLoadDescriptors(entityView, obj, split.lazyChildNodes, catalogObjects, promotedEntities);
398
- node.lazyLoadChildrenArr = descriptors;
399
- if (errorRetrievingChildren) node["errorRetrievingChildren"] = errorRetrievingChildren;
400
- } else if (split.lazyChildNodes.length) {
401
- const { descriptors, errorRetrievingChildren } = buildLazyLoadDescriptors(entityView, obj, split.lazyChildNodes, catalogObjects, promotedEntities);
353
+ const split = splitChildLevels(node);
354
+ if (split.lazyChildNodes.length) {
355
+ const { descriptors, errorRetrievingChildren } = buildLazyLoadDescriptors(node, obj, split.lazyChildNodes, catalogObjects, promotedEntities);
402
356
  if (descriptors.length || errorRetrievingChildren) {
403
- props["lazyLoad"] = true;
404
- if (!split.eagerChildKeys.size) node.isExpanded = false;
357
+ node.childState = errorRetrievingChildren ? "error" : "lazy";
358
+ node.isExpanded = false;
405
359
  node.lazyLoadChildrenArr = descriptors;
406
360
  if (errorRetrievingChildren) node["errorRetrievingChildren"] = errorRetrievingChildren;
407
361
  }
@@ -409,6 +363,11 @@ const processObjIndexInPlace = (node, obj, parentId, catalogObjects, promotedEnt
409
363
  return split;
410
364
  };
411
365
  /**
366
+ * The level's groupings of `groupType` when grouping is enabled, else [].
367
+ * Legacy's unguarded `groupings[groupType]` read (:1784) is kept.
368
+ */
369
+ const groupingsOf = (groupConfiguration, groupType) => groupConfiguration?.enabled ? groupConfiguration.groupings[groupType] ?? [] : [];
370
+ /**
412
371
  * In-place port of makeTreeStaticGroupStructure (TreeUtilities.js:95-145):
413
372
  * replaces each ordered group config with a display GroupNode (quirk kept:
414
373
  * parentId is set to the config parentGroupId). The per-config
@@ -418,7 +377,7 @@ const processObjIndexInPlace = (node, obj, parentId, catalogObjects, promotedEnt
418
377
  * subgroup hides when empty just like its top-level heading — legacy forwarded
419
378
  * it to the top group only, which left empty subgroup headings on screen.
420
379
  */
421
- const makeTreeStaticGroupStructureInPlace = (treeData, key, parentKey, groupType, makeId, hideEmptyGroups) => {
380
+ const makeTreeStaticGroupStructureInPlace = (treeData, key, groupType, makeId, hideEmptyGroups) => {
422
381
  if (!treeData) return [];
423
382
  const keys = [];
424
383
  const groupNodes = treeData.map((node) => {
@@ -461,18 +420,17 @@ const makeTreeStaticGroupStructureInPlace = (treeData, key, parentKey, groupType
461
420
  * apiMethodInstanceId/children inside properties (:1821), outlier==='group'
462
421
  * adds the outlier group node. Divergence from legacy (:1824): hideEmptyGroups
463
422
  * is stamped on EVERY heading this builds — subgroups and the ungrouped-records
464
- * outlier heading included, not just the top group — and an
465
- * absent flag reads as ON — the Tree Builder's "Hide empty groups" toggle
466
- * shows ON for a config that never stored the key, so treating it as OFF here
467
- * left empty headings on screen against what the builder promised.
423
+ * outlier heading included, not just the top group. An absent flag reads as
424
+ * OFF, as legacy and the Tree Builder's toggle read it.
468
425
  */
469
426
  const constructStaticNodeGroupsInPlace = (tree, shouldUseNewId, makeId) => {
470
427
  const nodeGroups = [];
471
428
  const groupConfiguration = tree?.properties?.["groupConfiguration"];
472
429
  const groupType = groupConfiguration?.groupType || NODE_GROUP_TYPE.Static;
473
- const hideEmptyGroups = groupConfiguration?.hideEmptyGroups !== false;
474
- if (groupConfiguration?.enabled && groupConfiguration.groupings[groupType]?.length) {
475
- groupConfiguration.groupings[groupType].forEach((grouping) => {
430
+ const hideEmptyGroups = groupConfiguration?.hideEmptyGroups === true;
431
+ const groupings = groupingsOf(groupConfiguration, groupType);
432
+ if (groupings.length) {
433
+ groupings.forEach((grouping) => {
476
434
  const orderedGroups = orderGroupsByOrder(grouping?.groups ?? []);
477
435
  const newIdMap = {};
478
436
  orderedGroups.forEach((group) => {
@@ -486,7 +444,7 @@ const constructStaticNodeGroupsInPlace = (tree, shouldUseNewId, makeId) => {
486
444
  if (orderedGroups?.length) {
487
445
  const firstGroup = orderedGroups.find((group) => !group.parentGroupId) || orderedGroups[0];
488
446
  orderedGroups.shift();
489
- const displayTree = makeTreeStaticGroupStructureInPlace(orderedGroups, "id", "parentGroupId", groupType, makeId, hideEmptyGroups);
447
+ const displayTree = makeTreeStaticGroupStructureInPlace(orderedGroups, "id", groupType, makeId, hideEmptyGroups);
490
448
  const { id, isExpanded, ...firstGroupProperties } = firstGroup;
491
449
  const groupNode = makeDisplayGroupNode({
492
450
  id,
@@ -517,7 +475,7 @@ const constructStaticNodeGroupsInPlace = (tree, shouldUseNewId, makeId) => {
517
475
  /** In-place port of updateNodeForStaticGrouping (TreeUtilities.js:1659-1691). */
518
476
  const updateNodeForStaticGroupingInPlace = (displayTree, nodeGroup, nodeChildren, treeList, scopedGroupItemIndexes, groupedItemIndexes, index, item) => {
519
477
  const updatedDisplayTree = { ...displayTree };
520
- if (!checkDisplayNodeHidden(updatedDisplayTree, item, false)) {
478
+ if (!checkDisplayNodeHidden(updatedDisplayTree, item)) {
521
479
  updatedDisplayTree.children = displayTree.children ? deepClone(displayTree.children) : displayTree.children;
522
480
  updatedDisplayTree["parentId"] = nodeGroup.id;
523
481
  updatedDisplayTree["parentGroupId"] = nodeGroup.id;
@@ -542,7 +500,7 @@ const processItemForStaticNodeGroupInPlace = (nodeGroup, item, groupedItemIndexe
542
500
  const groupJsonLogic = nodeGroup?.properties?.["jsonLogic"];
543
501
  if (propertyMapping && groupJsonLogic) {
544
502
  const rule = mapRuleVariables(propertyMapping, groupJsonLogic);
545
- if (rule && applyRule(rule, item, item.properties?.joiningEntityCatalogObjectKey, false)) {
503
+ if (rule && applyRule(rule, item)) {
546
504
  let itemAdded = false;
547
505
  nodeGroup.children.forEach((childGroup) => {
548
506
  if (childGroup.isGroupNode) itemAdded = processItemForStaticNodeGroupInPlace(childGroup, item, groupedItemIndexes, displayTree, index, childGroup.children?.length ? /* @__PURE__ */ new Set() : scopedGroupItemIndexes, treeList, nodeChildren)?.itemAdded;
@@ -555,7 +513,7 @@ const processItemForStaticNodeGroupInPlace = (nodeGroup, item, groupedItemIndexe
555
513
  } else if (nodeGroup.isOutlierGroup && !groupedItemIndexes.has(index)) updateNodeForStaticGroupingInPlace(displayTree, nodeGroup, nodeChildren, treeList, scopedGroupItemIndexes, groupedItemIndexes, index, item);
556
514
  if (treeList && nodeGroup.isGroupNode) {
557
515
  if (!treeList.filter((node) => node.isGroupNode).find((eg) => eg.id === nodeGroup.id)) {
558
- if (!checkDisplayNodeHidden(nodeGroup, item, false)) treeList.push(nodeGroup);
516
+ if (!checkDisplayNodeHidden(nodeGroup, item)) treeList.push(nodeGroup);
559
517
  }
560
518
  }
561
519
  return {
@@ -594,16 +552,44 @@ const updateTreeIdsInPlace = (node, lastEntityNodeId, newId, newParentId, parent
594
552
  if (node?.children?.length) node.children.forEach((child) => updateTreeIdsInPlace(child, entityNodeParentId, makeId(), newId, parentGroupName, makeId));
595
553
  };
596
554
  /** In-place port of processGroupNodesAndAddToTreeList (TreeUtilities.js:2145-2179). */
597
- const processGroupNodesAndAddToTreeListInPlace = (node, treeList, lastEntityNodeId, item, wasLazyLoaded) => {
555
+ const processGroupNodesAndAddToTreeListInPlace = (node, treeList, lastEntityNodeId, item) => {
598
556
  let entityNodeParentId = lastEntityNodeId;
599
557
  if (treeList) {
600
558
  if (!treeList.find((tree) => tree.id === node.id)) {
601
559
  if (!node.isGroupNode && entityNodeParentId) node["entityNodeParentId"] = entityNodeParentId;
602
560
  if (!node.isGroupNode) entityNodeParentId = node.id;
603
- if (!checkDisplayNodeHidden(node, item, wasLazyLoaded)) treeList.push(node);
561
+ if (!checkDisplayNodeHidden(node, item)) treeList.push(node);
604
562
  }
605
563
  }
606
- if (node?.children?.length) node.children.forEach((child) => processGroupNodesAndAddToTreeListInPlace(child, treeList, entityNodeParentId, item, wasLazyLoaded));
564
+ if (node?.children?.length) node.children.forEach((child) => processGroupNodesAndAddToTreeListInPlace(child, treeList, entityNodeParentId, item));
565
+ };
566
+ /**
567
+ * The heading a group-by-field level gives records with NO value for the field.
568
+ * Deliberate divergence from legacy, which left those records loose beside the
569
+ * headings (v1 :2092-2093, v2 :2697-2735): a field's values are the groups, and
570
+ * no value is one of them — the grouped-list convention (a "(Blank)" group,
571
+ * listed last). The heading carries `properties.blank`, so a renderer can
572
+ * translate the label.
573
+ */
574
+ const BLANK_GROUP_LABEL = "(Blank)";
575
+ const isBlankGroup = (node) => !!node.isGroupNode && node.properties?.["blank"] === true;
576
+ /** Blank headings after their siblings, at every depth of the headings. */
577
+ const blankGroupsLastInPlace = (nodes) => {
578
+ nodes.sort((a, b) => Number(isBlankGroup(a)) - Number(isBlankGroup(b)));
579
+ nodes.forEach((node) => {
580
+ if (node.isGroupNode) blankGroupsLastInPlace(node.children ?? []);
581
+ });
582
+ };
583
+ /**
584
+ * A row's group label for one field (v1 path): the field's value, or the blank
585
+ * label when it has none. A falsy value that IS a value (0, false) is given as
586
+ * text, so the truthiness checks legacy guards its headings with let it through.
587
+ */
588
+ const dynamicGroupLabelOf = (item, property) => {
589
+ if (!property) return null;
590
+ const value = getLabelFromProperty(item, property);
591
+ if (value === null || value === void 0 || value === "") return BLANK_GROUP_LABEL;
592
+ return value || toWireString(value);
607
593
  };
608
594
  /** In-place port of makeDynamicTreeStructure (TreeUtilities.js:254-278). */
609
595
  const makeDynamicTreeStructureInPlace = (treeData, key, parentKey) => {
@@ -630,7 +616,7 @@ const makeDynamicTreeStructureInPlace = (treeData, key, parentKey) => {
630
616
  /** Port of makeDynamicGroupTree (TreeUtilities.js:217-252) — display GroupNode variant. */
631
617
  const makeDynamicGroupTreeLocal = (node, item, parentGroupNode, makeId) => {
632
618
  const { id, children, apiMethodInstanceId, parentGroupId, order, property, label, isExpanded, ...groupProperties } = node;
633
- const updatedLabel = property ? getLabelFromProperty(item, property) : null;
619
+ const updatedLabel = dynamicGroupLabelOf(item, property);
634
620
  if (updatedLabel) {
635
621
  const groupNode = makeDisplayGroupNode({
636
622
  id: `${id}`,
@@ -641,7 +627,8 @@ const makeDynamicGroupTreeLocal = (node, item, parentGroupNode, makeId) => {
641
627
  properties: {
642
628
  label: updatedLabel,
643
629
  ...groupProperties,
644
- propertyKey: property
630
+ propertyKey: property,
631
+ ...updatedLabel === "(Blank)" ? { blank: true } : {}
645
632
  }
646
633
  }, makeId);
647
634
  if (parentGroupNode) parentGroupNode.children.push(groupNode);
@@ -652,7 +639,7 @@ const makeDynamicGroupTreeLocal = (node, item, parentGroupNode, makeId) => {
652
639
  /** Port of processDynamicGroupForCurrentNodeLevel (TreeUtilities.js:164-215). */
653
640
  const processDynamicGroupForCurrentNodeLevelLocal = (item, node, groupStructures, previousFilteredGroups, makeId) => {
654
641
  const { property, id } = node;
655
- const label = property ? getLabelFromProperty(item, property) : null;
642
+ const label = dynamicGroupLabelOf(item, property);
656
643
  let filteredGroups = [];
657
644
  previousFilteredGroups.forEach((group) => {
658
645
  if (group) {
@@ -689,11 +676,13 @@ const makeDynamicGroupStructuresLocal = (treeStructure, results, makeId) => {
689
676
  * the buggy id-only lookup below the root (:2080), unmatched rows land in
690
677
  * EVERY previous-level matched group (:2097-2102), single-group configs push
691
678
  * the display tree as a top-level sibling into the group set (:2092-2093).
679
+ * A row with no value for the group field joins the "(Blank)" group
680
+ * (dynamicGroupLabelOf).
692
681
  */
693
682
  const processItemForDynamicNodeGroupsInPlace = (displayTree, node, groupNodes, previousFilteredGroups = [], isSingleGroup = false) => {
694
683
  const { property, id } = node;
695
684
  const item = displayTree?.nodeObj;
696
- const label = property ? getLabelFromProperty(item, property) : null;
685
+ const label = dynamicGroupLabelOf(item, property);
697
686
  let filteredGroups = [];
698
687
  previousFilteredGroups.forEach((group) => {
699
688
  if (group) {
@@ -720,17 +709,17 @@ const processItemForDynamicNodeGroupsInPlace = (displayTree, node, groupNodes, p
720
709
  /**
721
710
  * In-place port of constructDynamicNodeGroups (TreeUtilities.js:1886-1975) —
722
711
  * the v1 dynamic path processReferences uses (:444). Builds a display tree per
723
- * row against the (already-cloned) node subtree — with catalogObjects/
724
- * promotedEntities null and wasLazyLoaded false, exactly like legacy
725
- * (:1940-1948) — assigns non-hidden rows into the group forest, then re-issues
712
+ * row against the (already-cloned) node subtree, in the caller's build
713
+ * context, assigns non-hidden rows into the group forest, then re-issues
726
714
  * every id (updateTreeIds :1966-1968). MUTATES the node's cloned
727
715
  * groupConfiguration like legacy.
728
716
  */
729
- const constructDynamicNodeGroupsInPlace = (results, tree, shouldUseNewId, makeId, loadMode) => {
717
+ const constructDynamicNodeGroupsInPlace = (results, tree, shouldUseNewId, context) => {
718
+ const { makeId } = context;
730
719
  let nodeGroups = [];
731
720
  const groupConfiguration = tree?.properties?.["groupConfiguration"];
732
- const groupType = groupConfiguration?.groupType || NODE_GROUP_TYPE.Dynamic;
733
- if (groupConfiguration?.enabled && groupConfiguration.groupings[groupType]?.length) groupConfiguration.groupings[groupType].forEach((grouping) => {
721
+ const groupings = groupingsOf(groupConfiguration, groupConfiguration?.groupType || NODE_GROUP_TYPE.Dynamic);
722
+ if (groupings.length) groupings.forEach((grouping) => {
734
723
  const orderedGroups = orderGroupsByOrder(grouping?.groups ?? []);
735
724
  const newIdMap = {};
736
725
  orderedGroups.forEach((group) => {
@@ -745,16 +734,11 @@ const constructDynamicNodeGroupsInPlace = (results, tree, shouldUseNewId, makeId
745
734
  const isSingleGroup = orderedGroups.length === 1;
746
735
  const dynamicTreeStructure = makeDynamicTreeStructureInPlace(orderedGroups, "id", "parentGroupId");
747
736
  const groupSet = makeDynamicGroupStructuresLocal(dynamicTreeStructure, results, makeId);
748
- const orderedKeys = [];
749
- const orderedTreeData = [];
750
- collectCatalogObjectKeysInOrder(tree, orderedKeys);
751
- flattenTreeInPreOrder(tree, orderedTreeData);
752
737
  results.forEach((item) => {
753
- const treeArr = [];
754
- processObjectToTreeInPlace(item, orderedTreeData, orderedKeys, treeArr, null, null, false, makeId, loadMode);
755
- const updatedDisplayTree = deepClone(makeTreeStructureInPlace(treeArr, "id", "parentId", "parentGroupId", loadMode));
756
- if (!checkDisplayNodeHidden(updatedDisplayTree, item, false)) processItemForDynamicNodeGroupsInPlace(updatedDisplayTree, dynamicTreeStructure, groupSet, groupSet, isSingleGroup);
738
+ const updatedDisplayTree = deepClone(composeRowTree(item, tree, context));
739
+ if (!checkDisplayNodeHidden(updatedDisplayTree, item)) processItemForDynamicNodeGroupsInPlace(updatedDisplayTree, dynamicTreeStructure, groupSet, groupSet, isSingleGroup);
757
740
  });
741
+ blankGroupsLastInPlace(groupSet);
758
742
  groupSet.forEach((group) => updateTreeIdsInPlace(group, null, makeId(), makeId(), null, makeId));
759
743
  nodeGroups = nodeGroups.concat(groupSet);
760
744
  }
@@ -763,127 +747,70 @@ const constructDynamicNodeGroupsInPlace = (results, tree, shouldUseNewId, makeId
763
747
  };
764
748
  /**
765
749
  * In-place port of processReferences (TreeUtilities.js:419-591) — the
766
- * recursive walker that clones the tree branch per data row, enriches each
767
- * copy (processObjIndex), synthesizes child-level static/dynamic groups
768
- * (:439/:444 — static uses constructStaticNodeGroups, dynamic the v1
769
- * constructDynamicNodeGroups), drops hidden rows, and recurses into child
770
- * arrays keyed by catalogObjectKey — but only into the levels splitChildLevels
771
- * called eager under the caller's LoadMode. Divergence from legacy (:541): rows reached through the
772
- * parent's nested data were not lazy-fetched, so wasLazyLoaded goes down as
773
- * false instead of inheriting the parent's lazyLoad flag (which now only means
774
- * "this level's children are fetched separately", and such a level is never
775
- * descended into at all).
750
+ * recursive walker that copies a level per data row, enriches each copy
751
+ * (processObjIndex), synthesizes child-level static/dynamic groups for a nested
752
+ * LIST (:439/:444 — static uses constructStaticNodeGroups, dynamic the v1
753
+ * constructDynamicNodeGroups), drops hidden rows, and recurses into the child
754
+ * rows keyed by catalogObjectKey — but only into the levels splitChildLevels
755
+ * called eager. Each child level is walked against its OWN config node (legacy
756
+ * re-found it by catalogObjectKey position in a flattened key list, which
757
+ * picked the wrong level whenever two levels shared a key).
776
758
  */
777
- const processReferencesInPlace = (reference, objectReferenceKeys, treeData, index, treeList, parentId, catalogObjects, promotedEntities, wasLazyLoaded, makeId, loadMode) => {
778
- const newIndex = index + 1;
779
- if (reference) {
780
- const node = parentId ? treeData[newIndex] : treeData[0];
781
- let nodeGroups = [];
782
- const groupConfiguration = node?.properties?.["groupConfiguration"];
783
- if (parentId) {
784
- if (groupConfiguration?.groupType === NODE_GROUP_TYPE.Static) nodeGroups = constructStaticNodeGroupsInPlace(node, true, makeId);
785
- else if (groupConfiguration?.groupType === NODE_GROUP_TYPE.Dynamic) nodeGroups = constructDynamicNodeGroupsInPlace(reference, node, true, makeId, loadMode);
786
- }
787
- if (Array.isArray(reference) && reference.length) reference.forEach((ref, i) => {
788
- if (node) {
789
- const nodeCopy = deepClone(node);
790
- const split = processObjIndexInPlace(nodeCopy, ref, parentId, catalogObjects, promotedEntities, wasLazyLoaded, makeId, loadMode);
791
- if (nodeGroups.length) {
792
- if (groupConfiguration?.groupType === NODE_GROUP_TYPE.Static) {
793
- const groupedItemIndexes = /* @__PURE__ */ new Set();
794
- let processedItem = {
795
- itemAdded: false,
796
- nodeChildren: []
797
- };
798
- nodeGroups.forEach((nodeGroup) => {
799
- let nodeGroupChildren = [];
800
- processedItem = processItemForStaticNodeGroupInPlace(nodeGroup, ref, groupedItemIndexes, nodeCopy, i, /* @__PURE__ */ new Set(), treeList);
801
- nodeGroupChildren = nodeGroupChildren.concat(processedItem.nodeChildren);
802
- mapNodeGroupChildrenInPlace(nodeGroup, nodeGroupChildren);
803
- nodeGroup.parentGroupId = nodeCopy.parentId;
804
- });
805
- if (!processedItem.itemAdded && groupConfiguration?.outlier === NODE_GROUP_OUTLIER.Individual) {
806
- if (!checkDisplayNodeHidden(nodeCopy, ref, wasLazyLoaded)) treeList.push(nodeCopy);
807
- }
808
- } else if (groupConfiguration?.groupType === NODE_GROUP_TYPE.Dynamic) nodeGroups.forEach((nodeGroup) => {
809
- nodeGroup.parentGroupId = nodeCopy.parentId;
810
- nodeGroup.parentId = nodeCopy.parentId;
811
- processGroupNodesAndAddToTreeListInPlace(nodeGroup, treeList, nodeCopy.parentId, ref, wasLazyLoaded);
812
- });
813
- } else if (!checkDisplayNodeHidden(nodeCopy, ref, wasLazyLoaded)) treeList.push(nodeCopy);
814
- if (nodeCopy?.children?.length) {
815
- const objectReferenceKeysCopy = [...objectReferenceKeys];
816
- nodeCopy.children.forEach((childNode) => {
817
- const catalogObjectKey = childNode?.properties?.["catalogObjectKey"];
818
- const nextIndex = objectReferenceKeysCopy.indexOf(catalogObjectKey);
819
- if (!parentId) objectReferenceKeysCopy[nextIndex] = null;
820
- if (!catalogObjectKey || !split.eagerChildKeys.has(catalogObjectKey)) return;
821
- processReferencesInPlace(ref[catalogObjectKey], objectReferenceKeys, treeData, nextIndex, treeList, nodeCopy.id, catalogObjects, promotedEntities, false, makeId, loadMode);
822
- });
823
- }
824
- }
759
+ const processReferencesInPlace = (reference, node, treeList, parentId, ctx) => {
760
+ if (!reference || typeof reference !== "object") return;
761
+ const isList = Array.isArray(reference);
762
+ const rows = isList ? reference : [reference];
763
+ const groupConfiguration = node.properties?.["groupConfiguration"];
764
+ const groupType = parentId && isList ? groupConfiguration?.groupType : void 0;
765
+ const nodeGroups = groupType === NODE_GROUP_TYPE.Static ? constructStaticNodeGroupsInPlace(node, true, ctx.makeId) : groupType === NODE_GROUP_TYPE.Dynamic ? constructDynamicNodeGroupsInPlace(rows, node, true, ctx) : [];
766
+ rows.forEach((ref, i) => {
767
+ const nodeCopy = cloneLevel(node);
768
+ const split = processObjIndexInPlace(nodeCopy, ref, parentId, ctx);
769
+ if (!nodeGroups.length) {
770
+ if (!checkDisplayNodeHidden(nodeCopy, ref)) treeList.push(nodeCopy);
771
+ } else if (groupType === NODE_GROUP_TYPE.Static) {
772
+ const groupedItemIndexes = /* @__PURE__ */ new Set();
773
+ let itemAdded = false;
774
+ nodeGroups.forEach((nodeGroup) => {
775
+ const processedItem = processItemForStaticNodeGroupInPlace(nodeGroup, ref, groupedItemIndexes, nodeCopy, i, /* @__PURE__ */ new Set(), treeList);
776
+ itemAdded = processedItem.itemAdded;
777
+ mapNodeGroupChildrenInPlace(nodeGroup, processedItem.nodeChildren);
778
+ nodeGroup.parentGroupId = nodeCopy.parentId;
779
+ });
780
+ if (!itemAdded && groupConfiguration?.outlier === NODE_GROUP_OUTLIER.Individual && !checkDisplayNodeHidden(nodeCopy, ref)) treeList.push(nodeCopy);
781
+ } else nodeGroups.forEach((nodeGroup) => {
782
+ nodeGroup.parentGroupId = nodeCopy.parentId;
783
+ nodeGroup.parentId = nodeCopy.parentId;
784
+ processGroupNodesAndAddToTreeListInPlace(nodeGroup, treeList, nodeCopy.parentId, ref);
825
785
  });
826
- else if (typeof reference === "object" && !Array.isArray(reference)) {
827
- if (node) {
828
- const nodeCopy = deepClone(node);
829
- const split = processObjIndexInPlace(nodeCopy, reference, parentId, catalogObjects, promotedEntities, wasLazyLoaded, makeId, loadMode);
830
- if (!checkDisplayNodeHidden(nodeCopy, reference, wasLazyLoaded)) treeList.push(nodeCopy);
831
- if (nodeCopy?.children?.length) {
832
- const objectReferenceKeysCopy = [...objectReferenceKeys];
833
- nodeCopy.children.forEach((childNode) => {
834
- const catalogObjectKey = childNode?.properties?.["catalogObjectKey"];
835
- const nextIndex = parentId ? newIndex : objectReferenceKeysCopy.indexOf(catalogObjectKey);
836
- if (!parentId) objectReferenceKeysCopy[nextIndex] = null;
837
- if (!catalogObjectKey || !split.eagerChildKeys.has(catalogObjectKey)) return;
838
- processReferencesInPlace(reference[catalogObjectKey], objectReferenceKeys, treeData, nextIndex, treeList, nodeCopy.id, catalogObjects, promotedEntities, false, makeId, loadMode);
839
- });
840
- }
841
- }
842
- }
843
- }
786
+ (nodeCopy.children ?? []).forEach((childNode) => {
787
+ const catalogObjectKey = childNode?.properties?.["catalogObjectKey"];
788
+ if (!catalogObjectKey || !split.eagerChildKeys.has(catalogObjectKey)) return;
789
+ processReferencesInPlace(ref[catalogObjectKey], childNode, treeList, nodeCopy.id, ctx);
790
+ });
791
+ });
844
792
  };
845
- /** In-place port of processObjectToTree (TreeUtilities.js:392-413). */
846
- const processObjectToTreeInPlace = (result, treeData, objectReferenceKeys, treeList, catalogObjects, promotedEntities, wasLazyLoaded, makeId, loadMode) => {
847
- processReferencesInPlace(result, objectReferenceKeys, { ...treeData }, 0, treeList, null, catalogObjects, promotedEntities, wasLazyLoaded, makeId, loadMode);
793
+ /**
794
+ * One row composed against a level into its nested display tree — the
795
+ * processObjectToTree + makeTreeStructure pair (TreeUtilities.js:392-413).
796
+ */
797
+ const composeRowTree = (row, level, ctx) => {
798
+ const treeList = [];
799
+ processReferencesInPlace(row, level, treeList, null, ctx);
800
+ return makeTreeStructureInPlace(treeList, "id", "parentId", "parentGroupId");
848
801
  };
849
802
  /**
850
803
  * Pure port of formatTreeMenuItem (TreeUtilities.js:1095-1124): one query row +
851
804
  * the NESTED display seed (makeDisplayTreeStructure output) → the enriched
852
805
  * display tree. Returns null when the row is falsy; a single root is returned
853
- * bare, several as an array — with associatedInquiryTree/wasLazyLoaded
854
- * attached to the result exactly like legacy (:1121-1122). Neither the seed
855
- * nor the row is mutated or aliased (both are deep-cloned up front; nodeObj
856
- * references the private row clone).
806
+ * bare, several as an array. (Legacy also attached its associatedInquiryTree
807
+ * argument to the result (:1121); v2 reads linked trees from their own query.)
808
+ * Neither the seed nor the row is mutated or aliased (both are deep-cloned up
809
+ * front; nodeObj references the private row clone).
857
810
  */
858
811
  const buildDisplayTree = (row, nestedTreeStructure, options) => {
859
812
  if (!row) return null;
860
- const { makeId } = options;
861
- const loadMode = options.loadMode ?? "legacy-data";
862
- const tree = deepClone(nestedTreeStructure);
863
- const responseObject = deepClone(row);
864
- const orderedKeys = [];
865
- const orderedTreeData = [];
866
- const treeArr = [];
867
- collectCatalogObjectKeysInOrder(tree, orderedKeys);
868
- flattenTreeInPreOrder(tree, orderedTreeData);
869
- processObjectToTreeInPlace(responseObject, orderedTreeData, orderedKeys, treeArr, options.catalogObjects, options.promotedEntities, options.wasLazyLoaded, makeId, loadMode);
870
- const displayTree = makeTreeStructureInPlace(treeArr, "id", "parentId", "parentGroupId", loadMode);
871
- displayTree["associatedInquiryTree"] = options.associatedInquiryTree;
872
- displayTree["wasLazyLoaded"] = options.wasLazyLoaded;
873
- return displayTree;
874
- };
875
- /**
876
- * Single-node variant of buildDisplayTree: enrich ONE entity node with one
877
- * record into the display shape the Inquiry renderer consumes — nodeLabel/
878
- * nodeSubLabel/headerTitle resolved, conditional icon/adornment stamped,
879
- * search state attached, nodeObj set. Same enrichment code path as
880
- * buildDisplayTree (processObjIndexInPlace), so a Tree Builder preview node
881
- * is byte-shaped like a live Inquiry node. Neither input is mutated.
882
- */
883
- const buildDisplayNodeForRecord = (node, row, options) => {
884
- const displayNode = deepClone(node);
885
- processObjIndexInPlace(displayNode, deepClone(row), node.parentId ?? null, options.catalogObjects, options.promotedEntities, options.wasLazyLoaded ?? false, options.makeId, options.loadMode ?? "legacy-data");
886
- return displayNode;
813
+ return composeRowTree(deepClone(row), deepClone(nestedTreeStructure), options);
887
814
  };
888
815
  /** Port of CompareSiblingNodes (TreeUtilities.js:2365-2378) — groups first, then by order. */
889
816
  const compareSiblingNodes = (a, b) => {
@@ -894,6 +821,7 @@ const compareSiblingNodes = (a, b) => {
894
821
  if (aIsGroup && bIsGroup) {
895
822
  if (a.properties?.["order"] > b.properties?.["order"]) return 1;
896
823
  if (a.properties?.["order"] < b.properties?.["order"]) return -1;
824
+ return Number(isBlankGroup(a)) - Number(isBlankGroup(b));
897
825
  }
898
826
  return 0;
899
827
  };
@@ -914,31 +842,96 @@ const constructDynamicGroupConfigTrees2InPlace = (configNode) => {
914
842
  const topLevelConfigGroupNodes = [];
915
843
  const groupConfiguration = configNode?.properties?.["groupConfiguration"];
916
844
  const groupType = groupConfiguration?.groupType || NODE_GROUP_TYPE.Dynamic;
917
- if (groupConfiguration?.enabled && groupConfiguration.groupings[groupType]?.length) {
918
- const dynamicGroupings = groupConfiguration.groupings[groupType];
919
- for (const grouping of dynamicGroupings) {
920
- if (grouping.groups === void 0 || grouping.groups === null) continue;
921
- const groupChildMap = {};
922
- for (const group of grouping.groups) {
923
- group["children"] = getGroupChildMap(groupChildMap, group.id);
924
- if (group.parentGroupId === void 0 || group.parentGroupId === null) topLevelConfigGroupNodes.push(group);
925
- else addGroupToChildMap(groupChildMap, group.parentGroupId, group);
926
- }
845
+ for (const grouping of groupingsOf(groupConfiguration, groupType)) {
846
+ if (grouping.groups === void 0 || grouping.groups === null) continue;
847
+ const groupChildMap = {};
848
+ for (const group of grouping.groups) {
849
+ group["children"] = getGroupChildMap(groupChildMap, group.id);
850
+ if (group.parentGroupId === void 0 || group.parentGroupId === null) topLevelConfigGroupNodes.push(group);
851
+ else addGroupToChildMap(groupChildMap, group.parentGroupId, group);
927
852
  }
928
853
  }
929
854
  for (const childConfigNode of configNode.children) constructDynamicGroupConfigTrees2InPlace(childConfigNode);
930
855
  configNode["groupConfigTrees"] = topLevelConfigGroupNodes;
931
856
  };
932
857
  /**
858
+ * One record as an enriched display node under `parentId`, its EAGER child
859
+ * result sets composed through constructDynamicNodeGroups2 (:2516-2528,
860
+ * :2697-2735). Legacy passes a child set's raw value either way (:2550-2568 —
861
+ * the non-array wrap is built but never used), so a non-array set yields no
862
+ * children, exactly like legacy.
863
+ */
864
+ const emitRecordNode = (configNode, item, parentId, context) => {
865
+ const recordNode = deepClone(configNode);
866
+ const split = processObjIndexInPlace(recordNode, item, parentId, context);
867
+ recordNode.children = (recordNode.children ?? []).flatMap((childConfigNode) => {
868
+ const key = childConfigNode.properties["catalogObjectKey"];
869
+ if (!key || !split.eagerChildKeys.has(key) || !item[key]) return [];
870
+ return constructDynamicNodeGroups2InPlace(item[key], childConfigNode, recordNode.id, context);
871
+ });
872
+ return recordNode;
873
+ };
874
+ /**
875
+ * Put one record under the heading `groupName` among `siblings` — reusing the
876
+ * heading or creating it — and on down through the heading's subgroup configs
877
+ * (createDynamicGroups2 :2448-2531). A record no subgroup field has a value for
878
+ * goes under that level's blank heading; with no subgroups it is emitted into
879
+ * the heading itself, with its own child result sets built through
880
+ * constructDynamicNodeGroups2.
881
+ */
882
+ function joinDynamicGroup2InPlace(treeConfig, groupConfig, item, groupName, siblings, parentId, context, blank = false) {
883
+ const { makeId } = context;
884
+ let groupNode = siblings.find((sibling) => sibling.isGroupNode === true && sibling.properties["label"] === groupName) ?? null;
885
+ if (groupNode == null) {
886
+ groupNode = makeDisplayGroupNode({
887
+ id: `${makeId()}`,
888
+ groupType: NODE_GROUP_TYPE.Dynamic,
889
+ children: [],
890
+ parentGroupId: parentId,
891
+ parentId,
892
+ isExpanded: groupConfig.isExpanded,
893
+ properties: {
894
+ label: groupName,
895
+ propertyIsCustom: groupConfig["propertyIsCustom"],
896
+ propertyKey: groupConfig.property,
897
+ order: groupConfig.order,
898
+ ...blank ? { blank: true } : {}
899
+ }
900
+ }, makeId);
901
+ siblings.push(groupNode);
902
+ }
903
+ const subGroupConfigs = groupConfig.children ?? [];
904
+ let subGroupWasCreated = false;
905
+ subGroupConfigs.forEach((subGroupConfig) => {
906
+ subGroupWasCreated = createDynamicGroups2InPlace(treeConfig, subGroupConfig, item, item, subGroupConfig.property ? subGroupConfig.property.split(".") : [], groupNode.children, groupNode.id, context) || subGroupWasCreated;
907
+ });
908
+ if (!subGroupWasCreated) joinBlankGroupOrEmit2InPlace(treeConfig, subGroupConfigs, item, groupNode.children, groupNode.id, context);
909
+ groupNode.children.sort(compareSiblingNodes);
910
+ }
911
+ /**
912
+ * A record none of a level's group fields has a value for: under the level's
913
+ * blank heading, or — where the level groups by no field — a plain record row.
914
+ */
915
+ function joinBlankGroupOrEmit2InPlace(treeConfig, groupConfigs, item, siblings, parentId, context) {
916
+ const fieldGroup = groupConfigs.find((config) => !!config.property);
917
+ if (!fieldGroup) {
918
+ siblings.push(emitRecordNode(treeConfig, item, parentId, context));
919
+ return;
920
+ }
921
+ joinDynamicGroup2InPlace(treeConfig, fieldGroup, item, BLANK_GROUP_LABEL, siblings, parentId, context, true);
922
+ }
923
+ /**
933
924
  * In-place port of createDynamicGroups2 (TreeUtilities.js:2399-2581): walk the
934
925
  * dotted group property into the row (recursing through arrays/objects),
935
926
  * reuse-or-create the sibling group node labeled by the resolved value, then
936
927
  * recurse into subgroup configs — a row with no subgroup match becomes an
937
928
  * enriched display node inside the group, with its own child result sets built
938
- * through constructDynamicNodeGroups2 (catalog/promoted null, not lazy —
939
- * :2519-2527).
929
+ * through constructDynamicNodeGroups2. Documented divergence from legacy
930
+ * (catalog/promoted null there, :2519-2527): the caller's catalog metadata is
931
+ * carried, so grouped rows get the same search state as every other row — their
932
+ * identifiers are what a link back to them names.
940
933
  */
941
- const createDynamicGroups2InPlace = (treeConfig, groupConfig, item, curItem, pList, siblings, parentId, makeId, loadMode) => {
934
+ const createDynamicGroups2InPlace = (treeConfig, groupConfig, item, curItem, pList, siblings, parentId, context) => {
942
935
  let groupCreated = false;
943
936
  if (pList.length > 0) {
944
937
  const tmpProp = pList[0];
@@ -946,67 +939,16 @@ const createDynamicGroups2InPlace = (treeConfig, groupConfig, item, curItem, pLi
946
939
  const newItem = curItem[tmpProp];
947
940
  if (pList.length > 1) {
948
941
  if (Array.isArray(newItem)) for (let i = 0, numOfItems = newItem.length; i < numOfItems; i++) {
949
- const aGroupWasCreated = createDynamicGroups2InPlace(treeConfig, groupConfig, item, newItem[i], pList.slice(1), siblings, parentId, makeId, loadMode);
942
+ const aGroupWasCreated = createDynamicGroups2InPlace(treeConfig, groupConfig, item, newItem[i], pList.slice(1), siblings, parentId, context);
950
943
  groupCreated = aGroupWasCreated ? aGroupWasCreated : groupCreated;
951
944
  }
952
945
  else if (typeof newItem === "object" && newItem !== null) {
953
- const aGroupWasCreated = createDynamicGroups2InPlace(treeConfig, groupConfig, item, newItem, pList.slice(1), siblings, parentId, makeId, loadMode);
946
+ const aGroupWasCreated = createDynamicGroups2InPlace(treeConfig, groupConfig, item, newItem, pList.slice(1), siblings, parentId, context);
954
947
  groupCreated = aGroupWasCreated ? aGroupWasCreated : groupCreated;
955
948
  }
956
949
  } else if (typeof newItem !== "object" && newItem !== null && newItem !== "") {
957
- const groupName = newItem.toString();
958
- let groupNode = null;
959
- for (let siblingIdx = 0, numOfSiblings = siblings.length; siblingIdx < numOfSiblings; siblingIdx++) {
960
- const sibling = siblings[siblingIdx];
961
- if (Object.prototype.hasOwnProperty.call(sibling, "isGroupNode") && sibling.isGroupNode === true) {
962
- if (sibling.properties["label"] === groupName) {
963
- groupNode = sibling;
964
- break;
965
- }
966
- }
967
- }
968
- if (groupNode == null) {
969
- groupNode = makeDisplayGroupNode({
970
- id: `${makeId()}`,
971
- groupType: NODE_GROUP_TYPE.Dynamic,
972
- children: [],
973
- parentGroupId: parentId,
974
- parentId,
975
- isExpanded: groupConfig.isExpanded,
976
- properties: {
977
- label: groupName,
978
- propertyIsCustom: groupConfig["propertyIsCustom"],
979
- propertyKey: groupConfig.property,
980
- order: groupConfig.order
981
- }
982
- }, makeId);
983
- siblings.push(groupNode);
984
- }
950
+ joinDynamicGroup2InPlace(treeConfig, groupConfig, item, newItem.toString(), siblings, parentId, context);
985
951
  groupCreated = true;
986
- let subGroupWasCreated = false;
987
- const subGroupConfigs = groupConfig.children;
988
- for (let subGroupIdx = 0, numOfSubGroups = subGroupConfigs.length; subGroupIdx < numOfSubGroups; subGroupIdx++) {
989
- const subGroupConfig = subGroupConfigs[subGroupIdx];
990
- const subGroupCreated = createDynamicGroups2InPlace(treeConfig, subGroupConfig, item, item, subGroupConfig.property ? subGroupConfig.property.split(".") : [], groupNode.children, groupNode.id, makeId, loadMode);
991
- subGroupWasCreated = subGroupCreated ? subGroupCreated : subGroupWasCreated;
992
- }
993
- if (!subGroupWasCreated) {
994
- const tmpNode = deepClone(treeConfig);
995
- const split = processObjIndexInPlace(tmpNode, item, groupNode.id, null, null, false, makeId, loadMode);
996
- groupNode.children.push(tmpNode);
997
- const newChildNodes = [];
998
- const tmpChildren = tmpNode.children;
999
- for (let childNodeIdx = 0, numOfChildNodes = tmpChildren.length; childNodeIdx < numOfChildNodes; childNodeIdx++) {
1000
- const childConfigNode = tmpChildren[childNodeIdx];
1001
- const propToGetRecords = childConfigNode.properties["catalogObjectKey"];
1002
- if (propToGetRecords && propToGetRecords != null && split.eagerChildKeys.has(propToGetRecords) && Object.prototype.hasOwnProperty.call(item, propToGetRecords)) {
1003
- const newResultSet = item[propToGetRecords];
1004
- if (newResultSet && newResultSet != null) newChildNodes.push(...constructDynamicNodeGroups2InPlace(newResultSet, childConfigNode, tmpNode.id, makeId, loadMode));
1005
- }
1006
- }
1007
- tmpNode.children = newChildNodes;
1008
- }
1009
- groupNode.children.sort(compareSiblingNodes);
1010
952
  }
1011
953
  }
1012
954
  }
@@ -1015,11 +957,13 @@ const createDynamicGroups2InPlace = (treeConfig, groupConfig, item, curItem, pLi
1015
957
  /**
1016
958
  * In-place port of constructDynamicNodeGroups2 (TreeUtilities.js:2643-2740) —
1017
959
  * the v2 dynamic path constructPreloadedTree uses (:2335). Rows that create or
1018
- * join a group land under it; rows matching no group become enriched sibling
1019
- * display nodes with their own child result sets processed recursively. Group
960
+ * join a group land under it; a row with no value for a group-by field joins
961
+ * the "(Blank)" heading (joinBlankGroupOrEmit2InPlace); rows matching no group
962
+ * otherwise become enriched sibling display nodes with their own child result
963
+ * sets processed recursively. Group
1020
964
  * nodes sort before entity nodes (CompareSiblingNodes).
1021
965
  */
1022
- const constructDynamicNodeGroups2InPlace = (results, configNode, parentId, makeId, loadMode) => {
966
+ const constructDynamicNodeGroups2InPlace = (results, configNode, parentId, context) => {
1023
967
  const levelNodes = [];
1024
968
  if (!configNode["groupConfigTrees"]) constructDynamicGroupConfigTrees2InPlace(configNode);
1025
969
  for (let rIdx = 0, numOfResults = results.length; rIdx < numOfResults; rIdx++) {
@@ -1028,30 +972,26 @@ const constructDynamicNodeGroups2InPlace = (results, configNode, parentId, makeI
1028
972
  const groupConfigTrees = configNode["groupConfigTrees"];
1029
973
  for (let ctlIdx = 0, numOfGroupConfigTrees = groupConfigTrees.length; ctlIdx < numOfGroupConfigTrees; ctlIdx++) {
1030
974
  const groupConfigNode = groupConfigTrees[ctlIdx];
1031
- const aGroupWasCreated = createDynamicGroups2InPlace(configNode, groupConfigNode, item, item, groupConfigNode.property ? groupConfigNode.property.split(".") : [], levelNodes, parentId, makeId, loadMode);
975
+ const aGroupWasCreated = createDynamicGroups2InPlace(configNode, groupConfigNode, item, item, groupConfigNode.property ? groupConfigNode.property.split(".") : [], levelNodes, parentId, context);
1032
976
  groupCreated = aGroupWasCreated ? aGroupWasCreated : groupCreated;
1033
977
  }
1034
- if (!groupCreated) {
1035
- const tmpNode = deepClone(configNode);
1036
- const split = processObjIndexInPlace(tmpNode, item, parentId, null, null, false, makeId, loadMode);
1037
- levelNodes.push(tmpNode);
1038
- const newChildNodes = [];
1039
- const tmpChildren = tmpNode.children;
1040
- for (let childNodeIdx = 0, numOfChildNodes = tmpChildren.length; childNodeIdx < numOfChildNodes; childNodeIdx++) {
1041
- const childConfigNode = tmpChildren[childNodeIdx];
1042
- const propToGetRecords = childConfigNode.properties["catalogObjectKey"];
1043
- if (propToGetRecords && propToGetRecords != null && split.eagerChildKeys.has(propToGetRecords) && Object.prototype.hasOwnProperty.call(item, propToGetRecords)) {
1044
- const newResultSet = item[propToGetRecords];
1045
- if (newResultSet && newResultSet != null) newChildNodes.push(...constructDynamicNodeGroups2InPlace(newResultSet, childConfigNode, tmpNode.id, makeId, loadMode));
1046
- }
1047
- }
1048
- tmpNode.children = newChildNodes;
1049
- }
978
+ if (!groupCreated) joinBlankGroupOrEmit2InPlace(configNode, groupConfigTrees, item, levelNodes, parentId, context);
1050
979
  }
1051
980
  levelNodes.sort(compareSiblingNodes);
1052
981
  return levelNodes;
1053
982
  };
1054
983
  /**
984
+ * Whether a level's records are sorted into configured groups — the condition
985
+ * buildPreloadedDisplayList groups a root page under.
986
+ */
987
+ const groupsLevelRecords = (level) => {
988
+ const config = level?.properties?.["groupConfiguration"];
989
+ if (!config?.enabled) return false;
990
+ if (config.groupType === NODE_GROUP_TYPE.Static) return !!config.groupings?.static?.length;
991
+ if (config.groupType === NODE_GROUP_TYPE.Dynamic) return !!config.groupings?.dynamic?.length;
992
+ return false;
993
+ };
994
+ /**
1055
995
  * Pure port of constructPreloadedTree (TreeUtilities.js:2231-2351): seed the
1056
996
  * menu from a preloaded page of rows against the NESTED display seed
1057
997
  * (makeDisplayTreeStructure output).
@@ -1069,29 +1009,20 @@ const constructDynamicNodeGroups2InPlace = (results, configNode, parentId, makeI
1069
1009
  const buildPreloadedDisplayList = (nestedTreeStructure, rows, options) => {
1070
1010
  if (!rows) return null;
1071
1011
  const { makeId } = options;
1072
- const loadMode = options.loadMode ?? "legacy-data";
1073
- const catalogObjects = options.catalogObjects ?? null;
1074
- const promotedEntities = options.promotedEntities ?? null;
1075
1012
  let preloadedList = [];
1076
1013
  const tree = deepClone(nestedTreeStructure);
1077
1014
  const pageList = deepClone(rows);
1078
1015
  const groupConfiguration = tree.properties?.["groupConfiguration"];
1079
- const orderedKeys = [];
1080
- const orderedTreeData = [];
1081
- collectCatalogObjectKeysInOrder(tree, orderedKeys);
1082
- flattenTreeInPreOrder(tree, orderedTreeData);
1083
- const buildRowTree = (item, wasLazyLoaded) => {
1084
- const treeArr = [];
1085
- processObjectToTreeInPlace(item, orderedTreeData, orderedKeys, treeArr, catalogObjects, promotedEntities, wasLazyLoaded, makeId, loadMode);
1086
- return makeTreeStructureInPlace(treeArr, "id", "parentId", "parentGroupId", loadMode);
1087
- };
1016
+ const buildRowTree = (item) => composeRowTree(item, tree, options);
1088
1017
  if (groupConfiguration?.enabled && groupConfiguration.groupType === NODE_GROUP_TYPE.Static && groupConfiguration?.groupings?.static?.length) {
1089
1018
  const topNodeGroups = constructStaticNodeGroupsInPlace(tree, false, makeId);
1090
1019
  const groupedItemIndexes = /* @__PURE__ */ new Set();
1020
+ const rowTrees = pageList.map(buildRowTree);
1091
1021
  topNodeGroups.forEach((nodeGroup) => {
1092
1022
  let nodeGroupChildren = [];
1093
1023
  pageList.forEach((item, index) => {
1094
- const processedItem = processItemForStaticNodeGroupInPlace(nodeGroup, item, groupedItemIndexes, buildRowTree(item, false), index, /* @__PURE__ */ new Set());
1024
+ const displayTree = rowTrees[index];
1025
+ const processedItem = processItemForStaticNodeGroupInPlace(nodeGroup, item, groupedItemIndexes, displayTree, index, /* @__PURE__ */ new Set());
1095
1026
  nodeGroupChildren = nodeGroupChildren.concat(processedItem?.nodeChildren || []);
1096
1027
  });
1097
1028
  const updatedNodeGroup = mapNodeGroupChildrenInPlace(nodeGroup, nodeGroupChildren);
@@ -1102,19 +1033,19 @@ const buildPreloadedDisplayList = (nestedTreeStructure, rows, options) => {
1102
1033
  });
1103
1034
  if (groupConfiguration?.outlier === NODE_GROUP_OUTLIER.Individual) pageList.forEach((item, index) => {
1104
1035
  if (!groupedItemIndexes.has(index)) {
1105
- const displayTree = buildRowTree(item, false);
1106
- if (!checkDisplayNodeHidden(displayTree, item, false)) {
1036
+ const displayTree = rowTrees[index];
1037
+ if (!checkDisplayNodeHidden(displayTree, item)) {
1107
1038
  updateTreeIdsInPlace(displayTree, null, makeId(), makeId(), null, makeId);
1108
1039
  preloadedList.push(displayTree);
1109
1040
  }
1110
1041
  }
1111
1042
  });
1112
1043
  } else if (groupConfiguration?.enabled && groupConfiguration.groupType === NODE_GROUP_TYPE.Dynamic && groupConfiguration?.groupings?.dynamic?.length) {
1113
- const nodeGroups = constructDynamicNodeGroups2InPlace(pageList, tree, null, makeId, loadMode);
1044
+ const nodeGroups = constructDynamicNodeGroups2InPlace(pageList, tree, null, options);
1114
1045
  preloadedList = preloadedList.concat(nodeGroups);
1115
1046
  } else pageList.forEach((item) => {
1116
- const displayTree = buildRowTree(item, void 0);
1117
- if (!checkDisplayNodeHidden(displayTree, item, false)) preloadedList.push(displayTree);
1047
+ const displayTree = buildRowTree(item);
1048
+ if (!checkDisplayNodeHidden(displayTree, item)) preloadedList.push(displayTree);
1118
1049
  });
1119
1050
  return preloadedList;
1120
1051
  };
@@ -1135,6 +1066,6 @@ const getSearchValueString = (nodeObj, searchIdentifier) => {
1135
1066
  return toWireString(searchValues);
1136
1067
  };
1137
1068
  //#endregion
1138
- export { DEFAULT_LOAD_MODE, buildDisplayNodeForRecord, buildDisplayTree, buildPreloadedDisplayList, collectDropSourceEntities, getSearchValueString, isDraggableLevel, makeDisplayTreeStructure, nodeEntityName, resolveLegacyLoadMode, resolveRowLabel, splitChildLevels };
1069
+ export { BLANK_GROUP_LABEL, buildDisplayTree, buildPreloadedDisplayList, collectDropSourceEntities, getSearchValueString, groupsLevelRecords, hasUnloadedChildren, isDragEntity, isDraggableLevel, isEmptyHiddenHeading, loadsChildrenLazily, makeDisplayTreeStructure, nodeEntityName, resolveRowLabel, rowChildState, splitChildLevels };
1139
1070
 
1140
1071
  //# sourceMappingURL=displayTree.mjs.map