@memberjunction/ng-dashboards 5.22.0 → 5.24.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 +51 -0
- package/dist/AI/components/agents/agent-configuration.component.d.ts.map +1 -1
- package/dist/AI/components/agents/agent-configuration.component.js +364 -362
- package/dist/AI/components/agents/agent-configuration.component.js.map +1 -1
- package/dist/AI/components/agents/agent-editor.component.js +2 -2
- package/dist/AI/components/autotagging/autotagging-pipeline-resource.component.d.ts +947 -64
- package/dist/AI/components/autotagging/autotagging-pipeline-resource.component.d.ts.map +1 -1
- package/dist/AI/components/autotagging/autotagging-pipeline-resource.component.js +7645 -430
- package/dist/AI/components/autotagging/autotagging-pipeline-resource.component.js.map +1 -1
- package/dist/AI/components/duplicates/duplicate-detection-resource.component.d.ts +285 -6
- package/dist/AI/components/duplicates/duplicate-detection-resource.component.d.ts.map +1 -1
- package/dist/AI/components/duplicates/duplicate-detection-resource.component.js +2454 -277
- package/dist/AI/components/duplicates/duplicate-detection-resource.component.js.map +1 -1
- package/dist/AI/components/execution-monitoring.component.d.ts.map +1 -1
- package/dist/AI/components/execution-monitoring.component.js +191 -197
- package/dist/AI/components/execution-monitoring.component.js.map +1 -1
- package/dist/AI/components/models/model-management.component.js +9 -8
- package/dist/AI/components/models/model-management.component.js.map +1 -1
- package/dist/AI/components/prompts/prompt-management.component.js +305 -299
- package/dist/AI/components/prompts/prompt-management.component.js.map +1 -1
- package/dist/AI/components/system/system-configuration.component.js +319 -313
- package/dist/AI/components/system/system-configuration.component.js.map +1 -1
- package/dist/AI/components/vectors/vector-management-resource.component.d.ts +20 -2
- package/dist/AI/components/vectors/vector-management-resource.component.d.ts.map +1 -1
- package/dist/AI/components/vectors/vector-management-resource.component.js +419 -232
- package/dist/AI/components/vectors/vector-management-resource.component.js.map +1 -1
- package/dist/APIKeys/api-applications-panel.component.js +10 -12
- package/dist/APIKeys/api-applications-panel.component.js.map +1 -1
- package/dist/APIKeys/api-key-create-dialog.component.js +13 -19
- package/dist/APIKeys/api-key-create-dialog.component.js.map +1 -1
- package/dist/APIKeys/api-key-edit-panel.component.js +12 -14
- package/dist/APIKeys/api-key-edit-panel.component.js.map +1 -1
- package/dist/APIKeys/api-scopes-panel.component.js +61 -68
- package/dist/APIKeys/api-scopes-panel.component.js.map +1 -1
- package/dist/APIKeys/api-usage-panel.component.js +10 -11
- package/dist/APIKeys/api-usage-panel.component.js.map +1 -1
- package/dist/Actions/components/actions-list-view.component.js +82 -96
- package/dist/Actions/components/actions-list-view.component.js.map +1 -1
- package/dist/Actions/components/actions-overview.component.js +130 -134
- package/dist/Actions/components/actions-overview.component.js.map +1 -1
- package/dist/Actions/components/categories-list-view.component.d.ts.map +1 -1
- package/dist/Actions/components/categories-list-view.component.js +40 -46
- package/dist/Actions/components/categories-list-view.component.js.map +1 -1
- package/dist/Actions/components/code-management.component.js +2 -2
- package/dist/Actions/components/code-management.component.js.map +1 -1
- package/dist/Actions/components/entity-integration.component.js +2 -2
- package/dist/Actions/components/entity-integration.component.js.map +1 -1
- package/dist/Actions/components/execution-monitoring.component.js +127 -132
- package/dist/Actions/components/execution-monitoring.component.js.map +1 -1
- package/dist/Actions/components/executions-list-view.component.js +2 -2
- package/dist/Actions/components/executions-list-view.component.js.map +1 -1
- package/dist/Actions/components/explorer/action-card.component.js +11 -17
- package/dist/Actions/components/explorer/action-card.component.js.map +1 -1
- package/dist/Actions/components/explorer/action-explorer.component.js +5 -11
- package/dist/Actions/components/explorer/action-explorer.component.js.map +1 -1
- package/dist/Actions/components/explorer/action-list-item.component.js +8 -10
- package/dist/Actions/components/explorer/action-list-item.component.js.map +1 -1
- package/dist/Actions/components/explorer/action-toolbar.component.js +112 -133
- package/dist/Actions/components/explorer/action-toolbar.component.js.map +1 -1
- package/dist/Actions/components/explorer/action-tree-panel.component.js +63 -83
- package/dist/Actions/components/explorer/action-tree-panel.component.js.map +1 -1
- package/dist/Actions/components/explorer/new-action-panel.component.js +17 -21
- package/dist/Actions/components/explorer/new-action-panel.component.js.map +1 -1
- package/dist/Actions/components/explorer/new-category-panel.component.js +17 -21
- package/dist/Actions/components/explorer/new-category-panel.component.js.map +1 -1
- package/dist/Actions/components/scheduled-actions.component.js +2 -2
- package/dist/Actions/components/scheduled-actions.component.js.map +1 -1
- package/dist/Actions/components/security-permissions.component.js +2 -2
- package/dist/Actions/components/security-permissions.component.js.map +1 -1
- package/dist/ComponentStudio/component-studio-dashboard.component.d.ts +13 -5
- package/dist/ComponentStudio/component-studio-dashboard.component.d.ts.map +1 -1
- package/dist/ComponentStudio/component-studio-dashboard.component.js +168 -145
- package/dist/ComponentStudio/component-studio-dashboard.component.js.map +1 -1
- package/dist/ComponentStudio/components/artifact-load-dialog.component.d.ts +4 -5
- package/dist/ComponentStudio/components/artifact-load-dialog.component.d.ts.map +1 -1
- package/dist/ComponentStudio/components/artifact-load-dialog.component.js +197 -200
- package/dist/ComponentStudio/components/artifact-load-dialog.component.js.map +1 -1
- package/dist/ComponentStudio/components/artifact-selection-dialog.component.d.ts +5 -7
- package/dist/ComponentStudio/components/artifact-selection-dialog.component.d.ts.map +1 -1
- package/dist/ComponentStudio/components/artifact-selection-dialog.component.js +142 -148
- package/dist/ComponentStudio/components/artifact-selection-dialog.component.js.map +1 -1
- package/dist/ComponentStudio/components/browser/component-browser.component.js +153 -166
- package/dist/ComponentStudio/components/browser/component-browser.component.js.map +1 -1
- package/dist/ComponentStudio/components/editors/code-editor-panel.component.js +15 -20
- package/dist/ComponentStudio/components/editors/code-editor-panel.component.js.map +1 -1
- package/dist/ComponentStudio/components/editors/data-requirements-editor.component.js +16 -21
- package/dist/ComponentStudio/components/editors/data-requirements-editor.component.js.map +1 -1
- package/dist/ComponentStudio/components/editors/requirements-editor.component.js +18 -23
- package/dist/ComponentStudio/components/editors/requirements-editor.component.js.map +1 -1
- package/dist/ComponentStudio/components/editors/spec-editor.component.js +25 -30
- package/dist/ComponentStudio/components/editors/spec-editor.component.js.map +1 -1
- package/dist/ComponentStudio/components/new-component-dialog/new-component-dialog.component.js +10 -11
- package/dist/ComponentStudio/components/new-component-dialog/new-component-dialog.component.js.map +1 -1
- package/dist/ComponentStudio/components/save-version-dialog/save-version-dialog.component.d.ts.map +1 -1
- package/dist/ComponentStudio/components/save-version-dialog/save-version-dialog.component.js +24 -35
- package/dist/ComponentStudio/components/save-version-dialog/save-version-dialog.component.js.map +1 -1
- package/dist/ComponentStudio/components/text-import-dialog.component.js +15 -17
- package/dist/ComponentStudio/components/text-import-dialog.component.js.map +1 -1
- package/dist/Credentials/components/credentials-categories-resource.component.js +7 -6
- package/dist/Credentials/components/credentials-categories-resource.component.js.map +1 -1
- package/dist/Credentials/components/credentials-list-resource.component.js +6 -5
- package/dist/Credentials/components/credentials-list-resource.component.js.map +1 -1
- package/dist/Credentials/components/credentials-types-resource.component.js +7 -6
- package/dist/Credentials/components/credentials-types-resource.component.js.map +1 -1
- package/dist/DashboardBrowser/dashboard-share-dialog.component.js +9 -9
- package/dist/DashboardBrowser/dashboard-share-dialog.component.js.map +1 -1
- package/dist/DataExplorer/data-explorer-dashboard.component.d.ts.map +1 -1
- package/dist/DataExplorer/data-explorer-dashboard.component.js +17 -17
- package/dist/DataExplorer/data-explorer-dashboard.component.js.map +1 -1
- package/dist/Home/home-dashboard.component.js +4 -4
- package/dist/Home/home-dashboard.component.js.map +1 -1
- package/dist/Integration/components/activity/activity.component.d.ts.map +1 -1
- package/dist/Integration/components/activity/activity.component.js +1 -0
- package/dist/Integration/components/activity/activity.component.js.map +1 -1
- package/dist/Integration/components/connections/connections.component.d.ts.map +1 -1
- package/dist/Integration/components/connections/connections.component.js +5 -4
- package/dist/Integration/components/connections/connections.component.js.map +1 -1
- package/dist/Integration/components/mapping-workspace/mapping-workspace.component.d.ts.map +1 -1
- package/dist/Integration/components/mapping-workspace/mapping-workspace.component.js +247 -259
- package/dist/Integration/components/mapping-workspace/mapping-workspace.component.js.map +1 -1
- package/dist/Integration/components/overview/overview.component.d.ts.map +1 -1
- package/dist/Integration/components/overview/overview.component.js +1 -0
- package/dist/Integration/components/overview/overview.component.js.map +1 -1
- package/dist/Integration/components/pipelines/pipelines.component.d.ts.map +1 -1
- package/dist/Integration/components/pipelines/pipelines.component.js +1 -0
- package/dist/Integration/components/pipelines/pipelines.component.js.map +1 -1
- package/dist/Integration/components/schedules/schedules.component.d.ts.map +1 -1
- package/dist/Integration/components/schedules/schedules.component.js +1 -0
- package/dist/Integration/components/schedules/schedules.component.js.map +1 -1
- package/dist/Integration/components/widgets/integration-card.component.js +7 -9
- package/dist/Integration/components/widgets/integration-card.component.js.map +1 -1
- package/dist/Integration/integration.module.d.ts +6 -10
- package/dist/Integration/integration.module.d.ts.map +1 -1
- package/dist/Integration/integration.module.js +12 -20
- package/dist/Integration/integration.module.js.map +1 -1
- package/dist/KnowledgeHub/components/analytics/analytics-resource.component.d.ts +411 -0
- package/dist/KnowledgeHub/components/analytics/analytics-resource.component.d.ts.map +1 -0
- package/dist/KnowledgeHub/components/analytics/analytics-resource.component.js +4266 -0
- package/dist/KnowledgeHub/components/analytics/analytics-resource.component.js.map +1 -0
- package/dist/KnowledgeHub/components/clusters/cluster-visualization-resource.component.d.ts +140 -0
- package/dist/KnowledgeHub/components/clusters/cluster-visualization-resource.component.d.ts.map +1 -0
- package/dist/KnowledgeHub/components/clusters/cluster-visualization-resource.component.js +780 -0
- package/dist/KnowledgeHub/components/clusters/cluster-visualization-resource.component.js.map +1 -0
- package/dist/KnowledgeHub/components/config/knowledge-config-resource.component.d.ts +8 -2
- package/dist/KnowledgeHub/components/config/knowledge-config-resource.component.d.ts.map +1 -1
- package/dist/KnowledgeHub/components/config/knowledge-config-resource.component.js +246 -195
- package/dist/KnowledgeHub/components/config/knowledge-config-resource.component.js.map +1 -1
- package/dist/KnowledgeHub/components/scheduling/scheduling-resource.component.d.ts +75 -0
- package/dist/KnowledgeHub/components/scheduling/scheduling-resource.component.d.ts.map +1 -0
- package/dist/KnowledgeHub/components/scheduling/scheduling-resource.component.js +601 -0
- package/dist/KnowledgeHub/components/scheduling/scheduling-resource.component.js.map +1 -0
- package/dist/KnowledgeHub/components/search/knowledge-search-resource.component.d.ts +93 -12
- package/dist/KnowledgeHub/components/search/knowledge-search-resource.component.d.ts.map +1 -1
- package/dist/KnowledgeHub/components/search/knowledge-search-resource.component.js +637 -107
- package/dist/KnowledgeHub/components/search/knowledge-search-resource.component.js.map +1 -1
- package/dist/KnowledgeHub/index.d.ts +3 -0
- package/dist/KnowledgeHub/index.d.ts.map +1 -1
- package/dist/KnowledgeHub/index.js +3 -0
- package/dist/KnowledgeHub/index.js.map +1 -1
- package/dist/Lists/components/lists-browse-resource.component.d.ts.map +1 -1
- package/dist/Lists/components/lists-browse-resource.component.js +9 -7
- package/dist/Lists/components/lists-browse-resource.component.js.map +1 -1
- package/dist/Lists/components/lists-my-lists-resource.component.js +5 -4
- package/dist/Lists/components/lists-my-lists-resource.component.js.map +1 -1
- package/dist/Lists/components/lists-operations-resource.component.js +10 -9
- package/dist/Lists/components/lists-operations-resource.component.js.map +1 -1
- package/dist/MCP/components/mcp-connection-dialog.component.js +141 -132
- package/dist/MCP/components/mcp-connection-dialog.component.js.map +1 -1
- package/dist/MCP/components/mcp-log-detail-panel.component.js +4 -4
- package/dist/MCP/components/mcp-log-detail-panel.component.js.map +1 -1
- package/dist/MCP/components/mcp-server-dialog.component.js +141 -128
- package/dist/MCP/components/mcp-server-dialog.component.js.map +1 -1
- package/dist/MCP/components/mcp-test-tool-dialog.component.js +210 -218
- package/dist/MCP/components/mcp-test-tool-dialog.component.js.map +1 -1
- package/dist/MCP/mcp-dashboard.component.js +2 -2
- package/dist/MCP/mcp-dashboard.component.js.map +1 -1
- package/dist/MCP/mcp.module.d.ts +6 -9
- package/dist/MCP/mcp.module.d.ts.map +1 -1
- package/dist/MCP/mcp.module.js +20 -22
- package/dist/MCP/mcp.module.js.map +1 -1
- package/dist/Scheduling/components/scheduling-activity.component.js +5 -4
- package/dist/Scheduling/components/scheduling-activity.component.js.map +1 -1
- package/dist/Scheduling/components/scheduling-jobs.component.js +6 -5
- package/dist/Scheduling/components/scheduling-jobs.component.js.map +1 -1
- package/dist/Scheduling/components/scheduling-overview.component.js +93 -92
- package/dist/Scheduling/components/scheduling-overview.component.js.map +1 -1
- package/dist/Testing/testing-dashboard.component.js +9 -10
- package/dist/Testing/testing-dashboard.component.js.map +1 -1
- package/dist/__tests__/analytics-resource.test.d.ts +2 -0
- package/dist/__tests__/analytics-resource.test.d.ts.map +1 -0
- package/dist/__tests__/analytics-resource.test.js +181 -0
- package/dist/__tests__/analytics-resource.test.js.map +1 -0
- package/dist/__tests__/scheduling.test.d.ts +2 -0
- package/dist/__tests__/scheduling.test.d.ts.map +1 -0
- package/dist/__tests__/scheduling.test.js +205 -0
- package/dist/__tests__/scheduling.test.js.map +1 -0
- package/dist/actions-dashboards.module.d.ts +8 -13
- package/dist/actions-dashboards.module.d.ts.map +1 -1
- package/dist/actions-dashboards.module.js +6 -27
- package/dist/actions-dashboards.module.js.map +1 -1
- package/dist/ai-dashboards.module.d.ts +20 -20
- package/dist/ai-dashboards.module.d.ts.map +1 -1
- package/dist/ai-dashboards.module.js +43 -44
- package/dist/ai-dashboards.module.js.map +1 -1
- package/dist/communication-dashboards.module.d.ts +4 -8
- package/dist/communication-dashboards.module.d.ts.map +1 -1
- package/dist/communication-dashboards.module.js +0 -19
- package/dist/communication-dashboards.module.js.map +1 -1
- package/dist/component-studio-dashboards.module.d.ts +7 -11
- package/dist/component-studio-dashboards.module.d.ts.map +1 -1
- package/dist/component-studio-dashboards.module.js +22 -34
- package/dist/component-studio-dashboards.module.js.map +1 -1
- package/dist/core-dashboards.module.d.ts +12 -18
- package/dist/core-dashboards.module.d.ts.map +1 -1
- package/dist/core-dashboards.module.js +15 -31
- package/dist/core-dashboards.module.js.map +1 -1
- package/dist/credentials-dashboards.module.d.ts +5 -8
- package/dist/credentials-dashboards.module.d.ts.map +1 -1
- package/dist/credentials-dashboards.module.js +3 -19
- package/dist/credentials-dashboards.module.js.map +1 -1
- package/dist/data-explorer-dashboards.module.d.ts +7 -13
- package/dist/data-explorer-dashboards.module.d.ts.map +1 -1
- package/dist/data-explorer-dashboards.module.js +0 -27
- package/dist/data-explorer-dashboards.module.js.map +1 -1
- package/dist/lists-dashboards.module.d.ts +5 -8
- package/dist/lists-dashboards.module.d.ts.map +1 -1
- package/dist/lists-dashboards.module.js +3 -19
- package/dist/lists-dashboards.module.js.map +1 -1
- package/dist/public-api.d.ts +2 -0
- package/dist/public-api.d.ts.map +1 -1
- package/dist/public-api.js +2 -0
- package/dist/public-api.js.map +1 -1
- package/dist/scheduling-dashboards.module.d.ts +6 -10
- package/dist/scheduling-dashboards.module.d.ts.map +1 -1
- package/dist/scheduling-dashboards.module.js +3 -23
- package/dist/scheduling-dashboards.module.js.map +1 -1
- package/dist/shared/entity-field-display.d.ts +44 -0
- package/dist/shared/entity-field-display.d.ts.map +1 -0
- package/dist/shared/entity-field-display.js +118 -0
- package/dist/shared/entity-field-display.js.map +1 -0
- package/dist/testing-dashboards.module.d.ts +7 -13
- package/dist/testing-dashboards.module.d.ts.map +1 -1
- package/dist/testing-dashboards.module.js +0 -27
- package/dist/testing-dashboards.module.js.map +1 -1
- package/package.json +48 -55
|
@@ -0,0 +1,205 @@
|
|
|
1
|
+
import { describe, it, expect, vi } from 'vitest';
|
|
2
|
+
// Mock Angular core to avoid JIT compilation errors
|
|
3
|
+
vi.mock('@angular/core', () => ({
|
|
4
|
+
Injectable: () => (target) => target,
|
|
5
|
+
Component: () => (target) => target,
|
|
6
|
+
Directive: () => (target) => target,
|
|
7
|
+
NgModule: () => (target) => target,
|
|
8
|
+
Input: () => () => { },
|
|
9
|
+
Output: () => () => { },
|
|
10
|
+
EventEmitter: class {
|
|
11
|
+
emit() { }
|
|
12
|
+
},
|
|
13
|
+
ChangeDetectorRef: class {
|
|
14
|
+
detectChanges() { }
|
|
15
|
+
markForCheck() { }
|
|
16
|
+
},
|
|
17
|
+
ChangeDetectionStrategy: { OnPush: 1 },
|
|
18
|
+
ViewChild: () => () => { },
|
|
19
|
+
ElementRef: class {
|
|
20
|
+
},
|
|
21
|
+
OnInit: class {
|
|
22
|
+
},
|
|
23
|
+
OnDestroy: class {
|
|
24
|
+
},
|
|
25
|
+
AfterViewInit: class {
|
|
26
|
+
},
|
|
27
|
+
Injector: class {
|
|
28
|
+
},
|
|
29
|
+
ViewEncapsulation: { None: 0 },
|
|
30
|
+
inject: () => ({}),
|
|
31
|
+
}));
|
|
32
|
+
// Mock other Angular and MJ dependencies
|
|
33
|
+
vi.mock('@angular/forms', () => ({}));
|
|
34
|
+
vi.mock('rxjs', () => ({
|
|
35
|
+
Subject: class {
|
|
36
|
+
next() { }
|
|
37
|
+
complete() { }
|
|
38
|
+
pipe() { return this; }
|
|
39
|
+
subscribe() { return this; }
|
|
40
|
+
},
|
|
41
|
+
BehaviorSubject: class {
|
|
42
|
+
next() { }
|
|
43
|
+
pipe() { return this; }
|
|
44
|
+
subscribe() { return this; }
|
|
45
|
+
getValue() { }
|
|
46
|
+
},
|
|
47
|
+
}));
|
|
48
|
+
vi.mock('rxjs/operators', () => ({
|
|
49
|
+
takeUntil: () => (source) => source,
|
|
50
|
+
}));
|
|
51
|
+
vi.mock('@memberjunction/core', () => ({
|
|
52
|
+
BaseEntity: class {
|
|
53
|
+
},
|
|
54
|
+
CompositeKey: class {
|
|
55
|
+
},
|
|
56
|
+
Metadata: class {
|
|
57
|
+
},
|
|
58
|
+
RunView: class {
|
|
59
|
+
RunView() { return { Success: false, Results: [] }; }
|
|
60
|
+
RunViews() { return []; }
|
|
61
|
+
},
|
|
62
|
+
}));
|
|
63
|
+
vi.mock('@memberjunction/core-entities', () => ({
|
|
64
|
+
ResourceData: class {
|
|
65
|
+
},
|
|
66
|
+
KnowledgeHubMetadataEngine: { Instance: {} },
|
|
67
|
+
MJContentSourceEntity: class {
|
|
68
|
+
},
|
|
69
|
+
MJContentSourceTypeEntity_IContentSourceTypeField: class {
|
|
70
|
+
},
|
|
71
|
+
MJScheduledActionEntity: class {
|
|
72
|
+
},
|
|
73
|
+
MJScheduledActionParamEntity: class {
|
|
74
|
+
},
|
|
75
|
+
MJContentItemDuplicateEntity: class {
|
|
76
|
+
},
|
|
77
|
+
UserInfoEngine: { Instance: { Config: vi.fn() } },
|
|
78
|
+
}));
|
|
79
|
+
vi.mock('@memberjunction/global', () => ({
|
|
80
|
+
RegisterClass: () => (target) => target,
|
|
81
|
+
UUIDsEqual: vi.fn(),
|
|
82
|
+
NormalizeUUID: vi.fn((x) => x),
|
|
83
|
+
}));
|
|
84
|
+
vi.mock('@memberjunction/ng-shared', () => ({
|
|
85
|
+
BaseResourceComponent: class {
|
|
86
|
+
},
|
|
87
|
+
NavigationService: class {
|
|
88
|
+
},
|
|
89
|
+
}));
|
|
90
|
+
vi.mock('@memberjunction/graphql-dataprovider', () => ({
|
|
91
|
+
GraphQLDataProvider: class {
|
|
92
|
+
},
|
|
93
|
+
GraphQLAIClient: class {
|
|
94
|
+
},
|
|
95
|
+
}));
|
|
96
|
+
vi.mock('@memberjunction/ng-notifications', () => ({
|
|
97
|
+
MJNotificationService: { Instance: { CreateSimpleNotification: vi.fn() } },
|
|
98
|
+
}));
|
|
99
|
+
vi.mock('@memberjunction/ai-engine-base', () => ({
|
|
100
|
+
AIEngineBase: { Instance: { Prompts: [] } },
|
|
101
|
+
}));
|
|
102
|
+
vi.mock('@memberjunction/ng-word-cloud', () => ({
|
|
103
|
+
WordCloudItem: class {
|
|
104
|
+
},
|
|
105
|
+
}));
|
|
106
|
+
vi.mock('@memberjunction/ng-trees', () => ({
|
|
107
|
+
TreeBranchConfig: class {
|
|
108
|
+
},
|
|
109
|
+
TreeLeafConfig: class {
|
|
110
|
+
},
|
|
111
|
+
}));
|
|
112
|
+
import { CronToHumanReadable } from '../AI/components/autotagging/autotagging-pipeline-resource.component';
|
|
113
|
+
describe('CronToHumanReadable', () => {
|
|
114
|
+
describe('every N minutes patterns', () => {
|
|
115
|
+
it('should parse "every minute" pattern', () => {
|
|
116
|
+
expect(CronToHumanReadable('*/1 * * * *')).toBe('Every minute');
|
|
117
|
+
});
|
|
118
|
+
it('should parse "every 15 minutes" pattern', () => {
|
|
119
|
+
expect(CronToHumanReadable('*/15 * * * *')).toBe('Every 15 minutes');
|
|
120
|
+
});
|
|
121
|
+
it('should parse "every 5 minutes" pattern', () => {
|
|
122
|
+
expect(CronToHumanReadable('*/5 * * * *')).toBe('Every 5 minutes');
|
|
123
|
+
});
|
|
124
|
+
it('should parse "every 30 minutes" pattern', () => {
|
|
125
|
+
expect(CronToHumanReadable('*/30 * * * *')).toBe('Every 30 minutes');
|
|
126
|
+
});
|
|
127
|
+
});
|
|
128
|
+
describe('hourly patterns', () => {
|
|
129
|
+
it('should parse "every hour" pattern (minute 0)', () => {
|
|
130
|
+
expect(CronToHumanReadable('0 * * * *')).toBe('Every hour');
|
|
131
|
+
});
|
|
132
|
+
it('should parse "every hour" pattern (minute 30)', () => {
|
|
133
|
+
expect(CronToHumanReadable('30 * * * *')).toBe('Every hour');
|
|
134
|
+
});
|
|
135
|
+
it('should parse "every 2 hours" pattern', () => {
|
|
136
|
+
expect(CronToHumanReadable('0 */2 * * *')).toBe('Every 2 hours');
|
|
137
|
+
});
|
|
138
|
+
it('should parse "every 6 hours" pattern', () => {
|
|
139
|
+
expect(CronToHumanReadable('0 */6 * * *')).toBe('Every 6 hours');
|
|
140
|
+
});
|
|
141
|
+
it('should parse "every 1 hour" as "every hour"', () => {
|
|
142
|
+
expect(CronToHumanReadable('0 */1 * * *')).toBe('Every hour');
|
|
143
|
+
});
|
|
144
|
+
});
|
|
145
|
+
describe('daily patterns', () => {
|
|
146
|
+
it('should parse "daily at 2:00 AM"', () => {
|
|
147
|
+
expect(CronToHumanReadable('0 2 * * *')).toBe('Daily at 2:00 AM');
|
|
148
|
+
});
|
|
149
|
+
it('should parse "daily at 12:00 PM"', () => {
|
|
150
|
+
expect(CronToHumanReadable('0 12 * * *')).toBe('Daily at 12:00 PM');
|
|
151
|
+
});
|
|
152
|
+
it('should parse "daily at 12:00 AM" (midnight)', () => {
|
|
153
|
+
expect(CronToHumanReadable('0 0 * * *')).toBe('Daily at 12:00 AM');
|
|
154
|
+
});
|
|
155
|
+
it('should parse "daily at 11:30 PM"', () => {
|
|
156
|
+
expect(CronToHumanReadable('30 23 * * *')).toBe('Daily at 11:30 PM');
|
|
157
|
+
});
|
|
158
|
+
it('should parse "daily at 5:15 AM"', () => {
|
|
159
|
+
expect(CronToHumanReadable('15 5 * * *')).toBe('Daily at 5:15 AM');
|
|
160
|
+
});
|
|
161
|
+
});
|
|
162
|
+
describe('weekly patterns', () => {
|
|
163
|
+
it('should parse "weekly on Monday at 2:00 AM"', () => {
|
|
164
|
+
expect(CronToHumanReadable('0 2 * * 1')).toBe('Weekly on Monday at 2:00 AM');
|
|
165
|
+
});
|
|
166
|
+
it('should parse "weekly on Sunday at 12:00 AM"', () => {
|
|
167
|
+
expect(CronToHumanReadable('0 0 * * 0')).toBe('Weekly on Sunday at 12:00 AM');
|
|
168
|
+
});
|
|
169
|
+
it('should parse "weekly on Friday at 6:00 PM"', () => {
|
|
170
|
+
expect(CronToHumanReadable('0 18 * * 5')).toBe('Weekly on Friday at 6:00 PM');
|
|
171
|
+
});
|
|
172
|
+
it('should handle day-of-week 7 as Sunday', () => {
|
|
173
|
+
expect(CronToHumanReadable('0 9 * * 7')).toBe('Weekly on Sunday at 9:00 AM');
|
|
174
|
+
});
|
|
175
|
+
});
|
|
176
|
+
describe('monthly patterns', () => {
|
|
177
|
+
it('should parse "monthly on day 1 at 12:00 AM"', () => {
|
|
178
|
+
expect(CronToHumanReadable('0 0 1 * *')).toBe('Monthly on day 1 at 12:00 AM');
|
|
179
|
+
});
|
|
180
|
+
it('should parse "monthly on day 15 at 3:00 AM"', () => {
|
|
181
|
+
expect(CronToHumanReadable('0 3 15 * *')).toBe('Monthly on day 15 at 3:00 AM');
|
|
182
|
+
});
|
|
183
|
+
});
|
|
184
|
+
describe('6-part cron expressions (with seconds)', () => {
|
|
185
|
+
it('should handle 6-part cron by discarding seconds field', () => {
|
|
186
|
+
expect(CronToHumanReadable('0 0 2 * * *')).toBe('Daily at 2:00 AM');
|
|
187
|
+
});
|
|
188
|
+
it('should handle 6-part weekly cron', () => {
|
|
189
|
+
expect(CronToHumanReadable('0 0 9 * * 1')).toBe('Weekly on Monday at 9:00 AM');
|
|
190
|
+
});
|
|
191
|
+
});
|
|
192
|
+
describe('fallback behavior', () => {
|
|
193
|
+
it('should return raw cron for unrecognized patterns', () => {
|
|
194
|
+
const raw = '*/5 */2 1 6 3';
|
|
195
|
+
expect(CronToHumanReadable(raw)).toBe(raw);
|
|
196
|
+
});
|
|
197
|
+
it('should return "No schedule" for empty string', () => {
|
|
198
|
+
expect(CronToHumanReadable('')).toBe('No schedule');
|
|
199
|
+
});
|
|
200
|
+
it('should return raw cron for invalid part count', () => {
|
|
201
|
+
expect(CronToHumanReadable('* * *')).toBe('* * *');
|
|
202
|
+
});
|
|
203
|
+
});
|
|
204
|
+
});
|
|
205
|
+
//# sourceMappingURL=scheduling.test.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"scheduling.test.js","sourceRoot":"","sources":["../../src/__tests__/scheduling.test.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,EAAE,EAAE,MAAM,EAAE,EAAE,EAAa,MAAM,QAAQ,CAAC;AAE7D,oDAAoD;AACpD,EAAE,CAAC,IAAI,CAAC,eAAe,EAAE,GAAG,EAAE,CAAC,CAAC;IAC5B,UAAU,EAAE,GAAG,EAAE,CAAC,CAAC,MAAgB,EAAE,EAAE,CAAC,MAAM;IAC9C,SAAS,EAAE,GAAG,EAAE,CAAC,CAAC,MAAgB,EAAE,EAAE,CAAC,MAAM;IAC7C,SAAS,EAAE,GAAG,EAAE,CAAC,CAAC,MAAgB,EAAE,EAAE,CAAC,MAAM;IAC7C,QAAQ,EAAE,GAAG,EAAE,CA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G,EAAE;YACxD,MAAM,GAAG,GAAG,eAAe,CAAC;YAC5B,MAAM,CAAC,mBAAmB,CAAC,GAAG,CAAC,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;QAC/C,CAAC,CAAC,CAAC;QAEH,EAAE,CAAC,8CAA8C,EAAE,GAAG,EAAE;YACpD,MAAM,CAAC,mBAAmB,CAAC,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC;QACxD,CAAC,CAAC,CAAC;QAEH,EAAE,CAAC,+CAA+C,EAAE,GAAG,EAAE;YACrD,MAAM,CAAC,mBAAmB,CAAC,OAAO,CAAC,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACvD,CAAC,CAAC,CAAC;IACP,CAAC,CAAC,CAAC;AACP,CAAC,CAAC,CAAC","sourcesContent":["import { describe, it, expect, vi, beforeAll } from 'vitest';\n\n// Mock Angular core to avoid JIT compilation errors\nvi.mock('@angular/core', () => ({\n Injectable: () => (target: Function) => target,\n Component: () => (target: Function) => target,\n Directive: () => (target: Function) => target,\n NgModule: () => (target: Function) => target,\n Input: () => () => {},\n Output: () => () => {},\n EventEmitter: class { emit() {} },\n ChangeDetectorRef: class { detectChanges() {} markForCheck() {} },\n ChangeDetectionStrategy: { OnPush: 1 },\n ViewChild: () => () => {},\n ElementRef: class {},\n OnInit: class {},\n OnDestroy: class {},\n AfterViewInit: class {},\n Injector: class {},\n ViewEncapsulation: { None: 0 },\n inject: () => ({}),\n}));\n\n// Mock other Angular and MJ dependencies\nvi.mock('@angular/forms', () => ({}));\nvi.mock('rxjs', () => ({\n Subject: class { next() {} complete() {} pipe() { return this; } subscribe() { return this; } },\n BehaviorSubject: class { next() {} pipe() { return this; } subscribe() { return this; } getValue() {} },\n}));\nvi.mock('rxjs/operators', () => ({\n takeUntil: () => (source: unknown) => source,\n}));\nvi.mock('@memberjunction/core', () => ({\n BaseEntity: class {},\n CompositeKey: class {},\n Metadata: class {},\n RunView: class { RunView() { return { Success: false, Results: [] }; } RunViews() { return []; } },\n}));\nvi.mock('@memberjunction/core-entities', () => ({\n ResourceData: class {},\n KnowledgeHubMetadataEngine: { Instance: {} },\n MJContentSourceEntity: class {},\n MJContentSourceTypeEntity_IContentSourceTypeField: class {},\n MJScheduledActionEntity: class {},\n MJScheduledActionParamEntity: class {},\n MJContentItemDuplicateEntity: class {},\n UserInfoEngine: { Instance: { Config: vi.fn() } },\n}));\nvi.mock('@memberjunction/global', () => ({\n RegisterClass: () => (target: Function) => target,\n UUIDsEqual: vi.fn(),\n NormalizeUUID: vi.fn((x: string) => x),\n}));\nvi.mock('@memberjunction/ng-shared', () => ({\n BaseResourceComponent: class {},\n NavigationService: class {},\n}));\nvi.mock('@memberjunction/graphql-dataprovider', () => ({\n GraphQLDataProvider: class {},\n GraphQLAIClient: class {},\n}));\nvi.mock('@memberjunction/ng-notifications', () => ({\n MJNotificationService: { Instance: { CreateSimpleNotification: vi.fn() } },\n}));\nvi.mock('@memberjunction/ai-engine-base', () => ({\n AIEngineBase: { Instance: { Prompts: [] } },\n}));\nvi.mock('@memberjunction/ng-word-cloud', () => ({\n WordCloudItem: class {},\n}));\nvi.mock('@memberjunction/ng-trees', () => ({\n TreeBranchConfig: class {},\n TreeLeafConfig: class {},\n}));\n\nimport { CronToHumanReadable } from '../AI/components/autotagging/autotagging-pipeline-resource.component';\n\ndescribe('CronToHumanReadable', () => {\n describe('every N minutes patterns', () => {\n it('should parse \"every minute\" pattern', () => {\n expect(CronToHumanReadable('*/1 * * * *')).toBe('Every minute');\n });\n\n it('should parse \"every 15 minutes\" pattern', () => {\n expect(CronToHumanReadable('*/15 * * * *')).toBe('Every 15 minutes');\n });\n\n it('should parse \"every 5 minutes\" pattern', () => {\n expect(CronToHumanReadable('*/5 * * * *')).toBe('Every 5 minutes');\n });\n\n it('should parse \"every 30 minutes\" pattern', () => {\n expect(CronToHumanReadable('*/30 * * * *')).toBe('Every 30 minutes');\n });\n });\n\n describe('hourly patterns', () => {\n it('should parse \"every hour\" pattern (minute 0)', () => {\n expect(CronToHumanReadable('0 * * * *')).toBe('Every hour');\n });\n\n it('should parse \"every hour\" pattern (minute 30)', () => {\n expect(CronToHumanReadable('30 * * * *')).toBe('Every hour');\n });\n\n it('should parse \"every 2 hours\" pattern', () => {\n expect(CronToHumanReadable('0 */2 * * *')).toBe('Every 2 hours');\n });\n\n it('should parse \"every 6 hours\" pattern', () => {\n expect(CronToHumanReadable('0 */6 * * *')).toBe('Every 6 hours');\n });\n\n it('should parse \"every 1 hour\" as \"every hour\"', () => {\n expect(CronToHumanReadable('0 */1 * * *')).toBe('Every hour');\n });\n });\n\n describe('daily patterns', () => {\n it('should parse \"daily at 2:00 AM\"', () => {\n expect(CronToHumanReadable('0 2 * * *')).toBe('Daily at 2:00 AM');\n });\n\n it('should parse \"daily at 12:00 PM\"', () => {\n expect(CronToHumanReadable('0 12 * * *')).toBe('Daily at 12:00 PM');\n });\n\n it('should parse \"daily at 12:00 AM\" (midnight)', () => {\n expect(CronToHumanReadable('0 0 * * *')).toBe('Daily at 12:00 AM');\n });\n\n it('should parse \"daily at 11:30 PM\"', () => {\n expect(CronToHumanReadable('30 23 * * *')).toBe('Daily at 11:30 PM');\n });\n\n it('should parse \"daily at 5:15 AM\"', () => {\n expect(CronToHumanReadable('15 5 * * *')).toBe('Daily at 5:15 AM');\n });\n });\n\n describe('weekly patterns', () => {\n it('should parse \"weekly on Monday at 2:00 AM\"', () => {\n expect(CronToHumanReadable('0 2 * * 1')).toBe('Weekly on Monday at 2:00 AM');\n });\n\n it('should parse \"weekly on Sunday at 12:00 AM\"', () => {\n expect(CronToHumanReadable('0 0 * * 0')).toBe('Weekly on Sunday at 12:00 AM');\n });\n\n it('should parse \"weekly on Friday at 6:00 PM\"', () => {\n expect(CronToHumanReadable('0 18 * * 5')).toBe('Weekly on Friday at 6:00 PM');\n });\n\n it('should handle day-of-week 7 as Sunday', () => {\n expect(CronToHumanReadable('0 9 * * 7')).toBe('Weekly on Sunday at 9:00 AM');\n });\n });\n\n describe('monthly patterns', () => {\n it('should parse \"monthly on day 1 at 12:00 AM\"', () => {\n expect(CronToHumanReadable('0 0 1 * *')).toBe('Monthly on day 1 at 12:00 AM');\n });\n\n it('should parse \"monthly on day 15 at 3:00 AM\"', () => {\n expect(CronToHumanReadable('0 3 15 * *')).toBe('Monthly on day 15 at 3:00 AM');\n });\n });\n\n describe('6-part cron expressions (with seconds)', () => {\n it('should handle 6-part cron by discarding seconds field', () => {\n expect(CronToHumanReadable('0 0 2 * * *')).toBe('Daily at 2:00 AM');\n });\n\n it('should handle 6-part weekly cron', () => {\n expect(CronToHumanReadable('0 0 9 * * 1')).toBe('Weekly on Monday at 9:00 AM');\n });\n });\n\n describe('fallback behavior', () => {\n it('should return raw cron for unrecognized patterns', () => {\n const raw = '*/5 */2 1 6 3';\n expect(CronToHumanReadable(raw)).toBe(raw);\n });\n\n it('should return \"No schedule\" for empty string', () => {\n expect(CronToHumanReadable('')).toBe('No schedule');\n });\n\n it('should return raw cron for invalid part count', () => {\n expect(CronToHumanReadable('* * *')).toBe('* * *');\n });\n });\n});\n"]}
|
|
@@ -18,25 +18,20 @@ import * as i16 from "./Actions/components/explorer/new-category-panel.component
|
|
|
18
18
|
import * as i17 from "./Actions/components/explorer/new-action-panel.component";
|
|
19
19
|
import * as i18 from "@angular/common";
|
|
20
20
|
import * as i19 from "@angular/forms";
|
|
21
|
-
import * as i20 from "@
|
|
22
|
-
import * as i21 from "@
|
|
23
|
-
import * as i22 from "@
|
|
24
|
-
import * as i23 from "@
|
|
25
|
-
import * as i24 from "@
|
|
26
|
-
import * as i25 from "@
|
|
27
|
-
import * as i26 from "@memberjunction/ng-
|
|
28
|
-
import * as i27 from "@memberjunction/ng-code-editor";
|
|
29
|
-
import * as i28 from "@memberjunction/ng-action-gallery";
|
|
30
|
-
import * as i29 from "@memberjunction/ng-ai-test-harness";
|
|
31
|
-
import * as i30 from "@memberjunction/ng-actions";
|
|
32
|
-
import * as i31 from "@memberjunction/ng-shared-generic";
|
|
21
|
+
import * as i20 from "@memberjunction/ng-ui-components";
|
|
22
|
+
import * as i21 from "@memberjunction/ng-container-directives";
|
|
23
|
+
import * as i22 from "@memberjunction/ng-code-editor";
|
|
24
|
+
import * as i23 from "@memberjunction/ng-action-gallery";
|
|
25
|
+
import * as i24 from "@memberjunction/ng-ai-test-harness";
|
|
26
|
+
import * as i25 from "@memberjunction/ng-actions";
|
|
27
|
+
import * as i26 from "@memberjunction/ng-shared-generic";
|
|
33
28
|
/**
|
|
34
29
|
* ActionsDashboardsModule — Actions feature area: overview, execution monitoring,
|
|
35
30
|
* code management, entity integration, security permissions, and Action Explorer.
|
|
36
31
|
*/
|
|
37
32
|
export declare class ActionsDashboardsModule {
|
|
38
33
|
static ɵfac: i0.ɵɵFactoryDeclaration<ActionsDashboardsModule, never>;
|
|
39
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<ActionsDashboardsModule, [typeof i1.ActionsOverviewComponent, typeof i2.ExecutionMonitoringComponent, typeof i3.ScheduledActionsComponent, typeof i4.CodeManagementComponent, typeof i5.EntityIntegrationComponent, typeof i6.SecurityPermissionsComponent, typeof i7.ActionsListViewComponent, typeof i8.ExecutionsListViewComponent, typeof i9.CategoriesListViewComponent, typeof i10.ActionExplorerComponent, typeof i11.ActionTreePanelComponent, typeof i12.ActionToolbarComponent, typeof i13.ActionBreadcrumbComponent, typeof i14.ActionCardComponent, typeof i15.ActionListItemComponent, typeof i16.NewCategoryPanelComponent, typeof i17.NewActionPanelComponent], [typeof i18.CommonModule, typeof i19.FormsModule, typeof i19.ReactiveFormsModule, typeof i20.
|
|
34
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<ActionsDashboardsModule, [typeof i1.ActionsOverviewComponent, typeof i2.ExecutionMonitoringComponent, typeof i3.ScheduledActionsComponent, typeof i4.CodeManagementComponent, typeof i5.EntityIntegrationComponent, typeof i6.SecurityPermissionsComponent, typeof i7.ActionsListViewComponent, typeof i8.ExecutionsListViewComponent, typeof i9.CategoriesListViewComponent, typeof i10.ActionExplorerComponent, typeof i11.ActionTreePanelComponent, typeof i12.ActionToolbarComponent, typeof i13.ActionBreadcrumbComponent, typeof i14.ActionCardComponent, typeof i15.ActionListItemComponent, typeof i16.NewCategoryPanelComponent, typeof i17.NewActionPanelComponent], [typeof i18.CommonModule, typeof i19.FormsModule, typeof i19.ReactiveFormsModule, typeof i20.MJButtonDirective, typeof i20.MJDropdownComponent, typeof i21.ContainerDirectivesModule, typeof i22.CodeEditorModule, typeof i23.ActionGalleryModule, typeof i24.AITestHarnessModule, typeof i25.ActionsModule, typeof i26.SharedGenericModule], [typeof i1.ActionsOverviewComponent, typeof i2.ExecutionMonitoringComponent, typeof i3.ScheduledActionsComponent, typeof i4.CodeManagementComponent, typeof i5.EntityIntegrationComponent, typeof i6.SecurityPermissionsComponent, typeof i10.ActionExplorerComponent, typeof i11.ActionTreePanelComponent, typeof i12.ActionToolbarComponent, typeof i13.ActionBreadcrumbComponent, typeof i14.ActionCardComponent, typeof i15.ActionListItemComponent, typeof i16.NewCategoryPanelComponent, typeof i17.NewActionPanelComponent]>;
|
|
40
35
|
static ɵinj: i0.ɵɵInjectorDeclaration<ActionsDashboardsModule>;
|
|
41
36
|
}
|
|
42
37
|
//# sourceMappingURL=actions-dashboards.module.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"actions-dashboards.module.d.ts","sourceRoot":"","sources":["../src/actions-dashboards.module.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"actions-dashboards.module.d.ts","sourceRoot":"","sources":["../src/actions-dashboards.module.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;AAiCA;;;GAGG;AACH,qBAkDa,uBAAuB;yCAAvB,uBAAuB;0CAAvB,uBAAuB;0CAAvB,uBAAuB;CAAI"}
|
|
@@ -1,12 +1,7 @@
|
|
|
1
1
|
import { NgModule } from '@angular/core';
|
|
2
2
|
import { CommonModule } from '@angular/common';
|
|
3
3
|
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
|
|
4
|
-
import {
|
|
5
|
-
import { GridModule } from '@progress/kendo-angular-grid';
|
|
6
|
-
import { DropDownsModule } from '@progress/kendo-angular-dropdowns';
|
|
7
|
-
import { InputsModule } from '@progress/kendo-angular-inputs';
|
|
8
|
-
import { DialogsModule, WindowModule } from '@progress/kendo-angular-dialog';
|
|
9
|
-
import { TreeViewModule } from '@progress/kendo-angular-treeview';
|
|
4
|
+
import { MJButtonDirective, MJDropdownComponent } from '@memberjunction/ng-ui-components';
|
|
10
5
|
import { ContainerDirectivesModule } from '@memberjunction/ng-container-directives';
|
|
11
6
|
import { CodeEditorModule } from '@memberjunction/ng-code-editor';
|
|
12
7
|
import { ActionGalleryModule } from '@memberjunction/ng-action-gallery';
|
|
@@ -36,13 +31,7 @@ export class ActionsDashboardsModule {
|
|
|
36
31
|
static ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({ imports: [CommonModule,
|
|
37
32
|
FormsModule,
|
|
38
33
|
ReactiveFormsModule,
|
|
39
|
-
|
|
40
|
-
GridModule,
|
|
41
|
-
DropDownsModule,
|
|
42
|
-
InputsModule,
|
|
43
|
-
DialogsModule,
|
|
44
|
-
WindowModule,
|
|
45
|
-
TreeViewModule,
|
|
34
|
+
MJDropdownComponent,
|
|
46
35
|
ContainerDirectivesModule,
|
|
47
36
|
CodeEditorModule,
|
|
48
37
|
ActionGalleryModule,
|
|
@@ -76,13 +65,8 @@ export class ActionsDashboardsModule {
|
|
|
76
65
|
CommonModule,
|
|
77
66
|
FormsModule,
|
|
78
67
|
ReactiveFormsModule,
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
DropDownsModule,
|
|
82
|
-
InputsModule,
|
|
83
|
-
DialogsModule,
|
|
84
|
-
WindowModule,
|
|
85
|
-
TreeViewModule,
|
|
68
|
+
MJButtonDirective,
|
|
69
|
+
MJDropdownComponent,
|
|
86
70
|
ContainerDirectivesModule,
|
|
87
71
|
CodeEditorModule,
|
|
88
72
|
ActionGalleryModule,
|
|
@@ -127,13 +111,8 @@ export class ActionsDashboardsModule {
|
|
|
127
111
|
NewActionPanelComponent], imports: [CommonModule,
|
|
128
112
|
FormsModule,
|
|
129
113
|
ReactiveFormsModule,
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
DropDownsModule,
|
|
133
|
-
InputsModule,
|
|
134
|
-
DialogsModule,
|
|
135
|
-
WindowModule,
|
|
136
|
-
TreeViewModule,
|
|
114
|
+
MJButtonDirective,
|
|
115
|
+
MJDropdownComponent,
|
|
137
116
|
ContainerDirectivesModule,
|
|
138
117
|
CodeEditorModule,
|
|
139
118
|
ActionGalleryModule,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"actions-dashboards.module.js","sourceRoot":"","sources":["../src/actions-dashboards.module.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AACzC,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAC/C,OAAO,EAAE,WAAW,EAAE,mBAAmB,EAAE,MAAM,gBAAgB,CAAC;AAClE,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"actions-dashboards.module.js","sourceRoot":"","sources":["../src/actions-dashboards.module.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AACzC,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAC/C,OAAO,EAAE,WAAW,EAAE,mBAAmB,EAAE,MAAM,gBAAgB,CAAC;AAClE,OAAO,EAAE,iBAAiB,EAAE,mBAAmB,EAAE,MAAM,kCAAkC,CAAC;AAC1F,OAAO,EAAE,yBAAyB,EAAE,MAAM,yCAAyC,CAAC;AACpF,OAAO,EAAE,gBAAgB,EAAE,MAAM,gCAAgC,CAAC;AAClE,OAAO,EAAE,mBAAmB,EAAE,MAAM,mCAAmC,CAAC;AACxE,OAAO,EAAE,mBAAm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;oBAC3B,uBAAuB;oBACvB,wBAAwB;oBACxB,sBAAsB;oBACtB,yBAAyB;oBACzB,mBAAmB;oBACnB,uBAAuB;oBACvB,yBAAyB;oBACzB,uBAAuB;iBACxB;gBACD,OAAO,EAAE;oBACP,YAAY;oBACZ,WAAW;oBACX,mBAAmB;oBACnB,iBAAiB;oBACjB,mBAAmB;oBACnB,yBAAyB;oBACzB,gBAAgB;oBAChB,mBAAmB;oBACnB,mBAAmB;oBACnB,aAAa;oBACb,mBAAmB;iBACpB;gBACD,OAAO,EAAE;oBACP,wBAAwB;oBACxB,mCAAmC;oBACnC,yBAAyB;oBACzB,uBAAuB;oBACvB,0BAA0B;oBAC1B,4BAA4B;oBAC5B,uBAAuB;oBACvB,wBAAwB;oBACxB,sBAAsB;oBACtB,yBAAyB;oBACzB,mBAAmB;oBACnB,uBAAuB;oBACvB,yBAAyB;oBACzB,uBAAuB;iBACxB;aACF;;wFACY,uBAAuB,mBAhDhC,wBAAwB;QACxB,mCAAmC;QACnC,yBAAyB;QACzB,uBAAuB;QACvB,0BAA0B;QAC1B,4BAA4B;QAC5B,wBAAwB;QACxB,2BAA2B;QAC3B,2BAA2B;QAC3B,uBAAuB;QACvB,wBAAwB;QACxB,sBAAsB;QACtB,yBAAyB;QACzB,mBAAmB;QACnB,uBAAuB;QACvB,yBAAyB;QACzB,uBAAuB,aAGvB,YAAY;QACZ,WAAW;QACX,mBAAmB;QACnB,iBAAiB;QACjB,mBAAmB;QACnB,yBAAyB;QACzB,gBAAgB;QAChB,mBAAmB;QACnB,mBAAmB;QACnB,aAAa;QACb,mBAAmB,aAGnB,wBAAwB;QACxB,mCAAmC;QACnC,yBAAyB;QACzB,uBAAuB;QACvB,0BAA0B;QAC1B,4BAA4B;QAC5B,uBAAuB;QACvB,wBAAwB;QACxB,sBAAsB;QACtB,yBAAyB;QACzB,mBAAmB;QACnB,uBAAuB;QACvB,yBAAyB;QACzB,uBAAuB","sourcesContent":["import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { FormsModule, ReactiveFormsModule } from '@angular/forms';\nimport { MJButtonDirective, MJDropdownComponent } from '@memberjunction/ng-ui-components';\nimport { ContainerDirectivesModule } from '@memberjunction/ng-container-directives';\nimport { CodeEditorModule } from '@memberjunction/ng-code-editor';\nimport { ActionGalleryModule } from '@memberjunction/ng-action-gallery';\nimport { AITestHarnessModule } from '@memberjunction/ng-ai-test-harness';\nimport { ActionsModule } from '@memberjunction/ng-actions';\nimport { SharedGenericModule } from '@memberjunction/ng-shared-generic';\n\n// Actions Components\nimport { ActionsOverviewComponent } from './Actions/components/actions-overview.component';\nimport { ExecutionMonitoringComponent as ActionsExecutionMonitoringComponent } from './Actions/components/execution-monitoring.component';\nimport { ScheduledActionsComponent } from './Actions/components/scheduled-actions.component';\nimport { CodeManagementComponent } from './Actions/components/code-management.component';\nimport { EntityIntegrationComponent } from './Actions/components/entity-integration.component';\nimport { SecurityPermissionsComponent } from './Actions/components/security-permissions.component';\nimport { ActionsListViewComponent } from './Actions/components/actions-list-view.component';\nimport { ExecutionsListViewComponent } from './Actions/components/executions-list-view.component';\nimport { CategoriesListViewComponent } from './Actions/components/categories-list-view.component';\n// Action Explorer Components\nimport {\n ActionExplorerComponent,\n ActionTreePanelComponent,\n ActionToolbarComponent,\n ActionBreadcrumbComponent,\n ActionCardComponent,\n ActionListItemComponent,\n NewCategoryPanelComponent,\n NewActionPanelComponent\n} from './Actions/components/explorer';\n\n/**\n * ActionsDashboardsModule — Actions feature area: overview, execution monitoring,\n * code management, entity integration, security permissions, and Action Explorer.\n */\n@NgModule({\n declarations: [\n ActionsOverviewComponent,\n ActionsExecutionMonitoringComponent,\n ScheduledActionsComponent,\n CodeManagementComponent,\n EntityIntegrationComponent,\n SecurityPermissionsComponent,\n ActionsListViewComponent,\n ExecutionsListViewComponent,\n CategoriesListViewComponent,\n ActionExplorerComponent,\n ActionTreePanelComponent,\n ActionToolbarComponent,\n ActionBreadcrumbComponent,\n ActionCardComponent,\n ActionListItemComponent,\n NewCategoryPanelComponent,\n NewActionPanelComponent\n ],\n imports: [\n CommonModule,\n FormsModule,\n ReactiveFormsModule,\n MJButtonDirective,\n MJDropdownComponent,\n ContainerDirectivesModule,\n CodeEditorModule,\n ActionGalleryModule,\n AITestHarnessModule,\n ActionsModule,\n SharedGenericModule\n ],\n exports: [\n ActionsOverviewComponent,\n ActionsExecutionMonitoringComponent,\n ScheduledActionsComponent,\n CodeManagementComponent,\n EntityIntegrationComponent,\n SecurityPermissionsComponent,\n ActionExplorerComponent,\n ActionTreePanelComponent,\n ActionToolbarComponent,\n ActionBreadcrumbComponent,\n ActionCardComponent,\n ActionListItemComponent,\n NewCategoryPanelComponent,\n NewActionPanelComponent\n ]\n})\nexport class ActionsDashboardsModule { }\n"]}
|
|
@@ -19,32 +19,32 @@ import * as i17 from "./AI/components/vectors/vector-management-resource.compone
|
|
|
19
19
|
import * as i18 from "./KnowledgeHub/components/search/knowledge-search-resource.component";
|
|
20
20
|
import * as i19 from "./KnowledgeHub/components/config/knowledge-config-resource.component";
|
|
21
21
|
import * as i20 from "./KnowledgeHub/components/results-detail/search-result-detail.component";
|
|
22
|
-
import * as i21 from "
|
|
23
|
-
import * as i22 from "
|
|
24
|
-
import * as i23 from "
|
|
25
|
-
import * as i24 from "@
|
|
26
|
-
import * as i25 from "@
|
|
27
|
-
import * as i26 from "
|
|
28
|
-
import * as i27 from "@
|
|
29
|
-
import * as i28 from "@
|
|
30
|
-
import * as i29 from "@
|
|
31
|
-
import * as i30 from "@
|
|
32
|
-
import * as i31 from "@memberjunction/ng-
|
|
33
|
-
import * as i32 from "@memberjunction/ng-
|
|
34
|
-
import * as i33 from "
|
|
35
|
-
import * as i34 from "
|
|
36
|
-
import * as i35 from "@memberjunction/ng-
|
|
37
|
-
import * as i36 from "@memberjunction/ng-
|
|
38
|
-
import * as i37 from "
|
|
39
|
-
import * as i38 from "
|
|
40
|
-
import * as i39 from "@memberjunction/ng-search";
|
|
22
|
+
import * as i21 from "./KnowledgeHub/components/clusters/cluster-visualization-resource.component";
|
|
23
|
+
import * as i22 from "./KnowledgeHub/components/scheduling/scheduling-resource.component";
|
|
24
|
+
import * as i23 from "./KnowledgeHub/components/analytics/analytics-resource.component";
|
|
25
|
+
import * as i24 from "@angular/common";
|
|
26
|
+
import * as i25 from "@angular/forms";
|
|
27
|
+
import * as i26 from "angular-split";
|
|
28
|
+
import * as i27 from "@memberjunction/ng-container-directives";
|
|
29
|
+
import * as i28 from "@memberjunction/ng-code-editor";
|
|
30
|
+
import * as i29 from "@memberjunction/ng-shared-generic";
|
|
31
|
+
import * as i30 from "@memberjunction/ng-agents";
|
|
32
|
+
import * as i31 from "@memberjunction/ng-agent-requests";
|
|
33
|
+
import * as i32 from "@memberjunction/ng-trees";
|
|
34
|
+
import * as i33 from "./shared/shared-dashboard-widgets.module";
|
|
35
|
+
import * as i34 from "./shared/shared-pipes.module";
|
|
36
|
+
import * as i35 from "@memberjunction/ng-search";
|
|
37
|
+
import * as i36 from "@memberjunction/ng-clustering";
|
|
38
|
+
import * as i37 from "@memberjunction/ng-scheduling";
|
|
39
|
+
import * as i38 from "@memberjunction/ng-word-cloud";
|
|
41
40
|
/**
|
|
42
41
|
* AIDashboardsModule — AI feature area: models, prompts, agents,
|
|
43
42
|
* execution monitoring, system configuration, and instrumentation widgets.
|
|
44
43
|
*/
|
|
45
44
|
export declare class AIDashboardsModule {
|
|
45
|
+
constructor();
|
|
46
46
|
static ɵfac: i0.ɵɵFactoryDeclaration<AIDashboardsModule, never>;
|
|
47
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<AIDashboardsModule, [typeof i1.ModelManagementComponent, typeof i2.PromptManagementComponent, typeof i3.PromptFilterPanelComponent, typeof i4.AgentConfigurationComponent, typeof i5.AgentFilterPanelComponent, typeof i6.AgentEditorComponent, typeof i7.ExecutionMonitoringComponent, typeof i8.SystemConfigurationComponent, typeof i9.SystemConfigFilterPanelComponent, typeof i10.ModelPromptPriorityMatrixComponent, typeof i11.PromptVersionControlComponent, typeof i12.LiveExecutionWidgetComponent, typeof i13.PerformanceHeatmapComponent, typeof i14.AgentRequestsResourceComponent, typeof i15.AutotaggingPipelineResourceComponent, typeof i16.DuplicateDetectionResourceComponent, typeof i17.VectorManagementResourceComponent, typeof i18.KnowledgeSearchResourceComponent, typeof i19.KnowledgeConfigResourceComponent, typeof i20.SearchResultDetailComponent
|
|
47
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<AIDashboardsModule, [typeof i1.ModelManagementComponent, typeof i2.PromptManagementComponent, typeof i3.PromptFilterPanelComponent, typeof i4.AgentConfigurationComponent, typeof i5.AgentFilterPanelComponent, typeof i6.AgentEditorComponent, typeof i7.ExecutionMonitoringComponent, typeof i8.SystemConfigurationComponent, typeof i9.SystemConfigFilterPanelComponent, typeof i10.ModelPromptPriorityMatrixComponent, typeof i11.PromptVersionControlComponent, typeof i12.LiveExecutionWidgetComponent, typeof i13.PerformanceHeatmapComponent, typeof i14.AgentRequestsResourceComponent, typeof i15.AutotaggingPipelineResourceComponent, typeof i16.DuplicateDetectionResourceComponent, typeof i17.VectorManagementResourceComponent, typeof i18.KnowledgeSearchResourceComponent, typeof i19.KnowledgeConfigResourceComponent, typeof i20.SearchResultDetailComponent, typeof i21.ClusterVisualizationResourceComponent, typeof i22.SchedulingResourceComponent, typeof i23.AnalyticsResourceComponent], [typeof i24.CommonModule, typeof i25.FormsModule, typeof i25.ReactiveFormsModule, typeof i26.AngularSplitModule, typeof i27.ContainerDirectivesModule, typeof i28.CodeEditorModule, typeof i29.SharedGenericModule, typeof i30.AgentsModule, typeof i31.AgentRequestsModule, typeof i32.NgTreesModule, typeof i33.SharedDashboardWidgetsModule, typeof i34.SharedPipesModule, typeof i35.SearchModule, typeof i36.ClusteringModule, typeof i37.SchedulingModule, typeof i38.MJWordCloudComponent], [typeof i1.ModelManagementComponent, typeof i2.PromptManagementComponent, typeof i4.AgentConfigurationComponent, typeof i7.ExecutionMonitoringComponent, typeof i8.SystemConfigurationComponent, typeof i12.LiveExecutionWidgetComponent, typeof i13.PerformanceHeatmapComponent, typeof i14.AgentRequestsResourceComponent, typeof i15.AutotaggingPipelineResourceComponent, typeof i16.DuplicateDetectionResourceComponent, typeof i17.VectorManagementResourceComponent, typeof i18.KnowledgeSearchResourceComponent, typeof i19.KnowledgeConfigResourceComponent, typeof i20.SearchResultDetailComponent, typeof i21.ClusterVisualizationResourceComponent, typeof i22.SchedulingResourceComponent, typeof i23.AnalyticsResourceComponent, typeof i33.SharedDashboardWidgetsModule]>;
|
|
48
48
|
static ɵinj: i0.ɵɵInjectorDeclaration<AIDashboardsModule>;
|
|
49
49
|
}
|
|
50
50
|
//# sourceMappingURL=ai-dashboards.module.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ai-dashboards.module.d.ts","sourceRoot":"","sources":["../src/ai-dashboards.module.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ai-dashboards.module.d.ts","sourceRoot":"","sources":["../src/ai-dashboards.module.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA6DA;;;GAGG;AACH,qBAoEa,kBAAkB;;yCAAlB,kBAAkB;0CAAlB,kBAAkB;0CAAlB,kBAAkB;CAO9B"}
|
|
@@ -1,14 +1,7 @@
|
|
|
1
1
|
import { NgModule } from '@angular/core';
|
|
2
2
|
import { CommonModule } from '@angular/common';
|
|
3
3
|
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
|
|
4
|
-
import {
|
|
5
|
-
import { GridModule } from '@progress/kendo-angular-grid';
|
|
6
|
-
import { DropDownsModule } from '@progress/kendo-angular-dropdowns';
|
|
7
|
-
import { InputsModule } from '@progress/kendo-angular-inputs';
|
|
8
|
-
import { IndicatorsModule } from '@progress/kendo-angular-indicators';
|
|
9
|
-
import { DialogsModule, WindowModule } from '@progress/kendo-angular-dialog';
|
|
10
|
-
import { TabStripModule, SplitterModule } from '@progress/kendo-angular-layout';
|
|
11
|
-
import { TreeViewModule } from '@progress/kendo-angular-treeview';
|
|
4
|
+
import { AngularSplitModule } from 'angular-split';
|
|
12
5
|
import { ContainerDirectivesModule } from '@memberjunction/ng-container-directives';
|
|
13
6
|
import { CodeEditorModule } from '@memberjunction/ng-code-editor';
|
|
14
7
|
import { SharedGenericModule } from '@memberjunction/ng-shared-generic';
|
|
@@ -42,12 +35,24 @@ import { AIInstrumentationService } from './AI/services/ai-instrumentation.servi
|
|
|
42
35
|
import { KnowledgeSearchResourceComponent } from './KnowledgeHub/components/search/knowledge-search-resource.component';
|
|
43
36
|
import { KnowledgeConfigResourceComponent } from './KnowledgeHub/components/config/knowledge-config-resource.component';
|
|
44
37
|
import { SearchResultDetailComponent } from './KnowledgeHub/components/results-detail/search-result-detail.component';
|
|
38
|
+
import { ClusterVisualizationResourceComponent, LoadClusterVisualizationResource } from './KnowledgeHub/components/clusters/cluster-visualization-resource.component';
|
|
39
|
+
import { SchedulingResourceComponent, LoadSchedulingResource } from './KnowledgeHub/components/scheduling/scheduling-resource.component';
|
|
40
|
+
import { AnalyticsResourceComponent, LoadAnalyticsResource } from './KnowledgeHub/components/analytics/analytics-resource.component';
|
|
41
|
+
import { ClusteringModule } from '@memberjunction/ng-clustering';
|
|
42
|
+
import { SchedulingModule } from '@memberjunction/ng-scheduling';
|
|
43
|
+
import { MJWordCloudComponent } from '@memberjunction/ng-word-cloud';
|
|
45
44
|
import * as i0 from "@angular/core";
|
|
46
45
|
/**
|
|
47
46
|
* AIDashboardsModule — AI feature area: models, prompts, agents,
|
|
48
47
|
* execution monitoring, system configuration, and instrumentation widgets.
|
|
49
48
|
*/
|
|
50
49
|
export class AIDashboardsModule {
|
|
50
|
+
constructor() {
|
|
51
|
+
// Ensure tree-shaking prevention loaders are called
|
|
52
|
+
LoadClusterVisualizationResource();
|
|
53
|
+
LoadSchedulingResource();
|
|
54
|
+
LoadAnalyticsResource();
|
|
55
|
+
}
|
|
51
56
|
static ɵfac = function AIDashboardsModule_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || AIDashboardsModule)(); };
|
|
52
57
|
static ɵmod = /*@__PURE__*/ i0.ɵɵdefineNgModule({ type: AIDashboardsModule });
|
|
53
58
|
static ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({ providers: [
|
|
@@ -55,16 +60,7 @@ export class AIDashboardsModule {
|
|
|
55
60
|
], imports: [CommonModule,
|
|
56
61
|
FormsModule,
|
|
57
62
|
ReactiveFormsModule,
|
|
58
|
-
|
|
59
|
-
GridModule,
|
|
60
|
-
DropDownsModule,
|
|
61
|
-
InputsModule,
|
|
62
|
-
IndicatorsModule,
|
|
63
|
-
DialogsModule,
|
|
64
|
-
WindowModule,
|
|
65
|
-
TabStripModule,
|
|
66
|
-
SplitterModule,
|
|
67
|
-
TreeViewModule,
|
|
63
|
+
AngularSplitModule,
|
|
68
64
|
ContainerDirectivesModule,
|
|
69
65
|
CodeEditorModule,
|
|
70
66
|
SharedGenericModule,
|
|
@@ -73,7 +69,10 @@ export class AIDashboardsModule {
|
|
|
73
69
|
NgTreesModule,
|
|
74
70
|
SharedDashboardWidgetsModule,
|
|
75
71
|
SharedPipesModule,
|
|
76
|
-
SearchModule,
|
|
72
|
+
SearchModule,
|
|
73
|
+
ClusteringModule,
|
|
74
|
+
SchedulingModule,
|
|
75
|
+
MJWordCloudComponent, SharedDashboardWidgetsModule] });
|
|
77
76
|
}
|
|
78
77
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(AIDashboardsModule, [{
|
|
79
78
|
type: NgModule,
|
|
@@ -98,22 +97,16 @@ export class AIDashboardsModule {
|
|
|
98
97
|
VectorManagementResourceComponent,
|
|
99
98
|
KnowledgeSearchResourceComponent,
|
|
100
99
|
KnowledgeConfigResourceComponent,
|
|
101
|
-
SearchResultDetailComponent
|
|
100
|
+
SearchResultDetailComponent,
|
|
101
|
+
ClusterVisualizationResourceComponent,
|
|
102
|
+
SchedulingResourceComponent,
|
|
103
|
+
AnalyticsResourceComponent
|
|
102
104
|
],
|
|
103
105
|
imports: [
|
|
104
106
|
CommonModule,
|
|
105
107
|
FormsModule,
|
|
106
108
|
ReactiveFormsModule,
|
|
107
|
-
|
|
108
|
-
GridModule,
|
|
109
|
-
DropDownsModule,
|
|
110
|
-
InputsModule,
|
|
111
|
-
IndicatorsModule,
|
|
112
|
-
DialogsModule,
|
|
113
|
-
WindowModule,
|
|
114
|
-
TabStripModule,
|
|
115
|
-
SplitterModule,
|
|
116
|
-
TreeViewModule,
|
|
109
|
+
AngularSplitModule,
|
|
117
110
|
ContainerDirectivesModule,
|
|
118
111
|
CodeEditorModule,
|
|
119
112
|
SharedGenericModule,
|
|
@@ -122,7 +115,10 @@ export class AIDashboardsModule {
|
|
|
122
115
|
NgTreesModule,
|
|
123
116
|
SharedDashboardWidgetsModule,
|
|
124
117
|
SharedPipesModule,
|
|
125
|
-
SearchModule
|
|
118
|
+
SearchModule,
|
|
119
|
+
ClusteringModule,
|
|
120
|
+
SchedulingModule,
|
|
121
|
+
MJWordCloudComponent
|
|
126
122
|
],
|
|
127
123
|
providers: [
|
|
128
124
|
AIInstrumentationService
|
|
@@ -142,10 +138,13 @@ export class AIDashboardsModule {
|
|
|
142
138
|
KnowledgeSearchResourceComponent,
|
|
143
139
|
KnowledgeConfigResourceComponent,
|
|
144
140
|
SearchResultDetailComponent,
|
|
141
|
+
ClusterVisualizationResourceComponent,
|
|
142
|
+
SchedulingResourceComponent,
|
|
143
|
+
AnalyticsResourceComponent,
|
|
145
144
|
SharedDashboardWidgetsModule
|
|
146
145
|
]
|
|
147
146
|
}]
|
|
148
|
-
}],
|
|
147
|
+
}], () => [], null); })();
|
|
149
148
|
(function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(AIDashboardsModule, { declarations: [ModelManagementComponent,
|
|
150
149
|
PromptManagementComponent,
|
|
151
150
|
PromptFilterPanelComponent,
|
|
@@ -165,19 +164,13 @@ export class AIDashboardsModule {
|
|
|
165
164
|
VectorManagementResourceComponent,
|
|
166
165
|
KnowledgeSearchResourceComponent,
|
|
167
166
|
KnowledgeConfigResourceComponent,
|
|
168
|
-
SearchResultDetailComponent
|
|
167
|
+
SearchResultDetailComponent,
|
|
168
|
+
ClusterVisualizationResourceComponent,
|
|
169
|
+
SchedulingResourceComponent,
|
|
170
|
+
AnalyticsResourceComponent], imports: [CommonModule,
|
|
169
171
|
FormsModule,
|
|
170
172
|
ReactiveFormsModule,
|
|
171
|
-
|
|
172
|
-
GridModule,
|
|
173
|
-
DropDownsModule,
|
|
174
|
-
InputsModule,
|
|
175
|
-
IndicatorsModule,
|
|
176
|
-
DialogsModule,
|
|
177
|
-
WindowModule,
|
|
178
|
-
TabStripModule,
|
|
179
|
-
SplitterModule,
|
|
180
|
-
TreeViewModule,
|
|
173
|
+
AngularSplitModule,
|
|
181
174
|
ContainerDirectivesModule,
|
|
182
175
|
CodeEditorModule,
|
|
183
176
|
SharedGenericModule,
|
|
@@ -186,7 +179,10 @@ export class AIDashboardsModule {
|
|
|
186
179
|
NgTreesModule,
|
|
187
180
|
SharedDashboardWidgetsModule,
|
|
188
181
|
SharedPipesModule,
|
|
189
|
-
SearchModule
|
|
182
|
+
SearchModule,
|
|
183
|
+
ClusteringModule,
|
|
184
|
+
SchedulingModule,
|
|
185
|
+
MJWordCloudComponent], exports: [ModelManagementComponent,
|
|
190
186
|
PromptManagementComponent,
|
|
191
187
|
AgentConfigurationComponent,
|
|
192
188
|
ExecutionMonitoringComponent,
|
|
@@ -200,5 +196,8 @@ export class AIDashboardsModule {
|
|
|
200
196
|
KnowledgeSearchResourceComponent,
|
|
201
197
|
KnowledgeConfigResourceComponent,
|
|
202
198
|
SearchResultDetailComponent,
|
|
199
|
+
ClusterVisualizationResourceComponent,
|
|
200
|
+
SchedulingResourceComponent,
|
|
201
|
+
AnalyticsResourceComponent,
|
|
203
202
|
SharedDashboardWidgetsModule] }); })();
|
|
204
203
|
//# sourceMappingURL=ai-dashboards.module.js.map
|