@teipublisher/pb-components 3.1.0 → 3.2.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.
@@ -7,15 +7,19 @@ on:
7
7
  push:
8
8
  branches:
9
9
  - develop
10
+ - master
10
11
 
11
12
  workflow_dispatch:
12
13
 
14
+ permissions:
15
+ contents: read # for checkout
16
+
13
17
  jobs:
14
18
  build:
15
19
  runs-on: ubuntu-latest
16
20
  steps:
17
21
  - uses: actions/checkout@v6
18
- - name: Use Node.js
22
+ - name: Use Node.js
19
23
  uses: actions/setup-node@v6
20
24
  with:
21
25
  node-version: "22"
@@ -32,4 +36,37 @@ jobs:
32
36
  with:
33
37
  resource: http-get://localhost:8080/exist/apps/tei-publisher/index.html
34
38
  - name: npm test
35
- run: npm test
39
+ run: npm test
40
+
41
+ release:
42
+ name: Release
43
+ needs: [ build ]
44
+ if: github.event_name == 'push' && (github.ref == 'refs/heads/master')
45
+ runs-on: ubuntu-latest
46
+ permissions:
47
+ contents: write # to be able to publish a GitHub release
48
+ issues: write # to be able to comment on released issues
49
+ pull-requests: write # to be able to comment on released pull requests
50
+ id-token: write # to enable use of OIDC for trusted publishing and npm provenance
51
+ steps:
52
+ - uses: actions/checkout@v5
53
+ - uses: actions/setup-node@v5
54
+ with:
55
+ node-version: "22"
56
+ - name: npm install and build
57
+ run:
58
+ npm ci
59
+ npm run build:production
60
+ - name: Build docker image
61
+ run: docker build -t exist-db -f Dockerfile .
62
+ - name: Start docker image
63
+ run: docker run --publish 8080:8080 --detach exist-db
64
+ - name: Wait for eXist
65
+ uses: iFaxity/wait-on-action@v1
66
+ with:
67
+ resource: http-get://localhost:8080/exist/apps/tei-publisher/api/version
68
+ - run: npm test
69
+ - run: npx semantic-release
70
+ env:
71
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
72
+ NPM_TOKEN: ${{ secrets.NODE_AUTH_TOKEN }}
package/CHANGELOG.md CHANGED
@@ -1,3 +1,22 @@
1
+ ## [3.2.1](https://github.com/eeditiones/tei-publisher-components/compare/v3.2.0...v3.2.1) (2026-03-31)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * **pb-table-grid:** drop polymer controls ([408b1f9](https://github.com/eeditiones/tei-publisher-components/commit/408b1f99e27d34dd7565fafe53e489772561e384))
7
+ * **pb-table-grid:** i18n for navigation and toolbar ([9e91a9a](https://github.com/eeditiones/tei-publisher-components/commit/9e91a9a228bb8cc5206191032d1b60ba1210c6ad))
8
+ * **pb-table-grid:** race condition causes navigation to disappear ([1ecf7d9](https://github.com/eeditiones/tei-publisher-components/commit/1ecf7d9bbe68b0c9842d7d66c6bbd3e782766ee9))
9
+ * **pb-table-grid:** use translate in html literals ([515acfb](https://github.com/eeditiones/tei-publisher-components/commit/515acfb91536044eff241a0174b53f23f445106d))
10
+ * trigger release pipeline ([d63a335](https://github.com/eeditiones/tei-publisher-components/commit/d63a335614a9a0590df533623b4221bc2b9b0b05))
11
+
12
+ # [3.2.0](https://github.com/eeditiones/tei-publisher-components/compare/v3.1.0...v3.2.0) (2026-03-26)
13
+
14
+
15
+ ### Features
16
+
17
+ * **pb-table-grid:** allow columns to be hidden/shown dynamically ([297fb8b](https://github.com/eeditiones/tei-publisher-components/commit/297fb8bd93701b88281bfb2cd19e6a631cb2880e))
18
+ * **pb-table-grid:** highlight currently selected row ([27bf14d](https://github.com/eeditiones/tei-publisher-components/commit/27bf14d4d44413ea4f673157e40fbcce0228e81c))
19
+
1
20
  # [3.1.0](https://github.com/eeditiones/tei-publisher-components/compare/v3.0.9...v3.1.0) (2026-03-25)
2
21
 
3
22
 
@@ -49,7 +49,12 @@
49
49
  <h1>Using pb-table-grid with Search and Pagination</h1>
50
50
 
51
51
  <pb-page theme="components.css" url-path="query" api-version="1.0.0">
52
+ <label>
53
+ <input id="compact-view" type="checkbox" />
54
+ Compact view (hide "Born" and "Died" columns)
55
+ </label>
52
56
  <pb-table-grid
57
+ id="philosophers-grid"
53
58
  class="table-grid"
54
59
  source="./philosophers.json"
55
60
  css-path="../css/gridjs"
@@ -70,5 +75,15 @@
70
75
  <pb-table-column label="Known For" property="known_for"></pb-table-column>
71
76
  </pb-table-grid>
72
77
  </pb-page>
78
+ <script type="module">
79
+ const compactCheckbox = document.getElementById('compact-view');
80
+ const tableGrid = document.getElementById('philosophers-grid');
81
+
82
+ compactCheckbox.addEventListener('change', () => {
83
+ tableGrid.visibleColumns = compactCheckbox.checked
84
+ ? ['name', 'nationality', 'known_for']
85
+ : ['name', 'birth', 'death', 'nationality', 'known_for'];
86
+ });
87
+ </script>
73
88
  </body>
74
89
  </html>