@sbb-esta/lyne-elements-experimental-dev 4.7.0-dev.1773388997 → 4.7.0-dev.1773393170

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 (200) hide show
  1. package/autocomplete-grid/autocomplete-grid/autocomplete-grid.component.js +76 -65
  2. package/autocomplete-grid/autocomplete-grid-button/autocomplete-grid-button.component.js +52 -72
  3. package/autocomplete-grid/autocomplete-grid-button.js +6 -3
  4. package/autocomplete-grid/autocomplete-grid-cell/autocomplete-grid-cell.component.js +17 -2
  5. package/autocomplete-grid/autocomplete-grid-cell.js +7 -4
  6. package/autocomplete-grid/autocomplete-grid-optgroup/autocomplete-grid-optgroup.component.js +21 -20
  7. package/autocomplete-grid/autocomplete-grid-optgroup.js +6 -3
  8. package/autocomplete-grid/autocomplete-grid-option/autocomplete-grid-option.component.js +33 -2
  9. package/autocomplete-grid/autocomplete-grid-option.js +9 -4
  10. package/autocomplete-grid/autocomplete-grid-row/autocomplete-grid-row.component.js +22 -2
  11. package/autocomplete-grid/autocomplete-grid-row.js +7 -4
  12. package/autocomplete-grid/autocomplete-grid.js +6 -3
  13. package/autocomplete-grid.js +21 -9
  14. package/autocomplete-grid.pure.js +15 -7
  15. package/core/datetime/date-helper.js +191 -2
  16. package/core/datetime.js +5 -2
  17. package/core/timetable/access-leg-helper.js +71 -76
  18. package/core/timetable/timetable-helper.js +11 -9
  19. package/core/timetable/timetable-properties.js +1 -0
  20. package/core/timetable.js +7 -3
  21. package/custom-elements.json +84 -84
  22. package/development/autocomplete-grid/autocomplete-grid/autocomplete-grid.component.js +122 -114
  23. package/development/autocomplete-grid/autocomplete-grid-button/autocomplete-grid-button.component.js +70 -92
  24. package/development/autocomplete-grid/autocomplete-grid-button.js +4 -6
  25. package/development/autocomplete-grid/autocomplete-grid-cell/autocomplete-grid-cell.component.js +29 -2
  26. package/development/autocomplete-grid/autocomplete-grid-cell.js +5 -7
  27. package/development/autocomplete-grid/autocomplete-grid-optgroup/autocomplete-grid-optgroup.component.js +22 -27
  28. package/development/autocomplete-grid/autocomplete-grid-optgroup.js +4 -6
  29. package/development/autocomplete-grid/autocomplete-grid-option/autocomplete-grid-option.component.js +109 -2
  30. package/development/autocomplete-grid/autocomplete-grid-option.js +7 -7
  31. package/development/autocomplete-grid/autocomplete-grid-row/autocomplete-grid-row.component.js +91 -2
  32. package/development/autocomplete-grid/autocomplete-grid-row.js +5 -7
  33. package/development/autocomplete-grid/autocomplete-grid.js +4 -6
  34. package/development/autocomplete-grid.js +14 -10
  35. package/development/autocomplete-grid.pure.js +13 -4
  36. package/development/core/datetime/date-helper.js +285 -2
  37. package/development/core/datetime.js +6 -2
  38. package/development/core/timetable/access-leg-helper.js +82 -104
  39. package/development/core/timetable/timetable-helper.js +17 -16
  40. package/development/core/timetable/timetable-properties.js +2 -0
  41. package/development/core/timetable.js +8 -3
  42. package/development/differenceInMinutes-B0dawX-5.js +26 -0
  43. package/development/format-BMkeaqaF.js +1433 -0
  44. package/development/isValid-BYRch7pV.js +53 -0
  45. package/development/journey-summary/journey-summary.component.js +288 -2
  46. package/development/journey-summary.js +5 -8
  47. package/development/journey-summary.pure.js +5 -2
  48. package/development/pearl-chain/pearl-chain.component.js +634 -2
  49. package/development/pearl-chain-time/pearl-chain-time.component.js +306 -2
  50. package/development/pearl-chain-time.js +5 -8
  51. package/development/pearl-chain-time.pure.js +5 -2
  52. package/development/pearl-chain-vertical/pearl-chain-vertical.component.js +28 -2
  53. package/development/pearl-chain-vertical-item/pearl-chain-vertical-item.component.js +393 -2
  54. package/development/pearl-chain-vertical-item.js +5 -8
  55. package/development/pearl-chain-vertical-item.pure.js +5 -2
  56. package/development/pearl-chain-vertical.js +5 -8
  57. package/development/pearl-chain-vertical.pure.js +5 -2
  58. package/development/pearl-chain.js +5 -8
  59. package/development/pearl-chain.pure.js +5 -2
  60. package/development/seat-reservation/common/mapper/icon-mapper.js +71 -168
  61. package/development/seat-reservation/common/mapper/mapper.js +122 -153
  62. package/development/seat-reservation/common/mapper/sample-data/seat-reservation-sample-data-bus.js +559 -570
  63. package/development/seat-reservation/common/mapper/sample-data/seat-reservation-sample-data-decks.js +972 -992
  64. package/development/seat-reservation/common/mapper/sample-data/seat-reservation-sample-data-giruno.js +20367 -20334
  65. package/development/seat-reservation/common/mapper/sample-data/seat-reservation-sample-data-others.js +1738 -1731
  66. package/development/seat-reservation/common/mapper/sample-data/seat-reservation-sample-data-train.js +9782 -9741
  67. package/development/seat-reservation/common/mapper.js +8 -1
  68. package/development/seat-reservation/common/svgs.js +46 -2
  69. package/development/seat-reservation/common/translations/i18n.js +900 -1118
  70. package/development/seat-reservation/common/translations.js +4 -1
  71. package/development/seat-reservation/common/types.js +2 -0
  72. package/development/seat-reservation/common.js +11 -7
  73. package/development/seat-reservation/seat-reservation/seat-reservation-base-element.js +1230 -1305
  74. package/development/seat-reservation/seat-reservation/seat-reservation.component.js +859 -2
  75. package/development/seat-reservation/seat-reservation-area/seat-reservation-area.component.js +106 -2
  76. package/development/seat-reservation/seat-reservation-area.js +5 -7
  77. package/development/seat-reservation/seat-reservation-graphic/seat-reservation-assets.js +34 -35
  78. package/development/seat-reservation/seat-reservation-graphic/seat-reservation-graphic.component.js +162 -2
  79. package/development/seat-reservation/seat-reservation-graphic.js +5 -7
  80. package/development/seat-reservation/seat-reservation-navigation-coach/seat-reservation-navigation-coach.component.js +713 -2
  81. package/development/seat-reservation/seat-reservation-navigation-coach.js +5 -7
  82. package/development/seat-reservation/seat-reservation-navigation-services/seat-reservation-navigation-services.component.js +131 -2
  83. package/development/seat-reservation/seat-reservation-navigation-services.js +5 -7
  84. package/development/seat-reservation/seat-reservation-place-control/seat-reservation-place-control.component.js +601 -2
  85. package/development/seat-reservation/seat-reservation-place-control.js +5 -7
  86. package/development/seat-reservation/seat-reservation-scoped/seat-reservation-scoped.component.js +22 -2
  87. package/development/seat-reservation/seat-reservation-scoped.js +5 -7
  88. package/development/seat-reservation/seat-reservation.js +6 -7
  89. package/development/seat-reservation.js +28 -15
  90. package/development/seat-reservation.pure.js +28 -10
  91. package/development/timetable-duration/timetable-duration.component.js +108 -2
  92. package/development/timetable-duration.js +5 -8
  93. package/development/timetable-duration.pure.js +5 -2
  94. package/development/timetable-row/timetable-row.component.js +781 -2
  95. package/development/timetable-row.js +13 -8
  96. package/development/timetable-row.pure.js +12 -2
  97. package/development/toDate-BWb6Z1JD.js +24 -0
  98. package/differenceInMinutes-COvvdYsJ.js +23 -0
  99. package/format-CmKROkbc.js +1186 -0
  100. package/isValid-m3_OsPaB.js +45 -0
  101. package/journey-summary/journey-summary.component.js +194 -2
  102. package/journey-summary.js +4 -5
  103. package/journey-summary.pure.js +4 -2
  104. package/package.json +2 -2
  105. package/pearl-chain/pearl-chain.component.js +165 -2
  106. package/pearl-chain-time/pearl-chain-time.component.js +157 -2
  107. package/pearl-chain-time.js +4 -5
  108. package/pearl-chain-time.pure.js +4 -2
  109. package/pearl-chain-vertical/pearl-chain-vertical.component.js +17 -2
  110. package/pearl-chain-vertical-item/pearl-chain-vertical-item.component.js +77 -2
  111. package/pearl-chain-vertical-item.js +4 -5
  112. package/pearl-chain-vertical-item.pure.js +4 -2
  113. package/pearl-chain-vertical.js +4 -5
  114. package/pearl-chain-vertical.pure.js +4 -2
  115. package/pearl-chain.js +4 -5
  116. package/pearl-chain.pure.js +4 -2
  117. package/seat-reservation/common/mapper/icon-mapper.js +71 -71
  118. package/seat-reservation/common/mapper/mapper.js +89 -95
  119. package/seat-reservation/common/mapper/sample-data/seat-reservation-sample-data-bus.js +558 -568
  120. package/seat-reservation/common/mapper/sample-data/seat-reservation-sample-data-decks.js +970 -989
  121. package/seat-reservation/common/mapper/sample-data/seat-reservation-sample-data-giruno.js +20366 -20332
  122. package/seat-reservation/common/mapper/sample-data/seat-reservation-sample-data-others.js +1737 -1729
  123. package/seat-reservation/common/mapper/sample-data/seat-reservation-sample-data-train.js +9781 -9739
  124. package/seat-reservation/common/mapper.js +9 -3
  125. package/seat-reservation/common/svgs.js +243 -2
  126. package/seat-reservation/common/translations/i18n.js +891 -1084
  127. package/seat-reservation/common/translations.js +4 -2
  128. package/seat-reservation/common/types.js +1 -0
  129. package/seat-reservation/common.js +15 -9
  130. package/seat-reservation/seat-reservation/seat-reservation-base-element.js +810 -832
  131. package/seat-reservation/seat-reservation/seat-reservation.component.js +420 -2
  132. package/seat-reservation/seat-reservation-area/seat-reservation-area.component.js +51 -2
  133. package/seat-reservation/seat-reservation-area.js +7 -4
  134. package/seat-reservation/seat-reservation-graphic/seat-reservation-assets.js +71 -68
  135. package/seat-reservation/seat-reservation-graphic/seat-reservation-graphic.component.js +75 -2
  136. package/seat-reservation/seat-reservation-graphic.js +7 -4
  137. package/seat-reservation/seat-reservation-navigation-coach/seat-reservation-navigation-coach.component.js +234 -2
  138. package/seat-reservation/seat-reservation-navigation-coach.js +7 -4
  139. package/seat-reservation/seat-reservation-navigation-services/seat-reservation-navigation-services.component.js +85 -2
  140. package/seat-reservation/seat-reservation-navigation-services.js +7 -4
  141. package/seat-reservation/seat-reservation-place-control/seat-reservation-place-control.component.js +203 -2
  142. package/seat-reservation/seat-reservation-place-control.js +7 -4
  143. package/seat-reservation/seat-reservation-scoped/seat-reservation-scoped.component.js +13 -2
  144. package/seat-reservation/seat-reservation-scoped.js +7 -4
  145. package/seat-reservation/seat-reservation.js +9 -5
  146. package/seat-reservation.js +39 -17
  147. package/seat-reservation.pure.js +32 -15
  148. package/timetable-duration/timetable-duration.component.js +57 -2
  149. package/timetable-duration.js +4 -5
  150. package/timetable-duration.pure.js +4 -2
  151. package/timetable-row/timetable-row.component.js +427 -2
  152. package/timetable-row.js +13 -6
  153. package/timetable-row.pure.js +11 -2
  154. package/toDate-Bw2KTWeq.js +15 -0
  155. package/autocomplete-grid-cell.component-Dak9wlBr.js +0 -24
  156. package/autocomplete-grid-option.component-DNRFHOwc.js +0 -37
  157. package/autocomplete-grid-row.component-DBHZQ0GQ.js +0 -27
  158. package/date-helper-CGproP5d.js +0 -185
  159. package/development/autocomplete-grid-cell.component-BBvM4o2H.js +0 -42
  160. package/development/autocomplete-grid-option.component-QzfM5eIE.js +0 -123
  161. package/development/autocomplete-grid-row.component-H8sCTCkT.js +0 -104
  162. package/development/date-helper-8_Y-PuHh.js +0 -520
  163. package/development/differenceInMinutes-DN_1Rk3O.js +0 -110
  164. package/development/format-Bbrn2bgo.js +0 -1848
  165. package/development/isValid-C-HzKv4v.js +0 -178
  166. package/development/journey-summary.component-uGhZvA4p.js +0 -385
  167. package/development/pearl-chain-time.component-B8mayTWD.js +0 -415
  168. package/development/pearl-chain-vertical-item.component-BDzbcIaf.js +0 -435
  169. package/development/pearl-chain-vertical.component-CswE7b3M.js +0 -39
  170. package/development/pearl-chain.component-wpsTvoSe.js +0 -704
  171. package/development/seat-reservation-area.component-BK92ZtFo.js +0 -138
  172. package/development/seat-reservation-graphic.component-cUnsHh5x.js +0 -193
  173. package/development/seat-reservation-navigation-coach.component-D6Bglus8.js +0 -828
  174. package/development/seat-reservation-navigation-services.component-DYJ6Ddkg.js +0 -179
  175. package/development/seat-reservation-place-control.component-Bg9evKBW.js +0 -726
  176. package/development/seat-reservation-scoped.component-DRQ_I702.js +0 -31
  177. package/development/seat-reservation.component-Cq_aJKR0.js +0 -818
  178. package/development/svgs-C3JMWR26.js +0 -28
  179. package/development/timetable-duration.component-DI0lET17.js +0 -125
  180. package/development/timetable-row.component-CAED6Zwc.js +0 -932
  181. package/development/toDate-Biiv3kyf.js +0 -150
  182. package/differenceInMinutes-Dr9gRqtu.js +0 -27
  183. package/format-CM5exOsN.js +0 -1103
  184. package/isValid-B9oVW3lA.js +0 -36
  185. package/journey-summary.component-Cq_4kaOp.js +0 -264
  186. package/pearl-chain-time.component-DGDW5S1c.js +0 -239
  187. package/pearl-chain-vertical-item.component-G22bWhLU.js +0 -108
  188. package/pearl-chain-vertical.component-CXIDT5RD.js +0 -21
  189. package/pearl-chain.component-DmjkVIva.js +0 -194
  190. package/seat-reservation-area.component-n-9rGn_y.js +0 -75
  191. package/seat-reservation-graphic.component-YTXRmKt0.js +0 -102
  192. package/seat-reservation-navigation-coach.component-YJ0vaYmO.js +0 -333
  193. package/seat-reservation-navigation-services.component-C3xnLJg2.js +0 -127
  194. package/seat-reservation-place-control.component-DmBAfM6K.js +0 -322
  195. package/seat-reservation-scoped.component-DPkz6u17.js +0 -17
  196. package/seat-reservation.component-C_anMkgw.js +0 -364
  197. package/svgs-D9arBcqr.js +0 -26
  198. package/timetable-duration.component-DCu8Phts.js +0 -65
  199. package/timetable-row.component-BVRCB3xK.js +0 -559
  200. package/toDate-p-Tpkb7t.js +0 -16
@@ -1,36 +0,0 @@
1
- import { n as e, r as t, t as n } from "./toDate-p-Tpkb7t.js";
2
- //#region node_modules/date-fns/_lib/getTimezoneOffsetInMilliseconds.js
3
- function r(e) {
4
- let t = n(e), r = new Date(Date.UTC(t.getFullYear(), t.getMonth(), t.getDate(), t.getHours(), t.getMinutes(), t.getSeconds(), t.getMilliseconds()));
5
- return r.setUTCFullYear(t.getFullYear()), e - +r;
6
- }
7
- //#endregion
8
- //#region node_modules/date-fns/_lib/normalizeDates.js
9
- function i(t, ...n) {
10
- let r = e.bind(null, t || n.find((e) => typeof e == "object"));
11
- return n.map(r);
12
- }
13
- //#endregion
14
- //#region node_modules/date-fns/startOfDay.js
15
- function a(e, t) {
16
- let r = n(e, t?.in);
17
- return r.setHours(0, 0, 0, 0), r;
18
- }
19
- //#endregion
20
- //#region node_modules/date-fns/differenceInCalendarDays.js
21
- function o(e, n, o) {
22
- let [s, c] = i(o?.in, e, n), l = a(s), u = a(c), d = +l - r(l), f = +u - r(u);
23
- return Math.round((d - f) / t);
24
- }
25
- //#endregion
26
- //#region node_modules/date-fns/isDate.js
27
- function s(e) {
28
- return e instanceof Date || typeof e == "object" && Object.prototype.toString.call(e) === "[object Date]";
29
- }
30
- //#endregion
31
- //#region node_modules/date-fns/isValid.js
32
- function c(e) {
33
- return !(!s(e) && typeof e != "number" || isNaN(+n(e)));
34
- }
35
- //#endregion
36
- export { o as n, i as r, c as t };
@@ -1,264 +0,0 @@
1
- import { t as e } from "./format-CM5exOsN.js";
2
- import { t } from "./isValid-B9oVW3lA.js";
3
- import { __esDecorate as n, __runInitializers as r } from "tslib";
4
- import { SbbElement as i } from "@sbb-esta/lyne-elements/core/base-elements.js";
5
- import { SbbLanguageController as a } from "@sbb-esta/lyne-elements/core/controllers.js";
6
- import { forceType as o } from "@sbb-esta/lyne-elements/core/decorators.js";
7
- import { boxSizingStyles as s } from "@sbb-esta/lyne-elements/core/styles.js";
8
- import { css as c, html as l, nothing as u } from "lit";
9
- import { defaultDateAdapter as d } from "@sbb-esta/lyne-elements/core/datetime.js";
10
- import { i18nTripDuration as f } from "@sbb-esta/lyne-elements/core/i18n.js";
11
- import { property as p } from "lit/decorators.js";
12
- import { durationToTime as m, removeTimezoneFromISOTimeString as h } from "./core/datetime.js";
13
- import "@sbb-esta/lyne-elements/divider.js";
14
- import "@sbb-esta/lyne-elements/screen-reader-only.js";
15
- import "@sbb-esta/lyne-elements/journey-header.js";
16
- import "./pearl-chain-time.js";
17
- //#region src/elements-experimental/journey-summary/journey-summary.scss?lit&inline
18
- var g = c`:host{display:block}.sbb-journey-summary{--sbb-text-font-size:var(--sbb-text-font-size-s);font-family:var(--sbb-typo-font-family);font-weight:400;line-height:var(--sbb-typo-line-height-text);letter-spacing:var(--sbb-typo-letter-spacing-text);font-size:var(--sbb-text-font-size);color:var(--sbb-color-4);flex-direction:column;display:flex}.sbb-journey-summary__via-block{display:flex}.sbb-journey-summary__vias{white-space:nowrap;text-overflow:ellipsis;margin-block:0;padding-inline-start:var(--sbb-spacing-fixed-1x);overflow:hidden}.sbb-journey-summary__date{margin-block-end:var(--sbb-spacing-fixed-2x)}.sbb-journey-summary__via{white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.sbb-journey-summary__divider{margin-block:var(--sbb-spacing-fixed-6x)}ul li{list-style:none;display:inline}`, _ = (() => {
19
- let c = i, _ = [], v, y = [], b = [], x, S = [], C = [], w, T = [], E = [], D, O = [], k = [], A, j = [], M = [], N, P = [], F = [], I;
20
- return class extends c {
21
- constructor() {
22
- super(...arguments), this.#e = (r(this, _), r(this, y, null)), this.#t = (r(this, b), r(this, S, null)), this.#n = (r(this, C), r(this, T, !1)), this.#r = (r(this, E), r(this, O, "3")), this.#i = (r(this, k), r(this, j, !1)), this.#a = (r(this, M), r(this, P, !1)), this._now = (r(this, F), null), this._hasContentSlot = !1, this._language = new a(this);
23
- }
24
- static {
25
- let e = typeof Symbol == "function" && Symbol.metadata ? Object.create(c[Symbol.metadata] ?? null) : void 0;
26
- v = [p({ type: Object })], x = [p({
27
- attribute: "trip-back",
28
- type: Object
29
- })], w = [o(), p({
30
- attribute: "round-trip",
31
- type: Boolean
32
- })], D = [p({ attribute: "header-level" })], A = [o(), p({
33
- attribute: "disable-animation",
34
- type: Boolean
35
- })], N = [o(), p({
36
- attribute: "a11y-footpath",
37
- type: Boolean
38
- })], I = [p()], n(this, null, v, {
39
- kind: "accessor",
40
- name: "trip",
41
- static: !1,
42
- private: !1,
43
- access: {
44
- has: (e) => "trip" in e,
45
- get: (e) => e.trip,
46
- set: (e, t) => {
47
- e.trip = t;
48
- }
49
- },
50
- metadata: e
51
- }, y, b), n(this, null, x, {
52
- kind: "accessor",
53
- name: "tripBack",
54
- static: !1,
55
- private: !1,
56
- access: {
57
- has: (e) => "tripBack" in e,
58
- get: (e) => e.tripBack,
59
- set: (e, t) => {
60
- e.tripBack = t;
61
- }
62
- },
63
- metadata: e
64
- }, S, C), n(this, null, w, {
65
- kind: "accessor",
66
- name: "roundTrip",
67
- static: !1,
68
- private: !1,
69
- access: {
70
- has: (e) => "roundTrip" in e,
71
- get: (e) => e.roundTrip,
72
- set: (e, t) => {
73
- e.roundTrip = t;
74
- }
75
- },
76
- metadata: e
77
- }, T, E), n(this, null, D, {
78
- kind: "accessor",
79
- name: "headerLevel",
80
- static: !1,
81
- private: !1,
82
- access: {
83
- has: (e) => "headerLevel" in e,
84
- get: (e) => e.headerLevel,
85
- set: (e, t) => {
86
- e.headerLevel = t;
87
- }
88
- },
89
- metadata: e
90
- }, O, k), n(this, null, A, {
91
- kind: "accessor",
92
- name: "disableAnimation",
93
- static: !1,
94
- private: !1,
95
- access: {
96
- has: (e) => "disableAnimation" in e,
97
- get: (e) => e.disableAnimation,
98
- set: (e, t) => {
99
- e.disableAnimation = t;
100
- }
101
- },
102
- metadata: e
103
- }, j, M), n(this, null, N, {
104
- kind: "accessor",
105
- name: "a11yFootpath",
106
- static: !1,
107
- private: !1,
108
- access: {
109
- has: (e) => "a11yFootpath" in e,
110
- get: (e) => e.a11yFootpath,
111
- set: (e, t) => {
112
- e.a11yFootpath = t;
113
- }
114
- },
115
- metadata: e
116
- }, P, F), n(this, null, I, {
117
- kind: "setter",
118
- name: "now",
119
- static: !1,
120
- private: !1,
121
- access: {
122
- has: (e) => "now" in e,
123
- set: (e, t) => {
124
- e.now = t;
125
- }
126
- },
127
- metadata: e
128
- }, null, _), e && Object.defineProperty(this, Symbol.metadata, {
129
- enumerable: !0,
130
- configurable: !0,
131
- writable: !0,
132
- value: e
133
- });
134
- }
135
- static {
136
- this.elementName = "sbb-journey-summary";
137
- }
138
- static {
139
- this.styles = [s, g];
140
- }
141
- #e;
142
- get trip() {
143
- return this.#e;
144
- }
145
- set trip(e) {
146
- this.#e = e;
147
- }
148
- #t;
149
- get tripBack() {
150
- return this.#t;
151
- }
152
- set tripBack(e) {
153
- this.#t = e;
154
- }
155
- #n;
156
- get roundTrip() {
157
- return this.#n;
158
- }
159
- set roundTrip(e) {
160
- this.#n = e;
161
- }
162
- #r;
163
- get headerLevel() {
164
- return this.#r;
165
- }
166
- set headerLevel(e) {
167
- this.#r = e;
168
- }
169
- #i;
170
- get disableAnimation() {
171
- return this.#i;
172
- }
173
- set disableAnimation(e) {
174
- this.#i = e;
175
- }
176
- #a;
177
- get a11yFootpath() {
178
- return this.#a;
179
- }
180
- set a11yFootpath(e) {
181
- this.#a = e;
182
- }
183
- set now(e) {
184
- this._now = d.getValidDateOrNull(d.deserialize(e));
185
- }
186
- get now() {
187
- return this._now ?? /* @__PURE__ */ new Date();
188
- }
189
- connectedCallback() {
190
- super.connectedCallback(), this._hasContentSlot = !!this.querySelector?.("[slot=\"content\"]");
191
- }
192
- _renderJourneyStart(n, r) {
193
- let i = d, a = r ? m(r, this._language.current) : null;
194
- if (t(n)) return l`
195
- <time datetime=${e(n, "d") + " " + e(n, "M")}>
196
- ${i.format(n).replace(",", ".")}</time
197
- >${r && r > 0 ? l`,<time>
198
- <sbb-screen-reader-only>
199
- ${f[this._language.current]} ${a.long}
200
- </sbb-screen-reader-only>
201
- <span aria-hidden="true">${a.short}</span>
202
- </time>` : u}
203
- `;
204
- }
205
- _renderJourneyVias(e) {
206
- let t = e.slice(0, 5);
207
- return l`
208
- <div class="sbb-journey-summary__via-block">
209
- <span class="sbb-journey-summary__via-text">Via</span>
210
- <ul class="sbb-journey-summary__vias" role=${e.length <= 1 ? "presentation" : u}>
211
- ${t.map((e, n) => l`<li class="sbb-journey-summary__via">
212
- ${e}${n !== t.length - 1 && n < 4 ? l`<span>,</span>` : u}
213
- </li>`)}
214
- </ul>
215
- </div>
216
- `;
217
- }
218
- _renderJourneyInformation(e) {
219
- let { vias: t, duration: n, departureWalk: r, departure: i, arrivalWalk: a, arrival: o, legs: s } = e || {};
220
- return l`
221
- <div>
222
- ${t && t.length > 0 ? this._renderJourneyVias(t) : u}
223
- <div class="sbb-journey-summary__date">
224
- ${this._renderJourneyStart(h(i), n)}
225
- </div>
226
- <sbb-pearl-chain-time
227
- .arrivalTime=${o}
228
- .departureTime=${i}
229
- .departureWalk=${r}
230
- .arrivalWalk=${a}
231
- .legs=${s}
232
- .disableAnimation=${this.disableAnimation}
233
- .a11yFootpath=${this.a11yFootpath}
234
- .now=${this.now}
235
- ></sbb-pearl-chain-time>
236
- </div>
237
- `;
238
- }
239
- render() {
240
- let { origin: e, destination: t } = this.trip || {};
241
- return l`
242
- <div class="sbb-journey-summary">
243
- ${e ? l`<sbb-journey-header
244
- size="l"
245
- .level=${this.headerLevel || u}
246
- .origin=${e}
247
- .destination=${t}
248
- .roundTrip=${this.roundTrip ?? u}
249
- ></sbb-journey-header>` : u}
250
- ${this._renderJourneyInformation(this.trip)}
251
- ${this.tripBack ? l`<div>
252
- <sbb-divider class="sbb-journey-summary__divider"></sbb-divider>
253
- ${this._renderJourneyInformation(this.tripBack)}
254
- </div>` : u}
255
- ${this._hasContentSlot ? l` <div class="sbb-journey-summary__slot">
256
- <slot name="content"></slot>
257
- </div>` : u}
258
- </div>
259
- `;
260
- }
261
- };
262
- })();
263
- //#endregion
264
- export { _ as t };
@@ -1,239 +0,0 @@
1
- import { t as e } from "./format-CM5exOsN.js";
2
- import { __esDecorate as t, __runInitializers as n } from "tslib";
3
- import { SbbElement as r } from "@sbb-esta/lyne-elements/core/base-elements.js";
4
- import { SbbLanguageController as i } from "@sbb-esta/lyne-elements/core/controllers.js";
5
- import { forceType as a } from "@sbb-esta/lyne-elements/core/decorators.js";
6
- import { boxSizingStyles as o } from "@sbb-esta/lyne-elements/core/styles.js";
7
- import { css as s, html as c, nothing as l } from "lit";
8
- import { defaultDateAdapter as u } from "@sbb-esta/lyne-elements/core/datetime.js";
9
- import { i18nArrival as d, i18nDeparture as f, i18nTransferProcedures as p } from "@sbb-esta/lyne-elements/core/i18n.js";
10
- import { property as m } from "lit/decorators.js";
11
- import { removeTimezoneFromISOTimeString as h } from "./core/datetime.js";
12
- import { getDepartureArrivalTimeAttribute as g, isRideLeg as _ } from "./core/timetable.js";
13
- import "./pearl-chain.js";
14
- //#region src/elements-experimental/pearl-chain-time/pearl-chain-time.scss?lit&inline
15
- var v = s`:host{--sbb-pearl-chain-time-height:auto;display:block}@media (width>=37.5rem){:host{--sbb-pearl-chain-time-height:1.5625rem}}@media (width>=64rem){:host{--sbb-pearl-chain-time-height:1.75rem}}.sbb-pearl-chain__time{height:var(--sbb-pearl-chain-time-height);flex-wrap:wrap;justify-content:space-between;align-items:center;display:flex}.sbb-pearl-chain__time-walktime,.sbb-pearl-chain__time-transfer{--sbb-text-font-size:var(--sbb-text-font-size-xxs);font-family:var(--sbb-typo-font-family);font-weight:400;line-height:var(--sbb-typo-line-height-text);letter-spacing:var(--sbb-typo-letter-spacing-text);font-size:var(--sbb-text-font-size);align-items:center;display:inline-flex}.sbb-pearl-chain__time-walktime--walk-small-left{margin-inline-end:calc(var(--sbb-spacing-fixed-2x) - .4375rem);transform:translate(-.4375rem)}.sbb-pearl-chain__time-walktime--walk-small-right{margin-inline-start:calc(var(--sbb-spacing-fixed-2x) - .25rem)}.sbb-pearl-chain__time-walktime--wheelchair-small-left{margin-inline-end:calc(var(--sbb-spacing-fixed-2x) - .4375rem);transform:translate(-.375rem)}.sbb-pearl-chain__time-walktime--wheelchair-small-right{margin-inline-start:calc(var(--sbb-spacing-fixed-2x) - .25rem)}.sbb-pearl-chain__time-walktime-prime-symbol{float:right}.sbb-pearl-chain__time-transfer{gap:var(--sbb-spacing-fixed-1x)}.sbb-pearl-chain__time-transfer--sa-ci-departure{margin-inline-end:var(--sbb-spacing-fixed-2x)}.sbb-pearl-chain__time-transfer--sa-ci-arrival{margin-inline-start:calc(var(--sbb-spacing-fixed-2x) - .25rem)}.sbb-pearl-chain__time-chain{margin-inline:var(--sbb-spacing-fixed-3x);flex:auto;align-self:center}.sbb-pearl-chain__time-time{--sbb-text-font-size:var(--sbb-text-font-size-s);font-family:var(--sbb-typo-font-family);font-weight:400;line-height:var(--sbb-typo-line-height-text);letter-spacing:var(--sbb-typo-letter-spacing-text);font-size:var(--sbb-text-font-size);color:var(--sbb-color-2);font-weight:700}.sbb-screen-reader-only{clip-path:rect(0 0 0 0);white-space:nowrap;border:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}`, y = (() => {
16
- let s = r, y = [], b, x = [], S = [], C, w = [], T = [], E, D = [], O = [], k, A = [], j = [], M, N = [], P = [], F, I = [], L = [], R, z = [], B = [], V;
17
- return class extends s {
18
- constructor() {
19
- super(...arguments), this.#e = (n(this, y), n(this, x, [])), this.#t = (n(this, S), n(this, w, "")), this.#n = (n(this, T), n(this, D, "")), this.#r = (n(this, O), n(this, A, NaN)), this.#i = (n(this, j), n(this, N, NaN)), this.#a = (n(this, P), n(this, I, !1)), this.#o = (n(this, L), n(this, z, !1)), this._now = (n(this, B), null), this._language = new i(this);
20
- }
21
- static {
22
- let e = typeof Symbol == "function" && Symbol.metadata ? Object.create(s[Symbol.metadata] ?? null) : void 0;
23
- b = [m({ type: Array })], C = [a(), m({ attribute: "departure-time" })], E = [a(), m({ attribute: "arrival-time" })], k = [a(), m({
24
- attribute: "departure-walk",
25
- type: Number
26
- })], M = [a(), m({
27
- attribute: "arrival-walk",
28
- type: Number
29
- })], F = [a(), m({
30
- attribute: "disable-animation",
31
- type: Boolean
32
- })], R = [a(), m({
33
- attribute: "a11y-footpath",
34
- type: Boolean
35
- })], V = [m()], t(this, null, b, {
36
- kind: "accessor",
37
- name: "legs",
38
- static: !1,
39
- private: !1,
40
- access: {
41
- has: (e) => "legs" in e,
42
- get: (e) => e.legs,
43
- set: (e, t) => {
44
- e.legs = t;
45
- }
46
- },
47
- metadata: e
48
- }, x, S), t(this, null, C, {
49
- kind: "accessor",
50
- name: "departureTime",
51
- static: !1,
52
- private: !1,
53
- access: {
54
- has: (e) => "departureTime" in e,
55
- get: (e) => e.departureTime,
56
- set: (e, t) => {
57
- e.departureTime = t;
58
- }
59
- },
60
- metadata: e
61
- }, w, T), t(this, null, E, {
62
- kind: "accessor",
63
- name: "arrivalTime",
64
- static: !1,
65
- private: !1,
66
- access: {
67
- has: (e) => "arrivalTime" in e,
68
- get: (e) => e.arrivalTime,
69
- set: (e, t) => {
70
- e.arrivalTime = t;
71
- }
72
- },
73
- metadata: e
74
- }, D, O), t(this, null, k, {
75
- kind: "accessor",
76
- name: "departureWalk",
77
- static: !1,
78
- private: !1,
79
- access: {
80
- has: (e) => "departureWalk" in e,
81
- get: (e) => e.departureWalk,
82
- set: (e, t) => {
83
- e.departureWalk = t;
84
- }
85
- },
86
- metadata: e
87
- }, A, j), t(this, null, M, {
88
- kind: "accessor",
89
- name: "arrivalWalk",
90
- static: !1,
91
- private: !1,
92
- access: {
93
- has: (e) => "arrivalWalk" in e,
94
- get: (e) => e.arrivalWalk,
95
- set: (e, t) => {
96
- e.arrivalWalk = t;
97
- }
98
- },
99
- metadata: e
100
- }, N, P), t(this, null, F, {
101
- kind: "accessor",
102
- name: "disableAnimation",
103
- static: !1,
104
- private: !1,
105
- access: {
106
- has: (e) => "disableAnimation" in e,
107
- get: (e) => e.disableAnimation,
108
- set: (e, t) => {
109
- e.disableAnimation = t;
110
- }
111
- },
112
- metadata: e
113
- }, I, L), t(this, null, R, {
114
- kind: "accessor",
115
- name: "a11yFootpath",
116
- static: !1,
117
- private: !1,
118
- access: {
119
- has: (e) => "a11yFootpath" in e,
120
- get: (e) => e.a11yFootpath,
121
- set: (e, t) => {
122
- e.a11yFootpath = t;
123
- }
124
- },
125
- metadata: e
126
- }, z, B), t(this, null, V, {
127
- kind: "setter",
128
- name: "now",
129
- static: !1,
130
- private: !1,
131
- access: {
132
- has: (e) => "now" in e,
133
- set: (e, t) => {
134
- e.now = t;
135
- }
136
- },
137
- metadata: e
138
- }, null, y), e && Object.defineProperty(this, Symbol.metadata, {
139
- enumerable: !0,
140
- configurable: !0,
141
- writable: !0,
142
- value: e
143
- });
144
- }
145
- static {
146
- this.elementName = "sbb-pearl-chain-time";
147
- }
148
- static {
149
- this.styles = [o, v];
150
- }
151
- #e;
152
- get legs() {
153
- return this.#e;
154
- }
155
- set legs(e) {
156
- this.#e = e;
157
- }
158
- #t;
159
- get departureTime() {
160
- return this.#t;
161
- }
162
- set departureTime(e) {
163
- this.#t = e;
164
- }
165
- #n;
166
- get arrivalTime() {
167
- return this.#n;
168
- }
169
- set arrivalTime(e) {
170
- this.#n = e;
171
- }
172
- #r;
173
- get departureWalk() {
174
- return this.#r;
175
- }
176
- set departureWalk(e) {
177
- this.#r = e;
178
- }
179
- #i;
180
- get arrivalWalk() {
181
- return this.#i;
182
- }
183
- set arrivalWalk(e) {
184
- this.#i = e;
185
- }
186
- #a;
187
- get disableAnimation() {
188
- return this.#a;
189
- }
190
- set disableAnimation(e) {
191
- this.#a = e;
192
- }
193
- #o;
194
- get a11yFootpath() {
195
- return this.#o;
196
- }
197
- set a11yFootpath(e) {
198
- this.#o = e;
199
- }
200
- set now(e) {
201
- this._now = u.getValidDateOrNull(u.deserialize(e));
202
- }
203
- get now() {
204
- return this._now ?? /* @__PURE__ */ new Date();
205
- }
206
- render() {
207
- let t = this.departureTime ? h(this.departureTime) : void 0, n = this.arrivalTime ? h(this.arrivalTime) : void 0, { renderDepartureTimeAttribute: r, renderArrivalTimeAttribute: i } = g(this.legs, this.departureWalk || 0, this.arrivalWalk || 0, this._language.current, this.a11yFootpath), a = this.legs?.filter((e) => _(e));
208
- return c`
209
- <div class="sbb-pearl-chain__time">
210
- ${r()}
211
- ${t ? c`<time class="sbb-pearl-chain__time-time" datetime=${this.departureTime}>
212
- <span class="sbb-screen-reader-only"
213
- >${f[this._language.current]}:&nbsp;</span
214
- >
215
- ${e(t, "HH:mm")}
216
- </time>` : l}
217
- ${a?.length > 1 ? c`<span class="sbb-screen-reader-only" role="paragraph">
218
- ${a?.length - 1} ${p[this._language.current]}
219
- </span>` : l}
220
- <sbb-pearl-chain
221
- class="sbb-pearl-chain__time-chain"
222
- .legs=${this.legs}
223
- .disableAnimation=${this.disableAnimation}
224
- .now=${this.now}
225
- ></sbb-pearl-chain>
226
- ${n ? c`<time class="sbb-pearl-chain__time-time" datetime=${this.arrivalTime}>
227
- <span class="sbb-screen-reader-only"
228
- >${d[this._language.current]}:&nbsp;</span
229
- >
230
- ${e(n, "HH:mm")}
231
- </time>` : l}
232
- ${i()}
233
- </div>
234
- `;
235
- }
236
- };
237
- })();
238
- //#endregion
239
- export { y as t };
@@ -1,108 +0,0 @@
1
- import { __esDecorate as e, __runInitializers as t } from "tslib";
2
- import { SbbElement as n } from "@sbb-esta/lyne-elements/core/base-elements.js";
3
- import { forceType as r } from "@sbb-esta/lyne-elements/core/decorators.js";
4
- import { boxSizingStyles as i } from "@sbb-esta/lyne-elements/core/styles.js";
5
- import { css as a, html as o, nothing as s } from "lit";
6
- import { property as c } from "lit/decorators.js";
7
- import { styleMap as l } from "lit/directives/style-map.js";
8
- //#region src/elements-experimental/pearl-chain-vertical-item/pearl-chain-vertical-item.scss?lit&inline
9
- var u = a`:host{--sbb-pearl-chain-position-color:var(--sbb-color-primary);--sbb-pearl-chain-bullet-size-start-end:.625rem;--sbb-pearl-chain-bullet-size-stop:.5rem;--sbb-pearl-chain-bullet-color:var(--sbb-background-color-3-inverted);--sbb-pearl-chain-bullet-color-past:var(--lightningcss-light,var(--sbb-color-metal))var(--lightningcss-dark,var(--sbb-color-granite));--sbb-pearl-chain-bullet-color-irrelevant:var(--lightningcss-light,var(--sbb-color-metal))var(--lightningcss-dark,var(--sbb-color-granite));--sbb-pearl-chain-bullet-color-disruption:var(--sbb-color-error);--sbb-pearl-chain-bullet-border-width:var(--sbb-border-width-2x);--sbb-pearl-chain-bullet-animation-duration:1.92s;--sbb-pearl-chain-bullet-animation-easing:ease-out;--sbb-pearl-chain-bullet-crossed-width:.88375rem;--sbb-pearl-chain-bullet-crossed-height:.21875rem;--sbb-pearl-chain-bullet-crossed-border-width:.09375rem;--sbb-pearl-chain-vertical-right-item-width:100%;--sbb-pearl-chain-vertical-middle-item-min-width:var(--sbb-pearl-chain-bullet-size-start-end);--sbb-pearl-chain-vertical-item-border-width:var(--sbb-border-width-2x);--sbb-pearl-chain-vertical-item-border-width-thin:var(--sbb-border-width-1x);--sbb-pearl-chain-vertical-item-spacing-small:var(--sbb-spacing-fixed-1x);--sbb-pearl-chain-vertical-item-color-default:var(--sbb-pearl-chain-bullet-color);--sbb-pearl-chain-vertical-item-color-disruption:var(--sbb-pearl-chain-bullet-color-disruption);--sbb-pearl-chain-vertical-item-color-past:var(--sbb-pearl-chain-bullet-color-past);--sbb-pearl-chain-vertical-item-color-walk:var(--sbb-color-sky);--sbb-pearl-chain-vertical-item-inline-start:50%;--sbb-pearl-chain-vertical-item-transform:translateX(-50%);display:table-row;position:relative}slot[name=right],.sbb-pearl-chain-vertical-item__column{vertical-align:top;display:table-cell;position:relative}slot[name=right]{width:var(--sbb-pearl-chain-vertical-right-item-width)}.sbb-pearl-chain-vertical-item__column--middle{min-width:var(--sbb-pearl-chain-vertical-middle-item-min-width,--sbb-pearl-chain-vertical-middle-min-width)}slot[name=left]::slotted(*){margin-block-start:var(--sbb-pearl-chain-vertical-left-item-block-start);padding-inline-end:var(--sbb-pearl-chain-vertical-left-item-inline-end)}slot[name=right]::slotted(*){margin-block-start:var(--sbb-pearl-chain-vertical-right-item-block-start);padding-inline-start:var(--sbb-pearl-chain-vertical-right-item-inline-start)}.sbb-pearl-chain-vertical-item__middle{vertical-align:top;border-spacing:0}.sbb-pearl-chain-vertical-item__line{bottom:0;transform:var(--sbb-pearl-chain-vertical-item-transform);width:var(--sbb-border-width-2x);position:absolute;inset-block-start:calc(var(--sbb-pearl-chain-bullet-size-start-end) / 2);inset-inline-start:var(--sbb-pearl-chain-vertical-item-inline-start)}.sbb-pearl-chain-vertical-item__line:after{content:"";height:var(--sbb-pearl-chain-vertical-item-leg-status);width:var(--sbb-pearl-chain-vertical-item-border-width);background-color:var(--sbb-pearl-chain-vertical-item-color-past);position:absolute;inset-block-start:0;inset-inline-start:0}@media (forced-colors:active){.sbb-pearl-chain-vertical-item__line:after{--sbb-pearl-chain-vertical-item-color-past:GrayText}}.sbb-pearl-chain-vertical-item__line--dotted{background-color:unset;border-color:unset;background-image:linear-gradient(currentColor 0% 50%,canvas 50%);background-repeat:repeat-y;background-size:calc(2 * var(--sbb-pearl-chain-vertical-item-spacing-small)) var(--sbb-pearl-chain-vertical-item-spacing-small)}@media (forced-colors:active){.sbb-pearl-chain-vertical-item__line--dotted{border-inline-start:.0625rem dashed highlight;transform:translateY(.0625rem);background-color:unset!important}}.sbb-pearl-chain-vertical-item__line--thin{width:var(--sbb-pearl-chain-vertical-item-border-width-thin)}.sbb-pearl-chain-vertical-item__line--default{background-color:var(--sbb-pearl-chain-vertical-item-color-default);border-color:var(--sbb-pearl-chain-vertical-item-color-default);color:var(--sbb-pearl-chain-vertical-item-color-default)}@media (forced-colors:active){.sbb-pearl-chain-vertical-item__line--default{--sbb-pearl-chain-vertical-item-color-default:CanvasText}}.sbb-pearl-chain-vertical-item__line--disruption{border-color:var(--sbb-pearl-chain-vertical-item-color-disruption);background-color:var(--sbb-pearl-chain-vertical-item-color-disruption);color:var(--sbb-pearl-chain-vertical-item-color-disruption)}@media (forced-colors:active){.sbb-pearl-chain-vertical-item__line--disruption{--sbb-pearl-chain-vertical-item-color-disruption:Highlight}}.sbb-pearl-chain-vertical-item__line--past{border-color:var(--sbb-pearl-chain-vertical-item-color-past);background-color:var(--sbb-pearl-chain-vertical-item-color-past);color:var(--sbb-pearl-chain-vertical-item-color-past)}@media (forced-colors:active){.sbb-pearl-chain-vertical-item__line--past{--sbb-pearl-chain-vertical-item-color-past:GrayText}}.sbb-pearl-chain-vertical-item__line--walk{border-color:var(--sbb-pearl-chain-vertical-item-color-walk);background-color:var(--sbb-pearl-chain-vertical-item-color-walk);color:var(--sbb-pearl-chain-vertical-item-color-walk)}.sbb-pearl-chain-vertical-item__bullet{transform:var(--sbb-pearl-chain-vertical-item-transform);background:var(--sbb-pearl-chain-bullet-color);color:var(--sbb-pearl-chain-bullet-color);border-color:var(--sbb-pearl-chain-bullet-color);border-radius:100%;position:relative;inset-inline-start:var(--sbb-pearl-chain-vertical-item-inline-start)}@media (forced-colors:active){.sbb-pearl-chain-vertical-item__bullet{--sbb-pearl-chain-bullet-color:CanvasText}}.sbb-pearl-chain-vertical-item__bullet--start-end{min-height:var(--sbb-pearl-chain-bullet-size-start-end);min-width:var(--sbb-pearl-chain-bullet-size-start-end);height:var(--sbb-pearl-chain-bullet-size-start-end);width:var(--sbb-pearl-chain-bullet-size-start-end)}.sbb-pearl-chain-vertical-item__bullet--stop{min-height:var(--sbb-pearl-chain-bullet-size-stop);min-width:var(--sbb-pearl-chain-bullet-size-stop);height:var(--sbb-pearl-chain-bullet-size-stop);width:var(--sbb-pearl-chain-bullet-size-stop);border:var(--sbb-pearl-chain-bullet-border-width) solid currentcolor;background:canvas}.sbb-pearl-chain-vertical-item__bullet--disruption{--sbb-pearl-chain-bullet-color:var(--sbb-pearl-chain-bullet-color-disruption)}@media (forced-colors:active){.sbb-pearl-chain-vertical-item__bullet--disruption{--sbb-pearl-chain-bullet-color:Highlight}}.sbb-pearl-chain-vertical-item__bullet--irrelevant,.sbb-pearl-chain-vertical-item__bullet--past{--sbb-pearl-chain-bullet-color:var(--sbb-pearl-chain-bullet-color-past)}@media (forced-colors:active){.sbb-pearl-chain-vertical-item__bullet--irrelevant,.sbb-pearl-chain-vertical-item__bullet--past{--sbb-pearl-chain-bullet-color:GrayText!important}}.sbb-pearl-chain-vertical-item__bullet--stop.sbb-pearl-chain-vertical-item__bullet--irrelevant{--sbb-pearl-chain-bullet-border-width:var(--sbb-border-width-1x);min-height:var(--sbb-pearl-chain-bullet-size-stop);min-width:var(--sbb-pearl-chain-bullet-size-stop);height:var(--sbb-pearl-chain-bullet-size-stop);width:var(--sbb-pearl-chain-bullet-size-stop);border:var(--sbb-pearl-chain-bullet-border-width) solid currentcolor;background:canvas}.sbb-pearl-chain-vertical-item__bullet--start-end.sbb-pearl-chain-vertical-item__bullet--skipped{border:var(--sbb-pearl-chain-bullet-border-width) solid currentcolor;background:canvas}.sbb-pearl-chain-vertical-item__bullet--start-end.sbb-pearl-chain-vertical-item__bullet--skipped:before{content:"";border-block-start:var(--sbb-pearl-chain-bullet-crossed-border-width) solid canvas;background:var(--sbb-pearl-chain-bullet-color-disruption);height:var(--sbb-pearl-chain-bullet-crossed-height);width:var(--sbb-pearl-chain-bullet-crossed-width);position:absolute;inset-block-start:50%;inset-inline-start:50%;transform:translate(-50%,-50%)rotate(45deg)}@media (forced-colors:active){.sbb-pearl-chain-vertical-item__bullet--start-end.sbb-pearl-chain-vertical-item__bullet--skipped:before{background:highlight}}.sbb-pearl-chain-vertical-item__bullet--stop.sbb-pearl-chain-vertical-item__bullet--skipped{--sbb-pearl-chain-bullet-crossed-width:.706875rem;--sbb-pearl-chain-bullet-crossed-height:.1875rem;min-height:var(--sbb-pearl-chain-bullet-size-stop);min-width:var(--sbb-pearl-chain-bullet-size-stop);height:var(--sbb-pearl-chain-bullet-size-stop);width:var(--sbb-pearl-chain-bullet-size-stop);border:var(--sbb-pearl-chain-bullet-border-width) solid currentcolor;border:var(--sbb-pearl-chain-bullet-border-width) solid currentcolor;background:canvas}.sbb-pearl-chain-vertical-item__bullet--stop.sbb-pearl-chain-vertical-item__bullet--skipped:before{content:"";border-block-start:var(--sbb-pearl-chain-bullet-crossed-border-width) solid canvas;background:var(--sbb-pearl-chain-bullet-color-disruption);height:var(--sbb-pearl-chain-bullet-crossed-height);width:var(--sbb-pearl-chain-bullet-crossed-width);position:absolute;inset-block-start:50%;inset-inline-start:50%;transform:translate(-50%,-50%)rotate(45deg)}@media (forced-colors:active){.sbb-pearl-chain-vertical-item__bullet--stop.sbb-pearl-chain-vertical-item__bullet--skipped:before{background:highlight}}.sbb-pearl-chain-vertical-item__bullet--position{inset-block-start:var(--sbb-pearl-chain-vertical-item-position);min-height:var(--sbb-pearl-chain-bullet-size-start-end);min-width:var(--sbb-pearl-chain-bullet-size-start-end);height:var(--sbb-pearl-chain-bullet-size-start-end);width:var(--sbb-pearl-chain-bullet-size-start-end);background:var(--sbb-pearl-chain-bullet-color);color:var(--sbb-pearl-chain-bullet-color);border-color:var(--sbb-pearl-chain-bullet-color);border-radius:100%;position:absolute;left:50%;transform:translate(-50%)}@media (forced-colors:active){.sbb-pearl-chain-vertical-item__bullet--position{--sbb-pearl-chain-bullet-color:CanvasText}}.sbb-pearl-chain-vertical-item__bullet--position{--sbb-pearl-chain-bullet-color:var(--sbb-pearl-chain-position-color)}@media (forced-colors:active){.sbb-pearl-chain-vertical-item__bullet--position{--sbb-pearl-chain-position-color:Highlight}}@keyframes pearl-chain-bullet-position-pulse{0%{box-shadow:0 0 0 0 var(--sbb-pearl-chain-position-color)}25%{box-shadow:0 0 0 0 var(--sbb-pearl-chain-position-color)}50%{box-shadow:0 0 0 .1875rem color-mix(in srgb, var(--sbb-pearl-chain-position-color) 20%, transparent)}to{box-shadow:0 0 0 0 var(--sbb-pearl-chain-position-color)}}.sbb-pearl-chain-vertical-item__bullet--position{animation:pearl-chain-bullet-position-pulse var(--sbb-pearl-chain-bullet-animation-duration) var(--sbb-pearl-chain-bullet-animation-easing) infinite}:host([disable-animation]) .sbb-pearl-chain-vertical-item__bullet--position{animation:unset!important}`, d = (() => {
10
- let a = n, d, f = [], p = [], m, h = [], g = [];
11
- return class extends a {
12
- static {
13
- let t = typeof Symbol == "function" && Symbol.metadata ? Object.create(a[Symbol.metadata] ?? null) : void 0;
14
- d = [c({
15
- attribute: "pearl-chain-vertical-item-attributes",
16
- type: Object
17
- })], m = [r(), c({
18
- attribute: "disable-animation",
19
- reflect: !0,
20
- type: Boolean
21
- })], e(this, null, d, {
22
- kind: "accessor",
23
- name: "pearlChainVerticalItemAttributes",
24
- static: !1,
25
- private: !1,
26
- access: {
27
- has: (e) => "pearlChainVerticalItemAttributes" in e,
28
- get: (e) => e.pearlChainVerticalItemAttributes,
29
- set: (e, t) => {
30
- e.pearlChainVerticalItemAttributes = t;
31
- }
32
- },
33
- metadata: t
34
- }, f, p), e(this, null, m, {
35
- kind: "accessor",
36
- name: "disableAnimation",
37
- static: !1,
38
- private: !1,
39
- access: {
40
- has: (e) => "disableAnimation" in e,
41
- get: (e) => e.disableAnimation,
42
- set: (e, t) => {
43
- e.disableAnimation = t;
44
- }
45
- },
46
- metadata: t
47
- }, h, g), t && Object.defineProperty(this, Symbol.metadata, {
48
- enumerable: !0,
49
- configurable: !0,
50
- writable: !0,
51
- value: t
52
- });
53
- }
54
- static {
55
- this.elementName = "sbb-pearl-chain-vertical-item";
56
- }
57
- static {
58
- this.styles = [i, u];
59
- }
60
- #e = t(this, f, null);
61
- get pearlChainVerticalItemAttributes() {
62
- return this.#e;
63
- }
64
- set pearlChainVerticalItemAttributes(e) {
65
- this.#e = e;
66
- }
67
- #t = (t(this, p), t(this, h, !1));
68
- get disableAnimation() {
69
- return this.#t;
70
- }
71
- set disableAnimation(e) {
72
- this.#t = e;
73
- }
74
- render() {
75
- let { bulletType: e, lineType: t, lineColor: n, hideLine: r, minHeight: i, bulletSize: a, position: c } = this.pearlChainVerticalItemAttributes || {}, u = c && c > 0 && c <= 100 ? "sbb-pearl-chain-vertical-item__bullet--past" : `sbb-pearl-chain-vertical-item__bullet--${e}`;
76
- return o`
77
- <div
78
- class="sbb-pearl-chain-vertical-item__column"
79
- style=${l({ height: `${i}px` })}
80
- >
81
- <slot name="left"></slot>
82
- </div>
83
- <div
84
- aria-hidden="true"
85
- class="sbb-pearl-chain-vertical-item__column sbb-pearl-chain-vertical-item__column--middle"
86
- >
87
- ${r ? s : o`<div
88
- style=${l({ "--sbb-pearl-chain-vertical-item-leg-status": `${c}%` })}
89
- class="sbb-pearl-chain-vertical-item__line sbb-pearl-chain-vertical-item__line--${t} sbb-pearl-chain-vertical-item__line--${n}"
90
- ></div>`}
91
- ${e ? o`<div
92
- class="sbb-pearl-chain-vertical-item__bullet sbb-pearl-chain-vertical-item__bullet--${a} ${u}"
93
- ></div>` : s}
94
- ${c && c > 0 ? o`<div
95
- style=${l({ "--sbb-pearl-chain-vertical-item-position": `${c}%` })}
96
- class="sbb-pearl-chain-vertical-item__bullet--position"
97
- ></div>` : s}
98
- </div>
99
- <slot name="right"></slot>
100
- `;
101
- }
102
- constructor() {
103
- super(...arguments), t(this, g);
104
- }
105
- };
106
- })();
107
- //#endregion
108
- export { d as t };
@@ -1,21 +0,0 @@
1
- import { SbbElement as e } from "@sbb-esta/lyne-elements/core/base-elements.js";
2
- import { boxSizingStyles as t } from "@sbb-esta/lyne-elements/core/styles.js";
3
- import { css as n, html as r } from "lit";
4
- //#region src/elements-experimental/pearl-chain-vertical/pearl-chain-vertical.scss?lit&inline
5
- var i = n`:host{--sbb-pearl-chain-vertical-width:100%;display:block}.sbb-pearl-chain-vertical{width:var(--sbb-pearl-chain-vertical-width);display:table}`, a = class extends e {
6
- static {
7
- this.elementName = "sbb-pearl-chain-vertical";
8
- }
9
- static {
10
- this.styles = [t, i];
11
- }
12
- render() {
13
- return r`
14
- <div class="sbb-pearl-chain-vertical">
15
- <slot></slot>
16
- </div>
17
- `;
18
- }
19
- };
20
- //#endregion
21
- export { a as t };