@net7/components 4.3.2 → 4.4.1
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/esm2022/lib/components/network/network.mjs +62 -0
- package/esm2022/lib/components/network/network.mock.mjs +153 -0
- package/esm2022/lib/components/text-viewer/text-viewer.mjs +3 -3
- package/esm2022/lib/components/text-viewer/text-viewer.mock_petrarca.mjs +15 -11
- package/esm2022/lib/components/timeline/timeline.mock.mjs +6 -2
- package/esm2022/lib/components/timeline/timeline_group.mock.mjs +6 -2
- package/esm2022/lib/dv-components-lib.module.mjs +7 -3
- package/esm2022/public-api.mjs +3 -1
- package/fesm2022/net7-components.mjs +245 -17
- package/fesm2022/net7-components.mjs.map +1 -1
- package/lib/components/network/network.d.ts +51 -0
- package/lib/components/network/network.mock.d.ts +2 -0
- package/lib/components/text-viewer/text-viewer.d.ts +2 -0
- package/lib/dv-components-lib.module.d.ts +4 -3
- package/package.json +5 -4
- package/public-api.d.ts +2 -0
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { AfterContentChecked } from '@angular/core';
|
|
2
|
+
import { Options } from 'vis-network';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export type NetworkLibOptions = Options;
|
|
5
|
+
export interface NetworkNode {
|
|
6
|
+
id: number;
|
|
7
|
+
label: string;
|
|
8
|
+
group: string;
|
|
9
|
+
payload?: any;
|
|
10
|
+
}
|
|
11
|
+
export interface NetworkEdge {
|
|
12
|
+
id: number;
|
|
13
|
+
from: number;
|
|
14
|
+
to: number;
|
|
15
|
+
label: string;
|
|
16
|
+
}
|
|
17
|
+
export interface NetworkData {
|
|
18
|
+
/** ID for the HTML container element */
|
|
19
|
+
containerID: string;
|
|
20
|
+
/** Options for vis-network, full reference: https://visjs.github.io/vis-network/docs/network/ */
|
|
21
|
+
libOptions: NetworkLibOptions;
|
|
22
|
+
/** Sets the network instance to the given parameter */
|
|
23
|
+
_setInstance?: any;
|
|
24
|
+
/** Dataset in vis-js format */
|
|
25
|
+
nodes: NetworkNode[];
|
|
26
|
+
edges: NetworkEdge[];
|
|
27
|
+
groups?: {
|
|
28
|
+
[key: string]: {
|
|
29
|
+
color: string;
|
|
30
|
+
shape?: string;
|
|
31
|
+
icon?: {
|
|
32
|
+
face: string;
|
|
33
|
+
code: string;
|
|
34
|
+
size: number;
|
|
35
|
+
color: string;
|
|
36
|
+
};
|
|
37
|
+
};
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
export declare class NetworkComponent implements AfterContentChecked {
|
|
41
|
+
data: NetworkData;
|
|
42
|
+
emit: any;
|
|
43
|
+
/** Knows if the component is loaded */
|
|
44
|
+
private _loaded;
|
|
45
|
+
/** Dynamically load required node modules */
|
|
46
|
+
private loadModules;
|
|
47
|
+
ngAfterContentChecked(): void;
|
|
48
|
+
onClick(payload: any): void;
|
|
49
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NetworkComponent, never>;
|
|
50
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<NetworkComponent, "n7-network", never, { "data": { "alias": "data"; "required": false; }; "emit": { "alias": "emit"; "required": false; }; }, {}, never, never, false, never>;
|
|
51
|
+
}
|
|
@@ -20,6 +20,7 @@ export interface TextViewerData {
|
|
|
20
20
|
mapFunction?: string;
|
|
21
21
|
url?: string;
|
|
22
22
|
xpath?: string;
|
|
23
|
+
disableHistory?: boolean;
|
|
23
24
|
apparatus?: {
|
|
24
25
|
mapFunction?: string;
|
|
25
26
|
rootPath?: string;
|
|
@@ -38,6 +39,7 @@ export interface TextViewerData {
|
|
|
38
39
|
file?: string;
|
|
39
40
|
format?: string;
|
|
40
41
|
};
|
|
42
|
+
scrollSync?: boolean;
|
|
41
43
|
labels?: {
|
|
42
44
|
view?: string;
|
|
43
45
|
select?: {
|
|
@@ -47,10 +47,11 @@ import * as i45 from "./components/tooltip-content/tooltip-content";
|
|
|
47
47
|
import * as i46 from "./components/tree/tree";
|
|
48
48
|
import * as i47 from "./components/wizard/wizard";
|
|
49
49
|
import * as i48 from "./components/progress-line/progress-line";
|
|
50
|
-
import * as i49 from "
|
|
51
|
-
import * as i50 from "@angular/
|
|
50
|
+
import * as i49 from "./components/network/network";
|
|
51
|
+
import * as i50 from "@angular/common";
|
|
52
|
+
import * as i51 from "@angular/router";
|
|
52
53
|
export declare class DvComponentsLibModule {
|
|
53
54
|
static ɵfac: i0.ɵɵFactoryDeclaration<DvComponentsLibModule, never>;
|
|
54
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<DvComponentsLibModule, [typeof i1.AdvancedAutocompleteComponent, typeof i2.AlertComponent, typeof i3.AnchorWrapperComponent, typeof i4.AvatarComponent, typeof i5.BreadcrumbsComponent, typeof i6.BubbleChartComponent, typeof i7.ButtonComponent, typeof i8.CarouselComponent, typeof i9.ChartComponent, typeof i10.ContentPlaceholderComponent, typeof i11.DataWidgetComponent, typeof i12.DatepickerComponent, typeof i13.FacetComponent, typeof i14.FacetHeaderComponent, typeof i15.FacetYearRangeComponent, typeof i16.FileSelectorComponent, typeof i17.FooterComponent, typeof i18.HeaderComponent, typeof i19.HeroComponent, typeof i20.IconComponent, typeof i21.HistogramRangeComponent, typeof i22.ImageViewerComponent, typeof i23.ImageViewerToolsComponent, typeof i24.InnerTitleComponent, typeof i25.InputCheckboxComponent, typeof i26.InputLinkComponent, typeof i27.InputSelectComponent, typeof i28.InputTextComponent, typeof i29.ItemPreviewComponent, typeof i30.LoaderComponent, typeof i31.MapComponent, typeof i32.MetadataViewerComponent, typeof i33.MiradorComponent, typeof i34.NavComponent, typeof i35.PaginationComponent, typeof i36.SidebarHeaderComponent, typeof i37.SignupComponent, typeof i38.SimpleAutocompleteComponent, typeof i39.TableComponent, typeof i40.TagComponent, typeof i41.InputTextareaComponent, typeof i42.TextViewerComponent, typeof i43.TimelineComponent, typeof i44.ToastComponent, typeof i45.TooltipContentComponent, typeof i46.TreeComponent, typeof i47.WizardComponent, typeof i48.ProgressLineComponent], [typeof
|
|
55
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<DvComponentsLibModule, [typeof i1.AdvancedAutocompleteComponent, typeof i2.AlertComponent, typeof i3.AnchorWrapperComponent, typeof i4.AvatarComponent, typeof i5.BreadcrumbsComponent, typeof i6.BubbleChartComponent, typeof i7.ButtonComponent, typeof i8.CarouselComponent, typeof i9.ChartComponent, typeof i10.ContentPlaceholderComponent, typeof i11.DataWidgetComponent, typeof i12.DatepickerComponent, typeof i13.FacetComponent, typeof i14.FacetHeaderComponent, typeof i15.FacetYearRangeComponent, typeof i16.FileSelectorComponent, typeof i17.FooterComponent, typeof i18.HeaderComponent, typeof i19.HeroComponent, typeof i20.IconComponent, typeof i21.HistogramRangeComponent, typeof i22.ImageViewerComponent, typeof i23.ImageViewerToolsComponent, typeof i24.InnerTitleComponent, typeof i25.InputCheckboxComponent, typeof i26.InputLinkComponent, typeof i27.InputSelectComponent, typeof i28.InputTextComponent, typeof i29.ItemPreviewComponent, typeof i30.LoaderComponent, typeof i31.MapComponent, typeof i32.MetadataViewerComponent, typeof i33.MiradorComponent, typeof i34.NavComponent, typeof i35.PaginationComponent, typeof i36.SidebarHeaderComponent, typeof i37.SignupComponent, typeof i38.SimpleAutocompleteComponent, typeof i39.TableComponent, typeof i40.TagComponent, typeof i41.InputTextareaComponent, typeof i42.TextViewerComponent, typeof i43.TimelineComponent, typeof i44.ToastComponent, typeof i45.TooltipContentComponent, typeof i46.TreeComponent, typeof i47.WizardComponent, typeof i48.ProgressLineComponent, typeof i49.NetworkComponent], [typeof i50.CommonModule, typeof i51.RouterModule], [typeof i1.AdvancedAutocompleteComponent, typeof i2.AlertComponent, typeof i3.AnchorWrapperComponent, typeof i4.AvatarComponent, typeof i5.BreadcrumbsComponent, typeof i6.BubbleChartComponent, typeof i7.ButtonComponent, typeof i8.CarouselComponent, typeof i9.ChartComponent, typeof i10.ContentPlaceholderComponent, typeof i11.DataWidgetComponent, typeof i12.DatepickerComponent, typeof i13.FacetComponent, typeof i14.FacetHeaderComponent, typeof i15.FacetYearRangeComponent, typeof i16.FileSelectorComponent, typeof i17.FooterComponent, typeof i18.HeaderComponent, typeof i19.HeroComponent, typeof i20.IconComponent, typeof i21.HistogramRangeComponent, typeof i22.ImageViewerComponent, typeof i23.ImageViewerToolsComponent, typeof i24.InnerTitleComponent, typeof i25.InputCheckboxComponent, typeof i26.InputLinkComponent, typeof i27.InputSelectComponent, typeof i28.InputTextComponent, typeof i29.ItemPreviewComponent, typeof i30.LoaderComponent, typeof i31.MapComponent, typeof i32.MetadataViewerComponent, typeof i33.MiradorComponent, typeof i34.NavComponent, typeof i35.PaginationComponent, typeof i36.SidebarHeaderComponent, typeof i37.SignupComponent, typeof i38.SimpleAutocompleteComponent, typeof i39.TableComponent, typeof i40.TagComponent, typeof i41.InputTextareaComponent, typeof i42.TextViewerComponent, typeof i43.TimelineComponent, typeof i44.ToastComponent, typeof i45.TooltipContentComponent, typeof i46.TreeComponent, typeof i47.WizardComponent, typeof i48.ProgressLineComponent, typeof i49.NetworkComponent]>;
|
|
55
56
|
static ɵinj: i0.ɵɵInjectorDeclaration<DvComponentsLibModule>;
|
|
56
57
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@net7/components",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.4.1",
|
|
4
4
|
"dependencies": {
|
|
5
5
|
"apexcharts": "^3.8.5",
|
|
6
6
|
"d3": "^7.1.1",
|
|
@@ -10,10 +10,11 @@
|
|
|
10
10
|
"leaflet.markercluster": "^1.4.1",
|
|
11
11
|
"dayjs": "~1.10.7",
|
|
12
12
|
"openseadragon": "^2.4.1",
|
|
13
|
-
"vis-data": "
|
|
13
|
+
"vis-data": "^7.0.0",
|
|
14
14
|
"tslib": "^2.0.0",
|
|
15
|
-
"vis-timeline": "
|
|
16
|
-
"vis-
|
|
15
|
+
"vis-timeline": "^7.3.6",
|
|
16
|
+
"vis-network": "^9.1.12",
|
|
17
|
+
"vis-util": "^5.0.0",
|
|
17
18
|
"@teipublisher/pb-components": "^2.0.0"
|
|
18
19
|
},
|
|
19
20
|
"peerDependencies": {
|
package/public-api.d.ts
CHANGED
|
@@ -48,6 +48,7 @@ export * from './lib/components/toast/toast';
|
|
|
48
48
|
export * from './lib/components/tooltip-content/tooltip-content';
|
|
49
49
|
export * from './lib/components/tree/tree';
|
|
50
50
|
export * from './lib/components/wizard/wizard';
|
|
51
|
+
export * from './lib/components/network/network';
|
|
51
52
|
export * from './lib/components/advanced-autocomplete/advanced-autocomplete.mock';
|
|
52
53
|
export * from './lib/components/alert/alert.mock';
|
|
53
54
|
export * from './lib/components/avatar/avatar.mock';
|
|
@@ -97,3 +98,4 @@ export * from './lib/components/toast/toast.mock';
|
|
|
97
98
|
export * from './lib/components/tooltip-content/tooltip-content.mock';
|
|
98
99
|
export * from './lib/components/tree/tree.mock';
|
|
99
100
|
export * from './lib/components/wizard/wizard.mock';
|
|
101
|
+
export * from './lib/components/network/network.mock';
|