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":"InquiryFindRecordsWidget.mjs","names":["React","useCallback","useMemo","useTranslation","UdpCard","UdpMessageBar","RecordFinder","deriveSearchableEntities","resolveRowLabel","SearchableEntity","SearchTreeWire","useInstanceParamValues","buildIdentifierFilterElements","getSearchObject","LogicalSearchOperatorEnums","CatalogObject","NodeToLoad","apiMethodId","nodeDetails","catalogReturnObject","nodeLabel","queryPayload","FinderPick","entity","row","Record","InquiryFindRecordsWidgetParams","tree","catalogObjects","onLoadRecord","onLoadRecords","picks","onLoadedNodeClick","node","tableHeight","hideWidgetName","InquiryFindRecordsWidgetProps","params","key","className","style","CSSProperties","children","ReactNode","InquiryFindRecordsWidget","props","$","_c","t0","t","paramValues","t1","entities","t2","filterElements","undefined","entityName","length","And","handleChoose","t3","defaultValue","t4","t5"],"sources":["../../../../../src/UI/widgets/library/InquiryFindRecordsWidget/InquiryFindRecordsWidget.tsx"],"sourcesContent":["/**\n * InquiryFindRecordsWidget — the search-forward hero of a modern inquiry\n * explore page, composed in code or in Page Assembler.\n *\n * The widget is a CARD SHELL around the shared `RecordFinder` — the same\n * finder the tree pane's + Load dialog renders, so finding a record works\n * identically from the dashboard and the sidebar (finder-unification,\n * 2026-08-27): quick search through `useInquirySearch`, one flat result list\n * with match highlighting under bolded entity labels, and advanced search in\n * a drawer hosting the shared `UdpAdvancedSearchBuilder` with the schema\n * field-picker tree.\n *\n * This file contributes the widget shell and the click-to-load wiring —\n * nothing else. Two load contracts, in order of preference:\n *\n * 1. `onLoadRecord` / `onLoadRecords` — the finder's own `onChoose` /\n * `onChooseMany`, handed straight through. The v2 host (`InquiryV2`) passes\n * the SAME handlers its + Load dialog uses, so a row here loads exactly as\n * a row there: the fetched row is the record (no catalog round-trip), a\n * ticked set goes through the batch pipeline, and the host words the toast.\n * 2. `onLoadedNodeClick` — the node-to-load replay every inquiry host (v1\n * `InquiryContainer` included) already passes explore-page widgets. The\n * widget builds the record's identifier filters from the catalog, which is\n * why it needs `catalogObjects`; on a tenant whose catalog does not carry\n * the entity this path has nothing to name and does nothing — the reason\n * the v2 host supplies contract 1.\n *\n * ## Widget params (all supplied by the inquiry landing already)\n * | param | what it is |\n * |---|---|\n * | `tree` | the tree wire document — the searchable set is derived from it |\n * | `catalogObjects` | the catalog — identifier filters for the clicked row (contract 2) |\n * | `onLoadRecord` / `onLoadRecords` | load one / many finder rows (contract 1) |\n * | `onLoadedNodeClick` | load a record into the tree; the widget hands it a node-to-load, exactly as `RemindersWidget` does (contract 2) |\n * | `tableHeight` | accepted for JSON-page compatibility; the finder carries its own result heights |\n * | `hideWidgetName` | hide the card header (standard widget param) |\n *\n * ## Why the widget owns its card\n * NEITHER widget pipeline supplies chrome: `DashboardWidget` mounts the widget\n * bare inside its cell (its own `WidgetCard` is only reached on the not-found /\n * render-error branches), and v2's `UdpPageRenderer` mounts `<Component>` bare\n * in a grid cell. Every registry widget in this library therefore renders its\n * own card, and this one does the same — with the fluent `UdpCard` instead of\n * the MUI one. There is no double-card to guard against on either path.\n */\nimport React, { useCallback, useMemo } from 'react';\nimport { useTranslation } from 'react-i18next';\nimport { UdpCard } from '../../../fluent-web-components/UdpCard';\nimport { UdpMessageBar } from '../../../fluent-web-components/UdpMessageBar';\nimport { RecordFinder } from '../../../../inquiry/v2/search/RecordFinder';\nimport {\n deriveSearchableEntities,\n resolveRowLabel,\n type SearchableEntity,\n type SearchTreeWire\n} from '../../../../inquiry/v2/search/searchModel';\nimport { useInstanceParamValues } from '../../../../inquiry/v2/api/useInstanceParamValues';\n// The tree's own load-record recipe. Imported rather than re-derived so a row\n// clicked here resolves to exactly the record a tree click or a `?node` deep\n// link resolves to.\nimport { buildIdentifierFilterElements } from '../../../../inquiry/v2/tree/useInquiryMenu';\nimport { getSearchObject } from '../../../../utilities/search/SearchUtilities';\nimport { LogicalSearchOperatorEnums } from '../../../../enums/unitySystemEnums';\nimport type { CatalogObject } from '../../../../domain/inquiryTree';\n\n/** The node-to-load an inquiry host replays — v1's `getLoadedNodeObject` shape. */\ninterface NodeToLoad {\n apiMethodId: string;\n nodeDetails: { catalogReturnObject: string; nodeLabel: string };\n queryPayload: unknown;\n}\n\n/** One finder pick — the row the search returned, under its entity. */\nexport interface FinderPick {\n entity: SearchableEntity;\n row: Record<string, unknown>;\n}\n\nexport interface InquiryFindRecordsWidgetParams {\n tree?: SearchTreeWire | null;\n catalogObjects?: CatalogObject[] | null;\n /** Contract 1: load one finder row (the finder's `onChoose`). */\n onLoadRecord?: (entity: SearchableEntity, row: Record<string, unknown>) => void;\n /** Contract 1: load the ticked rows as one batch (the finder's `onChooseMany`). */\n onLoadRecords?: (picks: FinderPick[]) => void;\n /** Contract 2: replay a node-to-load (v1 hosts). */\n onLoadedNodeClick?: (node: NodeToLoad) => void;\n tableHeight?: string;\n hideWidgetName?: boolean;\n}\n\nexport interface InquiryFindRecordsWidgetProps {\n params?: InquiryFindRecordsWidgetParams;\n /** The registry contract's other props (`id`, `setParam`, `onDelete`, …). */\n [key: string]: unknown;\n className?: string;\n style?: React.CSSProperties;\n children?: React.ReactNode;\n}\n\nexport const InquiryFindRecordsWidget = (\n props: InquiryFindRecordsWidgetProps\n) => {\n // Only `className` and `style` reach the card. The rest of the widget\n // contract (`id`, `setParam`, `onDelete`, `widgetType`, `layout`, …) is host\n // bookkeeping the MUI card used to swallow; a web component would put every\n // one of them on the DOM element as an unknown attribute.\n const { children, params, className, style } = props;\n const {\n tree,\n catalogObjects,\n onLoadRecord,\n onLoadRecords,\n onLoadedNodeClick,\n hideWidgetName\n } = params ?? {};\n const { t } = useTranslation();\n\n const paramValues = useInstanceParamValues();\n const entities = useMemo(\n () => (tree ? deriveSearchableEntities(tree, paramValues) : []),\n [tree, paramValues]\n );\n\n /**\n * Load the chosen record: name it by its identifier values and hand the\n * host the node-to-load it already knows how to replay.\n */\n const handleChoose = useCallback(\n (entity: SearchableEntity, row: Record<string, unknown>) => {\n const filterElements = buildIdentifierFilterElements(\n (catalogObjects ?? undefined) as never,\n entity.entityName,\n row\n );\n // Without identifiers there is no way to name this record to the server,\n // and an unfiltered payload would load an arbitrary one. Do nothing.\n if (!filterElements.length) return;\n onLoadedNodeClick?.({\n apiMethodId: entity.apiMethodId,\n nodeDetails: {\n catalogReturnObject: entity.entityName,\n nodeLabel: resolveRowLabel(entity, row)\n },\n queryPayload: getSearchObject(\n filterElements as never,\n 1,\n 1,\n true,\n LogicalSearchOperatorEnums.And\n )\n });\n },\n [catalogObjects, onLoadedNodeClick]\n );\n\n return (\n <UdpCard\n className={className}\n style={style}\n // Content-sized: a compact search band idle, the finder's own result\n // area once a search runs. On a JSON page the renderer's cell may be\n // taller; the card simply doesn't fill it.\n label={\n hideWidgetName\n ? undefined\n : t('inquiry.widgets.findRecords.title', {\n defaultValue: 'Find records'\n })\n }\n >\n {entities.length ? (\n <RecordFinder\n entities={entities}\n catalogObjects={catalogObjects}\n onChoose={onLoadRecord ?? handleChoose}\n onChooseMany={onLoadRecords}\n />\n ) : (\n <UdpMessageBar intent='warning' layout='multiline'>\n {t('inquiry.widgets.findRecords.notSearchable', {\n defaultValue:\n 'This page is not showing an inquiry tree that can be searched.'\n })}\n </UdpMessageBar>\n )}\n {children}\n </UdpCard>\n );\n};\n\nexport default InquiryFindRecordsWidget;\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAoGA,MAAa4C,4BAA2BC,UAAA;CAAA,MAAAC,IAAAC,EA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ACf,CAAC;AAAAf,IAAA,KAAAX;AAAAW,IAAA,KAAAG;AAAAH,IAAA,MAAAc;OAAAA,MAAAd,EAAA;CAAA,IAAAgB;AAAA,KAAAhB,EAAA,QAAAlB,kBAAAkB,EAAA,QAAAM,YAAAN,EAAA,QAAAa,gBAAAb,EAAA,QAAAjB,gBAAAiB,EAAA,QAAAhB,iBAAAgB,EAAA,QAAAG,GAAA;AAGPa,OAAAV,SAAQK,SACP,sBAAA,cAAC,cAAD;GACYL;GACMxB;GACN,UAAAC,gBAAA8B;GACI7B,cAAAA;GASjB,CAAA,GANC,sBAAA,cAAC,eAAD;GAAsB,QAAA;GAAiB,QAAA;GAMxC,EALImB,EAAE,6CAA6C,EAAAY,cAE5C,kEACH,CAAA,CAEJ;AAAAf,IAAA,MAAAlB;AAAAkB,IAAA,MAAAM;AAAAN,IAAA,MAAAa;AAAAb,IAAA,MAAAjB;AAAAiB,IAAA,MAAAhB;AAAAgB,IAAA,MAAAG;AAAAH,IAAA,MAAAgB;OAAAA,MAAAhB,EAAA;CAAA,IAAAiB;AAAA,KAAAjB,EAAA,QAAAJ,YAAAI,EAAA,QAAAP,aAAAO,EAAA,QAAAN,SAAAM,EAAA,QAAAc,MAAAd,EAAA,QAAAgB,IAAA;AA5BHC,OAAA,sBAAA,cAAC,SAAD;GACaxB;GACJC;GAKL,OAAAoB;GAuBM,EAhBPE,IAeApB,SACO;AAAAI,IAAA,MAAAJ;AAAAI,IAAA,MAAAP;AAAAO,IAAA,MAAAN;AAAAM,IAAA,MAAAc;AAAAd,IAAA,MAAAgB;AAAAhB,IAAA,MAAAiB;OAAAA,MAAAjB,EAAA;AAAA,QA9BViB"}
1
+ {"version":3,"file":"InquiryFindRecordsWidget.mjs","names":["React","useCallback","useMemo","useTranslation","UdpCard","UdpMessageBar","RecordFinder","RecordFinderProps","deriveSearchableEntities","resolveRowLabel","SearchableEntity","fromWire","InquiryTreeWire","useInstanceParamValues","useLinkedTrees","buildIdentifierFilterElements","getSearchObject","LogicalSearchOperatorEnums","CatalogObject","NodeToLoad","apiMethodId","nodeDetails","catalogReturnObject","nodeLabel","queryPayload","FinderPick","entity","row","Record","InquiryFindRecordsWidgetParams","tree","catalogObjects","onLoadRecord","onLoadRecords","picks","onLoadedNodeClick","node","tableHeight","hideWidgetName","InquiryFindRecordsWidgetProps","params","key","className","style","CSSProperties","children","ReactNode","FindRecordsProps","defaultListing","renderLayout","FindRecords","t0","$","_c","t1","t","paramValues","t2","typedTree","trees","linkedTrees","t3","entities","t4","filterElements","undefined","entityName","length","And","handleChoose","t5","defaultValue","t6","warning","t7","search","results","actions","idle","InquiryFindRecordsWidget","props"],"sources":["../../../../../src/UI/widgets/library/InquiryFindRecordsWidget/InquiryFindRecordsWidget.tsx"],"sourcesContent":["/**\n * InquiryFindRecordsWidget — the search-forward hero of a modern inquiry\n * explore page, composed in code or in Page Assembler.\n *\n * The widget is a CARD SHELL around the shared `RecordFinder` — the same\n * finder the tree pane's + Load dialog renders, so finding a record works\n * identically from the dashboard and the sidebar (finder-unification,\n * 2026-08-27): quick search through `useInquirySearch`, one flat result list\n * with match highlighting under bolded entity labels, and advanced search in\n * a drawer hosting the shared `UdpAdvancedSearchBuilder` with the schema\n * field-picker tree.\n *\n * This file contributes the widget shell and the click-to-load wiring —\n * nothing else. The wiring is `FindRecords`, the finder with no card, which a\n * code-composed page lays out directly; the widget is that inside a card.\n * Two load contracts, in order of preference:\n *\n * 1. `onLoadRecord` / `onLoadRecords` — the finder's own `onChoose` /\n * `onChooseMany`, handed straight through. The v2 host (`InquiryV2`) passes\n * the SAME handlers its + Load dialog uses, so a row here loads exactly as\n * a row there: the fetched row is the record (no catalog round-trip), a\n * ticked set goes through the batch pipeline, and the host words the toast.\n * 2. `onLoadedNodeClick` — the node-to-load replay every inquiry host (v1\n * `InquiryContainer` included) already passes explore-page widgets. The\n * widget builds the record's identifier filters from the catalog, which is\n * why it needs `catalogObjects`; on a tenant whose catalog does not carry\n * the entity this path has nothing to name and does nothing — the reason\n * the v2 host supplies contract 1.\n *\n * ## Widget params (all supplied by the inquiry landing already)\n * | param | what it is |\n * |---|---|\n * | `tree` | the tree wire document — the searchable set is derived from it |\n * | `catalogObjects` | the catalog — identifier filters for the clicked row (contract 2) |\n * | `onLoadRecord` / `onLoadRecords` | load one / many finder rows (contract 1) |\n * | `onLoadedNodeClick` | load a record into the tree; the widget hands it a node-to-load, exactly as `RemindersWidget` does (contract 2) |\n * | `tableHeight` | accepted for JSON-page compatibility; the finder carries its own result heights |\n * | `hideWidgetName` | hide the card header (standard widget param) |\n *\n * ## Why the widget owns its card\n * NEITHER widget pipeline supplies chrome: `DashboardWidget` mounts the widget\n * bare inside its cell (its own `WidgetCard` is only reached on the not-found /\n * render-error branches), and v2's `UdpPageRenderer` mounts `<Component>` bare\n * in a grid cell. Every registry widget in this library therefore renders its\n * own card, and this one does the same — with the fluent `UdpCard` instead of\n * the MUI one. There is no double-card to guard against on either path.\n */\nimport React, { useCallback, useMemo } from 'react';\nimport { useTranslation } from 'react-i18next';\nimport { UdpCard } from '../../../fluent-web-components/UdpCard';\nimport { UdpMessageBar } from '../../../fluent-web-components/UdpMessageBar';\nimport {\n RecordFinder,\n type RecordFinderProps\n} from '../../../../inquiry/v2/search/RecordFinder';\nimport {\n deriveSearchableEntities,\n resolveRowLabel,\n type SearchableEntity\n} from '../../../../inquiry/v2/search/searchModel';\nimport { fromWire } from '../../../../domain/inquiryTree/serialize';\nimport type { InquiryTreeWire } from '../../../../domain/inquiryTree/types';\nimport { useInstanceParamValues } from '../../../../inquiry/v2/api/useInstanceParamValues';\nimport { useLinkedTrees } from '../../../../inquiry/v2/api/queries';\n// The tree's own load-record recipe. Imported rather than re-derived so a row\n// clicked here resolves to exactly the record a tree click or a `?node` deep\n// link resolves to.\nimport { buildIdentifierFilterElements } from '../../../../inquiry/v2/tree/useInquiryMenu';\nimport { getSearchObject } from '../../../../utilities/search/SearchUtilities';\nimport { LogicalSearchOperatorEnums } from '../../../../enums/unitySystemEnums';\nimport type { CatalogObject } from '../../../../domain/inquiryTree';\n\n/** The node-to-load an inquiry host replays — v1's `getLoadedNodeObject` shape. */\ninterface NodeToLoad {\n apiMethodId: string;\n nodeDetails: { catalogReturnObject: string; nodeLabel: string };\n queryPayload: unknown;\n}\n\n/** One finder pick — the row the search returned, under its entity. */\nexport interface FinderPick {\n entity: SearchableEntity;\n row: Record<string, unknown>;\n}\n\nexport interface InquiryFindRecordsWidgetParams {\n /** The tree wire document, as an explore page's host hands it. */\n tree?: InquiryTreeWire | null;\n catalogObjects?: CatalogObject[] | null;\n /** Contract 1: load one finder row (the finder's `onChoose`). */\n onLoadRecord?: (entity: SearchableEntity, row: Record<string, unknown>) => void;\n /** Contract 1: load the ticked rows as one batch (the finder's `onChooseMany`). */\n onLoadRecords?: (picks: FinderPick[]) => void;\n /** Contract 2: replay a node-to-load (v1 hosts). */\n onLoadedNodeClick?: (node: NodeToLoad) => void;\n tableHeight?: string;\n hideWidgetName?: boolean;\n}\n\nexport interface InquiryFindRecordsWidgetProps {\n params?: InquiryFindRecordsWidgetParams;\n /** The registry contract's other props (`id`, `setParam`, `onDelete`, …). */\n [key: string]: unknown;\n className?: string;\n style?: React.CSSProperties;\n children?: React.ReactNode;\n}\n\nexport interface FindRecordsProps {\n params?: InquiryFindRecordsWidgetParams;\n /** Passed straight to the finder — see `RecordFinderProps`. */\n defaultListing?: RecordFinderProps['defaultListing'];\n renderLayout?: RecordFinderProps['renderLayout'];\n}\n\n/** The finder wired to an inquiry host's params, with no card around it. */\nexport const FindRecords = ({\n params,\n defaultListing,\n renderLayout\n}: FindRecordsProps) => {\n const { tree, catalogObjects, onLoadRecord, onLoadRecords, onLoadedNodeClick } =\n params ?? {};\n const { t } = useTranslation();\n\n const paramValues = useInstanceParamValues();\n const typedTree = useMemo(() => (tree ? fromWire(tree) : null), [tree]);\n const { trees: linkedTrees } = useLinkedTrees(typedTree);\n const entities = useMemo(\n () => deriveSearchableEntities(typedTree, linkedTrees, paramValues),\n [typedTree, linkedTrees, paramValues]\n );\n\n /**\n * Load the chosen record: name it by its identifier values and hand the\n * host the node-to-load it already knows how to replay.\n */\n const handleChoose = useCallback(\n (entity: SearchableEntity, row: Record<string, unknown>) => {\n const filterElements = buildIdentifierFilterElements(\n (catalogObjects ?? undefined) as never,\n entity.entityName,\n row\n );\n // Without identifiers there is no way to name this record to the server,\n // and an unfiltered payload would load an arbitrary one. Do nothing.\n if (!filterElements.length) return;\n onLoadedNodeClick?.({\n apiMethodId: entity.apiMethodId,\n nodeDetails: {\n catalogReturnObject: entity.entityName,\n nodeLabel: resolveRowLabel(entity, row)\n },\n queryPayload: getSearchObject(\n filterElements as never,\n 1,\n 1,\n true,\n LogicalSearchOperatorEnums.And\n )\n });\n },\n [catalogObjects, onLoadedNodeClick]\n );\n\n if (!entities.length) {\n // Nothing to search: the warning stands where the search row would.\n const warning = (\n <UdpMessageBar intent='warning' layout='multiline'>\n {t('inquiry.widgets.findRecords.notSearchable', {\n defaultValue:\n 'This page is not showing an inquiry tree that can be searched.'\n })}\n </UdpMessageBar>\n );\n return renderLayout\n ? renderLayout({\n search: warning,\n results: null,\n actions: null,\n idle: true\n })\n : warning;\n }\n\n return (\n <RecordFinder\n entities={entities}\n catalogObjects={catalogObjects}\n onChoose={onLoadRecord ?? handleChoose}\n onChooseMany={onLoadRecords}\n defaultListing={defaultListing}\n renderLayout={renderLayout}\n />\n );\n};\n\nexport const InquiryFindRecordsWidget = (\n props: InquiryFindRecordsWidgetProps\n) => {\n // Only `className` and `style` reach the card. The rest of the widget\n // contract (`id`, `setParam`, `onDelete`, `widgetType`, `layout`, …) is host\n // bookkeeping the MUI card used to swallow; a web component would put every\n // one of them on the DOM element as an unknown attribute.\n const { children, params, className, style } = props;\n const { t } = useTranslation();\n\n return (\n <UdpCard\n className={className}\n style={style}\n // Content-sized: a compact search band idle, the finder's own result\n // area once a search runs. On a JSON page the renderer's cell may be\n // taller; the card simply doesn't fill it.\n label={\n params?.hideWidgetName\n ? undefined\n : t('inquiry.widgets.findRecords.title', {\n defaultValue: 'Find records'\n })\n }\n >\n <FindRecords params={params} />\n {children}\n </UdpCard>\n );\n};\n\nexport default InquiryFindRecordsWidget;\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAoHA,MAAakD,eAAcC,OAAA;CAAA,MAAAC,IAAAC,EAAA,GAAA;CAAC,MAAA,EAAAb,QAAAQ,gBAAAC,iBAAAE;CAIT,IAAAG;AAAA,KAAAF,EAAA,OAAAZ,QAAA;AAEfc,OAAAd,UAAA,EAAY;AAAAY,IAAA,KAAAZ;AAAAY,IAAA,KAAAE;OAAAA,MAAAF,EAAA;CADd,MAAA,EAAAtB,MAAAC,gBAAAC,cAAAC,eAAAE,sBACEmB;CACF,MAAA,EAAAC,MAAcpD,gBAAgB;CAE9B,MAAAqD,cAAoB3C,wBAAwB;CAAC,IAAA4C;AAAA,KAAAL,EAAA,OAAAtB,MAAA;AACZ2B,OAAA3B,OAAOnB,SAASmB,KAAY,GAA5B;AAA4BsB,IAAA,KAAAtB;AAAAsB,IAAA,KAAAK;OAAAA,MAAAL,EAAA;CAA7D,MAAAM,YAAiCD;CACjC,MAAA,EAAAE,OAAAC,gBAA+B9C,eAAe4C,UAAU;CAAC,IAAAG;AAAA,KAAAT,EAAA,OAAAQ,eAAAR,EAAA,OAAAI,eAAAJ,EAAA,OAAAM,WAAA;AAEjDG,OAAArD,yBAAyBkD,WAAWE,aAAaJ,YAAY;AAAAJ,IAAA,KAAAQ;AAAAR,IAAA,KAAAI;AAAAJ,IAAA,KAAAM;AAAAN,IAAA,KAAAS;OAAAA,MAAAT,EAAA;CADrE,MAAAU,WACQD;CAEN,IAAAE;AAAA,KAAAX,EAAA,OAAArB,kBAAAqB,EAAA,OAAAjB,mBAAA;AAOA4B,QAAArC,QAAAC,QAAA;GACE,MAAAqC,iBAAuBjD,8BACpBgB,kBAAAkC,KAAAA,GACDvC,OAAMwC,YAC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 +1,12 @@
1
1
  import { __exportAll } from "../../../../_virtual/_rolldown/runtime.mjs";
2
- import InquiryFindRecordsWidget from "./InquiryFindRecordsWidget.mjs";
2
+ import InquiryFindRecordsWidget, { FindRecords } from "./InquiryFindRecordsWidget.mjs";
3
3
  //#region src/UI/widgets/library/InquiryFindRecordsWidget/index.ts
4
4
  var InquiryFindRecordsWidget_exports = /* @__PURE__ */ __exportAll({
5
+ FindRecords: () => FindRecords,
5
6
  InquiryFindRecordsWidget: () => InquiryFindRecordsWidget,
6
7
  default: () => InquiryFindRecordsWidget
7
8
  });
8
9
  //#endregion
9
- export { InquiryFindRecordsWidget, InquiryFindRecordsWidget_exports, InquiryFindRecordsWidget as default };
10
+ export { FindRecords, InquiryFindRecordsWidget, InquiryFindRecordsWidget_exports, InquiryFindRecordsWidget as default };
10
11
 
11
12
  //# sourceMappingURL=index.mjs.map
@@ -3,8 +3,9 @@
3
3
  * `RecentlyLoadedNodesWidget`, for explore pages composed in code or in Page
4
4
  * Assembler.
5
5
  *
6
- * The history renders as LIST ROWS, not a grid: three fixed facts per entry
7
- * (record, entity, when) with one action (re-load it). A grid's sorting and
6
+ * The history renders as LIST ROWS, not a grid: the record (with its entity
7
+ * beneath it on a mixed history), when it was loaded at the row's end, and one
8
+ * action (re-load it). A grid's sorting and
8
9
  * column chrome earned nothing here — the list is always newest-first, and a
9
10
  * row click is the whole interface. The avatar carries the record's identity
10
11
  * the same way people-pickers do (`color="colorful"` keys a stable colour to
@@ -34,6 +35,7 @@
34
35
  * keep passing it.
35
36
  */
36
37
  import React from 'react';
38
+ import { UdpCard } from '../../../fluent-web-components/UdpCard';
37
39
  import { type RecentlyLoadedWire } from '../../../../inquiry/v2/widgets/widgetRowModel';
38
40
  export interface InquiryRecentRecordsWidgetParams {
39
41
  recentlyLoadedNodes?: RecentlyLoadedWire[] | null;
@@ -41,6 +43,11 @@ export interface InquiryRecentRecordsWidgetParams {
41
43
  onLoadedNodeClick?: (node: RecentlyLoadedWire) => void;
42
44
  tableHeight?: string;
43
45
  hideWidgetName?: boolean;
46
+ /**
47
+ * The card's appearance. A page that is itself the canvas (the code-composed
48
+ * explore page) passes `subtle` so the widget reads as a section of it.
49
+ */
50
+ appearance?: React.ComponentProps<typeof UdpCard>['appearance'];
44
51
  }
45
52
  export interface InquiryRecentRecordsWidgetProps {
46
53
  params?: InquiryRecentRecordsWidgetParams;
@@ -1 +1 @@
1
- {"version":3,"file":"InquiryRecentRecordsWidget.d.ts","sourceRoot":"","sources":["../../../../../src/UI/widgets/library/InquiryRecentRecordsWidget/InquiryRecentRecordsWidget.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkCG;AACH,OAAO,KAAkB,MAAM,OAAO,CAAC;AAUvC,OAAO,EAEL,KAAK,kBAAkB,EAExB,MAAM,+CAA+C,CAAC;AAEvD,MAAM,WAAW,gCAAgC;IAC/C,mBAAmB,CAAC,EAAE,kBAAkB,EAAE,GAAG,IAAI,CAAC;IAClD,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,iBAAiB,CAAC,EAAE,CAAC,IAAI,EAAE,kBAAkB,KAAK,IAAI,CAAC;IACvD,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,cAAc,CAAC,EAAE,OAAO,CAAC;CAC1B;AAED,MAAM,WAAW,+BAA+B;IAC9C,MAAM,CAAC,EAAE,gCAAgC,CAAC;IAC1C,+EAA6E;IAC7E,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;IACvB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IAC5B,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC5B;AAsBD,eAAO,MAAM,0BAA0B,+DAyFtC,CAAC;AAEF,eAAe,0BAA0B,CAAC"}
1
+ {"version":3,"file":"InquiryRecentRecordsWidget.d.ts","sourceRoot":"","sources":["../../../../../src/UI/widgets/library/InquiryRecentRecordsWidget/InquiryRecentRecordsWidget.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmCG;AACH,OAAO,KAAkB,MAAM,OAAO,CAAC;AAIvC,OAAO,EAAE,OAAO,EAAE,MAAM,wCAAwC,CAAC;AAMjE,OAAO,EAEL,KAAK,kBAAkB,EAExB,MAAM,+CAA+C,CAAC;AAGvD,MAAM,WAAW,gCAAgC;IAC/C,mBAAmB,CAAC,EAAE,kBAAkB,EAAE,GAAG,IAAI,CAAC;IAClD,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,iBAAiB,CAAC,EAAE,CAAC,IAAI,EAAE,kBAAkB,KAAK,IAAI,CAAC;IACvD,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB;;;OAGG;IACH,UAAU,CAAC,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,OAAO,CAAC,CAAC,YAAY,CAAC,CAAC;CACjE;AAED,MAAM,WAAW,+BAA+B;IAC9C,MAAM,CAAC,EAAE,gCAAgC,CAAC;IAC1C,+EAA6E;IAC7E,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;IACvB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IAC5B,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC5B;AAsBD,eAAO,MAAM,0BAA0B,+DAsHtC,CAAC;AAEF,eAAe,0BAA0B,CAAC"}
@@ -3,8 +3,9 @@
3
3
  * `RecentlyLoadedNodesWidget`, for explore pages composed in code or in Page
4
4
  * Assembler.
5
5
  *
6
- * The history renders as LIST ROWS, not a grid: three fixed facts per entry
7
- * (record, entity, when) with one action (re-load it). A grid's sorting and
6
+ * The history renders as LIST ROWS, not a grid: the record (with its entity
7
+ * beneath it on a mixed history), when it was loaded at the row's end, and one
8
+ * action (re-load it). A grid's sorting and
8
9
  * column chrome earned nothing here — the list is always newest-first, and a
9
10
  * row click is the whole interface. The avatar carries the record's identity
10
11
  * the same way people-pickers do (`color="colorful"` keys a stable colour to
@@ -44,6 +45,7 @@ import { UdpListItem } from '../../../fluent-web-components/UdpListItem';
44
45
  import { UdpSpinner } from '../../../fluent-web-components/UdpSpinner';
45
46
  import { UdpText } from '../../../fluent-web-components/UdpText';
46
47
  import { toRecentRecordRows } from '../../../../inquiry/v2/widgets/widgetRowModel';
48
+ import rowStyles from '../../../../inquiry/v2/widgets/listRow.module.css';
47
49
  /**
48
50
  * "25 min ago" / "Yesterday"-style timestamp.
49
51
  *
@@ -73,19 +75,19 @@ export const InquiryRecentRecordsWidget = (props) => {
73
75
  // host bookkeeping the MUI card used to swallow; a web component would put
74
76
  // every one of them on the DOM element as an unknown attribute.
75
77
  const { children, params, className, style } = props;
76
- const { recentlyLoadedNodes, loading, onLoadedNodeClick, hideWidgetName } = params !== null && params !== void 0 ? params : {};
78
+ const { recentlyLoadedNodes, loading, onLoadedNodeClick, hideWidgetName, appearance } = params !== null && params !== void 0 ? params : {};
77
79
  const { t } = useTranslation();
78
- // Newest first, always — recency is the list's whole organizing principle,
79
- // so it is fixed rather than offered as a control.
80
- const rows = useMemo(() => {
81
- const mapped = toRecentRecordRows(recentlyLoadedNodes, t('inquiry.widgets.unnamedRecord', { defaultValue: 'Unnamed record' }));
82
- return [...mapped].sort((a, b) => b.dateLoaded.localeCompare(a.dateLoaded));
83
- }, [recentlyLoadedNodes, t]);
80
+ // Newest first, always (toRecentRecordRows) — recency is the list's whole
81
+ // organizing principle, so it is fixed rather than offered as a control.
82
+ const rows = useMemo(() => toRecentRecordRows(recentlyLoadedNodes, t('inquiry.widgets.unnamedRecord', { defaultValue: 'Unnamed record' })), [recentlyLoadedNodes, t]);
83
+ // The entity is worth a line only when the history mixes entities; on a
84
+ // single-entity tree it would repeat the same word under every name.
85
+ const mixedEntities = new Set(rows.map((row) => row.entity)).size > 1;
84
86
  const handleRowClick = (row) => {
85
87
  if (row.node)
86
88
  onLoadedNodeClick === null || onLoadedNodeClick === void 0 ? void 0 : onLoadedNodeClick(row.node);
87
89
  };
88
- return (React.createElement(UdpCard, { className: className, style: style,
90
+ return (React.createElement(UdpCard, { className: className, style: style, appearance: appearance,
89
91
  // The card fills the region the composition sized; on a JSON page that
90
92
  // region is the renderer's fixed-height cell. Either way the body below
91
93
  // the header is a definite box for the list's scroll area.
@@ -93,15 +95,13 @@ export const InquiryRecentRecordsWidget = (props) => {
93
95
  ? undefined
94
96
  : t('inquiry.widgets.recentRecords.title', {
95
97
  defaultValue: 'Recently loaded'
96
- }) }, React.createElement(UdpFlexbox, { grow: 1, basis: "0", overflow: "auto", wrap: "nowrap" }, loading && React.createElement(UdpSpinner, { size: "tiny" }), !loading && !rows.length && (React.createElement(UdpText, { variant: "caption1", as: "p" }, t('inquiry.widgets.recentRecords.empty', {
98
+ }) }, loading && React.createElement(UdpSpinner, { size: "tiny" }), !loading && !rows.length && (React.createElement(UdpText, { variant: "caption1", as: "p" }, t('inquiry.widgets.recentRecords.empty', {
97
99
  defaultValue: 'No records loaded yet.'
98
- }))), !loading && rows.length > 0 && (React.createElement(UdpList, { interactive: true, showDivider: true }, rows.map((row, index) => (React.createElement(UdpListItem
99
- // History entries carry no id and the same record can repeat;
100
- // position is the only honest key for a replayable log.
101
- , {
102
- // History entries carry no id and the same record can repeat;
103
- // position is the only honest key for a replayable log.
104
- key: `${row.dateLoaded}-${index}`, value: `${row.dateLoaded}-${index}`, size: "small", label: row.label, subtitle: row.entity || undefined, onItemAction: () => handleRowClick(row) }, React.createElement(UdpAvatar, { slot: "start", size: 32, name: row.label, color: "colorful", "aria-hidden": "true" }), React.createElement(UdpText, { slot: "end", variant: "caption1" }, relativeLoadedAt(row.dateLoaded, t('inquiry.widgets.recentRecords.justNow', {
100
+ }))), !loading && rows.length > 0 && (React.createElement(UdpFlexbox, { className: rowStyles.bleed, grow: 1, basis: "0", overflow: "auto", wrap: "nowrap" }, React.createElement(UdpList, { className: rowStyles.flush, interactive: true, showDivider: true }, rows.map((row) => (React.createElement(UdpListItem, { key: row.key, value: row.key, size: "small", subtitle: (mixedEntities && row.entity) || undefined, onItemAction: () => handleRowClick(row) }, React.createElement("span", { slot: "title", className: rowStyles.oneLine, title: row.label }, row.label), React.createElement(UdpAvatar, { slot: "start", size: 32, name: row.label,
101
+ // Fluent derives no initials from a letterless name ("1001").
102
+ initials: /\p{L}/u.test(row.label)
103
+ ? undefined
104
+ : row.label.slice(0, 2), color: "colorful", "aria-hidden": "true" }), React.createElement(UdpText, { slot: "end", variant: "caption1" }, relativeLoadedAt(row.dateLoaded, t('inquiry.widgets.recentRecords.justNow', {
105
105
  defaultValue: 'just now'
106
106
  }))))))))), children));
107
107
  };
@@ -1 +1 @@
1
- {"version":3,"file":"InquiryRecentRecordsWidget.js","sourceRoot":"","sources":["../../../../../src/UI/widgets/library/InquiryRecentRecordsWidget/InquiryRecentRecordsWidget.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkCG;AACH,OAAO,KAAK,EAAE,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACjC,OAAO,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AAC/C,OAAO,EAAE,SAAS,EAAE,MAAM,0CAA0C,CAAC;AACrE,OAAO,EAAE,OAAO,EAAE,MAAM,wCAAwC,CAAC;AACjE,OAAO,EAAE,UAAU,EAAE,MAAM,2CAA2C,CAAC;AACvE,OAAO,EAAE,OAAO,EAAE,MAAM,wCAAwC,CAAC;AACjE,OAAO,EAAE,WAAW,EAAE,MAAM,4CAA4C,CAAC;AACzE,OAAO,EAAE,UAAU,EAAE,MAAM,2CAA2C,CAAC;AACvE,OAAO,EAAE,OAAO,EAAE,MAAM,wCAAwC,CAAC;AACjE,OAAO,EACL,kBAAkB,EAGnB,MAAM,+CAA+C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,CAAC,UAAU,IAAI,KAAK,EAAE,EACnC,IAAI,EAAC,OAAO,EACZ,KAAK,EAAE,GAAG,CAAC,KAAK,EAChB,QAAQ,EAAE,GAAG,CAAC,MAAM,IAAI,SAAS,EACjC,YAAY,EAAE,GAAG,EAAE,CAAC,cAAc,CAAC,GAAG,CAAC,IAEvC,oBAAC,SAAS,IACR,IAAI,EAAC,OAAO,EACZ,IAAI,EAAE,EAAE,EACR,IAAI,EAAE,GAAG,CAAC,KAAK,EACf,KAAK,EAAC,UAAU,iBACJ,MAAM,GAClB,EACF,oBAAC,OAAO,IAAC,IAAI,EAAC,KAAK,EAAC,OAAO,EAAC,UAAU,IACnC,gBAAgB,CACf,GAAG,CAAC,UAAU,EACd,CAAC,CAAC,uCAAuC,EAAE;QACzC,YAAY,EAAE,UAAU;KACzB,CAAC,CACH,CACO,CACE,CACf,CAAC,CACM,CACX,CACU,EACZ,QAAQ,CACD,CACX,CAAC;AAAA,CACH,CAAC;AAEF,eAAe,0BAA0B,CAAC"}
1
+ {"version":3,"file":"InquiryRecentRecordsWidget.js","sourceRoot":"","sources":["../../../../../src/UI/widgets/library/InquiryRecentRecordsWidget/InquiryRecentRecordsWidget.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmCG;AACH,OAAO,KAAK,EAAE,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACjC,OAAO,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AAC/C,OAAO,EAAE,SAAS,EAAE,MAAM,0CAA0C,CAAC;AACrE,OAAO,EAAE,OAAO,EAAE,MAAM,wCAAwC,CAAC;AACjE,OAAO,EAAE,UAAU,EAAE,MAAM,2CAA2C,CAAC;AACvE,OAAO,EAAE,OAAO,EAAE,MAAM,wCAAwC,CAAC;AACjE,OAAO,EAAE,WAAW,EAAE,MAAM,4CAA4C,CAAC;AACzE,OAA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,WAAW,UACzD,IAAI,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,CACjB,oBAAC,WAAW,IACV,GAAG,EAAE,GAAG,CAAC,GAAG,EACZ,KAAK,EAAE,GAAG,CAAC,GAAG,EACd,IAAI,EAAC,OAAO,EACZ,QAAQ,EAAE,CAAC,aAAa,IAAI,GAAG,CAAC,MAAM,CAAC,IAAI,SAAS,EACpD,YAAY,EAAE,GAAG,EAAE,CAAC,cAAc,CAAC,GAAG,CAAC,IAEvC,8BACE,IAAI,EAAC,OAAO,EACZ,SAAS,EAAE,SAAS,CAAC,OAAO,EAC5B,KAAK,EAAE,GAAG,CAAC,KAAK,IAEf,GAAG,CAAC,KAAK,CACL,EACP,oBAAC,SAAS,IACR,IAAI,EAAC,OAAO,EACZ,IAAI,EAAE,EAAE,EACR,IAAI,EAAE,GAAG,CAAC,KAAK;QACf,8DAA8D;QAC9D,QAAQ,EACN,QAAQ,CAAC,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC;YACtB,CAAC,CAAC,SAAS;YACX,CAAC,CAAC,GAAG,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,EAE3B,KAAK,EAAC,UAAU,iBACJ,MAAM,GAClB,EAGF,oBAAC,OAAO,IAAC,IAAI,EAAC,KAAK,EAAC,OAAO,EAAC,UAAU,IACnC,gBAAgB,CACf,GAAG,CAAC,UAAU,EACd,CAAC,CAAC,uCAAuC,EAAE;QACzC,YAAY,EAAE,UAAU;KACzB,CAAC,CACH,CACO,CACE,CACf,CAAC,CACM,CACC,CACd,EACA,QAAQ,CACD,CACX,CAAC;AAAA,CACH,CAAC;AAEF,eAAe,0BAA0B,CAAC"}
@@ -10,14 +10,16 @@ import { toRecentRecordRows } from "../../../../inquiry/v2/widgets/widgetRowMode
10
10
  import React from "react";
11
11
  import { useTranslation } from "react-i18next";
12
12
  import { DateTime } from "luxon";
13
+ import rowStyles from "../../../../inquiry/v2/widgets/listRow.module.css";
13
14
  //#region src/UI/widgets/library/InquiryRecentRecordsWidget/InquiryRecentRecordsWidget.tsx
14
15
  /**
15
16
  * InquiryRecentRecordsWidget — the modern replacement for
16
17
  * `RecentlyLoadedNodesWidget`, for explore pages composed in code or in Page
17
18
  * Assembler.
18
19
  *
19
- * The history renders as LIST ROWS, not a grid: three fixed facts per entry
20
- * (record, entity, when) with one action (re-load it). A grid's sorting and
20
+ * The history renders as LIST ROWS, not a grid: the record (with its entity
21
+ * beneath it on a mixed history), when it was loaded at the row's end, and one
22
+ * action (re-load it). A grid's sorting and
21
23
  * column chrome earned nothing here — the list is always newest-first, and a
22
24
  * row click is the whole interface. The avatar carries the record's identity
23
25
  * the same way people-pickers do (`color="colorful"` keys a stable colour to
@@ -66,7 +68,7 @@ const relativeLoadedAt = (isoDate, justNowLabel) => {
66
68
  return at.toRelative() ?? "";
67
69
  };
68
70
  const InquiryRecentRecordsWidget = (props) => {
69
- const $ = c(31);
71
+ const $ = c(33);
70
72
  const { children, params, className, style } = props;
71
73
  let t0;
72
74
  if ($[0] !== params) {
@@ -74,109 +76,119 @@ const InquiryRecentRecordsWidget = (props) => {
74
76
  $[0] = params;
75
77
  $[1] = t0;
76
78
  } else t0 = $[1];
77
- const { recentlyLoadedNodes, loading, onLoadedNodeClick, hideWidgetName } = t0;
79
+ const { recentlyLoadedNodes, loading, onLoadedNodeClick, hideWidgetName, appearance } = t0;
78
80
  const { t } = useTranslation();
79
81
  let t1;
80
82
  if ($[2] !== recentlyLoadedNodes || $[3] !== t) {
81
- t1 = [...toRecentRecordRows(recentlyLoadedNodes, t("inquiry.widgets.unnamedRecord", { defaultValue: "Unnamed record" }))].sort(_temp);
83
+ t1 = toRecentRecordRows(recentlyLoadedNodes, t("inquiry.widgets.unnamedRecord", { defaultValue: "Unnamed record" }));
82
84
  $[2] = recentlyLoadedNodes;
83
85
  $[3] = t;
84
86
  $[4] = t1;
85
87
  } else t1 = $[4];
86
88
  const rows = t1;
87
89
  let t2;
88
- if ($[5] !== onLoadedNodeClick) {
89
- t2 = (row) => {
90
- if (row.node) onLoadedNodeClick?.(row.node);
91
- };
92
- $[5] = onLoadedNodeClick;
90
+ if ($[5] !== rows) {
91
+ t2 = new Set(rows.map(_temp));
92
+ $[5] = rows;
93
93
  $[6] = t2;
94
94
  } else t2 = $[6];
95
- const handleRowClick = t2;
95
+ const mixedEntities = t2.size > 1;
96
96
  let t3;
97
- if ($[7] !== hideWidgetName || $[8] !== t) {
98
- t3 = hideWidgetName ? void 0 : t("inquiry.widgets.recentRecords.title", { defaultValue: "Recently loaded" });
99
- $[7] = hideWidgetName;
100
- $[8] = t;
101
- $[9] = t3;
102
- } else t3 = $[9];
97
+ if ($[7] !== onLoadedNodeClick) {
98
+ t3 = (row_0) => {
99
+ if (row_0.node) onLoadedNodeClick?.(row_0.node);
100
+ };
101
+ $[7] = onLoadedNodeClick;
102
+ $[8] = t3;
103
+ } else t3 = $[8];
104
+ const handleRowClick = t3;
103
105
  let t4;
104
- if ($[10] !== loading) {
105
- t4 = loading && /* @__PURE__ */ React.createElement(UdpSpinner, { size: "tiny" });
106
- $[10] = loading;
106
+ if ($[9] !== hideWidgetName || $[10] !== t) {
107
+ t4 = hideWidgetName ? void 0 : t("inquiry.widgets.recentRecords.title", { defaultValue: "Recently loaded" });
108
+ $[9] = hideWidgetName;
109
+ $[10] = t;
107
110
  $[11] = t4;
108
111
  } else t4 = $[11];
109
112
  let t5;
110
- if ($[12] !== loading || $[13] !== rows || $[14] !== t) {
111
- t5 = !loading && !rows.length && /* @__PURE__ */ React.createElement(UdpText, {
113
+ if ($[12] !== loading) {
114
+ t5 = loading && /* @__PURE__ */ React.createElement(UdpSpinner, { size: "tiny" });
115
+ $[12] = loading;
116
+ $[13] = t5;
117
+ } else t5 = $[13];
118
+ let t6;
119
+ if ($[14] !== loading || $[15] !== rows.length || $[16] !== t) {
120
+ t6 = !loading && !rows.length && /* @__PURE__ */ React.createElement(UdpText, {
112
121
  variant: "caption1",
113
122
  as: "p"
114
123
  }, t("inquiry.widgets.recentRecords.empty", { defaultValue: "No records loaded yet." }));
115
- $[12] = loading;
116
- $[13] = rows;
117
- $[14] = t;
118
- $[15] = t5;
119
- } else t5 = $[15];
120
- let t6;
121
- if ($[16] !== handleRowClick || $[17] !== loading || $[18] !== rows || $[19] !== t) {
122
- t6 = !loading && rows.length > 0 && /* @__PURE__ */ React.createElement(UdpList, {
124
+ $[14] = loading;
125
+ $[15] = rows.length;
126
+ $[16] = t;
127
+ $[17] = t6;
128
+ } else t6 = $[17];
129
+ let t7;
130
+ if ($[18] !== handleRowClick || $[19] !== loading || $[20] !== mixedEntities || $[21] !== rows || $[22] !== t) {
131
+ t7 = !loading && rows.length > 0 && /* @__PURE__ */ React.createElement(UdpFlexbox, {
132
+ className: rowStyles.bleed,
133
+ grow: 1,
134
+ basis: "0",
135
+ overflow: "auto",
136
+ wrap: "nowrap"
137
+ }, /* @__PURE__ */ React.createElement(UdpList, {
138
+ className: rowStyles.flush,
123
139
  interactive: true,
124
140
  showDivider: true
125
- }, rows.map((row_0, index) => /* @__PURE__ */ React.createElement(UdpListItem, {
126
- key: `${row_0.dateLoaded}-${index}`,
127
- value: `${row_0.dateLoaded}-${index}`,
141
+ }, rows.map((row_1) => /* @__PURE__ */ React.createElement(UdpListItem, {
142
+ key: row_1.key,
143
+ value: row_1.key,
128
144
  size: "small",
129
- label: row_0.label,
130
- subtitle: row_0.entity || void 0,
131
- onItemAction: () => handleRowClick(row_0)
132
- }, /* @__PURE__ */ React.createElement(UdpAvatar, {
145
+ subtitle: mixedEntities && row_1.entity || void 0,
146
+ onItemAction: () => handleRowClick(row_1)
147
+ }, /* @__PURE__ */ React.createElement("span", {
148
+ slot: "title",
149
+ className: rowStyles.oneLine,
150
+ title: row_1.label
151
+ }, row_1.label), /* @__PURE__ */ React.createElement(UdpAvatar, {
133
152
  slot: "start",
134
153
  size: 32,
135
- name: row_0.label,
154
+ name: row_1.label,
155
+ initials: /\p{L}/u.test(row_1.label) ? void 0 : row_1.label.slice(0, 2),
136
156
  color: "colorful",
137
157
  "aria-hidden": "true"
138
158
  }), /* @__PURE__ */ React.createElement(UdpText, {
139
159
  slot: "end",
140
160
  variant: "caption1"
141
- }, relativeLoadedAt(row_0.dateLoaded, t("inquiry.widgets.recentRecords.justNow", { defaultValue: "just now" }))))));
142
- $[16] = handleRowClick;
143
- $[17] = loading;
144
- $[18] = rows;
145
- $[19] = t;
146
- $[20] = t6;
147
- } else t6 = $[20];
148
- let t7;
149
- if ($[21] !== t4 || $[22] !== t5 || $[23] !== t6) {
150
- t7 = /* @__PURE__ */ React.createElement(UdpFlexbox, {
151
- grow: 1,
152
- basis: "0",
153
- overflow: "auto",
154
- wrap: "nowrap"
155
- }, t4, t5, t6);
156
- $[21] = t4;
157
- $[22] = t5;
158
- $[23] = t6;
159
- $[24] = t7;
160
- } else t7 = $[24];
161
+ }, relativeLoadedAt(row_1.dateLoaded, t("inquiry.widgets.recentRecords.justNow", { defaultValue: "just now" })))))));
162
+ $[18] = handleRowClick;
163
+ $[19] = loading;
164
+ $[20] = mixedEntities;
165
+ $[21] = rows;
166
+ $[22] = t;
167
+ $[23] = t7;
168
+ } else t7 = $[23];
161
169
  let t8;
162
- if ($[25] !== children || $[26] !== className || $[27] !== style || $[28] !== t3 || $[29] !== t7) {
170
+ if ($[24] !== appearance || $[25] !== children || $[26] !== className || $[27] !== style || $[28] !== t4 || $[29] !== t5 || $[30] !== t6 || $[31] !== t7) {
163
171
  t8 = /* @__PURE__ */ React.createElement(UdpCard, {
164
172
  className,
165
173
  style,
174
+ appearance,
166
175
  height: "100%",
167
- label: t3
168
- }, t7, children);
176
+ label: t4
177
+ }, t5, t6, t7, children);
178
+ $[24] = appearance;
169
179
  $[25] = children;
170
180
  $[26] = className;
171
181
  $[27] = style;
172
- $[28] = t3;
173
- $[29] = t7;
174
- $[30] = t8;
175
- } else t8 = $[30];
182
+ $[28] = t4;
183
+ $[29] = t5;
184
+ $[30] = t6;
185
+ $[31] = t7;
186
+ $[32] = t8;
187
+ } else t8 = $[32];
176
188
  return t8;
177
189
  };
178
- function _temp(a, b) {
179
- return b.dateLoaded.localeCompare(a.dateLoaded);
190
+ function _temp(row) {
191
+ return row.entity;
180
192
  }
181
193
  //#endregion
182
194
  export { InquiryRecentRecordsWidget as default };
@@ -1 +1 @@
1
- {"version":3,"file":"InquiryRecentRecordsWidget.mjs","names":["React","useMemo","DateTime","useTranslation","UdpAvatar","UdpCard","UdpFlexbox","UdpList","UdpListItem","UdpSpinner","UdpText","toRecentRecordRows","RecentlyLoadedWire","RecentRecordRow","InquiryRecentRecordsWidgetParams","recentlyLoadedNodes","loading","onLoadedNodeClick","node","tableHeight","hideWidgetName","InquiryRecentRecordsWidgetProps","params","key","className","style","CSSProperties","children","ReactNode","relativeLoadedAt","isoDate","justNowLabel","at","fromISO","isValid","now","toRelative","InquiryRecentRecordsWidget","props","$","_c","t0","t","t1","mapped","defaultValue","sort","_temp","rows","t2","row","handleRowClick","t3","undefined","t4","t5","length","t6","map","row_0","index","dateLoaded","label","entity","t7","t8","a","b","localeCompare"],"sources":["../../../../../src/UI/widgets/library/InquiryRecentRecordsWidget/InquiryRecentRecordsWidget.tsx"],"sourcesContent":["/**\n * InquiryRecentRecordsWidget — the modern replacement for\n * `RecentlyLoadedNodesWidget`, for explore pages composed in code or in Page\n * Assembler.\n *\n * The history renders as LIST ROWS, not a grid: three fixed facts per entry\n * (record, entity, when) with one action (re-load it). A grid's sorting and\n * column chrome earned nothing here — the list is always newest-first, and a\n * row click is the whole interface. The avatar carries the record's identity\n * the same way people-pickers do (`color=\"colorful\"` keys a stable colour to\n * the label), and the entity reads in words in the subtitle.\n *\n * ## Why the widget owns its card\n * NEITHER widget pipeline supplies chrome: `DashboardWidget` mounts the widget\n * bare inside its cell (its own `WidgetCard` is only reached on the not-found /\n * render-error branches), and v2's `UdpPageRenderer` mounts `<Component>` bare\n * in a grid cell. Every registry widget in this library therefore renders its\n * own card, and this one does the same — with the fluent card instead of the\n * MUI one. There is no double-card to guard against on either path.\n *\n * The legacy widget is NOT removed — v1 explore pages still name it.\n *\n * ## Widget params (all supplied by the inquiry landing already)\n * | param | what it is |\n * |---|---|\n * | `recentlyLoadedNodes` | the tree's recently-loaded history (`RecentlyLoadedNode[]`) |\n * | `loading` | true while that history is being fetched |\n * | `onLoadedNodeClick` | replay one history entry back into the tree — the row click |\n * | `tableHeight` | accepted for JSON-page compatibility; the list scrolls in the card and no longer sizes off it |\n * | `hideWidgetName` | hide the card header (standard widget param) |\n *\n * `tree` is deliberately NOT consumed: the legacy table only needed it to look\n * up a per-entity icon, and the entity now reads in words. The landing may\n * keep passing it.\n */\nimport React, { useMemo } from 'react';\nimport { DateTime } from 'luxon';\nimport { useTranslation } from 'react-i18next';\nimport { UdpAvatar } from '../../../fluent-web-components/UdpAvatar';\nimport { UdpCard } from '../../../fluent-web-components/UdpCard';\nimport { UdpFlexbox } from '../../../fluent-web-components/UdpFlexbox';\nimport { UdpList } from '../../../fluent-web-components/UdpList';\nimport { UdpListItem } from '../../../fluent-web-components/UdpListItem';\nimport { UdpSpinner } from '../../../fluent-web-components/UdpSpinner';\nimport { UdpText } from '../../../fluent-web-components/UdpText';\nimport {\n toRecentRecordRows,\n type RecentlyLoadedWire,\n type RecentRecordRow\n} from '../../../../inquiry/v2/widgets/widgetRowModel';\n\nexport interface InquiryRecentRecordsWidgetParams {\n recentlyLoadedNodes?: RecentlyLoadedWire[] | null;\n loading?: boolean;\n onLoadedNodeClick?: (node: RecentlyLoadedWire) => void;\n tableHeight?: string;\n hideWidgetName?: boolean;\n}\n\nexport interface InquiryRecentRecordsWidgetProps {\n params?: InquiryRecentRecordsWidgetParams;\n /** The registry contract's other props (`id`, `setParam`, `onDelete`, …). */\n [key: string]: unknown;\n className?: string;\n style?: React.CSSProperties;\n children?: React.ReactNode;\n}\n\n/**\n * \"25 min ago\" / \"Yesterday\"-style timestamp.\n *\n * KNOWN DATA DEFECT: the v1 integration service stamps `dateLoaded` in the API\n * server's OWN local clock with no zone marker — neither local-parsing nor the\n * platform's parse-as-UTC convention renders it truthfully (verified 2026-08-27:\n * fresh loads read \"in 1 hour\" local-parsed, \"5 hours ago\" UTC-parsed for a\n * PDT user against the dev server). Until the backend stamps UTC with `Z`,\n * parse as written and clamp: a load history can never be in the future, so\n * anything that parses ahead of now reads \"just now\". An entry the server\n * never dated renders nothing rather than \"Invalid DateTime\".\n */\nconst relativeLoadedAt = (isoDate: string, justNowLabel: string): string => {\n if (!isoDate) return '';\n const at = DateTime.fromISO(isoDate);\n if (!at.isValid) return '';\n if (at > DateTime.now()) return justNowLabel;\n return at.toRelative() ?? '';\n};\n\nexport const InquiryRecentRecordsWidget = (\n props: InquiryRecentRecordsWidgetProps\n) => {\n // Only `className` and `style` reach the card. The rest of the widget\n // contract (`id`, `setParam`, `onDelete`, `widgetType`, `layout`, …) is\n // host bookkeeping the MUI card used to swallow; a web component would put\n // every one of them on the DOM element as an unknown attribute.\n const { children, params, className, style } = props;\n const { recentlyLoadedNodes, loading, onLoadedNodeClick, hideWidgetName } =\n params ?? {};\n const { t } = useTranslation();\n\n // Newest first, always — recency is the list's whole organizing principle,\n // so it is fixed rather than offered as a control.\n const rows = useMemo(() => {\n const mapped = toRecentRecordRows(\n recentlyLoadedNodes,\n t('inquiry.widgets.unnamedRecord', { defaultValue: 'Unnamed record' })\n );\n return [...mapped].sort((a, b) => b.dateLoaded.localeCompare(a.dateLoaded));\n }, [recentlyLoadedNodes, t]);\n\n const handleRowClick = (row: RecentRecordRow) => {\n if (row.node) onLoadedNodeClick?.(row.node);\n };\n\n return (\n <UdpCard\n className={className}\n style={style}\n // The card fills the region the composition sized; on a JSON page that\n // region is the renderer's fixed-height cell. Either way the body below\n // the header is a definite box for the list's scroll area.\n height='100%'\n label={\n hideWidgetName\n ? undefined\n : t('inquiry.widgets.recentRecords.title', {\n defaultValue: 'Recently loaded'\n })\n }\n >\n <UdpFlexbox grow={1} basis='0' overflow='auto' wrap='nowrap'>\n {loading && <UdpSpinner size='tiny' />}\n\n {!loading && !rows.length && (\n <UdpText variant='caption1' as='p'>\n {t('inquiry.widgets.recentRecords.empty', {\n defaultValue: 'No records loaded yet.'\n })}\n </UdpText>\n )}\n\n {!loading && rows.length > 0 && (\n <UdpList interactive showDivider>\n {rows.map((row, index) => (\n <UdpListItem\n // History entries carry no id and the same record can repeat;\n // position is the only honest key for a replayable log.\n key={`${row.dateLoaded}-${index}`}\n value={`${row.dateLoaded}-${index}`}\n size='small'\n label={row.label}\n subtitle={row.entity || undefined}\n onItemAction={() => handleRowClick(row)}\n >\n <UdpAvatar\n slot='start'\n size={32}\n name={row.label}\n color='colorful'\n aria-hidden='true'\n />\n <UdpText slot='end' variant='caption1'>\n {relativeLoadedAt(\n row.dateLoaded,\n t('inquiry.widgets.recentRecords.justNow', {\n defaultValue: 'just now'\n })\n )}\n </UdpText>\n </UdpListItem>\n ))}\n </UdpList>\n )}\n </UdpFlexbox>\n {children}\n </UdpCard>\n );\n};\n\nexport default InquiryRecentRecordsWidget;\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAgFA,MAAM6B,oBAAoBC,SAAiBC,iBAAiC;AAC1E,KAAI,CAACD,QAAS,QAAO;CACrB,MAAME,KAAK9B,SAAS+B,QAAQH,QAAQ;AACpC,KAAI,CAACE,GAAGE,QAAS,QAAO;AACxB,KAAIF,KAAK9B,SAASiC,KAAK,CAAE,QAAOJ;AAChC,QAAOC,GAAGI,YAAY,IAAI;;AAG5B,MAAaC,8BAA6BC,UAAA;CAAA,MAAAC,IAAAC,EAAA,GAAA;CAOxC,MAAA,EAAAb,UAAAL,QAAAE,WAAAC,UAA+Ca;CAAM,IAAAG;AAAA,KAAAF,EAAA,OAAAjB,QAAA;AAEnDmB,OAAAnB,UAAA,EAAY;AAAAiB,IAAA,KAAAjB;AAAAiB,IAAA,KAAAE;OAAAA,MAAAF,EAAA;CADd,MAAA,EAAAxB,qBAAAC,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AA,MAAAyB;OAAAA,MAAAzB,EAAA;CAAA,IAAA0B;AAAA,KAAA1B,EAAA,QAAAZ,YAAAY,EAAA,QAAAf,aAAAe,EAAA,QAAAd,SAAAc,EAAA,QAAAa,MAAAb,EAAA,QAAAyB,IAAA;AA1DfC,OAAA,sBAAA,cAAC,SAAD;GACazC;GACJC;GAIA,QAAA;GAEL,OAAA2B;GAoDM,EA7CRY,IA4CCrC,SACO;AAAAY,IAAA,MAAAZ;AAAAY,IAAA,MAAAf;AAAAe,IAAA,MAAAd;AAAAc,IAAA,MAAAa;AAAAb,IAAA,MAAAyB;AAAAzB,IAAA,MAAA0B;OAAAA,MAAA1B,EAAA;AAAA,QA5DV0B;;AA3BsC,SAAAlB,MAAAmB,GAAAC,GAAA;AAAA,QAmBJA,EAACN,WAAWO,cAAeF,EAACL,WAAY"}
1
+ {"version":3,"file":"InquiryRecentRecordsWidget.mjs","names":["React","useMemo","DateTime","useTranslation","UdpAvatar","UdpCard","UdpFlexbox","UdpList","UdpListItem","UdpSpinner","UdpText","toRecentRecordRows","RecentlyLoadedWire","RecentRecordRow","rowStyles","InquiryRecentRecordsWidgetParams","recentlyLoadedNodes","loading","onLoadedNodeClick","node","tableHeight","hideWidgetName","appearance","ComponentProps","InquiryRecentRecordsWidgetProps","params","key","className","style","CSSProperties","children","ReactNode","relativeLoadedAt","isoDate","justNowLabel","at","fromISO","isValid","now","toRelative","InquiryRecentRecordsWidget","props","$","_c","t0","t","t1","defaultValue","rows","t2","Set","map","_temp","mixedEntities","size","t3","row_0","row","handleRowClick","t4","undefined","t5","t6","length","t7","bleed","flush","row_1","entity","oneLine","label","test","slice","dateLoaded","t8"],"sources":["../../../../../src/UI/widgets/library/InquiryRecentRecordsWidget/InquiryRecentRecordsWidget.tsx"],"sourcesContent":["/**\n * InquiryRecentRecordsWidget — the modern replacement for\n * `RecentlyLoadedNodesWidget`, for explore pages composed in code or in Page\n * Assembler.\n *\n * The history renders as LIST ROWS, not a grid: the record (with its entity\n * beneath it on a mixed history), when it was loaded at the row's end, and one\n * action (re-load it). A grid's sorting and\n * column chrome earned nothing here — the list is always newest-first, and a\n * row click is the whole interface. The avatar carries the record's identity\n * the same way people-pickers do (`color=\"colorful\"` keys a stable colour to\n * the label), and the entity reads in words in the subtitle.\n *\n * ## Why the widget owns its card\n * NEITHER widget pipeline supplies chrome: `DashboardWidget` mounts the widget\n * bare inside its cell (its own `WidgetCard` is only reached on the not-found /\n * render-error branches), and v2's `UdpPageRenderer` mounts `<Component>` bare\n * in a grid cell. Every registry widget in this library therefore renders its\n * own card, and this one does the same — with the fluent card instead of the\n * MUI one. There is no double-card to guard against on either path.\n *\n * The legacy widget is NOT removed — v1 explore pages still name it.\n *\n * ## Widget params (all supplied by the inquiry landing already)\n * | param | what it is |\n * |---|---|\n * | `recentlyLoadedNodes` | the tree's recently-loaded history (`RecentlyLoadedNode[]`) |\n * | `loading` | true while that history is being fetched |\n * | `onLoadedNodeClick` | replay one history entry back into the tree — the row click |\n * | `tableHeight` | accepted for JSON-page compatibility; the list scrolls in the card and no longer sizes off it |\n * | `hideWidgetName` | hide the card header (standard widget param) |\n *\n * `tree` is deliberately NOT consumed: the legacy table only needed it to look\n * up a per-entity icon, and the entity now reads in words. The landing may\n * keep passing it.\n */\nimport React, { useMemo } from 'react';\nimport { DateTime } from 'luxon';\nimport { useTranslation } from 'react-i18next';\nimport { UdpAvatar } from '../../../fluent-web-components/UdpAvatar';\nimport { UdpCard } from '../../../fluent-web-components/UdpCard';\nimport { UdpFlexbox } from '../../../fluent-web-components/UdpFlexbox';\nimport { UdpList } from '../../../fluent-web-components/UdpList';\nimport { UdpListItem } from '../../../fluent-web-components/UdpListItem';\nimport { UdpSpinner } from '../../../fluent-web-components/UdpSpinner';\nimport { UdpText } from '../../../fluent-web-components/UdpText';\nimport {\n toRecentRecordRows,\n type RecentlyLoadedWire,\n type RecentRecordRow\n} from '../../../../inquiry/v2/widgets/widgetRowModel';\nimport rowStyles from '../../../../inquiry/v2/widgets/listRow.module.css';\n\nexport interface InquiryRecentRecordsWidgetParams {\n recentlyLoadedNodes?: RecentlyLoadedWire[] | null;\n loading?: boolean;\n onLoadedNodeClick?: (node: RecentlyLoadedWire) => void;\n tableHeight?: string;\n hideWidgetName?: boolean;\n /**\n * The card's appearance. A page that is itself the canvas (the code-composed\n * explore page) passes `subtle` so the widget reads as a section of it.\n */\n appearance?: React.ComponentProps<typeof UdpCard>['appearance'];\n}\n\nexport interface InquiryRecentRecordsWidgetProps {\n params?: InquiryRecentRecordsWidgetParams;\n /** The registry contract's other props (`id`, `setParam`, `onDelete`, …). */\n [key: string]: unknown;\n className?: string;\n style?: React.CSSProperties;\n children?: React.ReactNode;\n}\n\n/**\n * \"25 min ago\" / \"Yesterday\"-style timestamp.\n *\n * KNOWN DATA DEFECT: the v1 integration service stamps `dateLoaded` in the API\n * server's OWN local clock with no zone marker — neither local-parsing nor the\n * platform's parse-as-UTC convention renders it truthfully (verified 2026-08-27:\n * fresh loads read \"in 1 hour\" local-parsed, \"5 hours ago\" UTC-parsed for a\n * PDT user against the dev server). Until the backend stamps UTC with `Z`,\n * parse as written and clamp: a load history can never be in the future, so\n * anything that parses ahead of now reads \"just now\". An entry the server\n * never dated renders nothing rather than \"Invalid DateTime\".\n */\nconst relativeLoadedAt = (isoDate: string, justNowLabel: string): string => {\n if (!isoDate) return '';\n const at = DateTime.fromISO(isoDate);\n if (!at.isValid) return '';\n if (at > DateTime.now()) return justNowLabel;\n return at.toRelative() ?? '';\n};\n\nexport const InquiryRecentRecordsWidget = (\n props: InquiryRecentRecordsWidgetProps\n) => {\n // Only `className` and `style` reach the card. The rest of the widget\n // contract (`id`, `setParam`, `onDelete`, `widgetType`, `layout`, …) is\n // host bookkeeping the MUI card used to swallow; a web component would put\n // every one of them on the DOM element as an unknown attribute.\n const { children, params, className, style } = props;\n const {\n recentlyLoadedNodes,\n loading,\n onLoadedNodeClick,\n hideWidgetName,\n appearance\n } = params ?? {};\n const { t } = useTranslation();\n\n // Newest first, always (toRecentRecordRows) — recency is the list's whole\n // organizing principle, so it is fixed rather than offered as a control.\n const rows = useMemo(\n () =>\n toRecentRecordRows(\n recentlyLoadedNodes,\n t('inquiry.widgets.unnamedRecord', { defaultValue: 'Unnamed record' })\n ),\n [recentlyLoadedNodes, t]\n );\n\n // The entity is worth a line only when the history mixes entities; on a\n // single-entity tree it would repeat the same word under every name.\n const mixedEntities = new Set(rows.map((row) => row.entity)).size > 1;\n\n const handleRowClick = (row: RecentRecordRow) => {\n if (row.node) onLoadedNodeClick?.(row.node);\n };\n\n return (\n <UdpCard\n className={className}\n style={style}\n appearance={appearance}\n // The card fills the region the composition sized; on a JSON page that\n // region is the renderer's fixed-height cell. Either way the body below\n // the header is a definite box for the list's scroll area.\n height='100%'\n label={\n hideWidgetName\n ? undefined\n : t('inquiry.widgets.recentRecords.title', {\n defaultValue: 'Recently loaded'\n })\n }\n >\n {loading && <UdpSpinner size='tiny' />}\n\n {!loading && !rows.length && (\n <UdpText variant='caption1' as='p'>\n {t('inquiry.widgets.recentRecords.empty', {\n defaultValue: 'No records loaded yet.'\n })}\n </UdpText>\n )}\n\n {!loading && rows.length > 0 && (\n <UdpFlexbox\n className={rowStyles.bleed}\n grow={1}\n basis='0'\n overflow='auto'\n wrap='nowrap'\n >\n <UdpList className={rowStyles.flush} interactive showDivider>\n {rows.map((row) => (\n <UdpListItem\n key={row.key}\n value={row.key}\n size='small'\n subtitle={(mixedEntities && row.entity) || undefined}\n onItemAction={() => handleRowClick(row)}\n >\n <span\n slot='title'\n className={rowStyles.oneLine}\n title={row.label}\n >\n {row.label}\n </span>\n <UdpAvatar\n slot='start'\n size={32}\n name={row.label}\n // Fluent derives no initials from a letterless name (\"1001\").\n initials={\n /\\p{L}/u.test(row.label)\n ? undefined\n : row.label.slice(0, 2)\n }\n color='colorful'\n aria-hidden='true'\n />\n {/* When it was loaded closes the row at the column's far\n edge, so each row spans the column it sits in. */}\n <UdpText slot='end' variant='caption1'>\n {relativeLoadedAt(\n row.dateLoaded,\n t('inquiry.widgets.recentRecords.justNow', {\n defaultValue: 'just now'\n })\n )}\n </UdpText>\n </UdpListItem>\n ))}\n </UdpList>\n </UdpFlexbox>\n )}\n {children}\n </UdpCard>\n );\n};\n\nexport default InquiryRecentRecordsWidget;\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAuFA,MAAMgC,oBAAoBC,SAAiBC,iBAAiC;AAC1E,KAAI,CAACD,QAAS,QAAO;CACrB,MAAME,KAAKjC,SAASkC,QAAQH,QAAQ;AACpC,KAAI,CAACE,GAAGE,QAAS,QAAO;AACxB,KAAIF,KAAKjC,SAASoC,KAAK,CAAE,QAAOJ;AAChC,QAAOC,GAAGI,YAAY,IAAI;;AAG5B,MAAaC,8BAA6BC,UAAA;CAAA,MAAAC,IAAAC,EAAA,GAAA;CAOxC,MAAA,EAAAb,UAAAL,QAAAE,WAAAC,UAA+Ca;CAAM,IAAAG;AAAA,KAAAF,EAAA,OAAAjB,QAAA;AAOjDmB,OAAAnB,UAAA,EAAY;AAAAiB,IAAA,KAAAjB;AAAAiB,IAAA,KAAAE;OAAAA,MAAAF,EAAA;CANhB,MAAA,EAAA1B,qBAAAC,SAAAC,mBAAAG,gBAAAC,eAMIsB;CACJ,MAAA,EAAAC,MAAc1C,gBAAgB;CAAC,IAAA2C;AAAA,KAAAJ,EAAA,OAAA1B,uBAAA0B,EAAA,OAAAG,GAAA;AAM3BC,OAAAnC,mBACEK,qBACA6B,EAAE,iCAAiC,EAAAE,cAAgB,kBAAkB,CACvE,CAAC;AAAAL,IAAA,KAAA1B;AAAA0B,IAAA,KAAAG;AAAAH,IAAA,KAAAI;OAAAA,MAAAJ,EAAA;CALL,MAAAM,OAEIF;CAKF,IAAAG;AAAA,KAAAP,EAAA,OAAAM,MAAA;AAIoBC,OAAA,IAAIC,IAAIF,KAAIG,IAAKC,MAAoB,CAAC;AAAAV,IAAA,KAAAM;AAA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,cAAC,SAAD;GACa/C;GACJC;GACKN;GAIL,QAAA;GAEL,OAAAqC;GAsEM,EA/DPE,IAEAC,IAQAE,IAoDAlC,SACO;AAAAY,IAAA,MAAApB;AAAAoB,IAAA,MAAAZ;AAAAY,IAAA,MAAAf;AAAAe,IAAA,MAAAd;AAAAc,IAAA,MAAAiB;AAAAjB,IAAA,MAAAmB;AAAAnB,IAAA,MAAAoB;AAAApB,IAAA,MAAAsB;AAAAtB,IAAA,MAAAgC;OAAAA,MAAAhC,EAAA;AAAA,QA/EVgC;;AArCsC,SAAAtB,MAAAK,KAAA;AAAA,QA8BQA,IAAGW"}
@@ -26,17 +26,23 @@
26
26
  * The legacy `RemindersWidget` is NOT removed — v1 JSON explore pages name it.
27
27
  */
28
28
  import React from 'react';
29
+ import { UdpCard } from '../../../fluent-web-components/UdpCard';
30
+ import type { InquiryTreeWire } from '../../../../domain/inquiryTree/types';
29
31
  import { type ReminderNodeToLoad } from './reminderRowModel';
30
- import { type RemindersTreeWire } from './useInquiryReminders';
31
32
  export interface InquiryRemindersWidgetParams {
32
33
  /** The tree wire document — reminders outside its entities are not shown. */
33
- tree?: RemindersTreeWire | null;
34
+ tree?: InquiryTreeWire | null;
34
35
  /** The catalog — identifier fields for the record a clicked reminder names. */
35
36
  catalogObjects?: unknown;
36
37
  /** Load the named record into the tree (the row click). */
37
38
  onLoadedNodeClick?: (node: ReminderNodeToLoad) => void;
38
39
  /** Hide the card header (standard widget param). */
39
40
  hideWidgetName?: boolean;
41
+ /**
42
+ * The card's appearance. A page that is itself the canvas (the code-composed
43
+ * explore page) passes `subtle` so the widget reads as a section of it.
44
+ */
45
+ appearance?: React.ComponentProps<typeof UdpCard>['appearance'];
40
46
  }
41
47
  export interface InquiryRemindersWidgetProps {
42
48
  params?: InquiryRemindersWidgetParams;
@@ -1 +1 @@
1
- {"version":3,"file":"InquiryRemindersWidget.d.ts","sourceRoot":"","sources":["../../../../../src/UI/widgets/library/InquiryRemindersWidget/InquiryRemindersWidget.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,OAAO,KAA+B,MAAM,OAAO,CAAC;AAepD,OAAO,EAGL,KAAK,kBAAkB,EACxB,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAGL,KAAK,iBAAiB,EACvB,MAAM,uBAAuB,CAAC;AAc/B,MAAM,WAAW,4BAA4B;IAC3C,+EAA6E;IAC7E,IAAI,CAAC,EAAE,iBAAiB,GAAG,IAAI,CAAC;IAChC,iFAA+E;IAC/E,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,2DAA2D;IAC3D,iBAAiB,CAAC,EAAE,CAAC,IAAI,EAAE,kBAAkB,KAAK,IAAI,CAAC;IACvD,oDAAoD;IACpD,cAAc,CAAC,EAAE,OAAO,CAAC;CAC1B;AAED,MAAM,WAAW,2BAA2B;IAC1C,MAAM,CAAC,EAAE,4BAA4B,CAAC;IACtC,+EAA6E;IAC7E,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;IACvB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IAC5B,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC5B;AAED,eAAO,MAAM,sBAAsB,2DA+JlC,CAAC;AAEF,eAAe,sBAAsB,CAAC"}
1
+ {"version":3,"file":"InquiryRemindersWidget.d.ts","sourceRoot":"","sources":["../../../../../src/UI/widgets/library/InquiryRemindersWidget/InquiryRemindersWidget.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,OAAO,KAA+B,MAAM,OAAO,CAAC;AAIpD,OAAO,EAAE,OAAO,EAAE,MAAM,wCAAwC,CAAC;AAWjE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,sCAAsC,CAAC;AAG5E,OAAO,EAGL,KAAK,kBAAkB,EACxB,MAAM,oBAAoB,CAAC;AAgB5B,MAAM,WAAW,4BAA4B;IAC3C,+EAA6E;IAC7E,IAAI,CAAC,EAAE,eAAe,GAAG,IAAI,CAAC;IAC9B,iFAA+E;IAC/E,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,2DAA2D;IAC3D,iBAAiB,CAAC,EAAE,CAAC,IAAI,EAAE,kBAAkB,KAAK,IAAI,CAAC;IACvD,oDAAoD;IACpD,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB;;;OAGG;IACH,UAAU,CAAC,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,OAAO,CAAC,CAAC,YAAY,CAAC,CAAC;CACjE;AAED,MAAM,WAAW,2BAA2B;IAC1C,MAAM,CAAC,EAAE,4BAA4B,CAAC;IACtC,+EAA6E;IAC7E,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;IACvB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IAC5B,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC5B;AAED,eAAO,MAAM,sBAAsB,2DAsMlC,CAAC;AAEF,eAAe,sBAAsB,CAAC"}