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,5 +1,6 @@
1
1
  import { LogicalSearchOperatorEnums } from "../../../../enums/unitySystemEnums.mjs";
2
2
  import { getSearchIdentifiers, getSearchObject } from "../../../../utilities/search/SearchUtilities.mjs";
3
+ import { isEntityNode } from "../../../../domain/inquiryTree/types.mjs";
3
4
  import { buildRecordEntryFilterElements } from "../../../../domain/inquiryTree/waveLoad.mjs";
4
5
  //#region src/UI/widgets/library/InquiryRemindersWidget/reminderRowModel.ts
5
6
  /**
@@ -14,12 +15,13 @@ import { buildRecordEntryFilterElements } from "../../../../domain/inquiryTree/w
14
15
  * catalog's identifier fields (`buildRecordEntryFilterElements`, the same
15
16
  * builder the v2 record-entry URL uses).
16
17
  */
17
- const buildReminderNodeToLoad = (reminder, tree, catalogObjects) => {
18
+ const buildReminderNodeToLoad = (reminder, tree, linkedTrees, catalogObjects) => {
18
19
  const domainObject = reminder?.domainObject ?? "";
19
- const matchingNode = tree?.treeStructure?.find((node) => node.properties?.catalogReturnObject === domainObject);
20
+ const matchingNode = tree?.nodes.filter(isEntityNode).find((node) => node.properties.catalogReturnObject === domainObject);
20
21
  let apiMethodId = "";
21
- if (matchingNode) apiMethodId = matchingNode.parentId ? matchingNode.properties?.associatedInquiryTree?.apiMethodInstance?.apiMethodId ?? "" : tree?.apiMethodInstance?.apiMethodId ?? "";
22
- const filterElements = buildRecordEntryFilterElements(getSearchIdentifiers(catalogObjects, domainObject), reminder?.entityBusinessKey?.split("|")[1]);
22
+ if (matchingNode) apiMethodId = matchingNode.parentId ? String(linkedTrees?.[matchingNode.properties.associatedTreeId ?? ""]?.wrapper.apiMethodInstance?.apiMethodId ?? "") : tree?.wrapper.apiMethodInstance?.apiMethodId ?? "";
23
+ const keyValues = reminder?.entityBusinessKey?.split("|")[1];
24
+ const filterElements = buildRecordEntryFilterElements(getSearchIdentifiers(catalogObjects, domainObject), keyValues ? keyValues.split(",") : []);
23
25
  return {
24
26
  apiMethodId,
25
27
  nodeDetails: {
@@ -1 +1 @@
1
- {"version":3,"file":"reminderRowModel.mjs","names":["getSearchIdentifiers","getSearchObject","LogicalSearchOperatorEnums","buildRecordEntryFilterElements","Reminder","RemindersTreeWire","ReminderNodeToLoad","apiMethodId","nodeDetails","catalogReturnObject","treeStructureId","queryPayload","buildReminderNodeToLoad","reminder","tree","catalogObjects","domainObject","matchingNode","treeStructure","find","node","properties","parentId","associatedInquiryTree","apiMethodInstance","filterElements","entityBusinessKey","split","id","And","DAY_MS","ReminderOverdue","days","color","reminderOverdue","reminderDate","at","Date","getTime","Number","isNaN","Math","floor","now"],"sources":["../../../../../src/UI/widgets/library/InquiryRemindersWidget/reminderRowModel.ts"],"sourcesContent":["/**\n * Pure derivations behind the reminders card: how a reminder is named to the\n * tree, and how overdue it is.\n *\n * `buildReminderNodeToLoad` is the legacy widget's `getNodeToLoad`, unchanged in\n * substance — the tree node whose `catalogReturnObject` matches the reminder's\n * domain supplies the api method (the ROOT node uses the tree's own instance, a\n * child node its associated tree's), and the record is named by splitting\n * `entityBusinessKey` on `|` and pairing the comma-separated values with the\n * catalog's identifier fields (`buildRecordEntryFilterElements`, the same\n * builder the v2 record-entry URL uses).\n */\nimport {\n getSearchIdentifiers,\n getSearchObject\n} from '../../../../utilities/search/SearchUtilities';\nimport { LogicalSearchOperatorEnums } from '../../../../enums/unitySystemEnums';\nimport { buildRecordEntryFilterElements } from '../../../../domain/inquiryTree';\nimport type { Reminder, RemindersTreeWire } from './useInquiryReminders';\n\n/** The node-to-load an inquiry host replays — v1's `getLoadedNodeObject` shape. */\nexport interface ReminderNodeToLoad {\n apiMethodId: string;\n nodeDetails: { catalogReturnObject: string; treeStructureId: string };\n queryPayload: unknown;\n}\n\nexport const buildReminderNodeToLoad = (\n reminder: Reminder,\n tree: RemindersTreeWire | null | undefined,\n catalogObjects: unknown\n): ReminderNodeToLoad => {\n const domainObject = reminder?.domainObject ?? '';\n const matchingNode = tree?.treeStructure?.find(\n (node) => node.properties?.catalogReturnObject === domainObject\n );\n\n let apiMethodId = '';\n if (matchingNode) {\n apiMethodId = matchingNode.parentId\n ? matchingNode.properties?.associatedInquiryTree?.apiMethodInstance\n ?.apiMethodId ?? ''\n : tree?.apiMethodInstance?.apiMethodId ?? '';\n }\n\n // `\"<entity>|<key1,key2>\"` — the values are positional against the catalog's\n // identifier fields.\n const filterElements = buildRecordEntryFilterElements(\n getSearchIdentifiers(catalogObjects as never, domainObject),\n reminder?.entityBusinessKey?.split('|')[1]\n );\n\n return {\n apiMethodId,\n nodeDetails: {\n catalogReturnObject: domainObject,\n treeStructureId: matchingNode?.id ?? ''\n },\n queryPayload: getSearchObject(\n filterElements as never,\n 1,\n 50,\n true,\n LogicalSearchOperatorEnums.And\n )\n };\n};\n\nconst DAY_MS = 1000 * 60 * 60 * 24;\n\n/** How overdue a reminder is, and how loudly to say so. */\nexport interface ReminderOverdue {\n days: number;\n color: 'subtle' | 'informative' | 'warning' | 'danger';\n}\n\n/**\n * Whole days between the reminder date and now, with the legacy card's four\n * escalation bands (a week, a month, half a year, beyond). Not yet due → null:\n * there is nothing to report, and an \"overdue\" badge would be a lie.\n */\nexport const reminderOverdue = (\n reminderDate: string | undefined\n): ReminderOverdue | null => {\n if (!reminderDate) return null;\n const at = new Date(reminderDate).getTime();\n if (Number.isNaN(at)) return null;\n const days = Math.floor((Date.now() - at) / DAY_MS);\n if (days < 0) return null;\n if (days <= 7) return { days, color: 'subtle' };\n if (days <= 30) return { days, color: 'informative' };\n if (days <= 180) return { days, color: 'warning' };\n return { days, color: 'danger' };\n};\n"],"mappings":";;;;;;;;;;;;;;;;AA2BA,MAAaY,2BACXC,UACAC,MACAC,mBACuB;CACvB,MAAMC,eAAeH,UAAUG,gBAAgB;CAC/C,MAAMC,eAAeH,MAAMI,eAAeC,MACvCC,SAASA,KAAKC,YAAYZ,wBAAwBO,aACpD;CAED,IAAIT,cAAc;AAClB,KAAIU,aACFV,eAAcU,aAAaK,WACvBL,aAAaI,YAAYE,uBAAuBC,mBAC5CjB,eAAe,KACnBO,MAAMU,mBAAmBjB,eAAe;CAK9C,MAAMkB,iBAAiBtB,+BACrBH,qBAAqBe,gBAAyBC,aAAa,EAC3DH,UAAUa,mBAAmBC,MAAM,IAAI,CAAC,GACzC;AAED,QAAO;EACLpB;EACAC,aAAa;GACXC,qBAAqBO;GACrBN,iBAAiBO,cAAcW,MAAM;GACtC;EACDjB,cAAcV,gBACZwB,gBACA,GACA,IACA,MACAvB,2BAA2B2B,IAC7B;EACD;;AAGH,MAAMC,SAAS,MAAO,KAAK,KAAK;;;;;;AAahC,MAAaI,mBACXC,iBAC2B;AAC3B,KAAI,CAACA,aAAc,QAAO;CAC1B,MAAMC,KAAK,IAAIC,KAAKF,aAAa,CAACG,SAAS;AAC3C,KAAIC,OAAOC,MAAMJ,GAAG,CAAE,QAAO;CAC7B,MAAMJ,OAAOS,KAAKC,OAAOL,KAAKM,KAAK,GAAGP,MAAMN,OAAO;AACnD,KAAIE,OAAO,EAAG,QAAO;AACrB,KAAIA,QAAQ,EAAG,QAAO;EAAEA;EAAMC,OAAO;EAAU;AAC/C,KAAID,QAAQ,GAAI,QAAO;EAAEA;EAAMC,OAAO;EAAe;AACrD,KAAID,QAAQ,IAAK,QAAO;EAAEA;EAAMC,OAAO;EAAW;AAClD,QAAO;EAAED;EAAMC,OAAO;EAAU"}
1
+ {"version":3,"file":"reminderRowModel.mjs","names":["getSearchIdentifiers","getSearchObject","LogicalSearchOperatorEnums","buildRecordEntryFilterElements","isEntityNode","InquiryTree","LinkedTrees","Reminder","ReminderNodeToLoad","apiMethodId","nodeDetails","catalogReturnObject","treeStructureId","queryPayload","buildReminderNodeToLoad","reminder","tree","linkedTrees","catalogObjects","domainObject","matchingNode","nodes","filter","find","node","properties","parentId","String","associatedTreeId","wrapper","apiMethodInstance","keyValues","entityBusinessKey","split","filterElements","id","And","DAY_MS","ReminderOverdue","days","color","reminderOverdue","reminderDate","at","Date","getTime","Number","isNaN","Math","floor","now"],"sources":["../../../../../src/UI/widgets/library/InquiryRemindersWidget/reminderRowModel.ts"],"sourcesContent":["/**\n * Pure derivations behind the reminders card: how a reminder is named to the\n * tree, and how overdue it is.\n *\n * `buildReminderNodeToLoad` is the legacy widget's `getNodeToLoad`, unchanged in\n * substance — the tree node whose `catalogReturnObject` matches the reminder's\n * domain supplies the api method (the ROOT node uses the tree's own instance, a\n * child node its associated tree's), and the record is named by splitting\n * `entityBusinessKey` on `|` and pairing the comma-separated values with the\n * catalog's identifier fields (`buildRecordEntryFilterElements`, the same\n * builder the v2 record-entry URL uses).\n */\nimport {\n getSearchIdentifiers,\n getSearchObject\n} from '../../../../utilities/search/SearchUtilities';\nimport { LogicalSearchOperatorEnums } from '../../../../enums/unitySystemEnums';\nimport {\n buildRecordEntryFilterElements,\n isEntityNode,\n type InquiryTree\n} from '../../../../domain/inquiryTree';\nimport type { LinkedTrees } from '../../../../inquiry/v2/search/searchModel';\nimport type { Reminder } from './useInquiryReminders';\n\n/** The node-to-load an inquiry host replays — v1's `getLoadedNodeObject` shape. */\nexport interface ReminderNodeToLoad {\n apiMethodId: string;\n nodeDetails: { catalogReturnObject: string; treeStructureId: string };\n queryPayload: unknown;\n}\n\nexport const buildReminderNodeToLoad = (\n reminder: Reminder,\n tree: InquiryTree | null | undefined,\n linkedTrees: LinkedTrees | undefined,\n catalogObjects: unknown\n): ReminderNodeToLoad => {\n const domainObject = reminder?.domainObject ?? '';\n const matchingNode = tree?.nodes\n .filter(isEntityNode)\n .find((node) => node.properties.catalogReturnObject === domainObject);\n\n let apiMethodId = '';\n if (matchingNode) {\n apiMethodId = matchingNode.parentId\n ? String(\n linkedTrees?.[matchingNode.properties.associatedTreeId ?? '']\n ?.wrapper.apiMethodInstance?.apiMethodId ?? ''\n )\n : tree?.wrapper.apiMethodInstance?.apiMethodId ?? '';\n }\n\n // `\"<entity>|<key1,key2>\"` — the values are positional against the catalog's\n // identifier fields.\n const keyValues = reminder?.entityBusinessKey?.split('|')[1];\n const filterElements = buildRecordEntryFilterElements(\n getSearchIdentifiers(catalogObjects as never, domainObject),\n keyValues ? keyValues.split(',') : []\n );\n\n return {\n apiMethodId,\n nodeDetails: {\n catalogReturnObject: domainObject,\n treeStructureId: matchingNode?.id ?? ''\n },\n queryPayload: getSearchObject(\n filterElements as never,\n 1,\n 50,\n true,\n LogicalSearchOperatorEnums.And\n )\n };\n};\n\nconst DAY_MS = 1000 * 60 * 60 * 24;\n\n/** How overdue a reminder is, and how loudly to say so. */\nexport interface ReminderOverdue {\n days: number;\n color: 'subtle' | 'informative' | 'warning' | 'danger';\n}\n\n/**\n * Whole days between the reminder date and now, with the legacy card's four\n * escalation bands (a week, a month, half a year, beyond). Not yet due → null:\n * there is nothing to report, and an \"overdue\" badge would be a lie.\n */\nexport const reminderOverdue = (\n reminderDate: string | undefined\n): ReminderOverdue | null => {\n if (!reminderDate) return null;\n const at = new Date(reminderDate).getTime();\n if (Number.isNaN(at)) return null;\n const days = Math.floor((Date.now() - at) / DAY_MS);\n if (days < 0) return null;\n if (days <= 7) return { days, color: 'subtle' };\n if (days <= 30) return { days, color: 'informative' };\n if (days <= 180) return { days, color: 'warning' };\n return { days, color: 'danger' };\n};\n"],"mappings":";;;;;;;;;;;;;;;;;AAgCA,MAAac,2BACXC,UACAC,MACAC,aACAC,mBACuB;CACvB,MAAMC,eAAeJ,UAAUI,gBAAgB;CAC/C,MAAMC,eAAeJ,MAAMK,MACxBC,OAAOlB,aAAa,CACpBmB,MAAMC,SAASA,KAAKC,WAAWd,wBAAwBQ,aAAa;CAEvE,IAAIV,cAAc;AAClB,KAAIW,aACFX,eAAcW,aAAaM,WACvBC,OACEV,cAAcG,aAAaK,WAAWG,oBAAoB,KACtDC,QAAQC,mBAAmBrB,eAAe,GAC/C,GACDO,MAAMa,QAAQC,mBAAmBrB,eAAe;CAKtD,MAAMsB,YAAYhB,UAAUiB,mBAAmBC,MAAM,IAAI,CAAC;CAC1D,MAAMC,iBAAiB/B,+BACrBH,qBAAqBkB,gBAAyBC,aAAa,EAC3DY,YAAYA,UAAUE,MAAM,IAAI,GAAG,EACrC,CAAC;AAED,QAAO;EACLxB;EACAC,aAAa;GACXC,qBAAqBQ;GACrBP,iBAAiBQ,cAAce,MAAM;GACtC;EACDtB,cAAcZ,gBACZiC,gBACA,GACA,IACA,MACAhC,2BAA2BkC,IAC7B;EACD;;AAGH,MAAMC,SAAS,MAAO,KAAK,KAAK;;;;;;AAahC,MAAaI,mBACXC,iBAC2B;AAC3B,KAAI,CAACA,aAAc,QAAO;CAC1B,MAAMC,KAAK,IAAIC,KAAKF,aAAa,CAACG,SAAS;AAC3C,KAAIC,OAAOC,MAAMJ,GAAG,CAAE,QAAO;CAC7B,MAAMJ,OAAOS,KAAKC,OAAOL,KAAKM,KAAK,GAAGP,MAAMN,OAAO;AACnD,KAAIE,OAAO,EAAG,QAAO;AACrB,KAAIA,QAAQ,EAAG,QAAO;EAAEA;EAAMC,OAAO;EAAU;AAC/C,KAAID,QAAQ,GAAI,QAAO;EAAEA;EAAMC,OAAO;EAAe;AACrD,KAAID,QAAQ,IAAK,QAAO;EAAEA;EAAMC,OAAO;EAAW;AAClD,QAAO;EAAED;EAAMC,OAAO;EAAU"}
@@ -1,3 +1,4 @@
1
+ import { type InquiryTree } from '../../../../domain/inquiryTree';
1
2
  /** One reminder row, as the ReminderFiledFor search returns it. */
2
3
  export interface Reminder {
3
4
  id: string;
@@ -17,24 +18,6 @@ export interface ReminderWarning {
17
18
  intent: 'warning' | 'error';
18
19
  message: string;
19
20
  }
20
- /** The tree wire document, narrowed to what reminders read off it. */
21
- export interface RemindersTreeWire {
22
- treeStructure?: Array<{
23
- id?: string;
24
- parentId?: string | null;
25
- properties?: {
26
- catalogReturnObject?: string;
27
- associatedInquiryTree?: {
28
- apiMethodInstance?: {
29
- apiMethodId?: string;
30
- };
31
- };
32
- };
33
- }>;
34
- apiMethodInstance?: {
35
- apiMethodId?: string;
36
- };
37
- }
38
21
  export interface UseInquiryRemindersResult {
39
22
  reminders: Reminder[];
40
23
  loading: boolean;
@@ -51,5 +34,5 @@ export interface UseInquiryRemindersResult {
51
34
  */
52
35
  setAcknowledged: (reminders: Reminder[], acknowledged: boolean) => Promise<void>;
53
36
  }
54
- export declare const useInquiryReminders: (tree: RemindersTreeWire) => UseInquiryRemindersResult;
37
+ export declare const useInquiryReminders: (tree: InquiryTree) => UseInquiryRemindersResult;
55
38
  //# sourceMappingURL=useInquiryReminders.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useInquiryReminders.d.ts","sourceRoot":"","sources":["../../../../../src/UI/widgets/library/InquiryRemindersWidget/useInquiryReminders.ts"],"names":[],"mappings":"AAqCA,mEAAmE;AACnE,MAAM,WAAW,QAAQ;IACvB,EAAE,EAAE,MAAM,CAAC;IACX,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,yDAAyD;IACzD,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,uEAAmE;IACnE,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;CACxB;AAaD,6DAA6D;AAC7D,MAAM,WAAW,eAAe;IAC9B,EAAE,EAAE,MAAM,CAAC;IACX,MAAM,EAAE,SAAS,GAAG,OAAO,CAAC;IAC5B,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,sEAAsE;AACtE,MAAM,WAAW,iBAAiB;IAChC,aAAa,CAAC,EAAE,KAAK,CAAC;QACpB,EAAE,CAAC,EAAE,MAAM,CAAC;QACZ,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;QACzB,UAAU,CAAC,EAAE;YACX,mBAAmB,CAAC,EAAE,MAAM,CAAC;YAC7B,qBAAqB,CAAC,EAAE;gBAAE,iBAAiB,CAAC,EAAE;oBAAE,WAAW,CAAC,EAAE,MAAM,CAAA;iBAAE,CAAA;aAAE,CAAC;SAC1E,CAAC;KACH,CAAC,CAAC;IACH,iBAAiB,CAAC,EAAE;QAAE,WAAW,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;CAC9C;AAMD,MAAM,WAAW,yBAAyB;IACxC,SAAS,EAAE,QAAQ,EAAE,CAAC;IACtB,OAAO,EAAE,OAAO,CAAC;IACjB,QAAQ,EAAE,eAAe,EAAE,CAAC;IAC5B,6DAA6D;IAC7D,MAAM,EAAE,OAAO,CAAC;IAChB,4EAA4E;IAC5E,OAAO,EAAE,OAAO,CAAC;IACjB,UAAU,EAAE,CAAC,OAAO,EAAE,OAAO,KAAK,IAAI,CAAC;IACvC;;;;OAIG;IACH,eAAe,EAAE,CACf,SAAS,EAAE,QAAQ,EAAE,EACrB,YAAY,EAAE,OAAO,KAClB,OAAO,CAAC,IAAI,CAAC,CAAC;CACpB;AAED,eAAO,MAAM,mBAAmB,wDAwP/B,CAAC"}
1
+ {"version":3,"file":"useInquiryReminders.d.ts","sourceRoot":"","sources":["../../../../../src/UI/widgets/library/InquiryRemindersWidget/useInquiryReminders.ts"],"names":[],"mappings":"AA0BA,OAAO,EAEL,KAAK,WAAW,EACjB,MAAM,gCAAgC,CAAC;AAYxC,mEAAmE;AACnE,MAAM,WAAW,QAAQ;IACvB,EAAE,EAAE,MAAM,CAAC;IACX,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,yDAAyD;IACzD,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,uEAAmE;IACnE,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;CACxB;AAaD,6DAA6D;AAC7D,MAAM,WAAW,eAAe;IAC9B,EAAE,EAAE,MAAM,CAAC;IACX,MAAM,EAAE,SAAS,GAAG,OAAO,CAAC;IAC5B,OAAO,EAAE,MAAM,CAAC;CACjB;AAMD,MAAM,WAAW,yBAAyB;IACxC,SAAS,EAAE,QAAQ,EAAE,CAAC;IACtB,OAAO,EAAE,OAAO,CAAC;IACjB,QAAQ,EAAE,eAAe,EAAE,CAAC;IAC5B,6DAA6D;IAC7D,MAAM,EAAE,OAAO,CAAC;IAChB,4EAA4E;IAC5E,OAAO,EAAE,OAAO,CAAC;IACjB,UAAU,EAAE,CAAC,OAAO,EAAE,OAAO,KAAK,IAAI,CAAC;IACvC;;;;OAIG;IACH,eAAe,EAAE,CACf,SAAS,EAAE,QAAQ,EAAE,EACrB,YAAY,EAAE,OAAO,KAClB,OAAO,CAAC,IAAI,CAAC,CAAC;CACpB;AAED,eAAO,MAAM,mBAAmB,kDAyP/B,CAAC"}
@@ -24,6 +24,7 @@ import { useActionState } from '../../../../hooks/useActions';
24
24
  import { useUser } from '../../../../utilities/auth/useUser';
25
25
  import { useHandleAxiosSnackbar } from '../../../../utilities/apiHelpers';
26
26
  import { getSearchObject } from '../../../../utilities/search/SearchUtilities';
27
+ import { isEntityNode } from '../../../../domain/inquiryTree';
27
28
  import { executeQueryAdHoc, executeQueryWithParameters, getBaseMethod } from '../../../../udp/utilities/methodUtils';
28
29
  import { LogicalSearchOperatorEnums, UdpEnums, UdpReminderFiledForType } from '../../../../enums/unitySystemEnums';
29
30
  export const useInquiryReminders = (tree) => {
@@ -44,11 +45,9 @@ export const useInquiryReminders = (tree) => {
44
45
  /** The entities this tree can show — a reminder outside them is not ours. */
45
46
  const treeDomains = useMemo(() => {
46
47
  var _a;
47
- return ((_a = tree === null || tree === void 0 ? void 0 : tree.treeStructure) !== null && _a !== void 0 ? _a : [])
48
- .map((node) => {
49
- var _a;
50
- return (_a = node.properties) === null || _a === void 0 ? void 0 : _a.catalogReturnObject;
51
- })
48
+ return ((_a = tree === null || tree === void 0 ? void 0 : tree.nodes) !== null && _a !== void 0 ? _a : [])
49
+ .filter(isEntityNode)
50
+ .map((node) => node.properties.catalogReturnObject)
52
51
  .filter((entity) => !!entity);
53
52
  }, [tree]);
54
53
  const load = useCallback(async () => {
@@ -1 +1 @@
1
- {"version":3,"file":"useInquiryReminders.js","sourceRoot":"","sources":["../../../../../src/UI/widgets/library/InquiryRemindersWidget/useInquiryReminders.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AACH,OAAO,EAAE,WAAW,EAAE,SAAS,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAClE,OAAO,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AAC/C,OAAO,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAC9D,OAAO,EAAE,OAAO,EAAE,MAAM,oCAAoC,CAAC;AAC7D,OAAO,EAAE,sBAAsB,EAAE,MAAM,kCAAkC,CAAC;AAC1E,OAAO,EAAE,eAAe,EAAE,MAAM,8CAA8C,CAAC;AAC/E,OAAO,EACL,iBAAiB,EACjB,0BAA0B,EAC1B,aAAa,EACd,MAAM,uCAAuC,CAAC;AAC/C,OAAO,EACL,0BAA0B,EAC1B,QAAQ,EACR,uBAAuB,EACxB,MAAM,oCAAoC,CAAC;AAuE5C,MAAM,CAAC,MAAM,mBAAmB,GAAG,CACjC,IAA0C,EACf,EAAE,CAAC;IAC9B,MAAM,EAAE,CAAC,EAAE,GAAG,cAAc,EAAE,CAAC;IAC/B,MAAM,IAAI,GAAG,OAAO,EAAE,CAAC;IACvB,MAAM,EA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AAC;IAAA,CACb,EAAE,CAAC,IAAI,CAAC,CAAC,CAAC;IAEX,MAAM,eAAe,GAAG,WAAW,CACjC,KAAK,EAAE,OAAmB,EAAE,YAAqB,EAAE,EAAE,CAAC;QACpD,IAAI,CAAC,OAAO,CAAC,MAAM;YAAE,OAAO;QAC5B,IAAI,EAAC,YAAY,aAAZ,YAAY,uBAAZ,YAAY,CAAE,WAAW,CAAA,EAAE,CAAC;YAC/B,oEAAoE;YACpE,uEAAuE;YACvE,QAAQ;YACR,mBAAmB,CACjB,IAAI,EACJ,CAAC,CAAC,8CAA8C,EAAE;gBAChD,YAAY,EAAE,qCAAqC;aACpD,CAAC,EACF,SAAS,EACT,SAAS,CACV,CAAC;YACF,OAAO;QACT,CAAC;QACD,SAAS,CAAC,IAAI,CAAC,CAAC;QAChB,MAAM,OAAO,CAAC,GAAG,CACf,OAAO,CAAC,GAAG,CAAC,CAAC,QAAQ,EAAE,EAAE,CACvB,0BAA0B,CACxB;YACE,IAAI,EAAE;gBACJ,WAAW,kCAAO,QAAQ,KAAE,YAAY,GAAE;gBAC1C,MAAM,EAAE,QAAQ,CAAC,EAAE;aACpB;SACF,EACD,YAAY,CAAC,WAAW,CACzB,CAAC,KAAK,CAAC,CAAC,KAAc,EAAE,EAAE,CAAC,KAAK,CAAC,CACnC,CACF,CAAC;QACF,SAAS,CAAC,KAAK,CAAC,CAAC;QACjB,MAAM,IAAI,EAAE,CAAC;IAAA,CACd,EACD,CAAC,YAAY,EAAE,mBAAmB,EAAE,CAAC,EAAE,IAAI,CAAC,CAC7C,CAAC;IAEF,OAAO;QACL,SAAS;QACT,OAAO;QACP,QAAQ;QACR,MAAM;QACN,OAAO;QACP,UAAU;QACV,eAAe;KAChB,CAAC;AAAA,CACH,CAAC"}
1
+ {"version":3,"file":"useInquiryReminders.js","sourceRoot":"","sources":["../../../../../src/UI/widgets/library/InquiryRemindersWidget/useInquiryReminders.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GA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AC,IAAI,CAAC,CAAC;QAChB,MAAM,OAAO,CAAC,GAAG,CACf,OAAO,CAAC,GAAG,CAAC,CAAC,QAAQ,EAAE,EAAE,CACvB,0BAA0B,CACxB;YACE,IAAI,EAAE;gBACJ,WAAW,kCAAO,QAAQ,KAAE,YAAY,GAAE;gBAC1C,MAAM,EAAE,QAAQ,CAAC,EAAE;aACpB;SACF,EACD,YAAY,CAAC,WAAW,CACzB,CAAC,KAAK,CAAC,CAAC,KAAc,EAAE,EAAE,CAAC,KAAK,CAAC,CACnC,CACF,CAAC;QACF,SAAS,CAAC,KAAK,CAAC,CAAC;QACjB,MAAM,IAAI,EAAE,CAAC;IAAA,CACd,EACD,CAAC,YAAY,EAAE,mBAAmB,EAAE,CAAC,EAAE,IAAI,CAAC,CAC7C,CAAC;IAEF,OAAO;QACL,SAAS;QACT,OAAO;QACP,QAAQ;QACR,MAAM;QACN,OAAO;QACP,UAAU;QACV,eAAe;KAChB,CAAC;AAAA,CACH,CAAC"}
@@ -5,6 +5,7 @@ import { useUser } from "../../../../utilities/auth/useUser.mjs";
5
5
  import { executeQueryAdHoc, executeQueryWithParameters, getBaseMethod } from "../../../../udp/utilities/methodUtils.mjs";
6
6
  import { useActionState } from "../../../../hooks/useActions.mjs";
7
7
  import { getSearchObject } from "../../../../utilities/search/SearchUtilities.mjs";
8
+ import { isEntityNode } from "../../../../domain/inquiryTree/types.mjs";
8
9
  import { useEffect, useState } from "react";
9
10
  import { useTranslation } from "react-i18next";
10
11
  //#region src/UI/widgets/library/InquiryRemindersWidget/useInquiryReminders.ts
@@ -64,9 +65,9 @@ const useInquiryReminders = (tree) => {
64
65
  } else t3 = $[5];
65
66
  const updateMethod = t3;
66
67
  let t4;
67
- if ($[6] !== tree?.treeStructure) {
68
- t4 = (tree?.treeStructure ?? []).map(_temp).filter(_temp2);
69
- $[6] = tree?.treeStructure;
68
+ if ($[6] !== tree?.nodes) {
69
+ t4 = (tree?.nodes ?? []).filter(isEntityNode).map(_temp).filter(_temp2);
70
+ $[6] = tree?.nodes;
70
71
  $[7] = t4;
71
72
  } else t4 = $[7];
72
73
  const treeDomains = t4;
@@ -241,7 +242,7 @@ const useInquiryReminders = (tree) => {
241
242
  return t9;
242
243
  };
243
244
  function _temp(node) {
244
- return node.properties?.catalogReturnObject;
245
+ return node.properties.catalogReturnObject;
245
246
  }
246
247
  function _temp2(entity) {
247
248
  return !!entity;
@@ -1 +1 @@
1
- {"version":3,"file":"useInquiryReminders.mjs","names":["useCallback","useEffect","useMemo","useState","useTranslation","useActionState","useUser","useHandleAxiosSnackbar","getSearchObject","executeQueryAdHoc","executeQueryWithParameters","getBaseMethod","LogicalSearchOperatorEnums","UdpEnums","UdpReminderFiledForType","Reminder","id","subject","reminderDate","acknowledged","domainObject","entityBusinessKey","filedToType","key","ReminderFiledForRow","reminder","type","ReminderWarning","intent","message","RemindersTreeWire","treeStructure","Array","parentId","properties","catalogReturnObject","associatedInquiryTree","apiMethodInstance","apiMethodId","PromotedMethod","UseInquiryRemindersResult","reminders","loading","warnings","saving","showAll","setShowAll","setAcknowledged","Promise","useInquiryReminders","tree","$","_c","t","user","handleErrorSnackbar","actionState","catalogPromotedEntities","t0","Symbol","for","setReminders","setLoading","setSaving","t1","setWarnings","t2","Udp_Reminder_Filed_For","searchMethod","t3","Udp_Reminder","updateMethod","t4","map","_temp","filter","_temp2","treeDomains","t5","defaultValue","filterElements","searchField","searchValue","System","searchOperator","groupId","User","Date","filterGroups","logicalSearchOperator","And","parentGroupId","Or","searchObject","response","data","catch","_temp3","status","pageList","rows","_temp4","length","row","includes","load","t6","t7","t8","toWrite","undefined","all","requestBody","_temp5","t9","node","entity","item","error"],"sources":["../../../../../src/UI/widgets/library/InquiryRemindersWidget/useInquiryReminders.ts"],"sourcesContent":["/**\n * The reminders data path, lifted out of `RemindersWidget` UNCHANGED.\n *\n * Every request this hook makes is the request the legacy widget made: the same\n * two promoted base methods off `ActionProvider`'s catalog\n * (`UdpReminderFiledFor.unityBaseSearchMethod` to read,\n * `UdpReminder.unityBaseUpdateMethod` to acknowledge), the same filter\n * elements and groups, the same `getSearchObject(…, 1, 200, true, And, groups)`\n * page, the same `executeQueryAdHoc` / `executeQueryWithParameters` calls, the\n * same `{...item.reminder, domainObject, filedToType, entityBusinessKey}` row\n * shape, and the same \"keep only reminders whose domain is in this tree\" filter.\n * No new endpoint is introduced and nothing is cached differently.\n *\n * It lives here rather than in the legacy widget because the legacy widget is\n * still mounted by v1 JSON explore pages and is deliberately left untouched.\n *\n * What is NOT carried over is bookkeeping, not data: sorting is derived in the\n * component from one direction flag instead of being written back into state on\n * every fetch, and a response loop that only ever `console.warn`ed is dropped.\n */\nimport { useCallback, useEffect, useMemo, useState } from 'react';\nimport { useTranslation } from 'react-i18next';\nimport { useActionState } from '../../../../hooks/useActions';\nimport { useUser } from '../../../../utilities/auth/useUser';\nimport { useHandleAxiosSnackbar } from '../../../../utilities/apiHelpers';\nimport { getSearchObject } from '../../../../utilities/search/SearchUtilities';\nimport {\n executeQueryAdHoc,\n executeQueryWithParameters,\n getBaseMethod\n} from '../../../../udp/utilities/methodUtils';\nimport {\n LogicalSearchOperatorEnums,\n UdpEnums,\n UdpReminderFiledForType\n} from '../../../../enums/unitySystemEnums';\n\n/** One reminder row, as the ReminderFiledFor search returns it. */\nexport interface Reminder {\n id: string;\n subject?: string;\n reminderDate?: string;\n acknowledged?: boolean;\n /** The catalog entity this reminder is filed against. */\n domainObject?: string;\n /** `\"<entity>|<key1,key2,…>\"` — the record's identifier values. */\n entityBusinessKey?: string;\n filedToType?: unknown;\n [key: string]: unknown;\n}\n\n/**\n * One row of the ReminderFiledFor search page — the reminder itself plus the\n * filing that points it at a record.\n */\ninterface ReminderFiledForRow {\n reminder?: Reminder;\n domainObject?: string;\n type?: unknown;\n entityBusinessKey?: string;\n}\n\n/** A condition the widget must state rather than swallow. */\nexport interface ReminderWarning {\n id: string;\n intent: 'warning' | 'error';\n message: string;\n}\n\n/** The tree wire document, narrowed to what reminders read off it. */\nexport interface RemindersTreeWire {\n treeStructure?: Array<{\n id?: string;\n parentId?: string | null;\n properties?: {\n catalogReturnObject?: string;\n associatedInquiryTree?: { apiMethodInstance?: { apiMethodId?: string } };\n };\n }>;\n apiMethodInstance?: { apiMethodId?: string };\n}\n\ninterface PromotedMethod {\n apiMethodId?: string;\n}\n\nexport interface UseInquiryRemindersResult {\n reminders: Reminder[];\n loading: boolean;\n warnings: ReminderWarning[];\n /** True while an acknowledgement round trip is in flight. */\n saving: boolean;\n /** False = only reminders that are due and unacknowledged (the default). */\n showAll: boolean;\n setShowAll: (showAll: boolean) => void;\n /**\n * Write `acknowledged` on these reminders, then refetch. Completing is the\n * card's own action; the reminder split screen re-opens the same write to\n * un-complete one, exactly as the legacy card did.\n */\n setAcknowledged: (\n reminders: Reminder[],\n acknowledged: boolean\n ) => Promise<void>;\n}\n\nexport const useInquiryReminders = (\n tree: RemindersTreeWire | null | undefined\n): UseInquiryRemindersResult => {\n const { t } = useTranslation();\n const user = useUser();\n const { handleErrorSnackbar } = useHandleAxiosSnackbar();\n // ActionProvider self-feed: the promoted-entity catalog the legacy widget\n // read the same two base methods from.\n const actionState = useActionState() as {\n catalogPromotedEntities?: unknown;\n } | null;\n const catalogPromotedEntities = actionState?.catalogPromotedEntities;\n\n const [reminders, setReminders] = useState<Reminder[]>([]);\n const [loading, setLoading] = useState(false);\n const [saving, setSaving] = useState(false);\n const [showAll, setShowAll] = useState(false);\n const [warnings, setWarnings] = useState<ReminderWarning[]>([]);\n\n const searchMethod = useMemo(\n () =>\n getBaseMethod(\n UdpEnums.Udp_Reminder_Filed_For,\n 'unityBaseSearchMethod',\n catalogPromotedEntities\n ) as PromotedMethod | null,\n [catalogPromotedEntities]\n );\n\n const updateMethod = useMemo(\n () =>\n getBaseMethod(\n UdpEnums.Udp_Reminder,\n 'unityBaseUpdateMethod',\n catalogPromotedEntities\n ) as PromotedMethod | null,\n [catalogPromotedEntities]\n );\n\n /** The entities this tree can show — a reminder outside them is not ours. */\n const treeDomains = useMemo(\n () =>\n (tree?.treeStructure ?? [])\n .map((node) => node.properties?.catalogReturnObject)\n .filter((entity): entity is string => !!entity),\n [tree]\n );\n\n const load = useCallback(async () => {\n if (!searchMethod) return;\n setLoading(true);\n\n if (!searchMethod.apiMethodId) {\n setWarnings([\n {\n id: 'searchMethodNotPromoted',\n intent: 'warning',\n message: t('ui.widgets.reminders.searchMethodNotPromoted', {\n defaultValue: 'Search ReminderFiledFor Method Not Promoted'\n })\n }\n ]);\n setReminders([]);\n setLoading(false);\n return;\n }\n\n // Default: unacknowledged AND due (group 1), filed to the System OR to this\n // user (groups 2/3). \"All\" drops the due/acknowledged gate and keeps the\n // filed-to gate. Both bags are the legacy widget's, element for element.\n const filterElements = showAll\n ? [\n {\n searchField: 'Type',\n searchValue: UdpReminderFiledForType.System,\n searchOperator: '=',\n groupId: 2\n },\n {\n searchField: 'Type',\n searchValue: UdpReminderFiledForType.User,\n searchOperator: '=',\n groupId: 3\n },\n {\n searchField: 'Reminder.UnityUserID',\n searchValue: user?.id,\n searchOperator: '=',\n groupId: 3\n }\n ]\n : [\n {\n searchField: 'Reminder.Acknowledged',\n searchValue: false,\n searchOperator: '=',\n groupId: 1\n },\n {\n searchField: 'Reminder.ReminderDate',\n searchValue: new Date(),\n searchOperator: '<=',\n groupId: 1\n },\n {\n searchField: 'Type',\n searchValue: UdpReminderFiledForType.System,\n searchOperator: '=',\n groupId: 2\n },\n {\n searchField: 'Type',\n searchValue: UdpReminderFiledForType.User,\n searchOperator: '=',\n groupId: 3\n },\n {\n searchField: 'Reminder.UnityUserID',\n searchValue: user?.id,\n searchOperator: '=',\n groupId: 3\n }\n ];\n\n const filterGroups = [\n ...(showAll\n ? []\n : [\n {\n groupId: 1,\n logicalSearchOperator: LogicalSearchOperatorEnums.And,\n parentGroupId: null\n }\n ]),\n {\n groupId: 2,\n logicalSearchOperator: LogicalSearchOperatorEnums.Or,\n parentGroupId: null\n },\n {\n groupId: 3,\n logicalSearchOperator: LogicalSearchOperatorEnums.And,\n parentGroupId: 2\n }\n ];\n\n const searchObject = getSearchObject(\n filterElements as never,\n 1,\n 200,\n true,\n LogicalSearchOperatorEnums.And,\n filterGroups as never\n );\n\n // `executeQueryAdHoc` is untyped JS; the response is narrowed once, here.\n const response = (await executeQueryAdHoc(\n { data: searchObject },\n searchMethod.apiMethodId\n ).catch(() => null)) as {\n status?: number;\n data?: { pageList?: ReminderFiledForRow[] };\n } | null;\n\n if (response?.status !== 200) {\n setWarnings([\n {\n id: 'retrieveError',\n intent: 'error',\n message: t('ui.widgets.reminders.retrieveError', {\n defaultValue: 'Could not retrieve reminders'\n })\n }\n ]);\n setReminders([]);\n setLoading(false);\n return;\n }\n\n const rows: Reminder[] = (response.data?.pageList ?? []).map((item) => ({\n ...item.reminder,\n id: item.reminder?.id ?? '',\n domainObject: item.domainObject,\n filedToType: item.type,\n entityBusinessKey: item.entityBusinessKey\n }));\n\n setWarnings([]);\n // A reminder filed against an entity this tree cannot show has nothing to\n // open, so it is not this tree's reminder.\n setReminders(\n treeDomains.length\n ? rows.filter((row) => treeDomains.includes(row.domainObject ?? ''))\n : []\n );\n setLoading(false);\n }, [searchMethod, showAll, user?.id, treeDomains, t]);\n\n useEffect(() => {\n void load();\n }, [load]);\n\n const setAcknowledged = useCallback(\n async (toWrite: Reminder[], acknowledged: boolean) => {\n if (!toWrite.length) return;\n if (!updateMethod?.apiMethodId) {\n // The shared helper is untyped JS whose optional callbacks infer as\n // required; passing them explicitly is the same call the legacy widget\n // made.\n handleErrorSnackbar(\n null,\n t('ui.widgets.reminders.updateMethodNotPromoted', {\n defaultValue: 'Update Reminder Method Not Promoted'\n }),\n undefined,\n undefined\n );\n return;\n }\n setSaving(true);\n await Promise.all(\n toWrite.map((reminder) =>\n executeQueryWithParameters(\n {\n data: {\n requestBody: { ...reminder, acknowledged },\n '{iD}': reminder.id\n }\n },\n updateMethod.apiMethodId\n ).catch((error: unknown) => error)\n )\n );\n setSaving(false);\n await load();\n },\n [updateMeth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AR;AAAAQ,IAAA,MAAA+D;OAAAA,MAAA/D,EAAA;AAAA,QARM+D;;AA/O0B,SAAAxC,MAAAyC,MAAA;AAAA,QA2CZA,KAAIjF,YAAgCC;;AA3CxB,SAAAyC,OAAAwC,QAAA;AAAA,QA4CW,CAAC,CAACA;;AA5Cb,SAAAnB,SAAA;AAAA,QA+JjB;;AA/JiB,SAAAI,OAAAgB,MAAA;AAAA,QAmLyC;EAAA,GACnEA,KAAI5F;EAAST,IACZqG,KAAI5F,UAAaT,MAAjB;EAAuBI,cACbiG,KAAIjG;EAAaE,aAClB+F,KAAI3F;EAAKL,mBACHgG,KAAIhG;EACxB;;AAzL8B,SAAA4F,OAAAK,OAAA;AAAA,QAsOGA"}
1
+ {"version":3,"file":"useInquiryReminders.mjs","names":["useCallback","useEffect","useMemo","useState","useTranslation","useActionState","useUser","useHandleAxiosSnackbar","getSearchObject","isEntityNode","InquiryTree","executeQueryAdHoc","executeQueryWithParameters","getBaseMethod","LogicalSearchOperatorEnums","UdpEnums","UdpReminderFiledForType","Reminder","id","subject","reminderDate","acknowledged","domainObject","entityBusinessKey","filedToType","key","ReminderFiledForRow","reminder","type","ReminderWarning","intent","message","PromotedMethod","apiMethodId","UseInquiryRemindersResult","reminders","loading","warnings","saving","showAll","setShowAll","setAcknowledged","Promise","useInquiryReminders","tree","$","_c","t","user","handleErrorSnackbar","actionState","catalogPromotedEntities","t0","Symbol","for","setReminders","setLoading","setSaving","t1","setWarnings","t2","Udp_Reminder_Filed_For","searchMethod","t3","Udp_Reminder","updateMethod","t4","nodes","filter","map","_temp","_temp2","treeDomains","t5","defaultValue","filterElements","searchField","searchValue","System","searchOperator","groupId","User","Date","filterGroups","logicalSearchOperator","And","parentGroupId","Or","searchObject","response","data","catch","_temp3","status","pageList","rows","_temp4","length","row","includes","load","t6","t7","t8","toWrite","undefined","all","requestBody","_temp5","t9","node","properties","catalogReturnObject","entity","item","error"],"sources":["../../../../../src/UI/widgets/library/InquiryRemindersWidget/useInquiryReminders.ts"],"sourcesContent":["/**\n * The reminders data path, lifted out of `RemindersWidget` UNCHANGED.\n *\n * Every request this hook makes is the request the legacy widget made: the same\n * two promoted base methods off `ActionProvider`'s catalog\n * (`UdpReminderFiledFor.unityBaseSearchMethod` to read,\n * `UdpReminder.unityBaseUpdateMethod` to acknowledge), the same filter\n * elements and groups, the same `getSearchObject(…, 1, 200, true, And, groups)`\n * page, the same `executeQueryAdHoc` / `executeQueryWithParameters` calls, the\n * same `{...item.reminder, domainObject, filedToType, entityBusinessKey}` row\n * shape, and the same \"keep only reminders whose domain is in this tree\" filter.\n * No new endpoint is introduced and nothing is cached differently.\n *\n * It lives here rather than in the legacy widget because the legacy widget is\n * still mounted by v1 JSON explore pages and is deliberately left untouched.\n *\n * What is NOT carried over is bookkeeping, not data: sorting is derived in the\n * component from one direction flag instead of being written back into state on\n * every fetch, and a response loop that only ever `console.warn`ed is dropped.\n */\nimport { useCallback, useEffect, useMemo, useState } from 'react';\nimport { useTranslation } from 'react-i18next';\nimport { useActionState } from '../../../../hooks/useActions';\nimport { useUser } from '../../../../utilities/auth/useUser';\nimport { useHandleAxiosSnackbar } from '../../../../utilities/apiHelpers';\nimport { getSearchObject } from '../../../../utilities/search/SearchUtilities';\nimport {\n isEntityNode,\n type InquiryTree\n} from '../../../../domain/inquiryTree';\nimport {\n executeQueryAdHoc,\n executeQueryWithParameters,\n getBaseMethod\n} from '../../../../udp/utilities/methodUtils';\nimport {\n LogicalSearchOperatorEnums,\n UdpEnums,\n UdpReminderFiledForType\n} from '../../../../enums/unitySystemEnums';\n\n/** One reminder row, as the ReminderFiledFor search returns it. */\nexport interface Reminder {\n id: string;\n subject?: string;\n reminderDate?: string;\n acknowledged?: boolean;\n /** The catalog entity this reminder is filed against. */\n domainObject?: string;\n /** `\"<entity>|<key1,key2,…>\"` — the record's identifier values. */\n entityBusinessKey?: string;\n filedToType?: unknown;\n [key: string]: unknown;\n}\n\n/**\n * One row of the ReminderFiledFor search page — the reminder itself plus the\n * filing that points it at a record.\n */\ninterface ReminderFiledForRow {\n reminder?: Reminder;\n domainObject?: string;\n type?: unknown;\n entityBusinessKey?: string;\n}\n\n/** A condition the widget must state rather than swallow. */\nexport interface ReminderWarning {\n id: string;\n intent: 'warning' | 'error';\n message: string;\n}\n\ninterface PromotedMethod {\n apiMethodId?: string;\n}\n\nexport interface UseInquiryRemindersResult {\n reminders: Reminder[];\n loading: boolean;\n warnings: ReminderWarning[];\n /** True while an acknowledgement round trip is in flight. */\n saving: boolean;\n /** False = only reminders that are due and unacknowledged (the default). */\n showAll: boolean;\n setShowAll: (showAll: boolean) => void;\n /**\n * Write `acknowledged` on these reminders, then refetch. Completing is the\n * card's own action; the reminder split screen re-opens the same write to\n * un-complete one, exactly as the legacy card did.\n */\n setAcknowledged: (\n reminders: Reminder[],\n acknowledged: boolean\n ) => Promise<void>;\n}\n\nexport const useInquiryReminders = (\n tree: InquiryTree | null | undefined\n): UseInquiryRemindersResult => {\n const { t } = useTranslation();\n const user = useUser();\n const { handleErrorSnackbar } = useHandleAxiosSnackbar();\n // ActionProvider self-feed: the promoted-entity catalog the legacy widget\n // read the same two base methods from.\n const actionState = useActionState() as {\n catalogPromotedEntities?: unknown;\n } | null;\n const catalogPromotedEntities = actionState?.catalogPromotedEntities;\n\n const [reminders, setReminders] = useState<Reminder[]>([]);\n const [loading, setLoading] = useState(false);\n const [saving, setSaving] = useState(false);\n const [showAll, setShowAll] = useState(false);\n const [warnings, setWarnings] = useState<ReminderWarning[]>([]);\n\n const searchMethod = useMemo(\n () =>\n getBaseMethod(\n UdpEnums.Udp_Reminder_Filed_For,\n 'unityBaseSearchMethod',\n catalogPromotedEntities\n ) as PromotedMethod | null,\n [catalogPromotedEntities]\n );\n\n const updateMethod = useMemo(\n () =>\n getBaseMethod(\n UdpEnums.Udp_Reminder,\n 'unityBaseUpdateMethod',\n catalogPromotedEntities\n ) as PromotedMethod | null,\n [catalogPromotedEntities]\n );\n\n /** The entities this tree can show — a reminder outside them is not ours. */\n const treeDomains = useMemo(\n () =>\n (tree?.nodes ?? [])\n .filter(isEntityNode)\n .map((node) => node.properties.catalogReturnObject)\n .filter((entity): entity is string => !!entity),\n [tree]\n );\n\n const load = useCallback(async () => {\n if (!searchMethod) return;\n setLoading(true);\n\n if (!searchMethod.apiMethodId) {\n setWarnings([\n {\n id: 'searchMethodNotPromoted',\n intent: 'warning',\n message: t('ui.widgets.reminders.searchMethodNotPromoted', {\n defaultValue: 'Search ReminderFiledFor Method Not Promoted'\n })\n }\n ]);\n setReminders([]);\n setLoading(false);\n return;\n }\n\n // Default: unacknowledged AND due (group 1), filed to the System OR to this\n // user (groups 2/3). \"All\" drops the due/acknowledged gate and keeps the\n // filed-to gate. Both bags are the legacy widget's, element for element.\n const filterElements = showAll\n ? [\n {\n searchField: 'Type',\n searchValue: UdpReminderFiledForType.System,\n searchOperator: '=',\n groupId: 2\n },\n {\n searchField: 'Type',\n searchValue: UdpReminderFiledForType.User,\n searchOperator: '=',\n groupId: 3\n },\n {\n searchField: 'Reminder.UnityUserID',\n searchValue: user?.id,\n searchOperator: '=',\n groupId: 3\n }\n ]\n : [\n {\n searchField: 'Reminder.Acknowledged',\n searchValue: false,\n searchOperator: '=',\n groupId: 1\n },\n {\n searchField: 'Reminder.ReminderDate',\n searchValue: new Date(),\n searchOperator: '<=',\n groupId: 1\n },\n {\n searchField: 'Type',\n searchValue: UdpReminderFiledForType.System,\n searchOperator: '=',\n groupId: 2\n },\n {\n searchField: 'Type',\n searchValue: UdpReminderFiledForType.User,\n searchOperator: '=',\n groupId: 3\n },\n {\n searchField: 'Reminder.UnityUserID',\n searchValue: user?.id,\n searchOperator: '=',\n groupId: 3\n }\n ];\n\n const filterGroups = [\n ...(showAll\n ? []\n : [\n {\n groupId: 1,\n logicalSearchOperator: LogicalSearchOperatorEnums.And,\n parentGroupId: null\n }\n ]),\n {\n groupId: 2,\n logicalSearchOperator: LogicalSearchOperatorEnums.Or,\n parentGroupId: null\n },\n {\n groupId: 3,\n logicalSearchOperator: LogicalSearchOperatorEnums.And,\n parentGroupId: 2\n }\n ];\n\n const searchObject = getSearchObject(\n filterElements as never,\n 1,\n 200,\n true,\n LogicalSearchOperatorEnums.And,\n filterGroups as never\n );\n\n // `executeQueryAdHoc` is untyped JS; the response is narrowed once, here.\n const response = (await executeQueryAdHoc(\n { data: searchObject },\n searchMethod.apiMethodId\n ).catch(() => null)) as {\n status?: number;\n data?: { pageList?: ReminderFiledForRow[] };\n } | null;\n\n if (response?.status !== 200) {\n setWarnings([\n {\n id: 'retrieveError',\n intent: 'error',\n message: t('ui.widgets.reminders.retrieveError', {\n defaultValue: 'Could not retrieve reminders'\n })\n }\n ]);\n setReminders([]);\n setLoading(false);\n return;\n }\n\n const rows: Reminder[] = (response.data?.pageList ?? []).map((item) => ({\n ...item.reminder,\n id: item.reminder?.id ?? '',\n domainObject: item.domainObject,\n filedToType: item.type,\n entityBusinessKey: item.entityBusinessKey\n }));\n\n setWarnings([]);\n // A reminder filed against an entity this tree cannot show has nothing to\n // open, so it is not this tree's reminder.\n setReminders(\n treeDomains.length\n ? rows.filter((row) => treeDomains.includes(row.domainObject ?? ''))\n : []\n );\n setLoading(false);\n }, [searchMethod, showAll, user?.id, treeDomains, t]);\n\n useEffect(() => {\n void load();\n }, [load]);\n\n const setAcknowledged = useCallback(\n async (toWrite: Reminder[], acknowledged: boolean) => {\n if (!toWrite.length) return;\n if (!updateMethod?.apiMethodId) {\n // The shared helper is untyped JS whose optional callbacks infer as\n // required; passing them explicitly is the same call the legacy widget\n // made.\n handleErrorSnackbar(\n null,\n t('ui.widgets.reminders.updateMethodNotPromoted', {\n defaultValue: 'Update Reminder Method Not Promoted'\n }),\n undefined,\n undefined\n );\n return;\n }\n setSaving(true);\n await Promise.all(\n toWrite.map((reminder) =>\n executeQueryWithParameters(\n {\n data: {\n requestBody: { ...reminder, acknowledged },\n '{iD}': reminder.id\n }\n },\n updateMethod.apiMethodId\n ).catch((error: unknown) => error)\n )\n );\n setSaving(false);\n await load();\n },\n [updateMethod, handleErrorSnackbar, t, load]\n );\n\n return {\n reminders,\n loading,\n warnings,\n saving,\n showAll,\n setShowAll,\n setAcknowledged\n };\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAiGA,MAAa2C,uBAAsBC,SAAA;CAAA,MAAAC,IAAAC,EAAA,GAAA;CAGjC,MAAA,EAAAC,MAAc3C,gBAAgB;CAC9B,MAAA4C,OAAa1C,SAAS;CACtB,MAAA,EAAA2C,wBAAgC1C,wBAAwB;CAMxD,MAAA4C,0BAHoB9C,gBAAgB,EAGO8C;CAA0B,IAAAC;AAAA,KAAAP,EAAA,OAAAQ,OAAAC,IAAA,4BAAA,EAAA;AAEdF,OAAA,EAAE;AAAAP,IAAA,KAAAO;OAAAA,MAAAP,EAAA;CAAzD,MAAA,CAAAV,WAAAoB,gBAAkCpD,SAAqBiD,GAAG;CAC1D,MAAA,CAAAhB,SAAAoB,cAA8BrD,SAAS,MAAM;CAC7C,MAAA,CAAAmC,QAAAmB,aAA4BtD,SAAS,MAAM;CAC3C,MAAA,CAAAoC,SAAAC,cAA8BrC,SAAS,MAAM;CAAC,IAAAuD;AAAA,KAAAb,EAAA,OAAAQ,OAAAC,IAAA,4BAAA,EAAA;AACcI,OAAA,EAAE;AAAAb,IAAA,KAAAa;OAAAA,MAAAb,EAAA;CAA9D,MAAA,CAAAR,UAAAsB,eAAgCxD,SAA4BuD,GAAG;CAAC,IAAAE;AAAA,KAAAf,EAAA,OAAAM,yBAAA;AAI5DS,OAAA/C,cACEE,SAAQ8C,wBACR,yBACAV,wBACD;AAAAN,IAAA,KAAAM;AAAAN,IAAA,KAAAe;OAAAA,MAAAf,EAAA;CANL,MAAAiB,eAEIF;CAMF,IAAAG;AAAA,KAAAlB,EAAA,OAAAM,yBAAA;AAIEY,OAAAlD,cACEE,SAAQiD,cACR,yBACAb,wBACD;AAAAN,IAAA,KAAAM;AAAAN,IAAA,KAAAkB;OAAAA,MAAAlB,EAAA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;AAAAI,IAAA,MAAAN;AAAAM,IAAA,MAAAR;AAAAQ,IAAA,MAAAgE;OAAAA,MAAAhE,EAAA;AAAA,QARMgE;;AAhP0B,SAAAvC,MAAAwC,MAAA;AAAA,QA4CZA,KAAIC,WAAWC;;AA5CH,SAAAzC,OAAA0C,QAAA;AAAA,QA6CW,CAAC,CAACA;;AA7Cb,SAAArB,SAAA;AAAA,QAgKjB;;AAhKiB,SAAAI,OAAAkB,MAAA;AAAA,QAoLyC;EAAA,GACnEA,KAAIvF;EAAST,IACZgG,KAAIvF,UAAaT,MAAjB;EAAuBI,cACb4F,KAAI5F;EAAaE,aAClB0F,KAAItF;EAAKL,mBACH2F,KAAI3F;EACxB;;AA1L8B,SAAAqF,OAAAO,OAAA;AAAA,QAuOGA"}
@@ -1,6 +1,4 @@
1
1
  export * from './types';
2
2
  export * from './panelOperations';
3
3
  export * from './panelActionFields';
4
- export * from './PanelActionForm';
5
- export * from './PanelEditor';
6
4
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/actionPanels/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC;AACxB,cAAc,mBAAmB,CAAC;AAClC,cAAc,qBAAqB,CAAC;AACpC,cAAc,mBAAmB,CAAC;AAClC,cAAc,eAAe,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/actionPanels/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC;AACxB,cAAc,mBAAmB,CAAC;AAClC,cAAc,qBAAqB,CAAC"}
@@ -1,6 +1,4 @@
1
1
  export * from './types';
2
2
  export * from './panelOperations';
3
3
  export * from './panelActionFields';
4
- export * from './PanelActionForm';
5
- export * from './PanelEditor';
6
4
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/actionPanels/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC;AACxB,cAAc,mBAAmB,CAAC;AAClC,cAAc,qBAAqB,CAAC;AACpC,cAAc,mBAAmB,CAAC;AAClC,cAAc,eAAe,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/actionPanels/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC;AACxB,cAAc,mBAAmB,CAAC;AAClC,cAAc,qBAAqB,CAAC"}
@@ -1,37 +1,21 @@
1
1
  /**
2
2
  * The individual FIELDS of a panel button, each one a controlled primitive.
3
3
  *
4
- * `PanelActionForm` used to hold all of this inline, which made it the only way
5
- * to render any of it: a host that wanted the same icon picker and the same
6
- * flag checkboxes in a DIFFERENT layout had to copy the JSX, and a copy is how
7
- * two surfaces editing one entity drift apart. Tree Builder's add-button drawer
8
- * asks the same questions in a different ORDER (identity, then what it does,
9
- * then that answer's setup, then where it goes) — same controls, same wire
10
- * contracts, one layout each.
11
- *
12
- * So the fields live here and `PanelActionForm` re-composes them into exactly
13
- * the form it always rendered. Nothing is new: every control below is the code
14
- * that was in that file, moved, with its reasoning comment attached to it.
4
+ * Hosts compose them in their own layout — Tree Builder's button drawer asks
5
+ * identity, then what it does, then that answer's setup, then where it goes —
6
+ * so every surface editing a button shares the same controls and wire
7
+ * contracts instead of copying JSX.
15
8
  *
16
9
  * Each primitive is controlled the same way the form is — `value` is the whole
17
10
  * `PanelButton`, `onChange` reports the whole next one — so a host can put them
18
11
  * anywhere without learning a per-field contract. The wire rules stay in
19
- * `panelOperations` (`valueKindOf`, `setButtonApiMethodId`, `setButtonPageId`,
20
- * `setButtonWorkflowId`, `buttonPageId`, `pageOptionId`, `changeActionType`);
12
+ * `panelOperations` (`valueKindOf`, `setButtonValue`, `setButtonPageId`,
13
+ * `findButtonPage`, `pageOptionId`, `changeActionType`);
21
14
  * nothing here re-derives where a page id is stored.
22
15
  */
23
16
  import React from 'react';
24
17
  import type { PanelButton } from '../domain/actionPanel/types';
25
18
  import type { ApiMethodOption, PageOption, WorkflowOption } from './types';
26
- /**
27
- * Two columns once the surface is wide enough; one in a narrow drawer. Exported
28
- * so a host laying the fields out itself lands on the SAME grid the form uses —
29
- * two surfaces editing one button must line their fields up identically.
30
- */
31
- export declare const PANEL_FIELD_COLUMNS: {
32
- 0: number;
33
- 480: number;
34
- };
35
19
  /** What every field primitive takes: the whole button, in and out. */
36
20
  export interface PanelButtonFieldProps {
37
21
  value: PanelButton;
@@ -40,8 +24,8 @@ export interface PanelButtonFieldProps {
40
24
  }
41
25
  /**
42
26
  * THE SAME CONTROL the Appearance tab uses to choose an icon, trigger included:
43
- * a square icon TILE showing the current icon, which opens the `UdpIconGrid`
44
- * palette in a popover. One click on the icon itself; no field, no name text,
27
+ * the library icon picker in its popover form — a square icon TILE showing the
28
+ * current icon, which opens the icon palette in a popover. One click on the icon itself; no field, no name text,
45
29
  * no chevron.
46
30
  *
47
31
  * Both halves of that matter and only the second was fixed the first time. It
@@ -73,8 +57,7 @@ export declare const PanelButtonLabelField: ({ value, onChange, disabled }: Pane
73
57
  * The action type as a dropdown — the icon dropdown that IS the type question on
74
58
  * every surface editing a button (thirteen options with their own follow-up
75
59
  * fields is the form idiom, not a tile grid). A host that asks the question some
76
- * other way renders no type row at all (`PanelActionForm`'s
77
- * `actionTypeField='hidden'`).
60
+ * other way simply doesn't render this field.
78
61
  */
79
62
  export declare const PanelButtonActionTypeField: ({ value, onChange, disabled, unanswered }: PanelButtonFieldProps & {
80
63
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"panelActionFields.d.ts","sourceRoot":"","sources":["../../src/actionPanels/panelActionFields.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,OAAO,KAA4B,MAAM,OAAO,CAAC;AAiBjD,OAAO,KAAK,EAGV,WAAW,EACZ,MAAM,6BAA6B,CAAC;AAUrC,OAAO,KAAK,EAAE,eAAe,EAAE,UAAU,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAE3E;;;;GAIG;AACH,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AE,UAAU,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAE3E,sEAAsE;AACtE,MAAM,WAAW,qBAAqB;IACpC,KAAK,EAAE,WAAW,CAAC;IACnB,QAAQ,EAAE,CAAC,IAAI,EAAE,WAAW,KAAK,IAAI,CAAC;IACtC,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAwBD;;;;;;;;;;;;;;;;GAgBG;AACH,eAAO,MAAM,oBAAoB;IAM/B;;;;;;;;OAQG;;uBAwBJ,CAAC;AAEF,yEAAuE;AACvE,eAAO,MAAM,qBAAqB,6EAejC,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,0BAA0B;IAMrC;;;;;;;;;;OAUG;;uBAkCJ,CAAC;AAEF,MAAM,WAAW,2BAA4B,SAAQ,qBAAqB;IACxE,8DAA8D;IAC9D,UAAU,CAAC,EAAE,eAAe,EAAE,CAAC;IAC/B,yDAAyD;IACzD,KAAK,CAAC,EAAE,UAAU,EAAE,CAAC;IACrB,+CAA+C;IAC/C,SAAS,CAAC,EAAE,cAAc,EAAE,CAAC;CAC9B;AAED;;;;;;;;;;GAUG;AACH,eAAO,MAAM,sBAAsB,iHAyFlC,CAAC;AAEF,MAAM,WAAW,0BAA2B,SAAQ,qBAAqB;IACvE,6DAA6D;IAC7D,kBAAkB,CAAC,EAAE,MAAM,EAAE,CAAC;CAC/B;AAED;;;;;;;;;;GAUG;AACH,eAAO,MAAM,qBAAqB,sGAsDjC,CAAC;AAEF;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,qBAAqB;IAMhC;;;;;;OAMG;;uBA8CJ,CAAC"}
@@ -1,52 +1,35 @@
1
1
  /**
2
2
  * The individual FIELDS of a panel button, each one a controlled primitive.
3
3
  *
4
- * `PanelActionForm` used to hold all of this inline, which made it the only way
5
- * to render any of it: a host that wanted the same icon picker and the same
6
- * flag checkboxes in a DIFFERENT layout had to copy the JSX, and a copy is how
7
- * two surfaces editing one entity drift apart. Tree Builder's add-button drawer
8
- * asks the same questions in a different ORDER (identity, then what it does,
9
- * then that answer's setup, then where it goes) — same controls, same wire
10
- * contracts, one layout each.
11
- *
12
- * So the fields live here and `PanelActionForm` re-composes them into exactly
13
- * the form it always rendered. Nothing is new: every control below is the code
14
- * that was in that file, moved, with its reasoning comment attached to it.
4
+ * Hosts compose them in their own layout — Tree Builder's button drawer asks
5
+ * identity, then what it does, then that answer's setup, then where it goes —
6
+ * so every surface editing a button shares the same controls and wire
7
+ * contracts instead of copying JSX.
15
8
  *
16
9
  * Each primitive is controlled the same way the form is — `value` is the whole
17
10
  * `PanelButton`, `onChange` reports the whole next one — so a host can put them
18
11
  * anywhere without learning a per-field contract. The wire rules stay in
19
- * `panelOperations` (`valueKindOf`, `setButtonApiMethodId`, `setButtonPageId`,
20
- * `setButtonWorkflowId`, `buttonPageId`, `pageOptionId`, `changeActionType`);
12
+ * `panelOperations` (`valueKindOf`, `setButtonValue`, `setButtonPageId`,
13
+ * `findButtonPage`, `pageOptionId`, `changeActionType`);
21
14
  * nothing here re-derives where a page id is stored.
22
15
  */
23
- import React, { useMemo, useState } from 'react';
16
+ import React, { useMemo } from 'react';
24
17
  import { UdpAutocomplete } from '../UI/fluent-web-components/UdpAutocomplete';
25
- import { UdpIconButton } from '../UI/fluent-web-components/UdpIconButton';
18
+ import { UdpIconPicker } from '../UI/fluent-web-components/UdpIconPicker';
26
19
  import { UdpCheckbox } from '../UI/fluent-web-components/UdpCheckbox';
27
20
  import { UdpDropdown } from '../UI/fluent-web-components/UdpDropdown';
28
21
  import { UdpFlexbox } from '../UI/fluent-web-components/UdpFlexbox';
29
- import { UdpIconGrid } from '../UI/fluent-web-components/UdpIconGrid';
30
- import { UdpPopover } from '../UI/fluent-web-components/UdpPopover';
31
- import styles from './panelActionFields.module.css';
32
- import { UdpSearchInput } from '../UI/fluent-web-components/UdpSearchInput';
33
22
  import { UdpText } from '../UI/fluent-web-components/UdpText';
34
23
  import { UdpTextInput } from '../UI/fluent-web-components/UdpTextInput';
35
24
  import { ACTION_TYPE_META, actionTypeOptions, resolvePanelButtonIcon } from '../domain/actionPanel/actionTypeMeta';
36
- import { buttonPageId, changeActionType, pageOptionId, setButtonApiMethodId, setButtonPageId, setButtonWorkflowId, valueKindOf } from './panelOperations';
37
- /**
38
- * Two columns once the surface is wide enough; one in a narrow drawer. Exported
39
- * so a host laying the fields out itself lands on the SAME grid the form uses —
40
- * two surfaces editing one button must line their fields up identically.
41
- */
42
- export const PANEL_FIELD_COLUMNS = { 0: 1, 480: 2 };
25
+ import { changeActionType, findButtonPage, pageOptionId, setButtonPageId, setButtonValue, valueKindOf } from './panelOperations';
43
26
  /** Both pickers emit the option object by default, or `''` when cleared. */
44
27
  const readOption = (raw) => raw === '' || raw === null || raw === undefined ? null : raw;
45
28
  const patchAction = (value, onChange, patch) => onChange(Object.assign(Object.assign({}, value), { action: Object.assign(Object.assign({}, value.action), patch) }));
46
29
  /**
47
30
  * THE SAME CONTROL the Appearance tab uses to choose an icon, trigger included:
48
- * a square icon TILE showing the current icon, which opens the `UdpIconGrid`
49
- * palette in a popover. One click on the icon itself; no field, no name text,
31
+ * the library icon picker in its popover form — a square icon TILE showing the
32
+ * current icon, which opens the icon palette in a popover. One click on the icon itself; no field, no name text,
50
33
  * no chevron.
51
34
  *
52
35
  * Both halves of that matter and only the second was fixed the first time. It
@@ -61,20 +44,14 @@ const patchAction = (value, onChange, patch) => onChange(Object.assign(Object.as
61
44
  * through `resolvePanelButtonIcon` on the tile — they just cannot be picked.
62
45
  */
63
46
  export const PanelButtonIconField = ({ value, onChange, disabled = false, hideLabel = false }) => {
64
- var _a, _b;
65
- const [iconPickerOpen, setIconPickerOpen] = useState(false);
66
- const [iconSearch, setIconSearch] = useState('');
67
47
  // The registry name the tile draws — never the legacy MDL2 `name` a 26.x
68
- // dual-write stores ("CirclePlusIcon") — spoken as words.
48
+ // dual-write stores ("CirclePlusIcon").
69
49
  const iconName = resolvePanelButtonIcon(value);
70
- return (React.createElement(UdpFlexbox, { direction: "column", gap: "xxs", align: "flex-start" }, !hideLabel && React.createElement(UdpText, { variant: "body1" }, "Icon"), React.createElement(UdpPopover, { open: iconPickerOpen, toggleOnTriggerClick: false, position: "bottom-start", size: "large", onPopoverClose: () => setIconPickerOpen(false) }, React.createElement("span", { slot: "trigger", className: styles.iconTrigger, onClick: () => !disabled && setIconPickerOpen((open) => !open) }, React.createElement(UdpIconButton, { appearance: "outline", shape: "rounded", size: "medium", disabled: disabled, iconName: iconName, ariaLabel: ((_a = value.icon) === null || _a === void 0 ? void 0 : _a.name) || ((_b = value.icon) === null || _b === void 0 ? void 0 : _b.fluentName)
71
- ? `Icon: ${iconName.replace(/-/g, ' ')}. Change`
72
- : 'Choose an icon' })), React.createElement("div", { slot: "content", className: styles.iconPopover }, React.createElement(UdpSearchInput, { placeholder: "Search icons", controlSize: "small", value: iconSearch, includeErrorPadding: false, onChange: (event) => setIconSearch(event.target.value) }), React.createElement("div", { className: styles.iconGridScroll }, React.createElement(UdpIconGrid, { compact: true, searchKey: iconSearch, onIconClick: (event) => {
73
- if (typeof event.detail !== 'string')
50
+ return (React.createElement(UdpIconPicker, { presentation: "popover", label: hideLabel ? undefined : 'Icon', value: iconName, size: "md", disabled: disabled, includeErrorPadding: false, onChange: (event) => {
51
+ if (!event.target.value)
74
52
  return;
75
- onChange(Object.assign(Object.assign({}, value), { icon: Object.assign(Object.assign({}, value.icon), { name: event.detail, type: 'fluent' }) }));
76
- setIconPickerOpen(false);
77
- } }))))));
53
+ onChange(Object.assign(Object.assign({}, value), { icon: Object.assign(Object.assign({}, value.icon), { name: event.target.value, type: 'fluent' }) }));
54
+ } }));
78
55
  };
79
56
  /** The button's label — also the action name on the wire. Required. */
80
57
  export const PanelButtonLabelField = ({ value, onChange, disabled = false }) => (React.createElement(UdpTextInput, { label: "Label", required: true, value: value.action.name, disabled: disabled, includeErrorPadding: false, onChange: (event) => patchAction(value, onChange, { name: event.target.value }) }));
@@ -82,8 +59,7 @@ export const PanelButtonLabelField = ({ value, onChange, disabled = false }) =>
82
59
  * The action type as a dropdown — the icon dropdown that IS the type question on
83
60
  * every surface editing a button (thirteen options with their own follow-up
84
61
  * fields is the form idiom, not a tile grid). A host that asks the question some
85
- * other way renders no type row at all (`PanelActionForm`'s
86
- * `actionTypeField='hidden'`).
62
+ * other way simply doesn't render this field.
87
63
  */
88
64
  export const PanelButtonActionTypeField = ({ value, onChange, disabled = false, unanswered = false }) => {
89
65
  var _a;
@@ -94,7 +70,7 @@ export const PanelButtonActionTypeField = ({ value, onChange, disabled = false,
94
70
  })), []);
95
71
  const selectedType = unanswered
96
72
  ? null
97
- : ((_a = typeOptions.find((option) => option.value === value.action.actionTypeId)) !== null && _a !== void 0 ? _a : null);
73
+ : (_a = typeOptions.find((option) => option.value === value.action.actionTypeId)) !== null && _a !== void 0 ? _a : null;
98
74
  return (React.createElement(UdpDropdown, { label: "Action type",
99
75
  /* Only in the unanswered state, so the answered field's markup is
100
76
  untouched: with a value selected a placeholder never shows anyway. */
@@ -120,23 +96,23 @@ export const PanelButtonValueFields = ({ value, onChange, apiMethods = [], pages
120
96
  const kind = valueKindOf(value);
121
97
  const meta = ACTION_TYPE_META[value.action.actionTypeId];
122
98
  const selectedApiMethod = (_a = apiMethods.find((method) => method.apiMethodId === value.action.value)) !== null && _a !== void 0 ? _a : null;
123
- const currentPageId = buttonPageId(value);
124
- const selectedPage = (_b = pages.find((page) => pageOptionId(page) === currentPageId || page.pageId === currentPageId)) !== null && _b !== void 0 ? _b : null;
99
+ const selectedPage = (_b = findButtonPage(pages, value)) !== null && _b !== void 0 ? _b : null;
125
100
  const apiMethodField = (React.createElement(UdpAutocomplete, { label: "API method", placeholder: "Search API methods", options: apiMethods, optionLabel: "name", optionValue: "apiMethodId", value: selectedApiMethod, disabled: disabled, onChange: (event) => {
126
101
  var _a;
127
102
  const option = readOption(event.target.value);
128
- onChange(setButtonApiMethodId(value, (_a = option === null || option === void 0 ? void 0 : option.apiMethodId) !== null && _a !== void 0 ? _a : null));
103
+ onChange(setButtonValue(value, (_a = option === null || option === void 0 ? void 0 : option.apiMethodId) !== null && _a !== void 0 ? _a : null));
129
104
  } }));
130
105
  const pageField = (React.createElement(UdpAutocomplete, { label: "Page", placeholder: "Search pages", options: pages, optionLabel: "name", optionValue: "pageId", value: selectedPage, disabled: disabled, onChange: (event) => {
131
106
  const option = readOption(event.target.value);
132
107
  onChange(setButtonPageId(value, option ? pageOptionId(option) : null));
133
108
  } }));
134
- const textField = (React.createElement(UdpTextInput, { label: (_c = meta === null || meta === void 0 ? void 0 : meta.valueLabel) !== null && _c !== void 0 ? _c : 'Value', value: (_d = value.action.value) !== null && _d !== void 0 ? _d : '', disabled: disabled, onChange: (event) => patchAction(value, onChange, { value: event.target.value }) }));
109
+ const textField = (React.createElement(UdpTextInput, { label: (_c = meta === null || meta === void 0 ? void 0 : meta.valueLabel) !== null && _c !== void 0 ? _c : 'Value', value: (_d = value.action.value) !== null && _d !== void 0 ? _d : '', disabled: disabled, onChange: (event) => onChange(setButtonValue(value, event.target.value)) }));
135
110
  const selectedWorkflow = (_e = workflows.find((workflow) => workflow.workflowId === value.action.value)) !== null && _e !== void 0 ? _e : null;
136
- const workflowField = (React.createElement(UdpAutocomplete, { label: "Workflow", placeholder: "Search workflows", options: workflows, optionLabel: (workflow) => workflow.name || `Unnamed workflow (${String(workflow.workflowId).slice(0, 8)})`, optionValue: "workflowId", value: selectedWorkflow, disabled: disabled, onChange: (event) => {
111
+ const workflowField = (React.createElement(UdpAutocomplete, { label: "Workflow", placeholder: "Search workflows", options: workflows, optionLabel: (workflow) => workflow.name ||
112
+ `Unnamed workflow (${String(workflow.workflowId).slice(0, 8)})`, optionValue: "workflowId", value: selectedWorkflow, disabled: disabled, onChange: (event) => {
137
113
  var _a;
138
114
  const option = readOption(event.target.value);
139
- onChange(setButtonWorkflowId(value, (_a = option === null || option === void 0 ? void 0 : option.workflowId) !== null && _a !== void 0 ? _a : null));
115
+ onChange(setButtonValue(value, (_a = option === null || option === void 0 ? void 0 : option.workflowId) !== null && _a !== void 0 ? _a : null));
140
116
  } }));
141
117
  return (React.createElement(React.Fragment, null, (kind === 'api' || kind === 'apiAndPage') && apiMethodField, (kind === 'page' || kind === 'apiAndPage') && pageField, kind === 'text' && textField, kind === 'workflow' && workflowField));
142
118
  };
@@ -158,20 +134,19 @@ export const PanelButtonGroupField = ({ value, onChange, existingGroupNames = []
158
134
  label: name
159
135
  })), [existingGroupNames]);
160
136
  const selectedGroup = value.groupName
161
- ? ((_a = groupChoices.find((option) => option.value === value.groupName)) !== null && _a !== void 0 ? _a : {
137
+ ? (_a = groupChoices.find((option) => option.value === value.groupName)) !== null && _a !== void 0 ? _a : {
162
138
  value: value.groupName,
163
139
  label: value.groupName
164
- })
165
- : null;
166
- return groupChoices.length > 0 ? (React.createElement(UdpAutocomplete, { label: "Group", placeholder: "Ungrouped", popupHint: "Buttons sharing a group render as one section", freeForm: true, options: groupChoices, value: selectedGroup, disabled: disabled, includeErrorPadding: false, onChange: (event) => {
140
+ } : null;
141
+ return groupChoices.length > 0 ? (React.createElement(UdpAutocomplete, { label: "Group", placeholder: "Ungrouped", popupHint: "Buttons sharing a group render as one menu button in the record header, named after the group", freeForm: true, options: groupChoices, value: selectedGroup, disabled: disabled, includeErrorPadding: false, onChange: (event) => {
167
142
  var _a;
168
143
  var _b;
169
144
  const raw = event.target.value;
170
145
  const name = typeof raw === 'string'
171
146
  ? raw
172
- : ((_b = (_a = readOption(raw)) === null || _a === void 0 ? void 0 : _a.value) !== null && _b !== void 0 ? _b : '');
147
+ : (_b = (_a = readOption(raw)) === null || _a === void 0 ? void 0 : _a.value) !== null && _b !== void 0 ? _b : '';
173
148
  onChange(Object.assign(Object.assign({}, value), { groupName: name.trim() ? name.trim() : null }));
174
- } })) : (React.createElement(UdpTextInput, { label: "Group", placeholder: "Ungrouped", popupHint: "Buttons sharing a group render as one section", value: (_b = value.groupName) !== null && _b !== void 0 ? _b : '', disabled: disabled, includeErrorPadding: false, onChange: (event) => {
149
+ } })) : (React.createElement(UdpTextInput, { label: "Group", placeholder: "Ungrouped", popupHint: "Buttons sharing a group render as one menu button in the record header, named after the group", value: (_b = value.groupName) !== null && _b !== void 0 ? _b : '', disabled: disabled, includeErrorPadding: false, onChange: (event) => {
175
150
  const name = event.target.value;
176
151
  onChange(Object.assign(Object.assign({}, value), { groupName: name.trim() ? name.trim() : null }));
177
152
  } }));
@@ -192,6 +167,8 @@ export const PanelButtonFlagFields = ({ value, onChange, disabled = false, showR
192
167
  var _a;
193
168
  var _b;
194
169
  const ruleCount = (_b = (_a = value.action.rules) === null || _a === void 0 ? void 0 : _a.length) !== null && _b !== void 0 ? _b : 0;
195
- return (React.createElement(UdpFlexbox, { direction: "row", gap: "lg", align: "center", wrap: "wrap" }, React.createElement(UdpCheckbox, { label: "Primary", checked: value.isPrimary, disabled: disabled, includeErrorPadding: false, onChange: (event) => onChange(Object.assign(Object.assign({}, value), { isPrimary: Boolean(event.target.checked) })) }), React.createElement(UdpCheckbox, { label: "Enabled", checked: value.enabled, disabled: disabled, includeErrorPadding: false, onChange: (event) => onChange(Object.assign(Object.assign({}, value), { enabled: Boolean(event.target.checked) })) }), React.createElement(UdpCheckbox, { label: "Hidden", checked: value.hideAction, disabled: disabled, includeErrorPadding: false, onChange: (event) => onChange(Object.assign(Object.assign({}, value), { hideAction: Boolean(event.target.checked) })) }), showRuleCount && ruleCount > 0 && (React.createElement(UdpText, { variant: "caption1", muted: true }, ruleCount === 1 ? '1 visibility rule' : `${ruleCount} visibility rules`))));
170
+ return (React.createElement(UdpFlexbox, { direction: "row", gap: "lg", align: "center", wrap: "wrap" }, React.createElement(UdpCheckbox, { label: "Primary", checked: value.isPrimary, disabled: disabled, includeErrorPadding: false, onChange: (event) => onChange(Object.assign(Object.assign({}, value), { isPrimary: Boolean(event.target.checked) })) }), React.createElement(UdpCheckbox, { label: "Enabled", checked: value.enabled, disabled: disabled, includeErrorPadding: false, onChange: (event) => onChange(Object.assign(Object.assign({}, value), { enabled: Boolean(event.target.checked) })) }), React.createElement(UdpCheckbox, { label: "Hidden", checked: value.hideAction, disabled: disabled, includeErrorPadding: false, onChange: (event) => onChange(Object.assign(Object.assign({}, value), { hideAction: Boolean(event.target.checked) })) }), showRuleCount && ruleCount > 0 && (React.createElement(UdpText, { variant: "caption1", muted: true }, ruleCount === 1
171
+ ? '1 visibility rule'
172
+ : `${ruleCount} visibility rules`))));
196
173
  };
197
174
  //# sourceMappingURL=panelActionFields.js.map