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