@teipublisher/pb-components 1.30.1 → 1.31.0

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 CHANGED
@@ -1,3 +1,37 @@
1
+ # [1.31.0](https://github.com/eeditiones/tei-publisher-components/compare/v1.30.4...v1.31.0) (2022-01-24)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * **pb-leaflet-map:** if there's only one location marked, show it on the map using the defined zoom level and not the whole world ([88ca01d](https://github.com/eeditiones/tei-publisher-components/commit/88ca01d24ce9ea1e756f9707eed0d1e74ae14ffc))
7
+
8
+
9
+ ### Features
10
+
11
+ * **pb-custom-form:** add auto-submit feature: selected form elements will automatically submit the form when changed ([b34385a](https://github.com/eeditiones/tei-publisher-components/commit/b34385a768281964c8f571ebc96d6712276fe7c9))
12
+ * **pb-split-list:** new component to display lists organized into categories (e.g. letter of the alphabet, topic, country ...) ([0060931](https://github.com/eeditiones/tei-publisher-components/commit/00609317946f6f2750d9c504d9775f5191835868))
13
+
14
+ ## [1.30.4](https://github.com/eeditiones/tei-publisher-components/compare/v1.30.3...v1.30.4) (2022-01-19)
15
+
16
+
17
+ ### Bug Fixes
18
+
19
+ * **pb-leaflet-map:** fix zoom if there's just one location; automatically emit pb-geolocation event ([7259290](https://github.com/eeditiones/tei-publisher-components/commit/72592902db5fda2ddbdae58e8e152e2cc2508205))
20
+
21
+ ## [1.30.3](https://github.com/eeditiones/tei-publisher-components/compare/v1.30.2...v1.30.3) (2021-12-19)
22
+
23
+
24
+ ### Bug Fixes
25
+
26
+ * **pb-select-feature:** inherit width for dropdown ([29f0079](https://github.com/eeditiones/tei-publisher-components/commit/29f0079dbe35a403921d24fa2aa7e7d413a91088))
27
+
28
+ ## [1.30.2](https://github.com/eeditiones/tei-publisher-components/compare/v1.30.1...v1.30.2) (2021-12-12)
29
+
30
+
31
+ ### Bug Fixes
32
+
33
+ * **pb-view-annotate:** do not throw errors when batch-applying annotations ([5432c64](https://github.com/eeditiones/tei-publisher-components/commit/5432c64812276047eabf6fad0d0b96435c10669d))
34
+
1
35
  ## [1.30.1](https://github.com/eeditiones/tei-publisher-components/compare/v1.30.0...v1.30.1) (2021-12-04)
2
36
 
3
37
 
package/Dockerfile CHANGED
@@ -1,4 +1,4 @@
1
- ARG EXIST_VERSION=5.3.0
1
+ ARG EXIST_VERSION=5.3.1
2
2
 
3
3
  # START STAGE 1
4
4
  FROM openjdk:8-jdk-slim as builder
@@ -151,5 +151,8 @@
151
151
  },
152
152
  "pb-table-grid": {
153
153
  "demo/pb-table-grid.html": "Demo"
154
+ },
155
+ "pb-custom-form": {
156
+ "demo/pb-custom-form.html": "Demo"
154
157
  }
155
158
  }
@@ -0,0 +1,61 @@
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-split-list Demo</title>
7
+ <script src="https://unpkg.com/@webcomponents/webcomponentsjs@2.4.3/webcomponents-loader.js"></script><script type="module" src="../pb-components-bundle.js"></script>
8
+ </head>
9
+
10
+ <body>
11
+ <pb-demo-snippet>
12
+ <template>
13
+ <style>
14
+ fieldset {
15
+ display: flex;
16
+ align-items: center;
17
+ border: 0;
18
+ }
19
+ fieldset * {
20
+ margin-right: 20px;
21
+ }
22
+ </style>
23
+ <pb-page endpoint="https://teipublisher.com/exist/apps/tei-publisher">
24
+ <pb-custom-form auto-submit="paper-input,paper-icon-button,input,select,paper-dropdown-menu">
25
+ <paper-input name="search" label="Search">
26
+ <paper-icon-button icon="search" slot="suffix"></paper-icon-button>
27
+ </paper-input>
28
+ <fieldset>
29
+ <label>
30
+ <input type="radio" name="view" value="correspondents"> Korrespondenten
31
+ </label>
32
+ <label>
33
+ <input type="radio" name="view" value="mentions"> Korrespondenten und erwähnte Personen
34
+ </label>
35
+ </fieldset>
36
+ <fieldset>
37
+ <select name="type">
38
+ <option value="one">One</option>
39
+ <option value="two">Two</option>
40
+ </select>
41
+ <paper-dropdown-menu id="sort" label="Sort" name="sort">
42
+ <paper-listbox slot="dropdown-content" class="dropdown-content" attr-for-selected="value">
43
+ <paper-item value="author">Author</paper-item>
44
+ <paper-item value="title">Title</paper-item>
45
+ </paper-listbox>
46
+ </paper-dropdown-menu>
47
+ </fieldset>
48
+ </pb-custom-form>
49
+ <pre id="output"></pre>
50
+ </pb-page>
51
+ <script>
52
+ window.addEventListener('WebComponentsReady', () => {
53
+ pbEvents.subscribe('pb-submit', null, (ev) => {
54
+ document.getElementById('output').innerText = JSON.stringify(ev.detail.params);
55
+ });
56
+ });
57
+ </script>
58
+ </template>
59
+ </pb-demo-snippet>
60
+ </body>
61
+ </html>
@@ -26,7 +26,7 @@
26
26
  <main>
27
27
  <ul id="locations">
28
28
  <li>
29
- <pb-geolocation event="click" longitude="8.1499728" latitude="47.9011491">
29
+ <pb-geolocation event="click" longitude="8.1499728" latitude="47.9011491" auto>
30
30
  Titisee
31
31
  <template slot="popup">
32
32
  <p>Der <b>Titisee</b> ist ein <a href="https://de.wikipedia.org/wiki/See" title="See">See</a> im südlichen <a href="https://de.wikipedia.org/wiki/Schwarzwald" title="Schwarzwald">Schwarzwald</a> in <a href="https://de.wikipedia.org/wiki/Baden-W%C3%BCrttemberg" title="Baden-Württemberg">Baden-Württemberg</a>.</p>
@@ -35,7 +35,7 @@
35
35
  </pb-geolocation>
36
36
  </li>
37
37
  <li>
38
- <pb-geolocation event="click" longitude="8.035903639726621" latitude="47.860249912035364">
38
+ <pb-geolocation event="click" longitude="8.035903639726621" latitude="47.860249912035364" auto>
39
39
  Feldberg
40
40
  <template slot="popup">
41
41
  <p>Der <b>Feldberg</b> ist mit <span style="border-width:0px; padding:0px; margin:0px;">1493 <abbr title="Meter über Normalhöhennull">m ü. NHN</abbr></span></sup> der höchste Berg in <a href="https://de.wikipedia.org/wiki/Baden-W%C3%BCrttemberg" title="Baden-Württemberg">Baden-Württemberg</a>.</p>
@@ -44,7 +44,7 @@
44
44
  </pb-geolocation>
45
45
  </li>
46
46
  <li>
47
- <pb-geolocation event="click" longitude="8.125068739930907" latitude="47.97215106146882">
47
+ <pb-geolocation event="click" longitude="8.125068739930907" latitude="47.97215106146882" auto>
48
48
  Thurner
49
49
  <template slot="popup">
50
50
  <p>Der <b>Thurner</b> ist eine Passhöhe und ein <a href="https://de.wikipedia.org/wiki/Weiler" title="Weiler">Weiler</a> im Südosten der Gemeinde <a href="https://de.wikipedia.org/wiki/St._M%C3%A4rgen" title="St. Märgen">St. Märgen</a>, Ortsteil dieser Gemeinde im <a href="https://de.wikipedia.org/wiki/Landkreis_Breisgau-Hochschwarzwald" title="Landkreis Breisgau-Hochschwarzwald">Landkreis Breisgau-Hochschwarzwald</a> in <a href="https://de.wikipedia.org/wiki/Baden-W%C3%BCrttemberg" title="Baden-Württemberg">Baden-Württemberg</a> (<a href="https://de.wikipedia.org/wiki/Deutschland" title="Deutschland">Deutschland</a>) auf einer kleinen Hochebene, auf die Straßensteigen aus den Talsystemen von <a href="https://de.wikipedia.org/wiki/Zartenbach" class="mw-redirect" title="Zartenbach">Zartenbach</a> im Süden, <a href="https://de.wikipedia.org/wiki/Wagensteigbach" title="Wagensteigbach">Wagensteigbach</a> im Nordosten, <a href="https://de.wikipedia.org/wiki/Wilde_Gutach" title="Wilde Gutach">Wilder Gutach</a> im Norden, <a href="https://de.wikipedia.org/wiki/Urach_(Hammerbach)" title="Urach (Hammerbach)">Urach</a> im Osten und <a href="https://de.wikipedia.org/wiki/Wutach" title="Wutach">Wutach</a> im Südosten führen.</p>
@@ -52,6 +52,15 @@
52
52
  </template>
53
53
  </pb-geolocation>
54
54
  </li>
55
+ <li>
56
+ <pb-geolocation event="click" longitude="15.4315432" latitude="50.8143245" auto>
57
+ Szklarska Poręba
58
+ <template slot="popup">
59
+ <p>Szklarska Poręba [ˈʂklarska pɔˈrɛmba] (German: Schreiberhau) is a town in Jelenia Góra County, Lower Silesian Voivodeship, in south-western Poland. The town has a population of around 6,500. It is a popular ski resort.</p>
60
+ <p>Source: <a href="https://en.wikipedia.org/wiki/Szklarska_Por%C4%99ba">Wikipedia</a></p>
61
+ </template>
62
+ </pb-geolocation>
63
+ </li>
55
64
  </ul>
56
65
  <pb-leaflet-map id="map" zoom="14" access-token="pk.eyJ1Ijoid29sZmdhbmdtbSIsImEiOiJjam1kMjVpMnUwNm9wM3JwMzdsNGhhcnZ0In0.v65crewF-dkNsPF3o1Q4uw">
57
66
  <pb-map-layer show base label="HikeBike Map" url="https://tiles.wmflabs.org/hikebike/{z}/{x}/{y}.png" max-zoom="19"
@@ -70,20 +79,6 @@
70
79
  </pb-leaflet-map>
71
80
  </main>
72
81
  </pb-page>
73
- <script type="text/javascript">
74
- /**
75
- * Manually initialize map markers once components are ready.
76
- * Not necessary if the pb-geolocation appear inside a component
77
- * which does itself send the `pb-update` event, e.g. `pb-view`.
78
- */
79
- document.addEventListener('WebComponentsReady', () => {
80
- document.dispatchEvent(new CustomEvent('pb-update', {
81
- detail: {
82
- root: document.getElementById('locations')
83
- }
84
- }));
85
- });
86
- </script>
87
82
  </template>
88
83
  </pb-demo-snippet>
89
84
  </body>