@memberjunction/ng-dashboards 2.42.0 → 2.43.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/dist/AI/components/prompts/model-prompt-priority-matrix.component.d.ts +92 -0
- package/dist/AI/components/prompts/model-prompt-priority-matrix.component.d.ts.map +1 -0
- package/dist/AI/components/prompts/model-prompt-priority-matrix.component.js +954 -0
- package/dist/AI/components/prompts/model-prompt-priority-matrix.component.js.map +1 -0
- package/dist/AI/components/prompts/prompt-management.component.d.ts +5 -0
- package/dist/AI/components/prompts/prompt-management.component.d.ts.map +1 -1
- package/dist/AI/components/prompts/prompt-management.component.js +278 -200
- package/dist/AI/components/prompts/prompt-management.component.js.map +1 -1
- package/dist/AI/components/prompts/prompt-version-control.component.d.ts +108 -0
- package/dist/AI/components/prompts/prompt-version-control.component.d.ts.map +1 -0
- package/dist/AI/components/prompts/prompt-version-control.component.js +1205 -0
- package/dist/AI/components/prompts/prompt-version-control.component.js.map +1 -0
- package/dist/module.d.ts +14 -12
- package/dist/module.d.ts.map +1 -1
- package/dist/module.js +8 -2
- package/dist/module.js.map +1 -1
- package/package.json +6 -6
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
import { EventEmitter, OnInit, OnDestroy } from '@angular/core';
|
|
2
|
+
import { AIPromptEntity, AIPromptModelEntity, AIModelEntity } from '@memberjunction/core-entities';
|
|
3
|
+
import { BehaviorSubject } from 'rxjs';
|
|
4
|
+
import { MJNotificationService } from '@memberjunction/ng-notifications';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
interface PromptModelAssociation {
|
|
7
|
+
promptId: string;
|
|
8
|
+
promptName: string;
|
|
9
|
+
modelId: string;
|
|
10
|
+
modelName: string;
|
|
11
|
+
priority: number;
|
|
12
|
+
status: string;
|
|
13
|
+
association: AIPromptModelEntity | null;
|
|
14
|
+
isNew: boolean;
|
|
15
|
+
isModified: boolean;
|
|
16
|
+
}
|
|
17
|
+
interface MatrixCell {
|
|
18
|
+
promptId: string;
|
|
19
|
+
modelId: string;
|
|
20
|
+
association: PromptModelAssociation | null;
|
|
21
|
+
canAssign: boolean;
|
|
22
|
+
}
|
|
23
|
+
export declare class ModelPromptPriorityMatrixComponent implements OnInit, OnDestroy {
|
|
24
|
+
private notificationService;
|
|
25
|
+
selectedPrompts: AIPromptEntity[];
|
|
26
|
+
selectedModels: AIModelEntity[];
|
|
27
|
+
readonly: boolean;
|
|
28
|
+
associationsChange: EventEmitter<PromptModelAssociation[]>;
|
|
29
|
+
stateChange: EventEmitter<any>;
|
|
30
|
+
promptSelected: EventEmitter<AIPromptEntity>;
|
|
31
|
+
prompts: AIPromptEntity[];
|
|
32
|
+
models: AIModelEntity[];
|
|
33
|
+
associations: PromptModelAssociation[];
|
|
34
|
+
matrix: MatrixCell[][];
|
|
35
|
+
isLoading: boolean;
|
|
36
|
+
loadingMessage: string;
|
|
37
|
+
error: string | null;
|
|
38
|
+
viewMode: 'matrix' | 'list';
|
|
39
|
+
sortBy: 'prompt' | 'model' | 'priority';
|
|
40
|
+
sortDirection: 'asc' | 'desc';
|
|
41
|
+
showInactiveAssociations: boolean;
|
|
42
|
+
selectedCells: Set<string>;
|
|
43
|
+
editingCell: string | null;
|
|
44
|
+
bulkEditMode: boolean;
|
|
45
|
+
bulkEditPriority: number;
|
|
46
|
+
bulkEditStatus: string;
|
|
47
|
+
promptFilter$: BehaviorSubject<string>;
|
|
48
|
+
modelFilter$: BehaviorSubject<string>;
|
|
49
|
+
statusFilter$: BehaviorSubject<string>;
|
|
50
|
+
performanceData: {
|
|
51
|
+
[key: string]: any;
|
|
52
|
+
};
|
|
53
|
+
showPerformanceOverlay: boolean;
|
|
54
|
+
private destroy$;
|
|
55
|
+
constructor(notificationService: MJNotificationService);
|
|
56
|
+
ngOnInit(): void;
|
|
57
|
+
ngOnDestroy(): void;
|
|
58
|
+
loadData(): Promise<void>;
|
|
59
|
+
private loadPrompts;
|
|
60
|
+
private loadModels;
|
|
61
|
+
private loadAssociations;
|
|
62
|
+
private buildAssociations;
|
|
63
|
+
private buildMatrix;
|
|
64
|
+
private canAssignModelToPrompt;
|
|
65
|
+
getCellKey(promptIndex: number, modelIndex: number): string;
|
|
66
|
+
getCellClass(cell: MatrixCell): string;
|
|
67
|
+
onCellClick(promptIndex: number, modelIndex: number, event: MouseEvent): void;
|
|
68
|
+
onCellDoubleClick(promptIndex: number, modelIndex: number): void;
|
|
69
|
+
private selectRange;
|
|
70
|
+
createAssociation(promptId: string, modelId: string, priority?: number): void;
|
|
71
|
+
updateAssociation(promptId: string, modelId: string, updates: Partial<PromptModelAssociation>): void;
|
|
72
|
+
removeAssociation(promptId: string, modelId: string): void;
|
|
73
|
+
bulkUpdateSelectedCells(): void;
|
|
74
|
+
bulkRemoveSelectedCells(): void;
|
|
75
|
+
saveChanges(): Promise<void>;
|
|
76
|
+
hasUnsavedChanges(): boolean;
|
|
77
|
+
discardChanges(): void;
|
|
78
|
+
getAssociationCount(): number;
|
|
79
|
+
getModelAssociationCount(modelId: string): number;
|
|
80
|
+
getPromptAssociationCount(promptId: string): number;
|
|
81
|
+
getCellTooltip(association: any): string;
|
|
82
|
+
getAveragePriority(): number;
|
|
83
|
+
sortAssociations(): void;
|
|
84
|
+
toggleSortDirection(): void;
|
|
85
|
+
onViewModeChange(mode: 'matrix' | 'list'): void;
|
|
86
|
+
exportMatrix(): void;
|
|
87
|
+
selectPrompt(prompt: AIPromptEntity): void;
|
|
88
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ModelPromptPriorityMatrixComponent, never>;
|
|
89
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ModelPromptPriorityMatrixComponent, "app-model-prompt-priority-matrix", never, { "selectedPrompts": { "alias": "selectedPrompts"; "required": false; }; "selectedModels": { "alias": "selectedModels"; "required": false; }; "readonly": { "alias": "readonly"; "required": false; }; }, { "associationsChange": "associationsChange"; "stateChange": "stateChange"; "promptSelected": "promptSelected"; }, never, never, false, never>;
|
|
90
|
+
}
|
|
91
|
+
export {};
|
|
92
|
+
//# sourceMappingURL=model-prompt-priority-matrix.component.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"model-prompt-priority-matrix.component.d.ts","sourceRoot":"","sources":["../../../../src/AI/components/prompts/model-prompt-priority-matrix.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAA4B,YAAY,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAE1F,OAAO,EAAE,cAAc,EAAE,mBAAmB,EAAE,aAAa,EAAE,MAAM,+BAA+B,CAAC;AACnG,OAAO,EAAW,eAAe,EAAE,MAAM,MAAM,CAAC;AAEhD,OAAO,EAAE,qBAAqB,EAAE,MAAM,kCAAkC,CAAC;;AAEzE,UAAU,sBAAsB;IAC9B,QAAQ,EAAE,MAAM,CAAC;IACjB,UAAU,EAAE,MAAM,CAAC;IACnB,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,MAAM,CAAC;IACf,WAAW,EAAE,mBAAmB,GAAG,IAAI,CAAC;IACxC,KAAK,EAAE,OAAO,CAAC;IACf,UAAU,EAAE,OAAO,CAAC;CACrB;AAED,UAAU,UAAU;IAClB,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,EAAE,MAAM,CAAC;IAChB,WAAW,EAAE,sBAAsB,GAAG,IAAI,CAAC;IAC3C,SAAS,EAAE,OAAO,CAAC;CACpB;AAED,qBAKa,kCAAmC,YAAW,MAAM,EAAE,SAAS;IA0C9D,OAAO,CAAC,mBAAmB;IAzC9B,eAAe,EAAE,cAAc,EAAE,CAAM;IACvC,cAAc,EAAE,aAAa,EAAE,CAAM;IACrC,QAAQ,UAAS;IAEhB,kBAAkB,yCAAgD;IAClE,WAAW,oBAA2B;IACtC,cAAc,+BAAsC;IAGvD,OAAO,EAAE,cAAc,EAAE,CAAM;IAC/B,MAAM,E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