@teipublisher/pb-components 2.22.2 → 2.23.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/CHANGELOG.md +14 -0
- package/dist/demo/demos.json +2 -1
- package/dist/demo/pb-facsimile-3.html +71 -0
- package/dist/pb-components-bundle.js +74 -51
- package/dist/pb-elements.json +26 -0
- package/package.json +1 -1
- package/pb-elements.json +26 -0
- package/src/authority/anton.js +3 -1
- package/src/pb-facsimile.js +69 -9
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,17 @@
|
|
|
1
|
+
## [2.23.1](https://github.com/eeditiones/tei-publisher-components/compare/v2.23.0...v2.23.1) (2024-05-16)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* **pb-authority-lookup, anton:** avoid error if json.data.location == null ([d06a34a](https://github.com/eeditiones/tei-publisher-components/commit/d06a34acc923b80b3b788bef5fa6fb2aecd18a35))
|
|
7
|
+
|
|
8
|
+
# [2.23.0](https://github.com/eeditiones/tei-publisher-components/compare/v2.22.2...v2.23.0) (2024-05-15)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Features
|
|
12
|
+
|
|
13
|
+
* **pb-facsimile:** added option to add download icon to trigger download of current viewport. Added a demo for the feature ([0233c83](https://github.com/eeditiones/tei-publisher-components/commit/0233c8333e9e78ed529a21361e358974c1cecf46))
|
|
14
|
+
|
|
1
15
|
## [2.22.2](https://github.com/eeditiones/tei-publisher-components/compare/v2.22.1...v2.22.2) (2024-05-02)
|
|
2
16
|
|
|
3
17
|
|
package/dist/demo/demos.json
CHANGED
|
@@ -40,7 +40,8 @@
|
|
|
40
40
|
},
|
|
41
41
|
"pb-facsimile": {
|
|
42
42
|
"demo/pb-facsimile.html": "Demo",
|
|
43
|
-
"demo/pb-facsimile-2.html": "Align text page with facsimile"
|
|
43
|
+
"demo/pb-facsimile-2.html": "Align text page with facsimile",
|
|
44
|
+
"demo/pb-facsimile-3.html": "With Download Button"
|
|
44
45
|
},
|
|
45
46
|
"pb-image-strip": {
|
|
46
47
|
"demo/pb-image-strip-view.html": "Demo with pb-view",
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
<html>
|
|
2
|
+
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="utf-8" />
|
|
5
|
+
<meta name="viewport" content="width=device-width, minimum-scale=1, initial-scale=1, user-scalable=yes" />
|
|
6
|
+
|
|
7
|
+
<title>pb-view Demo</title>
|
|
8
|
+
<script src="https://cdn.jsdelivr.net/npm/@webcomponents/webcomponentsjs/webcomponents-loader.js"></script><script type="module" src="../pb-components-bundle.js"></script>
|
|
9
|
+
</head>
|
|
10
|
+
|
|
11
|
+
<body>
|
|
12
|
+
<pb-demo-snippet>
|
|
13
|
+
<template>
|
|
14
|
+
<style type="text/css">
|
|
15
|
+
body {
|
|
16
|
+
--paper-fab-background: #35424b;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
main {
|
|
20
|
+
position: relative;
|
|
21
|
+
height: 70vh;
|
|
22
|
+
display: flex;
|
|
23
|
+
flex-direction: row;
|
|
24
|
+
justify-content: flex-start;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
pb-navigation {
|
|
28
|
+
position: absolute;
|
|
29
|
+
bottom: 45%;
|
|
30
|
+
--paper-fab-background: #35424b;
|
|
31
|
+
color: white;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
pb-navigation[direction=backward] {
|
|
35
|
+
left: 20px;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
pb-navigation[direction=forward] {
|
|
39
|
+
right: 20px;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
pb-facsimile {
|
|
43
|
+
flex: 1 1;
|
|
44
|
+
max-width: 50vw;
|
|
45
|
+
margin-right: 20px;
|
|
46
|
+
}
|
|
47
|
+
</style>
|
|
48
|
+
<pb-page endpoint="https://teipublisher.com/exist/apps/tei-publisher" api-version="1.0.0" url-path="query">
|
|
49
|
+
<pb-document id="document1" path="test/cortes_to_dantiscus.xml" odd="dantiscus"></pb-document>
|
|
50
|
+
<main>
|
|
51
|
+
<pb-facsimile base-uri="https://apps.existsolutions.com/cantaloupe/iiif/2/" default-zoom-level="0"
|
|
52
|
+
show-navigator show-navigation-control show-home-control show-download-control subscribe="transcription">
|
|
53
|
+
</pb-facsimile>
|
|
54
|
+
|
|
55
|
+
<!-- Navigate to previous page -->
|
|
56
|
+
<pb-navigation direction="backward" keyboard="left">
|
|
57
|
+
<paper-fab icon="icons:chevron-left"></paper-fab>
|
|
58
|
+
</pb-navigation>
|
|
59
|
+
<pb-view id="view1" src="document1" view="page" xpath="//text[@type='source']" append-footnotes>
|
|
60
|
+
</pb-view>
|
|
61
|
+
<!-- Navigate to next page -->
|
|
62
|
+
<pb-navigation direction="forward" keyboard="right">
|
|
63
|
+
<paper-fab icon="icons:chevron-right"></paper-fab>
|
|
64
|
+
</pb-navigation>
|
|
65
|
+
</main>
|
|
66
|
+
</pb-page>
|
|
67
|
+
</template>
|
|
68
|
+
</pb-demo-snippet>
|
|
69
|
+
</body>
|
|
70
|
+
|
|
71
|
+
</html>
|