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

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 (275) 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-prompt-advanced-settings-dialog.component.d.ts +80 -16
  10. package/dist/lib/custom/AIAgents/agent-prompt-advanced-settings-dialog.component.d.ts.map +1 -1
  11. package/dist/lib/custom/AIAgents/agent-prompt-advanced-settings-dialog.component.js +146 -46
  12. package/dist/lib/custom/AIAgents/agent-prompt-advanced-settings-dialog.component.js.map +1 -1
  13. package/dist/lib/custom/AIAgents/ai-agent-form.component.d.ts +329 -27
  14. package/dist/lib/custom/AIAgents/ai-agent-form.component.d.ts.map +1 -1
  15. package/dist/lib/custom/AIAgents/ai-agent-form.component.js +794 -262
  16. package/dist/lib/custom/AIAgents/ai-agent-form.component.js.map +1 -1
  17. package/dist/lib/custom/AIAgents/ai-agent-management.service.d.ts +76 -0
  18. package/dist/lib/custom/AIAgents/ai-agent-management.service.d.ts.map +1 -1
  19. package/dist/lib/custom/AIAgents/ai-agent-management.service.js +77 -33
  20. package/dist/lib/custom/AIAgents/ai-agent-management.service.js.map +1 -1
  21. package/dist/lib/custom/AIAgents/create-prompt-dialog.component.d.ts +69 -15
  22. package/dist/lib/custom/AIAgents/create-prompt-dialog.component.d.ts.map +1 -1
  23. package/dist/lib/custom/AIAgents/create-prompt-dialog.component.js +182 -74
  24. package/dist/lib/custom/AIAgents/create-prompt-dialog.component.js.map +1 -1
  25. package/dist/lib/custom/AIAgents/create-sub-agent-dialog.component.d.ts +105 -25
  26. package/dist/lib/custom/AIAgents/create-sub-agent-dialog.component.d.ts.map +1 -1
  27. package/dist/lib/custom/AIAgents/create-sub-agent-dialog.component.js +272 -112
  28. package/dist/lib/custom/AIAgents/create-sub-agent-dialog.component.js.map +1 -1
  29. package/dist/lib/custom/AIAgents/new-agent-dialog.component.d.ts +32 -6
  30. package/dist/lib/custom/AIAgents/new-agent-dialog.component.d.ts.map +1 -1
  31. package/dist/lib/custom/AIAgents/new-agent-dialog.component.js +71 -19
  32. package/dist/lib/custom/AIAgents/new-agent-dialog.component.js.map +1 -1
  33. package/dist/lib/custom/AIAgents/new-agent-dialog.service.d.ts +10 -0
  34. package/dist/lib/custom/AIAgents/new-agent-dialog.service.d.ts.map +1 -1
  35. package/dist/lib/custom/AIAgents/new-agent-dialog.service.js +27 -7
  36. package/dist/lib/custom/AIAgents/new-agent-dialog.service.js.map +1 -1
  37. package/dist/lib/custom/AIAgents/prompt-selector-dialog.component.d.ts +65 -15
  38. package/dist/lib/custom/AIAgents/prompt-selector-dialog.component.d.ts.map +1 -1
  39. package/dist/lib/custom/AIAgents/prompt-selector-dialog.component.js +152 -52
  40. package/dist/lib/custom/AIAgents/prompt-selector-dialog.component.js.map +1 -1
  41. package/dist/lib/custom/AIAgents/sub-agent-advanced-settings-dialog.component.d.ts +81 -15
  42. package/dist/lib/custom/AIAgents/sub-agent-advanced-settings-dialog.component.d.ts.map +1 -1
  43. package/dist/lib/custom/AIAgents/sub-agent-advanced-settings-dialog.component.js +145 -45
  44. package/dist/lib/custom/AIAgents/sub-agent-advanced-settings-dialog.component.js.map +1 -1
  45. package/dist/lib/custom/AIAgents/sub-agent-selector-dialog.component.d.ts +71 -17
  46. package/dist/lib/custom/AIAgents/sub-agent-selector-dialog.component.d.ts.map +1 -1
  47. package/dist/lib/custom/AIAgents/sub-agent-selector-dialog.component.js +175 -67
  48. package/dist/lib/custom/AIAgents/sub-agent-selector-dialog.component.js.map +1 -1
  49. package/dist/lib/custom/AIPromptRuns/ai-prompt-run-form.component.d.ts +173 -27
  50. package/dist/lib/custom/AIPromptRuns/ai-prompt-run-form.component.d.ts.map +1 -1
  51. package/dist/lib/custom/AIPromptRuns/ai-prompt-run-form.component.js +385 -93
  52. package/dist/lib/custom/AIPromptRuns/ai-prompt-run-form.component.js.map +1 -1
  53. package/dist/lib/custom/AIPromptRuns/chat-message-viewer.component.d.ts +64 -4
  54. package/dist/lib/custom/AIPromptRuns/chat-message-viewer.component.d.ts.map +1 -1
  55. package/dist/lib/custom/AIPromptRuns/chat-message-viewer.component.js +129 -29
  56. package/dist/lib/custom/AIPromptRuns/chat-message-viewer.component.js.map +1 -1
  57. package/dist/lib/custom/AIPrompts/ai-prompt-form.component.d.ts +260 -27
  58. package/dist/lib/custom/AIPrompts/ai-prompt-form.component.d.ts.map +1 -1
  59. package/dist/lib/custom/AIPrompts/ai-prompt-form.component.js +686 -238
  60. package/dist/lib/custom/AIPrompts/ai-prompt-form.component.js.map +1 -1
  61. package/dist/lib/custom/AIPrompts/ai-prompt-management.service.d.ts +10 -0
  62. package/dist/lib/custom/AIPrompts/ai-prompt-management.service.d.ts.map +1 -1
  63. package/dist/lib/custom/AIPrompts/ai-prompt-management.service.js +17 -9
  64. package/dist/lib/custom/AIPrompts/ai-prompt-management.service.js.map +1 -1
  65. package/dist/lib/custom/AIPrompts/template-selector-dialog.component.d.ts +74 -16
  66. package/dist/lib/custom/AIPrompts/template-selector-dialog.component.d.ts.map +1 -1
  67. package/dist/lib/custom/AIPrompts/template-selector-dialog.component.js +174 -58
  68. package/dist/lib/custom/AIPrompts/template-selector-dialog.component.js.map +1 -1
  69. package/dist/lib/custom/Actions/action-execution-log-form.component.d.ts +108 -14
  70. package/dist/lib/custom/Actions/action-execution-log-form.component.d.ts.map +1 -1
  71. package/dist/lib/custom/Actions/action-execution-log-form.component.js +258 -70
  72. package/dist/lib/custom/Actions/action-execution-log-form.component.js.map +1 -1
  73. package/dist/lib/custom/Actions/action-form.component.d.ts +198 -14
  74. package/dist/lib/custom/Actions/action-form.component.d.ts.map +1 -1
  75. package/dist/lib/custom/Actions/action-form.component.js +387 -107
  76. package/dist/lib/custom/Actions/action-form.component.js.map +1 -1
  77. package/dist/lib/custom/BridgeProviders/bridge-provider-features.d.ts +12 -6
  78. package/dist/lib/custom/BridgeProviders/bridge-provider-features.d.ts.map +1 -1
  79. package/dist/lib/custom/BridgeProviders/bridge-provider-features.js +41 -29
  80. package/dist/lib/custom/BridgeProviders/bridge-provider-features.js.map +1 -1
  81. package/dist/lib/custom/BridgeProviders/bridge-provider-form.component.js +14 -14
  82. package/dist/lib/custom/BridgeProviders/bridge-provider-form.component.js.map +1 -1
  83. package/dist/lib/custom/Companies/company-overview.panel.d.ts +1 -1
  84. package/dist/lib/custom/Companies/company-overview.panel.js +2 -2
  85. package/dist/lib/custom/Companies/company-overview.panel.js.map +1 -1
  86. package/dist/lib/custom/Conversations/conversation-overview.panel.d.ts +1 -1
  87. package/dist/lib/custom/Conversations/conversation-overview.panel.js +2 -2
  88. package/dist/lib/custom/Conversations/conversation-overview.panel.js.map +1 -1
  89. package/dist/lib/custom/Employees/employee-overview.panel.d.ts +1 -1
  90. package/dist/lib/custom/Employees/employee-overview.panel.js +2 -2
  91. package/dist/lib/custom/Employees/employee-overview.panel.js.map +1 -1
  92. package/dist/lib/custom/Entities/entity-form.component.d.ts +209 -28
  93. package/dist/lib/custom/Entities/entity-form.component.d.ts.map +1 -1
  94. package/dist/lib/custom/Entities/entity-form.component.js +494 -138
  95. package/dist/lib/custom/Entities/entity-form.component.js.map +1 -1
  96. package/dist/lib/custom/EntityActions/entityaction.form.component.d.ts +5 -1
  97. package/dist/lib/custom/EntityActions/entityaction.form.component.d.ts.map +1 -1
  98. package/dist/lib/custom/EntityActions/entityaction.form.component.js +10 -2
  99. package/dist/lib/custom/EntityActions/entityaction.form.component.js.map +1 -1
  100. package/dist/lib/custom/Files/file-form.component.d.ts +1 -1
  101. package/dist/lib/custom/Files/file-form.component.js +2 -2
  102. package/dist/lib/custom/Files/file-form.component.js.map +1 -1
  103. package/dist/lib/custom/Lists/list-form.component.d.ts +300 -36
  104. package/dist/lib/custom/Lists/list-form.component.d.ts.map +1 -1
  105. package/dist/lib/custom/Lists/list-form.component.js +664 -208
  106. package/dist/lib/custom/Lists/list-form.component.js.map +1 -1
  107. package/dist/lib/custom/MLModels/ml-model-view-models.d.ts +31 -0
  108. package/dist/lib/custom/MLModels/ml-model-view-models.d.ts.map +1 -1
  109. package/dist/lib/custom/MLModels/ml-model-view-models.js +52 -16
  110. package/dist/lib/custom/MLModels/ml-model-view-models.js.map +1 -1
  111. package/dist/lib/custom/MLModels/ps-model-detail.component.d.ts +107 -10
  112. package/dist/lib/custom/MLModels/ps-model-detail.component.d.ts.map +1 -1
  113. package/dist/lib/custom/MLModels/ps-model-detail.component.js +291 -101
  114. package/dist/lib/custom/MLModels/ps-model-detail.component.js.map +1 -1
  115. package/dist/lib/custom/Queries/query-form.component.d.ts +201 -26
  116. package/dist/lib/custom/Queries/query-form.component.d.ts.map +1 -1
  117. package/dist/lib/custom/Queries/query-form.component.js +429 -109
  118. package/dist/lib/custom/Queries/query-form.component.js.map +1 -1
  119. package/dist/lib/custom/Queries/query-run-dialog.component.d.ts +107 -14
  120. package/dist/lib/custom/Queries/query-run-dialog.component.d.ts.map +1 -1
  121. package/dist/lib/custom/Queries/query-run-dialog.component.js +249 -79
  122. package/dist/lib/custom/Queries/query-run-dialog.component.js.map +1 -1
  123. package/dist/lib/custom/RecordProcesses/record-process-form.component.d.ts +110 -4
  124. package/dist/lib/custom/RecordProcesses/record-process-form.component.d.ts.map +1 -1
  125. package/dist/lib/custom/RecordProcesses/record-process-form.component.js +858 -86
  126. package/dist/lib/custom/RecordProcesses/record-process-form.component.js.map +1 -1
  127. package/dist/lib/custom/SearchScopes/searchscope-form.component.d.ts +1 -1
  128. package/dist/lib/custom/SearchScopes/searchscope-form.component.js +4 -4
  129. package/dist/lib/custom/SearchScopes/searchscope-form.component.js.map +1 -1
  130. package/dist/lib/custom/SessionBridges/session-bridge-form.component.js.map +1 -1
  131. package/dist/lib/custom/Templates/template-param-dialog.component.d.ts +77 -13
  132. package/dist/lib/custom/Templates/template-param-dialog.component.d.ts.map +1 -1
  133. package/dist/lib/custom/Templates/template-param-dialog.component.js +196 -78
  134. package/dist/lib/custom/Templates/template-param-dialog.component.js.map +1 -1
  135. package/dist/lib/custom/Templates/template-params-grid.component.d.ts +49 -7
  136. package/dist/lib/custom/Templates/template-params-grid.component.d.ts.map +1 -1
  137. package/dist/lib/custom/Templates/template-params-grid.component.js +132 -44
  138. package/dist/lib/custom/Templates/template-params-grid.component.js.map +1 -1
  139. package/dist/lib/custom/Templates/templates-form.component.d.ts +142 -17
  140. package/dist/lib/custom/Templates/templates-form.component.d.ts.map +1 -1
  141. package/dist/lib/custom/Templates/templates-form.component.js +333 -113
  142. package/dist/lib/custom/Templates/templates-form.component.js.map +1 -1
  143. package/dist/lib/custom/Tests/entity-link-pill.component.d.ts +24 -4
  144. package/dist/lib/custom/Tests/entity-link-pill.component.d.ts.map +1 -1
  145. package/dist/lib/custom/Tests/entity-link-pill.component.js +64 -20
  146. package/dist/lib/custom/Tests/entity-link-pill.component.js.map +1 -1
  147. package/dist/lib/custom/Tests/test-form.component.d.ts +217 -27
  148. package/dist/lib/custom/Tests/test-form.component.d.ts.map +1 -1
  149. package/dist/lib/custom/Tests/test-form.component.js +549 -169
  150. package/dist/lib/custom/Tests/test-form.component.js.map +1 -1
  151. package/dist/lib/custom/Tests/test-run-checks.d.ts +2 -0
  152. package/dist/lib/custom/Tests/test-run-checks.d.ts.map +1 -1
  153. package/dist/lib/custom/Tests/test-run-checks.js +5 -1
  154. package/dist/lib/custom/Tests/test-run-checks.js.map +1 -1
  155. package/dist/lib/custom/Tests/test-run-feedback-form.component.d.ts +2 -0
  156. package/dist/lib/custom/Tests/test-run-feedback-form.component.d.ts.map +1 -1
  157. package/dist/lib/custom/Tests/test-run-feedback-form.component.js +5 -1
  158. package/dist/lib/custom/Tests/test-run-feedback-form.component.js.map +1 -1
  159. package/dist/lib/custom/Tests/test-run-form.component.d.ts +146 -18
  160. package/dist/lib/custom/Tests/test-run-form.component.d.ts.map +1 -1
  161. package/dist/lib/custom/Tests/test-run-form.component.js +362 -106
  162. package/dist/lib/custom/Tests/test-run-form.component.js.map +1 -1
  163. package/dist/lib/custom/Tests/test-suite-form.component.d.ts +390 -47
  164. package/dist/lib/custom/Tests/test-suite-form.component.d.ts.map +1 -1
  165. package/dist/lib/custom/Tests/test-suite-form.component.js +1015 -343
  166. package/dist/lib/custom/Tests/test-suite-form.component.js.map +1 -1
  167. package/dist/lib/custom/Tests/test-suite-run-form.component.d.ts +214 -26
  168. package/dist/lib/custom/Tests/test-suite-run-form.component.d.ts.map +1 -1
  169. package/dist/lib/custom/Tests/test-suite-run-form.component.js +535 -159
  170. package/dist/lib/custom/Tests/test-suite-run-form.component.js.map +1 -1
  171. package/dist/lib/custom/Users/user-overview.panel.d.ts +1 -1
  172. package/dist/lib/custom/Users/user-overview.panel.js +2 -2
  173. package/dist/lib/custom/Users/user-overview.panel.js.map +1 -1
  174. package/dist/lib/custom/ai-agent-run/ai-agent-run-analytics.component.d.ts +208 -29
  175. package/dist/lib/custom/ai-agent-run/ai-agent-run-analytics.component.d.ts.map +1 -1
  176. package/dist/lib/custom/ai-agent-run/ai-agent-run-analytics.component.js +446 -138
  177. package/dist/lib/custom/ai-agent-run/ai-agent-run-analytics.component.js.map +1 -1
  178. package/dist/lib/custom/ai-agent-run/ai-agent-run-cost.service.d.ts +6 -0
  179. package/dist/lib/custom/ai-agent-run/ai-agent-run-cost.service.d.ts.map +1 -1
  180. package/dist/lib/custom/ai-agent-run/ai-agent-run-cost.service.js +16 -4
  181. package/dist/lib/custom/ai-agent-run/ai-agent-run-cost.service.js.map +1 -1
  182. package/dist/lib/custom/ai-agent-run/ai-agent-run-data.service.d.ts +50 -6
  183. package/dist/lib/custom/ai-agent-run/ai-agent-run-data.service.d.ts.map +1 -1
  184. package/dist/lib/custom/ai-agent-run/ai-agent-run-data.service.js +84 -12
  185. package/dist/lib/custom/ai-agent-run/ai-agent-run-data.service.js.map +1 -1
  186. package/dist/lib/custom/ai-agent-run/ai-agent-run-step-detail.component.d.ts +89 -5
  187. package/dist/lib/custom/ai-agent-run/ai-agent-run-step-detail.component.d.ts.map +1 -1
  188. package/dist/lib/custom/ai-agent-run/ai-agent-run-step-detail.component.js +216 -70
  189. package/dist/lib/custom/ai-agent-run/ai-agent-run-step-detail.component.js.map +1 -1
  190. package/dist/lib/custom/ai-agent-run/ai-agent-run-step-node.component.d.ts +62 -3
  191. package/dist/lib/custom/ai-agent-run/ai-agent-run-step-node.component.d.ts.map +1 -1
  192. package/dist/lib/custom/ai-agent-run/ai-agent-run-step-node.component.js +140 -42
  193. package/dist/lib/custom/ai-agent-run/ai-agent-run-step-node.component.js.map +1 -1
  194. package/dist/lib/custom/ai-agent-run/ai-agent-run-timeline.component.d.ts +81 -10
  195. package/dist/lib/custom/ai-agent-run/ai-agent-run-timeline.component.d.ts.map +1 -1
  196. package/dist/lib/custom/ai-agent-run/ai-agent-run-timeline.component.js +165 -37
  197. package/dist/lib/custom/ai-agent-run/ai-agent-run-timeline.component.js.map +1 -1
  198. package/dist/lib/custom/ai-agent-run/ai-agent-run.component.d.ts +140 -15
  199. package/dist/lib/custom/ai-agent-run/ai-agent-run.component.d.ts.map +1 -1
  200. package/dist/lib/custom/ai-agent-run/ai-agent-run.component.js +326 -100
  201. package/dist/lib/custom/ai-agent-run/ai-agent-run.component.js.map +1 -1
  202. package/dist/lib/custom/ai-agent-run/flow/agent-run-flow.component.d.ts +101 -15
  203. package/dist/lib/custom/ai-agent-run/flow/agent-run-flow.component.d.ts.map +1 -1
  204. package/dist/lib/custom/ai-agent-run/flow/agent-run-flow.component.js +281 -97
  205. package/dist/lib/custom/ai-agent-run/flow/agent-run-flow.component.js.map +1 -1
  206. package/dist/lib/custom/ai-agent-run/flow/agent-run-flow.model.d.ts +43 -25
  207. package/dist/lib/custom/ai-agent-run/flow/agent-run-flow.model.d.ts.map +1 -1
  208. package/dist/lib/custom/ai-agent-run/flow/agent-run-flow.model.js +100 -64
  209. package/dist/lib/custom/ai-agent-run/flow/agent-run-flow.model.js.map +1 -1
  210. package/dist/lib/custom/ai-agent-run/flow/constellation.component.d.ts +14 -2
  211. package/dist/lib/custom/ai-agent-run/flow/constellation.component.d.ts.map +1 -1
  212. package/dist/lib/custom/ai-agent-run/flow/constellation.component.js +71 -53
  213. package/dist/lib/custom/ai-agent-run/flow/constellation.component.js.map +1 -1
  214. package/dist/lib/custom/ai-agent-run/flow/flame-cascade.component.d.ts +14 -2
  215. package/dist/lib/custom/ai-agent-run/flow/flame-cascade.component.d.ts.map +1 -1
  216. package/dist/lib/custom/ai-agent-run/flow/flame-cascade.component.js +70 -52
  217. package/dist/lib/custom/ai-agent-run/flow/flame-cascade.component.js.map +1 -1
  218. package/dist/lib/custom/ai-agent-run/flow/flow-svg.util.d.ts +8 -0
  219. package/dist/lib/custom/ai-agent-run/flow/flow-svg.util.d.ts.map +1 -1
  220. package/dist/lib/custom/ai-agent-run/flow/flow-svg.util.js +22 -6
  221. package/dist/lib/custom/ai-agent-run/flow/flow-svg.util.js.map +1 -1
  222. package/dist/lib/custom/ai-agent-run/flow/flowchart.component.d.ts +24 -2
  223. package/dist/lib/custom/ai-agent-run/flow/flowchart.component.d.ts.map +1 -1
  224. package/dist/lib/custom/ai-agent-run/flow/flowchart.component.js +91 -59
  225. package/dist/lib/custom/ai-agent-run/flow/flowchart.component.js.map +1 -1
  226. package/dist/lib/custom/ai-agent-run/flow/pan-zoom.d.ts +10 -2
  227. package/dist/lib/custom/ai-agent-run/flow/pan-zoom.d.ts.map +1 -1
  228. package/dist/lib/custom/ai-agent-run/flow/pan-zoom.js +33 -17
  229. package/dist/lib/custom/ai-agent-run/flow/pan-zoom.js.map +1 -1
  230. package/dist/lib/custom/ai-agent-run/flow/run-tree-flow-projection.d.ts +2 -0
  231. package/dist/lib/custom/ai-agent-run/flow/run-tree-flow-projection.d.ts.map +1 -1
  232. package/dist/lib/custom/ai-agent-run/flow/run-tree-flow-projection.js +34 -30
  233. package/dist/lib/custom/ai-agent-run/flow/run-tree-flow-projection.js.map +1 -1
  234. package/dist/lib/custom/ai-agent-run/flow/subway-lines.component.d.ts +14 -2
  235. package/dist/lib/custom/ai-agent-run/flow/subway-lines.component.d.ts.map +1 -1
  236. package/dist/lib/custom/ai-agent-run/flow/subway-lines.component.js +69 -51
  237. package/dist/lib/custom/ai-agent-run/flow/subway-lines.component.js.map +1 -1
  238. package/dist/lib/custom/shared/entity-selector-dialog.component.d.ts +38 -12
  239. package/dist/lib/custom/shared/entity-selector-dialog.component.d.ts.map +1 -1
  240. package/dist/lib/custom/shared/entity-selector-dialog.component.js +103 -51
  241. package/dist/lib/custom/shared/entity-selector-dialog.component.js.map +1 -1
  242. package/dist/lib/generated/Entities/MJAIPromptRun/mjaipromptrun.form.component.d.ts.map +1 -1
  243. package/dist/lib/generated/Entities/MJAIPromptRun/mjaipromptrun.form.component.js +59 -51
  244. package/dist/lib/generated/Entities/MJAIPromptRun/mjaipromptrun.form.component.js.map +1 -1
  245. package/dist/lib/generated/Entities/MJAIVendor/mjaivendor.form.component.js +76 -74
  246. package/dist/lib/generated/Entities/MJAIVendor/mjaivendor.form.component.js.map +1 -1
  247. package/dist/lib/generated/Entities/MJProject/mjproject.form.component.js +27 -25
  248. package/dist/lib/generated/Entities/MJProject/mjproject.form.component.js.map +1 -1
  249. package/dist/lib/generated/Entities/MJUser/mjuser.form.component.d.ts.map +1 -1
  250. package/dist/lib/generated/Entities/MJUser/mjuser.form.component.js +155 -119
  251. package/dist/lib/generated/Entities/MJUser/mjuser.form.component.js.map +1 -1
  252. package/dist/lib/panels/ai-skill-sharing/ai-skill-sharing-panel.component.d.ts +5 -1
  253. package/dist/lib/panels/ai-skill-sharing/ai-skill-sharing-panel.component.d.ts.map +1 -1
  254. package/dist/lib/panels/ai-skill-sharing/ai-skill-sharing-panel.component.js +11 -3
  255. package/dist/lib/panels/ai-skill-sharing/ai-skill-sharing-panel.component.js.map +1 -1
  256. package/dist/lib/panels/content-sources/tag-pipeline-configuration.panel.d.ts +2 -0
  257. package/dist/lib/panels/content-sources/tag-pipeline-configuration.panel.d.ts.map +1 -1
  258. package/dist/lib/panels/content-sources/tag-pipeline-configuration.panel.js +16 -12
  259. package/dist/lib/panels/content-sources/tag-pipeline-configuration.panel.js.map +1 -1
  260. package/dist/lib/panels/content-sources/website-crawler-settings.panel.d.ts +1 -1
  261. package/dist/lib/panels/content-sources/website-crawler-settings.panel.js +2 -2
  262. package/dist/lib/panels/content-sources/website-crawler-settings.panel.js.map +1 -1
  263. package/dist/lib/panels/model-predictions/model-prediction.logic.d.ts +45 -19
  264. package/dist/lib/panels/model-predictions/model-prediction.logic.d.ts.map +1 -1
  265. package/dist/lib/panels/model-predictions/model-prediction.logic.js +95 -43
  266. package/dist/lib/panels/model-predictions/model-prediction.logic.js.map +1 -1
  267. package/dist/lib/panels/model-predictions/model-prediction.panel.d.ts +20 -16
  268. package/dist/lib/panels/model-predictions/model-prediction.panel.d.ts.map +1 -1
  269. package/dist/lib/panels/model-predictions/model-prediction.panel.js +73 -65
  270. package/dist/lib/panels/model-predictions/model-prediction.panel.js.map +1 -1
  271. package/dist/lib/shared/components/template-editor.component.d.ts +133 -14
  272. package/dist/lib/shared/components/template-editor.component.d.ts.map +1 -1
  273. package/dist/lib/shared/components/template-editor.component.js +322 -124
  274. package/dist/lib/shared/components/template-editor.component.js.map +1 -1
  275. package/package.json +43 -42
@@ -1,6 +1,6 @@
1
1
  import { Component, Input, Output, EventEmitter, ViewChild, ChangeDetectionStrategy, ViewEncapsulation } from '@angular/core';
2
- import { FLOW_COLORS, agentOf, agentShortName, shortLabel, activeLeaf, formatDuration } from './agent-run-flow.model';
3
- import { svgEl, clip, appendIcon, appendTitle } from './flow-svg.util';
2
+ import { FLOW_COLORS, AgentOf, AgentShortName, ShortLabel, ActiveLeaf, FormatDuration } from './agent-run-flow.model';
3
+ import { SvgEl, Clip, AppendIcon, AppendTitle } from './flow-svg.util';
4
4
  import { PanZoomController } from './pan-zoom';
5
5
  import * as i0 from "@angular/core";
6
6
  const _c0 = ["svg"];
@@ -12,7 +12,15 @@ const _c0 = ["svg"];
12
12
  */
13
13
  export class SubwayLinesComponent {
14
14
  constructor() {
15
- this.nodeSelected = new EventEmitter();
15
+ this.NodeSelected = new EventEmitter();
16
+ /**
17
+ * @deprecated Use {@link NodeSelected}.
18
+ *
19
+ * The same emitter under the old binding name, so a template still binding
20
+ * (nodeSelected) keeps working. Must stay AFTER NodeSelected: class fields
21
+ * initialise in order, and the other way round this captures undefined.
22
+ */
23
+ this.nodeSelected = this.NodeSelected;
16
24
  this._model = null;
17
25
  this.built = false;
18
26
  this.stations = new Map();
@@ -25,6 +33,14 @@ export class SubwayLinesComponent {
25
33
  this.DWELL = 0.6;
26
34
  this.MIN_LABEL_GAP = 40;
27
35
  }
36
+ /** @deprecated Use {@link SvgRef}. */
37
+ get svgRef() {
38
+ return this.SvgRef;
39
+ }
40
+ /** @deprecated Use {@link SvgRef}. */
41
+ set svgRef(value) {
42
+ this.SvgRef = value;
43
+ }
28
44
  ZoomIn() { this.pz?.ZoomIn(); }
29
45
  ZoomOut() { this.pz?.ZoomOut(); }
30
46
  FitReset() { this.pz?.Reset(); }
@@ -45,7 +61,7 @@ export class SubwayLinesComponent {
45
61
  clear() {
46
62
  this.pz?.Detach();
47
63
  this.pz = undefined;
48
- const svg = this.svgRef?.nativeElement;
64
+ const svg = this.SvgRef?.nativeElement;
49
65
  if (svg)
50
66
  while (svg.firstChild)
51
67
  svg.removeChild(svg.firstChild);
@@ -53,71 +69,71 @@ export class SubwayLinesComponent {
53
69
  this.connectors = [];
54
70
  }
55
71
  build() {
56
- const svg = this.svgRef.nativeElement;
72
+ const svg = this.SvgRef.nativeElement;
57
73
  const m = this._model;
58
- const agents = m.nodes.filter(n => n.type === 'agent' || n.type === 'subagent');
74
+ const agents = m.Nodes.filter(n => n.Type === 'agent' || n.Type === 'subagent');
59
75
  const lineY = new Map();
60
- agents.forEach((a, i) => lineY.set(a.id, this.TOP + i * this.LINE_GAP));
76
+ agents.forEach((a, i) => lineY.set(a.Id, this.TOP + i * this.LINE_GAP));
61
77
  const VH = this.TOP + Math.max(1, agents.length) * this.LINE_GAP + 30;
62
78
  svg.setAttribute('viewBox', `0 0 ${this.VW} ${VH}`);
63
- const main = svgEl('g', {}, svg);
64
- const lineG = svgEl('g', {}, main);
65
- const connG = svgEl('g', {}, main);
66
- const stationG = svgEl('g', {}, main);
67
- const trainG = svgEl('g', {}, main);
68
- const sx = (l) => this.PAD + l.tmid * this.IW;
69
- const sy = (l) => lineY.get(agentOf(l).id) ?? this.TOP;
70
- const radius = (l) => Math.min(17, 8 + Math.sqrt(l.realDur) * 1.4);
79
+ const main = SvgEl('g', {}, svg);
80
+ const lineG = SvgEl('g', {}, main);
81
+ const connG = SvgEl('g', {}, main);
82
+ const stationG = SvgEl('g', {}, main);
83
+ const trainG = SvgEl('g', {}, main);
84
+ const sx = (l) => this.PAD + l.Tmid * this.IW;
85
+ const sy = (l) => lineY.get(AgentOf(l).Id) ?? this.TOP;
86
+ const radius = (l) => Math.min(17, 8 + Math.sqrt(l.RealDur) * 1.4);
71
87
  // line backbones + agent labels (left gutter, with the agent's icon)
72
88
  for (const a of agents) {
73
- const kids = m.leaves.filter(l => agentOf(l) === a);
74
- const y = lineY.get(a.id);
75
- const col = FLOW_COLORS[a.type];
89
+ const kids = m.Leaves.filter(l => AgentOf(l) === a);
90
+ const y = lineY.get(a.Id);
91
+ const col = FLOW_COLORS[a.Type];
76
92
  if (kids.length) {
77
93
  const x0 = Math.min(...kids.map(sx)) - 32, x1 = Math.max(...kids.map(sx)) + 32;
78
- svgEl('line', { x1: x0, y1: y, x2: x1, y2: y, stroke: col, 'stroke-width': 7, opacity: 0.32, 'stroke-linecap': 'round' }, lineG);
94
+ SvgEl('line', { x1: x0, y1: y, x2: x1, y2: y, stroke: col, 'stroke-width': 7, opacity: 0.32, 'stroke-linecap': 'round' }, lineG);
79
95
  }
80
- appendIcon(lineG, 14, y - 11, 22, a.iconClass, a.logoUrl, col);
81
- svgEl('text', { x: 44, y: y - 6, 'font-size': 13, 'font-weight': 700, fill: col, 'dominant-baseline': 'middle', text: clip(agentShortName(a), 18) }, lineG);
82
- svgEl('text', { x: 44, y: y + 10, 'font-size': 9.5, 'dominant-baseline': 'middle', class: 'ftxt-muted', text: `${kids.length} step${kids.length === 1 ? '' : 's'} · ${formatDuration(a.realDur)}` }, lineG);
96
+ AppendIcon(lineG, 14, y - 11, 22, a.IconClass, a.LogoUrl, col);
97
+ SvgEl('text', { x: 44, y: y - 6, 'font-size': 13, 'font-weight': 700, fill: col, 'dominant-baseline': 'middle', text: Clip(AgentShortName(a), 18) }, lineG);
98
+ SvgEl('text', { x: 44, y: y + 10, 'font-size': 9.5, 'dominant-baseline': 'middle', class: 'ftxt-muted', text: `${kids.length} step${kids.length === 1 ? '' : 's'} · ${FormatDuration(a.RealDur)}` }, lineG);
83
99
  }
84
100
  // connectors carry the destination line's (agent's) colour
85
- for (let i = 0; i < m.leaves.length - 1; i++) {
86
- const a = m.leaves[i], b = m.leaves[i + 1];
101
+ for (let i = 0; i < m.Leaves.length - 1; i++) {
102
+ const a = m.Leaves[i], b = m.Leaves[i + 1];
87
103
  const ax = sx(a), ay = sy(a), bx = sx(b), by = sy(b);
88
104
  const mx = (ax + bx) / 2;
89
105
  const d = ay === by ? `M${ax},${ay} L${bx},${by}` : `M${ax},${ay} L${mx},${ay} L${mx},${by} L${bx},${by}`;
90
- const path = svgEl('path', { d, fill: 'none', stroke: FLOW_COLORS[agentOf(b).type], 'stroke-width': 3, opacity: 0.14, 'stroke-linejoin': 'round', 'stroke-linecap': 'round' }, connG);
106
+ const path = SvgEl('path', { d, fill: 'none', stroke: FLOW_COLORS[AgentOf(b).Type], 'stroke-width': 3, opacity: 0.14, 'stroke-linejoin': 'round', 'stroke-linecap': 'round' }, connG);
91
107
  this.connectors.push({ path, to: b, len: path.getTotalLength() });
92
108
  }
93
109
  // stations: ring + step icon; angled abbreviated label (thinned when dense)
94
110
  let lastLabelX = -1e9;
95
- m.leaves.forEach((l) => {
111
+ m.Leaves.forEach((l) => {
96
112
  const x = sx(l), y = sy(l), r = radius(l);
97
- const col = FLOW_COLORS[l.type];
98
- const grp = svgEl('g', {}, stationG);
113
+ const col = FLOW_COLORS[l.Type];
114
+ const grp = SvgEl('g', {}, stationG);
99
115
  grp.style.color = col;
100
116
  grp.style.cursor = 'pointer';
101
- appendTitle(grp, `${l.name} · ${formatDuration(l.realDur)}`);
102
- const ring = svgEl('circle', { cx: x, cy: y, r, fill: 'var(--mj-bg-surface)', stroke: col, 'stroke-width': 3.2 }, grp);
103
- appendIcon(grp, x - r * 0.62, y - r * 0.62, r * 1.24, l.iconClass, l.logoUrl, col);
104
- const show = (x - lastLabelX >= this.MIN_LABEL_GAP) || l.heat >= 2;
117
+ AppendTitle(grp, `${l.Name} · ${FormatDuration(l.RealDur)}`);
118
+ const ring = SvgEl('circle', { cx: x, cy: y, r, fill: 'var(--mj-bg-surface)', stroke: col, 'stroke-width': 3.2 }, grp);
119
+ AppendIcon(grp, x - r * 0.62, y - r * 0.62, r * 1.24, l.IconClass, l.LogoUrl, col);
120
+ const show = (x - lastLabelX >= this.MIN_LABEL_GAP) || l.Heat >= 2;
105
121
  let lab;
106
122
  if (show) {
107
123
  lastLabelX = x;
108
124
  const lx = x, ly = y - r - 8;
109
- lab = svgEl('text', {
125
+ lab = SvgEl('text', {
110
126
  x: lx, y: ly, 'font-size': 10.5, 'font-weight': 600, 'text-anchor': 'start',
111
127
  transform: `rotate(-30 ${lx} ${ly})`, class: 'ftxt-secondary', opacity: 0.7,
112
- text: `${clip(shortLabel(l), 22)} · ${formatDuration(l.realDur)}`
128
+ text: `${Clip(ShortLabel(l), 22)} · ${FormatDuration(l.RealDur)}`
113
129
  }, grp);
114
130
  }
115
131
  grp.addEventListener('click', () => { if (!this.pz?.moved)
116
- this.nodeSelected.emit(l); });
117
- this.stations.set(l.id, { ring, lab, leaf: l, r, sx: x, sy: y });
132
+ this.NodeSelected.emit(l); });
133
+ this.stations.set(l.Id, { ring, lab, leaf: l, r, sx: x, sy: y });
118
134
  });
119
- this.trainHalo = svgEl('circle', { r: 17, opacity: 0, class: 'fhand-dot' }, trainG);
120
- this.train = svgEl('circle', { r: 9, opacity: 0, stroke: 'var(--mj-bg-surface)', 'stroke-width': 2.5 }, trainG);
135
+ this.trainHalo = SvgEl('circle', { r: 17, opacity: 0, class: 'fhand-dot' }, trainG);
136
+ this.train = SvgEl('circle', { r: 9, opacity: 0, stroke: 'var(--mj-bg-surface)', 'stroke-width': 2.5 }, trainG);
121
137
  this.pz = new PanZoomController(svg, main, 'mj.agentRunFlow.view.subway.v1');
122
138
  this.pz.Load();
123
139
  this.pz.Attach();
@@ -125,24 +141,24 @@ export class SubwayLinesComponent {
125
141
  update(p, ts) {
126
142
  const m = this._model;
127
143
  this.stations.forEach(({ ring, lab, leaf, r }) => {
128
- const started = p >= leaf.t0;
129
- const active = started && p < leaf.t1;
130
- const selected = leaf.id === this.selectedId;
131
- ring.setAttribute('class', selected ? 'glow2' : active ? 'glow' + Math.max(1, leaf.heat) : '');
144
+ const started = p >= leaf.T0;
145
+ const active = started && p < leaf.T1;
146
+ const selected = leaf.Id === this.selectedId;
147
+ ring.setAttribute('class', selected ? 'glow2' : active ? 'glow' + Math.max(1, leaf.Heat) : '');
132
148
  ring.setAttribute('stroke-width', selected ? '4.5' : '3.2');
133
149
  ring.setAttribute('r', String(active ? r + 2 * Math.abs(Math.sin(ts / 220)) : r));
134
150
  ring.setAttribute('fill-opacity', started ? '1' : '0.55');
135
151
  lab?.setAttribute('opacity', active || selected ? '1' : started ? '0.85' : '0.6');
136
152
  });
137
153
  this.connectors.forEach(({ path, to }) => {
138
- const done = p >= to.t1, lit = p >= to.t0;
154
+ const done = p >= to.T1, lit = p >= to.T0;
139
155
  path.setAttribute('opacity', done ? '0.7' : lit ? '0.45' : '0.14');
140
156
  path.setAttribute('stroke-width', lit ? '3.6' : '3');
141
157
  });
142
- const leaf = activeLeaf(m, p);
143
- const idx = m.leaves.indexOf(leaf);
144
- const frac = p >= leaf.t1 ? 1 : Math.max(0, (p - leaf.t0) / (leaf.t1 - leaf.t0));
145
- const here = this.stations.get(leaf.id);
158
+ const leaf = ActiveLeaf(m, p);
159
+ const idx = m.Leaves.indexOf(leaf);
160
+ const frac = p >= leaf.T1 ? 1 : Math.max(0, (p - leaf.T0) / (leaf.T1 - leaf.T0));
161
+ const here = this.stations.get(leaf.Id);
146
162
  let tx = here?.sx ?? 0, ty = here?.sy ?? 0;
147
163
  if (here && idx >= 0 && idx < this.connectors.length && frac >= this.DWELL) {
148
164
  const conn = this.connectors[idx];
@@ -152,7 +168,7 @@ export class SubwayLinesComponent {
152
168
  ty = pt.y;
153
169
  }
154
170
  const live = p > 0 && p < 1;
155
- const lineCol = FLOW_COLORS[agentOf(leaf).type];
171
+ const lineCol = FLOW_COLORS[AgentOf(leaf).Type];
156
172
  if (this.train) {
157
173
  this.train.setAttribute('cx', String(tx));
158
174
  this.train.setAttribute('cy', String(ty));
@@ -172,8 +188,8 @@ export class SubwayLinesComponent {
172
188
  i0.ɵɵviewQuery(_c0, 7);
173
189
  } if (rf & 2) {
174
190
  let _t;
175
- i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.svgRef = _t.first);
176
- } }, inputs: { Model: "Model" }, outputs: { nodeSelected: "nodeSelected" }, standalone: false, decls: 2, vars: 0, consts: [["svg", ""], ["preserveAspectRatio", "xMidYMid meet", 1, "flow-svg"]], template: function SubwayLinesComponent_Template(rf, ctx) { if (rf & 1) {
191
+ i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.SvgRef = _t.first);
192
+ } }, inputs: { Model: "Model" }, outputs: { NodeSelected: "NodeSelected", nodeSelected: "nodeSelected" }, standalone: false, decls: 2, vars: 0, consts: [["svg", ""], ["preserveAspectRatio", "xMidYMid meet", 1, "flow-svg"]], template: function SubwayLinesComponent_Template(rf, ctx) { if (rf & 1) {
177
193
  i0.ɵɵnamespaceSVG();
178
194
  i0.ɵɵelement(0, "svg", 1, 0);
179
195
  } }, styles: ["/* Shared chrome for every flow renderer's <svg> host.\n These components use ViewEncapsulation.None so this CSS reaches SVG nodes\n created imperatively via createElementNS (which never receive Angular's\n emulated-encapsulation scoping attribute). Everything is namespaced under\n `.flow-svg` to avoid leaking into the rest of the app. */\n.flow-svg {\n width: 100%;\n height: 100%;\n display: block;\n font-family: -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif;\n}\n\n.flow-svg text { fill: var(--mj-text-primary); }\n.flow-svg .ftxt-secondary { fill: var(--mj-text-secondary); }\n.flow-svg .ftxt-muted { fill: var(--mj-text-muted); }\n.flow-svg .ftxt-on { fill: var(--mj-text-inverse); }\n.flow-svg .fgrid { stroke: var(--mj-border-subtle); }\n.flow-svg .fhand { stroke: var(--mj-text-secondary); }\n.flow-svg .fhand-dot { fill: var(--mj-text-primary); }\n.flow-svg .fstar-bg { fill: var(--mj-text-muted); }\n/* outlined label for legibility over edges / busy fields */\n.flow-svg .fhalo { paint-order: stroke; stroke: var(--mj-bg-page); stroke-width: 3.5px; stroke-linejoin: round; }\n\n/* Heat / activity glow tiers \u2014 driven by `currentColor` (the node's category color). */\n.flow-svg .glow1 { filter: drop-shadow(0 0 4px currentColor); }\n.flow-svg .glow2 { filter: drop-shadow(0 0 9px currentColor); }\n.flow-svg .glow3 { filter: drop-shadow(0 0 16px currentColor); }\n"], encapsulation: 2, changeDetection: 0 }); }
@@ -181,9 +197,11 @@ export class SubwayLinesComponent {
181
197
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(SubwayLinesComponent, [{
182
198
  type: Component,
183
199
  args: [{ standalone: false, selector: 'mj-agent-flow-subway', template: `<svg #svg class="flow-svg" preserveAspectRatio="xMidYMid meet"></svg>`, encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, styles: ["/* Shared chrome for every flow renderer's <svg> host.\n These components use ViewEncapsulation.None so this CSS reaches SVG nodes\n created imperatively via createElementNS (which never receive Angular's\n emulated-encapsulation scoping attribute). Everything is namespaced under\n `.flow-svg` to avoid leaking into the rest of the app. */\n.flow-svg {\n width: 100%;\n height: 100%;\n display: block;\n font-family: -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif;\n}\n\n.flow-svg text { fill: var(--mj-text-primary); }\n.flow-svg .ftxt-secondary { fill: var(--mj-text-secondary); }\n.flow-svg .ftxt-muted { fill: var(--mj-text-muted); }\n.flow-svg .ftxt-on { fill: var(--mj-text-inverse); }\n.flow-svg .fgrid { stroke: var(--mj-border-subtle); }\n.flow-svg .fhand { stroke: var(--mj-text-secondary); }\n.flow-svg .fhand-dot { fill: var(--mj-text-primary); }\n.flow-svg .fstar-bg { fill: var(--mj-text-muted); }\n/* outlined label for legibility over edges / busy fields */\n.flow-svg .fhalo { paint-order: stroke; stroke: var(--mj-bg-page); stroke-width: 3.5px; stroke-linejoin: round; }\n\n/* Heat / activity glow tiers \u2014 driven by `currentColor` (the node's category color). */\n.flow-svg .glow1 { filter: drop-shadow(0 0 4px currentColor); }\n.flow-svg .glow2 { filter: drop-shadow(0 0 9px currentColor); }\n.flow-svg .glow3 { filter: drop-shadow(0 0 16px currentColor); }\n"] }]
184
- }], null, { svgRef: [{
200
+ }], null, { SvgRef: [{
185
201
  type: ViewChild,
186
202
  args: ['svg', { static: true }]
203
+ }], NodeSelected: [{
204
+ type: Output
187
205
  }], nodeSelected: [{
188
206
  type: Output
189
207
  }], Model: [{
@@ -1 +1 @@
1
- {"version":3,"file":"subway-lines.component.js","sourceRoot":"","sources":["../../../../../src/lib/custom/ai-agent-run/flow/subway-lines.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAc,KAAK,EAAE,MAAM,EAAE,YAAY,EAAE,SAAS,EAAa,uBAAuB,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAC;AACrJ,OAAO,EACgB,WAAW,EAAE,OAAO,EAAE,cAAc,EAAE,UAAU,EAAE,UAAU,EAAE,cAAc,EAClG,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAAE,KAAK,EAAE,IAAI,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AACvE,OAAO,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAC;;;AAK/C;;;;;GAKG;AASH,MAAM,OAAO,oBAAoB;IARjC;QAUY,iBAAY,GAAG,IAAI,YAAY,EAAY,CAAC;QAE9C,WAAM,GAAqB,IAAI,CAAC;QAChC,UAAK,GAAG,KAAK,CAAC;QACd,aAAQ,GAAG,IAAI,GAAG,EAAmB,CAAC;QACtC,eAAU,GAAgB,EAAE,CAAC;QAG7B,eAAU,GAAG,CAAC,CAAC,CAAC;QASP,OAAE,GAAG,IAAI,CAAC;QACV,QAAG,GAAG,GAAG,CAAC;QACV,QAAG,GAAG,GAAG,CAAC;QACV,aAAQ,GAAG,GAAG,CAAC;QACf,UAAK,GAAG,GAAG,CAAC;QACZ,kBAAa,GAAG,EAAE,CAAC;KA4IrC;IAvJQ,MAAM,KAAW,IAAI,CAAC,EAAE,EAAE,MAAM,EAAE,CAAC,CAAC,CAAC;IACrC,OAAO,KAAW,IAAI,CAAC,EAAE,EAAE,OAAO,EAAE,CAAC,CAAC,CAAC;IACvC,QAAQ,KAAW,IAAI,CAAC,EAAE,EAAE,KAAK,EAAE,CAAC,CAAC,CAAC;IACtC,WAAW,K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,YAAY,CAAC,SAAS,EAAE,IAAI,CAAC,CAAC,CAAC,MAAM,CAAC,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC,GAAG,CAAC,EAAE,GAAG,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC;QAChG,CAAC;IACH,CAAC;qHAnKU,oBAAoB;oEAApB,oBAAoB;;;;;;;YALpB,4BAAqE;;;iFAKrE,oBAAoB;cARhC,SAAS;6BACI,KAAK,YACP,sBAAsB,YACtB,uEAAuE,iBAElE,iBAAiB,CAAC,IAAI,mBACpB,uBAAuB,CAAC,MAAM;;kBAG9C,SAAS;mBAAC,KAAK,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE;;kBACjC,MAAM;;kBA2BN,KAAK;;kFA7BK,oBAAoB","sourcesContent":["import { Component, ElementRef, Input, Output, EventEmitter, ViewChild, OnDestroy, ChangeDetectionStrategy, ViewEncapsulation } from '@angular/core';\nimport {\n FlowModel, FlowNode, FLOW_COLORS, agentOf, agentShortName, shortLabel, activeLeaf, formatDuration\n} from './agent-run-flow.model';\nimport { svgEl, clip, appendIcon, appendTitle } from './flow-svg.util';\nimport { PanZoomController } from './pan-zoom';\n\ninterface Station { ring: SVGElement; lab?: SVGElement; leaf: FlowNode; r: number; sx: number; sy: number; }\ninterface Connector { path: SVGGraphicsElement; to: FlowNode; len: number; }\n\n/**\n * Subway Lines — each agent is a transit line; sub-agents branch off and rejoin.\n * Connectors carry the line's (agent's) colour and brighten as the train passes,\n * so you can follow a sub-agent's route end to end. Stations show the real step\n * icon; labels are abbreviated and angled 30° so dense lines stay readable.\n */\n@Component({\n standalone: false,\n selector: 'mj-agent-flow-subway',\n template: `<svg #svg class=\"flow-svg\" preserveAspectRatio=\"xMidYMid meet\"></svg>`,\n styleUrls: ['./flow-shared.css'],\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class SubwayLinesComponent implements OnDestroy {\n @ViewChild('svg', { static: true }) svgRef!: ElementRef<SVGSVGElement>;\n @Output() nodeSelected = new EventEmitter<FlowNode>();\n\n private _model: FlowModel | null = null;\n private built = false;\n private stations = new Map<number, Station>();\n private connectors: Connector[] = [];\n private train?: SVGElement;\n private trainHalo?: SVGElement;\n private selectedId = -1;\n private pz?: PanZoomController;\n\n public ZoomIn(): void { this.pz?.ZoomIn(); }\n public ZoomOut(): void { this.pz?.ZoomOut(); }\n public FitReset(): void { this.pz?.Reset(); }\n public ReapplyView(): void { this.pz?.Reapply(); }\n ngOnDestroy(): void { this.pz?.Detach(); }\n\n private readonly VW = 1280;\n private readonly PAD = 188;\n private readonly TOP = 132;\n private readonly LINE_GAP = 168;\n private readonly DWELL = 0.6;\n private readonly MIN_LABEL_GAP = 40;\n private get IW(): number { return this.VW - this.PAD - 90; }\n\n public SetSelected(id: number | null): void { this.selectedId = id ?? -1; }\n\n @Input() set Model(m: FlowModel | null) { this._model = m; this.built = false; this.clear(); }\n\n public Render(p: number, ts: number): void {\n if (!this._model) return;\n if (!this.built) { this.build(); this.built = true; }\n this.update(p, ts);\n }\n\n private clear(): void {\n this.pz?.Detach(); this.pz = undefined;\n const svg = this.svgRef?.nativeElement;\n if (svg) while (svg.firstChild) svg.removeChild(svg.firstChild);\n this.stations.clear(); this.connectors = [];\n }\n\n private build(): void {\n const svg = this.svgRef.nativeElement;\n const m = this._model!;\n const agents = m.nodes.filter(n => n.type === 'agent' || n.type === 'subagent');\n const lineY = new Map<number, number>();\n agents.forEach((a, i) => lineY.set(a.id, this.TOP + i * this.LINE_GAP));\n const VH = this.TOP + Math.max(1, agents.length) * this.LINE_GAP + 30;\n svg.setAttribute('viewBox', `0 0 ${this.VW} ${VH}`);\n\n const main = svgEl('g', {}, svg);\n const lineG = svgEl('g', {}, main);\n const connG = svgEl('g', {}, main);\n const stationG = svgEl('g', {}, main);\n const trainG = svgEl('g', {}, main);\n\n const sx = (l: FlowNode) => this.PAD + l.tmid * this.IW;\n const sy = (l: FlowNode) => lineY.get(agentOf(l).id) ?? this.TOP;\n const radius = (l: FlowNode) => Math.min(17, 8 + Math.sqrt(l.realDur) * 1.4);\n\n // line backbones + agent labels (left gutter, with the agent's icon)\n for (const a of agents) {\n const kids = m.leaves.filter(l => agentOf(l) === a);\n const y = lineY.get(a.id)!;\n const col = FLOW_COLORS[a.type];\n if (kids.length) {\n const x0 = Math.min(...kids.map(sx)) - 32, x1 = Math.max(...kids.map(sx)) + 32;\n svgEl('line', { x1: x0, y1: y, x2: x1, y2: y, stroke: col, 'stroke-width': 7, opacity: 0.32, 'stroke-linecap': 'round' }, lineG);\n }\n appendIcon(lineG, 14, y - 11, 22, a.iconClass, a.logoUrl, col);\n svgEl('text', { x: 44, y: y - 6, 'font-size': 13, 'font-weight': 700, fill: col, 'dominant-baseline': 'middle', text: clip(agentShortName(a), 18) }, lineG);\n svgEl('text', { x: 44, y: y + 10, 'font-size': 9.5, 'dominant-baseline': 'middle', class: 'ftxt-muted', text: `${kids.length} step${kids.length === 1 ? '' : 's'} · ${formatDuration(a.realDur)}` }, lineG);\n }\n\n // connectors carry the destination line's (agent's) colour\n for (let i = 0; i < m.leaves.length - 1; i++) {\n const a = m.leaves[i], b = m.leaves[i + 1];\n const ax = sx(a), ay = sy(a), bx = sx(b), by = sy(b);\n const mx = (ax + bx) / 2;\n const d = ay === by ? `M${ax},${ay} L${bx},${by}` : `M${ax},${ay} L${mx},${ay} L${mx},${by} L${bx},${by}`;\n const path = svgEl('path', { d, fill: 'none', stroke: FLOW_COLORS[agentOf(b).type], 'stroke-width': 3, opacity: 0.14, 'stroke-linejoin': 'round', 'stroke-linecap': 'round' }, connG) as SVGGraphicsElement;\n this.connectors.push({ path, to: b, len: (path as unknown as SVGPathElement).getTotalLength() });\n }\n\n // stations: ring + step icon; angled abbreviated label (thinned when dense)\n let lastLabelX = -1e9;\n m.leaves.forEach((l) => {\n const x = sx(l), y = sy(l), r = radius(l);\n const col = FLOW_COLORS[l.type];\n const grp = svgEl('g', {}, stationG);\n (grp as SVGElement & { style: CSSStyleDeclaration }).style.color = col;\n (grp as SVGElement & { style: CSSStyleDeclaration }).style.cursor = 'pointer';\n appendTitle(grp, `${l.name} · ${formatDuration(l.realDur)}`);\n const ring = svgEl('circle', { cx: x, cy: y, r, fill: 'var(--mj-bg-surface)', stroke: col, 'stroke-width': 3.2 }, grp);\n appendIcon(grp, x - r * 0.62, y - r * 0.62, r * 1.24, l.iconClass, l.logoUrl, col);\n\n const show = (x - lastLabelX >= this.MIN_LABEL_GAP) || l.heat >= 2;\n let lab: SVGElement | undefined;\n if (show) {\n lastLabelX = x;\n const lx = x, ly = y - r - 8;\n lab = svgEl('text', {\n x: lx, y: ly, 'font-size': 10.5, 'font-weight': 600, 'text-anchor': 'start',\n transform: `rotate(-30 ${lx} ${ly})`, class: 'ftxt-secondary', opacity: 0.7,\n text: `${clip(shortLabel(l), 22)} · ${formatDuration(l.realDur)}`\n }, grp);\n }\n grp.addEventListener('click', () => { if (!this.pz?.moved) this.nodeSelected.emit(l); });\n this.stations.set(l.id, { ring, lab, leaf: l, r, sx: x, sy: y });\n });\n\n this.trainHalo = svgEl('circle', { r: 17, opacity: 0, class: 'fhand-dot' }, trainG);\n this.train = svgEl('circle', { r: 9, opacity: 0, stroke: 'var(--mj-bg-surface)', 'stroke-width': 2.5 }, trainG);\n\n this.pz = new PanZoomController(svg, main, 'mj.agentRunFlow.view.subway.v1');\n this.pz.Load(); this.pz.Attach();\n }\n\n private update(p: number, ts: number): void {\n const m = this._model!;\n this.stations.forEach(({ ring, lab, leaf, r }) => {\n const started = p >= leaf.t0;\n const active = started && p < leaf.t1;\n const selected = leaf.id === this.selectedId;\n ring.setAttribute('class', selected ? 'glow2' : active ? 'glow' + Math.max(1, leaf.heat) : '');\n ring.setAttribute('stroke-width', selected ? '4.5' : '3.2');\n ring.setAttribute('r', String(active ? r + 2 * Math.abs(Math.sin(ts / 220)) : r));\n ring.setAttribute('fill-opacity', started ? '1' : '0.55');\n lab?.setAttribute('opacity', active || selected ? '1' : started ? '0.85' : '0.6');\n });\n this.connectors.forEach(({ path, to }) => {\n const done = p >= to.t1, lit = p >= to.t0;\n path.setAttribute('opacity', done ? '0.7' : lit ? '0.45' : '0.14');\n path.setAttribute('stroke-width', lit ? '3.6' : '3');\n });\n\n const leaf = activeLeaf(m, p);\n const idx = m.leaves.indexOf(leaf);\n const frac = p >= leaf.t1 ? 1 : Math.max(0, (p - leaf.t0) / (leaf.t1 - leaf.t0));\n const here = this.stations.get(leaf.id);\n let tx = here?.sx ?? 0, ty = here?.sy ?? 0;\n if (here && idx >= 0 && idx < this.connectors.length && frac >= this.DWELL) {\n const conn = this.connectors[idx];\n const lt = (frac - this.DWELL) / (1 - this.DWELL);\n const pt = (conn.path as unknown as SVGPathElement).getPointAtLength(lt * conn.len);\n tx = pt.x; ty = pt.y;\n }\n const live = p > 0 && p < 1;\n const lineCol = FLOW_COLORS[agentOf(leaf).type];\n if (this.train) {\n this.train.setAttribute('cx', String(tx)); this.train.setAttribute('cy', String(ty));\n this.train.setAttribute('opacity', live ? '1' : '0');\n this.train.setAttribute('fill', lineCol);\n this.train.setAttribute('class', live ? 'glow2' : '');\n (this.train as SVGElement & { style: CSSStyleDeclaration }).style.color = lineCol;\n }\n if (this.trainHalo) {\n this.trainHalo.setAttribute('cx', String(tx)); this.trainHalo.setAttribute('cy', String(ty));\n this.trainHalo.setAttribute('opacity', live ? String(0.16 + 0.08 * Math.sin(ts / 200)) : '0');\n }\n }\n}\n"]}
1
+ {"version":3,"file":"subway-lines.component.js","sourceRoot":"","sources":["../../../../../src/lib/custom/ai-agent-run/flow/subway-lines.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAc,KAAK,EAAE,MAAM,EAAE,YAAY,EAAE,SAAS,EAAa,uBAAuB,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAC;AACrJ,OAAO,EACgB,WAAW,EAAE,OAAO,EAAE,cAAc,EAAE,UAAU,EAAE,UAAU,EAAE,cAAc,EAClG,MA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AC,CAAC,GAAG,CAAC,CAAC;QAChG,CAAC;IACH,CAAC;qHArLU,oBAAoB;oEAApB,oBAAoB;;;;;;;YALpB,4BAAqE;;;iFAKrE,oBAAoB;cARhC,SAAS;6BACI,KAAK,YACP,sBAAsB,YACtB,uEAAuE,iBAElE,iBAAiB,CAAC,IAAI,mBACpB,uBAAuB,CAAC,MAAM;;kBAG9C,SAAS;mBAAC,KAAK,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE;;kBAUjC,MAAM;;kBASN,MAAM;;kBA2BN,KAAK;;kFA/CK,oBAAoB","sourcesContent":["import { Component, ElementRef, Input, Output, EventEmitter, ViewChild, OnDestroy, ChangeDetectionStrategy, ViewEncapsulation } from '@angular/core';\nimport {\n FlowModel, FlowNode, FLOW_COLORS, AgentOf, AgentShortName, ShortLabel, ActiveLeaf, FormatDuration\n} from './agent-run-flow.model';\nimport { SvgEl, Clip, AppendIcon, AppendTitle } from './flow-svg.util';\nimport { PanZoomController } from './pan-zoom';\n\ninterface Station { ring: SVGElement; lab?: SVGElement; leaf: FlowNode; r: number; sx: number; sy: number; }\ninterface Connector { path: SVGGraphicsElement; to: FlowNode; len: number; }\n\n/**\n * Subway Lines — each agent is a transit line; sub-agents branch off and rejoin.\n * Connectors carry the line's (agent's) colour and brighten as the train passes,\n * so you can follow a sub-agent's route end to end. Stations show the real step\n * icon; labels are abbreviated and angled 30° so dense lines stay readable.\n */\n@Component({\n standalone: false,\n selector: 'mj-agent-flow-subway',\n template: `<svg #svg class=\"flow-svg\" preserveAspectRatio=\"xMidYMid meet\"></svg>`,\n styleUrls: ['./flow-shared.css'],\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class SubwayLinesComponent implements OnDestroy {\n @ViewChild('svg', { static: true }) SvgRef!: ElementRef<SVGSVGElement>;\n\n /** @deprecated Use {@link SvgRef}. */\n get svgRef(): ElementRef<SVGSVGElement> {\n return this.SvgRef;\n }\n /** @deprecated Use {@link SvgRef}. */\n set svgRef(value: ElementRef<SVGSVGElement>) {\n this.SvgRef = value;\n }\n @Output() NodeSelected = new EventEmitter<FlowNode>();\n\n /**\n * @deprecated Use {@link NodeSelected}.\n *\n * The same emitter under the old binding name, so a template still binding\n * (nodeSelected) keeps working. Must stay AFTER NodeSelected: class fields\n * initialise in order, and the other way round this captures undefined.\n */\n @Output() nodeSelected = this.NodeSelected;\n\n private _model: FlowModel | null = null;\n private built = false;\n private stations = new Map<number, Station>();\n private connectors: Connector[] = [];\n private train?: SVGElement;\n private trainHalo?: SVGElement;\n private selectedId = -1;\n private pz?: PanZoomController;\n\n public ZoomIn(): void { this.pz?.ZoomIn(); }\n public ZoomOut(): void { this.pz?.ZoomOut(); }\n public FitReset(): void { this.pz?.Reset(); }\n public ReapplyView(): void { this.pz?.Reapply(); }\n ngOnDestroy(): void { this.pz?.Detach(); }\n\n private readonly VW = 1280;\n private readonly PAD = 188;\n private readonly TOP = 132;\n private readonly LINE_GAP = 168;\n private readonly DWELL = 0.6;\n private readonly MIN_LABEL_GAP = 40;\n private get IW(): number { return this.VW - this.PAD - 90; }\n\n public SetSelected(id: number | null): void { this.selectedId = id ?? -1; }\n\n @Input() set Model(m: FlowModel | null) { this._model = m; this.built = false; this.clear(); }\n\n public Render(p: number, ts: number): void {\n if (!this._model) return;\n if (!this.built) { this.build(); this.built = true; }\n this.update(p, ts);\n }\n\n private clear(): void {\n this.pz?.Detach(); this.pz = undefined;\n const svg = this.SvgRef?.nativeElement;\n if (svg) while (svg.firstChild) svg.removeChild(svg.firstChild);\n this.stations.clear(); this.connectors = [];\n }\n\n private build(): void {\n const svg = this.SvgRef.nativeElement;\n const m = this._model!;\n const agents = m.Nodes.filter(n => n.Type === 'agent' || n.Type === 'subagent');\n const lineY = new Map<number, number>();\n agents.forEach((a, i) => lineY.set(a.Id, this.TOP + i * this.LINE_GAP));\n const VH = this.TOP + Math.max(1, agents.length) * this.LINE_GAP + 30;\n svg.setAttribute('viewBox', `0 0 ${this.VW} ${VH}`);\n\n const main = SvgEl('g', {}, svg);\n const lineG = SvgEl('g', {}, main);\n const connG = SvgEl('g', {}, main);\n const stationG = SvgEl('g', {}, main);\n const trainG = SvgEl('g', {}, main);\n\n const sx = (l: FlowNode) => this.PAD + l.Tmid * this.IW;\n const sy = (l: FlowNode) => lineY.get(AgentOf(l).Id) ?? this.TOP;\n const radius = (l: FlowNode) => Math.min(17, 8 + Math.sqrt(l.RealDur) * 1.4);\n\n // line backbones + agent labels (left gutter, with the agent's icon)\n for (const a of agents) {\n const kids = m.Leaves.filter(l => AgentOf(l) === a);\n const y = lineY.get(a.Id)!;\n const col = FLOW_COLORS[a.Type];\n if (kids.length) {\n const x0 = Math.min(...kids.map(sx)) - 32, x1 = Math.max(...kids.map(sx)) + 32;\n SvgEl('line', { x1: x0, y1: y, x2: x1, y2: y, stroke: col, 'stroke-width': 7, opacity: 0.32, 'stroke-linecap': 'round' }, lineG);\n }\n AppendIcon(lineG, 14, y - 11, 22, a.IconClass, a.LogoUrl, col);\n SvgEl('text', { x: 44, y: y - 6, 'font-size': 13, 'font-weight': 700, fill: col, 'dominant-baseline': 'middle', text: Clip(AgentShortName(a), 18) }, lineG);\n SvgEl('text', { x: 44, y: y + 10, 'font-size': 9.5, 'dominant-baseline': 'middle', class: 'ftxt-muted', text: `${kids.length} step${kids.length === 1 ? '' : 's'} · ${FormatDuration(a.RealDur)}` }, lineG);\n }\n\n // connectors carry the destination line's (agent's) colour\n for (let i = 0; i < m.Leaves.length - 1; i++) {\n const a = m.Leaves[i], b = m.Leaves[i + 1];\n const ax = sx(a), ay = sy(a), bx = sx(b), by = sy(b);\n const mx = (ax + bx) / 2;\n const d = ay === by ? `M${ax},${ay} L${bx},${by}` : `M${ax},${ay} L${mx},${ay} L${mx},${by} L${bx},${by}`;\n const path = SvgEl('path', { d, fill: 'none', stroke: FLOW_COLORS[AgentOf(b).Type], 'stroke-width': 3, opacity: 0.14, 'stroke-linejoin': 'round', 'stroke-linecap': 'round' }, connG) as SVGGraphicsElement;\n this.connectors.push({ path, to: b, len: (path as unknown as SVGPathElement).getTotalLength() });\n }\n\n // stations: ring + step icon; angled abbreviated label (thinned when dense)\n let lastLabelX = -1e9;\n m.Leaves.forEach((l) => {\n const x = sx(l), y = sy(l), r = radius(l);\n const col = FLOW_COLORS[l.Type];\n const grp = SvgEl('g', {}, stationG);\n (grp as SVGElement & { style: CSSStyleDeclaration }).style.color = col;\n (grp as SVGElement & { style: CSSStyleDeclaration }).style.cursor = 'pointer';\n AppendTitle(grp, `${l.Name} · ${FormatDuration(l.RealDur)}`);\n const ring = SvgEl('circle', { cx: x, cy: y, r, fill: 'var(--mj-bg-surface)', stroke: col, 'stroke-width': 3.2 }, grp);\n AppendIcon(grp, x - r * 0.62, y - r * 0.62, r * 1.24, l.IconClass, l.LogoUrl, col);\n\n const show = (x - lastLabelX >= this.MIN_LABEL_GAP) || l.Heat >= 2;\n let lab: SVGElement | undefined;\n if (show) {\n lastLabelX = x;\n const lx = x, ly = y - r - 8;\n lab = SvgEl('text', {\n x: lx, y: ly, 'font-size': 10.5, 'font-weight': 600, 'text-anchor': 'start',\n transform: `rotate(-30 ${lx} ${ly})`, class: 'ftxt-secondary', opacity: 0.7,\n text: `${Clip(ShortLabel(l), 22)} · ${FormatDuration(l.RealDur)}`\n }, grp);\n }\n grp.addEventListener('click', () => { if (!this.pz?.moved) this.NodeSelected.emit(l); });\n this.stations.set(l.Id, { ring, lab, leaf: l, r, sx: x, sy: y });\n });\n\n this.trainHalo = SvgEl('circle', { r: 17, opacity: 0, class: 'fhand-dot' }, trainG);\n this.train = SvgEl('circle', { r: 9, opacity: 0, stroke: 'var(--mj-bg-surface)', 'stroke-width': 2.5 }, trainG);\n\n this.pz = new PanZoomController(svg, main, 'mj.agentRunFlow.view.subway.v1');\n this.pz.Load(); this.pz.Attach();\n }\n\n private update(p: number, ts: number): void {\n const m = this._model!;\n this.stations.forEach(({ ring, lab, leaf, r }) => {\n const started = p >= leaf.T0;\n const active = started && p < leaf.T1;\n const selected = leaf.Id === this.selectedId;\n ring.setAttribute('class', selected ? 'glow2' : active ? 'glow' + Math.max(1, leaf.Heat) : '');\n ring.setAttribute('stroke-width', selected ? '4.5' : '3.2');\n ring.setAttribute('r', String(active ? r + 2 * Math.abs(Math.sin(ts / 220)) : r));\n ring.setAttribute('fill-opacity', started ? '1' : '0.55');\n lab?.setAttribute('opacity', active || selected ? '1' : started ? '0.85' : '0.6');\n });\n this.connectors.forEach(({ path, to }) => {\n const done = p >= to.T1, lit = p >= to.T0;\n path.setAttribute('opacity', done ? '0.7' : lit ? '0.45' : '0.14');\n path.setAttribute('stroke-width', lit ? '3.6' : '3');\n });\n\n const leaf = ActiveLeaf(m, p);\n const idx = m.Leaves.indexOf(leaf);\n const frac = p >= leaf.T1 ? 1 : Math.max(0, (p - leaf.T0) / (leaf.T1 - leaf.T0));\n const here = this.stations.get(leaf.Id);\n let tx = here?.sx ?? 0, ty = here?.sy ?? 0;\n if (here && idx >= 0 && idx < this.connectors.length && frac >= this.DWELL) {\n const conn = this.connectors[idx];\n const lt = (frac - this.DWELL) / (1 - this.DWELL);\n const pt = (conn.path as unknown as SVGPathElement).getPointAtLength(lt * conn.len);\n tx = pt.x; ty = pt.y;\n }\n const live = p > 0 && p < 1;\n const lineCol = FLOW_COLORS[AgentOf(leaf).Type];\n if (this.train) {\n this.train.setAttribute('cx', String(tx)); this.train.setAttribute('cy', String(ty));\n this.train.setAttribute('opacity', live ? '1' : '0');\n this.train.setAttribute('fill', lineCol);\n this.train.setAttribute('class', live ? 'glow2' : '');\n (this.train as SVGElement & { style: CSSStyleDeclaration }).style.color = lineCol;\n }\n if (this.trainHalo) {\n this.trainHalo.setAttribute('cx', String(tx)); this.trainHalo.setAttribute('cy', String(ty));\n this.trainHalo.setAttribute('opacity', live ? String(0.16 + 0.08 * Math.sin(ts / 200)) : '0');\n }\n }\n}\n"]}
@@ -3,32 +3,58 @@ import { SharedService } from '@memberjunction/ng-shared';
3
3
  import { BaseAngularComponent } from '@memberjunction/ng-base-types';
4
4
  import * as i0 from "@angular/core";
5
5
  export interface EntitySelectorConfig {
6
- entityName: string;
7
- title: string;
8
- displayField: string;
9
- descriptionField?: string;
10
- statusField?: string;
11
- filters?: string;
12
- orderBy?: string;
13
- icon?: string;
6
+ EntityName: string;
7
+ Title: string;
8
+ DisplayField: string;
9
+ DescriptionField?: string;
10
+ StatusField?: string;
11
+ Filters?: string;
12
+ OrderBy?: string;
13
+ Icon?: string;
14
14
  }
15
15
  export declare class EntitySelectorDialogComponent extends BaseAngularComponent implements OnInit {
16
16
  private sharedService;
17
17
  config: EntitySelectorConfig;
18
- entities: any[];
19
- filteredEntities: any[];
20
- selectedEntity: any;
21
- searchText: string;
18
+ Entities: any[];
19
+ /** @deprecated Use {@link Entities}. */
20
+ get entities(): any[];
21
+ /** @deprecated Use {@link Entities}. */
22
+ set entities(value: any[]);
23
+ FilteredEntities: any[];
24
+ /** @deprecated Use {@link FilteredEntities}. */
25
+ get filteredEntities(): any[];
26
+ /** @deprecated Use {@link FilteredEntities}. */
27
+ set filteredEntities(value: any[]);
28
+ SelectedEntity: any;
29
+ /** @deprecated Use {@link SelectedEntity}. */
30
+ get selectedEntity(): any;
31
+ /** @deprecated Use {@link SelectedEntity}. */
32
+ set selectedEntity(value: any);
33
+ SearchText: string;
34
+ /** @deprecated Use {@link SearchText}. */
35
+ get searchText(): string;
36
+ /** @deprecated Use {@link SearchText}. */
37
+ set searchText(value: string);
22
38
  isLoading: boolean;
23
39
  DialogClosed: EventEmitter<Record<string, unknown> | null>;
24
40
  constructor(sharedService: SharedService);
25
41
  /** Title for the empty/no-results placeholder, echoing the active search term when narrowed. */
26
42
  get EmptyStateTitle(): string;
27
43
  ngOnInit(): Promise<void>;
44
+ LoadEntities(): Promise<void>;
45
+ /** @deprecated Use {@link LoadEntities}. */
28
46
  loadEntities(): Promise<void>;
47
+ OnSearchChange(): void;
48
+ /** @deprecated Use {@link OnSearchChange}. */
29
49
  onSearchChange(): void;
50
+ SelectEntity(entity: any): void;
51
+ /** @deprecated Use {@link SelectEntity}. */
30
52
  selectEntity(entity: any): void;
53
+ OnSelect(): void;
54
+ /** @deprecated Use {@link OnSelect}. */
31
55
  onSelect(): void;
56
+ CreateNew(): void;
57
+ /** @deprecated Use {@link CreateNew}. */
32
58
  createNew(): void;
33
59
  IsEntitySelected(entity: Record<string, unknown>): boolean;
34
60
  onCancel(): void;
@@ -1 +1 @@
1
- {"version":3,"file":"entity-selector-dialog.component.d.ts","sourceRoot":"","sources":["../../../../src/lib/custom/shared/entity-selector-dialog.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAA4B,YAAY,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAC/E,OAAO,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAI1D,OAAO,EAAE,oBAAoB,EAAE,MAAM,+BAA+B,CAAC;;AACrE,MAAM,WAAW,oBAAoB;IACjC,UAAU,EAAE,MAAM,CAAC;IACnB,KAAK,EAAE,MAAM,CAAC;IACd,YAAY,EAAE,MAAM,CAAC;IACrB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,IAAI,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,qBAmPa,6BAA8B,SAAQ,oBAAqB,YAAW,MAAM;IAYjF,OAAO,CAAC,aAAa;IAXhB,MAAM,EAAG,oBAAoB,CAAC;IAEhC,QAAQ,EAAE,GAAG,EAAE,CAAM;IACrB,gBAAgB,EAAE,GAAG,EAAE,CAAM;IAC7B,cAAc,EAAE,GAAG,CAAQ;IAC3B,UAAU,EAAE,MAAM,CAAM;IACxB,SAAS,EAAE,OAAO,CAAQ;IAEvB,YAAY,+CAAsD;gBAGhE,aAAa,EAAE,aAAa;IAIxC,gGAAgG;IAChG,IAAW,eAAe,IAAI,MAAM,CAInC;IAEK,QAAQ;IAIR,YAAY;IAqBlB,cAAc;IAcd,YAAY,CAAC,MAAM,EAAE,GAAG;IAIxB,QAAQ;IAMR,SAAS;IAIT,gBAAgB,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,OAAO;IAI1D,QAAQ;yCAhFC,6BAA6B;2CAA7B,6BAA6B;CAmFzC"}
1
+ {"version":3,"file":"entity-selector-dialog.component.d.ts","sourceRoot":"","sources":["../../../../src/lib/custom/shared/entity-selector-dialog.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAA4B,YAAY,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAC/E,OAAO,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAI1D,OAAO,EAAE,oBAAoB,EAAE,MAAM,+BAA+B,CAAC;;AACrE,MAAM,WAAW,oBAAoB;IACjC,UAAU,EAAE,MAAM,CAAC;IACnB,KAAK,EAAE,MAAM,CAAC;IACd,YAAY,EAAE,MAAM,CAAC;IACrB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,IAAI,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,qBAmPa,6BAA8B,SAAQ,oBAAqB,YAAW,MAAM;IAgDjF,OAAO,CAAC,aAAa;IA/ChB,MAAM,EAAG,oBAAoB,CAAC;IAEhC,QAAQ,EAAE,GAAG,EAAE,CAAM;IAE5B,wCAAwC;IACxC,IAAW,QAAQ,IAAI,GAAG,EAAE,CAE3B;IACD,wCAAwC;IACxC,IAAW,QAAQ,CAAC,KAAK,EAAE,GAAG,EAAE,EAE/B;IACM,gBAAgB,EAAE,GAAG,EAAE,CAAM;IAEpC,gDAAgD;IAChD,IAAW,gBAAgB,IAAI,GAAG,EAAE,CAEnC;IACD,gDAAgD;IAChD,IAAW,gBAAgB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