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 +1 @@
1
- {"version":3,"file":"waveLoad.mjs","names":["LazyChildSearchDescriptor","LazyFilterElement","ManyToManyKey","PromotedEntity","buildLazyLoadDescriptors","buildManyToManyChildFilterElements","buildSearchRequestData","inFilter","CatalogObject","DisplayNode","EntityNode","toUpperFirstChar","DEFAULT_ROOT_RECORD_COUNT","CHILD_PAGE_SIZE","parseInitialRecordCount","rootNode","parsed","parseInt","properties","Number","isFinite","isEagerLevel","node","EagerLevelPlan","parentNode","childNode","catalogObjectKey","EagerWave","planEagerWaves","origin","waves","frontier","length","wave","next","forEach","children","isGroupNode","push","collectPreExpandedLazyRows","roots","Array","pending","visit","isExpanded","lazyLoadChildrenArr","ParentRowRef","key","row","Record","ChildFetchBase","catalogReturnObject","apiMethodId","data","BulkChildFetch","kind","keyField","parentKeysByValue","ManyToManyChildFetch","childApiMethodId","manyToManyKeys","SingleParentChildFetch","parentKey","ChildFetch","ChildLevelFetchPlan","requests","errorsByParentKey","buildBulkChildRequestData","keyValues","pageSize","pageNumber","orderElements","sortColumn","sortDirection","buildManyToManyChildRequestData","request","joiningRows","batchableFilter","descriptor","filters","filterElements","filter","searchOperator","searchField","includes","value","searchValue","planChildLevelFetch","plan","parents","catalogObjects","promotedEntities","entityNameOf","name","buckets","Map","parent","descriptors","errorRetrievingChildren","undefined","String","jointMethodId","manyToManyJointEntityApiMethodId","bucketKey","bucket","get","set","Object","keys","readKeyField","field","raw","prototype","hasOwnProperty","call","wanted","toLowerCase","match","find","emptySlices","slices","values","sliceBulkChildRows","rows","parentKeys","sliceManyToManyChildRows","childRows","joiningKeyOf","map","searchValueKey","join","childKeyOf","searchNameKey","childrenByKey","joiningByParent","entries","seen","Set","joiningRow","child","has","add","graftChildRows","rowsByParentKey","index","buildRecordEntryFilterElements","identifiers","record","split","identifier"],"sources":["../../../src/domain/inquiryTree/waveLoad.ts"],"sourcesContent":["/**\n * Breadth-first wave loading — the pure planner behind v2's loading model.\n *\n * CONFIG DECIDES LOADING, NOT DATA:\n * - the ROOT level's `properties.noOfNodesDisplayed` is the initial record\n * count for the root page (default 25);\n * - a child level with `properties.eagerLoad === true` is EAGER: its rows are\n * fetched up front, in breadth-first waves, and the level renders expanded;\n * - every other child level is LAZY: collapsed, fetched on expand.\n * - the legacy `properties.lazyLoad` flag takes NO part in the decision.\n *\n * ONE REQUEST PER LEVEL PER WAVE. A wave fetches a whole level for ALL loaded\n * parent rows at once — `parentFK IN (v1,v2,…)` ordered by the parent FK — and\n * slices the response per parent on the client. The request shape mirrors the\n * bulk child COUNT path (lazyLoad.ts buildBulkCountAggregateData): same IN\n * filter, same order element, so the two can never drift.\n *\n * Lazy expand is the SAME code path with a single parent value, which is why\n * there is only one child-fetch planner here rather than a bulk one and a\n * per-row one.\n *\n * Everything in this module is pure: it plans requests and slices responses.\n * The HTTP, the caching and the display composition live in the v2 runtime.\n */\nimport {\n LazyChildSearchDescriptor,\n LazyFilterElement,\n ManyToManyKey,\n PromotedEntity,\n buildLazyLoadDescriptors,\n buildManyToManyChildFilterElements,\n buildSearchRequestData,\n inFilter\n} from './lazyLoad';\nimport { CatalogObject } from './legalChildren';\n// Type-only: waveLoad is imported BY displayTree (isEagerLevel), so the value\n// graph must stay one-way.\nimport type { DisplayNode } from './displayTree';\nimport { EntityNode } from './types';\nimport {\n toUpperFirstChar\n} from '../../utilities/input/StringUtilities';\n\n/* ------------------------------------------------------------------ config */\n\n/** Root page size when the root level carries no (or a junk) count. */\nexport const DEFAULT_ROOT_RECORD_COUNT = 25;\n\n/**\n * Rows fetched per parent for any non-root level. Fixed: a per-level\n * \"records displayed\" knob bought nothing but 65 more things to configure, and\n * every level below the root pages through Show More anyway.\n */\nexport const CHILD_PAGE_SIZE = 50;\n\n/**\n * The root level's initial record count — `properties.noOfNodesDisplayed`,\n * parsed as an integer. Junk, zero, negatives and absence all mean the default.\n */\nexport const parseInitialRecordCount = (\n rootNode: DisplayNode | null | undefined\n): number => {\n const parsed = parseInt(\n rootNode?.properties?.['noOfNodesDisplayed'] as string,\n 10\n );\n return Number.isFinite(parsed) && parsed > 0\n ? parsed\n : DEFAULT_ROOT_RECORD_COUNT;\n};\n\n/** THE load-mode rule: a level is eager only when its config says so. */\nexport const isEagerLevel = (node: DisplayNode | null | undefined): boolean =>\n node?.properties?.['eagerLoad'] === true;\n\n/* ------------------------------------------------------------ wave planning */\n\n/** One eager level to fetch in a wave, with the level whose rows parent it. */\nexport interface EagerLevelPlan {\n /** The config level whose rows are already loaded. */\n parentNode: DisplayNode;\n /** The eager config level to fetch for those rows. */\n childNode: DisplayNode;\n /** Association key the fetched rows are grafted onto the parent rows under. */\n catalogObjectKey: string;\n}\n\n/** Levels fetched together; waves run in order, requests within one in parallel. */\nexport type EagerWave = EagerLevelPlan[];\n\n/**\n * The eager levels below `origin`, grouped into breadth-first waves: wave 0 is\n * `origin`'s eager children, wave 1 the eager children of those, and so on to\n * any depth. Lazy levels end the walk — their rows do not exist until the user\n * expands them, at which point the same planner runs again from that level.\n */\nexport const planEagerWaves = (\n origin: DisplayNode | null | undefined\n): EagerWave[] => {\n const waves: EagerWave[] = [];\n let frontier: DisplayNode[] = origin ? [origin] : [];\n while (frontier.length) {\n const wave: EagerWave = [];\n const next: DisplayNode[] = [];\n frontier.forEach((parentNode) => {\n (parentNode.children ?? []).forEach((childNode) => {\n if (childNode?.isGroupNode || !isEagerLevel(childNode)) return;\n const catalogObjectKey = childNode.properties?.['catalogObjectKey'];\n if (typeof catalogObjectKey !== 'string' || !catalogObjectKey) return;\n wave.push({ parentNode, childNode, catalogObjectKey });\n next.push(childNode);\n });\n });\n if (!wave.length) break;\n waves.push(wave);\n frontier = next;\n }\n return waves;\n};\n\n/**\n * The rows a wave left OPEN but not loaded — what a MIXED parent (some levels\n * eager, some lazy) owes after hydration.\n *\n * A parent renders EXPANDED as soon as ONE of its levels is eager\n * (makeTreeStructure's parentsOfEagerLevels seed), so the user never toggles it\n * — and the lazy fetch hangs off exactly that toggle. Eager children present is\n * not the same as loaded: the eager/lazy split is per LEVEL, so these rows still\n * owe their lazy levels a fetch, and without this list they would never get one.\n *\n * OPEN is the whole test — an eager level that returned NOTHING must not change\n * the answer. A record grafted in by + Load or a `?node=` deep link composes\n * exactly like a seeded row (same builder, same seed) and routinely lands with\n * an empty eager level, so requiring rendered children silently excluded every\n * loaded record.\n *\n * Pure and display-shaped, so the viewer's effect stays a one-liner: fetch each\n * row through the SAME path an expand takes (one request per lazy level, one\n * parent value, cached), which marks it `completedLoadingChildren` — and that is\n * what stops both a re-expand and this collector from asking twice, a\n * zero-result level included.\n *\n * WHO CALLS IT is the load-mode gate. 'legacy-data' composes rows of the same\n * shape, and v1 has always left them to their expand — so only the owner that\n * plans its own levels (the v2 viewer, via the menu's injected `loadChildren`)\n * asks this question. Nothing here changes what v1 renders or fetches.\n */\nexport const collectPreExpandedLazyRows = (\n roots: Array<DisplayNode | null | undefined> | null | undefined\n): DisplayNode[] => {\n const pending: DisplayNode[] = [];\n const visit = (node: DisplayNode | null | undefined): void => {\n if (!node) return;\n if (\n !node.isGroupNode &&\n node.isExpanded === true &&\n node.properties?.['lazyLoad'] === true &&\n !node['completedLoadingChildren'] &&\n !!node.lazyLoadChildrenArr?.length\n ) {\n pending.push(node);\n }\n (node.children ?? []).forEach(visit);\n };\n (roots ?? []).forEach(visit);\n return pending;\n};\n\n/* ----------------------------------------------------------- child fetching */\n\n/** A loaded parent row plus the caller's stable handle on it. */\nexport interface ParentRowRef {\n key: string;\n row: Record<string, unknown>;\n}\n\ninterface ChildFetchBase {\n catalogObjectKey: string;\n catalogReturnObject: string | undefined;\n apiMethodId: string;\n data: Record<string, unknown>;\n}\n\n/** One IN request covering many parents; sliced back by `keyField`. */\nexport interface BulkChildFetch extends ChildFetchBase {\n kind: 'bulk';\n keyField: string;\n /** Filter value → the parent refs whose children it answers. */\n parentKeysByValue: Record<string, string[]>;\n}\n\n/**\n * Many-to-many through a promoted joining table: step 1 is the same IN request\n * against the joining table, step 2 fetches the child entity for every joining\n * row at once (buildManyToManyChildRequestData).\n */\nexport interface ManyToManyChildFetch extends ChildFetchBase {\n kind: 'manyToMany';\n keyField: string;\n parentKeysByValue: Record<string, string[]>;\n childApiMethodId: string;\n manyToManyKeys: ManyToManyKey[];\n}\n\n/**\n * The fallback for a binding that cannot be batched — composite parent keys,\n * dotted joining-table filters, many-to-many without a promoted joining search.\n * One request per parent, still issued inside the wave.\n */\nexport interface SingleParentChildFetch extends ChildFetchBase {\n kind: 'single';\n parentKey: string;\n}\n\nexport type ChildFetch =\n | BulkChildFetch\n | ManyToManyChildFetch\n | SingleParentChildFetch;\n\nexport interface ChildLevelFetchPlan {\n catalogObjectKey: string;\n requests: ChildFetch[];\n /** Parent ref key → why that parent has no request (un-promoted child, …). */\n errorsByParentKey: Record<string, string>;\n}\n\n/**\n * The lean search body every child fetch posts: `keyField IN (values)` ordered\n * by `keyField` so the server groups a parent's rows together. No eager\n * nesting — the next wave fetches the next level.\n */\nexport const buildBulkChildRequestData = (\n keyField: string,\n keyValues: string[],\n pageSize: number,\n pageNumber = 1\n): Record<string, unknown> => ({\n ...buildSearchRequestData(\n [inFilter(keyField, keyValues)],\n pageNumber,\n pageSize\n ),\n orderElements: [{ sortColumn: keyField, sortDirection: 'ASC' }]\n});\n\n/**\n * The second-step body of a many-to-many fetch: one IN filter per joining key\n * over every joining row the first step returned\n * (buildManyToManyChildFilterElements, legacy fetchManyToManyChildren:1153).\n */\nexport const buildManyToManyChildRequestData = (\n request: ManyToManyChildFetch,\n joiningRows: Array<Record<string, unknown>>,\n pageSize: number\n): Record<string, unknown> =>\n buildSearchRequestData(\n buildManyToManyChildFilterElements(request.manyToManyKeys, joiningRows),\n 1,\n pageSize\n );\n\n/**\n * A descriptor batches only when its parent context reduces to ONE plain `=`\n * filter on a scalar, undotted field: that is the only shape an IN list can\n * carry and a response can be sliced back by. Everything else falls to a\n * per-parent request.\n */\nconst batchableFilter = (\n descriptor: LazyChildSearchDescriptor\n): LazyFilterElement | null => {\n const filters = descriptor.data?.filterElements ?? [];\n if (filters.length !== 1) return null;\n const [filter] = filters;\n if (filter.searchOperator !== '=') return null;\n if (!filter.searchField || filter.searchField.includes('.')) return null;\n const value = filter.searchValue;\n if (typeof value !== 'string' && typeof value !== 'number') return null;\n if (value === '') return null;\n return filter;\n};\n\n/**\n * Plan the fetch of ONE level for a set of loaded parent rows. The per-parent\n * child search comes from `buildLazyLoadDescriptors` — the one owner of the\n * catalog-association rules (key-name casing, joining-table flips, identifier\n * fallbacks, the un-promoted-child error) — and this only decides how the\n * resulting searches batch.\n *\n * `pageSize` is per parent; a batched request asks for parents × pageSize.\n * Lazy expand calls this with a single parent and pages through `pageNumber`.\n */\nexport const planChildLevelFetch = (\n plan: EagerLevelPlan,\n parents: ParentRowRef[],\n catalogObjects: CatalogObject[] | null | undefined,\n promotedEntities: PromotedEntity[] | null | undefined,\n {\n pageSize = CHILD_PAGE_SIZE,\n pageNumber = 1\n }: { pageSize?: number; pageNumber?: number } = {}\n): ChildLevelFetchPlan => {\n const errorsByParentKey: Record<string, string> = {};\n const requests: ChildFetch[] = [];\n const entityNameOf = (node: DisplayNode): string => {\n const name = node.properties?.['catalogReturnObject'];\n return typeof name === 'string' && name ? name : 'unknown entity';\n };\n const catalogReturnObject = plan.childNode.properties?.[\n 'catalogReturnObject'\n ] as string | undefined;\n\n /** bucketKey → the accumulating batched request. */\n const buckets = new Map<string, BulkChildFetch | ManyToManyChildFetch>();\n\n parents.forEach((parent) => {\n let descriptor: LazyChildSearchDescriptor | undefined;\n try {\n const { descriptors, errorRetrievingChildren } = buildLazyLoadDescriptors(\n plan.parentNode as unknown as EntityNode,\n parent.row,\n [plan.childNode as unknown as EntityNode],\n catalogObjects,\n promotedEntities\n );\n if (errorRetrievingChildren) {\n errorsByParentKey[parent.key] = errorRetrievingChildren;\n }\n descriptor = descriptors[0];\n } catch {\n // buildLazyLoadDescriptors reproduces legacy's unguarded association read\n // (it throws when the parent entity has no catalog reference to the\n // child). One misconfigured level must not take the whole wave down.\n errorsByParentKey[parent.key] =\n `Error: no catalog association from ${entityNameOf(\n plan.parentNode\n )} to ${entityNameOf(plan.childNode)}`;\n }\n if (!descriptor) return;\n const apiMethodId =\n descriptor.apiMethodId === null || descriptor.apiMethodId === undefined\n ? null\n : String(descriptor.apiMethodId);\n if (!apiMethodId) return;\n\n const filter = batchableFilter(descriptor);\n const manyToManyKeys = descriptor.manyToManyKeys?.length\n ? descriptor.manyToManyKeys\n : null;\n const jointMethodId = descriptor.manyToManyJointEntityApiMethodId;\n\n if (!filter || (manyToManyKeys && !jointMethodId)) {\n requests.push({\n kind: 'single',\n catalogObjectKey: plan.catalogObjectKey,\n catalogReturnObject,\n apiMethodId,\n parentKey: parent.key,\n data: { ...descriptor.data, pageNumber, pageSize }\n });\n return;\n }\n\n const value = String(filter.searchValue as string | number);\n const bucketKey = manyToManyKeys\n ? `m2m::${apiMethodId}::${filter.searchField}::${String(jointMethodId)}`\n : `bulk::${apiMethodId}::${filter.searchField}`;\n let bucket = buckets.get(bucketKey);\n if (!bucket) {\n bucket = manyToManyKeys\n ? {\n kind: 'manyToMany',\n catalogObjectKey: plan.catalogObjectKey,\n catalogReturnObject,\n apiMethodId,\n keyField: filter.searchField,\n parentKeysByValue: {},\n childApiMethodId: String(jointMethodId),\n manyToManyKeys,\n data: {}\n }\n : {\n kind: 'bulk',\n catalogObjectKey: plan.catalogObjectKey,\n catalogReturnObject,\n apiMethodId,\n keyField: filter.searchField,\n parentKeysByValue: {},\n data: {}\n };\n buckets.set(bucketKey, bucket);\n requests.push(bucket);\n }\n (bucket.parentKeysByValue[value] ??= []).push(parent.key);\n });\n\n buckets.forEach((bucket) => {\n const keyValues = Object.keys(bucket.parentKeysByValue);\n bucket.data = buildBulkChildRequestData(\n bucket.keyField,\n keyValues,\n keyValues.length * pageSize,\n pageNumber\n );\n });\n\n return { catalogObjectKey: plan.catalogObjectKey, requests, errorsByParentKey };\n};\n\n/* ------------------------------------------------------------ response slicing */\n\n/**\n * Read a row field by name, case-insensitively (search fields are PascalCase,\n * wire rows camelCase), as the STRING its key value compares by. Anything that\n * is not a scalar is no key at all, so it reads as absent.\n */\nconst readKeyField = (\n row: Record<string, unknown>,\n field: string\n): string | null => {\n let raw: unknown;\n if (Object.prototype.hasOwnProperty.call(row, field)) {\n raw = row[field];\n } else {\n const wanted = field.toLowerCase();\n const match = Object.keys(row).find((key) => key.toLowerCase() === wanted);\n raw = match === undefined ? undefined : row[match];\n }\n if (typeof raw === 'string') return raw;\n if (typeof raw === 'number' || typeof raw === 'boolean') return String(raw);\n return null;\n};\n\nconst emptySlices = (\n parentKeysByValue: Record<string, string[]>\n): Record<string, Array<Record<string, unknown>>> => {\n const slices: Record<string, Array<Record<string, unknown>>> = {};\n Object.values(parentKeysByValue).forEach((keys) =>\n keys.forEach((key) => {\n slices[key] = [];\n })\n );\n return slices;\n};\n\n/**\n * Slice one batched response back to its parents by the IN field the request\n * grouped on. Rows whose key value belongs to no parent are dropped.\n *\n * ONE-PARENT ESCAPE HATCH: when the request covered a single parent value,\n * every row is that parent's — matching on the field would only be a way to\n * lose rows whose FK column the view doesn't project (and lazy expand always\n * takes this branch).\n */\nexport const sliceBulkChildRows = (\n request: BulkChildFetch | ManyToManyChildFetch,\n rows: Array<Record<string, unknown>> | null | undefined\n): Record<string, Array<Record<string, unknown>>> => {\n const slices = emptySlices(request.parentKeysByValue);\n const values = Object.keys(request.parentKeysByValue);\n if (!rows?.length) return slices;\n if (values.length === 1) {\n request.parentKeysByValue[values[0]].forEach((key) => {\n slices[key] = [...rows];\n });\n return slices;\n }\n rows.forEach((row) => {\n const value = readKeyField(row, request.keyField);\n if (value === null) return;\n const parentKeys = request.parentKeysByValue[value];\n if (!parentKeys) return;\n parentKeys.forEach((key) => slices[key].push(row));\n });\n return slices;\n};\n\n/**\n * Map a many-to-many level back to its parents: the joining rows carry the\n * parent key (step 1's IN field) and the child key, so a parent's children are\n * the child rows whose key matches one of its joining rows'.\n */\nexport const sliceManyToManyChildRows = (\n request: ManyToManyChildFetch,\n joiningRows: Array<Record<string, unknown>> | null | undefined,\n childRows: Array<Record<string, unknown>> | null | undefined\n): Record<string, Array<Record<string, unknown>>> => {\n const slices = emptySlices(request.parentKeysByValue);\n if (!joiningRows?.length || !childRows?.length) return slices;\n\n const joiningKeyOf = (row: Record<string, unknown>): string =>\n request.manyToManyKeys\n .map((key) => readKeyField(row, key.searchValueKey) ?? '')\n .join('|');\n const childKeyOf = (row: Record<string, unknown>): string =>\n request.manyToManyKeys\n .map((key) => readKeyField(row, key.searchNameKey) ?? '')\n .join('|');\n\n const childrenByKey = new Map<string, Array<Record<string, unknown>>>();\n childRows.forEach((row) => {\n const key = childKeyOf(row);\n const bucket = childrenByKey.get(key);\n if (bucket) bucket.push(row);\n else childrenByKey.set(key, [row]);\n });\n\n const joiningByParent = sliceBulkChildRows(request, joiningRows);\n Object.entries(joiningByParent).forEach(([parentKey, rows]) => {\n const seen = new Set<Record<string, unknown>>();\n rows.forEach((joiningRow) => {\n (childrenByKey.get(joiningKeyOf(joiningRow)) ?? []).forEach((child) => {\n if (seen.has(child)) return;\n seen.add(child);\n slices[parentKey].push(child);\n });\n });\n });\n return slices;\n};\n\n/* -------------------------------------------------------------- hydration */\n\n/**\n * Write one wave's rows onto their parents under the level's association key\n * and return the refs for the next wave. The parent rows are the runtime's own\n * private copies (never cache data), so this mutates them in place — the same\n * association shape the display composer walks, just filled by the wave loader\n * instead of by a nested server response.\n */\nexport const graftChildRows = (\n parents: ParentRowRef[],\n catalogObjectKey: string,\n rowsByParentKey: Record<string, Array<Record<string, unknown>>>\n): ParentRowRef[] => {\n const next: ParentRowRef[] = [];\n parents.forEach((parent) => {\n const rows = rowsByParentKey[parent.key] ?? [];\n parent.row[catalogObjectKey] = rows;\n rows.forEach((row, index) => {\n next.push({ key: `${parent.key}>${catalogObjectKey}#${index}`, row });\n });\n });\n return next;\n};\n\n/* ---------------------------------------------------------- entry by record */\n\n/**\n * Identifier `=` filters for an entry-from-record load: the `record` URL\n * parameter is the comma-joined identifier values of one record, in the order\n * the catalog lists the entity's search identifiers (the same string\n * getSearchValueString produces from a row). Field names go upper-first like\n * every other search the tree builds.\n */\nexport const buildRecordEntryFilterElements = (\n identifiers: string[] | null | undefined,\n record: string | null | undefined\n): LazyFilterElement[] => {\n if (!identifiers?.length || !record) return [];\n const values = String(record).split(',');\n return identifiers.map((identifier, index) => ({\n searchField: toUpperFirstChar(identifier) as string,\n searchOperator: '=',\n searchValue: values[index] ?? ''\n }));\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AA8CA,MAAaY,4BAA4B;;;;;;AAOzC,MAAaC,kBAAkB;;;;;AAM/B,MAAaC,2BACXC,aACW;CACX,MAAMC,SAASC,SACbF,UAAUG,aAAa,uBACvB,GACD;AACD,QAAOC,OAAOC,SAASJ,OAAO,IAAIA,SAAS,IACvCA,SAAAA;;;AAKN,MAAaK,gBAAgBC,SAC3BA,MAAMJ,aAAa,iBAAiB;;;;;;;AAuBtC,MAAaU,kBACXC,WACgB;CAChB,MAAMC,QAAqB,EAAE;CAC7B,IAAIC,WAA0BF,SAAS,CAACA,OAAO,GAAG,EAAE;AACpD,QAAOE,SAASC,QAAQ;EACtB,MAAMC,OAAkB,EAAE;EAC1B,MAAMC,OAAsB,EAAE;AAC9BH,WAASI,SAASX,eAAe;AAC/B,IAACA,WAAWY,YAAY,EAAE,EAAED,SAASV,cAAc;AACjD,QAAIA,WAAWY,eAAe,CAAChB,aAAaI,UAAU,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,GAAGiD,OAAOjD,IAAG,GAAIrB,iBAAgB,GAAIsH;IAAShG;IAAK,CAAC;IACrE;GACF;AACF,QAAOd;;;;;;;;;AAYT,MAAa+G,kCACXC,aACAC,WACwB;AACxB,KAAI,CAACD,aAAalH,UAAU,CAACmH,OAAQ,QAAO,EAAE;CAC9C,MAAM1B,SAASrB,OAAO+C,OAAO,CAACC,MAAM,IAAI;AACxC,QAAOF,YAAYlB,KAAKqB,YAAYL,WAAW;EAC7C7D,aAAaxE,iBAAiB0I,WAAW;EACzCnE,gBAAgB;EAChBI,aAAamC,OAAOuB,UAAU;EAC/B,EAAE"}
1
+ {"version":3,"file":"waveLoad.mjs","names":["LazyChildSearchDescriptor","LazyFilterElement","ManyToManyKey","PromotedEntity","buildLazyLoadDescriptors","buildManyToManyChildFilterElements","buildSearchRequestData","inFilter","isBlankKeyValue","CatalogObject","DisplayNode","loadsChildrenLazily","rowChildState","toWireString","toUpperFirstChar","DEFAULT_ROOT_RECORD_COUNT","CHILD_PAGE_SIZE","parseLazyPageSize","parentNode","parsed","parseInt","properties","Number","isFinite","parseInitialRecordCount","rootNode","EagerLevelPlan","childNode","catalogObjectKey","EagerWave","planEagerWaves","origin","waves","frontier","length","wave","next","forEach","children","isGroupNode","push","collectPreExpandedLazyRows","roots","Array","pending","visit","node","isExpanded","lazyLoadChildrenArr","ParentRowRef","key","row","Record","ChildFetchBase","catalogReturnObject","apiMethodId","data","BulkChildFetch","kind","keyField","parentKeysByValue","ManyToManyChildFetch","childApiMethodId","manyToManyKeys","SingleParentChildFetch","parentKey","ChildFetch","ChildLevelFetchPlan","requests","errorsByParentKey","buildBulkChildRequestData","keyValues","pageSize","pageNumber","orderElements","sortColumn","sortDirection","buildManyToManyChildRequestData","request","joiningRows","batchableFilter","descriptor","filters","filterElements","filter","searchOperator","searchField","includes","value","searchValue","planChildLevelFetch","plan","parents","catalogObjects","promotedEntities","buckets","Map","parent","descriptors","errorRetrievingChildren","absent","find","undefined","some","String","jointMethodId","manyToManyJointEntityApiMethodId","bucketKey","bucket","get","set","Object","keys","readKeyField","field","raw","prototype","hasOwnProperty","call","wanted","toLowerCase","match","emptySlices","slices","values","sliceBulkChildRows","rows","parentKeys","sliceManyToManyChildRows","childRows","joiningKeyOf","map","searchValueKey","join","childKeyOf","searchNameKey","childrenByKey","joiningByParent","entries","seen","Set","joiningRow","child","has","add","graftChildRows","rowsByParentKey","index","buildRecordEntryFilterElements","identifiers","identifier"],"sources":["../../../src/domain/inquiryTree/waveLoad.ts"],"sourcesContent":["/**\n * Breadth-first wave loading — the pure planner behind v2's loading model.\n *\n * CONFIG DECIDES LOADING, NOT DATA:\n * - the ROOT level's `properties.noOfNodesDisplayed` is the initial record\n * count for the root page (default 25);\n * - a level's child levels are LAZY when the level sets `properties.lazyLoad`\n * — collapsed, fetched on expand — and EAGER otherwise: fetched up front,\n * in breadth-first waves, rendered expanded. One setting on the parent,\n * the one both builders store and v1 reads (`loadsChildrenLazily`).\n *\n * ONE REQUEST PER LEVEL PER WAVE. A wave fetches a whole level for ALL loaded\n * parent rows at once — `parentFK IN (v1,v2,…)` ordered by the parent FK — and\n * slices the response per parent on the client. The request shape mirrors the\n * bulk child COUNT path (lazyLoad.ts buildBulkCountAggregateData): same IN\n * filter, same order element, so the two can never drift.\n *\n * Lazy expand is the SAME code path with a single parent value, which is why\n * there is only one child-fetch planner here rather than a bulk one and a\n * per-row one.\n *\n * Everything in this module is pure: it plans requests and slices responses.\n * The HTTP, the caching and the display composition live in the v2 runtime.\n */\nimport {\n LazyChildSearchDescriptor,\n LazyFilterElement,\n ManyToManyKey,\n PromotedEntity,\n buildLazyLoadDescriptors,\n buildManyToManyChildFilterElements,\n buildSearchRequestData,\n inFilter,\n isBlankKeyValue\n} from './lazyLoad';\nimport { CatalogObject } from './legalChildren';\nimport {\n DisplayNode,\n loadsChildrenLazily,\n rowChildState\n} from './displayTree';\nimport { toWireString } from './wireString';\nimport {\n toUpperFirstChar\n} from '../../utilities/input/StringUtilities';\n\n/* ------------------------------------------------------------------ config */\n\n/** Root page size when the root level carries no (or a junk) count. */\nexport const DEFAULT_ROOT_RECORD_COUNT = 25;\n\n/**\n * Rows per parent in one request page: an eager level's batch pages by it until\n * the level is whole; a lazy level uses it when its parent sets no page size.\n */\nexport const CHILD_PAGE_SIZE = 50;\n\n/**\n * The page a lazy child level fetches per expand / Show More — the PARENT\n * level's `properties.noOfNodesDisplayed` (\"Records per page\"), as the legacy\n * runtime reads it. Junk, zero, negatives and absence all mean CHILD_PAGE_SIZE.\n */\nexport const parseLazyPageSize = (\n parentNode: DisplayNode | null | undefined\n): number => {\n const parsed = parseInt(\n parentNode?.properties?.['noOfNodesDisplayed'] as string,\n 10\n );\n return Number.isFinite(parsed) && parsed > 0 ? parsed : CHILD_PAGE_SIZE;\n};\n\n/**\n * The root level's initial record count — `properties.noOfNodesDisplayed`,\n * parsed as an integer. Junk, zero, negatives and absence all mean the default.\n */\nexport const parseInitialRecordCount = (\n rootNode: DisplayNode | null | undefined\n): number => {\n const parsed = parseInt(\n rootNode?.properties?.['noOfNodesDisplayed'] as string,\n 10\n );\n return Number.isFinite(parsed) && parsed > 0\n ? parsed\n : DEFAULT_ROOT_RECORD_COUNT;\n};\n\n/* ------------------------------------------------------------ wave planning */\n\n/** One eager level to fetch in a wave, with the level whose rows parent it. */\nexport interface EagerLevelPlan {\n /** The config level whose rows are already loaded. */\n parentNode: DisplayNode;\n /** The eager config level to fetch for those rows. */\n childNode: DisplayNode;\n /** Association key the fetched rows are grafted onto the parent rows under. */\n catalogObjectKey: string;\n}\n\n/** Levels fetched together; waves run in order, requests within one in parallel. */\nexport type EagerWave = EagerLevelPlan[];\n\n/**\n * The eager levels below `origin`, grouped into breadth-first waves: wave 0 is\n * `origin`'s eager children, wave 1 the eager children of those, and so on to\n * any depth. Lazy levels end the walk — their rows do not exist until the user\n * expands them, at which point the same planner runs again from that level.\n */\nexport const planEagerWaves = (\n origin: DisplayNode | null | undefined\n): EagerWave[] => {\n const waves: EagerWave[] = [];\n let frontier: DisplayNode[] = origin ? [origin] : [];\n while (frontier.length) {\n const wave: EagerWave = [];\n const next: DisplayNode[] = [];\n frontier.forEach((parentNode) => {\n if (loadsChildrenLazily(parentNode)) return;\n (parentNode.children ?? []).forEach((childNode) => {\n if (childNode?.isGroupNode) return;\n const catalogObjectKey = childNode.properties?.['catalogObjectKey'];\n if (typeof catalogObjectKey !== 'string' || !catalogObjectKey) return;\n wave.push({ parentNode, childNode, catalogObjectKey });\n next.push(childNode);\n });\n });\n if (!wave.length) break;\n waves.push(wave);\n frontier = next;\n }\n return waves;\n};\n\n/**\n * The lazy rows flagged OPEN but not loaded — what the menu owes a fetch\n * without an expand event to hang it off.\n *\n * A lazy row is composed closed, and the user's expand is its fetch. Rows\n * opened any OTHER way — a rebuild replaying the user's expansion\n * (menuRebuildModel), the copilot's expand_node — never fire that event, so\n * without this list their lazy levels would never be asked for.\n *\n * Pure and display-shaped, so the viewer's effect stays a one-liner: fetch each\n * row through the SAME path an expand takes (one request per lazy level, one\n * parent value, cached), which marks it 'loaded' — and that is what stops both\n * a re-expand and this collector from asking twice, a zero-result level\n * included. A FAILED fetch leaves the row open in 'error'; it is not collected\n * again — the next expand is the retry.\n */\nexport const collectPreExpandedLazyRows = (\n roots: Array<DisplayNode | null | undefined> | null | undefined\n): DisplayNode[] => {\n const pending: DisplayNode[] = [];\n const visit = (node: DisplayNode | null | undefined): void => {\n if (!node) return;\n if (\n node.isExpanded === true &&\n rowChildState(node) === 'lazy' &&\n !!node.lazyLoadChildrenArr?.length\n ) {\n pending.push(node);\n }\n (node.children ?? []).forEach(visit);\n };\n (roots ?? []).forEach(visit);\n return pending;\n};\n\n/* ----------------------------------------------------------- child fetching */\n\n/** A loaded parent row plus the caller's stable handle on it. */\nexport interface ParentRowRef {\n key: string;\n row: Record<string, unknown>;\n}\n\ninterface ChildFetchBase {\n catalogObjectKey: string;\n catalogReturnObject: string | undefined;\n apiMethodId: string;\n data: Record<string, unknown>;\n}\n\n/** One IN request covering many parents; sliced back by `keyField`. */\nexport interface BulkChildFetch extends ChildFetchBase {\n kind: 'bulk';\n keyField: string;\n /** Filter value → the parent refs whose children it answers. */\n parentKeysByValue: Record<string, string[]>;\n}\n\n/**\n * Many-to-many through a promoted joining table: step 1 is the same IN request\n * against the joining table, step 2 fetches the child entity for every joining\n * row at once (buildManyToManyChildRequestData).\n */\nexport interface ManyToManyChildFetch extends ChildFetchBase {\n kind: 'manyToMany';\n keyField: string;\n parentKeysByValue: Record<string, string[]>;\n childApiMethodId: string;\n manyToManyKeys: ManyToManyKey[];\n}\n\n/**\n * The fallback for a binding that cannot be batched — composite parent keys,\n * dotted joining-table filters, many-to-many without a promoted joining search.\n * One request per parent, still issued inside the wave.\n */\nexport interface SingleParentChildFetch extends ChildFetchBase {\n kind: 'single';\n parentKey: string;\n}\n\nexport type ChildFetch =\n | BulkChildFetch\n | ManyToManyChildFetch\n | SingleParentChildFetch;\n\nexport interface ChildLevelFetchPlan {\n catalogObjectKey: string;\n requests: ChildFetch[];\n /** Parent ref key → why that parent has no request (un-promoted child, …). */\n errorsByParentKey: Record<string, string>;\n}\n\n/**\n * The lean search body every child fetch posts: `keyField IN (values)` ordered\n * by `keyField` so the server groups a parent's rows together. No eager\n * nesting — the next wave fetches the next level.\n */\nconst buildBulkChildRequestData = (\n keyField: string,\n keyValues: string[],\n pageSize: number,\n pageNumber = 1\n): Record<string, unknown> => ({\n ...buildSearchRequestData(\n [inFilter(keyField, keyValues)],\n pageNumber,\n pageSize\n ),\n orderElements: [{ sortColumn: keyField, sortDirection: 'ASC' }]\n});\n\n/**\n * The second-step body of a many-to-many fetch: one IN filter per joining key\n * over every joining row the first step returned\n * (buildManyToManyChildFilterElements, legacy fetchManyToManyChildren:1153).\n */\nexport const buildManyToManyChildRequestData = (\n request: ManyToManyChildFetch,\n joiningRows: Array<Record<string, unknown>>,\n pageSize: number\n): Record<string, unknown> =>\n buildSearchRequestData(\n buildManyToManyChildFilterElements(request.manyToManyKeys, joiningRows),\n 1,\n pageSize\n );\n\n/**\n * A descriptor batches only when its parent context reduces to ONE plain `=`\n * filter on a scalar, undotted field: that is the only shape an IN list can\n * carry and a response can be sliced back by. Everything else falls to a\n * per-parent request.\n */\nconst batchableFilter = (\n descriptor: LazyChildSearchDescriptor\n): LazyFilterElement | null => {\n const filters = descriptor.data?.filterElements ?? [];\n if (filters.length !== 1) return null;\n const [filter] = filters;\n if (filter.searchOperator !== '=') return null;\n if (!filter.searchField || filter.searchField.includes('.')) return null;\n const value = filter.searchValue;\n if (typeof value !== 'string' && typeof value !== 'number') return null;\n return filter;\n};\n\n/**\n * Plan the fetch of ONE level for a set of loaded parent rows. The per-parent\n * child search comes from `buildLazyLoadDescriptors` — the one owner of the\n * catalog-association rules (key-name casing, joining-table flips, identifier\n * fallbacks, the un-promoted-child error) — and this only decides how the\n * resulting searches batch.\n *\n * `pageSize` is per parent; a batched request asks for parents × pageSize.\n * Lazy expand calls this with a single parent and pages through `pageNumber`.\n */\nexport const planChildLevelFetch = (\n plan: EagerLevelPlan,\n parents: ParentRowRef[],\n catalogObjects: CatalogObject[] | null | undefined,\n promotedEntities: PromotedEntity[] | null | undefined,\n {\n pageSize = CHILD_PAGE_SIZE,\n pageNumber = 1\n }: { pageSize?: number; pageNumber?: number } = {}\n): ChildLevelFetchPlan => {\n const errorsByParentKey: Record<string, string> = {};\n const requests: ChildFetch[] = [];\n const catalogReturnObject = plan.childNode.properties?.[\n 'catalogReturnObject'\n ] as string | undefined;\n\n /** bucketKey → the accumulating batched request. */\n const buckets = new Map<string, BulkChildFetch | ManyToManyChildFetch>();\n\n parents.forEach((parent) => {\n const { descriptors, errorRetrievingChildren } = buildLazyLoadDescriptors(\n plan.parentNode,\n parent.row,\n [plan.childNode],\n catalogObjects,\n promotedEntities\n );\n if (errorRetrievingChildren) {\n errorsByParentKey[parent.key] = errorRetrievingChildren;\n }\n const descriptor = descriptors[0];\n if (!descriptor) return;\n // A link value ABSENT from the row (no such column) means the search was\n // built from nothing — a planning error. A null or '' one means no\n // children (isBlankKeyValue). Neither is sent.\n const filters = descriptor.data?.filterElements ?? [];\n const absent = filters.find((filter) => filter.searchValue === undefined);\n if (absent) {\n errorsByParentKey[parent.key] = `Error: row has no ${absent.searchField}`;\n return;\n }\n if (filters.some((filter) => isBlankKeyValue(filter.searchValue))) return;\n const apiMethodId =\n descriptor.apiMethodId === null || descriptor.apiMethodId === undefined\n ? null\n : String(descriptor.apiMethodId);\n if (!apiMethodId) return;\n\n const filter = batchableFilter(descriptor);\n const manyToManyKeys = descriptor.manyToManyKeys?.length\n ? descriptor.manyToManyKeys\n : null;\n const jointMethodId = descriptor.manyToManyJointEntityApiMethodId;\n\n if (!filter || (manyToManyKeys && !jointMethodId)) {\n requests.push({\n kind: 'single',\n catalogObjectKey: plan.catalogObjectKey,\n catalogReturnObject,\n apiMethodId,\n parentKey: parent.key,\n data: { ...descriptor.data, pageNumber, pageSize }\n });\n return;\n }\n\n const value = String(filter.searchValue as string | number);\n const bucketKey = manyToManyKeys\n ? `m2m::${apiMethodId}::${filter.searchField}::${String(jointMethodId)}`\n : `bulk::${apiMethodId}::${filter.searchField}`;\n let bucket = buckets.get(bucketKey);\n if (!bucket) {\n bucket = manyToManyKeys\n ? {\n kind: 'manyToMany',\n catalogObjectKey: plan.catalogObjectKey,\n catalogReturnObject,\n apiMethodId,\n keyField: filter.searchField,\n parentKeysByValue: {},\n childApiMethodId: String(jointMethodId),\n manyToManyKeys,\n data: {}\n }\n : {\n kind: 'bulk',\n catalogObjectKey: plan.catalogObjectKey,\n catalogReturnObject,\n apiMethodId,\n keyField: filter.searchField,\n parentKeysByValue: {},\n data: {}\n };\n buckets.set(bucketKey, bucket);\n requests.push(bucket);\n }\n (bucket.parentKeysByValue[value] ??= []).push(parent.key);\n });\n\n buckets.forEach((bucket) => {\n const keyValues = Object.keys(bucket.parentKeysByValue);\n bucket.data = buildBulkChildRequestData(\n bucket.keyField,\n keyValues,\n keyValues.length * pageSize,\n pageNumber\n );\n });\n\n return { catalogObjectKey: plan.catalogObjectKey, requests, errorsByParentKey };\n};\n\n/* ------------------------------------------------------------ response slicing */\n\n/**\n * Read a row field by name, case-insensitively (search fields are PascalCase,\n * wire rows camelCase), as the STRING its key value compares by. Anything that\n * is not a scalar is no key at all, so it reads as absent.\n */\nconst readKeyField = (\n row: Record<string, unknown>,\n field: string\n): string | null => {\n let raw: unknown;\n if (Object.prototype.hasOwnProperty.call(row, field)) {\n raw = row[field];\n } else {\n const wanted = field.toLowerCase();\n const match = Object.keys(row).find((key) => key.toLowerCase() === wanted);\n raw = match === undefined ? undefined : row[match];\n }\n if (typeof raw === 'string') return raw;\n if (typeof raw === 'number' || typeof raw === 'boolean') return String(raw);\n return null;\n};\n\nconst emptySlices = (\n parentKeysByValue: Record<string, string[]>\n): Record<string, Array<Record<string, unknown>>> => {\n const slices: Record<string, Array<Record<string, unknown>>> = {};\n Object.values(parentKeysByValue).forEach((keys) =>\n keys.forEach((key) => {\n slices[key] = [];\n })\n );\n return slices;\n};\n\n/**\n * Slice one batched response back to its parents by the IN field the request\n * grouped on. Rows whose key value belongs to no parent are dropped.\n *\n * ONE-PARENT ESCAPE HATCH: when the request covered a single parent value,\n * every row is that parent's — matching on the field would only be a way to\n * lose rows whose FK column the view doesn't project (and lazy expand always\n * takes this branch).\n */\nexport const sliceBulkChildRows = (\n request: BulkChildFetch | ManyToManyChildFetch,\n rows: Array<Record<string, unknown>> | null | undefined\n): Record<string, Array<Record<string, unknown>>> => {\n const slices = emptySlices(request.parentKeysByValue);\n const values = Object.keys(request.parentKeysByValue);\n if (!rows?.length) return slices;\n if (values.length === 1) {\n request.parentKeysByValue[values[0]].forEach((key) => {\n slices[key] = [...rows];\n });\n return slices;\n }\n rows.forEach((row) => {\n const value = readKeyField(row, request.keyField);\n if (value === null) return;\n const parentKeys = request.parentKeysByValue[value];\n if (!parentKeys) return;\n parentKeys.forEach((key) => slices[key].push(row));\n });\n return slices;\n};\n\n/**\n * Map a many-to-many level back to its parents: the joining rows carry the\n * parent key (step 1's IN field) and the child key, so a parent's children are\n * the child rows whose key matches one of its joining rows'.\n */\nexport const sliceManyToManyChildRows = (\n request: ManyToManyChildFetch,\n joiningRows: Array<Record<string, unknown>> | null | undefined,\n childRows: Array<Record<string, unknown>> | null | undefined\n): Record<string, Array<Record<string, unknown>>> => {\n const slices = emptySlices(request.parentKeysByValue);\n if (!joiningRows?.length || !childRows?.length) return slices;\n\n const joiningKeyOf = (row: Record<string, unknown>): string =>\n request.manyToManyKeys\n .map((key) => readKeyField(row, key.searchValueKey) ?? '')\n .join('|');\n const childKeyOf = (row: Record<string, unknown>): string =>\n request.manyToManyKeys\n .map((key) => readKeyField(row, key.searchNameKey) ?? '')\n .join('|');\n\n const childrenByKey = new Map<string, Array<Record<string, unknown>>>();\n childRows.forEach((row) => {\n const key = childKeyOf(row);\n const bucket = childrenByKey.get(key);\n if (bucket) bucket.push(row);\n else childrenByKey.set(key, [row]);\n });\n\n const joiningByParent = sliceBulkChildRows(request, joiningRows);\n Object.entries(joiningByParent).forEach(([parentKey, rows]) => {\n const seen = new Set<Record<string, unknown>>();\n rows.forEach((joiningRow) => {\n (childrenByKey.get(joiningKeyOf(joiningRow)) ?? []).forEach((child) => {\n if (seen.has(child)) return;\n seen.add(child);\n slices[parentKey].push(child);\n });\n });\n });\n return slices;\n};\n\n/* -------------------------------------------------------------- hydration */\n\n/**\n * Write one wave's rows onto their parents under the level's association key\n * and return the refs for the next wave. The parent rows are the runtime's own\n * private copies, so this mutates them in place — the same association shape\n * the display composer walks, just filled by the wave loader instead of by a\n * nested server response. The fetched rows are cache data and become the next\n * wave's parents, so each is copied before anything is grafted onto it.\n */\nexport const graftChildRows = (\n parents: ParentRowRef[],\n catalogObjectKey: string,\n rowsByParentKey: Record<string, Array<Record<string, unknown>>>\n): ParentRowRef[] => {\n const next: ParentRowRef[] = [];\n parents.forEach((parent) => {\n const rows = (rowsByParentKey[parent.key] ?? []).map((row) => ({\n ...row\n }));\n parent.row[catalogObjectKey] = rows;\n rows.forEach((row, index) => {\n next.push({ key: `${parent.key}>${catalogObjectKey}#${index}`, row });\n });\n });\n return next;\n};\n\n/* ---------------------------------------------------------- entry by record */\n\n/**\n * Identifier `=` filters for one record: its identifier values, in the order\n * the catalog lists the entity's search identifiers. Values travel as a list;\n * only a URL parameter joins them with commas, and its reader splits it back.\n * Field names go upper-first like every other search the tree builds.\n */\nexport const buildRecordEntryFilterElements = (\n identifiers: string[] | null | undefined,\n values: unknown[] | null | undefined\n): LazyFilterElement[] => {\n if (!identifiers?.length || !values?.length) return [];\n return identifiers.map((identifier, index) => ({\n searchField: toUpperFirstChar(identifier) as string,\n searchOperator: '=',\n searchValue: toWireString(values[index])\n }));\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAiDA,MAAae,4BAA4B;;;;;AAMzC,MAAaC,kBAAkB;;;;;;AAO/B,MAAaC,qBACXC,eACW;CACX,MAAMC,SAASC,SACbF,YAAYG,aAAa,uBACzB,GACD;AACD,QAAOC,OAAOC,SAASJ,OAAO,IAAIA,SAAS,IAAIA,SAAAA;;;;;;AAOjD,MAAaK,2BACXC,aACW;CACX,MAAMN,SAASC,SACbK,UAAUJ,aAAa,uBACvB,GACD;AACD,QAAOC,OAAOC,SAASJ,OAAO,IAAIA,SAAS,IACvCA,SAAAA;;;;;;;;AAyBN,MAAaW,kBACXC,WACgB;CAChB,MAAMC,QAAqB,EAAE;CAC7B,IAAIC,WAA0BF,SAAS,CAACA,OAAO,GAAG,EAAE;AACpD,QAAOE,SAASC,QAAQ;EACtB,MAAMC,OAAkB,EAAE;EAC1B,MAAMC,OAAsB,EAAE;AAC9BH,WAASI,SAASnB,eAAe;AAC/B,OAAIP,oBAAoBO,WAAW,CAAE;AACrC,IAACA,WAAWoB,YAAY,EAAE,EAAED,SAASV,cAAc;AACjD,QAAIA,WAAWY,YAAa;IAC5B,MAAMX,mBAAmBD,UAAUN,aAAa;AAChD,QAAI,OAAOO,qBAAqB,YAA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rE;GACF;AACF,QAAOf;;;;;;;;AAWT,MAAagH,kCACXC,aACAzB,WACwB;AACxB,KAAI,CAACyB,aAAanH,UAAU,CAAC0F,QAAQ1F,OAAQ,QAAO,EAAE;AACtD,QAAOmH,YAAYlB,KAAKmB,YAAYH,WAAW;EAC7C7D,aAAaxE,iBAAiBwI,WAAW;EACzCjE,gBAAgB;EAChBI,aAAa5E,aAAa+G,OAAOuB,OAAM;EACxC,EAAE"}
@@ -4,4 +4,9 @@
4
4
  * typed, so callers never stringify an `unknown` directly.
5
5
  */
6
6
  export declare const toWireString: (value: unknown) => string;
7
+ /**
8
+ * A wire value as text with every object — arrays included — as JSON: lookup
9
+ * keys (the wire mixes numeric and string ids) and table cells.
10
+ */
11
+ export declare const toJsonString: (value: unknown) => string;
7
12
  //# sourceMappingURL=wireString.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"wireString.d.ts","sourceRoot":"","sources":["../../../src/domain/inquiryTree/wireString.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,eAAO,MAAM,YAAY,4BAKxB,CAAC"}
1
+ {"version":3,"file":"wireString.d.ts","sourceRoot":"","sources":["../../../src/domain/inquiryTree/wireString.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,eAAO,MAAM,YAAY,4BAKxB,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,YAAY,4BAIxB,CAAC"}
@@ -12,4 +12,15 @@ export const toWireString = (value) => {
12
12
  return JSON.stringify(value);
13
13
  return String(value);
14
14
  };
15
+ /**
16
+ * A wire value as text with every object — arrays included — as JSON: lookup
17
+ * keys (the wire mixes numeric and string ids) and table cells.
18
+ */
19
+ export const toJsonString = (value) => {
20
+ if (value == null)
21
+ return '';
22
+ if (typeof value === 'object')
23
+ return JSON.stringify(value);
24
+ return String(value);
25
+ };
15
26
  //# sourceMappingURL=wireString.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"wireString.js","sourceRoot":"","sources":["../../../src/domain/inquiryTree/wireString.ts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}
@@ -10,7 +10,16 @@ const toWireString = (value) => {
10
10
  if (typeof value === "object") return JSON.stringify(value);
11
11
  return String(value);
12
12
  };
13
+ /**
14
+ * A wire value as text with every object — arrays included — as JSON: lookup
15
+ * keys (the wire mixes numeric and string ids) and table cells.
16
+ */
17
+ const toJsonString = (value) => {
18
+ if (value == null) return "";
19
+ if (typeof value === "object") return JSON.stringify(value);
20
+ return String(value);
21
+ };
13
22
  //#endregion
14
- export { toWireString };
23
+ export { toJsonString, toWireString };
15
24
 
16
25
  //# sourceMappingURL=wireString.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"wireString.mjs","names":["toWireString","value","Array","isArray","map","join","JSON","stringify","String"],"sources":["../../../src/domain/inquiryTree/wireString.ts"],"sourcesContent":["/**\n * Legacy wire values are untyped (`unknown`), and v1 stringified them with\n * `toString()`: arrays comma-joined, null/undefined as ''. Same result here,\n * typed, so callers never stringify an `unknown` directly.\n */\nexport const toWireString = (value: unknown): string => {\n if (value == null) return '';\n if (Array.isArray(value)) return value.map(toWireString).join(',');\n if (typeof value === 'object') return JSON.stringify(value);\n return String(value as string | number | boolean | bigint | symbol);\n};\n"],"mappings":";;;;;;AAKA,MAAaA,gBAAgBC,UAA2B;AACtD,KAAIA,SAAS,KAAM,QAAO;AAC1B,KAAIC,MAAMC,QAAQF,MAAM,CAAE,QAAOA,MAAMG,IAAIJ,aAAa,CAACK,KAAK,IAAI;AAClE,KAAI,OAAOJ,UAAU,SAAU,QAAOK,KAAKC,UAAUN,MAAM;AAC3D,QAAOO,OAAOP,MAAqD"}
1
+ {"version":3,"file":"wireString.mjs","names":["toWireString","value","Array","isArray","map","join","JSON","stringify","String","toJsonString"],"sources":["../../../src/domain/inquiryTree/wireString.ts"],"sourcesContent":["/**\n * Legacy wire values are untyped (`unknown`), and v1 stringified them with\n * `toString()`: arrays comma-joined, null/undefined as ''. Same result here,\n * typed, so callers never stringify an `unknown` directly.\n */\nexport const toWireString = (value: unknown): string => {\n if (value == null) return '';\n if (Array.isArray(value)) return value.map(toWireString).join(',');\n if (typeof value === 'object') return JSON.stringify(value);\n return String(value as string | number | boolean | bigint | symbol);\n};\n\n/**\n * A wire value as text with every object — arrays included — as JSON: lookup\n * keys (the wire mixes numeric and string ids) and table cells.\n */\nexport const toJsonString = (value: unknown): string => {\n if (value == null) return '';\n if (typeof value === 'object') return JSON.stringify(value);\n return String(value as string | number | boolean);\n};\n"],"mappings":";;;;;;AAKA,MAAaA,gBAAgBC,UAA2B;AACtD,KAAIA,SAAS,KAAM,QAAO;AAC1B,KAAIC,MAAMC,QAAQF,MAAM,CAAE,QAAOA,MAAMG,IAAIJ,aAAa,CAACK,KAAK,IAAI;AAClE,KAAI,OAAOJ,UAAU,SAAU,QAAOK,KAAKC,UAAUN,MAAM;AAC3D,QAAOO,OAAOP,MAAqD;;;;;;AAOrE,MAAaQ,gBAAgBR,UAA2B;AACtD,KAAIA,SAAS,KAAM,QAAO;AAC1B,KAAI,OAAOA,UAAU,SAAU,QAAOK,KAAKC,UAAUN,MAAM;AAC3D,QAAOO,OAAOP,MAAmC"}
@@ -1,2 +1,2 @@
1
- import { BADGE_COLORS, resolveFirstMatchingPageId, resolveHeaderFields, resolveNodeAlerts, resolveNodeViewLayout, resolveNodeViewModel, resolveTabs } from "./model.mjs";
2
- export { BADGE_COLORS, resolveFirstMatchingPageId, resolveHeaderFields, resolveNodeAlerts, resolveNodeViewLayout, resolveNodeViewModel, resolveTabs };
1
+ import { BADGE_COLORS, resolveFirstMatchingPageId, resolveHeaderFields, resolveNodeAlerts, resolveNodeViewLayout, resolveNodeViewModel, resolveRowBadges, resolveTabs, resolveTitleBadges } from "./model.mjs";
2
+ export { BADGE_COLORS, resolveFirstMatchingPageId, resolveHeaderFields, resolveNodeAlerts, resolveNodeViewLayout, resolveNodeViewModel, resolveRowBadges, resolveTabs, resolveTitleBadges };
@@ -1,6 +1,5 @@
1
1
  import type { DisplayNode } from '../inquiryTree/displayTree';
2
- import type { JsonLogic } from '../inquiryTree/types';
3
- export type CollapseDefault = 'hidden' | 'expanded' | 'collapsed';
2
+ import type { HeaderPageRef, JsonLogic, NodePanel } from '../inquiryTree/types';
4
3
  export interface CollapseState {
5
4
  /** false = the strip (and its chevron) does not exist. */
6
5
  show: boolean;
@@ -37,12 +36,8 @@ export interface NodeViewTab {
37
36
  pageId: string;
38
37
  /** Rule-resolved page-header page for this tab, or null. */
39
38
  pageHeaderPageId: string | null;
40
- /**
41
- * Per-tab page-header band display: the tab's own
42
- * `defaultPageHeaderExpanded`, falling back to the node-wide value —
43
- * legacy trees (node value only) render identically; a tab value is the
44
- * more precise override.
45
- */
39
+ /** The page-header band display: the node-wide
40
+ * `defaultPageHeaderExpanded`, the one setting every tab shares (as v1). */
46
41
  pageHeaderCollapse: CollapseState;
47
42
  queryId: string;
48
43
  queryParamMapping: unknown;
@@ -64,21 +59,29 @@ export interface NodeAlert {
64
59
  id: string;
65
60
  /** The alert (aggregate-threshold) config id to fetch and render. */
66
61
  alertId: string;
62
+ /**
63
+ * The alert query's parameters filled from this record (the row's
64
+ * `paramMappings`, as row aggregate chips map theirs) — what scopes the
65
+ * alert's number to the record. Empty = the query runs unparameterised.
66
+ */
67
+ params: Record<string, unknown>;
68
+ /**
69
+ * The alert config itself, when the row carries one the tree has not saved
70
+ * yet (a builder's staged header badge, `stagedAlert`) — drawn as it is,
71
+ * with no `alert/{alertId}` fetch: the id may not exist yet.
72
+ */
73
+ staged?: Record<string, unknown>;
67
74
  }
68
75
  export interface NodeViewModel {
69
76
  headerTitle: string;
70
77
  header: NodeViewHeader;
71
78
  headerCollapse: CollapseState;
72
- /**
73
- * Node-wide page-header default. Rendering consults the ACTIVE TAB's
74
- * `pageHeaderCollapse` (which already folds this in as fallback); this
75
- * stays for consumers that need the node default itself.
76
- */
77
- pageHeaderCollapse: CollapseState;
78
79
  tabs: NodeViewTab[];
79
- panels: unknown[];
80
+ panels: NodePanel[];
80
81
  /** Node-level alert refs; the fetch/threshold render lives in the capability. */
81
82
  alerts: NodeAlert[];
83
+ /** The fields drawn as badges beside the title (`onTitle`), after the alerts. */
84
+ titleBadges: FieldBadge[];
82
85
  }
83
86
  /**
84
87
  * What the node view actually has to render, once the model AND the embedder's
@@ -96,7 +99,7 @@ export interface NodeViewPresence {
96
99
  body: boolean;
97
100
  /** The actions capability renders (configured panels). */
98
101
  actions: boolean;
99
- /** Node-level alert chips render. */
102
+ /** Badges render beside the title (alerts or field badges). */
100
103
  alerts: boolean;
101
104
  }
102
105
  /** How the node view degrades when its config gives it little or nothing. */
@@ -125,21 +128,11 @@ export interface NodeViewLayout {
125
128
  * never "empty".
126
129
  */
127
130
  export declare const resolveNodeViewLayout: (presence: NodeViewPresence) => NodeViewLayout;
128
- interface RuleBearing {
129
- propertyMapping?: Record<string, string> | null;
130
- jsonLogic?: JsonLogic | null;
131
- }
132
- interface PageCandidate extends RuleBearing {
133
- sequenceNo?: number | string;
134
- page?: {
135
- pageId?: string | null;
136
- } | null;
137
- }
138
131
  /**
139
132
  * The shared sequence-ordered, rule-gated candidate walk: first candidate
140
133
  * whose rule passes (rule-less candidates always match) wins.
141
134
  */
142
- export declare const resolveFirstMatchingPageId: (candidates: PageCandidate[], nodeObj: Record<string, unknown>) => string;
135
+ export declare const resolveFirstMatchingPageId: (candidates: HeaderPageRef[], nodeObj: Record<string, unknown>) => string;
143
136
  /**
144
137
  * One badge color rule — the `ConditionalIconRule` shape (inquiryTree/types.ts)
145
138
  * reduced to what a badge needs, and evaluated by the same rule engine.
@@ -159,15 +152,27 @@ export interface HeaderBadgeRule {
159
152
  * resolve their visibility and color here, so the renderer stays dumb.
160
153
  */
161
154
  export declare const resolveHeaderFields: (node: DisplayNode) => HeaderField[];
155
+ /** One field drawn as a badge outside the header's details. */
156
+ export interface FieldBadge {
157
+ text: string;
158
+ /** Absent when the field's badge has no colour configured. */
159
+ color?: BadgeColor;
160
+ }
161
+ /** The field badges on a record's tree row. */
162
+ export declare const resolveRowBadges: (node: DisplayNode) => FieldBadge[];
163
+ /** The field badges beside a record's title. */
164
+ export declare const resolveTitleBadges: (node: DisplayNode) => FieldBadge[];
162
165
  /**
163
166
  * Node-level alert refs (legacy EntityHeader → UdpAlertsContainer read of
164
- * `properties.alerts`): the `{ id, alertId }` rows, entity nodes only (group
167
+ * `properties.alerts`): the `{ id, alertId, paramMappings }` rows, entity nodes only (group
165
168
  * nodes never carried alerts). Pure — the `alert/{alertId}` fetch and the
166
169
  * threshold-status render happen in the alerts capability.
167
170
  */
168
171
  export declare const resolveNodeAlerts: (node: DisplayNode) => NodeAlert[];
169
- /** Visible tabs: sequence-ordered, rule-filtered, stable ids. */
172
+ /**
173
+ * Visible tabs: sequence-ordered, rule-filtered, stable ids. A tab with no
174
+ * page (saved as `page: ''`) has nothing to show and is skipped.
175
+ */
170
176
  export declare const resolveTabs: (node: DisplayNode) => NodeViewTab[];
171
177
  export declare const resolveNodeViewModel: (node: DisplayNode) => NodeViewModel;
172
- export {};
173
178
  //# sourceMappingURL=model.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"model.d.ts","sourceRoot":"","sources":["../../../src/domain/nodeView/model.ts"],"names":[],"mappings":"AAiBA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAC;AAC9D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAGtD,MAAM,MAAM,eAAe,GAAG,QAAQ,GAAG,UAAU,GAAG,WAAW,CAAC;AASlE,MAAM,WAAW,aAAa;IAC5B,0DAA0D;IAC1D,IAAI,EAAE,OAAO,CAAC;IACd,yCAAyC;IACzC,QAAQ,EAAE,OAAO,CAAC;CACnB;AAED,+EAA+E;AAC/E,MAAM,MAAM,kBAAkB,GAAG,OAAO,GAAG,MAAM,GAAG,OAAO,CAAC;AAE5D;;;;GAIG;AACH,eAAO,MAAM,YAAY,oGASf,CAAC;AAEX,MAAM,MAAM,UAAU,GAAG,CAAC,OAAO,YAAY,CAAC,CAAC,MAAM,CAAC,CAAC;AAEvD,MAAM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