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
@@ -2,34 +2,32 @@
2
2
  * Structural + semantic tree validation — the thing the legacy app never had.
3
3
  * Returns structured issues consumed identically by the UI (inline) and the
4
4
  * AI copilot (repair loop). Pure: no React, no HTTP.
5
+ *
6
+ * A message never names its node: a consumer prefixes the level the issue's
7
+ * `nodeId` points at (TreeSerializationError names it by the node's name).
5
8
  */
6
9
  import { isEntityNode } from './types';
7
- import { legalChildEntities, getSanitizedName } from './legalChildren';
8
- import { toWireString } from './wireString';
10
+ import { legalChildEntities, sameEntityName } from './legalChildren';
9
11
  /**
10
12
  * Legacy required node fields (TreeConfiguration.jsx:472-481 validateFormValues),
11
13
  * split by what actually breaks at runtime. Only catalogReturnObject is
12
14
  * load-bearing (the backend's panel/node-action join and child loading key off
13
15
  * it) — missing it is an error the strict writer refuses to save. The rest are
14
- * warnings: Inquiry falls back gracefully, and plenty of working production
15
- * trees predate the legacy form's requirements — flagging them red (and
16
- * refusing to save the whole tree) over a blank description helps no one.
16
+ * not findings: Inquiry falls back gracefully (a blank name shows as Unnamed,
17
+ * a blank record label shows the level name), and plenty of working production
18
+ * trees predate the legacy form's requirements.
17
19
  */
18
20
  const REQUIRED_FIELDS = ['catalogReturnObject'];
19
21
  // sequenceNo is deliberately NOT here: the legacy form required it, but the
20
22
  // runtime never orders sibling levels by it (levels render in array order;
21
23
  // only actions/tabs/header-pages sub-lists use sequenceNo) — warning about a
22
24
  // blank one told builders to fix a field that changes nothing.
23
- // description is read by nothing — not the runtime, not the builder — so its
24
- // absence is not a finding.
25
- const RECOMMENDED_FIELDS = ['name', 'displayName'];
26
- const RECOMMENDED_MESSAGES = {
27
- name: (label) => `A node ("${label}") has no name — it will show as Untitled.`,
28
- displayName: (label) => `"${label}" has no record label — rows in this level will show the level name instead.`
29
- };
25
+ /** The issue path of a tab's page — what the tab's page picker shows. */
26
+ export const tabPagePath = (tabId) => `tabs.${String(tabId)}.page`;
30
27
  const activeNodes = (tree) => tree.nodes.filter((node) => !node.isDeleted);
31
28
  export const validateTree = (tree, context) => {
32
- var _a;
29
+ var _a, _b;
30
+ var _c;
33
31
  const issues = [];
34
32
  const byId = new Map();
35
33
  for (const node of tree.nodes) {
@@ -52,7 +50,9 @@ export const validateTree = (tree, context) => {
52
50
  byId.set(node.id, node);
53
51
  }
54
52
  // Exactly one active root — GET {id}/detailed NPEs server-side otherwise (§2).
55
- const roots = activeNodes(tree).filter((node) => node.parentId === null);
53
+ // A group heading hangs off its parentGroupId, so its blank parentId does not
54
+ // make it a root.
55
+ const roots = activeNodes(tree).filter((node) => isEntityNode(node) && !node.parentId);
56
56
  if (roots.length === 0) {
57
57
  issues.push({
58
58
  severity: 'error',
@@ -72,7 +72,7 @@ export const validateTree = (tree, context) => {
72
72
  }
73
73
  // Orphan parent references + parent-is-deleted warnings.
74
74
  for (const node of activeNodes(tree)) {
75
- if (node.parentId === null)
75
+ if (!node.parentId)
76
76
  continue;
77
77
  const parent = byId.get(node.parentId);
78
78
  if (!parent) {
@@ -80,7 +80,7 @@ export const validateTree = (tree, context) => {
80
80
  severity: 'error',
81
81
  code: 'orphan-parent',
82
82
  nodeId: node.id,
83
- message: `Node "${nodeLabel(node)}" points at missing parent ${node.parentId}.`
83
+ message: `Points at missing parent ${node.parentId}.`
84
84
  });
85
85
  }
86
86
  else if (parent.isDeleted) {
@@ -88,7 +88,7 @@ export const validateTree = (tree, context) => {
88
88
  severity: 'warning',
89
89
  code: 'parent-deleted',
90
90
  nodeId: node.id,
91
- message: `Node "${nodeLabel(node)}" has a soft-deleted parent; it will not render.`
91
+ message: 'Its parent is soft-deleted, so it will not render.'
92
92
  });
93
93
  }
94
94
  }
@@ -107,21 +107,21 @@ export const validateTree = (tree, context) => {
107
107
  severity: 'error',
108
108
  code: 'cycle',
109
109
  nodeId: current.id,
110
- message: `Parent chain of node ${current.id} contains a cycle.`
110
+ message: 'Its parent chain contains a cycle.'
111
111
  });
112
112
  break;
113
113
  }
114
114
  visitState.set(current.id, 'visiting');
115
115
  chain.push(current.id);
116
116
  current =
117
- current.parentId !== null ? byId.get(current.parentId) : undefined;
117
+ current.parentId ? byId.get(current.parentId) : undefined;
118
118
  }
119
119
  for (const id of chain)
120
120
  visitState.set(id, 'done');
121
121
  };
122
122
  for (const node of tree.nodes)
123
123
  walkUp(node);
124
- // Required + recommended fields on active entity nodes.
124
+ // Required fields on active entity nodes.
125
125
  const isBlank = (value) => value === undefined || value === null || value === '';
126
126
  for (const node of activeNodes(tree)) {
127
127
  if (!isEntityNode(node))
@@ -133,27 +133,23 @@ export const validateTree = (tree, context) => {
133
133
  code: 'missing-required-field',
134
134
  nodeId: node.id,
135
135
  path: field,
136
- message: `Node "${nodeLabel(node)}" is missing required field "${field}".`
136
+ message: `Missing required field "${field}".`
137
137
  });
138
138
  }
139
139
  }
140
- for (const field of RECOMMENDED_FIELDS) {
141
- if (isBlank(node.properties[field])) {
142
- issues.push({
143
- severity: 'warning',
144
- code: 'missing-recommended-field',
145
- nodeId: node.id,
146
- path: field,
147
- message: RECOMMENDED_MESSAGES[field](nodeLabel(node))
148
- });
149
- }
140
+ // 26.x draws a tab without a page as a blank, label-less tab. A tab with
141
+ // no id has no picker to point at, so its issue is the level's.
142
+ for (const tab of (_c = node.properties.tabs) !== null && _c !== void 0 ? _c : []) {
143
+ if ((_a = tab === null || tab === void 0 ? void 0 : tab.page) === null || _a === void 0 ? void 0 : _a.pageId)
144
+ continue;
145
+ issues.push(Object.assign(Object.assign({ severity: 'error', code: 'tab-page-missing', nodeId: node.id }, ((tab === null || tab === void 0 ? void 0 : tab.id) ? { path: tabPagePath(tab.id) } : {})), { message: 'Pick a page — a tab without one shows blank.' }));
150
146
  }
151
147
  }
152
148
  // Catalog reachability (when context supplied): every non-root entity node's
153
149
  // entity must be navigable from its parent's entity (the legal-children oracle).
154
- if ((_a = context === null || context === void 0 ? void 0 : context.catalogObjects) === null || _a === void 0 ? void 0 : _a.length) {
150
+ if ((_b = context === null || context === void 0 ? void 0 : context.catalogObjects) === null || _b === void 0 ? void 0 : _b.length) {
155
151
  for (const node of activeNodes(tree)) {
156
- if (!isEntityNode(node) || node.parentId === null)
152
+ if (!isEntityNode(node) || !node.parentId)
157
153
  continue;
158
154
  const parent = byId.get(node.parentId);
159
155
  if (!parent || !isEntityNode(parent))
@@ -165,8 +161,7 @@ export const validateTree = (tree, context) => {
165
161
  const legal = legalChildEntities(context.catalogObjects, parentEntity);
166
162
  if (!legal.length)
167
163
  continue; // parent entity unknown to this catalog — cannot judge
168
- const childName = getSanitizedName(childEntity);
169
- if (!legal.some((entity) => getSanitizedName(entity.catalogObjectName) === childName)) {
164
+ if (!legal.some((entity) => sameEntityName(entity.catalogObjectName, childEntity))) {
170
165
  issues.push({
171
166
  severity: 'error',
172
167
  code: 'illegal-child-entity',
@@ -177,29 +172,6 @@ export const validateTree = (tree, context) => {
177
172
  }
178
173
  }
179
174
  }
180
- // Associated tree existence (when context supplied).
181
- if (context === null || context === void 0 ? void 0 : context.knownTreeIds) {
182
- for (const node of activeNodes(tree)) {
183
- if (!isEntityNode(node))
184
- continue;
185
- const associatedTreeId = node.properties.associatedTreeId;
186
- if (associatedTreeId && !context.knownTreeIds.has(associatedTreeId)) {
187
- issues.push({
188
- severity: 'warning',
189
- code: 'unknown-associated-tree',
190
- nodeId: node.id,
191
- path: 'associatedTreeId',
192
- message: `Node "${nodeLabel(node)}" references associated tree ${associatedTreeId}, which is not in the known tree list.`
193
- });
194
- }
195
- }
196
- }
197
175
  return issues;
198
176
  };
199
- const nodeLabel = (node) => {
200
- if (isEntityNode(node))
201
- return node.properties.name || node.properties.displayName || node.id;
202
- const label = node.properties.label;
203
- return label == null ? node.id : toWireString(label);
204
- };
205
177
  //# sourceMappingURL=validate.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"validate.js","sourceRoot":"","sources":["../../../src/domain/inquiryTree/validate.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,OAAO,EAA0C,YAAY,EAAE,MAAM,SAAS,CAAC;AAC/E,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AAqB;oBAC3B,OAAO,EAAE,WAAW,WAAW,0CAA0C,YAAY,IAAI;iBAC1F,CAAC,CAAC;YACL,CAAC;QACH,CAAC;IACH,CAAC;IAED,OAAO,MAAM,CAAC;AAAA,CACf,CAAC"}
@@ -1,27 +1,26 @@
1
+ import { legalChildEntities, sameEntityName } from "./legalChildren.mjs";
1
2
  import { isEntityNode } from "./types.mjs";
2
- import { toWireString } from "./wireString.mjs";
3
- import { getSanitizedName, legalChildEntities } from "./legalChildren.mjs";
4
3
  //#region src/domain/inquiryTree/validate.ts
5
4
  /**
6
5
  * Structural + semantic tree validation — the thing the legacy app never had.
7
6
  * Returns structured issues consumed identically by the UI (inline) and the
8
7
  * AI copilot (repair loop). Pure: no React, no HTTP.
8
+ *
9
+ * A message never names its node: a consumer prefixes the level the issue's
10
+ * `nodeId` points at (TreeSerializationError names it by the node's name).
9
11
  */
10
12
  /**
11
13
  * Legacy required node fields (TreeConfiguration.jsx:472-481 validateFormValues),
12
14
  * split by what actually breaks at runtime. Only catalogReturnObject is
13
15
  * load-bearing (the backend's panel/node-action join and child loading key off
14
16
  * it) — missing it is an error the strict writer refuses to save. The rest are
15
- * warnings: Inquiry falls back gracefully, and plenty of working production
16
- * trees predate the legacy form's requirements — flagging them red (and
17
- * refusing to save the whole tree) over a blank description helps no one.
17
+ * not findings: Inquiry falls back gracefully (a blank name shows as Unnamed,
18
+ * a blank record label shows the level name), and plenty of working production
19
+ * trees predate the legacy form's requirements.
18
20
  */
19
21
  const REQUIRED_FIELDS = ["catalogReturnObject"];
20
- const RECOMMENDED_FIELDS = ["name", "displayName"];
21
- const RECOMMENDED_MESSAGES = {
22
- name: (label) => `A node ("${label}") has no name — it will show as Untitled.`,
23
- displayName: (label) => `"${label}" has no record label — rows in this level will show the level name instead.`
24
- };
22
+ /** The issue path of a tab's page — what the tab's page picker shows. */
23
+ const tabPagePath = (tabId) => `tabs.${String(tabId)}.page`;
25
24
  const activeNodes = (tree) => tree.nodes.filter((node) => !node.isDeleted);
26
25
  const validateTree = (tree, context) => {
27
26
  const issues = [];
@@ -43,7 +42,7 @@ const validateTree = (tree, context) => {
43
42
  });
44
43
  byId.set(node.id, node);
45
44
  }
46
- const roots = activeNodes(tree).filter((node) => node.parentId === null);
45
+ const roots = activeNodes(tree).filter((node) => isEntityNode(node) && !node.parentId);
47
46
  if (roots.length === 0) issues.push({
48
47
  severity: "error",
49
48
  code: "no-root",
@@ -56,19 +55,19 @@ const validateTree = (tree, context) => {
56
55
  message: `More than one root node (${roots.length} found); the backend requires exactly one.`
57
56
  });
58
57
  for (const node of activeNodes(tree)) {
59
- if (node.parentId === null) continue;
58
+ if (!node.parentId) continue;
60
59
  const parent = byId.get(node.parentId);
61
60
  if (!parent) issues.push({
62
61
  severity: "error",
63
62
  code: "orphan-parent",
64
63
  nodeId: node.id,
65
- message: `Node "${nodeLabel(node)}" points at missing parent ${node.parentId}.`
64
+ message: `Points at missing parent ${node.parentId}.`
66
65
  });
67
66
  else if (parent.isDeleted) issues.push({
68
67
  severity: "warning",
69
68
  code: "parent-deleted",
70
69
  nodeId: node.id,
71
- message: `Node "${nodeLabel(node)}" has a soft-deleted parent; it will not render.`
70
+ message: "Its parent is soft-deleted, so it will not render."
72
71
  });
73
72
  }
74
73
  const visitState = /* @__PURE__ */ new Map();
@@ -83,13 +82,13 @@ const validateTree = (tree, context) => {
83
82
  severity: "error",
84
83
  code: "cycle",
85
84
  nodeId: current.id,
86
- message: `Parent chain of node ${current.id} contains a cycle.`
85
+ message: "Its parent chain contains a cycle."
87
86
  });
88
87
  break;
89
88
  }
90
89
  visitState.set(current.id, "visiting");
91
90
  chain.push(current.id);
92
- current = current.parentId !== null ? byId.get(current.parentId) : void 0;
91
+ current = current.parentId ? byId.get(current.parentId) : void 0;
93
92
  }
94
93
  for (const id of chain) visitState.set(id, "done");
95
94
  };
@@ -102,18 +101,21 @@ const validateTree = (tree, context) => {
102
101
  code: "missing-required-field",
103
102
  nodeId: node.id,
104
103
  path: field,
105
- message: `Node "${nodeLabel(node)}" is missing required field "${field}".`
106
- });
107
- for (const field of RECOMMENDED_FIELDS) if (isBlank(node.properties[field])) issues.push({
108
- severity: "warning",
109
- code: "missing-recommended-field",
110
- nodeId: node.id,
111
- path: field,
112
- message: RECOMMENDED_MESSAGES[field](nodeLabel(node))
104
+ message: `Missing required field "${field}".`
113
105
  });
106
+ for (const tab of node.properties.tabs ?? []) {
107
+ if (tab?.page?.pageId) continue;
108
+ issues.push({
109
+ severity: "error",
110
+ code: "tab-page-missing",
111
+ nodeId: node.id,
112
+ ...tab?.id ? { path: tabPagePath(tab.id) } : {},
113
+ message: "Pick a page — a tab without one shows blank."
114
+ });
115
+ }
114
116
  }
115
117
  if (context?.catalogObjects?.length) for (const node of activeNodes(tree)) {
116
- if (!isEntityNode(node) || node.parentId === null) continue;
118
+ if (!isEntityNode(node) || !node.parentId) continue;
117
119
  const parent = byId.get(node.parentId);
118
120
  if (!parent || !isEntityNode(parent)) continue;
119
121
  const parentEntity = parent.properties.catalogReturnObject;
@@ -121,8 +123,7 @@ const validateTree = (tree, context) => {
121
123
  if (!parentEntity || !childEntity) continue;
122
124
  const legal = legalChildEntities(context.catalogObjects, parentEntity);
123
125
  if (!legal.length) continue;
124
- const childName = getSanitizedName(childEntity);
125
- if (!legal.some((entity) => getSanitizedName(entity.catalogObjectName) === childName)) issues.push({
126
+ if (!legal.some((entity) => sameEntityName(entity.catalogObjectName, childEntity))) issues.push({
126
127
  severity: "error",
127
128
  code: "illegal-child-entity",
128
129
  nodeId: node.id,
@@ -130,25 +131,9 @@ const validateTree = (tree, context) => {
130
131
  message: `Entity "${childEntity}" is not reachable from parent entity "${parentEntity}".`
131
132
  });
132
133
  }
133
- if (context?.knownTreeIds) for (const node of activeNodes(tree)) {
134
- if (!isEntityNode(node)) continue;
135
- const associatedTreeId = node.properties.associatedTreeId;
136
- if (associatedTreeId && !context.knownTreeIds.has(associatedTreeId)) issues.push({
137
- severity: "warning",
138
- code: "unknown-associated-tree",
139
- nodeId: node.id,
140
- path: "associatedTreeId",
141
- message: `Node "${nodeLabel(node)}" references associated tree ${associatedTreeId}, which is not in the known tree list.`
142
- });
143
- }
144
134
  return issues;
145
135
  };
146
- const nodeLabel = (node) => {
147
- if (isEntityNode(node)) return node.properties.name || node.properties.displayName || node.id;
148
- const label = node.properties.label;
149
- return label == null ? node.id : toWireString(label);
150
- };
151
136
  //#endregion
152
- export { validateTree };
137
+ export { tabPagePath, validateTree };
153
138
 
154
139
  //# sourceMappingURL=validate.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"validate.mjs","names":["InquiryTree","TreeNode","ValidationIssue","isEntityNode","legalChildEntities","CatalogObject","getSanitizedName","toWireString","REQUIRED_FIELDS","const","RECOMMENDED_FIELDS","RECOMMENDED_MESSAGES","Record","label","name","displayName","ValidationContext","catalogObjects","knownTreeIds","Set","activeNodes","tree","nodes","filter","node","isDeleted","validateTree","context","issues","byId","Map","id","push","severity","code","message","has","nodeId","set","roots","parentId","length","root","slice","parent","get","nodeLabel","visitState","walkUp","chain","current","undefined","isBlank","value","field","properties","path","parentEntity","catalogReturnObject","childEntity","legal","childName","some","entity","catalogObjectName","associatedTreeId"],"sources":["../../../src/domain/inquiryTree/validate.ts"],"sourcesContent":["/**\n * Structural + semantic tree validation — the thing the legacy app never had.\n * Returns structured issues consumed identically by the UI (inline) and the\n * AI copilot (repair loop). Pure: no React, no HTTP.\n */\nimport { InquiryTree, TreeNode, ValidationIssue, isEntityNode } from './types';\nimport {\n legalChildEntities,\n CatalogObject,\n getSanitizedName\n} from './legalChildren';\nimport { toWireString } from './wireString';\n\n/**\n * Legacy required node fields (TreeConfiguration.jsx:472-481 validateFormValues),\n * split by what actually breaks at runtime. Only catalogReturnObject is\n * load-bearing (the backend's panel/node-action join and child loading key off\n * it) — missing it is an error the strict writer refuses to save. The rest are\n * warnings: Inquiry falls back gracefully, and plenty of working production\n * trees predate the legacy form's requirements — flagging them red (and\n * refusing to save the whole tree) over a blank description helps no one.\n */\nconst REQUIRED_FIELDS = ['catalogReturnObject'] as const;\n// sequenceNo is deliberately NOT here: the legacy form required it, but the\n// runtime never orders sibling levels by it (levels render in array order;\n// only actions/tabs/header-pages sub-lists use sequenceNo) — warning about a\n// blank one told builders to fix a field that changes nothing.\n// description is read by nothing — not the runtime, not the builder — so its\n// absence is not a finding.\nconst RECOMMENDED_FIELDS = ['name', 'displayName'] as const;\n\nconst RECOMMENDED_MESSAGES: Record<\n (typeof RECOMMENDED_FIELDS)[number],\n (label: string) => string\n> = {\n name: (label) => `A node (\"${label}\") has no name — it will show as Untitled.`,\n displayName: (label) =>\n `\"${label}\" has no record label — rows in this level will show the level name instead.`\n};\n\nexport interface ValidationContext {\n /** Catalog objects for the tree's apiMethodInstance — enables the reachability check. */\n catalogObjects?: CatalogObject[];\n /** Known tree ids — enables the associatedTreeId existence check. */\n knownTreeIds?: Set<string>;\n}\n\nconst activeNodes = (tree: InquiryTree): TreeNode[] =>\n tree.nodes.filter((node) => !node.isDeleted);\n\nexport const validateTree = (\n tree: InquiryTree,\n context?: ValidationContext\n): ValidationIssue[] => {\n const issues: ValidationIssue[] = [];\n const byId = new Map<string, TreeNode>();\n\n for (const node of tree.nodes) {\n if (!node.id) {\n issues.push({\n severity: 'error',\n code: 'missing-node-id',\n message: 'A node has no id.'\n });\n continue;\n }\n if (byId.has(node.id)) {\n issues.push({\n severity: 'error',\n code: 'duplicate-node-id',\n nodeId: node.id,\n message: `Duplicate node id ${node.id}.`\n });\n }\n byId.set(node.id, node);\n }\n\n // Exactly one active root — GET {id}/detailed NPEs server-side otherwise (§2).\n const roots = activeNodes(tree).filter((node) => node.parentId === null);\n if (roots.length === 0) {\n issues.push({\n severity: 'error',\n code: 'no-root',\n message: 'The tree has no root node.'\n });\n } else if (roots.length > 1) {\n for (const root of roots.slice(1)) {\n issues.push({\n severity: 'error',\n code: 'multiple-roots',\n nodeId: root.id,\n message: `More than one root node (${roots.length} found); the backend requires exactly one.`\n });\n }\n }\n\n // Orphan parent references + parent-is-deleted warnings.\n for (const node of activeNodes(tree)) {\n if (node.parentId === null) continue;\n const parent = byId.get(node.parentId);\n if (!parent) {\n issues.push({\n severity: 'error',\n code: 'orphan-parent',\n nodeId: node.id,\n message: `Node \"${nodeLabel(node)}\" points at missing parent ${\n node.parentId\n }.`\n });\n } else if (parent.isDeleted) {\n issues.push({\n severity: 'warning',\n code: 'parent-deleted',\n nodeId: node.id,\n message: `Node \"${nodeLabel(\n node\n )}\" has a soft-deleted parent; it will not render.`\n });\n }\n }\n\n // Cycles.\n const visitState = new Map<string, 'visiting' | 'done'>();\n const walkUp = (node: TreeNode): void => {\n if (visitState.get(node.id) === 'done') return;\n const chain: string[] = [];\n let current: TreeNode | undefined = node;\n while (current) {\n if (visitState.get(current.id) === 'done') break;\n if (visitState.get(current.id) === 'visiting') {\n issues.push({\n severity: 'error',\n code: 'cycle',\n nodeId: current.id,\n message: `Parent chain of node ${current.id} contains a cycle.`\n });\n break;\n }\n visitState.set(current.id, 'visiting');\n chain.push(current.id);\n current =\n current.parentId !== null ? byId.get(current.parentId) : undefined;\n }\n for (const id of chain) visitState.set(id, 'done');\n };\n for (const node of tree.nodes) walkUp(node);\n\n // Required + recommended fields on active entity nodes.\n const isBlank = (value: unknown): boolean =>\n value === undefined || value === null || value === '';\n for (const node of activeNodes(tree)) {\n if (!isEntityNode(node)) continue;\n for (const field of REQUIRED_FIELDS) {\n if (isBlank(node.properties[field])) {\n issues.push({\n severity: 'error',\n code: 'missing-required-field',\n nodeId: node.id,\n path: field,\n message: `Node \"${nodeLabel(\n node\n )}\" is missing required field \"${field}\".`\n });\n }\n }\n for (const field of RECOMMENDED_FIELDS) {\n if (isBlank(node.properties[field])) {\n issues.push({\n severity: 'warning',\n code: 'missing-recommended-field',\n nodeId: node.id,\n path: field,\n message: RECOMMENDED_MESSAGES[field](nodeLabel(node))\n });\n }\n }\n }\n\n // Catalog reachability (when context supplied): every non-root entity node's\n // entity must be navigable from its parent's entity (the legal-children oracle).\n if (context?.catalogObjects?.length) {\n for (const node of activeNodes(tree)) {\n if (!isEntityNode(node) || node.parentId === null) continue;\n const parent = byId.get(node.parentId);\n if (!parent || !isEntityNode(parent)) continue;\n const parentEntity = parent.properties.catalogReturnObject;\n const childEntity = node.properties.catalogReturnObject;\n if (!parentEntity || !childEntity) continue;\n const legal = legalChildEntities(context.catalogObjects, parentEntity);\n if (!legal.length) continue; // parent entity unknown to this catalog — cannot judge\n const childName = getSanitizedName(childEntity);\n if (\n !legal.some(\n (entity) => getSanitizedName(entity.catalogObjectName) === childName\n )\n ) {\n issues.push({\n severity: 'error',\n code: 'illegal-child-entity',\n nodeId: node.id,\n path: 'catalogReturnObject',\n message: `Entity \"${childEntity}\" is not reachable from parent entity \"${parentEntity}\".`\n });\n }\n }\n }\n\n // Associated tree existence (when context supplied).\n if (context?.knownTreeIds) {\n for (const node of activeNodes(tree)) {\n if (!isEntityNode(node)) continue;\n const associatedTreeId = node.properties.associatedTreeId;\n if (associatedTreeId && !context.knownTreeIds.has(associatedTreeId)) {\n issues.push({\n severity: 'warning',\n code: 'unknown-associated-tree',\n nodeId: node.id,\n path: 'associatedTreeId',\n message: `Node \"${nodeLabel(\n node\n )}\" references associated tree ${associatedTreeId}, which is not in the known tree list.`\n });\n }\n }\n }\n\n return issues;\n};\n\nconst nodeLabel = (node: TreeNode): string => {\n if (isEntityNode(node))\n return node.properties.name || node.properties.displayName || node.id;\n const label = (node.properties as { label?: unknown }).label;\n return label == null ? node.id : toWireString(label);\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;AAsBA,MAAMQ,kBAAkB,CAAC,sBAAsB;AAO/C,MAAME,qBAAqB,CAAC,QAAQ,cAAc;AAElD,MAAMC,uBAGF;CACFG,OAAOD,UAAU,YAAYA,MAAK;CAClCE,cAAcF,UACZ,IAAIA,MAAK;CACZ;AASD,MAAMO,eAAeC,SACnBA,KAAKC,MAAMC,QAAQC,SAAS,CAACA,KAAKC,UAAU;AAE9C,MAAaC,gBACXL,MACAM,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AAMlB,QAASW,KAAK+B,WAAmC1C;AACvD,QAAOA,SAAS,OAAOW,KAAKO,KAAKxB,aAAaM,MAAM"}
1
+ {"version":3,"file":"validate.mjs","names":["InquiryTree","TreeNode","ValidationIssue","isEntityNode","legalChildEntities","CatalogObject","sameEntityName","REQUIRED_FIELDS","const","tabPagePath","tabId","String","ValidationContext","catalogObjects","activeNodes","tree","nodes","filter","node","isDeleted","validateTree","context","issues","byId","Map","id","push","severity","code","message","has","nodeId","set","roots","parentId","length","root","slice","parent","get","visitState","walkUp","chain","current","undefined","isBlank","value","field","properties","path","tab","tabs","page","pageId","parentEntity","catalogReturnObject","childEntity","legal","some","entity","catalogObjectName"],"sources":["../../../src/domain/inquiryTree/validate.ts"],"sourcesContent":["/**\n * Structural + semantic tree validation — the thing the legacy app never had.\n * Returns structured issues consumed identically by the UI (inline) and the\n * AI copilot (repair loop). Pure: no React, no HTTP.\n *\n * A message never names its node: a consumer prefixes the level the issue's\n * `nodeId` points at (TreeSerializationError names it by the node's name).\n */\nimport { InquiryTree, TreeNode, ValidationIssue, isEntityNode } from './types';\nimport {\n legalChildEntities,\n CatalogObject,\n sameEntityName\n} from './legalChildren';\n\n/**\n * Legacy required node fields (TreeConfiguration.jsx:472-481 validateFormValues),\n * split by what actually breaks at runtime. Only catalogReturnObject is\n * load-bearing (the backend's panel/node-action join and child loading key off\n * it) — missing it is an error the strict writer refuses to save. The rest are\n * not findings: Inquiry falls back gracefully (a blank name shows as Unnamed,\n * a blank record label shows the level name), and plenty of working production\n * trees predate the legacy form's requirements.\n */\nconst REQUIRED_FIELDS = ['catalogReturnObject'] as const;\n// sequenceNo is deliberately NOT here: the legacy form required it, but the\n// runtime never orders sibling levels by it (levels render in array order;\n// only actions/tabs/header-pages sub-lists use sequenceNo) — warning about a\n// blank one told builders to fix a field that changes nothing.\n\n/** The issue path of a tab's page — what the tab's page picker shows. */\nexport const tabPagePath = (tabId: unknown): string => `tabs.${String(tabId)}.page`;\n\nexport interface ValidationContext {\n /** Catalog objects for the tree's apiMethodInstance — enables the reachability check. */\n catalogObjects?: CatalogObject[];\n}\n\nconst activeNodes = (tree: InquiryTree): TreeNode[] =>\n tree.nodes.filter((node) => !node.isDeleted);\n\nexport const validateTree = (\n tree: InquiryTree,\n context?: ValidationContext\n): ValidationIssue[] => {\n const issues: ValidationIssue[] = [];\n const byId = new Map<string, TreeNode>();\n\n for (const node of tree.nodes) {\n if (!node.id) {\n issues.push({\n severity: 'error',\n code: 'missing-node-id',\n message: 'A node has no id.'\n });\n continue;\n }\n if (byId.has(node.id)) {\n issues.push({\n severity: 'error',\n code: 'duplicate-node-id',\n nodeId: node.id,\n message: `Duplicate node id ${node.id}.`\n });\n }\n byId.set(node.id, node);\n }\n\n // Exactly one active root — GET {id}/detailed NPEs server-side otherwise (§2).\n // A group heading hangs off its parentGroupId, so its blank parentId does not\n // make it a root.\n const roots = activeNodes(tree).filter(\n (node) => isEntityNode(node) && !node.parentId\n );\n if (roots.length === 0) {\n issues.push({\n severity: 'error',\n code: 'no-root',\n message: 'The tree has no root node.'\n });\n } else if (roots.length > 1) {\n for (const root of roots.slice(1)) {\n issues.push({\n severity: 'error',\n code: 'multiple-roots',\n nodeId: root.id,\n message: `More than one root node (${roots.length} found); the backend requires exactly one.`\n });\n }\n }\n\n // Orphan parent references + parent-is-deleted warnings.\n for (const node of activeNodes(tree)) {\n if (!node.parentId) continue;\n const parent = byId.get(node.parentId);\n if (!parent) {\n issues.push({\n severity: 'error',\n code: 'orphan-parent',\n nodeId: node.id,\n message: `Points at missing parent ${node.parentId}.`\n });\n } else if (parent.isDeleted) {\n issues.push({\n severity: 'warning',\n code: 'parent-deleted',\n nodeId: node.id,\n message: 'Its parent is soft-deleted, so it will not render.'\n });\n }\n }\n\n // Cycles.\n const visitState = new Map<string, 'visiting' | 'done'>();\n const walkUp = (node: TreeNode): void => {\n if (visitState.get(node.id) === 'done') return;\n const chain: string[] = [];\n let current: TreeNode | undefined = node;\n while (current) {\n if (visitState.get(current.id) === 'done') break;\n if (visitState.get(current.id) === 'visiting') {\n issues.push({\n severity: 'error',\n code: 'cycle',\n nodeId: current.id,\n message: 'Its parent chain contains a cycle.'\n });\n break;\n }\n visitState.set(current.id, 'visiting');\n chain.push(current.id);\n current =\n current.parentId ? byId.get(current.parentId) : undefined;\n }\n for (const id of chain) visitState.set(id, 'done');\n };\n for (const node of tree.nodes) walkUp(node);\n\n // Required fields on active entity nodes.\n const isBlank = (value: unknown): boolean =>\n value === undefined || value === null || value === '';\n for (const node of activeNodes(tree)) {\n if (!isEntityNode(node)) continue;\n for (const field of REQUIRED_FIELDS) {\n if (isBlank(node.properties[field])) {\n issues.push({\n severity: 'error',\n code: 'missing-required-field',\n nodeId: node.id,\n path: field,\n message: `Missing required field \"${field}\".`\n });\n }\n }\n // 26.x draws a tab without a page as a blank, label-less tab. A tab with\n // no id has no picker to point at, so its issue is the level's.\n for (const tab of node.properties.tabs ?? []) {\n if (tab?.page?.pageId) continue;\n issues.push({\n severity: 'error',\n code: 'tab-page-missing',\n nodeId: node.id,\n ...(tab?.id ? { path: tabPagePath(tab.id) } : {}),\n message: 'Pick a page — a tab without one shows blank.'\n });\n }\n }\n\n // Catalog reachability (when context supplied): every non-root entity node's\n // entity must be navigable from its parent's entity (the legal-children oracle).\n if (context?.catalogObjects?.length) {\n for (const node of activeNodes(tree)) {\n if (!isEntityNode(node) || !node.parentId) continue;\n const parent = byId.get(node.parentId);\n if (!parent || !isEntityNode(parent)) continue;\n const parentEntity = parent.properties.catalogReturnObject;\n const childEntity = node.properties.catalogReturnObject;\n if (!parentEntity || !childEntity) continue;\n const legal = legalChildEntities(context.catalogObjects, parentEntity);\n if (!legal.length) continue; // parent entity unknown to this catalog — cannot judge\n if (\n !legal.some((entity) =>\n sameEntityName(entity.catalogObjectName, childEntity)\n )\n ) {\n issues.push({\n severity: 'error',\n code: 'illegal-child-entity',\n nodeId: node.id,\n path: 'catalogReturnObject',\n message: `Entity \"${childEntity}\" is not reachable from parent entity \"${par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KAAK8B,WAAWG,QAAQ,EAAE,EAAE;AAC5C,OAAID,KAAKE,MAAMC,OAAQ;AACvB/B,UAAOI,KAAK;IACVC,UAAU;IACVC,MAAM;IACNG,QAAQb,KAAKO;IACb,GAAIyB,KAAKzB,KAAK,EAAEwB,MAAMxC,YAAYyC,IAAIzB,GAAE,EAAG,GAAG,EAAE;IAChDI,SAAS;IACV,CAAC;;;AAMN,KAAIR,SAASR,gBAAgBsB,OAC3B,MAAK,MAAMjB,QAAQJ,YAAYC,KAAK,EAAE;AACpC,MAAI,CAACZ,aAAae,KAAK,IAAI,CAACA,KAAKgB,SAAU;EAC3C,MAAMI,SAASf,KAAKgB,IAAIrB,KAAKgB,SAAS;AACtC,MAAI,CAACI,UAAU,CAACnC,aAAamC,OAAO,CAAE;EACtC,MAAMgB,eAAehB,OAAOU,WAAWO;EACvC,MAAMC,cAActC,KAAK8B,WAAWO;AACpC,MAAI,CAACD,gBAAgB,CAACE,YAAa;EACnC,MAAMC,QAAQrD,mBAAmBiB,QAAQR,gBAAgByC,aAAa;AACtE,MAAI,CAACG,MAAMtB,OAAQ;AACnB,MACE,CAACsB,MAAMC,MAAMC,WACXrD,eAAeqD,OAAOC,mBAAmBJ,YAC3C,CAAC,CAEDlC,QAAOI,KAAK;GACVC,UAAU;GACVC,MAAM;GACNG,QAAQb,KAAKO;GACbwB,MAAM;GACNpB,SAAS,WAAW2B,YAAW,yCAA0CF,aAAY;GACtF,CAAC;;AAKR,QAAOhC"}
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Shared read utilities over the typed tree — non-mutating counterparts of the
3
- * legacy TreeUtils display helpers. Designed for reuse by the Inquiry renderer
4
- * during inquiry-modernization and by the AI copilot's describe tools.
3
+ * legacy TreeUtils display helpers, used by the builder, the Inquiry viewer and
4
+ * the copilots' describe tools.
5
5
  */
6
6
  import { InquiryTree, TreeNode } from './types';
7
7
  /** Nested view wrapper — the canonical node is referenced, never copied or mutated. */
@@ -30,25 +30,21 @@ export declare const findNode: (tree: InquiryTree, nodeId: string) => TreeNode;
30
30
  export declare const findNodeIndex: (tree: InquiryTree, nodeId: string) => number;
31
31
  export declare const getChildren: (tree: InquiryTree, nodeId: string) => TreeNode[];
32
32
  export declare const getRoot: (tree: InquiryTree) => TreeNode;
33
- export declare const getAncestorIds: (tree: InquiryTree, nodeId: string) => string[];
34
- export declare const getDescendantIds: (tree: InquiryTree, nodeId: string) => string[];
35
33
  /**
36
34
  * Resolve a display template against a data object — port of the legacy
37
- * formatTreeLabel (TreeUtils.js:1484-1560), quirks preserved on purpose (in-string
38
- * substring replacement, all-quotes stripping, `[n]` indexes ignored at position 0)
39
- * because Inquiry labels must render identically.
35
+ * formatTreeLabel (TreeUtils.js:1484-1560), quirks preserved on purpose (all-quotes
36
+ * stripping, `[n]` indexes ignored at position 0) because Inquiry labels must
37
+ * render identically.
40
38
  *
41
39
  * Deliberate behaviour changes (approved), both carried by the legacy resolver too
42
40
  * so v1 and v2 still render the same:
41
+ * - quoted literals render as written — a space is added only between two
42
+ * adjacent fields — and the label is built from its parts, so a value is
43
+ * never substituted into an earlier literal or value;
43
44
  * - resolved ISO-8601 DateTime values render as locale dates, not wire strings;
44
45
  * - a field's stamped `<field>LookupValue` wins over its raw value, so an FK
45
46
  * label chip renders the lookup's display text (stamping is v2-only, which
46
47
  * leaves the legacy resolver's behaviour unchanged).
47
48
  */
48
49
  export declare const formatTreeLabel: (label: string, obj: Record<string, unknown>) => string;
49
- /**
50
- * Pre-order catalogObjectKeys — port of processCatalogObjectKeysInOrder
51
- * (TreeUtils.js:355-368), used by the renderer to walk query results.
52
- */
53
- export declare const catalogObjectKeysInOrder: (view: TreeViewNode) => string[];
54
50
  //# sourceMappingURL=view.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"view.d.ts","sourceRoot":"","sources":["../../../src/domain/inquiryTree/view.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,OAAO,EAAE,WAAW,EAAE,QAAQ,EAAgB,MAAM,SAAS,C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GAeG;AACH,eAAO,MAAM,eAAe,yDAsF3B,CAAC"}
@@ -1,9 +1,3 @@
1
- /**
2
- * Shared read utilities over the typed tree — non-mutating counterparts of the
3
- * legacy TreeUtils display helpers. Designed for reuse by the Inquiry renderer
4
- * during inquiry-modernization and by the AI copilot's describe tools.
5
- */
6
- import { isEntityNode } from './types';
7
1
  /** Nested view wrapper — the canonical node is referenced, never copied or mutated. */
8
2
  /**
9
3
  * `[n]` in a path segment such as `items[2]` — the text between the first
@@ -34,11 +28,11 @@ export const buildTreeView = (tree) => {
34
28
  const roots = [];
35
29
  for (const wrapper of wrappers.values()) {
36
30
  const parentId = wrapper.node.parentId;
37
- const parent = parentId !== null ? wrappers.get(parentId) : undefined;
31
+ const parent = parentId ? wrappers.get(parentId) : undefined;
38
32
  if (parent) {
39
33
  parent.children.push(wrapper);
40
34
  }
41
- else if (parentId === null) {
35
+ else if (!parentId) {
42
36
  roots.push(wrapper);
43
37
  }
44
38
  // Nodes pointing at a missing/deleted parent are unreachable — validation reports them.
@@ -48,33 +42,7 @@ export const buildTreeView = (tree) => {
48
42
  export const findNode = (tree, nodeId) => tree.nodes.find((node) => node.id === nodeId);
49
43
  export const findNodeIndex = (tree, nodeId) => tree.nodes.findIndex((node) => node.id === nodeId);
50
44
  export const getChildren = (tree, nodeId) => tree.nodes.filter((node) => node.parentId === nodeId && !node.isDeleted);
51
- export const getRoot = (tree) => tree.nodes.find((node) => node.parentId === null && !node.isDeleted);
52
- export const getAncestorIds = (tree, nodeId) => {
53
- const ids = [];
54
- let current = findNode(tree, nodeId);
55
- const seen = new Set([nodeId]);
56
- while (current && current.parentId !== null) {
57
- if (seen.has(current.parentId))
58
- break; // cycle guard — validation reports it
59
- ids.push(current.parentId);
60
- seen.add(current.parentId);
61
- current = findNode(tree, current.parentId);
62
- }
63
- return ids;
64
- };
65
- export const getDescendantIds = (tree, nodeId) => {
66
- const ids = [];
67
- const collect = (parentId) => {
68
- for (const node of tree.nodes) {
69
- if (node.parentId === parentId && !ids.includes(node.id)) {
70
- ids.push(node.id);
71
- collect(node.id);
72
- }
73
- }
74
- };
75
- collect(nodeId);
76
- return ids;
77
- };
45
+ export const getRoot = (tree) => tree.nodes.find((node) => !node.parentId && !node.isDeleted);
78
46
  /**
79
47
  * Wire DateTime values arrive as ISO-8601 strings (`2024-11-08T00:00:00`).
80
48
  * The label template stores field names only, so there is no field-type info at
@@ -123,12 +91,15 @@ const toDisplayValue = (value) => {
123
91
  };
124
92
  /**
125
93
  * Resolve a display template against a data object — port of the legacy
126
- * formatTreeLabel (TreeUtils.js:1484-1560), quirks preserved on purpose (in-string
127
- * substring replacement, all-quotes stripping, `[n]` indexes ignored at position 0)
128
- * because Inquiry labels must render identically.
94
+ * formatTreeLabel (TreeUtils.js:1484-1560), quirks preserved on purpose (all-quotes
95
+ * stripping, `[n]` indexes ignored at position 0) because Inquiry labels must
96
+ * render identically.
129
97
  *
130
98
  * Deliberate behaviour changes (approved), both carried by the legacy resolver too
131
99
  * so v1 and v2 still render the same:
100
+ * - quoted literals render as written — a space is added only between two
101
+ * adjacent fields — and the label is built from its parts, so a value is
102
+ * never substituted into an earlier literal or value;
132
103
  * - resolved ISO-8601 DateTime values render as locale dates, not wire strings;
133
104
  * - a field's stamped `<field>LookupValue` wins over its raw value, so an FK
134
105
  * label chip renders the lookup's display text (stamping is v2-only, which
@@ -138,7 +109,7 @@ export const formatTreeLabel = (label, obj) => {
138
109
  const fields = label === null || label === void 0 ? void 0 : label.split('+');
139
110
  const keys = fields === null || fields === void 0 ? void 0 : fields.map((field) => field.trim());
140
111
  if (!keys)
141
- return label;
112
+ return '';
142
113
  const skippableKeys = [];
143
114
  const updatedKeys = keys.map((key, index) => {
144
115
  if (key.charAt(0) === '"') {
@@ -175,37 +146,40 @@ export const formatTreeLabel = (label, obj) => {
175
146
  }
176
147
  values.push(toDisplayValue(readLabelValue(obj, property)));
177
148
  }
178
- let displayName = updatedKeys.join('+');
179
- for (let k = 0; k < updatedKeys.length; k++) {
180
- if (skippableKeys.includes(k))
181
- continue;
182
- displayName = displayName.replace(updatedKeys[k],
149
+ const parts = updatedKeys.map((key, k) => {
150
+ const isLiteral = skippableKeys.includes(k);
183
151
  // Legacy parity: TreeUtils stringified whatever the field held, objects
184
152
  // included — labels must render identically.
185
153
  // eslint-disable-next-line @typescript-eslint/no-base-to-string
186
- values[k] ? String(values[k]) : '');
187
- }
188
- return displayName.split('+').join(' ');
189
- };
190
- /**
191
- * Pre-order catalogObjectKeys — port of processCatalogObjectKeysInOrder
192
- * (TreeUtils.js:355-368), used by the renderer to walk query results.
193
- */
194
- export const catalogObjectKeysInOrder = (view) => {
195
- const keys = [];
196
- const walk = (current) => {
197
- const key = isEntityNode(current.node)
198
- ? current.node.properties.catalogObjectKey
199
- : undefined;
200
- if (current.children.length === 0) {
201
- keys.push(key);
202
- return;
154
+ const text = isLiteral ? key : values[k] ? String(values[k]) : '';
155
+ return { isLiteral, text };
156
+ });
157
+ // A literal joins the fields beside it, so it renders only when every field
158
+ // next to it has a value ("start + " to " + end" with no end → "start").
159
+ const fieldBeside = (k, step) => {
160
+ for (let i = k + step; i >= 0 && i < parts.length; i += step) {
161
+ if (!parts[i].isLiteral)
162
+ return parts[i];
163
+ }
164
+ return null;
165
+ };
166
+ const lastField = parts.reduce((last, part, k) => (part.isLiteral ? last : k), -1);
167
+ const keeps = (k) => {
168
+ const part = parts[k];
169
+ if (!part.isLiteral)
170
+ return part.text !== '';
171
+ // A closing literal goes with the one that opens the last field
172
+ // ("name + " (" + code + ")"" with no name → "code", not "code)").
173
+ if (k > lastField && lastField > 0 && parts[lastField - 1].isLiteral && !keeps(lastField - 1)) {
174
+ return false;
203
175
  }
204
- if (key)
205
- keys.push(key);
206
- current.children.forEach(walk);
176
+ return [fieldBeside(k, -1), fieldBeside(k, 1)].every((field) => !field || field.text !== '');
207
177
  };
208
- walk(view);
209
- return keys;
178
+ const kept = parts.filter((_, k) => keeps(k));
179
+ // Quoted literals render exactly as written; a space is added only between
180
+ // two adjacent fields.
181
+ return kept.reduce((displayName, part, k) => displayName +
182
+ (k > 0 && !part.isLiteral && !kept[k - 1].isLiteral ? ' ' : '') +
183
+ part.text, '');
210
184
  };
211
185
  //# sourceMappingURL=view.js.map