@net7/components 4.3.0 → 4.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.
- 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.mjs +4 -3
- package/esm2022/lib/components/timeline/timeline_group.mock.mjs +180 -0
- package/esm2022/public-api.mjs +2 -1
- package/fesm2022/net7-components.mjs +236 -22
- package/fesm2022/net7-components.mjs.map +1 -1
- package/lib/components/text-viewer/text-viewer.d.ts +2 -1
- package/lib/components/timeline/timeline.d.ts +9 -2
- package/lib/components/timeline/timeline_group.mock.d.ts +2 -0
- package/package.json +1 -1
- package/public-api.d.ts +1 -0
- package/src/lib/styles/components/_image-viewer.scss +28 -5
- package/src/lib/styles/components/_text-viewer.scss +21 -9
- package/src/lib/styles/components/_timeline.scss +25 -0
|
@@ -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?: {
|
|
@@ -6,6 +6,9 @@ export interface LibOptions extends TimelineOptions {
|
|
|
6
6
|
* Higher zooming friction will slow zooming speed */
|
|
7
7
|
zoomFriction?: number;
|
|
8
8
|
}
|
|
9
|
+
export interface DataItemCustom extends Omit<DataItem, 'content'> {
|
|
10
|
+
content?: string;
|
|
11
|
+
}
|
|
9
12
|
export interface TimelineData {
|
|
10
13
|
/** ID for the HTML container element */
|
|
11
14
|
containerID: string;
|
|
@@ -13,8 +16,12 @@ export interface TimelineData {
|
|
|
13
16
|
libOptions: LibOptions;
|
|
14
17
|
/** Sets the timeline instance to the given parameter */
|
|
15
18
|
_setInstance?: any;
|
|
16
|
-
/**
|
|
17
|
-
dataSet:
|
|
19
|
+
/** Dataset in vis-js format, full ref: https://visjs.github.io/vis-timeline/docs/timeline/#Data_Format */
|
|
20
|
+
dataSet: DataItemCustom[];
|
|
21
|
+
groups?: Array<{
|
|
22
|
+
id: number;
|
|
23
|
+
content: string;
|
|
24
|
+
}>;
|
|
18
25
|
}
|
|
19
26
|
export declare class TimelineComponent implements AfterContentChecked {
|
|
20
27
|
data: TimelineData;
|
package/package.json
CHANGED
package/public-api.d.ts
CHANGED
|
@@ -92,6 +92,7 @@ export * from './lib/components/tag/tag.mock';
|
|
|
92
92
|
export * from './lib/components/text-viewer/text-viewer.mock';
|
|
93
93
|
export * from './lib/components/text-viewer/text-viewer.mock_petrarca';
|
|
94
94
|
export * from './lib/components/timeline/timeline.mock';
|
|
95
|
+
export * from './lib/components/timeline/timeline_group.mock';
|
|
95
96
|
export * from './lib/components/toast/toast.mock';
|
|
96
97
|
export * from './lib/components/tooltip-content/tooltip-content.mock';
|
|
97
98
|
export * from './lib/components/tree/tree.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
|
|
|
@@ -9,6 +9,31 @@
|
|
|
9
9
|
\* ------------------------------------ */
|
|
10
10
|
.n7-timeline {
|
|
11
11
|
// TODO
|
|
12
|
+
|
|
13
|
+
/* .vis-item.vis-background.positive {
|
|
14
|
+
background-color: rgba(105, 255, 98, 0.2);
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.vis-item.red {
|
|
18
|
+
background-color: red;
|
|
19
|
+
border-color: darkred;
|
|
20
|
+
color: white;
|
|
21
|
+
font-family: monospace;
|
|
22
|
+
box-shadow: 0 0 10px gray;
|
|
23
|
+
}
|
|
24
|
+
.vis-item.vis-dot.red {
|
|
25
|
+
border-radius: 10px;
|
|
26
|
+
border-width: 10px;
|
|
27
|
+
}
|
|
28
|
+
.vis-item.vis-line.red {
|
|
29
|
+
border-width: 5px;
|
|
30
|
+
}
|
|
31
|
+
.vis-item.vis-box.red {
|
|
32
|
+
border-radius: 0;
|
|
33
|
+
border-width: 2px;
|
|
34
|
+
font-size: 24pt;
|
|
35
|
+
font-weight: bold;
|
|
36
|
+
} */
|
|
12
37
|
}
|
|
13
38
|
|
|
14
39
|
/* ------------------------------------ *\
|