udp-react-enterprise-component-library 27.0.0-next.12 → 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 (540) hide show
  1. package/dist/.tsbuildinfo +1 -1
  2. package/dist/UI/fluent-web-components/UdpIconPicker.d.ts +4 -1
  3. package/dist/UI/fluent-web-components/UdpIconPicker.d.ts.map +1 -1
  4. package/dist/UI/fluent-web-components/UdpIconPicker.js +2 -2
  5. package/dist/UI/fluent-web-components/UdpIconPicker.js.map +1 -1
  6. package/dist/UI/fluent-web-components/UdpIconPicker.mjs +32 -28
  7. package/dist/UI/fluent-web-components/UdpIconPicker.mjs.map +1 -1
  8. package/dist/UI/fluent-web-components/UdpLink.d.ts +6 -0
  9. package/dist/UI/fluent-web-components/UdpLink.d.ts.map +1 -1
  10. package/dist/UI/fluent-web-components/UdpLink.js.map +1 -1
  11. package/dist/UI/fluent-web-components/UdpLink.mjs.map +1 -1
  12. package/dist/UI/fluent-web-components/types.d.ts +2 -0
  13. package/dist/UI/fluent-web-components/types.d.ts.map +1 -1
  14. package/dist/UI/widgets/library/InquiryFindRecordsWidget/InquiryFindRecordsWidget.d.ts +16 -3
  15. package/dist/UI/widgets/library/InquiryFindRecordsWidget/InquiryFindRecordsWidget.d.ts.map +1 -1
  16. package/dist/UI/widgets/library/InquiryFindRecordsWidget/InquiryFindRecordsWidget.js +36 -13
  17. package/dist/UI/widgets/library/InquiryFindRecordsWidget/InquiryFindRecordsWidget.js.map +1 -1
  18. package/dist/UI/widgets/library/InquiryFindRecordsWidget/InquiryFindRecordsWidget.mjs +119 -62
  19. package/dist/UI/widgets/library/InquiryFindRecordsWidget/InquiryFindRecordsWidget.mjs.map +1 -1
  20. package/dist/UI/widgets/library/InquiryFindRecordsWidget/index.mjs +3 -2
  21. package/dist/UI/widgets/library/InquiryRecentRecordsWidget/InquiryRecentRecordsWidget.d.ts +9 -2
  22. package/dist/UI/widgets/library/InquiryRecentRecordsWidget/InquiryRecentRecordsWidget.d.ts.map +1 -1
  23. package/dist/UI/widgets/library/InquiryRecentRecordsWidget/InquiryRecentRecordsWidget.js +18 -18
  24. package/dist/UI/widgets/library/InquiryRecentRecordsWidget/InquiryRecentRecordsWidget.js.map +1 -1
  25. package/dist/UI/widgets/library/InquiryRecentRecordsWidget/InquiryRecentRecordsWidget.mjs +79 -67
  26. package/dist/UI/widgets/library/InquiryRecentRecordsWidget/InquiryRecentRecordsWidget.mjs.map +1 -1
  27. package/dist/UI/widgets/library/InquiryRemindersWidget/InquiryRemindersWidget.d.ts +8 -2
  28. package/dist/UI/widgets/library/InquiryRemindersWidget/InquiryRemindersWidget.d.ts.map +1 -1
  29. package/dist/UI/widgets/library/InquiryRemindersWidget/InquiryRemindersWidget.js +32 -16
  30. package/dist/UI/widgets/library/InquiryRemindersWidget/InquiryRemindersWidget.js.map +1 -1
  31. package/dist/UI/widgets/library/InquiryRemindersWidget/InquiryRemindersWidget.mjs +129 -102
  32. package/dist/UI/widgets/library/InquiryRemindersWidget/InquiryRemindersWidget.mjs.map +1 -1
  33. package/dist/UI/widgets/library/InquiryRemindersWidget/reminderRowModel.d.ts +3 -2
  34. package/dist/UI/widgets/library/InquiryRemindersWidget/reminderRowModel.d.ts.map +1 -1
  35. package/dist/UI/widgets/library/InquiryRemindersWidget/reminderRowModel.js +11 -12
  36. package/dist/UI/widgets/library/InquiryRemindersWidget/reminderRowModel.js.map +1 -1
  37. package/dist/UI/widgets/library/InquiryRemindersWidget/reminderRowModel.mjs +6 -4
  38. package/dist/UI/widgets/library/InquiryRemindersWidget/reminderRowModel.mjs.map +1 -1
  39. package/dist/UI/widgets/library/InquiryRemindersWidget/useInquiryReminders.d.ts +2 -19
  40. package/dist/UI/widgets/library/InquiryRemindersWidget/useInquiryReminders.d.ts.map +1 -1
  41. package/dist/UI/widgets/library/InquiryRemindersWidget/useInquiryReminders.js +4 -5
  42. package/dist/UI/widgets/library/InquiryRemindersWidget/useInquiryReminders.js.map +1 -1
  43. package/dist/UI/widgets/library/InquiryRemindersWidget/useInquiryReminders.mjs +5 -4
  44. package/dist/UI/widgets/library/InquiryRemindersWidget/useInquiryReminders.mjs.map +1 -1
  45. package/dist/actionPanels/index.d.ts +0 -2
  46. package/dist/actionPanels/index.d.ts.map +1 -1
  47. package/dist/actionPanels/index.js +0 -2
  48. package/dist/actionPanels/index.js.map +1 -1
  49. package/dist/actionPanels/panelActionFields.d.ts +9 -26
  50. package/dist/actionPanels/panelActionFields.d.ts.map +1 -1
  51. package/dist/actionPanels/panelActionFields.js +32 -55
  52. package/dist/actionPanels/panelActionFields.js.map +1 -1
  53. package/dist/actionPanels/panelActionFields.mjs +159 -375
  54. package/dist/actionPanels/panelActionFields.mjs.map +1 -1
  55. package/dist/actionPanels/panelOperations.d.ts +15 -41
  56. package/dist/actionPanels/panelOperations.d.ts.map +1 -1
  57. package/dist/actionPanels/panelOperations.js +51 -89
  58. package/dist/actionPanels/panelOperations.js.map +1 -1
  59. package/dist/actionPanels/panelOperations.mjs +37 -92
  60. package/dist/actionPanels/panelOperations.mjs.map +1 -1
  61. package/dist/domain/actionPanel/actionTypeMeta.d.ts +15 -2
  62. package/dist/domain/actionPanel/actionTypeMeta.d.ts.map +1 -1
  63. package/dist/domain/actionPanel/actionTypeMeta.js +21 -2
  64. package/dist/domain/actionPanel/actionTypeMeta.js.map +1 -1
  65. package/dist/domain/actionPanel/actionTypeMeta.mjs +18 -3
  66. package/dist/domain/actionPanel/actionTypeMeta.mjs.map +1 -1
  67. package/dist/domain/actionPanel/buttonOrder.d.ts +67 -0
  68. package/dist/domain/actionPanel/buttonOrder.d.ts.map +1 -0
  69. package/dist/domain/actionPanel/buttonOrder.js +105 -0
  70. package/dist/domain/actionPanel/buttonOrder.js.map +1 -0
  71. package/dist/domain/actionPanel/buttonOrder.mjs +90 -0
  72. package/dist/domain/actionPanel/buttonOrder.mjs.map +1 -0
  73. package/dist/domain/actionPanel/index.d.ts +1 -0
  74. package/dist/domain/actionPanel/index.d.ts.map +1 -1
  75. package/dist/domain/actionPanel/index.js +1 -0
  76. package/dist/domain/actionPanel/index.js.map +1 -1
  77. package/dist/domain/actionPanel/index.mjs +4 -3
  78. package/dist/domain/actionPanel/serialize.d.ts +6 -2
  79. package/dist/domain/actionPanel/serialize.d.ts.map +1 -1
  80. package/dist/domain/actionPanel/serialize.js +10 -3
  81. package/dist/domain/actionPanel/serialize.js.map +1 -1
  82. package/dist/domain/actionPanel/serialize.mjs +7 -3
  83. package/dist/domain/actionPanel/serialize.mjs.map +1 -1
  84. package/dist/domain/actionPanel/types.d.ts +24 -8
  85. package/dist/domain/actionPanel/types.d.ts.map +1 -1
  86. package/dist/domain/actionPanel/types.js.map +1 -1
  87. package/dist/domain/actionPanel/types.mjs.map +1 -1
  88. package/dist/domain/inquiryTree/describe.d.ts +15 -3
  89. package/dist/domain/inquiryTree/describe.d.ts.map +1 -1
  90. package/dist/domain/inquiryTree/describe.js +32 -28
  91. package/dist/domain/inquiryTree/describe.js.map +1 -1
  92. package/dist/domain/inquiryTree/describe.mjs +34 -16
  93. package/dist/domain/inquiryTree/describe.mjs.map +1 -1
  94. package/dist/domain/inquiryTree/displayTree.d.ts +75 -97
  95. package/dist/domain/inquiryTree/displayTree.d.ts.map +1 -1
  96. package/dist/domain/inquiryTree/displayTree.js +418 -551
  97. package/dist/domain/inquiryTree/displayTree.js.map +1 -1
  98. package/dist/domain/inquiryTree/displayTree.mjs +345 -414
  99. package/dist/domain/inquiryTree/displayTree.mjs.map +1 -1
  100. package/dist/domain/inquiryTree/groups.d.ts +2 -0
  101. package/dist/domain/inquiryTree/groups.d.ts.map +1 -1
  102. package/dist/domain/inquiryTree/groups.js.map +1 -1
  103. package/dist/domain/inquiryTree/groups.mjs.map +1 -1
  104. package/dist/domain/inquiryTree/index.d.ts +1 -1
  105. package/dist/domain/inquiryTree/index.d.ts.map +1 -1
  106. package/dist/domain/inquiryTree/index.js +1 -1
  107. package/dist/domain/inquiryTree/index.js.map +1 -1
  108. package/dist/domain/inquiryTree/index.mjs +12 -12
  109. package/dist/domain/inquiryTree/lazyLoad.d.ts +20 -129
  110. package/dist/domain/inquiryTree/lazyLoad.d.ts.map +1 -1
  111. package/dist/domain/inquiryTree/lazyLoad.js +48 -233
  112. package/dist/domain/inquiryTree/lazyLoad.js.map +1 -1
  113. package/dist/domain/inquiryTree/lazyLoad.mjs +32 -187
  114. package/dist/domain/inquiryTree/lazyLoad.mjs.map +1 -1
  115. package/dist/domain/inquiryTree/legalChildren.d.ts +13 -14
  116. package/dist/domain/inquiryTree/legalChildren.d.ts.map +1 -1
  117. package/dist/domain/inquiryTree/legalChildren.js +21 -42
  118. package/dist/domain/inquiryTree/legalChildren.js.map +1 -1
  119. package/dist/domain/inquiryTree/legalChildren.mjs +19 -37
  120. package/dist/domain/inquiryTree/legalChildren.mjs.map +1 -1
  121. package/dist/domain/inquiryTree/names.d.ts +38 -0
  122. package/dist/domain/inquiryTree/names.d.ts.map +1 -0
  123. package/dist/domain/inquiryTree/names.js +64 -0
  124. package/dist/domain/inquiryTree/names.js.map +1 -0
  125. package/dist/domain/inquiryTree/names.mjs +56 -0
  126. package/dist/domain/inquiryTree/names.mjs.map +1 -0
  127. package/dist/domain/inquiryTree/operations.d.ts +6 -2
  128. package/dist/domain/inquiryTree/operations.d.ts.map +1 -1
  129. package/dist/domain/inquiryTree/operations.js +17 -16
  130. package/dist/domain/inquiryTree/operations.js.map +1 -1
  131. package/dist/domain/inquiryTree/operations.mjs +14 -11
  132. package/dist/domain/inquiryTree/operations.mjs.map +1 -1
  133. package/dist/domain/inquiryTree/rules.d.ts +3 -4
  134. package/dist/domain/inquiryTree/rules.d.ts.map +1 -1
  135. package/dist/domain/inquiryTree/rules.js +3 -13
  136. package/dist/domain/inquiryTree/rules.js.map +1 -1
  137. package/dist/domain/inquiryTree/rules.mjs +3 -9
  138. package/dist/domain/inquiryTree/rules.mjs.map +1 -1
  139. package/dist/domain/inquiryTree/runtime.d.ts +23 -16
  140. package/dist/domain/inquiryTree/runtime.d.ts.map +1 -1
  141. package/dist/domain/inquiryTree/runtime.js +46 -54
  142. package/dist/domain/inquiryTree/runtime.js.map +1 -1
  143. package/dist/domain/inquiryTree/runtime.mjs +31 -26
  144. package/dist/domain/inquiryTree/runtime.mjs.map +1 -1
  145. package/dist/domain/inquiryTree/serialize.d.ts +20 -29
  146. package/dist/domain/inquiryTree/serialize.d.ts.map +1 -1
  147. package/dist/domain/inquiryTree/serialize.js +93 -205
  148. package/dist/domain/inquiryTree/serialize.js.map +1 -1
  149. package/dist/domain/inquiryTree/serialize.mjs +89 -180
  150. package/dist/domain/inquiryTree/serialize.mjs.map +1 -1
  151. package/dist/domain/inquiryTree/types.d.ts +146 -65
  152. package/dist/domain/inquiryTree/types.d.ts.map +1 -1
  153. package/dist/domain/inquiryTree/types.js +5 -0
  154. package/dist/domain/inquiryTree/types.js.map +1 -1
  155. package/dist/domain/inquiryTree/types.mjs +3 -1
  156. package/dist/domain/inquiryTree/types.mjs.map +1 -1
  157. package/dist/domain/inquiryTree/validate.d.ts +9 -2
  158. package/dist/domain/inquiryTree/validate.d.ts.map +1 -1
  159. package/dist/domain/inquiryTree/validate.js +30 -58
  160. package/dist/domain/inquiryTree/validate.js.map +1 -1
  161. package/dist/domain/inquiryTree/validate.mjs +29 -44
  162. package/dist/domain/inquiryTree/validate.mjs.map +1 -1
  163. package/dist/domain/inquiryTree/view.d.ts +8 -12
  164. package/dist/domain/inquiryTree/view.d.ts.map +1 -1
  165. package/dist/domain/inquiryTree/view.js +40 -66
  166. package/dist/domain/inquiryTree/view.js.map +1 -1
  167. package/dist/domain/inquiryTree/view.mjs +30 -60
  168. package/dist/domain/inquiryTree/view.mjs.map +1 -1
  169. package/dist/domain/inquiryTree/waveLoad.d.ts +32 -48
  170. package/dist/domain/inquiryTree/waveLoad.d.ts.map +1 -1
  171. package/dist/domain/inquiryTree/waveLoad.js +75 -90
  172. package/dist/domain/inquiryTree/waveLoad.js.map +1 -1
  173. package/dist/domain/inquiryTree/waveLoad.mjs +54 -60
  174. package/dist/domain/inquiryTree/waveLoad.mjs.map +1 -1
  175. package/dist/domain/inquiryTree/wireString.d.ts +5 -0
  176. package/dist/domain/inquiryTree/wireString.d.ts.map +1 -1
  177. package/dist/domain/inquiryTree/wireString.js +11 -0
  178. package/dist/domain/inquiryTree/wireString.js.map +1 -1
  179. package/dist/domain/inquiryTree/wireString.mjs +10 -1
  180. package/dist/domain/inquiryTree/wireString.mjs.map +1 -1
  181. package/dist/domain/nodeView/index.mjs +2 -2
  182. package/dist/domain/nodeView/model.d.ts +35 -30
  183. package/dist/domain/nodeView/model.d.ts.map +1 -1
  184. package/dist/domain/nodeView/model.js +108 -69
  185. package/dist/domain/nodeView/model.js.map +1 -1
  186. package/dist/domain/nodeView/model.mjs +86 -36
  187. package/dist/domain/nodeView/model.mjs.map +1 -1
  188. package/dist/icons/legacyIconNames.d.ts.map +1 -1
  189. package/dist/icons/legacyIconNames.js +46 -1
  190. package/dist/icons/legacyIconNames.js.map +1 -1
  191. package/dist/icons/legacyIconNames.mjs +46 -1
  192. package/dist/icons/legacyIconNames.mjs.map +1 -1
  193. package/dist/index.mjs +10 -12
  194. package/dist/inquiry/Inquiry.d.ts +3 -0
  195. package/dist/inquiry/Inquiry.d.ts.map +1 -1
  196. package/dist/inquiry/Inquiry.js +3 -0
  197. package/dist/inquiry/Inquiry.js.map +1 -1
  198. package/dist/inquiry/Inquiry.mjs +3 -0
  199. package/dist/inquiry/Inquiry.mjs.map +1 -1
  200. package/dist/inquiry/v2/InquiryV2.d.ts +8 -6
  201. package/dist/inquiry/v2/InquiryV2.d.ts.map +1 -1
  202. package/dist/inquiry/v2/InquiryV2.js +45 -24
  203. package/dist/inquiry/v2/InquiryV2.js.map +1 -1
  204. package/dist/inquiry/v2/InquiryV2.mjs +108 -61
  205. package/dist/inquiry/v2/InquiryV2.mjs.map +1 -1
  206. package/dist/inquiry/v2/InquiryV2.module.css +60 -15
  207. package/dist/inquiry/v2/InquiryWorkspace.d.ts +9 -9
  208. package/dist/inquiry/v2/InquiryWorkspace.d.ts.map +1 -1
  209. package/dist/inquiry/v2/InquiryWorkspace.js +531 -408
  210. package/dist/inquiry/v2/InquiryWorkspace.js.map +1 -1
  211. package/dist/inquiry/v2/InquiryWorkspace.mjs +524 -408
  212. package/dist/inquiry/v2/InquiryWorkspace.mjs.map +1 -1
  213. package/dist/inquiry/v2/ai/InquiryV2Copilot.d.ts +3 -2
  214. package/dist/inquiry/v2/ai/InquiryV2Copilot.d.ts.map +1 -1
  215. package/dist/inquiry/v2/ai/InquiryV2Copilot.js +20 -37
  216. package/dist/inquiry/v2/ai/InquiryV2Copilot.js.map +1 -1
  217. package/dist/inquiry/v2/ai/InquiryV2Copilot.mjs +19 -31
  218. package/dist/inquiry/v2/ai/InquiryV2Copilot.mjs.map +1 -1
  219. package/dist/inquiry/v2/ai/copilotModel.d.ts +6 -14
  220. package/dist/inquiry/v2/ai/copilotModel.d.ts.map +1 -1
  221. package/dist/inquiry/v2/ai/copilotModel.js +35 -87
  222. package/dist/inquiry/v2/ai/copilotModel.js.map +1 -1
  223. package/dist/inquiry/v2/ai/copilotModel.mjs +23 -47
  224. package/dist/inquiry/v2/ai/copilotModel.mjs.map +1 -1
  225. package/dist/inquiry/v2/api/queries.d.ts +46 -73
  226. package/dist/inquiry/v2/api/queries.d.ts.map +1 -1
  227. package/dist/inquiry/v2/api/queries.js +151 -210
  228. package/dist/inquiry/v2/api/queries.js.map +1 -1
  229. package/dist/inquiry/v2/api/queries.mjs +227 -183
  230. package/dist/inquiry/v2/api/queries.mjs.map +1 -1
  231. package/dist/inquiry/v2/capabilities/actions/ActionsCapability.d.ts.map +1 -1
  232. package/dist/inquiry/v2/capabilities/actions/ActionsCapability.js +103 -32
  233. package/dist/inquiry/v2/capabilities/actions/ActionsCapability.js.map +1 -1
  234. package/dist/inquiry/v2/capabilities/actions/ActionsCapability.mjs +92 -32
  235. package/dist/inquiry/v2/capabilities/actions/ActionsCapability.mjs.map +1 -1
  236. package/dist/inquiry/v2/capabilities/actions/ActionsCapability.module.css +8 -1
  237. package/dist/inquiry/v2/capabilities/actions/EntityFormSurface.d.ts +20 -16
  238. package/dist/inquiry/v2/capabilities/actions/EntityFormSurface.d.ts.map +1 -1
  239. package/dist/inquiry/v2/capabilities/actions/EntityFormSurface.js +111 -68
  240. package/dist/inquiry/v2/capabilities/actions/EntityFormSurface.js.map +1 -1
  241. package/dist/inquiry/v2/capabilities/actions/EntityFormSurface.mjs +108 -142
  242. package/dist/inquiry/v2/capabilities/actions/EntityFormSurface.mjs.map +1 -1
  243. package/dist/inquiry/v2/capabilities/actions/RetrieveSurface.mjs +1 -1
  244. package/dist/inquiry/v2/capabilities/actions/actionModel.d.ts +66 -50
  245. package/dist/inquiry/v2/capabilities/actions/actionModel.d.ts.map +1 -1
  246. package/dist/inquiry/v2/capabilities/actions/actionModel.js +141 -66
  247. package/dist/inquiry/v2/capabilities/actions/actionModel.js.map +1 -1
  248. package/dist/inquiry/v2/capabilities/actions/actionModel.mjs +115 -53
  249. package/dist/inquiry/v2/capabilities/actions/actionModel.mjs.map +1 -1
  250. package/dist/inquiry/v2/capabilities/actions/parentKeyDefaults.d.ts +26 -0
  251. package/dist/inquiry/v2/capabilities/actions/parentKeyDefaults.d.ts.map +1 -0
  252. package/dist/inquiry/v2/capabilities/actions/parentKeyDefaults.js +36 -0
  253. package/dist/inquiry/v2/capabilities/actions/parentKeyDefaults.js.map +1 -0
  254. package/dist/inquiry/v2/capabilities/actions/parentKeyDefaults.mjs +41 -0
  255. package/dist/inquiry/v2/capabilities/actions/parentKeyDefaults.mjs.map +1 -0
  256. package/dist/inquiry/v2/capabilities/actions/runAction.d.ts +3 -2
  257. package/dist/inquiry/v2/capabilities/actions/runAction.d.ts.map +1 -1
  258. package/dist/inquiry/v2/capabilities/actions/runAction.js +27 -23
  259. package/dist/inquiry/v2/capabilities/actions/runAction.js.map +1 -1
  260. package/dist/inquiry/v2/capabilities/actions/runAction.mjs +26 -20
  261. package/dist/inquiry/v2/capabilities/actions/runAction.mjs.map +1 -1
  262. package/dist/inquiry/v2/capabilities/actions/useHeaderFold.d.ts +20 -0
  263. package/dist/inquiry/v2/capabilities/actions/useHeaderFold.d.ts.map +1 -0
  264. package/dist/inquiry/v2/capabilities/actions/useHeaderFold.js +112 -0
  265. package/dist/inquiry/v2/capabilities/actions/useHeaderFold.js.map +1 -0
  266. package/dist/inquiry/v2/capabilities/actions/useHeaderFold.mjs +118 -0
  267. package/dist/inquiry/v2/capabilities/actions/useHeaderFold.mjs.map +1 -0
  268. package/dist/inquiry/v2/capabilities/actions/useSheetPanel.d.ts +25 -1
  269. package/dist/inquiry/v2/capabilities/actions/useSheetPanel.d.ts.map +1 -1
  270. package/dist/inquiry/v2/capabilities/actions/useSheetPanel.js +7 -4
  271. package/dist/inquiry/v2/capabilities/actions/useSheetPanel.js.map +1 -1
  272. package/dist/inquiry/v2/capabilities/actions/useSheetPanel.mjs +9 -4
  273. package/dist/inquiry/v2/capabilities/actions/useSheetPanel.mjs.map +1 -1
  274. package/dist/inquiry/v2/capabilities/alerts/AlertsCapability.d.ts +5 -3
  275. package/dist/inquiry/v2/capabilities/alerts/AlertsCapability.d.ts.map +1 -1
  276. package/dist/inquiry/v2/capabilities/alerts/AlertsCapability.js +11 -8
  277. package/dist/inquiry/v2/capabilities/alerts/AlertsCapability.js.map +1 -1
  278. package/dist/inquiry/v2/capabilities/alerts/AlertsCapability.mjs +13 -7
  279. package/dist/inquiry/v2/capabilities/alerts/AlertsCapability.mjs.map +1 -1
  280. package/dist/inquiry/v2/capabilities/alerts/AlertsCapability.module.css +4 -4
  281. package/dist/inquiry/v2/capabilities/header/HeaderCapability.d.ts +1 -1
  282. package/dist/inquiry/v2/capabilities/header/HeaderCapability.d.ts.map +1 -1
  283. package/dist/inquiry/v2/capabilities/header/HeaderCapability.js +20 -17
  284. package/dist/inquiry/v2/capabilities/header/HeaderCapability.js.map +1 -1
  285. package/dist/inquiry/v2/capabilities/header/HeaderCapability.mjs +101 -111
  286. package/dist/inquiry/v2/capabilities/header/HeaderCapability.mjs.map +1 -1
  287. package/dist/inquiry/v2/capabilities/header/HeaderCapability.module.css +9 -6
  288. package/dist/inquiry/v2/capabilities/tabs/TabsCapability.d.ts +2 -1
  289. package/dist/inquiry/v2/capabilities/tabs/TabsCapability.d.ts.map +1 -1
  290. package/dist/inquiry/v2/capabilities/tabs/TabsCapability.js +9 -2
  291. package/dist/inquiry/v2/capabilities/tabs/TabsCapability.js.map +1 -1
  292. package/dist/inquiry/v2/capabilities/tabs/TabsCapability.mjs +18 -15
  293. package/dist/inquiry/v2/capabilities/tabs/TabsCapability.mjs.map +1 -1
  294. package/dist/inquiry/v2/index.d.ts +0 -1
  295. package/dist/inquiry/v2/index.d.ts.map +1 -1
  296. package/dist/inquiry/v2/index.js.map +1 -1
  297. package/dist/inquiry/v2/kernel/ActionRunnerContext.d.ts +3 -3
  298. package/dist/inquiry/v2/kernel/ActionRunnerContext.d.ts.map +1 -1
  299. package/dist/inquiry/v2/kernel/ActionRunnerContext.js +11 -5
  300. package/dist/inquiry/v2/kernel/ActionRunnerContext.js.map +1 -1
  301. package/dist/inquiry/v2/kernel/ActionRunnerContext.mjs +15 -12
  302. package/dist/inquiry/v2/kernel/ActionRunnerContext.mjs.map +1 -1
  303. package/dist/inquiry/v2/kernel/ReadOnlyContext.d.ts +3 -0
  304. package/dist/inquiry/v2/kernel/ReadOnlyContext.d.ts.map +1 -0
  305. package/dist/inquiry/v2/kernel/ReadOnlyContext.js +14 -0
  306. package/dist/inquiry/v2/kernel/ReadOnlyContext.js.map +1 -0
  307. package/dist/inquiry/v2/kernel/ReadOnlyContext.mjs +20 -0
  308. package/dist/inquiry/v2/kernel/ReadOnlyContext.mjs.map +1 -0
  309. package/dist/inquiry/v2/kernel/RecordContext.d.ts +2 -0
  310. package/dist/inquiry/v2/kernel/RecordContext.d.ts.map +1 -1
  311. package/dist/inquiry/v2/kernel/RecordContext.js.map +1 -1
  312. package/dist/inquiry/v2/kernel/RecordContext.mjs.map +1 -1
  313. package/dist/inquiry/v2/kernel/UdpNodeView.d.ts.map +1 -1
  314. package/dist/inquiry/v2/kernel/UdpNodeView.js +18 -13
  315. package/dist/inquiry/v2/kernel/UdpNodeView.js.map +1 -1
  316. package/dist/inquiry/v2/kernel/UdpNodeView.mjs +177 -140
  317. package/dist/inquiry/v2/kernel/UdpNodeView.mjs.map +1 -1
  318. package/dist/inquiry/v2/kernel/UdpNodeView.module.css +56 -5
  319. package/dist/inquiry/v2/kernel/capabilities.d.ts +0 -2
  320. package/dist/inquiry/v2/kernel/capabilities.d.ts.map +1 -1
  321. package/dist/inquiry/v2/kernel/capabilities.js.map +1 -1
  322. package/dist/inquiry/v2/kernel/capabilities.mjs.map +1 -1
  323. package/dist/inquiry/v2/landing/InquiryExplorePage.d.ts +26 -37
  324. package/dist/inquiry/v2/landing/InquiryExplorePage.d.ts.map +1 -1
  325. package/dist/inquiry/v2/landing/InquiryExplorePage.js +48 -57
  326. package/dist/inquiry/v2/landing/InquiryExplorePage.js.map +1 -1
  327. package/dist/inquiry/v2/landing/InquiryExplorePage.mjs +102 -106
  328. package/dist/inquiry/v2/landing/InquiryExplorePage.mjs.map +1 -1
  329. package/dist/inquiry/v2/landing/InquiryExplorePage.module.css +58 -6
  330. package/dist/inquiry/v2/landing/InquiryLanding.d.ts +3 -3
  331. package/dist/inquiry/v2/landing/InquiryLanding.d.ts.map +1 -1
  332. package/dist/inquiry/v2/landing/InquiryLanding.js +8 -3
  333. package/dist/inquiry/v2/landing/InquiryLanding.js.map +1 -1
  334. package/dist/inquiry/v2/landing/InquiryLanding.mjs +51 -35
  335. package/dist/inquiry/v2/landing/InquiryLanding.mjs.map +1 -1
  336. package/dist/inquiry/v2/landing/InquiryLanding.module.css +8 -0
  337. package/dist/inquiry/v2/page/UdpPageRenderer.d.ts +5 -1
  338. package/dist/inquiry/v2/page/UdpPageRenderer.d.ts.map +1 -1
  339. package/dist/inquiry/v2/page/UdpPageRenderer.js +13 -1
  340. package/dist/inquiry/v2/page/UdpPageRenderer.js.map +1 -1
  341. package/dist/inquiry/v2/page/UdpPageRenderer.mjs +36 -7
  342. package/dist/inquiry/v2/page/UdpPageRenderer.mjs.map +1 -1
  343. package/dist/inquiry/v2/search/InquirySearchPanel.d.ts +1 -7
  344. package/dist/inquiry/v2/search/InquirySearchPanel.d.ts.map +1 -1
  345. package/dist/inquiry/v2/search/InquirySearchPanel.js +6 -13
  346. package/dist/inquiry/v2/search/InquirySearchPanel.js.map +1 -1
  347. package/dist/inquiry/v2/search/InquirySearchPanel.mjs +4 -8
  348. package/dist/inquiry/v2/search/InquirySearchPanel.mjs.map +1 -1
  349. package/dist/inquiry/v2/search/RecordFinder.d.ts +30 -1
  350. package/dist/inquiry/v2/search/RecordFinder.d.ts.map +1 -1
  351. package/dist/inquiry/v2/search/RecordFinder.js +43 -20
  352. package/dist/inquiry/v2/search/RecordFinder.js.map +1 -1
  353. package/dist/inquiry/v2/search/RecordFinder.mjs +68 -42
  354. package/dist/inquiry/v2/search/RecordFinder.mjs.map +1 -1
  355. package/dist/inquiry/v2/search/index.d.ts +3 -3
  356. package/dist/inquiry/v2/search/index.d.ts.map +1 -1
  357. package/dist/inquiry/v2/search/index.js +1 -1
  358. package/dist/inquiry/v2/search/index.js.map +1 -1
  359. package/dist/inquiry/v2/search/searchModel.d.ts +130 -23
  360. package/dist/inquiry/v2/search/searchModel.d.ts.map +1 -1
  361. package/dist/inquiry/v2/search/searchModel.js +237 -36
  362. package/dist/inquiry/v2/search/searchModel.js.map +1 -1
  363. package/dist/inquiry/v2/search/searchModel.mjs +207 -34
  364. package/dist/inquiry/v2/search/searchModel.mjs.map +1 -1
  365. package/dist/inquiry/v2/search/useInquirySearch.d.ts.map +1 -1
  366. package/dist/inquiry/v2/search/useInquirySearch.js +46 -19
  367. package/dist/inquiry/v2/search/useInquirySearch.js.map +1 -1
  368. package/dist/inquiry/v2/search/useInquirySearch.mjs +83 -84
  369. package/dist/inquiry/v2/search/useInquirySearch.mjs.map +1 -1
  370. package/dist/inquiry/v2/tree/InquiryFluentTreeMenu.d.ts +4 -1
  371. package/dist/inquiry/v2/tree/InquiryFluentTreeMenu.d.ts.map +1 -1
  372. package/dist/inquiry/v2/tree/InquiryFluentTreeMenu.js +174 -166
  373. package/dist/inquiry/v2/tree/InquiryFluentTreeMenu.js.map +1 -1
  374. package/dist/inquiry/v2/tree/InquiryFluentTreeMenu.mjs +343 -325
  375. package/dist/inquiry/v2/tree/InquiryFluentTreeMenu.mjs.map +1 -1
  376. package/dist/inquiry/v2/tree/InquiryMenuToolbar.d.ts +3 -1
  377. package/dist/inquiry/v2/tree/InquiryMenuToolbar.d.ts.map +1 -1
  378. package/dist/inquiry/v2/tree/InquiryMenuToolbar.js +8 -7
  379. package/dist/inquiry/v2/tree/InquiryMenuToolbar.js.map +1 -1
  380. package/dist/inquiry/v2/tree/InquiryMenuToolbar.mjs +68 -72
  381. package/dist/inquiry/v2/tree/InquiryMenuToolbar.mjs.map +1 -1
  382. package/dist/inquiry/v2/tree/LoadRecordDialog.d.ts +3 -3
  383. package/dist/inquiry/v2/tree/LoadRecordDialog.d.ts.map +1 -1
  384. package/dist/inquiry/v2/tree/LoadRecordDialog.js +12 -7
  385. package/dist/inquiry/v2/tree/LoadRecordDialog.js.map +1 -1
  386. package/dist/inquiry/v2/tree/LoadRecordDialog.mjs +48 -33
  387. package/dist/inquiry/v2/tree/LoadRecordDialog.mjs.map +1 -1
  388. package/dist/inquiry/v2/tree/NodeList.d.ts.map +1 -1
  389. package/dist/inquiry/v2/tree/NodeList.js +17 -6
  390. package/dist/inquiry/v2/tree/NodeList.js.map +1 -1
  391. package/dist/inquiry/v2/tree/NodeList.mjs +49 -36
  392. package/dist/inquiry/v2/tree/NodeList.mjs.map +1 -1
  393. package/dist/inquiry/v2/tree/arrivalModel.d.ts +15 -0
  394. package/dist/inquiry/v2/tree/arrivalModel.d.ts.map +1 -1
  395. package/dist/inquiry/v2/tree/arrivalModel.js +14 -1
  396. package/dist/inquiry/v2/tree/arrivalModel.js.map +1 -1
  397. package/dist/inquiry/v2/tree/arrivalModel.mjs +12 -1
  398. package/dist/inquiry/v2/tree/arrivalModel.mjs.map +1 -1
  399. package/dist/inquiry/v2/tree/branchRefreshModel.d.ts +32 -0
  400. package/dist/inquiry/v2/tree/branchRefreshModel.d.ts.map +1 -0
  401. package/dist/inquiry/v2/tree/branchRefreshModel.js +62 -0
  402. package/dist/inquiry/v2/tree/branchRefreshModel.js.map +1 -0
  403. package/dist/inquiry/v2/tree/branchRefreshModel.mjs +60 -0
  404. package/dist/inquiry/v2/tree/branchRefreshModel.mjs.map +1 -0
  405. package/dist/inquiry/v2/tree/droppedPageModel.d.ts +23 -1
  406. package/dist/inquiry/v2/tree/droppedPageModel.d.ts.map +1 -1
  407. package/dist/inquiry/v2/tree/droppedPageModel.js +53 -26
  408. package/dist/inquiry/v2/tree/droppedPageModel.js.map +1 -1
  409. package/dist/inquiry/v2/tree/droppedPageModel.mjs +48 -20
  410. package/dist/inquiry/v2/tree/droppedPageModel.mjs.map +1 -1
  411. package/dist/inquiry/v2/tree/fluentTreeMenu/treeMenuVisuals.d.ts +7 -12
  412. package/dist/inquiry/v2/tree/fluentTreeMenu/treeMenuVisuals.d.ts.map +1 -1
  413. package/dist/inquiry/v2/tree/fluentTreeMenu/treeMenuVisuals.js +44 -15
  414. package/dist/inquiry/v2/tree/fluentTreeMenu/treeMenuVisuals.js.map +1 -1
  415. package/dist/inquiry/v2/tree/fluentTreeMenu/treeMenuVisuals.mjs +34 -15
  416. package/dist/inquiry/v2/tree/fluentTreeMenu/treeMenuVisuals.mjs.map +1 -1
  417. package/dist/inquiry/v2/tree/fluentTreeMenu/useAggregateBadges.d.ts.map +1 -1
  418. package/dist/inquiry/v2/tree/fluentTreeMenu/useAggregateBadges.js +7 -18
  419. package/dist/inquiry/v2/tree/fluentTreeMenu/useAggregateBadges.js.map +1 -1
  420. package/dist/inquiry/v2/tree/fluentTreeMenu/useAggregateBadges.mjs +6 -14
  421. package/dist/inquiry/v2/tree/fluentTreeMenu/useAggregateBadges.mjs.map +1 -1
  422. package/dist/inquiry/v2/tree/fluentTreeMenu/useChildCountBadges.d.ts +20 -16
  423. package/dist/inquiry/v2/tree/fluentTreeMenu/useChildCountBadges.d.ts.map +1 -1
  424. package/dist/inquiry/v2/tree/fluentTreeMenu/useChildCountBadges.js +77 -55
  425. package/dist/inquiry/v2/tree/fluentTreeMenu/useChildCountBadges.js.map +1 -1
  426. package/dist/inquiry/v2/tree/fluentTreeMenu/useChildCountBadges.mjs +85 -106
  427. package/dist/inquiry/v2/tree/fluentTreeMenu/useChildCountBadges.mjs.map +1 -1
  428. package/dist/inquiry/v2/tree/lineageModel.d.ts +18 -1
  429. package/dist/inquiry/v2/tree/lineageModel.d.ts.map +1 -1
  430. package/dist/inquiry/v2/tree/lineageModel.js +71 -2
  431. package/dist/inquiry/v2/tree/lineageModel.js.map +1 -1
  432. package/dist/inquiry/v2/tree/lineageModel.mjs +53 -3
  433. package/dist/inquiry/v2/tree/lineageModel.mjs.map +1 -1
  434. package/dist/inquiry/v2/tree/menuRebuildModel.d.ts +10 -27
  435. package/dist/inquiry/v2/tree/menuRebuildModel.d.ts.map +1 -1
  436. package/dist/inquiry/v2/tree/menuRebuildModel.js +8 -58
  437. package/dist/inquiry/v2/tree/menuRebuildModel.js.map +1 -1
  438. package/dist/inquiry/v2/tree/menuRebuildModel.mjs +8 -51
  439. package/dist/inquiry/v2/tree/menuRebuildModel.mjs.map +1 -1
  440. package/dist/inquiry/v2/tree/pagedChildrenModel.d.ts +26 -0
  441. package/dist/inquiry/v2/tree/pagedChildrenModel.d.ts.map +1 -0
  442. package/dist/inquiry/v2/tree/pagedChildrenModel.js +56 -0
  443. package/dist/inquiry/v2/tree/pagedChildrenModel.js.map +1 -0
  444. package/dist/inquiry/v2/tree/pagedChildrenModel.mjs +43 -0
  445. package/dist/inquiry/v2/tree/pagedChildrenModel.mjs.map +1 -0
  446. package/dist/inquiry/v2/tree/rootRemovalModel.d.ts +7 -0
  447. package/dist/inquiry/v2/tree/rootRemovalModel.d.ts.map +1 -1
  448. package/dist/inquiry/v2/tree/rootRemovalModel.js +31 -5
  449. package/dist/inquiry/v2/tree/rootRemovalModel.js.map +1 -1
  450. package/dist/inquiry/v2/tree/rootRemovalModel.mjs +21 -4
  451. package/dist/inquiry/v2/tree/rootRemovalModel.mjs.map +1 -1
  452. package/dist/inquiry/v2/tree/treeFilterModel.d.ts +0 -2
  453. package/dist/inquiry/v2/tree/treeFilterModel.d.ts.map +1 -1
  454. package/dist/inquiry/v2/tree/treeFilterModel.js +0 -7
  455. package/dist/inquiry/v2/tree/treeFilterModel.js.map +1 -1
  456. package/dist/inquiry/v2/tree/treeFilterModel.mjs.map +1 -1
  457. package/dist/inquiry/v2/tree/useInquiryMenu.d.ts +16 -7
  458. package/dist/inquiry/v2/tree/useInquiryMenu.d.ts.map +1 -1
  459. package/dist/inquiry/v2/tree/useInquiryMenu.js +401 -163
  460. package/dist/inquiry/v2/tree/useInquiryMenu.js.map +1 -1
  461. package/dist/inquiry/v2/tree/useInquiryMenu.mjs +511 -310
  462. package/dist/inquiry/v2/tree/useInquiryMenu.mjs.map +1 -1
  463. package/dist/inquiry/v2/tree/waveLoader.d.ts +10 -11
  464. package/dist/inquiry/v2/tree/waveLoader.d.ts.map +1 -1
  465. package/dist/inquiry/v2/tree/waveLoader.js +78 -72
  466. package/dist/inquiry/v2/tree/waveLoader.js.map +1 -1
  467. package/dist/inquiry/v2/tree/waveLoader.mjs +79 -68
  468. package/dist/inquiry/v2/tree/waveLoader.mjs.map +1 -1
  469. package/dist/inquiry/v2/widgets/listRow.module.css +27 -0
  470. package/dist/inquiry/v2/widgets/widgetRowModel.d.ts +6 -2
  471. package/dist/inquiry/v2/widgets/widgetRowModel.d.ts.map +1 -1
  472. package/dist/inquiry/v2/widgets/widgetRowModel.js +49 -14
  473. package/dist/inquiry/v2/widgets/widgetRowModel.js.map +1 -1
  474. package/dist/inquiry/v2/widgets/widgetRowModel.mjs +36 -12
  475. package/dist/inquiry/v2/widgets/widgetRowModel.mjs.map +1 -1
  476. package/dist/maintenance/UdpTaggedRecordsPage.mjs +1 -1
  477. package/dist/maintenance/api/lookupApi.mjs +1 -1
  478. package/dist/maintenance/api/tagsApi.mjs +1 -1
  479. package/dist/maintenance/config/nodeDefaults.d.ts.map +1 -1
  480. package/dist/maintenance/config/nodeDefaults.js +16 -5
  481. package/dist/maintenance/config/nodeDefaults.js.map +1 -1
  482. package/dist/maintenance/config/nodeDefaults.mjs +14 -5
  483. package/dist/maintenance/config/nodeDefaults.mjs.map +1 -1
  484. package/dist/maintenance/config/useEntityConfig.mjs +1 -1
  485. package/dist/maintenance/config/useLinkedLabels.mjs +1 -1
  486. package/dist/maintenance/grid/MaintenanceGrid.mjs +1 -1
  487. package/dist/maintenance/metadata/useEntityMetadata.mjs +1 -1
  488. package/dist/maintenance/record/ChildTab.mjs +1 -1
  489. package/dist/maintenance/record/DeleteRecordDialog.mjs +1 -1
  490. package/dist/maintenance/record/LinkRecordsSheet.mjs +1 -1
  491. package/dist/maintenance/record/RecordFacts.mjs +1 -1
  492. package/dist/maintenance/record/RecordSheet.mjs +2 -2
  493. package/dist/maintenance/record/displayValue.mjs +1 -1
  494. package/dist/maintenance/record/stampDisplayText.mjs +1 -1
  495. package/dist/maintenance/settings/useEntityCatalog.mjs +1 -1
  496. package/dist/maintenanceEngine/tableBrowser/TableColumnDefs.d.ts +4 -5
  497. package/dist/maintenanceEngine/tableBrowser/TableColumnDefs.d.ts.map +1 -1
  498. package/dist/stores/inquiryStore.d.ts +2 -1
  499. package/dist/stores/inquiryStore.d.ts.map +1 -1
  500. package/dist/stores/inquiryStore.js +4 -3
  501. package/dist/stores/inquiryStore.js.map +1 -1
  502. package/dist/stores/inquiryStore.mjs +18 -11
  503. package/dist/stores/inquiryStore.mjs.map +1 -1
  504. package/dist/udp/pages/UdpMaintenanceEnginePage/UdpMaintenanceEnginePage.d.ts.map +1 -1
  505. package/dist/udp/pages/UdpMaintenanceEnginePage/UdpMaintenanceEnginePage.js +1 -1
  506. package/dist/udp/pages/UdpMaintenanceEnginePage/UdpMaintenanceEnginePage.js.map +1 -1
  507. package/dist/udp/pages/UdpMaintenanceEnginePage/UdpMaintenanceEnginePage.mjs +2 -1
  508. package/dist/udp/pages/UdpMaintenanceEnginePage/UdpMaintenanceEnginePage.mjs.map +1 -1
  509. package/dist/udp/pages/UdpMaintenanceEnginePage/components/EntitiyTimeLine.mjs +1 -1
  510. package/dist/udp/utilities/useDateStringColumnDef.d.ts +1 -1
  511. package/dist/utilities/i18n/locales/es-US.json +23 -5
  512. package/dist/utilities/i18n/locales/es-US.mjs +24 -4
  513. package/dist/utilities/i18n/locales/fr-CA.json +23 -5
  514. package/dist/utilities/i18n/locales/fr-CA.mjs +24 -4
  515. package/package.json +30 -18
  516. package/dist/actionPanels/PanelActionForm.d.ts +0 -56
  517. package/dist/actionPanels/PanelActionForm.d.ts.map +0 -1
  518. package/dist/actionPanels/PanelActionForm.js +0 -30
  519. package/dist/actionPanels/PanelActionForm.js.map +0 -1
  520. package/dist/actionPanels/PanelActionForm.mjs +0 -168
  521. package/dist/actionPanels/PanelActionForm.mjs.map +0 -1
  522. package/dist/actionPanels/PanelEditor.d.ts +0 -44
  523. package/dist/actionPanels/PanelEditor.d.ts.map +0 -1
  524. package/dist/actionPanels/PanelEditor.js +0 -78
  525. package/dist/actionPanels/PanelEditor.js.map +0 -1
  526. package/dist/actionPanels/PanelEditor.mjs +0 -345
  527. package/dist/actionPanels/PanelEditor.mjs.map +0 -1
  528. package/dist/actionPanels/panelActionFields.module.css +0 -18
  529. package/dist/domain/inquiryTree/ruleBindings.d.ts +0 -10
  530. package/dist/domain/inquiryTree/ruleBindings.d.ts.map +0 -1
  531. package/dist/domain/inquiryTree/ruleBindings.js +0 -20
  532. package/dist/domain/inquiryTree/ruleBindings.js.map +0 -1
  533. package/dist/domain/inquiryTree/ruleBindings.mjs +0 -21
  534. package/dist/domain/inquiryTree/ruleBindings.mjs.map +0 -1
  535. package/dist/inquiry/v2/kernel/readOnlyModel.d.ts +0 -17
  536. package/dist/inquiry/v2/kernel/readOnlyModel.d.ts.map +0 -1
  537. package/dist/inquiry/v2/kernel/readOnlyModel.js +0 -19
  538. package/dist/inquiry/v2/kernel/readOnlyModel.js.map +0 -1
  539. package/dist/inquiry/v2/kernel/readOnlyModel.mjs +0 -21
  540. package/dist/inquiry/v2/kernel/readOnlyModel.mjs.map +0 -1
@@ -1,29 +1,18 @@
1
1
  import { toUpperFirstChar } from "../../utilities/input/StringUtilities.mjs";
2
2
  import { applyRule, mapRuleVariables } from "./rules.mjs";
3
- import { isGroupNode } from "./types.mjs";
4
3
  import { formatTreeLabel } from "./view.mjs";
5
4
  import { toWireString } from "./wireString.mjs";
6
5
  //#region src/domain/inquiryTree/runtime.ts
7
- /**
8
- * Viewer runtime layer — the typed, pure replacement for the legacy renderer's
9
- * in-place node enrichment (TreeUtilities.processObjIndex :594-716 and the icon
10
- * derivation in InquiryTreeMenu.renderTree :337-375). Nothing here mutates the
11
- * canonical node — the §3 single-object rule.
12
- *
13
- * Everything here is a verbatim behavioral port; quirks are kept on purpose so
14
- * Inquiry renders identically after the migration (parity discipline, §4.8).
15
- */
16
- const resolveDisplayName = (node, obj) => formatTreeLabel(node.properties.displayName, obj) ?? "";
17
- const resolveDisplayDetails = (node, obj) => formatTreeLabel(node.properties.displayDetails, obj) ?? "";
18
- const resolveHeaderTitle = (node, obj) => formatTreeLabel(node.properties.headerName, obj) ?? "";
19
- const evaluateIconExpression = (expression, node, obj, wasLazyLoaded) => {
6
+ const resolveDisplayName = (node, obj) => formatTreeLabel(node.properties.displayName, obj);
7
+ const resolveDisplayDetails = (node, obj) => formatTreeLabel(node.properties.displayDetails, obj);
8
+ const evaluateIconExpression = (expression, obj) => {
20
9
  if (!expression) return null;
21
- const result = applyRule(expression, obj, node.properties.joiningEntityCatalogObjectKey, wasLazyLoaded);
10
+ const result = applyRule(expression, obj);
22
11
  return result ? result : null;
23
12
  };
24
13
  const toConditionalIconParts = (evaluated) => evaluated ? {
25
14
  name: evaluated.name || "",
26
- colorHex: evaluated.iconColor?.hex,
15
+ colorHex: evaluated.iconColor ? evaluated.iconColor.hex : void 0,
27
16
  type: evaluated.type || "",
28
17
  fluentName: evaluated.fluentName || ""
29
18
  } : {
@@ -40,9 +29,9 @@ const toConditionalIconParts = (evaluated) => evaluated ? {
40
29
  * ('' triple on no match — legacy resets explicitly), preserving the legacy
41
30
  * two-step contract for the display-tree layer.
42
31
  */
43
- const evaluateConditionalIconParts = (node, obj, wasLazyLoaded = false) => {
32
+ const evaluateConditionalIconParts = (node, obj) => {
44
33
  if (!node.properties.conditionalNodeIconExpression) return null;
45
- return toConditionalIconParts(evaluateIconExpression(node.properties.conditionalNodeIconExpression, node, obj, wasLazyLoaded));
34
+ return toConditionalIconParts(evaluateIconExpression(node.properties.conditionalNodeIconExpression, obj));
46
35
  };
47
36
  /**
48
37
  * Evaluate the node's conditional ADORNMENT expression into the separate
@@ -51,10 +40,10 @@ const evaluateConditionalIconParts = (node, obj, wasLazyLoaded = false) => {
51
40
  * conditionalIconExpression fallback (original adornments were stored as
52
41
  * conditionalIcons). Returns null when the node has neither expression.
53
42
  */
54
- const evaluateConditionalAdornmentParts = (node, obj, wasLazyLoaded = false) => {
43
+ const evaluateConditionalAdornmentParts = (node, obj) => {
55
44
  const props = node.properties;
56
45
  if (!props.conditionalNodeAdornmentExpression && !props.conditionalIconExpression) return null;
57
- return toConditionalIconParts(evaluateIconExpression(props.conditionalNodeAdornmentExpression ? props.conditionalNodeAdornmentExpression : props.conditionalIconExpression, node, obj, wasLazyLoaded));
46
+ return toConditionalIconParts(evaluateIconExpression(props.conditionalNodeAdornmentExpression ? props.conditionalNodeAdornmentExpression : props.conditionalIconExpression, obj));
58
47
  };
59
48
  /**
60
49
  * Conditional node hiding — port of checkNodeIsHidden (TreeUtilities.js:2199-2229):
@@ -62,14 +51,14 @@ const evaluateConditionalAdornmentParts = (node, obj, wasLazyLoaded = false) =>
62
51
  * an entity node with hiddenNode.enabled hides when the variable-mapped rule
63
52
  * evaluates truthy against the data object.
64
53
  */
65
- const isNodeHidden = (node, obj, wasLazyLoaded = false) => {
54
+ const isNodeHidden = (node, obj) => {
66
55
  if (!node || !Object.keys(node).length) return true;
67
- if (isGroupNode(node)) return false;
56
+ if (node.isGroupNode) return false;
68
57
  const hiddenNode = node.properties.hiddenNode;
69
58
  if (!hiddenNode?.enabled) return false;
70
59
  const rule = mapRuleVariables(hiddenNode.propertyMapping, hiddenNode.jsonLogic);
71
60
  if (!rule) return false;
72
- return Boolean(applyRule(rule, obj, node.properties.joiningEntityCatalogObjectKey, wasLazyLoaded));
61
+ return Boolean(applyRule(rule, obj));
73
62
  };
74
63
  /**
75
64
  * Identifier property names for an entity. Port of
@@ -88,6 +77,12 @@ const getSearchIdentifiers = (catalogObjects, catalogReturnObject) => {
88
77
  return (match?.properties?.filter((property) => (property?.extendedProperties)?.identifier))?.map((property) => property.name) ?? [];
89
78
  };
90
79
  /**
80
+ * A level's search identifiers, in the order its `?nodeSearch` values are
81
+ * written: configured associatedTreePrimaryKeyMap keys replace the catalog's
82
+ * identifiers entirely (processObjIndex :665-669).
83
+ */
84
+ const getLevelSearchIdentifiers = (catalogObjects, { catalogReturnObject, associatedTreePrimaryKeyMap }) => associatedTreePrimaryKeyMap ? Object.keys(associatedTreePrimaryKeyMap) : getSearchIdentifiers(catalogObjects, catalogReturnObject);
85
+ /**
91
86
  * Build the record-fetch filters for a node's data row — port of the
92
87
  * catalogReturnObject block of processObjIndex (:657-706), quirks preserved:
93
88
  * associatedTreePrimaryKeyMap keys replace catalog identifiers entirely; a falsy
@@ -100,9 +95,8 @@ const buildRuntimeSearchState = (node, obj, catalogObjects) => {
100
95
  filterElements: [],
101
96
  searchValue: ""
102
97
  };
103
- let searchIdentifiers = getSearchIdentifiers(catalogObjects, node.properties.catalogReturnObject);
98
+ const searchIdentifiers = getLevelSearchIdentifiers(catalogObjects, node.properties);
104
99
  const primaryKeyMap = node.properties.associatedTreePrimaryKeyMap;
105
- if (primaryKeyMap) searchIdentifiers = Object.keys(primaryKeyMap);
106
100
  const filterElements = [];
107
101
  const searchValues = [];
108
102
  const joiningKey = node.properties.joiningEntityCatalogObjectKey;
@@ -125,7 +119,18 @@ const buildRuntimeSearchState = (node, obj, catalogObjects) => {
125
119
  searchValue: toWireString(searchValues)
126
120
  };
127
121
  };
122
+ /**
123
+ * A saved query's parameters filled from a record: each `params.*` name mapped
124
+ * to the record field that supplies it (legacy mapNodeObjValuesToSearchParameters,
125
+ * TreeUtilities.js:2790). An unmapped parameter keeps its empty mapping and a
126
+ * missing value queries as ''. Row aggregate chips and header alerts both read
127
+ * their counts through it, so the same mapping means the same number.
128
+ */
129
+ const queryParamsFromRecord = (record, mappings) => {
130
+ if (!mappings || !record) return {};
131
+ return Object.fromEntries(Object.entries(mappings).map(([param, field]) => [param, field ? (record[field] ?? "") || "" : field]));
132
+ };
128
133
  //#endregion
129
- export { buildRuntimeSearchState, evaluateConditionalAdornmentParts, evaluateConditionalIconParts, getSearchIdentifiers, isNodeHidden, resolveDisplayDetails, resolveDisplayName, resolveHeaderTitle };
134
+ export { buildRuntimeSearchState, evaluateConditionalAdornmentParts, evaluateConditionalIconParts, getLevelSearchIdentifiers, getSearchIdentifiers, isNodeHidden, queryParamsFromRecord, resolveDisplayDetails, resolveDisplayName };
130
135
 
131
136
  //# sourceMappingURL=runtime.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"runtime.mjs","names":["ConditionalIconRule","EntityNode","JsonLogic","TreeNode","isGroupNode","CatalogObject","formatTreeLabel","applyRule","mapRuleVariables","toWireString","toUpperFirstChar","RuntimeFilterElement","searchField","searchOperator","searchValue","resolveDisplayName","node","obj","Record","properties","displayName","resolveDisplayDetails","displayDetails","resolveHeaderTitle","headerName","EvaluatedIconRule","Pick","evaluateIconExpression","expression","wasLazyLoaded","result","joiningEntityCatalogObjectKey","ConditionalIconParts","name","colorHex","type","fluentName","toConditionalIconParts","evaluated","iconColor","hex","evaluateConditionalIconParts","conditionalNodeIconExpression","evaluateConditionalAdornmentParts","props","conditionalNodeAdornmentExpression","conditionalIconExpression","isNodeHidden","Object","keys","length","hiddenNode","enabled","rule","propertyMapping","jsonLogic","Boolean","getSearchIdentifiers","catalogObjects","catalogReturnObject","match","find","candidate","catalogObjectName","keyFieldNames","businessObjectKeyFieldNames","split","identifierProps","filter","property","extendedProperties","identifier","map","RuntimeSearchState","searchIdentifiers","filterElements","buildRuntimeSearchState","primaryKeyMap","associatedTreePrimaryKeyMap","searchValues","joiningKey","forEach","sourceKey","push"],"sources":["../../../src/domain/inquiryTree/runtime.ts"],"sourcesContent":["/**\n * Viewer runtime layer — the typed, pure replacement for the legacy renderer's\n * in-place node enrichment (TreeUtilities.processObjIndex :594-716 and the icon\n * derivation in InquiryTreeMenu.renderTree :337-375). Nothing here mutates the\n * canonical node — the §3 single-object rule.\n *\n * Everything here is a verbatim behavioral port; quirks are kept on purpose so\n * Inquiry renders identically after the migration (parity discipline, §4.8).\n */\nimport {\n ConditionalIconRule,\n EntityNode,\n JsonLogic,\n TreeNode,\n isGroupNode\n} from './types';\nimport { CatalogObject } from './legalChildren';\nimport { formatTreeLabel } from './view';\nimport { applyRule, mapRuleVariables } from './rules';\nimport { toWireString } from './wireString';\nimport {\n toUpperFirstChar\n} from '../../utilities/input/StringUtilities';\n\n/** One `=` filter for the node's record fetch — legacy properties.filterElements shape. */\nexport interface RuntimeFilterElement {\n searchField: string;\n searchOperator: '=';\n searchValue: unknown;\n}\n\n/* ------------------------------------------------------------------ labels */\n\n/*\n * `formatTreeLabel` is a verbatim legacy port that hands a missing template\n * back — `undefined` TYPED as string (view.ts:154). These resolvers are the\n * boundary where that lie would enter typed models (they crashed the viewer\n * once, via headerTitle.trim()), so each one coerces to '' here and nowhere\n * else. Callers all read labels with `||`, so '' and undefined pick the same\n * fallback.\n */\n\nexport const resolveDisplayName = (\n node: EntityNode,\n obj: Record<string, unknown>\n): string => formatTreeLabel(node.properties.displayName, obj) ?? '';\n\nexport const resolveDisplayDetails = (\n node: EntityNode,\n obj: Record<string, unknown>\n): string => formatTreeLabel(node.properties.displayDetails, obj) ?? '';\n\nexport const resolveHeaderTitle = (\n node: EntityNode,\n obj: Record<string, unknown>\n): string => formatTreeLabel(node.properties.headerName, obj) ?? '';\n\n/* ------------------------------------------------------------------- icons */\n\n/**\n * Result of evaluating a compiled conditional icon/adornment expression: the\n * matched rule payload ({name, iconColor, type}) or null/undefined on no match.\n */\ntype EvaluatedIconRule = Pick<\n ConditionalIconRule,\n 'name' | 'iconColor' | 'type' | 'fluentName'\n>;\n\nconst evaluateIconExpression = (\n expression: JsonLogic | null | undefined,\n node: EntityNode,\n obj: Record<string, unknown>,\n wasLazyLoaded: boolean\n): EvaluatedIconRule | null => {\n if (!expression) return null;\n const result = applyRule(\n expression,\n obj,\n node.properties.joiningEntityCatalogObjectKey,\n wasLazyLoaded\n );\n return result ? (result as EvaluatedIconRule) : null;\n};\n\n/**\n * Raw conditional icon/adornment parts as the legacy display producer stored\n * them on the display node (processObjIndex writes the three properties\n * separately and InquiryTreeMenu.renderTree merges at render time).\n */\nexport interface ConditionalIconParts {\n /** Matched rule's name, '' when no rule matched (or the match had no name). */\n name: string;\n /**\n * Matched rule's iconColor hex — undefined when the matched rule carries no\n * color (legacy stores the raw `iconColor?.hex`), '' when no rule matched.\n */\n colorHex: string | undefined;\n /** Matched rule's type ('' fallback), '' when no rule matched. */\n type: string;\n /** Matched rule's stencil registry name; '' when absent or no match. */\n fluentName: string;\n}\n\nconst toConditionalIconParts = (\n evaluated: EvaluatedIconRule | null\n): ConditionalIconParts =>\n evaluated\n ? {\n name: evaluated.name || '',\n colorHex: evaluated.iconColor?.hex,\n type: evaluated.type || '',\n fluentName: evaluated.fluentName || ''\n }\n : { name: '', colorHex: '', type: '', fluentName: '' };\n\n/**\n * Evaluate the node's conditional ICON expression into the separate legacy\n * display keys — exact port of processObjIndex (TreeUtilities.js:603-623).\n * Returns null when the node has no compiled expression (legacy writes\n * nothing); otherwise the parts to store as conditionalNodeIconName/Color/Type\n * ('' triple on no match — legacy resets explicitly), preserving the legacy\n * two-step contract for the display-tree layer.\n */\nexport const evaluateConditionalIconParts = (\n node: EntityNode,\n obj: Record<string, unknown>,\n wasLazyLoaded = false\n): ConditionalIconParts | null => {\n if (!node.properties.conditionalNodeIconExpression) return null;\n return toConditionalIconParts(\n evaluateIconExpression(\n node.properties.conditionalNodeIconExpression,\n node,\n obj,\n wasLazyLoaded\n )\n );\n};\n\n/**\n * Evaluate the node's conditional ADORNMENT expression into the separate\n * legacy display keys — exact port of processObjIndex\n * (TreeUtilities.js:625-657) including the deprecated\n * conditionalIconExpression fallback (original adornments were stored as\n * conditionalIcons). Returns null when the node has neither expression.\n */\nexport const evaluateConditionalAdornmentParts = (\n node: EntityNode,\n obj: Record<string, unknown>,\n wasLazyLoaded = false\n): ConditionalIconParts | null => {\n const props = node.properties;\n if (\n !props.conditionalNodeAdornmentExpression &&\n !props.conditionalIconExpression\n ) {\n return null;\n }\n // legacy ternary on truthiness (:629-642), not nullish coalescing\n const expression = props.conditionalNodeAdornmentExpression\n ? props.conditionalNodeAdornmentExpression\n : props.conditionalIconExpression;\n return toConditionalIconParts(\n evaluateIconExpression(expression, node, obj, wasLazyLoaded)\n );\n};\n\n/* ------------------------------------------------------------------ hidden */\n\n/**\n * Conditional node hiding — port of checkNodeIsHidden (TreeUtilities.js:2199-2229):\n * an empty/missing node is hidden; a group node is never rule-hidden (legacy TODO);\n * an entity node with hiddenNode.enabled hides when the variable-mapped rule\n * evaluates truthy against the data object.\n */\nexport const isNodeHidden = (\n node: TreeNode | null | undefined,\n obj: Record<string, unknown>,\n wasLazyLoaded = false\n): boolean => {\n if (!node || !Object.keys(node).length) return true;\n if (isGroupNode(node)) return false;\n const hiddenNode = node.properties.hiddenNode;\n if (!hiddenNode?.enabled) return false;\n const rule = mapRuleVariables(\n hiddenNode.propertyMapping as Record<string, string> | undefined,\n hiddenNode.jsonLogic\n );\n if (!rule) return false;\n return Boolean(\n applyRule(\n rule,\n obj,\n node.properties.joiningEntityCatalogObjectKey,\n wasLazyLoaded\n )\n );\n};\n\n/* ------------------------------------------------------- search identifiers */\n\n/**\n * Identifier property names for an entity. Port of\n * SearchUtilities.getSearchIdentifiers, colocated here because runtime filter\n * building depends on it. Catalogs from regenerated backends carry the primary\n * key field names at the object level (`businessObjectKeyFieldNames`), in the\n * same order as the values in BusinessObjectKey; older catalogs fall back to\n * identifier-flagged properties in catalog order (ambiguous for composite\n * keys).\n */\nexport const getSearchIdentifiers = (\n catalogObjects: CatalogObject[] | null | undefined,\n catalogReturnObject: string | null | undefined\n): string[] => {\n if (!catalogObjects || !catalogReturnObject) return [];\n const match = catalogObjects.find(\n (candidate) => candidate.catalogObjectName === catalogReturnObject\n );\n const keyFieldNames = match?.businessObjectKeyFieldNames;\n if (typeof keyFieldNames === 'string' && keyFieldNames) {\n return keyFieldNames.split(',');\n }\n const identifierProps = match?.properties?.filter(\n (property) =>\n (property?.extendedProperties as { identifier?: unknown } | null)\n ?.identifier\n );\n return (\n identifierProps?.map((property) => property.name as string) ?? []\n );\n};\n\nexport interface RuntimeSearchState {\n searchIdentifiers: string[];\n filterElements: RuntimeFilterElement[];\n searchValue: string;\n}\n\n/**\n * Build the record-fetch filters for a node's data row — port of the\n * catalogReturnObject block of processObjIndex (:657-706), quirks preserved:\n * associatedTreePrimaryKeyMap keys replace catalog identifiers entirely; a falsy\n * direct value falls through to the joining-entity object; missing values\n * serialize as ''.\n */\nexport const buildRuntimeSearchState = (\n node: EntityNode,\n obj: Record<string, unknown>,\n catalogObjects: CatalogObject[] | null | undefined\n): RuntimeSearchState => {\n if (!node.properties.catalogReturnObject) {\n return { searchIdentifiers: [], filterElements: [], searchValue: '' };\n }\n let searchIdentifiers = getSearchIdentifiers(\n catalogObjects,\n node.properties.catalogReturnObject\n );\n const primaryKeyMap = node.properties.associatedTreePrimaryKeyMap;\n if (primaryKeyMap) {\n searchIdentifiers = Object.keys(primaryKeyMap);\n }\n\n const filterElements: RuntimeFilterElement[] = [];\n const searchValues: unknown[] = [];\n const joiningKey = node.properties.joiningEntityCatalogObjectKey;\n searchIdentifiers.forEach((identifier) => {\n const searchField = identifier\n ? (toUpperFirstChar(identifier) as string)\n : '';\n const sourceKey = primaryKeyMap?.[identifier] ?? identifier;\n let searchValue: unknown = '';\n if (obj[sourceKey]) {\n searchValue = obj[sourceKey];\n } else if (joiningKey) {\n searchValue = obj[joiningKey]\n ? (obj[joiningKey] as Record<string, unknown>)[sourceKey]\n : '';\n }\n filterElements.push({\n searchField,\n searchOperator: '=',\n searchValue: searchValue ?? ''\n });\n searchValues.push(searchValue);\n });\n\n return {\n searchIdentifiers,\n filterElements,\n searchValue: toWireString(searchValues)\n };\n};\n\n"],"mappings":"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"}
1
+ {"version":3,"file":"runtime.mjs","names":["ConditionalIconRule","EntityNodeProperties","JsonLogic","LevelConfig","CatalogObject","formatTreeLabel","applyRule","mapRuleVariables","toWireString","toUpperFirstChar","RuntimeFilterElement","searchField","searchOperator","searchValue","resolveDisplayName","node","obj","Record","properties","displayName","resolveDisplayDetails","displayDetails","EvaluatedIconRule","Pick","evaluateIconExpression","expression","result","ConditionalIconParts","name","colorHex","type","fluentName","toConditionalIconParts","evaluated","iconColor","hex","undefined","evaluateConditionalIconParts","conditionalNodeIconExpression","evaluateConditionalAdornmentParts","props","conditionalNodeAdornmentExpression","conditionalIconExpression","isNodeHidden","isGroupNode","Object","keys","length","hiddenNode","enabled","rule","propertyMapping","jsonLogic","Boolean","getSearchIdentifiers","catalogObjects","catalogReturnObject","match","find","candidate","catalogObjectName","keyFieldNames","businessObjectKeyFieldNames","split","identifierProps","filter","property","extendedProperties","identifier","map","getLevelSearchIdentifiers","associatedTreePrimaryKeyMap","RuntimeSearchState","searchIdentifiers","filterElements","buildRuntimeSearchState","primaryKeyMap","searchValues","joiningKey","joiningEntityCatalogObjectKey","forEach","sourceKey","push","queryParamsFromRecord","record","mappings","fromEntries","entries","param","field"],"sources":["../../../src/domain/inquiryTree/runtime.ts"],"sourcesContent":["/**\n * Viewer runtime layer — the typed, pure replacement for the legacy renderer's\n * in-place node enrichment (TreeUtilities.processObjIndex :594-716 and the icon\n * derivation in InquiryTreeMenu.renderTree :337-375). Nothing here mutates the\n * canonical node — the §3 single-object rule.\n *\n * Everything here is a verbatim behavioral port; quirks are kept on purpose so\n * Inquiry renders identically after the migration (parity discipline, §4.8).\n */\nimport {\n ConditionalIconRule,\n EntityNodeProperties,\n JsonLogic,\n LevelConfig\n} from './types';\nimport { CatalogObject } from './legalChildren';\nimport { formatTreeLabel } from './view';\nimport { applyRule, mapRuleVariables } from './rules';\nimport { toWireString } from './wireString';\nimport {\n toUpperFirstChar\n} from '../../utilities/input/StringUtilities';\n\n/** One `=` filter for the node's record fetch — legacy properties.filterElements shape. */\nexport interface RuntimeFilterElement {\n searchField: string;\n searchOperator: '=';\n searchValue: unknown;\n}\n\n/* ------------------------------------------------------------------ labels */\n\nexport const resolveDisplayName = (\n node: LevelConfig,\n obj: Record<string, unknown>\n): string => formatTreeLabel(node.properties.displayName, obj);\n\nexport const resolveDisplayDetails = (\n node: LevelConfig,\n obj: Record<string, unknown>\n): string => formatTreeLabel(node.properties.displayDetails, obj);\n\n/* ------------------------------------------------------------------- icons */\n\n/**\n * Result of evaluating a compiled conditional icon/adornment expression: the\n * matched rule payload ({name, iconColor, type}) or null/undefined on no match.\n */\ntype EvaluatedIconRule = Pick<\n ConditionalIconRule,\n 'name' | 'iconColor' | 'type' | 'fluentName'\n>;\n\nconst evaluateIconExpression = (\n expression: JsonLogic | null | undefined,\n obj: Record<string, unknown>\n): EvaluatedIconRule | null => {\n if (!expression) return null;\n const result = applyRule(expression, obj);\n return result ? (result as EvaluatedIconRule) : null;\n};\n\n/**\n * Raw conditional icon/adornment parts as the legacy display producer stored\n * them on the display node (processObjIndex writes the three properties\n * separately and InquiryTreeMenu.renderTree merges at render time).\n */\nexport interface ConditionalIconParts {\n /** Matched rule's name, '' when no rule matched (or the match had no name). */\n name: string;\n /**\n * Matched rule's iconColor hex — undefined when the matched rule carries no\n * color (legacy stores the raw `iconColor?.hex`), '' when no rule matched.\n */\n colorHex: string | undefined;\n /** Matched rule's type ('' fallback), '' when no rule matched. */\n type: string;\n /** Matched rule's stencil registry name; '' when absent or no match. */\n fluentName: string;\n}\n\nconst toConditionalIconParts = (\n evaluated: EvaluatedIconRule | null\n): ConditionalIconParts =>\n evaluated\n ? {\n name: evaluated.name || '',\n colorHex: evaluated.iconColor ? evaluated.iconColor.hex : undefined,\n type: evaluated.type || '',\n fluentName: evaluated.fluentName || ''\n }\n : { name: '', colorHex: '', type: '', fluentName: '' };\n\n/**\n * Evaluate the node's conditional ICON expression into the separate legacy\n * display keys — exact port of processObjIndex (TreeUtilities.js:603-623).\n * Returns null when the node has no compiled expression (legacy writes\n * nothing); otherwise the parts to store as conditionalNodeIconName/Color/Type\n * ('' triple on no match — legacy resets explicitly), preserving the legacy\n * two-step contract for the display-tree layer.\n */\nexport const evaluateConditionalIconParts = (\n node: LevelConfig,\n obj: Record<string, unknown>\n): ConditionalIconParts | null => {\n if (!node.properties.conditionalNodeIconExpression) return null;\n return toConditionalIconParts(\n evaluateIconExpression(node.properties.conditionalNodeIconExpression, obj)\n );\n};\n\n/**\n * Evaluate the node's conditional ADORNMENT expression into the separate\n * legacy display keys — exact port of processObjIndex\n * (TreeUtilities.js:625-657) including the deprecated\n * conditionalIconExpression fallback (original adornments were stored as\n * conditionalIcons). Returns null when the node has neither expression.\n */\nexport const evaluateConditionalAdornmentParts = (\n node: LevelConfig,\n obj: Record<string, unknown>\n): ConditionalIconParts | null => {\n const props = node.properties;\n if (\n !props.conditionalNodeAdornmentExpression &&\n !props.conditionalIconExpression\n ) {\n return null;\n }\n // legacy ternary on truthiness (:629-642), not nullish coalescing\n const expression = props.conditionalNodeAdornmentExpression\n ? props.conditionalNodeAdornmentExpression\n : props.conditionalIconExpression;\n return toConditionalIconParts(\n evaluateIconExpression(expression, obj)\n );\n};\n\n/* ------------------------------------------------------------------ hidden */\n\n/**\n * Conditional node hiding — port of checkNodeIsHidden (TreeUtilities.js:2199-2229):\n * an empty/missing node is hidden; a group node is never rule-hidden (legacy TODO);\n * an entity node with hiddenNode.enabled hides when the variable-mapped rule\n * evaluates truthy against the data object.\n */\nexport const isNodeHidden = (\n node: (LevelConfig & { isGroupNode?: boolean }) | null | undefined,\n obj: Record<string, unknown>\n): boolean => {\n if (!node || !Object.keys(node).length) return true;\n if (node.isGroupNode) return false;\n const hiddenNode = node.properties.hiddenNode;\n if (!hiddenNode?.enabled) return false;\n const rule = mapRuleVariables(\n hiddenNode.propertyMapping as Record<string, string> | undefined,\n hiddenNode.jsonLogic\n );\n if (!rule) return false;\n return Boolean(applyRule(rule, obj));\n};\n\n/* ------------------------------------------------------- search identifiers */\n\n/**\n * Identifier property names for an entity. Port of\n * SearchUtilities.getSearchIdentifiers, colocated here because runtime filter\n * building depends on it. Catalogs from regenerated backends carry the primary\n * key field names at the object level (`businessObjectKeyFieldNames`), in the\n * same order as the values in BusinessObjectKey; older catalogs fall back to\n * identifier-flagged properties in catalog order (ambiguous for composite\n * keys).\n */\nexport const getSearchIdentifiers = (\n catalogObjects: CatalogObject[] | null | undefined,\n catalogReturnObject: string | null | undefined\n): string[] => {\n if (!catalogObjects || !catalogReturnObject) return [];\n const match = catalogObjects.find(\n (candidate) => candidate.catalogObjectName === catalogReturnObject\n );\n const keyFieldNames = match?.businessObjectKeyFieldNames;\n if (typeof keyFieldNames === 'string' && keyFieldNames) {\n return keyFieldNames.split(',');\n }\n const identifierProps = match?.properties?.filter(\n (property) =>\n (property?.extendedProperties as { identifier?: unknown } | null)\n ?.identifier\n );\n return (\n identifierProps?.map((property) => property.name as string) ?? []\n );\n};\n\n/**\n * A level's search identifiers, in the order its `?nodeSearch` values are\n * written: configured associatedTreePrimaryKeyMap keys replace the catalog's\n * identifiers entirely (processObjIndex :665-669).\n */\nexport const getLevelSearchIdentifiers = (\n catalogObjects: CatalogObject[] | null | undefined,\n {\n catalogReturnObject,\n associatedTreePrimaryKeyMap\n }: Pick<EntityNodeProperties, 'catalogReturnObject' | 'associatedTreePrimaryKeyMap'>\n): string[] =>\n associatedTreePrimaryKeyMap\n ? Object.keys(associatedTreePrimaryKeyMap)\n : getSearchIdentifiers(catalogObjects, catalogReturnObject);\n\nexport interface RuntimeSearchState {\n searchIdentifiers: string[];\n filterElements: RuntimeFilterElement[];\n searchValue: string;\n}\n\n/**\n * Build the record-fetch filters for a node's data row — port of the\n * catalogReturnObject block of processObjIndex (:657-706), quirks preserved:\n * associatedTreePrimaryKeyMap keys replace catalog identifiers entirely; a falsy\n * direct value falls through to the joining-entity object; missing values\n * serialize as ''.\n */\nexport const buildRuntimeSearchState = (\n node: LevelConfig,\n obj: Record<string, unknown>,\n catalogObjects: CatalogObject[] | null | undefined\n): RuntimeSearchState => {\n if (!node.properties.catalogReturnObject) {\n return { searchIdentifiers: [], filterElements: [], searchValue: '' };\n }\n const searchIdentifiers = getLevelSearchIdentifiers(catalogObjects, node.properties);\n const primaryKeyMap = node.properties.associatedTreePrimaryKeyMap;\n\n const filterElements: RuntimeFilterElement[] = [];\n const searchValues: unknown[] = [];\n const joiningKey = node.properties.joiningEntityCatalogObjectKey;\n searchIdentifiers.forEach((identifier) => {\n const searchField = identifier\n ? (toUpperFirstChar(identifier) as string)\n : '';\n const sourceKey = primaryKeyMap?.[identifier] ?? identifier;\n let searchValue: unknown = '';\n if (obj[sourceKey]) {\n searchValue = obj[sourceKey];\n } else if (joiningKey) {\n searchValue = obj[joiningKey]\n ? (obj[joiningKey] as Record<string, unknown>)[sourceKey]\n : '';\n }\n filterElements.push({\n searchField,\n searchOperator: '=',\n searchValue: searchValue ?? ''\n });\n searchValues.push(searchValue);\n });\n\n return {\n searchIdentifiers,\n filterElements,\n searchValue: toWireString(searchValues)\n };\n};\n\n/**\n * A saved query's parameters filled from a record: each `params.*` name mapped\n * to the record field that supplies it (legacy mapNodeObjValuesToSearchParameters,\n * TreeUtilities.js:2790). An unmapped parameter keeps its empty mapping and a\n * missing value queries as ''. Row aggregate chips and header alerts both read\n * their counts through it, so the same mapping means the same number.\n */\nexport const queryParamsFromRecord = (\n record: Record<string, unknown> | null | undefined,\n mappings: Record<string, string> | null | undefined\n): Record<string, unknown> => {\n if (!mappings || !record) return {};\n return Object.fromEntries(\n Object.entries(mappings).map(([param, field]) => [\n param,\n field ? (record[field] ?? '') || '' : field\n ])\n );\n};\n"],"mappings":"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"}
@@ -2,49 +2,40 @@
2
2
  * Tolerant reader (wire → typed) and strict writer (typed → wire).
3
3
  * The ONLY place in the codebase that reshapes tree data (foundation principle 1).
4
4
  *
5
- * Reader guarantees: no data loss. Unknown keys ride through unknownProperties /
6
- * unknownNodeKeys and are re-emitted on write. Old trees round-trip byte-safely
7
- * modulo the documented normalizations:
8
- * - searchFilterElements/searchTableColumns: read-time derivations of the
9
- * config, dropped on read (v2 derives them itself)
10
- * - typed color fields: '' | '#hex' string | react-color object → { hex } | null
11
- * - root parentId: '' ⇄ null
5
+ * Reader guarantees: no data loss and no reshaping — every value keeps its
6
+ * wire form (icon colours, the root's '' parentId). Unknown keys ride through
7
+ * unknownProperties / unknownNodeKeys and are re-emitted on write. Old trees
8
+ * round-trip byte-safely except what the detailed read stamps on
9
+ * (searchFilterElements, searchTableColumns, associatedInquiryTree): read-time
10
+ * derivations, dropped on read (v2 derives them or reads the linked tree).
12
11
  *
13
- * `toWire` is the READ shape — joins (panels, nodeActions, associatedInquiryTree)
14
- * included, so a working tree renders exactly as a saved one. `toPutBody` is
15
- * the tree PUT: the same minus the joins, which have their own endpoints.
12
+ * `toWire` is the READ shape — joins (panels, nodeActions) included, so a
13
+ * working tree renders exactly as a saved one — and the save's body.
16
14
  */
17
- import { IconColor, InquiryTree } from './types';
15
+ import { InquiryTree, InquiryTreeWire } from './types';
18
16
  import { validateTree } from './validate';
19
- /** '' | '#hex' | react-color object | {hex} | null/undefined → IconColor | null. */
20
- export declare const readIconColor: (raw: unknown) => IconColor;
21
- /** Domain color → legacy wire convention: no color = '', color = { hex }. */
22
- export declare const writeIconColor: (color: IconColor) => unknown;
23
17
  /**
24
- * Tolerant reader: the full GET wrapper → InquiryTree.
18
+ * Tolerant reader: GET inquiryTree/{id} → InquiryTree.
25
19
  * Accepts every known legacy quirk without data loss; never throws on shape surprises.
26
20
  */
27
- export declare const fromWire: (wire: Record<string, unknown>) => InquiryTree;
21
+ export declare const fromWire: (wire: InquiryTreeWire) => InquiryTree;
28
22
  export declare class TreeSerializationError extends Error {
29
23
  issues: ReturnType<typeof validateTree>;
30
- constructor(issues: ReturnType<typeof validateTree>);
24
+ /** `tree` names each issue's level (issueText). */
25
+ constructor(issues: ReturnType<typeof validateTree>, tree?: InquiryTree);
31
26
  }
32
27
  export interface ToWireOptions {
33
- /** Skip the strict-validation gate (used by tests exercising invalid trees). */
28
+ /**
29
+ * Skip the strict-validation gate: a tree handed on as read (the explore
30
+ * page's widgets) or written with only its status changed (archive) must
31
+ * not throw on issues it would not save with.
32
+ */
34
33
  skipValidation?: boolean;
35
34
  }
36
35
  /**
37
- * Strict writer: InquiryTree → the exact legacy PUT body shape
36
+ * Strict writer: InquiryTree → the GET shape the save takes back
38
37
  * (whole wrapper spread + flat `treeStructure` node array — never stringified).
39
38
  * Refuses to serialize a tree with validation errors.
40
39
  */
41
- export declare const toWire: (tree: InquiryTree, options?: ToWireOptions) => Record<string, unknown>;
42
- /**
43
- * The tree PUT body. The backend stores `treeStructure` verbatim, and the joins
44
- * are rows in their own tables written through their own endpoints — so the
45
- * JSON carries `panels: []` / `nodeActions: []` (the backend's own convention
46
- * when it duplicates a tree) and no associated tree. Same validation as
47
- * `toWire`.
48
- */
49
- export declare const toPutBody: (tree: InquiryTree, options?: ToWireOptions) => Record<string, unknown>;
40
+ export declare const toWire: (tree: InquiryTree, options?: ToWireOptions) => InquiryTreeWire;
50
41
  //# sourceMappingURL=serialize.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"serialize.d.ts","sourceRoot":"","sources":["../../../src/domain/inquiryTree/serialize.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AACH,OAAO,EAKL,SAAS,EACT,WAAW,EAIZ,MAAM,SAAS,CAAC;AACjB,OAAO,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAgF1C,sFAAoF;AACpF,eAAO,MAAM,aAAa,6BASzB,CAAC;AAEF,+EAA6E;AAC7E,eAAO,MAAM,cAAc,+BACmB,CAAC;AAyK/C;;;GAGG;AACH,eAAO,MAAM,QAAQ,gDAapB,CAAC;AAEF,qBAAa,sBAAuB,SAAQ,KAAK;IAC/C,MAAM,EAAE,UAAU,CAAC,OAAO,YAAY,CAAC,CAAC;IAExC,YAAY,MAAM,EAAE,UAAU,CAAC,OAAO,YAAY,CAAC,EASlD;CACF;AAED,MAAM,WAAW,aAAa;IAC5B,gFAAgF;IAChF,cAAc,CAAC,EAAE,OAAO,CAAC;CAC1B;AAED;;;;GAIG;AACH,eAAO,MAAM,MAAM,yEAgBlB,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,SAAS,yEAgBrB,CAAC"}
1
+ {"version":3,"file":"serialize.d.ts","sourceRoot":"","sources":["../../../src/domain/inquiryTree/serialize.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AACH,OAAO,EAIL,WAAW,EACX,eAAe,EAGhB,MAAM,SAAS,CAAC;AACjB,OAAO,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AA4K1C;;;GAGG;AACH,eAAO,MAAM,QAAQ,wCAQpB,CAAC;AAEF,qBAAa,sBAAuB,SAAQ,KAAK;IAC/C,MAAM,EAAE,UAAU,CAAC,OAAO,YAAY,CAAC,CAAC;IAExC,mDAAmD;IACnD,YAAY,MAAM,EAAE,UAAU,CAAC,OAAO,YAAY,CAAC,EAAE,IAAI,CAAC,EAAE,WAAW,EAStE;CACF;AAED,MAAM,WAAW,aAAa;IAC5B;;;;OAIG;IACH,cAAc,CAAC,EAAE,OAAO,CAAC;CAC1B;AAED;;;;GAIG;AACH,eAAO,MAAM,MAAM,iEAgBlB,CAAC"}