@internetarchive/bookreader 5.0.0-70-a1 → 5.0.0-70-a2
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.
@@ -1062,14 +1062,12 @@
|
|
1062
1062
|
</div>
|
1063
1063
|
</a>
|
1064
1064
|
</li>
|
1065
|
-
`}fileUrl(e){const t=`//${this.baseHost}${e.url_path}`;let n=t;return this.addSortToUrl&&(n="default"===this.sortOrderBy?`${t}
|
1065
|
+
`}fileUrl(e){const t=`//${this.baseHost}${e.url_path}`;let n=t;return this.addSortToUrl&&(n="default"===this.sortOrderBy?`${t}`:`${t}?sort=${this.sortOrderBy}`),n}get pdfLabel(){return r.dy`<span class="pdf-label"><span class="sr-only">view this</span> PDF</span>`}fileLi(e){var t;const n=this.subPrefix===e.file_subprefix?" active":"",o=this.fileUrl(e),i=(null!==(t=e.file_source)&&void 0!==t?t:"").match(/^[^+]+\.pdf$/i);return r.dy`
|
1066
1066
|
<li>
|
1067
1067
|
<div class="separator"></div>
|
1068
1068
|
<div class="content${n}">
|
1069
1069
|
<a href=${o}>
|
1070
|
-
<p class="item-title">${e.title}</p>
|
1071
|
-
${i?r.dy`<p class="pdf-label"><span>PDF</span></p>
|
1072
|
-
<p></p>`:r.Ld}
|
1070
|
+
<p class="item-title">${e.title}${i?this.pdfLabel:r.Ld}</p>
|
1073
1071
|
</a>
|
1074
1072
|
</div>
|
1075
1073
|
</li>
|
@@ -1125,6 +1123,10 @@
|
|
1125
1123
|
border: var(--activeBorderWidth) solid #538bc5;
|
1126
1124
|
}
|
1127
1125
|
|
1126
|
+
li.content a {
|
1127
|
+
display: flex;
|
1128
|
+
}
|
1129
|
+
|
1128
1130
|
small {
|
1129
1131
|
font-style: italic;
|
1130
1132
|
white-space: initial;
|
@@ -1143,6 +1145,7 @@
|
|
1143
1145
|
font-weight: bold;
|
1144
1146
|
word-wrap: break-word;
|
1145
1147
|
padding-left: 5px;
|
1148
|
+
/* display: flex; */
|
1146
1149
|
}
|
1147
1150
|
|
1148
1151
|
.separator {
|
@@ -1167,14 +1170,22 @@
|
|
1167
1170
|
}
|
1168
1171
|
|
1169
1172
|
.pdf-label {
|
1170
|
-
margin: 5px 5px 5px 0;
|
1171
|
-
text-align: right;
|
1172
|
-
}
|
1173
|
-
|
1174
|
-
.pdf-label span {
|
1175
1173
|
border: 1px solid;
|
1176
|
-
padding: 5px
|
1174
|
+
padding: 2px 5px;
|
1177
1175
|
border-radius: 20px;
|
1176
|
+
display: inline-block;
|
1177
|
+
margin-left: 5px;
|
1178
|
+
font-size: 0.9rem;
|
1179
|
+
}
|
1180
|
+
|
1181
|
+
.pdf-label .sr-only {
|
1182
|
+
position: absolute;
|
1183
|
+
clip: rect(1px, 1px, 1px, 1px);
|
1184
|
+
padding: 0;
|
1185
|
+
border: 0;
|
1186
|
+
height: 1px;
|
1187
|
+
width: 1px;
|
1188
|
+
overflow: hidden;
|
1178
1189
|
}
|
1179
1190
|
`}};o([(0,s.Cb)({type:String})],We.prototype,"baseHost",void 0),o([(0,s.Cb)({type:String})],We.prototype,"sortOrderBy",void 0),o([(0,s.Cb)({type:String})],We.prototype,"subPrefix",void 0),o([(0,s.Cb)({type:Array})],We.prototype,"fileList",void 0),o([(0,s.Cb)({type:Boolean,reflect:!0})],We.prototype,"addSortToUrl",void 0),We=o([(0,s.Mo)("iaux-viewable-files")],We),n(5003),n(9337),n(4765),n(9601),n(561),n(9826),n(5827),n(4723),n(2222);class Ge{constructor(e){var t,n,r,o,i,a,s;this.title=null==e?void 0:e.title,this.subtitle=null==e?void 0:e.subtitle,this.headline=null==e?void 0:e.headline,this.message=null==e?void 0:e.message,this.headerColor=null!==(t=null==e?void 0:e.headerColor)&&void 0!==t?t:"#55A183",this.bodyColor=null!==(n=null==e?void 0:e.bodyColor)&&void 0!==n?n:"#f5f5f7",this.showProcessingIndicator=null!==(r=null==e?void 0:e.showProcessingIndicator)&&void 0!==r&&r,this.processingImageMode=null!==(o=null==e?void 0:e.processingImageMode)&&void 0!==o?o:"complete",this.showCloseButton=null===(i=null==e?void 0:e.showCloseButton)||void 0===i||i,this.showHeaderLogo=null===(a=null==e?void 0:e.showHeaderLogo)||void 0===a||a,this.closeOnBackdropClick=null===(s=null==e?void 0:e.closeOnBackdropClick)||void 0===s||s}}const Ye=Object.freeze({processing:"processing",complete:"complete"});class Xe extends r.oi{static get properties(){return{mode:{type:String}}}constructor(){super(),this.mode=Ye.processing}render(){return r.dy`
|
1180
1191
|
<div class="${this.mode}">
|