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
@@ -34,8 +34,8 @@ const withNodes = (tree, nodes) => ({
34
34
  /** Append a new entity node (legacy appends — never disturbs existing index joins). */
35
35
  const addNode = (tree, args) => {
36
36
  if (tree.nodes.some((node) => node.id === args.id)) throw new TreeOperationError("duplicate-node-id", `Node id ${args.id} already exists.`, args.id);
37
- if (args.parentId === null) {
38
- if (tree.nodes.some((node) => node.parentId === null && !node.isDeleted)) throw new TreeOperationError("multiple-roots", "The tree already has a root node; new nodes need a parent.");
37
+ if (!args.parentId) {
38
+ if (tree.nodes.some((node) => !node.parentId && !node.isDeleted)) throw new TreeOperationError("multiple-roots", "The tree already has a root node; new nodes need a parent.");
39
39
  } else requireNode(tree, args.parentId);
40
40
  const node = {
41
41
  id: args.id,
@@ -62,14 +62,18 @@ const updateNodeProperties = (tree, nodeId, patch) => {
62
62
  warnings: []
63
63
  };
64
64
  };
65
- /** Replace a node's properties wholesale (node-config save path). */
65
+ /**
66
+ * Replace a node's properties wholesale (node-config save path). A deleted
67
+ * node comes back (a placeholder re-linked); a live one gains no `isDeleted`
68
+ * key, so editing it and changing it back reads as no change.
69
+ */
66
70
  const replaceNodeProperties = (tree, nodeId, properties) => {
67
71
  if (!isEntityNode(requireNode(tree, nodeId))) throw new TreeOperationError("not-entity-node", `Node ${nodeId} is a group node.`, nodeId);
68
72
  return {
69
73
  tree: withNodes(tree, tree.nodes.map((candidate) => candidate.id === nodeId ? {
70
74
  ...candidate,
71
75
  properties,
72
- isDeleted: false
76
+ ...candidate.isDeleted ? { isDeleted: false } : {}
73
77
  } : candidate)),
74
78
  warnings: []
75
79
  };
@@ -77,15 +81,14 @@ const replaceNodeProperties = (tree, nodeId, properties) => {
77
81
  /** Re-parent a node. Refuses cycles and root demotion/promotion that breaks the single root. */
78
82
  const moveNode = (tree, nodeId, newParentId) => {
79
83
  requireNode(tree, nodeId);
80
- if (newParentId !== null) {
81
- requireNode(tree, newParentId);
84
+ if (newParentId) {
82
85
  if (newParentId === nodeId) throw new TreeOperationError("cycle", "A node cannot be its own parent.", nodeId);
83
86
  let cursor = requireNode(tree, newParentId);
84
87
  while (cursor) {
85
88
  if (cursor.id === nodeId) throw new TreeOperationError("cycle", "Cannot move a node under one of its own descendants.", nodeId);
86
- cursor = cursor.parentId !== null ? tree.nodes.find((n) => n.id === cursor.parentId) : void 0;
89
+ cursor = cursor.parentId ? tree.nodes.find((n) => n.id === cursor.parentId) : void 0;
87
90
  }
88
- } else if (tree.nodes.some((n) => n.parentId === null && !n.isDeleted && n.id !== nodeId)) throw new TreeOperationError("multiple-roots", "The tree already has a root; a second root is not allowed.", nodeId);
91
+ } else if (tree.nodes.some((n) => !n.parentId && !n.isDeleted && n.id !== nodeId)) throw new TreeOperationError("multiple-roots", "The tree already has a root; a second root is not allowed.", nodeId);
89
92
  return {
90
93
  tree: withNodes(tree, tree.nodes.map((candidate) => candidate.id === nodeId ? {
91
94
  ...candidate,
@@ -127,7 +130,7 @@ const reorderNode = (tree, nodeId, toIndex) => {
127
130
  const removeNode = (tree, nodeId) => {
128
131
  const node = requireNode(tree, nodeId);
129
132
  const children = childrenOf(tree, nodeId);
130
- const isRoot = node.parentId === null;
133
+ const isRoot = !node.parentId;
131
134
  if (isRoot && children.length > 1) throw new TreeOperationError("multi-child-root-delete", "Deleting the root would orphan its children; delete or move them first, or use \"Delete Node and Children\".", nodeId);
132
135
  if (isRoot && children[0]?.isDeleted) throw new TreeOperationError("placeholder-child-root-delete", "Deleting the root would make its deleted placeholder the root; re-link or delete the placeholder first, or use \"Delete Node and Children\".", nodeId);
133
136
  if (children.length === 0 || isRoot) {
@@ -135,7 +138,7 @@ const removeNode = (tree, nodeId) => {
135
138
  return {
136
139
  tree: withNodes(tree, isRoot ? nodes.map((candidate) => candidate.parentId === nodeId ? {
137
140
  ...candidate,
138
- parentId: null
141
+ parentId: ""
139
142
  } : candidate) : nodes),
140
143
  warnings: []
141
144
  };
@@ -156,7 +159,7 @@ const removeNodeAndChildren = (tree, nodeId) => {
156
159
  let grew = true;
157
160
  while (grew) {
158
161
  grew = false;
159
- for (const node of tree.nodes) if (node.parentId !== null && toDelete.has(node.parentId) && !toDelete.has(node.id)) {
162
+ for (const node of tree.nodes) if (toDelete.has(node.parentId) && !toDelete.has(node.id)) {
160
163
  toDelete.add(node.id);
161
164
  grew = true;
162
165
  }
@@ -1 +1 @@
1
- {"version":3,"file":"operations.mjs","names":["EntityNode","EntityNodeProperties","InquiryTree","TreeNode","ValidationIssue","isEntityNode","OperationResult","tree","warnings","TreeOperationError","Error","code","nodeId","constructor","message","name","requireNode","node","nodes","find","candidate","id","childrenOf","filter","parentId","withNodes","AddNodeArgs","properties","addNode","args","some","hasRoot","isDeleted","updateNodeProperties","patch","Partial","key","value","Object","entries","undefined","Record","map","replaceNodeProperties","moveNode","newParentId","cursor","n","reorderNode","toIndex","fromIndex","findIndex","bounded","Math","max","min","length","moved","splice","removeNode","children","isRoot","reparented","removeNodeAndChildren","toDelete","Set","grew","has","add"],"sources":["../../../src/domain/inquiryTree/operations.ts"],"sourcesContent":["/**\n * Pure tree operations: (tree, args) => { tree, warnings }. No React, no HTTP,\n * no in-place mutation — every mutation in the app goes through here\n * (foundation principle 1). Node array order is load-bearing (§2): the saved\n * joins (panels / drop actions) key on the index, and the save re-targets them\n * from the final order — a node's joins travel with it on the node itself.\n */\nimport {\n EntityNode,\n EntityNodeProperties,\n InquiryTree,\n TreeNode,\n ValidationIssue,\n isEntityNode\n} from './types';\n\nexport interface OperationResult {\n tree: InquiryTree;\n warnings: ValidationIssue[];\n}\n\n/** Illegal operation request (unknown node, would break the single-root invariant, …). */\nexport class TreeOperationError extends Error {\n code: string;\n nodeId?: string;\n\n constructor(code: string, message: string, nodeId?: string) {\n super(message);\n this.name = 'TreeOperationError';\n this.code = code;\n this.nodeId = nodeId;\n }\n}\n\nconst requireNode = (tree: InquiryTree, nodeId: string): TreeNode => {\n const node = tree.nodes.find((candidate) => candidate.id === nodeId);\n if (!node)\n throw new TreeOperationError(\n 'unknown-node',\n `No node with id ${nodeId}.`,\n nodeId\n );\n return node;\n};\n\n/**\n * Every child, soft-deleted placeholders included: a placeholder still hangs\n * off its parent and can be re-linked, so it counts as a child for any\n * operation that would otherwise leave it pointing at a missing node.\n */\nconst childrenOf = (tree: InquiryTree, nodeId: string): TreeNode[] =>\n tree.nodes.filter((node) => node.parentId === nodeId);\n\nconst withNodes = (tree: InquiryTree, nodes: TreeNode[]): InquiryTree => ({\n ...tree,\n nodes\n});\n\n\nexport interface AddNodeArgs {\n /** Caller supplies the id (app layer: uuid(); tests: fixed ids) — keeps ops deterministic. */\n id: string;\n parentId: string | null;\n properties: EntityNodeProperties;\n}\n\n/** Append a new entity node (legacy appends — never disturbs existing index joins). */\nexport const addNode = (\n tree: InquiryTree,\n args: AddNodeArgs\n): OperationResult => {\n if (tree.nodes.some((node) => node.id === args.id)) {\n throw new TreeOperationError(\n 'duplicate-node-id',\n `Node id ${args.id} already exists.`,\n args.id\n );\n }\n if (args.parentId === null) {\n const hasRoot = tree.nodes.some(\n (node) => node.parentId === null && !node.isDeleted\n );\n if (hasRoot) {\n throw new TreeOperationError(\n 'multiple-roots',\n 'The tree already has a root node; new nodes need a parent.'\n );\n }\n } else {\n requireNode(tree, args.parentId);\n }\n const node: EntityNode = {\n id: args.id,\n parentId: args.parentId,\n properties: args.properties\n };\n return { tree: withNodes(tree, [...tree.nodes, node]), warnings: [] };\n};\n\n/** Merge a partial patch into a node's properties (undefined values remove the key). */\nexport const updateNodeProperties = (\n tree: InquiryTree,\n nodeId: string,\n patch: Partial<EntityNodeProperties>\n): OperationResult => {\n const node = requireNode(tree, nodeId);\n if (!isEntityNode(node)) {\n throw new TreeOperationError(\n 'not-entity-node',\n `Node ${nodeId} is a group node.`,\n nodeId\n );\n }\n const properties: EntityNodeProperties = { ...node.properties };\n for (const [key, value] of Object.entries(patch)) {\n if (value === undefined) {\n delete (properties as Record<string, unknown>)[key];\n } else {\n (properties as Record<string, unknown>)[key] = value;\n }\n }\n const nodes = tree.nodes.map((candidate) =>\n candidate.id === nodeId\n ? ({ ...candidate, properties } as TreeNode)\n : candidate\n );\n return { tree: withNodes(tree, nodes), warnings: [] };\n};\n\n/** Replace a node's properties wholesale (node-config save path). */\nexport const replaceNodeProperties = (\n tree: InquiryTree,\n nodeId: string,\n properties: EntityNodeProperties\n): OperationResult => {\n const node = requireNode(tree, nodeId);\n if (!isEntityNode(node)) {\n throw new TreeOperationError(\n 'not-entity-node',\n `Node ${nodeId} is a group node.`,\n nodeId\n );\n }\n const nodes = tree.nodes.map((candidate) =>\n candidate.id === nodeId\n ? ({ ...candidate, properties, isDeleted: false } as TreeNode)\n : candidate\n );\n return { tree: withNodes(tree, nodes), warnings: [] };\n};\n\n/** Re-parent a node. Refuses cycles and root demotion/promotion that breaks the single root. */\nexport const moveNode = (\n tree: InquiryTree,\n nodeId: string,\n newParentId: string | null\n): OperationResult => {\n const node = requireNode(tree, nodeId);\n if (newParentId !== null) {\n requireNode(tree, newParentId);\n if (newParentId === nodeId) {\n throw new TreeOperationError(\n 'cycle',\n 'A node cannot be its own parent.',\n nodeId\n );\n }\n let cursor: TreeNode | undefined = requireNode(tree, newParentId);\n while (cursor) {\n if (cursor.id === nodeId) {\n throw new TreeOperationError(\n 'cycle',\n 'Cannot move a node under one of its own descendants.',\n nodeId\n );\n }\n cursor =\n cursor.parentId !== null\n ? tree.nodes.find((n) => n.id === cursor!.parentId)\n : undefined;\n }\n } else if (\n tree.nodes.some(\n (n) => n.parentId === null && !n.isDeleted && n.id !== nodeId\n )\n ) {\n throw new TreeOperationError(\n 'multiple-roots',\n 'The tree already has a root; a second root is not allowed.',\n nodeId\n );\n }\n const nodes = tree.nodes.map((candidate) =>\n candidate.id === nodeId\n ? ({ ...candidate, parentId: newParentId } as TreeNode)\n : candidate\n );\n return { tree: withNodes(tree, nodes), warnings: [] };\n};\n\n/** Move a node to a new position in the flat array. */\nexport const reorderNode = (\n tree: InquiryTree,\n nodeId: string,\n toIndex: number\n): OperationResult => {\n const fromIndex = tree.nodes.findIndex((node) => node.id === nodeId);\n if (fromIndex === -1)\n throw new TreeOperationError(\n 'unknown-node',\n `No node with id ${nodeId}.`,\n nodeId\n );\n const bounded = Math.max(0, Math.min(tree.nodes.length - 1, toIndex));\n if (bounded === fromIndex) return { tree, warnings: [] };\n const nodes = [...tree.nodes];\n const [moved] = nodes.splice(fromIndex, 1);\n nodes.splice(bounded, 0, moved);\n return {\n tree: withNodes(tree, nodes),\n warnings: []\n };\n};\n\n/**\n * Delete a single node — legacy semantics (TreeUtils.js:307-333) with the\n * TB-0160 multi-child-root fix:\n * - leaf: removed from the array\n * - root with one child: removed; the child becomes root\n * - root with multiple children: refused (would orphan siblings / break single-root)\n * - root whose only child is a soft-deleted placeholder: refused (the\n * placeholder would become the root)\n * - mid-tree with children: soft-deleted (isDeleted: true, properties: {}) —\n * the persisted shape downstream consumers already understand\n * Children include soft-deleted placeholders, so a level whose only children\n * are placeholders soft-deletes rather than leaving them on a missing parent.\n */\nexport const removeNode = (\n tree: InquiryTree,\n nodeId: string\n): OperationResult => {\n const node = requireNode(tree, nodeId);\n const children = childrenOf(tree, nodeId);\n const isRoot = node.parentId === null;\n\n if (isRoot && children.length > 1) {\n throw new TreeOperationError(\n 'multi-child-root-delete',\n 'Deleting the root would orphan its children; delete or move them first, or use \"Delete Node and Children\".',\n nodeId\n );\n }\n\n if (isRoot && children[0]?.isDeleted) {\n throw new TreeOperationError(\n 'placeholder-child-root-delete',\n 'Deleting the root would make its deleted placeholder the root; re-link or delete the placeholder first, or use \"Delete Node and Children\".',\n nodeId\n );\n }\n\n if (children.length === 0 || isRoot) {\n const nodes = tree.nodes.filter((candidate) => candidate.id !== nodeId);\n const reparented = isRoot\n ? nodes.map((candidate) =>\n candidate.parentId === nodeId\n ? ({ ...candidate, parentId: null } as TreeNode)\n : candidate\n )\n : nodes;\n return {\n tree: withNodes(tree, reparented),\n warnings: []\n };\n }\n\n const nodes = tree.nodes.map((candidate) =>\n candidate.id === nodeId\n ? ({ ...candidate, isDeleted: true, properties: {} } as TreeNode)\n : candidate\n );\n return { tree: withNodes(tree, nodes), warnings: [] };\n};\n\n/** Delete a node and all its descendants (legacy hard delete). Warns on index shifts. */\nexport const removeNodeAndChildren = (\n tree: InquiryTree,\n nodeId: string\n): OperationResult => {\n requireNode(tree, nodeId);\n const toDelete = new Set<string>([nodeId]);\n let grew = true;\n while (grew) {\n grew = false;\n for (const node of tree.nodes) {\n if (\n node.parentId !== null &&\n toDelete.has(node.parentId) &&\n !toDelete.has(node.id)\n ) {\n toDelete.add(node.id);\n grew = true;\n }\n }\n }\n const nodes = tree.nodes.filter((node) => !toDelete.has(node.id));\n return {\n tree: withNodes(tree, nodes),\n warnings: []\n };\n};\n"],"mappings":";;;;;;;;;;AAsBA,IAAaS,qBAAb,cAAwCC,MAAM;CAI5CG,YAAYF,MAAcG,SAAiBF,QAAiB;AAC1D,QAAME,QAAQ;AACd,OAAKC,OAAO;AACZ,OAAKJ,OAAOA;AACZ,OAAKC,SAASA;;;AAIlB,MAAMI,eAAeT,MAAmBK,WAA6B;CACnE,MAAMK,OAAOV,KAAKW,MAAMC,MAAMC,cAAcA,UAAUC,OAAOT,OAAO;AACpE,KAAI,CAACK,KACH,OAAM,IAAIR,mBACR,gBACA,mBAAmBG,OAAM,IACzBA,OACD;AACH,QAAOK;;;;;;;AAQT,MAAMK,cAAcf,MAAmBK,WACrCL,KAAKW,MAAMK,QAAQN,SAASA,KAAKO,aAAaZ,OAAO;AAEvD,MAAMa,aAAalB,MAAmBW,WAAoC;CACxE,GAAGX;CACHW;CACD;;AAWD,MAAaU,WACXrB,MACAsB,SACoB;AACpB,KAAItB,KAAKW,MAAMY,MAAMb,SAASA,KAAKI,OAAOQ,KAAKR,GAAG,CAChD,OAAM,IAAIZ,mBACR,qBACA,WAAWoB,KAAKR,GAAE,mBAClBQ,KAAKR,GACN;AAEH,KAAIQ,KAAKL,aAAa;MACJjB,KAAKW,MAAMY,MACxBb,SAASA,KA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AAO;;;AAKb,QAAO;EACL3D,MAAMkB,UAAUlB,MAFJA,KAAKW,MAAMK,QAAQN,SAAS,CAAC+C,SAASG,IAAIlD,KAAKI,GAAG,CAAC,CAEnC;EAC5Bb,UAAU,EAAA;EACX"}
1
+ {"version":3,"file":"operations.mjs","names":["EntityNode","EntityNodeProperties","InquiryTree","TreeNode","ValidationIssue","isEntityNode","OperationResult","tree","warnings","TreeOperationError","Error","code","nodeId","constructor","message","name","requireNode","node","nodes","find","candidate","id","childrenOf","filter","parentId","withNodes","AddNodeArgs","properties","addNode","args","some","hasRoot","isDeleted","updateNodeProperties","patch","Partial","key","value","Object","entries","undefined","Record","map","replaceNodeProperties","moveNode","newParentId","cursor","n","reorderNode","toIndex","fromIndex","findIndex","bounded","Math","max","min","length","moved","splice","removeNode","children","isRoot","reparented","removeNodeAndChildren","toDelete","Set","grew","has","add"],"sources":["../../../src/domain/inquiryTree/operations.ts"],"sourcesContent":["/**\n * Pure tree operations: (tree, args) => { tree, warnings }. No React, no HTTP,\n * no in-place mutation — every mutation in the app goes through here\n * (foundation principle 1). Node array order is load-bearing (§2): the saved\n * joins (panels / drop actions) key on the index, and the save re-targets them\n * from the final order — a node's joins travel with it on the node itself.\n */\nimport {\n EntityNode,\n EntityNodeProperties,\n InquiryTree,\n TreeNode,\n ValidationIssue,\n isEntityNode\n} from './types';\n\nexport interface OperationResult {\n tree: InquiryTree;\n warnings: ValidationIssue[];\n}\n\n/** Illegal operation request (unknown node, would break the single-root invariant, …). */\nexport class TreeOperationError extends Error {\n code: string;\n nodeId?: string;\n\n constructor(code: string, message: string, nodeId?: string) {\n super(message);\n this.name = 'TreeOperationError';\n this.code = code;\n this.nodeId = nodeId;\n }\n}\n\nconst requireNode = (tree: InquiryTree, nodeId: string): TreeNode => {\n const node = tree.nodes.find((candidate) => candidate.id === nodeId);\n if (!node)\n throw new TreeOperationError(\n 'unknown-node',\n `No node with id ${nodeId}.`,\n nodeId\n );\n return node;\n};\n\n/**\n * Every child, soft-deleted placeholders included: a placeholder still hangs\n * off its parent and can be re-linked, so it counts as a child for any\n * operation that would otherwise leave it pointing at a missing node.\n */\nconst childrenOf = (tree: InquiryTree, nodeId: string): TreeNode[] =>\n tree.nodes.filter((node) => node.parentId === nodeId);\n\nconst withNodes = (tree: InquiryTree, nodes: TreeNode[]): InquiryTree => ({\n ...tree,\n nodes\n});\n\n\nexport interface AddNodeArgs {\n /** Caller supplies the id (app layer: uuid(); tests: fixed ids) — keeps ops deterministic. */\n id: string;\n parentId: string;\n properties: EntityNodeProperties;\n}\n\n/** Append a new entity node (legacy appends — never disturbs existing index joins). */\nexport const addNode = (\n tree: InquiryTree,\n args: AddNodeArgs\n): OperationResult => {\n if (tree.nodes.some((node) => node.id === args.id)) {\n throw new TreeOperationError(\n 'duplicate-node-id',\n `Node id ${args.id} already exists.`,\n args.id\n );\n }\n if (!args.parentId) {\n const hasRoot = tree.nodes.some(\n (node) => !node.parentId && !node.isDeleted\n );\n if (hasRoot) {\n throw new TreeOperationError(\n 'multiple-roots',\n 'The tree already has a root node; new nodes need a parent.'\n );\n }\n } else {\n requireNode(tree, args.parentId);\n }\n const node: EntityNode = {\n id: args.id,\n parentId: args.parentId,\n properties: args.properties\n };\n return { tree: withNodes(tree, [...tree.nodes, node]), warnings: [] };\n};\n\n/** Merge a partial patch into a node's properties (undefined values remove the key). */\nexport const updateNodeProperties = (\n tree: InquiryTree,\n nodeId: string,\n patch: Partial<EntityNodeProperties>\n): OperationResult => {\n const node = requireNode(tree, nodeId);\n if (!isEntityNode(node)) {\n throw new TreeOperationError(\n 'not-entity-node',\n `Node ${nodeId} is a group node.`,\n nodeId\n );\n }\n const properties: EntityNodeProperties = { ...node.properties };\n for (const [key, value] of Object.entries(patch)) {\n if (value === undefined) {\n delete (properties as Record<string, unknown>)[key];\n } else {\n (properties as Record<string, unknown>)[key] = value;\n }\n }\n const nodes = tree.nodes.map((candidate) =>\n candidate.id === nodeId\n ? ({ ...candidate, properties } as TreeNode)\n : candidate\n );\n return { tree: withNodes(tree, nodes), warnings: [] };\n};\n\n/**\n * Replace a node's properties wholesale (node-config save path). A deleted\n * node comes back (a placeholder re-linked); a live one gains no `isDeleted`\n * key, so editing it and changing it back reads as no change.\n */\nexport const replaceNodeProperties = (\n tree: InquiryTree,\n nodeId: string,\n properties: EntityNodeProperties\n): OperationResult => {\n const node = requireNode(tree, nodeId);\n if (!isEntityNode(node)) {\n throw new TreeOperationError(\n 'not-entity-node',\n `Node ${nodeId} is a group node.`,\n nodeId\n );\n }\n const nodes = tree.nodes.map((candidate) =>\n candidate.id === nodeId\n ? ({\n ...candidate,\n properties,\n ...(candidate.isDeleted ? { isDeleted: false } : {})\n } as TreeNode)\n : candidate\n );\n return { tree: withNodes(tree, nodes), warnings: [] };\n};\n\n/** Re-parent a node. Refuses cycles and root demotion/promotion that breaks the single root. */\nexport const moveNode = (\n tree: InquiryTree,\n nodeId: string,\n newParentId: string\n): OperationResult => {\n requireNode(tree, nodeId);\n if (newParentId) {\n if (newParentId === nodeId) {\n throw new TreeOperationError(\n 'cycle',\n 'A node cannot be its own parent.',\n nodeId\n );\n }\n let cursor: TreeNode | undefined = requireNode(tree, newParentId);\n while (cursor) {\n if (cursor.id === nodeId) {\n throw new TreeOperationError(\n 'cycle',\n 'Cannot move a node under one of its own descendants.',\n nodeId\n );\n }\n cursor = cursor.parentId\n ? tree.nodes.find((n) => n.id === cursor!.parentId)\n : undefined;\n }\n } else if (\n tree.nodes.some((n) => !n.parentId && !n.isDeleted && n.id !== nodeId)\n ) {\n throw new TreeOperationError(\n 'multiple-roots',\n 'The tree already has a root; a second root is not allowed.',\n nodeId\n );\n }\n const nodes = tree.nodes.map((candidate) =>\n candidate.id === nodeId\n ? ({ ...candidate, parentId: newParentId } as TreeNode)\n : candidate\n );\n return { tree: withNodes(tree, nodes), warnings: [] };\n};\n\n/** Move a node to a new position in the flat array. */\nexport const reorderNode = (\n tree: InquiryTree,\n nodeId: string,\n toIndex: number\n): OperationResult => {\n const fromIndex = tree.nodes.findIndex((node) => node.id === nodeId);\n if (fromIndex === -1)\n throw new TreeOperationError(\n 'unknown-node',\n `No node with id ${nodeId}.`,\n nodeId\n );\n const bounded = Math.max(0, Math.min(tree.nodes.length - 1, toIndex));\n if (bounded === fromIndex) return { tree, warnings: [] };\n const nodes = [...tree.nodes];\n const [moved] = nodes.splice(fromIndex, 1);\n nodes.splice(bounded, 0, moved);\n return {\n tree: withNodes(tree, nodes),\n warnings: []\n };\n};\n\n/**\n * Delete a single node — legacy semantics (TreeUtils.js:307-333) with the\n * TB-0160 multi-child-root fix:\n * - leaf: removed from the array\n * - root with one child: removed; the child becomes root\n * - root with multiple children: refused (would orphan siblings / break single-root)\n * - root whose only child is a soft-deleted placeholder: refused (the\n * placeholder would become the root)\n * - mid-tree with children: soft-deleted (isDeleted: true, properties: {}) —\n * the persisted shape downstream consumers already understand\n * Children include soft-deleted placeholders, so a level whose only children\n * are placeholders soft-deletes rather than leaving them on a missing parent.\n */\nexport const removeNode = (\n tree: InquiryTree,\n nodeId: string\n): OperationResult => {\n const node = requireNode(tree, nodeId);\n const children = childrenOf(tree, nodeId);\n const isRoot = !node.parentId;\n\n if (isRoot && children.length > 1) {\n throw new TreeOperationError(\n 'multi-child-root-delete',\n 'Deleting the root would orphan its children; delete or move them first, or use \"Delete Node and Children\".',\n nodeId\n );\n }\n\n if (isRoot && children[0]?.isDeleted) {\n throw new TreeOperationError(\n 'placeholder-child-root-delete',\n 'Deleting the root would make its deleted placeholder the root; re-link or delete the placeholder first, or use \"Delete Node and Children\".',\n nodeId\n );\n }\n\n if (children.length === 0 || isRoot) {\n const nodes = tree.nodes.filter((candidate) => candidate.id !== nodeId);\n const reparented = isRoot\n ? nodes.map((candidate) =>\n candidate.parentId === nodeId\n ? ({ ...candidate, parentId: '' } as TreeNode)\n : candidate\n )\n : nodes;\n return {\n tree: withNodes(tree, reparented),\n warnings: []\n };\n }\n\n const nodes = tree.nodes.map((candidate) =>\n candidate.id === nodeId\n ? ({ ...candidate, isDeleted: true, properties: {} } as TreeNode)\n : candidate\n );\n return { tree: withNodes(tree, nodes), warnings: [] };\n};\n\n/** Delete a node and all its descendants (legacy hard delete). Warns on index shifts. */\nexport const removeNodeAndChildren = (\n tree: InquiryTree,\n nodeId: string\n): OperationResult => {\n requireNode(tree, nodeId);\n const toDelete = new Set<string>([nodeId]);\n let grew = true;\n while (grew) {\n grew = false;\n for (const node of tree.nodes) {\n if (\n toDelete.has(node.parentId) &&\n !toDelete.has(node.id)\n ) {\n toDelete.add(node.id);\n grew = true;\n }\n }\n }\n const nodes = tree.nodes.filter((node) => !toDelete.has(node.id));\n return {\n tree: withNodes(tree, nodes),\n warnings: []\n };\n};\n"],"mappings":";;;;;;;;;;AAsBA,IAAaS,qBAAb,cAAwCC,MAAM;CAI5CG,YAAYF,MAAcG,SAAiBF,QAAiB;AAC1D,QAAME,QAAQ;AACd,OAAKC,OAAO;AACZ,OAAKJ,OAAOA;AACZ,OAAKC,SAASA;;;AAIlB,MAAMI,eAAeT,MAAmBK,WAA6B;CACnE,MAAMK,OAAOV,KAAKW,MAAMC,MAAMC,cAAcA,UAAUC,OAAOT,OAAO;AACpE,KAAI,CAACK,KACH,OAAM,IAAIR,mBACR,gBACA,mBAAmBG,OAAM,IACzBA,OACD;AACH,QAAOK;;;;;;;AAQT,MAAMK,cAAcf,MAAmBK,WACrCL,KAAKW,MAAMK,QAAQN,SAASA,KAAKO,aAAaZ,OAAO;AAEvD,MAAMa,aAAalB,MAAmBW,WAAoC;CACxE,GAAGX;CACHW;CACD;;AAWD,MAAaU,WACXrB,MACAsB,SACoB;AACpB,KAAItB,KAAKW,MAAMY,MAAMb,SAASA,KAAKI,OAAOQ,KAAKR,GAAG,CAChD,OAAM,IAAIZ,mBACR,qBACA,WAAWoB,KAAKR,GAAE,mBAClBQ,KAAKR,GACN;AAEH,KAAI,CAACQ,KAAKL;MACQjB,KAAKW,MAAMY,MACxBb,SAAS,CAACA,KAAKO,YAAY,CAACP,KAAKe,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KW,MAAMK,QAAQN,SAAS,CAAC+C,SAASG,IAAIlD,KAAKI,GAAG,CAAC,CAEnC;EAC5Bb,UAAU,EAAA;EACX"}
@@ -1,11 +1,10 @@
1
1
  import { JsonLogic } from './types';
2
2
  /**
3
3
  * Evaluate a rule against a data object. Port of evaluateRule
4
- * (RuleUtilities.js:91-99): when the node's data was lazy-loaded through a
5
- * joining entity, the raw row is nested under `objectKey` so rule vars like
6
- * `users.firstName` resolve — unless the row already carries that key.
4
+ * (RuleUtilities.js:91-99) minus its joining-entity wrap: v2 rows are always
5
+ * the flat child-entity row, so rules evaluate against the row as-is.
7
6
  */
8
- export declare const applyRule: (rule: JsonLogic, data: Record<string, unknown>, objectKey?: string, dataLazyLoaded?: boolean) => unknown;
7
+ export declare const applyRule: (rule: JsonLogic, data: Record<string, unknown>) => unknown;
9
8
  /**
10
9
  * Rewrite rule variable aliases to mapped data keys. Port of mapRule
11
10
  * (RuleUtilities.js:66-81): string-level `{"var":"a"}` → `{"var":"customerID"}`
@@ -1 +1 @@
1
- {"version":3,"file":"rules.d.ts","sourceRoot":"","sources":["../../../src/domain/inquiryTree/rules.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAEpC;;;;;GAKG;AACH,eAAO,MAAM,SAAS,2GAarB,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,gBAAgB,iEAgB5B,CAAC"}
1
+ {"version":3,"file":"rules.d.ts","sourceRoot":"","sources":["../../../src/domain/inquiryTree/rules.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAEpC;;;;GAIG;AACH,eAAO,MAAM,SAAS,6DAGmB,CAAC;AAE1C;;;;;GAKG;AACH,eAAO,MAAM,gBAAgB,iEAgB5B,CAAC"}
@@ -8,20 +8,10 @@
8
8
  import jsonLogic from 'json-logic-js';
9
9
  /**
10
10
  * Evaluate a rule against a data object. Port of evaluateRule
11
- * (RuleUtilities.js:91-99): when the node's data was lazy-loaded through a
12
- * joining entity, the raw row is nested under `objectKey` so rule vars like
13
- * `users.firstName` resolve — unless the row already carries that key.
11
+ * (RuleUtilities.js:91-99) minus its joining-entity wrap: v2 rows are always
12
+ * the flat child-entity row, so rules evaluate against the row as-is.
14
13
  */
15
- export const applyRule = (rule, data, objectKey, dataLazyLoaded) => {
16
- let formattedData = {};
17
- if (objectKey && dataLazyLoaded) {
18
- formattedData[objectKey] = data[objectKey] ? data[objectKey] : data;
19
- }
20
- else {
21
- formattedData = data;
22
- }
23
- return jsonLogic.apply(rule, formattedData);
24
- };
14
+ export const applyRule = (rule, data) => jsonLogic.apply(rule, data);
25
15
  /**
26
16
  * Rewrite rule variable aliases to mapped data keys. Port of mapRule
27
17
  * (RuleUtilities.js:66-81): string-level `{"var":"a"}` → `{"var":"customerID"}`
@@ -1 +1 @@
1
- {"version":3,"file":"rules.js","sourceRoot":"","sources":["../../../src/domain/inquiryTree/rules.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,OAAO,SAAS,MAAM,eAAe,CAAC;AAGtC;;;;;GAKG;AACH,MAAM,CAAC,MAAM,SAAS,GAAG,CACvB,IAAe,EACf,IAA6B,EAC7B,SAAyB,EACzB,cAAwB,EACf,EAAE,CAAC;IACZ,IAAI,aAAa,GAA4B,EAAE,CAAC;IAChD,IAAI,SAAS,IAAI,cAAc,EAAE,CAAC;QAChC,aAAa,CAAC,SAAS,CAAC,GAAG,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC;IACtE,CAAC;SAAM,CAAC;QACN,aAAa,GAAG,IAAI,CAAC;IACvB,CAAC;IACD,OAAO,SAAS,CAAC,KAAK,CAAC,IAAI,EAAE,aAAa,CAAC,CAAC;AAAA,CAC7C,CAAC;AAEF;;;;;GAKG;AACH,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAC9B,OAAkD,EAClD,IAA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;IACxC,IAAI,OAAO,GAAG,IAAI,CAAC,SAAS,CAAC,IAAI,aAAJ,IAAI,cAAJ,IAAI,GAAI,EAAE,CAAC,CAAC;IACzC,IAAI,CAAC,OAAO,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC;QACpB,MAAM,MAAM,GAAG,IAAI,CAAC,SAAS,CAAC,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC,CAAC;QAC5C,MAAM,WAAW,GAAG,IAAI,CAAC,SAAS,CAAC,EAAE,GAAG,EAAG,OAAkC,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC;QACtF,OAAO,GAAG,OAAO,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC;IAAA,CACnD,CAAC,CAAC;IACH,IAAI,CAAC;QACH,OAAO,IAAI,CAAC,KAAK,CAAC,OAAO,CAAc,CAAC;IAC1C,CAAC;eAAO,CAAC;QACP,OAAO,EAAE,CAAC;IACZ,CAAC;AAAA,CACF,CAAC"}
@@ -9,16 +9,10 @@ import jsonLogic from "json-logic-js";
9
9
  */
10
10
  /**
11
11
  * Evaluate a rule against a data object. Port of evaluateRule
12
- * (RuleUtilities.js:91-99): when the node's data was lazy-loaded through a
13
- * joining entity, the raw row is nested under `objectKey` so rule vars like
14
- * `users.firstName` resolve — unless the row already carries that key.
12
+ * (RuleUtilities.js:91-99) minus its joining-entity wrap: v2 rows are always
13
+ * the flat child-entity row, so rules evaluate against the row as-is.
15
14
  */
16
- const applyRule = (rule, data, objectKey, dataLazyLoaded) => {
17
- let formattedData = {};
18
- if (objectKey && dataLazyLoaded) formattedData[objectKey] = data[objectKey] ? data[objectKey] : data;
19
- else formattedData = data;
20
- return jsonLogic.apply(rule, formattedData);
21
- };
15
+ const applyRule = (rule, data) => jsonLogic.apply(rule, data);
22
16
  /**
23
17
  * Rewrite rule variable aliases to mapped data keys. Port of mapRule
24
18
  * (RuleUtilities.js:66-81): string-level `{"var":"a"}` → `{"var":"customerID"}`
@@ -1 +1 @@
1
- {"version":3,"file":"rules.mjs","names":["jsonLogic","JsonLogic","applyRule","rule","data","Record","objectKey","dataLazyLoaded","formattedData","apply","mapRuleVariables","mapping","keys","Object","updated","JSON","stringify","forEach","key","substr","var","replacement","split","join","parse"],"sources":["../../../src/domain/inquiryTree/rules.ts"],"sourcesContent":["/**\n * JsonLogic rule evaluation — exact ports of the legacy RuleUtilities pair\n * (evaluateRule / mapRule, utilities/rules/RuleUtilities.js:66-99). The jsonLogic\n * `expression` is the evaluation source of truth and its semantics are a\n * byte-identical contract with legacy saved rules (decisions log, decision 18) —\n * quirks are preserved on purpose.\n */\nimport jsonLogic from 'json-logic-js';\nimport { JsonLogic } from './types';\n\n/**\n * Evaluate a rule against a data object. Port of evaluateRule\n * (RuleUtilities.js:91-99): when the node's data was lazy-loaded through a\n * joining entity, the raw row is nested under `objectKey` so rule vars like\n * `users.firstName` resolve — unless the row already carries that key.\n */\nexport const applyRule = (\n rule: JsonLogic,\n data: Record<string, unknown>,\n objectKey?: string | null,\n dataLazyLoaded?: boolean\n): unknown => {\n let formattedData: Record<string, unknown> = {};\n if (objectKey && dataLazyLoaded) {\n formattedData[objectKey] = data[objectKey] ? data[objectKey] : data;\n } else {\n formattedData = data;\n }\n return jsonLogic.apply(rule, formattedData);\n};\n\n/**\n * Rewrite rule variable aliases to mapped data keys. Port of mapRule\n * (RuleUtilities.js:66-81): string-level `{\"var\":\"a\"}` → `{\"var\":\"customerID\"}`\n * replacement (replaceAll on the serialized rule — the legacy contract).\n * Returns {} when the rewritten rule fails to parse (legacy behavior).\n */\nexport const mapRuleVariables = (\n mapping: Record<string, string> | null | undefined,\n rule: JsonLogic | null | undefined\n): JsonLogic => {\n const keys = Object.keys(mapping ?? {});\n let updated = JSON.stringify(rule ?? '');\n keys.forEach((key) => {\n const substr = JSON.stringify({ var: key });\n const replacement = JSON.stringify({ var: (mapping as Record<string, string>)[key] });\n updated = updated.split(substr).join(replacement);\n });\n try {\n return JSON.parse(updated) as JsonLogic;\n } catch {\n return {};\n }\n};\n"],"mappings":";;;;;;;;;;;;;;;AAgBA,MAAaE,aACXC,MACAC,MACAE,WACAC,mBACY;CACZ,IAAIC,gBAAyC,EAAE;AAC/C,KAAIF,aAAaC,eACfC,eAAcF,aAAaF,KAAKE,aAAaF,KAAKE,aAAaF;KAE/DI,iBAAgBJ;AAElB,QAAOJ,UAAUS,MAAMN,MAAMK,cAAc;;;;;;;;AAS7C,MAAaE,oBACXC,SACAR,SACc;CACd,MAAMS,OAAOC,OAAOD,KAAKD,WAAW,EAAE,CAAC;CACvC,IAAIG,UAAUC,KAAKC,UAAUb,QAAQ,GAAG;AACxCS,MAAKK,SAASC,QAAQ;EACpB,MAAMC,SAASJ,KAAKC,UAAU,EAAEI,KAAKF,KAAK,CAAC;EAC3C,MAAMG,cAAcN,KAAKC,UAAU,EAAEI,KAAMT,QAAmCO,MAAM,CAAC;AACrFJ,YAAUA,QAAQQ,MAAMH,OAAO,CAACI,KAAKF,YAAY;GACjD;AACF,KAAI;AACF,SAAON,KAAKS,MAAMV,QAAQ;SACpB;AACN,SAAO,EAAE"}
1
+ {"version":3,"file":"rules.mjs","names":["jsonLogic","JsonLogic","applyRule","rule","data","Record","apply","mapRuleVariables","mapping","keys","Object","updated","JSON","stringify","forEach","key","substr","var","replacement","split","join","parse"],"sources":["../../../src/domain/inquiryTree/rules.ts"],"sourcesContent":["/**\n * JsonLogic rule evaluation — exact ports of the legacy RuleUtilities pair\n * (evaluateRule / mapRule, utilities/rules/RuleUtilities.js:66-99). The jsonLogic\n * `expression` is the evaluation source of truth and its semantics are a\n * byte-identical contract with legacy saved rules (decisions log, decision 18) —\n * quirks are preserved on purpose.\n */\nimport jsonLogic from 'json-logic-js';\nimport { JsonLogic } from './types';\n\n/**\n * Evaluate a rule against a data object. Port of evaluateRule\n * (RuleUtilities.js:91-99) minus its joining-entity wrap: v2 rows are always\n * the flat child-entity row, so rules evaluate against the row as-is.\n */\nexport const applyRule = (\n rule: JsonLogic,\n data: Record<string, unknown>\n): unknown => jsonLogic.apply(rule, data);\n\n/**\n * Rewrite rule variable aliases to mapped data keys. Port of mapRule\n * (RuleUtilities.js:66-81): string-level `{\"var\":\"a\"}` → `{\"var\":\"customerID\"}`\n * replacement (replaceAll on the serialized rule — the legacy contract).\n * Returns {} when the rewritten rule fails to parse (legacy behavior).\n */\nexport const mapRuleVariables = (\n mapping: Record<string, string> | null | undefined,\n rule: JsonLogic | null | undefined\n): JsonLogic => {\n const keys = Object.keys(mapping ?? {});\n let updated = JSON.stringify(rule ?? '');\n keys.forEach((key) => {\n const substr = JSON.stringify({ var: key });\n const replacement = JSON.stringify({ var: (mapping as Record<string, string>)[key] });\n updated = updated.split(substr).join(replacement);\n });\n try {\n return JSON.parse(updated) as JsonLogic;\n } catch {\n return {};\n }\n};\n"],"mappings":";;;;;;;;;;;;;;AAeA,MAAaE,aACXC,MACAC,SACYJ,UAAUM,MAAMH,MAAMC,KAAK;;;;;;;AAQzC,MAAaG,oBACXC,SACAL,SACc;CACd,MAAMM,OAAOC,OAAOD,KAAKD,WAAW,EAAE,CAAC;CACvC,IAAIG,UAAUC,KAAKC,UAAUV,QAAQ,GAAG;AACxCM,MAAKK,SAASC,QAAQ;EACpB,MAAMC,SAASJ,KAAKC,UAAU,EAAEI,KAAKF,KAAK,CAAC;EAC3C,MAAMG,cAAcN,KAAKC,UAAU,EAAEI,KAAMT,QAAmCO,MAAM,CAAC;AACrFJ,YAAUA,QAAQQ,MAAMH,OAAO,CAACI,KAAKF,YAAY;GACjD;AACF,KAAI;AACF,SAAON,KAAKS,MAAMV,QAAQ;SACpB;AACN,SAAO,EAAE"}
@@ -7,7 +7,7 @@
7
7
  * Everything here is a verbatim behavioral port; quirks are kept on purpose so
8
8
  * Inquiry renders identically after the migration (parity discipline, §4.8).
9
9
  */
10
- import { EntityNode, TreeNode } from './types';
10
+ import { EntityNodeProperties, LevelConfig } from './types';
11
11
  import { CatalogObject } from './legalChildren';
12
12
  /** One `=` filter for the node's record fetch — legacy properties.filterElements shape. */
13
13
  export interface RuntimeFilterElement {
@@ -16,17 +16,8 @@ export interface RuntimeFilterElement {
16
16
  searchValue: unknown;
17
17
  }
18
18
  /* ------------------------------------------------------------------ labels */
19
- /*
20
- * `formatTreeLabel` is a verbatim legacy port that hands a missing template
21
- * back — `undefined` TYPED as string (view.ts:154). These resolvers are the
22
- * boundary where that lie would enter typed models (they crashed the viewer
23
- * once, via headerTitle.trim()), so each one coerces to '' here and nowhere
24
- * else. Callers all read labels with `||`, so '' and undefined pick the same
25
- * fallback.
26
- */
27
- export declare const resolveDisplayName: (node: EntityNode, obj: Record<string, unknown>) => string;
28
- export declare const resolveDisplayDetails: (node: EntityNode, obj: Record<string, unknown>) => string;
29
- export declare const resolveHeaderTitle: (node: EntityNode, obj: Record<string, unknown>) => string;
19
+ export declare const resolveDisplayName: (node: LevelConfig, obj: Record<string, unknown>) => string;
20
+ export declare const resolveDisplayDetails: (node: LevelConfig, obj: Record<string, unknown>) => string;
30
21
  /**
31
22
  * Raw conditional icon/adornment parts as the legacy display producer stored
32
23
  * them on the display node (processObjIndex writes the three properties
@@ -53,7 +44,7 @@ export interface ConditionalIconParts {
53
44
  * ('' triple on no match — legacy resets explicitly), preserving the legacy
54
45
  * two-step contract for the display-tree layer.
55
46
  */
56
- export declare const evaluateConditionalIconParts: (node: EntityNode, obj: Record<string, unknown>, wasLazyLoaded?: boolean) => ConditionalIconParts;
47
+ export declare const evaluateConditionalIconParts: (node: LevelConfig, obj: Record<string, unknown>) => ConditionalIconParts;
57
48
  /**
58
49
  * Evaluate the node's conditional ADORNMENT expression into the separate
59
50
  * legacy display keys — exact port of processObjIndex
@@ -61,7 +52,7 @@ export declare const evaluateConditionalIconParts: (node: EntityNode, obj: Recor
61
52
  * conditionalIconExpression fallback (original adornments were stored as
62
53
  * conditionalIcons). Returns null when the node has neither expression.
63
54
  */
64
- export declare const evaluateConditionalAdornmentParts: (node: EntityNode, obj: Record<string, unknown>, wasLazyLoaded?: boolean) => ConditionalIconParts;
55
+ export declare const evaluateConditionalAdornmentParts: (node: LevelConfig, obj: Record<string, unknown>) => ConditionalIconParts;
65
56
  /* ------------------------------------------------------------------ hidden */
66
57
  /**
67
58
  * Conditional node hiding — port of checkNodeIsHidden (TreeUtilities.js:2199-2229):
@@ -69,7 +60,9 @@ export declare const evaluateConditionalAdornmentParts: (node: EntityNode, obj:
69
60
  * an entity node with hiddenNode.enabled hides when the variable-mapped rule
70
61
  * evaluates truthy against the data object.
71
62
  */
72
- export declare const isNodeHidden: (node: TreeNode, obj: Record<string, unknown>, wasLazyLoaded?: boolean) => boolean;
63
+ export declare const isNodeHidden: (node: LevelConfig & {
64
+ isGroupNode?: boolean;
65
+ }, obj: Record<string, unknown>) => boolean;
73
66
  /* ------------------------------------------------------- search identifiers */
74
67
  /**
75
68
  * Identifier property names for an entity. Port of
@@ -81,6 +74,12 @@ export declare const isNodeHidden: (node: TreeNode, obj: Record<string, unknown>
81
74
  * keys).
82
75
  */
83
76
  export declare const getSearchIdentifiers: (catalogObjects: CatalogObject[], catalogReturnObject: string) => string[];
77
+ /**
78
+ * A level's search identifiers, in the order its `?nodeSearch` values are
79
+ * written: configured associatedTreePrimaryKeyMap keys replace the catalog's
80
+ * identifiers entirely (processObjIndex :665-669).
81
+ */
82
+ export declare const getLevelSearchIdentifiers: (catalogObjects: CatalogObject[], { catalogReturnObject, associatedTreePrimaryKeyMap }: Pick<EntityNodeProperties, "associatedTreePrimaryKeyMap" | "catalogReturnObject">) => string[];
84
83
  export interface RuntimeSearchState {
85
84
  searchIdentifiers: string[];
86
85
  filterElements: RuntimeFilterElement[];
@@ -93,5 +92,13 @@ export interface RuntimeSearchState {
93
92
  * direct value falls through to the joining-entity object; missing values
94
93
  * serialize as ''.
95
94
  */
96
- export declare const buildRuntimeSearchState: (node: EntityNode, obj: Record<string, unknown>, catalogObjects: CatalogObject[]) => RuntimeSearchState;
95
+ export declare const buildRuntimeSearchState: (node: LevelConfig, obj: Record<string, unknown>, catalogObjects: CatalogObject[]) => RuntimeSearchState;
96
+ /**
97
+ * A saved query's parameters filled from a record: each `params.*` name mapped
98
+ * to the record field that supplies it (legacy mapNodeObjValuesToSearchParameters,
99
+ * TreeUtilities.js:2790). An unmapped parameter keeps its empty mapping and a
100
+ * missing value queries as ''. Row aggregate chips and header alerts both read
101
+ * their counts through it, so the same mapping means the same number.
102
+ */
103
+ export declare const queryParamsFromRecord: (record: Record<string, unknown>, mappings: Record<string, string>) => Record<string, unknown>;
97
104
  //# sourceMappingURL=runtime.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"runtime.d.ts","sourceRoot":"","sources":["../../../src/domain/inquiryTree/runtime.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AACH,OAAO,EAEL,UAAU,EAEV,QAAQ,EAET,MAAM,SAAS,CAAC;AACjB,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAQhD,6FAA2F;AAC3F,MAAM,WAAW,oBAAoB;IACnC,WAAW,EAAE,MAAM,CAAC;IACpB,cAAc,EAAE,GAAG,CAAC;IACpB,WAAW,EAAE,OAAO,CAAC;CACtB;AAED,+EAA+E;AAE/E;;;;;;;GAOG;AAEH,eAAO,MAAM,kBAAkB,4DAGqC,CAAC;AAErE,eAAO,MAAM,qBAAqB,4DAGqC,CAAC;AAExE,eAAO,MAAM,kBAAkB,4DAGoC,CAAC;AA6BpE;;;;GAIG;AACH,MAAM,WAAW,oBAAoB;IACnC,+EAA+E;IAC/E,IAAI,EAAE,MAAM,CAAC;IACb;;;OAGG;IACH,QAAQ,EAAE,MAAM,GAAG,SAAS,CAAC;IAC7B,kEAAkE;IAClE,IAAI,EAAE,MAAM,CAAC;IACb,wEAAwE;IACxE,UAAU,EAAE,MAAM,CAAC;CACpB;AAcD;;;;;;;GAOG;AACH,eAAO,MAAM,4BAA4B,mGAcxC,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,iCAAiC,mGAmB7C,CAAC;AA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EF,gFAAgF;AAEhF;;;;;;;;GAQG;AACH,eAAO,MAAM,oBAAoB,4EAoBhC,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,yBAAyB,wLASyB,CAAC;AAEhE,MAAM,WAAW,kBAAkB;IACjC,iBAAiB,EAAE,MAAM,EAAE,CAAC;IAC5B,cAAc,EAAE,oBAAoB,EAAE,CAAC;IACvC,WAAW,EAAE,MAAM,CAAC;CACrB;AAED;;;;;;GAMG;AACH,eAAO,MAAM,uBAAuB,0GAwCnC,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,qBAAqB,gGAWjC,CAAC"}
@@ -1,55 +1,24 @@
1
- /**
2
- * Viewer runtime layer — the typed, pure replacement for the legacy renderer's
3
- * in-place node enrichment (TreeUtilities.processObjIndex :594-716 and the icon
4
- * derivation in InquiryTreeMenu.renderTree :337-375). Nothing here mutates the
5
- * canonical node — the §3 single-object rule.
6
- *
7
- * Everything here is a verbatim behavioral port; quirks are kept on purpose so
8
- * Inquiry renders identically after the migration (parity discipline, §4.8).
9
- */
10
- import { isGroupNode } from './types';
11
1
  import { formatTreeLabel } from './view';
12
2
  import { applyRule, mapRuleVariables } from './rules';
13
3
  import { toWireString } from './wireString';
14
4
  import { toUpperFirstChar } from '../../utilities/input/StringUtilities';
15
5
  /* ------------------------------------------------------------------ labels */
16
- /*
17
- * `formatTreeLabel` is a verbatim legacy port that hands a missing template
18
- * back — `undefined` TYPED as string (view.ts:154). These resolvers are the
19
- * boundary where that lie would enter typed models (they crashed the viewer
20
- * once, via headerTitle.trim()), so each one coerces to '' here and nowhere
21
- * else. Callers all read labels with `||`, so '' and undefined pick the same
22
- * fallback.
23
- */
24
- export const resolveDisplayName = (node, obj) => {
25
- var _a;
26
- return (_a = formatTreeLabel(node.properties.displayName, obj)) !== null && _a !== void 0 ? _a : '';
27
- };
28
- export const resolveDisplayDetails = (node, obj) => {
29
- var _a;
30
- return (_a = formatTreeLabel(node.properties.displayDetails, obj)) !== null && _a !== void 0 ? _a : '';
31
- };
32
- export const resolveHeaderTitle = (node, obj) => {
33
- var _a;
34
- return (_a = formatTreeLabel(node.properties.headerName, obj)) !== null && _a !== void 0 ? _a : '';
35
- };
36
- const evaluateIconExpression = (expression, node, obj, wasLazyLoaded) => {
6
+ export const resolveDisplayName = (node, obj) => formatTreeLabel(node.properties.displayName, obj);
7
+ export const resolveDisplayDetails = (node, obj) => formatTreeLabel(node.properties.displayDetails, obj);
8
+ const evaluateIconExpression = (expression, obj) => {
37
9
  if (!expression)
38
10
  return null;
39
- const result = applyRule(expression, obj, node.properties.joiningEntityCatalogObjectKey, wasLazyLoaded);
11
+ const result = applyRule(expression, obj);
40
12
  return result ? result : null;
41
13
  };
42
- const toConditionalIconParts = (evaluated) => {
43
- var _a;
44
- return evaluated
45
- ? {
46
- name: evaluated.name || '',
47
- colorHex: (_a = evaluated.iconColor) === null || _a === void 0 ? void 0 : _a.hex,
48
- type: evaluated.type || '',
49
- fluentName: evaluated.fluentName || ''
50
- }
51
- : { name: '', colorHex: '', type: '', fluentName: '' };
52
- };
14
+ const toConditionalIconParts = (evaluated) => evaluated
15
+ ? {
16
+ name: evaluated.name || '',
17
+ colorHex: evaluated.iconColor ? evaluated.iconColor.hex : undefined,
18
+ type: evaluated.type || '',
19
+ fluentName: evaluated.fluentName || ''
20
+ }
21
+ : { name: '', colorHex: '', type: '', fluentName: '' };
53
22
  /**
54
23
  * Evaluate the node's conditional ICON expression into the separate legacy
55
24
  * display keys — exact port of processObjIndex (TreeUtilities.js:603-623).
@@ -58,10 +27,10 @@ const toConditionalIconParts = (evaluated) => {
58
27
  * ('' triple on no match — legacy resets explicitly), preserving the legacy
59
28
  * two-step contract for the display-tree layer.
60
29
  */
61
- export const evaluateConditionalIconParts = (node, obj, wasLazyLoaded = false) => {
30
+ export const evaluateConditionalIconParts = (node, obj) => {
62
31
  if (!node.properties.conditionalNodeIconExpression)
63
32
  return null;
64
- return toConditionalIconParts(evaluateIconExpression(node.properties.conditionalNodeIconExpression, node, obj, wasLazyLoaded));
33
+ return toConditionalIconParts(evaluateIconExpression(node.properties.conditionalNodeIconExpression, obj));
65
34
  };
66
35
  /**
67
36
  * Evaluate the node's conditional ADORNMENT expression into the separate
@@ -70,7 +39,7 @@ export const evaluateConditionalIconParts = (node, obj, wasLazyLoaded = false) =
70
39
  * conditionalIconExpression fallback (original adornments were stored as
71
40
  * conditionalIcons). Returns null when the node has neither expression.
72
41
  */
73
- export const evaluateConditionalAdornmentParts = (node, obj, wasLazyLoaded = false) => {
42
+ export const evaluateConditionalAdornmentParts = (node, obj) => {
74
43
  const props = node.properties;
75
44
  if (!props.conditionalNodeAdornmentExpression &&
76
45
  !props.conditionalIconExpression) {
@@ -80,7 +49,7 @@ export const evaluateConditionalAdornmentParts = (node, obj, wasLazyLoaded = fal
80
49
  const expression = props.conditionalNodeAdornmentExpression
81
50
  ? props.conditionalNodeAdornmentExpression
82
51
  : props.conditionalIconExpression;
83
- return toConditionalIconParts(evaluateIconExpression(expression, node, obj, wasLazyLoaded));
52
+ return toConditionalIconParts(evaluateIconExpression(expression, obj));
84
53
  };
85
54
  /* ------------------------------------------------------------------ hidden */
86
55
  /**
@@ -89,10 +58,10 @@ export const evaluateConditionalAdornmentParts = (node, obj, wasLazyLoaded = fal
89
58
  * an entity node with hiddenNode.enabled hides when the variable-mapped rule
90
59
  * evaluates truthy against the data object.
91
60
  */
92
- export const isNodeHidden = (node, obj, wasLazyLoaded = false) => {
61
+ export const isNodeHidden = (node, obj) => {
93
62
  if (!node || !Object.keys(node).length)
94
63
  return true;
95
- if (isGroupNode(node))
64
+ if (node.isGroupNode)
96
65
  return false;
97
66
  const hiddenNode = node.properties.hiddenNode;
98
67
  if (!(hiddenNode === null || hiddenNode === void 0 ? void 0 : hiddenNode.enabled))
@@ -100,7 +69,7 @@ export const isNodeHidden = (node, obj, wasLazyLoaded = false) => {
100
69
  const rule = mapRuleVariables(hiddenNode.propertyMapping, hiddenNode.jsonLogic);
101
70
  if (!rule)
102
71
  return false;
103
- return Boolean(applyRule(rule, obj, node.properties.joiningEntityCatalogObjectKey, wasLazyLoaded));
72
+ return Boolean(applyRule(rule, obj));
104
73
  };
105
74
  /* ------------------------------------------------------- search identifiers */
106
75
  /**
@@ -128,6 +97,14 @@ export const getSearchIdentifiers = (catalogObjects, catalogReturnObject) => {
128
97
  });
129
98
  return ((_b = identifierProps === null || identifierProps === void 0 ? void 0 : identifierProps.map((property) => property.name)) !== null && _b !== void 0 ? _b : []);
130
99
  };
100
+ /**
101
+ * A level's search identifiers, in the order its `?nodeSearch` values are
102
+ * written: configured associatedTreePrimaryKeyMap keys replace the catalog's
103
+ * identifiers entirely (processObjIndex :665-669).
104
+ */
105
+ export const getLevelSearchIdentifiers = (catalogObjects, { catalogReturnObject, associatedTreePrimaryKeyMap }) => associatedTreePrimaryKeyMap
106
+ ? Object.keys(associatedTreePrimaryKeyMap)
107
+ : getSearchIdentifiers(catalogObjects, catalogReturnObject);
131
108
  /**
132
109
  * Build the record-fetch filters for a node's data row — port of the
133
110
  * catalogReturnObject block of processObjIndex (:657-706), quirks preserved:
@@ -139,11 +116,8 @@ export const buildRuntimeSearchState = (node, obj, catalogObjects) => {
139
116
  if (!node.properties.catalogReturnObject) {
140
117
  return { searchIdentifiers: [], filterElements: [], searchValue: '' };
141
118
  }
142
- let searchIdentifiers = getSearchIdentifiers(catalogObjects, node.properties.catalogReturnObject);
119
+ const searchIdentifiers = getLevelSearchIdentifiers(catalogObjects, node.properties);
143
120
  const primaryKeyMap = node.properties.associatedTreePrimaryKeyMap;
144
- if (primaryKeyMap) {
145
- searchIdentifiers = Object.keys(primaryKeyMap);
146
- }
147
121
  const filterElements = [];
148
122
  const searchValues = [];
149
123
  const joiningKey = node.properties.joiningEntityCatalogObjectKey;
@@ -175,4 +149,22 @@ export const buildRuntimeSearchState = (node, obj, catalogObjects) => {
175
149
  searchValue: toWireString(searchValues)
176
150
  };
177
151
  };
152
+ /**
153
+ * A saved query's parameters filled from a record: each `params.*` name mapped
154
+ * to the record field that supplies it (legacy mapNodeObjValuesToSearchParameters,
155
+ * TreeUtilities.js:2790). An unmapped parameter keeps its empty mapping and a
156
+ * missing value queries as ''. Row aggregate chips and header alerts both read
157
+ * their counts through it, so the same mapping means the same number.
158
+ */
159
+ export const queryParamsFromRecord = (record, mappings) => {
160
+ if (!mappings || !record)
161
+ return {};
162
+ return Object.fromEntries(Object.entries(mappings).map(([param, field]) => {
163
+ var _a;
164
+ return [
165
+ param,
166
+ field ? ((_a = record[field]) !== null && _a !== void 0 ? _a : '') || '' : field
167
+ ];
168
+ }));
169
+ };
178
170
  //# sourceMappingURL=runtime.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"runtime.js","sourceRoot":"","sources":["../../../src/domain/inquiryTree/runtime.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AACH,OAAO,EAKL,WAAW,EACZ,MAAM,SAAS,CAAC;AAEjB,OAAO,EAAE,eAAe,EAAE,MAAM,QAAQ,CAAC;AACzC,OAAO,EAAE,SAAS,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AACtD,OAAO,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAC5C,OAAO,EACL,gBAAgB,EACjB,MAAM,uCAAuC,CAAC;AAS/C,+EAA+E;AAE/E;;;;;;;GAOG;AAEH,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAChC,IAAgB,EAChB,GAA4B,EACpB,EAAE;;iBAAC,eAAe,CAAC,IAAI,CAAC,UAAU,CAAC,WAAW,EAAE,GAAG,CAAC,mCAAI,EAAE;CAAA,CAAC;AAErE,MAAM,CAAC,MAAM,qBAAqB,GAAG,CACnC,IAAgB,EAChB,GAA4B,EACpB,EAAE;;iBAAC,eAAe,CAAC,IAAI,CAAC,UAAU,CAAC,cAAc,EAAE,GAAG,CAAC,mCAAI,EAAE;CAAA,CAAC;AAExE,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAChC,IAAgB,EAChB,GAA4B,EACpB,EAAE;;iB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