@memberjunction/ng-dashboards 2.85.0 → 2.86.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/ComponentStudio/component-studio-dashboard.component.d.ts +81 -0
- package/dist/ComponentStudio/component-studio-dashboard.component.d.ts.map +1 -0
- package/dist/ComponentStudio/component-studio-dashboard.component.js +751 -0
- package/dist/ComponentStudio/component-studio-dashboard.component.js.map +1 -0
- package/dist/ComponentStudio/components/component-dependencies.component.d.ts +19 -0
- package/dist/ComponentStudio/components/component-dependencies.component.d.ts.map +1 -0
- package/dist/ComponentStudio/components/component-dependencies.component.js +138 -0
- package/dist/ComponentStudio/components/component-dependencies.component.js.map +1 -0
- package/dist/ComponentStudio/components/component-preview.component.d.ts +18 -0
- package/dist/ComponentStudio/components/component-preview.component.d.ts.map +1 -0
- package/dist/ComponentStudio/components/component-preview.component.js +86 -0
- package/dist/ComponentStudio/components/component-preview.component.js.map +1 -0
- package/dist/ComponentStudio/components/component-studio-settings.component.d.ts +29 -0
- package/dist/ComponentStudio/components/component-studio-settings.component.d.ts.map +1 -0
- package/dist/ComponentStudio/components/component-studio-settings.component.js +212 -0
- package/dist/ComponentStudio/components/component-studio-settings.component.js.map +1 -0
- package/dist/ComponentStudio/index.d.ts +5 -0
- package/dist/ComponentStudio/index.d.ts.map +1 -0
- package/dist/ComponentStudio/index.js +5 -0
- package/dist/ComponentStudio/index.js.map +1 -0
- package/dist/module.d.ts +22 -16
- package/dist/module.d.ts.map +1 -1
- package/dist/module.js +32 -7
- package/dist/module.js.map +1 -1
- package/dist/public-api.d.ts +1 -0
- package/dist/public-api.d.ts.map +1 -1
- package/dist/public-api.js +3 -0
- package/dist/public-api.js.map +1 -1
- package/package.json +10 -10
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
import { AfterViewInit, OnDestroy, ChangeDetectorRef } from '@angular/core';
|
|
2
|
+
import { BaseDashboard } from '../generic/base-dashboard';
|
|
3
|
+
import { CompositeKey } from '@memberjunction/core';
|
|
4
|
+
import { ComponentEntity, ComponentRegistryEntity, ComponentLibraryEntity, ComponentDependencyEntity } from '@memberjunction/core-entities';
|
|
5
|
+
import { BehaviorSubject } from 'rxjs';
|
|
6
|
+
import { ComponentSpec } from '@memberjunction/interactive-component-types';
|
|
7
|
+
import * as i0 from "@angular/core";
|
|
8
|
+
interface ComponentWithMetadata extends ComponentEntity {
|
|
9
|
+
dependencies?: ComponentDependencyEntity[];
|
|
10
|
+
libraries?: ComponentLibraryEntity[];
|
|
11
|
+
registry?: ComponentRegistryEntity;
|
|
12
|
+
}
|
|
13
|
+
export declare class ComponentStudioDashboardComponent extends BaseDashboard implements AfterViewInit, OnDestroy {
|
|
14
|
+
private cdr;
|
|
15
|
+
isLoading: boolean;
|
|
16
|
+
activeTab: string;
|
|
17
|
+
viewMode: 'grid' | 'list';
|
|
18
|
+
selectedComponentId: string | null;
|
|
19
|
+
showFilterPanel: boolean;
|
|
20
|
+
showPreviewPanel: boolean;
|
|
21
|
+
components$: BehaviorSubject<ComponentWithMetadata[]>;
|
|
22
|
+
filteredComponents$: BehaviorSubject<ComponentWithMetadata[]>;
|
|
23
|
+
registries$: BehaviorSubject<ComponentRegistryEntity[]>;
|
|
24
|
+
libraries$: BehaviorSubject<ComponentLibraryEntity[]>;
|
|
25
|
+
searchQuery$: BehaviorSubject<string>;
|
|
26
|
+
selectedTypes$: BehaviorSubject<Set<string>>;
|
|
27
|
+
selectedStatuses$: BehaviorSubject<Set<string>>;
|
|
28
|
+
selectedSources$: BehaviorSubject<Set<string>>;
|
|
29
|
+
selectedNamespaces$: BehaviorSubject<Set<string>>;
|
|
30
|
+
componentTypes: string[];
|
|
31
|
+
componentStatuses: string[];
|
|
32
|
+
selectedComponent: ComponentWithMetadata | null;
|
|
33
|
+
componentSpec: ComponentSpec | null;
|
|
34
|
+
previewError: string | null;
|
|
35
|
+
navigationItems: string[];
|
|
36
|
+
navigationConfig: {
|
|
37
|
+
text: string;
|
|
38
|
+
icon: string;
|
|
39
|
+
selected: boolean;
|
|
40
|
+
}[];
|
|
41
|
+
private destroy$;
|
|
42
|
+
private stateChangeSubject;
|
|
43
|
+
constructor(cdr: ChangeDetectorRef);
|
|
44
|
+
ngAfterViewInit(): void;
|
|
45
|
+
protected initDashboard(): void;
|
|
46
|
+
ngOnDestroy(): void;
|
|
47
|
+
protected loadData(): Promise<void>;
|
|
48
|
+
private setupFilterSubscriptions;
|
|
49
|
+
private applyFilters;
|
|
50
|
+
private applyFiltersWithCriteria;
|
|
51
|
+
onTabChange(tabId: string): void;
|
|
52
|
+
onNavigationChange(event: any): void;
|
|
53
|
+
private updateNavigationSelection;
|
|
54
|
+
toggleViewMode(): void;
|
|
55
|
+
toggleFilterPanel(): void;
|
|
56
|
+
selectComponent(component: ComponentWithMetadata | null): Promise<void>;
|
|
57
|
+
private loadComponentDetails;
|
|
58
|
+
onSearchChange(query: string): void;
|
|
59
|
+
onTypeFilterChange(type: string, checked: boolean): void;
|
|
60
|
+
onStatusFilterChange(status: string, checked: boolean): void;
|
|
61
|
+
onSourceFilterChange(source: string, checked: boolean): void;
|
|
62
|
+
clearFilters(): void;
|
|
63
|
+
onOpenEntityRecord(event: {
|
|
64
|
+
entityName: string;
|
|
65
|
+
key: CompositeKey;
|
|
66
|
+
}): void;
|
|
67
|
+
refreshData(): Promise<void>;
|
|
68
|
+
private setupStateManagement;
|
|
69
|
+
private emitStateChange;
|
|
70
|
+
getComponentTypeColor(type: string): string;
|
|
71
|
+
getStatusBadgeClass(status: string): string;
|
|
72
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ComponentStudioDashboardComponent, never>;
|
|
73
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ComponentStudioDashboardComponent, "mj-component-studio-dashboard", never, {}, {}, never, never, false, never>;
|
|
74
|
+
}
|
|
75
|
+
/**
|
|
76
|
+
* Function to prevent tree shaking of the ComponentStudioDashboardComponent.
|
|
77
|
+
* This is called in public-api.ts to ensure the component is included in the build.
|
|
78
|
+
*/
|
|
79
|
+
export declare function LoadComponentStudioDashboard(): void;
|
|
80
|
+
export {};
|
|
81
|
+
//# sourceMappingURL=component-studio-dashboard.component.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"component-studio-dashboard.component.d.ts","sourceRoot":"","sources":["../../src/ComponentStudio/component-studio-dashboard.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAAa,aAAa,EAAE,SAAS,EAAE,iBAAiB,EAA2B,MAAM,eAAe,CAAC;AAChH,OAAO,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAE1D,OAAO,EAAE,YAAY,EAAqB,MAAM,sBAAsB,CAAC;AACvE,OAAO,EACL,eAAe,EACf,uBAAuB,EACvB,sBAAsB,EACtB,yBAAyB,EAE1B,MAAM,+BAA+B,CAAC;AACvC,OAAO,EAAW,eAAe,EAAiB,MAAM,MAAM,CAAC;AAG/D,OAAO,EAAE,aAAa,EAAE,MAAM,6CAA6C,CAAC;;AAyB5E,UAAU,qBAAsB,SAAQ,eAAe;IACrD,YAAY,CAAC,EAAE,yBAAyB,EAAE,CAAC;IAC3C,SAAS,CAAC,EAAE,sBAAsB,EAAE,CAAC;IACrC,QAAQ,CAAC,EAAE,uBAAuB,CAAC;CACpC;AAED,qBAOa,iCAAkC,SAAQ,aAAc,YAAW,aAAa,EAAE,SAAS;IA6C1F,OAAO,CAAC,GAAG;IA1ChB,SAAS,UAAS;IAClB,SAAS,SAAY;IACrB,QAAQ,EAAE,MAAM,GAAG,MAAM,CAAU;IACnC,mBAAmB,EAAE,MAAM,GAAG,IAAI,CAAQ;IAC1C,eAAe,UAAQ;IACvB,gBAAgB,UAAS;IAGzB,WAAW,2CAAoD;IAC/D,mBAAmB,2CAAoD;IACvE,WAAW,6CAAsD;IACjE,UAAU,4CAAqD;IAG/D,YAAY,0BAAmC;IAC/C,cAAc,+BAA+C;IAC7D,iBAAiB,+BAA4D;IAC7E,gBAAgB,+BAA+C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