@memberjunction/ng-dashboards 2.86.0 → 2.88.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 (25) hide show
  1. package/dist/ComponentStudio/component-studio-dashboard.component.d.ts +41 -54
  2. package/dist/ComponentStudio/component-studio-dashboard.component.d.ts.map +1 -1
  3. package/dist/ComponentStudio/component-studio-dashboard.component.js +415 -595
  4. package/dist/ComponentStudio/component-studio-dashboard.component.js.map +1 -1
  5. package/dist/ComponentStudio/index.d.ts +0 -3
  6. package/dist/ComponentStudio/index.d.ts.map +1 -1
  7. package/dist/ComponentStudio/index.js +0 -3
  8. package/dist/ComponentStudio/index.js.map +1 -1
  9. package/dist/module.d.ts +18 -21
  10. package/dist/module.d.ts.map +1 -1
  11. package/dist/module.js +9 -14
  12. package/dist/module.js.map +1 -1
  13. package/package.json +10 -10
  14. package/dist/ComponentStudio/components/component-dependencies.component.d.ts +0 -19
  15. package/dist/ComponentStudio/components/component-dependencies.component.d.ts.map +0 -1
  16. package/dist/ComponentStudio/components/component-dependencies.component.js +0 -138
  17. package/dist/ComponentStudio/components/component-dependencies.component.js.map +0 -1
  18. package/dist/ComponentStudio/components/component-preview.component.d.ts +0 -18
  19. package/dist/ComponentStudio/components/component-preview.component.d.ts.map +0 -1
  20. package/dist/ComponentStudio/components/component-preview.component.js +0 -86
  21. package/dist/ComponentStudio/components/component-preview.component.js.map +0 -1
  22. package/dist/ComponentStudio/components/component-studio-settings.component.d.ts +0 -29
  23. package/dist/ComponentStudio/components/component-studio-settings.component.d.ts.map +0 -1
  24. package/dist/ComponentStudio/components/component-studio-settings.component.js +0 -212
  25. package/dist/ComponentStudio/components/component-studio-settings.component.js.map +0 -1
@@ -1,81 +1,68 @@
1
1
  import { AfterViewInit, OnDestroy, ChangeDetectorRef } from '@angular/core';
2
2
  import { BaseDashboard } from '../generic/base-dashboard';
3
3
  import { CompositeKey } from '@memberjunction/core';
4
- import { ComponentEntity, ComponentRegistryEntity, ComponentLibraryEntity, ComponentDependencyEntity } from '@memberjunction/core-entities';
5
- import { BehaviorSubject } from 'rxjs';
4
+ import { ComponentEntity } from '@memberjunction/core-entities';
6
5
  import { ComponentSpec } from '@memberjunction/interactive-component-types';
6
+ import { ReactComponentEvent } from '@memberjunction/ng-react';
7
7
  import * as i0 from "@angular/core";
8
- interface ComponentWithMetadata extends ComponentEntity {
9
- dependencies?: ComponentDependencyEntity[];
10
- libraries?: ComponentLibraryEntity[];
11
- registry?: ComponentRegistryEntity;
12
- }
13
8
  export declare class ComponentStudioDashboardComponent extends BaseDashboard implements AfterViewInit, OnDestroy {
14
9
  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;
10
+ components: ComponentEntity[];
11
+ filteredComponents: ComponentEntity[];
12
+ selectedComponent: ComponentEntity | null;
13
+ expandedComponent: ComponentEntity | null;
33
14
  componentSpec: ComponentSpec | null;
34
- previewError: string | null;
35
- navigationItems: string[];
36
- navigationConfig: {
37
- text: string;
38
- icon: string;
39
- selected: boolean;
40
- }[];
15
+ isLoading: boolean;
16
+ searchQuery: string;
17
+ isRunning: boolean;
18
+ currentError: {
19
+ type: string;
20
+ message: string;
21
+ technicalDetails?: any;
22
+ } | null;
41
23
  private destroy$;
42
- private stateChangeSubject;
43
24
  constructor(cdr: ChangeDetectorRef);
44
25
  ngAfterViewInit(): void;
45
- protected initDashboard(): void;
46
26
  ngOnDestroy(): void;
27
+ protected initDashboard(): void;
47
28
  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
29
  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;
30
+ private filterComponents;
31
+ toggleComponentExpansion(component: ComponentEntity): void;
32
+ runComponent(component: ComponentEntity): void;
33
+ private startComponent;
34
+ stopComponent(): void;
35
+ /**
36
+ * Handle component events from React components
37
+ */
38
+ onComponentEvent(event: ReactComponentEvent): void;
39
+ /**
40
+ * Handle open entity record event from React components
41
+ */
63
42
  onOpenEntityRecord(event: {
64
43
  entityName: string;
65
44
  key: CompositeKey;
66
45
  }): void;
46
+ /**
47
+ * Retry running the current component
48
+ */
49
+ retryComponent(): void;
50
+ /**
51
+ * Copy error details to clipboard
52
+ */
53
+ copyErrorToClipboard(): Promise<void>;
54
+ /**
55
+ * Format technical details for display
56
+ */
57
+ formatTechnicalDetails(details: any): string;
67
58
  refreshData(): Promise<void>;
68
- private setupStateManagement;
69
- private emitStateChange;
70
- getComponentTypeColor(type: string): string;
71
- getStatusBadgeClass(status: string): string;
59
+ getComponentTypeIcon(type: string | null): string;
60
+ getComponentTypeColor(type: string | null): string;
72
61
  static ɵfac: i0.ɵɵFactoryDeclaration<ComponentStudioDashboardComponent, never>;
73
62
  static ɵcmp: i0.ɵɵComponentDeclaration<ComponentStudioDashboardComponent, "mj-component-studio-dashboard", never, {}, {}, never, never, false, never>;
74
63
  }
75
64
  /**
76
65
  * 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
66
  */
79
67
  export declare function LoadComponentStudioDashboard(): void;
80
- export {};
81
68
  //# sourceMappingURL=component-studio-dashboard.component.d.ts.map
@@ -1 +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,0BAAm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pB,kBAAkB,CAAC,KAAK,EAAE;QAAE,UAAU,EAAE,MAAM,CAAC;QAAC,GAAG,EAAE,YAAY,CAAA;KAAE,GAAG,IAAI;IAOpE,WAAW,IAAI,OAAO,CAAC,IAAI,CAAC;IAIzC,OAAO,CAAC,oBAAoB;IAS5B,OAAO,CAAC,eAAe;IAwBhB,qBAAqB,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM;IAgB3C,mBAAmB,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM;yCA9XvC,iCAAiC;2CAAjC,iCAAiC;CAsY7C;AAED;;;GAGG;AACH,wBAAgB,4BAA4B,SAG3C"}
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,EAAyB,iBAAiB,EAAE,MAAM,eAAe,CAAC;AAC9G,OAAO,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAE1D,OAAO,EAAW,YAAY,EAAE,MAAM,sBAAsB,CAAC;AAC7D,OAAO,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAC;AAGhE,OAAO,EAAE,aAAa,EAAE,MAAM,6CAA6C,CAAC;AAC5E,OAAO,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;;AAG/D,qBAMa,iCAAkC,SAAQ,aAAc,YAAW,aAAa,EAAE,SAAS;IAiB1F,OAAO,CAAC,GAAG;IAdhB,UAAU,EAAE,eAAe,EAAE,CAAM;IACnC,kBAAkB,EAAE,eAAe,EAAE,CAAM;IAC3C,iBAAiB,EAAE,eAAe,GAAG,IAAI,CAAQ;IACjD,iBAAiB,EAAE,eAAe,GAAG,IAAI,CAAQ;IACjD,aAAa,EAAE,aAAa,GAAG,IAAI,CAAQ;IAC3C,SAAS,UAAS;IAClB,WAAW,SAAM;IACjB,SAAS,UAAS;IAGlB,YAAY,EAAE;QAAE,IAAI,EAAE,MAAM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