@net7/boilerplate-muruca 5.3.0 → 5.3.2

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.
@@ -1,5 +1,5 @@
1
1
  import { OnInit, OnDestroy } from '@angular/core';
2
- import { ActivatedRoute, Router } from '@angular/router';
2
+ import { ActivatedRoute, Data, Router } from '@angular/router';
3
3
  import { AbstractLayout, CommunicationService, LayoutsConfigurationService, ConfigurationService, MainStateService } from '@net7/boilerplate-common';
4
4
  import { Location } from '@angular/common';
5
5
  import { MrResourceModalService } from '../../services/resource-modal.service';
@@ -17,6 +17,7 @@ export declare class MrNetworkLayoutComponent extends AbstractLayout implements
17
17
  localeService: MrLocaleService;
18
18
  location: Location;
19
19
  private configId;
20
+ private routeData;
20
21
  constructor(layoutsConfiguration: LayoutsConfigurationService, route: ActivatedRoute, router: Router, configuration: ConfigurationService, communication: CommunicationService, mainState: MainStateService, layoutState: MrLayoutStateService, modalService: MrResourceModalService, localeService: MrLocaleService, location: Location);
21
22
  protected initPayload(): {
22
23
  configId: string;
@@ -30,6 +31,7 @@ export declare class MrNetworkLayoutComponent extends AbstractLayout implements
30
31
  localeService: MrLocaleService;
31
32
  location: Location;
32
33
  options: any;
34
+ routeData: Data;
33
35
  };
34
36
  ngOnInit(): void;
35
37
  ngOnDestroy(): void;
@@ -1,7 +1,7 @@
1
1
  import { LayoutDataSource } from '@net7/core';
2
2
  import { Network } from 'vis-network';
3
- import { Subject } from 'rxjs';
4
- import { NetworkData } from './network-layouts.types';
3
+ import { Observable, Subject } from 'rxjs';
4
+ import { NetworkData } from '@net7/components';
5
5
  import 'leaflet.markercluster';
6
6
  export declare class MrNetworkLayoutDS extends LayoutDataSource {
7
7
  private configuration;
@@ -23,7 +23,10 @@ export declare class MrNetworkLayoutDS extends LayoutDataSource {
23
23
  showLegend: boolean;
24
24
  route: any;
25
25
  networkListener$: Subject<Network>;
26
+ private routeData;
26
27
  toggleLegend(): void;
27
28
  onInit(payload: any): void;
29
+ pageRequest$(id: any, onError: (err: any) => void): Observable<any>;
30
+ handleResponse(response: any): void;
28
31
  initializeNetwork(): void;
29
32
  }
@@ -5,6 +5,9 @@ export declare class MrNetworkLayoutEH extends EventHandler {
5
5
  private router;
6
6
  private localeService;
7
7
  private location;
8
+ private destroy$;
9
+ private layoutState;
8
10
  listen(): void;
9
11
  itemPreviewEmit: (type: any, payload: any) => void;
12
+ private listenRoute;
10
13
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@net7/boilerplate-muruca",
3
- "version": "5.3.0",
3
+ "version": "5.3.2",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^17.3.11",
6
6
  "@angular/core": "^17.3.11"
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibmV0d29yay1sYXlvdXRzLnR5cGVzLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvbjctYm9pbGVycGxhdGUtbXVydWNhL3NyYy9saWIvbGF5b3V0cy9uZXR3b3JrLWxheW91dC9uZXR3b3JrLWxheW91dHMudHlwZXMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCBpbnRlcmZhY2UgTmV0d29ya05vZGUge1xuICBpZDogbnVtYmVyO1xuICBsYWJlbDogc3RyaW5nO1xuICBncm91cDogc3RyaW5nO1xuICBwYXlsb2FkPzogYW55O1xufVxuXG5leHBvcnQgaW50ZXJmYWNlIE5ldHdvcmtFZGdlIHtcbiAgaWQ6IG51bWJlcjtcbiAgZnJvbTogbnVtYmVyO1xuICB0bzogbnVtYmVyO1xuICBsYWJlbDogc3RyaW5nO1xufVxuXG5leHBvcnQgaW50ZXJmYWNlIE5ldHdvcmtMaWJPcHRpb25zIHtcbiAgbm9kZXM6IHtcbiAgICBzaGFwZTogc3RyaW5nO1xuICAgIHNpemU6IG51bWJlcjtcbiAgICBmb250OiB7XG4gICAgICBzaXplOiBudW1iZXI7XG4gICAgICBjb2xvcjogc3RyaW5nO1xuICAgIH07XG4gIH07XG4gIGVkZ2VzOiB7XG4gICAgYXJyb3dzOiB7XG4gICAgICB0bzogeyBlbmFibGVkOiBib29sZWFuOyBzY2FsZUZhY3RvcjogbnVtYmVyIH07XG4gICAgfTtcbiAgICB3aWR0aDogbnVtYmVyO1xuICAgIGZvbnQ6IHtcbiAgICAgIHNpemU6IG51bWJlcjtcbiAgICAgIGFsaWduOiBzdHJpbmc7XG4gICAgICBjb2xvcjogc3RyaW5nO1xuICAgIH07XG4gICAgY29sb3I6IHtcbiAgICAgIGNvbG9yOiBzdHJpbmc7XG4gICAgICBoaWdobGlnaHQ6IHN0cmluZztcbiAgICB9O1xuICB9O1xuICBncm91cHM6IHtcbiAgICBba2V5OiBzdHJpbmddOiB7XG4gICAgICBjb2xvcjogc3RyaW5nO1xuICAgICAgc2hhcGU/OiBzdHJpbmc7XG4gICAgICBpY29uPzoge1xuICAgICAgICBmYWNlOiBzdHJpbmc7XG4gICAgICAgIGNvZGU6IHN0cmluZztcbiAgICAgICAgc2l6ZTogbnVtYmVyO1xuICAgICAgICBjb2xvcjogc3RyaW5nO1xuICAgICAgfTtcbiAgICB9O1xuICB9O1xuICBwaHlzaWNzOiB7XG4gICAgc3RhYmlsaXphdGlvbjogYm9vbGVhbjtcbiAgICBiYXJuZXNIdXQ6IHtcbiAgICAgIGdyYXZpdGF0aW9uYWxDb25zdGFudDogbnVtYmVyO1xuICAgICAgc3ByaW5nTGVuZ3RoOiBudW1iZXI7XG4gICAgICBzcHJpbmdDb25zdGFudDogbnVtYmVyO1xuICAgIH07XG4gIH07XG4gIGludGVyYWN0aW9uOiB7XG4gICAgaG92ZXI6IGJvb2xlYW47XG4gICAgdG9vbHRpcERlbGF5OiBudW1iZXI7XG4gICAgem9vbVZpZXc6IGJvb2xlYW47XG4gICAgZHJhZ1ZpZXc6IGJvb2xlYW47XG4gIH07XG4gIGxheW91dDoge1xuICAgIGltcHJvdmVkTGF5b3V0OiBib29sZWFuO1xuICB9O1xufVxuXG5leHBvcnQgaW50ZXJmYWNlIE5ldHdvcmtEYXRhIHtcbiAgY29udGFpbmVySUQ/OiBzdHJpbmc7XG4gIG5vZGVzOiBOZXR3b3JrTm9kZVtdO1xuICBlZGdlczogTmV0d29ya0VkZ2VbXTtcbiAgZ3JvdXBzPzoge1xuICAgIFtrZXk6IHN0cmluZ106IHtcbiAgICAgIGNvbG9yOiBzdHJpbmc7XG4gICAgICBzaGFwZT86IHN0cmluZztcbiAgICAgIGljb24/OiB7XG4gICAgICAgIGZhY2U6IHN0cmluZztcbiAgICAgICAgY29kZTogc3RyaW5nO1xuICAgICAgICBzaXplOiBudW1iZXI7XG4gICAgICAgIGNvbG9yOiBzdHJpbmc7XG4gICAgICB9O1xuICAgIH07XG4gIH07XG59XG5cbmV4cG9ydCBpbnRlcmZhY2UgR2V0UmVzb3VyY2VSZXNwb25zZSB7XG4gIHNlY3Rpb25zOiBhbnk7XG59XG4iXX0=
@@ -1,89 +0,0 @@
1
- export interface NetworkNode {
2
- id: number;
3
- label: string;
4
- group: string;
5
- payload?: any;
6
- }
7
- export interface NetworkEdge {
8
- id: number;
9
- from: number;
10
- to: number;
11
- label: string;
12
- }
13
- export interface NetworkLibOptions {
14
- nodes: {
15
- shape: string;
16
- size: number;
17
- font: {
18
- size: number;
19
- color: string;
20
- };
21
- };
22
- edges: {
23
- arrows: {
24
- to: {
25
- enabled: boolean;
26
- scaleFactor: number;
27
- };
28
- };
29
- width: number;
30
- font: {
31
- size: number;
32
- align: string;
33
- color: string;
34
- };
35
- color: {
36
- color: string;
37
- highlight: string;
38
- };
39
- };
40
- groups: {
41
- [key: string]: {
42
- color: string;
43
- shape?: string;
44
- icon?: {
45
- face: string;
46
- code: string;
47
- size: number;
48
- color: string;
49
- };
50
- };
51
- };
52
- physics: {
53
- stabilization: boolean;
54
- barnesHut: {
55
- gravitationalConstant: number;
56
- springLength: number;
57
- springConstant: number;
58
- };
59
- };
60
- interaction: {
61
- hover: boolean;
62
- tooltipDelay: number;
63
- zoomView: boolean;
64
- dragView: boolean;
65
- };
66
- layout: {
67
- improvedLayout: boolean;
68
- };
69
- }
70
- export interface NetworkData {
71
- containerID?: string;
72
- nodes: NetworkNode[];
73
- edges: NetworkEdge[];
74
- groups?: {
75
- [key: string]: {
76
- color: string;
77
- shape?: string;
78
- icon?: {
79
- face: string;
80
- code: string;
81
- size: number;
82
- color: string;
83
- };
84
- };
85
- };
86
- }
87
- export interface GetResourceResponse {
88
- sections: any;
89
- }