@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
@@ -11,15 +11,15 @@ export interface CreatePromptConfig {
11
11
  /** Title for the dialog */
12
12
  title?: string;
13
13
  /** Initial name for the prompt */
14
- initialName?: string;
14
+ InitialName?: string;
15
15
  /** Pre-selected prompt type ID */
16
- initialTypeID?: string;
16
+ InitialTypeID?: string;
17
17
  }
18
18
  export interface CreatePromptResult {
19
19
  /** Created prompt entity (not saved to database) */
20
20
  prompt: MJAIPromptEntityExtended;
21
21
  /** Created template entity (not saved to database) */
22
- template?: MJTemplateEntity;
22
+ Template?: MJTemplateEntity;
23
23
  /** Template content entities (not saved to database) */
24
24
  templateContents?: MJTemplateContentEntity[];
25
25
  }
@@ -33,18 +33,66 @@ export declare class CreatePromptDialogComponent extends BaseAngularComponent im
33
33
  private aiPromptManagementService;
34
34
  config: CreatePromptConfig;
35
35
  private destroy$;
36
- result: Subject<CreatePromptResult | null>;
37
- promptForm: FormGroup;
38
- isLoading$: BehaviorSubject<boolean>;
39
- isSaving$: BehaviorSubject<boolean>;
40
- availablePromptTypes$: BehaviorSubject<MJAIPromptTypeEntity[]>;
41
- promptEntity: MJAIPromptEntityExtended | null;
42
- templateEntity: MJTemplateEntity | null;
43
- templateContents: MJTemplateContentEntity[];
44
- templateEditor: any;
45
- showTemplateEditor: boolean;
46
- templateEditorConfig: TemplateEditorConfig;
47
- templateMode: 'new' | 'existing';
36
+ Result: Subject<CreatePromptResult | null>;
37
+ /** @deprecated Use {@link Result}. */
38
+ get result(): Subject<CreatePromptResult | null>;
39
+ /** @deprecated Use {@link Result}. */
40
+ set result(value: Subject<CreatePromptResult | null>);
41
+ PromptForm: FormGroup;
42
+ /** @deprecated Use {@link PromptForm}. */
43
+ get promptForm(): FormGroup;
44
+ /** @deprecated Use {@link PromptForm}. */
45
+ set promptForm(value: FormGroup);
46
+ IsLoading$: BehaviorSubject<boolean>;
47
+ /** @deprecated Use {@link IsLoading$}. */
48
+ get isLoading$(): BehaviorSubject<boolean>;
49
+ /** @deprecated Use {@link IsLoading$}. */
50
+ set isLoading$(value: BehaviorSubject<boolean>);
51
+ IsSaving$: BehaviorSubject<boolean>;
52
+ /** @deprecated Use {@link IsSaving$}. */
53
+ get isSaving$(): BehaviorSubject<boolean>;
54
+ /** @deprecated Use {@link IsSaving$}. */
55
+ set isSaving$(value: BehaviorSubject<boolean>);
56
+ AvailablePromptTypes$: BehaviorSubject<MJAIPromptTypeEntity[]>;
57
+ /** @deprecated Use {@link AvailablePromptTypes$}. */
58
+ get availablePromptTypes$(): BehaviorSubject<MJAIPromptTypeEntity[]>;
59
+ /** @deprecated Use {@link AvailablePromptTypes$}. */
60
+ set availablePromptTypes$(value: BehaviorSubject<MJAIPromptTypeEntity[]>);
61
+ PromptEntity: MJAIPromptEntityExtended | null;
62
+ /** @deprecated Use {@link PromptEntity}. */
63
+ get promptEntity(): MJAIPromptEntityExtended | null;
64
+ /** @deprecated Use {@link PromptEntity}. */
65
+ set promptEntity(value: MJAIPromptEntityExtended | null);
66
+ TemplateEntity: MJTemplateEntity | null;
67
+ /** @deprecated Use {@link TemplateEntity}. */
68
+ get templateEntity(): MJTemplateEntity | null;
69
+ /** @deprecated Use {@link TemplateEntity}. */
70
+ set templateEntity(value: MJTemplateEntity | null);
71
+ TemplateContents: MJTemplateContentEntity[];
72
+ /** @deprecated Use {@link TemplateContents}. */
73
+ get templateContents(): MJTemplateContentEntity[];
74
+ /** @deprecated Use {@link TemplateContents}. */
75
+ set templateContents(value: MJTemplateContentEntity[]);
76
+ TemplateEditor: any;
77
+ /** @deprecated Use {@link TemplateEditor}. */
78
+ get templateEditor(): any;
79
+ /** @deprecated Use {@link TemplateEditor}. */
80
+ set templateEditor(value: any);
81
+ ShowTemplateEditor: boolean;
82
+ /** @deprecated Use {@link ShowTemplateEditor}. */
83
+ get showTemplateEditor(): boolean;
84
+ /** @deprecated Use {@link ShowTemplateEditor}. */
85
+ set showTemplateEditor(value: boolean);
86
+ TemplateEditorConfig: TemplateEditorConfig;
87
+ /** @deprecated Use {@link TemplateEditorConfig}. */
88
+ get templateEditorConfig(): TemplateEditorConfig;
89
+ /** @deprecated Use {@link TemplateEditorConfig}. */
90
+ set templateEditorConfig(value: TemplateEditorConfig);
91
+ TemplateMode: 'new' | 'existing';
92
+ /** @deprecated Use {@link TemplateMode}. */
93
+ get templateMode(): 'new' | 'existing';
94
+ /** @deprecated Use {@link TemplateMode}. */
95
+ set templateMode(value: 'new' | 'existing');
48
96
  DialogClose: EventEmitter<void>;
49
97
  constructor(cdr: ChangeDetectorRef, aiPromptManagementService: AIPromptManagementService);
50
98
  ngOnInit(): void;
@@ -52,8 +100,12 @@ export declare class CreatePromptDialogComponent extends BaseAngularComponent im
52
100
  private createForm;
53
101
  private setupFormWatching;
54
102
  private loadInitialData;
103
+ HandleTemplateModeChange(mode: string): Promise<void>;
104
+ /** @deprecated Use {@link HandleTemplateModeChange}. */
55
105
  handleTemplateModeChange(mode: string): Promise<void>;
56
106
  private createNewTemplate;
107
+ OnTemplateContentChange(contents: MJTemplateContentEntity[]): void;
108
+ /** @deprecated Use {@link OnTemplateContentChange}. */
57
109
  onTemplateContentChange(contents: MJTemplateContentEntity[]): void;
58
110
  save(): Promise<void>;
59
111
  cancel(): void;
@@ -61,6 +113,8 @@ export declare class CreatePromptDialogComponent extends BaseAngularComponent im
61
113
  * Opens the template selector dialog to link an existing template
62
114
  */
63
115
  private openTemplateSelector;
116
+ get CurrentTemplate(): MJTemplateEntity | null;
117
+ /** @deprecated Use {@link CurrentTemplate}. */
64
118
  get currentTemplate(): MJTemplateEntity | null;
65
119
  static ɵfac: i0.ɵɵFactoryDeclaration<CreatePromptDialogComponent, never>;
66
120
  static ɵcmp: i0.ɵɵComponentDeclaration<CreatePromptDialogComponent, "mj-create-prompt-dialog", never, {}, { "DialogClose": "DialogClose"; }, never, never, false, never>;
@@ -1 +1 @@
1
- {"version":3,"file":"create-prompt-dialog.component.d.ts","sourceRoot":"","sources":["../../../../src/lib/custom/AIAgents/create-prompt-dialog.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAAa,MAAM,EAAE,SAAS,EAAE,iBAAiB,EAAqB,YAAY,EAAE,MAAM,eAAe,CAAC;AACjH,OAAO,EAAe,SAAS,EAAc,MAAM,gBAAgB,CAAC;AACpE,OAAO,EAAE,OAAO,EAAE,eAAe,EAAa,MAAM,MAAM,CAAC;AAE3D,OAAO,EAAE,gBAAgB,EAAE,oBAAoB,EAAE,uBAAuB,EAAE,MAAM,+BAA+B,CAAC;AAChH,OAAO,EAAE,wBAAwB,EAAE,MAAM,8BAA8B,CAAC;AAExE,OAAO,EAAE,oBAAoB,EAAE,MAAM,mDAAmD,CAAC;AACzF,OAAO,EAAE,yBAAyB,EAAE,MAAM,2CAA2C,CAAC;AAGtF,OAAO,EAAE,oBAAoB,EAAE,MAAM,+BAA+B,CAAC;;AACrE,MAAM,WAAW,kBAAkB;IACjC,2BAA2B;IAC3B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,kCAAkC;IAClC,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,kCAAkC;IAClC,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB;AAED,MAAM,WAAW,kBAAkB;IACjC,oDAAoD;IACpD,MAAM,EAAE,wBAAwB,CAAC;IACjC,sDAAsD;IACtD,QAAQ,CAAC,EAAE,gBAAgB,CAAC;IAC5B,wDAAwD;IACxD,gBAAgB,CAAC,EAAE,uBAAuB,EAAE,CAAC;CAC9C;AAED;;;;GAIG;AACH,qBAMa,2BAA4B,SAAQ,oBAAqB,YAAW,MAAM,EAAE,SAAS;IAqC9F,OAAO,CAAC,GAAG;IACX,OAAO,CAAC,yBAAyB;IAnCnC,MAAM,EAAE,kBAAkB,CAAM;IAGhC,OAAO,CAAC,QAAQ,CAAuB;IAChC,MAAM,qCAA4C;IAGzD,UAAU,EAAE,SAAS,CAAC;IACtB,UAAU,2BAAuC;IACjD,SAAS,2BAAuC;IAGhD,qBAAqB,0CAAmD;IAGxE,YAAY,EAAE,wBAAwB,GAAG,IAAI,CAAQ;IACrD,cAAc,EAAE,gBAAgB,GAAG,IAAI,CAAQ;IAC/C,gBAAgB,EAAE,uBAAuB,EAAE,CAAM;IAGpB,cAAc,EAAE,GAAG,CAAC;IACjD,kBAAkB,UAAS;IAC3B,oBAAoB,EAAE,oBAAoB,CAIxC;IAGF,YAAY,EAAE,KAAK,GAAG,UAAU,CAAS;IAE/B,WAAW,qBAA4B;gBAGvC,GAAG,EAAE,iBAAiB,EACtB,yBAAyB,EAAE,yBAAyB;IAM9D,QAAQ;IAKR,WAAW;IAKX,OAAO,CAAC,UAAU;IAWlB,OAAO,CAAC,iBAAiB;YAUX,eAAe;IAgDhB,wBAAwB,CAAC,IAAI,EAAE,MAAM;YAWpC,iBAAiB;IA6BxB,uBAAuB,CAAC,QAAQ,EAAE,uBAAuB,EAAE;IAIrD,IAAI;IAyDV,MAAM;IAKb;;OAEG;YACW,oBAAoB;IA8ClC,IAAW,eAAe,IAAI,gBAAgB,GAAG,IAAI,CAEpD;yCAxRU,2BAA2B;2CAA3B,2BAA2B;CAyRvC"}
1
+ {"version":3,"file":"create-prompt-dialog.component.d.ts","sourceRoot":"","sources":["../../../../src/lib/custom/AIAgents/create-prompt-dialog.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAAa,MAAM,EAAE,SAAS,EAAE,iBAAiB,EAAqB,YAAY,EAAE,MAAM,eAAe,CAAC;AACjH,OAAO,EAAe,SAAS,EAAc,MAAM,gBAAgB,CAAC;AACpE,OAAO,EAAE,OAAO,EAAE,eAAe,EAAa,MAAM,MAAM,CAAC;AAE3D,OAAO,EAAE,gBAAgB,EAAE,oBAAoB,EAAE,uBAAuB,EAAE,MAAM,+BAA+B,CAAC;AAChH,OAAO,EAAE,wBAAwB,EAAE,MAAM,8BAA8B,CAAC;AAExE,OAAO,EAAE,oBAAoB,EAAE,MAAM,mDAAmD,CAAC;AACzF,OAAO,EAAE,yBAAyB,EAAE,MAAM,2CAA2C,CAAC;AAGtF,OAAO,EAAE,oBAAoB,EAAE,MAAM,+BAA+B,CAAC;;AACrE,MAAM,WAAW,kBAAkB;IACjC,2BAA2B;IAC3B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,kCAAkC;IAClC,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,kCAAkC;IAClC,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB;AAED,MAAM,WAAW,kBAAkB;IACjC,oDAAoD;IACpD,MAAM,EAAE,wBAAwB,CAAC;IACjC,sDAAsD;IACtD,QAAQ,CAAC,EAAE,gBAAgB,CAAC;IAC5B,wDAAwD;IACxD,gBAAgB,CAAC,EAAE,uBAAuB,EAAE,CAAC;CAC9C;AAED;;;;GAIG;AACH,qBAMa,2BAA4B,SAAQ,oBAAqB,YAAW,MAAM,EAAE,SAAS;IAiJ9F,OAAO,CAAC,GAAG;IACX,OAAO,CAAC,yBAAyB;IA/InC,MAAM,EAAE,kBAAkB,CAAM;IAGhC,OAAO,CAAC,QAAQ,CAAuB;IAChC,MAAM,qCAA4C;IAEzD,sCAAsC;IACtC,IAAW,MAAM,uCAEhB;IACD,sCAAsC;IACtC,IAAW,MAAM,CAAC,KAAK,oCAAA,EAEtB;IAGD,UAAU,EAAE,SAAS,CAAC;IAEtB,0CAA0C;IAC1C,IAAI,UAAU,IAAI,SAAS,CAE1B;IACD,0CAA0C;IAC1C,IAAI,UAAU,CAAC,KAAK,EAAE,SAAS,EAE9B;IACD,UAAU,2BAAuC;IAEjD,0CAA0C;IAC1C,IAAI,UAAU,6BAEb;IACD,0CAA0C;IAC1C,IAAI,UAAU,CAAC,KAAK,0BAAA,EAEnB;IACD,SAAS,2BAAuC;IAEhD,yCAAyC;IACzC,IAAI,SAAS,6BAEZ;IACD,yCAAyC;IACzC,IAAI,SAAS,CAAC,KAAK,0BAAA,EAElB;IAGD,qBAAqB,0CAAmD;IAExE,qDAAqD;IACrD,IAAI,qBAAqB,4CAExB;IACD,qDAAqD;IACrD,IAAI,qBAAqB,CAAC,KAAK,yCAAA,EAE9B;IAGD,YAAY,EAAE,wBAAwB,GAAG,IAAI,CAAQ;IAErD,4CAA4C;IAC5C,IAAI,YAAY,IAAI,wBAAwB,GAAG,IAAI,CAElD;IACD,4CAA4C;IAC5C,IAAI,YAAY,CAAC,KAAK,EAAE,wBAAwB,GAAG,IAAI,EAEtD;IACD,cAAc,EAAE,gBAAgB,GAAG,IAAI,CAAQ;IAE/C,8CAA8C;IAC9C,IAAI,cAAc,IAAI,gBAAgB,GAAG,IAAI,CAE5C;IACD,8CAA8C;IAC9C,IAAI,cAAc,CAAC,KAAK,EAAE,gBAAgB,GAAG,IAAI,EAEhD;IACD,gBAAgB,EAAE,uBAAuB,EAAE,CAAM;IAEjD,gDAAgD;IAChD,IAAI,gBAAgB,IAAI,uBAAuB,EAAE,CAEhD;IACD,gDAAgD;IAChD,IAAI,gBAAgB,CAAC,KAAK,EAAE,uBAAuB,EAAE,EAEpD;IAG4B,cAAc,EAAE,GAAG,CAAC;IAEjD,8CAA8C;IAC9C,IAAI,cAAc,IAAI,GAAG,CAExB;IACD,8CAA8C;IAC9C,IAAI,cAAc,CAAC,KAAK,EAAE,GAAG,EAE5B;IACD,kBAAkB,UAAS;IAE3B,kDAAkD;IAClD,IAAI,kBAAkB,YAErB;IACD,kDAAkD;IAClD,IAAI,kBAAkB,CAAC,KAAK,SAAA,EAE3B;IACD,oBAAoB,EAAE,oBAAoB,CAIxC;IAEF,oDAAoD;IACpD,IAAI,oBAAoB,IAAI,oBAAoB,CAE/C;IACD,oDAAoD;IACpD,IAAI,oBAAoB,CAAC,KAAK,EAAE,oBAAoB,EAEnD;IAGD,YAAY,EAAE,KAAK,GAAG,UAAU,CAAS;IAEzC,4CAA4C;IAC5C,IAAI,YAAY,IAAI,KAAK,GAAG,UAAU,CAErC;IACD,4CAA4C;IAC5C,IAAI,YAAY,CAAC,KAAK,EAAE,KAAK,GAAG,UAAU,EAEzC;IAES,WAAW,qBAA4B;gBAGvC,GAAG,EAAE,iBAAiB,EACtB,yBAAyB,EAAE,yBAAyB;IAM9D,QAAQ;IAKR,WAAW;IAKX,OAAO,CAAC,UAAU;IAWlB,OAAO,CAAC,iBAAiB;YAUX,eAAe;IAgDhB,wBAAwB,CAAC,IAAI,EAAE,MAAM;IAWlD,wDAAwD;IAC3C,wBAAwB,CAAC,IAAI,EAAE,MAAM;YAIpC,iBAAiB;IA6BxB,uBAAuB,CAAC,QAAQ,EAAE,uBAAuB,EAAE;IAIlE,uDAAuD;IAChD,uBAAuB,CAAC,QAAQ,EAAE,uBAAuB,EAAE;IAIrD,IAAI;IAyDV,MAAM;IAKb;;OAEG;YACW,oBAAoB;IA8ClC,IAAW,eAAe,IAAI,gBAAgB,GAAG,IAAI,CAEpD;IAED,+CAA+C;IAC/C,IAAW,eAAe,IAAI,gBAAgB,GAAG,IAAI,CAEpD;yCAnZU,2BAA2B;2CAA3B,2BAA2B;CAoZvC"}
@@ -195,6 +195,102 @@ function CreatePromptDialogComponent_Conditional_18_Template(rf, ctx) { if (rf &
195
195
  * This ensures atomicity with the parent form's save operation.
196
196
  */
197
197
  export class CreatePromptDialogComponent extends BaseAngularComponent {
198
+ /** @deprecated Use {@link Result}. */
199
+ get result() {
200
+ return this.Result;
201
+ }
202
+ /** @deprecated Use {@link Result}. */
203
+ set result(value) {
204
+ this.Result = value;
205
+ }
206
+ /** @deprecated Use {@link PromptForm}. */
207
+ get promptForm() {
208
+ return this.PromptForm;
209
+ }
210
+ /** @deprecated Use {@link PromptForm}. */
211
+ set promptForm(value) {
212
+ this.PromptForm = value;
213
+ }
214
+ /** @deprecated Use {@link IsLoading$}. */
215
+ get isLoading$() {
216
+ return this.IsLoading$;
217
+ }
218
+ /** @deprecated Use {@link IsLoading$}. */
219
+ set isLoading$(value) {
220
+ this.IsLoading$ = value;
221
+ }
222
+ /** @deprecated Use {@link IsSaving$}. */
223
+ get isSaving$() {
224
+ return this.IsSaving$;
225
+ }
226
+ /** @deprecated Use {@link IsSaving$}. */
227
+ set isSaving$(value) {
228
+ this.IsSaving$ = value;
229
+ }
230
+ /** @deprecated Use {@link AvailablePromptTypes$}. */
231
+ get availablePromptTypes$() {
232
+ return this.AvailablePromptTypes$;
233
+ }
234
+ /** @deprecated Use {@link AvailablePromptTypes$}. */
235
+ set availablePromptTypes$(value) {
236
+ this.AvailablePromptTypes$ = value;
237
+ }
238
+ /** @deprecated Use {@link PromptEntity}. */
239
+ get promptEntity() {
240
+ return this.PromptEntity;
241
+ }
242
+ /** @deprecated Use {@link PromptEntity}. */
243
+ set promptEntity(value) {
244
+ this.PromptEntity = value;
245
+ }
246
+ /** @deprecated Use {@link TemplateEntity}. */
247
+ get templateEntity() {
248
+ return this.TemplateEntity;
249
+ }
250
+ /** @deprecated Use {@link TemplateEntity}. */
251
+ set templateEntity(value) {
252
+ this.TemplateEntity = value;
253
+ }
254
+ /** @deprecated Use {@link TemplateContents}. */
255
+ get templateContents() {
256
+ return this.TemplateContents;
257
+ }
258
+ /** @deprecated Use {@link TemplateContents}. */
259
+ set templateContents(value) {
260
+ this.TemplateContents = value;
261
+ }
262
+ /** @deprecated Use {@link TemplateEditor}. */
263
+ get templateEditor() {
264
+ return this.TemplateEditor;
265
+ }
266
+ /** @deprecated Use {@link TemplateEditor}. */
267
+ set templateEditor(value) {
268
+ this.TemplateEditor = value;
269
+ } // Template editor component reference
270
+ /** @deprecated Use {@link ShowTemplateEditor}. */
271
+ get showTemplateEditor() {
272
+ return this.ShowTemplateEditor;
273
+ }
274
+ /** @deprecated Use {@link ShowTemplateEditor}. */
275
+ set showTemplateEditor(value) {
276
+ this.ShowTemplateEditor = value;
277
+ }
278
+ /** @deprecated Use {@link TemplateEditorConfig}. */
279
+ get templateEditorConfig() {
280
+ return this.TemplateEditorConfig;
281
+ }
282
+ /** @deprecated Use {@link TemplateEditorConfig}. */
283
+ set templateEditorConfig(value) {
284
+ this.TemplateEditorConfig = value;
285
+ }
286
+ /** @deprecated Use {@link TemplateMode}. */
287
+ get templateMode() {
288
+ return this.TemplateMode;
289
+ }
290
+ /** @deprecated Use {@link TemplateMode}. */
291
+ set templateMode(value) {
292
+ this.TemplateMode = value;
293
+ }
198
294
  constructor(cdr, aiPromptManagementService) {
199
295
  super();
200
296
  this.cdr = cdr;
@@ -203,25 +299,25 @@ export class CreatePromptDialogComponent extends BaseAngularComponent {
203
299
  this.config = {};
204
300
  // State management
205
301
  this.destroy$ = new Subject();
206
- this.result = new Subject();
207
- this.isLoading$ = new BehaviorSubject(false);
208
- this.isSaving$ = new BehaviorSubject(false);
302
+ this.Result = new Subject();
303
+ this.IsLoading$ = new BehaviorSubject(false);
304
+ this.IsSaving$ = new BehaviorSubject(false);
209
305
  // Data
210
- this.availablePromptTypes$ = new BehaviorSubject([]);
306
+ this.AvailablePromptTypes$ = new BehaviorSubject([]);
211
307
  // Entities (not saved to database)
212
- this.promptEntity = null;
213
- this.templateEntity = null;
214
- this.templateContents = [];
215
- this.showTemplateEditor = false;
216
- this.templateEditorConfig = {
308
+ this.PromptEntity = null;
309
+ this.TemplateEntity = null;
310
+ this.TemplateContents = [];
311
+ this.ShowTemplateEditor = false;
312
+ this.TemplateEditorConfig = {
217
313
  allowEdit: true,
218
314
  showRunButton: false,
219
315
  compactMode: true // Compact mode for dialog
220
316
  };
221
317
  // Template state
222
- this.templateMode = 'new';
318
+ this.TemplateMode = 'new';
223
319
  this.DialogClose = new EventEmitter();
224
- this.promptForm = this.createForm();
320
+ this.PromptForm = this.createForm();
225
321
  }
226
322
  ngOnInit() {
227
323
  this.loadInitialData();
@@ -233,9 +329,9 @@ export class CreatePromptDialogComponent extends BaseAngularComponent {
233
329
  }
234
330
  createForm() {
235
331
  return new FormGroup({
236
- name: new FormControl(this.config.initialName || '', [Validators.required]),
332
+ name: new FormControl(this.config.InitialName || '', [Validators.required]),
237
333
  description: new FormControl(''),
238
- typeID: new FormControl(this.config.initialTypeID || '', [Validators.required]),
334
+ typeID: new FormControl(this.config.InitialTypeID || '', [Validators.required]),
239
335
  status: new FormControl('Pending'),
240
336
  outputType: new FormControl('string'),
241
337
  templateMode: new FormControl('new')
@@ -243,15 +339,15 @@ export class CreatePromptDialogComponent extends BaseAngularComponent {
243
339
  }
244
340
  setupFormWatching() {
245
341
  // Watch template mode changes
246
- this.promptForm.get('templateMode')?.valueChanges
342
+ this.PromptForm.get('templateMode')?.valueChanges
247
343
  .pipe(takeUntil(this.destroy$))
248
344
  .subscribe(mode => {
249
- this.templateMode = mode;
250
- this.handleTemplateModeChange(mode);
345
+ this.TemplateMode = mode;
346
+ this.HandleTemplateModeChange(mode);
251
347
  });
252
348
  }
253
349
  async loadInitialData() {
254
- this.isLoading$.next(true);
350
+ this.IsLoading$.next(true);
255
351
  try {
256
352
  // Load prompt types
257
353
  const rv = RunView.FromMetadataProvider(this.ProviderToUse);
@@ -261,100 +357,108 @@ export class CreatePromptDialogComponent extends BaseAngularComponent {
261
357
  ResultType: 'entity_object'
262
358
  });
263
359
  if (typesResult.Success && typesResult.Results) {
264
- this.availablePromptTypes$.next(typesResult.Results);
360
+ this.AvailablePromptTypes$.next(typesResult.Results);
265
361
  // Set default type if not specified
266
- if (!this.config.initialTypeID && typesResult.Results.length > 0) {
267
- this.promptForm.patchValue({ typeID: typesResult.Results[0].ID });
362
+ if (!this.config.InitialTypeID && typesResult.Results.length > 0) {
363
+ this.PromptForm.patchValue({ typeID: typesResult.Results[0].ID });
268
364
  }
269
365
  }
270
366
  // Create the prompt entity
271
367
  const md = this.ProviderToUse;
272
- this.promptEntity = await md.GetEntityObject('MJ: AI Prompts');
273
- this.promptEntity.NewRecord();
368
+ this.PromptEntity = await md.GetEntityObject('MJ: AI Prompts');
369
+ this.PromptEntity.NewRecord();
274
370
  // Set default values
275
- this.promptEntity.Status = 'Pending';
276
- this.promptEntity.OutputType = 'string';
277
- this.promptEntity.ValidationBehavior = 'None';
278
- this.promptEntity.EnableCaching = false;
371
+ this.PromptEntity.Status = 'Pending';
372
+ this.PromptEntity.OutputType = 'string';
373
+ this.PromptEntity.ValidationBehavior = 'None';
374
+ this.PromptEntity.EnableCaching = false;
279
375
  // Create default template since it's required
280
376
  await this.createNewTemplate();
281
- this.showTemplateEditor = true;
377
+ this.ShowTemplateEditor = true;
282
378
  }
283
379
  catch (error) {
284
380
  console.error('Error loading prompt creation data:', error);
285
381
  MJNotificationService.Instance.CreateSimpleNotification('Error loading data for prompt creation', 'error', 3000);
286
382
  }
287
383
  finally {
288
- this.isLoading$.next(false);
384
+ this.IsLoading$.next(false);
289
385
  }
290
386
  }
291
- async handleTemplateModeChange(mode) {
387
+ async HandleTemplateModeChange(mode) {
292
388
  if (mode === 'new') {
293
389
  await this.createNewTemplate();
294
- this.showTemplateEditor = true;
390
+ this.ShowTemplateEditor = true;
295
391
  }
296
392
  else if (mode === 'existing') {
297
393
  await this.openTemplateSelector();
298
394
  }
299
395
  this.cdr.detectChanges();
300
396
  }
397
+ /** @deprecated Use {@link HandleTemplateModeChange}. */
398
+ async handleTemplateModeChange(mode) {
399
+ return this.HandleTemplateModeChange(mode);
400
+ }
301
401
  async createNewTemplate() {
302
- if (!this.promptEntity)
402
+ if (!this.PromptEntity)
303
403
  return;
304
404
  try {
305
405
  const md = this.ProviderToUse;
306
406
  // Create template entity
307
- this.templateEntity = await md.GetEntityObject('MJ: Templates');
308
- this.templateEntity.NewRecord();
309
- const promptName = this.promptForm.get('name')?.value || 'New Prompt';
310
- this.templateEntity.Name = `${promptName} Template`;
311
- this.templateEntity.Description = `Template for ${promptName}`;
407
+ this.TemplateEntity = await md.GetEntityObject('MJ: Templates');
408
+ this.TemplateEntity.NewRecord();
409
+ const promptName = this.PromptForm.get('name')?.value || 'New Prompt';
410
+ this.TemplateEntity.Name = `${promptName} Template`;
411
+ this.TemplateEntity.Description = `Template for ${promptName}`;
312
412
  // Set UserID on template (required field)
313
- this.templateEntity.UserID = md.CurrentUser.ID;
413
+ this.TemplateEntity.UserID = md.CurrentUser.ID;
314
414
  // Link template to prompt
315
- this.promptEntity.TemplateID = this.templateEntity.ID;
415
+ this.PromptEntity.TemplateID = this.TemplateEntity.ID;
316
416
  }
317
417
  catch (error) {
318
418
  console.error('Error creating new template:', error);
319
419
  MJNotificationService.Instance.CreateSimpleNotification('Error creating template', 'error', 3000);
320
420
  }
321
421
  }
422
+ OnTemplateContentChange(contents) {
423
+ this.TemplateContents = contents || [];
424
+ }
425
+ /** @deprecated Use {@link OnTemplateContentChange}. */
322
426
  onTemplateContentChange(contents) {
323
- this.templateContents = contents || [];
427
+ return this.OnTemplateContentChange(contents);
324
428
  }
325
429
  async save() {
326
- if (!this.promptForm.valid || !this.promptEntity) {
430
+ if (!this.PromptForm.valid || !this.PromptEntity) {
327
431
  MJNotificationService.Instance.CreateSimpleNotification('Please fill in all required fields', 'warning', 3000);
328
432
  return;
329
433
  }
330
- this.isSaving$.next(true);
434
+ this.IsSaving$.next(true);
331
435
  try {
332
436
  // Update prompt entity with form values
333
- const formValue = this.promptForm.value;
334
- this.promptEntity.Name = formValue.name;
335
- this.promptEntity.Description = formValue.description || '';
336
- this.promptEntity.TypeID = formValue.typeID;
337
- this.promptEntity.Status = formValue.status;
338
- this.promptEntity.OutputType = formValue.outputType;
437
+ const formValue = this.PromptForm.value;
438
+ this.PromptEntity.Name = formValue.name;
439
+ this.PromptEntity.Description = formValue.description || '';
440
+ this.PromptEntity.TypeID = formValue.typeID;
441
+ this.PromptEntity.Status = formValue.status;
442
+ this.PromptEntity.OutputType = formValue.outputType;
339
443
  // Get template contents if template editor is active
340
- if (this.templateEditor && this.showTemplateEditor) {
444
+ if (this.TemplateEditor && this.ShowTemplateEditor) {
341
445
  // Get the template contents from the editor without saving
342
446
  // The parent form will handle saving in the proper order
343
- this.templateContents = this.templateEditor.templateContents || [];
447
+ this.TemplateContents = this.TemplateEditor.templateContents || [];
344
448
  // Ensure the template contents have the correct TemplateID
345
- if (this.templateContents && this.templateEntity) {
346
- this.templateContents.forEach(content => {
347
- content.TemplateID = this.templateEntity.ID;
449
+ if (this.TemplateContents && this.TemplateEntity) {
450
+ this.TemplateContents.forEach(content => {
451
+ content.TemplateID = this.TemplateEntity.ID;
348
452
  });
349
453
  }
350
454
  }
351
455
  // Return the created entities (not saved to database)
352
456
  const result = {
353
- prompt: this.promptEntity,
354
- template: this.templateEntity || undefined,
355
- templateContents: this.templateContents.length > 0 ? this.templateContents : undefined
457
+ prompt: this.PromptEntity,
458
+ Template: this.TemplateEntity || undefined,
459
+ templateContents: this.TemplateContents.length > 0 ? this.TemplateContents : undefined
356
460
  };
357
- this.result.next(result);
461
+ this.Result.next(result);
358
462
  this.DialogClose.emit();
359
463
  }
360
464
  catch (error) {
@@ -362,11 +466,11 @@ export class CreatePromptDialogComponent extends BaseAngularComponent {
362
466
  MJNotificationService.Instance.CreateSimpleNotification('Error preparing prompt for creation', 'error', 3000);
363
467
  }
364
468
  finally {
365
- this.isSaving$.next(false);
469
+ this.IsSaving$.next(false);
366
470
  }
367
471
  }
368
472
  cancel() {
369
- this.result.next(null);
473
+ this.Result.next(null);
370
474
  this.DialogClose.emit();
371
475
  }
372
476
  /**
@@ -374,47 +478,51 @@ export class CreatePromptDialogComponent extends BaseAngularComponent {
374
478
  */
375
479
  async openTemplateSelector() {
376
480
  const config = {
377
- title: 'Select Template for AI Prompt',
378
- showCreateNew: false,
379
- multiSelect: false,
380
- showActiveOnly: true
481
+ Title: 'Select Template for AI Prompt',
482
+ ShowCreateNew: false,
483
+ MultiSelect: false,
484
+ ShowActiveOnly: true
381
485
  };
382
486
  try {
383
487
  const result = await this.aiPromptManagementService.openTemplateSelectorDialog(config).toPromise();
384
- if (result && result.selectedTemplates && result.selectedTemplates.length > 0) {
488
+ if (result && result.SelectedTemplates && result.SelectedTemplates.length > 0) {
385
489
  // Link the selected template
386
- this.templateEntity = result.selectedTemplates[0];
387
- this.promptEntity.TemplateID = this.templateEntity.ID;
490
+ this.TemplateEntity = result.SelectedTemplates[0];
491
+ this.PromptEntity.TemplateID = this.TemplateEntity.ID;
388
492
  // Update UI to show selected template info
389
- this.showTemplateEditor = false;
390
- MJNotificationService.Instance.CreateSimpleNotification(`Template "${this.templateEntity.Name}" linked successfully`, 'success', 3000);
493
+ this.ShowTemplateEditor = false;
494
+ MJNotificationService.Instance.CreateSimpleNotification(`Template "${this.TemplateEntity.Name}" linked successfully`, 'success', 3000);
391
495
  }
392
496
  else {
393
497
  // User cancelled, revert to new template mode
394
- this.promptForm.patchValue({ templateMode: 'new' });
498
+ this.PromptForm.patchValue({ templateMode: 'new' });
395
499
  await this.createNewTemplate();
396
- this.showTemplateEditor = true;
500
+ this.ShowTemplateEditor = true;
397
501
  }
398
502
  }
399
503
  catch (error) {
400
504
  console.error('Error opening template selector:', error);
401
505
  MJNotificationService.Instance.CreateSimpleNotification('Error opening template selector', 'error', 3000);
402
506
  // Revert to new template mode
403
- this.promptForm.patchValue({ templateMode: 'new' });
507
+ this.PromptForm.patchValue({ templateMode: 'new' });
404
508
  await this.createNewTemplate();
405
- this.showTemplateEditor = true;
509
+ this.ShowTemplateEditor = true;
406
510
  }
407
511
  }
408
512
  // Getter for template debugging
513
+ get CurrentTemplate() {
514
+ return this.TemplateEntity;
515
+ }
516
+ /** @deprecated Use {@link CurrentTemplate}. */
409
517
  get currentTemplate() {
410
- return this.templateEntity;
518
+ return this.CurrentTemplate;
411
519
  }
412
520
  static { this.ɵfac = function CreatePromptDialogComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || CreatePromptDialogComponent)(i0.ɵɵdirectiveInject(i0.ChangeDetectorRef), i0.ɵɵdirectiveInject(i1.AIPromptManagementService)); }; }
413
521
  static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: CreatePromptDialogComponent, selectors: [["mj-create-prompt-dialog"]], viewQuery: function CreatePromptDialogComponent_Query(rf, ctx) { if (rf & 1) {
414
522
  i0.ɵɵviewQuery(_c0, 5);
415
523
  } if (rf & 2) {
416
524
  let _t;
417
- i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.templateEditor = _t.first);
525
+ i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.TemplateEditor = _t.first);
418
526
  } }, outputs: { DialogClose: "DialogClose" }, standalone: false, features: [i0.ɵɵInheritDefinitionFeature], decls: 19, vars: 13, consts: [["templateEditor", ""], [1, "create-prompt-dialog"], [1, "loading-state"], [1, "dialog-content", 3, "formGroup"], [1, "dialog-footer"], [1, "footer-left"], [1, "form-hint"], [1, "fa-solid", "fa-info-circle"], [1, "footer-right"], ["mjButton", "", "variant", "flat", 3, "click", "disabled"], ["mjButton", "", "variant", "primary", 3, "click", "disabled"], [1, "loading-spinner"], [1, "fa-solid", "fa-spinner", "fa-spin", "fa-2x"], [1, "form-section"], [1, "section-title"], [1, "form-grid"], [1, "form-field"], ["for", "promptName", 1, "field-label", "required"], [1, "fa-solid", "fa-tag"], ["id", "promptName", "formControlName", "name", "placeholder", "Enter prompt name...", 1, "mj-input", "full-width"], [1, "field-error"], ["for", "promptType", 1, "field-label", "required"], [1, "fa-solid", "fa-category"], ["id", "promptType", "formControlName", "typeID", "TextField", "Name", "ValueField", "ID", "Placeholder", "Select prompt type...", 1, "full-width", 3, "Data", "ValuePrimitive"], ["for", "promptStatus", 1, "field-label"], [1, "fa-solid", "fa-toggle-on"], ["id", "promptStatus", "formControlName", "status", 1, "full-width", 3, "Data", "ValuePrimitive"], ["for", "outputType", 1, "field-label"], [1, "fa-solid", "fa-file-code"], ["id", "outputType", "formControlName", "outputType", 1, "full-width", 3, "Data", "ValuePrimitive"], [1, "form-field", "full-width"], ["for", "promptDescription", 1, "field-label"], [1, "fa-solid", "fa-align-left"], ["id", "promptDescription", "formControlName", "description", "placeholder", "Enter prompt description (optional)...", "rows", "3", 1, "mj-textarea", "full-width"], [1, "fa-solid", "fa-file-alt"], [1, "template-mode-section"], [1, "field-label"], [1, "fa-solid", "fa-cog"], [1, "template-mode-options"], [1, "radio-option"], ["type", "radio", "id", "templateNew", "value", "new", "formControlName", "templateMode", 1, "radio-input"], ["for", "templateNew", 1, "radio-label"], [1, "fa-solid", "fa-plus-circle"], ["type", "radio", "id", "templateExisting", "value", "existing", "formControlName", "templateMode", 1, "radio-input"], ["for", "templateExisting", 1, "radio-label"], [1, "fa-solid", "fa-link"], [1, "template-editor-section"], [1, "existing-template-section"], [1, "fa-solid", "fa-exclamation-triangle"], [1, "template-info"], [1, "template-name"], [1, "template-description"], [1, "template-editor-container"], [3, "contentChange", "template", "config"], [1, "existing-template-info"], [1, "template-header"], [1, "template-type-badge"], [1, "template-actions"], ["mjButton", "", "variant", "flat", 3, "click"], [1, "fa-solid", "fa-sync"], [1, "fa-solid", "fa-spinner", "fa-spin"], [1, "fa-solid", "fa-plus"]], template: function CreatePromptDialogComponent_Template(rf, ctx) { if (rf & 1) {
419
527
  i0.ɵɵelementStart(0, "div", 1);
420
528
  i0.ɵɵconditionalCreate(1, CreatePromptDialogComponent_Conditional_1_Template, 5, 0, "div", 2);
@@ -453,7 +561,7 @@ export class CreatePromptDialogComponent extends BaseAngularComponent {
453
561
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CreatePromptDialogComponent, [{
454
562
  type: Component,
455
563
  args: [{ standalone: false, selector: 'mj-create-prompt-dialog', template: "<!-- Create Prompt Dialog -->\n<div class=\"create-prompt-dialog\">\n \n <!-- Loading State -->\n @if (isLoading$ | async) {\n <div class=\"loading-state\">\n <div class=\"loading-spinner\">\n <i class=\"fa-solid fa-spinner fa-spin fa-2x\"></i>\n </div>\n <p>Loading prompt creation form...</p>\n </div>\n } @else {\n \n <!-- Form Content -->\n <form [formGroup]=\"promptForm\" class=\"dialog-content\">\n \n <!-- Basic Prompt Information -->\n <div class=\"form-section\">\n <h4 class=\"section-title\">\n <i class=\"fa-solid fa-info-circle\"></i>\n Basic Information\n </h4>\n \n <div class=\"form-grid\">\n \n <!-- Name Field -->\n <div class=\"form-field\">\n <label for=\"promptName\" class=\"field-label required\">\n <i class=\"fa-solid fa-tag\"></i>\n Name\n </label>\n <input\n id=\"promptName\"\n class=\"mj-input full-width\"\n formControlName=\"name\"\n placeholder=\"Enter prompt name...\">\n @if (promptForm.get('name')?.invalid && promptForm.get('name')?.touched) {\n <div class=\"field-error\">\n <i class=\"fa-solid fa-exclamation-triangle\"></i>\n Name is required\n </div>\n }\n </div>\n\n <!-- Type Field -->\n <div class=\"form-field\">\n <label for=\"promptType\" class=\"field-label required\">\n <i class=\"fa-solid fa-category\"></i>\n Type\n </label>\n <mj-dropdown\n id=\"promptType\"\n formControlName=\"typeID\"\n [Data]=\"availablePromptTypes$ | async\"\n TextField=\"Name\"\n ValueField=\"ID\"\n [ValuePrimitive]=\"true\"\n Placeholder=\"Select prompt type...\"\n class=\"full-width\">\n </mj-dropdown>\n @if (promptForm.get('typeID')?.invalid && promptForm.get('typeID')?.touched) {\n <div class=\"field-error\">\n <i class=\"fa-solid fa-exclamation-triangle\"></i>\n Type is required\n </div>\n }\n </div>\n\n <!-- Status Field -->\n <div class=\"form-field\">\n <label for=\"promptStatus\" class=\"field-label\">\n <i class=\"fa-solid fa-toggle-on\"></i>\n Status\n </label>\n <mj-dropdown\n id=\"promptStatus\"\n formControlName=\"status\"\n [Data]=\"['Pending', 'Active', 'Disabled']\"\n [ValuePrimitive]=\"true\"\n class=\"full-width\">\n </mj-dropdown>\n </div>\n\n <!-- Output Type Field -->\n <div class=\"form-field\">\n <label for=\"outputType\" class=\"field-label\">\n <i class=\"fa-solid fa-file-code\"></i>\n Output Type\n </label>\n <mj-dropdown\n id=\"outputType\"\n formControlName=\"outputType\"\n [Data]=\"['string', 'object']\"\n [ValuePrimitive]=\"true\"\n class=\"full-width\">\n </mj-dropdown>\n </div>\n\n </div>\n\n <!-- Description Field -->\n <div class=\"form-field full-width\">\n <label for=\"promptDescription\" class=\"field-label\">\n <i class=\"fa-solid fa-align-left\"></i>\n Description\n </label>\n <textarea\n id=\"promptDescription\"\n class=\"mj-textarea full-width\"\n formControlName=\"description\"\n placeholder=\"Enter prompt description (optional)...\"\n rows=\"3\"></textarea>\n </div>\n\n </div>\n\n <!-- Template Configuration -->\n <div class=\"form-section\">\n <h4 class=\"section-title\">\n <i class=\"fa-solid fa-file-alt\"></i>\n Template Configuration\n </h4>\n \n <div class=\"template-mode-section\">\n <label class=\"field-label\">\n <i class=\"fa-solid fa-cog\"></i>\n Template Mode\n </label>\n \n <div class=\"template-mode-options\">\n <div class=\"radio-option\">\n <input type=\"radio\" \n id=\"templateNew\" \n value=\"new\" \n formControlName=\"templateMode\"\n class=\"radio-input\">\n <label for=\"templateNew\" class=\"radio-label\">\n <i class=\"fa-solid fa-plus-circle\"></i>\n Create New Template\n </label>\n </div>\n \n <div class=\"radio-option\">\n <input type=\"radio\" \n id=\"templateExisting\" \n value=\"existing\" \n formControlName=\"templateMode\"\n class=\"radio-input\">\n <label for=\"templateExisting\" class=\"radio-label\">\n <i class=\"fa-solid fa-link\"></i>\n Link Existing Template\n </label>\n </div>\n </div>\n </div>\n\n <!-- Template Editor Section (New Template) -->\n @if (showTemplateEditor && templateEntity && templateMode === 'new') {\n <div class=\"template-editor-section\">\n <div class=\"template-info\">\n <h5 class=\"template-name\">\n <i class=\"fa-solid fa-file-code\"></i>\n {{ templateEntity.Name }}\n </h5>\n @if (templateEntity.Description) {\n <p class=\"template-description\">{{ templateEntity.Description }}</p>\n }\n </div>\n \n <div class=\"template-editor-container\">\n <mj-template-editor \n #templateEditor\n [template]=\"templateEntity\"\n [config]=\"templateEditorConfig\"\n (contentChange)=\"onTemplateContentChange($event)\">\n </mj-template-editor>\n </div>\n </div>\n }\n \n <!-- Existing Template Display -->\n @if (templateEntity && templateMode === 'existing') {\n <div class=\"existing-template-section\">\n <div class=\"existing-template-info\">\n <div class=\"template-header\">\n <h5 class=\"template-name\">\n <i class=\"fa-solid fa-link\"></i>\n {{ templateEntity.Name }}\n </h5>\n <span class=\"template-type-badge\">\n <i class=\"fa-solid fa-tag\"></i>\n Existing Template\n </span>\n </div>\n \n @if (templateEntity.Description) {\n <p class=\"template-description\">{{ templateEntity.Description }}</p>\n }\n \n <div class=\"template-actions\">\n <button mjButton\n variant=\"flat\"\n (click)=\"handleTemplateModeChange('existing')\">\n <i class=\"fa-solid fa-sync\"></i>\n Change Template\n </button>\n </div>\n </div>\n </div>\n }\n\n </div>\n\n </form>\n\n }\n\n</div>\n\n<!-- Dialog Footer -->\n<div class=\"dialog-footer\">\n <div class=\"footer-left\">\n <span class=\"form-hint\">\n <i class=\"fa-solid fa-info-circle\"></i>\n @if (templateMode === 'new') {\n Created prompts and templates will be saved when you save the AI Agent\n } @else {\n Created prompt will be linked to existing template when you save the AI Agent\n }\n </span>\n </div>\n \n <div class=\"footer-right\">\n <button mjButton\n variant=\"flat\"\n (click)=\"cancel()\"\n [disabled]=\"(isSaving$ | async) || false\">\n Cancel\n </button>\n\n <button mjButton\n variant=\"primary\"\n (click)=\"save()\"\n [disabled]=\"!promptForm.valid || ((isSaving$ | async) || false)\">\n @if (isSaving$ | async) {\n <i class=\"fa-solid fa-spinner fa-spin\"></i>\n Creating...\n } @else {\n <i class=\"fa-solid fa-plus\"></i>\n Create Prompt\n }\n </button>\n </div>\n</div>", styles: ["/* Create Prompt Dialog Styles */\n.create-prompt-dialog {\n padding: 0;\n min-height: 400px;\n display: flex;\n flex-direction: column;\n}\n\n/* Ensure dialog appears above banner and other elements */\n:host ::ng-deep .k-dialog,\n:host ::ng-deep .k-window {\n z-index: 10000 !important;\n}\n\n:host ::ng-deep .k-overlay {\n z-index: 9999 !important;\n}\n\n/* Loading State */\n.loading-state {\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n padding: 60px 20px;\n text-align: center;\n}\n\n.loading-spinner {\n margin-bottom: 16px;\n color: var(--mj-brand-primary);\n}\n\n/* Dialog Content */\n.dialog-content {\n flex: 1;\n padding: 20px;\n overflow-y: auto;\n max-height: 70vh;\n}\n\n/* Form Sections */\n.form-section {\n margin-bottom: 24px;\n border: 1px solid var(--mj-border-default);\n border-radius: 6px;\n padding: 16px;\n background: var(--mj-bg-surface-card);\n}\n\n.section-title {\n margin: 0 0 16px 0;\n font-size: 14px;\n font-weight: 600;\n color: var(--mj-text-primary);\n display: flex;\n align-items: center;\n gap: 8px;\n}\n\n.section-title i {\n color: var(--mj-brand-primary);\n}\n\n/* Form Grid Layout */\n.form-grid {\n display: grid;\n grid-template-columns: 1fr 1fr;\n gap: 16px;\n margin-bottom: 16px;\n}\n\n.form-field {\n display: flex;\n flex-direction: column;\n gap: 6px;\n}\n\n.form-field.full-width {\n grid-column: 1 / -1;\n}\n\n/* Field Labels */\n.field-label {\n font-size: 13px;\n font-weight: 500;\n color: var(--mj-text-primary);\n display: flex;\n align-items: center;\n gap: 6px;\n}\n\n.field-label.required::after {\n content: '*';\n color: var(--mj-status-error);\n margin-left: 2px;\n}\n\n.field-label i {\n font-size: 11px;\n color: var(--mj-text-muted);\n}\n\n/* Form Controls */\n.full-width {\n width: 100%;\n}\n\n/* Field Errors */\n.field-error {\n display: flex;\n align-items: center;\n gap: 4px;\n font-size: 12px;\n color: var(--mj-status-error);\n margin-top: 4px;\n}\n\n.field-error i {\n font-size: 11px;\n}\n\n/* Template Mode Section */\n.template-mode-section {\n margin-bottom: 16px;\n}\n\n.template-mode-options {\n display: flex;\n gap: 16px;\n margin-top: 8px;\n flex-wrap: wrap;\n}\n\n.radio-option {\n display: flex;\n align-items: center;\n gap: 6px;\n}\n\n.radio-input {\n margin: 0;\n}\n\n.radio-label {\n font-size: 13px;\n cursor: pointer;\n display: flex;\n align-items: center;\n gap: 6px;\n padding: 4px 8px;\n border-radius: 4px;\n transition: background-color 0.2s ease;\n}\n\n.radio-label:hover {\n background-color: var(--mj-bg-surface-sunken);\n}\n\n.radio-label i {\n font-size: 12px;\n color: var(--mj-text-muted);\n}\n\n/* Template Editor Section */\n.template-editor-section {\n margin-top: 16px;\n padding: 16px;\n border: 1px solid var(--mj-border-default);\n border-radius: 4px;\n background: var(--mj-bg-surface);\n}\n\n.template-info {\n margin-bottom: 12px;\n}\n\n.template-name {\n margin: 0 0 4px 0;\n font-size: 14px;\n font-weight: 600;\n color: var(--mj-text-primary);\n display: flex;\n align-items: center;\n gap: 6px;\n}\n\n.template-description {\n margin: 0;\n font-size: 12px;\n color: var(--mj-text-muted);\n}\n\n.template-editor-container {\n border: 1px solid var(--mj-border-default);\n border-radius: 4px;\n overflow: hidden;\n min-height: 200px;\n}\n\n/* Existing Template Section */\n.existing-template-section {\n margin-top: 16px;\n padding: 16px;\n border: 1px solid var(--mj-border-default);\n border-radius: 4px;\n background: var(--mj-bg-surface);\n}\n\n.existing-template-info {\n display: flex;\n flex-direction: column;\n gap: 12px;\n}\n\n.template-header {\n display: flex;\n justify-content: space-between;\n align-items: center;\n gap: 12px;\n}\n\n.template-type-badge {\n display: inline-flex;\n align-items: center;\n gap: 4px;\n padding: 4px 8px;\n background-color: var(--mj-brand-primary);\n color: var(--mj-text-inverse);\n border-radius: 12px;\n font-size: 11px;\n font-weight: 500;\n}\n\n.template-actions {\n display: flex;\n gap: 8px;\n}\n\n/* Dialog Footer */\n.dialog-footer {\n display: flex;\n justify-content: space-between;\n align-items: center;\n padding: 16px 20px;\n border-top: 1px solid var(--mj-border-default);\n background: var(--mj-bg-surface-card);\n gap: 16px;\n}\n\n.footer-left {\n flex: 1;\n}\n\n.footer-right {\n display: flex;\n gap: 8px;\n}\n\n.form-hint {\n display: flex;\n align-items: center;\n gap: 6px;\n font-size: 12px;\n color: var(--mj-text-muted);\n}\n\n.form-hint i {\n color: var(--mj-brand-primary);\n}\n\n/* Responsive Design */\n@media (max-width: 768px) {\n .form-grid {\n grid-template-columns: 1fr;\n }\n\n .template-mode-options {\n flex-direction: column;\n gap: 8px;\n }\n\n .dialog-footer {\n flex-direction: column;\n align-items: stretch;\n gap: 12px;\n }\n\n .footer-right {\n justify-content: stretch;\n }\n\n .footer-right button {\n flex: 1;\n }\n}\n\n/* Compact Template Editor Styles */\n:host ::ng-deep .template-editor-container mj-template-editor {\n --template-editor-min-height: 200px;\n}\n\n:host ::ng-deep .template-editor-container .template-editor-help {\n display: none; /* Hide help section in compact mode */\n}\n"] }]
456
- }], () => [{ type: i0.ChangeDetectorRef }, { type: i1.AIPromptManagementService }], { templateEditor: [{
564
+ }], () => [{ type: i0.ChangeDetectorRef }, { type: i1.AIPromptManagementService }], { TemplateEditor: [{
457
565
  type: ViewChild,
458
566
  args: ['templateEditor']
459
567
  }], DialogClose: [{