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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (670) hide show
  1. package/dist/.tsbuildinfo +1 -1
  2. package/dist/UI/feedback/PageLoading.d.ts +11 -1
  3. package/dist/UI/feedback/PageLoading.d.ts.map +1 -1
  4. package/dist/UI/feedback/PageLoading.js +12 -12
  5. package/dist/UI/feedback/PageLoading.js.map +1 -1
  6. package/dist/UI/feedback/PageLoading.mjs +35 -21
  7. package/dist/UI/feedback/PageLoading.mjs.map +1 -1
  8. package/dist/UI/feedback/PageLoading.module.css +9 -0
  9. package/dist/UI/fluent-web-components/UdpIconPicker.d.ts +4 -1
  10. package/dist/UI/fluent-web-components/UdpIconPicker.d.ts.map +1 -1
  11. package/dist/UI/fluent-web-components/UdpIconPicker.js +2 -2
  12. package/dist/UI/fluent-web-components/UdpIconPicker.js.map +1 -1
  13. package/dist/UI/fluent-web-components/UdpIconPicker.mjs +32 -28
  14. package/dist/UI/fluent-web-components/UdpIconPicker.mjs.map +1 -1
  15. package/dist/UI/fluent-web-components/UdpLink.d.ts +6 -0
  16. package/dist/UI/fluent-web-components/UdpLink.d.ts.map +1 -1
  17. package/dist/UI/fluent-web-components/UdpLink.js.map +1 -1
  18. package/dist/UI/fluent-web-components/UdpLink.mjs.map +1 -1
  19. package/dist/UI/fluent-web-components/index.d.ts +10 -0
  20. package/dist/UI/fluent-web-components/index.d.ts.map +1 -1
  21. package/dist/UI/fluent-web-components/index.js +10 -0
  22. package/dist/UI/fluent-web-components/index.js.map +1 -1
  23. package/dist/UI/fluent-web-components/shell/UdpShell.d.ts +10 -0
  24. package/dist/UI/fluent-web-components/shell/UdpShell.d.ts.map +1 -0
  25. package/dist/UI/fluent-web-components/shell/UdpShell.js +7 -0
  26. package/dist/UI/fluent-web-components/shell/UdpShell.js.map +1 -0
  27. package/dist/UI/fluent-web-components/shell/UdpShell.mjs +19 -0
  28. package/dist/UI/fluent-web-components/shell/UdpShell.mjs.map +1 -0
  29. package/dist/UI/fluent-web-components/shell/UdpShellAppBar.d.ts +11 -0
  30. package/dist/UI/fluent-web-components/shell/UdpShellAppBar.d.ts.map +1 -0
  31. package/dist/UI/fluent-web-components/shell/UdpShellAppBar.js +7 -0
  32. package/dist/UI/fluent-web-components/shell/UdpShellAppBar.js.map +1 -0
  33. package/dist/UI/fluent-web-components/shell/UdpShellAppBar.mjs +19 -0
  34. package/dist/UI/fluent-web-components/shell/UdpShellAppBar.mjs.map +1 -0
  35. package/dist/UI/fluent-web-components/shell/UdpShellAppBarAction.d.ts +16 -0
  36. package/dist/UI/fluent-web-components/shell/UdpShellAppBarAction.d.ts.map +1 -0
  37. package/dist/UI/fluent-web-components/shell/UdpShellAppBarAction.js +7 -0
  38. package/dist/UI/fluent-web-components/shell/UdpShellAppBarAction.js.map +1 -0
  39. package/dist/UI/fluent-web-components/shell/UdpShellAppBarAction.mjs +19 -0
  40. package/dist/UI/fluent-web-components/shell/UdpShellAppBarAction.mjs.map +1 -0
  41. package/dist/UI/fluent-web-components/shell/UdpShellNav.d.ts +21 -0
  42. package/dist/UI/fluent-web-components/shell/UdpShellNav.d.ts.map +1 -0
  43. package/dist/UI/fluent-web-components/shell/UdpShellNav.js +7 -0
  44. package/dist/UI/fluent-web-components/shell/UdpShellNav.js.map +1 -0
  45. package/dist/UI/fluent-web-components/shell/UdpShellNav.mjs +19 -0
  46. package/dist/UI/fluent-web-components/shell/UdpShellNav.mjs.map +1 -0
  47. package/dist/UI/fluent-web-components/shell/UdpShellRibbon.d.ts +10 -0
  48. package/dist/UI/fluent-web-components/shell/UdpShellRibbon.d.ts.map +1 -0
  49. package/dist/UI/fluent-web-components/shell/UdpShellRibbon.js +7 -0
  50. package/dist/UI/fluent-web-components/shell/UdpShellRibbon.js.map +1 -0
  51. package/dist/UI/fluent-web-components/shell/UdpShellRibbon.mjs +19 -0
  52. package/dist/UI/fluent-web-components/shell/UdpShellRibbon.mjs.map +1 -0
  53. package/dist/UI/fluent-web-components/shell/UdpShellSidebar.d.ts +13 -0
  54. package/dist/UI/fluent-web-components/shell/UdpShellSidebar.d.ts.map +1 -0
  55. package/dist/UI/fluent-web-components/shell/UdpShellSidebar.js +7 -0
  56. package/dist/UI/fluent-web-components/shell/UdpShellSidebar.js.map +1 -0
  57. package/dist/UI/fluent-web-components/shell/UdpShellSidebar.mjs +19 -0
  58. package/dist/UI/fluent-web-components/shell/UdpShellSidebar.mjs.map +1 -0
  59. package/dist/UI/fluent-web-components/types.d.ts +2 -0
  60. package/dist/UI/fluent-web-components/types.d.ts.map +1 -1
  61. package/dist/UI/widgets/library/InquiryFindRecordsWidget/InquiryFindRecordsWidget.d.ts +16 -3
  62. package/dist/UI/widgets/library/InquiryFindRecordsWidget/InquiryFindRecordsWidget.d.ts.map +1 -1
  63. package/dist/UI/widgets/library/InquiryFindRecordsWidget/InquiryFindRecordsWidget.js +36 -13
  64. package/dist/UI/widgets/library/InquiryFindRecordsWidget/InquiryFindRecordsWidget.js.map +1 -1
  65. package/dist/UI/widgets/library/InquiryFindRecordsWidget/InquiryFindRecordsWidget.mjs +119 -62
  66. package/dist/UI/widgets/library/InquiryFindRecordsWidget/InquiryFindRecordsWidget.mjs.map +1 -1
  67. package/dist/UI/widgets/library/InquiryFindRecordsWidget/index.mjs +3 -2
  68. package/dist/UI/widgets/library/InquiryRecentRecordsWidget/InquiryRecentRecordsWidget.d.ts +9 -2
  69. package/dist/UI/widgets/library/InquiryRecentRecordsWidget/InquiryRecentRecordsWidget.d.ts.map +1 -1
  70. package/dist/UI/widgets/library/InquiryRecentRecordsWidget/InquiryRecentRecordsWidget.js +18 -18
  71. package/dist/UI/widgets/library/InquiryRecentRecordsWidget/InquiryRecentRecordsWidget.js.map +1 -1
  72. package/dist/UI/widgets/library/InquiryRecentRecordsWidget/InquiryRecentRecordsWidget.mjs +79 -67
  73. package/dist/UI/widgets/library/InquiryRecentRecordsWidget/InquiryRecentRecordsWidget.mjs.map +1 -1
  74. package/dist/UI/widgets/library/InquiryRemindersWidget/InquiryRemindersWidget.d.ts +8 -2
  75. package/dist/UI/widgets/library/InquiryRemindersWidget/InquiryRemindersWidget.d.ts.map +1 -1
  76. package/dist/UI/widgets/library/InquiryRemindersWidget/InquiryRemindersWidget.js +32 -16
  77. package/dist/UI/widgets/library/InquiryRemindersWidget/InquiryRemindersWidget.js.map +1 -1
  78. package/dist/UI/widgets/library/InquiryRemindersWidget/InquiryRemindersWidget.mjs +129 -102
  79. package/dist/UI/widgets/library/InquiryRemindersWidget/InquiryRemindersWidget.mjs.map +1 -1
  80. package/dist/UI/widgets/library/InquiryRemindersWidget/reminderRowModel.d.ts +3 -2
  81. package/dist/UI/widgets/library/InquiryRemindersWidget/reminderRowModel.d.ts.map +1 -1
  82. package/dist/UI/widgets/library/InquiryRemindersWidget/reminderRowModel.js +11 -12
  83. package/dist/UI/widgets/library/InquiryRemindersWidget/reminderRowModel.js.map +1 -1
  84. package/dist/UI/widgets/library/InquiryRemindersWidget/reminderRowModel.mjs +6 -4
  85. package/dist/UI/widgets/library/InquiryRemindersWidget/reminderRowModel.mjs.map +1 -1
  86. package/dist/UI/widgets/library/InquiryRemindersWidget/useInquiryReminders.d.ts +2 -19
  87. package/dist/UI/widgets/library/InquiryRemindersWidget/useInquiryReminders.d.ts.map +1 -1
  88. package/dist/UI/widgets/library/InquiryRemindersWidget/useInquiryReminders.js +4 -5
  89. package/dist/UI/widgets/library/InquiryRemindersWidget/useInquiryReminders.js.map +1 -1
  90. package/dist/UI/widgets/library/InquiryRemindersWidget/useInquiryReminders.mjs +5 -4
  91. package/dist/UI/widgets/library/InquiryRemindersWidget/useInquiryReminders.mjs.map +1 -1
  92. package/dist/actionPanels/index.d.ts +0 -2
  93. package/dist/actionPanels/index.d.ts.map +1 -1
  94. package/dist/actionPanels/index.js +0 -2
  95. package/dist/actionPanels/index.js.map +1 -1
  96. package/dist/actionPanels/panelActionFields.d.ts +9 -26
  97. package/dist/actionPanels/panelActionFields.d.ts.map +1 -1
  98. package/dist/actionPanels/panelActionFields.js +32 -55
  99. package/dist/actionPanels/panelActionFields.js.map +1 -1
  100. package/dist/actionPanels/panelActionFields.mjs +159 -375
  101. package/dist/actionPanels/panelActionFields.mjs.map +1 -1
  102. package/dist/actionPanels/panelOperations.d.ts +15 -41
  103. package/dist/actionPanels/panelOperations.d.ts.map +1 -1
  104. package/dist/actionPanels/panelOperations.js +51 -89
  105. package/dist/actionPanels/panelOperations.js.map +1 -1
  106. package/dist/actionPanels/panelOperations.mjs +37 -92
  107. package/dist/actionPanels/panelOperations.mjs.map +1 -1
  108. package/dist/aiAssistant/aiFeatures.d.ts +1 -1
  109. package/dist/aiAssistant/aiFeatures.d.ts.map +1 -1
  110. package/dist/aiAssistant/aiFeatures.js +5 -0
  111. package/dist/aiAssistant/aiFeatures.js.map +1 -1
  112. package/dist/aiAssistant/aiFeatures.mjs +5 -1
  113. package/dist/aiAssistant/aiFeatures.mjs.map +1 -1
  114. package/dist/dashboard/DashboardWidget.d.ts.map +1 -1
  115. package/dist/dashboard/DashboardWidget.js +1 -1
  116. package/dist/dashboard/DashboardWidget.js.map +1 -1
  117. package/dist/dashboard/DashboardWidget.mjs +24 -21
  118. package/dist/dashboard/DashboardWidget.mjs.map +1 -1
  119. package/dist/domain/actionPanel/actionTypeMeta.d.ts +15 -2
  120. package/dist/domain/actionPanel/actionTypeMeta.d.ts.map +1 -1
  121. package/dist/domain/actionPanel/actionTypeMeta.js +21 -2
  122. package/dist/domain/actionPanel/actionTypeMeta.js.map +1 -1
  123. package/dist/domain/actionPanel/actionTypeMeta.mjs +18 -3
  124. package/dist/domain/actionPanel/actionTypeMeta.mjs.map +1 -1
  125. package/dist/domain/actionPanel/buttonOrder.d.ts +67 -0
  126. package/dist/domain/actionPanel/buttonOrder.d.ts.map +1 -0
  127. package/dist/domain/actionPanel/buttonOrder.js +105 -0
  128. package/dist/domain/actionPanel/buttonOrder.js.map +1 -0
  129. package/dist/domain/actionPanel/buttonOrder.mjs +90 -0
  130. package/dist/domain/actionPanel/buttonOrder.mjs.map +1 -0
  131. package/dist/domain/actionPanel/index.d.ts +1 -0
  132. package/dist/domain/actionPanel/index.d.ts.map +1 -1
  133. package/dist/domain/actionPanel/index.js +1 -0
  134. package/dist/domain/actionPanel/index.js.map +1 -1
  135. package/dist/domain/actionPanel/index.mjs +4 -3
  136. package/dist/domain/actionPanel/serialize.d.ts +6 -2
  137. package/dist/domain/actionPanel/serialize.d.ts.map +1 -1
  138. package/dist/domain/actionPanel/serialize.js +10 -3
  139. package/dist/domain/actionPanel/serialize.js.map +1 -1
  140. package/dist/domain/actionPanel/serialize.mjs +7 -3
  141. package/dist/domain/actionPanel/serialize.mjs.map +1 -1
  142. package/dist/domain/actionPanel/types.d.ts +24 -8
  143. package/dist/domain/actionPanel/types.d.ts.map +1 -1
  144. package/dist/domain/actionPanel/types.js.map +1 -1
  145. package/dist/domain/actionPanel/types.mjs.map +1 -1
  146. package/dist/domain/inquiryTree/describe.d.ts +15 -3
  147. package/dist/domain/inquiryTree/describe.d.ts.map +1 -1
  148. package/dist/domain/inquiryTree/describe.js +32 -28
  149. package/dist/domain/inquiryTree/describe.js.map +1 -1
  150. package/dist/domain/inquiryTree/describe.mjs +34 -16
  151. package/dist/domain/inquiryTree/describe.mjs.map +1 -1
  152. package/dist/domain/inquiryTree/displayTree.d.ts +75 -97
  153. package/dist/domain/inquiryTree/displayTree.d.ts.map +1 -1
  154. package/dist/domain/inquiryTree/displayTree.js +418 -551
  155. package/dist/domain/inquiryTree/displayTree.js.map +1 -1
  156. package/dist/domain/inquiryTree/displayTree.mjs +345 -414
  157. package/dist/domain/inquiryTree/displayTree.mjs.map +1 -1
  158. package/dist/domain/inquiryTree/groups.d.ts +2 -0
  159. package/dist/domain/inquiryTree/groups.d.ts.map +1 -1
  160. package/dist/domain/inquiryTree/groups.js.map +1 -1
  161. package/dist/domain/inquiryTree/groups.mjs.map +1 -1
  162. package/dist/domain/inquiryTree/index.d.ts +1 -1
  163. package/dist/domain/inquiryTree/index.d.ts.map +1 -1
  164. package/dist/domain/inquiryTree/index.js +1 -1
  165. package/dist/domain/inquiryTree/index.js.map +1 -1
  166. package/dist/domain/inquiryTree/index.mjs +12 -12
  167. package/dist/domain/inquiryTree/lazyLoad.d.ts +20 -129
  168. package/dist/domain/inquiryTree/lazyLoad.d.ts.map +1 -1
  169. package/dist/domain/inquiryTree/lazyLoad.js +48 -233
  170. package/dist/domain/inquiryTree/lazyLoad.js.map +1 -1
  171. package/dist/domain/inquiryTree/lazyLoad.mjs +32 -187
  172. package/dist/domain/inquiryTree/lazyLoad.mjs.map +1 -1
  173. package/dist/domain/inquiryTree/legalChildren.d.ts +13 -14
  174. package/dist/domain/inquiryTree/legalChildren.d.ts.map +1 -1
  175. package/dist/domain/inquiryTree/legalChildren.js +21 -42
  176. package/dist/domain/inquiryTree/legalChildren.js.map +1 -1
  177. package/dist/domain/inquiryTree/legalChildren.mjs +19 -37
  178. package/dist/domain/inquiryTree/legalChildren.mjs.map +1 -1
  179. package/dist/domain/inquiryTree/names.d.ts +38 -0
  180. package/dist/domain/inquiryTree/names.d.ts.map +1 -0
  181. package/dist/domain/inquiryTree/names.js +64 -0
  182. package/dist/domain/inquiryTree/names.js.map +1 -0
  183. package/dist/domain/inquiryTree/names.mjs +56 -0
  184. package/dist/domain/inquiryTree/names.mjs.map +1 -0
  185. package/dist/domain/inquiryTree/operations.d.ts +6 -2
  186. package/dist/domain/inquiryTree/operations.d.ts.map +1 -1
  187. package/dist/domain/inquiryTree/operations.js +17 -16
  188. package/dist/domain/inquiryTree/operations.js.map +1 -1
  189. package/dist/domain/inquiryTree/operations.mjs +14 -11
  190. package/dist/domain/inquiryTree/operations.mjs.map +1 -1
  191. package/dist/domain/inquiryTree/rules.d.ts +3 -4
  192. package/dist/domain/inquiryTree/rules.d.ts.map +1 -1
  193. package/dist/domain/inquiryTree/rules.js +3 -13
  194. package/dist/domain/inquiryTree/rules.js.map +1 -1
  195. package/dist/domain/inquiryTree/rules.mjs +3 -9
  196. package/dist/domain/inquiryTree/rules.mjs.map +1 -1
  197. package/dist/domain/inquiryTree/runtime.d.ts +23 -16
  198. package/dist/domain/inquiryTree/runtime.d.ts.map +1 -1
  199. package/dist/domain/inquiryTree/runtime.js +46 -54
  200. package/dist/domain/inquiryTree/runtime.js.map +1 -1
  201. package/dist/domain/inquiryTree/runtime.mjs +31 -26
  202. package/dist/domain/inquiryTree/runtime.mjs.map +1 -1
  203. package/dist/domain/inquiryTree/serialize.d.ts +20 -29
  204. package/dist/domain/inquiryTree/serialize.d.ts.map +1 -1
  205. package/dist/domain/inquiryTree/serialize.js +93 -205
  206. package/dist/domain/inquiryTree/serialize.js.map +1 -1
  207. package/dist/domain/inquiryTree/serialize.mjs +89 -180
  208. package/dist/domain/inquiryTree/serialize.mjs.map +1 -1
  209. package/dist/domain/inquiryTree/types.d.ts +146 -65
  210. package/dist/domain/inquiryTree/types.d.ts.map +1 -1
  211. package/dist/domain/inquiryTree/types.js +5 -0
  212. package/dist/domain/inquiryTree/types.js.map +1 -1
  213. package/dist/domain/inquiryTree/types.mjs +3 -1
  214. package/dist/domain/inquiryTree/types.mjs.map +1 -1
  215. package/dist/domain/inquiryTree/validate.d.ts +9 -2
  216. package/dist/domain/inquiryTree/validate.d.ts.map +1 -1
  217. package/dist/domain/inquiryTree/validate.js +30 -58
  218. package/dist/domain/inquiryTree/validate.js.map +1 -1
  219. package/dist/domain/inquiryTree/validate.mjs +29 -44
  220. package/dist/domain/inquiryTree/validate.mjs.map +1 -1
  221. package/dist/domain/inquiryTree/view.d.ts +8 -12
  222. package/dist/domain/inquiryTree/view.d.ts.map +1 -1
  223. package/dist/domain/inquiryTree/view.js +40 -66
  224. package/dist/domain/inquiryTree/view.js.map +1 -1
  225. package/dist/domain/inquiryTree/view.mjs +30 -60
  226. package/dist/domain/inquiryTree/view.mjs.map +1 -1
  227. package/dist/domain/inquiryTree/waveLoad.d.ts +32 -48
  228. package/dist/domain/inquiryTree/waveLoad.d.ts.map +1 -1
  229. package/dist/domain/inquiryTree/waveLoad.js +75 -90
  230. package/dist/domain/inquiryTree/waveLoad.js.map +1 -1
  231. package/dist/domain/inquiryTree/waveLoad.mjs +54 -60
  232. package/dist/domain/inquiryTree/waveLoad.mjs.map +1 -1
  233. package/dist/domain/inquiryTree/wireString.d.ts +5 -0
  234. package/dist/domain/inquiryTree/wireString.d.ts.map +1 -1
  235. package/dist/domain/inquiryTree/wireString.js +11 -0
  236. package/dist/domain/inquiryTree/wireString.js.map +1 -1
  237. package/dist/domain/inquiryTree/wireString.mjs +10 -1
  238. package/dist/domain/inquiryTree/wireString.mjs.map +1 -1
  239. package/dist/domain/nodeView/index.mjs +2 -2
  240. package/dist/domain/nodeView/model.d.ts +35 -30
  241. package/dist/domain/nodeView/model.d.ts.map +1 -1
  242. package/dist/domain/nodeView/model.js +108 -69
  243. package/dist/domain/nodeView/model.js.map +1 -1
  244. package/dist/domain/nodeView/model.mjs +86 -36
  245. package/dist/domain/nodeView/model.mjs.map +1 -1
  246. package/dist/errorBoundary/ErrorBoundary.d.ts +17 -1
  247. package/dist/errorBoundary/ErrorBoundary.d.ts.map +1 -1
  248. package/dist/errorBoundary/ErrorBoundary.js +25 -21
  249. package/dist/errorBoundary/ErrorBoundary.js.map +1 -1
  250. package/dist/errorBoundary/ErrorBoundary.mjs +22 -34
  251. package/dist/errorBoundary/ErrorBoundary.mjs.map +1 -1
  252. package/dist/errorBoundary/ErrorBoundaryFallback.d.ts +10 -0
  253. package/dist/errorBoundary/ErrorBoundaryFallback.d.ts.map +1 -0
  254. package/dist/errorBoundary/ErrorBoundaryFallback.js +8 -0
  255. package/dist/errorBoundary/ErrorBoundaryFallback.js.map +1 -0
  256. package/dist/errorBoundary/ErrorBoundaryFallback.mjs +91 -0
  257. package/dist/errorBoundary/ErrorBoundaryFallback.mjs.map +1 -0
  258. package/dist/icons/legacyIconNames.d.ts.map +1 -1
  259. package/dist/icons/legacyIconNames.js +46 -1
  260. package/dist/icons/legacyIconNames.js.map +1 -1
  261. package/dist/icons/legacyIconNames.mjs +46 -1
  262. package/dist/icons/legacyIconNames.mjs.map +1 -1
  263. package/dist/index.mjs +19 -14
  264. package/dist/inquiry/Inquiry.d.ts +3 -0
  265. package/dist/inquiry/Inquiry.d.ts.map +1 -1
  266. package/dist/inquiry/Inquiry.js +3 -0
  267. package/dist/inquiry/Inquiry.js.map +1 -1
  268. package/dist/inquiry/Inquiry.mjs +3 -0
  269. package/dist/inquiry/Inquiry.mjs.map +1 -1
  270. package/dist/inquiry/InquiryContainer.d.ts.map +1 -1
  271. package/dist/inquiry/InquiryContainer.js +22 -21
  272. package/dist/inquiry/InquiryContainer.js.map +1 -1
  273. package/dist/inquiry/InquiryContainer.mjs +14 -10
  274. package/dist/inquiry/InquiryContainer.mjs.map +1 -1
  275. package/dist/inquiry/InquiryTreeMenu.d.ts.map +1 -1
  276. package/dist/inquiry/InquiryTreeMenu.js +14 -23
  277. package/dist/inquiry/InquiryTreeMenu.js.map +1 -1
  278. package/dist/inquiry/InquiryTreeMenu.mjs +20 -20
  279. package/dist/inquiry/InquiryTreeMenu.mjs.map +1 -1
  280. package/dist/inquiry/v2/InquiryV2.d.ts +8 -6
  281. package/dist/inquiry/v2/InquiryV2.d.ts.map +1 -1
  282. package/dist/inquiry/v2/InquiryV2.js +45 -24
  283. package/dist/inquiry/v2/InquiryV2.js.map +1 -1
  284. package/dist/inquiry/v2/InquiryV2.mjs +108 -61
  285. package/dist/inquiry/v2/InquiryV2.mjs.map +1 -1
  286. package/dist/inquiry/v2/InquiryV2.module.css +60 -15
  287. package/dist/inquiry/v2/InquiryWorkspace.d.ts +9 -9
  288. package/dist/inquiry/v2/InquiryWorkspace.d.ts.map +1 -1
  289. package/dist/inquiry/v2/InquiryWorkspace.js +531 -408
  290. package/dist/inquiry/v2/InquiryWorkspace.js.map +1 -1
  291. package/dist/inquiry/v2/InquiryWorkspace.mjs +524 -408
  292. package/dist/inquiry/v2/InquiryWorkspace.mjs.map +1 -1
  293. package/dist/inquiry/v2/ai/InquiryV2Copilot.d.ts +3 -2
  294. package/dist/inquiry/v2/ai/InquiryV2Copilot.d.ts.map +1 -1
  295. package/dist/inquiry/v2/ai/InquiryV2Copilot.js +20 -37
  296. package/dist/inquiry/v2/ai/InquiryV2Copilot.js.map +1 -1
  297. package/dist/inquiry/v2/ai/InquiryV2Copilot.mjs +19 -31
  298. package/dist/inquiry/v2/ai/InquiryV2Copilot.mjs.map +1 -1
  299. package/dist/inquiry/v2/ai/copilotModel.d.ts +6 -14
  300. package/dist/inquiry/v2/ai/copilotModel.d.ts.map +1 -1
  301. package/dist/inquiry/v2/ai/copilotModel.js +35 -87
  302. package/dist/inquiry/v2/ai/copilotModel.js.map +1 -1
  303. package/dist/inquiry/v2/ai/copilotModel.mjs +23 -47
  304. package/dist/inquiry/v2/ai/copilotModel.mjs.map +1 -1
  305. package/dist/inquiry/v2/api/queries.d.ts +46 -73
  306. package/dist/inquiry/v2/api/queries.d.ts.map +1 -1
  307. package/dist/inquiry/v2/api/queries.js +151 -210
  308. package/dist/inquiry/v2/api/queries.js.map +1 -1
  309. package/dist/inquiry/v2/api/queries.mjs +227 -183
  310. package/dist/inquiry/v2/api/queries.mjs.map +1 -1
  311. package/dist/inquiry/v2/capabilities/actions/ActionsCapability.d.ts.map +1 -1
  312. package/dist/inquiry/v2/capabilities/actions/ActionsCapability.js +103 -32
  313. package/dist/inquiry/v2/capabilities/actions/ActionsCapability.js.map +1 -1
  314. package/dist/inquiry/v2/capabilities/actions/ActionsCapability.mjs +92 -32
  315. package/dist/inquiry/v2/capabilities/actions/ActionsCapability.mjs.map +1 -1
  316. package/dist/inquiry/v2/capabilities/actions/ActionsCapability.module.css +8 -1
  317. package/dist/inquiry/v2/capabilities/actions/EntityFormSurface.d.ts +20 -16
  318. package/dist/inquiry/v2/capabilities/actions/EntityFormSurface.d.ts.map +1 -1
  319. package/dist/inquiry/v2/capabilities/actions/EntityFormSurface.js +111 -68
  320. package/dist/inquiry/v2/capabilities/actions/EntityFormSurface.js.map +1 -1
  321. package/dist/inquiry/v2/capabilities/actions/EntityFormSurface.mjs +108 -142
  322. package/dist/inquiry/v2/capabilities/actions/EntityFormSurface.mjs.map +1 -1
  323. package/dist/inquiry/v2/capabilities/actions/RetrieveSurface.mjs +1 -1
  324. package/dist/inquiry/v2/capabilities/actions/actionModel.d.ts +66 -50
  325. package/dist/inquiry/v2/capabilities/actions/actionModel.d.ts.map +1 -1
  326. package/dist/inquiry/v2/capabilities/actions/actionModel.js +141 -66
  327. package/dist/inquiry/v2/capabilities/actions/actionModel.js.map +1 -1
  328. package/dist/inquiry/v2/capabilities/actions/actionModel.mjs +115 -53
  329. package/dist/inquiry/v2/capabilities/actions/actionModel.mjs.map +1 -1
  330. package/dist/inquiry/v2/capabilities/actions/parentKeyDefaults.d.ts +26 -0
  331. package/dist/inquiry/v2/capabilities/actions/parentKeyDefaults.d.ts.map +1 -0
  332. package/dist/inquiry/v2/capabilities/actions/parentKeyDefaults.js +36 -0
  333. package/dist/inquiry/v2/capabilities/actions/parentKeyDefaults.js.map +1 -0
  334. package/dist/inquiry/v2/capabilities/actions/parentKeyDefaults.mjs +41 -0
  335. package/dist/inquiry/v2/capabilities/actions/parentKeyDefaults.mjs.map +1 -0
  336. package/dist/inquiry/v2/capabilities/actions/runAction.d.ts +3 -2
  337. package/dist/inquiry/v2/capabilities/actions/runAction.d.ts.map +1 -1
  338. package/dist/inquiry/v2/capabilities/actions/runAction.js +27 -23
  339. package/dist/inquiry/v2/capabilities/actions/runAction.js.map +1 -1
  340. package/dist/inquiry/v2/capabilities/actions/runAction.mjs +26 -20
  341. package/dist/inquiry/v2/capabilities/actions/runAction.mjs.map +1 -1
  342. package/dist/inquiry/v2/capabilities/actions/useHeaderFold.d.ts +20 -0
  343. package/dist/inquiry/v2/capabilities/actions/useHeaderFold.d.ts.map +1 -0
  344. package/dist/inquiry/v2/capabilities/actions/useHeaderFold.js +112 -0
  345. package/dist/inquiry/v2/capabilities/actions/useHeaderFold.js.map +1 -0
  346. package/dist/inquiry/v2/capabilities/actions/useHeaderFold.mjs +118 -0
  347. package/dist/inquiry/v2/capabilities/actions/useHeaderFold.mjs.map +1 -0
  348. package/dist/inquiry/v2/capabilities/actions/useSheetPanel.d.ts +25 -1
  349. package/dist/inquiry/v2/capabilities/actions/useSheetPanel.d.ts.map +1 -1
  350. package/dist/inquiry/v2/capabilities/actions/useSheetPanel.js +7 -4
  351. package/dist/inquiry/v2/capabilities/actions/useSheetPanel.js.map +1 -1
  352. package/dist/inquiry/v2/capabilities/actions/useSheetPanel.mjs +9 -4
  353. package/dist/inquiry/v2/capabilities/actions/useSheetPanel.mjs.map +1 -1
  354. package/dist/inquiry/v2/capabilities/alerts/AlertsCapability.d.ts +5 -3
  355. package/dist/inquiry/v2/capabilities/alerts/AlertsCapability.d.ts.map +1 -1
  356. package/dist/inquiry/v2/capabilities/alerts/AlertsCapability.js +11 -8
  357. package/dist/inquiry/v2/capabilities/alerts/AlertsCapability.js.map +1 -1
  358. package/dist/inquiry/v2/capabilities/alerts/AlertsCapability.mjs +13 -7
  359. package/dist/inquiry/v2/capabilities/alerts/AlertsCapability.mjs.map +1 -1
  360. package/dist/inquiry/v2/capabilities/alerts/AlertsCapability.module.css +4 -4
  361. package/dist/inquiry/v2/capabilities/header/HeaderCapability.d.ts +1 -1
  362. package/dist/inquiry/v2/capabilities/header/HeaderCapability.d.ts.map +1 -1
  363. package/dist/inquiry/v2/capabilities/header/HeaderCapability.js +20 -17
  364. package/dist/inquiry/v2/capabilities/header/HeaderCapability.js.map +1 -1
  365. package/dist/inquiry/v2/capabilities/header/HeaderCapability.mjs +101 -111
  366. package/dist/inquiry/v2/capabilities/header/HeaderCapability.mjs.map +1 -1
  367. package/dist/inquiry/v2/capabilities/header/HeaderCapability.module.css +9 -6
  368. package/dist/inquiry/v2/capabilities/tabs/TabsCapability.d.ts +2 -1
  369. package/dist/inquiry/v2/capabilities/tabs/TabsCapability.d.ts.map +1 -1
  370. package/dist/inquiry/v2/capabilities/tabs/TabsCapability.js +9 -2
  371. package/dist/inquiry/v2/capabilities/tabs/TabsCapability.js.map +1 -1
  372. package/dist/inquiry/v2/capabilities/tabs/TabsCapability.mjs +18 -15
  373. package/dist/inquiry/v2/capabilities/tabs/TabsCapability.mjs.map +1 -1
  374. package/dist/inquiry/v2/index.d.ts +0 -1
  375. package/dist/inquiry/v2/index.d.ts.map +1 -1
  376. package/dist/inquiry/v2/index.js.map +1 -1
  377. package/dist/inquiry/v2/kernel/ActionRunnerContext.d.ts +3 -3
  378. package/dist/inquiry/v2/kernel/ActionRunnerContext.d.ts.map +1 -1
  379. package/dist/inquiry/v2/kernel/ActionRunnerContext.js +11 -5
  380. package/dist/inquiry/v2/kernel/ActionRunnerContext.js.map +1 -1
  381. package/dist/inquiry/v2/kernel/ActionRunnerContext.mjs +15 -12
  382. package/dist/inquiry/v2/kernel/ActionRunnerContext.mjs.map +1 -1
  383. package/dist/inquiry/v2/kernel/ReadOnlyContext.d.ts +3 -0
  384. package/dist/inquiry/v2/kernel/ReadOnlyContext.d.ts.map +1 -0
  385. package/dist/inquiry/v2/kernel/ReadOnlyContext.js +14 -0
  386. package/dist/inquiry/v2/kernel/ReadOnlyContext.js.map +1 -0
  387. package/dist/inquiry/v2/kernel/ReadOnlyContext.mjs +20 -0
  388. package/dist/inquiry/v2/kernel/ReadOnlyContext.mjs.map +1 -0
  389. package/dist/inquiry/v2/kernel/RecordContext.d.ts +2 -0
  390. package/dist/inquiry/v2/kernel/RecordContext.d.ts.map +1 -1
  391. package/dist/inquiry/v2/kernel/RecordContext.js.map +1 -1
  392. package/dist/inquiry/v2/kernel/RecordContext.mjs.map +1 -1
  393. package/dist/inquiry/v2/kernel/UdpNodeView.d.ts.map +1 -1
  394. package/dist/inquiry/v2/kernel/UdpNodeView.js +18 -13
  395. package/dist/inquiry/v2/kernel/UdpNodeView.js.map +1 -1
  396. package/dist/inquiry/v2/kernel/UdpNodeView.mjs +177 -140
  397. package/dist/inquiry/v2/kernel/UdpNodeView.mjs.map +1 -1
  398. package/dist/inquiry/v2/kernel/UdpNodeView.module.css +56 -5
  399. package/dist/inquiry/v2/kernel/capabilities.d.ts +0 -2
  400. package/dist/inquiry/v2/kernel/capabilities.d.ts.map +1 -1
  401. package/dist/inquiry/v2/kernel/capabilities.js.map +1 -1
  402. package/dist/inquiry/v2/kernel/capabilities.mjs.map +1 -1
  403. package/dist/inquiry/v2/landing/InquiryExplorePage.d.ts +26 -37
  404. package/dist/inquiry/v2/landing/InquiryExplorePage.d.ts.map +1 -1
  405. package/dist/inquiry/v2/landing/InquiryExplorePage.js +48 -57
  406. package/dist/inquiry/v2/landing/InquiryExplorePage.js.map +1 -1
  407. package/dist/inquiry/v2/landing/InquiryExplorePage.mjs +102 -106
  408. package/dist/inquiry/v2/landing/InquiryExplorePage.mjs.map +1 -1
  409. package/dist/inquiry/v2/landing/InquiryExplorePage.module.css +58 -6
  410. package/dist/inquiry/v2/landing/InquiryLanding.d.ts +3 -3
  411. package/dist/inquiry/v2/landing/InquiryLanding.d.ts.map +1 -1
  412. package/dist/inquiry/v2/landing/InquiryLanding.js +8 -3
  413. package/dist/inquiry/v2/landing/InquiryLanding.js.map +1 -1
  414. package/dist/inquiry/v2/landing/InquiryLanding.mjs +51 -35
  415. package/dist/inquiry/v2/landing/InquiryLanding.mjs.map +1 -1
  416. package/dist/inquiry/v2/landing/InquiryLanding.module.css +8 -0
  417. package/dist/inquiry/v2/page/UdpPageRenderer.d.ts +5 -1
  418. package/dist/inquiry/v2/page/UdpPageRenderer.d.ts.map +1 -1
  419. package/dist/inquiry/v2/page/UdpPageRenderer.js +13 -1
  420. package/dist/inquiry/v2/page/UdpPageRenderer.js.map +1 -1
  421. package/dist/inquiry/v2/page/UdpPageRenderer.mjs +36 -7
  422. package/dist/inquiry/v2/page/UdpPageRenderer.mjs.map +1 -1
  423. package/dist/inquiry/v2/search/InquirySearchPanel.d.ts +1 -7
  424. package/dist/inquiry/v2/search/InquirySearchPanel.d.ts.map +1 -1
  425. package/dist/inquiry/v2/search/InquirySearchPanel.js +6 -13
  426. package/dist/inquiry/v2/search/InquirySearchPanel.js.map +1 -1
  427. package/dist/inquiry/v2/search/InquirySearchPanel.mjs +4 -8
  428. package/dist/inquiry/v2/search/InquirySearchPanel.mjs.map +1 -1
  429. package/dist/inquiry/v2/search/RecordFinder.d.ts +30 -1
  430. package/dist/inquiry/v2/search/RecordFinder.d.ts.map +1 -1
  431. package/dist/inquiry/v2/search/RecordFinder.js +43 -20
  432. package/dist/inquiry/v2/search/RecordFinder.js.map +1 -1
  433. package/dist/inquiry/v2/search/RecordFinder.mjs +68 -42
  434. package/dist/inquiry/v2/search/RecordFinder.mjs.map +1 -1
  435. package/dist/inquiry/v2/search/index.d.ts +3 -3
  436. package/dist/inquiry/v2/search/index.d.ts.map +1 -1
  437. package/dist/inquiry/v2/search/index.js +1 -1
  438. package/dist/inquiry/v2/search/index.js.map +1 -1
  439. package/dist/inquiry/v2/search/searchModel.d.ts +130 -23
  440. package/dist/inquiry/v2/search/searchModel.d.ts.map +1 -1
  441. package/dist/inquiry/v2/search/searchModel.js +237 -36
  442. package/dist/inquiry/v2/search/searchModel.js.map +1 -1
  443. package/dist/inquiry/v2/search/searchModel.mjs +207 -34
  444. package/dist/inquiry/v2/search/searchModel.mjs.map +1 -1
  445. package/dist/inquiry/v2/search/useInquirySearch.d.ts.map +1 -1
  446. package/dist/inquiry/v2/search/useInquirySearch.js +46 -19
  447. package/dist/inquiry/v2/search/useInquirySearch.js.map +1 -1
  448. package/dist/inquiry/v2/search/useInquirySearch.mjs +83 -84
  449. package/dist/inquiry/v2/search/useInquirySearch.mjs.map +1 -1
  450. package/dist/inquiry/v2/tree/InquiryFluentTreeMenu.d.ts +4 -1
  451. package/dist/inquiry/v2/tree/InquiryFluentTreeMenu.d.ts.map +1 -1
  452. package/dist/inquiry/v2/tree/InquiryFluentTreeMenu.js +174 -166
  453. package/dist/inquiry/v2/tree/InquiryFluentTreeMenu.js.map +1 -1
  454. package/dist/inquiry/v2/tree/InquiryFluentTreeMenu.mjs +343 -325
  455. package/dist/inquiry/v2/tree/InquiryFluentTreeMenu.mjs.map +1 -1
  456. package/dist/inquiry/v2/tree/InquiryMenuToolbar.d.ts +3 -1
  457. package/dist/inquiry/v2/tree/InquiryMenuToolbar.d.ts.map +1 -1
  458. package/dist/inquiry/v2/tree/InquiryMenuToolbar.js +8 -7
  459. package/dist/inquiry/v2/tree/InquiryMenuToolbar.js.map +1 -1
  460. package/dist/inquiry/v2/tree/InquiryMenuToolbar.mjs +68 -72
  461. package/dist/inquiry/v2/tree/InquiryMenuToolbar.mjs.map +1 -1
  462. package/dist/inquiry/v2/tree/LoadRecordDialog.d.ts +3 -3
  463. package/dist/inquiry/v2/tree/LoadRecordDialog.d.ts.map +1 -1
  464. package/dist/inquiry/v2/tree/LoadRecordDialog.js +12 -7
  465. package/dist/inquiry/v2/tree/LoadRecordDialog.js.map +1 -1
  466. package/dist/inquiry/v2/tree/LoadRecordDialog.mjs +48 -33
  467. package/dist/inquiry/v2/tree/LoadRecordDialog.mjs.map +1 -1
  468. package/dist/inquiry/v2/tree/NodeList.d.ts.map +1 -1
  469. package/dist/inquiry/v2/tree/NodeList.js +17 -6
  470. package/dist/inquiry/v2/tree/NodeList.js.map +1 -1
  471. package/dist/inquiry/v2/tree/NodeList.mjs +49 -36
  472. package/dist/inquiry/v2/tree/NodeList.mjs.map +1 -1
  473. package/dist/inquiry/v2/tree/arrivalModel.d.ts +15 -0
  474. package/dist/inquiry/v2/tree/arrivalModel.d.ts.map +1 -1
  475. package/dist/inquiry/v2/tree/arrivalModel.js +14 -1
  476. package/dist/inquiry/v2/tree/arrivalModel.js.map +1 -1
  477. package/dist/inquiry/v2/tree/arrivalModel.mjs +12 -1
  478. package/dist/inquiry/v2/tree/arrivalModel.mjs.map +1 -1
  479. package/dist/inquiry/v2/tree/branchRefreshModel.d.ts +32 -0
  480. package/dist/inquiry/v2/tree/branchRefreshModel.d.ts.map +1 -0
  481. package/dist/inquiry/v2/tree/branchRefreshModel.js +62 -0
  482. package/dist/inquiry/v2/tree/branchRefreshModel.js.map +1 -0
  483. package/dist/inquiry/v2/tree/branchRefreshModel.mjs +60 -0
  484. package/dist/inquiry/v2/tree/branchRefreshModel.mjs.map +1 -0
  485. package/dist/inquiry/v2/tree/droppedPageModel.d.ts +23 -1
  486. package/dist/inquiry/v2/tree/droppedPageModel.d.ts.map +1 -1
  487. package/dist/inquiry/v2/tree/droppedPageModel.js +53 -26
  488. package/dist/inquiry/v2/tree/droppedPageModel.js.map +1 -1
  489. package/dist/inquiry/v2/tree/droppedPageModel.mjs +48 -20
  490. package/dist/inquiry/v2/tree/droppedPageModel.mjs.map +1 -1
  491. package/dist/inquiry/v2/tree/fluentTreeMenu/treeMenuVisuals.d.ts +7 -12
  492. package/dist/inquiry/v2/tree/fluentTreeMenu/treeMenuVisuals.d.ts.map +1 -1
  493. package/dist/inquiry/v2/tree/fluentTreeMenu/treeMenuVisuals.js +44 -15
  494. package/dist/inquiry/v2/tree/fluentTreeMenu/treeMenuVisuals.js.map +1 -1
  495. package/dist/inquiry/v2/tree/fluentTreeMenu/treeMenuVisuals.mjs +34 -15
  496. package/dist/inquiry/v2/tree/fluentTreeMenu/treeMenuVisuals.mjs.map +1 -1
  497. package/dist/inquiry/v2/tree/fluentTreeMenu/useAggregateBadges.d.ts.map +1 -1
  498. package/dist/inquiry/v2/tree/fluentTreeMenu/useAggregateBadges.js +7 -18
  499. package/dist/inquiry/v2/tree/fluentTreeMenu/useAggregateBadges.js.map +1 -1
  500. package/dist/inquiry/v2/tree/fluentTreeMenu/useAggregateBadges.mjs +6 -14
  501. package/dist/inquiry/v2/tree/fluentTreeMenu/useAggregateBadges.mjs.map +1 -1
  502. package/dist/inquiry/v2/tree/fluentTreeMenu/useChildCountBadges.d.ts +20 -16
  503. package/dist/inquiry/v2/tree/fluentTreeMenu/useChildCountBadges.d.ts.map +1 -1
  504. package/dist/inquiry/v2/tree/fluentTreeMenu/useChildCountBadges.js +77 -55
  505. package/dist/inquiry/v2/tree/fluentTreeMenu/useChildCountBadges.js.map +1 -1
  506. package/dist/inquiry/v2/tree/fluentTreeMenu/useChildCountBadges.mjs +85 -106
  507. package/dist/inquiry/v2/tree/fluentTreeMenu/useChildCountBadges.mjs.map +1 -1
  508. package/dist/inquiry/v2/tree/lineageModel.d.ts +18 -1
  509. package/dist/inquiry/v2/tree/lineageModel.d.ts.map +1 -1
  510. package/dist/inquiry/v2/tree/lineageModel.js +71 -2
  511. package/dist/inquiry/v2/tree/lineageModel.js.map +1 -1
  512. package/dist/inquiry/v2/tree/lineageModel.mjs +53 -3
  513. package/dist/inquiry/v2/tree/lineageModel.mjs.map +1 -1
  514. package/dist/inquiry/v2/tree/menuRebuildModel.d.ts +10 -27
  515. package/dist/inquiry/v2/tree/menuRebuildModel.d.ts.map +1 -1
  516. package/dist/inquiry/v2/tree/menuRebuildModel.js +8 -58
  517. package/dist/inquiry/v2/tree/menuRebuildModel.js.map +1 -1
  518. package/dist/inquiry/v2/tree/menuRebuildModel.mjs +8 -51
  519. package/dist/inquiry/v2/tree/menuRebuildModel.mjs.map +1 -1
  520. package/dist/inquiry/v2/tree/pagedChildrenModel.d.ts +26 -0
  521. package/dist/inquiry/v2/tree/pagedChildrenModel.d.ts.map +1 -0
  522. package/dist/inquiry/v2/tree/pagedChildrenModel.js +56 -0
  523. package/dist/inquiry/v2/tree/pagedChildrenModel.js.map +1 -0
  524. package/dist/inquiry/v2/tree/pagedChildrenModel.mjs +43 -0
  525. package/dist/inquiry/v2/tree/pagedChildrenModel.mjs.map +1 -0
  526. package/dist/inquiry/v2/tree/rootRemovalModel.d.ts +7 -0
  527. package/dist/inquiry/v2/tree/rootRemovalModel.d.ts.map +1 -1
  528. package/dist/inquiry/v2/tree/rootRemovalModel.js +31 -5
  529. package/dist/inquiry/v2/tree/rootRemovalModel.js.map +1 -1
  530. package/dist/inquiry/v2/tree/rootRemovalModel.mjs +21 -4
  531. package/dist/inquiry/v2/tree/rootRemovalModel.mjs.map +1 -1
  532. package/dist/inquiry/v2/tree/treeFilterModel.d.ts +0 -2
  533. package/dist/inquiry/v2/tree/treeFilterModel.d.ts.map +1 -1
  534. package/dist/inquiry/v2/tree/treeFilterModel.js +0 -7
  535. package/dist/inquiry/v2/tree/treeFilterModel.js.map +1 -1
  536. package/dist/inquiry/v2/tree/treeFilterModel.mjs.map +1 -1
  537. package/dist/inquiry/v2/tree/useInquiryMenu.d.ts +16 -7
  538. package/dist/inquiry/v2/tree/useInquiryMenu.d.ts.map +1 -1
  539. package/dist/inquiry/v2/tree/useInquiryMenu.js +401 -163
  540. package/dist/inquiry/v2/tree/useInquiryMenu.js.map +1 -1
  541. package/dist/inquiry/v2/tree/useInquiryMenu.mjs +511 -310
  542. package/dist/inquiry/v2/tree/useInquiryMenu.mjs.map +1 -1
  543. package/dist/inquiry/v2/tree/waveLoader.d.ts +10 -11
  544. package/dist/inquiry/v2/tree/waveLoader.d.ts.map +1 -1
  545. package/dist/inquiry/v2/tree/waveLoader.js +78 -72
  546. package/dist/inquiry/v2/tree/waveLoader.js.map +1 -1
  547. package/dist/inquiry/v2/tree/waveLoader.mjs +79 -68
  548. package/dist/inquiry/v2/tree/waveLoader.mjs.map +1 -1
  549. package/dist/inquiry/v2/widgets/listRow.module.css +27 -0
  550. package/dist/inquiry/v2/widgets/widgetRowModel.d.ts +6 -2
  551. package/dist/inquiry/v2/widgets/widgetRowModel.d.ts.map +1 -1
  552. package/dist/inquiry/v2/widgets/widgetRowModel.js +49 -14
  553. package/dist/inquiry/v2/widgets/widgetRowModel.js.map +1 -1
  554. package/dist/inquiry/v2/widgets/widgetRowModel.mjs +36 -12
  555. package/dist/inquiry/v2/widgets/widgetRowModel.mjs.map +1 -1
  556. package/dist/maintenance/UdpTaggedRecordsPage.mjs +1 -1
  557. package/dist/maintenance/api/lookupApi.mjs +1 -1
  558. package/dist/maintenance/api/tagsApi.mjs +1 -1
  559. package/dist/maintenance/config/nodeDefaults.d.ts.map +1 -1
  560. package/dist/maintenance/config/nodeDefaults.js +16 -5
  561. package/dist/maintenance/config/nodeDefaults.js.map +1 -1
  562. package/dist/maintenance/config/nodeDefaults.mjs +14 -5
  563. package/dist/maintenance/config/nodeDefaults.mjs.map +1 -1
  564. package/dist/maintenance/config/useEntityConfig.mjs +1 -1
  565. package/dist/maintenance/config/useLinkedLabels.mjs +1 -1
  566. package/dist/maintenance/grid/MaintenanceGrid.mjs +1 -1
  567. package/dist/maintenance/metadata/useEntityMetadata.mjs +1 -1
  568. package/dist/maintenance/record/ChildTab.mjs +1 -1
  569. package/dist/maintenance/record/DeleteRecordDialog.mjs +1 -1
  570. package/dist/maintenance/record/LinkRecordsSheet.mjs +1 -1
  571. package/dist/maintenance/record/RecordFacts.mjs +1 -1
  572. package/dist/maintenance/record/RecordSheet.mjs +2 -2
  573. package/dist/maintenance/record/displayValue.mjs +1 -1
  574. package/dist/maintenance/record/stampDisplayText.mjs +1 -1
  575. package/dist/maintenance/settings/UdpEntitySettingsPage.d.ts.map +1 -1
  576. package/dist/maintenance/settings/UdpEntitySettingsPage.js +3 -0
  577. package/dist/maintenance/settings/UdpEntitySettingsPage.js.map +1 -1
  578. package/dist/maintenance/settings/UdpEntitySettingsPage.mjs +2 -0
  579. package/dist/maintenance/settings/UdpEntitySettingsPage.mjs.map +1 -1
  580. package/dist/maintenance/settings/useEntityCatalog.mjs +1 -1
  581. package/dist/maintenanceEngine/tableBrowser/TableColumnDefs.d.ts +4 -5
  582. package/dist/maintenanceEngine/tableBrowser/TableColumnDefs.d.ts.map +1 -1
  583. package/dist/page/PageContainer/PageContainer.d.ts.map +1 -1
  584. package/dist/page/PageContainer/PageContainer.js +4 -11
  585. package/dist/page/PageContainer/PageContainer.js.map +1 -1
  586. package/dist/page/PageContainer/PageContainer.mjs +39 -50
  587. package/dist/page/PageContainer/PageContainer.mjs.map +1 -1
  588. package/dist/stores/inquiryStore.d.ts +2 -1
  589. package/dist/stores/inquiryStore.d.ts.map +1 -1
  590. package/dist/stores/inquiryStore.js +4 -3
  591. package/dist/stores/inquiryStore.js.map +1 -1
  592. package/dist/stores/inquiryStore.mjs +18 -11
  593. package/dist/stores/inquiryStore.mjs.map +1 -1
  594. package/dist/udp/extraFields/useExtraFieldsGridConfig.d.ts +3 -2
  595. package/dist/udp/extraFields/useExtraFieldsGridConfig.d.ts.map +1 -1
  596. package/dist/udp/extraFields/useExtraFieldsGridConfig.js +7 -6
  597. package/dist/udp/extraFields/useExtraFieldsGridConfig.js.map +1 -1
  598. package/dist/udp/extraFields/useExtraFieldsGridConfig.mjs +27 -22
  599. package/dist/udp/extraFields/useExtraFieldsGridConfig.mjs.map +1 -1
  600. package/dist/udp/fileImportMapping/FileImportMappingWizard.d.ts.map +1 -1
  601. package/dist/udp/fileImportMapping/FileImportMappingWizard.js +4 -4
  602. package/dist/udp/fileImportMapping/FileImportMappingWizard.js.map +1 -1
  603. package/dist/udp/fileImportMapping/FileImportMappingWizard.mjs +10 -9
  604. package/dist/udp/fileImportMapping/FileImportMappingWizard.mjs.map +1 -1
  605. package/dist/udp/pages/UdpMaintenanceEnginePage/UdpMaintenanceEnginePage.d.ts.map +1 -1
  606. package/dist/udp/pages/UdpMaintenanceEnginePage/UdpMaintenanceEnginePage.js +1 -1
  607. package/dist/udp/pages/UdpMaintenanceEnginePage/UdpMaintenanceEnginePage.js.map +1 -1
  608. package/dist/udp/pages/UdpMaintenanceEnginePage/UdpMaintenanceEnginePage.mjs +2 -1
  609. package/dist/udp/pages/UdpMaintenanceEnginePage/UdpMaintenanceEnginePage.mjs.map +1 -1
  610. package/dist/udp/pages/UdpMaintenanceEnginePage/components/EntitiyTimeLine.mjs +1 -1
  611. package/dist/udp/pages/UdpTransactionsPage/components/DynamicTransactionDomainForm.d.ts.map +1 -1
  612. package/dist/udp/pages/UdpTransactionsPage/components/DynamicTransactionDomainForm.js +84 -27
  613. package/dist/udp/pages/UdpTransactionsPage/components/DynamicTransactionDomainForm.js.map +1 -1
  614. package/dist/udp/pages/UdpTransactionsPage/components/DynamicTransactionDomainForm.mjs +53 -23
  615. package/dist/udp/pages/UdpTransactionsPage/components/DynamicTransactionDomainForm.mjs.map +1 -1
  616. package/dist/udp/pages/UdpTransactionsPage/components/DynamicTransactionDomainFormFields.d.ts.map +1 -1
  617. package/dist/udp/pages/UdpTransactionsPage/components/DynamicTransactionDomainFormFields.js +45 -32
  618. package/dist/udp/pages/UdpTransactionsPage/components/DynamicTransactionDomainFormFields.js.map +1 -1
  619. package/dist/udp/pages/UdpTransactionsPage/components/DynamicTransactionDomainFormFields.mjs +27 -33
  620. package/dist/udp/pages/UdpTransactionsPage/components/DynamicTransactionDomainFormFields.mjs.map +1 -1
  621. package/dist/udp/pages/UdpTranslationsPage/UdpTranslationsPage.d.ts.map +1 -1
  622. package/dist/udp/pages/UdpTranslationsPage/UdpTranslationsPage.js +14 -16
  623. package/dist/udp/pages/UdpTranslationsPage/UdpTranslationsPage.js.map +1 -1
  624. package/dist/udp/pages/UdpTranslationsPage/UdpTranslationsPage.mjs +2 -4
  625. package/dist/udp/pages/UdpTranslationsPage/UdpTranslationsPage.mjs.map +1 -1
  626. package/dist/udp/utilities/useDateStringColumnDef.d.ts +1 -1
  627. package/dist/utilities/i18n/locales/es-US.json +24 -9
  628. package/dist/utilities/i18n/locales/es-US.mjs +25 -8
  629. package/dist/utilities/i18n/locales/fr-CA.json +24 -9
  630. package/dist/utilities/i18n/locales/fr-CA.mjs +25 -8
  631. package/dist/utilities/tree/TreeUtilities.d.ts +10 -10
  632. package/dist/utilities/tree/TreeUtilities.d.ts.map +1 -1
  633. package/dist/utilities/tree/TreeUtilities.js +41 -58
  634. package/dist/utilities/tree/TreeUtilities.js.map +1 -1
  635. package/dist/utilities/tree/TreeUtilities.mjs +32 -41
  636. package/dist/utilities/tree/TreeUtilities.mjs.map +1 -1
  637. package/dist/utilities/tree/lazyLevels.d.ts +32 -0
  638. package/dist/utilities/tree/lazyLevels.d.ts.map +1 -0
  639. package/dist/utilities/tree/lazyLevels.js +25 -0
  640. package/dist/utilities/tree/lazyLevels.js.map +1 -0
  641. package/dist/utilities/tree/lazyLevels.mjs +16 -0
  642. package/dist/utilities/tree/lazyLevels.mjs.map +1 -0
  643. package/dist/utilities/types.d.ts +4 -4
  644. package/dist/utilities/types.d.ts.map +1 -1
  645. package/package.json +62 -18
  646. package/dist/actionPanels/PanelActionForm.d.ts +0 -56
  647. package/dist/actionPanels/PanelActionForm.d.ts.map +0 -1
  648. package/dist/actionPanels/PanelActionForm.js +0 -30
  649. package/dist/actionPanels/PanelActionForm.js.map +0 -1
  650. package/dist/actionPanels/PanelActionForm.mjs +0 -168
  651. package/dist/actionPanels/PanelActionForm.mjs.map +0 -1
  652. package/dist/actionPanels/PanelEditor.d.ts +0 -44
  653. package/dist/actionPanels/PanelEditor.d.ts.map +0 -1
  654. package/dist/actionPanels/PanelEditor.js +0 -78
  655. package/dist/actionPanels/PanelEditor.js.map +0 -1
  656. package/dist/actionPanels/PanelEditor.mjs +0 -345
  657. package/dist/actionPanels/PanelEditor.mjs.map +0 -1
  658. package/dist/actionPanels/panelActionFields.module.css +0 -18
  659. package/dist/domain/inquiryTree/ruleBindings.d.ts +0 -10
  660. package/dist/domain/inquiryTree/ruleBindings.d.ts.map +0 -1
  661. package/dist/domain/inquiryTree/ruleBindings.js +0 -20
  662. package/dist/domain/inquiryTree/ruleBindings.js.map +0 -1
  663. package/dist/domain/inquiryTree/ruleBindings.mjs +0 -21
  664. package/dist/domain/inquiryTree/ruleBindings.mjs.map +0 -1
  665. package/dist/inquiry/v2/kernel/readOnlyModel.d.ts +0 -17
  666. package/dist/inquiry/v2/kernel/readOnlyModel.d.ts.map +0 -1
  667. package/dist/inquiry/v2/kernel/readOnlyModel.js +0 -19
  668. package/dist/inquiry/v2/kernel/readOnlyModel.js.map +0 -1
  669. package/dist/inquiry/v2/kernel/readOnlyModel.mjs +0 -21
  670. package/dist/inquiry/v2/kernel/readOnlyModel.mjs.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"InquiryExplorePage.mjs","names":["React","UdpFlexbox","styles","InquiryFindRecordsWidget","FinderPick","InquiryFindRecordsWidgetParams","InquiryRecentRecordsWidget","InquiryRemindersWidget","InquiryRemindersWidgetParams","RemindersTreeWire","CatalogObject","SearchableEntity","SearchTreeWire","RecentlyLoadedWire","InquiryExplorePageParams","tree","Record","catalogObjects","recentlyLoadedNodes","loading","onLoadedNodeClick","node","onLoadRecord","entity","row","onLoadRecords","picks","tableHeight","InquiryExplorePageProps","params","children","ReactNode","InquiryExplorePage","t0","$","_c","t1","loadFromSearch","loadFromReminder","t2","t3","t4","t5","t6","t7","listsRow","t8"],"sources":["../../../../src/inquiry/v2/landing/InquiryExplorePage.tsx"],"sourcesContent":["/**\n * THE MODERN EXPLORE PAGE — composed in code, not in a page document.\n *\n * The platform's default explore page has always been a DB-seeded JSON document\n * assembling two legacy widgets. Every tenant carries a copy of it, none of them\n * authored it, and shipping a change to it meant shipping a data migration. So\n * the platform default is now this file: `landingModel` routes the seeded page\n * id here, and the JSON is never fetched. A tree pointing at any OTHER page is\n * pointing at a page its author built, and that still renders through\n * `UdpPageById` exactly as before.\n *\n * ## The composition — a dashboard, per docs(\"Building a UDP Page\")\n * A search-forward hero, then the two lists side by side at the legacy page's\n * 3:1 weighting:\n *\n * ┌──────────────── Find records ─────────────────┐ ← the whole point of a\n * ├──── Recently loaded ────┬──── Reminders ──────┤ landing: get to a\n * └─────────────────────────┴─────────────────────┘ record\n *\n * `UdpFlexbox` carries the 3:1 split rather than `UdpContainerQueryGrid`\n * because the grid has no per-item span (`udp-container-query-grid-item`'s\n * `--udp-grid-item-span` is set but never consumed by the grid's CSS, and the\n * item is not exported from this library) — a 4-column grid can only give the\n * two cards 1:1. Flex `grow`/`basis` gives the weighting AND the responsive\n * behaviour for free: `wrap` reflows against the CONTAINER's width, which is\n * what this surface needs — it renders in the inquiry record pane, never at\n * viewport width.\n *\n * ## Cards, not bare content — and the widget owns its card\n * Neither widget pipeline supplies chrome (`DashboardWidget` mounts the widget\n * bare in its cell and only falls back to `WidgetCard` when the type cannot be\n * resolved; v2's `UdpPageRenderer` mounts `<Component>` bare in a grid cell), so\n * every registry widget in this library renders its OWN card. All three here now\n * render the fluent `UdpCard` instead of the legacy MUI `WidgetCard`, which is\n * what makes this page read as one system. This file's job is the regions and\n * their heights; the cards fill them.\n *\n * One card per region, no card-on-card. Their headers are load bearing —\n * Reminders keeps its All / sort controls there — so hiding the header on the\n * other two would leave one titled card beside two untitled ones. There is\n * deliberately no `UdpPrimaryActionHeader`: this page renders inside the inquiry\n * viewer's record pane, which already carries the surface's header.\n *\n * ## Params\n * The same bag the landing already hands an explore page's widgets, so this\n * component works identically whether the landing mounts it directly or a JSON\n * page embeds it as the `InquiryExplorePage` widget type. `hideWidgetName` is\n * NOT accepted: the page is three cards, not one, and hiding all three headers\n * would take Reminders' controls with them.\n */\nimport React from 'react';\nimport { UdpFlexbox } from '../../../UI/fluent-web-components/UdpFlexbox';\nimport styles from './InquiryExplorePage.module.css';\nimport InquiryFindRecordsWidget, {\n type FinderPick,\n type InquiryFindRecordsWidgetParams\n} from '../../../UI/widgets/library/InquiryFindRecordsWidget';\nimport InquiryRecentRecordsWidget from '../../../UI/widgets/library/InquiryRecentRecordsWidget';\nimport InquiryRemindersWidget, {\n type InquiryRemindersWidgetParams,\n type RemindersTreeWire\n} from '../../../UI/widgets/library/InquiryRemindersWidget';\nimport type { CatalogObject } from '../../../domain/inquiryTree';\nimport type { SearchableEntity, SearchTreeWire } from '../search/searchModel';\nimport type { RecentlyLoadedWire } from '../widgets/widgetRowModel';\n\nexport interface InquiryExplorePageParams {\n /** The tree wire document — searched by Find, filtered on by Reminders. */\n tree?: Record<string, unknown> | null;\n /** The catalog — identifier fields for the record a clicked row names. */\n catalogObjects?: CatalogObject[] | null;\n /** The tree's recently-loaded history for this user. */\n recentlyLoadedNodes?: RecentlyLoadedWire[] | null;\n /** True while that history is being fetched. */\n loading?: boolean;\n /** Replay a node-to-load back into the tree — every card's row click. */\n onLoadedNodeClick?: (node: RecentlyLoadedWire) => void;\n /**\n * Find's own load handlers — the ones the host's + Load dialog uses, so the\n * two finders load identically (row-based, batch-capable). Absent on hosts\n * that only speak node-to-load; Find then falls back to `onLoadedNodeClick`.\n */\n onLoadRecord?: (entity: SearchableEntity, row: Record<string, unknown>) => void;\n onLoadRecords?: (picks: FinderPick[]) => void;\n /**\n * Accepted for compatibility with the landing's legacy param bag; the cards\n * now carry their own heights, so it is not consumed.\n */\n tableHeight?: string;\n}\n\nexport interface InquiryExplorePageProps {\n params?: InquiryExplorePageParams;\n children?: React.ReactNode;\n}\n\nexport const InquiryExplorePage = ({\n params,\n children\n}: InquiryExplorePageProps) => {\n const {\n tree,\n catalogObjects,\n recentlyLoadedNodes,\n loading,\n onLoadedNodeClick,\n onLoadRecord,\n onLoadRecords\n } = params ?? {};\n\n // Find and Reminders each build their own node-to-load shape (a search hit\n // and a reminder's record, not a history entry). All three are the same\n // object to the host that replays them; only the compiler sees three names\n // for it, so the handler is narrowed once, here.\n const loadFromSearch =\n onLoadedNodeClick as InquiryFindRecordsWidgetParams['onLoadedNodeClick'];\n const loadFromReminder =\n onLoadedNodeClick as InquiryRemindersWidgetParams['onLoadedNodeClick'];\n\n return (\n // Find runs full width on top; the two lists share one row below it at\n // the legacy page's 3:1 weighting and take EVERY REMAINING ROW of the\n // pane. The page claims the landing's full height and the row grows into\n // whatever Find leaves, so the lists scroll inside their cards rather than\n // the pane scrolling past a half-empty screen. The bases are in the 3:1\n // ratio too, so the split holds at every width, and their sum is the wrap\n // threshold: under ~48rem of CONTAINER Reminders drops below Recently\n // loaded instead of squeezing.\n <UdpFlexbox height='100%' direction='column' gap='md' wrap='nowrap'>\n {/* Find is CONTENT-SIZED: a compact band idle, expanding once to a\n fixed results height when a search starts — a deliberate state\n change, not jitter (the widget owns that height). */}\n <InquiryFindRecordsWidget\n params={{\n // The landing holds the tree as the raw wire document; the search\n // model's view of it is a narrowing of the same object.\n // `tableHeight` is deliberately NOT forwarded — the landing's\n // '100%' has nothing definite to resolve against in a\n // content-sized card, and the widget carries its own results\n // height.\n tree: tree as SearchTreeWire | null | undefined,\n catalogObjects,\n onLoadRecord,\n onLoadRecords,\n onLoadedNodeClick: loadFromSearch\n }}\n />\n\n {/* The row is the pane's remaining height (`grow` from a zero basis);\n the class carries the `min-height: 0` that lets it shrink to that.\n The fluent card carries `height` as an inline style on its host, so\n each card fills its region at `height: 100%`. */}\n <UdpFlexbox\n className={styles.listsRow}\n grow={1}\n basis='0'\n direction='row'\n gap='md'\n wrap='wrap'\n align='stretch'\n >\n <UdpFlexbox\n grow={3}\n basis='36rem'\n direction='column'\n gap='none'\n wrap='nowrap'\n >\n <InquiryRecentRecordsWidget\n params={{\n recentlyLoadedNodes,\n loading,\n onLoadedNodeClick\n }}\n />\n </UdpFlexbox>\n <UdpFlexbox\n grow={1}\n basis='12rem'\n direction='column'\n gap='none'\n wrap='nowrap'\n >\n <InquiryRemindersWidget\n params={{\n tree: tree as RemindersTreeWire | null | undefined,\n catalogObjects,\n onLoadedNodeClick: loadFromReminder\n }}\n />\n </UdpFlexbox>\n </UdpFlexbox>\n {children}\n </UdpFlexbox>\n );\n};\n\nexport default InquiryExplorePage;\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAgGA,MAAagC,sBAAqBC,OAAA;CAAA,MAAAC,IAAAC,EAAA,GAAA;CAAC,MAAA,EAAAN,QAAAC,aAAAG;CAGT,IAAAG;AAAA,KAAAF,EAAA,OAAAL,QAAA;AASpBO,OAAAP,UAAA,EAAY;AAAAK,IAAA,KAAAL;AAAAK,IAAA,KAAAE;OAAAA,MAAAF,EAAA;CARhB,MAAA,EAAAnB,MAAAE,gBAAAC,qBAAAC,SAAAC,mBAAAE,cAAAG,kBAQIW;CAMJ,MAAAC,iBACEjB;CACF,MAAAkB,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AAA;CAAA,IAAAU;AAAA,KAAAV,EAAA,QAAAO,MAAAP,EAAA,QAAAS,IAAA;AAtCfC,OAAA,sBAAA,cAAC,YAAD;GACa,WAAA1C,OAAM2C;GACX,MAAA;GACA,OAAA;GACI,WAAA;GACN,KAAA;GACC,MAAA;GACC,OAAA;GAgCK,EA9BXJ,IAeAE,GAeW;AAAAT,IAAA,MAAAO;AAAAP,IAAA,MAAAS;AAAAT,IAAA,MAAAU;OAAAA,MAAAV,EAAA;CAAA,IAAAY;AAAA,KAAAZ,EAAA,QAAAJ,YAAAI,EAAA,QAAAM,MAAAN,EAAA,QAAAU,IAAA;AA/DfE,OAAA,sBAAA,cAAC,YAAD;GAAmB,QAAA;GAAiB,WAAA;GAAa,KAAA;GAAU,MAAA;GAiE9C,EA7DXN,IAoBAI,IAwCCd,SACU;AAAAI,IAAA,MAAAJ;AAAAI,IAAA,MAAAM;AAAAN,IAAA,MAAAU;AAAAV,IAAA,MAAAY;OAAAA,MAAAZ,EAAA;AAAA,QAjEbY"}
1
+ {"version":3,"file":"InquiryExplorePage.mjs","names":["React","useTranslation","UdpCard","UdpDivider","UdpFlexbox","styles","FindRecords","FinderPick","InquiryFindRecordsWidgetParams","InquiryRecentRecordsWidget","InquiryRemindersWidget","InquiryRemindersWidgetParams","CatalogObject","InquiryTreeWire","SearchableEntity","RecentlyLoadedWire","InquiryExplorePageParams","tree","catalogObjects","recentlyLoadedNodes","loading","onLoadedNodeClick","node","onLoadRecord","entity","row","Record","onLoadRecords","picks","tableHeight","InquiryExplorePageProps","params","children","ReactNode","InquiryExplorePage","t0","$","_c","t1","loadFromSearch","loadFromReminder","t","t2","t3","t4","search","results","actions","idle","band","columns","main","appearance","defaultValue","rail"],"sources":["../../../../src/inquiry/v2/landing/InquiryExplorePage.tsx"],"sourcesContent":["/**\n * THE MODERN EXPLORE PAGE — composed in code, not in a page document.\n *\n * The platform's default explore page has always been a DB-seeded JSON document\n * assembling two legacy widgets. Every tenant carries a copy of it, none of them\n * authored it, and shipping a change to it meant shipping a data migration. So\n * the platform default is now this file: `landingModel` routes the seeded page\n * id here, and the JSON is never fetched. A tree pointing at any OTHER page is\n * pointing at a page its author built, and that still renders through\n * `UdpPageById` exactly as before.\n *\n * ## The composition — the record pane's own anatomy\n * The landing is what the record pane shows before a record is chosen, so it is\n * laid out like one: a band across the top, a divider, the content below, all\n * flat on the pane's white.\n *\n * ┌ Search ───────────────────────────────────────┐\n * ├───────────────────────────────┬───────────────┤\n * │ Recently loaded │ Reminders │\n * │ (search results, once typing) │ │\n * └───────────────────────────────┴───────────────┘\n *\n * The finder is ONE component with separable parts, so it owns the layout\n * through `renderLayout`: its search row goes in the band and its results take\n * the main column as a titled section, in the place the recent records hold\n * while nothing is searched, with its bulk actions on the title row. The\n * reminders rail never moves. Under ~49rem of CONTAINER the rail wraps below.\n *\n * ONE text edge: the band, the section titles, the rows and the results all\n * start on the same line (the column gutter plus the card's own inset); row\n * hover washes bleed into the gutter (`listRow.module.css`).\n *\n * Recently loaded and Reminders are the registry widgets with a `subtle` card:\n * the same title, list and states they have on an authored page, minus the\n * chrome. There is deliberately no `UdpPrimaryActionHeader` — the inquiry\n * viewer already carries the surface's header.\n *\n * ## Params\n * The same bag the landing already hands an explore page's widgets, so this\n * component works identically whether the landing mounts it directly or a JSON\n * page embeds it as the `InquiryExplorePage` widget type.\n */\nimport React from 'react';\nimport { useTranslation } from 'react-i18next';\nimport { UdpCard } from '../../../UI/fluent-web-components/UdpCard';\nimport { UdpDivider } from '../../../UI/fluent-web-components/UdpDivider';\nimport { UdpFlexbox } from '../../../UI/fluent-web-components/UdpFlexbox';\nimport styles from './InquiryExplorePage.module.css';\nimport {\n FindRecords,\n type FinderPick,\n type InquiryFindRecordsWidgetParams\n} from '../../../UI/widgets/library/InquiryFindRecordsWidget';\nimport InquiryRecentRecordsWidget from '../../../UI/widgets/library/InquiryRecentRecordsWidget';\nimport InquiryRemindersWidget, {\n type InquiryRemindersWidgetParams\n} from '../../../UI/widgets/library/InquiryRemindersWidget';\nimport type {\n CatalogObject,\n InquiryTreeWire\n} from '../../../domain/inquiryTree';\nimport type { SearchableEntity } from '../search/searchModel';\nimport type { RecentlyLoadedWire } from '../widgets/widgetRowModel';\n\nexport interface InquiryExplorePageParams {\n /** The tree wire document — searched by Find, filtered on by Reminders. */\n tree?: InquiryTreeWire | null;\n /** The catalog — identifier fields for the record a clicked row names. */\n catalogObjects?: CatalogObject[] | null;\n /** The tree's recently-loaded history for this user. */\n recentlyLoadedNodes?: RecentlyLoadedWire[] | null;\n /** True while that history is being fetched. */\n loading?: boolean;\n /** Replay a node-to-load back into the tree — every list's row click. */\n onLoadedNodeClick?: (node: RecentlyLoadedWire) => void;\n /**\n * Find's own load handlers — the ones the host's + Load dialog uses, so the\n * two finders load identically (row-based, batch-capable). Absent on hosts\n * that only speak node-to-load; Find then falls back to `onLoadedNodeClick`.\n */\n onLoadRecord?: (entity: SearchableEntity, row: Record<string, unknown>) => void;\n onLoadRecords?: (picks: FinderPick[]) => void;\n /** Accepted for compatibility with the landing's legacy param bag; unused. */\n tableHeight?: string;\n}\n\nexport interface InquiryExplorePageProps {\n params?: InquiryExplorePageParams;\n children?: React.ReactNode;\n}\n\nexport const InquiryExplorePage = ({\n params,\n children\n}: InquiryExplorePageProps) => {\n const {\n tree,\n catalogObjects,\n recentlyLoadedNodes,\n loading,\n onLoadedNodeClick,\n onLoadRecord,\n onLoadRecords\n } = params ?? {};\n\n // Find and Reminders each build their own node-to-load shape (a search hit\n // and a reminder's record, not a history entry). All three are the same\n // object to the host that replays them; only the compiler sees three names\n // for it, so the handler is narrowed once, here.\n const loadFromSearch =\n onLoadedNodeClick as InquiryFindRecordsWidgetParams['onLoadedNodeClick'];\n const loadFromReminder =\n onLoadedNodeClick as InquiryRemindersWidgetParams['onLoadedNodeClick'];\n const { t } = useTranslation();\n\n return (\n <FindRecords\n params={{\n tree,\n catalogObjects,\n onLoadRecord,\n onLoadRecords,\n onLoadedNodeClick: loadFromSearch\n }}\n // The recent records are this page's idle content.\n defaultListing={false}\n renderLayout={({ search, results, actions, idle }) => (\n <UdpFlexbox height='100%' gap='none' wrap='nowrap'>\n <div className={styles.band}>\n <div className={styles.search}>{search}</div>\n </div>\n <UdpDivider />\n <UdpFlexbox\n className={styles.columns}\n grow={1}\n basis='0'\n direction='row'\n gap='none'\n >\n <UdpFlexbox\n className={styles.main}\n grow={999}\n basis='24rem'\n gap='none'\n wrap='nowrap'\n >\n {idle ? (\n <InquiryRecentRecordsWidget\n params={{\n recentlyLoadedNodes,\n loading,\n onLoadedNodeClick,\n appearance: 'subtle'\n }}\n />\n ) : (\n // The same titled section the recent records were, in the\n // same place: the title swaps, the bulk actions sit on its\n // row (where they never move), the results list below.\n <UdpCard\n appearance='subtle'\n height='100%'\n label={t('inquiry.widgets.findRecords.results', {\n defaultValue: 'Results'\n })}\n >\n <div slot='header-action' className={styles.actions}>\n {actions}\n </div>\n {results}\n </UdpCard>\n )}\n </UdpFlexbox>\n <UdpFlexbox\n className={styles.rail}\n grow={1}\n basis='25rem'\n gap='none'\n wrap='nowrap'\n >\n <InquiryRemindersWidget\n params={{\n tree,\n catalogObjects,\n onLoadedNodeClick: loadFromReminder,\n appearance: 'subtle'\n }}\n />\n </UdpFlexbox>\n </UdpFlexbox>\n {children}\n </UdpFlexbox>\n )}\n />\n );\n};\n\nexport default InquiryExplorePage;\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA2FA,MAAakC,sBAAqBC,OAAA;CAAA,MAAAC,IAAAC,EAAA,GAAA;CAAC,MAAA,EAAAN,QAAAC,aAAAG;CAGT,IAAAG;AAAA,KAAAF,EAAA,OAAAL,QAAA;AASpBO,OAAAP,UAAA,EAAY;AAAAK,IAAA,KAAAL;AAAAK,IAAA,KAAAE;OAAAA,MAAAF,EAAA;CARhB,MAAA,EAAAnB,MAAAC,gBAAAC,qBAAAC,SAAAC,mBAAAE,cAAAI,kBAQIW;CAMJ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CAAA,GAZC,sBAAA,cAAC,SAAD;IACa,YAAA;IACJ,QAAA;IACA,OAAAX,EAAE,uCAAuC,EAAAY,cAChC,WACf,CAAA;IAOL,EALI,sBAAA,cAAA,OAAA;IAAU,MAAA;IAA2B,WAAAhD,OAAM0C;IAG1CD,EAFEC,QAEFD,EAAAA,QAEL,CAEF,EAAA,sBAAA,cAAC,YAAD;IACa,WAAAzC,OAAMiD;IACX,MAAA;IACA,OAAA;IACF,KAAA;IACC,MAAA;IAWT,EATI,sBAAA,cAAC,wBAAD,EACU,QAAA;IAAArC;IAAAC;IAAAG,mBAGamB;IAAgBY,YACvB;IACd,EAEJ,CAAA,CACF,CACCpB,EAAAA,SACU;;AACdI,IAAA,KAAAlB;AAAAkB,IAAA,KAAAJ;AAAAI,IAAA,MAAAI;AAAAJ,IAAA,MAAAhB;AAAAgB,IAAA,MAAAf;AAAAe,IAAA,MAAAjB;AAAAiB,IAAA,MAAAK;AAAAL,IAAA,MAAAnB;AAAAmB,IAAA,MAAAO;OAAAA,MAAAP,EAAA;CAAA,IAAAQ;AAAA,KAAAR,EAAA,QAAAM,MAAAN,EAAA,QAAAO,IAAA;AA5EHC,OAAA,sBAAA,cAAC,aAAD;GACU,QAAAF;GAQQ,gBAAA;GACF,cAAAC;GAmEd,CAAA;AAAAP,IAAA,MAAAM;AAAAN,IAAA,MAAAO;AAAAP,IAAA,MAAAQ;OAAAA,MAAAR,EAAA;AAAA,QA7EFQ"}
@@ -1,8 +1,60 @@
1
- /* The lists row is the pane's remaining height. A flex item's automatic
2
- minimum is its content height, so without this floor a long history would
3
- push the row past the pane instead of scrolling inside the card. Sizing it
4
- here rather than with `overflow` on the region keeps the cards' shadows
5
- unclipped. */
6
- .listsRow {
1
+ /* ONE text edge: a column's gutter plus the card's own inset — two
2
+ `--spacingHorizontalM`, which is `--spacingHorizontalXXL` — so the search
3
+ row, the section titles and every row start on the same line.
4
+
5
+ The band is exactly as tall as the tree pane's header beside it — a title
6
+ line, a gap and a small-control toolbar inside the sidebar layout's block
7
+ padding — so the divider under each meets in one line across both panes. */
8
+ .band {
9
+ box-sizing: border-box;
10
+ height: calc(
11
+ var(--lineHeightBase400) + var(--spacingVerticalS) + 24px + 2 *
12
+ var(--spacingVerticalXS)
13
+ );
14
+ display: flex;
15
+ flex-direction: column;
16
+ justify-content: center;
17
+ padding-inline: var(--spacingHorizontalXXL);
18
+ }
19
+
20
+ /* The search row is a control, not a banner: it stops at a readable width
21
+ instead of stretching across the pane. */
22
+ .search {
23
+ max-width: 36rem;
24
+ }
25
+
26
+ /* The columns are the pane's remaining height. A flex item's automatic minimum
27
+ is its content height, so without this floor a long list would push the row
28
+ past the pane instead of scrolling inside its section. `overflow` clips the
29
+ rail's hairlines to the side that is showing (see `.rail`). */
30
+ .columns {
7
31
  min-height: 0;
32
+ overflow: hidden;
33
+ }
34
+
35
+ /* A column is as wide as its flex basis says, never as wide as its longest
36
+ row: without this floor a long name would stretch the column instead of
37
+ ellipsizing inside it. */
38
+ .main,
39
+ .rail {
40
+ min-width: 0;
41
+ padding-inline: var(--spacingHorizontalM);
42
+ }
43
+
44
+ /* One hairline between the rail and the main column, whichever way they sit:
45
+ beside it the left line shows and the top one is clipped under the divider;
46
+ wrapped below it the top line shows and the left one is clipped. */
47
+ .rail {
48
+ box-shadow:
49
+ -1px 0 0 var(--colorNeutralStroke2),
50
+ 0 -1px 0 var(--colorNeutralStroke2);
51
+ }
52
+
53
+ /* The results title row is exactly as tall as the "Recently loaded" title row
54
+ it replaces: the buttons are centred on the title's line and overhang it
55
+ rather than stretch it, so nothing below shifts when a search starts. */
56
+ .actions {
57
+ display: flex;
58
+ align-items: center;
59
+ height: var(--lineHeightBase400);
8
60
  }
@@ -21,14 +21,14 @@
21
21
  * params. Custom pages are provably untouched — see landingModel.ts.
22
22
  */
23
23
  import React from 'react';
24
- import type { CatalogObject } from '../../../domain/inquiryTree';
24
+ import type { CatalogObject, InquiryTree } from '../../../domain/inquiryTree';
25
25
  import { type RecentlyLoadedNode } from '../api/queries';
26
26
  import { type InquiryExplorePageParams } from './InquiryExplorePage';
27
27
  export interface InquiryLandingProps {
28
28
  /** The tree's configured explore page. */
29
29
  pageId: string;
30
- /** The tree this viewer is showing — the wire document, as v1 passed it. */
31
- tree?: Record<string, unknown> | null;
30
+ /** The tree this viewer is showing. */
31
+ tree: InquiryTree;
32
32
  treeId: string;
33
33
  catalogObjects?: CatalogObject[] | null;
34
34
  /** Replay one history entry back into the tree (Recently Loaded row click). */
@@ -1 +1 @@
1
- {"version":3,"file":"InquiryLanding.d.ts","sourceRoot":"","sources":["../../../../src/inquiry/v2/landing/InquiryLanding.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAGjE,OAAO,EAEL,KAAK,kBAAkB,EACxB,MAAM,gBAAgB,CAAC;AACxB,OAAO,EAEL,KAAK,wBAAwB,EAC9B,MAAM,sBAAsB,CAAC;AAI9B,MAAM,WAAW,mBAAmB;IAClC,0CAA0C;IAC1C,MAAM,EAAE,MAAM,CAAC;IACf,8EAA4E;IAC5E,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI,CAAC;IACtC,MAAM,EAAE,MAAM,CAAC;IACf,cAAc,CAAC,EAAE,aAAa,EAAE,GAAG,IAAI,CAAC;IACxC,+EAA+E;IAC/E,iBAAiB,EAAE,CAAC,IAAI,EAAE,kBAAkB,KAAK,IAAI,CAAC;IACtD,oFAAkF;IAClF,YAAY,CAAC,EAAE,wBAAwB,CAAC,cAAc,CAAC,CAAC;IACxD,aAAa,CAAC,EAAE,wBAAwB,CAAC,eAAe,CAAC,CAAC;CAC3D;AAED,eAAO,MAAM,cAAc,sIA+C1B,CAAC"}
1
+ {"version":3,"file":"InquiryLanding.d.ts","sourceRoot":"","sources":["../../../../src/inquiry/v2/landing/InquiryLanding.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,OAAO,KAAkB,MAAM,OAAO,CAAC;AAEvC,OAAO,KAAK,EAAE,aAAa,EAAE,WAAW,EAAE,MAAM,6BAA6B,CAAC;AAI9E,OAAO,EAEL,KAAK,kBAAkB,EACxB,MAAM,gBAAgB,CAAC;AACxB,OAAO,EAEL,KAAK,wBAAwB,EAC9B,MAAM,sBAAsB,CAAC;AAI9B,MAAM,WAAW,mBAAmB;IAClC,0CAA0C;IAC1C,MAAM,EAAE,MAAM,CAAC;IACf,uCAAuC;IACvC,IAAI,EAAE,WAAW,CAAC;IAClB,MAAM,EAAE,MAAM,CAAC;IACf,cAAc,CAAC,EAAE,aAAa,EAAE,GAAG,IAAI,CAAC;IACxC,+EAA+E;IAC/E,iBAAiB,EAAE,CAAC,IAAI,EAAE,kBAAkB,KAAK,IAAI,CAAC;IACtD,oFAAkF;IAClF,YAAY,CAAC,EAAE,wBAAwB,CAAC,cAAc,CAAC,CAAC;IACxD,aAAa,CAAC,EAAE,wBAAwB,CAAC,eAAe,CAAC,CAAC;CAC3D;AAED,eAAO,MAAM,cAAc,sIA2D1B,CAAC"}
@@ -20,8 +20,9 @@
20
20
  * routes it to the code-composed `InquiryExplorePage` instead, on the same
21
21
  * params. Custom pages are provably untouched — see landingModel.ts.
22
22
  */
23
- import React from 'react';
23
+ import React, { useMemo } from 'react';
24
24
  import { useAuthedUser } from '../../../utilities/auth/useAuthedUser';
25
+ import { toWire } from '../../../domain/inquiryTree/serialize';
25
26
  import { UdpPageById } from '../page/UdpPageRenderer';
26
27
  import { PageMountBoundary } from '../ui/PageMountBoundary';
27
28
  import { useRecentlyLoadedNodes } from '../api/queries';
@@ -34,12 +35,14 @@ export const InquiryLanding = ({ pageId, tree, treeId, catalogObjects, onLoadedN
34
35
  // by this surface alone, and its cache key is shared with the write, so a
35
36
  // load anywhere in the pane refreshes the table under it.
36
37
  const { data: recentlyLoadedNodes, isPending } = useRecentlyLoadedNodes(treeId, user === null || user === void 0 ? void 0 : user.id);
38
+ // The page's widgets read the tree as v1 handed it to them: the wire.
39
+ const wireTree = useMemo(() => toWire(tree, { skipValidation: true }), [tree]);
37
40
  // v1 InquiryContainer.jsx:2855-2862 — the explore page's widget params,
38
41
  // unchanged. `tableHeight` was a viewport calculation there because the page
39
42
  // sat directly under the app bar; here it fills the scroll box this component
40
43
  // owns. ONE bag, whichever landing renders it.
41
44
  const params = {
42
- tree,
45
+ tree: wireTree,
43
46
  catalogObjects,
44
47
  recentlyLoadedNodes,
45
48
  loading: isPending,
@@ -51,6 +54,8 @@ export const InquiryLanding = ({ pageId, tree, treeId, catalogObjects, onLoadedN
51
54
  const surface = resolveLandingSurface(pageId);
52
55
  if (surface.kind === 'none')
53
56
  return null;
54
- return (React.createElement("div", { className: styles.landing }, React.createElement(PageMountBoundary, { resetKey: `${treeId}:${pageId}` }, surface.kind === 'code' ? (React.createElement(InquiryExplorePage, { params: params })) : (React.createElement(UdpPageById, { pageId: surface.pageId, params: params })))));
57
+ return (React.createElement("div", { className: surface.kind === 'code'
58
+ ? `${styles.landing} ${styles.canvas}`
59
+ : styles.landing }, React.createElement(PageMountBoundary, { resetKey: `${treeId}:${pageId}` }, surface.kind === 'code' ? (React.createElement(InquiryExplorePage, { params: params })) : (React.createElement(UdpPageById, { pageId: surface.pageId, params: params })))));
55
60
  };
56
61
  //# sourceMappingURL=InquiryLanding.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"InquiryLanding.js","sourceRoot":"","sources":["../../../../src/inquiry/v2/landing/InquiryLanding.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,aAAa,EAAE,MAAM,uCAAuC,CAAC;AAEtE,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AACtD,OAAO,EAAE,iBAAiB,EAAE,MAAM,yBAAy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C,CACP,CAAC;IAEF,0EAAwE;IACxE,6EAA6E;IAC7E,8EAA8E;IAC9E,+CAA+C;IAC/C,MAAM,MAAM,GAAG;QACb,IAAI,EAAE,QAAQ;QACd,cAAc;QACd,mBAAmB;QACnB,OAAO,EAAE,SAAS;QAClB,iBAAiB;QACjB,YAAY;QACZ,aAAa;QACb,WAAW,EAAE,MAAM;KACpB,CAAC;IAEF,MAAM,OAAO,GAAG,qBAAqB,CAAC,MAAM,CAAC,CAAC;IAC9C,IAAI,OAAO,CAAC,IAAI,KAAK,MAAM;QAAE,OAAO,IAAI,CAAC;IAEzC,OAAO,CACL,6BACE,SAAS,EACP,OAAO,CAAC,IAAI,KAAK,MAAM;YACrB,CAAC,CAAC,GAAG,MAAM,CAAC,OAAO,IAAI,MAAM,CAAC,MAAM,EAAE;YACtC,CAAC,CAAC,MAAM,CAAC,OAAO,IAGpB,oBAAC,iBAAiB,IAAC,QAAQ,EAAE,GAAG,MAAM,IAAI,MAAM,EAAE,IAC/C,OAAO,CAAC,IAAI,KAAK,MAAM,CAAC,CAAC,CAAC,CACzB,oBAAC,kBAAkB,IAAC,MAAM,EAAE,MAAM,GAAI,CACvC,CAAC,CAAC,CAAC,CACF,oBAAC,WAAW,IAAC,MAAM,EAAE,OAAO,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,GAAI,CACxD,CACiB,CAChB,CACP,CAAC;AAAA,CACH,CAAC"}
@@ -1,5 +1,6 @@
1
1
  import { c } from "../../../reactCompilerRuntime.mjs";
2
2
  import { useAuthedUser } from "../../../utilities/auth/useAuthedUser.mjs";
3
+ import { toWire } from "../../../domain/inquiryTree/serialize.mjs";
3
4
  import { useRecentlyLoadedNodes } from "../api/queries.mjs";
4
5
  import { UdpPageById } from "../page/UdpPageRenderer.mjs";
5
6
  import { PageMountBoundary } from "../ui/PageMountBoundary.mjs";
@@ -31,13 +32,20 @@ import styles from "./InquiryLanding.module.css";
31
32
  * params. Custom pages are provably untouched — see landingModel.ts.
32
33
  */
33
34
  const InquiryLanding = (t0) => {
34
- const $ = c(17);
35
+ const $ = c(22);
35
36
  const { pageId, tree, treeId, catalogObjects, onLoadedNodeClick, onLoadRecord, onLoadRecords } = t0;
36
37
  const { data: recentlyLoadedNodes, isPending } = useRecentlyLoadedNodes(treeId, useAuthedUser()?.id);
37
38
  let t1;
38
- if ($[0] !== catalogObjects || $[1] !== isPending || $[2] !== onLoadRecord || $[3] !== onLoadRecords || $[4] !== onLoadedNodeClick || $[5] !== recentlyLoadedNodes || $[6] !== tree) {
39
- t1 = {
40
- tree,
39
+ if ($[0] !== tree) {
40
+ t1 = toWire(tree, { skipValidation: true });
41
+ $[0] = tree;
42
+ $[1] = t1;
43
+ } else t1 = $[1];
44
+ const wireTree = t1;
45
+ let t2;
46
+ if ($[2] !== catalogObjects || $[3] !== isPending || $[4] !== onLoadRecord || $[5] !== onLoadRecords || $[6] !== onLoadedNodeClick || $[7] !== recentlyLoadedNodes || $[8] !== wireTree) {
47
+ t2 = {
48
+ tree: wireTree,
41
49
  catalogObjects,
42
50
  recentlyLoadedNodes,
43
51
  loading: isPending,
@@ -46,44 +54,52 @@ const InquiryLanding = (t0) => {
46
54
  onLoadRecords,
47
55
  tableHeight: "100%"
48
56
  };
49
- $[0] = catalogObjects;
50
- $[1] = isPending;
51
- $[2] = onLoadRecord;
52
- $[3] = onLoadRecords;
53
- $[4] = onLoadedNodeClick;
54
- $[5] = recentlyLoadedNodes;
55
- $[6] = tree;
56
- $[7] = t1;
57
- } else t1 = $[7];
58
- const params = t1;
59
- let t2;
60
- if ($[8] !== pageId) {
61
- t2 = resolveLandingSurface(pageId);
62
- $[8] = pageId;
57
+ $[2] = catalogObjects;
58
+ $[3] = isPending;
59
+ $[4] = onLoadRecord;
60
+ $[5] = onLoadRecords;
61
+ $[6] = onLoadedNodeClick;
62
+ $[7] = recentlyLoadedNodes;
63
+ $[8] = wireTree;
63
64
  $[9] = t2;
64
65
  } else t2 = $[9];
65
- const surface = t2;
66
+ const params = t2;
67
+ let t3;
68
+ if ($[10] !== pageId) {
69
+ t3 = resolveLandingSurface(pageId);
70
+ $[10] = pageId;
71
+ $[11] = t3;
72
+ } else t3 = $[11];
73
+ const surface = t3;
66
74
  if (surface.kind === "none") return null;
67
- const t3 = `${treeId}:${pageId}`;
68
- let t4;
69
- if ($[10] !== params || $[11] !== surface.kind || $[12] !== surface.pageId) {
70
- t4 = surface.kind === "code" ? /* @__PURE__ */ React.createElement(InquiryExplorePage, { params }) : /* @__PURE__ */ React.createElement(UdpPageById, {
75
+ const t4 = surface.kind === "code" ? `${styles.landing} ${styles.canvas}` : styles.landing;
76
+ const t5 = `${treeId}:${pageId}`;
77
+ let t6;
78
+ if ($[12] !== params || $[13] !== surface.kind || $[14] !== surface.pageId) {
79
+ t6 = surface.kind === "code" ? /* @__PURE__ */ React.createElement(InquiryExplorePage, { params }) : /* @__PURE__ */ React.createElement(UdpPageById, {
71
80
  pageId: surface.pageId,
72
81
  params
73
82
  });
74
- $[10] = params;
75
- $[11] = surface.kind;
76
- $[12] = surface.pageId;
77
- $[13] = t4;
78
- } else t4 = $[13];
79
- let t5;
80
- if ($[14] !== t3 || $[15] !== t4) {
81
- t5 = /* @__PURE__ */ React.createElement("div", { className: styles.landing }, /* @__PURE__ */ React.createElement(PageMountBoundary, { resetKey: t3 }, t4));
82
- $[14] = t3;
83
- $[15] = t4;
83
+ $[12] = params;
84
+ $[13] = surface.kind;
85
+ $[14] = surface.pageId;
86
+ $[15] = t6;
87
+ } else t6 = $[15];
88
+ let t7;
89
+ if ($[16] !== t5 || $[17] !== t6) {
90
+ t7 = /* @__PURE__ */ React.createElement(PageMountBoundary, { resetKey: t5 }, t6);
84
91
  $[16] = t5;
85
- } else t5 = $[16];
86
- return t5;
92
+ $[17] = t6;
93
+ $[18] = t7;
94
+ } else t7 = $[18];
95
+ let t8;
96
+ if ($[19] !== t4 || $[20] !== t7) {
97
+ t8 = /* @__PURE__ */ React.createElement("div", { className: t4 }, t7);
98
+ $[19] = t4;
99
+ $[20] = t7;
100
+ $[21] = t8;
101
+ } else t8 = $[21];
102
+ return t8;
87
103
  };
88
104
  //#endregion
89
105
  export { InquiryLanding };
@@ -1 +1 @@
1
- {"version":3,"file":"InquiryLanding.mjs","names":["React","useAuthedUser","CatalogObject","UdpPageById","PageMountBoundary","useRecentlyLoadedNodes","RecentlyLoadedNode","InquiryExplorePage","InquiryExplorePageParams","resolveLandingSurface","styles","InquiryLandingProps","pageId","tree","Record","treeId","catalogObjects","onLoadedNodeClick","node","onLoadRecord","onLoadRecords","InquiryLanding","t0","$","_c","user","data","recentlyLoadedNodes","isPending","id","t1","loading","tableHeight","params","t2","surface","kind","t3","t4","t5","landing"],"sources":["../../../../src/inquiry/v2/landing/InquiryLanding.tsx"],"sourcesContent":["/**\n * THE TREE'S LANDING SCREEN — the page a tree names in `explorePageId`, shown\n * in the record pane while no record is selected.\n *\n * v1 parity (InquiryContainer.jsx:2848-2864): with no node loaded, a tree that\n * configured an explore page rendered THAT page, with the tree, the catalog and\n * the user's recently-loaded history handed to its widgets as params. v2 read\n * `explorePageId` off the wire and never rendered it, so four of the seven\n * fixture trees — including the Assets tree — landed on \"Select a record\"\n * instead of the dashboard their author built.\n *\n * An AUTHOR'S page is still whatever the Page Builder authored, rendered\n * through the same UdpPageById pipeline the body capability uses for a record's\n * tabs. This file's whole job is the PARAMS — the legacy widgetParams contract\n * an explore page's widgets read, reproduced key for key so pages built for v1\n * keep working unchanged.\n *\n * The one exception is the PLATFORM DEFAULT explore page, which every tenant\n * carries as a seeded JSON document nobody authored: `resolveLandingSurface`\n * routes it to the code-composed `InquiryExplorePage` instead, on the same\n * params. Custom pages are provably untouched — see landingModel.ts.\n */\nimport React from 'react';\nimport { useAuthedUser } from '../../../utilities/auth/useAuthedUser';\nimport type { CatalogObject } from '../../../domain/inquiryTree';\nimport { UdpPageById } from '../page/UdpPageRenderer';\nimport { PageMountBoundary } from '../ui/PageMountBoundary';\nimport {\n useRecentlyLoadedNodes,\n type RecentlyLoadedNode\n} from '../api/queries';\nimport {\n InquiryExplorePage,\n type InquiryExplorePageParams\n} from './InquiryExplorePage';\nimport { resolveLandingSurface } from './landingModel';\nimport styles from './InquiryLanding.module.css';\n\nexport interface InquiryLandingProps {\n /** The tree's configured explore page. */\n pageId: string;\n /** The tree this viewer is showing — the wire document, as v1 passed it. */\n tree?: Record<string, unknown> | null;\n treeId: string;\n catalogObjects?: CatalogObject[] | null;\n /** Replay one history entry back into the tree (Recently Loaded row click). */\n onLoadedNodeClick: (node: RecentlyLoadedNode) => void;\n /** The + Load dialog's finder handlers, so the page's Find loads the same way. */\n onLoadRecord?: InquiryExplorePageParams['onLoadRecord'];\n onLoadRecords?: InquiryExplorePageParams['onLoadRecords'];\n}\n\nexport const InquiryLanding = ({\n pageId,\n tree,\n treeId,\n catalogObjects,\n onLoadedNodeClick,\n onLoadRecord,\n onLoadRecords\n}: InquiryLandingProps) => {\n const user = useAuthedUser();\n // The history is READ here rather than threaded from the viewer: it is used\n // by this surface alone, and its cache key is shared with the write, so a\n // load anywhere in the pane refreshes the table under it.\n const { data: recentlyLoadedNodes, isPending } = useRecentlyLoadedNodes(\n treeId,\n user?.id\n );\n\n // v1 InquiryContainer.jsx:2855-2862 — the explore page's widget params,\n // unchanged. `tableHeight` was a viewport calculation there because the page\n // sat directly under the app bar; here it fills the scroll box this component\n // owns. ONE bag, whichever landing renders it.\n const params = {\n tree,\n catalogObjects,\n recentlyLoadedNodes,\n loading: isPending,\n onLoadedNodeClick,\n onLoadRecord,\n onLoadRecords,\n tableHeight: '100%'\n };\n\n const surface = resolveLandingSurface(pageId);\n if (surface.kind === 'none') return null;\n\n return (\n <div className={styles.landing}>\n <PageMountBoundary resetKey={`${treeId}:${pageId}`}>\n {surface.kind === 'code' ? (\n <InquiryExplorePage params={params} />\n ) : (\n <UdpPageById pageId={surface.pageId} params={params} />\n )}\n </PageMountBoundary>\n </div>\n );\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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C;AAAAb,IAAA,MAAAY,QAAAvB;AAAAW,IAAA,MAAAe;OAAAA,MAAAf,EAAA;CAAA,IAAAgB;AAAA,KAAAhB,EAAA,QAAAc,MAAAd,EAAA,QAAAe,IAAA;AANLC,OAAA,sBAAA,cAAA,OAAA,EAAgB,WAAA7B,OAAM8B,SAQhB,EAPJ,sBAAA,cAAC,mBAAD,EAA6B,UAAAH,IAO/B,EANKC,GAML,CAAM;AAAAf,IAAA,MAAAc;AAAAd,IAAA,MAAAe;AAAAf,IAAA,MAAAgB;OAAAA,MAAAhB,EAAA;AAAA,QARNgB"}
1
+ {"version":3,"file":"InquiryLanding.mjs","names":["React","useMemo","useAuthedUser","CatalogObject","InquiryTree","toWire","UdpPageById","PageMountBoundary","useRecentlyLoadedNodes","RecentlyLoadedNode","InquiryExplorePage","InquiryExplorePageParams","resolveLandingSurface","styles","InquiryLandingProps","pageId","tree","treeId","catalogObjects","onLoadedNodeClick","node","onLoadRecord","onLoadRecords","InquiryLanding","t0","$","_c","user","data","recentlyLoadedNodes","isPending","id","t1","skipValidation","wireTree","t2","loading","tableHeight","params","t3","surface","kind","t4","landing","canvas","t5","t6","t7","t8"],"sources":["../../../../src/inquiry/v2/landing/InquiryLanding.tsx"],"sourcesContent":["/**\n * THE TREE'S LANDING SCREEN — the page a tree names in `explorePageId`, shown\n * in the record pane while no record is selected.\n *\n * v1 parity (InquiryContainer.jsx:2848-2864): with no node loaded, a tree that\n * configured an explore page rendered THAT page, with the tree, the catalog and\n * the user's recently-loaded history handed to its widgets as params. v2 read\n * `explorePageId` off the wire and never rendered it, so four of the seven\n * fixture trees — including the Assets tree — landed on \"Select a record\"\n * instead of the dashboard their author built.\n *\n * An AUTHOR'S page is still whatever the Page Builder authored, rendered\n * through the same UdpPageById pipeline the body capability uses for a record's\n * tabs. This file's whole job is the PARAMS — the legacy widgetParams contract\n * an explore page's widgets read, reproduced key for key so pages built for v1\n * keep working unchanged.\n *\n * The one exception is the PLATFORM DEFAULT explore page, which every tenant\n * carries as a seeded JSON document nobody authored: `resolveLandingSurface`\n * routes it to the code-composed `InquiryExplorePage` instead, on the same\n * params. Custom pages are provably untouched — see landingModel.ts.\n */\nimport React, { useMemo } from 'react';\nimport { useAuthedUser } from '../../../utilities/auth/useAuthedUser';\nimport type { CatalogObject, InquiryTree } from '../../../domain/inquiryTree';\nimport { toWire } from '../../../domain/inquiryTree/serialize';\nimport { UdpPageById } from '../page/UdpPageRenderer';\nimport { PageMountBoundary } from '../ui/PageMountBoundary';\nimport {\n useRecentlyLoadedNodes,\n type RecentlyLoadedNode\n} from '../api/queries';\nimport {\n InquiryExplorePage,\n type InquiryExplorePageParams\n} from './InquiryExplorePage';\nimport { resolveLandingSurface } from './landingModel';\nimport styles from './InquiryLanding.module.css';\n\nexport interface InquiryLandingProps {\n /** The tree's configured explore page. */\n pageId: string;\n /** The tree this viewer is showing. */\n tree: InquiryTree;\n treeId: string;\n catalogObjects?: CatalogObject[] | null;\n /** Replay one history entry back into the tree (Recently Loaded row click). */\n onLoadedNodeClick: (node: RecentlyLoadedNode) => void;\n /** The + Load dialog's finder handlers, so the page's Find loads the same way. */\n onLoadRecord?: InquiryExplorePageParams['onLoadRecord'];\n onLoadRecords?: InquiryExplorePageParams['onLoadRecords'];\n}\n\nexport const InquiryLanding = ({\n pageId,\n tree,\n treeId,\n catalogObjects,\n onLoadedNodeClick,\n onLoadRecord,\n onLoadRecords\n}: InquiryLandingProps) => {\n const user = useAuthedUser();\n // The history is READ here rather than threaded from the viewer: it is used\n // by this surface alone, and its cache key is shared with the write, so a\n // load anywhere in the pane refreshes the table under it.\n const { data: recentlyLoadedNodes, isPending } = useRecentlyLoadedNodes(\n treeId,\n user?.id\n );\n\n // The page's widgets read the tree as v1 handed it to them: the wire.\n const wireTree = useMemo(\n () => toWire(tree, { skipValidation: true }),\n [tree]\n );\n\n // v1 InquiryContainer.jsx:2855-2862 — the explore page's widget params,\n // unchanged. `tableHeight` was a viewport calculation there because the page\n // sat directly under the app bar; here it fills the scroll box this component\n // owns. ONE bag, whichever landing renders it.\n const params = {\n tree: wireTree,\n catalogObjects,\n recentlyLoadedNodes,\n loading: isPending,\n onLoadedNodeClick,\n onLoadRecord,\n onLoadRecords,\n tableHeight: '100%'\n };\n\n const surface = resolveLandingSurface(pageId);\n if (surface.kind === 'none') return null;\n\n return (\n <div\n className={\n surface.kind === 'code'\n ? `${styles.landing} ${styles.canvas}`\n : styles.landing\n }\n >\n <PageMountBoundary resetKey={`${treeId}:${pageId}`}>\n {surface.kind === 'code' ? (\n <InquiryExplorePage params={params} />\n ) : (\n <UdpPageById pageId={surface.pageId} params={params} />\n )}\n </PageMountBoundary>\n </div>\n );\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAqDA,MAAauB,kBAAiBC,OAAA;CAAA,MAAAC,IAAAC,EAAA,GAAA;CAAC,MAAA,EAAAX,QAAAC,MAAAC,QAAAC,gBAAAC,mBAAAE,cAAAC,kBAAAE;CAa7B,MAAA,EAAAI,MAAAC,qBAAAC,cAAiDtB,uBAC/CS,QALWf,eAAe,EAMtB6B,GACL;CAAC,IAAAC;AAAA,KAAAP,EAAA,OAAAT,MAAA;AAIMgB,OAAA3B,OAAOW,MAAM,EAAAiB,gBAAkB,MAAM,CAAC;AAAAR,IAAA,KAAAT;AAAAS,IAAA,KAAAO;OAAAA,MAAAP,EAAA;CAD9C,MAAAS,WACQF;CAEN,IAAAG;AAAA,KAAAV,EAAA,OAAAP,kBAAAO,EAAA,OAAAK,aAAAL,EAAA,OAAAJ,gBAAAI,EAAA,OAAAH,iBAAAG,EAAA,OAAAN,qBAAAM,EAAA,OAAAI,uBAAAJ,EAAA,OAAAS,UAAA;AAMaC,OAAA;GAAAnB,MACPkB;GAAQhB;GAAAW;GAAAO,SAGLN;GAASX;GAAAE;GAAAC;GAAAe,aAIL;GACd;AAAAZ,IAAA,KAAAP;AAAAO,IAAA,KAAAK;AAAAL,IAAA,KAAAJ;AAAAI,IAAA,KAAAH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B,IAAA,MAAAsB;AAAAtB,IAAA,MAAAuB;OAAAA,MAAAvB,EAAA;AAAA,QAdNuB"}
@@ -7,3 +7,11 @@
7
7
  overflow: auto;
8
8
  padding: var(--spacingVerticalM) var(--spacingHorizontalM);
9
9
  }
10
+
11
+ /* The code-composed explore page IS the pane: flat on white and edge to edge,
12
+ like a loaded record, so its dividers reach the pane's sides. An authored
13
+ page keeps the grey and the gutter — its widgets bring their own cards. */
14
+ .canvas {
15
+ background: var(--colorNeutralBackground1);
16
+ padding: 0;
17
+ }
@@ -20,6 +20,10 @@ export interface UdpPageByIdProps {
20
20
  /** Rendered while the page definition loads the first time. */
21
21
  fallback?: React.ReactNode;
22
22
  }
23
- /** Fetch-and-render convenience over UdpPageRenderer (cached page config). */
23
+ /**
24
+ * Fetch-and-render convenience over UdpPageRenderer (cached page config). In a
25
+ * read-only view (kernel/ReadOnlyContext) the page is named, not rendered: its
26
+ * widgets may live in an app the host does not register.
27
+ */
24
28
  export declare const UdpPageById: ({ pageId, params, fallback }: UdpPageByIdProps) => string | number | boolean | React.JSX.Element | Iterable<React.ReactNode>;
25
29
  //# sourceMappingURL=UdpPageRenderer.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"UdpPageRenderer.d.ts","sourceRoot":"","sources":["../../../../src/inquiry/v2/page/UdpPageRenderer.tsx"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,OAAO,KAA4B,MAAM,OAAO,CAAC;AAIjD,OAAO,EACL,YAAY,EAGb,MAAM,sBAAsB,CAAC;AAK9B,MAAM,WAAW,oBAAoB;IACnC,IAAI,EAAE,YAAY,CAAC;IACnB,iEAAiE;IACjE,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CAClC;AA+CD,eAAO,MAAM,eAAe,+DAmE3B,CAAC;AAEF,MAAM,WAAW,gBAAgB;IAC/B,MAAM,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IAClC,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACjC,+DAA+D;IAC/D,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC5B;AAED,8EAA8E;AAC9E,eAAO,MAAM,WAAW,+HAuBvB,CAAC"}
1
+ {"version":3,"file":"UdpPageRenderer.d.ts","sourceRoot":"","sources":["../../../../src/inquiry/v2/page/UdpPageRenderer.tsx"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,OAAO,KAA4B,MAAM,OAAO,CAAC;AAKjD,OAAO,EACL,YAAY,EAGb,MAAM,sBAAsB,CAAC;AAM9B,MAAM,WAAW,oBAAoB;IACnC,IAAI,EAAE,YAAY,CAAC;IACnB,iEAAiE;IACjE,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CAClC;AA+CD,eAAO,MAAM,eAAe,+DAmE3B,CAAC;AAEF,MAAM,WAAW,gBAAgB;IAC/B,MAAM,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IAClC,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACjC,+DAA+D;IAC/D,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC5B;AAED;;;;GAIG;AACH,eAAO,MAAM,WAAW,+HAoCvB,CAAC"}
@@ -10,9 +10,11 @@ import React, { Suspense, useMemo } from 'react';
10
10
  import { useTranslation } from 'react-i18next';
11
11
  import { UdpSpinner } from '../../../UI/fluent-web-components/UdpSpinner';
12
12
  import { UdpText } from '../../../UI/fluent-web-components/UdpText';
13
+ import { UdpEmptyState } from '../../../UI/fluent-web-components/UdpEmptyState';
13
14
  import { collectRequiredParamWarnings } from '../../../domain/page';
14
15
  import { usePageDocument } from '../api/queries';
15
16
  import { useWidgetResolver } from './WidgetRegistryContext';
17
+ import { useReadOnly } from '../kernel/ReadOnlyContext';
16
18
  import styles from './UdpPageRenderer.module.css';
17
19
  const pickLayout = (widget) => {
18
20
  var _a, _b;
@@ -54,9 +56,14 @@ export const UdpPageRenderer = ({ page, params }) => {
54
56
  : undefined }, React.createElement(WidgetHost, { widget: widget, params: params })));
55
57
  }))))));
56
58
  };
57
- /** Fetch-and-render convenience over UdpPageRenderer (cached page config). */
59
+ /**
60
+ * Fetch-and-render convenience over UdpPageRenderer (cached page config). In a
61
+ * read-only view (kernel/ReadOnlyContext) the page is named, not rendered: its
62
+ * widgets may live in an app the host does not register.
63
+ */
58
64
  export const UdpPageById = ({ pageId, params, fallback }) => {
59
65
  const { t } = useTranslation();
66
+ const readOnly = useReadOnly();
60
67
  const { data: page, isPending, error } = usePageDocument(pageId);
61
68
  if (!pageId)
62
69
  return null;
@@ -68,6 +75,11 @@ export const UdpPageById = ({ pageId, params, fallback }) => {
68
75
  defaultValue: 'Failed to load page.'
69
76
  })));
70
77
  }
78
+ if (readOnly) {
79
+ return (React.createElement(UdpEmptyState, { size: "small", iconName: "document", heading: page.name, description: t('inquiry.page.previewPlaceholder', {
80
+ defaultValue: 'Page content shows in Inquiry.'
81
+ }) }));
82
+ }
71
83
  return React.createElement(UdpPageRenderer, { page: page, params: params });
72
84
  };
73
85
  //# sourceMappingURL=UdpPageRenderer.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"UdpPageRenderer.js","sourceRoot":"","sources":["../../../../src/inquiry/v2/page/UdpPageRenderer.tsx"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AACjD,OAAO,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AAC/C,OAAO,EAAE,UAAU,EAAE,MAAM,8CAA8C,CAAC;AAC1E,OAAO,EAAE,OAAO,EAAE,MAAM,2CAA2C,CAAC;AACpE,OAAO,EAGL,4BAA4B,EAC7B,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AACjD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,MAAM,CAAC,CAAC;IACjE,IAAI,CAAC,MAAM;QAAE,OAAO,IAAI,CAAC;IACzB,IAAI,SAAS,EAAE,CAAC;QACd,OAAO,CACL,QAAQ,aAAR,QAAQ,cAAR,QAAQ,GAAI,CACV,6BAAK,SAAS,EAAE,MAAM,CAAC,QAAQ,IAC7B,oBAAC,UAAU,IAAC,IAAI,EAAC,OAAO,GAAG,CACvB,CACP,CACF,CAAC;IACJ,CAAC;IACD,IAAI,KAAK,IAAI,CAAC,IAAI,EAAE,CAAC;QACnB,OAAO,CACL,oBAAC,OAAO,IAAC,OAAO,EAAC,UAAU,IACxB,CAAC,CAAC,yBAAyB,EAAE;YAC5B,YAAY,EAAE,sBAAsB;SACrC,CAAC,CACM,CACX,CAAC;IACJ,CAAC;IACD,IAAI,QAAQ,EAAE,CAAC;QACb,OAAO,CACL,oBAAC,aAAa,IACZ,IAAI,EAAC,OAAO,EACZ,QAAQ,EAAC,UAAU,EACnB,OAAO,EAAE,IAAI,CAAC,IAAI,EAClB,WAAW,EAAE,CAAC,CAAC,iCAAiC,EAAE;gBAChD,YAAY,EAAE,gCAAgC;aAC/C,CAAC,GACF,CACH,CAAC;IACJ,CAAC;IACD,OAAO,oBAAC,eAAe,IAAC,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,GAAI,CAAC;AAAA,CACxD,CAAC"}
@@ -1,8 +1,10 @@
1
1
  import { c } from "../../../reactCompilerRuntime.mjs";
2
+ import { UdpEmptyState } from "../../../UI/fluent-web-components/UdpEmptyState.mjs";
2
3
  import { UdpSpinner } from "../../../UI/fluent-web-components/UdpSpinner.mjs";
3
4
  import { UdpText } from "../../../UI/fluent-web-components/UdpText.mjs";
4
5
  import { collectRequiredParamWarnings } from "../../../domain/page/pageDocument.mjs";
5
6
  import { usePageDocument } from "../api/queries.mjs";
7
+ import { useReadOnly } from "../kernel/ReadOnlyContext.mjs";
6
8
  import { useWidgetResolver } from "./WidgetRegistryContext.mjs";
7
9
  import React, { Suspense } from "react";
8
10
  import { useTranslation } from "react-i18next";
@@ -175,11 +177,16 @@ const UdpPageRenderer = (t0) => {
175
177
  } else t6 = $[16];
176
178
  return t6;
177
179
  };
178
- /** Fetch-and-render convenience over UdpPageRenderer (cached page config). */
180
+ /**
181
+ * Fetch-and-render convenience over UdpPageRenderer (cached page config). In a
182
+ * read-only view (kernel/ReadOnlyContext) the page is named, not rendered: its
183
+ * widgets may live in an app the host does not register.
184
+ */
179
185
  const UdpPageById = (t0) => {
180
- const $ = c(9);
186
+ const $ = c(14);
181
187
  const { pageId, params, fallback } = t0;
182
188
  const { t } = useTranslation();
189
+ const readOnly = useReadOnly();
183
190
  const { data: page, isPending, error } = usePageDocument(pageId);
184
191
  if (!pageId) return null;
185
192
  if (isPending) {
@@ -206,16 +213,38 @@ const UdpPageById = (t0) => {
206
213
  } else t2 = $[5];
207
214
  return t2;
208
215
  }
216
+ if (readOnly) {
217
+ const t1 = page.name;
218
+ let t2;
219
+ if ($[6] !== t) {
220
+ t2 = t("inquiry.page.previewPlaceholder", { defaultValue: "Page content shows in Inquiry." });
221
+ $[6] = t;
222
+ $[7] = t2;
223
+ } else t2 = $[7];
224
+ let t3;
225
+ if ($[8] !== page.name || $[9] !== t2) {
226
+ t3 = /* @__PURE__ */ React.createElement(UdpEmptyState, {
227
+ size: "small",
228
+ iconName: "document",
229
+ heading: t1,
230
+ description: t2
231
+ });
232
+ $[8] = page.name;
233
+ $[9] = t2;
234
+ $[10] = t3;
235
+ } else t3 = $[10];
236
+ return t3;
237
+ }
209
238
  let t1;
210
- if ($[6] !== page || $[7] !== params) {
239
+ if ($[11] !== page || $[12] !== params) {
211
240
  t1 = /* @__PURE__ */ React.createElement(UdpPageRenderer, {
212
241
  page,
213
242
  params
214
243
  });
215
- $[6] = page;
216
- $[7] = params;
217
- $[8] = t1;
218
- } else t1 = $[8];
244
+ $[11] = page;
245
+ $[12] = params;
246
+ $[13] = t1;
247
+ } else t1 = $[13];
219
248
  return t1;
220
249
  };
221
250
  //#endregion
@@ -1 +1 @@
1
- {"version":3,"file":"UdpPageRenderer.mjs","names":["React","Suspense","useMemo","useTranslation","UdpSpinner","UdpText","PageDocument","PageWidget","collectRequiredParamWarnings","usePageDocument","useWidgetResolver","styles","UdpPageRendererProps","page","params","Record","pickLayout","widget","layout","xl","xs","Object","values","WidgetHost","t0","$","_c","t","resolve","t1","type","resolved","t2","defaultParams","t3","t4","mergedParams","t5","defaultValue","widgetType","t6","Component","Symbol","for","fallback","id","props","UdpPageRenderer","requiredFieldsMap","value","nodeObj","warnings","length","map","warning","widgetId","field","kind","sections","section","key","staticStack","widgets","widgetCell","dashboardGrid","widget_0","gridColumn","x","w","gridRow","y","h","undefined","UdpPageByIdProps","pageId","ReactNode","UdpPageById","data","isPending","error"],"sources":["../../../../src/inquiry/v2/page/UdpPageRenderer.tsx"],"sourcesContent":["/**\n * Inquiry v2 page renderer (inquiry-v2-architecture.md §6): renders a typed\n * PageDocument. Static pages are a flex stack; dashboard pages are a plain\n * CSS grid reproducing the legacy 4-column/128px geometry — react-grid-layout\n * and react-dnd are designer-only and never load here. Widgets resolve\n * through the registry context and mount in Suspense; params are one\n * deterministic merge computed once, no mutation.\n */\nimport React, { Suspense, useMemo } from 'react';\nimport { useTranslation } from 'react-i18next';\nimport { UdpSpinner } from '../../../UI/fluent-web-components/UdpSpinner';\nimport { UdpText } from '../../../UI/fluent-web-components/UdpText';\nimport {\n PageDocument,\n PageWidget,\n collectRequiredParamWarnings\n} from '../../../domain/page';\nimport { usePageDocument } from '../api/queries';\nimport { useWidgetResolver } from './WidgetRegistryContext';\nimport styles from './UdpPageRenderer.module.css';\n\nexport interface UdpPageRendererProps {\n page: PageDocument;\n /** Caller params merged over each widget's configured params. */\n params?: Record<string, unknown>;\n}\n\nconst pickLayout = (widget: PageWidget) =>\n widget.layout.xl ?? widget.layout.xs ?? Object.values(widget.layout)[0];\n\nconst WidgetHost = ({\n widget,\n params\n}: {\n widget: PageWidget;\n params?: Record<string, unknown>;\n}) => {\n const { t } = useTranslation();\n const resolve = useWidgetResolver();\n const resolved = resolve(widget.type);\n const mergedParams = useMemo(\n () => ({\n ...(resolved?.defaultParams ?? {}),\n ...widget.params,\n ...(params ?? {})\n }),\n [resolved, widget.params, params]\n );\n if (!resolved) {\n return (\n <UdpText variant='caption1'>\n {t('inquiry.page.unknownWidget', {\n defaultValue: 'Unknown widget \"{{widgetType}}\"',\n widgetType: widget.type\n })}\n </UdpText>\n );\n }\n const { Component } = resolved;\n return (\n <Suspense\n fallback={\n <div className={styles.fallback}>\n <UdpSpinner size='small' />\n </div>\n }\n >\n <Component id={widget.id} params={mergedParams} {...widget.props} />\n </Suspense>\n );\n};\n\nexport const UdpPageRenderer = ({ page, params }: UdpPageRendererProps) => {\n const { t } = useTranslation();\n const warnings = useMemo(\n () =>\n collectRequiredParamWarnings(page, {\n requiredFieldsMap: params?.requiredFieldsMap as\n | Record<string, { type?: string; value?: string }>\n | undefined,\n nodeObj: params?.nodeObj as Record<string, unknown> | undefined\n }),\n [page, params]\n );\n\n return (\n <>\n {warnings.length > 0 && (\n <div className={styles.warnings}>\n {warnings.map((warning) => (\n <div\n key={`${warning.widgetId}-${warning.field}`}\n className={styles.warning}\n >\n <UdpText variant='caption1'>\n {t('inquiry.page.missingFieldValue', {\n defaultValue: '{{field}} field is missing a value',\n field: warning.field\n })}\n </UdpText>\n </div>\n ))}\n </div>\n )}\n {page.sections.map((section) =>\n page.kind === 'static' ? (\n <div key={section.key} className={styles.staticStack}>\n {section.widgets.map((widget) => (\n <div key={widget.id} className={styles.widgetCell}>\n <WidgetHost widget={widget} params={params} />\n </div>\n ))}\n </div>\n ) : (\n <div key={section.key} className={styles.dashboardGrid}>\n {section.widgets.map((widget) => {\n const layout = pickLayout(widget);\n return (\n <div\n key={widget.id}\n className={styles.widgetCell}\n style={\n layout\n ? {\n gridColumn: `${layout.x + 1} / span ${layout.w}`,\n gridRow: `${layout.y + 1} / span ${layout.h}`\n }\n : undefined\n }\n >\n <WidgetHost widget={widget} params={params} />\n </div>\n );\n })}\n </div>\n )\n )}\n </>\n );\n};\n\nexport interface UdpPageByIdProps {\n pageId: string | null | undefined;\n params?: Record<string, unknown>;\n /** Rendered while the page definition loads the first time. */\n fallback?: React.ReactNode;\n}\n\n/** Fetch-and-render convenience over UdpPageRenderer (cached page config). */\nexport const UdpPageById = ({ pageId, params, fallback }: UdpPageByIdProps) => {\n const { t } = useTranslation();\n const { data: page, isPending, error } = usePageDocument(pageId);\n if (!pageId) return null;\n if (isPending) {\n return (\n fallback ?? (\n <div className={styles.fallback}>\n <UdpSpinner size='small' />\n </div>\n )\n );\n }\n if (error || !page) {\n return (\n <UdpText variant='caption1'>\n {t('inquiry.page.loadFailed', {\n defaultValue: 'Failed to load page.'\n })}\n </UdpText>\n );\n }\n return <UdpPageRenderer page={page} params={params} />;\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;AA2BA,MAAMgB,cAAcC,WAClBA,OAAOC,OAAOC,MAAMF,OAAOC,OAAOE,MAAMC,OAAOC,OAAOL,OAAOC,OAAO,CAAC;AAEvE,MAAMK,cAAaC,OAAA;CAAA,MAAAC,IAAAC,EAAA,GAAA;CAAC,MAAA,EAAAT,QAAAH,WAAAU;CAOlB,MAAA,EAAAG,MAAcxB,gBAAgB;CAC9B,MAAAyB,UAAgBlB,mBAAmB;CAAC,IAAAmB;AAAA,KAAAJ,EAAA,OAAAG,WAAAH,EAAA,OAAAR,OAAAa,MAAA;AACnBD,OAAAD,QAAQX,OAAMa,KAAM;AAAAL,IAAA,KAAAG;AAAAH,IAAA,KAAAR,OAAAa;AAAAL,IAAA,KAAAI;OAAAA,MAAAJ,EAAA;CAArC,MAAAM,WAAiBF;CAAqB,IAAAG;AAAA,KAAAP,EAAA,OAAAM,UAAAE,eAAA;AAG9BD,OAAAD,UAAQE,iBAAR,EAA6B;AAAAR,IAAA,KAAAM,UAAAE;AAAAR,IAAA,KAAAO;OAAAA,MAAAP,EAAA;CAAA,IAAAS;AAAA,KAAA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AAAJ,EAAA,OAAAZ,QAAAY,EAAA,OAAAX,QAAA;AACMe,OAAA,sBAAA,cAAC,iBAAD;GAAuBhB;GAAcC;GAAU,CAAA;AAAAW,IAAA,KAAAZ;AAAAY,IAAA,KAAAX;AAAAW,IAAA,KAAAI;OAAAA,MAAAJ,EAAA;AAAA,QAA/CI"}
1
+ {"version":3,"file":"UdpPageRenderer.mjs","names":["React","Suspense","useMemo","useTranslation","UdpSpinner","UdpText","UdpEmptyState","PageDocument","PageWidget","collectRequiredParamWarnings","usePageDocument","useWidgetResolver","useReadOnly","styles","UdpPageRendererProps","page","params","Record","pickLayout","widget","layout","xl","xs","Object","values","WidgetHost","t0","$","_c","t","resolve","t1","type","resolved","t2","defaultParams","t3","t4","mergedParams","t5","defaultValue","widgetType","t6","Component","Symbol","for","fallback","id","props","UdpPageRenderer","requiredFieldsMap","value","nodeObj","warnings","length","map","warning","widgetId","field","kind","sections","section","key","staticStack","widgets","widgetCell","dashboardGrid","widget_0","gridColumn","x","w","gridRow","y","h","undefined","UdpPageByIdProps","pageId","ReactNode","UdpPageById","readOnly","data","isPending","error","name"],"sources":["../../../../src/inquiry/v2/page/UdpPageRenderer.tsx"],"sourcesContent":["/**\n * Inquiry v2 page renderer (inquiry-v2-architecture.md §6): renders a typed\n * PageDocument. Static pages are a flex stack; dashboard pages are a plain\n * CSS grid reproducing the legacy 4-column/128px geometry — react-grid-layout\n * and react-dnd are designer-only and never load here. Widgets resolve\n * through the registry context and mount in Suspense; params are one\n * deterministic merge computed once, no mutation.\n */\nimport React, { Suspense, useMemo } from 'react';\nimport { useTranslation } from 'react-i18next';\nimport { UdpSpinner } from '../../../UI/fluent-web-components/UdpSpinner';\nimport { UdpText } from '../../../UI/fluent-web-components/UdpText';\nimport { UdpEmptyState } from '../../../UI/fluent-web-components/UdpEmptyState';\nimport {\n PageDocument,\n PageWidget,\n collectRequiredParamWarnings\n} from '../../../domain/page';\nimport { usePageDocument } from '../api/queries';\nimport { useWidgetResolver } from './WidgetRegistryContext';\nimport { useReadOnly } from '../kernel/ReadOnlyContext';\nimport styles from './UdpPageRenderer.module.css';\n\nexport interface UdpPageRendererProps {\n page: PageDocument;\n /** Caller params merged over each widget's configured params. */\n params?: Record<string, unknown>;\n}\n\nconst pickLayout = (widget: PageWidget) =>\n widget.layout.xl ?? widget.layout.xs ?? Object.values(widget.layout)[0];\n\nconst WidgetHost = ({\n widget,\n params\n}: {\n widget: PageWidget;\n params?: Record<string, unknown>;\n}) => {\n const { t } = useTranslation();\n const resolve = useWidgetResolver();\n const resolved = resolve(widget.type);\n const mergedParams = useMemo(\n () => ({\n ...(resolved?.defaultParams ?? {}),\n ...widget.params,\n ...(params ?? {})\n }),\n [resolved, widget.params, params]\n );\n if (!resolved) {\n return (\n <UdpText variant='caption1'>\n {t('inquiry.page.unknownWidget', {\n defaultValue: 'Unknown widget \"{{widgetType}}\"',\n widgetType: widget.type\n })}\n </UdpText>\n );\n }\n const { Component } = resolved;\n return (\n <Suspense\n fallback={\n <div className={styles.fallback}>\n <UdpSpinner size='small' />\n </div>\n }\n >\n <Component id={widget.id} params={mergedParams} {...widget.props} />\n </Suspense>\n );\n};\n\nexport const UdpPageRenderer = ({ page, params }: UdpPageRendererProps) => {\n const { t } = useTranslation();\n const warnings = useMemo(\n () =>\n collectRequiredParamWarnings(page, {\n requiredFieldsMap: params?.requiredFieldsMap as\n | Record<string, { type?: string; value?: string }>\n | undefined,\n nodeObj: params?.nodeObj as Record<string, unknown> | undefined\n }),\n [page, params]\n );\n\n return (\n <>\n {warnings.length > 0 && (\n <div className={styles.warnings}>\n {warnings.map((warning) => (\n <div\n key={`${warning.widgetId}-${warning.field}`}\n className={styles.warning}\n >\n <UdpText variant='caption1'>\n {t('inquiry.page.missingFieldValue', {\n defaultValue: '{{field}} field is missing a value',\n field: warning.field\n })}\n </UdpText>\n </div>\n ))}\n </div>\n )}\n {page.sections.map((section) =>\n page.kind === 'static' ? (\n <div key={section.key} className={styles.staticStack}>\n {section.widgets.map((widget) => (\n <div key={widget.id} className={styles.widgetCell}>\n <WidgetHost widget={widget} params={params} />\n </div>\n ))}\n </div>\n ) : (\n <div key={section.key} className={styles.dashboardGrid}>\n {section.widgets.map((widget) => {\n const layout = pickLayout(widget);\n return (\n <div\n key={widget.id}\n className={styles.widgetCell}\n style={\n layout\n ? {\n gridColumn: `${layout.x + 1} / span ${layout.w}`,\n gridRow: `${layout.y + 1} / span ${layout.h}`\n }\n : undefined\n }\n >\n <WidgetHost widget={widget} params={params} />\n </div>\n );\n })}\n </div>\n )\n )}\n </>\n );\n};\n\nexport interface UdpPageByIdProps {\n pageId: string | null | undefined;\n params?: Record<string, unknown>;\n /** Rendered while the page definition loads the first time. */\n fallback?: React.ReactNode;\n}\n\n/**\n * Fetch-and-render convenience over UdpPageRenderer (cached page config). In a\n * read-only view (kernel/ReadOnlyContext) the page is named, not rendered: its\n * widgets may live in an app the host does not register.\n */\nexport const UdpPageById = ({ pageId, params, fallback }: UdpPageByIdProps) => {\n const { t } = useTranslation();\n const readOnly = useReadOnly();\n const { data: page, isPending, error } = usePageDocument(pageId);\n if (!pageId) return null;\n if (isPending) {\n return (\n fallback ?? (\n <div className={styles.fallback}>\n <UdpSpinner size='small' />\n </div>\n )\n );\n }\n if (error || !page) {\n return (\n <UdpText variant='caption1'>\n {t('inquiry.page.loadFailed', {\n defaultValue: 'Failed to load page.'\n })}\n </UdpText>\n );\n }\n if (readOnly) {\n return (\n <UdpEmptyState\n size='small'\n iconName='document'\n heading={page.name}\n description={t('inquiry.page.previewPlaceholder', {\n defaultValue: 'Page content shows in Inquiry.'\n })}\n />\n );\n }\n return <UdpPageRenderer page={page} params={params} />;\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AA6BA,MAAMkB,cAAcC,WAClBA,OAAOC,OAAOC,MAAMF,OAAOC,OAAOE,MAAMC,OAAOC,OAAOL,OAAOC,OAAO,CAAC;AAEvE,MAAMK,cAAaC,OAAA;CAAA,MAAAC,IAAAC,EAAA,GAAA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AA,QAA/CI"}
@@ -16,12 +16,6 @@ export interface InquirySearchPanelProps {
16
16
  entities: SearchableEntity[];
17
17
  /** The current quick-search text (owned by the surface's search input). */
18
18
  text: string;
19
- /**
20
- * Allow the single-result auto-load. Only pass true after an EXPLICIT
21
- * submit (Enter) — with search-as-you-type, auto-loading on a mid-typing
22
- * pause would yank the user out of search. Advanced submits always allow it.
23
- */
24
- autoLoadSingleResult?: boolean;
25
19
  /** Open the advanced drawer immediately on mount (surface "Advanced" entry). */
26
20
  initialAdvancedOpen?: boolean;
27
21
  /**
@@ -35,5 +29,5 @@ export interface InquirySearchPanelProps {
35
29
  /** Clear the search and return to the node view. */
36
30
  onClear: () => void;
37
31
  }
38
- export declare const InquirySearchPanel: ({ entities, text, autoLoadSingleResult, initialAdvancedOpen, initialAdvanced, onLoadRecord, onClear }: InquirySearchPanelProps) => React.JSX.Element;
32
+ export declare const InquirySearchPanel: ({ entities, text, initialAdvancedOpen, initialAdvanced, onLoadRecord, onClear }: InquirySearchPanelProps) => React.JSX.Element;
39
33
  //# sourceMappingURL=InquirySearchPanel.d.ts.map