@net7/components 4.3.1 → 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.
@@ -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?: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@net7/components",
3
- "version": "4.3.1",
3
+ "version": "4.3.2",
4
4
  "dependencies": {
5
5
  "apexcharts": "^3.8.5",
6
6
  "d3": "^7.1.1",
@@ -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(#000000, 0.9);
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(#000000, 1);
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(#000000, 0.5);
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
- .openseadragon-container,
136
- .openseadragon-canvas,
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: space-between;
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
- z-index: -1;
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
- .n7-text-viewer__docs-container {
404
- display: flex;
405
- flex: 2;
406
- position: relative;
407
- overflow: auto;
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