gtfs-to-html 2.10.15 → 2.10.16
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/dist/app/index.js +6 -6
- package/dist/app/index.js.map +1 -1
- package/dist/bin/gtfs-to-html.js +6 -6
- package/dist/bin/gtfs-to-html.js.map +1 -1
- package/dist/index.js +6 -6
- package/dist/index.js.map +1 -1
- package/package.json +6 -6
- package/views/default/css/timetable_styles.css +1 -0
- package/views/default/js/timetable-map.js +4 -4
- package/views/default/timetable_vertical.pug +4 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "gtfs-to-html",
|
|
3
|
-
"version": "2.10.
|
|
3
|
+
"version": "2.10.16",
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
88
|
+
"lint-staged": "^16.1.5",
|
|
89
89
|
"prettier": "^3.6.2",
|
|
90
90
|
"tsup": "^8.5.0",
|
|
91
|
-
"typescript": "^5.
|
|
91
|
+
"typescript": "^5.9.2"
|
|
92
92
|
},
|
|
93
93
|
"engines": {
|
|
94
94
|
"node": ">= 20.11.0"
|
|
@@ -980,9 +980,9 @@ function highlightVerticalTimetableStops(id, stopIds) {
|
|
|
980
980
|
);
|
|
981
981
|
});
|
|
982
982
|
|
|
983
|
-
table.find('
|
|
983
|
+
table.find('td, thead th').removeClass('highlighted');
|
|
984
984
|
table.find('.trip-row').each((index, row) => {
|
|
985
|
-
jQuery('
|
|
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('
|
|
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('
|
|
1015
|
+
table.find('td, thead th').removeClass('highlighted');
|
|
1016
1016
|
} else {
|
|
1017
1017
|
table.find('.stop-row').removeClass('highlighted');
|
|
1018
1018
|
}
|
|
@@ -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
|