@es-joy/jsoe 0.6.1 → 0.7.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/src/jsoe.css CHANGED
@@ -2,6 +2,43 @@ input:invalid {
2
2
  background-color: pink;
3
3
  }
4
4
 
5
+ b.emphasis {
6
+ text-decoration: underline;
7
+ }
8
+
9
+ iframe.PDF {
10
+ width: 800px;
11
+ height: 500px;
12
+ }
13
+
14
+ img.imageView, video.video, audio.audio {
15
+ max-width: 700px;
16
+ max-height: 500px;
17
+ }
18
+
19
+ video.previewMedia {
20
+ float: left;
21
+ width: 500px;
22
+ }
23
+
24
+ div.recordedMedia {
25
+ float: left;
26
+ width: 500px;
27
+ }
28
+
29
+ video.recordedMedia {
30
+ max-width: 500px;
31
+ }
32
+
33
+ .view-binary, .view-text {
34
+ width: 300px;
35
+ height: 300px;
36
+ }
37
+
38
+ .visualizer {
39
+ height: 60px;
40
+ }
41
+
5
42
  [data-type="undef"] {
6
43
  background-color: green;
7
44
  }
@@ -56,6 +93,10 @@ input:invalid {
56
93
  background-color: red;
57
94
  }
58
95
 
96
+ [data-type="file"] {
97
+ background-color: beige;
98
+ }
99
+
59
100
  [class^="propertyName-"] {
60
101
  background-color: yellow;
61
102
  }
package/src/types.js CHANGED
@@ -34,6 +34,7 @@ import SpecialRealNumberSuperType from
34
34
  import SpecialNumberSuperType from './superTypes/SpecialNumberType.js';
35
35
  import errorType from './fundamentalTypes/errorType.js';
36
36
  import errorsSpecialType from './superTypes/errorsSpecialType.js';
37
+ import fileType from './fundamentalTypes/fileType.js';
37
38
 
38
39
  /**
39
40
  * Utility to retrieve the property value given a legend element.
@@ -383,9 +384,7 @@ Types.availableTypes = {
383
384
  map: mapType,
384
385
  set: setType,
385
386
 
386
- file: {
387
- option: ['File']
388
- },
387
+ file: fileType,
389
388
  filelist: {
390
389
  option: ['FileList']
391
390
  },