gtfs-to-html 2.10.15 → 2.10.17

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gtfs-to-html",
3
- "version": "2.10.15",
3
+ "version": "2.10.17",
4
4
  "private": false,
5
5
  "description": "Build human readable transit timetables as HTML, PDF or CSV from GTFS",
6
6
  "keywords": [
@@ -53,16 +53,16 @@
53
53
  "cli-table": "^0.3.11",
54
54
  "csv-stringify": "^6.6.0",
55
55
  "express": "^5.1.0",
56
- "gtfs": "^4.17.5",
56
+ "gtfs": "^4.17.7",
57
57
  "gtfs-realtime-pbf-js-module": "^1.0.0",
58
58
  "js-beautify": "^1.15.4",
59
59
  "lodash-es": "^4.17.21",
60
- "marked": "^16.1.1",
60
+ "marked": "^16.1.2",
61
61
  "moment": "^2.30.1",
62
62
  "pbf": "^4.0.1",
63
63
  "pretty-error": "^4.0.0",
64
64
  "pug": "^3.0.3",
65
- "puppeteer": "^24.15.0",
65
+ "puppeteer": "^24.16.2",
66
66
  "sanitize-filename": "^1.6.3",
67
67
  "sanitize-html": "^2.17.0",
68
68
  "sqlstring": "^2.3.3",
@@ -85,10 +85,10 @@
85
85
  "@types/timer-machine": "^1.1.3",
86
86
  "@types/yargs": "^17.0.33",
87
87
  "husky": "^9.1.7",
88
- "lint-staged": "^16.1.2",
88
+ "lint-staged": "^16.1.5",
89
89
  "prettier": "^3.6.2",
90
90
  "tsup": "^8.5.0",
91
- "typescript": "^5.8.3"
91
+ "typescript": "^5.9.2"
92
92
  },
93
93
  "engines": {
94
94
  "node": ">= 20.11.0"
@@ -266,6 +266,7 @@ a:hover {
266
266
  text-align: center;
267
267
  }
268
268
 
269
+ .timetable-page .timetable .run-footer .continues-from-route,
269
270
  .timetable-page .timetable .run-footer .continues-as-route {
270
271
  font-weight: bold;
271
272
  }
@@ -195,6 +195,11 @@ function addGeocoder(map, bounds) {
195
195
  },
196
196
  {
197
197
  maplibregl,
198
+ proximity: {
199
+ latitude: bounds.getCenter()[0],
200
+ longitude: bounds.getCenter()[1],
201
+ },
202
+ showResultsWhileTyping: true,
198
203
  zoom: 12,
199
204
  },
200
205
  ),
@@ -980,9 +980,9 @@ function highlightVerticalTimetableStops(id, stopIds) {
980
980
  );
981
981
  });
982
982
 
983
- table.find('.stop-time, thead .stop-header').removeClass('highlighted');
983
+ table.find('td, thead th').removeClass('highlighted');
984
984
  table.find('.trip-row').each((index, row) => {
985
- jQuery('.stop-time', row).each((index, el) => {
985
+ jQuery('td', row).each((index, el) => {
986
986
  if (columnIndexes.includes(index)) {
987
987
  jQuery(el).addClass('highlighted');
988
988
  }
@@ -990,7 +990,7 @@ function highlightVerticalTimetableStops(id, stopIds) {
990
990
  });
991
991
 
992
992
  table.find('thead').each((index, thead) => {
993
- jQuery('.stop-header', thead).each((index, el) => {
993
+ jQuery('th', thead).each((index, el) => {
994
994
  if (columnIndexes.includes(index)) {
995
995
  jQuery(el).addClass('highlighted');
996
996
  }
@@ -1012,7 +1012,7 @@ function unHighlightTimetableStops(id) {
1012
1012
  const isVertical = table.data('orientation') === 'vertical';
1013
1013
 
1014
1014
  if (isVertical) {
1015
- table.find('.stop-time, thead .stop-header').removeClass('highlighted');
1015
+ table.find('td, thead th').removeClass('highlighted');
1016
1016
  } else {
1017
1017
  table.find('.stop-row').removeClass('highlighted');
1018
1018
  }
@@ -6,11 +6,11 @@ block extraHeader
6
6
  if config.showMap
7
7
  script(src="https://unpkg.com/jquery@3.7.1/dist/jquery.min.js" crossorigin="anonymous")
8
8
  script(src="https://unpkg.com/lodash@4.17.21/lodash.min.js" crossorigin="anonymous")
9
- script(src="https://unpkg.com/maplibre-gl@^4.7.1/dist/maplibre-gl.js")
10
- script(src="https://unpkg.com/@maplibre/maplibre-gl-geocoder@1.5.0/dist/maplibre-gl-geocoder.min.js")
9
+ script(src="https://unpkg.com/maplibre-gl@^5.7.0/dist/maplibre-gl.js")
10
+ script(src="https://unpkg.com/@maplibre/maplibre-gl-geocoder@1.9.0/dist/maplibre-gl-geocoder.js")
11
11
  script(src=`${config.assetPath}js/system-map.js`)
12
12
 
13
- link(href="https://unpkg.com/maplibre-gl@^4.7.1/dist/maplibre-gl.css" rel="stylesheet")
14
- link(href="https://unpkg.com/@maplibre/maplibre-gl-geocoder@1.5.0/dist/maplibre-gl-geocoder.css" rel="stylesheet")
13
+ link(href="https://unpkg.com/maplibre-gl@^5.7.0/dist/maplibre-gl.css" rel="stylesheet")
14
+ link(href="https://unpkg.com/@maplibre/maplibre-gl-geocoder@1.9.0/dist/maplibre-gl-geocoder.css" rel="stylesheet")
15
15
 
16
16
  link(rel="stylesheet" href=`${config.assetPath}css/overview_styles.css`)
@@ -12,8 +12,12 @@
12
12
  table.table-vertical(summary=`This table shows schedules for a selection of key stops on the route for ${timetable.timetable_label} ${timetable.dayList}. Stops and their schedule times are listed in the columns.` data-orientation="vertical")
13
13
  caption.sr-only= `${timetable.timetable_label} | ${timetable.dayList}`
14
14
  colgroup
15
+ if timetable.has_continues_from_route
16
+ col
15
17
  each stop, idx in timetable.stops
16
18
  col(id=`stop_id_${formatHtmlId(stop.stop_id)}` class=`stop-${idx}` data-stop-id=`${stop.stop_id}` data-is-timepoint=`${stop.is_timepoint}`)
19
+ if timetable.has_continues_as_route
20
+ col
17
21
  thead
18
22
  tr
19
23
  if timetableHasTripNotes || timetable.routes.length > 1
@@ -13,8 +13,8 @@ block extraHeader
13
13
  script(src=`${config.assetPath}js/gtfs-realtime.browser.proto.js`)
14
14
 
15
15
  if config.showMap
16
- link(href="https://unpkg.com/maplibre-gl@^4.7.1/dist/maplibre-gl.css" rel="stylesheet")
17
- script(src="https://unpkg.com/maplibre-gl@^4.7.1/dist/maplibre-gl.js")
16
+ link(href="https://unpkg.com/maplibre-gl@^5.7.0/dist/maplibre-gl.css" rel="stylesheet")
17
+ script(src="https://unpkg.com/maplibre-gl@^5.7.0/dist/maplibre-gl.js")
18
18
  script(src=`${config.assetPath}js/timetable-map.js`)
19
19
 
20
20
  if config.hasGtfsRealtimeAlerts