@net7/components 4.3.1 → 4.4.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/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.mjs +51 -18
- 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 +281 -24
- package/fesm2022/net7-components.mjs.map +1 -1
- package/lib/components/network/network.d.ts +39 -0
- package/lib/components/network/network.mock.d.ts +2 -0
- package/lib/components/text-viewer/text-viewer.d.ts +2 -1
- package/lib/dv-components-lib.module.d.ts +4 -3
- package/package.json +5 -4
- package/public-api.d.ts +2 -0
- package/src/lib/styles/components/_image-viewer.scss +28 -5
- package/src/lib/styles/components/_text-viewer.scss +21 -9
|
@@ -0,0 +1,39 @@
|
|
|
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
|
+
}
|
|
28
|
+
export declare class NetworkComponent implements AfterContentChecked {
|
|
29
|
+
data: NetworkData;
|
|
30
|
+
emit: any;
|
|
31
|
+
/** Knows if the component is loaded */
|
|
32
|
+
private _loaded;
|
|
33
|
+
/** Dynamically load required node modules */
|
|
34
|
+
private loadModules;
|
|
35
|
+
ngAfterContentChecked(): void;
|
|
36
|
+
onClick(payload: any): void;
|
|
37
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NetworkComponent, never>;
|
|
38
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<NetworkComponent, "n7-network", never, { "data": { "alias": "data"; "required": false; }; "emit": { "alias": "emit"; "required": false; }; }, {}, never, never, false, never>;
|
|
39
|
+
}
|
|
@@ -60,11 +60,12 @@ export interface TextViewerData {
|
|
|
60
60
|
*/
|
|
61
61
|
facsimile?: {
|
|
62
62
|
uri: string;
|
|
63
|
-
scans?: [];
|
|
63
|
+
scans?: string[];
|
|
64
64
|
options?: {
|
|
65
65
|
showHomeControl?: boolean;
|
|
66
66
|
showFullPageControl?: boolean;
|
|
67
67
|
showNavigator?: boolean;
|
|
68
|
+
showNavigationControl?: boolean;
|
|
68
69
|
};
|
|
69
70
|
};
|
|
70
71
|
libOptions?: {
|
|
@@ -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.0",
|
|
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';
|
|
@@ -12,6 +12,7 @@
|
|
|
12
12
|
.n7-image-viewer {
|
|
13
13
|
position: relative;
|
|
14
14
|
background-color: $image-viewer-background-color;
|
|
15
|
+
|
|
15
16
|
&__viewer {
|
|
16
17
|
height: $image-viewer-height;
|
|
17
18
|
}
|
|
@@ -30,9 +31,11 @@ For our custom thumbs please refer to ImageViewerTools. */
|
|
|
30
31
|
transform: translateY(-50%);
|
|
31
32
|
right: $space * 2;
|
|
32
33
|
}
|
|
34
|
+
|
|
33
35
|
&__thumb-list {
|
|
34
36
|
list-style: none;
|
|
35
37
|
}
|
|
38
|
+
|
|
36
39
|
&__thumb-item {
|
|
37
40
|
width: $image-viewer-thumb-width !important;
|
|
38
41
|
height: $image-viewer-thumb-height !important;
|
|
@@ -42,12 +45,15 @@ For our custom thumbs please refer to ImageViewerTools. */
|
|
|
42
45
|
background-repeat: none;
|
|
43
46
|
border: 2px solid transparent;
|
|
44
47
|
cursor: pointer;
|
|
48
|
+
|
|
45
49
|
&:last-child {
|
|
46
50
|
margin-bottom: 0;
|
|
47
51
|
}
|
|
52
|
+
|
|
48
53
|
&:hover:not(.is-active) {
|
|
49
54
|
border: 2px solid $image-viewer-thumb-hover-border-color;
|
|
50
55
|
}
|
|
56
|
+
|
|
51
57
|
&.is-active {
|
|
52
58
|
border: 2px solid $image-viewer-thumb-active-border-color;
|
|
53
59
|
}
|
|
@@ -61,10 +67,12 @@ For our custom thumbs please refer to ImageViewerTools. */
|
|
|
61
67
|
position: absolute;
|
|
62
68
|
top: $space * 2;
|
|
63
69
|
right: $space * 2;
|
|
70
|
+
|
|
64
71
|
.n7-image-viewer__controls-list {
|
|
65
72
|
margin: 0;
|
|
66
73
|
padding: 0;
|
|
67
74
|
}
|
|
75
|
+
|
|
68
76
|
.n7-image-viewer__controls-item {
|
|
69
77
|
display: flex !important;
|
|
70
78
|
align-items: center;
|
|
@@ -73,19 +81,23 @@ For our custom thumbs please refer to ImageViewerTools. */
|
|
|
73
81
|
height: $image-viewer-control-height;
|
|
74
82
|
margin-bottom: $space !important;
|
|
75
83
|
cursor: pointer;
|
|
76
|
-
background-color: rgba(#
|
|
84
|
+
background-color: rgba(#000, 0.9);
|
|
77
85
|
border-radius: $border-radius;
|
|
86
|
+
|
|
78
87
|
span {
|
|
79
88
|
color: rgba($color-text-inverse, 0.8);
|
|
80
89
|
font-size: $image-viewer-control-icon-size;
|
|
81
90
|
transition: color $transition-durations;
|
|
82
91
|
}
|
|
92
|
+
|
|
83
93
|
&:hover {
|
|
84
|
-
background-color: rgba(#
|
|
94
|
+
background-color: rgba(#000, 1);
|
|
95
|
+
|
|
85
96
|
span {
|
|
86
97
|
color: rgba($color-text-inverse, 1);
|
|
87
98
|
}
|
|
88
99
|
}
|
|
100
|
+
|
|
89
101
|
&:last-child {
|
|
90
102
|
margin-bottom: 0;
|
|
91
103
|
}
|
|
@@ -100,20 +112,24 @@ For our custom thumbs please refer to ImageViewerTools. */
|
|
|
100
112
|
position: absolute !important;
|
|
101
113
|
top: 50%;
|
|
102
114
|
transform: translateY(-50%);
|
|
115
|
+
|
|
103
116
|
span {
|
|
104
117
|
color: rgba($color-text-inverse, 0.8);
|
|
105
118
|
font-size: $font-size-xxl * 2;
|
|
106
119
|
transition: all $transition-durations;
|
|
107
120
|
cursor: pointer !important;
|
|
108
|
-
text-shadow: 0 2px 4px rgba(#
|
|
121
|
+
text-shadow: 0 2px 4px rgba(#000, 0.5);
|
|
122
|
+
|
|
109
123
|
&:hover {
|
|
110
124
|
color: rgba($color-text-inverse, 1);
|
|
111
125
|
}
|
|
112
126
|
}
|
|
113
127
|
}
|
|
128
|
+
|
|
114
129
|
.n7-image-viewer__prev {
|
|
115
130
|
left: 0;
|
|
116
131
|
}
|
|
132
|
+
|
|
117
133
|
.n7-image-viewer__next {
|
|
118
134
|
right: 0;
|
|
119
135
|
}
|
|
@@ -128,12 +144,19 @@ For our custom thumbs please refer to ImageViewerTools. */
|
|
|
128
144
|
}
|
|
129
145
|
}
|
|
130
146
|
}
|
|
147
|
+
|
|
131
148
|
.referencestrip {
|
|
132
149
|
margin-bottom: -100px !important;
|
|
133
150
|
transition: all $transition-durations * 2;
|
|
151
|
+
|
|
134
152
|
> *,
|
|
135
|
-
|
|
136
|
-
|
|
153
|
+
/* .openseadragon-container
|
|
154
|
+
{
|
|
155
|
+
position: absolute;
|
|
156
|
+
}
|
|
157
|
+
.openseadragon-canvas {
|
|
158
|
+
background: black;
|
|
159
|
+
} */
|
|
137
160
|
canvas,
|
|
138
161
|
.displayregion {
|
|
139
162
|
cursor: pointer !important;
|
|
@@ -363,7 +363,7 @@
|
|
|
363
363
|
height: 70vh; //70vh
|
|
364
364
|
overflow: auto;
|
|
365
365
|
display: flex;
|
|
366
|
-
justify-content:
|
|
366
|
+
justify-content: center;
|
|
367
367
|
}
|
|
368
368
|
pb-view {
|
|
369
369
|
flex: 1 0;
|
|
@@ -395,17 +395,29 @@
|
|
|
395
395
|
|
|
396
396
|
//
|
|
397
397
|
.content-body {
|
|
398
|
-
position: relative;
|
|
399
398
|
display: flex;
|
|
400
399
|
padding: 0 20px;
|
|
401
|
-
|
|
400
|
+
gap: 20px;
|
|
401
|
+
|
|
402
|
+
// Stili per ogni elemento che agisce come colonna
|
|
403
|
+
> .text-viewer-column {
|
|
404
|
+
flex: 1 1 0;
|
|
405
|
+
|
|
406
|
+
// Stili specifici se un elemento colonna è un pb-facsimile
|
|
407
|
+
&[id="facsimile"] {
|
|
408
|
+
background-color: #333333;
|
|
409
|
+
position: sticky;
|
|
410
|
+
top: 0;
|
|
411
|
+
height: 70vh;
|
|
412
|
+
overflow: hidden;
|
|
413
|
+
max-width: 50%;
|
|
414
|
+
}
|
|
402
415
|
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
justify-content: center;
|
|
416
|
+
// Stili specifici se un elemento colonna è un pb-view
|
|
417
|
+
// Puoi usare selettori di attributo più specifici se necessario, es. &[id^="view"]
|
|
418
|
+
// & {
|
|
419
|
+
// max-height: var(--pb-view-height); // Se vuoi limitare l'altezza dei pb-view
|
|
420
|
+
// }
|
|
409
421
|
}
|
|
410
422
|
}
|
|
411
423
|
|