@sbb-esta/lyne-elements-experimental 5.0.0-next.3 → 5.0.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.
Files changed (167) hide show
  1. package/_index.scss +2 -0
  2. package/{core.css → autocomplete-grid/_autocomplete-grid.global.scss} +4 -3
  3. package/autocomplete-grid/autocomplete-grid/autocomplete-grid.component.js +4 -4
  4. package/autocomplete-grid/autocomplete-grid-button/autocomplete-grid-button.component.js +42 -66
  5. package/autocomplete-grid/autocomplete-grid-cell/autocomplete-grid-cell.component.js +1 -1
  6. package/autocomplete-grid/autocomplete-grid-option/autocomplete-grid-option.component.js +1 -1
  7. package/autocomplete-grid/autocomplete-grid-row/autocomplete-grid-row.component.js +1 -1
  8. package/{autocomplete-grid-option.component-kcihiOWt.js → autocomplete-grid-option.component-DUFBhQwI.js} +1 -1
  9. package/autocomplete-grid.js +3 -3
  10. package/autocomplete-grid.pure.js +3 -3
  11. package/core/datetime/date-helper.js +1 -1
  12. package/core/styles/_theme.scss +19 -0
  13. package/core.js +1 -1
  14. package/custom-elements.json +165 -27
  15. package/{date-helper-CuMnZCsr.js → date-helper-DNzMLcyb.js} +3 -3
  16. package/development/autocomplete-grid/autocomplete-grid/autocomplete-grid.component.d.ts.map +1 -1
  17. package/development/autocomplete-grid/autocomplete-grid/autocomplete-grid.component.js +5 -5
  18. package/development/autocomplete-grid/autocomplete-grid-button/autocomplete-grid-button.component.d.ts.map +1 -1
  19. package/development/autocomplete-grid/autocomplete-grid-button/autocomplete-grid-button.component.js +54 -83
  20. package/development/autocomplete-grid/autocomplete-grid-cell/autocomplete-grid-cell.component.js +1 -1
  21. package/development/autocomplete-grid/autocomplete-grid-optgroup/autocomplete-grid-optgroup.component.js +1 -1
  22. package/development/autocomplete-grid/autocomplete-grid-option/autocomplete-grid-option.component.d.ts +0 -1
  23. package/development/autocomplete-grid/autocomplete-grid-option/autocomplete-grid-option.component.d.ts.map +1 -1
  24. package/development/autocomplete-grid/autocomplete-grid-option/autocomplete-grid-option.component.js +1 -1
  25. package/development/autocomplete-grid/autocomplete-grid-row/autocomplete-grid-row.component.js +1 -1
  26. package/development/{autocomplete-grid-cell.component-BF8i4388.js → autocomplete-grid-cell.component-BbdELDro.js} +1 -1
  27. package/development/{autocomplete-grid-option.component-D9pTXPlu.js → autocomplete-grid-option.component-C7WuqRit.js} +1 -2
  28. package/development/{autocomplete-grid-row.component-CBHh50jC.js → autocomplete-grid-row.component-DoXbOsQM.js} +1 -1
  29. package/development/autocomplete-grid.js +4 -4
  30. package/development/autocomplete-grid.pure.js +3 -3
  31. package/development/core/datetime/date-helper.js +1 -1
  32. package/development/core/timetable/access-leg-helper.js +1 -1
  33. package/development/core/timetable/timetable-helper.js +1 -1
  34. package/development/core.js +1 -1
  35. package/development/date-helper-BcTDWVeP.js +539 -0
  36. package/development/{differenceInMinutes-B7_GTDq7.js → differenceInMinutes-CxAbGYQ3.js} +2 -2
  37. package/development/{format-DFx4997p.js → format-Cx3zmmaF.js} +3 -3
  38. package/development/{isValid-JpZ7FphI.js → isValid-40Olgzo1.js} +2 -2
  39. package/development/journey-summary/journey-summary.component.js +1 -1
  40. package/development/journey-summary.component-BsC7wBIn.js +341 -0
  41. package/development/journey-summary.js +2 -2
  42. package/development/journey-summary.pure.js +1 -1
  43. package/development/{mapper-hWWm7Uke.js → mapper-BrZOqqfe.js} +1 -1
  44. package/development/pearl-chain/pearl-chain.component.js +1 -1
  45. package/development/pearl-chain-time/pearl-chain-time.component.js +1 -1
  46. package/development/{pearl-chain-time.component-BxVQ1z-Z.js → pearl-chain-time.component-C-CuC1ke.js} +3 -3
  47. package/development/pearl-chain-time.js +2 -2
  48. package/development/pearl-chain-time.pure.js +1 -1
  49. package/development/pearl-chain-vertical/pearl-chain-vertical.component.js +1 -1
  50. package/development/pearl-chain-vertical-item/pearl-chain-vertical-item.component.js +1 -1
  51. package/development/{pearl-chain-vertical-item.component-DJioJtxP.js → pearl-chain-vertical-item.component-CLu9QrqJ.js} +2 -2
  52. package/development/pearl-chain-vertical-item.js +2 -2
  53. package/development/pearl-chain-vertical-item.pure.js +1 -1
  54. package/development/{pearl-chain-vertical.component-zSOeIkhh.js → pearl-chain-vertical.component-DbPz5k_R.js} +1 -1
  55. package/development/pearl-chain-vertical.js +2 -2
  56. package/development/pearl-chain-vertical.pure.js +1 -1
  57. package/development/pearl-chain.component-10OsJZIX.js +318 -0
  58. package/development/pearl-chain.js +2 -2
  59. package/development/pearl-chain.pure.js +1 -1
  60. package/development/seat-reservation/common/mapper/icon-mapper.js +1 -1
  61. package/development/seat-reservation/common/mapper/mapper.js +1 -1
  62. package/development/seat-reservation/common/mapper.js +1 -1
  63. package/development/seat-reservation/common/svgs.js +1 -1
  64. package/development/seat-reservation/common/translations/i18n.js +1 -1
  65. package/development/seat-reservation/seat-reservation/seat-reservation-base-element.d.ts +11 -1
  66. package/development/seat-reservation/seat-reservation/seat-reservation-base-element.d.ts.map +1 -1
  67. package/development/seat-reservation/seat-reservation/seat-reservation-base-element.js +41 -24
  68. package/development/seat-reservation/seat-reservation/seat-reservation.component.d.ts.map +1 -1
  69. package/development/seat-reservation/seat-reservation/seat-reservation.component.js +1 -1
  70. package/development/seat-reservation/seat-reservation-area/seat-reservation-area.component.js +1 -1
  71. package/development/seat-reservation/seat-reservation-graphic/seat-reservation-graphic.component.js +1 -1
  72. package/development/seat-reservation/seat-reservation-navigation-coach/seat-reservation-navigation-coach.component.d.ts +6 -2
  73. package/development/seat-reservation/seat-reservation-navigation-coach/seat-reservation-navigation-coach.component.d.ts.map +1 -1
  74. package/development/seat-reservation/seat-reservation-navigation-coach/seat-reservation-navigation-coach.component.js +2 -2
  75. package/development/seat-reservation/seat-reservation-navigation-services/seat-reservation-navigation-services.component.js +1 -1
  76. package/development/seat-reservation/seat-reservation-place-control/seat-reservation-place-control.component.d.ts +6 -2
  77. package/development/seat-reservation/seat-reservation-place-control/seat-reservation-place-control.component.d.ts.map +1 -1
  78. package/development/seat-reservation/seat-reservation-place-control/seat-reservation-place-control.component.js +2 -2
  79. package/development/seat-reservation/seat-reservation-scoped/seat-reservation-scoped.component.js +1 -1
  80. package/development/{seat-reservation-area.component-CMqjbUtV.js → seat-reservation-area.component-DPhQJFid.js} +2 -2
  81. package/development/{seat-reservation-graphic.component-C2r57590.js → seat-reservation-graphic.component-0LYsmerm.js} +2 -2
  82. package/development/seat-reservation-navigation-coach.component-B97jKD7Y.js +438 -0
  83. package/development/{seat-reservation-navigation-services.component-Do8JLJh3.js → seat-reservation-navigation-services.component-Cx0Is97w.js} +2 -2
  84. package/development/{seat-reservation-place-control.component-BfuOGZYq.js → seat-reservation-place-control.component-DaL1g8WH.js} +40 -37
  85. package/development/{seat-reservation-scoped.component-D-Mvw-Q3.js → seat-reservation-scoped.component-BHbORVsR.js} +1 -1
  86. package/development/seat-reservation.component-DI9pSlzt.js +473 -0
  87. package/development/seat-reservation.js +12 -12
  88. package/development/seat-reservation.pure.js +11 -11
  89. package/development/{svgs-kDpBCto5.js → svgs-Dj-RKmRs.js} +1 -1
  90. package/development/timetable-duration/timetable-duration.component.js +1 -1
  91. package/development/timetable-duration.component-Chk5D4Is.js +96 -0
  92. package/development/timetable-duration.js +2 -2
  93. package/development/timetable-duration.pure.js +1 -1
  94. package/development/timetable-row/timetable-row.component.d.ts.map +1 -1
  95. package/development/timetable-row/timetable-row.component.js +1 -1
  96. package/development/timetable-row.component-nzrQzxL6.js +736 -0
  97. package/development/timetable-row.js +2 -2
  98. package/development/timetable-row.pure.js +1 -1
  99. package/development/{toDate-DOFAOjP-.js → toDate-CDWut5fS.js} +1 -1
  100. package/{differenceInMinutes-Dr9gRqtu.js → differenceInMinutes-BAZ-Fham.js} +1 -1
  101. package/{format-DbUuNYFU.js → format-DjgG1QPc.js} +2 -2
  102. package/{isValid-B9oVW3lA.js → isValid-CXnsFZVu.js} +1 -1
  103. package/journey-summary/journey-summary.component.js +1 -1
  104. package/{journey-summary.component-CkDRawn9.js → journey-summary.component-DNoO3OCf.js} +41 -41
  105. package/journey-summary.js +1 -1
  106. package/journey-summary.pure.js +1 -1
  107. package/package.json +6 -6
  108. package/pearl-chain/pearl-chain.component.js +1 -1
  109. package/pearl-chain-time/pearl-chain-time.component.js +1 -1
  110. package/{pearl-chain-time.component-D5OCEBJ_.js → pearl-chain-time.component-BuvA6IE1.js} +33 -33
  111. package/pearl-chain-time.js +1 -1
  112. package/pearl-chain-time.pure.js +1 -1
  113. package/pearl-chain-vertical/pearl-chain-vertical.component.js +1 -1
  114. package/pearl-chain-vertical-item/pearl-chain-vertical-item.component.js +1 -1
  115. package/{pearl-chain-vertical-item.component-IdquCJMy.js → pearl-chain-vertical-item.component-QZ4s8Jbv.js} +24 -24
  116. package/pearl-chain-vertical-item.js +1 -1
  117. package/pearl-chain-vertical-item.pure.js +1 -1
  118. package/pearl-chain-vertical.js +1 -1
  119. package/pearl-chain-vertical.pure.js +1 -1
  120. package/{pearl-chain.component-C6lcD7Xl.js → pearl-chain.component-DtGXXkY6.js} +26 -26
  121. package/pearl-chain.js +1 -1
  122. package/pearl-chain.pure.js +1 -1
  123. package/seat-reservation/common/mapper/mapper.js +1 -1
  124. package/seat-reservation/common/mapper.js +1 -1
  125. package/seat-reservation/common/svgs.js +1 -1
  126. package/seat-reservation/seat-reservation/seat-reservation-base-element.js +91 -77
  127. package/seat-reservation/seat-reservation/seat-reservation.component.js +1 -1
  128. package/seat-reservation/seat-reservation-area/seat-reservation-area.component.js +1 -1
  129. package/seat-reservation/seat-reservation-graphic/seat-reservation-graphic.component.js +1 -1
  130. package/seat-reservation/seat-reservation-navigation-coach/seat-reservation-navigation-coach.component.js +2 -2
  131. package/seat-reservation/seat-reservation-navigation-services/seat-reservation-navigation-services.component.js +1 -1
  132. package/seat-reservation/seat-reservation-place-control/seat-reservation-place-control.component.js +2 -2
  133. package/seat-reservation/seat-reservation-scoped/seat-reservation-scoped.component.js +1 -1
  134. package/{seat-reservation-area.component-BcmwKJSK.js → seat-reservation-area.component-G9lHb7S8.js} +16 -16
  135. package/{seat-reservation-graphic.component-C3wc4DKr.js → seat-reservation-graphic.component-BXFcQDxY.js} +20 -20
  136. package/seat-reservation-navigation-coach.component-BXy8EkJe.js +338 -0
  137. package/{seat-reservation-navigation-services.component-CfAQa7pa.js → seat-reservation-navigation-services.component-49XmV9rv.js} +21 -21
  138. package/{seat-reservation-place-control.component-DrzEDW8Z.js → seat-reservation-place-control.component-DToIW328.js} +70 -71
  139. package/{seat-reservation.component-RNI6_X71.js → seat-reservation.component--0XnrCkk.js} +78 -77
  140. package/seat-reservation.js +12 -12
  141. package/seat-reservation.pure.js +11 -11
  142. package/timetable-duration/timetable-duration.component.js +1 -1
  143. package/timetable-duration.component-iMCvh1zr.js +61 -0
  144. package/timetable-duration.js +1 -1
  145. package/timetable-duration.pure.js +1 -1
  146. package/timetable-row/timetable-row.component.js +1 -1
  147. package/{timetable-row.component-Din-TQ9u.js → timetable-row.component-mNKmhRmP.js} +89 -85
  148. package/timetable-row.js +1 -1
  149. package/timetable-row.pure.js +1 -1
  150. package/core/styles/core.scss +0 -13
  151. package/core/styles/theme.scss +0 -5
  152. package/development/date-helper-DGz-ztQM.js +0 -520
  153. package/development/journey-summary.component-De1ioDRq.js +0 -341
  154. package/development/pearl-chain.component-B83OsEx8.js +0 -312
  155. package/development/seat-reservation-navigation-coach.component-BwLbiHCG.js +0 -426
  156. package/development/seat-reservation.component-B-n0sIL5.js +0 -472
  157. package/development/timetable-duration.component-fBla8Kue.js +0 -96
  158. package/development/timetable-row.component-DSTGtQAC.js +0 -732
  159. package/seat-reservation-navigation-coach.component-D1SgS8BU.js +0 -328
  160. package/timetable-duration.component-DPRcG1LP.js +0 -61
  161. /package/{autocomplete-grid-cell.component-DAsWZlTn.js → autocomplete-grid-cell.component-79IjA__I.js} +0 -0
  162. /package/{autocomplete-grid-row.component-VbyYP0U-.js → autocomplete-grid-row.component-B3U15Rwa.js} +0 -0
  163. /package/{mapper-Cqie5ivY.js → mapper-Dcou8VEf.js} +0 -0
  164. /package/{pearl-chain-vertical.component-CDOWaup3.js → pearl-chain-vertical.component-Dc3vaHsQ.js} +0 -0
  165. /package/{seat-reservation-scoped.component-BohQUGVW.js → seat-reservation-scoped.component-D8dAmrP7.js} +0 -0
  166. /package/{svgs-D5DhLHxC.js → svgs-D4fuYTHV.js} +0 -0
  167. /package/{toDate-p-Tpkb7t.js → toDate-BhNUyM4s.js} +0 -0
package/_index.scss ADDED
@@ -0,0 +1,2 @@
1
+ // This file is auto-generated by scripts/generate-scss-api.ts
2
+ @forward './autocomplete-grid/autocomplete-grid.global' as autocomplete-grid-*;
@@ -1,7 +1,8 @@
1
- :root {
1
+ $theme: 'standard' !default;
2
+
3
+ @mixin base {
2
4
  --sbb-autocomplete-grid-row-color: var(--sbb-color-3);
3
5
  --sbb-autocomplete-grid-row-background-color-hover: var(--sbb-background-color-3);
4
- --sbb-autocomplete-grid-row-disabled-border-color: var(--sbb-color-graphite);
5
6
  --sbb-autocomplete-grid-row-disabled-border-color: light-dark(
6
7
  var(--sbb-color-graphite),
7
8
  var(--sbb-color-smoke)
@@ -10,4 +11,4 @@
10
11
  --sbb-autocomplete-grid-row-padding-inline-end: var(--sbb-spacing-responsive-xxxs);
11
12
  --sbb-autocomplete-grid-row-justify-content: space-between;
12
13
  --sbb-autocomplete-grid-row-cursor: var(--sbb-cursor-pointer);
13
- }
14
+ }
@@ -38,12 +38,12 @@ var o = 0, s = t, c = class extends i {
38
38
  }
39
39
  setNextActiveOption(t) {
40
40
  let n = this.options.filter((e) => !e.matches(":is(:state(disabled),[state--disabled])"));
41
- if (this.activeOption?.setActive(!1), this.triggerElement?.removeAttribute("aria-activedescendant"), Array.from(this.querySelectorAll?.("sbb-autocomplete-grid-row :is(:state(focus-visible),[state--focus-visible])") ?? []).forEach((e) => r(e).delete("focus-visible")), this._activeColumnIndex = 0, !n.length) {
41
+ if (this.activeOption?.setActive(!1), this.triggerElement.ariaActiveDescendantElement = null, Array.from(this.querySelectorAll?.("sbb-autocomplete-grid-row :is(:state(focus-visible),[state--focus-visible])") ?? []).forEach((e) => r(e).delete("focus-visible")), this._activeColumnIndex = 0, !n.length) {
42
42
  this.activeOption = null;
43
43
  return;
44
44
  }
45
45
  let i = e(t, this.activeOption ? n.indexOf(this.activeOption) : -1, n.length);
46
- this.activeOption = n[i], this.activeOption.setActive(!0), this.triggerElement?.setAttribute("aria-activedescendant", this.activeOption.id), this.activeOption.scrollIntoView({ block: "nearest" }), t && t.preventDefault(), this.autoSelectActiveOption && t && this.setPendingSelection(this.activeOption);
46
+ this.activeOption = n[i], this.activeOption.setActive(!0), this.triggerElement.ariaActiveDescendantElement = this.activeOption, this.activeOption.scrollIntoView({ block: "nearest" }), t && t.preventDefault(), this.autoSelectActiveOption && t && this.setPendingSelection(this.activeOption);
47
47
  }
48
48
  _setNextHorizontalActiveElement(t) {
49
49
  if (!this.activeOption) return;
@@ -52,10 +52,10 @@ var o = 0, s = t, c = class extends i {
52
52
  let i = e(t, this._activeColumnIndex, n.length), o = n[i];
53
53
  o instanceof a ? o.setActive(!0) : r(o).add("focus-visible");
54
54
  let s = n[this._activeColumnIndex];
55
- s instanceof a ? s.setActive(!1) : r(s).delete("focus-visible"), this.triggerElement?.setAttribute("aria-activedescendant", o.id), o.scrollIntoView({ block: "nearest" }), this._activeColumnIndex = i;
55
+ s instanceof a ? s.setActive(!1) : r(s).delete("focus-visible"), this.triggerElement.ariaActiveDescendantElement = o, o.scrollIntoView({ block: "nearest" }), this._activeColumnIndex = i;
56
56
  }
57
57
  resetActiveElement() {
58
- this._activeColumnIndex !== 0 && this.activeOption?.closest("sbb-autocomplete-grid-row")?.querySelectorAll("sbb-autocomplete-grid-button").forEach((e) => r(e).delete("focus-visible")), this.activeOption?.setActive(!1), this.activeOption = null, this._activeColumnIndex = 0, this.triggerElement?.removeAttribute("aria-activedescendant");
58
+ this._activeColumnIndex !== 0 && this.activeOption?.closest("sbb-autocomplete-grid-row")?.querySelectorAll("sbb-autocomplete-grid-button").forEach((e) => r(e).delete("focus-visible")), this.activeOption?.setActive(!1), this.activeOption = null, this._activeColumnIndex = 0, this.triggerElement && (this.triggerElement.ariaActiveDescendantElement = null);
59
59
  }
60
60
  setTriggerAttributes(e) {
61
61
  n(e, s ? this.id : this.overlayId, !1, "grid");
@@ -1,68 +1,44 @@
1
- import { __esDecorate as e, __runInitializers as t } from "tslib";
2
- import { miniButtonStyle as n } from "@sbb-esta/lyne-elements/button.pure.js";
3
- import { SbbActionBaseElement as r, SbbDisabledMixin as i, SbbNegativeMixin as a, SbbPropertyWatcherController as o, hostAttributes as s, isEventPrevented as c } from "@sbb-esta/lyne-elements/core.js";
4
- import { SbbIconNameMixin as l } from "@sbb-esta/lyne-elements/icon.pure.js";
5
- import { isServer as u } from "lit";
1
+ import { miniButtonStyle as e } from "@sbb-esta/lyne-elements/button.pure.js";
2
+ import { SbbActionBaseElement as t, SbbDisabledMixin as n, SbbNegativeMixin as r, SbbPropertyWatcherController as i, isEventPrevented as a } from "@sbb-esta/lyne-elements/core.js";
3
+ import { SbbIconNameMixin as o } from "@sbb-esta/lyne-elements/icon.pure.js";
4
+ import { isServer as s } from "lit";
6
5
  //#region src/elements-experimental/autocomplete-grid/autocomplete-grid-button/autocomplete-grid-button.component.ts
7
- var d = 0, f = (() => {
8
- let f = [s({ tabindex: null })], p, m = [], h, g = i(a(l(r)));
9
- var _ = class extends g {
10
- static {
11
- h = this;
12
- }
13
- static {
14
- let t = typeof Symbol == "function" && Symbol.metadata ? Object.create(g[Symbol.metadata] ?? null) : void 0;
15
- e(null, p = { value: h }, f, {
16
- kind: "class",
17
- name: h.name,
18
- metadata: t
19
- }, null, m), _ = h = p.value, t && Object.defineProperty(h, Symbol.metadata, {
20
- enumerable: !0,
21
- configurable: !0,
22
- writable: !0,
23
- value: t
24
- });
25
- }
26
- static {
27
- this.elementName = "sbb-autocomplete-grid-button";
28
- }
29
- static {
30
- this.role = "button";
31
- }
32
- static {
33
- this.styles = [n];
34
- }
35
- get option() {
36
- return this.closest("sbb-autocomplete-grid-row")?.querySelector("sbb-autocomplete-grid-option") || null;
37
- }
38
- get optgroup() {
39
- return this.closest("sbb-autocomplete-grid-optgroup");
40
- }
41
- constructor() {
42
- super(), this._handleButtonClick = async (e) => {
43
- await c(e) || this.closest("form");
44
- }, this.internals.states.add("button"), u || (this.setupBaseEventHandlers(), this.addEventListener("click", this._handleButtonClick), this.addController(new o(this, () => this.closest("sbb-autocomplete-grid-optgroup"), { disabled: () => this._updateInternals() })));
45
- }
46
- isDisabledExternally() {
47
- return this.optgroup?.disabled ?? !1;
48
- }
49
- renderTemplate() {
50
- return super.renderIconSlot();
51
- }
52
- connectedCallback() {
53
- super.connectedCallback(), this.id ||= `sbb-autocomplete-grid-button-${++d}`;
54
- }
55
- willUpdate(e) {
56
- super.willUpdate(e), e.has("disabled") && this._updateInternals();
57
- }
58
- _updateInternals() {
59
- this.disabled || this.optgroup?.disabled ? (this.internals.states.add("disabled"), this.internals.ariaDisabled = "true") : (this.internals.states.delete("disabled"), this.internals.ariaDisabled = null);
60
- }
61
- static {
62
- t(h, m);
63
- }
64
- };
65
- return h;
66
- })();
6
+ var c = 0, l = class extends n(r(o(t))) {
7
+ static {
8
+ this.elementName = "sbb-autocomplete-grid-button";
9
+ }
10
+ static {
11
+ this.role = "button";
12
+ }
13
+ static {
14
+ this.styles = [e];
15
+ }
16
+ get option() {
17
+ return this.closest("sbb-autocomplete-grid-row")?.querySelector("sbb-autocomplete-grid-option") || null;
18
+ }
19
+ get optgroup() {
20
+ return this.closest("sbb-autocomplete-grid-optgroup");
21
+ }
22
+ constructor() {
23
+ super(), this._handleButtonClick = async (e) => {
24
+ await a(e) || this.closest("form");
25
+ }, this.internals.states.add("button"), s || (this.setupBaseEventHandlers(), this.addEventListener("click", this._handleButtonClick), this.addController(new i(this, () => this.closest("sbb-autocomplete-grid-optgroup"), { disabled: () => this._updateInternals() })));
26
+ }
27
+ isDisabledExternally() {
28
+ return this.optgroup?.disabled ?? !1;
29
+ }
30
+ renderTemplate() {
31
+ return super.renderIconSlot();
32
+ }
33
+ connectedCallback() {
34
+ super.connectedCallback(), this.id ||= `sbb-autocomplete-grid-button-${++c}`, this.removeAttribute("tabindex");
35
+ }
36
+ willUpdate(e) {
37
+ super.willUpdate(e), e.has("disabled") && this._updateInternals();
38
+ }
39
+ _updateInternals() {
40
+ this.disabled || this.optgroup?.disabled ? (this.internals.states.add("disabled"), this.internals.ariaDisabled = "true") : (this.internals.states.delete("disabled"), this.internals.ariaDisabled = null);
41
+ }
42
+ };
67
43
  //#endregion
68
- export { f as SbbAutocompleteGridButtonElement };
44
+ export { l as SbbAutocompleteGridButtonElement };
@@ -1,2 +1,2 @@
1
- import { t as e } from "../../autocomplete-grid-cell.component-DAsWZlTn.js";
1
+ import { t as e } from "../../autocomplete-grid-cell.component-79IjA__I.js";
2
2
  export { e as SbbAutocompleteGridCellElement };
@@ -1,2 +1,2 @@
1
- import { n as e, t } from "../../autocomplete-grid-option.component-kcihiOWt.js";
1
+ import { n as e, t } from "../../autocomplete-grid-option.component-DUFBhQwI.js";
2
2
  export { t as SbbAutocompleteGridOptionElement, e as autocompleteGridOptionId };
@@ -1,2 +1,2 @@
1
- import { t as e } from "../../autocomplete-grid-row.component-VbyYP0U-.js";
1
+ import { t as e } from "../../autocomplete-grid-row.component-B3U15Rwa.js";
2
2
  export { e as SbbAutocompleteGridRowElement };
@@ -13,7 +13,7 @@ var i = ":host{--sbb-focus-outline-offset: var(--sbb-option-focus-outline-offset
13
13
  this.styles = [n(i)];
14
14
  }
15
15
  constructor() {
16
- super(), this.optionId = a, this.addController(new e(this, () => this.closest("sbb-autocomplete-grid-optgroup"), {
16
+ super(), this.addController(new e(this, () => this.closest("sbb-autocomplete-grid-optgroup"), {
17
17
  disabled: (e) => {
18
18
  this.disabledFromGroup = e.disabled, t(this.closest?.("sbb-autocomplete-grid-row"))?.toggle("disabled", this.disabled || this.disabledFromGroup), this.updateAriaDisabled();
19
19
  },
@@ -1,8 +1,8 @@
1
1
  import { SbbAutocompleteGridButtonElement as e } from "./autocomplete-grid/autocomplete-grid-button/autocomplete-grid-button.component.js";
2
- import { t } from "./autocomplete-grid-cell.component-DAsWZlTn.js";
2
+ import { t } from "./autocomplete-grid-cell.component-79IjA__I.js";
3
3
  import { SbbAutocompleteGridOptgroupElement as n } from "./autocomplete-grid/autocomplete-grid-optgroup/autocomplete-grid-optgroup.component.js";
4
- import { n as r, t as i } from "./autocomplete-grid-option.component-kcihiOWt.js";
5
- import { t as a } from "./autocomplete-grid-row.component-VbyYP0U-.js";
4
+ import { n as r, t as i } from "./autocomplete-grid-option.component-DUFBhQwI.js";
5
+ import { t as a } from "./autocomplete-grid-row.component-B3U15Rwa.js";
6
6
  import { SbbAutocompleteGridElement as o } from "./autocomplete-grid/autocomplete-grid/autocomplete-grid.component.js";
7
7
  import "./autocomplete-grid.pure.js";
8
8
  o.define(), e.define(), t.define(), n.define(), i.define(), a.define();
@@ -1,7 +1,7 @@
1
1
  import { SbbAutocompleteGridButtonElement as e } from "./autocomplete-grid/autocomplete-grid-button/autocomplete-grid-button.component.js";
2
- import { t } from "./autocomplete-grid-cell.component-DAsWZlTn.js";
2
+ import { t } from "./autocomplete-grid-cell.component-79IjA__I.js";
3
3
  import { SbbAutocompleteGridOptgroupElement as n } from "./autocomplete-grid/autocomplete-grid-optgroup/autocomplete-grid-optgroup.component.js";
4
- import { n as r, t as i } from "./autocomplete-grid-option.component-kcihiOWt.js";
5
- import { t as a } from "./autocomplete-grid-row.component-VbyYP0U-.js";
4
+ import { n as r, t as i } from "./autocomplete-grid-option.component-DUFBhQwI.js";
5
+ import { t as a } from "./autocomplete-grid-row.component-B3U15Rwa.js";
6
6
  import { SbbAutocompleteGridElement as o } from "./autocomplete-grid/autocomplete-grid/autocomplete-grid.component.js";
7
7
  export { e as SbbAutocompleteGridButtonElement, t as SbbAutocompleteGridCellElement, o as SbbAutocompleteGridElement, n as SbbAutocompleteGridOptgroupElement, i as SbbAutocompleteGridOptionElement, a as SbbAutocompleteGridRowElement, r as autocompleteGridOptionId };
@@ -1,2 +1,2 @@
1
- import { n as e, t } from "../../date-helper-CuMnZCsr.js";
1
+ import { n as e, t } from "../../date-helper-DNzMLcyb.js";
2
2
  export { t as durationToTime, e as removeTimezoneFromISOTimeString };
@@ -0,0 +1,19 @@
1
+ $theme: 'standard' !default;
2
+
3
+ // start-auto-generated-scss-module-imports
4
+ @use '../../autocomplete-grid/autocomplete-grid.global' as autocomplete-grid with (
5
+ $theme: $theme
6
+ );
7
+
8
+ // end-auto-generated-scss-module-imports
9
+
10
+ :root {
11
+ // start-auto-generated-scss-module-root
12
+ @include autocomplete-grid.base;
13
+
14
+ // end-auto-generated-scss-module-root
15
+ }
16
+
17
+ // start-auto-generated-scss-module-rules
18
+
19
+ // end-auto-generated-scss-module-rules
package/core.js CHANGED
@@ -1,4 +1,4 @@
1
- import { n as e, t } from "./date-helper-CuMnZCsr.js";
1
+ import { n as e, t } from "./date-helper-DNzMLcyb.js";
2
2
  import { extractTimeAndStringFromNoticeText as n, isConnectionLeg as r, isRideLeg as i } from "./core/timetable/timetable-helper.js";
3
3
  import { getDepartureArrivalTimeAttribute as a } from "./core/timetable/access-leg-helper.js";
4
4
  import "./core/timetable/timetable-properties.js";
@@ -58,15 +58,6 @@
58
58
  "readonly": true,
59
59
  "default": "'gridcell'"
60
60
  },
61
- {
62
- "kind": "field",
63
- "name": "optionId",
64
- "privacy": "protected",
65
- "default": "`sbb-autocomplete-grid-option`",
66
- "type": {
67
- "text": "string"
68
- }
69
- },
70
61
  {
71
62
  "kind": "method",
72
63
  "name": "selectByClick",
@@ -2674,6 +2665,37 @@
2674
2665
  "kind": "javascript-module",
2675
2666
  "path": "seat-reservation/seat-reservation-navigation-coach/seat-reservation-navigation-coach.component.js",
2676
2667
  "declarations": [
2668
+ {
2669
+ "kind": "class",
2670
+ "description": "",
2671
+ "name": "SbbSelectCoachEvent",
2672
+ "members": [
2673
+ {
2674
+ "kind": "field",
2675
+ "name": "_coachIndex",
2676
+ "type": {
2677
+ "text": "number"
2678
+ },
2679
+ "privacy": "private",
2680
+ "readonly": true,
2681
+ "default": "coachIndex"
2682
+ },
2683
+ {
2684
+ "kind": "field",
2685
+ "name": "coachIndex",
2686
+ "type": {
2687
+ "text": "number"
2688
+ },
2689
+ "privacy": "public",
2690
+ "readonly": true,
2691
+ "default": "coachIndex"
2692
+ }
2693
+ ],
2694
+ "superclass": {
2695
+ "name": "Event",
2696
+ "module": "seat-reservation/seat-reservation-navigation-coach/seat-reservation-navigation-coach.component.js"
2697
+ }
2698
+ },
2677
2699
  {
2678
2700
  "kind": "class",
2679
2701
  "description": "This component will display the navigation coach item for Seat reservation.",
@@ -2882,7 +2904,7 @@
2882
2904
  },
2883
2905
  "parameters": [
2884
2906
  {
2885
- "name": "coachIndex",
2907
+ "name": "selectcoach",
2886
2908
  "type": {
2887
2909
  "text": "number"
2888
2910
  }
@@ -2912,7 +2934,7 @@
2912
2934
  {
2913
2935
  "name": "selectcoach",
2914
2936
  "type": {
2915
- "text": "CustomEvent<SelectCoachEventDetails>"
2937
+ "text": "SbbSelectCoachEvent"
2916
2938
  },
2917
2939
  "description": "Emits when a coach within the navigation was selected and returns the clicked coach nav index."
2918
2940
  }
@@ -3007,6 +3029,14 @@
3007
3029
  }
3008
3030
  ],
3009
3031
  "exports": [
3032
+ {
3033
+ "kind": "js",
3034
+ "name": "SbbSelectCoachEvent",
3035
+ "declaration": {
3036
+ "name": "SbbSelectCoachEvent",
3037
+ "module": "seat-reservation/seat-reservation-navigation-coach/seat-reservation-navigation-coach.component.js"
3038
+ }
3039
+ },
3010
3040
  {
3011
3041
  "kind": "js",
3012
3042
  "name": "SbbSeatReservationNavigationCoachElement",
@@ -3021,6 +3051,37 @@
3021
3051
  "kind": "javascript-module",
3022
3052
  "path": "seat-reservation/seat-reservation-place-control/seat-reservation-place-control.component.js",
3023
3053
  "declarations": [
3054
+ {
3055
+ "kind": "class",
3056
+ "description": "",
3057
+ "name": "SbbPlaceSelectionEvent",
3058
+ "members": [
3059
+ {
3060
+ "kind": "field",
3061
+ "name": "_detail",
3062
+ "type": {
3063
+ "text": "PlaceSelection"
3064
+ },
3065
+ "privacy": "private",
3066
+ "readonly": true,
3067
+ "default": "detail"
3068
+ },
3069
+ {
3070
+ "kind": "field",
3071
+ "name": "detail",
3072
+ "type": {
3073
+ "text": "PlaceSelection"
3074
+ },
3075
+ "privacy": "public",
3076
+ "readonly": true,
3077
+ "default": "detail"
3078
+ }
3079
+ ],
3080
+ "superclass": {
3081
+ "name": "Event",
3082
+ "module": "seat-reservation/seat-reservation-place-control/seat-reservation-place-control.component.js"
3083
+ }
3084
+ },
3024
3085
  {
3025
3086
  "kind": "class",
3026
3087
  "description": "Output the graphic of a seat or a bicycle place as a control element.",
@@ -3172,15 +3233,6 @@
3172
3233
  "description": "Disable the mouse over title information",
3173
3234
  "attribute": "showTitleInfo"
3174
3235
  },
3175
- {
3176
- "kind": "field",
3177
- "name": "_optionalScreenreaderInfo",
3178
- "type": {
3179
- "text": "string"
3180
- },
3181
- "privacy": "private",
3182
- "default": "''"
3183
- },
3184
3236
  {
3185
3237
  "kind": "field",
3186
3238
  "name": "_language",
@@ -3263,7 +3315,7 @@
3263
3315
  {
3264
3316
  "name": "selectplace",
3265
3317
  "type": {
3266
- "text": "CustomEvent<PlaceSelection>"
3318
+ "text": "SbbPlaceSelectionEvent"
3267
3319
  },
3268
3320
  "description": "Emits when a place was selected via user interaction and returns a\nPlaceSelection object with necessary place information."
3269
3321
  }
@@ -3372,6 +3424,14 @@
3372
3424
  }
3373
3425
  ],
3374
3426
  "exports": [
3427
+ {
3428
+ "kind": "js",
3429
+ "name": "SbbPlaceSelectionEvent",
3430
+ "declaration": {
3431
+ "name": "SbbPlaceSelectionEvent",
3432
+ "module": "seat-reservation/seat-reservation-place-control/seat-reservation-place-control.component.js"
3433
+ }
3434
+ },
3375
3435
  {
3376
3436
  "kind": "js",
3377
3437
  "name": "SbbSeatReservationPlaceControlElement",
@@ -3426,6 +3486,68 @@
3426
3486
  "kind": "javascript-module",
3427
3487
  "path": "seat-reservation/seat-reservation/seat-reservation-base-element.js",
3428
3488
  "declarations": [
3489
+ {
3490
+ "kind": "class",
3491
+ "description": "",
3492
+ "name": "SbbSeatReservationSelectedPlacesEvent",
3493
+ "members": [
3494
+ {
3495
+ "kind": "field",
3496
+ "name": "_detail",
3497
+ "type": {
3498
+ "text": "SeatReservationSelectedPlaces"
3499
+ },
3500
+ "privacy": "private",
3501
+ "readonly": true,
3502
+ "default": "detail"
3503
+ },
3504
+ {
3505
+ "kind": "field",
3506
+ "name": "detail",
3507
+ "type": {
3508
+ "text": "SeatReservationSelectedPlaces"
3509
+ },
3510
+ "privacy": "public",
3511
+ "readonly": true,
3512
+ "default": "detail"
3513
+ }
3514
+ ],
3515
+ "superclass": {
3516
+ "name": "Event",
3517
+ "module": "seat-reservation/seat-reservation/seat-reservation-base-element.js"
3518
+ }
3519
+ },
3520
+ {
3521
+ "kind": "class",
3522
+ "description": "",
3523
+ "name": "SbbSeatReservationSelectedCoachEvent",
3524
+ "members": [
3525
+ {
3526
+ "kind": "field",
3527
+ "name": "_detail",
3528
+ "type": {
3529
+ "text": "SeatReservationSelectedCoach"
3530
+ },
3531
+ "privacy": "private",
3532
+ "readonly": true,
3533
+ "default": "detail"
3534
+ },
3535
+ {
3536
+ "kind": "field",
3537
+ "name": "detail",
3538
+ "type": {
3539
+ "text": "SeatReservationSelectedCoach"
3540
+ },
3541
+ "privacy": "public",
3542
+ "readonly": true,
3543
+ "default": "detail"
3544
+ }
3545
+ ],
3546
+ "superclass": {
3547
+ "name": "Event",
3548
+ "module": "seat-reservation/seat-reservation/seat-reservation-base-element.js"
3549
+ }
3550
+ },
3429
3551
  {
3430
3552
  "kind": "class",
3431
3553
  "description": "",
@@ -4973,14 +5095,14 @@
4973
5095
  {
4974
5096
  "name": "selectedplaces",
4975
5097
  "type": {
4976
- "text": "CustomEvent<SeatReservationSelectedPlaces>"
5098
+ "text": "SbbSeatReservationSelectedPlacesEvent"
4977
5099
  },
4978
5100
  "description": "Emits when a place was selected and returns a Place array with all selected places."
4979
5101
  },
4980
5102
  {
4981
5103
  "name": "selectedcoach",
4982
5104
  "type": {
4983
- "text": "CustomEvent<SeatReservationSelectedCoach>"
5105
+ "text": "SbbSeatReservationSelectedCoachEvent"
4984
5106
  },
4985
5107
  "description": "Emits when a coach was selected and returns a CoachSelection"
4986
5108
  }
@@ -5093,6 +5215,22 @@
5093
5215
  }
5094
5216
  ],
5095
5217
  "exports": [
5218
+ {
5219
+ "kind": "js",
5220
+ "name": "SbbSeatReservationSelectedPlacesEvent",
5221
+ "declaration": {
5222
+ "name": "SbbSeatReservationSelectedPlacesEvent",
5223
+ "module": "seat-reservation/seat-reservation/seat-reservation-base-element.js"
5224
+ }
5225
+ },
5226
+ {
5227
+ "kind": "js",
5228
+ "name": "SbbSeatReservationSelectedCoachEvent",
5229
+ "declaration": {
5230
+ "name": "SbbSeatReservationSelectedCoachEvent",
5231
+ "module": "seat-reservation/seat-reservation/seat-reservation-base-element.js"
5232
+ }
5233
+ },
5096
5234
  {
5097
5235
  "kind": "js",
5098
5236
  "name": "SeatReservationBaseElement",
@@ -5452,7 +5590,7 @@
5452
5590
  {
5453
5591
  "name": "selectPlaceEvent",
5454
5592
  "type": {
5455
- "text": "CustomEvent<PlaceSelection>"
5593
+ "text": "SbbPlaceSelectionEvent"
5456
5594
  }
5457
5595
  }
5458
5596
  ],
@@ -5471,7 +5609,7 @@
5471
5609
  {
5472
5610
  "name": "event",
5473
5611
  "type": {
5474
- "text": "CustomEvent<number>"
5612
+ "text": "SbbSelectCoachEvent"
5475
5613
  }
5476
5614
  }
5477
5615
  ]
@@ -7695,7 +7833,7 @@
7695
7833
  {
7696
7834
  "name": "selectedplaces",
7697
7835
  "type": {
7698
- "text": "CustomEvent<SeatReservationSelectedPlaces>"
7836
+ "text": "SbbSeatReservationSelectedPlacesEvent"
7699
7837
  },
7700
7838
  "description": "Emits when a place was selected and returns a Place array with all selected places.",
7701
7839
  "inheritedFrom": {
@@ -7706,7 +7844,7 @@
7706
7844
  {
7707
7845
  "name": "selectedcoach",
7708
7846
  "type": {
7709
- "text": "CustomEvent<SeatReservationSelectedCoach>"
7847
+ "text": "SbbSeatReservationSelectedCoachEvent"
7710
7848
  },
7711
7849
  "description": "Emits when a coach was selected and returns a CoachSelection",
7712
7850
  "inheritedFrom": {
@@ -1,6 +1,6 @@
1
- import { a as e, i as t, n, t as r } from "./toDate-p-Tpkb7t.js";
2
- import { n as i, r as a, t as o } from "./isValid-B9oVW3lA.js";
3
- import { n as s, r as c, t as l } from "./differenceInMinutes-Dr9gRqtu.js";
1
+ import { a as e, i as t, n, t as r } from "./toDate-BhNUyM4s.js";
2
+ import { n as i, r as a, t as o } from "./isValid-CXnsFZVu.js";
3
+ import { n as s, r as c, t as l } from "./differenceInMinutes-BAZ-Fham.js";
4
4
  import { i18nDurationDay as u, i18nDurationHour as d, i18nDurationMinute as f } from "@sbb-esta/lyne-elements/core.js";
5
5
  //#region node_modules/date-fns/addDays.js
6
6
  function p(e, t, i) {
@@ -1 +1 @@
1
- {"version":3,"file":"autocomplete-grid.component.d.ts","sourceRoot":"","sources":["../../../../../src/elements-experimental/autocomplete-grid/autocomplete-grid/autocomplete-grid.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,0BAA0B,EAAE,MAAM,8CAA8C,CAAC;AAc1F,OAAO,EAAE,gCAAgC,EAAE,MAAM,mEAAmE,CAAC;AAUrH;;;;;;;;;GASG;AACH,qBAAa,0BAA0B,CAAC,CAAC,GAAG,MAAM,CAAE,SAAQ,0BAA0B,CAAC,CAAC,CAAC;IACvF,gBAAgC,WAAW,EAAE,MAAM,CAA2B;IAC9E,gBAAgC,IAAI,gBAAkC;IACtE,SAAS,CAAC,SAAS,SAAuC;IAC1D,SAAS,CAAC,SAAS,SAAU;IAC7B,OAAO,CAAC,kBAAkB,CAAK;IAE/B,SAAS,KAAK,OAAO,IAAI,gCAAgC,CAAC,CAAC,CAAC,EAAE,CAM7D;IAED,SAAS,CAAC,YAAY,IAAI,IAAI;IAY9B,SAAS,CAAC,8BAA8B,CAAC,KAAK,EAAE,aAAa,GAAG,IAAI;IAqBpE;;;;;;OAMG;IACH,SAAS,CAAC,gBAAgB,CAAC,KAAK,EAAE,aAAa,GAAG,IAAI;IAmBtD,SAAS,CAAC,mBAAmB,CAAC,KAAK,CAAC,EAAE,aAAa,GAAG,IAAI;IAsC1D,OAAO,CAAC,+BAA+B;IAqCvC,SAAS,CAAC,kBAAkB,IAAI,IAAI;IAapC,SAAS,CAAC,oBAAoB,CAAC,OAAO,EAAE,gBAAgB,GAAG,IAAI;CAGhE;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAE7B,uBAAuB,EAAE,0BAA0B,CAAC;KACrD;CACF"}
1
+ {"version":3,"file":"autocomplete-grid.component.d.ts","sourceRoot":"","sources":["../../../../../src/elements-experimental/autocomplete-grid/autocomplete-grid/autocomplete-grid.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,0BAA0B,EAAE,MAAM,8CAA8C,CAAC;AAc1F,OAAO,EAAE,gCAAgC,EAAE,MAAM,mEAAmE,CAAC;AAUrH;;;;;;;;;GASG;AACH,qBAAa,0BAA0B,CAAC,CAAC,GAAG,MAAM,CAAE,SAAQ,0BAA0B,CAAC,CAAC,CAAC;IACvF,gBAAgC,WAAW,EAAE,MAAM,CAA2B;IAC9E,gBAAgC,IAAI,gBAAkC;IACtE,SAAS,CAAC,SAAS,SAAuC;IAC1D,SAAS,CAAC,SAAS,SAAU;IAC7B,OAAO,CAAC,kBAAkB,CAAK;IAE/B,SAAS,KAAK,OAAO,IAAI,gCAAgC,CAAC,CAAC,CAAC,EAAE,CAM7D;IAED,SAAS,CAAC,YAAY,IAAI,IAAI;IAY9B,SAAS,CAAC,8BAA8B,CAAC,KAAK,EAAE,aAAa,GAAG,IAAI;IAqBpE;;;;;;OAMG;IACH,SAAS,CAAC,gBAAgB,CAAC,KAAK,EAAE,aAAa,GAAG,IAAI;IAmBtD,SAAS,CAAC,mBAAmB,CAAC,KAAK,CAAC,EAAE,aAAa,GAAG,IAAI;IAsC1D,OAAO,CAAC,+BAA+B;IAqCvC,SAAS,CAAC,kBAAkB,IAAI,IAAI;IAgBpC,SAAS,CAAC,oBAAoB,CAAC,OAAO,EAAE,gBAAgB,GAAG,IAAI;CAGhE;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAE7B,uBAAuB,EAAE,0BAA0B,CAAC;KACrD;CACF"}