@memberjunction/ng-core-entity-forms 2.53.0 → 2.55.0

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 (114) hide show
  1. package/README.md +1 -206
  2. package/dist/lib/custom/AIAgents/ai-agent-form.component.d.ts +28 -5
  3. package/dist/lib/custom/AIAgents/ai-agent-form.component.d.ts.map +1 -1
  4. package/dist/lib/custom/AIAgents/ai-agent-form.component.js +364 -234
  5. package/dist/lib/custom/AIAgents/ai-agent-form.component.js.map +1 -1
  6. package/dist/lib/custom/AIAgents/new-agent-dialog.component.d.ts +36 -0
  7. package/dist/lib/custom/AIAgents/new-agent-dialog.component.d.ts.map +1 -0
  8. package/dist/lib/custom/AIAgents/new-agent-dialog.component.js +325 -0
  9. package/dist/lib/custom/AIAgents/new-agent-dialog.component.js.map +1 -0
  10. package/dist/lib/custom/AIAgents/new-agent-dialog.service.d.ts +41 -0
  11. package/dist/lib/custom/AIAgents/new-agent-dialog.service.d.ts.map +1 -0
  12. package/dist/lib/custom/AIAgents/new-agent-dialog.service.js +87 -0
  13. package/dist/lib/custom/AIAgents/new-agent-dialog.service.js.map +1 -0
  14. package/dist/lib/custom/AIPromptRuns/ai-prompt-run-form.component.js +5 -7
  15. package/dist/lib/custom/AIPromptRuns/ai-prompt-run-form.component.js.map +1 -1
  16. package/dist/lib/custom/AIPrompts/ai-prompt-form.component.d.ts +5 -2
  17. package/dist/lib/custom/AIPrompts/ai-prompt-form.component.d.ts.map +1 -1
  18. package/dist/lib/custom/AIPrompts/ai-prompt-form.component.js +501 -485
  19. package/dist/lib/custom/AIPrompts/ai-prompt-form.component.js.map +1 -1
  20. package/dist/lib/custom/Actions/action-execution-log-form.component.d.ts +2 -0
  21. package/dist/lib/custom/Actions/action-execution-log-form.component.d.ts.map +1 -1
  22. package/dist/lib/custom/Actions/action-execution-log-form.component.js +216 -293
  23. package/dist/lib/custom/Actions/action-execution-log-form.component.js.map +1 -1
  24. package/dist/lib/custom/Actions/action-form.component.js +6 -8
  25. package/dist/lib/custom/Actions/action-form.component.js.map +1 -1
  26. package/dist/lib/custom/ai-agent-run/ai-agent-run-step-node.component.d.ts +25 -0
  27. package/dist/lib/custom/ai-agent-run/ai-agent-run-step-node.component.d.ts.map +1 -0
  28. package/dist/lib/custom/ai-agent-run/ai-agent-run-step-node.component.js +261 -0
  29. package/dist/lib/custom/ai-agent-run/ai-agent-run-step-node.component.js.map +1 -0
  30. package/dist/lib/custom/ai-agent-run/ai-agent-run-timeline.component.d.ts +73 -0
  31. package/dist/lib/custom/ai-agent-run/ai-agent-run-timeline.component.d.ts.map +1 -0
  32. package/dist/lib/custom/ai-agent-run/ai-agent-run-timeline.component.js +510 -0
  33. package/dist/lib/custom/ai-agent-run/ai-agent-run-timeline.component.js.map +1 -0
  34. package/dist/lib/custom/ai-agent-run/ai-agent-run.component.d.ts +41 -0
  35. package/dist/lib/custom/ai-agent-run/ai-agent-run.component.d.ts.map +1 -0
  36. package/dist/lib/custom/ai-agent-run/ai-agent-run.component.js +568 -0
  37. package/dist/lib/custom/ai-agent-run/ai-agent-run.component.js.map +1 -0
  38. package/dist/lib/custom/custom-forms.module.d.ts +31 -31
  39. package/dist/lib/custom/custom-forms.module.d.ts.map +1 -1
  40. package/dist/lib/custom/custom-forms.module.js +37 -34
  41. package/dist/lib/custom/custom-forms.module.js.map +1 -1
  42. package/dist/lib/generated/Entities/AIAgent/aiagent.form.component.js +16 -17
  43. package/dist/lib/generated/Entities/AIAgent/aiagent.form.component.js.map +1 -1
  44. package/dist/lib/generated/Entities/AIAgentRun/aiagentrun.form.component.js +11 -14
  45. package/dist/lib/generated/Entities/AIAgentRun/aiagentrun.form.component.js.map +1 -1
  46. package/dist/lib/generated/Entities/AIAgentRunStep/aiagentrunstep.form.component.js +3 -5
  47. package/dist/lib/generated/Entities/AIAgentRunStep/aiagentrunstep.form.component.js.map +1 -1
  48. package/dist/lib/generated/Entities/AIAgentRunStep/sections/details.component.d.ts.map +1 -1
  49. package/dist/lib/generated/Entities/AIAgentRunStep/sections/details.component.js +13 -4
  50. package/dist/lib/generated/Entities/AIAgentRunStep/sections/details.component.js.map +1 -1
  51. package/dist/lib/generated/Entities/AIAgentType/aiagenttype.form.component.js +5 -7
  52. package/dist/lib/generated/Entities/AIAgentType/aiagenttype.form.component.js.map +1 -1
  53. package/dist/lib/generated/Entities/AIConfiguration/aiconfiguration.form.component.js +7 -8
  54. package/dist/lib/generated/Entities/AIConfiguration/aiconfiguration.form.component.js.map +1 -1
  55. package/dist/lib/generated/Entities/AIModel/aimodel.form.component.js +12 -13
  56. package/dist/lib/generated/Entities/AIModel/aimodel.form.component.js.map +1 -1
  57. package/dist/lib/generated/Entities/AIModelCost/aimodelcost.form.component.js +3 -5
  58. package/dist/lib/generated/Entities/AIModelCost/aimodelcost.form.component.js.map +1 -1
  59. package/dist/lib/generated/Entities/AIModelPriceType/aimodelpricetype.form.component.js +5 -7
  60. package/dist/lib/generated/Entities/AIModelPriceType/aimodelpricetype.form.component.js.map +1 -1
  61. package/dist/lib/generated/Entities/AIModelPriceUnitType/aimodelpriceunittype.form.component.js +5 -7
  62. package/dist/lib/generated/Entities/AIModelPriceUnitType/aimodelpriceunittype.form.component.js.map +1 -1
  63. package/dist/lib/generated/Entities/AIModelType/aimodeltype.form.component.js +11 -12
  64. package/dist/lib/generated/Entities/AIModelType/aimodeltype.form.component.js.map +1 -1
  65. package/dist/lib/generated/Entities/AIPrompt/aiprompt.form.component.js +19 -20
  66. package/dist/lib/generated/Entities/AIPrompt/aiprompt.form.component.js.map +1 -1
  67. package/dist/lib/generated/Entities/AIPromptRun/aipromptrun.form.component.js +11 -12
  68. package/dist/lib/generated/Entities/AIPromptRun/aipromptrun.form.component.js.map +1 -1
  69. package/dist/lib/generated/Entities/AIPromptRun/sections/details.component.d.ts.map +1 -1
  70. package/dist/lib/generated/Entities/AIPromptRun/sections/details.component.js +13 -4
  71. package/dist/lib/generated/Entities/AIPromptRun/sections/details.component.js.map +1 -1
  72. package/dist/lib/generated/Entities/AIVendor/aivendor.form.component.js +15 -16
  73. package/dist/lib/generated/Entities/AIVendor/aivendor.form.component.js.map +1 -1
  74. package/dist/lib/generated/Entities/Action/action.form.component.js +5 -5
  75. package/dist/lib/generated/Entities/Action/action.form.component.js.map +1 -1
  76. package/dist/lib/generated/Entities/ActionAuthorization/actionauthorization.form.component.js +1 -1
  77. package/dist/lib/generated/Entities/ActionAuthorization/actionauthorization.form.component.js.map +1 -1
  78. package/dist/lib/generated/Entities/ActionContext/actioncontext.form.component.js +1 -1
  79. package/dist/lib/generated/Entities/ActionContext/actioncontext.form.component.js.map +1 -1
  80. package/dist/lib/generated/Entities/Conversation/conversation.form.component.js +5 -5
  81. package/dist/lib/generated/Entities/Conversation/conversation.form.component.js.map +1 -1
  82. package/dist/lib/generated/Entities/TemplateContent/templatecontent.form.component.js +4 -4
  83. package/dist/lib/generated/Entities/TemplateContent/templatecontent.form.component.js.map +1 -1
  84. package/dist/lib/generated/Entities/User/user.form.component.js +5 -5
  85. package/dist/lib/generated/Entities/User/user.form.component.js.map +1 -1
  86. package/dist/public-api.d.ts +2 -3
  87. package/dist/public-api.d.ts.map +1 -1
  88. package/dist/public-api.js +3 -16
  89. package/dist/public-api.js.map +1 -1
  90. package/package.json +13 -12
  91. package/dist/lib/custom/ai-test-harness/agent-execution-monitor.component.d.ts +0 -244
  92. package/dist/lib/custom/ai-test-harness/agent-execution-monitor.component.d.ts.map +0 -1
  93. package/dist/lib/custom/ai-test-harness/agent-execution-monitor.component.js +0 -1327
  94. package/dist/lib/custom/ai-test-harness/agent-execution-monitor.component.js.map +0 -1
  95. package/dist/lib/custom/ai-test-harness/agent-execution-node.component.d.ts +0 -19
  96. package/dist/lib/custom/ai-test-harness/agent-execution-node.component.d.ts.map +0 -1
  97. package/dist/lib/custom/ai-test-harness/agent-execution-node.component.js +0 -458
  98. package/dist/lib/custom/ai-test-harness/agent-execution-node.component.js.map +0 -1
  99. package/dist/lib/custom/ai-test-harness/ai-test-harness-dialog.component.d.ts +0 -78
  100. package/dist/lib/custom/ai-test-harness/ai-test-harness-dialog.component.d.ts.map +0 -1
  101. package/dist/lib/custom/ai-test-harness/ai-test-harness-dialog.component.js +0 -157
  102. package/dist/lib/custom/ai-test-harness/ai-test-harness-dialog.component.js.map +0 -1
  103. package/dist/lib/custom/ai-test-harness/ai-test-harness.component.d.ts +0 -598
  104. package/dist/lib/custom/ai-test-harness/ai-test-harness.component.d.ts.map +0 -1
  105. package/dist/lib/custom/ai-test-harness/ai-test-harness.component.js +0 -3204
  106. package/dist/lib/custom/ai-test-harness/ai-test-harness.component.js.map +0 -1
  107. package/dist/lib/custom/ai-test-harness/json-viewer-window.component.d.ts +0 -8
  108. package/dist/lib/custom/ai-test-harness/json-viewer-window.component.d.ts.map +0 -1
  109. package/dist/lib/custom/ai-test-harness/json-viewer-window.component.js +0 -57
  110. package/dist/lib/custom/ai-test-harness/json-viewer-window.component.js.map +0 -1
  111. package/dist/lib/custom/test-harness-dialog.service.d.ts +0 -111
  112. package/dist/lib/custom/test-harness-dialog.service.d.ts.map +0 -1
  113. package/dist/lib/custom/test-harness-dialog.service.js +0 -211
  114. package/dist/lib/custom/test-harness-dialog.service.js.map +0 -1
@@ -1,78 +0,0 @@
1
- import { EventEmitter, OnInit } from '@angular/core';
2
- import { AIAgentEntity } from '@memberjunction/core-entities';
3
- import { AITestHarnessComponent } from './ai-test-harness.component';
4
- import * as i0 from "@angular/core";
5
- /**
6
- * Configuration data interface for the AI Agent Test Harness Dialog.
7
- * Provides all necessary options for initializing the dialog with appropriate
8
- * agent data, dimensions, and initial variable configurations.
9
- */
10
- export interface AITestHarnessDialogData {
11
- /** ID of the AI agent to load (alternative to providing agent entity) */
12
- agentId?: string;
13
- /** Pre-loaded AI agent entity (alternative to providing agentId) */
14
- agent?: AIAgentEntity;
15
- /** Custom dialog title (defaults to agent name) */
16
- title?: string;
17
- /** Dialog width in CSS units or viewport percentage */
18
- width?: string | number;
19
- /** Dialog height in CSS units or viewport percentage */
20
- height?: string | number;
21
- /** Initial data context variables for agent execution */
22
- initialDataContext?: Record<string, any>;
23
- /** Initial template data variables for prompt rendering */
24
- initialTemplateData?: Record<string, any>;
25
- }
26
- /**
27
- * Dialog wrapper component for the AI Agent Test Harness.
28
- * Provides a modal dialog interface with proper sizing, header, and close functionality.
29
- * Automatically loads agent data and initializes the test harness with provided configuration.
30
- *
31
- * ## Features:
32
- * - **Automatic Agent Loading**: Loads agent by ID or uses provided entity
33
- * - **Configurable Dimensions**: Supports custom dialog sizing
34
- * - **Initial Data Setup**: Pre-populates data context and template variables
35
- * - **Clean Dialog Interface**: Professional header with close button
36
- * - **Responsive Layout**: Adapts to content and screen size
37
- *
38
- * ## Usage:
39
- * This component is typically opened through the `TestHarnessDialogService` rather than directly:
40
- * ```typescript
41
- * const dialogRef = this.testHarnessService.openAgentTestHarness({
42
- * agentId: 'agent-123',
43
- * initialDataContext: { userId: 'user-456' }
44
- * });
45
- * ```
46
- */
47
- export declare class AITestHarnessDialogComponent implements OnInit {
48
- /** Reference to the embedded test harness component */
49
- testHarness: AITestHarnessComponent;
50
- /** The loaded AI agent entity for testing */
51
- agent: AIAgentEntity | null;
52
- /** Display title for the dialog header */
53
- title: string;
54
- /** Configuration data passed from the dialog service */
55
- data: AITestHarnessDialogData;
56
- /** Event emitted when the dialog should be closed */
57
- closeDialog: EventEmitter<void>;
58
- /**
59
- * Initializes the dialog component by loading agent data and configuring
60
- * the embedded test harness with initial variables and settings.
61
- */
62
- ngOnInit(): Promise<void>;
63
- /**
64
- * Determines the appropriate variable type for initial data configuration.
65
- * @param value - The value to analyze for type detection
66
- * @returns The detected variable type
67
- * @private
68
- */
69
- private detectVariableType;
70
- /**
71
- * Closes the dialog by emitting the close event.
72
- * This method is called by the close button in the header.
73
- */
74
- close(): void;
75
- static ɵfac: i0.ɵɵFactoryDeclaration<AITestHarnessDialogComponent, never>;
76
- static ɵcmp: i0.ɵɵComponentDeclaration<AITestHarnessDialogComponent, "mj-ai-test-harness-dialog", never, { "data": { "alias": "data"; "required": false; }; }, { "closeDialog": "closeDialog"; }, never, never, false, never>;
77
- }
78
- //# sourceMappingURL=ai-test-harness-dialog.component.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ai-test-harness-dialog.component.d.ts","sourceRoot":"","sources":["../../../../src/lib/custom/ai-test-harness/ai-test-harness-dialog.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAA4B,YAAY,EAAE,MAAM,EAAa,MAAM,eAAe,CAAC;AAC1F,OAAO,EAAE,aAAa,EAAE,MAAM,+BAA+B,CAAC;AAE9D,OAAO,EAAE,sBAAsB,EAAE,MAAM,6BAA6B,CAAC;;AAErE;;;;GAIG;AACH,MAAM,WAAW,uBAAuB;IACpC,yEAAyE;IACzE,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,oEAAoE;IACpE,KAAK,CAAC,EAAE,aAAa,CAAC;IACtB,mDAAmD;IACnD,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,uDAAuD;IACvD,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACxB,wDAAwD;IACxD,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACzB,yDAAyD;IACzD,kBAAkB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IACzC,2DAA2D;IAC3D,mBAAmB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;CAC7C;AAED;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,qBAuEa,4BAA6B,YAAW,MAAM;IACvD,uDAAuD;IACV,WAAW,EAAG,sBAAsB,CAAC;IAElF,6CAA6C;IAC7C,KAAK,EAAE,aAAa,GAAG,IAAI,CAAQ;IAEnC,0CAA0C;IAC1C,KAAK,EAAE,MAAM,CAA2B;IAExC,wDAAwD;IAC/C,IAAI,EAAE,uBAAuB,CAAM;IAE5C,qDAAqD;IAC3C,WAAW,qBAA4B;IAEjD;;;OAGG;IACG,QAAQ;IA4Cd;;;;;OAKG;IACH,OAAO,CAAC,kBAAkB;IAO1B;;;OAGG;IACH,KAAK,IAAI,IAAI;yCAjFJ,4BAA4B;2CAA5B,4BAA4B;CAoFxC"}
@@ -1,157 +0,0 @@
1
- import { Component, Input, Output, EventEmitter, ViewChild } from '@angular/core';
2
- import { Metadata } from '@memberjunction/core';
3
- import * as i0 from "@angular/core";
4
- import * as i1 from "./ai-test-harness.component";
5
- const _c0 = ["testHarness"];
6
- /**
7
- * Dialog wrapper component for the AI Agent Test Harness.
8
- * Provides a modal dialog interface with proper sizing, header, and close functionality.
9
- * Automatically loads agent data and initializes the test harness with provided configuration.
10
- *
11
- * ## Features:
12
- * - **Automatic Agent Loading**: Loads agent by ID or uses provided entity
13
- * - **Configurable Dimensions**: Supports custom dialog sizing
14
- * - **Initial Data Setup**: Pre-populates data context and template variables
15
- * - **Clean Dialog Interface**: Professional header with close button
16
- * - **Responsive Layout**: Adapts to content and screen size
17
- *
18
- * ## Usage:
19
- * This component is typically opened through the `TestHarnessDialogService` rather than directly:
20
- * ```typescript
21
- * const dialogRef = this.testHarnessService.openAgentTestHarness({
22
- * agentId: 'agent-123',
23
- * initialDataContext: { userId: 'user-456' }
24
- * });
25
- * ```
26
- */
27
- export class AITestHarnessDialogComponent {
28
- constructor() {
29
- /** The loaded AI agent entity for testing */
30
- this.agent = null;
31
- /** Display title for the dialog header */
32
- this.title = 'AI Agent Test Harness';
33
- /** Configuration data passed from the dialog service */
34
- this.data = {};
35
- /** Event emitted when the dialog should be closed */
36
- this.closeDialog = new EventEmitter();
37
- }
38
- /**
39
- * Initializes the dialog component by loading agent data and configuring
40
- * the embedded test harness with initial variables and settings.
41
- */
42
- async ngOnInit() {
43
- if (this.data.title) {
44
- this.title = this.data.title;
45
- }
46
- // Load agent if ID provided
47
- if (this.data.agentId && !this.data.agent) {
48
- const md = new Metadata();
49
- this.agent = await md.GetEntityObject('AI Agents');
50
- await this.agent.Load(this.data.agentId);
51
- if (this.agent) {
52
- this.title = `Test Harness: ${this.agent.Name}`;
53
- }
54
- }
55
- else if (this.data.agent) {
56
- this.agent = this.data.agent;
57
- this.title = `Test Harness: ${this.agent.Name}`;
58
- }
59
- // Wait for view to initialize then set initial data if provided
60
- setTimeout(() => {
61
- if (this.testHarness && this.data.initialDataContext) {
62
- // Convert initial data context to variables
63
- const variables = Object.entries(this.data.initialDataContext).map(([name, value]) => ({
64
- name,
65
- value: typeof value === 'object' ? JSON.stringify(value) : String(value),
66
- type: this.detectVariableType(value)
67
- }));
68
- this.testHarness.agentVariables = variables;
69
- }
70
- if (this.testHarness && this.data.initialTemplateData) {
71
- // Add template data to the unified agent variables
72
- const templateVariables = Object.entries(this.data.initialTemplateData).map(([name, value]) => ({
73
- name,
74
- value: typeof value === 'object' ? JSON.stringify(value) : String(value),
75
- type: this.detectVariableType(value)
76
- }));
77
- // Merge with existing agent variables
78
- this.testHarness.agentVariables = [...this.testHarness.agentVariables, ...templateVariables];
79
- }
80
- }, 100);
81
- }
82
- /**
83
- * Determines the appropriate variable type for initial data configuration.
84
- * @param value - The value to analyze for type detection
85
- * @returns The detected variable type
86
- * @private
87
- */
88
- detectVariableType(value) {
89
- if (typeof value === 'boolean')
90
- return 'boolean';
91
- if (typeof value === 'number')
92
- return 'number';
93
- if (typeof value === 'object')
94
- return 'object';
95
- return 'string';
96
- }
97
- /**
98
- * Closes the dialog by emitting the close event.
99
- * This method is called by the close button in the header.
100
- */
101
- close() {
102
- this.closeDialog.emit();
103
- }
104
- static { this.ɵfac = function AITestHarnessDialogComponent_Factory(t) { return new (t || AITestHarnessDialogComponent)(); }; }
105
- static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: AITestHarnessDialogComponent, selectors: [["mj-ai-test-harness-dialog"]], viewQuery: function AITestHarnessDialogComponent_Query(rf, ctx) { if (rf & 1) {
106
- i0.ɵɵviewQuery(_c0, 5);
107
- } if (rf & 2) {
108
- let _t;
109
- i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.testHarness = _t.first);
110
- } }, inputs: { data: "data" }, outputs: { closeDialog: "closeDialog" }, decls: 9, vars: 3, consts: [["testHarness", ""], [1, "test-harness-dialog"], [1, "dialog-header"], [1, "close-button", 3, "click"], [1, "fa-solid", "fa-times"], [1, "dialog-content"], [3, "aiAgent", "isVisible"]], template: function AITestHarnessDialogComponent_Template(rf, ctx) { if (rf & 1) {
111
- const _r1 = i0.ɵɵgetCurrentView();
112
- i0.ɵɵelementStart(0, "div", 1)(1, "div", 2)(2, "h2");
113
- i0.ɵɵtext(3);
114
- i0.ɵɵelementEnd();
115
- i0.ɵɵelementStart(4, "button", 3);
116
- i0.ɵɵlistener("click", function AITestHarnessDialogComponent_Template_button_click_4_listener() { i0.ɵɵrestoreView(_r1); return i0.ɵɵresetView(ctx.close()); });
117
- i0.ɵɵelement(5, "i", 4);
118
- i0.ɵɵelementEnd()();
119
- i0.ɵɵelementStart(6, "div", 5);
120
- i0.ɵɵelement(7, "mj-ai-test-harness", 6, 0);
121
- i0.ɵɵelementEnd()();
122
- } if (rf & 2) {
123
- i0.ɵɵadvance(3);
124
- i0.ɵɵtextInterpolate(ctx.title);
125
- i0.ɵɵadvance(4);
126
- i0.ɵɵproperty("aiAgent", ctx.agent)("isVisible", true);
127
- } }, dependencies: [i1.AITestHarnessComponent], styles: [".test-harness-dialog[_ngcontent-%COMP%] {\n display: flex;\n flex-direction: column;\n height: 100%;\n width: 100%;\n }\n\n .dialog-header[_ngcontent-%COMP%] {\n display: flex;\n justify-content: space-between;\n align-items: center;\n padding: 16px 24px;\n border-bottom: 1px solid #e0e0e0;\n background-color: #f5f5f5;\n }\n\n .dialog-header[_ngcontent-%COMP%] h2[_ngcontent-%COMP%] {\n margin: 0;\n font-size: 20px;\n font-weight: 500;\n }\n\n .close-button[_ngcontent-%COMP%] {\n position: relative;\n top: -4px;\n background: none;\n border: none;\n cursor: pointer;\n padding: 4px;\n display: flex;\n align-items: center;\n justify-content: center;\n border-radius: 4px;\n transition: background-color 0.2s;\n }\n \n .close-button[_ngcontent-%COMP%]:hover {\n background-color: rgba(0, 0, 0, 0.04);\n }\n\n .dialog-content[_ngcontent-%COMP%] {\n flex: 1;\n overflow: hidden;\n padding: 0;\n }\n\n [_nghost-%COMP%] .test-harness-container {\n height: 100%;\n }"] }); }
128
- }
129
- (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(AITestHarnessDialogComponent, [{
130
- type: Component,
131
- args: [{ selector: 'mj-ai-test-harness-dialog', template: `
132
- <div class="test-harness-dialog">
133
- <div class="dialog-header">
134
- <h2>{{ title }}</h2>
135
- <button class="close-button" (click)="close()">
136
- <i class="fa-solid fa-times"></i>
137
- </button>
138
- </div>
139
- <div class="dialog-content">
140
- <mj-ai-test-harness
141
- #testHarness
142
- [aiAgent]="agent"
143
- [isVisible]="true">
144
- </mj-ai-test-harness>
145
- </div>
146
- </div>
147
- `, styles: ["\n .test-harness-dialog {\n display: flex;\n flex-direction: column;\n height: 100%;\n width: 100%;\n }\n\n .dialog-header {\n display: flex;\n justify-content: space-between;\n align-items: center;\n padding: 16px 24px;\n border-bottom: 1px solid #e0e0e0;\n background-color: #f5f5f5;\n }\n\n .dialog-header h2 {\n margin: 0;\n font-size: 20px;\n font-weight: 500;\n }\n\n .close-button {\n position: relative;\n top: -4px;\n background: none;\n border: none;\n cursor: pointer;\n padding: 4px;\n display: flex;\n align-items: center;\n justify-content: center;\n border-radius: 4px;\n transition: background-color 0.2s;\n }\n \n .close-button:hover {\n background-color: rgba(0, 0, 0, 0.04);\n }\n\n .dialog-content {\n flex: 1;\n overflow: hidden;\n padding: 0;\n }\n\n :host ::ng-deep .test-harness-container {\n height: 100%;\n }\n "] }]
148
- }], null, { testHarness: [{
149
- type: ViewChild,
150
- args: ['testHarness', { static: false }]
151
- }], data: [{
152
- type: Input
153
- }], closeDialog: [{
154
- type: Output
155
- }] }); })();
156
- (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(AITestHarnessDialogComponent, { className: "AITestHarnessDialogComponent", filePath: "src/lib/custom/ai-test-harness/ai-test-harness-dialog.component.ts", lineNumber: 120 }); })();
157
- //# sourceMappingURL=ai-test-harness-dialog.component.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ai-test-harness-dialog.component.js","sourceRoot":"","sources":["../../../../src/lib/custom/ai-test-harness/ai-test-harness-dialog.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,KAAK,EAAE,MAAM,EAAE,YAAY,EAAU,SAAS,EAAE,MAAM,eAAe,CAAC;AAE1F,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;;;;AAyBhD;;;;;;;;;;;;;;;;;;;;GAoBG;AAwEH,MAAM,OAAO,4BAA4B;IAvEzC;QA2EI,6CAA6C;QAC7C,UAAK,GAAyB,IAAI,CAAC;QAEnC,0CAA0C;QAC1C,UAAK,GAAW,uBAAuB,CAAC;QAExC,wDAAwD;QAC/C,SAAI,GAA4B,EAAE,CAAC;QAE5C,qDAAqD;QAC3C,gBAAW,GAAG,IAAI,YAAY,EAAQ,CAAC;KAsEpD;IApEG;;;OAGG;IACH,KAAK,CAAC,QAAQ;QACV,IAAI,IAAI,CAAC,IAAI,CAAC,KAAK,EAAE,CAAC;YAClB,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC;QACjC,CAAC;QAED,4BAA4B;QAC5B,IAAI,IAAI,CAAC,IAAI,CAAC,OAAO,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,KAAK,EAAE,CAAC;YACxC,MAAM,EAAE,GAAG,IAAI,QAAQ,EAAE,CAAC;YAC1B,IAAI,CAAC,KAAK,GAAG,MAAM,EAAE,CAAC,eAAe,CAAgB,WAAW,CAAC,CAAC;YAClE,MAAM,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,OAAO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