@cu-mkp/editioncrafter 0.2.10 → 0.2.12

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.
@@ -50,7 +50,10 @@ var ImageGridView = /*#__PURE__*/function (_React$Component) {
50
50
  }));
51
51
  };
52
52
  _this.onSelectDoc = function (event) {
53
- if (event.target.value !== 'none') {
53
+ if (!event.target.value || event.target.value == 0) {
54
+ return;
55
+ }
56
+ if (event.target.value && event.target.value !== 'none') {
54
57
  _this.setState(_objectSpread(_objectSpread({}, _this.state), {}, {
55
58
  currentDoc: event.target.value
56
59
  }));
@@ -44,7 +44,7 @@ var Navigation = function Navigation(props) {
44
44
  });
45
45
  };
46
46
  var changeType = function changeType(event) {
47
- if (event.target.value === undefined) return;
47
+ if (event.target.value === undefined || event.target.value === 0) return;
48
48
  props.documentViewActions.changeTranscriptionType(props.side, event.target.value);
49
49
  };
50
50
  var onGoToGrid = function onGoToGrid(event) {
@@ -323,14 +323,15 @@ var Navigation = function Navigation(props) {
323
323
  }).annotationURLs).map(function (ttKey) {
324
324
  return /*#__PURE__*/React.createElement(MenuItem, {
325
325
  value: ttKey,
326
- key: ttKey
326
+ key: ttKey,
327
+ title: ttKey
327
328
  }, props.document.variorum ? props.document.transcriptionTypes[props.document.folios.find(function (fol) {
328
329
  return fol.id == props.documentView[props.side].iiifShortID;
329
330
  }).doc_id][ttKey] : props.document.transcriptionTypes[ttKey]);
330
331
  }), /*#__PURE__*/React.createElement(MenuItem, {
331
332
  value: "f",
332
333
  key: "f"
333
- }, DocumentHelper.transcriptionTypeLabels.f), /*#__PURE__*/React.createElement(MenuItem, {
334
+ }, DocumentHelper.transcriptionTypeLabels.f), props.glossary && /*#__PURE__*/React.createElement(MenuItem, {
334
335
  value: "glossary",
335
336
  key: "glossary"
336
337
  }, DocumentHelper.transcriptionTypeLabels.glossary)), /*#__PURE__*/React.createElement("span", {
@@ -8,7 +8,8 @@ var Watermark = function Watermark(_ref) {
8
8
  return /*#__PURE__*/React.createElement("div", {
9
9
  style: {
10
10
  position: "relative"
11
- }
11
+ },
12
+ className: "watermarkContainer"
12
13
  }, documentView.left.iiifShortID !== '-1' && documentView.right.iiifShortID !== '-1' ? /*#__PURE__*/React.createElement(Navigation, {
13
14
  side: side,
14
15
  documentView: documentView,
@@ -1,7 +1,6 @@
1
1
  #glossaryView {
2
2
 
3
3
  #glossaryViewInner {
4
- overflow-y: scroll;
5
4
  margin: 5px 0 0 0;
6
5
  @include md {
7
6
  margin: 52px 0 0 0;
@@ -6,6 +6,11 @@
6
6
  max-height: 100dvh;
7
7
  }
8
8
 
9
+ .imageGridComponent .thumbnail {
10
+ background-color: inherit;
11
+ border: none;
12
+ }
13
+
9
14
  .imageGridComponent > ul {
10
15
  display: flex;
11
16
  flex-wrap: wrap;
@@ -0,0 +1,9 @@
1
+ .single-pane-view {
2
+ height: 100%;
3
+ width: 100%;
4
+ overflow: auto;
5
+ }
6
+
7
+ .single-pane-view > div {
8
+ height: 100%;
9
+ }
@@ -1,12 +1,16 @@
1
1
  $watermark-size: max(10rem, 160px);
2
2
 
3
+ .watermarkContainer .navigationComponent {
4
+ position: absolute;
5
+ }
6
+
3
7
  .watermark{
4
8
  width:100%;
5
9
  height:100%;
6
- margin: calc(50vh - (#{$watermark-size}/2)) auto 0 auto;
10
+ margin: calc(50% - (#{$watermark-size}/2)) auto 0 auto;
7
11
  }
8
12
  .transcriptContent .watermark{
9
- margin: calc(50vh - (25rem/2)) auto 0 auto;
13
+ margin: calc(50% - (25rem/2)) auto 0 auto;
10
14
  }
11
15
 
12
16
  .watermark_contents{
@@ -108,4 +108,5 @@ animation: #{$str};
108
108
 
109
109
  @import "CETEIcean";
110
110
 
111
- @import "ringSpinner";
111
+ @import "ringSpinner";
112
+ @import "singlePaneView";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cu-mkp/editioncrafter",
3
- "version": "0.2.10",
3
+ "version": "0.2.12",
4
4
  "description": "A simple digital critical edition publication tool",
5
5
  "homepage": "https://cu-mkp.github.io/editioncrafter/",
6
6
  "private": false,