@sbb-esta/lyne-elements 4.12.1 → 4.13.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 (285) hide show
  1. package/autocomplete/autocomplete-base-element.js +1 -1
  2. package/autocomplete/autocomplete.component.js +1 -1
  3. package/{autocomplete-base-element-De2O5Wx-.js → autocomplete-base-element-Bo4fEieX.js} +1 -1
  4. package/autocomplete.js +1 -1
  5. package/autocomplete.pure.js +1 -1
  6. package/custom-elements.json +1742 -1735
  7. package/development/accordion.component-CGTwcntz.js +1 -1
  8. package/development/action-group.component-DQ7_kjB9.js +1 -1
  9. package/development/alert-group.component-DnnPrv5I.js +1 -1
  10. package/development/alert.component-CYb1vnDZ.js +1 -1
  11. package/development/autocomplete/autocomplete-base-element.d.ts.map +1 -1
  12. package/development/autocomplete/autocomplete-base-element.js +1 -1
  13. package/development/autocomplete/autocomplete.component.js +2 -2
  14. package/development/{autocomplete-base-element-BpCpYcX9.js → autocomplete-base-element-BSd5IXMZ.js} +2 -2
  15. package/development/autocomplete.js +1 -1
  16. package/development/autocomplete.pure.js +1 -1
  17. package/development/block-link-common-COY1RI1I.js +1 -1
  18. package/development/breadcrumb-group.component-DZslNBlB.js +1 -1
  19. package/development/breadcrumb.component-DxSUxLZO.js +1 -1
  20. package/development/button/accent-button/accent-button.component.js +1 -1
  21. package/development/button/accent-button-link/accent-button-link.component.js +1 -1
  22. package/development/button/accent-button-static/accent-button-static.component.js +1 -1
  23. package/development/button/button/button.component.js +1 -1
  24. package/development/button/button-link/button-link.component.js +1 -1
  25. package/development/button/button-static/button-static.component.js +1 -1
  26. package/development/button/mini-button/mini-button.component.js +1 -1
  27. package/development/button/secondary-button/secondary-button.component.js +1 -1
  28. package/development/button/secondary-button-link/secondary-button-link.component.js +1 -1
  29. package/development/button/secondary-button-static/secondary-button-static.component.js +1 -1
  30. package/development/button/transparent-button/transparent-button.component.js +1 -1
  31. package/development/button/transparent-button-link/transparent-button-link.component.js +1 -1
  32. package/development/button/transparent-button-static/transparent-button-static.component.js +1 -1
  33. package/development/button-common-7dmrUx4A.js +1 -1
  34. package/development/calendar/calendar-month/calendar-month.component.js +1 -1
  35. package/development/calendar/calendar-weekday/calendar-weekday.component.js +1 -1
  36. package/development/calendar/calendar-weeknumber/calendar-weeknumber.component.js +1 -1
  37. package/development/calendar/calendar-year/calendar-year.component.js +1 -1
  38. package/development/calendar-cell-base-element-BXohfDSl.js +1 -1
  39. package/development/calendar-day.component-DFvRrp2O.js +1 -1
  40. package/development/calendar.component-Dg3D2A7k.js +1 -1
  41. package/development/card/card-button/card-button.component.js +1 -1
  42. package/development/card/card-link/card-link.component.js +1 -1
  43. package/development/card-action-common-1FDHbfeR.js +1 -1
  44. package/development/card-badge.component-CUZIoVbL.js +1 -1
  45. package/development/card.component-DsqIZC_u.js +1 -1
  46. package/development/carousel-item.component-CIgUJtDJ.js +1 -1
  47. package/development/carousel-list.component-L-nYpHcN.js +1 -1
  48. package/development/carousel.component-Dl48ROSf.js +1 -1
  49. package/development/checkbox-common-Dd5uup8K.js +1 -1
  50. package/development/checkbox-group/checkbox-group.component.js +1 -1
  51. package/development/checkbox-panel/checkbox-panel.component.js +1 -1
  52. package/development/checkbox.component-CFZrwUTA.js +1 -1
  53. package/development/chip-group.component-BVfHWX2-.js +1 -1
  54. package/development/chip-label.component-DU8s-hfA.js +1 -1
  55. package/development/chip.component-C6v1-PLX.js +1 -1
  56. package/development/clock.component-CVPv4mCp.js +1 -1
  57. package/development/compact-paginator.component-5_Q2Reul.js +1 -1
  58. package/development/container.component-CG_i65Op.js +1 -1
  59. package/development/core/a11y/arrow-navigation.js +1 -1
  60. package/development/core/a11y/fake-event-detection.js +1 -1
  61. package/development/core/a11y/focus-trap-controller.js +1 -1
  62. package/development/core/a11y/focus-visible-within-controller.js +1 -1
  63. package/development/core/a11y/input-modality-detector.js +1 -1
  64. package/development/core/a11y/interactivity-checker.js +1 -1
  65. package/development/core/a11y/live-announcer.js +1 -1
  66. package/development/core/base-elements/action-base-element.js +1 -1
  67. package/development/core/base-elements/button-base-element.js +1 -1
  68. package/development/core/base-elements/element.js +1 -1
  69. package/development/core/base-elements/link-base-element.js +1 -1
  70. package/development/core/base-elements/open-close-base-element.js +1 -1
  71. package/development/core/config/config.js +1 -1
  72. package/development/core/controllers/escapable-overlay-controller.js +1 -1
  73. package/development/core/controllers/id-reference-controller.js +1 -1
  74. package/development/core/controllers/inert-controller.js +1 -1
  75. package/development/core/controllers/language-controller.js +1 -1
  76. package/development/core/controllers/media-matchers-controller.js +1 -1
  77. package/development/core/controllers/overlay-position-controller.js +1 -1
  78. package/development/core/controllers/property-watcher-controller.js +1 -1
  79. package/development/core/controllers/slot-state-controller.js +1 -1
  80. package/development/core/datetime/date-adapter.js +1 -1
  81. package/development/core/datetime/native-date-adapter.js +1 -1
  82. package/development/core/datetime/temporal-date-adapter.js +1 -1
  83. package/development/core/decorators/force-type.js +1 -1
  84. package/development/core/decorators/get-override.js +1 -1
  85. package/development/core/decorators/handle-distinct-change.js +1 -1
  86. package/development/core/decorators/host-attributes.js +1 -1
  87. package/development/core/decorators/id-reference.js +1 -1
  88. package/development/core/decorators/omit-empty-converter.js +1 -1
  89. package/development/core/decorators/plain-date.js +1 -1
  90. package/development/core/dom/animation.js +1 -1
  91. package/development/core/dom/contains-pierce-shadow-dom.js +1 -1
  92. package/development/core/dom/lean-context.js +1 -1
  93. package/development/core/dom/platform.js +1 -1
  94. package/development/core/dom/queue-dom-content-loaded.js +1 -1
  95. package/development/core/dom/scroll.js +1 -1
  96. package/development/core/dom/set-or-remove-attribute.js +1 -1
  97. package/development/core/eventing/composed-path-has-attribute.js +1 -1
  98. package/development/core/eventing/event-target.js +1 -1
  99. package/development/core/eventing/form-element-handlers.js +1 -1
  100. package/development/core/eventing/forward-event.js +1 -1
  101. package/development/core/eventing/is-event-prevented.js +1 -1
  102. package/development/core/eventing/throttle.js +1 -1
  103. package/development/core/i18n/i18n.js +1 -1
  104. package/development/core/mixins/animation-complete-mixin.js +1 -1
  105. package/development/core/mixins/disabled-mixin.js +1 -1
  106. package/development/core/mixins/element-internals-mixin.js +1 -1
  107. package/development/core/mixins/form-associated-checkbox-mixin.js +1 -1
  108. package/development/core/mixins/form-associated-input-mixin.js +1 -1
  109. package/development/core/mixins/form-associated-mixin.js +1 -1
  110. package/development/core/mixins/form-associated-radio-button-mixin.js +1 -1
  111. package/development/core/mixins/hydration-mixin.js +1 -1
  112. package/development/core/mixins/named-slot-list-mixin.js +1 -1
  113. package/development/core/mixins/negative-mixin.js +1 -1
  114. package/development/core/mixins/readonly-mixin.js +1 -1
  115. package/development/core/mixins/required-mixin.js +1 -1
  116. package/development/core/mixins/selection-panel-mixin.js +1 -1
  117. package/development/core/mixins/update-scheduler-mixin.js +1 -1
  118. package/development/core/overlay/overlay-option-panel.js +1 -1
  119. package/development/core/overlay/overlay-outside-pointer-event-listener.js +1 -1
  120. package/development/core/overlay/overlay-trigger-attributes.js +1 -1
  121. package/development/core/overlay/overlay.js +1 -1
  122. package/development/core/overlay/position.js +1 -1
  123. package/development/core/testing/event-spy.js +1 -1
  124. package/development/core/testing/mocha-extensions.js +1 -1
  125. package/development/core/testing/wait-for-condition.js +1 -1
  126. package/development/core/testing/wait-for-image-ready.js +1 -1
  127. package/development/core/testing/wait-for-render.js +1 -1
  128. package/development/date-input.component-UP1afzgy.js +1 -1
  129. package/development/datepicker/datepicker-next-day/datepicker-next-day.component.js +1 -1
  130. package/development/datepicker/datepicker-previous-day/datepicker-previous-day.component.js +1 -1
  131. package/development/datepicker/datepicker-toggle/datepicker-toggle.component.js +1 -1
  132. package/development/datepicker-button-CUPeoQgH.js +1 -1
  133. package/development/datepicker.component-D2DxFng_.js +1 -1
  134. package/development/dialog-actions.component-CegGvLGp.js +1 -1
  135. package/development/dialog-close-button.component-C4P-8J8j.js +1 -1
  136. package/development/dialog-content.component-bm8piC0O.js +1 -1
  137. package/development/dialog-title.component-CUAbFzCr.js +1 -1
  138. package/development/dialog.component-DKuR4u-y.js +1 -1
  139. package/development/divider.component-Bisnf286.js +1 -1
  140. package/development/error.component-OBpWoVRL.js +1 -1
  141. package/development/expansion-panel-content.component-XIsKm8JD.js +1 -1
  142. package/development/expansion-panel-header.component-C1xRGcAN.js +1 -1
  143. package/development/expansion-panel.component-CV_IuWZA.js +1 -1
  144. package/development/file-selector/file-selector/file-selector.component.js +1 -1
  145. package/development/file-selector-common-C7xIEiV4.js +1 -1
  146. package/development/file-selector-dropzone.component-BAWMZW4F.js +1 -1
  147. package/development/flip-card-details.component-iMm7NrgQ.js +1 -1
  148. package/development/flip-card-summary.component-HQ_VAn2j.js +1 -1
  149. package/development/flip-card.component-CJanLtkJ.js +1 -1
  150. package/development/footer.component-BmDkxYW9.js +1 -1
  151. package/development/form-field/form-field-clear/form-field-clear.component.js +1 -1
  152. package/development/form-field/form-field-text-counter/form-field-text-counter.component.js +1 -1
  153. package/development/form-field.component-BU3Sv2mD.js +1 -1
  154. package/development/header/header-button/header-button.component.js +1 -1
  155. package/development/header/header-link/header-link.component.js +1 -1
  156. package/development/header-action-common-MTYV0dqA.js +1 -1
  157. package/development/header-environment.component-DHqoX_lg.js +1 -1
  158. package/development/header.component-CWJ36jF0.js +1 -1
  159. package/development/hint.component-DUtL0RS3.js +1 -1
  160. package/development/icon/icon-name-mixin.js +1 -1
  161. package/development/icon/icon-request.js +1 -1
  162. package/development/icon/icon-validate.js +1 -1
  163. package/development/icon/icon.component.js +1 -1
  164. package/development/icon-base-DHN9pz2I.js +1 -1
  165. package/development/icon-sidebar/icon-sidebar-button/icon-sidebar-button.component.js +1 -1
  166. package/development/icon-sidebar/icon-sidebar-link/icon-sidebar-link.component.js +1 -1
  167. package/development/icon-sidebar-container.component-BH_R88Rf.js +1 -1
  168. package/development/icon-sidebar-content.component-yoF6FjkW.js +1 -1
  169. package/development/icon-sidebar.component-BGEkfXVs.js +1 -1
  170. package/development/image.component-BD0jc-u-.js +1 -1
  171. package/development/inline-link-common-CgTIwFAI.js +1 -1
  172. package/development/journey-header.component-BwVODlXk.js +1 -1
  173. package/development/lead-container.component-CGVdBWJr.js +1 -1
  174. package/development/link/block-link/block-link.component.js +1 -1
  175. package/development/link/block-link-button/block-link-button.component.js +1 -1
  176. package/development/link/block-link-static/block-link-static.component.js +1 -1
  177. package/development/link/link/link.component.js +1 -1
  178. package/development/link/link-button/link-button.component.js +1 -1
  179. package/development/link/link-static/link-static.component.js +1 -1
  180. package/development/link-common-DJ2FfG_Q.js +1 -1
  181. package/development/link-list-anchor.component-Du7kfDZ-.js +1 -1
  182. package/development/link-list-base-CKMNz30d.js +1 -1
  183. package/development/link-list.component-DQMg8MdQ.js +1 -1
  184. package/development/loading-indicator-circle.component-np96Tu5S.js +1 -1
  185. package/development/loading-indicator.component-CgHYNMxB.js +1 -1
  186. package/development/logo.component-I0yP2SKr.js +1 -1
  187. package/development/map-container.component-D9NWw-wA.js +1 -1
  188. package/development/menu/menu-button/menu-button.component.js +1 -1
  189. package/development/menu/menu-link/menu-link.component.js +1 -1
  190. package/development/menu-action-common-CBZCra6n.js +1 -1
  191. package/development/menu.component-Lh3JbVow.js +1 -1
  192. package/development/message.component-Dlf5V5ba.js +1 -1
  193. package/development/mini-button-group.component-B3CA9KG0.js +1 -1
  194. package/development/mini-button-link.component-I3VpWeNU.js +1 -1
  195. package/development/mini-calendar-day.component-BUNVO4ZU.js +1 -1
  196. package/development/mini-calendar-month.component-DZXvAhc3.js +1 -1
  197. package/development/mini-calendar.component-BufzKw74.js +1 -1
  198. package/development/navigation/navigation-button/navigation-button.component.js +1 -1
  199. package/development/navigation/navigation-link/navigation-link.component.js +1 -1
  200. package/development/navigation-action-common-Hjr4dI9J.js +1 -1
  201. package/development/navigation-list.component-DqITJqFx.js +1 -1
  202. package/development/navigation-marker.component-GOv42emC.js +1 -1
  203. package/development/navigation-section.component-CnVrRETN.js +1 -1
  204. package/development/navigation.component-CTNQ1dix.js +1 -1
  205. package/development/notification.component-Cvq_uViC.js +1 -1
  206. package/development/optgroup-base-element-BaG2W_AP.js +1 -1
  207. package/development/option/optgroup/optgroup.component.js +1 -1
  208. package/development/option/option/option-base-element.js +1 -1
  209. package/development/option-hint.component-BH8dP1fM.js +1 -1
  210. package/development/option.component-Bb2C7ae5.js +1 -1
  211. package/development/overlay/overlay-base-element.js +1 -1
  212. package/development/overlay.component-M0JuSq4C.js +1 -1
  213. package/development/paginator/common/paginator-common.js +1 -1
  214. package/development/paginator.component-Bn5tK0FK.js +1 -1
  215. package/development/panel-mixin-Dj_rsgL9.js +1 -1
  216. package/development/popover.component-EgOs-wsR.js +1 -1
  217. package/development/radio-button-common--d3WX-ZM.js +1 -1
  218. package/development/radio-button-group/radio-button-group.component.js +1 -1
  219. package/development/radio-button-panel/radio-button-panel.component.js +1 -1
  220. package/development/radio-button.component-BauLEeCV.js +1 -1
  221. package/development/screen-reader-only.component-B77UuVCI.js +1 -1
  222. package/development/select.component-D9SFG7Lk.js +1 -1
  223. package/development/selection-action-panel.component-D6I5wdEL.js +1 -1
  224. package/development/selection-expansion-panel.component-eO7b_EQF.js +1 -1
  225. package/development/selection-group-base-element-DvDpwhPl.js +1 -1
  226. package/development/sidebar-close-button.component-CYWv39Mu.js +1 -1
  227. package/development/sidebar-container.component-BDSoDAym.js +1 -1
  228. package/development/sidebar-content.component-JcVKpKbK.js +1 -1
  229. package/development/sidebar-title.component-BA_j-Igh.js +1 -1
  230. package/development/sidebar.component-BLqO52nH.js +1 -1
  231. package/development/signet.component-3D2ZsajP.js +1 -1
  232. package/development/skiplink-list.component-EDPOitEB.js +1 -1
  233. package/development/slider.component-C3qZB6ar.js +1 -1
  234. package/development/status.component-CPi1cPN0.js +1 -1
  235. package/development/step-label.component-BJ9eainz.js +1 -1
  236. package/development/{step.component-B-n26urC.js → step.component-CTsOBGAn.js} +11 -2
  237. package/development/stepper/step/step.component.d.ts +1 -0
  238. package/development/stepper/step/step.component.d.ts.map +1 -1
  239. package/development/stepper/step/step.component.js +1 -1
  240. package/development/stepper/step.js +1 -1
  241. package/development/stepper.component-CxOBayI1.js +1 -1
  242. package/development/stepper.js +1 -1
  243. package/development/stepper.pure.js +1 -1
  244. package/development/sticky-bar.component-CysAIZTd.js +1 -1
  245. package/development/tab-group.component-D9jCK26q.js +1 -1
  246. package/development/tab-label.component-B9e9kgVf.js +1 -1
  247. package/development/tab-nav-bar.component-CgYwCSVY.js +1 -1
  248. package/development/tab.component-DThKG7-a.js +1 -1
  249. package/development/table-wrapper.component-D1p7kqCB.js +1 -1
  250. package/development/tag-group.component-Cw46bt0E.js +1 -1
  251. package/development/tag.component-Bl1nlIXQ.js +1 -1
  252. package/development/teaser-hero.component-BIOpoGME.js +1 -1
  253. package/development/teaser-product/teaser-product-static/teaser-product-static.component.js +1 -1
  254. package/development/teaser-product-common-DYX370pm.js +1 -1
  255. package/development/teaser-product.component-CSArA8bH.js +1 -1
  256. package/development/teaser.component-Cky6kKU0.js +1 -1
  257. package/development/time-input.component-BtdSR8kB.js +1 -1
  258. package/development/timetable-form-details.component-DJl5Qt9y.js +1 -1
  259. package/development/timetable-form-field.component-DQ_TzcF4.js +1 -1
  260. package/development/timetable-form-swap-button.component-Bh9aPmdn.js +1 -1
  261. package/development/timetable-form.component-N8h4JBlH.js +1 -1
  262. package/development/timetable-occupancy-icon.component-lI7__-G5.js +1 -1
  263. package/development/timetable-occupancy.component-BBcznUh0.js +1 -1
  264. package/development/title-base-BdYKwj3-.js +1 -1
  265. package/development/title.component-DSXVkddh.js +1 -1
  266. package/development/toast.component-IhHx0Qt3.js +1 -1
  267. package/development/toggle-check.component-_fDAuLob.js +1 -1
  268. package/development/toggle-option.component-DTS3a603.js +1 -1
  269. package/development/toggle.component-BJpD1b9H.js +1 -1
  270. package/development/tooltip.component-YaUQA-Id.js +1 -1
  271. package/development/train-blocked-passage.component-BrUJK0gf.js +1 -1
  272. package/development/train-formation.component-vt-nYQXA.js +1 -1
  273. package/development/train-wagon.component-CNxkffOO.js +1 -1
  274. package/development/train.component-BgpmEDx-.js +1 -1
  275. package/development/visual-checkbox.component-rdeoQN40.js +1 -1
  276. package/off-brand-theme.css +1 -3
  277. package/package.json +1 -1
  278. package/safety-theme.css +1 -3
  279. package/standard-theme.css +1 -3
  280. package/{step.component-uBZl9yiJ.js → step.component-xDgeguVi.js} +6 -2
  281. package/stepper/step/step.component.js +1 -1
  282. package/stepper/step.js +1 -1
  283. package/stepper.js +1 -1
  284. package/stepper.pure.js +1 -1
  285. package/table.css +1 -3
@@ -3633,6 +3633,36 @@
3633
3633
  }
3634
3634
  ]
3635
3635
  },
3636
+ {
3637
+ "kind": "javascript-module",
3638
+ "path": "alert/alert-group.js",
3639
+ "declarations": [],
3640
+ "exports": [
3641
+ {
3642
+ "kind": "js",
3643
+ "name": "*",
3644
+ "declaration": {
3645
+ "name": "*",
3646
+ "module": "alert/alert-group/alert-group.component.js"
3647
+ }
3648
+ }
3649
+ ]
3650
+ },
3651
+ {
3652
+ "kind": "javascript-module",
3653
+ "path": "alert/alert.js",
3654
+ "declarations": [],
3655
+ "exports": [
3656
+ {
3657
+ "kind": "js",
3658
+ "name": "*",
3659
+ "declaration": {
3660
+ "name": "*",
3661
+ "module": "alert/alert/alert.component.js"
3662
+ }
3663
+ }
3664
+ ]
3665
+ },
3636
3666
  {
3637
3667
  "kind": "javascript-module",
3638
3668
  "path": "action-group/action-group.component.js",
@@ -3915,36 +3945,6 @@
3915
3945
  }
3916
3946
  ]
3917
3947
  },
3918
- {
3919
- "kind": "javascript-module",
3920
- "path": "alert/alert-group.js",
3921
- "declarations": [],
3922
- "exports": [
3923
- {
3924
- "kind": "js",
3925
- "name": "*",
3926
- "declaration": {
3927
- "name": "*",
3928
- "module": "alert/alert-group/alert-group.component.js"
3929
- }
3930
- }
3931
- ]
3932
- },
3933
- {
3934
- "kind": "javascript-module",
3935
- "path": "alert/alert.js",
3936
- "declarations": [],
3937
- "exports": [
3938
- {
3939
- "kind": "js",
3940
- "name": "*",
3941
- "declaration": {
3942
- "name": "*",
3943
- "module": "alert/alert/alert.component.js"
3944
- }
3945
- }
3946
- ]
3947
- },
3948
3948
  {
3949
3949
  "kind": "javascript-module",
3950
3950
  "path": "autocomplete/autocomplete-base-element.js",
@@ -16582,266 +16582,6 @@
16582
16582
  }
16583
16583
  ]
16584
16584
  },
16585
- {
16586
- "kind": "javascript-module",
16587
- "path": "map-container/map-container.component.js",
16588
- "declarations": [
16589
- {
16590
- "kind": "class",
16591
- "description": "It can be used as a container for maps.",
16592
- "name": "SbbMapContainerElement",
16593
- "cssProperties": [
16594
- {
16595
- "description": "The component comes along with a height calculation that subtracts the height of the header. For specific use cases, this variable can be used to modify the preset height.",
16596
- "name": "--sbb-map-container-margin-start",
16597
- "default": "var(--sbb-header-height)"
16598
- },
16599
- {
16600
- "description": "Can be used to modify the width of the left sidebar.",
16601
- "name": "--sbb-map-container-sidebar-width",
16602
- "default": "zero-large:400px;ultra:480px"
16603
- },
16604
- {
16605
- "description": "If e.g. a header with a fixed height is placed before the map-container, the map should be sticky respecting this offset from the document's top. Only applied on mobile views. Most commonly it can be set to `var(--sbb-header-height)`.",
16606
- "name": "--sbb-map-container-mobile-sticky-block-start",
16607
- "default": "0"
16608
- }
16609
- ],
16610
- "slots": [
16611
- {
16612
- "description": "Use the unnamed slot to add content to the sidebar.",
16613
- "name": ""
16614
- },
16615
- {
16616
- "description": "Used for slotting the map.",
16617
- "name": "map"
16618
- }
16619
- ],
16620
- "members": [
16621
- {
16622
- "kind": "field",
16623
- "name": "elementName",
16624
- "type": {
16625
- "text": "string"
16626
- },
16627
- "privacy": "public",
16628
- "static": true,
16629
- "readonly": true,
16630
- "default": "'sbb-map-container'",
16631
- "inheritedFrom": {
16632
- "name": "SbbElement",
16633
- "module": "core/base-elements/element.js"
16634
- }
16635
- },
16636
- {
16637
- "kind": "field",
16638
- "name": "hideScrollUpButton",
16639
- "type": {
16640
- "text": "boolean"
16641
- },
16642
- "privacy": "public",
16643
- "default": "false",
16644
- "description": "Flag to show/hide the scroll up button inside the sidebar on mobile.",
16645
- "attribute": "hide-scroll-up-button",
16646
- "reflects": true
16647
- },
16648
- {
16649
- "kind": "field",
16650
- "name": "_scrollUpButtonVisible",
16651
- "type": {
16652
- "text": "boolean"
16653
- },
16654
- "privacy": "private",
16655
- "default": "false"
16656
- },
16657
- {
16658
- "kind": "field",
16659
- "name": "_language",
16660
- "privacy": "private",
16661
- "default": "new SbbLanguageController(this)"
16662
- },
16663
- {
16664
- "kind": "field",
16665
- "name": "_observer",
16666
- "privacy": "private",
16667
- "default": "new IntersectionController(this, { target: null, callback: (entries) => this._toggleButtonVisibilityOnIntersect(entries), })"
16668
- },
16669
- {
16670
- "kind": "method",
16671
- "name": "_intersector",
16672
- "privacy": "private",
16673
- "return": {
16674
- "type": {
16675
- "text": "HTMLElement | null"
16676
- }
16677
- }
16678
- },
16679
- {
16680
- "kind": "method",
16681
- "name": "_onScrollButtonClick",
16682
- "privacy": "private",
16683
- "return": {
16684
- "type": {
16685
- "text": "void"
16686
- }
16687
- },
16688
- "description": "Button click callback to trigger the scroll to container top"
16689
- },
16690
- {
16691
- "kind": "method",
16692
- "name": "_toggleButtonVisibilityOnIntersect",
16693
- "privacy": "private",
16694
- "return": {
16695
- "type": {
16696
- "text": "void"
16697
- }
16698
- },
16699
- "parameters": [
16700
- {
16701
- "name": "entries",
16702
- "type": {
16703
- "text": "IntersectionObserverEntry[]"
16704
- }
16705
- }
16706
- ],
16707
- "description": "Intersection callback. Toggles the visibility."
16708
- },
16709
- {
16710
- "kind": "field",
16711
- "name": "_hydrationRequired",
16712
- "type": {
16713
- "text": "boolean"
16714
- },
16715
- "privacy": "private",
16716
- "default": "!!this.shadowRoot",
16717
- "inheritedFrom": {
16718
- "name": "SbbHydrationMixin",
16719
- "module": "core/mixins/hydration-mixin.js"
16720
- }
16721
- },
16722
- {
16723
- "kind": "field",
16724
- "name": "_hydrationComplete",
16725
- "privacy": "private",
16726
- "default": "new Promise<boolean>( (resolve) => (this._resolveHydration = resolve), )",
16727
- "inheritedFrom": {
16728
- "name": "SbbHydrationMixin",
16729
- "module": "core/mixins/hydration-mixin.js"
16730
- }
16731
- },
16732
- {
16733
- "kind": "field",
16734
- "name": "_resolveHydration",
16735
- "type": {
16736
- "text": "(hydrationRequired: boolean) => void"
16737
- },
16738
- "privacy": "private",
16739
- "inheritedFrom": {
16740
- "name": "SbbHydrationMixin",
16741
- "module": "core/mixins/hydration-mixin.js"
16742
- }
16743
- },
16744
- {
16745
- "kind": "field",
16746
- "name": "hydrationRequired",
16747
- "type": {
16748
- "text": "boolean"
16749
- },
16750
- "privacy": "protected",
16751
- "description": "Returns whether hydration is required and not completed.",
16752
- "readonly": true,
16753
- "inheritedFrom": {
16754
- "name": "SbbHydrationMixin",
16755
- "module": "core/mixins/hydration-mixin.js"
16756
- },
16757
- "default": "!!this.shadowRoot"
16758
- },
16759
- {
16760
- "kind": "method",
16761
- "name": "toggleState",
16762
- "privacy": "protected",
16763
- "return": {
16764
- "type": {
16765
- "text": "void"
16766
- }
16767
- },
16768
- "parameters": [
16769
- {
16770
- "name": "value",
16771
- "type": {
16772
- "text": "string"
16773
- }
16774
- },
16775
- {
16776
- "name": "force",
16777
- "optional": true,
16778
- "type": {
16779
- "text": "boolean"
16780
- }
16781
- }
16782
- ],
16783
- "inheritedFrom": {
16784
- "name": "SbbElementInternalsMixin",
16785
- "module": "core/mixins/element-internals-mixin.js"
16786
- }
16787
- },
16788
- {
16789
- "kind": "field",
16790
- "name": "['_$sbbElement$']",
16791
- "type": {
16792
- "text": "boolean"
16793
- },
16794
- "privacy": "public",
16795
- "static": true,
16796
- "default": "true",
16797
- "inheritedFrom": {
16798
- "name": "SbbElement",
16799
- "module": "core/base-elements/element.js"
16800
- }
16801
- },
16802
- {
16803
- "kind": "field",
16804
- "name": "_controllers",
16805
- "type": {
16806
- "text": "Set<SbbReactiveController> | undefined"
16807
- },
16808
- "privacy": "private",
16809
- "inheritedFrom": {
16810
- "name": "SbbElement",
16811
- "module": "core/base-elements/element.js"
16812
- }
16813
- }
16814
- ],
16815
- "attributes": [
16816
- {
16817
- "name": "hide-scroll-up-button",
16818
- "type": {
16819
- "text": "boolean"
16820
- },
16821
- "default": "false",
16822
- "description": "Flag to show/hide the scroll up button inside the sidebar on mobile.",
16823
- "fieldName": "hideScrollUpButton"
16824
- }
16825
- ],
16826
- "superclass": {
16827
- "name": "SbbElement",
16828
- "module": "core/base-elements.js"
16829
- },
16830
- "tagName": "sbb-map-container",
16831
- "customElement": true
16832
- }
16833
- ],
16834
- "exports": [
16835
- {
16836
- "kind": "js",
16837
- "name": "SbbMapContainerElement",
16838
- "declaration": {
16839
- "name": "SbbMapContainerElement",
16840
- "module": "map-container/map-container.component.js"
16841
- }
16842
- }
16843
- ]
16844
- },
16845
16585
  {
16846
16586
  "kind": "javascript-module",
16847
16587
  "path": "menu/common.js",
@@ -16902,6 +16642,266 @@
16902
16642
  }
16903
16643
  ]
16904
16644
  },
16645
+ {
16646
+ "kind": "javascript-module",
16647
+ "path": "map-container/map-container.component.js",
16648
+ "declarations": [
16649
+ {
16650
+ "kind": "class",
16651
+ "description": "It can be used as a container for maps.",
16652
+ "name": "SbbMapContainerElement",
16653
+ "cssProperties": [
16654
+ {
16655
+ "description": "The component comes along with a height calculation that subtracts the height of the header. For specific use cases, this variable can be used to modify the preset height.",
16656
+ "name": "--sbb-map-container-margin-start",
16657
+ "default": "var(--sbb-header-height)"
16658
+ },
16659
+ {
16660
+ "description": "Can be used to modify the width of the left sidebar.",
16661
+ "name": "--sbb-map-container-sidebar-width",
16662
+ "default": "zero-large:400px;ultra:480px"
16663
+ },
16664
+ {
16665
+ "description": "If e.g. a header with a fixed height is placed before the map-container, the map should be sticky respecting this offset from the document's top. Only applied on mobile views. Most commonly it can be set to `var(--sbb-header-height)`.",
16666
+ "name": "--sbb-map-container-mobile-sticky-block-start",
16667
+ "default": "0"
16668
+ }
16669
+ ],
16670
+ "slots": [
16671
+ {
16672
+ "description": "Use the unnamed slot to add content to the sidebar.",
16673
+ "name": ""
16674
+ },
16675
+ {
16676
+ "description": "Used for slotting the map.",
16677
+ "name": "map"
16678
+ }
16679
+ ],
16680
+ "members": [
16681
+ {
16682
+ "kind": "field",
16683
+ "name": "elementName",
16684
+ "type": {
16685
+ "text": "string"
16686
+ },
16687
+ "privacy": "public",
16688
+ "static": true,
16689
+ "readonly": true,
16690
+ "default": "'sbb-map-container'",
16691
+ "inheritedFrom": {
16692
+ "name": "SbbElement",
16693
+ "module": "core/base-elements/element.js"
16694
+ }
16695
+ },
16696
+ {
16697
+ "kind": "field",
16698
+ "name": "hideScrollUpButton",
16699
+ "type": {
16700
+ "text": "boolean"
16701
+ },
16702
+ "privacy": "public",
16703
+ "default": "false",
16704
+ "description": "Flag to show/hide the scroll up button inside the sidebar on mobile.",
16705
+ "attribute": "hide-scroll-up-button",
16706
+ "reflects": true
16707
+ },
16708
+ {
16709
+ "kind": "field",
16710
+ "name": "_scrollUpButtonVisible",
16711
+ "type": {
16712
+ "text": "boolean"
16713
+ },
16714
+ "privacy": "private",
16715
+ "default": "false"
16716
+ },
16717
+ {
16718
+ "kind": "field",
16719
+ "name": "_language",
16720
+ "privacy": "private",
16721
+ "default": "new SbbLanguageController(this)"
16722
+ },
16723
+ {
16724
+ "kind": "field",
16725
+ "name": "_observer",
16726
+ "privacy": "private",
16727
+ "default": "new IntersectionController(this, { target: null, callback: (entries) => this._toggleButtonVisibilityOnIntersect(entries), })"
16728
+ },
16729
+ {
16730
+ "kind": "method",
16731
+ "name": "_intersector",
16732
+ "privacy": "private",
16733
+ "return": {
16734
+ "type": {
16735
+ "text": "HTMLElement | null"
16736
+ }
16737
+ }
16738
+ },
16739
+ {
16740
+ "kind": "method",
16741
+ "name": "_onScrollButtonClick",
16742
+ "privacy": "private",
16743
+ "return": {
16744
+ "type": {
16745
+ "text": "void"
16746
+ }
16747
+ },
16748
+ "description": "Button click callback to trigger the scroll to container top"
16749
+ },
16750
+ {
16751
+ "kind": "method",
16752
+ "name": "_toggleButtonVisibilityOnIntersect",
16753
+ "privacy": "private",
16754
+ "return": {
16755
+ "type": {
16756
+ "text": "void"
16757
+ }
16758
+ },
16759
+ "parameters": [
16760
+ {
16761
+ "name": "entries",
16762
+ "type": {
16763
+ "text": "IntersectionObserverEntry[]"
16764
+ }
16765
+ }
16766
+ ],
16767
+ "description": "Intersection callback. Toggles the visibility."
16768
+ },
16769
+ {
16770
+ "kind": "field",
16771
+ "name": "_hydrationRequired",
16772
+ "type": {
16773
+ "text": "boolean"
16774
+ },
16775
+ "privacy": "private",
16776
+ "default": "!!this.shadowRoot",
16777
+ "inheritedFrom": {
16778
+ "name": "SbbHydrationMixin",
16779
+ "module": "core/mixins/hydration-mixin.js"
16780
+ }
16781
+ },
16782
+ {
16783
+ "kind": "field",
16784
+ "name": "_hydrationComplete",
16785
+ "privacy": "private",
16786
+ "default": "new Promise<boolean>( (resolve) => (this._resolveHydration = resolve), )",
16787
+ "inheritedFrom": {
16788
+ "name": "SbbHydrationMixin",
16789
+ "module": "core/mixins/hydration-mixin.js"
16790
+ }
16791
+ },
16792
+ {
16793
+ "kind": "field",
16794
+ "name": "_resolveHydration",
16795
+ "type": {
16796
+ "text": "(hydrationRequired: boolean) => void"
16797
+ },
16798
+ "privacy": "private",
16799
+ "inheritedFrom": {
16800
+ "name": "SbbHydrationMixin",
16801
+ "module": "core/mixins/hydration-mixin.js"
16802
+ }
16803
+ },
16804
+ {
16805
+ "kind": "field",
16806
+ "name": "hydrationRequired",
16807
+ "type": {
16808
+ "text": "boolean"
16809
+ },
16810
+ "privacy": "protected",
16811
+ "description": "Returns whether hydration is required and not completed.",
16812
+ "readonly": true,
16813
+ "inheritedFrom": {
16814
+ "name": "SbbHydrationMixin",
16815
+ "module": "core/mixins/hydration-mixin.js"
16816
+ },
16817
+ "default": "!!this.shadowRoot"
16818
+ },
16819
+ {
16820
+ "kind": "method",
16821
+ "name": "toggleState",
16822
+ "privacy": "protected",
16823
+ "return": {
16824
+ "type": {
16825
+ "text": "void"
16826
+ }
16827
+ },
16828
+ "parameters": [
16829
+ {
16830
+ "name": "value",
16831
+ "type": {
16832
+ "text": "string"
16833
+ }
16834
+ },
16835
+ {
16836
+ "name": "force",
16837
+ "optional": true,
16838
+ "type": {
16839
+ "text": "boolean"
16840
+ }
16841
+ }
16842
+ ],
16843
+ "inheritedFrom": {
16844
+ "name": "SbbElementInternalsMixin",
16845
+ "module": "core/mixins/element-internals-mixin.js"
16846
+ }
16847
+ },
16848
+ {
16849
+ "kind": "field",
16850
+ "name": "['_$sbbElement$']",
16851
+ "type": {
16852
+ "text": "boolean"
16853
+ },
16854
+ "privacy": "public",
16855
+ "static": true,
16856
+ "default": "true",
16857
+ "inheritedFrom": {
16858
+ "name": "SbbElement",
16859
+ "module": "core/base-elements/element.js"
16860
+ }
16861
+ },
16862
+ {
16863
+ "kind": "field",
16864
+ "name": "_controllers",
16865
+ "type": {
16866
+ "text": "Set<SbbReactiveController> | undefined"
16867
+ },
16868
+ "privacy": "private",
16869
+ "inheritedFrom": {
16870
+ "name": "SbbElement",
16871
+ "module": "core/base-elements/element.js"
16872
+ }
16873
+ }
16874
+ ],
16875
+ "attributes": [
16876
+ {
16877
+ "name": "hide-scroll-up-button",
16878
+ "type": {
16879
+ "text": "boolean"
16880
+ },
16881
+ "default": "false",
16882
+ "description": "Flag to show/hide the scroll up button inside the sidebar on mobile.",
16883
+ "fieldName": "hideScrollUpButton"
16884
+ }
16885
+ ],
16886
+ "superclass": {
16887
+ "name": "SbbElement",
16888
+ "module": "core/base-elements.js"
16889
+ },
16890
+ "tagName": "sbb-map-container",
16891
+ "customElement": true
16892
+ }
16893
+ ],
16894
+ "exports": [
16895
+ {
16896
+ "kind": "js",
16897
+ "name": "SbbMapContainerElement",
16898
+ "declaration": {
16899
+ "name": "SbbMapContainerElement",
16900
+ "module": "map-container/map-container.component.js"
16901
+ }
16902
+ }
16903
+ ]
16904
+ },
16905
16905
  {
16906
16906
  "kind": "javascript-module",
16907
16907
  "path": "message/message.component.js",
@@ -94658,253 +94658,6 @@
94658
94658
  }
94659
94659
  ]
94660
94660
  },
94661
- {
94662
- "kind": "javascript-module",
94663
- "path": "form-field/form-field-text-counter/form-field-text-counter.component.js",
94664
- "declarations": [
94665
- {
94666
- "kind": "class",
94667
- "description": "It displays the remaining characters count for input/textarea elements with a configured\nmaxlength property in the `sbb-form-field`.\nThe component automatically uses the form field's inputElement and displays the remaining character count.\nIf the input is disabled, readonly or an `sbb-error` is present, the output is suppressed.",
94668
- "name": "SbbFormFieldTextCounterElement",
94669
- "slots": [
94670
- {
94671
- "description": "Use the unnamed slot to display a custom description text after the counter.",
94672
- "name": "",
94673
- "inheritedFrom": {
94674
- "name": "SbbHintElement",
94675
- "module": "form-field/hint/hint.component.js"
94676
- }
94677
- }
94678
- ],
94679
- "members": [
94680
- {
94681
- "kind": "field",
94682
- "name": "elementName",
94683
- "type": {
94684
- "text": "string"
94685
- },
94686
- "privacy": "public",
94687
- "static": true,
94688
- "readonly": true,
94689
- "default": "'sbb-form-field-text-counter'",
94690
- "inheritedFrom": {
94691
- "name": "SbbElement",
94692
- "module": "core/base-elements/element.js"
94693
- }
94694
- },
94695
- {
94696
- "kind": "field",
94697
- "name": "_remainingCharacters",
94698
- "type": {
94699
- "text": "number"
94700
- },
94701
- "privacy": "private",
94702
- "default": "0"
94703
- },
94704
- {
94705
- "kind": "field",
94706
- "name": "_language",
94707
- "privacy": "private",
94708
- "default": "new SbbLanguageController(this)"
94709
- },
94710
- {
94711
- "kind": "field",
94712
- "name": "_abortController",
94713
- "type": {
94714
- "text": "AbortController | null"
94715
- },
94716
- "privacy": "private",
94717
- "default": "null"
94718
- },
94719
- {
94720
- "kind": "method",
94721
- "name": "_onInputUpdate",
94722
- "privacy": "private",
94723
- "return": {
94724
- "type": {
94725
- "text": "void"
94726
- }
94727
- }
94728
- },
94729
- {
94730
- "kind": "method",
94731
- "name": "_infoText",
94732
- "privacy": "private",
94733
- "return": {
94734
- "type": {
94735
- "text": "string"
94736
- }
94737
- }
94738
- },
94739
- {
94740
- "kind": "field",
94741
- "name": "negative",
94742
- "type": {
94743
- "text": "boolean"
94744
- },
94745
- "privacy": "public",
94746
- "default": "false",
94747
- "description": "Negative coloring variant flag.",
94748
- "attribute": "negative",
94749
- "reflects": true,
94750
- "inheritedFrom": {
94751
- "name": "SbbNegativeMixin",
94752
- "module": "core/mixins/negative-mixin.js"
94753
- }
94754
- },
94755
- {
94756
- "kind": "field",
94757
- "name": "formField",
94758
- "type": {
94759
- "text": "SbbFormFieldElement | null"
94760
- },
94761
- "privacy": "protected",
94762
- "default": "null",
94763
- "inheritedFrom": {
94764
- "name": "SbbHintElement",
94765
- "module": "form-field/hint/hint.component.js"
94766
- }
94767
- },
94768
- {
94769
- "kind": "field",
94770
- "name": "_hydrationRequired",
94771
- "type": {
94772
- "text": "boolean"
94773
- },
94774
- "privacy": "private",
94775
- "default": "!!this.shadowRoot",
94776
- "inheritedFrom": {
94777
- "name": "SbbElement",
94778
- "module": "core/base-elements/element.js"
94779
- }
94780
- },
94781
- {
94782
- "kind": "field",
94783
- "name": "_hydrationComplete",
94784
- "privacy": "private",
94785
- "default": "new Promise<boolean>( (resolve) => (this._resolveHydration = resolve), )",
94786
- "inheritedFrom": {
94787
- "name": "SbbElement",
94788
- "module": "core/base-elements/element.js"
94789
- }
94790
- },
94791
- {
94792
- "kind": "field",
94793
- "name": "_resolveHydration",
94794
- "type": {
94795
- "text": "(hydrationRequired: boolean) => void"
94796
- },
94797
- "privacy": "private",
94798
- "inheritedFrom": {
94799
- "name": "SbbElement",
94800
- "module": "core/base-elements/element.js"
94801
- }
94802
- },
94803
- {
94804
- "kind": "field",
94805
- "name": "hydrationRequired",
94806
- "type": {
94807
- "text": "boolean"
94808
- },
94809
- "privacy": "protected",
94810
- "description": "Returns whether hydration is required and not completed.",
94811
- "readonly": true,
94812
- "inheritedFrom": {
94813
- "name": "SbbElement",
94814
- "module": "core/base-elements/element.js"
94815
- },
94816
- "default": "!!this.shadowRoot"
94817
- },
94818
- {
94819
- "kind": "method",
94820
- "name": "toggleState",
94821
- "privacy": "protected",
94822
- "return": {
94823
- "type": {
94824
- "text": "void"
94825
- }
94826
- },
94827
- "parameters": [
94828
- {
94829
- "name": "value",
94830
- "type": {
94831
- "text": "string"
94832
- }
94833
- },
94834
- {
94835
- "name": "force",
94836
- "optional": true,
94837
- "type": {
94838
- "text": "boolean"
94839
- }
94840
- }
94841
- ],
94842
- "inheritedFrom": {
94843
- "name": "SbbElement",
94844
- "module": "core/base-elements/element.js"
94845
- }
94846
- },
94847
- {
94848
- "kind": "field",
94849
- "name": "['_$sbbElement$']",
94850
- "type": {
94851
- "text": "boolean"
94852
- },
94853
- "privacy": "public",
94854
- "static": true,
94855
- "default": "true",
94856
- "inheritedFrom": {
94857
- "name": "SbbElement",
94858
- "module": "core/base-elements/element.js"
94859
- }
94860
- },
94861
- {
94862
- "kind": "field",
94863
- "name": "_controllers",
94864
- "type": {
94865
- "text": "Set<SbbReactiveController> | undefined"
94866
- },
94867
- "privacy": "private",
94868
- "inheritedFrom": {
94869
- "name": "SbbElement",
94870
- "module": "core/base-elements/element.js"
94871
- }
94872
- }
94873
- ],
94874
- "superclass": {
94875
- "name": "SbbHintElement",
94876
- "module": "form-field/hint/hint.component.js"
94877
- },
94878
- "tagName": "sbb-form-field-text-counter",
94879
- "customElement": true,
94880
- "attributes": [
94881
- {
94882
- "name": "negative",
94883
- "type": {
94884
- "text": "boolean"
94885
- },
94886
- "default": "false",
94887
- "description": "Negative coloring variant flag.",
94888
- "fieldName": "negative",
94889
- "inheritedFrom": {
94890
- "name": "SbbNegativeMixin",
94891
- "module": "core/mixins/negative-mixin.js"
94892
- }
94893
- }
94894
- ]
94895
- }
94896
- ],
94897
- "exports": [
94898
- {
94899
- "kind": "js",
94900
- "name": "SbbFormFieldTextCounterElement",
94901
- "declaration": {
94902
- "name": "SbbFormFieldTextCounterElement",
94903
- "module": "form-field/form-field-text-counter/form-field-text-counter.component.js"
94904
- }
94905
- }
94906
- ]
94907
- },
94908
94661
  {
94909
94662
  "kind": "javascript-module",
94910
94663
  "path": "form-field/form-field-clear/form-field-clear.component.js",
@@ -95715,16 +95468,20 @@
95715
95468
  },
95716
95469
  {
95717
95470
  "kind": "javascript-module",
95718
- "path": "form-field/hint/hint.component.js",
95471
+ "path": "form-field/form-field-text-counter/form-field-text-counter.component.js",
95719
95472
  "declarations": [
95720
95473
  {
95721
95474
  "kind": "class",
95722
- "description": "It displays a hint message in the `sbb-form-field`.",
95723
- "name": "SbbHintElement",
95475
+ "description": "It displays the remaining characters count for input/textarea elements with a configured\nmaxlength property in the `sbb-form-field`.\nThe component automatically uses the form field's inputElement and displays the remaining character count.\nIf the input is disabled, readonly or an `sbb-error` is present, the output is suppressed.",
95476
+ "name": "SbbFormFieldTextCounterElement",
95724
95477
  "slots": [
95725
95478
  {
95726
- "description": "Use the unnamed slot to display the hint message.",
95727
- "name": ""
95479
+ "description": "Use the unnamed slot to display a custom description text after the counter.",
95480
+ "name": "",
95481
+ "inheritedFrom": {
95482
+ "name": "SbbHintElement",
95483
+ "module": "form-field/hint/hint.component.js"
95484
+ }
95728
95485
  }
95729
95486
  ],
95730
95487
  "members": [
@@ -95737,7 +95494,7 @@
95737
95494
  "privacy": "public",
95738
95495
  "static": true,
95739
95496
  "readonly": true,
95740
- "default": "'sbb-hint'",
95497
+ "default": "'sbb-form-field-text-counter'",
95741
95498
  "inheritedFrom": {
95742
95499
  "name": "SbbElement",
95743
95500
  "module": "core/base-elements/element.js"
@@ -95745,11 +95502,254 @@
95745
95502
  },
95746
95503
  {
95747
95504
  "kind": "field",
95748
- "name": "formField",
95505
+ "name": "_remainingCharacters",
95749
95506
  "type": {
95750
- "text": "SbbFormFieldElement | null"
95507
+ "text": "number"
95751
95508
  },
95752
- "privacy": "protected",
95509
+ "privacy": "private",
95510
+ "default": "0"
95511
+ },
95512
+ {
95513
+ "kind": "field",
95514
+ "name": "_language",
95515
+ "privacy": "private",
95516
+ "default": "new SbbLanguageController(this)"
95517
+ },
95518
+ {
95519
+ "kind": "field",
95520
+ "name": "_abortController",
95521
+ "type": {
95522
+ "text": "AbortController | null"
95523
+ },
95524
+ "privacy": "private",
95525
+ "default": "null"
95526
+ },
95527
+ {
95528
+ "kind": "method",
95529
+ "name": "_onInputUpdate",
95530
+ "privacy": "private",
95531
+ "return": {
95532
+ "type": {
95533
+ "text": "void"
95534
+ }
95535
+ }
95536
+ },
95537
+ {
95538
+ "kind": "method",
95539
+ "name": "_infoText",
95540
+ "privacy": "private",
95541
+ "return": {
95542
+ "type": {
95543
+ "text": "string"
95544
+ }
95545
+ }
95546
+ },
95547
+ {
95548
+ "kind": "field",
95549
+ "name": "negative",
95550
+ "type": {
95551
+ "text": "boolean"
95552
+ },
95553
+ "privacy": "public",
95554
+ "default": "false",
95555
+ "description": "Negative coloring variant flag.",
95556
+ "attribute": "negative",
95557
+ "reflects": true,
95558
+ "inheritedFrom": {
95559
+ "name": "SbbNegativeMixin",
95560
+ "module": "core/mixins/negative-mixin.js"
95561
+ }
95562
+ },
95563
+ {
95564
+ "kind": "field",
95565
+ "name": "formField",
95566
+ "type": {
95567
+ "text": "SbbFormFieldElement | null"
95568
+ },
95569
+ "privacy": "protected",
95570
+ "default": "null",
95571
+ "inheritedFrom": {
95572
+ "name": "SbbHintElement",
95573
+ "module": "form-field/hint/hint.component.js"
95574
+ }
95575
+ },
95576
+ {
95577
+ "kind": "field",
95578
+ "name": "_hydrationRequired",
95579
+ "type": {
95580
+ "text": "boolean"
95581
+ },
95582
+ "privacy": "private",
95583
+ "default": "!!this.shadowRoot",
95584
+ "inheritedFrom": {
95585
+ "name": "SbbElement",
95586
+ "module": "core/base-elements/element.js"
95587
+ }
95588
+ },
95589
+ {
95590
+ "kind": "field",
95591
+ "name": "_hydrationComplete",
95592
+ "privacy": "private",
95593
+ "default": "new Promise<boolean>( (resolve) => (this._resolveHydration = resolve), )",
95594
+ "inheritedFrom": {
95595
+ "name": "SbbElement",
95596
+ "module": "core/base-elements/element.js"
95597
+ }
95598
+ },
95599
+ {
95600
+ "kind": "field",
95601
+ "name": "_resolveHydration",
95602
+ "type": {
95603
+ "text": "(hydrationRequired: boolean) => void"
95604
+ },
95605
+ "privacy": "private",
95606
+ "inheritedFrom": {
95607
+ "name": "SbbElement",
95608
+ "module": "core/base-elements/element.js"
95609
+ }
95610
+ },
95611
+ {
95612
+ "kind": "field",
95613
+ "name": "hydrationRequired",
95614
+ "type": {
95615
+ "text": "boolean"
95616
+ },
95617
+ "privacy": "protected",
95618
+ "description": "Returns whether hydration is required and not completed.",
95619
+ "readonly": true,
95620
+ "inheritedFrom": {
95621
+ "name": "SbbElement",
95622
+ "module": "core/base-elements/element.js"
95623
+ },
95624
+ "default": "!!this.shadowRoot"
95625
+ },
95626
+ {
95627
+ "kind": "method",
95628
+ "name": "toggleState",
95629
+ "privacy": "protected",
95630
+ "return": {
95631
+ "type": {
95632
+ "text": "void"
95633
+ }
95634
+ },
95635
+ "parameters": [
95636
+ {
95637
+ "name": "value",
95638
+ "type": {
95639
+ "text": "string"
95640
+ }
95641
+ },
95642
+ {
95643
+ "name": "force",
95644
+ "optional": true,
95645
+ "type": {
95646
+ "text": "boolean"
95647
+ }
95648
+ }
95649
+ ],
95650
+ "inheritedFrom": {
95651
+ "name": "SbbElement",
95652
+ "module": "core/base-elements/element.js"
95653
+ }
95654
+ },
95655
+ {
95656
+ "kind": "field",
95657
+ "name": "['_$sbbElement$']",
95658
+ "type": {
95659
+ "text": "boolean"
95660
+ },
95661
+ "privacy": "public",
95662
+ "static": true,
95663
+ "default": "true",
95664
+ "inheritedFrom": {
95665
+ "name": "SbbElement",
95666
+ "module": "core/base-elements/element.js"
95667
+ }
95668
+ },
95669
+ {
95670
+ "kind": "field",
95671
+ "name": "_controllers",
95672
+ "type": {
95673
+ "text": "Set<SbbReactiveController> | undefined"
95674
+ },
95675
+ "privacy": "private",
95676
+ "inheritedFrom": {
95677
+ "name": "SbbElement",
95678
+ "module": "core/base-elements/element.js"
95679
+ }
95680
+ }
95681
+ ],
95682
+ "superclass": {
95683
+ "name": "SbbHintElement",
95684
+ "module": "form-field/hint/hint.component.js"
95685
+ },
95686
+ "tagName": "sbb-form-field-text-counter",
95687
+ "customElement": true,
95688
+ "attributes": [
95689
+ {
95690
+ "name": "negative",
95691
+ "type": {
95692
+ "text": "boolean"
95693
+ },
95694
+ "default": "false",
95695
+ "description": "Negative coloring variant flag.",
95696
+ "fieldName": "negative",
95697
+ "inheritedFrom": {
95698
+ "name": "SbbNegativeMixin",
95699
+ "module": "core/mixins/negative-mixin.js"
95700
+ }
95701
+ }
95702
+ ]
95703
+ }
95704
+ ],
95705
+ "exports": [
95706
+ {
95707
+ "kind": "js",
95708
+ "name": "SbbFormFieldTextCounterElement",
95709
+ "declaration": {
95710
+ "name": "SbbFormFieldTextCounterElement",
95711
+ "module": "form-field/form-field-text-counter/form-field-text-counter.component.js"
95712
+ }
95713
+ }
95714
+ ]
95715
+ },
95716
+ {
95717
+ "kind": "javascript-module",
95718
+ "path": "form-field/hint/hint.component.js",
95719
+ "declarations": [
95720
+ {
95721
+ "kind": "class",
95722
+ "description": "It displays a hint message in the `sbb-form-field`.",
95723
+ "name": "SbbHintElement",
95724
+ "slots": [
95725
+ {
95726
+ "description": "Use the unnamed slot to display the hint message.",
95727
+ "name": ""
95728
+ }
95729
+ ],
95730
+ "members": [
95731
+ {
95732
+ "kind": "field",
95733
+ "name": "elementName",
95734
+ "type": {
95735
+ "text": "string"
95736
+ },
95737
+ "privacy": "public",
95738
+ "static": true,
95739
+ "readonly": true,
95740
+ "default": "'sbb-hint'",
95741
+ "inheritedFrom": {
95742
+ "name": "SbbElement",
95743
+ "module": "core/base-elements/element.js"
95744
+ }
95745
+ },
95746
+ {
95747
+ "kind": "field",
95748
+ "name": "formField",
95749
+ "type": {
95750
+ "text": "SbbFormFieldElement | null"
95751
+ },
95752
+ "privacy": "protected",
95753
95753
  "default": "null"
95754
95754
  },
95755
95755
  {
@@ -106504,23 +106504,27 @@
106504
106504
  },
106505
106505
  {
106506
106506
  "kind": "javascript-module",
106507
- "path": "menu/menu/menu.component.js",
106507
+ "path": "menu/menu-button/menu-button.component.js",
106508
106508
  "declarations": [
106509
106509
  {
106510
106510
  "kind": "class",
106511
- "description": "It displays a contextual menu with one or more action element.",
106512
- "name": "SbbMenuElement",
106511
+ "description": "It displays a button element that can be used in the `sbb-menu` component.",
106512
+ "name": "SbbMenuButtonElement",
106513
106513
  "cssProperties": [
106514
106514
  {
106515
- "description": "To specify a custom stack order, the `z-index` can be overridden by defining this CSS variable. The default `z-index` of the component is set to `var(--sbb-overlay-default-z-index)` with a value of `1000`.",
106516
- "name": "--sbb-menu-z-index",
106517
- "default": "var(--sbb-overlay-default-z-index)"
106515
+ "description": "Can be used to modify horizontal padding.",
106516
+ "name": "--sbb-menu-action-outer-horizontal-padding",
106517
+ "default": "var(--sbb-spacing-fixed-3x)"
106518
106518
  }
106519
106519
  ],
106520
106520
  "slots": [
106521
106521
  {
106522
- "description": "Use the unnamed slot to add `sbb-menu-button`/`sbb-menu-link` or other elements to the menu.",
106522
+ "description": "Use the unnamed slot to add content to the `sbb-menu-button`.",
106523
106523
  "name": ""
106524
+ },
106525
+ {
106526
+ "description": "Use this slot to provide an icon. If `icon-name` is set, a `sbb-icon` will be used.",
106527
+ "name": "icon"
106524
106528
  }
106525
106529
  ],
106526
106530
  "members": [
@@ -106537,274 +106541,261 @@
106537
106541
  "name": "SbbElement",
106538
106542
  "module": "core/base-elements/element.js"
106539
106543
  },
106540
- "default": "'sbb-menu'"
106544
+ "default": "'sbb-menu-button'"
106541
106545
  },
106542
106546
  {
106543
106547
  "kind": "field",
106544
106548
  "name": "role",
106545
106549
  "type": {
106546
- "text": "string"
106550
+ "text": "ElementInternals['role']"
106547
106551
  },
106548
106552
  "privacy": "public",
106549
106553
  "static": true,
106550
106554
  "readonly": true,
106551
- "default": "'menu'"
106555
+ "default": "'menuitem'",
106556
+ "inheritedFrom": {
106557
+ "name": "SbbButtonLikeBaseElement",
106558
+ "module": "core/base-elements/button-base-element.js"
106559
+ }
106552
106560
  },
106553
106561
  {
106554
106562
  "kind": "field",
106555
- "name": "trigger",
106563
+ "name": "disabledInteractive",
106556
106564
  "type": {
106557
- "text": "HTMLElement | null"
106565
+ "text": "boolean"
106558
106566
  },
106559
106567
  "privacy": "public",
106560
- "default": "null",
106561
- "description": "The element that will trigger the menu overlay.\n\nFor attribute usage, provide an id reference.",
106562
- "attribute": "trigger"
106563
- },
106564
- {
106565
- "kind": "field",
106566
- "name": "_menu",
106567
- "type": {
106568
- "text": "HTMLDivElement"
106569
- },
106570
- "privacy": "private"
106571
- },
106572
- {
106573
- "kind": "field",
106574
- "name": "_triggerElement",
106575
- "type": {
106576
- "text": "HTMLElement | null"
106577
- },
106578
- "privacy": "private",
106579
- "default": "null"
106580
- },
106581
- {
106582
- "kind": "field",
106583
- "name": "_triggerAbortController",
106584
- "type": {
106585
- "text": "AbortController"
106586
- },
106587
- "privacy": "private"
106568
+ "default": "false",
106569
+ "description": "Whether the button should be aria-disabled but stay interactive.",
106570
+ "attribute": "disabled-interactive",
106571
+ "reflects": true,
106572
+ "inheritedFrom": {
106573
+ "name": "SbbDisabledInteractiveMixin",
106574
+ "module": "core/mixins/disabled-mixin.js"
106575
+ }
106588
106576
  },
106589
106577
  {
106590
106578
  "kind": "field",
106591
- "name": "_isPointerDownEventOnMenu",
106579
+ "name": "disabled",
106580
+ "privacy": "public",
106581
+ "description": "Whether the component is disabled.",
106582
+ "default": "false",
106592
106583
  "type": {
106593
106584
  "text": "boolean"
106594
106585
  },
106595
- "privacy": "private",
106596
- "default": "false"
106597
- },
106598
- {
106599
- "kind": "field",
106600
- "name": "_windowEventsController",
106601
- "type": {
106602
- "text": "AbortController"
106603
- },
106604
- "privacy": "private"
106605
- },
106606
- {
106607
- "kind": "field",
106608
- "name": "_escapableOverlayController",
106609
- "privacy": "private",
106610
- "default": "new SbbEscapableOverlayController(this)"
106611
- },
106612
- {
106613
- "kind": "field",
106614
- "name": "_focusTrapController",
106615
- "privacy": "private",
106616
- "default": "new SbbFocusTrapController(this)"
106617
- },
106618
- {
106619
- "kind": "field",
106620
- "name": "_scrollHandler",
106621
- "privacy": "private",
106622
- "default": "new SbbScrollHandler()"
106623
- },
106624
- {
106625
- "kind": "field",
106626
- "name": "_inertController",
106627
- "privacy": "private",
106628
- "default": "new SbbInertController(this)"
106629
- },
106630
- {
106631
- "kind": "field",
106632
- "name": "_mobileBreakpoint",
106633
- "privacy": "private",
106634
- "default": "SbbMediaQueryBreakpointSmallAndBelow"
106635
- },
106636
- {
106637
- "kind": "field",
106638
- "name": "_mediaMatcher",
106639
- "privacy": "private",
106640
- "default": "new SbbMediaMatcherController(this, { [this._mobileBreakpoint]: (matches) => { if (matches && (this.state === 'opening' || this.state === 'opened')) { this._scrollHandler.disableScroll(); } else { this._scrollHandler.enableScroll(); } }, })"
106641
- },
106642
- {
106643
- "kind": "field",
106644
- "name": "_darkModeController",
106645
- "privacy": "private",
106646
- "default": "new SbbDarkModeController(this, () => this._syncNegative())"
106586
+ "attribute": "disabled",
106587
+ "reflects": true,
106588
+ "inheritedFrom": {
106589
+ "name": "SbbDisabledMixin",
106590
+ "module": "core/mixins/disabled-mixin.js"
106591
+ }
106647
106592
  },
106648
106593
  {
106649
106594
  "kind": "field",
106650
- "name": "_language",
106595
+ "name": "#disabled",
106651
106596
  "privacy": "private",
106652
- "default": "new SbbLanguageController(this)"
106653
- },
106654
- {
106655
- "kind": "field",
106656
- "name": "_nestedMenu",
106657
106597
  "type": {
106658
- "text": "SbbMenuElement | null"
106598
+ "text": "boolean"
106659
106599
  },
106660
- "privacy": "private",
106661
- "default": "null"
106600
+ "default": "false",
106601
+ "inheritedFrom": {
106602
+ "name": "SbbDisabledMixin",
106603
+ "module": "core/mixins/disabled-mixin.js"
106604
+ }
106662
106605
  },
106663
106606
  {
106664
106607
  "kind": "method",
106665
- "name": "escapeStrategy",
106666
- "privacy": "public",
106608
+ "name": "isDisabledExternally",
106609
+ "privacy": "protected",
106667
106610
  "return": {
106668
106611
  "type": {
106669
- "text": "void"
106612
+ "text": "boolean"
106670
106613
  }
106671
106614
  },
106672
- "description": "The method which is called on escape key press. Defaults to calling close()",
106615
+ "description": "Will be used as 'or' check to the current disabled state.\nCan e.g. be used to read disabled state of a group.",
106673
106616
  "inheritedFrom": {
106674
- "name": "SbbOpenCloseBaseElement",
106675
- "module": "core/base-elements/open-close-base-element.js"
106617
+ "name": "SbbDisabledMixin",
106618
+ "module": "core/mixins/disabled-mixin.js"
106676
106619
  }
106677
106620
  },
106678
106621
  {
106679
- "kind": "method",
106680
- "name": "open",
106681
- "privacy": "public",
106682
- "return": {
106683
- "type": {
106684
- "text": "void"
106685
- }
106622
+ "kind": "field",
106623
+ "name": "styles",
106624
+ "type": {
106625
+ "text": "CSSResultGroup"
106686
106626
  },
106687
- "description": "Opens the menu on trigger click.",
106627
+ "privacy": "public",
106628
+ "static": true,
106629
+ "default": "[boxSizingStyles, unsafeCSS(style)]",
106688
106630
  "inheritedFrom": {
106689
- "name": "SbbOpenCloseBaseElement",
106690
- "module": "core/base-elements/open-close-base-element.js"
106631
+ "name": "SbbMenuActionCommonElementMixin",
106632
+ "module": "menu/common/menu-action-common.js"
106691
106633
  }
106692
106634
  },
106693
106635
  {
106694
106636
  "kind": "method",
106695
- "name": "close",
106696
- "privacy": "public",
106637
+ "name": "renderTemplate",
106638
+ "privacy": "protected",
106697
106639
  "return": {
106698
106640
  "type": {
106699
- "text": "void"
106641
+ "text": "TemplateResult"
106700
106642
  }
106701
106643
  },
106702
- "description": "Closes the menu and all its nested menus.",
106644
+ "description": "Override this method to render the component template.",
106703
106645
  "inheritedFrom": {
106704
- "name": "SbbOpenCloseBaseElement",
106705
- "module": "core/base-elements/open-close-base-element.js"
106646
+ "name": "SbbActionBaseElement",
106647
+ "module": "core/base-elements/action-base-element.js"
106706
106648
  }
106707
106649
  },
106708
106650
  {
106709
- "kind": "method",
106710
- "name": "closeAll",
106711
- "privacy": "public",
106712
- "return": {
106713
- "type": {
106714
- "text": "void"
106715
- }
106651
+ "kind": "field",
106652
+ "name": "iconName",
106653
+ "type": {
106654
+ "text": "string"
106716
106655
  },
106717
- "description": "Closes the menu and all related menus (nested and parent menus)."
106656
+ "privacy": "public",
106657
+ "default": "''",
106658
+ "description": "The icon name we want to use, choose from the small icon variants\nfrom the ui-icons category from here\nhttps://icons.app.sbb.ch.",
106659
+ "attribute": "icon-name",
106660
+ "inheritedFrom": {
106661
+ "name": "SbbIconNameMixin",
106662
+ "module": "icon/icon-name-mixin.js"
106663
+ }
106718
106664
  },
106719
106665
  {
106720
106666
  "kind": "method",
106721
- "name": "_close",
106722
- "privacy": "private",
106667
+ "name": "renderIconSlot",
106668
+ "privacy": "protected",
106723
106669
  "return": {
106724
106670
  "type": {
106725
- "text": "void"
106671
+ "text": "TemplateResult"
106726
106672
  }
106727
106673
  },
106728
106674
  "parameters": [
106729
106675
  {
106730
- "name": "closeAll",
106731
- "default": "false",
106732
- "description": "If true, it ensures animations are correct by toggling some states when closing all related menus at once.",
106733
- "optional": true
106676
+ "name": "classname",
106677
+ "optional": true,
106678
+ "type": {
106679
+ "text": "string"
106680
+ }
106734
106681
  }
106735
- ]
106682
+ ],
106683
+ "inheritedFrom": {
106684
+ "name": "SbbIconNameMixin",
106685
+ "module": "icon/icon-name-mixin.js"
106686
+ }
106736
106687
  },
106737
106688
  {
106738
106689
  "kind": "method",
106739
- "name": "_isZeroAnimationDuration",
106740
- "privacy": "private",
106690
+ "name": "renderIconName",
106691
+ "privacy": "protected",
106741
106692
  "return": {
106742
106693
  "type": {
106743
- "text": "boolean"
106694
+ "text": "string"
106744
106695
  }
106696
+ },
106697
+ "inheritedFrom": {
106698
+ "name": "SbbIconNameMixin",
106699
+ "module": "icon/icon-name-mixin.js"
106745
106700
  }
106746
106701
  },
106747
106702
  {
106748
106703
  "kind": "method",
106749
- "name": "_handleOpening",
106704
+ "name": "_renderIconName",
106750
106705
  "privacy": "private",
106751
106706
  "return": {
106752
106707
  "type": {
106753
- "text": "void"
106708
+ "text": "string"
106754
106709
  }
106710
+ },
106711
+ "inheritedFrom": {
106712
+ "name": "SbbIconNameMixin",
106713
+ "module": "icon/icon-name-mixin.js"
106755
106714
  }
106756
106715
  },
106757
106716
  {
106758
- "kind": "method",
106759
- "name": "_handleClosing",
106717
+ "kind": "field",
106718
+ "name": "_elementsOnWhichEnterPressTriggersSubmit",
106719
+ "type": {
106720
+ "text": "array"
106721
+ },
106760
106722
  "privacy": "private",
106761
- "return": {
106762
- "type": {
106763
- "text": "void"
106764
- }
106723
+ "readonly": true,
106724
+ "default": "[ 'input', 'sbb-date-input', 'sbb-time-input', ]",
106725
+ "inheritedFrom": {
106726
+ "name": "SbbButtonBaseElement",
106727
+ "module": "core/base-elements/button-base-element.js"
106765
106728
  }
106766
106729
  },
106767
106730
  {
106768
- "kind": "method",
106769
- "name": "_handleKeyDown",
106770
- "privacy": "private",
106771
- "return": {
106772
- "type": {
106773
- "text": "void"
106774
- }
106731
+ "kind": "field",
106732
+ "name": "value",
106733
+ "type": {
106734
+ "text": "string"
106775
106735
  },
106776
- "parameters": [
106777
- {
106778
- "name": "evt",
106779
- "type": {
106780
- "text": "KeyboardEvent"
106781
- }
106782
- }
106783
- ]
106736
+ "privacy": "public",
106737
+ "inheritedFrom": {
106738
+ "name": "SbbButtonBaseElement",
106739
+ "module": "core/base-elements/button-base-element.js"
106740
+ },
106741
+ "default": "''",
106742
+ "description": "Value of the form element.",
106743
+ "attribute": "value"
106784
106744
  },
106785
106745
  {
106786
- "kind": "method",
106787
- "name": "_configureTrigger",
106788
- "privacy": "private",
106789
- "return": {
106790
- "type": {
106791
- "text": "void"
106792
- }
106746
+ "kind": "field",
106747
+ "name": "type",
106748
+ "privacy": "public",
106749
+ "description": "The type attribute to use for the button.",
106750
+ "default": "'button'",
106751
+ "type": {
106752
+ "text": "SbbButtonType"
106753
+ },
106754
+ "attribute": "type",
106755
+ "inheritedFrom": {
106756
+ "name": "SbbButtonBaseElement",
106757
+ "module": "core/base-elements/button-base-element.js"
106793
106758
  }
106794
106759
  },
106795
106760
  {
106796
- "kind": "method",
106797
- "name": "_attachWindowEvents",
106798
- "privacy": "private",
106799
- "return": {
106800
- "type": {
106801
- "text": "void"
106802
- }
106761
+ "kind": "field",
106762
+ "name": "form",
106763
+ "type": {
106764
+ "text": "HTMLFormElement | null"
106765
+ },
106766
+ "privacy": "public",
106767
+ "description": "The `<form>` element to associate the button with.",
106768
+ "inheritedFrom": {
106769
+ "name": "SbbButtonBaseElement",
106770
+ "module": "core/base-elements/button-base-element.js"
106771
+ },
106772
+ "attribute": "form"
106773
+ },
106774
+ {
106775
+ "kind": "field",
106776
+ "name": "_formId",
106777
+ "type": {
106778
+ "text": "string"
106779
+ },
106780
+ "privacy": "private",
106781
+ "default": "''",
106782
+ "inheritedFrom": {
106783
+ "name": "SbbButtonBaseElement",
106784
+ "module": "core/base-elements/button-base-element.js"
106785
+ }
106786
+ },
106787
+ {
106788
+ "kind": "field",
106789
+ "name": "_handleButtonClick",
106790
+ "privacy": "private",
106791
+ "inheritedFrom": {
106792
+ "name": "SbbButtonBaseElement",
106793
+ "module": "core/base-elements/button-base-element.js"
106803
106794
  }
106804
106795
  },
106805
106796
  {
106806
106797
  "kind": "method",
106807
- "name": "_interactiveElementClick",
106798
+ "name": "_requestSubmit",
106808
106799
  "privacy": "private",
106809
106800
  "return": {
106810
106801
  "type": {
@@ -106813,79 +106804,220 @@
106813
106804
  },
106814
106805
  "parameters": [
106815
106806
  {
106816
- "name": "event",
106807
+ "name": "form",
106817
106808
  "type": {
106818
- "text": "Event"
106809
+ "text": "HTMLFormElement"
106819
106810
  }
106820
106811
  }
106821
- ]
106812
+ ],
106813
+ "inheritedFrom": {
106814
+ "name": "SbbButtonBaseElement",
106815
+ "module": "core/base-elements/button-base-element.js"
106816
+ }
106822
106817
  },
106823
106818
  {
106824
106819
  "kind": "field",
106825
- "name": "_pointerDownListener",
106826
- "privacy": "private"
106820
+ "name": "_formKeyDown",
106821
+ "privacy": "private",
106822
+ "inheritedFrom": {
106823
+ "name": "SbbButtonBaseElement",
106824
+ "module": "core/base-elements/button-base-element.js"
106825
+ }
106827
106826
  },
106828
106827
  {
106829
106828
  "kind": "field",
106830
- "name": "_closeOnBackdropClick",
106831
- "privacy": "private"
106829
+ "name": "formAssociated",
106830
+ "type": {
106831
+ "text": "boolean"
106832
+ },
106833
+ "privacy": "public",
106834
+ "static": true,
106835
+ "default": "true",
106836
+ "inheritedFrom": {
106837
+ "name": "SbbFormAssociatedMixin",
106838
+ "module": "core/mixins/form-associated-mixin.js"
106839
+ }
106832
106840
  },
106833
106841
  {
106834
- "kind": "method",
106835
- "name": "_nestedMenus",
106842
+ "kind": "field",
106843
+ "name": "name",
106844
+ "privacy": "public",
106845
+ "description": "Name of the form element. Will be read from name attribute.",
106846
+ "type": {
106847
+ "text": "string"
106848
+ },
106849
+ "attribute": "name",
106850
+ "inheritedFrom": {
106851
+ "name": "SbbFormAssociatedMixin",
106852
+ "module": "core/mixins/form-associated-mixin.js"
106853
+ }
106854
+ },
106855
+ {
106856
+ "kind": "field",
106857
+ "name": "validity",
106858
+ "type": {
106859
+ "text": "ValidityState"
106860
+ },
106861
+ "privacy": "public",
106862
+ "description": "Returns the ValidityState object for this element.",
106863
+ "readonly": true,
106864
+ "inheritedFrom": {
106865
+ "name": "SbbFormAssociatedMixin",
106866
+ "module": "core/mixins/form-associated-mixin.js"
106867
+ }
106868
+ },
106869
+ {
106870
+ "kind": "field",
106871
+ "name": "validationMessage",
106872
+ "type": {
106873
+ "text": "string"
106874
+ },
106875
+ "privacy": "public",
106876
+ "description": "Returns the current error message, if available, which corresponds\nto the current validation state.\nPlease note that only one message is returned at a time (e.g. if\nmultiple validity states are invalid, only the chronologically first one\nis returned until it is fixed, at which point the next message might be\nreturned, if it is still applicable). Also, a custom validity message\n(see below) has precedence over native validation messages.",
106877
+ "readonly": true,
106878
+ "inheritedFrom": {
106879
+ "name": "SbbFormAssociatedMixin",
106880
+ "module": "core/mixins/form-associated-mixin.js"
106881
+ }
106882
+ },
106883
+ {
106884
+ "kind": "field",
106885
+ "name": "willValidate",
106886
+ "type": {
106887
+ "text": "boolean"
106888
+ },
106889
+ "privacy": "public",
106890
+ "description": "Returns true if this element will be validated\nwhen the form is submitted; false otherwise.",
106891
+ "readonly": true,
106892
+ "inheritedFrom": {
106893
+ "name": "SbbFormAssociatedMixin",
106894
+ "module": "core/mixins/form-associated-mixin.js"
106895
+ }
106896
+ },
106897
+ {
106898
+ "kind": "field",
106899
+ "name": "_validityStates",
106836
106900
  "privacy": "private",
106901
+ "default": "new Map< keyof ValidityStateFlags, { flagValue: unknown; message: string } >()",
106902
+ "inheritedFrom": {
106903
+ "name": "SbbFormAssociatedMixin",
106904
+ "module": "core/mixins/form-associated-mixin.js"
106905
+ }
106906
+ },
106907
+ {
106908
+ "kind": "field",
106909
+ "name": "formDisabled",
106910
+ "type": {
106911
+ "text": "boolean"
106912
+ },
106913
+ "privacy": "protected",
106914
+ "default": "false",
106915
+ "description": "Whenever a surrounding form or fieldset is changing its disabled state.",
106916
+ "inheritedFrom": {
106917
+ "name": "SbbFormAssociatedMixin",
106918
+ "module": "core/mixins/form-associated-mixin.js"
106919
+ }
106920
+ },
106921
+ {
106922
+ "kind": "method",
106923
+ "name": "checkValidity",
106924
+ "privacy": "public",
106837
106925
  "return": {
106838
106926
  "type": {
106839
- "text": "SbbMenuElement[]"
106927
+ "text": "boolean"
106840
106928
  }
106841
106929
  },
106842
- "description": "Converts the linked list into an array of SbbMenuElement."
106930
+ "description": "Returns true if this element has no validity problems; false otherwise.\nFires an invalid event at the element in the latter case.",
106931
+ "inheritedFrom": {
106932
+ "name": "SbbFormAssociatedMixin",
106933
+ "module": "core/mixins/form-associated-mixin.js"
106934
+ }
106843
106935
  },
106844
106936
  {
106845
106937
  "kind": "method",
106846
- "name": "_parentMenu",
106847
- "privacy": "private",
106938
+ "name": "reportValidity",
106939
+ "privacy": "public",
106848
106940
  "return": {
106849
106941
  "type": {
106850
- "text": "SbbMenuElement | null"
106942
+ "text": "boolean"
106851
106943
  }
106944
+ },
106945
+ "description": "Returns true if this element has no validity problems; otherwise,\nreturns false, fires an invalid event at the element,\nand (if the event isn't canceled) reports the problem to the user.",
106946
+ "inheritedFrom": {
106947
+ "name": "SbbFormAssociatedMixin",
106948
+ "module": "core/mixins/form-associated-mixin.js"
106852
106949
  }
106853
106950
  },
106854
106951
  {
106855
106952
  "kind": "method",
106856
- "name": "_mainMenu",
106857
- "privacy": "private",
106953
+ "name": "setCustomValidity",
106954
+ "privacy": "public",
106858
106955
  "return": {
106859
106956
  "type": {
106860
- "text": "SbbMenuElement"
106957
+ "text": "void"
106861
106958
  }
106862
106959
  },
106863
- "description": "The outermost menu."
106960
+ "parameters": [
106961
+ {
106962
+ "name": "message",
106963
+ "type": {
106964
+ "text": "string"
106965
+ }
106966
+ }
106967
+ ],
106968
+ "description": "Sets the custom validity message for this element. Use the empty string\nto indicate that the element does not have a custom validity error.",
106969
+ "inheritedFrom": {
106970
+ "name": "SbbFormAssociatedMixin",
106971
+ "module": "core/mixins/form-associated-mixin.js"
106972
+ }
106864
106973
  },
106865
106974
  {
106866
106975
  "kind": "method",
106867
- "name": "_isNested",
106976
+ "name": "_hasDisabledAncestor",
106868
106977
  "privacy": "private",
106869
106978
  "return": {
106870
106979
  "type": {
106871
106980
  "text": "boolean"
106872
106981
  }
106982
+ },
106983
+ "inheritedFrom": {
106984
+ "name": "SbbFormAssociatedMixin",
106985
+ "module": "core/mixins/form-associated-mixin.js"
106873
106986
  }
106874
106987
  },
106875
106988
  {
106876
106989
  "kind": "method",
106877
- "name": "_updateNestedInert",
106878
- "privacy": "private",
106990
+ "name": "updateFormValue",
106991
+ "privacy": "protected",
106879
106992
  "return": {
106880
106993
  "type": {
106881
106994
  "text": "void"
106882
106995
  }
106996
+ },
106997
+ "description": "Should be called when form value is changed.\nAdapts and sets the formValue in the supported format (string | FormData | File | null)\nhttps://developer.mozilla.org/en-US/docs/Web/API/ElementInternals/setFormValue",
106998
+ "inheritedFrom": {
106999
+ "name": "SbbFormAssociatedMixin",
107000
+ "module": "core/mixins/form-associated-mixin.js"
106883
107001
  }
106884
107002
  },
106885
107003
  {
106886
107004
  "kind": "method",
106887
- "name": "_handleMouseOver",
106888
- "privacy": "private",
107005
+ "name": "formState",
107006
+ "privacy": "protected",
107007
+ "return": {
107008
+ "type": {
107009
+ "text": "FormRestoreState"
107010
+ }
107011
+ },
107012
+ "inheritedFrom": {
107013
+ "name": "SbbFormAssociatedMixin",
107014
+ "module": "core/mixins/form-associated-mixin.js"
107015
+ }
107016
+ },
107017
+ {
107018
+ "kind": "method",
107019
+ "name": "setValidityFlag",
107020
+ "privacy": "protected",
106889
107021
  "return": {
106890
107022
  "type": {
106891
107023
  "text": "void"
@@ -106893,17 +107025,35 @@
106893
107025
  },
106894
107026
  "parameters": [
106895
107027
  {
106896
- "name": "event",
107028
+ "name": "flag",
106897
107029
  "type": {
106898
- "text": "MouseEvent"
107030
+ "text": "T"
107031
+ }
107032
+ },
107033
+ {
107034
+ "name": "message",
107035
+ "type": {
107036
+ "text": "string"
107037
+ }
107038
+ },
107039
+ {
107040
+ "name": "flagValue",
107041
+ "optional": true,
107042
+ "type": {
107043
+ "text": "ValidityStateFlags[T]"
106899
107044
  }
106900
107045
  }
106901
- ]
107046
+ ],
107047
+ "description": "Marks this element as suffering from the constraint indicated by the\nflag argument and associates the given message to it.\nNote that only one message is displayed at a time and custom messages by\nconsumers are always displayed before internal messages and internal\nmessages are displayed in the order they were added.\nTo set/define custom validity state flags, you need to extend the\nValidityState prototype (and the CustomValidityState interface).",
107048
+ "inheritedFrom": {
107049
+ "name": "SbbFormAssociatedMixin",
107050
+ "module": "core/mixins/form-associated-mixin.js"
107051
+ }
106902
107052
  },
106903
107053
  {
106904
107054
  "kind": "method",
106905
- "name": "_onMenuAnimationEnd",
106906
- "privacy": "private",
107055
+ "name": "removeValidityFlag",
107056
+ "privacy": "protected",
106907
107057
  "return": {
106908
107058
  "type": {
106909
107059
  "text": "void"
@@ -106911,152 +107061,158 @@
106911
107061
  },
106912
107062
  "parameters": [
106913
107063
  {
106914
- "name": "event",
107064
+ "name": "flag",
106915
107065
  "type": {
106916
- "text": "AnimationEvent"
107066
+ "text": "T"
106917
107067
  }
106918
107068
  }
106919
- ]
107069
+ ],
107070
+ "description": "Removes the validity state flag entry and updates validity state.",
107071
+ "inheritedFrom": {
107072
+ "name": "SbbFormAssociatedMixin",
107073
+ "module": "core/mixins/form-associated-mixin.js"
107074
+ }
106920
107075
  },
106921
107076
  {
106922
107077
  "kind": "method",
106923
- "name": "_setMenuPosition",
106924
- "privacy": "private",
107078
+ "name": "validate",
107079
+ "privacy": "protected",
106925
107080
  "return": {
106926
107081
  "type": {
106927
107082
  "text": "void"
106928
107083
  }
107084
+ },
107085
+ "description": "To be called whenever the current element needs to be validated.",
107086
+ "inheritedFrom": {
107087
+ "name": "SbbFormAssociatedMixin",
107088
+ "module": "core/mixins/form-associated-mixin.js"
106929
107089
  }
106930
107090
  },
106931
107091
  {
106932
107092
  "kind": "method",
106933
- "name": "_syncNegative",
106934
- "privacy": "private",
107093
+ "name": "shouldValidate",
107094
+ "privacy": "protected",
106935
107095
  "return": {
106936
107096
  "type": {
106937
- "text": "void"
107097
+ "text": "boolean"
107098
+ }
107099
+ },
107100
+ "parameters": [
107101
+ {
107102
+ "name": "name",
107103
+ "type": {
107104
+ "text": "PropertyKey | undefined"
107105
+ }
106938
107106
  }
107107
+ ],
107108
+ "description": "Whether validation should be run on a property change with the given name.",
107109
+ "inheritedFrom": {
107110
+ "name": "SbbFormAssociatedMixin",
107111
+ "module": "core/mixins/form-associated-mixin.js"
106939
107112
  }
106940
107113
  },
106941
107114
  {
106942
107115
  "kind": "method",
106943
- "name": "_isMobile",
107116
+ "name": "_setInternalValidity",
106944
107117
  "privacy": "private",
106945
107118
  "return": {
106946
107119
  "type": {
106947
- "text": "boolean"
107120
+ "text": "void"
106948
107121
  }
106949
- }
106950
- },
106951
- {
106952
- "kind": "field",
106953
- "name": "events",
106954
- "privacy": "public",
106955
- "static": true,
106956
- "readonly": true,
106957
- "default": "{ beforeopen: 'beforeopen', open: 'open', beforeclose: 'beforeclose', close: 'close', }",
106958
- "type": {
106959
- "text": "{\n beforeopen: 'beforeopen',\n open: 'open',\n beforeclose: 'beforeclose',\n close: 'close',\n }"
106960
107122
  },
106961
107123
  "inheritedFrom": {
106962
- "name": "SbbOpenCloseBaseElement",
106963
- "module": "core/base-elements/open-close-base-element.js"
107124
+ "name": "SbbFormAssociatedMixin",
107125
+ "module": "core/mixins/form-associated-mixin.js"
106964
107126
  }
106965
107127
  },
106966
107128
  {
106967
107129
  "kind": "field",
106968
- "name": "state",
106969
- "privacy": "protected",
106970
- "description": "The state of the component.",
106971
- "type": {
106972
- "text": "SbbOpenedClosedState"
106973
- },
106974
- "default": "'closed'",
107130
+ "name": "_preventScrollOnSpaceKeydown",
107131
+ "privacy": "private",
107132
+ "description": "Prevents scrolling from pressing Space, when the event target is an action element.\nAlso sets active state.",
107133
+ "parameters": [
107134
+ {
107135
+ "description": "The origin event.",
107136
+ "name": "event"
107137
+ }
107138
+ ],
106975
107139
  "inheritedFrom": {
106976
- "name": "SbbOpenCloseBaseElement",
106977
- "module": "core/base-elements/open-close-base-element.js"
107140
+ "name": "SbbButtonLikeBaseElement",
107141
+ "module": "core/base-elements/button-base-element.js"
106978
107142
  }
106979
107143
  },
106980
107144
  {
106981
107145
  "kind": "field",
106982
- "name": "_state",
106983
- "type": {
106984
- "text": "SbbOpenedClosedState"
106985
- },
107146
+ "name": "_removeActiveMarker",
106986
107147
  "privacy": "private",
106987
107148
  "inheritedFrom": {
106988
- "name": "SbbOpenCloseBaseElement",
106989
- "module": "core/base-elements/open-close-base-element.js"
107149
+ "name": "SbbButtonLikeBaseElement",
107150
+ "module": "core/base-elements/button-base-element.js"
106990
107151
  }
106991
107152
  },
106992
107153
  {
106993
107154
  "kind": "field",
106994
- "name": "isOpen",
106995
- "type": {
106996
- "text": "boolean"
106997
- },
106998
- "privacy": "public",
106999
- "description": "Whether the element is open.",
107000
- "readonly": true,
107155
+ "name": "_dispatchClickEventOnSpaceKeyup",
107156
+ "privacy": "private",
107157
+ "description": "Dispatches a 'click' PointerEvent if the original keyboard event is a 'Space' press.\nAs verified with the native button, when 'Space' is pressed, a 'click' event is dispatched\nafter the 'keyup' event.",
107158
+ "parameters": [
107159
+ {
107160
+ "description": "The origin event.",
107161
+ "name": "event"
107162
+ }
107163
+ ],
107001
107164
  "inheritedFrom": {
107002
- "name": "SbbOpenCloseBaseElement",
107003
- "module": "core/base-elements/open-close-base-element.js"
107165
+ "name": "SbbButtonLikeBaseElement",
107166
+ "module": "core/base-elements/button-base-element.js"
107004
107167
  }
107005
107168
  },
107006
107169
  {
107007
- "kind": "method",
107008
- "name": "dispatchBeforeOpenEvent",
107009
- "privacy": "protected",
107010
- "return": {
107011
- "type": {
107012
- "text": "boolean"
107013
- }
107014
- },
107170
+ "kind": "field",
107171
+ "name": "_dispatchClickEvent",
107172
+ "privacy": "private",
107015
107173
  "inheritedFrom": {
107016
- "name": "SbbOpenCloseBaseElement",
107017
- "module": "core/base-elements/open-close-base-element.js"
107174
+ "name": "SbbButtonLikeBaseElement",
107175
+ "module": "core/base-elements/button-base-element.js"
107018
107176
  }
107019
107177
  },
107020
107178
  {
107021
- "kind": "method",
107022
- "name": "dispatchOpenEvent",
107023
- "privacy": "protected",
107024
- "return": {
107025
- "type": {
107026
- "text": "boolean"
107027
- }
107179
+ "kind": "field",
107180
+ "name": "maybeDisabled",
107181
+ "type": {
107182
+ "text": "boolean | undefined"
107028
107183
  },
107184
+ "privacy": "protected",
107185
+ "readonly": true,
107029
107186
  "inheritedFrom": {
107030
- "name": "SbbOpenCloseBaseElement",
107031
- "module": "core/base-elements/open-close-base-element.js"
107187
+ "name": "SbbActionBaseElement",
107188
+ "module": "core/base-elements/action-base-element.js"
107032
107189
  }
107033
107190
  },
107034
107191
  {
107035
- "kind": "method",
107036
- "name": "dispatchBeforeCloseEvent",
107037
- "privacy": "protected",
107038
- "return": {
107039
- "type": {
107040
- "text": "boolean"
107041
- }
107192
+ "kind": "field",
107193
+ "name": "maybeDisabledInteractive",
107194
+ "type": {
107195
+ "text": "boolean | undefined"
107042
107196
  },
107197
+ "privacy": "protected",
107198
+ "readonly": true,
107043
107199
  "inheritedFrom": {
107044
- "name": "SbbOpenCloseBaseElement",
107045
- "module": "core/base-elements/open-close-base-element.js"
107200
+ "name": "SbbActionBaseElement",
107201
+ "module": "core/base-elements/action-base-element.js"
107046
107202
  }
107047
107203
  },
107048
107204
  {
107049
107205
  "kind": "method",
107050
- "name": "dispatchCloseEvent",
107206
+ "name": "setupBaseEventHandlers",
107051
107207
  "privacy": "protected",
107052
107208
  "return": {
107053
107209
  "type": {
107054
- "text": "boolean"
107210
+ "text": "void"
107055
107211
  }
107056
107212
  },
107057
107213
  "inheritedFrom": {
107058
- "name": "SbbOpenCloseBaseElement",
107059
- "module": "core/base-elements/open-close-base-element.js"
107214
+ "name": "SbbActionBaseElement",
107215
+ "module": "core/base-elements/action-base-element.js"
107060
107216
  }
107061
107217
  },
107062
107218
  {
@@ -107165,66 +107321,110 @@
107165
107321
  }
107166
107322
  }
107167
107323
  ],
107168
- "attributes": [
107324
+ "mixins": [
107169
107325
  {
107170
- "name": "trigger",
107171
- "type": {
107172
- "text": "HTMLElement | null"
107173
- },
107174
- "default": "null",
107175
- "description": "The element that will trigger the menu overlay.\n\nFor attribute usage, provide an id reference.",
107176
- "fieldName": "trigger"
107326
+ "name": "SbbDisabledTabIndexActionMixin",
107327
+ "module": "core/mixins.js"
107328
+ },
107329
+ {
107330
+ "name": "SbbMenuActionCommonElementMixin",
107331
+ "module": "menu/common/menu-action-common.js"
107177
107332
  }
107178
107333
  ],
107179
107334
  "superclass": {
107180
- "name": "SbbOpenCloseBaseElement",
107335
+ "name": "SbbButtonBaseElement",
107181
107336
  "module": "core/base-elements.js"
107182
107337
  },
107183
- "tagName": "sbb-menu",
107338
+ "tagName": "sbb-menu-button",
107184
107339
  "customElement": true,
107185
- "events": [
107340
+ "attributes": [
107186
107341
  {
107187
- "name": "beforeopen",
107342
+ "name": "disabled-interactive",
107188
107343
  "type": {
107189
- "text": "Event"
107344
+ "text": "boolean"
107190
107345
  },
107191
- "description": "Emits whenever the component starts the opening transition. Can be canceled.",
107346
+ "default": "false",
107347
+ "description": "Whether the button should be aria-disabled but stay interactive.",
107348
+ "fieldName": "disabledInteractive",
107192
107349
  "inheritedFrom": {
107193
- "name": "SbbOpenCloseBaseElement",
107194
- "module": "core/base-elements/open-close-base-element.js"
107350
+ "name": "SbbDisabledInteractiveMixin",
107351
+ "module": "core/mixins/disabled-mixin.js"
107195
107352
  }
107196
107353
  },
107197
107354
  {
107198
- "name": "open",
107355
+ "name": "disabled",
107356
+ "description": "Whether the component is disabled.",
107357
+ "default": "false",
107199
107358
  "type": {
107200
- "text": "Event"
107359
+ "text": "boolean"
107201
107360
  },
107202
- "description": "Emits whenever the component is opened.",
107361
+ "fieldName": "disabled",
107203
107362
  "inheritedFrom": {
107204
- "name": "SbbOpenCloseBaseElement",
107205
- "module": "core/base-elements/open-close-base-element.js"
107363
+ "name": "SbbDisabledMixin",
107364
+ "module": "core/mixins/disabled-mixin.js"
107206
107365
  }
107207
107366
  },
107208
107367
  {
107209
- "name": "beforeclose",
107368
+ "name": "icon-name",
107210
107369
  "type": {
107211
- "text": "Event"
107370
+ "text": "string"
107212
107371
  },
107213
- "description": "Emits whenever the component begins the closing transition. Can be canceled.",
107372
+ "default": "''",
107373
+ "description": "The icon name we want to use, choose from the small icon variants\nfrom the ui-icons category from here\nhttps://icons.app.sbb.ch.",
107374
+ "fieldName": "iconName",
107214
107375
  "inheritedFrom": {
107215
- "name": "SbbOpenCloseBaseElement",
107216
- "module": "core/base-elements/open-close-base-element.js"
107376
+ "name": "SbbIconNameMixin",
107377
+ "module": "icon/icon-name-mixin.js"
107217
107378
  }
107218
107379
  },
107219
107380
  {
107220
- "name": "close",
107381
+ "name": "value",
107221
107382
  "type": {
107222
- "text": "Event"
107383
+ "text": "string"
107223
107384
  },
107224
- "description": "Emits whenever the component is closed.",
107385
+ "default": "''",
107386
+ "description": "Value of the form element.",
107387
+ "fieldName": "value",
107225
107388
  "inheritedFrom": {
107226
- "name": "SbbOpenCloseBaseElement",
107227
- "module": "core/base-elements/open-close-base-element.js"
107389
+ "name": "SbbButtonBaseElement",
107390
+ "module": "core/base-elements/button-base-element.js"
107391
+ }
107392
+ },
107393
+ {
107394
+ "name": "type",
107395
+ "description": "The type attribute to use for the button.",
107396
+ "default": "'button'",
107397
+ "type": {
107398
+ "text": "SbbButtonType"
107399
+ },
107400
+ "fieldName": "type",
107401
+ "inheritedFrom": {
107402
+ "name": "SbbButtonBaseElement",
107403
+ "module": "core/base-elements/button-base-element.js"
107404
+ }
107405
+ },
107406
+ {
107407
+ "name": "form",
107408
+ "description": "The `<form>` element to associate the button with.",
107409
+ "type": {
107410
+ "text": "HTMLFormElement | null"
107411
+ },
107412
+ "fieldName": "form",
107413
+ "inheritedFrom": {
107414
+ "name": "SbbButtonBaseElement",
107415
+ "module": "core/base-elements/button-base-element.js"
107416
+ }
107417
+ },
107418
+ {
107419
+ "name": "name",
107420
+ "description": "Name of the form element. Will be read from name attribute.",
107421
+ "type": {
107422
+ "text": "string"
107423
+ },
107424
+ "fieldName": "name",
107425
+ "inheritedFrom": {
107426
+ "name": "SbbFormAssociatedMixin",
107427
+ "module": "core/mixins/form-associated-mixin.js"
107228
107428
  }
107229
107429
  }
107230
107430
  ]
@@ -107233,37 +107433,33 @@
107233
107433
  "exports": [
107234
107434
  {
107235
107435
  "kind": "js",
107236
- "name": "SbbMenuElement",
107436
+ "name": "SbbMenuButtonElement",
107237
107437
  "declaration": {
107238
- "name": "SbbMenuElement",
107239
- "module": "menu/menu/menu.component.js"
107438
+ "name": "SbbMenuButtonElement",
107439
+ "module": "menu/menu-button/menu-button.component.js"
107240
107440
  }
107241
107441
  }
107242
107442
  ]
107243
107443
  },
107244
107444
  {
107245
107445
  "kind": "javascript-module",
107246
- "path": "menu/menu-button/menu-button.component.js",
107446
+ "path": "menu/menu/menu.component.js",
107247
107447
  "declarations": [
107248
107448
  {
107249
107449
  "kind": "class",
107250
- "description": "It displays a button element that can be used in the `sbb-menu` component.",
107251
- "name": "SbbMenuButtonElement",
107450
+ "description": "It displays a contextual menu with one or more action element.",
107451
+ "name": "SbbMenuElement",
107252
107452
  "cssProperties": [
107253
107453
  {
107254
- "description": "Can be used to modify horizontal padding.",
107255
- "name": "--sbb-menu-action-outer-horizontal-padding",
107256
- "default": "var(--sbb-spacing-fixed-3x)"
107454
+ "description": "To specify a custom stack order, the `z-index` can be overridden by defining this CSS variable. The default `z-index` of the component is set to `var(--sbb-overlay-default-z-index)` with a value of `1000`.",
107455
+ "name": "--sbb-menu-z-index",
107456
+ "default": "var(--sbb-overlay-default-z-index)"
107257
107457
  }
107258
107458
  ],
107259
107459
  "slots": [
107260
107460
  {
107261
- "description": "Use the unnamed slot to add content to the `sbb-menu-button`.",
107461
+ "description": "Use the unnamed slot to add `sbb-menu-button`/`sbb-menu-link` or other elements to the menu.",
107262
107462
  "name": ""
107263
- },
107264
- {
107265
- "description": "Use this slot to provide an icon. If `icon-name` is set, a `sbb-icon` will be used.",
107266
- "name": "icon"
107267
107463
  }
107268
107464
  ],
107269
107465
  "members": [
@@ -107280,483 +107476,237 @@
107280
107476
  "name": "SbbElement",
107281
107477
  "module": "core/base-elements/element.js"
107282
107478
  },
107283
- "default": "'sbb-menu-button'"
107479
+ "default": "'sbb-menu'"
107284
107480
  },
107285
107481
  {
107286
107482
  "kind": "field",
107287
107483
  "name": "role",
107288
107484
  "type": {
107289
- "text": "ElementInternals['role']"
107485
+ "text": "string"
107290
107486
  },
107291
107487
  "privacy": "public",
107292
107488
  "static": true,
107293
107489
  "readonly": true,
107294
- "default": "'menuitem'",
107295
- "inheritedFrom": {
107296
- "name": "SbbButtonLikeBaseElement",
107297
- "module": "core/base-elements/button-base-element.js"
107298
- }
107299
- },
107300
- {
107301
- "kind": "field",
107302
- "name": "disabledInteractive",
107303
- "type": {
107304
- "text": "boolean"
107305
- },
107306
- "privacy": "public",
107307
- "default": "false",
107308
- "description": "Whether the button should be aria-disabled but stay interactive.",
107309
- "attribute": "disabled-interactive",
107310
- "reflects": true,
107311
- "inheritedFrom": {
107312
- "name": "SbbDisabledInteractiveMixin",
107313
- "module": "core/mixins/disabled-mixin.js"
107314
- }
107315
- },
107316
- {
107317
- "kind": "field",
107318
- "name": "disabled",
107319
- "privacy": "public",
107320
- "description": "Whether the component is disabled.",
107321
- "default": "false",
107322
- "type": {
107323
- "text": "boolean"
107324
- },
107325
- "attribute": "disabled",
107326
- "reflects": true,
107327
- "inheritedFrom": {
107328
- "name": "SbbDisabledMixin",
107329
- "module": "core/mixins/disabled-mixin.js"
107330
- }
107331
- },
107332
- {
107333
- "kind": "field",
107334
- "name": "#disabled",
107335
- "privacy": "private",
107336
- "type": {
107337
- "text": "boolean"
107338
- },
107339
- "default": "false",
107340
- "inheritedFrom": {
107341
- "name": "SbbDisabledMixin",
107342
- "module": "core/mixins/disabled-mixin.js"
107343
- }
107344
- },
107345
- {
107346
- "kind": "method",
107347
- "name": "isDisabledExternally",
107348
- "privacy": "protected",
107349
- "return": {
107350
- "type": {
107351
- "text": "boolean"
107352
- }
107353
- },
107354
- "description": "Will be used as 'or' check to the current disabled state.\nCan e.g. be used to read disabled state of a group.",
107355
- "inheritedFrom": {
107356
- "name": "SbbDisabledMixin",
107357
- "module": "core/mixins/disabled-mixin.js"
107358
- }
107490
+ "default": "'menu'"
107359
107491
  },
107360
107492
  {
107361
107493
  "kind": "field",
107362
- "name": "styles",
107494
+ "name": "trigger",
107363
107495
  "type": {
107364
- "text": "CSSResultGroup"
107496
+ "text": "HTMLElement | null"
107365
107497
  },
107366
107498
  "privacy": "public",
107367
- "static": true,
107368
- "default": "[boxSizingStyles, unsafeCSS(style)]",
107369
- "inheritedFrom": {
107370
- "name": "SbbMenuActionCommonElementMixin",
107371
- "module": "menu/common/menu-action-common.js"
107372
- }
107373
- },
107374
- {
107375
- "kind": "method",
107376
- "name": "renderTemplate",
107377
- "privacy": "protected",
107378
- "return": {
107379
- "type": {
107380
- "text": "TemplateResult"
107381
- }
107382
- },
107383
- "description": "Override this method to render the component template.",
107384
- "inheritedFrom": {
107385
- "name": "SbbActionBaseElement",
107386
- "module": "core/base-elements/action-base-element.js"
107387
- }
107499
+ "default": "null",
107500
+ "description": "The element that will trigger the menu overlay.\n\nFor attribute usage, provide an id reference.",
107501
+ "attribute": "trigger"
107388
107502
  },
107389
107503
  {
107390
107504
  "kind": "field",
107391
- "name": "iconName",
107505
+ "name": "_menu",
107392
107506
  "type": {
107393
- "text": "string"
107394
- },
107395
- "privacy": "public",
107396
- "default": "''",
107397
- "description": "The icon name we want to use, choose from the small icon variants\nfrom the ui-icons category from here\nhttps://icons.app.sbb.ch.",
107398
- "attribute": "icon-name",
107399
- "inheritedFrom": {
107400
- "name": "SbbIconNameMixin",
107401
- "module": "icon/icon-name-mixin.js"
107402
- }
107403
- },
107404
- {
107405
- "kind": "method",
107406
- "name": "renderIconSlot",
107407
- "privacy": "protected",
107408
- "return": {
107409
- "type": {
107410
- "text": "TemplateResult"
107411
- }
107412
- },
107413
- "parameters": [
107414
- {
107415
- "name": "classname",
107416
- "optional": true,
107417
- "type": {
107418
- "text": "string"
107419
- }
107420
- }
107421
- ],
107422
- "inheritedFrom": {
107423
- "name": "SbbIconNameMixin",
107424
- "module": "icon/icon-name-mixin.js"
107425
- }
107426
- },
107427
- {
107428
- "kind": "method",
107429
- "name": "renderIconName",
107430
- "privacy": "protected",
107431
- "return": {
107432
- "type": {
107433
- "text": "string"
107434
- }
107435
- },
107436
- "inheritedFrom": {
107437
- "name": "SbbIconNameMixin",
107438
- "module": "icon/icon-name-mixin.js"
107439
- }
107440
- },
107441
- {
107442
- "kind": "method",
107443
- "name": "_renderIconName",
107444
- "privacy": "private",
107445
- "return": {
107446
- "type": {
107447
- "text": "string"
107448
- }
107507
+ "text": "HTMLDivElement"
107449
107508
  },
107450
- "inheritedFrom": {
107451
- "name": "SbbIconNameMixin",
107452
- "module": "icon/icon-name-mixin.js"
107453
- }
107509
+ "privacy": "private"
107454
107510
  },
107455
107511
  {
107456
107512
  "kind": "field",
107457
- "name": "_elementsOnWhichEnterPressTriggersSubmit",
107513
+ "name": "_triggerElement",
107458
107514
  "type": {
107459
- "text": "array"
107515
+ "text": "HTMLElement | null"
107460
107516
  },
107461
107517
  "privacy": "private",
107462
- "readonly": true,
107463
- "default": "[ 'input', 'sbb-date-input', 'sbb-time-input', ]",
107464
- "inheritedFrom": {
107465
- "name": "SbbButtonBaseElement",
107466
- "module": "core/base-elements/button-base-element.js"
107467
- }
107518
+ "default": "null"
107468
107519
  },
107469
107520
  {
107470
107521
  "kind": "field",
107471
- "name": "value",
107522
+ "name": "_triggerAbortController",
107472
107523
  "type": {
107473
- "text": "string"
107474
- },
107475
- "privacy": "public",
107476
- "inheritedFrom": {
107477
- "name": "SbbButtonBaseElement",
107478
- "module": "core/base-elements/button-base-element.js"
107524
+ "text": "AbortController"
107479
107525
  },
107480
- "default": "''",
107481
- "description": "Value of the form element.",
107482
- "attribute": "value"
107526
+ "privacy": "private"
107483
107527
  },
107484
107528
  {
107485
107529
  "kind": "field",
107486
- "name": "type",
107487
- "privacy": "public",
107488
- "description": "The type attribute to use for the button.",
107489
- "default": "'button'",
107530
+ "name": "_isPointerDownEventOnMenu",
107490
107531
  "type": {
107491
- "text": "SbbButtonType"
107532
+ "text": "boolean"
107492
107533
  },
107493
- "attribute": "type",
107494
- "inheritedFrom": {
107495
- "name": "SbbButtonBaseElement",
107496
- "module": "core/base-elements/button-base-element.js"
107497
- }
107534
+ "privacy": "private",
107535
+ "default": "false"
107498
107536
  },
107499
107537
  {
107500
107538
  "kind": "field",
107501
- "name": "form",
107539
+ "name": "_windowEventsController",
107502
107540
  "type": {
107503
- "text": "HTMLFormElement | null"
107504
- },
107505
- "privacy": "public",
107506
- "description": "The `<form>` element to associate the button with.",
107507
- "inheritedFrom": {
107508
- "name": "SbbButtonBaseElement",
107509
- "module": "core/base-elements/button-base-element.js"
107541
+ "text": "AbortController"
107510
107542
  },
107511
- "attribute": "form"
107543
+ "privacy": "private"
107512
107544
  },
107513
107545
  {
107514
107546
  "kind": "field",
107515
- "name": "_formId",
107516
- "type": {
107517
- "text": "string"
107518
- },
107547
+ "name": "_escapableOverlayController",
107519
107548
  "privacy": "private",
107520
- "default": "''",
107521
- "inheritedFrom": {
107522
- "name": "SbbButtonBaseElement",
107523
- "module": "core/base-elements/button-base-element.js"
107524
- }
107549
+ "default": "new SbbEscapableOverlayController(this)"
107525
107550
  },
107526
107551
  {
107527
107552
  "kind": "field",
107528
- "name": "_handleButtonClick",
107529
- "privacy": "private",
107530
- "inheritedFrom": {
107531
- "name": "SbbButtonBaseElement",
107532
- "module": "core/base-elements/button-base-element.js"
107533
- }
107534
- },
107535
- {
107536
- "kind": "method",
107537
- "name": "_requestSubmit",
107553
+ "name": "_focusTrapController",
107538
107554
  "privacy": "private",
107539
- "return": {
107540
- "type": {
107541
- "text": "void"
107542
- }
107543
- },
107544
- "parameters": [
107545
- {
107546
- "name": "form",
107547
- "type": {
107548
- "text": "HTMLFormElement"
107549
- }
107550
- }
107551
- ],
107552
- "inheritedFrom": {
107553
- "name": "SbbButtonBaseElement",
107554
- "module": "core/base-elements/button-base-element.js"
107555
- }
107555
+ "default": "new SbbFocusTrapController(this)"
107556
107556
  },
107557
107557
  {
107558
107558
  "kind": "field",
107559
- "name": "_formKeyDown",
107559
+ "name": "_scrollHandler",
107560
107560
  "privacy": "private",
107561
- "inheritedFrom": {
107562
- "name": "SbbButtonBaseElement",
107563
- "module": "core/base-elements/button-base-element.js"
107564
- }
107561
+ "default": "new SbbScrollHandler()"
107565
107562
  },
107566
107563
  {
107567
107564
  "kind": "field",
107568
- "name": "formAssociated",
107569
- "type": {
107570
- "text": "boolean"
107571
- },
107572
- "privacy": "public",
107573
- "static": true,
107574
- "default": "true",
107575
- "inheritedFrom": {
107576
- "name": "SbbFormAssociatedMixin",
107577
- "module": "core/mixins/form-associated-mixin.js"
107578
- }
107565
+ "name": "_inertController",
107566
+ "privacy": "private",
107567
+ "default": "new SbbInertController(this)"
107579
107568
  },
107580
107569
  {
107581
107570
  "kind": "field",
107582
- "name": "name",
107583
- "privacy": "public",
107584
- "description": "Name of the form element. Will be read from name attribute.",
107585
- "type": {
107586
- "text": "string"
107587
- },
107588
- "attribute": "name",
107589
- "inheritedFrom": {
107590
- "name": "SbbFormAssociatedMixin",
107591
- "module": "core/mixins/form-associated-mixin.js"
107592
- }
107571
+ "name": "_mobileBreakpoint",
107572
+ "privacy": "private",
107573
+ "default": "SbbMediaQueryBreakpointSmallAndBelow"
107593
107574
  },
107594
107575
  {
107595
107576
  "kind": "field",
107596
- "name": "validity",
107597
- "type": {
107598
- "text": "ValidityState"
107599
- },
107600
- "privacy": "public",
107601
- "description": "Returns the ValidityState object for this element.",
107602
- "readonly": true,
107603
- "inheritedFrom": {
107604
- "name": "SbbFormAssociatedMixin",
107605
- "module": "core/mixins/form-associated-mixin.js"
107606
- }
107577
+ "name": "_mediaMatcher",
107578
+ "privacy": "private",
107579
+ "default": "new SbbMediaMatcherController(this, { [this._mobileBreakpoint]: (matches) => { if (matches && (this.state === 'opening' || this.state === 'opened')) { this._scrollHandler.disableScroll(); } else { this._scrollHandler.enableScroll(); } }, })"
107607
107580
  },
107608
107581
  {
107609
107582
  "kind": "field",
107610
- "name": "validationMessage",
107611
- "type": {
107612
- "text": "string"
107613
- },
107614
- "privacy": "public",
107615
- "description": "Returns the current error message, if available, which corresponds\nto the current validation state.\nPlease note that only one message is returned at a time (e.g. if\nmultiple validity states are invalid, only the chronologically first one\nis returned until it is fixed, at which point the next message might be\nreturned, if it is still applicable). Also, a custom validity message\n(see below) has precedence over native validation messages.",
107616
- "readonly": true,
107617
- "inheritedFrom": {
107618
- "name": "SbbFormAssociatedMixin",
107619
- "module": "core/mixins/form-associated-mixin.js"
107620
- }
107583
+ "name": "_darkModeController",
107584
+ "privacy": "private",
107585
+ "default": "new SbbDarkModeController(this, () => this._syncNegative())"
107621
107586
  },
107622
107587
  {
107623
107588
  "kind": "field",
107624
- "name": "willValidate",
107625
- "type": {
107626
- "text": "boolean"
107627
- },
107628
- "privacy": "public",
107629
- "description": "Returns true if this element will be validated\nwhen the form is submitted; false otherwise.",
107630
- "readonly": true,
107631
- "inheritedFrom": {
107632
- "name": "SbbFormAssociatedMixin",
107633
- "module": "core/mixins/form-associated-mixin.js"
107634
- }
107589
+ "name": "_language",
107590
+ "privacy": "private",
107591
+ "default": "new SbbLanguageController(this)"
107635
107592
  },
107636
107593
  {
107637
107594
  "kind": "field",
107638
- "name": "_validityStates",
107595
+ "name": "_nestedMenu",
107596
+ "type": {
107597
+ "text": "SbbMenuElement | null"
107598
+ },
107639
107599
  "privacy": "private",
107640
- "default": "new Map< keyof ValidityStateFlags, { flagValue: unknown; message: string } >()",
107641
- "inheritedFrom": {
107642
- "name": "SbbFormAssociatedMixin",
107643
- "module": "core/mixins/form-associated-mixin.js"
107644
- }
107600
+ "default": "null"
107645
107601
  },
107646
107602
  {
107647
- "kind": "field",
107648
- "name": "formDisabled",
107649
- "type": {
107650
- "text": "boolean"
107603
+ "kind": "method",
107604
+ "name": "escapeStrategy",
107605
+ "privacy": "public",
107606
+ "return": {
107607
+ "type": {
107608
+ "text": "void"
107609
+ }
107651
107610
  },
107652
- "privacy": "protected",
107653
- "default": "false",
107654
- "description": "Whenever a surrounding form or fieldset is changing its disabled state.",
107611
+ "description": "The method which is called on escape key press. Defaults to calling close()",
107655
107612
  "inheritedFrom": {
107656
- "name": "SbbFormAssociatedMixin",
107657
- "module": "core/mixins/form-associated-mixin.js"
107613
+ "name": "SbbOpenCloseBaseElement",
107614
+ "module": "core/base-elements/open-close-base-element.js"
107658
107615
  }
107659
107616
  },
107660
107617
  {
107661
107618
  "kind": "method",
107662
- "name": "checkValidity",
107619
+ "name": "open",
107663
107620
  "privacy": "public",
107664
107621
  "return": {
107665
107622
  "type": {
107666
- "text": "boolean"
107623
+ "text": "void"
107667
107624
  }
107668
107625
  },
107669
- "description": "Returns true if this element has no validity problems; false otherwise.\nFires an invalid event at the element in the latter case.",
107626
+ "description": "Opens the menu on trigger click.",
107670
107627
  "inheritedFrom": {
107671
- "name": "SbbFormAssociatedMixin",
107672
- "module": "core/mixins/form-associated-mixin.js"
107628
+ "name": "SbbOpenCloseBaseElement",
107629
+ "module": "core/base-elements/open-close-base-element.js"
107673
107630
  }
107674
107631
  },
107675
107632
  {
107676
107633
  "kind": "method",
107677
- "name": "reportValidity",
107634
+ "name": "close",
107678
107635
  "privacy": "public",
107679
107636
  "return": {
107680
107637
  "type": {
107681
- "text": "boolean"
107638
+ "text": "void"
107682
107639
  }
107683
107640
  },
107684
- "description": "Returns true if this element has no validity problems; otherwise,\nreturns false, fires an invalid event at the element,\nand (if the event isn't canceled) reports the problem to the user.",
107641
+ "description": "Closes the menu and all its nested menus.",
107685
107642
  "inheritedFrom": {
107686
- "name": "SbbFormAssociatedMixin",
107687
- "module": "core/mixins/form-associated-mixin.js"
107643
+ "name": "SbbOpenCloseBaseElement",
107644
+ "module": "core/base-elements/open-close-base-element.js"
107688
107645
  }
107689
107646
  },
107690
107647
  {
107691
107648
  "kind": "method",
107692
- "name": "setCustomValidity",
107649
+ "name": "closeAll",
107693
107650
  "privacy": "public",
107694
107651
  "return": {
107695
107652
  "type": {
107696
107653
  "text": "void"
107697
107654
  }
107698
107655
  },
107656
+ "description": "Closes the menu and all related menus (nested and parent menus)."
107657
+ },
107658
+ {
107659
+ "kind": "method",
107660
+ "name": "_close",
107661
+ "privacy": "private",
107662
+ "return": {
107663
+ "type": {
107664
+ "text": "void"
107665
+ }
107666
+ },
107699
107667
  "parameters": [
107700
107668
  {
107701
- "name": "message",
107702
- "type": {
107703
- "text": "string"
107704
- }
107669
+ "name": "closeAll",
107670
+ "default": "false",
107671
+ "description": "If true, it ensures animations are correct by toggling some states when closing all related menus at once.",
107672
+ "optional": true
107705
107673
  }
107706
- ],
107707
- "description": "Sets the custom validity message for this element. Use the empty string\nto indicate that the element does not have a custom validity error.",
107708
- "inheritedFrom": {
107709
- "name": "SbbFormAssociatedMixin",
107710
- "module": "core/mixins/form-associated-mixin.js"
107711
- }
107674
+ ]
107712
107675
  },
107713
107676
  {
107714
107677
  "kind": "method",
107715
- "name": "_hasDisabledAncestor",
107678
+ "name": "_isZeroAnimationDuration",
107716
107679
  "privacy": "private",
107717
107680
  "return": {
107718
107681
  "type": {
107719
107682
  "text": "boolean"
107720
107683
  }
107721
- },
107722
- "inheritedFrom": {
107723
- "name": "SbbFormAssociatedMixin",
107724
- "module": "core/mixins/form-associated-mixin.js"
107725
107684
  }
107726
107685
  },
107727
107686
  {
107728
107687
  "kind": "method",
107729
- "name": "updateFormValue",
107730
- "privacy": "protected",
107688
+ "name": "_handleOpening",
107689
+ "privacy": "private",
107731
107690
  "return": {
107732
107691
  "type": {
107733
107692
  "text": "void"
107734
107693
  }
107735
- },
107736
- "description": "Should be called when form value is changed.\nAdapts and sets the formValue in the supported format (string | FormData | File | null)\nhttps://developer.mozilla.org/en-US/docs/Web/API/ElementInternals/setFormValue",
107737
- "inheritedFrom": {
107738
- "name": "SbbFormAssociatedMixin",
107739
- "module": "core/mixins/form-associated-mixin.js"
107740
107694
  }
107741
107695
  },
107742
107696
  {
107743
107697
  "kind": "method",
107744
- "name": "formState",
107745
- "privacy": "protected",
107698
+ "name": "_handleClosing",
107699
+ "privacy": "private",
107746
107700
  "return": {
107747
107701
  "type": {
107748
- "text": "FormRestoreState"
107702
+ "text": "void"
107749
107703
  }
107750
- },
107751
- "inheritedFrom": {
107752
- "name": "SbbFormAssociatedMixin",
107753
- "module": "core/mixins/form-associated-mixin.js"
107754
107704
  }
107755
107705
  },
107756
107706
  {
107757
107707
  "kind": "method",
107758
- "name": "setValidityFlag",
107759
- "privacy": "protected",
107708
+ "name": "_handleKeyDown",
107709
+ "privacy": "private",
107760
107710
  "return": {
107761
107711
  "type": {
107762
107712
  "text": "void"
@@ -107764,35 +107714,37 @@
107764
107714
  },
107765
107715
  "parameters": [
107766
107716
  {
107767
- "name": "flag",
107768
- "type": {
107769
- "text": "T"
107770
- }
107771
- },
107772
- {
107773
- "name": "message",
107774
- "type": {
107775
- "text": "string"
107776
- }
107777
- },
107778
- {
107779
- "name": "flagValue",
107780
- "optional": true,
107717
+ "name": "evt",
107781
107718
  "type": {
107782
- "text": "ValidityStateFlags[T]"
107719
+ "text": "KeyboardEvent"
107783
107720
  }
107784
107721
  }
107785
- ],
107786
- "description": "Marks this element as suffering from the constraint indicated by the\nflag argument and associates the given message to it.\nNote that only one message is displayed at a time and custom messages by\nconsumers are always displayed before internal messages and internal\nmessages are displayed in the order they were added.\nTo set/define custom validity state flags, you need to extend the\nValidityState prototype (and the CustomValidityState interface).",
107787
- "inheritedFrom": {
107788
- "name": "SbbFormAssociatedMixin",
107789
- "module": "core/mixins/form-associated-mixin.js"
107722
+ ]
107723
+ },
107724
+ {
107725
+ "kind": "method",
107726
+ "name": "_configureTrigger",
107727
+ "privacy": "private",
107728
+ "return": {
107729
+ "type": {
107730
+ "text": "void"
107731
+ }
107790
107732
  }
107791
107733
  },
107792
107734
  {
107793
107735
  "kind": "method",
107794
- "name": "removeValidityFlag",
107795
- "privacy": "protected",
107736
+ "name": "_attachWindowEvents",
107737
+ "privacy": "private",
107738
+ "return": {
107739
+ "type": {
107740
+ "text": "void"
107741
+ }
107742
+ }
107743
+ },
107744
+ {
107745
+ "kind": "method",
107746
+ "name": "_interactiveElementClick",
107747
+ "privacy": "private",
107796
107748
  "return": {
107797
107749
  "type": {
107798
107750
  "text": "void"
@@ -107800,158 +107752,250 @@
107800
107752
  },
107801
107753
  "parameters": [
107802
107754
  {
107803
- "name": "flag",
107755
+ "name": "event",
107804
107756
  "type": {
107805
- "text": "T"
107757
+ "text": "Event"
107806
107758
  }
107807
107759
  }
107808
- ],
107809
- "description": "Removes the validity state flag entry and updates validity state.",
107810
- "inheritedFrom": {
107811
- "name": "SbbFormAssociatedMixin",
107812
- "module": "core/mixins/form-associated-mixin.js"
107813
- }
107760
+ ]
107761
+ },
107762
+ {
107763
+ "kind": "field",
107764
+ "name": "_pointerDownListener",
107765
+ "privacy": "private"
107766
+ },
107767
+ {
107768
+ "kind": "field",
107769
+ "name": "_closeOnBackdropClick",
107770
+ "privacy": "private"
107814
107771
  },
107815
107772
  {
107816
107773
  "kind": "method",
107817
- "name": "validate",
107818
- "privacy": "protected",
107774
+ "name": "_nestedMenus",
107775
+ "privacy": "private",
107819
107776
  "return": {
107820
107777
  "type": {
107821
- "text": "void"
107778
+ "text": "SbbMenuElement[]"
107822
107779
  }
107823
107780
  },
107824
- "description": "To be called whenever the current element needs to be validated.",
107825
- "inheritedFrom": {
107826
- "name": "SbbFormAssociatedMixin",
107827
- "module": "core/mixins/form-associated-mixin.js"
107781
+ "description": "Converts the linked list into an array of SbbMenuElement."
107782
+ },
107783
+ {
107784
+ "kind": "method",
107785
+ "name": "_parentMenu",
107786
+ "privacy": "private",
107787
+ "return": {
107788
+ "type": {
107789
+ "text": "SbbMenuElement | null"
107790
+ }
107828
107791
  }
107829
107792
  },
107830
107793
  {
107831
107794
  "kind": "method",
107832
- "name": "shouldValidate",
107833
- "privacy": "protected",
107795
+ "name": "_mainMenu",
107796
+ "privacy": "private",
107797
+ "return": {
107798
+ "type": {
107799
+ "text": "SbbMenuElement"
107800
+ }
107801
+ },
107802
+ "description": "The outermost menu."
107803
+ },
107804
+ {
107805
+ "kind": "method",
107806
+ "name": "_isNested",
107807
+ "privacy": "private",
107834
107808
  "return": {
107835
107809
  "type": {
107836
107810
  "text": "boolean"
107837
107811
  }
107812
+ }
107813
+ },
107814
+ {
107815
+ "kind": "method",
107816
+ "name": "_updateNestedInert",
107817
+ "privacy": "private",
107818
+ "return": {
107819
+ "type": {
107820
+ "text": "void"
107821
+ }
107822
+ }
107823
+ },
107824
+ {
107825
+ "kind": "method",
107826
+ "name": "_handleMouseOver",
107827
+ "privacy": "private",
107828
+ "return": {
107829
+ "type": {
107830
+ "text": "void"
107831
+ }
107838
107832
  },
107839
107833
  "parameters": [
107840
107834
  {
107841
- "name": "name",
107835
+ "name": "event",
107842
107836
  "type": {
107843
- "text": "PropertyKey | undefined"
107837
+ "text": "MouseEvent"
107844
107838
  }
107845
107839
  }
107846
- ],
107847
- "description": "Whether validation should be run on a property change with the given name.",
107848
- "inheritedFrom": {
107849
- "name": "SbbFormAssociatedMixin",
107850
- "module": "core/mixins/form-associated-mixin.js"
107851
- }
107840
+ ]
107852
107841
  },
107853
107842
  {
107854
107843
  "kind": "method",
107855
- "name": "_setInternalValidity",
107844
+ "name": "_onMenuAnimationEnd",
107856
107845
  "privacy": "private",
107857
107846
  "return": {
107858
107847
  "type": {
107859
107848
  "text": "void"
107860
107849
  }
107861
107850
  },
107862
- "inheritedFrom": {
107863
- "name": "SbbFormAssociatedMixin",
107864
- "module": "core/mixins/form-associated-mixin.js"
107851
+ "parameters": [
107852
+ {
107853
+ "name": "event",
107854
+ "type": {
107855
+ "text": "AnimationEvent"
107856
+ }
107857
+ }
107858
+ ]
107859
+ },
107860
+ {
107861
+ "kind": "method",
107862
+ "name": "_setMenuPosition",
107863
+ "privacy": "private",
107864
+ "return": {
107865
+ "type": {
107866
+ "text": "void"
107867
+ }
107865
107868
  }
107866
107869
  },
107867
107870
  {
107868
- "kind": "field",
107869
- "name": "_preventScrollOnSpaceKeydown",
107871
+ "kind": "method",
107872
+ "name": "_syncNegative",
107870
107873
  "privacy": "private",
107871
- "description": "Prevents scrolling from pressing Space, when the event target is an action element.\nAlso sets active state.",
107872
- "parameters": [
107873
- {
107874
- "description": "The origin event.",
107875
- "name": "event"
107874
+ "return": {
107875
+ "type": {
107876
+ "text": "void"
107876
107877
  }
107877
- ],
107878
- "inheritedFrom": {
107879
- "name": "SbbButtonLikeBaseElement",
107880
- "module": "core/base-elements/button-base-element.js"
107881
107878
  }
107882
107879
  },
107883
107880
  {
107884
- "kind": "field",
107885
- "name": "_removeActiveMarker",
107881
+ "kind": "method",
107882
+ "name": "_isMobile",
107886
107883
  "privacy": "private",
107884
+ "return": {
107885
+ "type": {
107886
+ "text": "boolean"
107887
+ }
107888
+ }
107889
+ },
107890
+ {
107891
+ "kind": "field",
107892
+ "name": "events",
107893
+ "privacy": "public",
107894
+ "static": true,
107895
+ "readonly": true,
107896
+ "default": "{ beforeopen: 'beforeopen', open: 'open', beforeclose: 'beforeclose', close: 'close', }",
107897
+ "type": {
107898
+ "text": "{\n beforeopen: 'beforeopen',\n open: 'open',\n beforeclose: 'beforeclose',\n close: 'close',\n }"
107899
+ },
107887
107900
  "inheritedFrom": {
107888
- "name": "SbbButtonLikeBaseElement",
107889
- "module": "core/base-elements/button-base-element.js"
107901
+ "name": "SbbOpenCloseBaseElement",
107902
+ "module": "core/base-elements/open-close-base-element.js"
107890
107903
  }
107891
107904
  },
107892
107905
  {
107893
107906
  "kind": "field",
107894
- "name": "_dispatchClickEventOnSpaceKeyup",
107895
- "privacy": "private",
107896
- "description": "Dispatches a 'click' PointerEvent if the original keyboard event is a 'Space' press.\nAs verified with the native button, when 'Space' is pressed, a 'click' event is dispatched\nafter the 'keyup' event.",
107897
- "parameters": [
107898
- {
107899
- "description": "The origin event.",
107900
- "name": "event"
107901
- }
107902
- ],
107907
+ "name": "state",
107908
+ "privacy": "protected",
107909
+ "description": "The state of the component.",
107910
+ "type": {
107911
+ "text": "SbbOpenedClosedState"
107912
+ },
107913
+ "default": "'closed'",
107903
107914
  "inheritedFrom": {
107904
- "name": "SbbButtonLikeBaseElement",
107905
- "module": "core/base-elements/button-base-element.js"
107915
+ "name": "SbbOpenCloseBaseElement",
107916
+ "module": "core/base-elements/open-close-base-element.js"
107906
107917
  }
107907
107918
  },
107908
107919
  {
107909
107920
  "kind": "field",
107910
- "name": "_dispatchClickEvent",
107921
+ "name": "_state",
107922
+ "type": {
107923
+ "text": "SbbOpenedClosedState"
107924
+ },
107911
107925
  "privacy": "private",
107912
107926
  "inheritedFrom": {
107913
- "name": "SbbButtonLikeBaseElement",
107914
- "module": "core/base-elements/button-base-element.js"
107927
+ "name": "SbbOpenCloseBaseElement",
107928
+ "module": "core/base-elements/open-close-base-element.js"
107915
107929
  }
107916
107930
  },
107917
107931
  {
107918
107932
  "kind": "field",
107919
- "name": "maybeDisabled",
107933
+ "name": "isOpen",
107920
107934
  "type": {
107921
- "text": "boolean | undefined"
107935
+ "text": "boolean"
107922
107936
  },
107923
- "privacy": "protected",
107937
+ "privacy": "public",
107938
+ "description": "Whether the element is open.",
107924
107939
  "readonly": true,
107925
107940
  "inheritedFrom": {
107926
- "name": "SbbActionBaseElement",
107927
- "module": "core/base-elements/action-base-element.js"
107941
+ "name": "SbbOpenCloseBaseElement",
107942
+ "module": "core/base-elements/open-close-base-element.js"
107928
107943
  }
107929
107944
  },
107930
107945
  {
107931
- "kind": "field",
107932
- "name": "maybeDisabledInteractive",
107933
- "type": {
107934
- "text": "boolean | undefined"
107946
+ "kind": "method",
107947
+ "name": "dispatchBeforeOpenEvent",
107948
+ "privacy": "protected",
107949
+ "return": {
107950
+ "type": {
107951
+ "text": "boolean"
107952
+ }
107935
107953
  },
107954
+ "inheritedFrom": {
107955
+ "name": "SbbOpenCloseBaseElement",
107956
+ "module": "core/base-elements/open-close-base-element.js"
107957
+ }
107958
+ },
107959
+ {
107960
+ "kind": "method",
107961
+ "name": "dispatchOpenEvent",
107936
107962
  "privacy": "protected",
107937
- "readonly": true,
107963
+ "return": {
107964
+ "type": {
107965
+ "text": "boolean"
107966
+ }
107967
+ },
107938
107968
  "inheritedFrom": {
107939
- "name": "SbbActionBaseElement",
107940
- "module": "core/base-elements/action-base-element.js"
107969
+ "name": "SbbOpenCloseBaseElement",
107970
+ "module": "core/base-elements/open-close-base-element.js"
107941
107971
  }
107942
107972
  },
107943
107973
  {
107944
107974
  "kind": "method",
107945
- "name": "setupBaseEventHandlers",
107975
+ "name": "dispatchBeforeCloseEvent",
107946
107976
  "privacy": "protected",
107947
107977
  "return": {
107948
107978
  "type": {
107949
- "text": "void"
107979
+ "text": "boolean"
107950
107980
  }
107951
107981
  },
107952
107982
  "inheritedFrom": {
107953
- "name": "SbbActionBaseElement",
107954
- "module": "core/base-elements/action-base-element.js"
107983
+ "name": "SbbOpenCloseBaseElement",
107984
+ "module": "core/base-elements/open-close-base-element.js"
107985
+ }
107986
+ },
107987
+ {
107988
+ "kind": "method",
107989
+ "name": "dispatchCloseEvent",
107990
+ "privacy": "protected",
107991
+ "return": {
107992
+ "type": {
107993
+ "text": "boolean"
107994
+ }
107995
+ },
107996
+ "inheritedFrom": {
107997
+ "name": "SbbOpenCloseBaseElement",
107998
+ "module": "core/base-elements/open-close-base-element.js"
107955
107999
  }
107956
108000
  },
107957
108001
  {
@@ -108060,110 +108104,66 @@
108060
108104
  }
108061
108105
  }
108062
108106
  ],
108063
- "mixins": [
108064
- {
108065
- "name": "SbbDisabledTabIndexActionMixin",
108066
- "module": "core/mixins.js"
108067
- },
108107
+ "attributes": [
108068
108108
  {
108069
- "name": "SbbMenuActionCommonElementMixin",
108070
- "module": "menu/common/menu-action-common.js"
108109
+ "name": "trigger",
108110
+ "type": {
108111
+ "text": "HTMLElement | null"
108112
+ },
108113
+ "default": "null",
108114
+ "description": "The element that will trigger the menu overlay.\n\nFor attribute usage, provide an id reference.",
108115
+ "fieldName": "trigger"
108071
108116
  }
108072
108117
  ],
108073
108118
  "superclass": {
108074
- "name": "SbbButtonBaseElement",
108119
+ "name": "SbbOpenCloseBaseElement",
108075
108120
  "module": "core/base-elements.js"
108076
108121
  },
108077
- "tagName": "sbb-menu-button",
108122
+ "tagName": "sbb-menu",
108078
108123
  "customElement": true,
108079
- "attributes": [
108080
- {
108081
- "name": "disabled-interactive",
108082
- "type": {
108083
- "text": "boolean"
108084
- },
108085
- "default": "false",
108086
- "description": "Whether the button should be aria-disabled but stay interactive.",
108087
- "fieldName": "disabledInteractive",
108088
- "inheritedFrom": {
108089
- "name": "SbbDisabledInteractiveMixin",
108090
- "module": "core/mixins/disabled-mixin.js"
108091
- }
108092
- },
108093
- {
108094
- "name": "disabled",
108095
- "description": "Whether the component is disabled.",
108096
- "default": "false",
108097
- "type": {
108098
- "text": "boolean"
108099
- },
108100
- "fieldName": "disabled",
108101
- "inheritedFrom": {
108102
- "name": "SbbDisabledMixin",
108103
- "module": "core/mixins/disabled-mixin.js"
108104
- }
108105
- },
108106
- {
108107
- "name": "icon-name",
108108
- "type": {
108109
- "text": "string"
108110
- },
108111
- "default": "''",
108112
- "description": "The icon name we want to use, choose from the small icon variants\nfrom the ui-icons category from here\nhttps://icons.app.sbb.ch.",
108113
- "fieldName": "iconName",
108114
- "inheritedFrom": {
108115
- "name": "SbbIconNameMixin",
108116
- "module": "icon/icon-name-mixin.js"
108117
- }
108118
- },
108124
+ "events": [
108119
108125
  {
108120
- "name": "value",
108126
+ "name": "beforeopen",
108121
108127
  "type": {
108122
- "text": "string"
108128
+ "text": "Event"
108123
108129
  },
108124
- "default": "''",
108125
- "description": "Value of the form element.",
108126
- "fieldName": "value",
108130
+ "description": "Emits whenever the component starts the opening transition. Can be canceled.",
108127
108131
  "inheritedFrom": {
108128
- "name": "SbbButtonBaseElement",
108129
- "module": "core/base-elements/button-base-element.js"
108132
+ "name": "SbbOpenCloseBaseElement",
108133
+ "module": "core/base-elements/open-close-base-element.js"
108130
108134
  }
108131
108135
  },
108132
108136
  {
108133
- "name": "type",
108134
- "description": "The type attribute to use for the button.",
108135
- "default": "'button'",
108137
+ "name": "open",
108136
108138
  "type": {
108137
- "text": "SbbButtonType"
108139
+ "text": "Event"
108138
108140
  },
108139
- "fieldName": "type",
108141
+ "description": "Emits whenever the component is opened.",
108140
108142
  "inheritedFrom": {
108141
- "name": "SbbButtonBaseElement",
108142
- "module": "core/base-elements/button-base-element.js"
108143
+ "name": "SbbOpenCloseBaseElement",
108144
+ "module": "core/base-elements/open-close-base-element.js"
108143
108145
  }
108144
108146
  },
108145
108147
  {
108146
- "name": "form",
108147
- "description": "The `<form>` element to associate the button with.",
108148
+ "name": "beforeclose",
108148
108149
  "type": {
108149
- "text": "HTMLFormElement | null"
108150
+ "text": "Event"
108150
108151
  },
108151
- "fieldName": "form",
108152
+ "description": "Emits whenever the component begins the closing transition. Can be canceled.",
108152
108153
  "inheritedFrom": {
108153
- "name": "SbbButtonBaseElement",
108154
- "module": "core/base-elements/button-base-element.js"
108154
+ "name": "SbbOpenCloseBaseElement",
108155
+ "module": "core/base-elements/open-close-base-element.js"
108155
108156
  }
108156
108157
  },
108157
108158
  {
108158
- "name": "name",
108159
- "description": "Name of the form element. Will be read from name attribute.",
108159
+ "name": "close",
108160
108160
  "type": {
108161
- "text": "string"
108161
+ "text": "Event"
108162
108162
  },
108163
- "fieldName": "name",
108163
+ "description": "Emits whenever the component is closed.",
108164
108164
  "inheritedFrom": {
108165
- "name": "SbbFormAssociatedMixin",
108166
- "module": "core/mixins/form-associated-mixin.js"
108165
+ "name": "SbbOpenCloseBaseElement",
108166
+ "module": "core/base-elements/open-close-base-element.js"
108167
108167
  }
108168
108168
  }
108169
108169
  ]
@@ -108172,10 +108172,10 @@
108172
108172
  "exports": [
108173
108173
  {
108174
108174
  "kind": "js",
108175
- "name": "SbbMenuButtonElement",
108175
+ "name": "SbbMenuElement",
108176
108176
  "declaration": {
108177
- "name": "SbbMenuButtonElement",
108178
- "module": "menu/menu-button/menu-button.component.js"
108177
+ "name": "SbbMenuElement",
108178
+ "module": "menu/menu/menu.component.js"
108179
108179
  }
108180
108180
  }
108181
108181
  ]
@@ -122855,9 +122855,9 @@
122855
122855
  "privacy": "public",
122856
122856
  "static": true,
122857
122857
  "readonly": true,
122858
- "default": "{ validate: 'validate', resizechange: 'resizechange', }",
122858
+ "default": "{ validate: 'validate', resizechange: 'resizechange', active: 'active', }",
122859
122859
  "type": {
122860
- "text": "{\n validate: 'validate',\n resizechange: 'resizechange',\n }"
122860
+ "text": "{\n validate: 'validate',\n resizechange: 'resizechange',\n active: 'active',\n }"
122861
122861
  }
122862
122862
  },
122863
122863
  {
@@ -123085,6 +123085,13 @@
123085
123085
  }
123086
123086
  ],
123087
123087
  "events": [
123088
+ {
123089
+ "name": "active",
123090
+ "type": {
123091
+ "text": "Event"
123092
+ },
123093
+ "description": "The active event is dispatched when a step is activated."
123094
+ },
123088
123095
  {
123089
123096
  "name": "validate",
123090
123097
  "type": {
@@ -123967,109 +123974,364 @@
123967
123974
  }
123968
123975
  }
123969
123976
  ],
123970
- "mixins": [
123971
- {
123972
- "name": "SbbIconNameMixin",
123973
- "module": "icon.js"
123974
- },
123975
- {
123976
- "name": "SbbDisabledMixin",
123977
- "module": "core/mixins.js"
123978
- }
123979
- ],
123980
- "superclass": {
123981
- "name": "SbbButtonBaseElement",
123982
- "module": "core/base-elements.js"
123983
- },
123984
- "tagName": "sbb-step-label",
123985
- "customElement": true,
123977
+ "mixins": [
123978
+ {
123979
+ "name": "SbbIconNameMixin",
123980
+ "module": "icon.js"
123981
+ },
123982
+ {
123983
+ "name": "SbbDisabledMixin",
123984
+ "module": "core/mixins.js"
123985
+ }
123986
+ ],
123987
+ "superclass": {
123988
+ "name": "SbbButtonBaseElement",
123989
+ "module": "core/base-elements.js"
123990
+ },
123991
+ "tagName": "sbb-step-label",
123992
+ "customElement": true,
123993
+ "attributes": [
123994
+ {
123995
+ "name": "icon-name",
123996
+ "type": {
123997
+ "text": "string"
123998
+ },
123999
+ "default": "''",
124000
+ "description": "The icon name we want to use, choose from the small icon variants\nfrom the ui-icons category from here\nhttps://icons.app.sbb.ch.",
124001
+ "fieldName": "iconName",
124002
+ "inheritedFrom": {
124003
+ "name": "SbbIconNameMixin",
124004
+ "module": "icon/icon-name-mixin.js"
124005
+ }
124006
+ },
124007
+ {
124008
+ "name": "disabled",
124009
+ "description": "Whether the component is disabled.",
124010
+ "default": "false",
124011
+ "type": {
124012
+ "text": "boolean"
124013
+ },
124014
+ "fieldName": "disabled",
124015
+ "inheritedFrom": {
124016
+ "name": "SbbDisabledMixin",
124017
+ "module": "core/mixins/disabled-mixin.js"
124018
+ }
124019
+ },
124020
+ {
124021
+ "name": "value",
124022
+ "type": {
124023
+ "text": "string"
124024
+ },
124025
+ "default": "''",
124026
+ "description": "Value of the form element.",
124027
+ "fieldName": "value",
124028
+ "inheritedFrom": {
124029
+ "name": "SbbButtonBaseElement",
124030
+ "module": "core/base-elements/button-base-element.js"
124031
+ }
124032
+ },
124033
+ {
124034
+ "name": "type",
124035
+ "description": "The type attribute to use for the button.",
124036
+ "default": "'button'",
124037
+ "type": {
124038
+ "text": "SbbButtonType"
124039
+ },
124040
+ "fieldName": "type",
124041
+ "inheritedFrom": {
124042
+ "name": "SbbButtonBaseElement",
124043
+ "module": "core/base-elements/button-base-element.js"
124044
+ }
124045
+ },
124046
+ {
124047
+ "name": "form",
124048
+ "description": "The `<form>` element to associate the button with.",
124049
+ "type": {
124050
+ "text": "HTMLFormElement | null"
124051
+ },
124052
+ "fieldName": "form",
124053
+ "inheritedFrom": {
124054
+ "name": "SbbButtonBaseElement",
124055
+ "module": "core/base-elements/button-base-element.js"
124056
+ }
124057
+ },
124058
+ {
124059
+ "name": "name",
124060
+ "description": "Name of the form element. Will be read from name attribute.",
124061
+ "type": {
124062
+ "text": "string"
124063
+ },
124064
+ "fieldName": "name",
124065
+ "inheritedFrom": {
124066
+ "name": "SbbFormAssociatedMixin",
124067
+ "module": "core/mixins/form-associated-mixin.js"
124068
+ }
124069
+ }
124070
+ ]
124071
+ }
124072
+ ],
124073
+ "exports": [
124074
+ {
124075
+ "kind": "js",
124076
+ "name": "SbbStepLabelElement",
124077
+ "declaration": {
124078
+ "name": "SbbStepLabelElement",
124079
+ "module": "stepper/step-label/step-label.component.js"
124080
+ }
124081
+ }
124082
+ ]
124083
+ },
124084
+ {
124085
+ "kind": "javascript-module",
124086
+ "path": "table/table-wrapper/table-wrapper.component.js",
124087
+ "declarations": [
124088
+ {
124089
+ "kind": "class",
124090
+ "description": "Wraps a table to enhance its functionality.",
124091
+ "name": "SbbTableWrapperElement",
124092
+ "slots": [
124093
+ {
124094
+ "description": "Use the unnamed slot to add the table.",
124095
+ "name": ""
124096
+ }
124097
+ ],
124098
+ "members": [
124099
+ {
124100
+ "kind": "field",
124101
+ "name": "elementName",
124102
+ "type": {
124103
+ "text": "string"
124104
+ },
124105
+ "privacy": "public",
124106
+ "static": true,
124107
+ "readonly": true,
124108
+ "default": "'sbb-table-wrapper'",
124109
+ "inheritedFrom": {
124110
+ "name": "SbbElement",
124111
+ "module": "core/base-elements/element.js"
124112
+ }
124113
+ },
124114
+ {
124115
+ "kind": "field",
124116
+ "name": "role",
124117
+ "type": {
124118
+ "text": "string"
124119
+ },
124120
+ "privacy": "public",
124121
+ "static": true,
124122
+ "readonly": true,
124123
+ "default": "'section'"
124124
+ },
124125
+ {
124126
+ "kind": "field",
124127
+ "name": "focusable",
124128
+ "type": {
124129
+ "text": "boolean"
124130
+ },
124131
+ "privacy": "public",
124132
+ "default": "false",
124133
+ "description": "Whether the table wrapper is focusable.",
124134
+ "attribute": "focusable",
124135
+ "reflects": true
124136
+ },
124137
+ {
124138
+ "kind": "method",
124139
+ "name": "_updateScrollbarClass",
124140
+ "privacy": "private",
124141
+ "return": {
124142
+ "type": {
124143
+ "text": "void"
124144
+ }
124145
+ }
124146
+ },
124147
+ {
124148
+ "kind": "method",
124149
+ "name": "_checkHorizontalScrollbarOffset",
124150
+ "privacy": "private",
124151
+ "return": {
124152
+ "type": {
124153
+ "text": "void"
124154
+ }
124155
+ },
124156
+ "description": "Calculates whether the table is horizontally scrolled and adds the\ncorresponding class `sbb-table-wrapper-offset-${none | left | right | both}`"
124157
+ },
124158
+ {
124159
+ "kind": "method",
124160
+ "name": "_calculateScrollOffset",
124161
+ "privacy": "private",
124162
+ "return": {
124163
+ "type": {
124164
+ "text": "'none' | 'left' | 'right' | 'both'"
124165
+ }
124166
+ }
124167
+ },
124168
+ {
124169
+ "kind": "field",
124170
+ "name": "negative",
124171
+ "type": {
124172
+ "text": "boolean"
124173
+ },
124174
+ "privacy": "public",
124175
+ "default": "false",
124176
+ "description": "Negative coloring variant flag.",
124177
+ "attribute": "negative",
124178
+ "reflects": true,
124179
+ "inheritedFrom": {
124180
+ "name": "SbbNegativeMixin",
124181
+ "module": "core/mixins/negative-mixin.js"
124182
+ }
124183
+ },
124184
+ {
124185
+ "kind": "field",
124186
+ "name": "_hydrationRequired",
124187
+ "type": {
124188
+ "text": "boolean"
124189
+ },
124190
+ "privacy": "private",
124191
+ "default": "!!this.shadowRoot",
124192
+ "inheritedFrom": {
124193
+ "name": "SbbElement",
124194
+ "module": "core/base-elements/element.js"
124195
+ }
124196
+ },
124197
+ {
124198
+ "kind": "field",
124199
+ "name": "_hydrationComplete",
124200
+ "privacy": "private",
124201
+ "default": "new Promise<boolean>( (resolve) => (this._resolveHydration = resolve), )",
124202
+ "inheritedFrom": {
124203
+ "name": "SbbElement",
124204
+ "module": "core/base-elements/element.js"
124205
+ }
124206
+ },
124207
+ {
124208
+ "kind": "field",
124209
+ "name": "_resolveHydration",
124210
+ "type": {
124211
+ "text": "(hydrationRequired: boolean) => void"
124212
+ },
124213
+ "privacy": "private",
124214
+ "inheritedFrom": {
124215
+ "name": "SbbElement",
124216
+ "module": "core/base-elements/element.js"
124217
+ }
124218
+ },
124219
+ {
124220
+ "kind": "field",
124221
+ "name": "hydrationRequired",
124222
+ "type": {
124223
+ "text": "boolean"
124224
+ },
124225
+ "privacy": "protected",
124226
+ "description": "Returns whether hydration is required and not completed.",
124227
+ "readonly": true,
124228
+ "inheritedFrom": {
124229
+ "name": "SbbElement",
124230
+ "module": "core/base-elements/element.js"
124231
+ },
124232
+ "default": "!!this.shadowRoot"
124233
+ },
124234
+ {
124235
+ "kind": "method",
124236
+ "name": "toggleState",
124237
+ "privacy": "protected",
124238
+ "return": {
124239
+ "type": {
124240
+ "text": "void"
124241
+ }
124242
+ },
124243
+ "parameters": [
124244
+ {
124245
+ "name": "value",
124246
+ "type": {
124247
+ "text": "string"
124248
+ }
124249
+ },
124250
+ {
124251
+ "name": "force",
124252
+ "optional": true,
124253
+ "type": {
124254
+ "text": "boolean"
124255
+ }
124256
+ }
124257
+ ],
124258
+ "inheritedFrom": {
124259
+ "name": "SbbElement",
124260
+ "module": "core/base-elements/element.js"
124261
+ }
124262
+ },
124263
+ {
124264
+ "kind": "field",
124265
+ "name": "['_$sbbElement$']",
124266
+ "type": {
124267
+ "text": "boolean"
124268
+ },
124269
+ "privacy": "public",
124270
+ "static": true,
124271
+ "default": "true",
124272
+ "inheritedFrom": {
124273
+ "name": "SbbElement",
124274
+ "module": "core/base-elements/element.js"
124275
+ }
124276
+ },
124277
+ {
124278
+ "kind": "field",
124279
+ "name": "_controllers",
124280
+ "type": {
124281
+ "text": "Set<SbbReactiveController> | undefined"
124282
+ },
124283
+ "privacy": "private",
124284
+ "inheritedFrom": {
124285
+ "name": "SbbElement",
124286
+ "module": "core/base-elements/element.js"
124287
+ }
124288
+ }
124289
+ ],
123986
124290
  "attributes": [
123987
124291
  {
123988
- "name": "icon-name",
123989
- "type": {
123990
- "text": "string"
123991
- },
123992
- "default": "''",
123993
- "description": "The icon name we want to use, choose from the small icon variants\nfrom the ui-icons category from here\nhttps://icons.app.sbb.ch.",
123994
- "fieldName": "iconName",
123995
- "inheritedFrom": {
123996
- "name": "SbbIconNameMixin",
123997
- "module": "icon/icon-name-mixin.js"
123998
- }
123999
- },
124000
- {
124001
- "name": "disabled",
124002
- "description": "Whether the component is disabled.",
124003
- "default": "false",
124292
+ "name": "focusable",
124004
124293
  "type": {
124005
124294
  "text": "boolean"
124006
124295
  },
124007
- "fieldName": "disabled",
124008
- "inheritedFrom": {
124009
- "name": "SbbDisabledMixin",
124010
- "module": "core/mixins/disabled-mixin.js"
124011
- }
124012
- },
124013
- {
124014
- "name": "value",
124015
- "type": {
124016
- "text": "string"
124017
- },
124018
- "default": "''",
124019
- "description": "Value of the form element.",
124020
- "fieldName": "value",
124021
- "inheritedFrom": {
124022
- "name": "SbbButtonBaseElement",
124023
- "module": "core/base-elements/button-base-element.js"
124024
- }
124025
- },
124026
- {
124027
- "name": "type",
124028
- "description": "The type attribute to use for the button.",
124029
- "default": "'button'",
124030
- "type": {
124031
- "text": "SbbButtonType"
124032
- },
124033
- "fieldName": "type",
124034
- "inheritedFrom": {
124035
- "name": "SbbButtonBaseElement",
124036
- "module": "core/base-elements/button-base-element.js"
124037
- }
124296
+ "default": "false",
124297
+ "description": "Whether the table wrapper is focusable.",
124298
+ "fieldName": "focusable"
124038
124299
  },
124039
124300
  {
124040
- "name": "form",
124041
- "description": "The `<form>` element to associate the button with.",
124301
+ "name": "negative",
124042
124302
  "type": {
124043
- "text": "HTMLFormElement | null"
124303
+ "text": "boolean"
124044
124304
  },
124045
- "fieldName": "form",
124305
+ "default": "false",
124306
+ "description": "Negative coloring variant flag.",
124307
+ "fieldName": "negative",
124046
124308
  "inheritedFrom": {
124047
- "name": "SbbButtonBaseElement",
124048
- "module": "core/base-elements/button-base-element.js"
124309
+ "name": "SbbNegativeMixin",
124310
+ "module": "core/mixins/negative-mixin.js"
124049
124311
  }
124050
- },
124312
+ }
124313
+ ],
124314
+ "mixins": [
124051
124315
  {
124052
- "name": "name",
124053
- "description": "Name of the form element. Will be read from name attribute.",
124054
- "type": {
124055
- "text": "string"
124056
- },
124057
- "fieldName": "name",
124058
- "inheritedFrom": {
124059
- "name": "SbbFormAssociatedMixin",
124060
- "module": "core/mixins/form-associated-mixin.js"
124061
- }
124316
+ "name": "SbbNegativeMixin",
124317
+ "module": "core/mixins.js"
124062
124318
  }
124063
- ]
124319
+ ],
124320
+ "superclass": {
124321
+ "name": "SbbElement",
124322
+ "module": "core/base-elements.js"
124323
+ },
124324
+ "tagName": "sbb-table-wrapper",
124325
+ "customElement": true
124064
124326
  }
124065
124327
  ],
124066
124328
  "exports": [
124067
124329
  {
124068
124330
  "kind": "js",
124069
- "name": "SbbStepLabelElement",
124331
+ "name": "SbbTableWrapperElement",
124070
124332
  "declaration": {
124071
- "name": "SbbStepLabelElement",
124072
- "module": "stepper/step-label/step-label.component.js"
124333
+ "name": "SbbTableWrapperElement",
124334
+ "module": "table/table-wrapper/table-wrapper.component.js"
124073
124335
  }
124074
124336
  }
124075
124337
  ]
@@ -124705,261 +124967,6 @@
124705
124967
  }
124706
124968
  ]
124707
124969
  },
124708
- {
124709
- "kind": "javascript-module",
124710
- "path": "table/table-wrapper/table-wrapper.component.js",
124711
- "declarations": [
124712
- {
124713
- "kind": "class",
124714
- "description": "Wraps a table to enhance its functionality.",
124715
- "name": "SbbTableWrapperElement",
124716
- "slots": [
124717
- {
124718
- "description": "Use the unnamed slot to add the table.",
124719
- "name": ""
124720
- }
124721
- ],
124722
- "members": [
124723
- {
124724
- "kind": "field",
124725
- "name": "elementName",
124726
- "type": {
124727
- "text": "string"
124728
- },
124729
- "privacy": "public",
124730
- "static": true,
124731
- "readonly": true,
124732
- "default": "'sbb-table-wrapper'",
124733
- "inheritedFrom": {
124734
- "name": "SbbElement",
124735
- "module": "core/base-elements/element.js"
124736
- }
124737
- },
124738
- {
124739
- "kind": "field",
124740
- "name": "role",
124741
- "type": {
124742
- "text": "string"
124743
- },
124744
- "privacy": "public",
124745
- "static": true,
124746
- "readonly": true,
124747
- "default": "'section'"
124748
- },
124749
- {
124750
- "kind": "field",
124751
- "name": "focusable",
124752
- "type": {
124753
- "text": "boolean"
124754
- },
124755
- "privacy": "public",
124756
- "default": "false",
124757
- "description": "Whether the table wrapper is focusable.",
124758
- "attribute": "focusable",
124759
- "reflects": true
124760
- },
124761
- {
124762
- "kind": "method",
124763
- "name": "_updateScrollbarClass",
124764
- "privacy": "private",
124765
- "return": {
124766
- "type": {
124767
- "text": "void"
124768
- }
124769
- }
124770
- },
124771
- {
124772
- "kind": "method",
124773
- "name": "_checkHorizontalScrollbarOffset",
124774
- "privacy": "private",
124775
- "return": {
124776
- "type": {
124777
- "text": "void"
124778
- }
124779
- },
124780
- "description": "Calculates whether the table is horizontally scrolled and adds the\ncorresponding class `sbb-table-wrapper-offset-${none | left | right | both}`"
124781
- },
124782
- {
124783
- "kind": "method",
124784
- "name": "_calculateScrollOffset",
124785
- "privacy": "private",
124786
- "return": {
124787
- "type": {
124788
- "text": "'none' | 'left' | 'right' | 'both'"
124789
- }
124790
- }
124791
- },
124792
- {
124793
- "kind": "field",
124794
- "name": "negative",
124795
- "type": {
124796
- "text": "boolean"
124797
- },
124798
- "privacy": "public",
124799
- "default": "false",
124800
- "description": "Negative coloring variant flag.",
124801
- "attribute": "negative",
124802
- "reflects": true,
124803
- "inheritedFrom": {
124804
- "name": "SbbNegativeMixin",
124805
- "module": "core/mixins/negative-mixin.js"
124806
- }
124807
- },
124808
- {
124809
- "kind": "field",
124810
- "name": "_hydrationRequired",
124811
- "type": {
124812
- "text": "boolean"
124813
- },
124814
- "privacy": "private",
124815
- "default": "!!this.shadowRoot",
124816
- "inheritedFrom": {
124817
- "name": "SbbElement",
124818
- "module": "core/base-elements/element.js"
124819
- }
124820
- },
124821
- {
124822
- "kind": "field",
124823
- "name": "_hydrationComplete",
124824
- "privacy": "private",
124825
- "default": "new Promise<boolean>( (resolve) => (this._resolveHydration = resolve), )",
124826
- "inheritedFrom": {
124827
- "name": "SbbElement",
124828
- "module": "core/base-elements/element.js"
124829
- }
124830
- },
124831
- {
124832
- "kind": "field",
124833
- "name": "_resolveHydration",
124834
- "type": {
124835
- "text": "(hydrationRequired: boolean) => void"
124836
- },
124837
- "privacy": "private",
124838
- "inheritedFrom": {
124839
- "name": "SbbElement",
124840
- "module": "core/base-elements/element.js"
124841
- }
124842
- },
124843
- {
124844
- "kind": "field",
124845
- "name": "hydrationRequired",
124846
- "type": {
124847
- "text": "boolean"
124848
- },
124849
- "privacy": "protected",
124850
- "description": "Returns whether hydration is required and not completed.",
124851
- "readonly": true,
124852
- "inheritedFrom": {
124853
- "name": "SbbElement",
124854
- "module": "core/base-elements/element.js"
124855
- },
124856
- "default": "!!this.shadowRoot"
124857
- },
124858
- {
124859
- "kind": "method",
124860
- "name": "toggleState",
124861
- "privacy": "protected",
124862
- "return": {
124863
- "type": {
124864
- "text": "void"
124865
- }
124866
- },
124867
- "parameters": [
124868
- {
124869
- "name": "value",
124870
- "type": {
124871
- "text": "string"
124872
- }
124873
- },
124874
- {
124875
- "name": "force",
124876
- "optional": true,
124877
- "type": {
124878
- "text": "boolean"
124879
- }
124880
- }
124881
- ],
124882
- "inheritedFrom": {
124883
- "name": "SbbElement",
124884
- "module": "core/base-elements/element.js"
124885
- }
124886
- },
124887
- {
124888
- "kind": "field",
124889
- "name": "['_$sbbElement$']",
124890
- "type": {
124891
- "text": "boolean"
124892
- },
124893
- "privacy": "public",
124894
- "static": true,
124895
- "default": "true",
124896
- "inheritedFrom": {
124897
- "name": "SbbElement",
124898
- "module": "core/base-elements/element.js"
124899
- }
124900
- },
124901
- {
124902
- "kind": "field",
124903
- "name": "_controllers",
124904
- "type": {
124905
- "text": "Set<SbbReactiveController> | undefined"
124906
- },
124907
- "privacy": "private",
124908
- "inheritedFrom": {
124909
- "name": "SbbElement",
124910
- "module": "core/base-elements/element.js"
124911
- }
124912
- }
124913
- ],
124914
- "attributes": [
124915
- {
124916
- "name": "focusable",
124917
- "type": {
124918
- "text": "boolean"
124919
- },
124920
- "default": "false",
124921
- "description": "Whether the table wrapper is focusable.",
124922
- "fieldName": "focusable"
124923
- },
124924
- {
124925
- "name": "negative",
124926
- "type": {
124927
- "text": "boolean"
124928
- },
124929
- "default": "false",
124930
- "description": "Negative coloring variant flag.",
124931
- "fieldName": "negative",
124932
- "inheritedFrom": {
124933
- "name": "SbbNegativeMixin",
124934
- "module": "core/mixins/negative-mixin.js"
124935
- }
124936
- }
124937
- ],
124938
- "mixins": [
124939
- {
124940
- "name": "SbbNegativeMixin",
124941
- "module": "core/mixins.js"
124942
- }
124943
- ],
124944
- "superclass": {
124945
- "name": "SbbElement",
124946
- "module": "core/base-elements.js"
124947
- },
124948
- "tagName": "sbb-table-wrapper",
124949
- "customElement": true
124950
- }
124951
- ],
124952
- "exports": [
124953
- {
124954
- "kind": "js",
124955
- "name": "SbbTableWrapperElement",
124956
- "declaration": {
124957
- "name": "SbbTableWrapperElement",
124958
- "module": "table/table-wrapper/table-wrapper.component.js"
124959
- }
124960
- }
124961
- ]
124962
- },
124963
124970
  {
124964
124971
  "kind": "javascript-module",
124965
124972
  "path": "tabs/common/styles.js",