@memberjunction/ng-core-entity-forms 2.50.0 → 2.51.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 (97) hide show
  1. package/README.md +215 -1
  2. package/dist/lib/custom/AIAgents/agent-execution-monitor.component.d.ts +244 -0
  3. package/dist/lib/custom/AIAgents/agent-execution-monitor.component.d.ts.map +1 -0
  4. package/dist/lib/custom/AIAgents/agent-execution-monitor.component.js +1314 -0
  5. package/dist/lib/custom/AIAgents/agent-execution-monitor.component.js.map +1 -0
  6. package/dist/lib/custom/AIAgents/agent-execution-node.component.d.ts +19 -0
  7. package/dist/lib/custom/AIAgents/agent-execution-node.component.d.ts.map +1 -0
  8. package/dist/lib/custom/AIAgents/agent-execution-node.component.js +458 -0
  9. package/dist/lib/custom/AIAgents/agent-execution-node.component.js.map +1 -0
  10. package/dist/lib/custom/AIAgents/ai-agent-form.component.d.ts +171 -11
  11. package/dist/lib/custom/AIAgents/ai-agent-form.component.d.ts.map +1 -1
  12. package/dist/lib/custom/AIAgents/ai-agent-form.component.js +1411 -145
  13. package/dist/lib/custom/AIAgents/ai-agent-form.component.js.map +1 -1
  14. package/dist/lib/custom/AIAgents/ai-test-harness-dialog.component.d.ts +78 -0
  15. package/dist/lib/custom/AIAgents/ai-test-harness-dialog.component.d.ts.map +1 -0
  16. package/dist/lib/custom/AIAgents/ai-test-harness-dialog.component.js +157 -0
  17. package/dist/lib/custom/AIAgents/ai-test-harness-dialog.component.js.map +1 -0
  18. package/dist/lib/custom/AIAgents/ai-test-harness.component.d.ts +508 -0
  19. package/dist/lib/custom/AIAgents/ai-test-harness.component.d.ts.map +1 -0
  20. package/dist/lib/custom/AIAgents/ai-test-harness.component.js +2658 -0
  21. package/dist/lib/custom/AIAgents/ai-test-harness.component.js.map +1 -0
  22. package/dist/lib/custom/AIPromptRuns/ai-prompt-run-form.component.d.ts +40 -0
  23. package/dist/lib/custom/AIPromptRuns/ai-prompt-run-form.component.d.ts.map +1 -0
  24. package/dist/lib/custom/AIPromptRuns/ai-prompt-run-form.component.js +965 -0
  25. package/dist/lib/custom/AIPromptRuns/ai-prompt-run-form.component.js.map +1 -0
  26. package/dist/lib/custom/AIPrompts/ai-prompt-execution-dialog.component.d.ts +5 -0
  27. package/dist/lib/custom/AIPrompts/ai-prompt-execution-dialog.component.d.ts.map +1 -1
  28. package/dist/lib/custom/AIPrompts/ai-prompt-execution-dialog.component.js +137 -99
  29. package/dist/lib/custom/AIPrompts/ai-prompt-execution-dialog.component.js.map +1 -1
  30. package/dist/lib/custom/AIPrompts/ai-prompt-form.component.d.ts +80 -4
  31. package/dist/lib/custom/AIPrompts/ai-prompt-form.component.d.ts.map +1 -1
  32. package/dist/lib/custom/AIPrompts/ai-prompt-form.component.js +956 -470
  33. package/dist/lib/custom/AIPrompts/ai-prompt-form.component.js.map +1 -1
  34. package/dist/lib/custom/Actions/action-execution-log-form.component.d.ts +40 -0
  35. package/dist/lib/custom/Actions/action-execution-log-form.component.d.ts.map +1 -0
  36. package/dist/lib/custom/Actions/action-execution-log-form.component.js +530 -0
  37. package/dist/lib/custom/Actions/action-execution-log-form.component.js.map +1 -0
  38. package/dist/lib/custom/Actions/action-form.component.d.ts +90 -0
  39. package/dist/lib/custom/Actions/action-form.component.d.ts.map +1 -0
  40. package/dist/lib/custom/Actions/action-form.component.js +1579 -0
  41. package/dist/lib/custom/Actions/action-form.component.js.map +1 -0
  42. package/dist/lib/custom/Actions/action-param-dialog.component.d.ts +32 -0
  43. package/dist/lib/custom/Actions/action-param-dialog.component.d.ts.map +1 -0
  44. package/dist/lib/custom/Actions/action-param-dialog.component.js +320 -0
  45. package/dist/lib/custom/Actions/action-param-dialog.component.js.map +1 -0
  46. package/dist/lib/custom/Actions/action-test-harness-dialog.component.d.ts +15 -0
  47. package/dist/lib/custom/Actions/action-test-harness-dialog.component.d.ts.map +1 -0
  48. package/dist/lib/custom/Actions/action-test-harness-dialog.component.js +96 -0
  49. package/dist/lib/custom/Actions/action-test-harness-dialog.component.js.map +1 -0
  50. package/dist/lib/custom/Actions/action-test-harness.component.d.ts +50 -0
  51. package/dist/lib/custom/Actions/action-test-harness.component.d.ts.map +1 -0
  52. package/dist/lib/custom/Actions/action-test-harness.component.js +708 -0
  53. package/dist/lib/custom/Actions/action-test-harness.component.js.map +1 -0
  54. package/dist/lib/custom/custom-forms.module.d.ts +31 -19
  55. package/dist/lib/custom/custom-forms.module.d.ts.map +1 -1
  56. package/dist/lib/custom/custom-forms.module.js +94 -15
  57. package/dist/lib/custom/custom-forms.module.js.map +1 -1
  58. package/dist/lib/custom/shared/entity-selector-dialog.component.d.ts +35 -0
  59. package/dist/lib/custom/shared/entity-selector-dialog.component.d.ts.map +1 -0
  60. package/dist/lib/custom/shared/entity-selector-dialog.component.js +290 -0
  61. package/dist/lib/custom/shared/entity-selector-dialog.component.js.map +1 -0
  62. package/dist/lib/custom/test-harness-dialog.service.d.ts +111 -0
  63. package/dist/lib/custom/test-harness-dialog.service.d.ts.map +1 -0
  64. package/dist/lib/custom/test-harness-dialog.service.js +211 -0
  65. package/dist/lib/custom/test-harness-dialog.service.js.map +1 -0
  66. package/dist/lib/generated/Entities/AIAgent/aiagent.form.component.js +12 -11
  67. package/dist/lib/generated/Entities/AIAgent/aiagent.form.component.js.map +1 -1
  68. package/dist/lib/generated/Entities/AIAgent/sections/aiagent-form-overview.component.d.ts +54 -0
  69. package/dist/lib/generated/Entities/AIAgent/sections/aiagent-form-overview.component.d.ts.map +1 -0
  70. package/dist/lib/generated/Entities/AIAgent/sections/aiagent-form-overview.component.js +492 -0
  71. package/dist/lib/generated/Entities/AIAgent/sections/aiagent-form-overview.component.js.map +1 -0
  72. package/dist/lib/generated/Entities/AIAgentRun/aiagentrun.form.component.js +8 -7
  73. package/dist/lib/generated/Entities/AIAgentRun/aiagentrun.form.component.js.map +1 -1
  74. package/dist/lib/generated/Entities/AIConfiguration/aiconfiguration.form.component.js +8 -7
  75. package/dist/lib/generated/Entities/AIConfiguration/aiconfiguration.form.component.js.map +1 -1
  76. package/dist/lib/generated/Entities/AIModel/aimodel.form.component.js +8 -7
  77. package/dist/lib/generated/Entities/AIModel/aimodel.form.component.js.map +1 -1
  78. package/dist/lib/generated/Entities/AIModelType/aimodeltype.form.component.js +12 -11
  79. package/dist/lib/generated/Entities/AIModelType/aimodeltype.form.component.js.map +1 -1
  80. package/dist/lib/generated/Entities/AIPrompt/aiprompt.form.component.js +12 -11
  81. package/dist/lib/generated/Entities/AIPrompt/aiprompt.form.component.js.map +1 -1
  82. package/dist/lib/generated/Entities/AIPromptRun/aipromptrun.form.component.js +12 -11
  83. package/dist/lib/generated/Entities/AIPromptRun/aipromptrun.form.component.js.map +1 -1
  84. package/dist/lib/generated/Entities/AIVendor/aivendor.form.component.js +12 -11
  85. package/dist/lib/generated/Entities/AIVendor/aivendor.form.component.js.map +1 -1
  86. package/dist/lib/generated/Entities/ActionExecutionLog/sections/details.component.d.ts.map +1 -1
  87. package/dist/lib/generated/Entities/ActionExecutionLog/sections/details.component.js +13 -4
  88. package/dist/lib/generated/Entities/ActionExecutionLog/sections/details.component.js.map +1 -1
  89. package/dist/public-api.d.ts +3 -0
  90. package/dist/public-api.d.ts.map +1 -1
  91. package/dist/public-api.js +16 -0
  92. package/dist/public-api.js.map +1 -1
  93. package/package.json +12 -11
  94. package/dist/lib/custom/AIAgents/ai-agent-execution-dialog.component.d.ts +0 -52
  95. package/dist/lib/custom/AIAgents/ai-agent-execution-dialog.component.d.ts.map +0 -1
  96. package/dist/lib/custom/AIAgents/ai-agent-execution-dialog.component.js +0 -590
  97. package/dist/lib/custom/AIAgents/ai-agent-execution-dialog.component.js.map +0 -1
@@ -0,0 +1,90 @@
1
+ import { OnInit, ChangeDetectorRef, ElementRef } from '@angular/core';
2
+ import { Router, ActivatedRoute } from '@angular/router';
3
+ import { ActionEntity, ActionParamEntity, ActionResultCodeEntity, ActionCategoryEntity, ActionExecutionLogEntity, ActionLibraryEntity, LibraryEntity } from '@memberjunction/core-entities';
4
+ import { SharedService } from '@memberjunction/ng-shared';
5
+ import { ActionFormComponent } from '../../generated/Entities/Action/action.form.component';
6
+ import { DialogService } from '@progress/kendo-angular-dialog';
7
+ import * as i0 from "@angular/core";
8
+ export declare class ActionFormComponentExtended extends ActionFormComponent implements OnInit {
9
+ cdr: ChangeDetectorRef;
10
+ private dialogService;
11
+ record: ActionEntity;
12
+ category: ActionCategoryEntity | null;
13
+ actionParams: ActionParamEntity[];
14
+ resultCodes: ActionResultCodeEntity[];
15
+ recentExecutions: ActionExecutionLogEntity[];
16
+ actionLibraries: ActionLibraryEntity[];
17
+ libraries: LibraryEntity[];
18
+ private _inputParams;
19
+ private _outputParams;
20
+ private paramsToDelete;
21
+ isLoadingParams: boolean;
22
+ isLoadingResultCodes: boolean;
23
+ isLoadingExecutions: boolean;
24
+ isLoadingLibraries: boolean;
25
+ expandedSections: {
26
+ overview: boolean;
27
+ code: boolean;
28
+ params: boolean;
29
+ resultCodes: boolean;
30
+ execution: boolean;
31
+ configuration: boolean;
32
+ };
33
+ showTestHarness: boolean;
34
+ executionStats: {
35
+ totalRuns: number;
36
+ successRate: number;
37
+ avgDuration: number;
38
+ lastRun: Date | null;
39
+ };
40
+ codeLanguage: string;
41
+ showCodeComments: boolean;
42
+ constructor(elementRef: ElementRef, sharedService: SharedService, router: Router, route: ActivatedRoute, cdr: ChangeDetectorRef, dialogService: DialogService);
43
+ ngOnInit(): Promise<void>;
44
+ private loadCategory;
45
+ private loadActionParams;
46
+ private loadResultCodes;
47
+ private loadRecentExecutions;
48
+ private loadActionLibraries;
49
+ private loadExecutionStats;
50
+ getStatusColor(): string;
51
+ getStatusIcon(): string;
52
+ getTypeColor(): string;
53
+ getTypeIcon(): string;
54
+ getApprovalStatusColor(): string;
55
+ getApprovalStatusIcon(): string;
56
+ getParamTypeIcon(type: string): string;
57
+ getParamTypeColor(type: string): string;
58
+ formatDuration(ms: number): string;
59
+ formatDate(date: Date | string | null): string;
60
+ navigateToEntity(entityName: string, recordId: string | null): void;
61
+ navigateToCategory(): void;
62
+ navigateToExecution(executionId: string): void;
63
+ navigateToLibrary(libraryId: string): void;
64
+ openTestHarness(): void;
65
+ /**
66
+ * Event handler for test harness visibility changes
67
+ */
68
+ onTestHarnessVisibilityChanged(isVisible: boolean): void;
69
+ regenerateCode(): Promise<void>;
70
+ toggleCodeComments(): void;
71
+ approveCode(): Promise<void>;
72
+ rejectCode(): Promise<void>;
73
+ toggleSection(section: keyof typeof this.expandedSections): void;
74
+ copyToClipboard(text: string): Promise<void>;
75
+ getInputParams(): ActionParamEntity[];
76
+ getOutputParams(): ActionParamEntity[];
77
+ isExecutionSuccess(execution: ActionExecutionLogEntity): boolean;
78
+ getExecutionDuration(execution: ActionExecutionLogEntity): number;
79
+ getSuccessRateColor(): string;
80
+ addParameter(type: 'Input' | 'Output' | 'Both'): Promise<void>;
81
+ editParameter(param: ActionParamEntity): Promise<void>;
82
+ onParamClick(param: ActionParamEntity, event: Event): void;
83
+ deleteParameter(param: ActionParamEntity): Promise<void>;
84
+ private updateParamArrays;
85
+ protected PopulatePendingRecords(): void;
86
+ static ɵfac: i0.ɵɵFactoryDeclaration<ActionFormComponentExtended, never>;
87
+ static ɵcmp: i0.ɵɵComponentDeclaration<ActionFormComponentExtended, "mj-action-form", never, {}, {}, never, never, false, never>;
88
+ }
89
+ export declare function LoadActionFormComponentExtended(): void;
90
+ //# sourceMappingURL=action-form.component.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"action-form.component.d.ts","sourceRoot":"","sources":["../../../../src/lib/custom/Actions/action-form.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAAa,MAAM,EAAE,iBAAiB,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AACjF,OAAO,EAAE,MAAM,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,EAAE,YAAY,EAAE,iBAAiB,EAAE,sBAAsB,EAAE,oBAAoB,EAAE,wBAAwB,EAAE,mBA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