@memberjunction/ng-core-entity-forms 6.2.0-edge.0 → 6.2.0-edge.2

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 (398) hide show
  1. package/dist/lib/custom/AIAgentCategories/ai-agent-category-overview.panel.d.ts +1 -1
  2. package/dist/lib/custom/AIAgentCategories/ai-agent-category-overview.panel.js +2 -2
  3. package/dist/lib/custom/AIAgentCategories/ai-agent-category-overview.panel.js.map +1 -1
  4. package/dist/lib/custom/AIAgentSessions/ai-agent-session-form.component.js.map +1 -1
  5. package/dist/lib/custom/AIAgents/add-action-dialog.component.d.ts +90 -16
  6. package/dist/lib/custom/AIAgents/add-action-dialog.component.d.ts.map +1 -1
  7. package/dist/lib/custom/AIAgents/add-action-dialog.component.js +218 -70
  8. package/dist/lib/custom/AIAgents/add-action-dialog.component.js.map +1 -1
  9. package/dist/lib/custom/AIAgents/agent-form-tabs.d.ts +1 -0
  10. package/dist/lib/custom/AIAgents/agent-form-tabs.d.ts.map +1 -1
  11. package/dist/lib/custom/AIAgents/agent-form-tabs.js +2 -0
  12. package/dist/lib/custom/AIAgents/agent-form-tabs.js.map +1 -1
  13. package/dist/lib/custom/AIAgents/agent-prompt-advanced-settings-dialog.component.d.ts +80 -16
  14. package/dist/lib/custom/AIAgents/agent-prompt-advanced-settings-dialog.component.d.ts.map +1 -1
  15. package/dist/lib/custom/AIAgents/agent-prompt-advanced-settings-dialog.component.js +146 -46
  16. package/dist/lib/custom/AIAgents/agent-prompt-advanced-settings-dialog.component.js.map +1 -1
  17. package/dist/lib/custom/AIAgents/ai-agent-form.component.d.ts +329 -27
  18. package/dist/lib/custom/AIAgents/ai-agent-form.component.d.ts.map +1 -1
  19. package/dist/lib/custom/AIAgents/ai-agent-form.component.js +1322 -783
  20. package/dist/lib/custom/AIAgents/ai-agent-form.component.js.map +1 -1
  21. package/dist/lib/custom/AIAgents/ai-agent-management.service.d.ts +76 -0
  22. package/dist/lib/custom/AIAgents/ai-agent-management.service.d.ts.map +1 -1
  23. package/dist/lib/custom/AIAgents/ai-agent-management.service.js +77 -33
  24. package/dist/lib/custom/AIAgents/ai-agent-management.service.js.map +1 -1
  25. package/dist/lib/custom/AIAgents/create-prompt-dialog.component.d.ts +69 -15
  26. package/dist/lib/custom/AIAgents/create-prompt-dialog.component.d.ts.map +1 -1
  27. package/dist/lib/custom/AIAgents/create-prompt-dialog.component.js +182 -74
  28. package/dist/lib/custom/AIAgents/create-prompt-dialog.component.js.map +1 -1
  29. package/dist/lib/custom/AIAgents/create-sub-agent-dialog.component.d.ts +105 -25
  30. package/dist/lib/custom/AIAgents/create-sub-agent-dialog.component.d.ts.map +1 -1
  31. package/dist/lib/custom/AIAgents/create-sub-agent-dialog.component.js +272 -112
  32. package/dist/lib/custom/AIAgents/create-sub-agent-dialog.component.js.map +1 -1
  33. package/dist/lib/custom/AIAgents/new-agent-dialog.component.d.ts +32 -6
  34. package/dist/lib/custom/AIAgents/new-agent-dialog.component.d.ts.map +1 -1
  35. package/dist/lib/custom/AIAgents/new-agent-dialog.component.js +71 -19
  36. package/dist/lib/custom/AIAgents/new-agent-dialog.component.js.map +1 -1
  37. package/dist/lib/custom/AIAgents/new-agent-dialog.service.d.ts +10 -0
  38. package/dist/lib/custom/AIAgents/new-agent-dialog.service.d.ts.map +1 -1
  39. package/dist/lib/custom/AIAgents/new-agent-dialog.service.js +27 -7
  40. package/dist/lib/custom/AIAgents/new-agent-dialog.service.js.map +1 -1
  41. package/dist/lib/custom/AIAgents/prompt-selector-dialog.component.d.ts +65 -15
  42. package/dist/lib/custom/AIAgents/prompt-selector-dialog.component.d.ts.map +1 -1
  43. package/dist/lib/custom/AIAgents/prompt-selector-dialog.component.js +152 -52
  44. package/dist/lib/custom/AIAgents/prompt-selector-dialog.component.js.map +1 -1
  45. package/dist/lib/custom/AIAgents/sub-agent-advanced-settings-dialog.component.d.ts +81 -15
  46. package/dist/lib/custom/AIAgents/sub-agent-advanced-settings-dialog.component.d.ts.map +1 -1
  47. package/dist/lib/custom/AIAgents/sub-agent-advanced-settings-dialog.component.js +145 -45
  48. package/dist/lib/custom/AIAgents/sub-agent-advanced-settings-dialog.component.js.map +1 -1
  49. package/dist/lib/custom/AIAgents/sub-agent-selector-dialog.component.d.ts +71 -17
  50. package/dist/lib/custom/AIAgents/sub-agent-selector-dialog.component.d.ts.map +1 -1
  51. package/dist/lib/custom/AIAgents/sub-agent-selector-dialog.component.js +175 -67
  52. package/dist/lib/custom/AIAgents/sub-agent-selector-dialog.component.js.map +1 -1
  53. package/dist/lib/custom/AIPromptRuns/ai-prompt-run-form.component.d.ts +173 -27
  54. package/dist/lib/custom/AIPromptRuns/ai-prompt-run-form.component.d.ts.map +1 -1
  55. package/dist/lib/custom/AIPromptRuns/ai-prompt-run-form.component.js +385 -93
  56. package/dist/lib/custom/AIPromptRuns/ai-prompt-run-form.component.js.map +1 -1
  57. package/dist/lib/custom/AIPromptRuns/chat-message-viewer.component.d.ts +64 -4
  58. package/dist/lib/custom/AIPromptRuns/chat-message-viewer.component.d.ts.map +1 -1
  59. package/dist/lib/custom/AIPromptRuns/chat-message-viewer.component.js +129 -29
  60. package/dist/lib/custom/AIPromptRuns/chat-message-viewer.component.js.map +1 -1
  61. package/dist/lib/custom/AIPrompts/ai-prompt-form.component.d.ts +260 -27
  62. package/dist/lib/custom/AIPrompts/ai-prompt-form.component.d.ts.map +1 -1
  63. package/dist/lib/custom/AIPrompts/ai-prompt-form.component.js +694 -252
  64. package/dist/lib/custom/AIPrompts/ai-prompt-form.component.js.map +1 -1
  65. package/dist/lib/custom/AIPrompts/ai-prompt-management.service.d.ts +10 -0
  66. package/dist/lib/custom/AIPrompts/ai-prompt-management.service.d.ts.map +1 -1
  67. package/dist/lib/custom/AIPrompts/ai-prompt-management.service.js +17 -9
  68. package/dist/lib/custom/AIPrompts/ai-prompt-management.service.js.map +1 -1
  69. package/dist/lib/custom/AIPrompts/pending-records.d.ts +11 -0
  70. package/dist/lib/custom/AIPrompts/pending-records.d.ts.map +1 -0
  71. package/dist/lib/custom/AIPrompts/pending-records.js +21 -0
  72. package/dist/lib/custom/AIPrompts/pending-records.js.map +1 -0
  73. package/dist/lib/custom/AIPrompts/template-selector-dialog.component.d.ts +74 -16
  74. package/dist/lib/custom/AIPrompts/template-selector-dialog.component.d.ts.map +1 -1
  75. package/dist/lib/custom/AIPrompts/template-selector-dialog.component.js +174 -58
  76. package/dist/lib/custom/AIPrompts/template-selector-dialog.component.js.map +1 -1
  77. package/dist/lib/custom/Actions/action-execution-log-form.component.d.ts +108 -14
  78. package/dist/lib/custom/Actions/action-execution-log-form.component.d.ts.map +1 -1
  79. package/dist/lib/custom/Actions/action-execution-log-form.component.js +258 -70
  80. package/dist/lib/custom/Actions/action-execution-log-form.component.js.map +1 -1
  81. package/dist/lib/custom/Actions/action-form.component.d.ts +198 -14
  82. package/dist/lib/custom/Actions/action-form.component.d.ts.map +1 -1
  83. package/dist/lib/custom/Actions/action-form.component.js +387 -107
  84. package/dist/lib/custom/Actions/action-form.component.js.map +1 -1
  85. package/dist/lib/custom/BridgeProviders/bridge-provider-features.d.ts +12 -6
  86. package/dist/lib/custom/BridgeProviders/bridge-provider-features.d.ts.map +1 -1
  87. package/dist/lib/custom/BridgeProviders/bridge-provider-features.js +41 -29
  88. package/dist/lib/custom/BridgeProviders/bridge-provider-features.js.map +1 -1
  89. package/dist/lib/custom/BridgeProviders/bridge-provider-form.component.js +14 -14
  90. package/dist/lib/custom/BridgeProviders/bridge-provider-form.component.js.map +1 -1
  91. package/dist/lib/custom/Companies/company-overview.panel.d.ts +1 -1
  92. package/dist/lib/custom/Companies/company-overview.panel.js +2 -2
  93. package/dist/lib/custom/Companies/company-overview.panel.js.map +1 -1
  94. package/dist/lib/custom/Conversations/conversation-overview.panel.d.ts +1 -1
  95. package/dist/lib/custom/Conversations/conversation-overview.panel.js +2 -2
  96. package/dist/lib/custom/Conversations/conversation-overview.panel.js.map +1 -1
  97. package/dist/lib/custom/Employees/employee-overview.panel.d.ts +1 -1
  98. package/dist/lib/custom/Employees/employee-overview.panel.js +2 -2
  99. package/dist/lib/custom/Employees/employee-overview.panel.js.map +1 -1
  100. package/dist/lib/custom/Entities/entity-form.component.d.ts +217 -29
  101. package/dist/lib/custom/Entities/entity-form.component.d.ts.map +1 -1
  102. package/dist/lib/custom/Entities/entity-form.component.js +734 -285
  103. package/dist/lib/custom/Entities/entity-form.component.js.map +1 -1
  104. package/dist/lib/custom/EntityActions/entityaction.form.component.d.ts +5 -1
  105. package/dist/lib/custom/EntityActions/entityaction.form.component.d.ts.map +1 -1
  106. package/dist/lib/custom/EntityActions/entityaction.form.component.js +10 -2
  107. package/dist/lib/custom/EntityActions/entityaction.form.component.js.map +1 -1
  108. package/dist/lib/custom/Files/file-form.component.d.ts +1 -1
  109. package/dist/lib/custom/Files/file-form.component.js +2 -2
  110. package/dist/lib/custom/Files/file-form.component.js.map +1 -1
  111. package/dist/lib/custom/Lists/list-form.component.d.ts +300 -36
  112. package/dist/lib/custom/Lists/list-form.component.d.ts.map +1 -1
  113. package/dist/lib/custom/Lists/list-form.component.js +664 -208
  114. package/dist/lib/custom/Lists/list-form.component.js.map +1 -1
  115. package/dist/lib/custom/MLModels/ml-model-view-models.d.ts +31 -0
  116. package/dist/lib/custom/MLModels/ml-model-view-models.d.ts.map +1 -1
  117. package/dist/lib/custom/MLModels/ml-model-view-models.js +52 -16
  118. package/dist/lib/custom/MLModels/ml-model-view-models.js.map +1 -1
  119. package/dist/lib/custom/MLModels/ps-model-detail.component.d.ts +107 -10
  120. package/dist/lib/custom/MLModels/ps-model-detail.component.d.ts.map +1 -1
  121. package/dist/lib/custom/MLModels/ps-model-detail.component.js +291 -101
  122. package/dist/lib/custom/MLModels/ps-model-detail.component.js.map +1 -1
  123. package/dist/lib/custom/Queries/query-form.component.d.ts +201 -26
  124. package/dist/lib/custom/Queries/query-form.component.d.ts.map +1 -1
  125. package/dist/lib/custom/Queries/query-form.component.js +429 -109
  126. package/dist/lib/custom/Queries/query-form.component.js.map +1 -1
  127. package/dist/lib/custom/Queries/query-run-dialog.component.d.ts +107 -14
  128. package/dist/lib/custom/Queries/query-run-dialog.component.d.ts.map +1 -1
  129. package/dist/lib/custom/Queries/query-run-dialog.component.js +249 -79
  130. package/dist/lib/custom/Queries/query-run-dialog.component.js.map +1 -1
  131. package/dist/lib/custom/RecordProcesses/record-process-form.component.d.ts +129 -4
  132. package/dist/lib/custom/RecordProcesses/record-process-form.component.d.ts.map +1 -1
  133. package/dist/lib/custom/RecordProcesses/record-process-form.component.js +904 -90
  134. package/dist/lib/custom/RecordProcesses/record-process-form.component.js.map +1 -1
  135. package/dist/lib/custom/Rubrics/evaluation-form.component.d.ts +37 -0
  136. package/dist/lib/custom/Rubrics/evaluation-form.component.d.ts.map +1 -0
  137. package/dist/lib/custom/Rubrics/evaluation-form.component.js +399 -0
  138. package/dist/lib/custom/Rubrics/evaluation-form.component.js.map +1 -0
  139. package/dist/lib/custom/Rubrics/record-forms.component.d.ts +69 -0
  140. package/dist/lib/custom/Rubrics/record-forms.component.d.ts.map +1 -0
  141. package/dist/lib/custom/Rubrics/record-forms.component.js +587 -0
  142. package/dist/lib/custom/Rubrics/record-forms.component.js.map +1 -0
  143. package/dist/lib/custom/Rubrics/rubric-form.component.d.ts +67 -0
  144. package/dist/lib/custom/Rubrics/rubric-form.component.d.ts.map +1 -0
  145. package/dist/lib/custom/Rubrics/rubric-form.component.js +534 -0
  146. package/dist/lib/custom/Rubrics/rubric-form.component.js.map +1 -0
  147. package/dist/lib/custom/Rubrics/rubric-form.panels.d.ts +25 -0
  148. package/dist/lib/custom/Rubrics/rubric-form.panels.d.ts.map +1 -0
  149. package/dist/lib/custom/Rubrics/rubric-form.panels.js +299 -0
  150. package/dist/lib/custom/Rubrics/rubric-form.panels.js.map +1 -0
  151. package/dist/lib/custom/Rubrics/scale-form.component.d.ts +31 -0
  152. package/dist/lib/custom/Rubrics/scale-form.component.d.ts.map +1 -0
  153. package/dist/lib/custom/Rubrics/scale-form.component.js +395 -0
  154. package/dist/lib/custom/Rubrics/scale-form.component.js.map +1 -0
  155. package/dist/lib/custom/SearchScopes/searchscope-form.component.d.ts +1 -1
  156. package/dist/lib/custom/SearchScopes/searchscope-form.component.js +4 -4
  157. package/dist/lib/custom/SearchScopes/searchscope-form.component.js.map +1 -1
  158. package/dist/lib/custom/SessionBridges/session-bridge-form.component.js.map +1 -1
  159. package/dist/lib/custom/Templates/template-param-dialog.component.d.ts +77 -13
  160. package/dist/lib/custom/Templates/template-param-dialog.component.d.ts.map +1 -1
  161. package/dist/lib/custom/Templates/template-param-dialog.component.js +196 -78
  162. package/dist/lib/custom/Templates/template-param-dialog.component.js.map +1 -1
  163. package/dist/lib/custom/Templates/template-params-grid.component.d.ts +49 -7
  164. package/dist/lib/custom/Templates/template-params-grid.component.d.ts.map +1 -1
  165. package/dist/lib/custom/Templates/template-params-grid.component.js +132 -44
  166. package/dist/lib/custom/Templates/template-params-grid.component.js.map +1 -1
  167. package/dist/lib/custom/Templates/templates-form.component.d.ts +153 -19
  168. package/dist/lib/custom/Templates/templates-form.component.d.ts.map +1 -1
  169. package/dist/lib/custom/Templates/templates-form.component.js +434 -217
  170. package/dist/lib/custom/Templates/templates-form.component.js.map +1 -1
  171. package/dist/lib/custom/Tests/entity-link-pill.component.d.ts +24 -4
  172. package/dist/lib/custom/Tests/entity-link-pill.component.d.ts.map +1 -1
  173. package/dist/lib/custom/Tests/entity-link-pill.component.js +64 -20
  174. package/dist/lib/custom/Tests/entity-link-pill.component.js.map +1 -1
  175. package/dist/lib/custom/Tests/test-form.component.d.ts +223 -27
  176. package/dist/lib/custom/Tests/test-form.component.d.ts.map +1 -1
  177. package/dist/lib/custom/Tests/test-form.component.js +951 -530
  178. package/dist/lib/custom/Tests/test-form.component.js.map +1 -1
  179. package/dist/lib/custom/Tests/test-run-checks.d.ts +2 -0
  180. package/dist/lib/custom/Tests/test-run-checks.d.ts.map +1 -1
  181. package/dist/lib/custom/Tests/test-run-checks.js +5 -1
  182. package/dist/lib/custom/Tests/test-run-checks.js.map +1 -1
  183. package/dist/lib/custom/Tests/test-run-feedback-form.component.d.ts +2 -0
  184. package/dist/lib/custom/Tests/test-run-feedback-form.component.d.ts.map +1 -1
  185. package/dist/lib/custom/Tests/test-run-feedback-form.component.js +5 -1
  186. package/dist/lib/custom/Tests/test-run-feedback-form.component.js.map +1 -1
  187. package/dist/lib/custom/Tests/test-run-form.component.d.ts +146 -18
  188. package/dist/lib/custom/Tests/test-run-form.component.d.ts.map +1 -1
  189. package/dist/lib/custom/Tests/test-run-form.component.js +362 -106
  190. package/dist/lib/custom/Tests/test-run-form.component.js.map +1 -1
  191. package/dist/lib/custom/Tests/test-suite-form.component.d.ts +395 -47
  192. package/dist/lib/custom/Tests/test-suite-form.component.d.ts.map +1 -1
  193. package/dist/lib/custom/Tests/test-suite-form.component.js +1719 -1007
  194. package/dist/lib/custom/Tests/test-suite-form.component.js.map +1 -1
  195. package/dist/lib/custom/Tests/test-suite-run-form.component.d.ts +214 -26
  196. package/dist/lib/custom/Tests/test-suite-run-form.component.d.ts.map +1 -1
  197. package/dist/lib/custom/Tests/test-suite-run-form.component.js +535 -159
  198. package/dist/lib/custom/Tests/test-suite-run-form.component.js.map +1 -1
  199. package/dist/lib/custom/Users/user-overview.panel.d.ts +1 -1
  200. package/dist/lib/custom/Users/user-overview.panel.js +3 -3
  201. package/dist/lib/custom/Users/user-overview.panel.js.map +1 -1
  202. package/dist/lib/custom/ai-agent-run/ai-agent-run-analytics.component.d.ts +208 -29
  203. package/dist/lib/custom/ai-agent-run/ai-agent-run-analytics.component.d.ts.map +1 -1
  204. package/dist/lib/custom/ai-agent-run/ai-agent-run-analytics.component.js +446 -138
  205. package/dist/lib/custom/ai-agent-run/ai-agent-run-analytics.component.js.map +1 -1
  206. package/dist/lib/custom/ai-agent-run/ai-agent-run-cost.service.d.ts +6 -0
  207. package/dist/lib/custom/ai-agent-run/ai-agent-run-cost.service.d.ts.map +1 -1
  208. package/dist/lib/custom/ai-agent-run/ai-agent-run-cost.service.js +16 -4
  209. package/dist/lib/custom/ai-agent-run/ai-agent-run-cost.service.js.map +1 -1
  210. package/dist/lib/custom/ai-agent-run/ai-agent-run-data.service.d.ts +50 -6
  211. package/dist/lib/custom/ai-agent-run/ai-agent-run-data.service.d.ts.map +1 -1
  212. package/dist/lib/custom/ai-agent-run/ai-agent-run-data.service.js +84 -12
  213. package/dist/lib/custom/ai-agent-run/ai-agent-run-data.service.js.map +1 -1
  214. package/dist/lib/custom/ai-agent-run/ai-agent-run-step-detail.component.d.ts +89 -5
  215. package/dist/lib/custom/ai-agent-run/ai-agent-run-step-detail.component.d.ts.map +1 -1
  216. package/dist/lib/custom/ai-agent-run/ai-agent-run-step-detail.component.js +216 -70
  217. package/dist/lib/custom/ai-agent-run/ai-agent-run-step-detail.component.js.map +1 -1
  218. package/dist/lib/custom/ai-agent-run/ai-agent-run-step-node.component.d.ts +62 -3
  219. package/dist/lib/custom/ai-agent-run/ai-agent-run-step-node.component.d.ts.map +1 -1
  220. package/dist/lib/custom/ai-agent-run/ai-agent-run-step-node.component.js +140 -42
  221. package/dist/lib/custom/ai-agent-run/ai-agent-run-step-node.component.js.map +1 -1
  222. package/dist/lib/custom/ai-agent-run/ai-agent-run-timeline.component.d.ts +81 -10
  223. package/dist/lib/custom/ai-agent-run/ai-agent-run-timeline.component.d.ts.map +1 -1
  224. package/dist/lib/custom/ai-agent-run/ai-agent-run-timeline.component.js +165 -37
  225. package/dist/lib/custom/ai-agent-run/ai-agent-run-timeline.component.js.map +1 -1
  226. package/dist/lib/custom/ai-agent-run/ai-agent-run.component.d.ts +140 -15
  227. package/dist/lib/custom/ai-agent-run/ai-agent-run.component.d.ts.map +1 -1
  228. package/dist/lib/custom/ai-agent-run/ai-agent-run.component.js +326 -100
  229. package/dist/lib/custom/ai-agent-run/ai-agent-run.component.js.map +1 -1
  230. package/dist/lib/custom/ai-agent-run/flow/agent-run-flow.component.d.ts +101 -15
  231. package/dist/lib/custom/ai-agent-run/flow/agent-run-flow.component.d.ts.map +1 -1
  232. package/dist/lib/custom/ai-agent-run/flow/agent-run-flow.component.js +281 -97
  233. package/dist/lib/custom/ai-agent-run/flow/agent-run-flow.component.js.map +1 -1
  234. package/dist/lib/custom/ai-agent-run/flow/agent-run-flow.model.d.ts +43 -25
  235. package/dist/lib/custom/ai-agent-run/flow/agent-run-flow.model.d.ts.map +1 -1
  236. package/dist/lib/custom/ai-agent-run/flow/agent-run-flow.model.js +100 -64
  237. package/dist/lib/custom/ai-agent-run/flow/agent-run-flow.model.js.map +1 -1
  238. package/dist/lib/custom/ai-agent-run/flow/constellation.component.d.ts +14 -2
  239. package/dist/lib/custom/ai-agent-run/flow/constellation.component.d.ts.map +1 -1
  240. package/dist/lib/custom/ai-agent-run/flow/constellation.component.js +71 -53
  241. package/dist/lib/custom/ai-agent-run/flow/constellation.component.js.map +1 -1
  242. package/dist/lib/custom/ai-agent-run/flow/flame-cascade.component.d.ts +14 -2
  243. package/dist/lib/custom/ai-agent-run/flow/flame-cascade.component.d.ts.map +1 -1
  244. package/dist/lib/custom/ai-agent-run/flow/flame-cascade.component.js +70 -52
  245. package/dist/lib/custom/ai-agent-run/flow/flame-cascade.component.js.map +1 -1
  246. package/dist/lib/custom/ai-agent-run/flow/flow-svg.util.d.ts +8 -0
  247. package/dist/lib/custom/ai-agent-run/flow/flow-svg.util.d.ts.map +1 -1
  248. package/dist/lib/custom/ai-agent-run/flow/flow-svg.util.js +22 -6
  249. package/dist/lib/custom/ai-agent-run/flow/flow-svg.util.js.map +1 -1
  250. package/dist/lib/custom/ai-agent-run/flow/flowchart.component.d.ts +24 -2
  251. package/dist/lib/custom/ai-agent-run/flow/flowchart.component.d.ts.map +1 -1
  252. package/dist/lib/custom/ai-agent-run/flow/flowchart.component.js +91 -59
  253. package/dist/lib/custom/ai-agent-run/flow/flowchart.component.js.map +1 -1
  254. package/dist/lib/custom/ai-agent-run/flow/pan-zoom.d.ts +10 -2
  255. package/dist/lib/custom/ai-agent-run/flow/pan-zoom.d.ts.map +1 -1
  256. package/dist/lib/custom/ai-agent-run/flow/pan-zoom.js +33 -17
  257. package/dist/lib/custom/ai-agent-run/flow/pan-zoom.js.map +1 -1
  258. package/dist/lib/custom/ai-agent-run/flow/run-tree-flow-projection.d.ts +2 -0
  259. package/dist/lib/custom/ai-agent-run/flow/run-tree-flow-projection.d.ts.map +1 -1
  260. package/dist/lib/custom/ai-agent-run/flow/run-tree-flow-projection.js +34 -30
  261. package/dist/lib/custom/ai-agent-run/flow/run-tree-flow-projection.js.map +1 -1
  262. package/dist/lib/custom/ai-agent-run/flow/subway-lines.component.d.ts +14 -2
  263. package/dist/lib/custom/ai-agent-run/flow/subway-lines.component.d.ts.map +1 -1
  264. package/dist/lib/custom/ai-agent-run/flow/subway-lines.component.js +69 -51
  265. package/dist/lib/custom/ai-agent-run/flow/subway-lines.component.js.map +1 -1
  266. package/dist/lib/custom/custom-forms.module.d.ts +56 -48
  267. package/dist/lib/custom/custom-forms.module.d.ts.map +1 -1
  268. package/dist/lib/custom/custom-forms.module.js +60 -0
  269. package/dist/lib/custom/custom-forms.module.js.map +1 -1
  270. package/dist/lib/custom/shared/entity-selector-dialog.component.d.ts +38 -12
  271. package/dist/lib/custom/shared/entity-selector-dialog.component.d.ts.map +1 -1
  272. package/dist/lib/custom/shared/entity-selector-dialog.component.js +103 -51
  273. package/dist/lib/custom/shared/entity-selector-dialog.component.js.map +1 -1
  274. package/dist/lib/generated/Entities/MJAIAgent/mjaiagent.form.component.d.ts.map +1 -1
  275. package/dist/lib/generated/Entities/MJAIAgent/mjaiagent.form.component.js +61 -43
  276. package/dist/lib/generated/Entities/MJAIAgent/mjaiagent.form.component.js.map +1 -1
  277. package/dist/lib/generated/Entities/MJAIAgentRubric/mjaiagentrubric.form.component.d.ts +10 -0
  278. package/dist/lib/generated/Entities/MJAIAgentRubric/mjaiagentrubric.form.component.d.ts.map +1 -0
  279. package/dist/lib/generated/Entities/MJAIAgentRubric/mjaiagentrubric.form.component.js +74 -0
  280. package/dist/lib/generated/Entities/MJAIAgentRubric/mjaiagentrubric.form.component.js.map +1 -0
  281. package/dist/lib/generated/Entities/MJAIAgentRun/mjaiagentrun.form.component.d.ts.map +1 -1
  282. package/dist/lib/generated/Entities/MJAIAgentRun/mjaiagentrun.form.component.js +37 -19
  283. package/dist/lib/generated/Entities/MJAIAgentRun/mjaiagentrun.form.component.js.map +1 -1
  284. package/dist/lib/generated/Entities/MJAIPromptRun/mjaipromptrun.form.component.d.ts.map +1 -1
  285. package/dist/lib/generated/Entities/MJAIPromptRun/mjaipromptrun.form.component.js +78 -52
  286. package/dist/lib/generated/Entities/MJAIPromptRun/mjaipromptrun.form.component.js.map +1 -1
  287. package/dist/lib/generated/Entities/MJAIVendor/mjaivendor.form.component.js +76 -74
  288. package/dist/lib/generated/Entities/MJAIVendor/mjaivendor.form.component.js.map +1 -1
  289. package/dist/lib/generated/Entities/MJEntity/mjentity.form.component.d.ts.map +1 -1
  290. package/dist/lib/generated/Entities/MJEntity/mjentity.form.component.js +156 -84
  291. package/dist/lib/generated/Entities/MJEntity/mjentity.form.component.js.map +1 -1
  292. package/dist/lib/generated/Entities/MJFeaturePipelineType/mjfeaturepipelinetype.form.component.d.ts +10 -0
  293. package/dist/lib/generated/Entities/MJFeaturePipelineType/mjfeaturepipelinetype.form.component.d.ts.map +1 -0
  294. package/dist/lib/generated/Entities/MJFeaturePipelineType/mjfeaturepipelinetype.form.component.js +62 -0
  295. package/dist/lib/generated/Entities/MJFeaturePipelineType/mjfeaturepipelinetype.form.component.js.map +1 -0
  296. package/dist/lib/generated/Entities/MJProcessRun/mjprocessrun.form.component.d.ts.map +1 -1
  297. package/dist/lib/generated/Entities/MJProcessRun/mjprocessrun.form.component.js +24 -6
  298. package/dist/lib/generated/Entities/MJProcessRun/mjprocessrun.form.component.js.map +1 -1
  299. package/dist/lib/generated/Entities/MJProject/mjproject.form.component.js +27 -25
  300. package/dist/lib/generated/Entities/MJProject/mjproject.form.component.js.map +1 -1
  301. package/dist/lib/generated/Entities/MJRecordChange/mjrecordchange.form.component.d.ts.map +1 -1
  302. package/dist/lib/generated/Entities/MJRecordChange/mjrecordchange.form.component.js +24 -16
  303. package/dist/lib/generated/Entities/MJRecordChange/mjrecordchange.form.component.js.map +1 -1
  304. package/dist/lib/generated/Entities/MJRecordCloneLog/mjrecordclonelog.form.component.d.ts +10 -0
  305. package/dist/lib/generated/Entities/MJRecordCloneLog/mjrecordclonelog.form.component.d.ts.map +1 -0
  306. package/dist/lib/generated/Entities/MJRecordCloneLog/mjrecordclonelog.form.component.js +107 -0
  307. package/dist/lib/generated/Entities/MJRecordCloneLog/mjrecordclonelog.form.component.js.map +1 -0
  308. package/dist/lib/generated/Entities/MJRecordCloneLogItem/mjrecordclonelogitem.form.component.d.ts +10 -0
  309. package/dist/lib/generated/Entities/MJRecordCloneLogItem/mjrecordclonelogitem.form.component.d.ts.map +1 -0
  310. package/dist/lib/generated/Entities/MJRecordCloneLogItem/mjrecordclonelogitem.form.component.js +74 -0
  311. package/dist/lib/generated/Entities/MJRecordCloneLogItem/mjrecordclonelogitem.form.component.js.map +1 -0
  312. package/dist/lib/generated/Entities/MJRubric/mjrubric.form.component.d.ts +10 -0
  313. package/dist/lib/generated/Entities/MJRubric/mjrubric.form.component.d.ts.map +1 -0
  314. package/dist/lib/generated/Entities/MJRubric/mjrubric.form.component.js +135 -0
  315. package/dist/lib/generated/Entities/MJRubric/mjrubric.form.component.js.map +1 -0
  316. package/dist/lib/generated/Entities/MJRubricBand/mjrubricband.form.component.d.ts +10 -0
  317. package/dist/lib/generated/Entities/MJRubricBand/mjrubricband.form.component.d.ts.map +1 -0
  318. package/dist/lib/generated/Entities/MJRubricBand/mjrubricband.form.component.js +87 -0
  319. package/dist/lib/generated/Entities/MJRubricBand/mjrubricband.form.component.js.map +1 -0
  320. package/dist/lib/generated/Entities/MJRubricCategory/mjrubriccategory.form.component.d.ts +10 -0
  321. package/dist/lib/generated/Entities/MJRubricCategory/mjrubriccategory.form.component.d.ts.map +1 -0
  322. package/dist/lib/generated/Entities/MJRubricCategory/mjrubriccategory.form.component.js +107 -0
  323. package/dist/lib/generated/Entities/MJRubricCategory/mjrubriccategory.form.component.js.map +1 -0
  324. package/dist/lib/generated/Entities/MJRubricCriterion/mjrubriccriterion.form.component.d.ts +10 -0
  325. package/dist/lib/generated/Entities/MJRubricCriterion/mjrubriccriterion.form.component.d.ts.map +1 -0
  326. package/dist/lib/generated/Entities/MJRubricCriterion/mjrubriccriterion.form.component.js +155 -0
  327. package/dist/lib/generated/Entities/MJRubricCriterion/mjrubriccriterion.form.component.js.map +1 -0
  328. package/dist/lib/generated/Entities/MJRubricCriterionLevel/mjrubriccriterionlevel.form.component.d.ts +10 -0
  329. package/dist/lib/generated/Entities/MJRubricCriterionLevel/mjrubriccriterionlevel.form.component.d.ts.map +1 -0
  330. package/dist/lib/generated/Entities/MJRubricCriterionLevel/mjrubriccriterionlevel.form.component.js +62 -0
  331. package/dist/lib/generated/Entities/MJRubricCriterionLevel/mjrubriccriterionlevel.form.component.js.map +1 -0
  332. package/dist/lib/generated/Entities/MJRubricEvaluation/mjrubricevaluation.form.component.d.ts +10 -0
  333. package/dist/lib/generated/Entities/MJRubricEvaluation/mjrubricevaluation.form.component.d.ts.map +1 -0
  334. package/dist/lib/generated/Entities/MJRubricEvaluation/mjrubricevaluation.form.component.js +183 -0
  335. package/dist/lib/generated/Entities/MJRubricEvaluation/mjrubricevaluation.form.component.js.map +1 -0
  336. package/dist/lib/generated/Entities/MJRubricEvaluationScore/mjrubricevaluationscore.form.component.d.ts +10 -0
  337. package/dist/lib/generated/Entities/MJRubricEvaluationScore/mjrubricevaluationscore.form.component.d.ts.map +1 -0
  338. package/dist/lib/generated/Entities/MJRubricEvaluationScore/mjrubricevaluationscore.form.component.js +120 -0
  339. package/dist/lib/generated/Entities/MJRubricEvaluationScore/mjrubricevaluationscore.form.component.js.map +1 -0
  340. package/dist/lib/generated/Entities/MJRubricScale/mjrubricscale.form.component.d.ts +10 -0
  341. package/dist/lib/generated/Entities/MJRubricScale/mjrubricscale.form.component.d.ts.map +1 -0
  342. package/dist/lib/generated/Entities/MJRubricScale/mjrubricscale.form.component.js +107 -0
  343. package/dist/lib/generated/Entities/MJRubricScale/mjrubricscale.form.component.js.map +1 -0
  344. package/dist/lib/generated/Entities/MJRubricScaleLevel/mjrubricscalelevel.form.component.d.ts +10 -0
  345. package/dist/lib/generated/Entities/MJRubricScaleLevel/mjrubricscalelevel.form.component.d.ts.map +1 -0
  346. package/dist/lib/generated/Entities/MJRubricScaleLevel/mjrubricscalelevel.form.component.js +103 -0
  347. package/dist/lib/generated/Entities/MJRubricScaleLevel/mjrubricscalelevel.form.component.js.map +1 -0
  348. package/dist/lib/generated/Entities/MJRubricVersion/mjrubricversion.form.component.d.ts +10 -0
  349. package/dist/lib/generated/Entities/MJRubricVersion/mjrubricversion.form.component.d.ts.map +1 -0
  350. package/dist/lib/generated/Entities/MJRubricVersion/mjrubricversion.form.component.js +171 -0
  351. package/dist/lib/generated/Entities/MJRubricVersion/mjrubricversion.form.component.js.map +1 -0
  352. package/dist/lib/generated/Entities/MJTest/mjtest.form.component.d.ts.map +1 -1
  353. package/dist/lib/generated/Entities/MJTest/mjtest.form.component.js +24 -16
  354. package/dist/lib/generated/Entities/MJTest/mjtest.form.component.js.map +1 -1
  355. package/dist/lib/generated/Entities/MJTestSuite/mjtestsuite.form.component.js +27 -25
  356. package/dist/lib/generated/Entities/MJTestSuite/mjtestsuite.form.component.js.map +1 -1
  357. package/dist/lib/generated/Entities/MJTestSuiteRun/mjtestsuiterun.form.component.d.ts.map +1 -1
  358. package/dist/lib/generated/Entities/MJTestSuiteRun/mjtestsuiterun.form.component.js +19 -11
  359. package/dist/lib/generated/Entities/MJTestSuiteRun/mjtestsuiterun.form.component.js.map +1 -1
  360. package/dist/lib/generated/Entities/MJUser/mjuser.form.component.d.ts.map +1 -1
  361. package/dist/lib/generated/Entities/MJUser/mjuser.form.component.js +209 -119
  362. package/dist/lib/generated/Entities/MJUser/mjuser.form.component.js.map +1 -1
  363. package/dist/lib/generated/generated-forms.module.d.ts +436 -422
  364. package/dist/lib/generated/generated-forms.module.d.ts.map +1 -1
  365. package/dist/lib/generated/generated-forms.module.js +44 -2
  366. package/dist/lib/generated/generated-forms.module.js.map +1 -1
  367. package/dist/lib/panels/ai-skill-sharing/ai-skill-sharing-panel.component.d.ts +5 -1
  368. package/dist/lib/panels/ai-skill-sharing/ai-skill-sharing-panel.component.d.ts.map +1 -1
  369. package/dist/lib/panels/ai-skill-sharing/ai-skill-sharing-panel.component.js +11 -3
  370. package/dist/lib/panels/ai-skill-sharing/ai-skill-sharing-panel.component.js.map +1 -1
  371. package/dist/lib/panels/content-sources/tag-pipeline-configuration.panel.d.ts +2 -0
  372. package/dist/lib/panels/content-sources/tag-pipeline-configuration.panel.d.ts.map +1 -1
  373. package/dist/lib/panels/content-sources/tag-pipeline-configuration.panel.js +16 -12
  374. package/dist/lib/panels/content-sources/tag-pipeline-configuration.panel.js.map +1 -1
  375. package/dist/lib/panels/content-sources/website-crawler-settings.panel.d.ts +1 -1
  376. package/dist/lib/panels/content-sources/website-crawler-settings.panel.js +2 -2
  377. package/dist/lib/panels/content-sources/website-crawler-settings.panel.js.map +1 -1
  378. package/dist/lib/panels/model-predictions/model-prediction.logic.d.ts +45 -19
  379. package/dist/lib/panels/model-predictions/model-prediction.logic.d.ts.map +1 -1
  380. package/dist/lib/panels/model-predictions/model-prediction.logic.js +95 -43
  381. package/dist/lib/panels/model-predictions/model-prediction.logic.js.map +1 -1
  382. package/dist/lib/panels/model-predictions/model-prediction.panel.d.ts +20 -16
  383. package/dist/lib/panels/model-predictions/model-prediction.panel.d.ts.map +1 -1
  384. package/dist/lib/panels/model-predictions/model-prediction.panel.js +73 -65
  385. package/dist/lib/panels/model-predictions/model-prediction.panel.js.map +1 -1
  386. package/dist/lib/panels/record-clone/entity-clone-config-editor.component.d.ts +116 -0
  387. package/dist/lib/panels/record-clone/entity-clone-config-editor.component.d.ts.map +1 -0
  388. package/dist/lib/panels/record-clone/entity-clone-config-editor.component.js +820 -0
  389. package/dist/lib/panels/record-clone/entity-clone-config-editor.component.js.map +1 -0
  390. package/dist/lib/shared/components/template-editor.component.d.ts +158 -15
  391. package/dist/lib/shared/components/template-editor.component.d.ts.map +1 -1
  392. package/dist/lib/shared/components/template-editor.component.js +389 -127
  393. package/dist/lib/shared/components/template-editor.component.js.map +1 -1
  394. package/dist/public-api.d.ts +5 -0
  395. package/dist/public-api.d.ts.map +1 -1
  396. package/dist/public-api.js +5 -0
  397. package/dist/public-api.js.map +1 -1
  398. package/package.json +47 -42
@@ -22,7 +22,7 @@ export interface PredictionDriver {
22
22
  /** Importance magnitude (absolute value of the raw contribution). */
23
23
  importance: number;
24
24
  /** Importance as a 0–100 share of the strongest driver, for the bar width. */
25
- relativePct: number;
25
+ RelativePct: number;
26
26
  }
27
27
  /** How a prediction's primary value should be rendered. */
28
28
  export type PredictionValueKind = 'probability' | 'numeric' | 'class';
@@ -31,6 +31,8 @@ export declare const MAX_DRIVERS = 5;
31
31
  /**
32
32
  * Coerce a dynamic field value into a finite number, or null when it isn't one.
33
33
  */
34
+ export declare function ToNumber(value: unknown): number | null;
35
+ /** @deprecated Use {@link ToNumber}. */
34
36
  export declare function toNumber(value: unknown): number | null;
35
37
  /**
36
38
  * Decide how to render a value given the model's problem type and the value.
@@ -38,13 +40,19 @@ export declare function toNumber(value: unknown): number | null;
38
40
  * - classification + value in [0,1] → 'probability' (a confidence/score we can gauge)
39
41
  * - everything else (a class label, a missing value) → 'class'
40
42
  */
43
+ export declare function ValueKind(problemType: ModelProblemType, numeric: number | null): PredictionValueKind;
44
+ /** @deprecated Use {@link ValueKind}. */
41
45
  export declare function valueKind(problemType: ModelProblemType, numeric: number | null): PredictionValueKind;
42
46
  /**
43
47
  * Neutral tercile for a 0–1 value. Position on the value axis only — no
44
48
  * assumption that high is good or bad. Values are clamped to [0,1].
45
49
  */
50
+ export declare function BandFor(value: number): PredictionBand;
51
+ /** @deprecated Use {@link BandFor}. */
46
52
  export declare function bandFor(value: number): PredictionBand;
47
53
  /** Round a 0–1 probability to an integer 0–100 gauge fill, clamped. */
54
+ export declare function GaugePct(value: number): number;
55
+ /** @deprecated Use {@link GaugePct}. */
48
56
  export declare function gaugePct(value: number): number;
49
57
  /**
50
58
  * Format the primary value for display:
@@ -53,19 +61,27 @@ export declare function gaugePct(value: number): number;
53
61
  * - class label → the label string
54
62
  * - missing/empty → "—" (em dash)
55
63
  */
64
+ export declare function FormatValue(rawValue: unknown, numeric: number | null, kind: PredictionValueKind): string;
65
+ /** @deprecated Use {@link FormatValue}. */
56
66
  export declare function formatValue(rawValue: unknown, numeric: number | null, kind: PredictionValueKind): string;
57
67
  /**
58
68
  * Pick the human label for a prediction: prefer the model's target variable,
59
69
  * then the bound column name, then a generic fallback.
60
70
  */
71
+ export declare function ResolveLabel(targetVariable: string | null, targetColumn: string | null): string;
72
+ /** @deprecated Use {@link ResolveLabel}. */
61
73
  export declare function resolveLabel(targetVariable: string | null, targetColumn: string | null): string;
62
74
  /**
63
75
  * Parse a model's `FeatureImportance` JSON (`Record<string, number>`) into the
64
76
  * top-N sorted drivers with relative bar widths. Returns [] on null / invalid /
65
77
  * empty input — the caller omits the drivers section cleanly when empty.
66
78
  */
79
+ export declare function ParseDrivers(featureImportanceJson: string | null): PredictionDriver[];
80
+ /** @deprecated Use {@link ParseDrivers}. */
67
81
  export declare function parseDrivers(featureImportanceJson: string | null): PredictionDriver[];
68
82
  /** Format a last-scored timestamp to a short date, or null when absent/invalid. */
83
+ export declare function FormatLastScored(lastScoredAt: Date | string | null): string | null;
84
+ /** @deprecated Use {@link FormatLastScored}. */
69
85
  export declare function formatLastScored(lastScoredAt: Date | string | null): string | null;
70
86
  /**
71
87
  * A resolved historical prediction row from `MJ: Process Run Details` for an entity record.
@@ -74,52 +90,52 @@ export interface PredictionHistoryItem {
74
90
  /** The MJ: Process Run Details primary key ID */
75
91
  id: string;
76
92
  /** The parent Process Run ID */
77
- processRunId: string;
93
+ ProcessRunId: string;
78
94
  /** Model ID if resolved from payload or model lookup */
79
95
  modelId: string | null;
80
96
  /** Resolved model name (e.g. "Member Churn Risk" or "LatePaymentOutcome") */
81
- modelName: string;
97
+ ModelName: string;
82
98
  /** Resolved pipeline & version string (e.g. "Pipeline v1") */
83
- provenance: string;
99
+ Provenance: string;
84
100
  /** Target variable / label */
85
101
  target: string;
86
102
  /** Problem type: classification or regression */
87
103
  problemType: ModelProblemType;
88
104
  /** Primary numeric value / score */
89
- numericValue: number | null;
105
+ NumericValue: number | null;
90
106
  /** Class label if classification */
91
- predictedClass: string | null;
107
+ PredictedClass: string | null;
92
108
  /** Formatted display value (e.g. "88%", "Late", "1,240.5") */
93
- displayValue: string;
109
+ DisplayValue: string;
94
110
  /** True if 0–1 probability we can gauge/badge */
95
- isProbability: boolean;
111
+ IsProbability: boolean;
96
112
  /** Neutral band: 'low' | 'mid' | 'high' */
97
- band: PredictionBand | null;
113
+ Band: PredictionBand | null;
98
114
  /** Resolved semantic status band from outcomeConfig */
99
- statusBand: OutcomeBand | null;
115
+ StatusBand: OutcomeBand | null;
100
116
  /** Human-readable status label (e.g. "Low Risk", "High") */
101
- statusLabel: string | null;
117
+ StatusLabel: string | null;
102
118
  /** Semantic badge color ('green' | 'amber' | 'red' | 'blue' | 'gray') */
103
- badgeColor: 'green' | 'amber' | 'red' | 'blue' | 'gray';
119
+ BadgeColor: 'green' | 'amber' | 'red' | 'blue' | 'gray';
104
120
  /** Icon class if specified in band/style */
105
- badgeIcon: string | null;
121
+ BadgeIcon: string | null;
106
122
  /** Execution status: 'Succeeded' | 'Failed' | 'Pending' | 'Skipped' */
107
123
  status: string;
108
124
  /** When processing completed */
109
- completedAt: Date | null;
125
+ CompletedAt: Date | null;
110
126
  /** Formatted date/time for history display */
111
- formattedTime: string;
127
+ FormattedTime: string;
112
128
  /** Drivers if available in payload */
113
- drivers: PredictionDriver[];
129
+ Drivers: PredictionDriver[];
114
130
  /** Error message if Failed */
115
- errorMessage: string | null;
131
+ ErrorMessage: string | null;
116
132
  /** Full raw payload object for JSON inspection */
117
- rawPayload: Record<string, unknown> | null;
133
+ RawPayload: Record<string, unknown> | null;
118
134
  }
119
135
  /** Summary descriptor of a model represented in prediction history. */
120
136
  export interface ModelHistorySummary {
121
137
  modelId: string;
122
- modelName: string;
138
+ ModelName: string;
123
139
  count: number;
124
140
  }
125
141
  /** Input contract for parsing a Process Run Detail record. */
@@ -144,21 +160,31 @@ export interface HistoryModelMetadata {
144
160
  /**
145
161
  * Format a history completion timestamp with date and time.
146
162
  */
163
+ export declare function FormatHistoryTimestamp(date: Date | string | null): string;
164
+ /** @deprecated Use {@link FormatHistoryTimestamp}. */
147
165
  export declare function formatHistoryTimestamp(date: Date | string | null): string;
148
166
  /**
149
167
  * Parse an array of drivers from payload driver shapes (array of { feature, value } or map).
150
168
  */
169
+ export declare function ParsePayloadDrivers(rawDrivers: unknown): PredictionDriver[];
170
+ /** @deprecated Use {@link ParsePayloadDrivers}. */
151
171
  export declare function parsePayloadDrivers(rawDrivers: unknown): PredictionDriver[];
152
172
  /**
153
173
  * Parse a raw `MJ: Process Run Details` row into a decorated {@link PredictionHistoryItem}.
154
174
  */
175
+ export declare function ParseHistoryItem(detail: RawProcessRunDetail, modelLookup?: Map<string, HistoryModelMetadata>): PredictionHistoryItem;
176
+ /** @deprecated Use {@link ParseHistoryItem}. */
155
177
  export declare function parseHistoryItem(detail: RawProcessRunDetail, modelLookup?: Map<string, HistoryModelMetadata>): PredictionHistoryItem;
156
178
  /**
157
179
  * Filter prediction history by a selected model ID (or return all when null / 'ALL').
158
180
  */
181
+ export declare function FilterHistoryByModel(history: PredictionHistoryItem[], selectedModelId: string | null): PredictionHistoryItem[];
182
+ /** @deprecated Use {@link FilterHistoryByModel}. */
159
183
  export declare function filterHistoryByModel(history: PredictionHistoryItem[], selectedModelId: string | null): PredictionHistoryItem[];
160
184
  /**
161
185
  * Aggregate unique models from prediction history for multi-model tabs / filters.
162
186
  */
187
+ export declare function GetDistinctModelsFromHistory(history: PredictionHistoryItem[]): ModelHistorySummary[];
188
+ /** @deprecated Use {@link GetDistinctModelsFromHistory}. */
163
189
  export declare function getDistinctModelsFromHistory(history: PredictionHistoryItem[]): ModelHistorySummary[];
164
190
  //# sourceMappingURL=model-prediction.logic.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"model-prediction.logic.d.ts","sourceRoot":"","sources":["../../../../src/lib/panels/model-predictions/model-prediction.logic.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,EACH,WAAW,EACX,aAAa,EAKhB,MAAM,wCAAwC,CAAC;AAEhD;;;GAGG;AACH,MAAM,MAAM,cAAc,GAAG,KAAK,GAAG,KAAK,GAAG,MAAM,CAAC;AAEpD,sDAAsD;AACtD,MAAM,MAAM,gBAAgB,GAAG,gBAAgB,GAAG,YAAY,CAAC;AAE/D,4DAA4D;AAC5D,MAAM,WAAW,gBAAgB;IAC7B,+CAA+C;IAC/C,IAAI,EAAE,MAAM,CAAC;IACb,qEAAqE;IACrE,UAAU,EAAE,MAAM,CAAC;IACnB,8EAA8E;IAC9E,WAAW,EAAE,MAAM,CAAC;CACvB;AAED,2DAA2D;AAC3D,MAAM,MAAM,mBAAmB,GAAG,aAAa,GAAG,SAAS,GAAG,OAAO,CAAC;AAEtE,mEAAmE;AACnE,eAAO,MAAM,WAAW,IAAI,CAAC;AAE7B;;GAEG;AACH,wBAAgB,QAAQ,CAAC,KAAK,EAAE,OAAO,GAAG,MAAM,GAAG,IAAI,CAStD;AAED;;;;;GAKG;AACH,wBAAgB,SAAS,CAAC,WAAW,EAAE,gBAAgB,EAAE,OAAO,EAAE,MAAM,GAAG,IAAI,GAAG,mBAAmB,CASpG;AAED;;;GAGG;AACH,wBAAgB,OAAO,CAAC,KAAK,EAAE,MAAM,GAAG,cAAc,CAKrD;AAED,uEAAuE;AACvE,wBAAgB,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ACxB,aAAa,CAAC,EAAE,aAAa,GAAG,IAAI,CAAC;CACxC;AAED;;GAEG;AACH,wBAAgB,sBAAsB,CAAC,IAAI,EAAE,IAAI,GAAG,MAAM,GAAG,IAAI,GAAG,MAAM,CAWzE;AAED;;GAEG;AACH,wBAAgB,mBAAmB,CAAC,UAAU,EAAE,OAAO,GAAG,gBAAgB,EAAE,CA0B3E;AAED;;GAEG;AACH,wBAAgB,gBAAgB,CAC5B,MAAM,EAAE,mBAAmB,EAC3B,WAAW,CAAC,EAAE,GAAG,CAAC,MAAM,EAAE,oBAAoB,CAAC,GAChD,qBAAqB,CAkGvB;AAED;;GAEG;AACH,wBAAgB,oBAAoB,CAChC,OAAO,EAAE,qBAAqB,EAAE,EAChC,eAAe,EAAE,MAAM,GAAG,IAAI,GAC/B,qBAAqB,EAAE,CAKzB;AAED;;GAEG;AACH,wBAAgB,4BAA4B,CAAC,OAAO,EAAE,qBAAqB,EAAE,GAAG,mBAAmB,EAAE,CAgBpG"}
1
+ {"version":3,"file":"model-prediction.logic.d.ts","sourceRoot":"","sources":["../../../../src/lib/panels/model-predictions/model-prediction.logic.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,EACH,WAAW,EACX,aAAa,EAKhB,MAAM,wCAAwC,CAAC;AAEhD;;;GAGG;AACH,MAAM,MAAM,cAAc,GAAG,KAAK,GAAG,KAAK,GAAG,MAAM,CAAC;AAEpD,sDAAsD;AACtD,MAAM,MAAM,gBAAgB,GAAG,gBAAgB,GAAG,YAAY,CAAC;AAE/D,4DAA4D;AAC5D,MAAM,WAAW,gBAAgB;IAC7B,+CAA+C;IAC/C,IAAI,EAAE,MAAM,CAAC;IACb,qEAAqE;IACrE,UAAU,EAAE,MAAM,CAAC;IACnB,8EAA8E;IAC9E,WAAW,EAAE,MAAM,CAAC;CACvB;AAED,2DAA2D;AAC3D,MAAM,MAAM,mBAAmB,GAAG,aAAa,GAAG,SAAS,GAAG,OAAO,CAAC;AAEtE,mE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when it isn't one.
15
15
  */
16
- export function toNumber(value) {
16
+ export function ToNumber(value) {
17
17
  if (typeof value === 'number') {
18
18
  return Number.isFinite(value) ? value : null;
19
19
  }
@@ -23,13 +23,17 @@ export function toNumber(value) {
23
23
  }
24
24
  return null;
25
25
  }
26
+ /** @deprecated Use {@link ToNumber}. */
27
+ export function toNumber(value) {
28
+ return ToNumber(value);
29
+ }
26
30
  /**
27
31
  * Decide how to render a value given the model's problem type and the value.
28
32
  * - regression + numeric → 'numeric'
29
33
  * - classification + value in [0,1] → 'probability' (a confidence/score we can gauge)
30
34
  * - everything else (a class label, a missing value) → 'class'
31
35
  */
32
- export function valueKind(problemType, numeric) {
36
+ export function ValueKind(problemType, numeric) {
33
37
  const isRegression = problemType === 'regression';
34
38
  if (isRegression && numeric != null) {
35
39
  return 'numeric';
@@ -39,11 +43,15 @@ export function valueKind(problemType, numeric) {
39
43
  }
40
44
  return 'class';
41
45
  }
46
+ /** @deprecated Use {@link ValueKind}. */
47
+ export function valueKind(problemType, numeric) {
48
+ return ValueKind(problemType, numeric);
49
+ }
42
50
  /**
43
51
  * Neutral tercile for a 0–1 value. Position on the value axis only — no
44
52
  * assumption that high is good or bad. Values are clamped to [0,1].
45
53
  */
46
- export function bandFor(value) {
54
+ export function BandFor(value) {
47
55
  const v = Math.max(0, Math.min(1, value));
48
56
  if (v < 1 / 3)
49
57
  return 'low';
@@ -51,10 +59,18 @@ export function bandFor(value) {
51
59
  return 'mid';
52
60
  return 'high';
53
61
  }
62
+ /** @deprecated Use {@link BandFor}. */
63
+ export function bandFor(value) {
64
+ return BandFor(value);
65
+ }
54
66
  /** Round a 0–1 probability to an integer 0–100 gauge fill, clamped. */
55
- export function gaugePct(value) {
67
+ export function GaugePct(value) {
56
68
  return Math.round(Math.max(0, Math.min(1, value)) * 100);
57
69
  }
70
+ /** @deprecated Use {@link GaugePct}. */
71
+ export function gaugePct(value) {
72
+ return GaugePct(value);
73
+ }
58
74
  /**
59
75
  * Format the primary value for display:
60
76
  * - probability → "72%"
@@ -62,9 +78,9 @@ export function gaugePct(value) {
62
78
  * - class label → the label string
63
79
  * - missing/empty → "—" (em dash)
64
80
  */
65
- export function formatValue(rawValue, numeric, kind) {
81
+ export function FormatValue(rawValue, numeric, kind) {
66
82
  if (kind === 'probability' && numeric != null) {
67
- return `${gaugePct(numeric)}%`;
83
+ return `${GaugePct(numeric)}%`;
68
84
  }
69
85
  if (kind === 'numeric' && numeric != null) {
70
86
  return numeric.toLocaleString(undefined, { maximumFractionDigits: 4 });
@@ -74,11 +90,15 @@ export function formatValue(rawValue, numeric, kind) {
74
90
  }
75
91
  return String(rawValue);
76
92
  }
93
+ /** @deprecated Use {@link FormatValue}. */
94
+ export function formatValue(rawValue, numeric, kind) {
95
+ return FormatValue(rawValue, numeric, kind);
96
+ }
77
97
  /**
78
98
  * Pick the human label for a prediction: prefer the model's target variable,
79
99
  * then the bound column name, then a generic fallback.
80
100
  */
81
- export function resolveLabel(targetVariable, targetColumn) {
101
+ export function ResolveLabel(targetVariable, targetColumn) {
82
102
  const target = targetVariable?.trim();
83
103
  if (target)
84
104
  return target;
@@ -87,12 +107,16 @@ export function resolveLabel(targetVariable, targetColumn) {
87
107
  return col;
88
108
  return 'Prediction';
89
109
  }
110
+ /** @deprecated Use {@link ResolveLabel}. */
111
+ export function resolveLabel(targetVariable, targetColumn) {
112
+ return ResolveLabel(targetVariable, targetColumn);
113
+ }
90
114
  /**
91
115
  * Parse a model's `FeatureImportance` JSON (`Record<string, number>`) into the
92
116
  * top-N sorted drivers with relative bar widths. Returns [] on null / invalid /
93
117
  * empty input — the caller omits the drivers section cleanly when empty.
94
118
  */
95
- export function parseDrivers(featureImportanceJson) {
119
+ export function ParseDrivers(featureImportanceJson) {
96
120
  if (!featureImportanceJson) {
97
121
  return [];
98
122
  }
@@ -107,18 +131,22 @@ export function parseDrivers(featureImportanceJson) {
107
131
  return [];
108
132
  }
109
133
  const entries = Object.entries(parsed)
110
- .map(([name, raw]) => ({ name, importance: Math.abs(toNumber(raw) ?? 0) }))
134
+ .map(([name, raw]) => ({ name, importance: Math.abs(ToNumber(raw) ?? 0) }))
111
135
  .filter(d => d.importance > 0)
112
136
  .sort((a, b) => b.importance - a.importance)
113
137
  .slice(0, MAX_DRIVERS);
114
138
  const max = entries.length > 0 ? entries[0].importance : 0;
115
139
  return entries.map(d => ({
116
140
  ...d,
117
- relativePct: max > 0 ? Math.round((d.importance / max) * 100) : 0,
141
+ RelativePct: max > 0 ? Math.round((d.importance / max) * 100) : 0,
118
142
  }));
119
143
  }
144
+ /** @deprecated Use {@link ParseDrivers}. */
145
+ export function parseDrivers(featureImportanceJson) {
146
+ return ParseDrivers(featureImportanceJson);
147
+ }
120
148
  /** Format a last-scored timestamp to a short date, or null when absent/invalid. */
121
- export function formatLastScored(lastScoredAt) {
149
+ export function FormatLastScored(lastScoredAt) {
122
150
  if (!lastScoredAt) {
123
151
  return null;
124
152
  }
@@ -128,10 +156,14 @@ export function formatLastScored(lastScoredAt) {
128
156
  }
129
157
  return d.toLocaleDateString(undefined, { year: 'numeric', month: 'short', day: 'numeric' });
130
158
  }
159
+ /** @deprecated Use {@link FormatLastScored}. */
160
+ export function formatLastScored(lastScoredAt) {
161
+ return FormatLastScored(lastScoredAt);
162
+ }
131
163
  /**
132
164
  * Format a history completion timestamp with date and time.
133
165
  */
134
- export function formatHistoryTimestamp(date) {
166
+ export function FormatHistoryTimestamp(date) {
135
167
  if (!date)
136
168
  return '—';
137
169
  const d = date instanceof Date ? date : new Date(date);
@@ -145,10 +177,14 @@ export function formatHistoryTimestamp(date) {
145
177
  minute: '2-digit',
146
178
  });
147
179
  }
180
+ /** @deprecated Use {@link FormatHistoryTimestamp}. */
181
+ export function formatHistoryTimestamp(date) {
182
+ return FormatHistoryTimestamp(date);
183
+ }
148
184
  /**
149
185
  * Parse an array of drivers from payload driver shapes (array of { feature, value } or map).
150
186
  */
151
- export function parsePayloadDrivers(rawDrivers) {
187
+ export function ParsePayloadDrivers(rawDrivers) {
152
188
  if (!rawDrivers)
153
189
  return [];
154
190
  if (Array.isArray(rawDrivers)) {
@@ -158,7 +194,7 @@ export function parsePayloadDrivers(rawDrivers) {
158
194
  return null;
159
195
  const rec = item;
160
196
  const name = typeof rec['feature'] === 'string' ? rec['feature'] : (typeof rec['name'] === 'string' ? rec['name'] : '');
161
- const val = toNumber(rec['value'] ?? rec['importance']);
197
+ const val = ToNumber(rec['value'] ?? rec['importance']);
162
198
  if (!name || val == null)
163
199
  return null;
164
200
  return { name, importance: Math.abs(val) };
@@ -169,18 +205,22 @@ export function parsePayloadDrivers(rawDrivers) {
169
205
  const max = entries.length > 0 ? entries[0].importance : 0;
170
206
  return entries.map(d => ({
171
207
  ...d,
172
- relativePct: max > 0 ? Math.round((d.importance / max) * 100) : 0,
208
+ RelativePct: max > 0 ? Math.round((d.importance / max) * 100) : 0,
173
209
  }));
174
210
  }
175
211
  if (typeof rawDrivers === 'object') {
176
- return parseDrivers(JSON.stringify(rawDrivers));
212
+ return ParseDrivers(JSON.stringify(rawDrivers));
177
213
  }
178
214
  return [];
179
215
  }
216
+ /** @deprecated Use {@link ParsePayloadDrivers}. */
217
+ export function parsePayloadDrivers(rawDrivers) {
218
+ return ParsePayloadDrivers(rawDrivers);
219
+ }
180
220
  /**
181
221
  * Parse a raw `MJ: Process Run Details` row into a decorated {@link PredictionHistoryItem}.
182
222
  */
183
- export function parseHistoryItem(detail, modelLookup) {
223
+ export function ParseHistoryItem(detail, modelLookup) {
184
224
  let rawPayload = null;
185
225
  let payloadSection = null;
186
226
  if (detail.ResultPayload) {
@@ -205,20 +245,20 @@ export function parseHistoryItem(detail, modelLookup) {
205
245
  const payloadModelId = typeof payloadSection?.['modelId'] === 'string' ? payloadSection['modelId'] : null;
206
246
  const modelMeta = payloadModelId && modelLookup ? modelLookup.get(payloadModelId) : undefined;
207
247
  const rawScore = payloadSection?.['score'] ?? payloadSection?.['value'] ?? null;
208
- const numericScore = toNumber(rawScore);
248
+ const numericScore = ToNumber(rawScore);
209
249
  const predictedClass = typeof payloadSection?.['class'] === 'string' ? payloadSection['class'] : null;
210
250
  const probTypeStr = (typeof payloadSection?.['problemType'] === 'string' ? payloadSection['problemType'] : modelMeta?.ProblemType) ?? '';
211
251
  const problemType = probTypeStr.toLowerCase() === 'regression' ? 'regression' : 'classification';
212
- const kind = valueKind(problemType, numericScore);
213
- const displayValue = predictedClass ?? formatValue(rawScore, numericScore, kind);
252
+ const kind = ValueKind(problemType, numericScore);
253
+ const displayValue = predictedClass ?? FormatValue(rawScore, numericScore, kind);
214
254
  const targetVar = (typeof payloadSection?.['target'] === 'string' ? payloadSection['target'] : modelMeta?.TargetVariable) ?? '';
215
- const label = resolveLabel(targetVar, null);
255
+ const label = ResolveLabel(targetVar, null);
216
256
  const modelName = modelMeta?.Name ?? label;
217
257
  const provenance = modelMeta?.Pipeline && modelMeta?.Version
218
258
  ? `${modelMeta.Pipeline} v${modelMeta.Version}`
219
259
  : (modelMeta?.Name ?? 'Predictive Model');
220
260
  const completedAt = detail.CompletedAt ? (detail.CompletedAt instanceof Date ? detail.CompletedAt : new Date(detail.CompletedAt)) : null;
221
- const drivers = parsePayloadDrivers(payloadSection?.['drivers']);
261
+ const drivers = ParsePayloadDrivers(payloadSection?.['drivers']);
222
262
  const rawOutcomeConfig = (payloadSection?.['outcomeConfig'] ?? modelMeta?.outcomeConfig);
223
263
  const outcomeConfig = rawOutcomeConfig
224
264
  ? resolveOutcomeConfig({ outcomeConfig: rawOutcomeConfig })
@@ -247,42 +287,50 @@ export function parseHistoryItem(detail, modelLookup) {
247
287
  }
248
288
  return {
249
289
  id: detail.ID,
250
- processRunId: detail.ProcessRunID,
290
+ ProcessRunId: detail.ProcessRunID,
251
291
  modelId: payloadModelId,
252
- modelName,
253
- provenance,
292
+ ModelName: modelName,
293
+ Provenance: provenance,
254
294
  target: targetVar || label,
255
295
  problemType,
256
- numericValue: numericScore,
257
- predictedClass,
258
- displayValue,
259
- isProbability: kind === 'probability',
260
- band: kind === 'probability' && numericScore != null ? bandFor(numericScore) : null,
261
- statusBand,
262
- statusLabel,
263
- badgeColor,
264
- badgeIcon,
296
+ NumericValue: numericScore,
297
+ PredictedClass: predictedClass,
298
+ DisplayValue: displayValue,
299
+ IsProbability: kind === 'probability',
300
+ Band: kind === 'probability' && numericScore != null ? BandFor(numericScore) : null,
301
+ StatusBand: statusBand,
302
+ StatusLabel: statusLabel,
303
+ BadgeColor: badgeColor,
304
+ BadgeIcon: badgeIcon,
265
305
  status: detail.Status || 'Succeeded',
266
- completedAt,
267
- formattedTime: formatHistoryTimestamp(completedAt),
268
- drivers,
269
- errorMessage: detail.ErrorMessage,
270
- rawPayload,
306
+ CompletedAt: completedAt,
307
+ FormattedTime: FormatHistoryTimestamp(completedAt),
308
+ Drivers: drivers,
309
+ ErrorMessage: detail.ErrorMessage,
310
+ RawPayload: rawPayload,
271
311
  };
272
312
  }
313
+ /** @deprecated Use {@link ParseHistoryItem}. */
314
+ export function parseHistoryItem(detail, modelLookup) {
315
+ return ParseHistoryItem(detail, modelLookup);
316
+ }
273
317
  /**
274
318
  * Filter prediction history by a selected model ID (or return all when null / 'ALL').
275
319
  */
276
- export function filterHistoryByModel(history, selectedModelId) {
320
+ export function FilterHistoryByModel(history, selectedModelId) {
277
321
  if (!selectedModelId || selectedModelId === 'ALL') {
278
322
  return history;
279
323
  }
280
324
  return history.filter(item => item.modelId === selectedModelId);
281
325
  }
326
+ /** @deprecated Use {@link FilterHistoryByModel}. */
327
+ export function filterHistoryByModel(history, selectedModelId) {
328
+ return FilterHistoryByModel(history, selectedModelId);
329
+ }
282
330
  /**
283
331
  * Aggregate unique models from prediction history for multi-model tabs / filters.
284
332
  */
285
- export function getDistinctModelsFromHistory(history) {
333
+ export function GetDistinctModelsFromHistory(history) {
286
334
  const counts = new Map();
287
335
  for (const item of history) {
288
336
  const id = item.modelId ?? 'UNKNOWN';
@@ -291,13 +339,17 @@ export function getDistinctModelsFromHistory(history) {
291
339
  existing.count += 1;
292
340
  }
293
341
  else {
294
- counts.set(id, { modelName: item.modelName, count: 1 });
342
+ counts.set(id, { ModelName: item.ModelName, count: 1 });
295
343
  }
296
344
  }
297
345
  return Array.from(counts.entries()).map(([modelId, data]) => ({
298
346
  modelId,
299
- modelName: data.modelName,
347
+ ModelName: data.ModelName,
300
348
  count: data.count,
301
349
  }));
302
350
  }
351
+ /** @deprecated Use {@link GetDistinctModelsFromHistory}. */
352
+ export function getDistinctModelsFromHistory(history) {
353
+ return GetDistinctModelsFromHistory(history);
354
+ }
303
355
  //# sourceMappingURL=model-prediction.logic.js.map