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":"types.d.ts","sourceRoot":"","sources":["../../../src/domain/actionPanel/types.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,2DAAyD;AACzD,MAAM,MAAM,SAAS,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;AAEhD;;;GAGG;AACH,oBAAY,UAAU;IACpB,mCAAmC;IACnC,UAAU,IAAI;IACd,sCAAsC;IACtC,aAAa,IAAI;IACjB,oCAAoC;IACpC,MAAM,IAAI;IACV,oCAAoC;IACpC,MAAM,IAAI;IACV,6BAA6B;IAC7B,MAAM,IAAI;IACV,2CAA2C;IAC3C,QAAQ,IAAI;IACZ,kCAAkC;IAClC,QAAQ,KAAK;IACb,4CAA4C;IAC5C,gBAAgB,KAAK;IACrB,kDAAkD;IAClD,mBAAmB,KAAK;IACxB,mDAAmD;IACnD,oBAAoB,KAAK;IACzB,qDAAqD;IACrD,SAAS,KAAK;IACd,yDAAyD;IACzD,aAAa,KAAK;IAClB,sCAAsC;IACtC,eAAe,KAAK;CACrB;AAED,kEAAkE;AAClE,eAAO,MAAM,YAAY,EAAE,SAAS,UAAU,EAc5C,CAAC;AAEH,sDAAsD;AACtD,eAAO,MAAM,YAAY,yCAE4B,CAAC;AAEtD;;;;;GAKG;AACH,MAAM,WAAW,UAAU;IACzB,yEAAuE;IACvE,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,8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;IACpB,mCAAmC;IACnC,uDAAc,CAAA;IACd,sCAAsC;IACtC,6DAAiB,CAAA;IACjB,oCAAoC;IACpC,+CAAU,CAAA;IACV,oCAAoC;IACpC,+CAAU,CAAA;IACV,6BAA6B;IAC7B,+CAAU,CAAA;IACV,2CAA2C;IAC3C,mDAAY,CAAA;IACZ,kCAAkC;IAClC,oDAAa,CAAA;IACb,4CAA4C;IAC5C,oEAAqB,CAAA;IACrB,kDAAkD;IAClD,0EAAwB,CAAA;IACxB,mDAAmD;IACnD,4EAAyB,CAAA;IACzB,qDAAqD;IACrD,sDAAc,CAAA;IACd,yDAAyD;IACzD,8DAAkB,CAAA;IAClB,sCAAsC;IACtC,kEAAoB,CAAA;AAAA,CACtB,EA3BY,UAAU,KAAV,UAAU,QA2BrB;AAED,kEAAkE;AAClE,MAAM,CAAC,MAAM,YAAY,GAA0B,MAAM,CAAC,MAAM,CAAC;IAC/D,UAAU,CAAC,UAAU;IACrB,UAAU,CAAC,aAAa;IACxB,UAAU,CAAC,MAAM;IACjB,UAAU,CAAC,MAAM;IACjB,UAAU,CAAC,MAAM;IACjB,UAAU,CAAC,QAAQ;IACnB,UAAU,CAAC,QAAQ;IACnB,UAAU,CAAC,gBAAgB;IAC3B,UAAU,CAAC,mBAAmB;IAC9B,UAAU,CAAC,oBAAoB;IAC/B,UAAU,CAAC,SAAS;IACpB,UAAU,CAAC,aAAa;IACxB,UAAU,CAAC,eAAe;CAC3B,CAAC,CAAC;AAEH,sDAAsD;AACtD,MAAM,CAAC,MAAM,YAAY,GAAG,CAAC,KAAc,EAAuB,EAAE,CAClE,OAAO,KAAK,KAAK,QAAQ;IACxB,YAAkC,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"types.mjs","names":["JsonLogic","Record","ActionType","ExecuteApi","StartWorkflow","Create","Update","Delete","Retrieve","Redirect","OpenExternalLink","OpenPageSplitScreen","OpenShellSplitScreen","OpenNotes","OpenReminders","ExecuteFunction","ACTION_TYPES","Object","freeze","isActionType","value","includes","ActionRule","actionRuleId","ruleId","jsonLogic","mapping","propertyIsCustomMapping","unknownKeys","ActionProvenance","tenantId","productVersionId","parentActionId","isProductAction","isGlobalAction","ActionConfig","actionId","name","actionTypeId","parameters","pageId","rules","provenance","PanelButtonIcon","type","fluentName","PanelButton","panelActionId","action","icon","groupName","sequence","enabled","isPrimary","hideAction","PanelProvenance","parentPanelId","isProductPanel","Panel","panelId","buttons","panelRules"],"sources":["../../../src/domain/actionPanel/types.ts"],"sourcesContent":["/**\n * Typed domain model for UDP action panels — named containers of action buttons\n * attached to inquiry tree nodes (\"Speed Dial\", \"Account actions\", …).\n *\n * The single source of truth for what a panel is, shared by Tree Builder v2's\n * panel editor and the inquiry v2 runtime. Pure types: no React, no HTTP.\n * Wire↔domain conversion happens ONLY in serialize.ts.\n *\n * Wire boundary (captured live 2026-07-28 against gateway.unitydev.ca):\n * - GET integrationService/api/v1/panel/detailed?tenantId={id} → panels WITH\n * nested `panelActions`\n * - GET integrationService/api/v1/action/panel/{panelId} → the same\n * `PanelAction` rows standalone\n * - PUT action/panel/{panelId} buckets rows by presence of `panelActionId`\n * (present ⇒ update, absent ⇒ add-and-associate)\n *\n * Every domain object carries an `unknownKeys` bag so server-owned fields we do\n * not model (clusterId, redundant parent ids, future additions) survive a\n * read→edit→write round trip untouched.\n */\n\n/** JsonLogic expression — opaque to the domain layer. */\nexport type JsonLogic = Record<string, unknown>;\n\n/**\n * Action behaviour discriminator (legacy `NodeActionEnums`, offered subset).\n * The numbers are persisted values — never renumber.\n */\nexport enum ActionType {\n /** Call an API method directly. */\n ExecuteApi = 2,\n /** Kick off a workflow definition. */\n StartWorkflow = 3,\n /** Create a record (API + page). */\n Create = 4,\n /** Update a record (API + page). */\n Update = 5,\n /** Delete a record (API). */\n Delete = 6,\n /** Retrieve/view a record (API + page). */\n Retrieve = 7,\n /** Navigate to an in-app path. */\n Redirect = 10,\n /** Open an absolute URL outside the app. */\n OpenExternalLink = 11,\n /** Open a page in the page-level split screen. */\n OpenPageSplitScreen = 14,\n /** Open a page in the shell-level split screen. */\n OpenShellSplitScreen = 15,\n /** Open the notes surface for the current record. */\n OpenNotes = 16,\n /** Open the reminders surface for the current record. */\n OpenReminders = 17,\n /** Invoke a named client function. */\n ExecuteFunction = 18\n}\n\n/** Every `ActionType` member, in offered (persisted-id) order. */\nexport const ACTION_TYPES: readonly ActionType[] = Object.freeze([\n ActionType.ExecuteApi,\n ActionType.StartWorkflow,\n ActionType.Create,\n ActionType.Update,\n ActionType.Delete,\n ActionType.Retrieve,\n ActionType.Redirect,\n ActionType.OpenExternalLink,\n ActionType.OpenPageSplitScreen,\n ActionType.OpenShellSplitScreen,\n ActionType.OpenNotes,\n ActionType.OpenReminders,\n ActionType.ExecuteFunction\n]);\n\n/** Narrowing guard for a persisted `actionTypeId`. */\nexport const isActionType = (value: unknown): value is ActionType =>\n typeof value === 'number' &&\n (ACTION_TYPES as readonly number[]).includes(value);\n\n/**\n * Visibility / enablement rule on an action.\n * `mapping` binds a JsonLogic variable name to a record field name; the\n * matching `propertyIsCustomMapping` flag marks vars whose value is supplied by\n * the caller rather than read off the record.\n */\nexport interface ActionRule {\n /** Association id — absent on a rule that has never been persisted. */\n actionRuleId?: string;\n /** Tenant `Rule` entity this row links to. */\n ruleId?: string;\n /** JsonLogic expression evaluated against the mapped variables. */\n jsonLogic: unknown;\n /** JsonLogic var name → record field name. */\n mapping: Record<string, string>;\n /** JsonLogic var name → \"value is custom, not a record field\". */\n propertyIsCustomMapping: Record<string, boolean>;\n /** Unrecognized wire keys preserved verbatim for write-back. */\n unknownKeys?: Record<string, unknown>;\n}\n\n/** Where an action came from — drives the tenant-override fork on edit. */\nexport interface ActionProvenance {\n tenantId?: string;\n productVersionId?: string;\n /** Product action this row overrides, or null when it is not an override. */\n parentActionId?: string | null;\n /** Ships with the product (read-only for non-product tenants). */\n isProductAction: boolean;\n /** Available to every tree/node rather than a specific panel. */\n isGlobalAction: boolean;\n}\n\n/**\n * The action itself — what a button does when pressed. Shared across panels:\n * two panels can reference one `actionId`.\n */\nexport interface ActionConfig {\n /** null ⇒ new, not yet persisted. */\n actionId: string | null;\n /** Author-facing label (also the button label). */\n name: string;\n actionTypeId: ActionType;\n /**\n * Type-dependent payload: apiMethodId for API types, pageId for legacy page\n * types, path/url/function-name for text types. `''` when not applicable.\n */\n value: string | null;\n /** Typed parameter bag; `pageId` is set for the split-screen types. */\n parameters: ({ pageId?: string } & Record<string, unknown>) | null;\n /** Visibility/enablement rules; empty array = always shown. */\n rules: ActionRule[];\n provenance: ActionProvenance;\n /** Unrecognized wire keys preserved verbatim for write-back. */\n unknownKeys?: Record<string, unknown>;\n}\n\n/**\n * Button icon as persisted. Names are historically LEGACY Fluent React icon\n * names (`SplitIcon`, `ReminderTimeIcon`) — see actionTypeMeta.ts for\n * resolution onto the stencil icon registry.\n */\nexport interface PanelButtonIcon {\n name: string;\n /** Legacy discriminator carried on the wire (usually null). */\n type: string | null;\n /**\n * Stencil icon-registry name, written beside a legacy MDL2 `name` so 26.x\n * renders `name` and v27 renders this. Absent on icons saved before it.\n */\n fluentName?: string | null;\n /** Unrecognized wire keys preserved verbatim for write-back. */\n unknownKeys?: Record<string, unknown>;\n}\n\n/**\n * One button in a panel: a panel↔action association plus its presentation.\n */\nexport interface PanelButton {\n /** Association id. Present ⇒ persisted row (update); absent ⇒ add. */\n panelActionId?: string;\n action: ActionConfig;\n icon: PanelButtonIcon;\n /** Free-text grouping label (\"Account\", \"Workflow\"), or null. */\n groupName: string | null;\n /** Display order within the panel. Normalized to a number on read. */\n sequence: number;\n /** false ⇒ rendered disabled. */\n enabled: boolean;\n /** Promoted button (primary appearance / speed-dial trigger). */\n isPrimary: boolean;\n /** true ⇒ not rendered at all. */\n hideAction: boolean;\n /** Unrecognized wire keys preserved verbatim for write-back. */\n unknownKeys?: Record<string, unknown>;\n}\n\n/** Where a panel came from — drives the tenant-override fork on edit. */\nexport interface PanelProvenance {\n tenantId?: string;\n productVersionId?: string;\n /** Product panel this row overrides, or null when it is not an override. */\n parentPanelId?: string | null;\n /** Ships with the product (read-only for non-product tenants). */\n isProductPanel: boolean;\n}\n\n/** A named container of action buttons, attachable to inquiry tree nodes. */\nexport interface Panel {\n panelId: string;\n name: string;\n buttons: PanelButton[];\n /**\n * Panel-level rules. Opaque passthrough: no live example exists yet, so the\n * domain deliberately does not model the element shape — `null` is preserved\n * as `null` rather than normalized to `[]`.\n */\n panelRules: unknown[] | null;\n provenance: PanelProvenance;\n /** Unrecognized wire keys preserved verbatim for write-back. */\n unknownKeys?: Record<string, unknown>;\n}\n"],"mappings":";;;;;AA4BA,IAAYE,aAAL,yBAAA,YAAA;;AAELC,YAAAA,WAAAA,gBAAAA,KAAAA;;AAEAC,YAAAA,WAAAA,mBAAAA,KAAAA;;AAEAC,YAAAA,WAAAA,YAAAA,KAAAA;;AAEAC,YAAAA,WAAAA,YAAAA,KAAAA;;AAEAC,YAAAA,WAAAA,YAAAA,KAAAA;;AAEAC,YAAAA,WAAAA,cAAAA,KAAAA;;AAEAC,YAAAA,WAAAA,cAAAA,MAAAA;;AAEAC,YAAAA,WAAAA,sBAAAA,MAAAA;;AAEAC,YAAAA,WAAAA,yBAAAA,MAAAA;;AAEAC,YAAAA,WAAAA,0BAAAA,MAAAA;;AAEAC,YAAAA,WAAAA,eAAAA,MAAAA;;AAEAC,YAAAA,WAAAA,mBAAAA,MAAAA;;AAEAC,YAAAA,WAAAA,qBAAAA,MAAAA;;KACF;;AAGA,MAAaC,eAAsCC,OAAOC,OAAO;CAC/DhB,WAAWC;CACXD,WAAWE;CACXF,WAAWG;CACXH,WAAWI;CACXJ,WAAWK;CACXL,WAAWM;CACXN,WAAWO;CACXP,WAAWQ;CACXR,WAAWS;CACXT,WAAWU;CACXV,WAAWW;CACXX,WAAWY;CACXZ,WAAWa;CACZ,CAAC;;AAGF,MAAaI,gBAAgBC,UAC3B,OAAOA,UAAU,YAChBJ,aAAmCK,SAASD,MAAM"}
1
+ {"version":3,"file":"types.mjs","names":["JsonLogic","StagedRule","ActionType","ExecuteApi","StartWorkflow","Create","Update","Delete","Retrieve","Redirect","OpenExternalLink","OpenPageSplitScreen","OpenShellSplitScreen","OpenNotes","OpenReminders","ExecuteFunction","ACTION_TYPES","Object","freeze","isActionType","value","includes","ActionRule","actionRuleId","ruleId","jsonLogic","mapping","Record","propertyIsCustomMapping","stagedRule","unknownKeys","ActionProvenance","tenantId","productVersionId","parentActionId","isProductAction","isGlobalAction","ActionParameters","pageId","pageDisplayName","entityName","requiredFieldMapping","ActionConfig","actionId","name","actionTypeId","parameters","rules","provenance","PanelButtonIcon","type","fluentName","PanelButton","panelActionId","action","icon","groupName","sequence","enabled","isPrimary","hideAction","PanelProvenance","parentPanelId","isProductPanel","Panel","panelId","buttons","panelRules"],"sources":["../../../src/domain/actionPanel/types.ts"],"sourcesContent":["/**\n * Typed domain model for UDP action panels — named containers of action buttons\n * attached to inquiry tree nodes (\"Speed Dial\", \"Account actions\", …).\n *\n * The single source of truth for what a panel is, shared by Tree Builder v2's\n * panel editor and the inquiry v2 runtime. Pure types: no React, no HTTP.\n * Wire↔domain conversion happens ONLY in serialize.ts.\n *\n * Wire boundary (captured live 2026-07-28 against gateway.unitydev.ca):\n * - GET integrationService/api/v1/panel/detailed?tenantId={id} → panels WITH\n * nested `panelActions`\n * - GET integrationService/api/v1/action/panel/{panelId} → the same\n * `PanelAction` rows standalone\n * - PUT action/panel/{panelId} buckets rows by presence of `panelActionId`\n * (present ⇒ update, absent ⇒ add-and-associate)\n *\n * Every domain object carries an `unknownKeys` bag so server-owned fields we do\n * not model (clusterId, redundant parent ids, future additions) survive a\n * read→edit→write round trip untouched.\n */\n\nimport type { JsonLogic, StagedRule } from '../inquiryTree/types';\n\nexport type { JsonLogic };\n\n/**\n * Action behaviour discriminator (legacy `NodeActionEnums`, offered subset).\n * The numbers are persisted values — never renumber.\n */\nexport enum ActionType {\n /** Call an API method directly. */\n ExecuteApi = 2,\n /** Kick off a workflow definition. */\n StartWorkflow = 3,\n /** Create a record (API + page). */\n Create = 4,\n /** Update a record (API + page). */\n Update = 5,\n /** Delete a record (API). */\n Delete = 6,\n /** Retrieve/view a record (API + page). */\n Retrieve = 7,\n /** Navigate to an in-app path. */\n Redirect = 10,\n /** Open an absolute URL outside the app. */\n OpenExternalLink = 11,\n /** Open a page in the page-level split screen. */\n OpenPageSplitScreen = 14,\n /** Open a page in the shell-level split screen. */\n OpenShellSplitScreen = 15,\n /** Open the notes surface for the current record. */\n OpenNotes = 16,\n /** Open the reminders surface for the current record. */\n OpenReminders = 17,\n /** Invoke a named client function. */\n ExecuteFunction = 18\n}\n\n/** Every `ActionType` member, in offered (persisted-id) order. */\nexport const ACTION_TYPES: readonly ActionType[] = Object.freeze([\n ActionType.ExecuteApi,\n ActionType.StartWorkflow,\n ActionType.Create,\n ActionType.Update,\n ActionType.Delete,\n ActionType.Retrieve,\n ActionType.Redirect,\n ActionType.OpenExternalLink,\n ActionType.OpenPageSplitScreen,\n ActionType.OpenShellSplitScreen,\n ActionType.OpenNotes,\n ActionType.OpenReminders,\n ActionType.ExecuteFunction\n]);\n\n/** Narrowing guard for a persisted `actionTypeId`. */\nexport const isActionType = (value: unknown): value is ActionType =>\n typeof value === 'number' &&\n (ACTION_TYPES as readonly number[]).includes(value);\n\n/**\n * Visibility / enablement rule on an action.\n * `mapping` binds a JsonLogic variable name to a record field name; the\n * matching `propertyIsCustomMapping` flag marks vars whose value is supplied by\n * the caller rather than read off the record.\n */\nexport interface ActionRule {\n /** Association id — absent on a rule that has never been persisted. */\n actionRuleId?: string;\n /**\n * Tenant `Rule` entity this row links to. Absent while `stagedRule` names\n * the rule Save binds — a condition names its rule in one place.\n */\n ruleId?: string;\n /** JsonLogic expression evaluated against the mapped variables. */\n jsonLogic: JsonLogic | null;\n /** JsonLogic var name → record field name. */\n mapping: Record<string, string>;\n /** JsonLogic var name → \"value is custom, not a record field\". */\n propertyIsCustomMapping: Record<string, boolean>;\n /**\n * The rule the tree's Save writes and binds for this condition — the same\n * `StagedRule` a tree condition carries. Never on a tree the server read.\n */\n stagedRule?: StagedRule;\n /** Unrecognized wire keys preserved verbatim for write-back. */\n unknownKeys?: Record<string, unknown>;\n}\n\n/** Where an action came from — drives the tenant-override fork on edit. */\nexport interface ActionProvenance {\n tenantId?: string;\n productVersionId?: string;\n /** Product action this row overrides, or null when it is not an override. */\n parentActionId?: string | null;\n /** Ships with the product (read-only for non-product tenants). */\n isProductAction: boolean;\n /** Available to every tree/node rather than a specific panel. */\n isGlobalAction: boolean;\n}\n\n/** An action's parameter bag; keys beyond these ride through untouched. */\nexport interface ActionParameters extends Record<string, unknown> {\n pageId?: string;\n pageDisplayName?: string;\n entityName?: string;\n requiredFieldMapping?: Record<string, unknown>;\n}\n\n/**\n * The action itself — what a button does when pressed. Shared across panels:\n * two panels can reference one `actionId`.\n */\nexport interface ActionConfig {\n /** null ⇒ new, not yet persisted. */\n actionId: string | null;\n /** Author-facing label (also the button label). */\n name: string;\n actionTypeId: ActionType;\n /**\n * Type-dependent payload: apiMethodId for API types, pageId for legacy page\n * types, path/url/function-name for text types. `''` when not applicable.\n */\n value: string | null;\n /**\n * Typed parameter bag: `pageId` for the page types, `entityName` for the\n * entity an action targets or a link carries.\n */\n parameters: ActionParameters | null;\n /** Visibility/enablement rules; empty array = always shown. */\n rules: ActionRule[];\n provenance: ActionProvenance;\n /** Unrecognized wire keys preserved verbatim for write-back. */\n unknownKeys?: Record<string, unknown>;\n}\n\n/**\n * Button icon as persisted. Names are historically LEGACY Fluent React icon\n * names (`SplitIcon`, `ReminderTimeIcon`) — see actionTypeMeta.ts for\n * resolution onto the stencil icon registry.\n */\nexport interface PanelButtonIcon {\n name: string;\n /** Legacy discriminator carried on the wire (usually null). */\n type: string | null;\n /**\n * Stencil icon-registry name, written beside a legacy MDL2 `name` so 26.x\n * renders `name` and v27 renders this. Absent on icons saved before it.\n */\n fluentName?: string | null;\n /** Unrecognized wire keys preserved verbatim for write-back. */\n unknownKeys?: Record<string, unknown>;\n}\n\n/**\n * One button in a panel: a panel↔action association plus its presentation.\n */\nexport interface PanelButton {\n /** Association id. Present ⇒ persisted row (update); absent ⇒ add. */\n panelActionId?: string;\n action: ActionConfig;\n icon: PanelButtonIcon;\n /** Free-text grouping label (\"Account\", \"Workflow\"), or null. */\n groupName: string | null;\n /** Display order within the panel. Normalized to a number on read. */\n sequence: number;\n /** false ⇒ rendered disabled. */\n enabled: boolean;\n /** Promoted button (primary appearance / speed-dial trigger). */\n isPrimary: boolean;\n /** true ⇒ not rendered at all. */\n hideAction: boolean;\n /** Unrecognized wire keys preserved verbatim for write-back. */\n unknownKeys?: Record<string, unknown>;\n}\n\n/** Where a panel came from — drives the tenant-override fork on edit. */\nexport interface PanelProvenance {\n tenantId?: string;\n productVersionId?: string;\n /** Product panel this row overrides, or null when it is not an override. */\n parentPanelId?: string | null;\n /** Ships with the product (read-only for non-product tenants). */\n isProductPanel: boolean;\n}\n\n/** A named container of action buttons, attachable to inquiry tree nodes. */\nexport interface Panel {\n panelId: string;\n name: string;\n buttons: PanelButton[];\n /**\n * Panel-level rules. Opaque passthrough: no live example exists yet, so the\n * domain deliberately does not model the element shape — `null` is preserved\n * as `null` rather than normalized to `[]`.\n */\n panelRules: unknown[] | null;\n provenance: PanelProvenance;\n /** Unrecognized wire keys preserved verbatim for write-back. */\n unknownKeys?: Record<string, unknown>;\n}\n"],"mappings":";;;;;AA6BA,IAAYE,aAAL,yBAAA,YAAA;;AAELC,YAAAA,WAAAA,gBAAAA,KAAAA;;AAEAC,YAAAA,WAAAA,mBAAAA,KAAAA;;AAEAC,YAAAA,WAAAA,YAAAA,KAAAA;;AAEAC,YAAAA,WAAAA,YAAAA,KAAAA;;AAEAC,YAAAA,WAAAA,YAAAA,KAAAA;;AAEAC,YAAAA,WAAAA,cAAAA,KAAAA;;AAEAC,YAAAA,WAAAA,cAAAA,MAAAA;;AAEAC,YAAAA,WAAAA,sBAAAA,MAAAA;;AAEAC,YAAAA,WAAAA,yBAAAA,MAAAA;;AAEAC,YAAAA,WAAAA,0BAAAA,MAAAA;;AAEAC,YAAAA,WAAAA,eAAAA,MAAAA;;AAEAC,YAAAA,WAAAA,mBAAAA,MAAAA;;AAEAC,YAAAA,WAAAA,qBAAAA,MAAAA;;KACF;;AAGA,MAAaC,eAAsCC,OAAOC,OAAO;CAC/DhB,WAAWC;CACXD,WAAWE;CACXF,WAAWG;CACXH,WAAWI;CACXJ,WAAWK;CACXL,WAAWM;CACXN,WAAWO;CACXP,WAAWQ;CACXR,WAAWS;CACXT,WAAWU;CACXV,WAAWW;CACXX,WAAWY;CACXZ,WAAWa;CACZ,CAAC;;AAGF,MAAaI,gBAAgBC,UAC3B,OAAOA,UAAU,YAChBJ,aAAmCK,SAASD,MAAM"}
@@ -10,10 +10,22 @@ import { CatalogObject } from './legalChildren';
10
10
  /** Compact, model-friendly outline of the working tree. */
11
11
  export declare const describeTree: (tree: InquiryTree) => string;
12
12
  /**
13
- * Resolve a model-supplied node reference — exact id first, then exact
14
- * case-insensitive name, then unique name substring. Ambiguity is an error the
15
- * model can repair from.
13
+ * How a model-supplied reference resolved: the one match, or how many items
14
+ * tied (`exact` when they tied on the whole label) — 0 when nothing matched.
16
15
  */
16
+ export interface RefResolution<T> {
17
+ match?: T;
18
+ matches: number;
19
+ exact?: boolean;
20
+ }
21
+ /**
22
+ * THE copilot reference grammar: an exact key (id, record key…) first, then
23
+ * the exact case-insensitive label, then a unique label substring. Ambiguity
24
+ * is reported, never guessed, so the model can repair from it. Items with no
25
+ * label take part by key only.
26
+ */
27
+ export declare const resolveRef: <T>(items: T[], ref: string, keysOf: (item: T) => string[], labelOf: (item: T) => string) => RefResolution<T>;
28
+ /** Resolve a model-supplied node reference (resolveRef over node id / name). */
17
29
  export declare const resolveNodeRef: (tree: InquiryTree, ref: string) => {
18
30
  node?: TreeNode;
19
31
  error?: string;
@@ -1 +1 @@
1
- {"version":3,"file":"describe.d.ts","sourceRoot":"","sources":["../../../src/domain/inquiryTree/describe.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,OAAO,EAAE,WAAW,EAAE,QAAQ,EAAgB,MAAM,SAAS,CAAC;AAE9D,OAAO,EAAE,aAAa,EAAsB,MAAM,iBAAiB,CAAC;AAoCpE,2DAA2D;AAC3D,eAAO,MAAM,YAAY,+BAUxB,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,cAAc;;;CA4B1B,CAAC;AAEF,2EAAyE;AACzE,eAAO,MAAM,qBAAqB,iFAmBjC,CAAC"}
1
+ {"version":3,"file":"describe.d.ts","sourceRoot":"","sources":["../../../src/domain/inquiryTree/describe.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,OAAO,EAAE,WAAW,EAAE,QAAQ,EAAgB,MAAM,SAAS,CAAC;AAE9D,OAAO,EAAE,aAAa,EAAsB,MAAM,iBAAiB,CAAC;AAmCpE,2DAA2D;AAC3D,eAAO,MAAM,YAAY,+BAUxB,CAAC;AAEF;;;GAGG;AACH,MAAM,WAAW,aAAa,CAAC,CAAC;IAC9B,KAAK,CAAC,EAAE,CAAC,CAAC;IACV,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,CAAC,EAAE,OAAO,CAAC;CACjB;AAED;;;;;GAKG;AACH,eAAO,MAAM,UAAU,GAAI,CAAC,2GAkB3B,CAAC;AAEF,gFAAgF;AAChF,eAAO,MAAM,cAAc;;;CAkB1B,CAAC;AAEF,2EAAyE;AACzE,eAAO,MAAM,qBAAqB,iFAmBjC,CAAC"}
@@ -24,8 +24,7 @@ const describeNode = (view, depth) => {
24
24
  const p = node.properties;
25
25
  const flags = [
26
26
  p.isPrimarySearch ? 'primarySearch' : '',
27
- p.eagerLoad ? 'eagerLoad' : '',
28
- // still authored on v1 trees, and still what v1 composes by
27
+ // children load on expand
29
28
  p.lazyLoad ? 'lazyLoad' : '',
30
29
  p.isDraggable ? 'draggable' : '',
31
30
  p.isActive === false ? 'inactive' : '',
@@ -52,37 +51,42 @@ export const describeTree = (tree) => {
52
51
  return lines.join('\n');
53
52
  };
54
53
  /**
55
- * Resolve a model-supplied node reference — exact id first, then exact
56
- * case-insensitive name, then unique name substring. Ambiguity is an error the
57
- * model can repair from.
54
+ * THE copilot reference grammar: an exact key (id, record key…) first, then
55
+ * the exact case-insensitive label, then a unique label substring. Ambiguity
56
+ * is reported, never guessed, so the model can repair from it. Items with no
57
+ * label take part by key only.
58
58
  */
59
- export const resolveNodeRef = (tree, ref) => {
60
- const live = tree.nodes.filter((n) => !n.isDeleted);
61
- const byId = live.find((n) => n.id === ref);
62
- if (byId)
63
- return { node: byId };
59
+ export const resolveRef = (items, ref, keysOf, labelOf) => {
60
+ const byKey = items.find((item) => keysOf(item).includes(ref));
61
+ if (byKey)
62
+ return { match: byKey, matches: 1 };
64
63
  const lower = ref.toLowerCase();
65
- const named = live.filter((n) => {
66
- var _a;
67
- return isEntityNode(n) && ((_a = n.properties.name) !== null && _a !== void 0 ? _a : '').toLowerCase() === lower;
68
- });
69
- if (named.length === 1)
70
- return { node: named[0] };
71
- if (named.length > 1)
72
- return {
73
- error: `Node reference "${ref}" matches ${named.length} nodes by name; use the node id.`
74
- };
75
- const fuzzy = live.filter((n) => {
64
+ const labelled = items.filter((item) => labelOf(item) !== undefined);
65
+ const lowered = (item) => labelOf(item).toLowerCase();
66
+ const exact = labelled.filter((item) => lowered(item) === lower);
67
+ if (exact.length > 1)
68
+ return { matches: exact.length, exact: true };
69
+ if (exact.length)
70
+ return { match: exact[0], matches: 1 };
71
+ const partial = labelled.filter((item) => lowered(item).includes(lower));
72
+ return partial.length === 1
73
+ ? { match: partial[0], matches: 1 }
74
+ : { matches: partial.length };
75
+ };
76
+ /** Resolve a model-supplied node reference (resolveRef over node id / name). */
77
+ export const resolveNodeRef = (tree, ref) => {
78
+ const { match, matches, exact } = resolveRef(tree.nodes.filter((n) => !n.isDeleted), ref, (n) => [n.id], (n) => {
76
79
  var _a;
77
- return isEntityNode(n) &&
78
- ((_a = n.properties.name) !== null && _a !== void 0 ? _a : '').toLowerCase().includes(lower);
80
+ return (isEntityNode(n) ? ((_a = n.properties.name) !== null && _a !== void 0 ? _a : '') : undefined);
79
81
  });
80
- if (fuzzy.length === 1)
81
- return { node: fuzzy[0] };
82
+ if (match)
83
+ return { node: match };
82
84
  return {
83
- error: fuzzy.length > 1
84
- ? `Node reference "${ref}" is ambiguous (${fuzzy.length} matches); use the node id.`
85
- : `No node matches "${ref}". Use describe_tree to list nodes.`
85
+ error: exact
86
+ ? `Node reference "${ref}" matches ${matches} nodes by name; use the node id.`
87
+ : matches
88
+ ? `Node reference "${ref}" is ambiguous (${matches} matches); use the node id.`
89
+ : `No node matches "${ref}". Use describe_tree to list nodes.`
86
90
  };
87
91
  };
88
92
  /** Legal child entities for a node — the catalog-reachability oracle. */
@@ -1 +1 @@
1
- {"version":3,"file":"describe.js","sourceRoot":"","sources":["../../../src/domain/inquiryTree/describe.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,OAAO,EAAyB,YAAY,EAAE,MAAM,SAAS,CAAC;AAC9D,OAAO,EAAgB,aAAa,EAAE,MAAM,QAAQ,CAAC;AACrD,OAAO,EAAiB,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AACpE,OAAO,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAE5C,6DAA6D;AAC7D,MAAM,YAAY,GAAG,CAAC,IAAkB,EAAE,KAAa,EAAY,EAAE,CAAC;;;IACpE,MAAM,IAAI,GAAG,IAAI,CAAC,IAAI,CAAC;IACvB,MAAM,GAAG,GAAG,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;IAC/B,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,EAAE,CAAC;QACxB,OAAO;YACL,GAAG,GAAG,YAAY,IAAI,CAAC,EAAE,KAAK,YAAY,CAAC,IAAI,CAAC,UAAU,CAAC,KAAK,CAAC,EAAE;YACnE,GAAG,IAAI,CAAC,QAAQ,CAAC,OAAO,CAAC,CA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,CAAC;AAAA,CACH,CAAC"}
@@ -1,7 +1,7 @@
1
- import { isEntityNode } from "./types.mjs";
2
1
  import { buildTreeView } from "./view.mjs";
3
2
  import { toWireString } from "./wireString.mjs";
4
3
  import { legalChildEntities } from "./legalChildren.mjs";
4
+ import { isEntityNode } from "./types.mjs";
5
5
  //#region src/domain/inquiryTree/describe.ts
6
6
  /**
7
7
  * Read-side selectors for AI copilots (tree-builder-v2.md §6: describe tree,
@@ -18,7 +18,6 @@ const describeNode = (view, depth) => {
18
18
  const p = node.properties;
19
19
  const flags = [
20
20
  p.isPrimarySearch ? "primarySearch" : "",
21
- p.eagerLoad ? "eagerLoad" : "",
22
21
  p.lazyLoad ? "lazyLoad" : "",
23
22
  p.isDraggable ? "draggable" : "",
24
23
  p.isActive === false ? "inactive" : "",
@@ -37,21 +36,40 @@ const describeTree = (tree) => {
37
36
  ].join("\n");
38
37
  };
39
38
  /**
40
- * Resolve a model-supplied node reference — exact id first, then exact
41
- * case-insensitive name, then unique name substring. Ambiguity is an error the
42
- * model can repair from.
39
+ * THE copilot reference grammar: an exact key (id, record key…) first, then
40
+ * the exact case-insensitive label, then a unique label substring. Ambiguity
41
+ * is reported, never guessed, so the model can repair from it. Items with no
42
+ * label take part by key only.
43
43
  */
44
- const resolveNodeRef = (tree, ref) => {
45
- const live = tree.nodes.filter((n) => !n.isDeleted);
46
- const byId = live.find((n) => n.id === ref);
47
- if (byId) return { node: byId };
44
+ const resolveRef = (items, ref, keysOf, labelOf) => {
45
+ const byKey = items.find((item) => keysOf(item).includes(ref));
46
+ if (byKey) return {
47
+ match: byKey,
48
+ matches: 1
49
+ };
48
50
  const lower = ref.toLowerCase();
49
- const named = live.filter((n) => isEntityNode(n) && (n.properties.name ?? "").toLowerCase() === lower);
50
- if (named.length === 1) return { node: named[0] };
51
- if (named.length > 1) return { error: `Node reference "${ref}" matches ${named.length} nodes by name; use the node id.` };
52
- const fuzzy = live.filter((n) => isEntityNode(n) && (n.properties.name ?? "").toLowerCase().includes(lower));
53
- if (fuzzy.length === 1) return { node: fuzzy[0] };
54
- return { error: fuzzy.length > 1 ? `Node reference "${ref}" is ambiguous (${fuzzy.length} matches); use the node id.` : `No node matches "${ref}". Use describe_tree to list nodes.` };
51
+ const labelled = items.filter((item) => labelOf(item) !== void 0);
52
+ const lowered = (item) => labelOf(item).toLowerCase();
53
+ const exact = labelled.filter((item) => lowered(item) === lower);
54
+ if (exact.length > 1) return {
55
+ matches: exact.length,
56
+ exact: true
57
+ };
58
+ if (exact.length) return {
59
+ match: exact[0],
60
+ matches: 1
61
+ };
62
+ const partial = labelled.filter((item) => lowered(item).includes(lower));
63
+ return partial.length === 1 ? {
64
+ match: partial[0],
65
+ matches: 1
66
+ } : { matches: partial.length };
67
+ };
68
+ /** Resolve a model-supplied node reference (resolveRef over node id / name). */
69
+ const resolveNodeRef = (tree, ref) => {
70
+ const { match, matches, exact } = resolveRef(tree.nodes.filter((n) => !n.isDeleted), ref, (n) => [n.id], (n) => isEntityNode(n) ? n.properties.name ?? "" : void 0);
71
+ if (match) return { node: match };
72
+ return { error: exact ? `Node reference "${ref}" matches ${matches} nodes by name; use the node id.` : matches ? `Node reference "${ref}" is ambiguous (${matches} matches); use the node id.` : `No node matches "${ref}". Use describe_tree to list nodes.` };
55
73
  };
56
74
  /** Legal child entities for a node — the catalog-reachability oracle. */
57
75
  const describeLegalChildren = (tree, nodeRef, catalogObjects) => {
@@ -63,6 +81,6 @@ const describeLegalChildren = (tree, nodeRef, catalogObjects) => {
63
81
  return `Legal child entities under "${node.properties.name}" (${node.properties.catalogReturnObject}):\n` + entities.map((e) => `- ${e.catalogObjectName}`).join("\n");
64
82
  };
65
83
  //#endregion
66
- export { describeLegalChildren, describeTree, resolveNodeRef };
84
+ export { describeLegalChildren, describeTree, resolveNodeRef, resolveRef };
67
85
 
68
86
  //# sourceMappingURL=describe.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"describe.mjs","names":["InquiryTree","TreeNode","isEntityNode","TreeViewNode","buildTreeView","CatalogObject","legalChildEntities","toWireString","describeNode","view","depth","node","pad","repeat","id","properties","label","children","flatMap","child","p","flags","isPrimarySearch","eagerLoad","lazyLoad","isDraggable","isActive","groupConfiguration","enabled","tabs","length","filter","Boolean","join","name","catalogReturnObject","description","describeTree","tree","roots","lines","nodes","n","isDeleted","root","resolveNodeRef","ref","error","live","byId","find","lower","toLowerCase","named","fuzzy","includes","describeLegalChildren","nodeRef","catalogObjects","entities","map","e","catalogObjectName"],"sources":["../../../src/domain/inquiryTree/describe.ts"],"sourcesContent":["/**\n * Read-side selectors for AI copilots (tree-builder-v2.md §6: describe tree,\n * find nodes, legal children). Pure functions over the domain model — no\n * registry/assistant types so the module stays platform-agnostic. Promoted from\n * Tree Builder v2 (src/v2/features/ai/describeTree.ts) so the Tree Builder and\n * Inquiry copilots share one implementation.\n */\nimport { InquiryTree, TreeNode, isEntityNode } from './types';\nimport { TreeViewNode, buildTreeView } from './view';\nimport { CatalogObject, legalChildEntities } from './legalChildren';\nimport { toWireString } from './wireString';\n\n/** One line per node: id, name, entity, key scalar flags. */\nconst describeNode = (view: TreeViewNode, depth: number): string[] => {\n const node = view.node;\n const pad = ' '.repeat(depth);\n if (!isEntityNode(node)) {\n return [\n `${pad}- [group ${node.id}] ${toWireString(node.properties.label)}`,\n ...view.children.flatMap((child) => describeNode(child, depth + 1))\n ];\n }\n const p = node.properties;\n const flags = [\n p.isPrimarySearch ? 'primarySearch' : '',\n p.eagerLoad ? 'eagerLoad' : '',\n // still authored on v1 trees, and still what v1 composes by\n p.lazyLoad ? 'lazyLoad' : '',\n p.isDraggable ? 'draggable' : '',\n p.isActive === false ? 'inactive' : '',\n p.groupConfiguration?.enabled ? 'grouped' : '',\n (p.tabs?.length ?? 0) > 0 ? `${p.tabs?.length} tabs` : ''\n ]\n .filter(Boolean)\n .join(', ');\n return [\n `${pad}- [${node.id}] \"${p.name ?? ''}\" entity=${\n p.catalogReturnObject ?? '?'\n }` +\n (p.description ? ` — ${p.description}` : '') +\n (flags ? ` (${flags})` : ''),\n ...view.children.flatMap((child) => describeNode(child, depth + 1))\n ];\n};\n\n/** Compact, model-friendly outline of the working tree. */\nexport const describeTree = (tree: InquiryTree): string => {\n const roots = buildTreeView(tree);\n const lines = [\n `Tree \"${tree.name}\" (${\n tree.nodes.filter((n) => !n.isDeleted).length\n } nodes).`,\n 'Nodes ([id] \"name\" entity=Entity — description (flags)):',\n ...roots.flatMap((root) => describeNode(root, 0))\n ];\n return lines.join('\\n');\n};\n\n/**\n * Resolve a model-supplied node reference — exact id first, then exact\n * case-insensitive name, then unique name substring. Ambiguity is an error the\n * model can repair from.\n */\nexport const resolveNodeRef = (\n tree: InquiryTree,\n ref: string\n): { node?: TreeNode; error?: string } => {\n const live = tree.nodes.filter((n) => !n.isDeleted);\n const byId = live.find((n) => n.id === ref);\n if (byId) return { node: byId };\n const lower = ref.toLowerCase();\n const named = live.filter(\n (n) => isEntityNode(n) && (n.properties.name ?? '').toLowerCase() === lower\n );\n if (named.length === 1) return { node: named[0] };\n if (named.length > 1)\n return {\n error: `Node reference \"${ref}\" matches ${named.length} nodes by name; use the node id.`\n };\n const fuzzy = live.filter(\n (n) =>\n isEntityNode(n) &&\n (n.properties.name ?? '').toLowerCase().includes(lower)\n );\n if (fuzzy.length === 1) return { node: fuzzy[0] };\n return {\n error:\n fuzzy.length > 1\n ? `Node reference \"${ref}\" is ambiguous (${fuzzy.length} matches); use the node id.`\n : `No node matches \"${ref}\". Use describe_tree to list nodes.`\n };\n};\n\n/** Legal child entities for a node — the catalog-reachability oracle. */\nexport const describeLegalChildren = (\n tree: InquiryTree,\n nodeRef: string,\n catalogObjects: CatalogObject[]\n): string => {\n const { node, error } = resolveNodeRef(tree, nodeRef);\n if (error || !node) return error ?? 'Node not found.';\n if (!isEntityNode(node)) return 'Group nodes cannot have entity children.';\n const entities = legalChildEntities(\n catalogObjects,\n node.properties.catalogReturnObject ?? ''\n );\n if (!entities.length)\n return `No legal child entities under \"${node.properties.name}\".`;\n return (\n `Legal child entities under \"${node.properties.name}\" ` +\n `(${node.properties.catalogReturnObject}):\\n` +\n entities.map((e) => `- ${e.catalogObjectName}`).join('\\n')\n );\n};\n"],"mappings":";;;;;;;;;;;;;AAaA,MAAMQ,gBAAgBC,MAAoBC,UAA4B;CACpE,MAAMC,OAAOF,KAAKE;CAClB,MAAMC,MAAM,KAAKC,OAAOH,MAAM;AAC9B,KAAI,CAACR,aAAaS,KAAK,CACrB,QAAO,CACL,GAAGC,IAAG,WAAYD,KAAKG,GAAE,IAAKP,aAAaI,KAAKI,WAAWC,MAAM,IACjE,GAAGP,KAAKQ,SAASC,SAASC,UAAUX,aAAaW,OAAOT,QAAQ,EAAE,CAAC,CACpE;CAEH,MAAMU,IAAIT,KAAKI;CACf,MAAMM,QAAQ;EACZD,EAAEE,kBAAkB,kBAAkB;EACtCF,EAAEG,YAAY,cAAc;EAE5BH,EAAEI,WAAW,aAAa;EAC1BJ,EAAEK,cAAc,cAAc;EAC9BL,EAAEM,aAAa,QAAQ,aAAa;EACpCN,EAAEO,oBAAoBC,UAAU,YAAY;GAC3CR,EAAES,MAAMC,UAAU,KAAK,IAAI,GAAGV,EAAES,MAAMC,OAAM,SAAU;EACxD,CACEC,OAAOC,QAAQ,CACfC,KAAK,KAAK;AACb,QAAO,CACL,GAAGrB,IAAG,KAAMD,KAAKG,GAAE,KAAMM,EAAEc,QAAQ,GAAE,WACnCd,EAAEe,uBAAuB,SAExBf,EAAEgB,cAAc,MAAMhB,EAAEgB,gBAAgB,OACxCf,QAAQ,KAAKA,MAAK,KAAM,KAC3B,GAAGZ,KAAKQ,SAASC,SAASC,UAAUX,aAAaW,OAAOT,QAAQ,EAAE,CAAC,CACpE;;;AAIH,MAAa2B,gBAAgBC,SAA8B;CACzD,MAAMC,QAAQnC,cAAckC,KAAK;AAQjC,QAPc;EACZ,SAASA,KAAKJ,KAAI,KAChBI,KAAKG,MAAMV,QAAQW,MAAM,CAACA,EAAEC,UAAU,CAACb,OAAM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7B,OACZ,QAAO,kCAAkCnB,KAAKI,WAAWmB,KAAI;AAC/D,QACE,+BAA+BvB,KAAKI,WAAWmB,KAAI,KAC/CvB,KAAKI,WAAWoB,oBAAmB,QACvCwB,SAASC,KAAKC,MAAM,KAAKA,EAAEC,oBAAoB,CAAC7B,KAAK,KAAK"}
1
+ {"version":3,"file":"describe.mjs","names":["InquiryTree","TreeNode","isEntityNode","TreeViewNode","buildTreeView","CatalogObject","legalChildEntities","toWireString","describeNode","view","depth","node","pad","repeat","id","properties","label","children","flatMap","child","p","flags","isPrimarySearch","lazyLoad","isDraggable","isActive","groupConfiguration","enabled","tabs","length","filter","Boolean","join","name","catalogReturnObject","description","describeTree","tree","roots","lines","nodes","n","isDeleted","root","RefResolution","match","T","matches","exact","resolveRef","items","ref","keysOf","item","Array","labelOf","byKey","find","includes","lower","toLowerCase","labelled","undefined","lowered","partial","resolveNodeRef","error","describeLegalChildren","nodeRef","catalogObjects","entities","map","e","catalogObjectName"],"sources":["../../../src/domain/inquiryTree/describe.ts"],"sourcesContent":["/**\n * Read-side selectors for AI copilots (tree-builder-v2.md §6: describe tree,\n * find nodes, legal children). Pure functions over the domain model — no\n * registry/assistant types so the module stays platform-agnostic. Promoted from\n * Tree Builder v2 (src/v2/features/ai/describeTree.ts) so the Tree Builder and\n * Inquiry copilots share one implementation.\n */\nimport { InquiryTree, TreeNode, isEntityNode } from './types';\nimport { TreeViewNode, buildTreeView } from './view';\nimport { CatalogObject, legalChildEntities } from './legalChildren';\nimport { toWireString } from './wireString';\n\n/** One line per node: id, name, entity, key scalar flags. */\nconst describeNode = (view: TreeViewNode, depth: number): string[] => {\n const node = view.node;\n const pad = ' '.repeat(depth);\n if (!isEntityNode(node)) {\n return [\n `${pad}- [group ${node.id}] ${toWireString(node.properties.label)}`,\n ...view.children.flatMap((child) => describeNode(child, depth + 1))\n ];\n }\n const p = node.properties;\n const flags = [\n p.isPrimarySearch ? 'primarySearch' : '',\n // children load on expand\n p.lazyLoad ? 'lazyLoad' : '',\n p.isDraggable ? 'draggable' : '',\n p.isActive === false ? 'inactive' : '',\n p.groupConfiguration?.enabled ? 'grouped' : '',\n (p.tabs?.length ?? 0) > 0 ? `${p.tabs?.length} tabs` : ''\n ]\n .filter(Boolean)\n .join(', ');\n return [\n `${pad}- [${node.id}] \"${p.name ?? ''}\" entity=${\n p.catalogReturnObject ?? '?'\n }` +\n (p.description ? ` — ${p.description}` : '') +\n (flags ? ` (${flags})` : ''),\n ...view.children.flatMap((child) => describeNode(child, depth + 1))\n ];\n};\n\n/** Compact, model-friendly outline of the working tree. */\nexport const describeTree = (tree: InquiryTree): string => {\n const roots = buildTreeView(tree);\n const lines = [\n `Tree \"${tree.name}\" (${\n tree.nodes.filter((n) => !n.isDeleted).length\n } nodes).`,\n 'Nodes ([id] \"name\" entity=Entity — description (flags)):',\n ...roots.flatMap((root) => describeNode(root, 0))\n ];\n return lines.join('\\n');\n};\n\n/**\n * How a model-supplied reference resolved: the one match, or how many items\n * tied (`exact` when they tied on the whole label) — 0 when nothing matched.\n */\nexport interface RefResolution<T> {\n match?: T;\n matches: number;\n exact?: boolean;\n}\n\n/**\n * THE copilot reference grammar: an exact key (id, record key…) first, then\n * the exact case-insensitive label, then a unique label substring. Ambiguity\n * is reported, never guessed, so the model can repair from it. Items with no\n * label take part by key only.\n */\nexport const resolveRef = <T>(\n items: T[],\n ref: string,\n keysOf: (item: T) => Array<string | null | undefined>,\n labelOf: (item: T) => string | undefined\n): RefResolution<T> => {\n const byKey = items.find((item) => keysOf(item).includes(ref));\n if (byKey) return { match: byKey, matches: 1 };\n const lower = ref.toLowerCase();\n const labelled = items.filter((item) => labelOf(item) !== undefined);\n const lowered = (item: T) => (labelOf(item) as string).toLowerCase();\n const exact = labelled.filter((item) => lowered(item) === lower);\n if (exact.length > 1) return { matches: exact.length, exact: true };\n if (exact.length) return { match: exact[0], matches: 1 };\n const partial = labelled.filter((item) => lowered(item).includes(lower));\n return partial.length === 1\n ? { match: partial[0], matches: 1 }\n : { matches: partial.length };\n};\n\n/** Resolve a model-supplied node reference (resolveRef over node id / name). */\nexport const resolveNodeRef = (\n tree: InquiryTree,\n ref: string\n): { node?: TreeNode; error?: string } => {\n const { match, matches, exact } = resolveRef(\n tree.nodes.filter((n) => !n.isDeleted),\n ref,\n (n) => [n.id],\n (n) => (isEntityNode(n) ? (n.properties.name ?? '') : undefined)\n );\n if (match) return { node: match };\n return {\n error: exact\n ? `Node reference \"${ref}\" matches ${matches} nodes by name; use the node id.`\n : matches\n ? `Node reference \"${ref}\" is ambiguous (${matches} matches); use the node id.`\n : `No node matches \"${ref}\". Use describe_tree to list nodes.`\n };\n};\n\n/** Legal child entities for a node — the catalog-reachability oracle. */\nexport const describeLegalChildren = (\n tree: InquiryTree,\n nodeRef: string,\n catalogObjects: CatalogObject[]\n): string => {\n const { node, error } = resolveNodeRef(tree, nodeRef);\n if (error || !node) return error ?? 'Node not found.';\n if (!isEntityNode(node)) return 'Group nodes cannot have entity children.';\n const entities = legalChildEntities(\n catalogObjects,\n node.properties.catalogReturnObject ?? ''\n );\n if (!entities.length)\n return `No legal child entities under \"${node.properties.name}\".`;\n return (\n `Legal child entities under \"${node.properties.name}\" ` +\n `(${node.properties.catalogReturnObject}):\\n` +\n entities.map((e) => `- ${e.catalogObjectName}`).join('\\n')\n );\n};\n"],"mappings":";;;;;;;;;;;;;AAaA,MAAMQ,gBAAgBC,MAAoBC,UAA4B;CACpE,MAAMC,OAAOF,KAAKE;CAClB,MAAMC,MAAM,KAAKC,OAAOH,MAAM;AAC9B,KAAI,CAACR,aAAaS,KAAK,CACrB,QAAO,CACL,GAAGC,IAAG,WAAYD,KAAKG,GAAE,IAAKP,aAAaI,KAAKI,WAAWC,MAAM,IACjE,GAAGP,KAAKQ,SAASC,SAASC,UAAUX,aAAaW,OAAOT,QAAQ,EAAE,CAAC,CACpE;CAEH,MAAMU,IAAIT,KAAKI;CACf,MAAMM,QAAQ;EACZD,EAAEE,kBAAkB,kBAAkB;EAEtCF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zC,KAAK,KAAK"}
@@ -3,9 +3,15 @@ import { CatalogObject } from './legalChildren';
3
3
  import { TreeNode } from './types';
4
4
  /* ------------------------------------------------------------------- types */
5
5
  /**
6
- * A legacy-shaped display node — both the seed (wire treeStructure entry /
7
- * nested config node) and the enriched output. Loosely typed on purpose: this
8
- * is the byte-compatible bag InquiryTreeMenu/InquiryContainer already consume.
6
+ * Where a row's child levels stand: 'none' — nothing to fetch (a leaf, or
7
+ * every child level eager); 'lazy' — fetched on expand; 'loaded'; 'error' — a
8
+ * lazy level failed and nothing loaded, so the next expand retries.
9
+ */
10
+ export type ChildState = 'none' | 'lazy' | 'loaded' | 'error';
11
+ /**
12
+ * A display node — both the seed (wire treeStructure entry / nested config
13
+ * node) and the enriched output. `properties` is the level's config plus the
14
+ * resolved labels and icons; the row's own display state has typed fields.
9
15
  */
10
16
  export interface DisplayNode {
11
17
  [key: string]: unknown;
@@ -26,13 +32,32 @@ export interface DisplayNode {
26
32
  nodeObj?: Record<string, unknown>;
27
33
  lazyLoadChildrenArr?: LazyChildSearchDescriptor[];
28
34
  errorRetrievingChildren?: string | null;
35
+ /** Read through rowChildState; absent = 'none'. */
36
+ childState?: ChildState;
37
+ /** Rows of this level can be picked up (isDraggableLevel). */
38
+ draggable?: boolean;
29
39
  }
40
+ /** Where the row's child levels stand — THE chevron/fetch predicate. */
41
+ export declare const rowChildState: (node: {
42
+ childState?: ChildState;
43
+ }) => ChildState;
44
+ /** A lazy level the row has not loaded yet: what an expand fetches. */
45
+ export declare const hasUnloadedChildren: (node: {
46
+ childState?: ChildState;
47
+ }) => boolean;
30
48
  /**
31
- * The row's DISPLAY label — the exact string the tree renders for a node:
32
- * the group's own label, or the entity row's resolved `nodeLabel` (stamped by
33
- * processObjIndexInPlace from the `displayName` template) falling back to the
34
- * level's configured name, as renderTree :367 has always done. One reader for
35
- * both the menu/filter and the record pane, so nothing derives it twice.
49
+ * THE load rule, read off the parent: a level's child levels load lazily —
50
+ * collapsed, fetched on expand — when it sets `lazyLoad`, and eagerly
51
+ * otherwise. One setting on the parent, the one both builders store and v1
52
+ * reads.
53
+ */
54
+ export declare const loadsChildrenLazily: (level: DisplayNode) => boolean;
55
+ /**
56
+ * The row's DISPLAY label — the exact string the tree renders for a node: the
57
+ * entity row's resolved `nodeLabel` (stamped by processObjIndexInPlace from the
58
+ * `displayName` template), else the level's name as the Tree Builder shows it
59
+ * (levelName — a group's label). Never blank. One reader for the menu/filter
60
+ * and the record pane, so nothing derives it twice.
36
61
  */
37
62
  export declare const resolveRowLabel: (node: {
38
63
  isGroupNode?: boolean;
@@ -42,130 +67,83 @@ export declare const resolveRowLabel: (node: {
42
67
  export declare const nodeEntityName: (node: {
43
68
  properties?: Record<string, unknown>;
44
69
  }) => string;
45
- /** Options for buildDisplayTree (legacy formatTreeMenuItem's tail parameters). */
46
- export interface DisplayTreeOptions {
70
+ /** What every composition step needs besides the row and its level. */
71
+ export interface DisplayBuildContext {
47
72
  /** Id factory — legacy assigned uuid() per display row (decision 9). */
48
73
  makeId: () => string;
49
- /** Which eager/lazy rule composes the levels. Defaults to v1's (LoadMode). */
50
- loadMode?: LoadMode;
51
74
  catalogObjects?: CatalogObject[] | null;
75
+ /** Enables the lazy fallback's child descriptors (documented divergence on
76
+ * preloaded rows: legacy passed no entity metadata there). */
52
77
  promotedEntities?: PromotedEntity[] | null;
53
- /** Attached verbatim to the returned root (legacy :1121). */
54
- associatedInquiryTree?: unknown;
55
- /** Attached to the root and threaded through rule evaluation (legacy :1122). */
56
- wasLazyLoaded?: boolean;
57
78
  }
79
+ /** Options for buildDisplayTree (legacy formatTreeMenuItem's tail parameters). */
80
+ export type DisplayTreeOptions = DisplayBuildContext;
58
81
  /** Options for buildPreloadedDisplayList (legacy constructPreloadedTree). */
59
- export interface PreloadedDisplayOptions {
60
- makeId: () => string;
61
- /** Which eager/lazy rule composes the levels. Defaults to v1's (LoadMode). */
62
- loadMode?: LoadMode;
63
- catalogObjects?: CatalogObject[] | null;
64
- /** Enables the lazy fallback's child descriptors on preloaded rows
65
- * (documented divergence: legacy passed no entity metadata here). */
66
- promotedEntities?: PromotedEntity[] | null;
67
- }
82
+ export type PreloadedDisplayOptions = DisplayBuildContext;
68
83
  type QueryRow = Record<string, unknown>;
69
- /** `'*'` in the returned set means "every entity is accepted somewhere". */
84
+ /** Whether a drop action's `dragEntityName` names `entityName` — the gate's rule. */
85
+ export declare const isDragEntity: (dragEntityName: unknown, entityName: unknown) => boolean;
86
+ /** The drag tags some level's On_Node_Drop actions accept. */
70
87
  export declare const collectDropSourceEntities: (levels: DisplayNode[]) => Set<string>;
71
88
  /** Whether this level's rows are draggable, given the tree's accepted entities. */
72
89
  export declare const isDraggableLevel: (node: DisplayNode, acceptedEntities: Set<string>) => boolean;
73
90
  /**
74
- * Pure port of makeTreeStructure (TreeUtilities.js:17-93) — flat display/wire
91
+ * A hideEmptyGroups heading with no record anywhere under it. Lazily fetched
92
+ * levels keep every heading (so a Show More page merges into them in config
93
+ * order); the menu hides these when it draws the tree.
94
+ */
95
+ export declare const isEmptyHiddenHeading: (node: DisplayNode) => boolean;
96
+ /**
97
+ * Pure port of makeTreeStructure (TreeUtilities.js:17-93) — the tree's flat
75
98
  * nodes → nested display seed. Legacy mutated the caller's treeStructure
76
99
  * (poisoning shared caches); this deep-clones the input first, so the caller's
77
100
  * array is never touched. Defaults match every legacy call site
78
101
  * (`makeTreeStructure(ts, 'id', 'parentId')` — InquiryContainer.jsx:569,:731,
79
102
  * :1140,:1293,:1811,:2143,:2558).
80
103
  */
81
- export declare const makeDisplayTreeStructure: (treeData: DisplayNode[], key?: string, parentKey?: string, parentGroupKey?: string, loadMode?: LoadMode) => DisplayNode[] | DisplayNode;
82
- /* ------------------------------------------------------ load-mode decision */
83
- /**
84
- * WHICH RULE DECIDES EAGER vs LAZY. There are two, and every composition entry
85
- * point takes the one its caller wants — the decision is an explicit argument,
86
- * never a hidden global, because both viewers run in the same bundle:
87
- *
88
- * - `'legacy-data'` — v1's rule. THE DATA DECIDES: a child level renders from
89
- * the nested rows the response carried, and loads lazily when it carried
90
- * none; `properties.lazyLoad` is a forced-lazy override. This is the DEFAULT
91
- * so that any caller which has not opted in — including consumers outside
92
- * this repo — keeps the behavior it has always had.
93
- * - `'config'` — v2's rule. THE CONFIG DECIDES: a child level is eager only
94
- * when `properties.eagerLoad === true`, and its rows are fetched by the wave
95
- * loader rather than nested by the server.
96
- */
97
- export type LoadMode = 'config' | 'legacy-data';
98
- /** The safe default: unopted callers keep v1 semantics. */
99
- export declare const DEFAULT_LOAD_MODE: LoadMode;
104
+ export declare const makeDisplayTreeStructure: (treeData: readonly TreeNode[], key?: string, parentKey?: string, parentGroupKey?: string) => DisplayNode[] | DisplayNode;
105
+ /* ------------------------------------------------------ eager/lazy split */
100
106
  /** A level's child levels, split into the ones this row renders and the rest. */
101
107
  export interface ChildLevelSplit {
102
108
  /** catalogObjectKeys of the child levels the walker descends into. */
103
109
  eagerChildKeys: Set<string>;
104
110
  /** The deferred child config nodes — descriptor inputs for the chevron. */
105
111
  lazyChildNodes: DisplayNode[];
106
- /**
107
- * legacy-data only: the authored `lazyLoad` flag forced EVERY child level
108
- * lazy, so descriptors are built for all of them (keyless ones included).
109
- */
110
- forcedLazy: boolean;
111
112
  }
112
113
  /**
113
- * v1's eager/lazy rule, preserved verbatim (this is the former
114
- * `resolveLoadMode`):
115
- *
116
- * A child level renders from nested eager data when the parent row carries
117
- * it; otherwise it loads lazily. `properties.lazyLoad` is a FORCED-LAZY
118
- * OVERRIDE — a level marked lazy ignores whatever eager data the row happens
119
- * to carry.
120
- *
121
- * - the row carries the child's catalogObjectKey (any value, `[]` included)
122
- * → eager: the level renders from that data, no descriptors, groups apply;
123
- * - the row carries null/undefined/no key at all
124
- * → lazy: search descriptors are built so the menu shows a chevron and
125
- * pages the level in on expand;
126
- * - a child level with no catalogObjectKey binds to no data and takes no
127
- * part in the decision.
128
- *
129
- * @deprecated Dies with v1 (`src/inquiry/InquiryContainer.jsx`). New code
130
- * passes `loadMode: 'config'`; nothing else may call this.
114
+ * THE EAGER/LAZY SPLIT for one level: config decides (loadsChildrenLazily). An
115
+ * eager level whose rows the wave loader could not fetch renders EMPTY — it
116
+ * never silently becomes lazy — and a lazy level ignores anything that happens
117
+ * to ride the row. Nothing downstream re-decides it.
131
118
  */
132
- export declare const resolveLegacyLoadMode: (node: DisplayNode, parentRow: QueryRow) => ChildLevelSplit;
119
+ export declare const splitChildLevels: (node: DisplayNode) => ChildLevelSplit;
120
+ /* ------------------------------------------------------------ blank groups */
133
121
  /**
134
- * THE EAGER/LAZY SPLIT for one level, under the caller's chosen rule. Nothing
135
- * downstream re-decides it.
122
+ * The heading a group-by-field level gives records with NO value for the field.
123
+ * Deliberate divergence from legacy, which left those records loose beside the
124
+ * headings (v1 :2092-2093, v2 :2697-2735): a field's values are the groups, and
125
+ * no value is one of them — the grouped-list convention (a "(Blank)" group,
126
+ * listed last). The heading carries `properties.blank`, so a renderer can
127
+ * translate the label.
136
128
  */
137
- export declare const splitChildLevels: (node: DisplayNode, loadMode?: LoadMode, parentRow?: QueryRow) => ChildLevelSplit;
129
+ export declare const BLANK_GROUP_LABEL = "(Blank)";
138
130
  /* -------------------------------------------------------------- entry: row */
139
131
  /**
140
132
  * Pure port of formatTreeMenuItem (TreeUtilities.js:1095-1124): one query row +
141
133
  * the NESTED display seed (makeDisplayTreeStructure output) → the enriched
142
134
  * display tree. Returns null when the row is falsy; a single root is returned
143
- * bare, several as an array — with associatedInquiryTree/wasLazyLoaded
144
- * attached to the result exactly like legacy (:1121-1122). Neither the seed
145
- * nor the row is mutated or aliased (both are deep-cloned up front; nodeObj
146
- * references the private row clone).
135
+ * bare, several as an array. (Legacy also attached its associatedInquiryTree
136
+ * argument to the result (:1121); v2 reads linked trees from their own query.)
137
+ * Neither the seed nor the row is mutated or aliased (both are deep-cloned up
138
+ * front; nodeObj references the private row clone).
147
139
  */
148
- export declare const buildDisplayTree: (row: QueryRow, nestedTreeStructure: DisplayNode, options: DisplayTreeOptions) => DisplayNode[] | DisplayNode;
149
- /** Options for buildDisplayNodeForRecord. */
150
- export interface DisplayNodeForRecordOptions {
151
- /** Id factory — same contract as DisplayTreeOptions (decision 9). */
152
- makeId: () => string;
153
- /** Which eager/lazy rule composes the levels. Defaults to v1's (LoadMode). */
154
- loadMode?: LoadMode;
155
- catalogObjects?: CatalogObject[] | null;
156
- promotedEntities?: PromotedEntity[] | null;
157
- wasLazyLoaded?: boolean;
158
- }
140
+ export declare const buildDisplayTree: (row: QueryRow, nestedTreeStructure: DisplayNode, options: DisplayBuildContext) => DisplayNode[] | DisplayNode;
141
+ /* --------------------------------------------------- entry: preloaded trees */
159
142
  /**
160
- * Single-node variant of buildDisplayTree: enrich ONE entity node with one
161
- * record into the display shape the Inquiry renderer consumes — nodeLabel/
162
- * nodeSubLabel/headerTitle resolved, conditional icon/adornment stamped,
163
- * search state attached, nodeObj set. Same enrichment code path as
164
- * buildDisplayTree (processObjIndexInPlace), so a Tree Builder preview node
165
- * is byte-shaped like a live Inquiry node. Neither input is mutated.
143
+ * Whether a level's records are sorted into configured groups — the condition
144
+ * buildPreloadedDisplayList groups a root page under.
166
145
  */
167
- export declare const buildDisplayNodeForRecord: (node: TreeNode, row: QueryRow, options: DisplayNodeForRecordOptions) => DisplayNode;
168
- /* --------------------------------------------------- entry: preloaded trees */
146
+ export declare const groupsLevelRecords: (level: DisplayNode) => boolean;
169
147
  /**
170
148
  * Pure port of constructPreloadedTree (TreeUtilities.js:2231-2351): seed the
171
149
  * menu from a preloaded page of rows against the NESTED display seed
@@ -181,7 +159,7 @@ export declare const buildDisplayNodeForRecord: (node: TreeNode, row: QueryRow,
181
159
  * the lazy fallback can build child descriptors for them.
182
160
  * Inputs (tree seed + rows) are deep-cloned — never mutated or aliased.
183
161
  */
184
- export declare const buildPreloadedDisplayList: (nestedTreeStructure: DisplayNode, rows: QueryRow[], options: PreloadedDisplayOptions) => DisplayNode[];
162
+ export declare const buildPreloadedDisplayList: (nestedTreeStructure: DisplayNode, rows: QueryRow[], options: DisplayBuildContext) => DisplayNode[];
185
163
  /* ---------------------------------------------------------------- search */
186
164
  /**
187
165
  * Exact port of getSearchValueString (TreeUtilities.js:2808-2815): comma-join