@sbb-esta/lyne-elements-experimental 2.6.0 → 2.7.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.
Files changed (100) hide show
  1. package/core/datetime/date-helper.js +191 -0
  2. package/core/datetime.d.ts +3 -0
  3. package/core/datetime.d.ts.map +1 -1
  4. package/core/datetime.js +3 -189
  5. package/core/timetable/access-leg-helper.js +94 -0
  6. package/core/timetable/timetable-helper.js +13 -0
  7. package/core/timetable/timetable-properties.js +1 -0
  8. package/core/timetable.d.ts +3 -0
  9. package/core/timetable.d.ts.map +1 -1
  10. package/core/timetable.js +6 -102
  11. package/custom-elements.json +598 -439
  12. package/development/core/datetime/date-helper.js +285 -0
  13. package/development/core/datetime.d.ts +3 -0
  14. package/development/core/datetime.d.ts.map +1 -1
  15. package/development/core/datetime.js +2 -281
  16. package/development/core/timetable/access-leg-helper.js +128 -0
  17. package/development/core/timetable/timetable-helper.js +21 -0
  18. package/development/core/timetable/timetable-properties.js +2 -0
  19. package/development/core/timetable.d.ts +3 -0
  20. package/development/core/timetable.d.ts.map +1 -1
  21. package/development/core/timetable.js +3 -139
  22. package/development/{differenceInMinutes-Cmyza6nm.js → differenceInMinutes-CHSyWiQs.js} +2 -2
  23. package/development/{format-BU7bjY-L.js → format-D0-yhzi4.js} +3 -3
  24. package/development/{isValid-DO_pHwcW.js → isValid-Bo4R7iA7.js} +2 -2
  25. package/development/journey-summary/journey-summary.js +297 -0
  26. package/development/journey-summary.d.ts +3 -0
  27. package/development/journey-summary.d.ts.map +1 -1
  28. package/development/journey-summary.js +2 -294
  29. package/development/pearl-chain/pearl-chain.js +649 -0
  30. package/development/pearl-chain-time/pearl-chain-time.js +315 -0
  31. package/development/pearl-chain-time.d.ts +3 -0
  32. package/development/pearl-chain-time.d.ts.map +1 -1
  33. package/development/pearl-chain-time.js +2 -312
  34. package/development/pearl-chain-vertical/pearl-chain-vertical.js +45 -0
  35. package/development/pearl-chain-vertical-item/pearl-chain-vertical-item.js +395 -0
  36. package/development/pearl-chain-vertical-item.d.ts +3 -0
  37. package/development/pearl-chain-vertical-item.d.ts.map +1 -1
  38. package/development/pearl-chain-vertical-item.js +2 -392
  39. package/development/pearl-chain-vertical.d.ts +3 -0
  40. package/development/pearl-chain-vertical.d.ts.map +1 -1
  41. package/development/pearl-chain-vertical.js +2 -42
  42. package/development/pearl-chain.d.ts +3 -0
  43. package/development/pearl-chain.d.ts.map +1 -1
  44. package/development/pearl-chain.js +2 -646
  45. package/development/timetable-duration/timetable-duration.js +119 -0
  46. package/development/timetable-duration.d.ts +3 -0
  47. package/development/timetable-duration.d.ts.map +1 -1
  48. package/development/timetable-duration.js +2 -116
  49. package/development/timetable-row/timetable-row.js +820 -0
  50. package/development/timetable-row.d.ts +3 -0
  51. package/development/timetable-row.d.ts.map +1 -1
  52. package/development/timetable-row.js +2 -810
  53. package/development/{toDate-B6IBgPYH.js → toDate-D_Vjps95.js} +5 -5
  54. package/{differenceInMinutes-BI2zjbtS.js → differenceInMinutes-BMqUZdhj.js} +1 -1
  55. package/{format-CUYwLzoN.js → format-Dg8rkk7h.js} +2 -2
  56. package/index.d.ts +7 -7
  57. package/index.js +7 -7
  58. package/{isValid-mroh13Xp.js → isValid-DJ69OMZJ.js} +6 -6
  59. package/journey-summary/journey-summary.js +190 -0
  60. package/journey-summary.d.ts +3 -0
  61. package/journey-summary.d.ts.map +1 -1
  62. package/journey-summary.js +2 -188
  63. package/package.json +3 -3
  64. package/pearl-chain/pearl-chain.js +177 -0
  65. package/pearl-chain-time/pearl-chain-time.js +153 -0
  66. package/pearl-chain-time.d.ts +3 -0
  67. package/pearl-chain-time.d.ts.map +1 -1
  68. package/pearl-chain-time.js +2 -151
  69. package/pearl-chain-vertical/pearl-chain-vertical.js +23 -0
  70. package/pearl-chain-vertical-item/pearl-chain-vertical-item.js +71 -0
  71. package/pearl-chain-vertical-item.d.ts +3 -0
  72. package/pearl-chain-vertical-item.d.ts.map +1 -1
  73. package/pearl-chain-vertical-item.js +2 -69
  74. package/pearl-chain-vertical.d.ts +3 -0
  75. package/pearl-chain-vertical.d.ts.map +1 -1
  76. package/pearl-chain-vertical.js +2 -21
  77. package/pearl-chain.d.ts +3 -0
  78. package/pearl-chain.d.ts.map +1 -1
  79. package/pearl-chain.js +2 -175
  80. package/timetable-duration/timetable-duration.js +55 -0
  81. package/timetable-duration.d.ts +3 -0
  82. package/timetable-duration.d.ts.map +1 -1
  83. package/timetable-duration.js +2 -53
  84. package/timetable-row/timetable-row.js +462 -0
  85. package/timetable-row.d.ts +3 -0
  86. package/timetable-row.d.ts.map +1 -1
  87. package/timetable-row.js +9 -460
  88. package/{toDate-DQg4ZFnf.js → toDate-BCXKL_wM.js} +4 -4
  89. package/development/pearl-chain/pearl-chain.sample-data.d.ts +0 -141
  90. package/development/pearl-chain/pearl-chain.sample-data.d.ts.map +0 -1
  91. package/development/timetable-duration/timetable-duration.sample-data.d.ts +0 -6
  92. package/development/timetable-duration/timetable-duration.sample-data.d.ts.map +0 -1
  93. package/development/timetable-row/timetable-row.sample-data.d.ts +0 -25
  94. package/development/timetable-row/timetable-row.sample-data.d.ts.map +0 -1
  95. package/pearl-chain/pearl-chain.sample-data.d.ts +0 -141
  96. package/pearl-chain/pearl-chain.sample-data.d.ts.map +0 -1
  97. package/timetable-duration/timetable-duration.sample-data.d.ts +0 -6
  98. package/timetable-duration/timetable-duration.sample-data.d.ts.map +0 -1
  99. package/timetable-row/timetable-row.sample-data.d.ts +0 -25
  100. package/timetable-row/timetable-row.sample-data.d.ts.map +0 -1
@@ -1,25 +0,0 @@
1
- import { ITripItem } from '../core/timetable.js';
2
- export type DeepPartial<T> = T extends object ? {
3
- [P in keyof T]?: DeepPartial<T[P]>;
4
- } : T;
5
- export declare const defaultTrip: DeepPartial<ITripItem>;
6
- export declare const connectionTrip: DeepPartial<ITripItem>;
7
- export declare const cancelledTrip: DeepPartial<ITripItem>;
8
- export declare const progressTrip: DeepPartial<ITripItem>;
9
- export declare const partiallyCancelled: DeepPartial<ITripItem>;
10
- export declare const pastTrip: DeepPartial<ITripItem>;
11
- export declare const skippedLastArrivalStopTrip: DeepPartial<ITripItem>;
12
- export declare const skippedArrivalStopTrip: DeepPartial<ITripItem>;
13
- export declare const skippedDepartureStopTrip: DeepPartial<ITripItem>;
14
- export declare const skippedFirstDepartureStopTrip: DeepPartial<ITripItem>;
15
- export declare const disturbanceTrip: DeepPartial<ITripItem>;
16
- export declare const quayChangeTrip: DeepPartial<ITripItem>;
17
- export declare const trainTrip: DeepPartial<ITripItem>;
18
- export declare const busTrip: DeepPartial<ITripItem>;
19
- export declare const accessLegTrip: DeepPartial<ITripItem>;
20
- export declare const shipTrip: DeepPartial<ITripItem>;
21
- export declare const walkTimeTrip: DeepPartial<ITripItem>;
22
- export declare const a11yFootpathTrip: DeepPartial<ITripItem>;
23
- export declare const extendedEnterTimeTrip: DeepPartial<ITripItem>;
24
- export declare const noticesTrip: DeepPartial<ITripItem>;
25
- //# sourceMappingURL=timetable-row.sample-data.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"timetable-row.sample-data.d.ts","sourceRoot":"","sources":["../../../../src/elements-experimental/timetable-row/timetable-row.sample-data.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAkBtD,MAAM,MAAM,WAAW,CAAC,CAAC,IAAI,CAAC,SAAS,MAAM,GACzC;KACG,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,EAAE,WAAW,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;CACnC,GACD,CAAC,CAAC;AAEN,eAAO,MAAM,WAAW,EAAE,WAAW,CAAC,SAAS,CAoB9C,CAAC;AAEF,eAAO,MAAM,cAAc,EAAE,WAAW,CAAC,SAAS,CAGjD,CAAC;AAEF,eAAO,MAAM,aAAa,EAAE,WAAW,CAAC,SAAS,CA2BhD,CAAC;AAEF,eAAO,MAAM,YAAY,EAAE,WAAW,CAAC,SAAS,CAoB/C,CAAC;AAEF,eAAO,MAAM,kBAAkB,EAAE,WAAW,CAAC,SAAS,CAuBrD,CAAC;AAEF,eAAO,MAAM,QAAQ,EAAE,WAAW,CAAC,SAAS,CAwB3C,CAAC;AAEF,eAAO,MAAM,0BAA0B,EAAE,WAAW,CAAC,SAAS,CAkB7D,CAAC;AAEF,eAAO,MAAM,sBAAsB,EAAE,WAAW,CAAC,SAAS,CAkBzD,CAAC;AAEF,eAAO,MAAM,wBAAwB,EAAE,WAAW,CAAC,SAAS,CAkB3D,CAAC;AAEF,eAAO,MAAM,6BAA6B,EAAE,WAAW,CAAC,SAAS,CAkBhE,CAAC;AAEF,eAAO,MAAM,eAAe,EAAE,WAAW,CAAC,SAAS,CA+DlD,CAAC;AAEF,eAAO,MAAM,cAAc,EAAE,WAAW,CAAC,SAAS,CA8CjD,CAAC;AAEF,eAAO,MAAM,SAAS,EAAE,WAAW,CAAC,SAAS,CA8B5C,CAAC;AAEF,eAAO,MAAM,OAAO,EAAE,WAAW,CAAC,SAAS,CA8B1C,CAAC;AAEF,eAAO,MAAM,aAAa,EAAE,WAAW,CAAC,SAAS,CA8BhD,CAAC;AAEF,eAAO,MAAM,QAAQ,EAAE,WAAW,CAAC,SAAS,CAuB3C,CAAC;AAEF,eAAO,MAAM,YAAY,EAAE,WAAW,CAAC,SAAS,CA0J/C,CAAC;AAEF,eAAO,MAAM,gBAAgB,EAAE,WAAW,CAAC,SAAS,CAAuB,CAAC;AAE5E,eAAO,MAAM,qBAAqB,EAAE,WAAW,CAAC,SAAS,CA4BxD,CAAC;AAEF,eAAO,MAAM,WAAW,EAAE,WAAW,CAAC,SAAS,CAsF9C,CAAC"}
@@ -1,141 +0,0 @@
1
- export declare const futureLeg: any;
2
- export declare const connectionLeg: any;
3
- export declare const extendedLeg: {
4
- __typename: string;
5
- arrival: {
6
- time: string;
7
- };
8
- departure: {
9
- time: string;
10
- };
11
- serviceJourney: {
12
- notices: {
13
- name: string;
14
- text: {
15
- template: string;
16
- };
17
- }[];
18
- quayTypeName: string;
19
- quayTypeShortName: string;
20
- serviceAlteration: {
21
- cancelled: boolean;
22
- delayText: string;
23
- reachable: boolean;
24
- unplannedStopPointsText: string;
25
- };
26
- };
27
- };
28
- export declare const longFutureLeg: {
29
- __typename: string;
30
- arrival: {
31
- time: string;
32
- };
33
- departure: {
34
- time: string;
35
- };
36
- serviceJourney: {
37
- quayTypeName: string;
38
- quayTypeShortName: string;
39
- serviceAlteration: {
40
- cancelled: boolean;
41
- delayText: string;
42
- reachable: boolean;
43
- unplannedStopPointsText: string;
44
- };
45
- };
46
- };
47
- export declare const cancelledLeg: any;
48
- export declare const progressLeg: any;
49
- export declare const pastLeg: any;
50
- export declare const accessLeg: any;
51
- export declare const defaultBusLeg: any;
52
- export declare const pastBusLeg: any;
53
- export declare const defaultShipLeg: any;
54
- export declare const defaultTramLeg: any;
55
- export declare const delayedLeg: {
56
- __typename: string;
57
- arrival: {
58
- time: string;
59
- };
60
- departure: {
61
- time: string;
62
- };
63
- serviceJourney: {
64
- serviceAlteration: {
65
- delay: boolean;
66
- };
67
- quayTypeName: string;
68
- quayTypeShortName: string;
69
- };
70
- };
71
- export declare const notReachableLeg: {
72
- __typename: string;
73
- arrival: {
74
- time: string;
75
- };
76
- departure: {
77
- time: string;
78
- };
79
- serviceJourney: {
80
- serviceAlteration: {
81
- reachable: boolean;
82
- };
83
- quayTypeName: string;
84
- quayTypeShortName: string;
85
- };
86
- };
87
- export declare const unplannedStopLeg: {
88
- __typename: string;
89
- arrival: {
90
- time: string;
91
- };
92
- departure: {
93
- time: string;
94
- };
95
- serviceJourney: {
96
- serviceAlteration: {
97
- unplannedStopPointsText: string;
98
- };
99
- quayTypeName: string;
100
- quayTypeShortName: string;
101
- };
102
- };
103
- export declare const redirectedOnDepartureLeg: {
104
- __typename: string;
105
- arrival: {
106
- time: string;
107
- };
108
- departure: {
109
- time: string;
110
- };
111
- serviceJourney: {
112
- serviceAlteration: {
113
- redirectedText: string;
114
- };
115
- quayTypeName: string;
116
- quayTypeShortName: string;
117
- stopPoints: {
118
- stopStatus: string;
119
- }[];
120
- };
121
- };
122
- export declare const redirectedOnArrivalLeg: {
123
- __typename: string;
124
- arrival: {
125
- time: string;
126
- };
127
- departure: {
128
- time: string;
129
- };
130
- serviceJourney: {
131
- stopPoints: {
132
- stopStatus: string;
133
- }[];
134
- serviceAlteration: {
135
- redirectedText: string;
136
- };
137
- quayTypeName: string;
138
- quayTypeShortName: string;
139
- };
140
- };
141
- //# sourceMappingURL=pearl-chain.sample-data.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"pearl-chain.sample-data.d.ts","sourceRoot":"","sources":["../../../src/elements-experimental/pearl-chain/pearl-chain.sample-data.ts"],"names":[],"mappings":"AAoCA,eAAO,MAAM,SAAS,EAAE,GAKvB,CAAC;AAEF,eAAO,MAAM,aAAa,EAAE,GA2B3B,CAAC;AAEF,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;CAQvB,CAAC;AAEF,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;CAKzB,CAAC;AAEF,eAAO,MAAM,YAAY,EAAE,GAK1B,CAAC;AAEF,eAAO,MAAM,WAAW,EAAE,GAKzB,CAAC;AAEF,eAAO,MAAM,OAAO,EAAE,GAKrB,CAAC;AAEF,eAAO,MAAM,SAAS,EAAE,GAevB,CAAC;AAEF,eAAO,MAAM,aAAa,EAAE,GAG3B,CAAC;AAEF,eAAO,MAAM,UAAU,EAAE,GAGxB,CAAC;AAEF,eAAO,MAAM,cAAc,EAAE,GAO5B,CAAC;AAEF,eAAO,MAAM,cAAc,EAAE,GAO5B,CAAC;AAEF,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;CAKtB,CAAC;AAEF,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;CAK3B,CAAC;AAEF,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;CAK5B,CAAC;AAEF,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;CAQpC,CAAC;AAEF,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;CAKlC,CAAC"}
@@ -1,6 +0,0 @@
1
- declare const _default: {
2
- hours: number;
3
- minutes: number;
4
- }[];
5
- export default _default;
6
- //# sourceMappingURL=timetable-duration.sample-data.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"timetable-duration.sample-data.d.ts","sourceRoot":"","sources":["../../../src/elements-experimental/timetable-duration/timetable-duration.sample-data.ts"],"names":[],"mappings":";;;;AAAA,wBAaE"}
@@ -1,25 +0,0 @@
1
- import { ITripItem } from '../core/timetable.js';
2
- export type DeepPartial<T> = T extends object ? {
3
- [P in keyof T]?: DeepPartial<T[P]>;
4
- } : T;
5
- export declare const defaultTrip: DeepPartial<ITripItem>;
6
- export declare const connectionTrip: DeepPartial<ITripItem>;
7
- export declare const cancelledTrip: DeepPartial<ITripItem>;
8
- export declare const progressTrip: DeepPartial<ITripItem>;
9
- export declare const partiallyCancelled: DeepPartial<ITripItem>;
10
- export declare const pastTrip: DeepPartial<ITripItem>;
11
- export declare const skippedLastArrivalStopTrip: DeepPartial<ITripItem>;
12
- export declare const skippedArrivalStopTrip: DeepPartial<ITripItem>;
13
- export declare const skippedDepartureStopTrip: DeepPartial<ITripItem>;
14
- export declare const skippedFirstDepartureStopTrip: DeepPartial<ITripItem>;
15
- export declare const disturbanceTrip: DeepPartial<ITripItem>;
16
- export declare const quayChangeTrip: DeepPartial<ITripItem>;
17
- export declare const trainTrip: DeepPartial<ITripItem>;
18
- export declare const busTrip: DeepPartial<ITripItem>;
19
- export declare const accessLegTrip: DeepPartial<ITripItem>;
20
- export declare const shipTrip: DeepPartial<ITripItem>;
21
- export declare const walkTimeTrip: DeepPartial<ITripItem>;
22
- export declare const a11yFootpathTrip: DeepPartial<ITripItem>;
23
- export declare const extendedEnterTimeTrip: DeepPartial<ITripItem>;
24
- export declare const noticesTrip: DeepPartial<ITripItem>;
25
- //# sourceMappingURL=timetable-row.sample-data.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"timetable-row.sample-data.d.ts","sourceRoot":"","sources":["../../../src/elements-experimental/timetable-row/timetable-row.sample-data.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAkBtD,MAAM,MAAM,WAAW,CAAC,CAAC,IAAI,CAAC,SAAS,MAAM,GACzC;KACG,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,EAAE,WAAW,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;CACnC,GACD,CAAC,CAAC;AAEN,eAAO,MAAM,WAAW,EAAE,WAAW,CAAC,SAAS,CAoB9C,CAAC;AAEF,eAAO,MAAM,cAAc,EAAE,WAAW,CAAC,SAAS,CAGjD,CAAC;AAEF,eAAO,MAAM,aAAa,EAAE,WAAW,CAAC,SAAS,CA2BhD,CAAC;AAEF,eAAO,MAAM,YAAY,EAAE,WAAW,CAAC,SAAS,CAoB/C,CAAC;AAEF,eAAO,MAAM,kBAAkB,EAAE,WAAW,CAAC,SAAS,CAuBrD,CAAC;AAEF,eAAO,MAAM,QAAQ,EAAE,WAAW,CAAC,SAAS,CAwB3C,CAAC;AAEF,eAAO,MAAM,0BAA0B,EAAE,WAAW,CAAC,SAAS,CAkB7D,CAAC;AAEF,eAAO,MAAM,sBAAsB,EAAE,WAAW,CAAC,SAAS,CAkBzD,CAAC;AAEF,eAAO,MAAM,wBAAwB,EAAE,WAAW,CAAC,SAAS,CAkB3D,CAAC;AAEF,eAAO,MAAM,6BAA6B,EAAE,WAAW,CAAC,SAAS,CAkBhE,CAAC;AAEF,eAAO,MAAM,eAAe,EAAE,WAAW,CAAC,SAAS,CA+DlD,CAAC;AAEF,eAAO,MAAM,cAAc,EAAE,WAAW,CAAC,SAAS,CA8CjD,CAAC;AAEF,eAAO,MAAM,SAAS,EAAE,WAAW,CAAC,SAAS,CA8B5C,CAAC;AAEF,eAAO,MAAM,OAAO,EAAE,WAAW,CAAC,SAAS,CA8B1C,CAAC;AAEF,eAAO,MAAM,aAAa,EAAE,WAAW,CAAC,SAAS,CA8BhD,CAAC;AAEF,eAAO,MAAM,QAAQ,EAAE,WAAW,CAAC,SAAS,CAuB3C,CAAC;AAEF,eAAO,MAAM,YAAY,EAAE,WAAW,CAAC,SAAS,CA0J/C,CAAC;AAEF,eAAO,MAAM,gBAAgB,EAAE,WAAW,CAAC,SAAS,CAAuB,CAAC;AAE5E,eAAO,MAAM,qBAAqB,EAAE,WAAW,CAAC,SAAS,CA4BxD,CAAC;AAEF,eAAO,MAAM,WAAW,EAAE,WAAW,CAAC,SAAS,CAsF9C,CAAC"}