@memberjunction/ng-core-entity-forms 2.50.0 → 2.52.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.
- package/README.md +215 -1
- package/dist/lib/custom/AIAgents/ai-agent-form.component.d.ts +171 -11
- package/dist/lib/custom/AIAgents/ai-agent-form.component.d.ts.map +1 -1
- package/dist/lib/custom/AIAgents/ai-agent-form.component.js +1411 -145
- package/dist/lib/custom/AIAgents/ai-agent-form.component.js.map +1 -1
- package/dist/lib/custom/AIPromptRuns/ai-prompt-run-form.component.d.ts +40 -0
- package/dist/lib/custom/AIPromptRuns/ai-prompt-run-form.component.d.ts.map +1 -0
- package/dist/lib/custom/AIPromptRuns/ai-prompt-run-form.component.js +965 -0
- package/dist/lib/custom/AIPromptRuns/ai-prompt-run-form.component.js.map +1 -0
- package/dist/lib/custom/AIPrompts/ai-prompt-form.component.d.ts +80 -5
- package/dist/lib/custom/AIPrompts/ai-prompt-form.component.d.ts.map +1 -1
- package/dist/lib/custom/AIPrompts/ai-prompt-form.component.js +938 -448
- package/dist/lib/custom/AIPrompts/ai-prompt-form.component.js.map +1 -1
- package/dist/lib/custom/Actions/action-execution-log-form.component.d.ts +40 -0
- package/dist/lib/custom/Actions/action-execution-log-form.component.d.ts.map +1 -0
- package/dist/lib/custom/Actions/action-execution-log-form.component.js +530 -0
- package/dist/lib/custom/Actions/action-execution-log-form.component.js.map +1 -0
- package/dist/lib/custom/Actions/action-form.component.d.ts +90 -0
- package/dist/lib/custom/Actions/action-form.component.d.ts.map +1 -0
- package/dist/lib/custom/Actions/action-form.component.js +1579 -0
- package/dist/lib/custom/Actions/action-form.component.js.map +1 -0
- package/dist/lib/custom/Actions/action-param-dialog.component.d.ts +32 -0
- package/dist/lib/custom/Actions/action-param-dialog.component.d.ts.map +1 -0
- package/dist/lib/custom/Actions/action-param-dialog.component.js +320 -0
- package/dist/lib/custom/Actions/action-param-dialog.component.js.map +1 -0
- package/dist/lib/custom/Actions/action-test-harness-dialog.component.d.ts +15 -0
- package/dist/lib/custom/Actions/action-test-harness-dialog.component.d.ts.map +1 -0
- package/dist/lib/custom/Actions/action-test-harness-dialog.component.js +96 -0
- package/dist/lib/custom/Actions/action-test-harness-dialog.component.js.map +1 -0
- package/dist/lib/custom/Actions/action-test-harness.component.d.ts +50 -0
- package/dist/lib/custom/Actions/action-test-harness.component.d.ts.map +1 -0
- package/dist/lib/custom/Actions/action-test-harness.component.js +708 -0
- package/dist/lib/custom/Actions/action-test-harness.component.js.map +1 -0
- package/dist/lib/custom/ai-test-harness/agent-execution-monitor.component.d.ts +244 -0
- package/dist/lib/custom/ai-test-harness/agent-execution-monitor.component.d.ts.map +1 -0
- package/dist/lib/custom/ai-test-harness/agent-execution-monitor.component.js +1327 -0
- package/dist/lib/custom/ai-test-harness/agent-execution-monitor.component.js.map +1 -0
- package/dist/lib/custom/ai-test-harness/agent-execution-node.component.d.ts +19 -0
- package/dist/lib/custom/ai-test-harness/agent-execution-node.component.d.ts.map +1 -0
- package/dist/lib/custom/ai-test-harness/agent-execution-node.component.js +458 -0
- package/dist/lib/custom/ai-test-harness/agent-execution-node.component.js.map +1 -0
- package/dist/lib/custom/ai-test-harness/ai-test-harness-dialog.component.d.ts +78 -0
- package/dist/lib/custom/ai-test-harness/ai-test-harness-dialog.component.d.ts.map +1 -0
- package/dist/lib/custom/ai-test-harness/ai-test-harness-dialog.component.js +157 -0
- package/dist/lib/custom/ai-test-harness/ai-test-harness-dialog.component.js.map +1 -0
- package/dist/lib/custom/ai-test-harness/ai-test-harness.component.d.ts +589 -0
- package/dist/lib/custom/ai-test-harness/ai-test-harness.component.d.ts.map +1 -0
- package/dist/lib/custom/ai-test-harness/ai-test-harness.component.js +3140 -0
- package/dist/lib/custom/ai-test-harness/ai-test-harness.component.js.map +1 -0
- package/dist/lib/custom/ai-test-harness/json-viewer-window.component.d.ts +8 -0
- package/dist/lib/custom/ai-test-harness/json-viewer-window.component.d.ts.map +1 -0
- package/dist/lib/custom/ai-test-harness/json-viewer-window.component.js +57 -0
- package/dist/lib/custom/ai-test-harness/json-viewer-window.component.js.map +1 -0
- package/dist/lib/custom/custom-forms.module.d.ts +33 -21
- package/dist/lib/custom/custom-forms.module.d.ts.map +1 -1
- package/dist/lib/custom/custom-forms.module.js +97 -18
- package/dist/lib/custom/custom-forms.module.js.map +1 -1
- package/dist/lib/custom/shared/entity-selector-dialog.component.d.ts +35 -0
- package/dist/lib/custom/shared/entity-selector-dialog.component.d.ts.map +1 -0
- package/dist/lib/custom/shared/entity-selector-dialog.component.js +290 -0
- package/dist/lib/custom/shared/entity-selector-dialog.component.js.map +1 -0
- package/dist/lib/custom/test-harness-dialog.service.d.ts +111 -0
- package/dist/lib/custom/test-harness-dialog.service.d.ts.map +1 -0
- package/dist/lib/custom/test-harness-dialog.service.js +211 -0
- package/dist/lib/custom/test-harness-dialog.service.js.map +1 -0
- package/dist/lib/generated/Entities/AIAgent/aiagent.form.component.js +12 -11
- package/dist/lib/generated/Entities/AIAgent/aiagent.form.component.js.map +1 -1
- package/dist/lib/generated/Entities/AIAgent/sections/aiagent-form-overview.component.d.ts +54 -0
- package/dist/lib/generated/Entities/AIAgent/sections/aiagent-form-overview.component.d.ts.map +1 -0
- package/dist/lib/generated/Entities/AIAgent/sections/aiagent-form-overview.component.js +492 -0
- package/dist/lib/generated/Entities/AIAgent/sections/aiagent-form-overview.component.js.map +1 -0
- package/dist/lib/generated/Entities/AIAgentRun/aiagentrun.form.component.js +8 -7
- package/dist/lib/generated/Entities/AIAgentRun/aiagentrun.form.component.js.map +1 -1
- package/dist/lib/generated/Entities/AIConfiguration/aiconfiguration.form.component.js +8 -7
- package/dist/lib/generated/Entities/AIConfiguration/aiconfiguration.form.component.js.map +1 -1
- package/dist/lib/generated/Entities/AIModel/aimodel.form.component.js +8 -7
- package/dist/lib/generated/Entities/AIModel/aimodel.form.component.js.map +1 -1
- package/dist/lib/generated/Entities/AIModelType/aimodeltype.form.component.js +12 -11
- package/dist/lib/generated/Entities/AIModelType/aimodeltype.form.component.js.map +1 -1
- package/dist/lib/generated/Entities/AIPrompt/aiprompt.form.component.js +12 -11
- package/dist/lib/generated/Entities/AIPrompt/aiprompt.form.component.js.map +1 -1
- package/dist/lib/generated/Entities/AIPrompt/sections/details.component.d.ts.map +1 -1
- package/dist/lib/generated/Entities/AIPrompt/sections/details.component.js +94 -4
- package/dist/lib/generated/Entities/AIPrompt/sections/details.component.js.map +1 -1
- package/dist/lib/generated/Entities/AIPromptRun/aipromptrun.form.component.js +12 -11
- package/dist/lib/generated/Entities/AIPromptRun/aipromptrun.form.component.js.map +1 -1
- package/dist/lib/generated/Entities/AIPromptRun/sections/details.component.d.ts.map +1 -1
- package/dist/lib/generated/Entities/AIPromptRun/sections/details.component.js +103 -4
- package/dist/lib/generated/Entities/AIPromptRun/sections/details.component.js.map +1 -1
- package/dist/lib/generated/Entities/AIVendor/aivendor.form.component.js +12 -11
- package/dist/lib/generated/Entities/AIVendor/aivendor.form.component.js.map +1 -1
- package/dist/lib/generated/Entities/ActionExecutionLog/sections/details.component.d.ts.map +1 -1
- package/dist/lib/generated/Entities/ActionExecutionLog/sections/details.component.js +13 -4
- package/dist/lib/generated/Entities/ActionExecutionLog/sections/details.component.js.map +1 -1
- package/dist/public-api.d.ts +3 -0
- package/dist/public-api.d.ts.map +1 -1
- package/dist/public-api.js +16 -0
- package/dist/public-api.js.map +1 -1
- package/package.json +12 -11
- package/dist/lib/custom/AIAgents/ai-agent-execution-dialog.component.d.ts +0 -52
- package/dist/lib/custom/AIAgents/ai-agent-execution-dialog.component.d.ts.map +0 -1
- package/dist/lib/custom/AIAgents/ai-agent-execution-dialog.component.js +0 -590
- package/dist/lib/custom/AIAgents/ai-agent-execution-dialog.component.js.map +0 -1
- package/dist/lib/custom/AIPrompts/ai-prompt-execution-dialog.component.d.ts +0 -94
- package/dist/lib/custom/AIPrompts/ai-prompt-execution-dialog.component.d.ts.map +0 -1
- package/dist/lib/custom/AIPrompts/ai-prompt-execution-dialog.component.js +0 -792
- package/dist/lib/custom/AIPrompts/ai-prompt-execution-dialog.component.js.map +0 -1
|
@@ -0,0 +1,78 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
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"}
|
|
@@ -0,0 +1,157 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
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,CA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