ngx-relationship-visualiser 2.1.3 → 2.1.5
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 +1 -4
- package/esm2022/projects/ngx-relationship-visualiser-lib/lib/ngx-relationship-visualiser.module.mjs +9 -13
- package/esm2022/projects/ngx-relationship-visualiser-lib/lib/visualiser/modals/icon-select.component.mjs +188 -0
- package/esm2022/projects/ngx-relationship-visualiser-lib/lib/visualiser/modals/modals.component.mjs +4 -39
- package/fesm2022/ngx-relationship-visualiser.mjs +196 -51
- package/fesm2022/ngx-relationship-visualiser.mjs.map +1 -1
- package/package.json +1 -2
- package/projects/ngx-relationship-visualiser-lib/lib/ngx-relationship-visualiser.module.d.ts +5 -5
- package/projects/ngx-relationship-visualiser-lib/lib/visualiser/modals/icon-select.component.d.ts +47 -0
- package/projects/ngx-relationship-visualiser-lib/lib/visualiser/modals/modals.component.d.ts +0 -14
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ngx-relationship-visualiser",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.5",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "A D3 force-directed-graph, implemented in Typescript for Angular, generates a visualisation graph with customisable link lengths and multiple labels between nodes. The graph can handle new data that will update lines, nodes, links, and path labels. Whenever new nodes are added, they will be animated with a pulse effect. Additionally, the graph includes features such as brushing (multiple select and drag), zoom, and panning capabilities. Additional features include the ability to make multiple selections in sync with the brushing functionality by using Ctrl + click and drag the cursor.",
|
|
6
6
|
"keywords": [
|
|
@@ -21,7 +21,6 @@
|
|
|
21
21
|
"license": "MIT",
|
|
22
22
|
"dependencies": {
|
|
23
23
|
"@dagrejs/dagre": "^1.1.8",
|
|
24
|
-
"@ng-select/ng-select": "^13.9.1",
|
|
25
24
|
"bootstrap": "4.6.2",
|
|
26
25
|
"d3": "5.16.0",
|
|
27
26
|
"dexie": "^4.4.7",
|
package/projects/ngx-relationship-visualiser-lib/lib/ngx-relationship-visualiser.module.d.ts
CHANGED
|
@@ -2,12 +2,12 @@ import * as i0 from "@angular/core";
|
|
|
2
2
|
import * as i1 from "./visualiser/visualiser-graph/visualiser-graph.component";
|
|
3
3
|
import * as i2 from "./visualiser/context-menus/context-menus.component";
|
|
4
4
|
import * as i3 from "./visualiser/modals/modals.component";
|
|
5
|
-
import * as i4 from "
|
|
6
|
-
import * as i5 from "@angular/
|
|
7
|
-
import * as i6 from "
|
|
8
|
-
import * as i7 from "
|
|
5
|
+
import * as i4 from "./visualiser/modals/icon-select.component";
|
|
6
|
+
import * as i5 from "@angular/platform-browser";
|
|
7
|
+
import * as i6 from "@angular/forms";
|
|
8
|
+
import * as i7 from "ngx-bootstrap/modal";
|
|
9
9
|
export declare class NgxRelationshipVisualiserModule {
|
|
10
10
|
static ɵfac: i0.ɵɵFactoryDeclaration<NgxRelationshipVisualiserModule, never>;
|
|
11
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<NgxRelationshipVisualiserModule, [typeof i1.VisualiserGraphComponent, typeof i2.ContextMenusComponent, typeof i3.ModalsComponent
|
|
11
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<NgxRelationshipVisualiserModule, [typeof i1.VisualiserGraphComponent, typeof i2.ContextMenusComponent, typeof i3.ModalsComponent, typeof i4.IconSelectComponent], [typeof i5.BrowserModule, typeof i6.ReactiveFormsModule, typeof i7.ModalModule], [typeof i1.VisualiserGraphComponent]>;
|
|
12
12
|
static ɵinj: i0.ɵɵInjectorDeclaration<NgxRelationshipVisualiserModule>;
|
|
13
13
|
}
|
package/projects/ngx-relationship-visualiser-lib/lib/visualiser/modals/icon-select.component.d.ts
ADDED
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { ElementRef } from '@angular/core';
|
|
2
|
+
import { ControlValueAccessor } from '@angular/forms';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export interface IconOption {
|
|
5
|
+
id: number;
|
|
6
|
+
name: string;
|
|
7
|
+
icon: string;
|
|
8
|
+
}
|
|
9
|
+
export declare class IconSelectComponent implements ControlValueAccessor {
|
|
10
|
+
private elementRef;
|
|
11
|
+
private static nextId;
|
|
12
|
+
items: readonly IconOption[];
|
|
13
|
+
placeholder: string;
|
|
14
|
+
inputId: string;
|
|
15
|
+
ariaLabel: string;
|
|
16
|
+
readonly listId: string;
|
|
17
|
+
readonly pageSize = 50;
|
|
18
|
+
searchTerm: string;
|
|
19
|
+
value: string | null;
|
|
20
|
+
isOpen: boolean;
|
|
21
|
+
isDisabled: boolean;
|
|
22
|
+
activeIndex: number;
|
|
23
|
+
visibleItemCount: number;
|
|
24
|
+
private onChange;
|
|
25
|
+
private onTouched;
|
|
26
|
+
constructor(elementRef: ElementRef<HTMLElement>);
|
|
27
|
+
get selectedItem(): IconOption | undefined;
|
|
28
|
+
get filteredItems(): readonly IconOption[];
|
|
29
|
+
get visibleItems(): readonly IconOption[];
|
|
30
|
+
get activeOptionId(): string | null;
|
|
31
|
+
writeValue(value: string | null): void;
|
|
32
|
+
registerOnChange(fn: (value: string | null) => void): void;
|
|
33
|
+
registerOnTouched(fn: () => void): void;
|
|
34
|
+
setDisabledState(disabled: boolean): void;
|
|
35
|
+
open(): void;
|
|
36
|
+
onSearchInput(event: Event): void;
|
|
37
|
+
onKeydown(event: KeyboardEvent): void;
|
|
38
|
+
onListScroll(event: Event): void;
|
|
39
|
+
select(item: IconOption): void;
|
|
40
|
+
clearSelection(event: MouseEvent): void;
|
|
41
|
+
optionId(item: IconOption): string;
|
|
42
|
+
closeOnOutsideClick(event: MouseEvent): void;
|
|
43
|
+
private close;
|
|
44
|
+
private revealActiveItem;
|
|
45
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<IconSelectComponent, never>;
|
|
46
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<IconSelectComponent, "app-icon-select", never, { "items": { "alias": "items"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "inputId": { "alias": "inputId"; "required": false; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; }; }, {}, never, never, false, never>;
|
|
47
|
+
}
|
package/projects/ngx-relationship-visualiser-lib/lib/visualiser/modals/modals.component.d.ts
CHANGED
|
@@ -3,7 +3,6 @@ import { BsModalRef, BsModalService } from 'ngx-bootstrap/modal';
|
|
|
3
3
|
import { FormBuilder } from '@angular/forms';
|
|
4
4
|
import { AbstractModalFormHandler } from './abstract-modal-form-handler';
|
|
5
5
|
import { EditLinksData, Node } from '../../models/data.interface';
|
|
6
|
-
import fontAwesomeIcons from '../../models/font-awesome-icons';
|
|
7
6
|
import { DexieService } from '../../db/graphDatabase';
|
|
8
7
|
import * as i0 from "@angular/core";
|
|
9
8
|
export interface EditLinkFormData {
|
|
@@ -51,10 +50,6 @@ export declare class ModalsComponent extends AbstractModalFormHandler implements
|
|
|
51
50
|
targetImageUrl: string;
|
|
52
51
|
sourceIcon: string;
|
|
53
52
|
targetIcon: string;
|
|
54
|
-
loading: boolean;
|
|
55
|
-
iconsBuffer: typeof fontAwesomeIcons;
|
|
56
|
-
numberOfItemsFromEndBeforeFetchingMore: number;
|
|
57
|
-
bufferSize: number;
|
|
58
53
|
constructor(modalService: BsModalService, fb: FormBuilder, dexieService: DexieService);
|
|
59
54
|
ngOnChanges(changes: SimpleChanges): void;
|
|
60
55
|
openModal(template: TemplateRef<unknown>, editLinksData?: EditLinksData | null): any;
|
|
@@ -69,15 +64,6 @@ export declare class ModalsComponent extends AbstractModalFormHandler implements
|
|
|
69
64
|
getRelationshipIcon(linkIcon: string | boolean): string;
|
|
70
65
|
clearImageUrl(): void;
|
|
71
66
|
onIconTypeChange(iconType: 'url' | 'select'): void;
|
|
72
|
-
trackByFn(item: {
|
|
73
|
-
id: number;
|
|
74
|
-
}): number;
|
|
75
|
-
private loadSelectedNodeIcons;
|
|
76
|
-
onScrollToEnd(): void;
|
|
77
|
-
onScroll({ end }: {
|
|
78
|
-
end: number;
|
|
79
|
-
}): void;
|
|
80
|
-
private fetchMore;
|
|
81
67
|
static ɵfac: i0.ɵɵFactoryDeclaration<ModalsComponent, never>;
|
|
82
68
|
static ɵcmp: i0.ɵɵComponentDeclaration<ModalsComponent, "app-modals", never, { "editNodeData": { "alias": "editNodeData"; "required": false; }; "editLinksData": { "alias": "editLinksData"; "required": false; }; }, { "closeModalEvent": "closeModalEvent"; "createEditLinkEvent": "createEditLinkEvent"; "createEditNodeEvent": "createEditNodeEvent"; "deleteLinkEvent": "deleteLinkEvent"; "deleteNodeEvent": "deleteNodeEvent"; }, never, never, false, never>;
|
|
83
69
|
}
|