protvista-uniprot 2.8.2 → 2.8.6

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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "protvista-uniprot",
3
3
  "description": "ProtVista tool for the UniProt website",
4
- "version": "2.8.2",
4
+ "version": "2.8.6",
5
5
  "files": [
6
6
  "dist",
7
7
  "src"
@@ -29,23 +29,23 @@
29
29
  "data-loader": "^2.9.1",
30
30
  "file-saver": "^2.0.2",
31
31
  "lit-element": "^2.2.0",
32
- "protvista-datatable": "^3.4.2",
33
- "protvista-feature-adapter": "^3.4.5",
34
- "protvista-filter": "^3.1.2",
35
- "protvista-interpro-adapter": "^3.4.0",
36
- "protvista-interpro-track": "^3.4.0",
37
- "protvista-manager": "^3.4.0",
38
- "protvista-navigation": "^3.4.0",
32
+ "protvista-datatable": "3.5.1",
33
+ "protvista-feature-adapter": "3.5.1",
34
+ "protvista-filter": "3.1.2",
35
+ "protvista-interpro-adapter": "3.4.0",
36
+ "protvista-interpro-track": "3.4.0",
37
+ "protvista-manager": "3.4.0",
38
+ "protvista-navigation": "3.5.1",
39
39
  "protvista-proteomics-adapter": "^3.4.5",
40
- "protvista-sequence": "^3.4.0",
41
- "protvista-structure": "3.4.0",
42
- "protvista-structure-adapter": "^3.4.5",
43
- "protvista-tooltip": "^3.1.2",
44
- "protvista-track": "^3.4.0",
45
- "protvista-variation": "^3.4.4",
40
+ "protvista-sequence": "3.5.1",
41
+ "protvista-structure": "3.5.2",
42
+ "protvista-structure-adapter": "3.5.1",
43
+ "protvista-tooltip": "3.1.2",
44
+ "protvista-track": "3.4.0",
45
+ "protvista-variation": "3.5.2",
46
46
  "protvista-variation-adapter": "^3.4.5",
47
- "protvista-variation-graph": "^3.4.0",
48
- "protvista-zoomable": "^3.4.0",
47
+ "protvista-variation-graph": "3.4.0",
48
+ "protvista-zoomable": "3.4.0",
49
49
  "timing-functions": "^2.0.1",
50
50
  "url-join": "^4.0.1"
51
51
  },
package/src/.DS_Store ADDED
Binary file
@@ -15,7 +15,7 @@ import {
15
15
  } from 'protvista-structure/dist/es/protvista-structure';
16
16
 
17
17
  const PDBLinks = [
18
- { name: 'PDB', link: 'https://www.ebi.ac.uk/pdbe-srv/view/entry/' },
18
+ { name: 'PDBe', link: 'https://www.ebi.ac.uk/pdbe-srv/view/entry/' },
19
19
  { name: 'RCSB-PDB', link: 'https://www.rcsb.org/structure/' },
20
20
  { name: 'PDBj', link: 'https://pdbj.org/mine/summary/' },
21
21
  { name: 'PDBsum', link: 'https://www.ebi.ac.uk/pdbsum/' },
@@ -174,7 +174,7 @@ class ProtvistaUniprotStructure extends LitElement {
174
174
  const protvistaDatatableElt = this.querySelector(
175
175
  'protvista-datatable'
176
176
  ) as ProtvistaDatatable;
177
- if (!protvistaDatatableElt.selectedid) {
177
+ if (!protvistaDatatableElt.selectedid && this.data?.[0]) {
178
178
  // Select the first element in the table
179
179
  this.onTableRowClick({ id: this.data[0].id });
180
180
  protvistaDatatableElt.selectedid = this.structureId;
@@ -275,69 +275,75 @@ class ProtvistaUniprotStructure extends LitElement {
275
275
  : html``}
276
276
  </div>
277
277
  <div class="class="protvista-uniprot-structure__table">
278
- <protvista-datatable noScrollToRow noDeselect filter-scroll>
279
- <table>
280
- <thead>
281
- <tr>
282
- <th data-filter="source">Source</th>
283
- <th>Identifier</th>
284
- <th data-filter="method">Method</th>
285
- <th>Resolution</th>
286
- <th>Chain</th>
287
- <th>Positions</th>
288
- <th>Links</th>
289
- <th><!--Download--></th>
290
- </tr>
291
- </thead>
292
- <tbody>
293
- ${this.data?.map(
294
- ({
295
- source,
296
- id,
297
- method,
298
- resolution,
299
- chain,
300
- positions,
301
- downloadLink,
302
- }) => html`<tr
303
- data-id="${id}"
304
- @click="${() => this.onTableRowClick({ id })}"
305
- >
306
- <td data-filter="source" data-filter-value="${source}">
307
- <strong>${source}</strong>
308
- </td>
309
- <td>${id}</td>
310
- <td data-filter="method" data-filter-value="${method}">
311
- ${method}
312
- </td>
313
- <td>${resolution ? resolution.replace('A', 'Å') : ''}</td>
314
- <td>${chain || ''}</td>
315
- <td>${positions || ''}</td>
316
- <td>
317
- ${source === 'PDB'
318
- ? html`
319
- ${PDBLinks.map((pdbLink) => {
320
- return html`
321
- <a href="${pdbLink.link}${id}">${pdbLink.name}</a>
322
- `;
323
- }).reduce((prev, curr) => html` ${prev} · ${curr} `)}
324
- `
325
- : html`<a href="${alphaFoldLink}${this.accession}"
326
- >AlphaFold</a
327
- >`}
328
- </td>
329
- <td>
330
- ${downloadLink
331
- ? html`<a href="${downloadLink}" class="download-link"
332
- >${svg`${unsafeHTML(downloadIcon)}`}</a
333
- >`
334
- : ''}
335
- </td>
336
- </tr>`
337
- )}
338
- </tbody>
339
- </table>
340
- </protvista-datatable>
278
+ ${this.data && this.data.length
279
+ ? html`<protvista-datatable noScrollToRow noDeselect filter-scroll>
280
+ <table>
281
+ <thead>
282
+ <tr>
283
+ <th data-filter="source">Source</th>
284
+ <th>Identifier</th>
285
+ <th data-filter="method">Method</th>
286
+ <th>Resolution</th>
287
+ <th>Chain</th>
288
+ <th>Positions</th>
289
+ <th>Links</th>
290
+ <th><!--Download--></th>
291
+ </tr>
292
+ </thead>
293
+ <tbody>
294
+ ${this.data?.map(
295
+ ({
296
+ source,
297
+ id,
298
+ method,
299
+ resolution,
300
+ chain,
301
+ positions,
302
+ downloadLink,
303
+ }) => html`<tr
304
+ data-id="${id}"
305
+ @click="${() => this.onTableRowClick({ id })}"
306
+ >
307
+ <td data-filter="source" data-filter-value="${source}">
308
+ <strong>${source}</strong>
309
+ </td>
310
+ <td>${id}</td>
311
+ <td data-filter="method" data-filter-value="${method}">
312
+ ${method}
313
+ </td>
314
+ <td>${resolution ? resolution.replace('A', 'Å') : ''}</td>
315
+ <td>${chain || ''}</td>
316
+ <td>${positions || ''}</td>
317
+ <td>
318
+ ${source === 'PDB'
319
+ ? html`
320
+ ${PDBLinks.map((pdbLink) => {
321
+ return html`
322
+ <a href="${pdbLink.link}${id}"
323
+ >${pdbLink.name}</a
324
+ >
325
+ `;
326
+ }).reduce(
327
+ (prev, curr) => html` ${prev} · ${curr} `
328
+ )}
329
+ `
330
+ : html`<a href="${alphaFoldLink}${this.accession}"
331
+ >AlphaFold</a
332
+ >`}
333
+ </td>
334
+ <td>
335
+ ${downloadLink
336
+ ? html`<a href="${downloadLink}" class="download-link"
337
+ >${svg`${unsafeHTML(downloadIcon)}`}</a
338
+ >`
339
+ : ''}
340
+ </td>
341
+ </tr>`
342
+ )}
343
+ </tbody>
344
+ </table>
345
+ </protvista-datatable>`
346
+ : html``}
341
347
  ${this.loading
342
348
  ? html`<div class="protvista-loader">
343
349
  ${svg`${unsafeHTML(loaderIcon)}`}