@teipublisher/pb-components 2.26.0-next-3.12 → 2.26.0-next-3.14

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.
Files changed (136) hide show
  1. package/.github/workflows/main.yml +3 -3
  2. package/.github/workflows/node.js.yml +3 -3
  3. package/.github/workflows/release.js.yml +3 -3
  4. package/CHANGELOG.md +43 -0
  5. package/Dockerfile +78 -70
  6. package/css/components.css +5 -5
  7. package/dist/demo/pb-drawer2.html +1 -1
  8. package/dist/demo/pb-grid.html +19 -6
  9. package/dist/demo/pb-leaflet-map.html +1 -1
  10. package/dist/demo/pb-progress.html +2 -2
  11. package/dist/demo/pb-repeat.html +1 -3
  12. package/dist/demo/pb-view3.html +1 -1
  13. package/dist/{iron-form-277f9d42.js → iron-form-78b43d38.js} +1 -1
  14. package/dist/{paper-checkbox-4f410b1f.js → paper-checkbox-d16f23be.js} +44 -44
  15. package/dist/{paper-icon-button-0fb125c4.js → paper-icon-button-2cd9e0b4.js} +3 -3
  16. package/dist/{paper-listbox-c2468542.js → paper-listbox-2ad5c882.js} +7 -7
  17. package/dist/pb-code-editor.js +25 -20
  18. package/dist/pb-component-docs.js +58 -54
  19. package/dist/pb-components-bundle.js +2057 -2351
  20. package/dist/pb-edit-app.js +167 -107
  21. package/dist/pb-elements.json +45 -45
  22. package/dist/{pb-i18n-0611135a.js → pb-i18n-4cc00bfe.js} +1 -1
  23. package/dist/pb-leaflet-map.js +23 -23
  24. package/dist/pb-mei.js +56 -41
  25. package/dist/{pb-mixin-b1caa22e.js → pb-mixin-886ece32.js} +1 -1
  26. package/dist/pb-odd-editor.js +923 -756
  27. package/dist/pb-tify.js +2 -2
  28. package/dist/{vaadin-element-mixin-49ab4037.js → vaadin-element-mixin-c200b196.js} +179 -164
  29. package/gh-pages.js +5 -3
  30. package/i18n/common/pl.json +2 -2
  31. package/lib/openseadragon.min.js +1 -1
  32. package/package.json +2 -2
  33. package/pb-elements.json +45 -45
  34. package/src/assets/components.css +5 -5
  35. package/src/authority/airtable.js +20 -21
  36. package/src/authority/anton.js +129 -129
  37. package/src/authority/custom.js +23 -21
  38. package/src/authority/geonames.js +38 -32
  39. package/src/authority/gnd.js +47 -42
  40. package/src/authority/kbga.js +137 -134
  41. package/src/authority/metagrid.js +44 -46
  42. package/src/authority/reconciliation.js +66 -67
  43. package/src/authority/registry.js +4 -4
  44. package/src/docs/pb-component-docs.js +2 -2
  45. package/src/docs/pb-component-view.js +5 -5
  46. package/src/docs/pb-components-list.js +2 -2
  47. package/src/docs/pb-demo-snippet.js +2 -2
  48. package/src/dts-client.js +299 -297
  49. package/src/dts-select-endpoint.js +90 -82
  50. package/src/parse-date-service.js +184 -135
  51. package/src/pb-ajax.js +150 -146
  52. package/src/pb-authority-lookup.js +183 -146
  53. package/src/pb-autocomplete.js +292 -280
  54. package/src/pb-blacklab-highlight.js +264 -259
  55. package/src/pb-blacklab-results.js +236 -221
  56. package/src/pb-browse-docs.js +540 -475
  57. package/src/pb-browse.js +68 -65
  58. package/src/pb-clipboard.js +79 -76
  59. package/src/pb-code-editor.js +110 -102
  60. package/src/pb-code-highlight.js +209 -204
  61. package/src/pb-codepen.js +79 -72
  62. package/src/pb-collapse.js +212 -207
  63. package/src/pb-combo-box.js +190 -190
  64. package/src/pb-components-bundle.js +1 -1
  65. package/src/pb-custom-form.js +151 -149
  66. package/src/pb-dialog.js +94 -85
  67. package/src/pb-document.js +89 -90
  68. package/src/pb-download.js +210 -198
  69. package/src/pb-drawer.js +145 -148
  70. package/src/pb-edit-app.js +301 -229
  71. package/src/pb-edit-xml.js +98 -96
  72. package/src/pb-events.js +114 -107
  73. package/src/pb-facs-link.js +104 -102
  74. package/src/pb-facsimile.js +419 -414
  75. package/src/pb-formula.js +151 -153
  76. package/src/pb-geolocation.js +129 -131
  77. package/src/pb-grid-action.js +53 -56
  78. package/src/pb-grid.js +231 -228
  79. package/src/pb-highlight.js +140 -140
  80. package/src/pb-hotkeys.js +40 -42
  81. package/src/pb-i18n.js +101 -104
  82. package/src/pb-image-strip.js +84 -78
  83. package/src/pb-lang.js +132 -128
  84. package/src/pb-leaflet-map.js +488 -485
  85. package/src/pb-link.js +126 -124
  86. package/src/pb-load.js +431 -426
  87. package/src/pb-login.js +291 -248
  88. package/src/pb-manage-odds.js +364 -318
  89. package/src/pb-map-icon.js +89 -89
  90. package/src/pb-map-layer.js +85 -85
  91. package/src/pb-markdown.js +90 -99
  92. package/src/pb-media-query.js +74 -72
  93. package/src/pb-mei.js +306 -295
  94. package/src/pb-message.js +144 -144
  95. package/src/pb-mixin.js +269 -264
  96. package/src/pb-navigation.js +80 -82
  97. package/src/pb-observable.js +38 -38
  98. package/src/pb-odd-editor.js +1053 -955
  99. package/src/pb-odd-elementspec-editor.js +348 -297
  100. package/src/pb-odd-model-editor.js +1061 -901
  101. package/src/pb-odd-parameter-editor.js +200 -178
  102. package/src/pb-odd-rendition-editor.js +136 -124
  103. package/src/pb-page.js +431 -421
  104. package/src/pb-paginate.js +202 -190
  105. package/src/pb-panel.js +198 -182
  106. package/src/pb-popover-themes.js +7 -5
  107. package/src/pb-popover.js +296 -287
  108. package/src/pb-print-preview.js +127 -127
  109. package/src/pb-progress.js +51 -51
  110. package/src/pb-repeat.js +105 -104
  111. package/src/pb-restricted.js +84 -77
  112. package/src/pb-search.js +252 -241
  113. package/src/pb-select-feature.js +127 -120
  114. package/src/pb-select-odd.js +132 -124
  115. package/src/pb-select-template.js +89 -78
  116. package/src/pb-select.js +251 -227
  117. package/src/pb-split-list.js +179 -174
  118. package/src/pb-svg.js +80 -79
  119. package/src/pb-table-column.js +54 -54
  120. package/src/pb-table-grid.js +221 -203
  121. package/src/pb-tabs.js +61 -63
  122. package/src/pb-tify.js +154 -154
  123. package/src/pb-timeline.js +271 -229
  124. package/src/pb-toggle-feature.js +182 -175
  125. package/src/pb-upload.js +184 -174
  126. package/src/pb-version.js +30 -30
  127. package/src/pb-view-annotate.js +132 -98
  128. package/src/pb-view.js +1290 -1270
  129. package/src/pb-zoom.js +75 -59
  130. package/src/polymer-hack.js +1 -1
  131. package/src/search-result-service.js +256 -223
  132. package/src/seed-element.js +13 -20
  133. package/src/settings.js +4 -4
  134. package/src/theming.js +96 -96
  135. package/src/urls.js +289 -289
  136. package/src/utils.js +53 -51
@@ -8,11 +8,11 @@ jobs:
8
8
  build:
9
9
  runs-on: ubuntu-latest
10
10
  steps:
11
- - uses: actions/checkout@v4
11
+ - uses: actions/checkout@v5
12
12
  - name: Setup Node.js environment
13
- uses: actions/setup-node@v4
13
+ uses: actions/setup-node@v5
14
14
  with:
15
- node-version: "16"
15
+ node-version: "22"
16
16
  - run: npm ci
17
17
  - run: npm run gh-pages
18
18
  - name: Deploy to gh-pages
@@ -14,11 +14,11 @@ jobs:
14
14
  build:
15
15
  runs-on: ubuntu-latest
16
16
  steps:
17
- - uses: actions/checkout@v4
17
+ - uses: actions/checkout@v5
18
18
  - name: Use Node.js
19
- uses: actions/setup-node@v4
19
+ uses: actions/setup-node@v5
20
20
  with:
21
- node-version: "16"
21
+ node-version: "22"
22
22
  - name: npm install and build
23
23
  run:
24
24
  npm ci
@@ -11,10 +11,10 @@ jobs:
11
11
  name: Release
12
12
  runs-on: ubuntu-latest
13
13
  steps:
14
- - uses: actions/checkout@v4
15
- - uses: actions/setup-node@v4
14
+ - uses: actions/checkout@v5
15
+ - uses: actions/setup-node@v5
16
16
  with:
17
- node-version: "16"
17
+ node-version: "22"
18
18
  - name: npm install and build
19
19
  run:
20
20
  npm ci
package/CHANGELOG.md CHANGED
@@ -1,3 +1,31 @@
1
+ # [2.26.0-next-3.14](https://github.com/eeditiones/tei-publisher-components/compare/v2.26.0-next-3.13...v2.26.0-next-3.14) (2025-09-10)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * **pb-facsimile:** component did not initialize if openseadragon was already loaded; this prevented multiple instances on the same page ([16c881b](https://github.com/eeditiones/tei-publisher-components/commit/16c881bdd0e1c7d9d441414d020778050f714f5e))
7
+ * **pb-view:** start listening to pb-refresh after component is ready; prevents race condition ([6196e03](https://github.com/eeditiones/tei-publisher-components/commit/6196e03e648fad9d37404f4d7d06a5bbcfe317a3))
8
+
9
+
10
+ ### Features
11
+
12
+ * **pb-grid:** drop polymer components ([8014c9c](https://github.com/eeditiones/tei-publisher-components/commit/8014c9cdd1bd79834e4fcd7c2f0d6d5d16349f2c))
13
+
14
+ # [2.26.0-next-3.13](https://github.com/eeditiones/tei-publisher-components/compare/v2.26.0-next-3.12...v2.26.0-next-3.13) (2025-09-10)
15
+
16
+
17
+ ### Bug Fixes
18
+
19
+ * **docker:** allign image ([45fcfe6](https://github.com/eeditiones/tei-publisher-components/commit/45fcfe682d4413baaf6413e3801201f46d7b0f0a)), closes [#244](https://github.com/eeditiones/tei-publisher-components/issues/244)
20
+ * **docker:** minor fixes ([34ad702](https://github.com/eeditiones/tei-publisher-components/commit/34ad702e6e72455096421cfa6f77a9a921cf2b31))
21
+ * **i18n:** correct pl labels ([f861af7](https://github.com/eeditiones/tei-publisher-components/commit/f861af774050accc0a5479ae40a5be94c8f87f2f))
22
+ * **pb-dialog:** any button with [rel="prev"] should close the dialog ([9c8c7f0](https://github.com/eeditiones/tei-publisher-components/commit/9c8c7f0ac24ffb139fd71dcc5e58922a1488e165))
23
+
24
+
25
+ ### Features
26
+
27
+ * **pb-progress:** replace paper-progress with native progres ([5ce49f1](https://github.com/eeditiones/tei-publisher-components/commit/5ce49f19abda1f37f884d977a0cc5204d690f290))
28
+
1
29
  # [2.26.0-next-3.12](https://github.com/eeditiones/tei-publisher-components/compare/v2.26.0-next-3.11...v2.26.0-next-3.12) (2025-08-31)
2
30
 
3
31
 
@@ -109,6 +137,21 @@
109
137
  * **pb-login:** drop polymer, use pb-dialog ([ffee19f](https://github.com/eeditiones/tei-publisher-components/commit/ffee19fa27f1e8520c8c3e9a877100b981e38ddf))
110
138
  * **pb-message:** replace paper-dialog with pb-dialog ([e60c401](https://github.com/eeditiones/tei-publisher-components/commit/e60c401153bd2756c0d081a09e70f2be31ab2526))
111
139
 
140
+ ## [2.25.6](https://github.com/eeditiones/tei-publisher-components/compare/v2.25.5...v2.25.6) (2025-09-09)
141
+
142
+
143
+ ### Bug Fixes
144
+
145
+ * **docker:** allign image ([45fcfe6](https://github.com/eeditiones/tei-publisher-components/commit/45fcfe682d4413baaf6413e3801201f46d7b0f0a)), closes [#244](https://github.com/eeditiones/tei-publisher-components/issues/244)
146
+ * **docker:** minor fixes ([34ad702](https://github.com/eeditiones/tei-publisher-components/commit/34ad702e6e72455096421cfa6f77a9a921cf2b31))
147
+
148
+ ## [2.25.5](https://github.com/eeditiones/tei-publisher-components/compare/v2.25.4...v2.25.5) (2025-08-16)
149
+
150
+
151
+ ### Bug Fixes
152
+
153
+ * **i18n:** correct pl labels ([f861af7](https://github.com/eeditiones/tei-publisher-components/commit/f861af774050accc0a5479ae40a5be94c8f87f2f))
154
+
112
155
  ## [2.25.4](https://github.com/eeditiones/tei-publisher-components/compare/v2.25.3...v2.25.4) (2025-06-04)
113
156
 
114
157
 
package/Dockerfile CHANGED
@@ -1,41 +1,12 @@
1
- ARG EXIST_VERSION=6.2.0
1
+ ARG EXIST_VERSION=release
2
+ ARG BUILD=local
3
+ ARG PUBLISHER_VERSION=master
2
4
 
3
5
  # START STAGE 1
4
- FROM openjdk:8-jdk-slim as builder
5
-
6
- USER root
7
-
8
- ENV ANT_VERSION 1.10.15
9
- ENV ANT_HOME /etc/ant-${ANT_VERSION}
10
-
11
- WORKDIR /tmp
12
-
13
- RUN apt-get update && apt-get install -y \
14
- git \
15
- curl
16
-
17
- RUN curl -L -o apache-ant-${ANT_VERSION}-bin.tar.gz https://downloads.apache.org/ant/binaries/apache-ant-${ANT_VERSION}-bin.tar.gz \
18
- && mkdir ant-${ANT_VERSION} \
19
- && tar -zxvf apache-ant-${ANT_VERSION}-bin.tar.gz \
20
- && mv apache-ant-${ANT_VERSION} ${ANT_HOME} \
21
- && rm apache-ant-${ANT_VERSION}-bin.tar.gz \
22
- && rm -rf ant-${ANT_VERSION} \
23
- && rm -rf ${ANT_HOME}/manual \
24
- && unset ANT_VERSION
25
-
26
- ENV PATH ${PATH}:${ANT_HOME}/bin
6
+ FROM ghcr.io/eeditiones/builder:latest AS builder
27
7
 
28
- RUN apt-get update && apt-get install -y nodejs npm
29
-
30
- FROM builder as tei
31
-
32
- ARG TEMPLATING_VERSION=1.1.0
33
- ARG PUBLISHER_LIB_VERSION=3.0.0
34
- ARG ROUTER_VERSION=1.8.0
35
- ARG PUBLISHER_VERSION=master
36
-
37
- # add key
38
- RUN mkdir -p ~/.ssh && ssh-keyscan -t rsa github.com >> ~/.ssh/known_hosts
8
+ ARG ROUTER_VERSION=1.10.0
9
+ ARG PUBLISHER_VERSION
39
10
 
40
11
  # Build tei-publisher-app
41
12
  RUN git clone https://github.com/eeditiones/tei-publisher-app.git \
@@ -53,38 +24,75 @@ COPY i18n/common/* resources/i18n/common/
53
24
 
54
25
  RUN ant
55
26
 
56
- RUN curl -L -o /tmp/roaster-${ROUTER_VERSION}.xar http://exist-db.org/exist/apps/public-repo/public/roaster-${ROUTER_VERSION}.xar
57
- RUN curl -L -o /tmp/tei-publisher-lib-${PUBLISHER_LIB_VERSION}.xar http://exist-db.org/exist/apps/public-repo/public/tei-publisher-lib-${PUBLISHER_LIB_VERSION}.xar
58
- RUN curl -L -o /tmp/templating-${TEMPLATING_VERSION}.xar http://exist-db.org/exist/apps/public-repo/public/templating-${TEMPLATING_VERSION}.xar
59
-
60
- FROM existdb/existdb:${EXIST_VERSION}
61
-
62
- COPY --from=tei /tmp/tei-publisher-app/build/*.xar /exist/autodeploy/
63
- COPY --from=tei /tmp/*.xar /exist/autodeploy/
64
-
65
- ENV DATA_DIR /exist-data
66
-
67
- ENV JAVA_TOOL_OPTIONS \
68
- -Dfile.encoding=UTF8 \
69
- -Dsun.jnu.encoding=UTF-8 \
70
- -Djava.awt.headless=true \
71
- -Dorg.exist.db-connection.cacheSize=${CACHE_MEM:-256}M \
72
- -Dorg.exist.db-connection.pool.max=${MAX_BROKER:-20} \
73
- -Dlog4j.configurationFile=/exist/etc/log4j2.xml \
74
- -Dexist.home=/exist \
75
- -Dexist.configurationFile=/exist/etc/conf.xml \
76
- -Djetty.home=/exist \
77
- -Dexist.jetty.config=/exist/etc/jetty/standard.enabled-jetty-configs \
78
- -XX:+UnlockExperimentalVMOptions \
79
- -XX:+UseCGroupMemoryLimitForHeap \
80
- -XX:+UseG1GC \
81
- -XX:+UseStringDeduplication \
82
- -XX:MaxRAMFraction=1 \
83
- -XX:+ExitOnOutOfMemoryError \
84
- -Dorg.exist.db-connection.files=${DATA_DIR} \
85
- -Dorg.exist.db-connection.recovery.journal-dir=${DATA_DIR}
86
-
87
- # pre-populate the database by launching it once
88
- RUN [ "java", \
89
- "org.exist.start.Main", "client", "-l", \
90
- "--no-gui", "--xpath", "system:get-version()" ]
27
+ WORKDIR /tmp
28
+
29
+ ADD http://exist-db.org/exist/apps/public-repo/public/roaster-${ROUTER_VERSION}.xar 001.xar
30
+ ADD https://github.com/eeditiones/tei-publisher-lib/releases/latest/download/tei-publisher-lib.xar 002.xar
31
+
32
+ FROM duncdrum/existdb:${EXIST_VERSION} AS build_local
33
+
34
+ ARG USR=root
35
+ USER ${USR}
36
+
37
+ ONBUILD COPY --from=builder /tmp/tei-publisher-app/build/*.xar /exist/autodeploy/
38
+ ONBUILD COPY --from=builder /tmp/*.xar /exist/autodeploy/
39
+
40
+ # TODO(DP): Tagging scheme add EXIST_VERSION to the tag
41
+ FROM ghcr.io/jinntec/base:main AS build_prod
42
+
43
+ ARG USR=nonroot
44
+ USER ${USR}
45
+
46
+ # Copy EXPATH dependencies
47
+ ONBUILD COPY --from=builder --chown=${USR} /tmp/tei-publisher-app/build/*.xar /exist/autodeploy/
48
+ ONBUILD COPY --from=builder --chown=${USR} /tmp/*.xar /exist/autodeploy/
49
+
50
+
51
+ FROM build_${BUILD}
52
+
53
+ ARG USR
54
+ USER ${USR}
55
+
56
+ WORKDIR /exist
57
+
58
+ # ARG ADMIN_PASS=none
59
+
60
+ ARG CACHE_MEM
61
+ ARG MAX_BROKER
62
+ ARG JVM_MAX_RAM_PERCENTAGE
63
+ ARG HTTP_PORT=8080
64
+ ARG HTTPS_PORT=8443
65
+
66
+ ARG NER_ENDPOINT=http://localhost:8001
67
+ ARG CONTEXT_PATH=auto
68
+ ARG PROXY_CACHING=false
69
+
70
+ ENV JDK_JAVA_OPTIONS="\
71
+ -Dteipublisher.ner-endpoint=${NER_ENDPOINT} \
72
+ -Dteipublisher.context-path=${CONTEXT_PATH} \
73
+ -Dteipublisher.proxy-caching=${PROXY_CACHING}"
74
+
75
+ # ENV JAVA_TOOL_OPTIONS="\
76
+ # -Dfile.encoding=UTF8 \
77
+ # -Dsun.jnu.encoding=UTF-8 \
78
+ # -Djava.awt.headless=true \
79
+ # -Dorg.exist.db-connection.cacheSize=${CACHE_MEM:-256}M \
80
+ # -Dorg.exist.db-connection.pool.max=${MAX_BROKER:-20} \
81
+ # -Dlog4j.configurationFile=/exist/etc/log4j2.xml \
82
+ # -Dexist.home=/exist \
83
+ # -Dexist.configurationFile=/exist/etc/conf.xml \
84
+ # -Djetty.home=/exist \
85
+ # -Dexist.jetty.config=/exist/etc/jetty/standard.enabled-jetty-configs \
86
+ # -Dteipublisher.ner-endpoint=${NER_ENDPOINT} \
87
+ # -Dteipublisher.context-path=${CONTEXT_PATH} \
88
+ # -Dteipublisher.proxy-caching=${PROXY_CACHING} \
89
+ # -XX:+UseG1GC \
90
+ # -XX:+UseStringDeduplication \
91
+ # -XX:+UseContainerSupport \
92
+ # -XX:MaxRAMPercentage=${JVM_MAX_RAM_PERCENTAGE:-75.0} \
93
+ # -XX:+ExitOnOutOfMemoryError"
94
+
95
+ # pre-populate the database by launching it once and change default pw
96
+ RUN [ "java", "org.exist.start.Main", "client", "--no-gui", "-l", "-u", "admin", "-P", "" ]
97
+
98
+ EXPOSE ${HTTP_PORT} ${HTTPS_PORT}
@@ -1,5 +1,5 @@
1
- /*
2
- * Global component theme stylesheet
3
- *
4
- * Styles defined here are injected into a components' shadow DOM.
5
- */
1
+ /*
2
+ * Global component theme stylesheet
3
+ *
4
+ * Styles defined here are injected into a components' shadow DOM.
5
+ */
@@ -69,7 +69,7 @@
69
69
  // names
70
70
  pbEvents.subscribe('pb-update', 'transcription', (ev) => {
71
71
  // the HTML content to be displayed is passed in ev.detail.root
72
- const root = ev.detail.root;
72
+ const {root} = ev.detail;
73
73
  root.querySelectorAll('.tei-persName5, .tei-placeName5').forEach((name) => {
74
74
  // disable the popover behaviour
75
75
  name.command('disable', true);
@@ -5,6 +5,16 @@
5
5
  <meta name="viewport" content="width=device-width, minimum-scale=1, initial-scale=1, user-scalable=yes" />
6
6
 
7
7
  <title>pb-grid Demo</title>
8
+ <style>
9
+ svg {
10
+ width: 1rem;
11
+ height: 1rem;
12
+ }
13
+
14
+ pb-grid-action {
15
+ margin-bottom: 1rem;
16
+ }
17
+ </style>
8
18
  <script src="https://cdn.jsdelivr.net/npm/@webcomponents/webcomponentsjs/webcomponents-loader.js"></script><script type="module" src="../pb-components-bundle.js"></script>
9
19
  </head>
10
20
 
@@ -15,9 +25,7 @@
15
25
  <pb-document id="document1" path="test/orlik_to_serafin.xml" odd="serafin" view="single"></pb-document>
16
26
 
17
27
  <pb-grid-action action="add" class="grid-add" grid="#grid" initial="1">
18
- <paper-button>
19
- <iron-icon icon="icons:add"></iron-icon> Add Column
20
- </paper-button>
28
+ <button>Add Column</button>
21
29
  </pb-grid-action>
22
30
  <!-- Define the grid with one initial column -->
23
31
  <pb-grid id="grid" panels="[0,1]" subscribe="transcription" animation="true">
@@ -25,9 +33,14 @@
25
33
  <template>
26
34
  <pb-panel emit="transcription">
27
35
  <!-- Added to the toolbar -->
28
- <pb-grid-action grid="#grid" slot="toolbar" action="remove">
29
- <paper-icon-button icon="icons:close"></paper-icon-button>
30
- </pb-grid-action>
36
+ <li slot="toolbar">
37
+ <pb-grid-action grid="#grid" action="remove">
38
+ <svg xmlns="http://www.w3.org/2000/svg" class="ionicon" viewBox="0 0 512 512">
39
+ <path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="32"
40
+ d="M368 368L144 144M368 144L144 368" />
41
+ </svg>
42
+ </pb-grid-action>
43
+ </li>
31
44
  <template title="Transcription">
32
45
  <pb-view class="animated" src="document1"
33
46
  xpath="! (.//text[@xml:lang = 'la']/body | .//text/body)[1]" emit="transcription">
@@ -57,7 +57,7 @@
57
57
  * which does itself send the `pb-update` event, e.g. `pb-view`.
58
58
  */
59
59
  document.addEventListener('WebComponentsReady', () => {
60
- pbEvents.subscribe('pb-ready', null, function() {
60
+ pbEvents.subscribe('pb-ready', null, () => {
61
61
  document.dispatchEvent(new CustomEvent('pb-update', {
62
62
  detail: {
63
63
  root: document.getElementById('locations')
@@ -32,11 +32,11 @@
32
32
  if (started) {
33
33
  started = false;
34
34
  btn.innerHTML = 'Click to start';
35
- document.dispatchEvent(new CustomEvent('pb-end-update'));
35
+ pbEvents.emit('pb-end-update');
36
36
  } else {
37
37
  started = true;
38
38
  btn.innerHTML = 'Click to stop';
39
- document.dispatchEvent(new CustomEvent('pb-start-update'));
39
+ pbEvents.emit('pb-start-update');
40
40
  }
41
41
  });
42
42
  </script>
@@ -49,9 +49,7 @@
49
49
  form.addEventListener('iron-form-presubmit', (ev) => {
50
50
  ev.preventDefault();
51
51
  const data = form.serializeForm();
52
- const queryString = Object.keys(data).map((key) => {
53
- return key + '=' + data[key]
54
- }).join('&');
52
+ const queryString = Object.keys(data).map((key) => `${key }=${ data[key]}`).join('&');
55
53
  document.getElementById('output').innerText = queryString;
56
54
  });
57
55
  });
@@ -65,7 +65,7 @@
65
65
  <script>
66
66
  window.addEventListener('DOMContentLoaded', () => {
67
67
  pbEvents.subscribe('before-transcription-update', 'transcription', (ev) => {
68
- const root = ev.detail.root;
68
+ const {root} = ev.detail;
69
69
  // walk through all .tei-name elements and insert a node before each
70
70
  root.querySelectorAll('.tei-name').forEach((name) => {
71
71
  // create a span with text 'Name' and orange color
@@ -1,4 +1,4 @@
1
- import{d as e,P as t,h as i}from"./paper-checkbox-4f410b1f.js";import{g as s,N as n}from"./paper-listbox-c2468542.js";
1
+ import{d as e,P as t,h as i}from"./paper-checkbox-d16f23be.js";import{g as s,N as n}from"./paper-listbox-2ad5c882.js";
2
2
  /**
3
3
  @license
4
4
  Copyright (c) 2015 The Polymer Project Authors. All rights reserved.