@sbb-esta/lyne-elements 2.1.0 → 2.3.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 (268) hide show
  1. package/accordion.js +6 -6
  2. package/action-group.js +3 -3
  3. package/alert/alert-group.js +4 -4
  4. package/alert/alert.js +9 -9
  5. package/autocomplete/autocomplete-base-element.d.ts +4 -0
  6. package/autocomplete/autocomplete-base-element.d.ts.map +1 -1
  7. package/autocomplete-grid/autocomplete-grid-button.js +4 -4
  8. package/autocomplete-grid/autocomplete-grid-cell.js +3 -3
  9. package/autocomplete-grid/autocomplete-grid-optgroup.js +4 -4
  10. package/autocomplete-grid/autocomplete-grid-row.js +5 -5
  11. package/autocomplete.js +26 -20
  12. package/badge.css +31 -0
  13. package/breadcrumb/breadcrumb-group.js +5 -5
  14. package/breadcrumb/breadcrumb.js +19 -19
  15. package/button/accent-button-link.js +9 -9
  16. package/button/accent-button-static.js +6 -6
  17. package/button/accent-button.js +6 -6
  18. package/button/button-link.js +7 -7
  19. package/button/button-static.js +7 -7
  20. package/button/button.js +8 -8
  21. package/button/common.js +15 -15
  22. package/button/mini-button-group.js +8 -8
  23. package/button/secondary-button-link.js +7 -7
  24. package/button/secondary-button-static.js +7 -7
  25. package/button/secondary-button.js +3 -3
  26. package/button/transparent-button-link.js +6 -6
  27. package/button/transparent-button-static.js +5 -5
  28. package/button/transparent-button.js +6 -6
  29. package/calendar.js +1 -1
  30. package/card/card-badge.js +11 -11
  31. package/card/card-button.js +5 -5
  32. package/card/card-link.js +7 -7
  33. package/card/card.js +3 -3
  34. package/checkbox/checkbox-panel.js +16 -16
  35. package/checkbox/checkbox.js +15 -15
  36. package/checkbox/common.js +3 -3
  37. package/chip-label.js +3 -3
  38. package/clock.js +10 -10
  39. package/container/container.js +6 -6
  40. package/core/a11y/focus.d.ts.map +1 -1
  41. package/core/a11y.js +8 -8
  42. package/core/base-elements/link-base-element.d.ts +2 -0
  43. package/core/base-elements/link-base-element.d.ts.map +1 -1
  44. package/core/base-elements.js +125 -114
  45. package/core/controllers.js +4 -4
  46. package/core/datetime.js +6 -6
  47. package/core/dom/scroll.d.ts +1 -0
  48. package/core/dom/scroll.d.ts.map +1 -1
  49. package/core/dom.js +31 -31
  50. package/core/eventing.js +4 -4
  51. package/core/i18n/i18n.d.ts +2 -0
  52. package/core/i18n/i18n.d.ts.map +1 -1
  53. package/core/i18n.js +43 -31
  54. package/core/images.d.ts.map +1 -1
  55. package/core/mixins/form-associated-checkbox-mixin.d.ts.map +1 -1
  56. package/core/mixins/form-associated-mixin.d.ts +3 -0
  57. package/core/mixins/form-associated-mixin.d.ts.map +1 -1
  58. package/core/mixins/form-associated-radio-button-mixin.d.ts.map +1 -1
  59. package/core/mixins.js +342 -248
  60. package/core/styles/badge.scss +3 -0
  61. package/core/styles/core.scss +2 -0
  62. package/core/styles/mixins/badge.scss +26 -1
  63. package/core/styles/mixins/font-face.scss +12 -12
  64. package/core/styles/mixins/link.scss +32 -8
  65. package/core/styles/standard-theme.scss +1 -0
  66. package/core/testing.js +14 -14
  67. package/core.css +5 -3
  68. package/custom-elements.json +7788 -173
  69. package/datepicker/datepicker-toggle/datepicker-toggle.d.ts.map +1 -1
  70. package/datepicker/datepicker-toggle.js +23 -26
  71. package/datepicker/datepicker.js +4 -4
  72. package/development/action-group.js +1 -1
  73. package/development/alert/alert-group.js +1 -1
  74. package/development/alert/alert.js +1 -1
  75. package/development/autocomplete/autocomplete-base-element.d.ts +4 -0
  76. package/development/autocomplete/autocomplete-base-element.d.ts.map +1 -1
  77. package/development/autocomplete-grid/autocomplete-grid-cell.js +1 -1
  78. package/development/autocomplete-grid/autocomplete-grid-row.js +1 -1
  79. package/development/autocomplete.js +15 -2
  80. package/development/breadcrumb/breadcrumb-group.js +3 -3
  81. package/development/breadcrumb/breadcrumb.js +5 -2
  82. package/development/button/common.js +75 -74
  83. package/development/calendar.js +1 -1
  84. package/development/card/card-badge.js +1 -1
  85. package/development/card/card.js +1 -1
  86. package/development/checkbox/checkbox-panel.js +1 -1
  87. package/development/chip-label.js +1 -1
  88. package/development/clock.js +1 -1
  89. package/development/container/container.js +1 -1
  90. package/development/core/a11y/focus.d.ts.map +1 -1
  91. package/development/core/a11y.js +3 -3
  92. package/development/core/base-elements/link-base-element.d.ts +2 -0
  93. package/development/core/base-elements/link-base-element.d.ts.map +1 -1
  94. package/development/core/base-elements.js +22 -5
  95. package/development/core/controllers.js +1 -1
  96. package/development/core/dom/scroll.d.ts +1 -0
  97. package/development/core/dom/scroll.d.ts.map +1 -1
  98. package/development/core/dom.js +5 -2
  99. package/development/core/i18n/i18n.d.ts +2 -0
  100. package/development/core/i18n/i18n.d.ts.map +1 -1
  101. package/development/core/i18n.js +15 -1
  102. package/development/core/images.d.ts.map +1 -1
  103. package/development/core/mixins/form-associated-checkbox-mixin.d.ts.map +1 -1
  104. package/development/core/mixins/form-associated-mixin.d.ts +3 -0
  105. package/development/core/mixins/form-associated-mixin.d.ts.map +1 -1
  106. package/development/core/mixins/form-associated-radio-button-mixin.d.ts.map +1 -1
  107. package/development/core/mixins.js +159 -22
  108. package/development/datepicker/datepicker-toggle/datepicker-toggle.d.ts.map +1 -1
  109. package/development/datepicker/datepicker-toggle.js +13 -6
  110. package/development/datepicker/datepicker.js +1 -1
  111. package/development/dialog/dialog-content.js +1 -1
  112. package/development/dialog/dialog-title.js +1 -1
  113. package/development/dialog/dialog.js +1 -1
  114. package/development/expansion-panel/expansion-panel-content.js +1 -1
  115. package/development/expansion-panel/expansion-panel-header.js +1 -1
  116. package/development/expansion-panel/expansion-panel.js +1 -1
  117. package/development/file-selector/common.js +1 -1
  118. package/development/flip-card/flip-card-details.js +1 -1
  119. package/development/flip-card/flip-card-summary.js +1 -1
  120. package/development/footer.js +1 -1
  121. package/development/form-field/form-field/form-field.d.ts.map +1 -1
  122. package/development/form-field/form-field.js +5 -2
  123. package/development/icon.js +1 -1
  124. package/development/image.js +2 -2
  125. package/development/journey-header.js +1 -1
  126. package/development/lead-container.js +1 -1
  127. package/development/link/common.js +19 -7
  128. package/development/link-list/common.js +1 -1
  129. package/development/link-list/link-list-anchor.js +1 -1
  130. package/development/link-list/link-list.js +1 -1
  131. package/development/loading-indicator-circle.js +1 -1
  132. package/development/loading-indicator.js +1 -1
  133. package/development/map-container.js +1 -1
  134. package/development/menu/common/menu-action-common.d.ts +3 -0
  135. package/development/menu/common/menu-action-common.d.ts.map +1 -1
  136. package/development/menu/common.js +35 -12
  137. package/development/message.js +1 -1
  138. package/development/navigation/navigation-section.js +1 -1
  139. package/development/notification.js +1 -1
  140. package/development/option/optgroup.js +1 -1
  141. package/development/option/option.js +1 -1
  142. package/development/overlay/overlay-base-element.d.ts.map +1 -1
  143. package/development/overlay.js +3 -3
  144. package/development/paginator/paginator.js +1 -1
  145. package/development/radio-button/radio-button-group/radio-button-group.d.ts.map +1 -1
  146. package/development/radio-button/radio-button-group.js +2 -2
  147. package/development/radio-button/radio-button-panel.js +1 -1
  148. package/development/{sbb-tokens-BdGhUJjM.js → sbb-tokens-CSAKTXUi.js} +15 -15
  149. package/development/screen-reader-only.js +1 -1
  150. package/development/select/select.d.ts +4 -1
  151. package/development/select/select.d.ts.map +1 -1
  152. package/development/select.js +22 -4
  153. package/development/signet.js +1 -1
  154. package/development/skiplink-list.js +1 -1
  155. package/development/slider.js +1 -1
  156. package/development/stepper/step.js +1 -1
  157. package/development/tabs/tab-label.js +1 -1
  158. package/development/tabs/tab.js +1 -1
  159. package/development/time-input.js +1 -1
  160. package/development/timetable-occupancy.js +1 -1
  161. package/development/title/title-base.d.ts.map +1 -1
  162. package/development/title.js +4 -5
  163. package/development/toast.js +1 -1
  164. package/development/toggle/toggle/toggle.d.ts +25 -6
  165. package/development/toggle/toggle/toggle.d.ts.map +1 -1
  166. package/development/toggle/toggle-option/toggle-option.d.ts +2 -6
  167. package/development/toggle/toggle-option/toggle-option.d.ts.map +1 -1
  168. package/development/toggle/toggle-option.js +21 -39
  169. package/development/toggle/toggle.js +58 -40
  170. package/development/train/train-blocked-passage.js +1 -1
  171. package/development/train/train-formation.js +1 -1
  172. package/development/train/train.js +1 -1
  173. package/development/visual-checkbox.js +1 -1
  174. package/dialog/dialog-content.js +4 -4
  175. package/dialog/dialog-title.js +8 -8
  176. package/dialog/dialog.js +1 -1
  177. package/divider.js +12 -12
  178. package/expansion-panel/expansion-panel-content.js +3 -3
  179. package/expansion-panel/expansion-panel-header.js +1 -1
  180. package/expansion-panel/expansion-panel.js +1 -1
  181. package/file-selector/common.js +9 -9
  182. package/file-selector/file-selector-dropzone.js +5 -5
  183. package/file-selector/file-selector.js +6 -6
  184. package/flip-card/flip-card-details.js +7 -7
  185. package/flip-card/flip-card-summary.js +12 -12
  186. package/font-characters-extension.css +3 -3
  187. package/footer.js +4 -4
  188. package/form-field/form-field/form-field.d.ts.map +1 -1
  189. package/form-field/form-field.js +7 -5
  190. package/header/header-button.js +5 -5
  191. package/header/header-link.js +5 -5
  192. package/icon.js +37 -37
  193. package/image.js +16 -16
  194. package/journey-header.js +5 -5
  195. package/lead-container.js +3 -3
  196. package/link/block-link-button.js +4 -4
  197. package/link/block-link-static.js +9 -9
  198. package/link/block-link.js +4 -4
  199. package/link/common.js +28 -28
  200. package/link/link-button.js +7 -7
  201. package/link/link-static.js +7 -7
  202. package/link/link.js +4 -4
  203. package/link-list/common.js +15 -15
  204. package/link-list/link-list-anchor.js +3 -3
  205. package/link-list/link-list.js +3 -3
  206. package/loading-indicator-circle.js +14 -14
  207. package/loading-indicator.js +3 -3
  208. package/map-container.js +6 -6
  209. package/menu/common/menu-action-common.d.ts +3 -0
  210. package/menu/common/menu-action-common.d.ts.map +1 -1
  211. package/menu/common.js +34 -30
  212. package/menu/menu-button.js +8 -8
  213. package/menu/menu-link.js +6 -6
  214. package/menu/menu.js +7 -7
  215. package/message.js +3 -3
  216. package/navigation/navigation-button.js +4 -4
  217. package/navigation/navigation-link.js +7 -7
  218. package/navigation/navigation-list.js +4 -4
  219. package/navigation/navigation-marker.js +3 -3
  220. package/navigation/navigation-section.js +1 -1
  221. package/notification.js +19 -19
  222. package/option/optgroup.js +14 -14
  223. package/option/option.js +3 -3
  224. package/overlay/overlay-base-element.d.ts.map +1 -1
  225. package/overlay.js +14 -14
  226. package/package.json +6 -2
  227. package/paginator/common.js +6 -6
  228. package/paginator/paginator.js +1 -1
  229. package/popover/popover.js +13 -13
  230. package/radio-button/radio-button-group/radio-button-group.d.ts.map +1 -1
  231. package/radio-button/radio-button-group.js +1 -1
  232. package/radio-button/radio-button-panel.js +6 -6
  233. package/{sbb-tokens-Dx20OtVg.js → sbb-tokens-BgDF8jIh.js} +14 -14
  234. package/screen-reader-only.js +8 -8
  235. package/select/select.d.ts +4 -1
  236. package/select/select.d.ts.map +1 -1
  237. package/select.js +35 -28
  238. package/signet.js +1 -1
  239. package/skiplink-list.js +3 -3
  240. package/slider.js +13 -13
  241. package/standard-theme.css +37 -3
  242. package/status.js +3 -3
  243. package/stepper/step-label.js +4 -4
  244. package/stepper/step.js +3 -3
  245. package/table/table-wrapper.js +4 -4
  246. package/tabs/tab-group.js +24 -24
  247. package/tabs/tab-label.js +1 -1
  248. package/tabs/tab.js +4 -4
  249. package/tag/tag-group.js +7 -7
  250. package/teaser-product/common.js +5 -5
  251. package/teaser-product/teaser-product-static.js +2 -2
  252. package/time-input.js +3 -3
  253. package/timetable-occupancy-icon.js +3 -3
  254. package/timetable-occupancy.js +6 -6
  255. package/title/title-base.d.ts.map +1 -1
  256. package/title.js +41 -42
  257. package/toast.js +5 -5
  258. package/toggle/toggle/toggle.d.ts +25 -6
  259. package/toggle/toggle/toggle.d.ts.map +1 -1
  260. package/toggle/toggle-option/toggle-option.d.ts +2 -6
  261. package/toggle/toggle-option/toggle-option.d.ts.map +1 -1
  262. package/toggle/toggle-option.js +44 -52
  263. package/toggle/toggle.js +103 -83
  264. package/toggle-check.js +5 -5
  265. package/train/train-blocked-passage.js +3 -3
  266. package/train/train-formation.js +1 -1
  267. package/train/train.js +29 -29
  268. package/visual-checkbox.js +1 -1
package/train/train.js CHANGED
@@ -1,12 +1,12 @@
1
- var G = (i) => {
2
- throw TypeError(i);
1
+ var G = (e) => {
2
+ throw TypeError(e);
3
3
  };
4
- var P = (i, a, s) => a.has(i) || G("Cannot " + s);
5
- var m = (i, a, s) => (P(i, a, "read from private field"), s ? s.call(i) : a.get(i)), g = (i, a, s) => a.has(i) ? G("Cannot add the same private member more than once") : a instanceof WeakSet ? a.add(i) : a.set(i, s), n = (i, a, s, o) => (P(i, a, "write to private field"), o ? o.call(i, s) : a.set(i, s), s);
4
+ var P = (e, a, s) => a.has(e) || G("Cannot " + s);
5
+ var m = (e, a, s) => (P(e, a, "read from private field"), s ? s.call(e) : a.get(e)), g = (e, a, s) => a.has(e) ? G("Cannot add the same private member more than once") : a instanceof WeakSet ? a.add(e) : a.set(e, s), n = (e, a, s, o) => (P(e, a, "write to private field"), o ? o.call(e, s) : a.set(e, s), s);
6
6
  import { __runInitializers as l, __esDecorate as f } from "tslib";
7
7
  import { css as q, LitElement as B, nothing as y } from "lit";
8
8
  import { customElement as F, property as L } from "lit/decorators.js";
9
- import { html as u, unsafeStatic as W } from "lit/static-html.js";
9
+ import { unsafeStatic as W, html as u } from "lit/static-html.js";
10
10
  import { SbbLanguageController as H } from "../core/controllers.js";
11
11
  import { forceType as x, omitEmptyConverter as J } from "../core/decorators.js";
12
12
  import { EventEmitter as K } from "../core/eventing.js";
@@ -16,7 +16,7 @@ import "../icon.js";
16
16
  const X = q`*,:before,:after{box-sizing:border-box}:host{display:block;--sbb-train-direction-label-spacing: var(--sbb-spacing-fixed-1x)}.sbb-train{--sbb-text-font-size: var(--sbb-font-size-text-xs);font-family:var(--sbb-typo-font-family);font-weight:400;line-height:var(--sbb-typo-line-height-body-text);letter-spacing:var(--sbb-typo-letter-spacing-body-text);font-size:var(--sbb-text-font-size);display:flex;flex-direction:column;gap:var(--sbb-train-formation-vertical-gap);position:relative}.sbb-train:before{content:"";display:var(--sbb-train-formation-reserve-spacing-display, none);height:max(var(--sbb-size-icon-ui-small),1em * var(--sbb-typo-line-height-body-text))}.sbb-train__wagons{list-style:none;margin:0;padding:0;font-size:inherit;display:flex;gap:var(--sbb-train-formation-wagon-gap)}.sbb-train__direction-heading{display:flex;position:absolute;width:100%}.sbb-train__direction-sticky-wrapper{position:sticky;inset-inline-start:0;display:inline-flex;align-items:center;gap:var(--sbb-train-direction-label-spacing);max-width:100%}.sbb-train__direction-label{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.sbb-train__direction-label-sr{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;white-space:nowrap;width:1px}`;
17
17
  let bt = (() => {
18
18
  var b, d, h, _, p, r;
19
- let i = [F("sbb-train")], a, s = [], o, w = V(B), z, S = [], $ = [], k, E = [], C = [], I, T = [], D = [], A, j = [], N = [], M, O = [], U = [];
19
+ let e = [F("sbb-train")], a, s = [], o, w = V(B), z, S = [], $ = [], k, E = [], C = [], I, T = [], D = [], A, j = [], N = [], M, O = [], U = [];
20
20
  var v = (r = class extends w {
21
21
  constructor() {
22
22
  super(...arguments);
@@ -37,54 +37,54 @@ let bt = (() => {
37
37
  get directionLabel() {
38
38
  return m(this, b);
39
39
  }
40
- set directionLabel(e) {
41
- n(this, b, e);
40
+ set directionLabel(i) {
41
+ n(this, b, i);
42
42
  }
43
43
  /** Heading level of the direction label, used for screen readers. */
44
44
  get directionLabelLevel() {
45
45
  return m(this, d);
46
46
  }
47
- set directionLabelLevel(e) {
48
- n(this, d, e);
47
+ set directionLabelLevel(i) {
48
+ n(this, d, i);
49
49
  }
50
50
  /** Label for the destination station of the train. */
51
51
  get station() {
52
52
  return m(this, h);
53
53
  }
54
- set station(e) {
55
- n(this, h, e);
54
+ set station(i) {
55
+ n(this, h, i);
56
56
  }
57
57
  /** Accessibility label for additional information regarding the leaving direction of the train. */
58
58
  get accessibilityLabel() {
59
59
  return m(this, _);
60
60
  }
61
- set accessibilityLabel(e) {
62
- n(this, _, e);
61
+ set accessibilityLabel(i) {
62
+ n(this, _, i);
63
63
  }
64
64
  /** Controls the direction indicator to show the arrow left or right. Default is left. */
65
65
  get direction() {
66
66
  return m(this, p);
67
67
  }
68
- set direction(e) {
69
- n(this, p, e);
68
+ set direction(i) {
69
+ n(this, p, i);
70
70
  }
71
71
  /**
72
72
  * Create the aria-label text out of the direction label, station and the accessibility label.
73
73
  */
74
74
  _getDirectionAriaLabel() {
75
- const e = [Q[this._language.current]];
76
- return this.directionLabel && this.station && e.push(`${this.directionLabel} ${this.station}`), this.accessibilityLabel && e.push(this.accessibilityLabel), `${e.join(", ")}.`;
75
+ const i = [Q[this._language.current]];
76
+ return this.directionLabel && this.station && i.push(`${this.directionLabel} ${this.station}`), this.accessibilityLabel && i.push(this.accessibilityLabel), `${i.join(", ")}.`;
77
77
  }
78
- willUpdate(e) {
79
- super.willUpdate(e), e.has("listChildren") && this._trainSlotChange.emit();
78
+ willUpdate(i) {
79
+ super.willUpdate(i), i.has("listChildren") && this._trainSlotChange.emit();
80
80
  }
81
81
  render() {
82
- const e = `h${this.directionLabelLevel}`;
82
+ const i = `h${this.directionLabelLevel}`;
83
83
  return u`
84
84
  <div class="sbb-train">
85
- <${W(e)} class="sbb-train__direction-label-sr">
85
+ <${W(i)} class="sbb-train__direction-label-sr">
86
86
  ${this._getDirectionAriaLabel()}
87
- </${W(e)}>
87
+ </${W(i)}>
88
88
  ${this.directionLabel ? u`<div class="sbb-train__direction-heading" aria-hidden="true">
89
89
  <span class="sbb-train__direction-sticky-wrapper">
90
90
  ${this.direction === "left" ? u`<sbb-icon name="chevron-small-left-small"></sbb-icon>` : y}
@@ -104,18 +104,18 @@ let bt = (() => {
104
104
  `;
105
105
  }
106
106
  }, b = new WeakMap(), d = new WeakMap(), h = new WeakMap(), _ = new WeakMap(), p = new WeakMap(), o = r, (() => {
107
- const e = typeof Symbol == "function" && Symbol.metadata ? Object.create(w[Symbol.metadata] ?? null) : void 0;
107
+ const i = typeof Symbol == "function" && Symbol.metadata ? Object.create(w[Symbol.metadata] ?? null) : void 0;
108
108
  z = [x(), L({ attribute: "direction-label", reflect: !0, converter: J })], k = [L({ attribute: "direction-label-level" })], I = [x(), L()], A = [x(), L({ attribute: "accessibility-label" })], M = [L({ reflect: !0 })], f(r, null, z, { kind: "accessor", name: "directionLabel", static: !1, private: !1, access: { has: (t) => "directionLabel" in t, get: (t) => t.directionLabel, set: (t, c) => {
109
109
  t.directionLabel = c;
110
- } }, metadata: e }, S, $), f(r, null, k, { kind: "accessor", name: "directionLabelLevel", static: !1, private: !1, access: { has: (t) => "directionLabelLevel" in t, get: (t) => t.directionLabelLevel, set: (t, c) => {
110
+ } }, metadata: i }, S, $), f(r, null, k, { kind: "accessor", name: "directionLabelLevel", static: !1, private: !1, access: { has: (t) => "directionLabelLevel" in t, get: (t) => t.directionLabelLevel, set: (t, c) => {
111
111
  t.directionLabelLevel = c;
112
- } }, metadata: e }, E, C), f(r, null, I, { kind: "accessor", name: "station", static: !1, private: !1, access: { has: (t) => "station" in t, get: (t) => t.station, set: (t, c) => {
112
+ } }, metadata: i }, E, C), f(r, null, I, { kind: "accessor", name: "station", static: !1, private: !1, access: { has: (t) => "station" in t, get: (t) => t.station, set: (t, c) => {
113
113
  t.station = c;
114
- } }, metadata: e }, T, D), f(r, null, A, { kind: "accessor", name: "accessibilityLabel", static: !1, private: !1, access: { has: (t) => "accessibilityLabel" in t, get: (t) => t.accessibilityLabel, set: (t, c) => {
114
+ } }, metadata: i }, T, D), f(r, null, A, { kind: "accessor", name: "accessibilityLabel", static: !1, private: !1, access: { has: (t) => "accessibilityLabel" in t, get: (t) => t.accessibilityLabel, set: (t, c) => {
115
115
  t.accessibilityLabel = c;
116
- } }, metadata: e }, j, N), f(r, null, M, { kind: "accessor", name: "direction", static: !1, private: !1, access: { has: (t) => "direction" in t, get: (t) => t.direction, set: (t, c) => {
116
+ } }, metadata: i }, j, N), f(r, null, M, { kind: "accessor", name: "direction", static: !1, private: !1, access: { has: (t) => "direction" in t, get: (t) => t.direction, set: (t, c) => {
117
117
  t.direction = c;
118
- } }, metadata: e }, O, U), f(null, a = { value: o }, i, { kind: "class", name: o.name, metadata: e }, null, s), v = o = a.value, e && Object.defineProperty(o, Symbol.metadata, { enumerable: !0, configurable: !0, writable: !0, value: e });
118
+ } }, metadata: i }, O, U), f(null, a = { value: o }, e, { kind: "class", name: o.name, metadata: i }, null, s), v = o = a.value, i && Object.defineProperty(o, Symbol.metadata, { enumerable: !0, configurable: !0, writable: !0, value: i });
119
119
  })(), r.styles = X, r.events = {
120
120
  trainSlotChange: "trainSlotChange"
121
121
  }, l(o, s), r);
@@ -4,7 +4,7 @@ var C = (e) => {
4
4
  var I = (e, o, i) => o.has(e) || C("Cannot " + i);
5
5
  var h = (e, o, i) => (I(e, o, "read from private field"), i ? i.call(e) : o.get(e)), u = (e, o, i) => o.has(e) ? C("Cannot add the same private member more than once") : o instanceof WeakSet ? o.add(e) : o.set(e, i), v = (e, o, i, t) => (I(e, o, "write to private field"), t ? t.call(e, i) : o.set(e, i), i);
6
6
  import { __esDecorate as k, __runInitializers as r } from "tslib";
7
- import { css as j, LitElement as D, html as L, nothing as E } from "lit";
7
+ import { css as j, LitElement as D, nothing as E, html as L } from "lit";
8
8
  import { customElement as M, property as m } from "lit/decorators.js";
9
9
  import { forceType as T } from "./core/decorators.js";
10
10
  import { isLean as $ } from "./core/dom.js";