@sbb-esta/lyne-elements-experimental 2.5.1 → 2.7.0

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 (104) 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 +602 -433
  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.d.ts +1 -0
  50. package/development/timetable-row/timetable-row.d.ts.map +1 -1
  51. package/development/timetable-row/timetable-row.js +820 -0
  52. package/development/timetable-row.d.ts +3 -0
  53. package/development/timetable-row.d.ts.map +1 -1
  54. package/development/timetable-row.js +2 -788
  55. package/development/{toDate-B6IBgPYH.js → toDate-D_Vjps95.js} +5 -5
  56. package/{differenceInMinutes-BI2zjbtS.js → differenceInMinutes-BMqUZdhj.js} +1 -1
  57. package/{format-CUYwLzoN.js → format-Dg8rkk7h.js} +2 -2
  58. package/index.d.ts +7 -7
  59. package/index.js +7 -7
  60. package/{isValid-mroh13Xp.js → isValid-DJ69OMZJ.js} +6 -6
  61. package/journey-summary/journey-summary.js +190 -0
  62. package/journey-summary.d.ts +3 -0
  63. package/journey-summary.d.ts.map +1 -1
  64. package/journey-summary.js +2 -188
  65. package/package.json +3 -3
  66. package/pearl-chain/pearl-chain.js +177 -0
  67. package/pearl-chain-time/pearl-chain-time.js +153 -0
  68. package/pearl-chain-time.d.ts +3 -0
  69. package/pearl-chain-time.d.ts.map +1 -1
  70. package/pearl-chain-time.js +2 -151
  71. package/pearl-chain-vertical/pearl-chain-vertical.js +23 -0
  72. package/pearl-chain-vertical-item/pearl-chain-vertical-item.js +71 -0
  73. package/pearl-chain-vertical-item.d.ts +3 -0
  74. package/pearl-chain-vertical-item.d.ts.map +1 -1
  75. package/pearl-chain-vertical-item.js +2 -69
  76. package/pearl-chain-vertical.d.ts +3 -0
  77. package/pearl-chain-vertical.d.ts.map +1 -1
  78. package/pearl-chain-vertical.js +2 -21
  79. package/pearl-chain.d.ts +3 -0
  80. package/pearl-chain.d.ts.map +1 -1
  81. package/pearl-chain.js +2 -175
  82. package/timetable-duration/timetable-duration.js +55 -0
  83. package/timetable-duration.d.ts +3 -0
  84. package/timetable-duration.d.ts.map +1 -1
  85. package/timetable-duration.js +2 -53
  86. package/timetable-row/timetable-row.d.ts +1 -0
  87. package/timetable-row/timetable-row.d.ts.map +1 -1
  88. package/timetable-row/timetable-row.js +462 -0
  89. package/timetable-row.d.ts +3 -0
  90. package/timetable-row.d.ts.map +1 -1
  91. package/timetable-row.js +9 -439
  92. package/{toDate-DQg4ZFnf.js → toDate-BCXKL_wM.js} +4 -4
  93. package/development/pearl-chain/pearl-chain.sample-data.d.ts +0 -140
  94. package/development/pearl-chain/pearl-chain.sample-data.d.ts.map +0 -1
  95. package/development/timetable-duration/timetable-duration.sample-data.d.ts +0 -6
  96. package/development/timetable-duration/timetable-duration.sample-data.d.ts.map +0 -1
  97. package/development/timetable-row/timetable-row.sample-data.d.ts +0 -24
  98. package/development/timetable-row/timetable-row.sample-data.d.ts.map +0 -1
  99. package/pearl-chain/pearl-chain.sample-data.d.ts +0 -140
  100. package/pearl-chain/pearl-chain.sample-data.d.ts.map +0 -1
  101. package/timetable-duration/timetable-duration.sample-data.d.ts +0 -6
  102. package/timetable-duration/timetable-duration.sample-data.d.ts.map +0 -1
  103. package/timetable-row/timetable-row.sample-data.d.ts +0 -24
  104. package/timetable-row/timetable-row.sample-data.d.ts.map +0 -1
@@ -1,140 +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 defaultBusLeg: any;
51
- export declare const pastBusLeg: any;
52
- export declare const defaultShipLeg: any;
53
- export declare const defaultTramLeg: any;
54
- export declare const delayedLeg: {
55
- __typename: string;
56
- arrival: {
57
- time: string;
58
- };
59
- departure: {
60
- time: string;
61
- };
62
- serviceJourney: {
63
- serviceAlteration: {
64
- delay: boolean;
65
- };
66
- quayTypeName: string;
67
- quayTypeShortName: string;
68
- };
69
- };
70
- export declare const notReachableLeg: {
71
- __typename: string;
72
- arrival: {
73
- time: string;
74
- };
75
- departure: {
76
- time: string;
77
- };
78
- serviceJourney: {
79
- serviceAlteration: {
80
- reachable: boolean;
81
- };
82
- quayTypeName: string;
83
- quayTypeShortName: string;
84
- };
85
- };
86
- export declare const unplannedStopLeg: {
87
- __typename: string;
88
- arrival: {
89
- time: string;
90
- };
91
- departure: {
92
- time: string;
93
- };
94
- serviceJourney: {
95
- serviceAlteration: {
96
- unplannedStopPointsText: string;
97
- };
98
- quayTypeName: string;
99
- quayTypeShortName: string;
100
- };
101
- };
102
- export declare const redirectedOnDepartureLeg: {
103
- __typename: string;
104
- arrival: {
105
- time: string;
106
- };
107
- departure: {
108
- time: string;
109
- };
110
- serviceJourney: {
111
- serviceAlteration: {
112
- redirectedText: string;
113
- };
114
- quayTypeName: string;
115
- quayTypeShortName: string;
116
- stopPoints: {
117
- stopStatus: string;
118
- }[];
119
- };
120
- };
121
- export declare const redirectedOnArrivalLeg: {
122
- __typename: string;
123
- arrival: {
124
- time: string;
125
- };
126
- departure: {
127
- time: string;
128
- };
129
- serviceJourney: {
130
- stopPoints: {
131
- stopStatus: string;
132
- }[];
133
- serviceAlteration: {
134
- redirectedText: string;
135
- };
136
- quayTypeName: string;
137
- quayTypeShortName: string;
138
- };
139
- };
140
- //# 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,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,24 +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 shipTrip: DeepPartial<ITripItem>;
20
- export declare const walkTimeTrip: DeepPartial<ITripItem>;
21
- export declare const a11yFootpathTrip: DeepPartial<ITripItem>;
22
- export declare const extendedEnterTimeTrip: DeepPartial<ITripItem>;
23
- export declare const noticesTrip: DeepPartial<ITripItem>;
24
- //# 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;AAiBtD,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,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"}