@teipublisher/pb-components 1.43.5 → 1.44.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/.github/workflows/main.yml +22 -0
- package/CHANGELOG.md +14 -0
- package/dist/demo/pb-facsimile.html +1 -1
- package/dist/demo/pb-table-grid.html +16 -16
- package/dist/demo/pb-view2.html +135 -135
- package/dist/demo/redirect.html +4 -0
- package/dist/pb-code-editor.js +1 -1
- package/dist/pb-components-bundle.js +95 -104
- package/dist/pb-edit-app.js +1 -1
- package/dist/pb-elements.json +1026 -691
- package/dist/{pb-i18n-dc551878.js → pb-i18n-3963b098.js} +1 -1
- package/dist/pb-leaflet-map.js +1 -1
- package/dist/pb-odd-editor.js +1 -1
- package/dist/{pb-message-fbc1b645.js → vaadin-element-mixin-08cf11b5.js} +21 -19
- package/gh-pages.js +27 -0
- package/i18n/common/en.json +7 -2
- package/package.json +5 -3
- package/pb-elements.json +1026 -691
- package/src/pb-ajax.js +37 -19
- package/src/pb-browse-docs.js +520 -520
- package/src/pb-browse.js +77 -0
- package/src/pb-components.js +1 -0
- package/src/pb-facsimile.js +10 -2
- package/src/pb-message.js +6 -10
- package/src/pb-mixin.js +542 -542
- package/src/pb-page.js +399 -399
- package/src/pb-split-list.js +226 -188
- package/src/pb-table-grid.js +218 -218
- package/src/pb-timeline.js +31 -1
- package/src/pb-view.js +1366 -1366
- /package/dist/{pb-mixin-f8b22e51.js → pb-mixin-88125cb2.js} +0 -0
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
on:
|
|
2
|
+
push:
|
|
3
|
+
tags:
|
|
4
|
+
- '*'
|
|
5
|
+
workflow_dispatch:
|
|
6
|
+
name: Deploy to GitHub Pages
|
|
7
|
+
jobs:
|
|
8
|
+
build:
|
|
9
|
+
runs-on: ubuntu-latest
|
|
10
|
+
steps:
|
|
11
|
+
- uses: actions/checkout@v2
|
|
12
|
+
- name: Setup Node.js environment
|
|
13
|
+
uses: actions/setup-node@v3.4.1
|
|
14
|
+
- run: npm ci
|
|
15
|
+
- run: npm run gh-pages
|
|
16
|
+
- name: Deploy to gh-pages
|
|
17
|
+
uses: peaceiris/actions-gh-pages@v3
|
|
18
|
+
with:
|
|
19
|
+
github_token: ${{ secrets.GITHUB_TOKEN }}
|
|
20
|
+
publish_dir: ./docs
|
|
21
|
+
keep_files: true
|
|
22
|
+
cname: cdn.tei-publisher.com
|
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,17 @@
|
|
|
1
|
+
## [1.44.1](https://github.com/eeditiones/tei-publisher-components/compare/v1.44.0...v1.44.1) (2023-03-15)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* **cdn:** dynamic redirect for publisher cdn ([16b3d51](https://github.com/eeditiones/tei-publisher-components/commit/16b3d51e0997a4f114b4a8c524602e583c458c3e))
|
|
7
|
+
|
|
8
|
+
# [1.44.0](https://github.com/eeditiones/tei-publisher-components/compare/v1.43.5...v1.44.0) (2023-03-09)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Features
|
|
12
|
+
|
|
13
|
+
* **pb-browse:** pb-browse is a stripped-down and simplified replacement for pb-browse-docs ([df165b6](https://github.com/eeditiones/tei-publisher-components/commit/df165b6e9347b9bd603eea06a647bd76e800e097))
|
|
14
|
+
|
|
1
15
|
## [1.43.5](https://github.com/eeditiones/tei-publisher-components/compare/v1.43.4...v1.43.5) (2023-03-01)
|
|
2
16
|
|
|
3
17
|
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
<pb-facsimile base-uri="https://apps.existsolutions.com/cantaloupe/iiif/2/"
|
|
44
44
|
facsimiles='["15929_000_IDL5772_BOss12034_IIIp79.jpg", "15929_000_IDL5772_BOss12034_IIIp80.jpg", "15929_000_IDL5772_BOss12034_IIIp81.jpg", "15929_000_IDL5772_BOss12034_IIIp82.jpg",
|
|
45
45
|
"does-not-exist.jpg"]'
|
|
46
|
-
default-zoom-level="0" show-navigator reference-strip
|
|
46
|
+
default-zoom-level="0" show-navigator show-sequence-control reference-strip
|
|
47
47
|
show-navigation-control show-home-control show-rotation-control>
|
|
48
48
|
<h3 slot="before">Facsimile Viewer Test</h3>
|
|
49
49
|
<div slot="after">Status: <span id="status"></span></div>
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
<html>
|
|
2
|
-
<head>
|
|
3
|
-
<title>Using pb-table-grid</title>
|
|
4
|
-
<script src="https://unpkg.com/@webcomponents/webcomponentsjs@2.4.3/webcomponents-loader.js"></script><script type="module" src="../pb-components-bundle.js"></script>
|
|
5
|
-
</head>
|
|
6
|
-
<body>
|
|
7
|
-
<h1>Using pb-table-grid</h1>
|
|
8
|
-
|
|
9
|
-
<pb-page theme="components.css">
|
|
10
|
-
<pb-table-grid class="table-grid" source="./people.json" css-path="/css/gridjs" resizable>
|
|
11
|
-
<pb-table-column label="Name" property="name"></pb-table-column>
|
|
12
|
-
<pb-table-column label="Born" property="birth"></pb-table-column>
|
|
13
|
-
<pb-table-column label="Died" property="death"></pb-table-column>
|
|
14
|
-
</pb-table-grid>
|
|
15
|
-
</pb-page>
|
|
16
|
-
</body>
|
|
1
|
+
<html>
|
|
2
|
+
<head>
|
|
3
|
+
<title>Using pb-table-grid</title>
|
|
4
|
+
<script src="https://unpkg.com/@webcomponents/webcomponentsjs@2.4.3/webcomponents-loader.js"></script><script type="module" src="../pb-components-bundle.js"></script>
|
|
5
|
+
</head>
|
|
6
|
+
<body>
|
|
7
|
+
<h1>Using pb-table-grid</h1>
|
|
8
|
+
|
|
9
|
+
<pb-page theme="components.css">
|
|
10
|
+
<pb-table-grid class="table-grid" source="./people.json" css-path="/css/gridjs" resizable>
|
|
11
|
+
<pb-table-column label="Name" property="name"></pb-table-column>
|
|
12
|
+
<pb-table-column label="Born" property="birth"></pb-table-column>
|
|
13
|
+
<pb-table-column label="Died" property="death"></pb-table-column>
|
|
14
|
+
</pb-table-grid>
|
|
15
|
+
</pb-page>
|
|
16
|
+
</body>
|
|
17
17
|
</html>
|
package/dist/demo/pb-view2.html
CHANGED
|
@@ -1,135 +1,135 @@
|
|
|
1
|
-
<html>
|
|
2
|
-
<head>
|
|
3
|
-
<meta charset="utf-8"/>
|
|
4
|
-
<meta name="viewport" content="width=device-width, minimum-scale=1, initial-scale=1, user-scalable=yes"/>
|
|
5
|
-
|
|
6
|
-
<title>pb-view Demo</title>
|
|
7
|
-
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Oswald">
|
|
8
|
-
<link rel="Stylesheet" href="demo.css">
|
|
9
|
-
<script src="https://unpkg.com/@webcomponents/webcomponentsjs@2.4.3/webcomponents-loader.js"></script><script type="module" src="../pb-components-bundle.js"></script>
|
|
10
|
-
</head>
|
|
11
|
-
|
|
12
|
-
<body>
|
|
13
|
-
<pb-demo-snippet>
|
|
14
|
-
<template>
|
|
15
|
-
<style type="text/css">
|
|
16
|
-
pb-page {
|
|
17
|
-
position: relative;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
main {
|
|
21
|
-
display: grid;
|
|
22
|
-
height: calc(100vh - 128px);
|
|
23
|
-
grid-template-columns: 360px 1fr;
|
|
24
|
-
grid-template-rows: auto 1fr auto;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
.breadcrumbs {
|
|
28
|
-
font-family: var(--pb-base-font-family);
|
|
29
|
-
--pb-view-max-width: auto;
|
|
30
|
-
grid-column: 2 / 2;
|
|
31
|
-
grid-row: 1 / 1;
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
#view1 {
|
|
35
|
-
grid-column: 2 / 2;
|
|
36
|
-
grid-row: 2 / 2;
|
|
37
|
-
overflow: auto;
|
|
38
|
-
font-family: var(--pb-base-font-family);
|
|
39
|
-
font-size: 20px;
|
|
40
|
-
padding: 0;
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
footer {
|
|
44
|
-
grid-column: 2 / 2;
|
|
45
|
-
grid-row: 3 / 3;
|
|
46
|
-
background-color: var(--pb-toolbar-background-color);
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
footer pb-navigation[direction=forward] {
|
|
50
|
-
float: right;
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
.toc {
|
|
54
|
-
grid-column: 1 / 1;
|
|
55
|
-
grid-row: 1 / span 3;
|
|
56
|
-
overflow: auto;
|
|
57
|
-
font-size: var(--pb-base-font-size);
|
|
58
|
-
background-color: var(--pb-drawer-background-color);
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
.toc [slot="collapse-trigger"] pb-link {
|
|
62
|
-
display: block;
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
.toc pb-link a {
|
|
66
|
-
text-decoration: none;
|
|
67
|
-
color: #101010;
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
.toc li pb-link {
|
|
71
|
-
display: block;
|
|
72
|
-
font-family: var(--pb-base-font-family);
|
|
73
|
-
--pb-link-font-family: var(--pb-base-font-family);
|
|
74
|
-
margin-left: 0;
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
.toc li pb-link.active a {
|
|
78
|
-
color: #d07f00;
|
|
79
|
-
text-decoration: underline;
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
.toc ul li {
|
|
83
|
-
font-weight: bold;
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
.toc ul {
|
|
87
|
-
list-style-type: none;
|
|
88
|
-
margin: 0;
|
|
89
|
-
padding: 0;
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
.toc ul ul {
|
|
93
|
-
margin-left: 0;
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
.toc ul ul li {
|
|
97
|
-
font-weight: normal;
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
.toc ul ul {
|
|
101
|
-
margin-left: 14px;
|
|
102
|
-
}
|
|
103
|
-
</style>
|
|
104
|
-
<pb-page endpoint="https://teipublisher.com/exist/apps/tei-publisher">
|
|
105
|
-
<pb-document id="document1" path="doc/documentation.xml" odd="docbook" view="div"></pb-document>
|
|
106
|
-
|
|
107
|
-
<pb-progress></pb-progress>
|
|
108
|
-
<main>
|
|
109
|
-
<aside class="toc">
|
|
110
|
-
<pb-load url="api/document/{doc}/contents?target=transcription&icons=false" expand src="document1" auto="auto"><pb-i18n key="dialogs.loading">Loading</pb-i18n></pb-load>
|
|
111
|
-
</aside>
|
|
112
|
-
<pb-view class="breadcrumbs" src="document1">
|
|
113
|
-
<pb-param name="mode" value="breadcrumbs"/>
|
|
114
|
-
</pb-view>
|
|
115
|
-
<pb-view id="view1" src="document1" append-footnotes fix-links emit="transcription" subscribe="transcription"></pb-view>
|
|
116
|
-
<footer>
|
|
117
|
-
<!-- Navigate to next page -->
|
|
118
|
-
<pb-navigation direction="forward" keyboard="right" emit="transcription" subscribe="transcription">
|
|
119
|
-
<paper-button>
|
|
120
|
-
<iron-icon icon="icons:chevron-right"></iron-icon>
|
|
121
|
-
</paper-button>
|
|
122
|
-
</pb-navigation>
|
|
123
|
-
<!-- Navigate to previous page -->
|
|
124
|
-
<pb-navigation direction="backward" keyboard="left" emit="transcription" subscribe="transcription">
|
|
125
|
-
<paper-button>
|
|
126
|
-
<iron-icon icon="icons:chevron-left"></iron-icon>
|
|
127
|
-
</paper-button>
|
|
128
|
-
</pb-navigation>
|
|
129
|
-
</footer>
|
|
130
|
-
</main>
|
|
131
|
-
</pb-page>
|
|
132
|
-
</template>
|
|
133
|
-
</pb-demo-snippet>
|
|
134
|
-
</body>
|
|
135
|
-
</html>
|
|
1
|
+
<html>
|
|
2
|
+
<head>
|
|
3
|
+
<meta charset="utf-8"/>
|
|
4
|
+
<meta name="viewport" content="width=device-width, minimum-scale=1, initial-scale=1, user-scalable=yes"/>
|
|
5
|
+
|
|
6
|
+
<title>pb-view Demo</title>
|
|
7
|
+
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Oswald">
|
|
8
|
+
<link rel="Stylesheet" href="demo.css">
|
|
9
|
+
<script src="https://unpkg.com/@webcomponents/webcomponentsjs@2.4.3/webcomponents-loader.js"></script><script type="module" src="../pb-components-bundle.js"></script>
|
|
10
|
+
</head>
|
|
11
|
+
|
|
12
|
+
<body>
|
|
13
|
+
<pb-demo-snippet>
|
|
14
|
+
<template>
|
|
15
|
+
<style type="text/css">
|
|
16
|
+
pb-page {
|
|
17
|
+
position: relative;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
main {
|
|
21
|
+
display: grid;
|
|
22
|
+
height: calc(100vh - 128px);
|
|
23
|
+
grid-template-columns: 360px 1fr;
|
|
24
|
+
grid-template-rows: auto 1fr auto;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.breadcrumbs {
|
|
28
|
+
font-family: var(--pb-base-font-family);
|
|
29
|
+
--pb-view-max-width: auto;
|
|
30
|
+
grid-column: 2 / 2;
|
|
31
|
+
grid-row: 1 / 1;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
#view1 {
|
|
35
|
+
grid-column: 2 / 2;
|
|
36
|
+
grid-row: 2 / 2;
|
|
37
|
+
overflow: auto;
|
|
38
|
+
font-family: var(--pb-base-font-family);
|
|
39
|
+
font-size: 20px;
|
|
40
|
+
padding: 0;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
footer {
|
|
44
|
+
grid-column: 2 / 2;
|
|
45
|
+
grid-row: 3 / 3;
|
|
46
|
+
background-color: var(--pb-toolbar-background-color);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
footer pb-navigation[direction=forward] {
|
|
50
|
+
float: right;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
.toc {
|
|
54
|
+
grid-column: 1 / 1;
|
|
55
|
+
grid-row: 1 / span 3;
|
|
56
|
+
overflow: auto;
|
|
57
|
+
font-size: var(--pb-base-font-size);
|
|
58
|
+
background-color: var(--pb-drawer-background-color);
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
.toc [slot="collapse-trigger"] pb-link {
|
|
62
|
+
display: block;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
.toc pb-link a {
|
|
66
|
+
text-decoration: none;
|
|
67
|
+
color: #101010;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
.toc li pb-link {
|
|
71
|
+
display: block;
|
|
72
|
+
font-family: var(--pb-base-font-family);
|
|
73
|
+
--pb-link-font-family: var(--pb-base-font-family);
|
|
74
|
+
margin-left: 0;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
.toc li pb-link.active a {
|
|
78
|
+
color: #d07f00;
|
|
79
|
+
text-decoration: underline;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
.toc ul li {
|
|
83
|
+
font-weight: bold;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
.toc ul {
|
|
87
|
+
list-style-type: none;
|
|
88
|
+
margin: 0;
|
|
89
|
+
padding: 0;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
.toc ul ul {
|
|
93
|
+
margin-left: 0;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
.toc ul ul li {
|
|
97
|
+
font-weight: normal;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
.toc ul ul {
|
|
101
|
+
margin-left: 14px;
|
|
102
|
+
}
|
|
103
|
+
</style>
|
|
104
|
+
<pb-page endpoint="https://teipublisher.com/exist/apps/tei-publisher">
|
|
105
|
+
<pb-document id="document1" path="doc/documentation.xml" odd="docbook" view="div"></pb-document>
|
|
106
|
+
|
|
107
|
+
<pb-progress></pb-progress>
|
|
108
|
+
<main>
|
|
109
|
+
<aside class="toc">
|
|
110
|
+
<pb-load url="api/document/{doc}/contents?target=transcription&icons=false" expand src="document1" auto="auto"><pb-i18n key="dialogs.loading">Loading</pb-i18n></pb-load>
|
|
111
|
+
</aside>
|
|
112
|
+
<pb-view class="breadcrumbs" src="document1">
|
|
113
|
+
<pb-param name="mode" value="breadcrumbs"/>
|
|
114
|
+
</pb-view>
|
|
115
|
+
<pb-view id="view1" src="document1" append-footnotes fix-links emit="transcription" subscribe="transcription"></pb-view>
|
|
116
|
+
<footer>
|
|
117
|
+
<!-- Navigate to next page -->
|
|
118
|
+
<pb-navigation direction="forward" keyboard="right" emit="transcription" subscribe="transcription">
|
|
119
|
+
<paper-button>
|
|
120
|
+
<iron-icon icon="icons:chevron-right"></iron-icon>
|
|
121
|
+
</paper-button>
|
|
122
|
+
</pb-navigation>
|
|
123
|
+
<!-- Navigate to previous page -->
|
|
124
|
+
<pb-navigation direction="backward" keyboard="left" emit="transcription" subscribe="transcription">
|
|
125
|
+
<paper-button>
|
|
126
|
+
<iron-icon icon="icons:chevron-left"></iron-icon>
|
|
127
|
+
</paper-button>
|
|
128
|
+
</pb-navigation>
|
|
129
|
+
</footer>
|
|
130
|
+
</main>
|
|
131
|
+
</pb-page>
|
|
132
|
+
</template>
|
|
133
|
+
</pb-demo-snippet>
|
|
134
|
+
</body>
|
|
135
|
+
</html>
|
package/dist/pb-code-editor.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{p as e,L as t,h as i,c as r}from"./pb-mixin-
|
|
1
|
+
import{p as e,L as t,h as i,c as r}from"./pb-mixin-88125cb2.js";import{t as o}from"./pb-i18n-3963b098.js";import"./jinn-codemirror-9718e0e0.js";class s extends(e(t)){static get properties(){return Object.assign(Object.assign({},super.properties),{},{code:{type:String,reflect:!0},mode:{type:String},label:{type:String},placeholder:{type:String},tabSize:{type:Number},linter:{attribute:!0}})}constructor(){super(),this.code="",this.mode="xml",this.placeholder="odd.editor.model.empty",this.tabSize=2,this.label="",this.linter="",this._editor=null}connectedCallback(){super.connectedCallback()}firstUpdated(){super.firstUpdated(),this._editor=this.shadowRoot.getElementById("editor")}render(){return i`
|
|
2
2
|
<div class="label">${this.label}</div>
|
|
3
3
|
<jinn-codemirror id="editor" mode="${this.mode}" code="${this.code}" placeholder="${o(this.placeholder)}"></jinn-codemirror>
|
|
4
4
|
`}getSource(){return this._editor?this._editor.value:""}_setCode(){this.dispatchEvent(new CustomEvent("code-changed",{composed:!0,bubbles:!0,detail:{code:this.getSource()}}))}refresh(){}static get styles(){return r`
|