@sbb-esta/lyne-elements-experimental 2.11.1 → 2.11.2
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/core/datetime/date-helper.js +142 -142
- package/core/timetable/access-leg-helper.js +49 -52
- package/core/timetable/timetable-helper.js +7 -8
- package/development/core/datetime/date-helper.js +10 -10
- package/development/core/timetable/access-leg-helper.js +12 -15
- package/development/core/timetable/timetable-helper.js +6 -7
- package/development/{differenceInMinutes-CHSyWiQs.js → differenceInMinutes-D5Nj8Stc.js} +3 -3
- package/development/{format-D0-yhzi4.js → format-BQfaa1ZT.js} +22 -26
- package/development/{isValid-Bo4R7iA7.js → isValid-DvieCZVi.js} +3 -3
- package/development/journey-summary/journey-summary.component.js +4 -5
- package/development/pearl-chain/pearl-chain.component.d.ts.map +1 -1
- package/development/pearl-chain/pearl-chain.component.js +28 -39
- package/development/pearl-chain-time/pearl-chain-time.component.js +5 -6
- package/development/pearl-chain-vertical/pearl-chain-vertical.component.js +1 -1
- package/development/pearl-chain-vertical-item/pearl-chain-vertical-item.component.js +1 -1
- package/development/seat-reservation/common/mapper/icon-mapper.js +1 -1
- package/development/seat-reservation/common/mapper/mapper.js +14 -16
- package/development/seat-reservation/common/mapper/seat-reservation-sample-data.js +1 -1
- package/development/seat-reservation/common/svgs.js +1 -1
- package/development/seat-reservation/common/translations/i18n.js +2 -3
- package/development/seat-reservation/seat-reservation/seat-reservation-base-element.js +22 -33
- package/development/seat-reservation/seat-reservation/seat-reservation-scoped/seat-reservation-scoped.component.js +6 -7
- package/development/seat-reservation/seat-reservation/seat-reservation.component.js +16 -23
- package/development/seat-reservation/seat-reservation-area/seat-reservation-area.component.js +1 -1
- package/development/seat-reservation/seat-reservation-graphic/seat-reservation-assets.js +2 -3
- package/development/seat-reservation/seat-reservation-graphic/seat-reservation-graphic.component.js +7 -8
- package/development/seat-reservation/seat-reservation-navigation/seat-reservation-navigation-coach/seat-reservation-navigation-coach.component.js +7 -11
- package/development/seat-reservation/seat-reservation-navigation/seat-reservation-navigation-services/seat-reservation-navigation-services.component.js +2 -3
- package/development/seat-reservation/seat-reservation-place-control/seat-reservation-place-control.component.js +4 -5
- package/development/timetable-duration/timetable-duration.component.js +1 -1
- package/development/timetable-row/timetable-row.component.js +58 -89
- package/differenceInMinutes-CP_C5onR.js +23 -0
- package/{format-Dg8rkk7h.js → format-lqeCzmzS.js} +438 -442
- package/isValid-Ceq2O0NQ.js +45 -0
- package/journey-summary/journey-summary.component.js +3 -4
- package/package.json +2 -2
- package/pearl-chain/pearl-chain.component.d.ts.map +1 -1
- package/pearl-chain/pearl-chain.component.js +78 -95
- package/pearl-chain-time/pearl-chain-time.component.js +44 -45
- package/seat-reservation/common/mapper/mapper.js +50 -54
- package/seat-reservation/common/translations/i18n.js +5 -6
- package/seat-reservation/seat-reservation/seat-reservation-base-element.js +104 -115
- package/seat-reservation/seat-reservation/seat-reservation-scoped/seat-reservation-scoped.component.js +40 -41
- package/seat-reservation/seat-reservation/seat-reservation.component.js +78 -87
- package/seat-reservation/seat-reservation-graphic/seat-reservation-assets.js +15 -18
- package/seat-reservation/seat-reservation-graphic/seat-reservation-graphic.component.js +58 -59
- package/seat-reservation/seat-reservation-navigation/seat-reservation-navigation-coach/seat-reservation-navigation-coach.component.js +71 -75
- package/seat-reservation/seat-reservation-navigation/seat-reservation-navigation-services/seat-reservation-navigation-services.component.js +12 -13
- package/seat-reservation/seat-reservation-place-control/seat-reservation-place-control.component.js +23 -24
- package/timetable-row/timetable-row.component.js +207 -247
- package/differenceInMinutes-BMqUZdhj.js +0 -23
- package/isValid-DJ69OMZJ.js +0 -45
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { t as u, m as d } from "./toDate-BCXKL_wM.js";
|
|
2
|
-
function f(n, r, e) {
|
|
3
|
-
const t = u(n, e == null ? void 0 : e.in);
|
|
4
|
-
return t.setTime(t.getTime() + r * d), t;
|
|
5
|
-
}
|
|
6
|
-
function c(n) {
|
|
7
|
-
return (r) => {
|
|
8
|
-
const t = (n ? Math[n] : Math.trunc)(r);
|
|
9
|
-
return t === 0 ? 0 : t;
|
|
10
|
-
};
|
|
11
|
-
}
|
|
12
|
-
function i(n, r) {
|
|
13
|
-
return +u(n) - +u(r);
|
|
14
|
-
}
|
|
15
|
-
function s(n, r, e) {
|
|
16
|
-
const t = i(n, r) / d;
|
|
17
|
-
return c(e == null ? void 0 : e.roundingMethod)(t);
|
|
18
|
-
}
|
|
19
|
-
export {
|
|
20
|
-
f as a,
|
|
21
|
-
s as d,
|
|
22
|
-
c as g
|
|
23
|
-
};
|
package/isValid-DJ69OMZJ.js
DELETED
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
import { t as r, c as D, a as m } from "./toDate-BCXKL_wM.js";
|
|
2
|
-
function o(e) {
|
|
3
|
-
const t = r(e), n = new Date(
|
|
4
|
-
Date.UTC(
|
|
5
|
-
t.getFullYear(),
|
|
6
|
-
t.getMonth(),
|
|
7
|
-
t.getDate(),
|
|
8
|
-
t.getHours(),
|
|
9
|
-
t.getMinutes(),
|
|
10
|
-
t.getSeconds(),
|
|
11
|
-
t.getMilliseconds()
|
|
12
|
-
)
|
|
13
|
-
);
|
|
14
|
-
return n.setUTCFullYear(t.getFullYear()), +e - +n;
|
|
15
|
-
}
|
|
16
|
-
function g(e, ...t) {
|
|
17
|
-
const n = D.bind(
|
|
18
|
-
null,
|
|
19
|
-
t.find((a) => typeof a == "object")
|
|
20
|
-
);
|
|
21
|
-
return t.map(n);
|
|
22
|
-
}
|
|
23
|
-
function i(e, t) {
|
|
24
|
-
const n = r(e, t == null ? void 0 : t.in);
|
|
25
|
-
return n.setHours(0, 0, 0, 0), n;
|
|
26
|
-
}
|
|
27
|
-
function b(e, t, n) {
|
|
28
|
-
const [a, l] = g(
|
|
29
|
-
n == null ? void 0 : n.in,
|
|
30
|
-
e,
|
|
31
|
-
t
|
|
32
|
-
), c = i(a), s = i(l), u = +c - o(c), f = +s - o(s);
|
|
33
|
-
return Math.round((u - f) / m);
|
|
34
|
-
}
|
|
35
|
-
function d(e) {
|
|
36
|
-
return e instanceof Date || typeof e == "object" && Object.prototype.toString.call(e) === "[object Date]";
|
|
37
|
-
}
|
|
38
|
-
function M(e) {
|
|
39
|
-
return !(!d(e) && typeof e != "number" || isNaN(+r(e)));
|
|
40
|
-
}
|
|
41
|
-
export {
|
|
42
|
-
b as d,
|
|
43
|
-
M as i,
|
|
44
|
-
g as n
|
|
45
|
-
};
|