udp-react-enterprise-component-library 27.0.0-next.11 → 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 (670) hide show
  1. package/dist/.tsbuildinfo +1 -1
  2. package/dist/UI/feedback/PageLoading.d.ts +11 -1
  3. package/dist/UI/feedback/PageLoading.d.ts.map +1 -1
  4. package/dist/UI/feedback/PageLoading.js +12 -12
  5. package/dist/UI/feedback/PageLoading.js.map +1 -1
  6. package/dist/UI/feedback/PageLoading.mjs +35 -21
  7. package/dist/UI/feedback/PageLoading.mjs.map +1 -1
  8. package/dist/UI/feedback/PageLoading.module.css +9 -0
  9. package/dist/UI/fluent-web-components/UdpIconPicker.d.ts +4 -1
  10. package/dist/UI/fluent-web-components/UdpIconPicker.d.ts.map +1 -1
  11. package/dist/UI/fluent-web-components/UdpIconPicker.js +2 -2
  12. package/dist/UI/fluent-web-components/UdpIconPicker.js.map +1 -1
  13. package/dist/UI/fluent-web-components/UdpIconPicker.mjs +32 -28
  14. package/dist/UI/fluent-web-components/UdpIconPicker.mjs.map +1 -1
  15. package/dist/UI/fluent-web-components/UdpLink.d.ts +6 -0
  16. package/dist/UI/fluent-web-components/UdpLink.d.ts.map +1 -1
  17. package/dist/UI/fluent-web-components/UdpLink.js.map +1 -1
  18. package/dist/UI/fluent-web-components/UdpLink.mjs.map +1 -1
  19. package/dist/UI/fluent-web-components/index.d.ts +10 -0
  20. package/dist/UI/fluent-web-components/index.d.ts.map +1 -1
  21. package/dist/UI/fluent-web-components/index.js +10 -0
  22. package/dist/UI/fluent-web-components/index.js.map +1 -1
  23. package/dist/UI/fluent-web-components/shell/UdpShell.d.ts +10 -0
  24. package/dist/UI/fluent-web-components/shell/UdpShell.d.ts.map +1 -0
  25. package/dist/UI/fluent-web-components/shell/UdpShell.js +7 -0
  26. package/dist/UI/fluent-web-components/shell/UdpShell.js.map +1 -0
  27. package/dist/UI/fluent-web-components/shell/UdpShell.mjs +19 -0
  28. package/dist/UI/fluent-web-components/shell/UdpShell.mjs.map +1 -0
  29. package/dist/UI/fluent-web-components/shell/UdpShellAppBar.d.ts +11 -0
  30. package/dist/UI/fluent-web-components/shell/UdpShellAppBar.d.ts.map +1 -0
  31. package/dist/UI/fluent-web-components/shell/UdpShellAppBar.js +7 -0
  32. package/dist/UI/fluent-web-components/shell/UdpShellAppBar.js.map +1 -0
  33. package/dist/UI/fluent-web-components/shell/UdpShellAppBar.mjs +19 -0
  34. package/dist/UI/fluent-web-components/shell/UdpShellAppBar.mjs.map +1 -0
  35. package/dist/UI/fluent-web-components/shell/UdpShellAppBarAction.d.ts +16 -0
  36. package/dist/UI/fluent-web-components/shell/UdpShellAppBarAction.d.ts.map +1 -0
  37. package/dist/UI/fluent-web-components/shell/UdpShellAppBarAction.js +7 -0
  38. package/dist/UI/fluent-web-components/shell/UdpShellAppBarAction.js.map +1 -0
  39. package/dist/UI/fluent-web-components/shell/UdpShellAppBarAction.mjs +19 -0
  40. package/dist/UI/fluent-web-components/shell/UdpShellAppBarAction.mjs.map +1 -0
  41. package/dist/UI/fluent-web-components/shell/UdpShellNav.d.ts +21 -0
  42. package/dist/UI/fluent-web-components/shell/UdpShellNav.d.ts.map +1 -0
  43. package/dist/UI/fluent-web-components/shell/UdpShellNav.js +7 -0
  44. package/dist/UI/fluent-web-components/shell/UdpShellNav.js.map +1 -0
  45. package/dist/UI/fluent-web-components/shell/UdpShellNav.mjs +19 -0
  46. package/dist/UI/fluent-web-components/shell/UdpShellNav.mjs.map +1 -0
  47. package/dist/UI/fluent-web-components/shell/UdpShellRibbon.d.ts +10 -0
  48. package/dist/UI/fluent-web-components/shell/UdpShellRibbon.d.ts.map +1 -0
  49. package/dist/UI/fluent-web-components/shell/UdpShellRibbon.js +7 -0
  50. package/dist/UI/fluent-web-components/shell/UdpShellRibbon.js.map +1 -0
  51. package/dist/UI/fluent-web-components/shell/UdpShellRibbon.mjs +19 -0
  52. package/dist/UI/fluent-web-components/shell/UdpShellRibbon.mjs.map +1 -0
  53. package/dist/UI/fluent-web-components/shell/UdpShellSidebar.d.ts +13 -0
  54. package/dist/UI/fluent-web-components/shell/UdpShellSidebar.d.ts.map +1 -0
  55. package/dist/UI/fluent-web-components/shell/UdpShellSidebar.js +7 -0
  56. package/dist/UI/fluent-web-components/shell/UdpShellSidebar.js.map +1 -0
  57. package/dist/UI/fluent-web-components/shell/UdpShellSidebar.mjs +19 -0
  58. package/dist/UI/fluent-web-components/shell/UdpShellSidebar.mjs.map +1 -0
  59. package/dist/UI/fluent-web-components/types.d.ts +2 -0
  60. package/dist/UI/fluent-web-components/types.d.ts.map +1 -1
  61. package/dist/UI/widgets/library/InquiryFindRecordsWidget/InquiryFindRecordsWidget.d.ts +16 -3
  62. package/dist/UI/widgets/library/InquiryFindRecordsWidget/InquiryFindRecordsWidget.d.ts.map +1 -1
  63. package/dist/UI/widgets/library/InquiryFindRecordsWidget/InquiryFindRecordsWidget.js +36 -13
  64. package/dist/UI/widgets/library/InquiryFindRecordsWidget/InquiryFindRecordsWidget.js.map +1 -1
  65. package/dist/UI/widgets/library/InquiryFindRecordsWidget/InquiryFindRecordsWidget.mjs +119 -62
  66. package/dist/UI/widgets/library/InquiryFindRecordsWidget/InquiryFindRecordsWidget.mjs.map +1 -1
  67. package/dist/UI/widgets/library/InquiryFindRecordsWidget/index.mjs +3 -2
  68. package/dist/UI/widgets/library/InquiryRecentRecordsWidget/InquiryRecentRecordsWidget.d.ts +9 -2
  69. package/dist/UI/widgets/library/InquiryRecentRecordsWidget/InquiryRecentRecordsWidget.d.ts.map +1 -1
  70. package/dist/UI/widgets/library/InquiryRecentRecordsWidget/InquiryRecentRecordsWidget.js +18 -18
  71. package/dist/UI/widgets/library/InquiryRecentRecordsWidget/InquiryRecentRecordsWidget.js.map +1 -1
  72. package/dist/UI/widgets/library/InquiryRecentRecordsWidget/InquiryRecentRecordsWidget.mjs +79 -67
  73. package/dist/UI/widgets/library/InquiryRecentRecordsWidget/InquiryRecentRecordsWidget.mjs.map +1 -1
  74. package/dist/UI/widgets/library/InquiryRemindersWidget/InquiryRemindersWidget.d.ts +8 -2
  75. package/dist/UI/widgets/library/InquiryRemindersWidget/InquiryRemindersWidget.d.ts.map +1 -1
  76. package/dist/UI/widgets/library/InquiryRemindersWidget/InquiryRemindersWidget.js +32 -16
  77. package/dist/UI/widgets/library/InquiryRemindersWidget/InquiryRemindersWidget.js.map +1 -1
  78. package/dist/UI/widgets/library/InquiryRemindersWidget/InquiryRemindersWidget.mjs +129 -102
  79. package/dist/UI/widgets/library/InquiryRemindersWidget/InquiryRemindersWidget.mjs.map +1 -1
  80. package/dist/UI/widgets/library/InquiryRemindersWidget/reminderRowModel.d.ts +3 -2
  81. package/dist/UI/widgets/library/InquiryRemindersWidget/reminderRowModel.d.ts.map +1 -1
  82. package/dist/UI/widgets/library/InquiryRemindersWidget/reminderRowModel.js +11 -12
  83. package/dist/UI/widgets/library/InquiryRemindersWidget/reminderRowModel.js.map +1 -1
  84. package/dist/UI/widgets/library/InquiryRemindersWidget/reminderRowModel.mjs +6 -4
  85. package/dist/UI/widgets/library/InquiryRemindersWidget/reminderRowModel.mjs.map +1 -1
  86. package/dist/UI/widgets/library/InquiryRemindersWidget/useInquiryReminders.d.ts +2 -19
  87. package/dist/UI/widgets/library/InquiryRemindersWidget/useInquiryReminders.d.ts.map +1 -1
  88. package/dist/UI/widgets/library/InquiryRemindersWidget/useInquiryReminders.js +4 -5
  89. package/dist/UI/widgets/library/InquiryRemindersWidget/useInquiryReminders.js.map +1 -1
  90. package/dist/UI/widgets/library/InquiryRemindersWidget/useInquiryReminders.mjs +5 -4
  91. package/dist/UI/widgets/library/InquiryRemindersWidget/useInquiryReminders.mjs.map +1 -1
  92. package/dist/actionPanels/index.d.ts +0 -2
  93. package/dist/actionPanels/index.d.ts.map +1 -1
  94. package/dist/actionPanels/index.js +0 -2
  95. package/dist/actionPanels/index.js.map +1 -1
  96. package/dist/actionPanels/panelActionFields.d.ts +9 -26
  97. package/dist/actionPanels/panelActionFields.d.ts.map +1 -1
  98. package/dist/actionPanels/panelActionFields.js +32 -55
  99. package/dist/actionPanels/panelActionFields.js.map +1 -1
  100. package/dist/actionPanels/panelActionFields.mjs +159 -375
  101. package/dist/actionPanels/panelActionFields.mjs.map +1 -1
  102. package/dist/actionPanels/panelOperations.d.ts +15 -41
  103. package/dist/actionPanels/panelOperations.d.ts.map +1 -1
  104. package/dist/actionPanels/panelOperations.js +51 -89
  105. package/dist/actionPanels/panelOperations.js.map +1 -1
  106. package/dist/actionPanels/panelOperations.mjs +37 -92
  107. package/dist/actionPanels/panelOperations.mjs.map +1 -1
  108. package/dist/aiAssistant/aiFeatures.d.ts +1 -1
  109. package/dist/aiAssistant/aiFeatures.d.ts.map +1 -1
  110. package/dist/aiAssistant/aiFeatures.js +5 -0
  111. package/dist/aiAssistant/aiFeatures.js.map +1 -1
  112. package/dist/aiAssistant/aiFeatures.mjs +5 -1
  113. package/dist/aiAssistant/aiFeatures.mjs.map +1 -1
  114. package/dist/dashboard/DashboardWidget.d.ts.map +1 -1
  115. package/dist/dashboard/DashboardWidget.js +1 -1
  116. package/dist/dashboard/DashboardWidget.js.map +1 -1
  117. package/dist/dashboard/DashboardWidget.mjs +24 -21
  118. package/dist/dashboard/DashboardWidget.mjs.map +1 -1
  119. package/dist/domain/actionPanel/actionTypeMeta.d.ts +15 -2
  120. package/dist/domain/actionPanel/actionTypeMeta.d.ts.map +1 -1
  121. package/dist/domain/actionPanel/actionTypeMeta.js +21 -2
  122. package/dist/domain/actionPanel/actionTypeMeta.js.map +1 -1
  123. package/dist/domain/actionPanel/actionTypeMeta.mjs +18 -3
  124. package/dist/domain/actionPanel/actionTypeMeta.mjs.map +1 -1
  125. package/dist/domain/actionPanel/buttonOrder.d.ts +67 -0
  126. package/dist/domain/actionPanel/buttonOrder.d.ts.map +1 -0
  127. package/dist/domain/actionPanel/buttonOrder.js +105 -0
  128. package/dist/domain/actionPanel/buttonOrder.js.map +1 -0
  129. package/dist/domain/actionPanel/buttonOrder.mjs +90 -0
  130. package/dist/domain/actionPanel/buttonOrder.mjs.map +1 -0
  131. package/dist/domain/actionPanel/index.d.ts +1 -0
  132. package/dist/domain/actionPanel/index.d.ts.map +1 -1
  133. package/dist/domain/actionPanel/index.js +1 -0
  134. package/dist/domain/actionPanel/index.js.map +1 -1
  135. package/dist/domain/actionPanel/index.mjs +4 -3
  136. package/dist/domain/actionPanel/serialize.d.ts +6 -2
  137. package/dist/domain/actionPanel/serialize.d.ts.map +1 -1
  138. package/dist/domain/actionPanel/serialize.js +10 -3
  139. package/dist/domain/actionPanel/serialize.js.map +1 -1
  140. package/dist/domain/actionPanel/serialize.mjs +7 -3
  141. package/dist/domain/actionPanel/serialize.mjs.map +1 -1
  142. package/dist/domain/actionPanel/types.d.ts +24 -8
  143. package/dist/domain/actionPanel/types.d.ts.map +1 -1
  144. package/dist/domain/actionPanel/types.js.map +1 -1
  145. package/dist/domain/actionPanel/types.mjs.map +1 -1
  146. package/dist/domain/inquiryTree/describe.d.ts +15 -3
  147. package/dist/domain/inquiryTree/describe.d.ts.map +1 -1
  148. package/dist/domain/inquiryTree/describe.js +32 -28
  149. package/dist/domain/inquiryTree/describe.js.map +1 -1
  150. package/dist/domain/inquiryTree/describe.mjs +34 -16
  151. package/dist/domain/inquiryTree/describe.mjs.map +1 -1
  152. package/dist/domain/inquiryTree/displayTree.d.ts +75 -97
  153. package/dist/domain/inquiryTree/displayTree.d.ts.map +1 -1
  154. package/dist/domain/inquiryTree/displayTree.js +418 -551
  155. package/dist/domain/inquiryTree/displayTree.js.map +1 -1
  156. package/dist/domain/inquiryTree/displayTree.mjs +345 -414
  157. package/dist/domain/inquiryTree/displayTree.mjs.map +1 -1
  158. package/dist/domain/inquiryTree/groups.d.ts +2 -0
  159. package/dist/domain/inquiryTree/groups.d.ts.map +1 -1
  160. package/dist/domain/inquiryTree/groups.js.map +1 -1
  161. package/dist/domain/inquiryTree/groups.mjs.map +1 -1
  162. package/dist/domain/inquiryTree/index.d.ts +1 -1
  163. package/dist/domain/inquiryTree/index.d.ts.map +1 -1
  164. package/dist/domain/inquiryTree/index.js +1 -1
  165. package/dist/domain/inquiryTree/index.js.map +1 -1
  166. package/dist/domain/inquiryTree/index.mjs +12 -12
  167. package/dist/domain/inquiryTree/lazyLoad.d.ts +20 -129
  168. package/dist/domain/inquiryTree/lazyLoad.d.ts.map +1 -1
  169. package/dist/domain/inquiryTree/lazyLoad.js +48 -233
  170. package/dist/domain/inquiryTree/lazyLoad.js.map +1 -1
  171. package/dist/domain/inquiryTree/lazyLoad.mjs +32 -187
  172. package/dist/domain/inquiryTree/lazyLoad.mjs.map +1 -1
  173. package/dist/domain/inquiryTree/legalChildren.d.ts +13 -14
  174. package/dist/domain/inquiryTree/legalChildren.d.ts.map +1 -1
  175. package/dist/domain/inquiryTree/legalChildren.js +21 -42
  176. package/dist/domain/inquiryTree/legalChildren.js.map +1 -1
  177. package/dist/domain/inquiryTree/legalChildren.mjs +19 -37
  178. package/dist/domain/inquiryTree/legalChildren.mjs.map +1 -1
  179. package/dist/domain/inquiryTree/names.d.ts +38 -0
  180. package/dist/domain/inquiryTree/names.d.ts.map +1 -0
  181. package/dist/domain/inquiryTree/names.js +64 -0
  182. package/dist/domain/inquiryTree/names.js.map +1 -0
  183. package/dist/domain/inquiryTree/names.mjs +56 -0
  184. package/dist/domain/inquiryTree/names.mjs.map +1 -0
  185. package/dist/domain/inquiryTree/operations.d.ts +6 -2
  186. package/dist/domain/inquiryTree/operations.d.ts.map +1 -1
  187. package/dist/domain/inquiryTree/operations.js +17 -16
  188. package/dist/domain/inquiryTree/operations.js.map +1 -1
  189. package/dist/domain/inquiryTree/operations.mjs +14 -11
  190. package/dist/domain/inquiryTree/operations.mjs.map +1 -1
  191. package/dist/domain/inquiryTree/rules.d.ts +3 -4
  192. package/dist/domain/inquiryTree/rules.d.ts.map +1 -1
  193. package/dist/domain/inquiryTree/rules.js +3 -13
  194. package/dist/domain/inquiryTree/rules.js.map +1 -1
  195. package/dist/domain/inquiryTree/rules.mjs +3 -9
  196. package/dist/domain/inquiryTree/rules.mjs.map +1 -1
  197. package/dist/domain/inquiryTree/runtime.d.ts +23 -16
  198. package/dist/domain/inquiryTree/runtime.d.ts.map +1 -1
  199. package/dist/domain/inquiryTree/runtime.js +46 -54
  200. package/dist/domain/inquiryTree/runtime.js.map +1 -1
  201. package/dist/domain/inquiryTree/runtime.mjs +31 -26
  202. package/dist/domain/inquiryTree/runtime.mjs.map +1 -1
  203. package/dist/domain/inquiryTree/serialize.d.ts +20 -29
  204. package/dist/domain/inquiryTree/serialize.d.ts.map +1 -1
  205. package/dist/domain/inquiryTree/serialize.js +93 -205
  206. package/dist/domain/inquiryTree/serialize.js.map +1 -1
  207. package/dist/domain/inquiryTree/serialize.mjs +89 -180
  208. package/dist/domain/inquiryTree/serialize.mjs.map +1 -1
  209. package/dist/domain/inquiryTree/types.d.ts +146 -65
  210. package/dist/domain/inquiryTree/types.d.ts.map +1 -1
  211. package/dist/domain/inquiryTree/types.js +5 -0
  212. package/dist/domain/inquiryTree/types.js.map +1 -1
  213. package/dist/domain/inquiryTree/types.mjs +3 -1
  214. package/dist/domain/inquiryTree/types.mjs.map +1 -1
  215. package/dist/domain/inquiryTree/validate.d.ts +9 -2
  216. package/dist/domain/inquiryTree/validate.d.ts.map +1 -1
  217. package/dist/domain/inquiryTree/validate.js +30 -58
  218. package/dist/domain/inquiryTree/validate.js.map +1 -1
  219. package/dist/domain/inquiryTree/validate.mjs +29 -44
  220. package/dist/domain/inquiryTree/validate.mjs.map +1 -1
  221. package/dist/domain/inquiryTree/view.d.ts +8 -12
  222. package/dist/domain/inquiryTree/view.d.ts.map +1 -1
  223. package/dist/domain/inquiryTree/view.js +40 -66
  224. package/dist/domain/inquiryTree/view.js.map +1 -1
  225. package/dist/domain/inquiryTree/view.mjs +30 -60
  226. package/dist/domain/inquiryTree/view.mjs.map +1 -1
  227. package/dist/domain/inquiryTree/waveLoad.d.ts +32 -48
  228. package/dist/domain/inquiryTree/waveLoad.d.ts.map +1 -1
  229. package/dist/domain/inquiryTree/waveLoad.js +75 -90
  230. package/dist/domain/inquiryTree/waveLoad.js.map +1 -1
  231. package/dist/domain/inquiryTree/waveLoad.mjs +54 -60
  232. package/dist/domain/inquiryTree/waveLoad.mjs.map +1 -1
  233. package/dist/domain/inquiryTree/wireString.d.ts +5 -0
  234. package/dist/domain/inquiryTree/wireString.d.ts.map +1 -1
  235. package/dist/domain/inquiryTree/wireString.js +11 -0
  236. package/dist/domain/inquiryTree/wireString.js.map +1 -1
  237. package/dist/domain/inquiryTree/wireString.mjs +10 -1
  238. package/dist/domain/inquiryTree/wireString.mjs.map +1 -1
  239. package/dist/domain/nodeView/index.mjs +2 -2
  240. package/dist/domain/nodeView/model.d.ts +35 -30
  241. package/dist/domain/nodeView/model.d.ts.map +1 -1
  242. package/dist/domain/nodeView/model.js +108 -69
  243. package/dist/domain/nodeView/model.js.map +1 -1
  244. package/dist/domain/nodeView/model.mjs +86 -36
  245. package/dist/domain/nodeView/model.mjs.map +1 -1
  246. package/dist/errorBoundary/ErrorBoundary.d.ts +17 -1
  247. package/dist/errorBoundary/ErrorBoundary.d.ts.map +1 -1
  248. package/dist/errorBoundary/ErrorBoundary.js +25 -21
  249. package/dist/errorBoundary/ErrorBoundary.js.map +1 -1
  250. package/dist/errorBoundary/ErrorBoundary.mjs +22 -34
  251. package/dist/errorBoundary/ErrorBoundary.mjs.map +1 -1
  252. package/dist/errorBoundary/ErrorBoundaryFallback.d.ts +10 -0
  253. package/dist/errorBoundary/ErrorBoundaryFallback.d.ts.map +1 -0
  254. package/dist/errorBoundary/ErrorBoundaryFallback.js +8 -0
  255. package/dist/errorBoundary/ErrorBoundaryFallback.js.map +1 -0
  256. package/dist/errorBoundary/ErrorBoundaryFallback.mjs +91 -0
  257. package/dist/errorBoundary/ErrorBoundaryFallback.mjs.map +1 -0
  258. package/dist/icons/legacyIconNames.d.ts.map +1 -1
  259. package/dist/icons/legacyIconNames.js +46 -1
  260. package/dist/icons/legacyIconNames.js.map +1 -1
  261. package/dist/icons/legacyIconNames.mjs +46 -1
  262. package/dist/icons/legacyIconNames.mjs.map +1 -1
  263. package/dist/index.mjs +19 -14
  264. package/dist/inquiry/Inquiry.d.ts +3 -0
  265. package/dist/inquiry/Inquiry.d.ts.map +1 -1
  266. package/dist/inquiry/Inquiry.js +3 -0
  267. package/dist/inquiry/Inquiry.js.map +1 -1
  268. package/dist/inquiry/Inquiry.mjs +3 -0
  269. package/dist/inquiry/Inquiry.mjs.map +1 -1
  270. package/dist/inquiry/InquiryContainer.d.ts.map +1 -1
  271. package/dist/inquiry/InquiryContainer.js +22 -21
  272. package/dist/inquiry/InquiryContainer.js.map +1 -1
  273. package/dist/inquiry/InquiryContainer.mjs +14 -10
  274. package/dist/inquiry/InquiryContainer.mjs.map +1 -1
  275. package/dist/inquiry/InquiryTreeMenu.d.ts.map +1 -1
  276. package/dist/inquiry/InquiryTreeMenu.js +14 -23
  277. package/dist/inquiry/InquiryTreeMenu.js.map +1 -1
  278. package/dist/inquiry/InquiryTreeMenu.mjs +20 -20
  279. package/dist/inquiry/InquiryTreeMenu.mjs.map +1 -1
  280. package/dist/inquiry/v2/InquiryV2.d.ts +8 -6
  281. package/dist/inquiry/v2/InquiryV2.d.ts.map +1 -1
  282. package/dist/inquiry/v2/InquiryV2.js +45 -24
  283. package/dist/inquiry/v2/InquiryV2.js.map +1 -1
  284. package/dist/inquiry/v2/InquiryV2.mjs +108 -61
  285. package/dist/inquiry/v2/InquiryV2.mjs.map +1 -1
  286. package/dist/inquiry/v2/InquiryV2.module.css +60 -15
  287. package/dist/inquiry/v2/InquiryWorkspace.d.ts +9 -9
  288. package/dist/inquiry/v2/InquiryWorkspace.d.ts.map +1 -1
  289. package/dist/inquiry/v2/InquiryWorkspace.js +531 -408
  290. package/dist/inquiry/v2/InquiryWorkspace.js.map +1 -1
  291. package/dist/inquiry/v2/InquiryWorkspace.mjs +524 -408
  292. package/dist/inquiry/v2/InquiryWorkspace.mjs.map +1 -1
  293. package/dist/inquiry/v2/ai/InquiryV2Copilot.d.ts +3 -2
  294. package/dist/inquiry/v2/ai/InquiryV2Copilot.d.ts.map +1 -1
  295. package/dist/inquiry/v2/ai/InquiryV2Copilot.js +20 -37
  296. package/dist/inquiry/v2/ai/InquiryV2Copilot.js.map +1 -1
  297. package/dist/inquiry/v2/ai/InquiryV2Copilot.mjs +19 -31
  298. package/dist/inquiry/v2/ai/InquiryV2Copilot.mjs.map +1 -1
  299. package/dist/inquiry/v2/ai/copilotModel.d.ts +6 -14
  300. package/dist/inquiry/v2/ai/copilotModel.d.ts.map +1 -1
  301. package/dist/inquiry/v2/ai/copilotModel.js +35 -87
  302. package/dist/inquiry/v2/ai/copilotModel.js.map +1 -1
  303. package/dist/inquiry/v2/ai/copilotModel.mjs +23 -47
  304. package/dist/inquiry/v2/ai/copilotModel.mjs.map +1 -1
  305. package/dist/inquiry/v2/api/queries.d.ts +46 -73
  306. package/dist/inquiry/v2/api/queries.d.ts.map +1 -1
  307. package/dist/inquiry/v2/api/queries.js +151 -210
  308. package/dist/inquiry/v2/api/queries.js.map +1 -1
  309. package/dist/inquiry/v2/api/queries.mjs +227 -183
  310. package/dist/inquiry/v2/api/queries.mjs.map +1 -1
  311. package/dist/inquiry/v2/capabilities/actions/ActionsCapability.d.ts.map +1 -1
  312. package/dist/inquiry/v2/capabilities/actions/ActionsCapability.js +103 -32
  313. package/dist/inquiry/v2/capabilities/actions/ActionsCapability.js.map +1 -1
  314. package/dist/inquiry/v2/capabilities/actions/ActionsCapability.mjs +92 -32
  315. package/dist/inquiry/v2/capabilities/actions/ActionsCapability.mjs.map +1 -1
  316. package/dist/inquiry/v2/capabilities/actions/ActionsCapability.module.css +8 -1
  317. package/dist/inquiry/v2/capabilities/actions/EntityFormSurface.d.ts +20 -16
  318. package/dist/inquiry/v2/capabilities/actions/EntityFormSurface.d.ts.map +1 -1
  319. package/dist/inquiry/v2/capabilities/actions/EntityFormSurface.js +111 -68
  320. package/dist/inquiry/v2/capabilities/actions/EntityFormSurface.js.map +1 -1
  321. package/dist/inquiry/v2/capabilities/actions/EntityFormSurface.mjs +108 -142
  322. package/dist/inquiry/v2/capabilities/actions/EntityFormSurface.mjs.map +1 -1
  323. package/dist/inquiry/v2/capabilities/actions/RetrieveSurface.mjs +1 -1
  324. package/dist/inquiry/v2/capabilities/actions/actionModel.d.ts +66 -50
  325. package/dist/inquiry/v2/capabilities/actions/actionModel.d.ts.map +1 -1
  326. package/dist/inquiry/v2/capabilities/actions/actionModel.js +141 -66
  327. package/dist/inquiry/v2/capabilities/actions/actionModel.js.map +1 -1
  328. package/dist/inquiry/v2/capabilities/actions/actionModel.mjs +115 -53
  329. package/dist/inquiry/v2/capabilities/actions/actionModel.mjs.map +1 -1
  330. package/dist/inquiry/v2/capabilities/actions/parentKeyDefaults.d.ts +26 -0
  331. package/dist/inquiry/v2/capabilities/actions/parentKeyDefaults.d.ts.map +1 -0
  332. package/dist/inquiry/v2/capabilities/actions/parentKeyDefaults.js +36 -0
  333. package/dist/inquiry/v2/capabilities/actions/parentKeyDefaults.js.map +1 -0
  334. package/dist/inquiry/v2/capabilities/actions/parentKeyDefaults.mjs +41 -0
  335. package/dist/inquiry/v2/capabilities/actions/parentKeyDefaults.mjs.map +1 -0
  336. package/dist/inquiry/v2/capabilities/actions/runAction.d.ts +3 -2
  337. package/dist/inquiry/v2/capabilities/actions/runAction.d.ts.map +1 -1
  338. package/dist/inquiry/v2/capabilities/actions/runAction.js +27 -23
  339. package/dist/inquiry/v2/capabilities/actions/runAction.js.map +1 -1
  340. package/dist/inquiry/v2/capabilities/actions/runAction.mjs +26 -20
  341. package/dist/inquiry/v2/capabilities/actions/runAction.mjs.map +1 -1
  342. package/dist/inquiry/v2/capabilities/actions/useHeaderFold.d.ts +20 -0
  343. package/dist/inquiry/v2/capabilities/actions/useHeaderFold.d.ts.map +1 -0
  344. package/dist/inquiry/v2/capabilities/actions/useHeaderFold.js +112 -0
  345. package/dist/inquiry/v2/capabilities/actions/useHeaderFold.js.map +1 -0
  346. package/dist/inquiry/v2/capabilities/actions/useHeaderFold.mjs +118 -0
  347. package/dist/inquiry/v2/capabilities/actions/useHeaderFold.mjs.map +1 -0
  348. package/dist/inquiry/v2/capabilities/actions/useSheetPanel.d.ts +25 -1
  349. package/dist/inquiry/v2/capabilities/actions/useSheetPanel.d.ts.map +1 -1
  350. package/dist/inquiry/v2/capabilities/actions/useSheetPanel.js +7 -4
  351. package/dist/inquiry/v2/capabilities/actions/useSheetPanel.js.map +1 -1
  352. package/dist/inquiry/v2/capabilities/actions/useSheetPanel.mjs +9 -4
  353. package/dist/inquiry/v2/capabilities/actions/useSheetPanel.mjs.map +1 -1
  354. package/dist/inquiry/v2/capabilities/alerts/AlertsCapability.d.ts +5 -3
  355. package/dist/inquiry/v2/capabilities/alerts/AlertsCapability.d.ts.map +1 -1
  356. package/dist/inquiry/v2/capabilities/alerts/AlertsCapability.js +11 -8
  357. package/dist/inquiry/v2/capabilities/alerts/AlertsCapability.js.map +1 -1
  358. package/dist/inquiry/v2/capabilities/alerts/AlertsCapability.mjs +13 -7
  359. package/dist/inquiry/v2/capabilities/alerts/AlertsCapability.mjs.map +1 -1
  360. package/dist/inquiry/v2/capabilities/alerts/AlertsCapability.module.css +4 -4
  361. package/dist/inquiry/v2/capabilities/header/HeaderCapability.d.ts +1 -1
  362. package/dist/inquiry/v2/capabilities/header/HeaderCapability.d.ts.map +1 -1
  363. package/dist/inquiry/v2/capabilities/header/HeaderCapability.js +20 -17
  364. package/dist/inquiry/v2/capabilities/header/HeaderCapability.js.map +1 -1
  365. package/dist/inquiry/v2/capabilities/header/HeaderCapability.mjs +101 -111
  366. package/dist/inquiry/v2/capabilities/header/HeaderCapability.mjs.map +1 -1
  367. package/dist/inquiry/v2/capabilities/header/HeaderCapability.module.css +9 -6
  368. package/dist/inquiry/v2/capabilities/tabs/TabsCapability.d.ts +2 -1
  369. package/dist/inquiry/v2/capabilities/tabs/TabsCapability.d.ts.map +1 -1
  370. package/dist/inquiry/v2/capabilities/tabs/TabsCapability.js +9 -2
  371. package/dist/inquiry/v2/capabilities/tabs/TabsCapability.js.map +1 -1
  372. package/dist/inquiry/v2/capabilities/tabs/TabsCapability.mjs +18 -15
  373. package/dist/inquiry/v2/capabilities/tabs/TabsCapability.mjs.map +1 -1
  374. package/dist/inquiry/v2/index.d.ts +0 -1
  375. package/dist/inquiry/v2/index.d.ts.map +1 -1
  376. package/dist/inquiry/v2/index.js.map +1 -1
  377. package/dist/inquiry/v2/kernel/ActionRunnerContext.d.ts +3 -3
  378. package/dist/inquiry/v2/kernel/ActionRunnerContext.d.ts.map +1 -1
  379. package/dist/inquiry/v2/kernel/ActionRunnerContext.js +11 -5
  380. package/dist/inquiry/v2/kernel/ActionRunnerContext.js.map +1 -1
  381. package/dist/inquiry/v2/kernel/ActionRunnerContext.mjs +15 -12
  382. package/dist/inquiry/v2/kernel/ActionRunnerContext.mjs.map +1 -1
  383. package/dist/inquiry/v2/kernel/ReadOnlyContext.d.ts +3 -0
  384. package/dist/inquiry/v2/kernel/ReadOnlyContext.d.ts.map +1 -0
  385. package/dist/inquiry/v2/kernel/ReadOnlyContext.js +14 -0
  386. package/dist/inquiry/v2/kernel/ReadOnlyContext.js.map +1 -0
  387. package/dist/inquiry/v2/kernel/ReadOnlyContext.mjs +20 -0
  388. package/dist/inquiry/v2/kernel/ReadOnlyContext.mjs.map +1 -0
  389. package/dist/inquiry/v2/kernel/RecordContext.d.ts +2 -0
  390. package/dist/inquiry/v2/kernel/RecordContext.d.ts.map +1 -1
  391. package/dist/inquiry/v2/kernel/RecordContext.js.map +1 -1
  392. package/dist/inquiry/v2/kernel/RecordContext.mjs.map +1 -1
  393. package/dist/inquiry/v2/kernel/UdpNodeView.d.ts.map +1 -1
  394. package/dist/inquiry/v2/kernel/UdpNodeView.js +18 -13
  395. package/dist/inquiry/v2/kernel/UdpNodeView.js.map +1 -1
  396. package/dist/inquiry/v2/kernel/UdpNodeView.mjs +177 -140
  397. package/dist/inquiry/v2/kernel/UdpNodeView.mjs.map +1 -1
  398. package/dist/inquiry/v2/kernel/UdpNodeView.module.css +56 -5
  399. package/dist/inquiry/v2/kernel/capabilities.d.ts +0 -2
  400. package/dist/inquiry/v2/kernel/capabilities.d.ts.map +1 -1
  401. package/dist/inquiry/v2/kernel/capabilities.js.map +1 -1
  402. package/dist/inquiry/v2/kernel/capabilities.mjs.map +1 -1
  403. package/dist/inquiry/v2/landing/InquiryExplorePage.d.ts +26 -37
  404. package/dist/inquiry/v2/landing/InquiryExplorePage.d.ts.map +1 -1
  405. package/dist/inquiry/v2/landing/InquiryExplorePage.js +48 -57
  406. package/dist/inquiry/v2/landing/InquiryExplorePage.js.map +1 -1
  407. package/dist/inquiry/v2/landing/InquiryExplorePage.mjs +102 -106
  408. package/dist/inquiry/v2/landing/InquiryExplorePage.mjs.map +1 -1
  409. package/dist/inquiry/v2/landing/InquiryExplorePage.module.css +58 -6
  410. package/dist/inquiry/v2/landing/InquiryLanding.d.ts +3 -3
  411. package/dist/inquiry/v2/landing/InquiryLanding.d.ts.map +1 -1
  412. package/dist/inquiry/v2/landing/InquiryLanding.js +8 -3
  413. package/dist/inquiry/v2/landing/InquiryLanding.js.map +1 -1
  414. package/dist/inquiry/v2/landing/InquiryLanding.mjs +51 -35
  415. package/dist/inquiry/v2/landing/InquiryLanding.mjs.map +1 -1
  416. package/dist/inquiry/v2/landing/InquiryLanding.module.css +8 -0
  417. package/dist/inquiry/v2/page/UdpPageRenderer.d.ts +5 -1
  418. package/dist/inquiry/v2/page/UdpPageRenderer.d.ts.map +1 -1
  419. package/dist/inquiry/v2/page/UdpPageRenderer.js +13 -1
  420. package/dist/inquiry/v2/page/UdpPageRenderer.js.map +1 -1
  421. package/dist/inquiry/v2/page/UdpPageRenderer.mjs +36 -7
  422. package/dist/inquiry/v2/page/UdpPageRenderer.mjs.map +1 -1
  423. package/dist/inquiry/v2/search/InquirySearchPanel.d.ts +1 -7
  424. package/dist/inquiry/v2/search/InquirySearchPanel.d.ts.map +1 -1
  425. package/dist/inquiry/v2/search/InquirySearchPanel.js +6 -13
  426. package/dist/inquiry/v2/search/InquirySearchPanel.js.map +1 -1
  427. package/dist/inquiry/v2/search/InquirySearchPanel.mjs +4 -8
  428. package/dist/inquiry/v2/search/InquirySearchPanel.mjs.map +1 -1
  429. package/dist/inquiry/v2/search/RecordFinder.d.ts +30 -1
  430. package/dist/inquiry/v2/search/RecordFinder.d.ts.map +1 -1
  431. package/dist/inquiry/v2/search/RecordFinder.js +43 -20
  432. package/dist/inquiry/v2/search/RecordFinder.js.map +1 -1
  433. package/dist/inquiry/v2/search/RecordFinder.mjs +68 -42
  434. package/dist/inquiry/v2/search/RecordFinder.mjs.map +1 -1
  435. package/dist/inquiry/v2/search/index.d.ts +3 -3
  436. package/dist/inquiry/v2/search/index.d.ts.map +1 -1
  437. package/dist/inquiry/v2/search/index.js +1 -1
  438. package/dist/inquiry/v2/search/index.js.map +1 -1
  439. package/dist/inquiry/v2/search/searchModel.d.ts +130 -23
  440. package/dist/inquiry/v2/search/searchModel.d.ts.map +1 -1
  441. package/dist/inquiry/v2/search/searchModel.js +237 -36
  442. package/dist/inquiry/v2/search/searchModel.js.map +1 -1
  443. package/dist/inquiry/v2/search/searchModel.mjs +207 -34
  444. package/dist/inquiry/v2/search/searchModel.mjs.map +1 -1
  445. package/dist/inquiry/v2/search/useInquirySearch.d.ts.map +1 -1
  446. package/dist/inquiry/v2/search/useInquirySearch.js +46 -19
  447. package/dist/inquiry/v2/search/useInquirySearch.js.map +1 -1
  448. package/dist/inquiry/v2/search/useInquirySearch.mjs +83 -84
  449. package/dist/inquiry/v2/search/useInquirySearch.mjs.map +1 -1
  450. package/dist/inquiry/v2/tree/InquiryFluentTreeMenu.d.ts +4 -1
  451. package/dist/inquiry/v2/tree/InquiryFluentTreeMenu.d.ts.map +1 -1
  452. package/dist/inquiry/v2/tree/InquiryFluentTreeMenu.js +174 -166
  453. package/dist/inquiry/v2/tree/InquiryFluentTreeMenu.js.map +1 -1
  454. package/dist/inquiry/v2/tree/InquiryFluentTreeMenu.mjs +343 -325
  455. package/dist/inquiry/v2/tree/InquiryFluentTreeMenu.mjs.map +1 -1
  456. package/dist/inquiry/v2/tree/InquiryMenuToolbar.d.ts +3 -1
  457. package/dist/inquiry/v2/tree/InquiryMenuToolbar.d.ts.map +1 -1
  458. package/dist/inquiry/v2/tree/InquiryMenuToolbar.js +8 -7
  459. package/dist/inquiry/v2/tree/InquiryMenuToolbar.js.map +1 -1
  460. package/dist/inquiry/v2/tree/InquiryMenuToolbar.mjs +68 -72
  461. package/dist/inquiry/v2/tree/InquiryMenuToolbar.mjs.map +1 -1
  462. package/dist/inquiry/v2/tree/LoadRecordDialog.d.ts +3 -3
  463. package/dist/inquiry/v2/tree/LoadRecordDialog.d.ts.map +1 -1
  464. package/dist/inquiry/v2/tree/LoadRecordDialog.js +12 -7
  465. package/dist/inquiry/v2/tree/LoadRecordDialog.js.map +1 -1
  466. package/dist/inquiry/v2/tree/LoadRecordDialog.mjs +48 -33
  467. package/dist/inquiry/v2/tree/LoadRecordDialog.mjs.map +1 -1
  468. package/dist/inquiry/v2/tree/NodeList.d.ts.map +1 -1
  469. package/dist/inquiry/v2/tree/NodeList.js +17 -6
  470. package/dist/inquiry/v2/tree/NodeList.js.map +1 -1
  471. package/dist/inquiry/v2/tree/NodeList.mjs +49 -36
  472. package/dist/inquiry/v2/tree/NodeList.mjs.map +1 -1
  473. package/dist/inquiry/v2/tree/arrivalModel.d.ts +15 -0
  474. package/dist/inquiry/v2/tree/arrivalModel.d.ts.map +1 -1
  475. package/dist/inquiry/v2/tree/arrivalModel.js +14 -1
  476. package/dist/inquiry/v2/tree/arrivalModel.js.map +1 -1
  477. package/dist/inquiry/v2/tree/arrivalModel.mjs +12 -1
  478. package/dist/inquiry/v2/tree/arrivalModel.mjs.map +1 -1
  479. package/dist/inquiry/v2/tree/branchRefreshModel.d.ts +32 -0
  480. package/dist/inquiry/v2/tree/branchRefreshModel.d.ts.map +1 -0
  481. package/dist/inquiry/v2/tree/branchRefreshModel.js +62 -0
  482. package/dist/inquiry/v2/tree/branchRefreshModel.js.map +1 -0
  483. package/dist/inquiry/v2/tree/branchRefreshModel.mjs +60 -0
  484. package/dist/inquiry/v2/tree/branchRefreshModel.mjs.map +1 -0
  485. package/dist/inquiry/v2/tree/droppedPageModel.d.ts +23 -1
  486. package/dist/inquiry/v2/tree/droppedPageModel.d.ts.map +1 -1
  487. package/dist/inquiry/v2/tree/droppedPageModel.js +53 -26
  488. package/dist/inquiry/v2/tree/droppedPageModel.js.map +1 -1
  489. package/dist/inquiry/v2/tree/droppedPageModel.mjs +48 -20
  490. package/dist/inquiry/v2/tree/droppedPageModel.mjs.map +1 -1
  491. package/dist/inquiry/v2/tree/fluentTreeMenu/treeMenuVisuals.d.ts +7 -12
  492. package/dist/inquiry/v2/tree/fluentTreeMenu/treeMenuVisuals.d.ts.map +1 -1
  493. package/dist/inquiry/v2/tree/fluentTreeMenu/treeMenuVisuals.js +44 -15
  494. package/dist/inquiry/v2/tree/fluentTreeMenu/treeMenuVisuals.js.map +1 -1
  495. package/dist/inquiry/v2/tree/fluentTreeMenu/treeMenuVisuals.mjs +34 -15
  496. package/dist/inquiry/v2/tree/fluentTreeMenu/treeMenuVisuals.mjs.map +1 -1
  497. package/dist/inquiry/v2/tree/fluentTreeMenu/useAggregateBadges.d.ts.map +1 -1
  498. package/dist/inquiry/v2/tree/fluentTreeMenu/useAggregateBadges.js +7 -18
  499. package/dist/inquiry/v2/tree/fluentTreeMenu/useAggregateBadges.js.map +1 -1
  500. package/dist/inquiry/v2/tree/fluentTreeMenu/useAggregateBadges.mjs +6 -14
  501. package/dist/inquiry/v2/tree/fluentTreeMenu/useAggregateBadges.mjs.map +1 -1
  502. package/dist/inquiry/v2/tree/fluentTreeMenu/useChildCountBadges.d.ts +20 -16
  503. package/dist/inquiry/v2/tree/fluentTreeMenu/useChildCountBadges.d.ts.map +1 -1
  504. package/dist/inquiry/v2/tree/fluentTreeMenu/useChildCountBadges.js +77 -55
  505. package/dist/inquiry/v2/tree/fluentTreeMenu/useChildCountBadges.js.map +1 -1
  506. package/dist/inquiry/v2/tree/fluentTreeMenu/useChildCountBadges.mjs +85 -106
  507. package/dist/inquiry/v2/tree/fluentTreeMenu/useChildCountBadges.mjs.map +1 -1
  508. package/dist/inquiry/v2/tree/lineageModel.d.ts +18 -1
  509. package/dist/inquiry/v2/tree/lineageModel.d.ts.map +1 -1
  510. package/dist/inquiry/v2/tree/lineageModel.js +71 -2
  511. package/dist/inquiry/v2/tree/lineageModel.js.map +1 -1
  512. package/dist/inquiry/v2/tree/lineageModel.mjs +53 -3
  513. package/dist/inquiry/v2/tree/lineageModel.mjs.map +1 -1
  514. package/dist/inquiry/v2/tree/menuRebuildModel.d.ts +10 -27
  515. package/dist/inquiry/v2/tree/menuRebuildModel.d.ts.map +1 -1
  516. package/dist/inquiry/v2/tree/menuRebuildModel.js +8 -58
  517. package/dist/inquiry/v2/tree/menuRebuildModel.js.map +1 -1
  518. package/dist/inquiry/v2/tree/menuRebuildModel.mjs +8 -51
  519. package/dist/inquiry/v2/tree/menuRebuildModel.mjs.map +1 -1
  520. package/dist/inquiry/v2/tree/pagedChildrenModel.d.ts +26 -0
  521. package/dist/inquiry/v2/tree/pagedChildrenModel.d.ts.map +1 -0
  522. package/dist/inquiry/v2/tree/pagedChildrenModel.js +56 -0
  523. package/dist/inquiry/v2/tree/pagedChildrenModel.js.map +1 -0
  524. package/dist/inquiry/v2/tree/pagedChildrenModel.mjs +43 -0
  525. package/dist/inquiry/v2/tree/pagedChildrenModel.mjs.map +1 -0
  526. package/dist/inquiry/v2/tree/rootRemovalModel.d.ts +7 -0
  527. package/dist/inquiry/v2/tree/rootRemovalModel.d.ts.map +1 -1
  528. package/dist/inquiry/v2/tree/rootRemovalModel.js +31 -5
  529. package/dist/inquiry/v2/tree/rootRemovalModel.js.map +1 -1
  530. package/dist/inquiry/v2/tree/rootRemovalModel.mjs +21 -4
  531. package/dist/inquiry/v2/tree/rootRemovalModel.mjs.map +1 -1
  532. package/dist/inquiry/v2/tree/treeFilterModel.d.ts +0 -2
  533. package/dist/inquiry/v2/tree/treeFilterModel.d.ts.map +1 -1
  534. package/dist/inquiry/v2/tree/treeFilterModel.js +0 -7
  535. package/dist/inquiry/v2/tree/treeFilterModel.js.map +1 -1
  536. package/dist/inquiry/v2/tree/treeFilterModel.mjs.map +1 -1
  537. package/dist/inquiry/v2/tree/useInquiryMenu.d.ts +16 -7
  538. package/dist/inquiry/v2/tree/useInquiryMenu.d.ts.map +1 -1
  539. package/dist/inquiry/v2/tree/useInquiryMenu.js +401 -163
  540. package/dist/inquiry/v2/tree/useInquiryMenu.js.map +1 -1
  541. package/dist/inquiry/v2/tree/useInquiryMenu.mjs +511 -310
  542. package/dist/inquiry/v2/tree/useInquiryMenu.mjs.map +1 -1
  543. package/dist/inquiry/v2/tree/waveLoader.d.ts +10 -11
  544. package/dist/inquiry/v2/tree/waveLoader.d.ts.map +1 -1
  545. package/dist/inquiry/v2/tree/waveLoader.js +78 -72
  546. package/dist/inquiry/v2/tree/waveLoader.js.map +1 -1
  547. package/dist/inquiry/v2/tree/waveLoader.mjs +79 -68
  548. package/dist/inquiry/v2/tree/waveLoader.mjs.map +1 -1
  549. package/dist/inquiry/v2/widgets/listRow.module.css +27 -0
  550. package/dist/inquiry/v2/widgets/widgetRowModel.d.ts +6 -2
  551. package/dist/inquiry/v2/widgets/widgetRowModel.d.ts.map +1 -1
  552. package/dist/inquiry/v2/widgets/widgetRowModel.js +49 -14
  553. package/dist/inquiry/v2/widgets/widgetRowModel.js.map +1 -1
  554. package/dist/inquiry/v2/widgets/widgetRowModel.mjs +36 -12
  555. package/dist/inquiry/v2/widgets/widgetRowModel.mjs.map +1 -1
  556. package/dist/maintenance/UdpTaggedRecordsPage.mjs +1 -1
  557. package/dist/maintenance/api/lookupApi.mjs +1 -1
  558. package/dist/maintenance/api/tagsApi.mjs +1 -1
  559. package/dist/maintenance/config/nodeDefaults.d.ts.map +1 -1
  560. package/dist/maintenance/config/nodeDefaults.js +16 -5
  561. package/dist/maintenance/config/nodeDefaults.js.map +1 -1
  562. package/dist/maintenance/config/nodeDefaults.mjs +14 -5
  563. package/dist/maintenance/config/nodeDefaults.mjs.map +1 -1
  564. package/dist/maintenance/config/useEntityConfig.mjs +1 -1
  565. package/dist/maintenance/config/useLinkedLabels.mjs +1 -1
  566. package/dist/maintenance/grid/MaintenanceGrid.mjs +1 -1
  567. package/dist/maintenance/metadata/useEntityMetadata.mjs +1 -1
  568. package/dist/maintenance/record/ChildTab.mjs +1 -1
  569. package/dist/maintenance/record/DeleteRecordDialog.mjs +1 -1
  570. package/dist/maintenance/record/LinkRecordsSheet.mjs +1 -1
  571. package/dist/maintenance/record/RecordFacts.mjs +1 -1
  572. package/dist/maintenance/record/RecordSheet.mjs +2 -2
  573. package/dist/maintenance/record/displayValue.mjs +1 -1
  574. package/dist/maintenance/record/stampDisplayText.mjs +1 -1
  575. package/dist/maintenance/settings/UdpEntitySettingsPage.d.ts.map +1 -1
  576. package/dist/maintenance/settings/UdpEntitySettingsPage.js +3 -0
  577. package/dist/maintenance/settings/UdpEntitySettingsPage.js.map +1 -1
  578. package/dist/maintenance/settings/UdpEntitySettingsPage.mjs +2 -0
  579. package/dist/maintenance/settings/UdpEntitySettingsPage.mjs.map +1 -1
  580. package/dist/maintenance/settings/useEntityCatalog.mjs +1 -1
  581. package/dist/maintenanceEngine/tableBrowser/TableColumnDefs.d.ts +4 -5
  582. package/dist/maintenanceEngine/tableBrowser/TableColumnDefs.d.ts.map +1 -1
  583. package/dist/page/PageContainer/PageContainer.d.ts.map +1 -1
  584. package/dist/page/PageContainer/PageContainer.js +4 -11
  585. package/dist/page/PageContainer/PageContainer.js.map +1 -1
  586. package/dist/page/PageContainer/PageContainer.mjs +39 -50
  587. package/dist/page/PageContainer/PageContainer.mjs.map +1 -1
  588. package/dist/stores/inquiryStore.d.ts +2 -1
  589. package/dist/stores/inquiryStore.d.ts.map +1 -1
  590. package/dist/stores/inquiryStore.js +4 -3
  591. package/dist/stores/inquiryStore.js.map +1 -1
  592. package/dist/stores/inquiryStore.mjs +18 -11
  593. package/dist/stores/inquiryStore.mjs.map +1 -1
  594. package/dist/udp/extraFields/useExtraFieldsGridConfig.d.ts +3 -2
  595. package/dist/udp/extraFields/useExtraFieldsGridConfig.d.ts.map +1 -1
  596. package/dist/udp/extraFields/useExtraFieldsGridConfig.js +7 -6
  597. package/dist/udp/extraFields/useExtraFieldsGridConfig.js.map +1 -1
  598. package/dist/udp/extraFields/useExtraFieldsGridConfig.mjs +27 -22
  599. package/dist/udp/extraFields/useExtraFieldsGridConfig.mjs.map +1 -1
  600. package/dist/udp/fileImportMapping/FileImportMappingWizard.d.ts.map +1 -1
  601. package/dist/udp/fileImportMapping/FileImportMappingWizard.js +4 -4
  602. package/dist/udp/fileImportMapping/FileImportMappingWizard.js.map +1 -1
  603. package/dist/udp/fileImportMapping/FileImportMappingWizard.mjs +10 -9
  604. package/dist/udp/fileImportMapping/FileImportMappingWizard.mjs.map +1 -1
  605. package/dist/udp/pages/UdpMaintenanceEnginePage/UdpMaintenanceEnginePage.d.ts.map +1 -1
  606. package/dist/udp/pages/UdpMaintenanceEnginePage/UdpMaintenanceEnginePage.js +1 -1
  607. package/dist/udp/pages/UdpMaintenanceEnginePage/UdpMaintenanceEnginePage.js.map +1 -1
  608. package/dist/udp/pages/UdpMaintenanceEnginePage/UdpMaintenanceEnginePage.mjs +2 -1
  609. package/dist/udp/pages/UdpMaintenanceEnginePage/UdpMaintenanceEnginePage.mjs.map +1 -1
  610. package/dist/udp/pages/UdpMaintenanceEnginePage/components/EntitiyTimeLine.mjs +1 -1
  611. package/dist/udp/pages/UdpTransactionsPage/components/DynamicTransactionDomainForm.d.ts.map +1 -1
  612. package/dist/udp/pages/UdpTransactionsPage/components/DynamicTransactionDomainForm.js +84 -27
  613. package/dist/udp/pages/UdpTransactionsPage/components/DynamicTransactionDomainForm.js.map +1 -1
  614. package/dist/udp/pages/UdpTransactionsPage/components/DynamicTransactionDomainForm.mjs +53 -23
  615. package/dist/udp/pages/UdpTransactionsPage/components/DynamicTransactionDomainForm.mjs.map +1 -1
  616. package/dist/udp/pages/UdpTransactionsPage/components/DynamicTransactionDomainFormFields.d.ts.map +1 -1
  617. package/dist/udp/pages/UdpTransactionsPage/components/DynamicTransactionDomainFormFields.js +45 -32
  618. package/dist/udp/pages/UdpTransactionsPage/components/DynamicTransactionDomainFormFields.js.map +1 -1
  619. package/dist/udp/pages/UdpTransactionsPage/components/DynamicTransactionDomainFormFields.mjs +27 -33
  620. package/dist/udp/pages/UdpTransactionsPage/components/DynamicTransactionDomainFormFields.mjs.map +1 -1
  621. package/dist/udp/pages/UdpTranslationsPage/UdpTranslationsPage.d.ts.map +1 -1
  622. package/dist/udp/pages/UdpTranslationsPage/UdpTranslationsPage.js +14 -16
  623. package/dist/udp/pages/UdpTranslationsPage/UdpTranslationsPage.js.map +1 -1
  624. package/dist/udp/pages/UdpTranslationsPage/UdpTranslationsPage.mjs +2 -4
  625. package/dist/udp/pages/UdpTranslationsPage/UdpTranslationsPage.mjs.map +1 -1
  626. package/dist/udp/utilities/useDateStringColumnDef.d.ts +1 -1
  627. package/dist/utilities/i18n/locales/es-US.json +24 -9
  628. package/dist/utilities/i18n/locales/es-US.mjs +25 -8
  629. package/dist/utilities/i18n/locales/fr-CA.json +24 -9
  630. package/dist/utilities/i18n/locales/fr-CA.mjs +25 -8
  631. package/dist/utilities/tree/TreeUtilities.d.ts +10 -10
  632. package/dist/utilities/tree/TreeUtilities.d.ts.map +1 -1
  633. package/dist/utilities/tree/TreeUtilities.js +41 -58
  634. package/dist/utilities/tree/TreeUtilities.js.map +1 -1
  635. package/dist/utilities/tree/TreeUtilities.mjs +32 -41
  636. package/dist/utilities/tree/TreeUtilities.mjs.map +1 -1
  637. package/dist/utilities/tree/lazyLevels.d.ts +32 -0
  638. package/dist/utilities/tree/lazyLevels.d.ts.map +1 -0
  639. package/dist/utilities/tree/lazyLevels.js +25 -0
  640. package/dist/utilities/tree/lazyLevels.js.map +1 -0
  641. package/dist/utilities/tree/lazyLevels.mjs +16 -0
  642. package/dist/utilities/tree/lazyLevels.mjs.map +1 -0
  643. package/dist/utilities/types.d.ts +4 -4
  644. package/dist/utilities/types.d.ts.map +1 -1
  645. package/package.json +62 -18
  646. package/dist/actionPanels/PanelActionForm.d.ts +0 -56
  647. package/dist/actionPanels/PanelActionForm.d.ts.map +0 -1
  648. package/dist/actionPanels/PanelActionForm.js +0 -30
  649. package/dist/actionPanels/PanelActionForm.js.map +0 -1
  650. package/dist/actionPanels/PanelActionForm.mjs +0 -168
  651. package/dist/actionPanels/PanelActionForm.mjs.map +0 -1
  652. package/dist/actionPanels/PanelEditor.d.ts +0 -44
  653. package/dist/actionPanels/PanelEditor.d.ts.map +0 -1
  654. package/dist/actionPanels/PanelEditor.js +0 -78
  655. package/dist/actionPanels/PanelEditor.js.map +0 -1
  656. package/dist/actionPanels/PanelEditor.mjs +0 -345
  657. package/dist/actionPanels/PanelEditor.mjs.map +0 -1
  658. package/dist/actionPanels/panelActionFields.module.css +0 -18
  659. package/dist/domain/inquiryTree/ruleBindings.d.ts +0 -10
  660. package/dist/domain/inquiryTree/ruleBindings.d.ts.map +0 -1
  661. package/dist/domain/inquiryTree/ruleBindings.js +0 -20
  662. package/dist/domain/inquiryTree/ruleBindings.js.map +0 -1
  663. package/dist/domain/inquiryTree/ruleBindings.mjs +0 -21
  664. package/dist/domain/inquiryTree/ruleBindings.mjs.map +0 -1
  665. package/dist/inquiry/v2/kernel/readOnlyModel.d.ts +0 -17
  666. package/dist/inquiry/v2/kernel/readOnlyModel.d.ts.map +0 -1
  667. package/dist/inquiry/v2/kernel/readOnlyModel.js +0 -19
  668. package/dist/inquiry/v2/kernel/readOnlyModel.js.map +0 -1
  669. package/dist/inquiry/v2/kernel/readOnlyModel.mjs +0 -21
  670. package/dist/inquiry/v2/kernel/readOnlyModel.mjs.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"actionTypeMeta.d.ts","sourceRoot":"","sources":["../../../src/domain/actionPanel/actionTypeMeta.ts"],"names":[],"mappings":"AAaA,OAAO,EAAgB,UAAU,EAAE,MAAM,SAAS,CAAC;AAEnD,OAAO,EACL,kBAAkB,EAClB,eAAe,EAChB,MAAM,6BAA6B,CAAC;AAErC,6DAA6D;AAC7D,MAAM,MAAM,eAAe,GACvB,KAAK,GACL,YAAY,GACZ,MAAM,GACN,MAAM,GACN,UAAU,GACV,MAAM,CAAC;AAEX,MAAM,WAAW,cAAc;IAC7B,yCAAyC;IACzC,KAAK,EAAE,MAAM,CAAC;IACd,+DAA+D;IAC/D,QAAQ,EAAE,MAAM,CAAC;IACjB,iEAAiE;IACjE,SAAS,EAAE,eAAe,CAAC;IAC3B,wCAAwC;IACxC,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,uDAAuD;AACvD,eAAO,MAAM,gBAAgB,EAAE,MAAM,CAAC,UAAU,EAAE,cAAc,CAqE/D,CAAC;AAEF,2EAA2E;AAC3E,eAAO,MAAM,eAAe,sCAC4C,CAAC;AAEzE,oDAAoD;AACpD,eAAO,MAAM,mBAAmB,SAAS,CAAC;AAE1C;;;;GAIG;AACH,MAAM,WAAW,qBAAqB;IACpC,IAAI,CAAC,EAAE;QAAE,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;QAAC,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;KAAE,GAAG,IAAI,CAAC;IACnE,MAAM,CAAC,EAAE;QAAE,YAAY,CAAC,EAAE,UAAU,GAAG,MAAM,GAAG,IAAI,CAAA;KAAE,GAAG,IAAI,CAAC;CAC/D;AAED;;;;;;;;;;GAUG;AACH,eAAO,MAAM,sBAAsB,2CAYlC,CAAC;AAEF,4EAA4E;AAC5E,eAAO,MAAM,iBAAiB;;IAMzB,CAAC"}
1
+ {"version":3,"file":"actionTypeMeta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*/
13
13
  import { resolveIconName } from '../../icons/legacyIconNames';
14
+ import { NodeActionEnums } from '../../enums/unitySystemEnums';
14
15
  import { ACTION_TYPES, ActionType } from './types';
15
16
  export { isRegistryIconName, LEGACY_ICON_MAP } from '../../icons/legacyIconNames';
16
17
  /** Complete metadata for every offered action type. */
@@ -84,11 +85,20 @@ export const ACTION_TYPE_META = {
84
85
  valueLabel: 'Function name'
85
86
  }
86
87
  };
87
- /** Label for a persisted `actionTypeId`, including ids we do not offer. */
88
+ /**
89
+ * Label for a persisted `actionTypeId`: an offered type's label, else the
90
+ * runtime `NodeActionEnums` name in sentence case ("Open maintenance engine"),
91
+ * else "Action type N" for an unknown id, or "Action" when there is no id.
92
+ */
88
93
  export const actionTypeLabel = (actionTypeId) => {
89
94
  var _a;
90
95
  var _b;
91
- return (_b = (_a = ACTION_TYPE_META[actionTypeId]) === null || _a === void 0 ? void 0 : _a.label) !== null && _b !== void 0 ? _b : `Action type ${actionTypeId}`;
96
+ if (actionTypeId == null)
97
+ return 'Action';
98
+ const runtimeName = NodeActionEnums[actionTypeId];
99
+ return ((_b = (_a = ACTION_TYPE_META[actionTypeId]) === null || _a === void 0 ? void 0 : _a.label) !== null && _b !== void 0 ? _b : (runtimeName
100
+ ? runtimeName.charAt(0) + runtimeName.slice(1).replace(/_/g, ' ').toLowerCase()
101
+ : `Action type ${actionTypeId}`));
92
102
  };
93
103
  /** Rendered when nothing better can be resolved. */
94
104
  export const GENERIC_ACTION_ICON = 'apps';
@@ -111,6 +121,15 @@ export const resolvePanelButtonIcon = (button) => {
111
121
  const typeIcon = (_d = ACTION_TYPE_META[(_c = button === null || button === void 0 ? void 0 : button.action) === null || _c === void 0 ? void 0 : _c.actionTypeId]) === null || _d === void 0 ? void 0 : _d.iconName;
112
122
  return typeIcon !== null && typeIcon !== void 0 ? typeIcon : GENERIC_ACTION_ICON;
113
123
  };
124
+ /**
125
+ * A button's visible (and accessible) name: the action's own name, else its
126
+ * type's label, so a button is never nameless. The one rule Inquiry's header
127
+ * buttons and Tree Builder's button list share.
128
+ */
129
+ export const actionButtonLabel = (action) => {
130
+ var _a;
131
+ return ((_a = action.name) === null || _a === void 0 ? void 0 : _a.trim()) || actionTypeLabel(action.actionTypeId);
132
+ };
114
133
  /** Every offered action type paired with its metadata, in offered order. */
115
134
  export const actionTypeOptions = () => ACTION_TYPES.map((actionTypeId) => (Object.assign({ actionTypeId }, ACTION_TYPE_META[actionTypeId])));
116
135
  //# sourceMappingURL=actionTypeMeta.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"actionTypeMeta.js","sourceRoot":"","sources":["../../../src/domain/actionPanel/actionTypeMeta.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AACH,OAAO,EAAE,eAAe,EAAE,MAAM,6BAA6B,CAAC;AAC9D,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAEnD,OAAO,EACL,kBAAkB,EAClB,eAAe,EAChB,MAAM,6BAA6B,CAAC;AAsBrC,uDAAuD;AACvD,MAAM,CAAC,MAAM,gBAAgB,GAAuC;IAClE,CAAC,UAAU,CAAC,UAAU,CAAC,EAAE;QACvB,KAAK,EAAE,aAAa;QACpB,QAAQ,EAAE,OAAO;QACjB,SAAS,EAAE,KAAK;KACjB;IACD,CAAC,UAAU,CAAC,aAAa,CAAC,EAAE;QAC1B,KAAK,EAAE,gBAAgB;QACvB,QAAQ,EAAE,aAAa;QACvB,SAAS,EAAE,UAAU;KACtB;IACD,CAAC,UAAU,CAAC,MAAM,CAAC,EAAE;QACnB,KAAK,EAAE,QAAQ;QACf,QAAQ,EAAE,YAAY;QACtB,SAAS,EAAE,YAAY;KACxB;IACD,CAAC,UAAU,CAAC,MAAM,CAAC,EAAE;QACnB,KAAK,EAAE,QAAQ;QACf,QAAQ,EAAE,MAAM;QAChB,SAAS,EAAE,YAAY;KACxB;IACD,CAAC,UAAU,CAAC,MAAM,CAAC,EAAE;QACnB,KAAK,EAAE,QAAQ;QACf,QA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AAN,MAAM,uBAAN,MAAM,CAAE,IAAI,0CAAE,IAAI,EAClB,SAAS,EACT,MAAA,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAE,IAAI,0CAAE,UAAU,CACzB,CAAC;IACF,IAAI,MAAM,IAAI,MAAM,KAAK,mBAAmB;QAAE,OAAO,MAAM,CAAC;IAC5D,MAAM,QAAQ,GACZ,MAAA,gBAAgB,CAAC,MAAA,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAE,MAAM,0CAAE,YAA0B,CAAC,0CAAE,QAAQ,CAAC;IACzE,OAAO,QAAQ,aAAR,QAAQ,cAAR,QAAQ,GAAI,mBAAmB,CAAC;AAAA,CACxC,CAAC;AAEF;;;;GAIG;AACH,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAAC,MAGjC,EAAU,EAAE;;WACX,CAAA,MAAA,MAAM,CAAC,IAAI,0CAAE,IAAI,EAAE,KAAI,eAAe,CAAC,MAAM,CAAC,YAAY,CAAC;CAAA,CAAC;AAE9D,4EAA4E;AAC5E,MAAM,CAAC,MAAM,iBAAiB,GAAG,GAE5B,EAAE,CACL,YAAY,CAAC,GAAG,CAAC,CAAC,YAAY,EAAE,EAAE,CAAC,iBACjC,YAAY,IACT,gBAAgB,CAAC,YAAY,CAAC,EACjC,CAAC,CAAC"}
@@ -1,3 +1,4 @@
1
+ import { NodeActionEnums } from "../../enums/unitySystemEnums.mjs";
1
2
  import { resolveIconName } from "../../icons/legacyIconNames.mjs";
2
3
  import { ACTION_TYPES, ActionType } from "./types.mjs";
3
4
  //#region src/domain/actionPanel/actionTypeMeta.ts
@@ -84,8 +85,16 @@ const ACTION_TYPE_META = {
84
85
  valueLabel: "Function name"
85
86
  }
86
87
  };
87
- /** Label for a persisted `actionTypeId`, including ids we do not offer. */
88
- const actionTypeLabel = (actionTypeId) => ACTION_TYPE_META[actionTypeId]?.label ?? `Action type ${actionTypeId}`;
88
+ /**
89
+ * Label for a persisted `actionTypeId`: an offered type's label, else the
90
+ * runtime `NodeActionEnums` name in sentence case ("Open maintenance engine"),
91
+ * else "Action type N" for an unknown id, or "Action" when there is no id.
92
+ */
93
+ const actionTypeLabel = (actionTypeId) => {
94
+ if (actionTypeId == null) return "Action";
95
+ const runtimeName = NodeActionEnums[actionTypeId];
96
+ return ACTION_TYPE_META[actionTypeId]?.label ?? (runtimeName ? runtimeName.charAt(0) + runtimeName.slice(1).replace(/_/g, " ").toLowerCase() : `Action type ${actionTypeId}`);
97
+ };
89
98
  /** Rendered when nothing better can be resolved. */
90
99
  const GENERIC_ACTION_ICON = "apps";
91
100
  /**
@@ -104,12 +113,18 @@ const resolvePanelButtonIcon = (button) => {
104
113
  if (chosen && chosen !== "apps") return chosen;
105
114
  return ACTION_TYPE_META[button?.action?.actionTypeId]?.iconName ?? "apps";
106
115
  };
116
+ /**
117
+ * A button's visible (and accessible) name: the action's own name, else its
118
+ * type's label, so a button is never nameless. The one rule Inquiry's header
119
+ * buttons and Tree Builder's button list share.
120
+ */
121
+ const actionButtonLabel = (action) => action.name?.trim() || actionTypeLabel(action.actionTypeId);
107
122
  /** Every offered action type paired with its metadata, in offered order. */
108
123
  const actionTypeOptions = () => ACTION_TYPES.map((actionTypeId) => ({
109
124
  actionTypeId,
110
125
  ...ACTION_TYPE_META[actionTypeId]
111
126
  }));
112
127
  //#endregion
113
- export { ACTION_TYPE_META, GENERIC_ACTION_ICON, actionTypeLabel, actionTypeOptions, resolvePanelButtonIcon };
128
+ export { ACTION_TYPE_META, GENERIC_ACTION_ICON, actionButtonLabel, actionTypeLabel, actionTypeOptions, resolvePanelButtonIcon };
114
129
 
115
130
  //# sourceMappingURL=actionTypeMeta.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"actionTypeMeta.mjs","names":["resolveIconName","ACTION_TYPES","ActionType","isRegistryIconName","LEGACY_ICON_MAP","ActionValueKind","ActionTypeMeta","label","iconName","valueKind","valueLabel","ACTION_TYPE_META","Record","ExecuteApi","StartWorkflow","Create","Update","Delete","Retrieve","Redirect","OpenExternalLink","OpenPageSplitScreen","OpenShellSplitScreen","OpenNotes","OpenReminders","ExecuteFunction","actionTypeLabel","actionTypeId","GENERIC_ACTION_ICON","PanelButtonIconSource","icon","name","fluentName","action","resolvePanelButtonIcon","button","chosen","undefined","typeIcon","actionTypeOptions","map"],"sources":["../../../src/domain/actionPanel/actionTypeMeta.ts"],"sourcesContent":["/**\n * Presentation metadata for action types, and icon-name resolution for panel\n * buttons.\n *\n * Two independent naming worlds meet here:\n * - the stencil icon registry (kebab-case names `udp-fluent-icon` can render)\n * - the LEGACY Fluent React icon names actually persisted in tenant panel\n * rows (`SplitIcon`, `ReminderTimeIcon`, `PictureTileIcon`, …)\n * `resolvePanelButtonIcon` bridges them through the shared `resolveIconName`,\n * falling back to an icon derived from what the action *does* so a button\n * always carries meaning.\n */\nimport { resolveIconName } from '../../icons/legacyIconNames';\nimport { ACTION_TYPES, ActionType } from './types';\n\nexport {\n isRegistryIconName,\n LEGACY_ICON_MAP\n} from '../../icons/legacyIconNames';\n\n/** Which value control an action type needs in an editor. */\nexport type ActionValueKind =\n | 'api'\n | 'apiAndPage'\n | 'page'\n | 'text'\n | 'workflow'\n | 'none';\n\nexport interface ActionTypeMeta {\n /** Sentence-case author-facing label. */\n label: string;\n /** Stencil icon-registry name representing the action type. */\n iconName: string;\n /** What `ActionConfig.value` (and `parameters.pageId`) holds. */\n valueKind: ActionValueKind;\n /** Field label for the `text` kinds. */\n valueLabel?: string;\n}\n\n/** Complete metadata for every offered action type. */\nexport const ACTION_TYPE_META: Record<ActionType, ActionTypeMeta> = {\n [ActionType.ExecuteApi]: {\n label: 'Execute API',\n iconName: 'flash',\n valueKind: 'api'\n },\n [ActionType.StartWorkflow]: {\n label: 'Start workflow',\n iconName: 'branch-fork',\n valueKind: 'workflow'\n },\n [ActionType.Create]: {\n label: 'Create',\n iconName: 'add-circle',\n valueKind: 'apiAndPage'\n },\n [ActionType.Update]: {\n label: 'Update',\n iconName: 'edit',\n valueKind: 'apiAndPage'\n },\n [ActionType.Delete]: {\n label: 'Delete',\n iconName: 'delete',\n valueKind: 'api'\n },\n [ActionType.Retrieve]: {\n label: 'Retrieve',\n iconName: 'search',\n valueKind: 'apiAndPage'\n },\n [ActionType.Redirect]: {\n label: 'Redirect',\n iconName: 'arrow-return',\n valueKind: 'text',\n valueLabel: 'Path'\n },\n [ActionType.OpenExternalLink]: {\n label: 'Open external link',\n iconName: 'globe',\n valueKind: 'text',\n valueLabel: 'URL'\n },\n [ActionType.OpenPageSplitScreen]: {\n label: 'Open page split screen',\n iconName: 'board-split',\n valueKind: 'page'\n },\n [ActionType.OpenShellSplitScreen]: {\n label: 'Open shell split screen',\n iconName: 'panel-right-expand',\n valueKind: 'page'\n },\n [ActionType.OpenNotes]: {\n label: 'Open notes',\n iconName: 'notebook',\n valueKind: 'none'\n },\n [ActionType.OpenReminders]: {\n label: 'Open reminders',\n iconName: 'clock',\n valueKind: 'none'\n },\n [ActionType.ExecuteFunction]: {\n label: 'Execute function',\n iconName: 'play',\n valueKind: 'text',\n valueLabel: 'Function name'\n }\n};\n\n/** Label for a persisted `actionTypeId`, including ids we do not offer. */\nexport const actionTypeLabel = (actionTypeId: ActionType): string =>\n ACTION_TYPE_META[actionTypeId]?.label ?? `Action type ${actionTypeId}`;\n\n/** Rendered when nothing better can be resolved. */\nexport const GENERIC_ACTION_ICON = 'apps';\n\n/**\n * The minimum a button needs for icon resolution: the stored icon and what\n * the action does. `PanelButton` (the editor's shape) satisfies it, and so\n * does the Inquiry wire's `PanelActionWire` — one resolver, both worlds.\n */\nexport interface PanelButtonIconSource {\n icon?: { name?: string | null; fluentName?: string | null } | null;\n action?: { actionTypeId?: ActionType | number | null } | null;\n}\n\n/**\n * Icon name to render for a panel button, in precedence order:\n * 1. the stored icon, through `resolveIconName` — UNLESS it resolves to\n * `GENERIC_ACTION_ICON`, which carries no meaning\n * 2. the icon for what the action does (its action type)\n * 3. the generic fallback — only when the action type is unknown too\n *\n * The generic icon is never allowed to beat the type icon: a stored `apps`\n * means \"nobody chose an icon\", so a Delete button still shows the delete icon\n * rather than the anonymous tile.\n */\nexport const resolvePanelButtonIcon = (\n button: PanelButtonIconSource\n): string => {\n const chosen = resolveIconName(\n button?.icon?.name,\n undefined,\n button?.icon?.fluentName\n );\n if (chosen && chosen !== GENERIC_ACTION_ICON) return chosen;\n const typeIcon =\n ACTION_TYPE_META[button?.action?.actionTypeId as ActionType]?.iconName;\n return typeIcon ?? GENERIC_ACTION_ICON;\n};\n\n/** Every offered action type paired with its metadata, in offered order. */\nexport const actionTypeOptions = (): readonly (ActionTypeMeta & {\n actionTypeId: ActionType;\n})[] =>\n ACTION_TYPES.map((actionTypeId) => ({\n actionTypeId,\n ...ACTION_TYPE_META[actionTypeId]\n }));\n"],"mappings":";;;;;;;;;;;;;;;;AAyCA,MAAaW,mBAAuD;EACjET,WAAWW,aAAa;EACvBN,OAAO;EACPC,UAAU;EACVC,WAAW;EACZ;EACAP,WAAWY,gBAAgB;EAC1BP,OAAO;EACPC,UAAU;EACVC,WAAW;EACZ;EACAP,WAAWa,SAAS;EACnBR,OAAO;EACPC,UAAU;EACVC,WAAW;EACZ;EACAP,WAAWc,SAAS;EACnBT,OAAO;EACPC,UAAU;EACVC,WAAW;EACZ;EACAP,WAAWe,SAAS;EACnBV,OAAO;EACPC,UAAU;EACVC,WAAW;EACZ;EACAP,WAAWgB,WAAW;EACrBX,OAAO;EACPC,UAAU;EACVC,WAAW;EACZ;EACAP,WAAWiB,WAAW;EACrBZ,OAAO;EACPC,UAAU;EACVC,WAAW;EACXC,YAAY;EACb;EACAR,WAAWkB,mBAAmB;EAC7Bb,OAAO;EACPC,UAAU;EACVC,WAAW;EACXC,YAAY;EACb;EACAR,WAAWmB,sBAAsB;EAChCd,OAAO;EACPC,UAAU;EACVC,WAAW;EACZ;EACAP,WAAWoB,uBAAuB;EACjCf,OAAO;EACPC,UAAU;EACVC,WAAW;EACZ;EACAP,WAAWqB,YAAY;EACtBhB,OAAO;EACPC,UAAU;EACVC,WAAW;EACZ;EACAP,WAAWsB,gBAAgB;EAC1BjB,OAAO;EACPC,UAAU;EACVC,WAAW;EACZ;EACAP,WAAWuB,kBAAkB;EAC5BlB,OAAO;EACPC,UAAU;EACVC,WAAW;EACXC,YAAY;EACd;CACD;;AAGD,MAAagB,mBAAmBC,iBAC9BhB,iBAAiBgB,eAAepB,SAAS,eAAeoB;;AAG1D,MAAaC,sBAAsB;;;;;;;;;;;;AAuBnC,MAAaM,0BACXC,WACW;CACX,MAAMC,SAASpC,gBACbmC,QAAQL,MAAMC,MACdM,KAAAA,GACAF,QAAQL,MAAME,WACf;AACD,KAAII,UAAUA,WAAAA,OAAgC,QAAOA;AAGrD,QADEzB,iBAAiBwB,QAAQF,QAAQN,eAA6BnB,YAAAA;;;AAKlE,MAAa+B,0BAGXtC,aAAauC,KAAKb,kBAAkB;CAClCA;CACA,GAAGhB,iBAAiBgB;CACrB,EAAE"}
1
+ {"version":3,"file":"actionTypeMeta.mjs","names":["resolveIconName","NodeActionEnums","ACTION_TYPES","ActionType","isRegistryIconName","LEGACY_ICON_MAP","ActionValueKind","ActionTypeMeta","label","iconName","valueKind","valueLabel","ACTION_TYPE_META","Record","ExecuteApi","StartWorkflow","Create","Update","Delete","Retrieve","Redirect","OpenExternalLink","OpenPageSplitScreen","OpenShellSplitScreen","OpenNotes","OpenReminders","ExecuteFunction","actionTypeLabel","actionTypeId","runtimeName","charAt","slice","replace","toLowerCase","GENERIC_ACTION_ICON","PanelButtonIconSource","icon","name","fluentName","action","resolvePanelButtonIcon","button","chosen","undefined","typeIcon","actionButtonLabel","trim","actionTypeOptions","map"],"sources":["../../../src/domain/actionPanel/actionTypeMeta.ts"],"sourcesContent":["/**\n * Presentation metadata for action types, and icon-name resolution for panel\n * buttons.\n *\n * Two independent naming worlds meet here:\n * - the stencil icon registry (kebab-case names `udp-fluent-icon` can render)\n * - the LEGACY Fluent React icon names actually persisted in tenant panel\n * rows (`SplitIcon`, `ReminderTimeIcon`, `PictureTileIcon`, …)\n * `resolvePanelButtonIcon` bridges them through the shared `resolveIconName`,\n * falling back to an icon derived from what the action *does* so a button\n * always carries meaning.\n */\nimport { resolveIconName } from '../../icons/legacyIconNames';\nimport { NodeActionEnums } from '../../enums/unitySystemEnums';\nimport { ACTION_TYPES, ActionType } from './types';\n\nexport {\n isRegistryIconName,\n LEGACY_ICON_MAP\n} from '../../icons/legacyIconNames';\n\n/** Which value control an action type needs in an editor. */\nexport type ActionValueKind =\n | 'api'\n | 'apiAndPage'\n | 'page'\n | 'text'\n | 'workflow'\n | 'none';\n\nexport interface ActionTypeMeta {\n /** Sentence-case author-facing label. */\n label: string;\n /** Stencil icon-registry name representing the action type. */\n iconName: string;\n /** What `ActionConfig.value` (and `parameters.pageId`) holds. */\n valueKind: ActionValueKind;\n /** Field label for the `text` kinds. */\n valueLabel?: string;\n}\n\n/** Complete metadata for every offered action type. */\nexport const ACTION_TYPE_META: Record<ActionType, ActionTypeMeta> = {\n [ActionType.ExecuteApi]: {\n label: 'Execute API',\n iconName: 'flash',\n valueKind: 'api'\n },\n [ActionType.StartWorkflow]: {\n label: 'Start workflow',\n iconName: 'branch-fork',\n valueKind: 'workflow'\n },\n [ActionType.Create]: {\n label: 'Create',\n iconName: 'add-circle',\n valueKind: 'apiAndPage'\n },\n [ActionType.Update]: {\n label: 'Update',\n iconName: 'edit',\n valueKind: 'apiAndPage'\n },\n [ActionType.Delete]: {\n label: 'Delete',\n iconName: 'delete',\n valueKind: 'api'\n },\n [ActionType.Retrieve]: {\n label: 'Retrieve',\n iconName: 'search',\n valueKind: 'apiAndPage'\n },\n [ActionType.Redirect]: {\n label: 'Redirect',\n iconName: 'arrow-return',\n valueKind: 'text',\n valueLabel: 'Path'\n },\n [ActionType.OpenExternalLink]: {\n label: 'Open external link',\n iconName: 'globe',\n valueKind: 'text',\n valueLabel: 'URL'\n },\n [ActionType.OpenPageSplitScreen]: {\n label: 'Open page split screen',\n iconName: 'board-split',\n valueKind: 'page'\n },\n [ActionType.OpenShellSplitScreen]: {\n label: 'Open shell split screen',\n iconName: 'panel-right-expand',\n valueKind: 'page'\n },\n [ActionType.OpenNotes]: {\n label: 'Open notes',\n iconName: 'notebook',\n valueKind: 'none'\n },\n [ActionType.OpenReminders]: {\n label: 'Open reminders',\n iconName: 'clock',\n valueKind: 'none'\n },\n [ActionType.ExecuteFunction]: {\n label: 'Execute function',\n iconName: 'play',\n valueKind: 'text',\n valueLabel: 'Function name'\n }\n};\n\n/**\n * Label for a persisted `actionTypeId`: an offered type's label, else the\n * runtime `NodeActionEnums` name in sentence case (\"Open maintenance engine\"),\n * else \"Action type N\" for an unknown id, or \"Action\" when there is no id.\n */\nexport const actionTypeLabel = (actionTypeId?: number | null): string => {\n if (actionTypeId == null) return 'Action';\n const runtimeName: string | undefined = NodeActionEnums[actionTypeId];\n return (\n ACTION_TYPE_META[actionTypeId as ActionType]?.label ??\n (runtimeName\n ? runtimeName.charAt(0) + runtimeName.slice(1).replace(/_/g, ' ').toLowerCase()\n : `Action type ${actionTypeId}`)\n );\n};\n\n/** Rendered when nothing better can be resolved. */\nexport const GENERIC_ACTION_ICON = 'apps';\n\n/**\n * The minimum a button needs for icon resolution: the stored icon and what\n * the action does. `PanelButton` (the editor's shape) satisfies it, and so\n * does the Inquiry wire's `PanelActionWire` — one resolver, both worlds.\n */\nexport interface PanelButtonIconSource {\n icon?: { name?: string | null; fluentName?: string | null } | null;\n action?: { actionTypeId?: ActionType | number | null } | null;\n}\n\n/**\n * Icon name to render for a panel button, in precedence order:\n * 1. the stored icon, through `resolveIconName` — UNLESS it resolves to\n * `GENERIC_ACTION_ICON`, which carries no meaning\n * 2. the icon for what the action does (its action type)\n * 3. the generic fallback — only when the action type is unknown too\n *\n * The generic icon is never allowed to beat the type icon: a stored `apps`\n * means \"nobody chose an icon\", so a Delete button still shows the delete icon\n * rather than the anonymous tile.\n */\nexport const resolvePanelButtonIcon = (\n button: PanelButtonIconSource\n): string => {\n const chosen = resolveIconName(\n button?.icon?.name,\n undefined,\n button?.icon?.fluentName\n );\n if (chosen && chosen !== GENERIC_ACTION_ICON) return chosen;\n const typeIcon =\n ACTION_TYPE_META[button?.action?.actionTypeId as ActionType]?.iconName;\n return typeIcon ?? GENERIC_ACTION_ICON;\n};\n\n/**\n * A button's visible (and accessible) name: the action's own name, else its\n * type's label, so a button is never nameless. The one rule Inquiry's header\n * buttons and Tree Builder's button list share.\n */\nexport const actionButtonLabel = (action: {\n name?: string | null;\n actionTypeId?: number | null;\n}): string =>\n action.name?.trim() || actionTypeLabel(action.actionTypeId);\n\n/** Every offered action type paired with its metadata, in offered order. */\nexport const actionTypeOptions = (): readonly (ActionTypeMeta & {\n actionTypeId: ActionType;\n})[] =>\n ACTION_TYPES.map((actionTypeId) => ({\n actionTypeId,\n ...ACTION_TYPE_META[actionTypeId]\n }));\n"],"mappings":";;;;;;;;;;;;;;;;;AA0CA,MAAaY,mBAAuD;EACjET,WAAWW,aAAa;EACvBN,OAAO;EACPC,UAAU;EACVC,WAAW;EACZ;EACAP,WAAWY,gBAAgB;EAC1BP,OAAO;EACPC,UAAU;EACVC,WAAW;EACZ;EACAP,WAAWa,SAAS;EACnBR,OAAO;EACPC,UAAU;EACVC,WAAW;EACZ;EACAP,WAAWc,SAAS;EACnBT,OAAO;EACPC,UAAU;EACVC,WAAW;EACZ;EACAP,WAAWe,SAAS;EACnBV,OAAO;EACPC,UAAU;EACVC,WAAW;EACZ;EACAP,WAAWgB,WAAW;EACrBX,OAAO;EACPC,UAAU;EACVC,WAAW;EACZ;EACAP,WAAWiB,WAAW;EACrBZ,OAAO;EACPC,UAAU;EACVC,WAAW;EACXC,YAAY;EACb;EACAR,WAAWkB,mBAAmB;EAC7Bb,OAAO;EACPC,UAAU;EACVC,WAAW;EACXC,YAAY;EACb;EACAR,WAAWmB,sBAAsB;EAChCd,OAAO;EACPC,UAAU;EACVC,WAAW;EACZ;EACAP,WAAWoB,uBAAuB;EACjCf,OAAO;EACPC,UAAU;EACVC,WAAW;EACZ;EACAP,WAAWqB,YAAY;EACtBhB,OAAO;EACPC,UAAU;EACVC,WAAW;EACZ;EACAP,WAAWsB,gBAAgB;EAC1BjB,OAAO;EACPC,UAAU;EACVC,WAAW;EACZ;EACAP,WAAWuB,kBAAkB;EAC5BlB,OAAO;EACPC,UAAU;EACVC,WAAW;EACXC,YAAY;EACd;CACD;;;;;;AAOD,MAAagB,mBAAmBC,iBAAyC;AACvE,KAAIA,gBAAgB,KAAM,QAAO;CACjC,MAAMC,cAAkC5B,gBAAgB2B;AACxD,QACEhB,iBAAiBgB,eAA6BpB,UAC7CqB,cACGA,YAAYC,OAAO,EAAE,GAAGD,YAAYE,MAAM,EAAE,CAACC,QAAQ,MAAM,IAAI,CAACC,aAAa,GAC7E,eAAeL;;;AAKvB,MAAaM,sBAAsB;;;;;;;;;;;;AAuBnC,MAAaM,0BACXC,WACW;CACX,MAAMC,SAAS1C,gBACbyC,QAAQL,MAAMC,MACdM,KAAAA,GACAF,QAAQL,MAAME,WACf;AACD,KAAII,UAAUA,WAAAA,OAAgC,QAAOA;AAGrD,QADE9B,iBAAiB6B,QAAQF,QAAQX,eAA6BnB,YAAAA;;;;;;;AASlE,MAAaoC,qBAAqBN,WAIhCA,OAAOF,MAAMS,MAAM,IAAInB,gBAAgBY,OAAOX,aAAa;;AAG7D,MAAamB,0BAGX7C,aAAa8C,KAAKpB,kBAAkB;CAClCA;CACA,GAAGhB,iBAAiBgB;CACrB,EAAE"}
@@ -0,0 +1,67 @@
1
+ /**
2
+ * THE order of a level's header buttons. Inquiry v2's header
3
+ * (resolveHeaderActions) and the Tree Builder's button list both sort by it, so
4
+ * the builder lists exactly what the runtime renders; the header's overflow
5
+ * menu then sections this order by `groupName` (assignMenuSections).
6
+ *
7
+ * The key, most significant first:
8
+ * 1. The panel's index among the level's attachments — v1 rendered each
9
+ * panel's buttons together (ActionPanelPlacement.jsx).
10
+ * 2. The button's menu group (case-insensitive; ungrouped is a group of its
11
+ * own), ranked by its lowest `sequence`, then by its first appearance in
12
+ * the tree read — the read's array order is the database's row order, not
13
+ * an authored one, so it only breaks a tie. Legacy panels restart
14
+ * `sequence` per group (Account 1..14, then Workflow 1..6): every group
15
+ * ties at 1 and they keep v1's stored-array order. A panel the builder
16
+ * writes numbers its buttons 1..n in display order (moveButtonInOrder), so
17
+ * its groups rank as shown. Groups never interleave.
18
+ * 3. `sequence` within the group.
19
+ * 4. The button's position in the TREE READ's copy of its panel: v1 rendered
20
+ * `panelActions` in that array order, and the product's panels store many
21
+ * buttons at one sequence. The panel library lists the same panel's buttons
22
+ * in another order, so an editor holding the library copy takes positions
23
+ * from the tree read's (`treeReadPositions`). A button that copy does not
24
+ * hold yet (a new one) sorts after those it does.
25
+ * 5. Name, then action id — a total order.
26
+ */
27
+ import { Panel, PanelButton } from './types';
28
+ export interface ButtonOrderKey {
29
+ /** The panel's index among the level's panel attachments. */
30
+ panelIndex: number;
31
+ /** The lowest `sequence` in the button's group in its panel. */
32
+ groupSequence: number;
33
+ /** First tree-read position of the button's group in its panel. */
34
+ groupRank: number;
35
+ /** The button's group (buttonGroupKey). */
36
+ group: string;
37
+ sequence: number;
38
+ /** Index in the tree read's copy of the panel; NOT_IN_READ when absent. */
39
+ position: number;
40
+ /** The action's name, trimmed. */
41
+ name: string;
42
+ actionId: string;
43
+ }
44
+ /** Where a button sits in the tree read's copy of its panel. */
45
+ export type ButtonPosition = (button: PanelButton, index: number) => number;
46
+ /** A button's menu group: its trimmed, lower-cased name; '' when ungrouped. */
47
+ export declare const buttonGroupKey: (button: Pick<PanelButton, "groupName">) => string;
48
+ /**
49
+ * Positions from the tree read's copy of a panel, matching a button by its
50
+ * association id, else its action id.
51
+ */
52
+ export declare const treeReadPositions: (read: Panel) => ButtonPosition;
53
+ /** Array.sort comparator over ButtonOrderKey — a total order. */
54
+ export declare const compareButtonOrder: (a: ButtonOrderKey, b: ButtonOrderKey) => number;
55
+ /** Every button's key, by index into `panel.buttons`. */
56
+ export declare const panelOrderKeys: (panel: Panel, panelIndex?: number, positionOf?: ButtonPosition) => ButtonOrderKey[];
57
+ /** Indexes into `panel.buttons`, in the canonical order. */
58
+ export declare const panelButtonOrder: (panel: Panel, positionOf?: ButtonPosition) => number[];
59
+ /**
60
+ * Move the button at `index` one slot within its menu group, then number the
61
+ * whole panel 1..n in the new display order — so `sequence` alone says the
62
+ * order (group ranks included) whatever row order the database returns. A
63
+ * move never leaves its group. Array order is kept (callers address buttons
64
+ * by index). Returns the same panel when the move is not possible.
65
+ */
66
+ export declare const moveButtonInOrder: (panel: Panel, index: number, direction: "down" | "up", positionOf?: ButtonPosition) => Panel;
67
+ //# sourceMappingURL=buttonOrder.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"buttonOrder.d.ts","sourceRoot":"","sources":["../../../src/domain/actionPanel/buttonOrder.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,OAAO,EAAE,KAAK,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAE7C,MAAM,WAAW,cAAc;IAC7B,6DAA6D;IAC7D,UAAU,EAAE,MAAM,CAAC;IACnB,gEAAgE;IAChE,aAAa,EAAE,MAAM,CAAC;IACtB,mEAAmE;IACnE,SAAS,EAAE,MAAM,CAAC;IAClB,2CAA2C;IAC3C,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,MAAM,CAAC;IACjB,2EAA2E;IAC3E,QAAQ,EAAE,MAAM,CAAC;IACjB,kCAAkC;IAClC,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED,gEAAgE;AAChE,MAAM,MAAM,cAAc,GAAG,CAAC,MAAM,EAAE,WAAW,EAAE,KAAK,EAAE,MAAM,KAAK,MAAM,CAAC;AAgB5E,+EAA+E;AAC/E,eAAO,MAAM,cAAc,oDAE8B,CAAC;AAE1D;;;GAGG;AACH,eAAO,MAAM,iBAAiB,iCAY7B,CAAC;AAEF,mEAAiE;AACjE,eAAO,MAAM,kBAAkB,kDAWO,CAAC;AAEvC,yDAAyD;AACzD,eAAO,MAAM,cAAc,sFAgC1B,CAAC;AAEF,4DAA4D;AAC5D,eAAO,MAAM,gBAAgB,yDAQ5B,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,iBAAiB,+FAyB7B,CAAC"}
@@ -0,0 +1,105 @@
1
+ /** The position of a button the tree read's copy does not hold. */
2
+ const NOT_IN_READ = Number.MAX_SAFE_INTEGER;
3
+ /** The panel IS the tree read's copy: position = array index. */
4
+ const arrayPosition = (_button, index) => index;
5
+ /** The row-level action id the runtime keys on, else the action's own. */
6
+ const rowActionId = (button) => {
7
+ var _a;
8
+ var _b;
9
+ const rowId = (_a = button.unknownKeys) === null || _a === void 0 ? void 0 : _a.actionId;
10
+ return typeof rowId === 'string' && rowId
11
+ ? rowId
12
+ : (_b = button.action.actionId) !== null && _b !== void 0 ? _b : '';
13
+ };
14
+ /** A button's menu group: its trimmed, lower-cased name; '' when ungrouped. */
15
+ export const buttonGroupKey = (button) => {
16
+ var _a;
17
+ var _b;
18
+ return (_b = (_a = button.groupName) === null || _a === void 0 ? void 0 : _a.trim().toLowerCase()) !== null && _b !== void 0 ? _b : '';
19
+ };
20
+ /**
21
+ * Positions from the tree read's copy of a panel, matching a button by its
22
+ * association id, else its action id.
23
+ */
24
+ export const treeReadPositions = (read) => {
25
+ var _a;
26
+ const readButtons = (_a = read === null || read === void 0 ? void 0 : read.buttons) !== null && _a !== void 0 ? _a : [];
27
+ return (button) => {
28
+ const actionId = rowActionId(button);
29
+ const at = readButtons.findIndex((candidate) => (!!button.panelActionId &&
30
+ candidate.panelActionId === button.panelActionId) ||
31
+ (!!actionId && rowActionId(candidate) === actionId));
32
+ return at < 0 ? NOT_IN_READ : at;
33
+ };
34
+ };
35
+ /** Array.sort comparator over ButtonOrderKey — a total order. */
36
+ export const compareButtonOrder = (a, b) => a.panelIndex - b.panelIndex ||
37
+ a.groupSequence - b.groupSequence ||
38
+ a.groupRank - b.groupRank ||
39
+ a.group.localeCompare(b.group) ||
40
+ a.sequence - b.sequence ||
41
+ a.position - b.position ||
42
+ a.name.localeCompare(b.name) ||
43
+ a.actionId.localeCompare(b.actionId);
44
+ /** Every button's key, by index into `panel.buttons`. */
45
+ export const panelOrderKeys = (panel, panelIndex = 0, positionOf = arrayPosition) => {
46
+ const positions = panel.buttons.map(positionOf);
47
+ const groupRank = new Map();
48
+ const groupSequence = new Map();
49
+ panel.buttons.forEach((button, index) => {
50
+ var _a, _b;
51
+ const group = buttonGroupKey(button);
52
+ groupRank.set(group, Math.min((_a = groupRank.get(group)) !== null && _a !== void 0 ? _a : NOT_IN_READ, positions[index]));
53
+ groupSequence.set(group, Math.min((_b = groupSequence.get(group)) !== null && _b !== void 0 ? _b : Infinity, button.sequence));
54
+ });
55
+ return panel.buttons.map((button, index) => {
56
+ var _a, _b;
57
+ const group = buttonGroupKey(button);
58
+ return {
59
+ panelIndex,
60
+ groupSequence: (_a = groupSequence.get(group)) !== null && _a !== void 0 ? _a : Infinity,
61
+ groupRank: (_b = groupRank.get(group)) !== null && _b !== void 0 ? _b : NOT_IN_READ,
62
+ group,
63
+ sequence: button.sequence,
64
+ position: positions[index],
65
+ name: button.action.name.trim(),
66
+ actionId: rowActionId(button)
67
+ };
68
+ });
69
+ };
70
+ /** Indexes into `panel.buttons`, in the canonical order. */
71
+ export const panelButtonOrder = (panel, positionOf) => {
72
+ const keys = panelOrderKeys(panel, 0, positionOf);
73
+ return keys
74
+ .map((_key, index) => index)
75
+ .sort((a, b) => compareButtonOrder(keys[a], keys[b]));
76
+ };
77
+ /**
78
+ * Move the button at `index` one slot within its menu group, then number the
79
+ * whole panel 1..n in the new display order — so `sequence` alone says the
80
+ * order (group ranks included) whatever row order the database returns. A
81
+ * move never leaves its group. Array order is kept (callers address buttons
82
+ * by index). Returns the same panel when the move is not possible.
83
+ */
84
+ export const moveButtonInOrder = (panel, index, direction, positionOf) => {
85
+ const button = panel.buttons[index];
86
+ if (!button)
87
+ return panel;
88
+ const group = buttonGroupKey(button);
89
+ const order = panelButtonOrder(panel, positionOf);
90
+ const inGroup = order.filter((at) => buttonGroupKey(panel.buttons[at]) === group);
91
+ const from = inGroup.indexOf(index);
92
+ const to = direction === 'up' ? from - 1 : from + 1;
93
+ if (to < 0 || to >= inGroup.length)
94
+ return panel;
95
+ const a = order.indexOf(inGroup[from]);
96
+ const b = order.indexOf(inGroup[to]);
97
+ [order[a], order[b]] = [order[b], order[a]];
98
+ const buttons = panel.buttons.slice();
99
+ order.forEach((at, rank) => {
100
+ if (buttons[at].sequence !== rank + 1)
101
+ buttons[at] = Object.assign(Object.assign({}, buttons[at]), { sequence: rank + 1 });
102
+ });
103
+ return Object.assign(Object.assign({}, panel), { buttons });
104
+ };
105
+ //# sourceMappingURL=buttonOrder.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"buttonOrder.js","sourceRoot":"","sources":["../../../src/domain/actionPanel/buttonOrder.ts"],"names":[],"mappings":"AAgDA,mEAAmE;AACnE,MAAM,WAAW,GAAG,MAAM,CAAC,gBAAgB,CAAC;AAE5C,iEAAiE;AACjE,MAAM,aAAa,GAAmB,CAAC,OAAO,EAAE,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC;AAEhE,0EAA0E;AAC1E,MAAM,WAAW,GAAG,CAAC,MAAmB,EAAU,EAAE,CAAC;;;IACnD,MAAM,KAAK,GAAG,MAAA,MAAM,CAAC,WAAW,0CAAE,QAAQ,CAAC;IAC3C,OAAO,OAAO,KAAK,KAAK,QAAQ,IAAI,KAAK;QACvC,CAAC,CAAC,KAAK;QACP,CAAC,OAAC,MAAM,CAAC,MAAM,CAAC,QAAQ,mCAAI,EAAE,CAAC;AAAA,CAClC,CAAC;AAEF,+EAA+E;AAC/E,MAAM,CAAC,MAAM,cAAc,GAAG,CAC5B,MAAsC,EAC9B,EAAE;;;iBAAC,MAAA,MAAM,CAAC,SAAS,0CAAE,IAAI,GAAG,WAAW,EAAE,mCAAI,EAAE;C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;IACpD,IAAI,EAAE,GAAG,CAAC,IAAI,EAAE,IAAI,OAAO,CAAC,MAAM;QAAE,OAAO,KAAK,CAAC;IACjD,MAAM,CAAC,GAAG,KAAK,CAAC,OAAO,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC;IACvC,MAAM,CAAC,GAAG,KAAK,CAAC,OAAO,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC,CAAC;IACrC,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,KAAK,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC;IAC5C,MAAM,OAAO,GAAG,KAAK,CAAC,OAAO,CAAC,KAAK,EAAE,CAAC;IACtC,KAAK,CAAC,OAAO,CAAC,CAAC,EAAE,EAAE,IAAI,EAAE,EAAE,CAAC;QAC1B,IAAI,OAAO,CAAC,EAAE,CAAC,CAAC,QAAQ,KAAK,IAAI,GAAG,CAAC;YACnC,OAAO,CAAC,EAAE,CAAC,mCAAQ,OAAO,CAAC,EAAE,CAAC,KAAE,QAAQ,EAAE,IAAI,GAAG,CAAC,GAAE,CAAC;IAAA,CACxD,CAAC,CAAC;IACH,uCAAY,KAAK,KAAE,OAAO,IAAG;AAAA,CAC9B,CAAC"}
@@ -0,0 +1,90 @@
1
+ //#region src/domain/actionPanel/buttonOrder.ts
2
+ /** The position of a button the tree read's copy does not hold. */
3
+ const NOT_IN_READ = Number.MAX_SAFE_INTEGER;
4
+ /** The panel IS the tree read's copy: position = array index. */
5
+ const arrayPosition = (_button, index) => index;
6
+ /** The row-level action id the runtime keys on, else the action's own. */
7
+ const rowActionId = (button) => {
8
+ const rowId = button.unknownKeys?.actionId;
9
+ return typeof rowId === "string" && rowId ? rowId : button.action.actionId ?? "";
10
+ };
11
+ /** A button's menu group: its trimmed, lower-cased name; '' when ungrouped. */
12
+ const buttonGroupKey = (button) => button.groupName?.trim().toLowerCase() ?? "";
13
+ /**
14
+ * Positions from the tree read's copy of a panel, matching a button by its
15
+ * association id, else its action id.
16
+ */
17
+ const treeReadPositions = (read) => {
18
+ const readButtons = read?.buttons ?? [];
19
+ return (button) => {
20
+ const actionId = rowActionId(button);
21
+ const at = readButtons.findIndex((candidate) => !!button.panelActionId && candidate.panelActionId === button.panelActionId || !!actionId && rowActionId(candidate) === actionId);
22
+ return at < 0 ? NOT_IN_READ : at;
23
+ };
24
+ };
25
+ /** Array.sort comparator over ButtonOrderKey — a total order. */
26
+ const compareButtonOrder = (a, b) => a.panelIndex - b.panelIndex || a.groupSequence - b.groupSequence || a.groupRank - b.groupRank || a.group.localeCompare(b.group) || a.sequence - b.sequence || a.position - b.position || a.name.localeCompare(b.name) || a.actionId.localeCompare(b.actionId);
27
+ /** Every button's key, by index into `panel.buttons`. */
28
+ const panelOrderKeys = (panel, panelIndex = 0, positionOf = arrayPosition) => {
29
+ const positions = panel.buttons.map(positionOf);
30
+ const groupRank = /* @__PURE__ */ new Map();
31
+ const groupSequence = /* @__PURE__ */ new Map();
32
+ panel.buttons.forEach((button, index) => {
33
+ const group = buttonGroupKey(button);
34
+ groupRank.set(group, Math.min(groupRank.get(group) ?? NOT_IN_READ, positions[index]));
35
+ groupSequence.set(group, Math.min(groupSequence.get(group) ?? Infinity, button.sequence));
36
+ });
37
+ return panel.buttons.map((button, index) => {
38
+ const group = buttonGroupKey(button);
39
+ return {
40
+ panelIndex,
41
+ groupSequence: groupSequence.get(group) ?? Infinity,
42
+ groupRank: groupRank.get(group) ?? NOT_IN_READ,
43
+ group,
44
+ sequence: button.sequence,
45
+ position: positions[index],
46
+ name: button.action.name.trim(),
47
+ actionId: rowActionId(button)
48
+ };
49
+ });
50
+ };
51
+ /** Indexes into `panel.buttons`, in the canonical order. */
52
+ const panelButtonOrder = (panel, positionOf) => {
53
+ const keys = panelOrderKeys(panel, 0, positionOf);
54
+ return keys.map((_key, index) => index).sort((a, b) => compareButtonOrder(keys[a], keys[b]));
55
+ };
56
+ /**
57
+ * Move the button at `index` one slot within its menu group, then number the
58
+ * whole panel 1..n in the new display order — so `sequence` alone says the
59
+ * order (group ranks included) whatever row order the database returns. A
60
+ * move never leaves its group. Array order is kept (callers address buttons
61
+ * by index). Returns the same panel when the move is not possible.
62
+ */
63
+ const moveButtonInOrder = (panel, index, direction, positionOf) => {
64
+ const button = panel.buttons[index];
65
+ if (!button) return panel;
66
+ const group = buttonGroupKey(button);
67
+ const order = panelButtonOrder(panel, positionOf);
68
+ const inGroup = order.filter((at) => buttonGroupKey(panel.buttons[at]) === group);
69
+ const from = inGroup.indexOf(index);
70
+ const to = direction === "up" ? from - 1 : from + 1;
71
+ if (to < 0 || to >= inGroup.length) return panel;
72
+ const a = order.indexOf(inGroup[from]);
73
+ const b = order.indexOf(inGroup[to]);
74
+ [order[a], order[b]] = [order[b], order[a]];
75
+ const buttons = panel.buttons.slice();
76
+ order.forEach((at, rank) => {
77
+ if (buttons[at].sequence !== rank + 1) buttons[at] = {
78
+ ...buttons[at],
79
+ sequence: rank + 1
80
+ };
81
+ });
82
+ return {
83
+ ...panel,
84
+ buttons
85
+ };
86
+ };
87
+ //#endregion
88
+ export { buttonGroupKey, compareButtonOrder, moveButtonInOrder, panelButtonOrder, panelOrderKeys, treeReadPositions };
89
+
90
+ //# sourceMappingURL=buttonOrder.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"buttonOrder.mjs","names":["Panel","PanelButton","ButtonOrderKey","panelIndex","groupSequence","groupRank","group","sequence","position","name","actionId","ButtonPosition","button","index","NOT_IN_READ","Number","MAX_SAFE_INTEGER","arrayPosition","_button","rowActionId","rowId","unknownKeys","action","buttonGroupKey","Pick","groupName","trim","toLowerCase","treeReadPositions","read","readButtons","buttons","at","findIndex","candidate","panelActionId","compareButtonOrder","a","b","localeCompare","panelOrderKeys","panel","positionOf","positions","map","Map","forEach","set","Math","min","get","Infinity","panelButtonOrder","keys","_key","sort","moveButtonInOrder","direction","order","inGroup","filter","from","indexOf","to","length","slice","rank"],"sources":["../../../src/domain/actionPanel/buttonOrder.ts"],"sourcesContent":["/**\n * THE order of a level's header buttons. Inquiry v2's header\n * (resolveHeaderActions) and the Tree Builder's button list both sort by it, so\n * the builder lists exactly what the runtime renders; the header's overflow\n * menu then sections this order by `groupName` (assignMenuSections).\n *\n * The key, most significant first:\n * 1. The panel's index among the level's attachments — v1 rendered each\n * panel's buttons together (ActionPanelPlacement.jsx).\n * 2. The button's menu group (case-insensitive; ungrouped is a group of its\n * own), ranked by its lowest `sequence`, then by its first appearance in\n * the tree read — the read's array order is the database's row order, not\n * an authored one, so it only breaks a tie. Legacy panels restart\n * `sequence` per group (Account 1..14, then Workflow 1..6): every group\n * ties at 1 and they keep v1's stored-array order. A panel the builder\n * writes numbers its buttons 1..n in display order (moveButtonInOrder), so\n * its groups rank as shown. Groups never interleave.\n * 3. `sequence` within the group.\n * 4. The button's position in the TREE READ's copy of its panel: v1 rendered\n * `panelActions` in that array order, and the product's panels store many\n * buttons at one sequence. The panel library lists the same panel's buttons\n * in another order, so an editor holding the library copy takes positions\n * from the tree read's (`treeReadPositions`). A button that copy does not\n * hold yet (a new one) sorts after those it does.\n * 5. Name, then action id — a total order.\n */\nimport { Panel, PanelButton } from './types';\n\nexport interface ButtonOrderKey {\n /** The panel's index among the level's panel attachments. */\n panelIndex: number;\n /** The lowest `sequence` in the button's group in its panel. */\n groupSequence: number;\n /** First tree-read position of the button's group in its panel. */\n groupRank: number;\n /** The button's group (buttonGroupKey). */\n group: string;\n sequence: number;\n /** Index in the tree read's copy of the panel; NOT_IN_READ when absent. */\n position: number;\n /** The action's name, trimmed. */\n name: string;\n actionId: string;\n}\n\n/** Where a button sits in the tree read's copy of its panel. */\nexport type ButtonPosition = (button: PanelButton, index: number) => number;\n\n/** The position of a button the tree read's copy does not hold. */\nconst NOT_IN_READ = Number.MAX_SAFE_INTEGER;\n\n/** The panel IS the tree read's copy: position = array index. */\nconst arrayPosition: ButtonPosition = (_button, index) => index;\n\n/** The row-level action id the runtime keys on, else the action's own. */\nconst rowActionId = (button: PanelButton): string => {\n const rowId = button.unknownKeys?.actionId;\n return typeof rowId === 'string' && rowId\n ? rowId\n : button.action.actionId ?? '';\n};\n\n/** A button's menu group: its trimmed, lower-cased name; '' when ungrouped. */\nexport const buttonGroupKey = (\n button: Pick<PanelButton, 'groupName'>\n): string => button.groupName?.trim().toLowerCase() ?? '';\n\n/**\n * Positions from the tree read's copy of a panel, matching a button by its\n * association id, else its action id.\n */\nexport const treeReadPositions = (read: Panel | undefined): ButtonPosition => {\n const readButtons = read?.buttons ?? [];\n return (button) => {\n const actionId = rowActionId(button);\n const at = readButtons.findIndex(\n (candidate) =>\n (!!button.panelActionId &&\n candidate.panelActionId === button.panelActionId) ||\n (!!actionId && rowActionId(candidate) === actionId)\n );\n return at < 0 ? NOT_IN_READ : at;\n };\n};\n\n/** Array.sort comparator over ButtonOrderKey — a total order. */\nexport const compareButtonOrder = (\n a: ButtonOrderKey,\n b: ButtonOrderKey\n): number =>\n a.panelIndex - b.panelIndex ||\n a.groupSequence - b.groupSequence ||\n a.groupRank - b.groupRank ||\n a.group.localeCompare(b.group) ||\n a.sequence - b.sequence ||\n a.position - b.position ||\n a.name.localeCompare(b.name) ||\n a.actionId.localeCompare(b.actionId);\n\n/** Every button's key, by index into `panel.buttons`. */\nexport const panelOrderKeys = (\n panel: Panel,\n panelIndex = 0,\n positionOf: ButtonPosition = arrayPosition\n): ButtonOrderKey[] => {\n const positions = panel.buttons.map(positionOf);\n const groupRank = new Map<string, number>();\n const groupSequence = new Map<string, number>();\n panel.buttons.forEach((button, index) => {\n const group = buttonGroupKey(button);\n groupRank.set(\n group,\n Math.min(groupRank.get(group) ?? NOT_IN_READ, positions[index])\n );\n groupSequence.set(\n group,\n Math.min(groupSequence.get(group) ?? Infinity, button.sequence)\n );\n });\n return panel.buttons.map((button, index) => {\n const group = buttonGroupKey(button);\n return {\n panelIndex,\n groupSequence: groupSequence.get(group) ?? Infinity,\n groupRank: groupRank.get(group) ?? NOT_IN_READ,\n group,\n sequence: button.sequence,\n position: positions[index],\n name: button.action.name.trim(),\n actionId: rowActionId(button)\n };\n });\n};\n\n/** Indexes into `panel.buttons`, in the canonical order. */\nexport const panelButtonOrder = (\n panel: Panel,\n positionOf?: ButtonPosition\n): number[] => {\n const keys = panelOrderKeys(panel, 0, positionOf);\n return keys\n .map((_key, index) => index)\n .sort((a, b) => compareButtonOrder(keys[a], keys[b]));\n};\n\n/**\n * Move the button at `index` one slot within its menu group, then number the\n * whole panel 1..n in the new display order — so `sequence` alone says the\n * order (group ranks included) whatever row order the database returns. A\n * move never leaves its group. Array order is kept (callers address buttons\n * by index). Returns the same panel when the move is not possible.\n */\nexport const moveButtonInOrder = (\n panel: Panel,\n index: number,\n direction: 'up' | 'down',\n positionOf?: ButtonPosition\n): Panel => {\n const button = panel.buttons[index];\n if (!button) return panel;\n const group = buttonGroupKey(button);\n const order = panelButtonOrder(panel, positionOf);\n const inGroup = order.filter(\n (at) => buttonGroupKey(panel.buttons[at]) === group\n );\n const from = inGroup.indexOf(index);\n const to = direction === 'up' ? from - 1 : from + 1;\n if (to < 0 || to >= inGroup.length) return panel;\n const a = order.indexOf(inGroup[from]);\n const b = order.indexOf(inGroup[to]);\n [order[a], order[b]] = [order[b], order[a]];\n const buttons = panel.buttons.slice();\n order.forEach((at, rank) => {\n if (buttons[at].sequence !== rank + 1)\n buttons[at] = { ...buttons[at], sequence: rank + 1 };\n });\n return { ...panel, buttons };\n};\n"],"mappings":";;AAiDA,MAAMc,cAAcC,OAAOC;;AAG3B,MAAMC,iBAAiCC,SAASL,UAAUA;;AAG1D,MAAMM,eAAeP,WAAgC;CACnD,MAAMQ,QAAQR,OAAOS,aAAaX;AAClC,QAAO,OAAOU,UAAU,YAAYA,QAChCA,QACAR,OAAOU,OAAOZ,YAAY;;;AAIhC,MAAaa,kBACXX,WACWA,OAAOa,WAAWC,MAAM,CAACC,aAAa,IAAI;;;;;AAMvD,MAAaC,qBAAqBC,SA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U2D,OAAO;GAAG;GACtD;AACF,QAAO;EAAE,GAAGzB;EAAOV;EAAS"}
@@ -1,4 +1,5 @@
1
1
  export * from './types';
2
2
  export * from './serialize';
3
3
  export * from './actionTypeMeta';
4
+ export * from './buttonOrder';
4
5
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/domain/actionPanel/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC;AACxB,cAAc,aAAa,CAAC;AAC5B,cAAc,kBAAkB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/domain/actionPanel/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC;AACxB,cAAc,aAAa,CAAC;AAC5B,cAAc,kBAAkB,CAAC;AACjC,cAAc,eAAe,CAAC"}
@@ -1,4 +1,5 @@
1
1
  export * from './types';
2
2
  export * from './serialize';
3
3
  export * from './actionTypeMeta';
4
+ export * from './buttonOrder';
4
5
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/domain/actionPanel/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC;AACxB,cAAc,aAAa,CAAC;AAC5B,cAAc,kBAAkB,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/domain/actionPanel/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC;AACxB,cAAc,aAAa,CAAC;AAC5B,cAAc,kBAAkB,CAAC;AACjC,cAAc,eAAe,CAAC"}
@@ -1,5 +1,6 @@
1
1
  import { LEGACY_ICON_MAP, isRegistryIconName } from "../../icons/legacyIconNames.mjs";
2
2
  import { ACTION_TYPES, ActionType, isActionType } from "./types.mjs";
3
- import { ACTION_TYPE_META, GENERIC_ACTION_ICON, actionTypeLabel, actionTypeOptions, resolvePanelButtonIcon } from "./actionTypeMeta.mjs";
4
- import { panelButtonFromWire, panelButtonToWire, panelFromWire, panelToWire } from "./serialize.mjs";
5
- export { ACTION_TYPES, ACTION_TYPE_META, ActionType, GENERIC_ACTION_ICON, LEGACY_ICON_MAP, actionTypeLabel, actionTypeOptions, isActionType, isRegistryIconName, panelButtonFromWire, panelButtonToWire, panelFromWire, panelToWire, resolvePanelButtonIcon };
3
+ import { ACTION_TYPE_META, GENERIC_ACTION_ICON, actionButtonLabel, actionTypeLabel, actionTypeOptions, resolvePanelButtonIcon } from "./actionTypeMeta.mjs";
4
+ import { buttonGroupKey, compareButtonOrder, moveButtonInOrder, panelButtonOrder, panelOrderKeys, treeReadPositions } from "./buttonOrder.mjs";
5
+ import { actionFromWire, panelButtonFromWire, panelButtonToWire, panelFromWire, panelToWire } from "./serialize.mjs";
6
+ export { ACTION_TYPES, ACTION_TYPE_META, ActionType, GENERIC_ACTION_ICON, LEGACY_ICON_MAP, actionButtonLabel, actionFromWire, actionTypeLabel, actionTypeOptions, buttonGroupKey, compareButtonOrder, isActionType, isRegistryIconName, moveButtonInOrder, panelButtonFromWire, panelButtonOrder, panelButtonToWire, panelFromWire, panelOrderKeys, panelToWire, resolvePanelButtonIcon, treeReadPositions };
@@ -16,7 +16,8 @@
16
16
  * - nullish `icon` ⇒ `{ name: '', type: null }`
17
17
  * - `panelRules` keeps its null (opaque passthrough, no live example)
18
18
  */
19
- import { Panel, PanelButton } from './types';
19
+ import { ActionConfig, Panel, PanelButton } from './types';
20
+ import type { JsonLogic, StagedRule } from '../inquiryTree/types';
20
21
  /* -------------------------------------------------------------------------- */
21
22
  /* Wire shapes */
22
23
  /* -------------------------------------------------------------------------- */
@@ -26,9 +27,10 @@ type WireExtras = Record<string, unknown>;
26
27
  export interface ActionRuleWire extends WireExtras {
27
28
  actionRuleId?: string;
28
29
  ruleId?: string;
29
- jsonLogic?: unknown;
30
+ jsonLogic?: JsonLogic | null;
30
31
  mapping?: Record<string, string> | null;
31
32
  propertyIsCustomMapping?: Record<string, boolean> | null;
33
+ stagedRule?: StagedRule;
32
34
  }
33
35
  /** Nested `action` object on a panel-action row. */
34
36
  export interface ActionWire extends WireExtras {
@@ -75,6 +77,8 @@ export interface PanelWire extends WireExtras {
75
77
  parentPanelId?: string | null;
76
78
  isProductPanel?: boolean;
77
79
  }
80
+ /** Tolerant reader: one `action` row (nested, or from `action/{id}`). */
81
+ export declare const actionFromWire: (wire: ActionWire) => ActionConfig;
78
82
  /** Tolerant reader: one `PanelAction` row → PanelButton. */
79
83
  export declare const panelButtonFromWire: (wire: PanelActionWire) => PanelButton;
80
84
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"serialize.d.ts","sourceRoot":"","sources":["../../../src/domain/actionPanel/serialize.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AACH,OAAO,EAIL,KAAK,EACL,WAAW,EAEZ,MAAM,SAAS,CAAC;AAGjB,gFAAgF;AAChF,gFAAgF;AAChF,gFAAgF;AAEhF,wDAAwD;AACxD,KAAK,UAAU,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;AAE1C,uCAAuC;AACvC,MAAM,WAAW,cAAe,SAAQ,UAAU;IAChD,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,IAAI,CAAC;IACxC,uBAAuB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI,CAAC;CAC1D;AAED,oDAAoD;AACpD,MAAM,WAAW,UAAW,SAAQ,UAAU;IAC5C,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,YAAY,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAC/B,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB,UAA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;IACd,UAAU,CAAC,EAAE,OAAO,EAAE,GAAG,IAAI,CAAC;IAC9B,YAAY,CAAC,EAAE,eAAe,EAAE,GAAG,IAAI,CAAC;IACxC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,aAAa,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC9B,cAAc,CAAC,EAAE,OAAO,CAAC;CAC1B;AA0GD,yEAAyE;AACzE,eAAO,MAAM,cAAc,oCAgC1B,CAAC;AAkBF,8DAA4D;AAC5D,eAAO,MAAM,mBAAmB,wCAgB/B,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,aAAa,4BAwBzB,CAAC;AA8CF;;;;GAIG;AACH,eAAO,MAAM,iBAAiB,0CAc7B,CAAC;AAEF,wEAAsE;AACtE,eAAO,MAAM,WAAW,6BAcvB,CAAC"}
@@ -41,7 +41,8 @@ const ACTION_RULE_KEYS = new Set([
41
41
  'ruleId',
42
42
  'jsonLogic',
43
43
  'mapping',
44
- 'propertyIsCustomMapping'
44
+ 'propertyIsCustomMapping',
45
+ 'stagedRule'
45
46
  ]);
46
47
  const ICON_KEYS = new Set(['name', 'type', 'fluentName']);
47
48
  /** Collect the keys we do not model, deep-cloned. */
@@ -81,12 +82,15 @@ const actionRuleFromWire = (wire) => {
81
82
  rule.actionRuleId = readString(wire.actionRuleId);
82
83
  if (wire.ruleId !== undefined)
83
84
  rule.ruleId = readString(wire.ruleId);
85
+ if (wire.stagedRule)
86
+ rule.stagedRule = deepClone(wire.stagedRule);
84
87
  const unknownKeys = readUnknownKeys(wire, ACTION_RULE_KEYS);
85
88
  if (unknownKeys)
86
89
  rule.unknownKeys = unknownKeys;
87
90
  return rule;
88
91
  };
89
- const actionFromWire = (wire) => {
92
+ /** Tolerant reader: one `action` row (nested, or from `action/{id}`). */
93
+ export const actionFromWire = (wire) => {
90
94
  const source = (wire !== null && wire !== void 0 ? wire : {});
91
95
  const action = {
92
96
  actionId: readNullableString(source.actionId),
@@ -187,7 +191,10 @@ const actionRuleToWire = (rule) => {
187
191
  const out = Object.assign(Object.assign({}, deepClone((_a = rule.unknownKeys) !== null && _a !== void 0 ? _a : {})), { jsonLogic: deepClone(rule.jsonLogic), mapping: deepClone(rule.mapping), propertyIsCustomMapping: deepClone(rule.propertyIsCustomMapping) });
188
192
  if (rule.actionRuleId !== undefined)
189
193
  out.actionRuleId = rule.actionRuleId;
190
- if (rule.ruleId !== undefined)
194
+ // A staged condition names its rule in stagedRule alone.
195
+ if (rule.stagedRule)
196
+ out.stagedRule = deepClone(rule.stagedRule);
197
+ else if (rule.ruleId !== undefined)
191
198
  out.ruleId = rule.ruleId;
192
199
  return out;
193
200
  };