@sbb-esta/lyne-elements-dev 4.0.0-dev.1775721561 → 4.0.0-dev.1775737017

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 (2) hide show
  1. package/custom-elements.json +1527 -1527
  2. package/package.json +2 -2
@@ -71067,30 +71067,32 @@
71067
71067
  },
71068
71068
  {
71069
71069
  "kind": "javascript-module",
71070
- "path": "container/container/container.component.js",
71070
+ "path": "container/sticky-bar/sticky-bar.component.js",
71071
71071
  "declarations": [
71072
71072
  {
71073
71073
  "kind": "class",
71074
- "description": "It displays its content with the default page spacing.",
71075
- "name": "SbbContainerElement",
71074
+ "description": "A container that sticks to the bottom of the page if slotted into `sbb-container`.",
71075
+ "name": "SbbStickyBarElement",
71076
71076
  "cssProperties": [
71077
71077
  {
71078
- "description": "Use this variable to override the default page spacing. Note that overriding this will disable the standard responsive spacing behavior of the container.",
71079
- "name": "--sbb-page-spacing-padding"
71078
+ "description": "Block padding of the sticky bar.",
71079
+ "name": "--sbb-sticky-bar-padding-block",
71080
+ "default": "var(--sbb-spacing-responsive-xs)"
71081
+ },
71082
+ {
71083
+ "description": "Define an additional area where the sticky bar overlaps the following content on the bottom. This area becomes visible when the sticky bar transitions from sticky to the normal document flow.",
71084
+ "name": "--sbb-sticky-bar-bottom-overlapping-height",
71085
+ "default": "0px"
71086
+ },
71087
+ {
71088
+ "description": "To specify a custom stack order, the `z-index` can be overridden by defining this CSS variable.",
71089
+ "name": "--sbb-sticky-bar-z-index"
71080
71090
  }
71081
71091
  ],
71082
71092
  "slots": [
71083
71093
  {
71084
- "description": "Use the unnamed slot to add anything to the container.",
71094
+ "description": "Use the unnamed slot to add content to the sticky bar.",
71085
71095
  "name": ""
71086
- },
71087
- {
71088
- "description": "The slot used by the sbb-sticky-bar component.",
71089
- "name": "sticky-bar"
71090
- },
71091
- {
71092
- "description": "The slot used to slot an `sbb-image` to use as background.",
71093
- "name": "image"
71094
71096
  }
71095
71097
  ],
71096
71098
  "members": [
@@ -71103,7 +71105,7 @@
71103
71105
  "privacy": "public",
71104
71106
  "static": true,
71105
71107
  "readonly": true,
71106
- "default": "'sbb-container'",
71108
+ "default": "'sbb-sticky-bar'",
71107
71109
  "inheritedFrom": {
71108
71110
  "name": "SbbElement",
71109
71111
  "module": "core/base-elements/element.js"
@@ -71111,39 +71113,238 @@
71111
71113
  },
71112
71114
  {
71113
71115
  "kind": "field",
71114
- "name": "expanded",
71116
+ "name": "events",
71117
+ "privacy": "public",
71118
+ "static": true,
71119
+ "readonly": true,
71120
+ "default": "{ beforestick: 'beforestick', stick: 'stick', beforeunstick: 'beforeunstick', unstick: 'unstick', }",
71115
71121
  "type": {
71116
- "text": "boolean"
71122
+ "text": "{\n beforestick: 'beforestick',\n stick: 'stick',\n beforeunstick: 'beforeunstick',\n unstick: 'unstick',\n }"
71123
+ }
71124
+ },
71125
+ {
71126
+ "kind": "field",
71127
+ "name": "color",
71128
+ "type": {
71129
+ "text": "| 'white'\n | 'milk'\n | 'midnight'\n | 'charcoal'\n | null"
71117
71130
  },
71118
71131
  "privacy": "public",
71119
- "default": "false",
71120
- "description": "Whether the container is expanded.",
71121
- "attribute": "expanded",
71132
+ "default": "null",
71133
+ "description": "Color of the container, like transparent, white etc.",
71134
+ "attribute": "color",
71122
71135
  "reflects": true
71123
71136
  },
71124
71137
  {
71125
71138
  "kind": "field",
71126
- "name": "backgroundExpanded",
71139
+ "name": "size",
71127
71140
  "type": {
71128
- "text": "boolean"
71141
+ "text": "'m' | 's'"
71129
71142
  },
71130
71143
  "privacy": "public",
71131
- "default": "false",
71132
- "description": "Whether the background color is shown on full container width on large screens.",
71133
- "attribute": "background-expanded",
71144
+ "description": "Size of the container.",
71145
+ "default": "'m' / 's' (lean)",
71146
+ "attribute": "size",
71134
71147
  "reflects": true
71135
71148
  },
71136
71149
  {
71137
71150
  "kind": "field",
71138
- "name": "color",
71151
+ "name": "_state",
71152
+ "privacy": "private",
71153
+ "description": "The state of the component.",
71139
71154
  "type": {
71140
- "text": "| 'transparent'\n | 'white'\n | 'milk'\n | 'midnight'\n | 'charcoal'"
71155
+ "text": "StickyState"
71156
+ },
71157
+ "default": "'sticky'"
71158
+ },
71159
+ {
71160
+ "kind": "field",
71161
+ "name": "_stateInternal",
71162
+ "type": {
71163
+ "text": "StickyState"
71164
+ },
71165
+ "privacy": "private"
71166
+ },
71167
+ {
71168
+ "kind": "field",
71169
+ "name": "_intersector",
71170
+ "type": {
71171
+ "text": "HTMLSpanElement | undefined"
71172
+ },
71173
+ "privacy": "private"
71174
+ },
71175
+ {
71176
+ "kind": "field",
71177
+ "name": "_observer",
71178
+ "privacy": "private",
71179
+ "default": "new IntersectionController(this, { // Although `this` is observed, we have to postpone observing // into firstUpdated() to achieve a correct initial state. target: null, callback: (entries) => this._detectStickyState(entries[0]), })"
71180
+ },
71181
+ {
71182
+ "kind": "method",
71183
+ "name": "_isZeroAnimationDuration",
71184
+ "privacy": "private",
71185
+ "return": {
71186
+ "type": {
71187
+ "text": "boolean"
71188
+ }
71189
+ }
71190
+ },
71191
+ {
71192
+ "kind": "method",
71193
+ "name": "_detectStickyState",
71194
+ "privacy": "private",
71195
+ "return": {
71196
+ "type": {
71197
+ "text": "void"
71198
+ }
71141
71199
  },
71200
+ "parameters": [
71201
+ {
71202
+ "name": "entry",
71203
+ "type": {
71204
+ "text": "IntersectionObserverEntry"
71205
+ }
71206
+ }
71207
+ ]
71208
+ },
71209
+ {
71210
+ "kind": "method",
71211
+ "name": "stick",
71142
71212
  "privacy": "public",
71143
- "default": "'white'",
71144
- "description": "Color of the container, like transparent, white etc.",
71145
- "attribute": "color",
71146
- "reflects": true
71213
+ "return": {
71214
+ "type": {
71215
+ "text": "void"
71216
+ }
71217
+ },
71218
+ "description": "Animates from normal content flow position to `position: sticky`."
71219
+ },
71220
+ {
71221
+ "kind": "method",
71222
+ "name": "unstick",
71223
+ "privacy": "public",
71224
+ "return": {
71225
+ "type": {
71226
+ "text": "void"
71227
+ }
71228
+ },
71229
+ "description": "Animates `position: sticky` to normal content flow position."
71230
+ },
71231
+ {
71232
+ "kind": "method",
71233
+ "name": "_stickyCallback",
71234
+ "privacy": "private",
71235
+ "return": {
71236
+ "type": {
71237
+ "text": "void"
71238
+ }
71239
+ }
71240
+ },
71241
+ {
71242
+ "kind": "method",
71243
+ "name": "_unstickyCallback",
71244
+ "privacy": "private",
71245
+ "return": {
71246
+ "type": {
71247
+ "text": "void"
71248
+ }
71249
+ }
71250
+ },
71251
+ {
71252
+ "kind": "method",
71253
+ "name": "_onAnimationEnd",
71254
+ "privacy": "private",
71255
+ "return": {
71256
+ "type": {
71257
+ "text": "void"
71258
+ }
71259
+ },
71260
+ "parameters": [
71261
+ {
71262
+ "name": "event",
71263
+ "type": {
71264
+ "text": "AnimationEvent"
71265
+ }
71266
+ }
71267
+ ]
71268
+ },
71269
+ {
71270
+ "kind": "method",
71271
+ "name": "_dispatchBeforeStickEvent",
71272
+ "privacy": "private",
71273
+ "return": {
71274
+ "type": {
71275
+ "text": "boolean"
71276
+ }
71277
+ }
71278
+ },
71279
+ {
71280
+ "kind": "method",
71281
+ "name": "_dispatchBeforeUnStickEvent",
71282
+ "privacy": "private",
71283
+ "return": {
71284
+ "type": {
71285
+ "text": "boolean"
71286
+ }
71287
+ }
71288
+ },
71289
+ {
71290
+ "kind": "field",
71291
+ "name": "_updatePromise",
71292
+ "privacy": "private",
71293
+ "inheritedFrom": {
71294
+ "name": "SbbUpdateSchedulerMixin",
71295
+ "module": "core/mixins/update-scheduler-mixin.js"
71296
+ }
71297
+ },
71298
+ {
71299
+ "kind": "field",
71300
+ "name": "_updateResolve",
71301
+ "privacy": "private",
71302
+ "inheritedFrom": {
71303
+ "name": "SbbUpdateSchedulerMixin",
71304
+ "module": "core/mixins/update-scheduler-mixin.js"
71305
+ }
71306
+ },
71307
+ {
71308
+ "kind": "method",
71309
+ "name": "startUpdate",
71310
+ "privacy": "protected",
71311
+ "return": {
71312
+ "type": {
71313
+ "text": "void"
71314
+ }
71315
+ },
71316
+ "inheritedFrom": {
71317
+ "name": "SbbUpdateSchedulerMixin",
71318
+ "module": "core/mixins/update-scheduler-mixin.js"
71319
+ }
71320
+ },
71321
+ {
71322
+ "kind": "method",
71323
+ "name": "completeUpdate",
71324
+ "privacy": "protected",
71325
+ "return": {
71326
+ "type": {
71327
+ "text": "void"
71328
+ }
71329
+ },
71330
+ "inheritedFrom": {
71331
+ "name": "SbbUpdateSchedulerMixin",
71332
+ "module": "core/mixins/update-scheduler-mixin.js"
71333
+ }
71334
+ },
71335
+ {
71336
+ "kind": "method",
71337
+ "name": "getUpdateComplete",
71338
+ "privacy": "protected",
71339
+ "return": {
71340
+ "type": {
71341
+ "text": "Promise<boolean>"
71342
+ }
71343
+ },
71344
+ "inheritedFrom": {
71345
+ "name": "SbbUpdateSchedulerMixin",
71346
+ "module": "core/mixins/update-scheduler-mixin.js"
71347
+ }
71147
71348
  },
71148
71349
  {
71149
71350
  "kind": "field",
@@ -71405,198 +71606,613 @@
71405
71606
  }
71406
71607
  }
71407
71608
  ],
71408
- "attributes": [
71609
+ "events": [
71409
71610
  {
71410
- "name": "expanded",
71611
+ "name": "stick",
71411
71612
  "type": {
71412
- "text": "boolean"
71613
+ "text": "Event"
71413
71614
  },
71414
- "default": "false",
71415
- "description": "Whether the container is expanded.",
71416
- "fieldName": "expanded"
71615
+ "description": "Emits when the animation from normal content flow to `position: sticky` ends."
71417
71616
  },
71418
71617
  {
71419
- "name": "background-expanded",
71618
+ "name": "unstick",
71420
71619
  "type": {
71421
- "text": "boolean"
71620
+ "text": "Event"
71422
71621
  },
71423
- "default": "false",
71424
- "description": "Whether the background color is shown on full container width on large screens.",
71425
- "fieldName": "backgroundExpanded"
71622
+ "description": "Emits when the animation from `position: sticky` to normal content flow ends."
71623
+ },
71624
+ {
71625
+ "name": "beforestick",
71626
+ "type": {
71627
+ "text": "Event"
71628
+ },
71629
+ "description": "Emits when the animation from normal content flow to `position: sticky` starts. Can be canceled."
71426
71630
  },
71631
+ {
71632
+ "name": "beforeunstick",
71633
+ "type": {
71634
+ "text": "Event"
71635
+ },
71636
+ "description": "Emits when the animation from `position: sticky` to normal content flow starts. Can be canceled."
71637
+ }
71638
+ ],
71639
+ "attributes": [
71427
71640
  {
71428
71641
  "name": "color",
71429
71642
  "type": {
71430
- "text": "| 'transparent'\n | 'white'\n | 'milk'\n | 'midnight'\n | 'charcoal'"
71643
+ "text": "| 'white'\n | 'milk'\n | 'midnight'\n | 'charcoal'\n | null"
71431
71644
  },
71432
- "default": "'white'",
71645
+ "default": "null",
71433
71646
  "description": "Color of the container, like transparent, white etc.",
71434
71647
  "fieldName": "color"
71648
+ },
71649
+ {
71650
+ "name": "size",
71651
+ "type": {
71652
+ "text": "'m' | 's'"
71653
+ },
71654
+ "description": "Size of the container.",
71655
+ "default": "'m' / 's' (lean)",
71656
+ "fieldName": "size"
71657
+ }
71658
+ ],
71659
+ "mixins": [
71660
+ {
71661
+ "name": "SbbUpdateSchedulerMixin",
71662
+ "module": "core.js"
71435
71663
  }
71436
71664
  ],
71437
71665
  "superclass": {
71438
71666
  "name": "SbbElement",
71439
71667
  "module": "core.js"
71440
71668
  },
71441
- "tagName": "sbb-container",
71669
+ "tagName": "sbb-sticky-bar",
71442
71670
  "customElement": true
71443
71671
  }
71444
71672
  ],
71445
71673
  "exports": [
71446
71674
  {
71447
71675
  "kind": "js",
71448
- "name": "SbbContainerElement",
71676
+ "name": "SbbStickyBarElement",
71449
71677
  "declaration": {
71450
- "name": "SbbContainerElement",
71451
- "module": "container/container/container.component.js"
71678
+ "name": "SbbStickyBarElement",
71679
+ "module": "container/sticky-bar/sticky-bar.component.js"
71452
71680
  }
71453
71681
  }
71454
71682
  ]
71455
71683
  },
71456
71684
  {
71457
71685
  "kind": "javascript-module",
71458
- "path": "core/a11y/arrow-navigation.js",
71686
+ "path": "container/container/container.component.js",
71459
71687
  "declarations": [
71460
71688
  {
71461
- "kind": "function",
71462
- "name": "isArrowKeyPressed",
71463
- "return": {
71464
- "type": {
71465
- "text": "boolean"
71466
- }
71467
- },
71468
- "parameters": [
71689
+ "kind": "class",
71690
+ "description": "It displays its content with the default page spacing.",
71691
+ "name": "SbbContainerElement",
71692
+ "cssProperties": [
71469
71693
  {
71470
- "name": "event",
71471
- "type": {
71472
- "text": "KeyboardEvent"
71473
- },
71474
- "description": "The keyboard event to check."
71694
+ "description": "Use this variable to override the default page spacing. Note that overriding this will disable the standard responsive spacing behavior of the container.",
71695
+ "name": "--sbb-page-spacing-padding"
71475
71696
  }
71476
71697
  ],
71477
- "description": "Check if the key pressed is among those allowed for navigation."
71478
- },
71479
- {
71480
- "kind": "function",
71481
- "name": "isPreviousArrowKeyPressed",
71482
- "return": {
71483
- "type": {
71484
- "text": "boolean"
71698
+ "slots": [
71699
+ {
71700
+ "description": "Use the unnamed slot to add anything to the container.",
71701
+ "name": ""
71702
+ },
71703
+ {
71704
+ "description": "The slot used by the sbb-sticky-bar component.",
71705
+ "name": "sticky-bar"
71706
+ },
71707
+ {
71708
+ "description": "The slot used to slot an `sbb-image` to use as background.",
71709
+ "name": "image"
71485
71710
  }
71486
- },
71487
- "parameters": [
71711
+ ],
71712
+ "members": [
71488
71713
  {
71489
- "name": "event",
71714
+ "kind": "field",
71715
+ "name": "elementName",
71490
71716
  "type": {
71491
- "text": "KeyboardEvent"
71717
+ "text": "string"
71492
71718
  },
71493
- "description": "The keyboard event to check."
71494
- }
71495
- ],
71496
- "description": "Check if the key pressed should move the navigation to the next element."
71497
- },
71498
- {
71499
- "kind": "function",
71500
- "name": "isNextArrowKeyPressed",
71501
- "return": {
71502
- "type": {
71503
- "text": "boolean"
71504
- }
71505
- },
71506
- "parameters": [
71719
+ "privacy": "public",
71720
+ "static": true,
71721
+ "readonly": true,
71722
+ "default": "'sbb-container'",
71723
+ "inheritedFrom": {
71724
+ "name": "SbbElement",
71725
+ "module": "core/base-elements/element.js"
71726
+ }
71727
+ },
71507
71728
  {
71508
- "name": "event",
71729
+ "kind": "field",
71730
+ "name": "expanded",
71509
71731
  "type": {
71510
- "text": "KeyboardEvent"
71732
+ "text": "boolean"
71511
71733
  },
71512
- "description": "The keyboard event to check."
71513
- }
71514
- ],
71515
- "description": "Check if the key pressed should move the navigation to the next element."
71516
- },
71517
- {
71518
- "kind": "function",
71519
- "name": "isArrowKeyOrPageKeysPressed",
71520
- "return": {
71521
- "type": {
71522
- "text": "boolean"
71523
- }
71524
- },
71525
- "parameters": [
71734
+ "privacy": "public",
71735
+ "default": "false",
71736
+ "description": "Whether the container is expanded.",
71737
+ "attribute": "expanded",
71738
+ "reflects": true
71739
+ },
71526
71740
  {
71527
- "name": "event",
71741
+ "kind": "field",
71742
+ "name": "backgroundExpanded",
71528
71743
  "type": {
71529
- "text": "KeyboardEvent"
71744
+ "text": "boolean"
71530
71745
  },
71531
- "description": "The keyboard event to check."
71532
- }
71533
- ],
71534
- "description": "Check if the key pressed is among those allowed for navigation."
71535
- },
71536
- {
71537
- "kind": "function",
71538
- "name": "getNextElementIndex",
71539
- "return": {
71540
- "type": {
71541
- "text": ""
71542
- }
71543
- },
71544
- "parameters": [
71746
+ "privacy": "public",
71747
+ "default": "false",
71748
+ "description": "Whether the background color is shown on full container width on large screens.",
71749
+ "attribute": "background-expanded",
71750
+ "reflects": true
71751
+ },
71545
71752
  {
71546
- "name": "event",
71753
+ "kind": "field",
71754
+ "name": "color",
71547
71755
  "type": {
71548
- "text": "KeyboardEvent | undefined"
71756
+ "text": "| 'transparent'\n | 'white'\n | 'milk'\n | 'midnight'\n | 'charcoal'"
71549
71757
  },
71550
- "description": "The keyboard event to check. If null, will count as a 'next' step."
71758
+ "privacy": "public",
71759
+ "default": "'white'",
71760
+ "description": "Color of the container, like transparent, white etc.",
71761
+ "attribute": "color",
71762
+ "reflects": true
71551
71763
  },
71552
71764
  {
71553
- "name": "current",
71765
+ "kind": "field",
71766
+ "name": "['_$sbbElement$']",
71554
71767
  "type": {
71555
- "text": "number"
71768
+ "text": "boolean"
71556
71769
  },
71557
- "description": "The index of the current element in the list."
71770
+ "privacy": "public",
71771
+ "static": true,
71772
+ "default": "true",
71773
+ "inheritedFrom": {
71774
+ "name": "SbbElement",
71775
+ "module": "core/base-elements/element.js"
71776
+ }
71558
71777
  },
71559
71778
  {
71560
- "name": "size",
71779
+ "kind": "field",
71780
+ "name": "elementDependencies",
71561
71781
  "type": {
71562
- "text": "number"
71782
+ "text": "SbbElementType[] | undefined"
71563
71783
  },
71564
- "description": "The size of the list."
71565
- }
71566
- ],
71567
- "description": "Gets the index of the element to move to, based on the keyboard input, the current element in the list and the list size."
71568
- }
71569
- ],
71570
- "exports": [
71571
- {
71572
- "kind": "js",
71573
- "name": "isArrowKeyPressed",
71574
- "declaration": {
71575
- "name": "isArrowKeyPressed",
71576
- "module": "core/a11y/arrow-navigation.js"
71577
- }
71578
- },
71579
- {
71580
- "kind": "js",
71581
- "name": "isPreviousArrowKeyPressed",
71582
- "declaration": {
71583
- "name": "isPreviousArrowKeyPressed",
71584
- "module": "core/a11y/arrow-navigation.js"
71585
- }
71586
- },
71587
- {
71588
- "kind": "js",
71589
- "name": "isNextArrowKeyPressed",
71590
- "declaration": {
71591
- "name": "isNextArrowKeyPressed",
71592
- "module": "core/a11y/arrow-navigation.js"
71593
- }
71594
- },
71595
- {
71596
- "kind": "js",
71597
- "name": "isArrowKeyOrPageKeysPressed",
71598
- "declaration": {
71599
- "name": "isArrowKeyOrPageKeysPressed",
71784
+ "privacy": "public",
71785
+ "static": true,
71786
+ "inheritedFrom": {
71787
+ "name": "SbbElement",
71788
+ "module": "core/base-elements/element.js"
71789
+ }
71790
+ },
71791
+ {
71792
+ "kind": "field",
71793
+ "name": "role",
71794
+ "type": {
71795
+ "text": "ElementInternals['role'] | undefined"
71796
+ },
71797
+ "privacy": "public",
71798
+ "static": true,
71799
+ "inheritedFrom": {
71800
+ "name": "SbbElement",
71801
+ "module": "core/base-elements/element.js"
71802
+ }
71803
+ },
71804
+ {
71805
+ "kind": "field",
71806
+ "name": "_controllers",
71807
+ "type": {
71808
+ "text": "Set<SbbReactiveController> | undefined"
71809
+ },
71810
+ "privacy": "private",
71811
+ "inheritedFrom": {
71812
+ "name": "SbbElement",
71813
+ "module": "core/base-elements/element.js"
71814
+ }
71815
+ },
71816
+ {
71817
+ "kind": "field",
71818
+ "name": "_hydrationRequired",
71819
+ "type": {
71820
+ "text": "boolean"
71821
+ },
71822
+ "privacy": "private",
71823
+ "default": "!!this.shadowRoot",
71824
+ "inheritedFrom": {
71825
+ "name": "SbbElement",
71826
+ "module": "core/base-elements/element.js"
71827
+ }
71828
+ },
71829
+ {
71830
+ "kind": "field",
71831
+ "name": "_hydrationComplete",
71832
+ "privacy": "private",
71833
+ "default": "new Promise<boolean>( (resolve) => (this._resolveHydration = resolve), )",
71834
+ "inheritedFrom": {
71835
+ "name": "SbbElement",
71836
+ "module": "core/base-elements/element.js"
71837
+ }
71838
+ },
71839
+ {
71840
+ "kind": "field",
71841
+ "name": "_resolveHydration",
71842
+ "type": {
71843
+ "text": "(hydrationRequired: boolean) => void"
71844
+ },
71845
+ "privacy": "private",
71846
+ "inheritedFrom": {
71847
+ "name": "SbbElement",
71848
+ "module": "core/base-elements/element.js"
71849
+ }
71850
+ },
71851
+ {
71852
+ "kind": "field",
71853
+ "name": "_textObserver",
71854
+ "type": {
71855
+ "text": "MutationObserver | undefined"
71856
+ },
71857
+ "privacy": "private",
71858
+ "inheritedFrom": {
71859
+ "name": "SbbElement",
71860
+ "module": "core/base-elements/element.js"
71861
+ }
71862
+ },
71863
+ {
71864
+ "kind": "field",
71865
+ "name": "hydrationRequired",
71866
+ "type": {
71867
+ "text": "boolean"
71868
+ },
71869
+ "privacy": "protected",
71870
+ "description": "Returns whether hydration is required and not completed.",
71871
+ "readonly": true,
71872
+ "inheritedFrom": {
71873
+ "name": "SbbElement",
71874
+ "module": "core/base-elements/element.js"
71875
+ },
71876
+ "default": "!!this.shadowRoot"
71877
+ },
71878
+ {
71879
+ "kind": "method",
71880
+ "name": "toggleState",
71881
+ "privacy": "protected",
71882
+ "return": {
71883
+ "type": {
71884
+ "text": "void"
71885
+ }
71886
+ },
71887
+ "parameters": [
71888
+ {
71889
+ "name": "value",
71890
+ "type": {
71891
+ "text": "string"
71892
+ }
71893
+ },
71894
+ {
71895
+ "name": "force",
71896
+ "optional": true,
71897
+ "type": {
71898
+ "text": "boolean"
71899
+ }
71900
+ }
71901
+ ],
71902
+ "inheritedFrom": {
71903
+ "name": "SbbElement",
71904
+ "module": "core/base-elements/element.js"
71905
+ }
71906
+ },
71907
+ {
71908
+ "kind": "method",
71909
+ "name": "_slotchangeHandler",
71910
+ "privacy": "private",
71911
+ "return": {
71912
+ "type": {
71913
+ "text": "void"
71914
+ }
71915
+ },
71916
+ "parameters": [
71917
+ {
71918
+ "name": "event",
71919
+ "type": {
71920
+ "text": "Event"
71921
+ }
71922
+ },
71923
+ {
71924
+ "name": "slot",
71925
+ "type": {
71926
+ "text": "HTMLSlotElement"
71927
+ }
71928
+ }
71929
+ ],
71930
+ "inheritedFrom": {
71931
+ "name": "SbbElement",
71932
+ "module": "core/base-elements/element.js"
71933
+ }
71934
+ },
71935
+ {
71936
+ "kind": "method",
71937
+ "name": "_handleSlotChangeForSlottedState",
71938
+ "privacy": "private",
71939
+ "return": {
71940
+ "type": {
71941
+ "text": "void"
71942
+ }
71943
+ },
71944
+ "parameters": [
71945
+ {
71946
+ "name": "slot",
71947
+ "type": {
71948
+ "text": "HTMLSlotElement"
71949
+ }
71950
+ }
71951
+ ],
71952
+ "inheritedFrom": {
71953
+ "name": "SbbElement",
71954
+ "module": "core/base-elements/element.js"
71955
+ }
71956
+ },
71957
+ {
71958
+ "kind": "method",
71959
+ "name": "_updateSlottedState",
71960
+ "privacy": "private",
71961
+ "return": {
71962
+ "type": {
71963
+ "text": "void"
71964
+ }
71965
+ },
71966
+ "parameters": [
71967
+ {
71968
+ "name": "slot",
71969
+ "type": {
71970
+ "text": "HTMLSlotElement"
71971
+ }
71972
+ }
71973
+ ],
71974
+ "inheritedFrom": {
71975
+ "name": "SbbElement",
71976
+ "module": "core/base-elements/element.js"
71977
+ }
71978
+ },
71979
+ {
71980
+ "kind": "method",
71981
+ "name": "_observeTextNodesInSlot",
71982
+ "privacy": "private",
71983
+ "return": {
71984
+ "type": {
71985
+ "text": "void"
71986
+ }
71987
+ },
71988
+ "parameters": [
71989
+ {
71990
+ "name": "slot",
71991
+ "type": {
71992
+ "text": "HTMLSlotElement"
71993
+ }
71994
+ }
71995
+ ],
71996
+ "inheritedFrom": {
71997
+ "name": "SbbElement",
71998
+ "module": "core/base-elements/element.js"
71999
+ }
72000
+ },
72001
+ {
72002
+ "kind": "method",
72003
+ "name": "_hasSlottedContent",
72004
+ "privacy": "private",
72005
+ "return": {
72006
+ "type": {
72007
+ "text": "boolean"
72008
+ }
72009
+ },
72010
+ "parameters": [
72011
+ {
72012
+ "name": "slot",
72013
+ "type": {
72014
+ "text": "HTMLSlotElement"
72015
+ }
72016
+ }
72017
+ ],
72018
+ "inheritedFrom": {
72019
+ "name": "SbbElement",
72020
+ "module": "core/base-elements/element.js"
72021
+ }
72022
+ }
72023
+ ],
72024
+ "attributes": [
72025
+ {
72026
+ "name": "expanded",
72027
+ "type": {
72028
+ "text": "boolean"
72029
+ },
72030
+ "default": "false",
72031
+ "description": "Whether the container is expanded.",
72032
+ "fieldName": "expanded"
72033
+ },
72034
+ {
72035
+ "name": "background-expanded",
72036
+ "type": {
72037
+ "text": "boolean"
72038
+ },
72039
+ "default": "false",
72040
+ "description": "Whether the background color is shown on full container width on large screens.",
72041
+ "fieldName": "backgroundExpanded"
72042
+ },
72043
+ {
72044
+ "name": "color",
72045
+ "type": {
72046
+ "text": "| 'transparent'\n | 'white'\n | 'milk'\n | 'midnight'\n | 'charcoal'"
72047
+ },
72048
+ "default": "'white'",
72049
+ "description": "Color of the container, like transparent, white etc.",
72050
+ "fieldName": "color"
72051
+ }
72052
+ ],
72053
+ "superclass": {
72054
+ "name": "SbbElement",
72055
+ "module": "core.js"
72056
+ },
72057
+ "tagName": "sbb-container",
72058
+ "customElement": true
72059
+ }
72060
+ ],
72061
+ "exports": [
72062
+ {
72063
+ "kind": "js",
72064
+ "name": "SbbContainerElement",
72065
+ "declaration": {
72066
+ "name": "SbbContainerElement",
72067
+ "module": "container/container/container.component.js"
72068
+ }
72069
+ }
72070
+ ]
72071
+ },
72072
+ {
72073
+ "kind": "javascript-module",
72074
+ "path": "core/a11y/arrow-navigation.js",
72075
+ "declarations": [
72076
+ {
72077
+ "kind": "function",
72078
+ "name": "isArrowKeyPressed",
72079
+ "return": {
72080
+ "type": {
72081
+ "text": "boolean"
72082
+ }
72083
+ },
72084
+ "parameters": [
72085
+ {
72086
+ "name": "event",
72087
+ "type": {
72088
+ "text": "KeyboardEvent"
72089
+ },
72090
+ "description": "The keyboard event to check."
72091
+ }
72092
+ ],
72093
+ "description": "Check if the key pressed is among those allowed for navigation."
72094
+ },
72095
+ {
72096
+ "kind": "function",
72097
+ "name": "isPreviousArrowKeyPressed",
72098
+ "return": {
72099
+ "type": {
72100
+ "text": "boolean"
72101
+ }
72102
+ },
72103
+ "parameters": [
72104
+ {
72105
+ "name": "event",
72106
+ "type": {
72107
+ "text": "KeyboardEvent"
72108
+ },
72109
+ "description": "The keyboard event to check."
72110
+ }
72111
+ ],
72112
+ "description": "Check if the key pressed should move the navigation to the next element."
72113
+ },
72114
+ {
72115
+ "kind": "function",
72116
+ "name": "isNextArrowKeyPressed",
72117
+ "return": {
72118
+ "type": {
72119
+ "text": "boolean"
72120
+ }
72121
+ },
72122
+ "parameters": [
72123
+ {
72124
+ "name": "event",
72125
+ "type": {
72126
+ "text": "KeyboardEvent"
72127
+ },
72128
+ "description": "The keyboard event to check."
72129
+ }
72130
+ ],
72131
+ "description": "Check if the key pressed should move the navigation to the next element."
72132
+ },
72133
+ {
72134
+ "kind": "function",
72135
+ "name": "isArrowKeyOrPageKeysPressed",
72136
+ "return": {
72137
+ "type": {
72138
+ "text": "boolean"
72139
+ }
72140
+ },
72141
+ "parameters": [
72142
+ {
72143
+ "name": "event",
72144
+ "type": {
72145
+ "text": "KeyboardEvent"
72146
+ },
72147
+ "description": "The keyboard event to check."
72148
+ }
72149
+ ],
72150
+ "description": "Check if the key pressed is among those allowed for navigation."
72151
+ },
72152
+ {
72153
+ "kind": "function",
72154
+ "name": "getNextElementIndex",
72155
+ "return": {
72156
+ "type": {
72157
+ "text": ""
72158
+ }
72159
+ },
72160
+ "parameters": [
72161
+ {
72162
+ "name": "event",
72163
+ "type": {
72164
+ "text": "KeyboardEvent | undefined"
72165
+ },
72166
+ "description": "The keyboard event to check. If null, will count as a 'next' step."
72167
+ },
72168
+ {
72169
+ "name": "current",
72170
+ "type": {
72171
+ "text": "number"
72172
+ },
72173
+ "description": "The index of the current element in the list."
72174
+ },
72175
+ {
72176
+ "name": "size",
72177
+ "type": {
72178
+ "text": "number"
72179
+ },
72180
+ "description": "The size of the list."
72181
+ }
72182
+ ],
72183
+ "description": "Gets the index of the element to move to, based on the keyboard input, the current element in the list and the list size."
72184
+ }
72185
+ ],
72186
+ "exports": [
72187
+ {
72188
+ "kind": "js",
72189
+ "name": "isArrowKeyPressed",
72190
+ "declaration": {
72191
+ "name": "isArrowKeyPressed",
72192
+ "module": "core/a11y/arrow-navigation.js"
72193
+ }
72194
+ },
72195
+ {
72196
+ "kind": "js",
72197
+ "name": "isPreviousArrowKeyPressed",
72198
+ "declaration": {
72199
+ "name": "isPreviousArrowKeyPressed",
72200
+ "module": "core/a11y/arrow-navigation.js"
72201
+ }
72202
+ },
72203
+ {
72204
+ "kind": "js",
72205
+ "name": "isNextArrowKeyPressed",
72206
+ "declaration": {
72207
+ "name": "isNextArrowKeyPressed",
72208
+ "module": "core/a11y/arrow-navigation.js"
72209
+ }
72210
+ },
72211
+ {
72212
+ "kind": "js",
72213
+ "name": "isArrowKeyOrPageKeysPressed",
72214
+ "declaration": {
72215
+ "name": "isArrowKeyOrPageKeysPressed",
71600
72216
  "module": "core/a11y/arrow-navigation.js"
71601
72217
  }
71602
72218
  },
@@ -72345,622 +72961,6 @@
72345
72961
  }
72346
72962
  ]
72347
72963
  },
72348
- {
72349
- "kind": "javascript-module",
72350
- "path": "container/sticky-bar/sticky-bar.component.js",
72351
- "declarations": [
72352
- {
72353
- "kind": "class",
72354
- "description": "A container that sticks to the bottom of the page if slotted into `sbb-container`.",
72355
- "name": "SbbStickyBarElement",
72356
- "cssProperties": [
72357
- {
72358
- "description": "Block padding of the sticky bar.",
72359
- "name": "--sbb-sticky-bar-padding-block",
72360
- "default": "var(--sbb-spacing-responsive-xs)"
72361
- },
72362
- {
72363
- "description": "Define an additional area where the sticky bar overlaps the following content on the bottom. This area becomes visible when the sticky bar transitions from sticky to the normal document flow.",
72364
- "name": "--sbb-sticky-bar-bottom-overlapping-height",
72365
- "default": "0px"
72366
- },
72367
- {
72368
- "description": "To specify a custom stack order, the `z-index` can be overridden by defining this CSS variable.",
72369
- "name": "--sbb-sticky-bar-z-index"
72370
- }
72371
- ],
72372
- "slots": [
72373
- {
72374
- "description": "Use the unnamed slot to add content to the sticky bar.",
72375
- "name": ""
72376
- }
72377
- ],
72378
- "members": [
72379
- {
72380
- "kind": "field",
72381
- "name": "elementName",
72382
- "type": {
72383
- "text": "string"
72384
- },
72385
- "privacy": "public",
72386
- "static": true,
72387
- "readonly": true,
72388
- "default": "'sbb-sticky-bar'",
72389
- "inheritedFrom": {
72390
- "name": "SbbElement",
72391
- "module": "core/base-elements/element.js"
72392
- }
72393
- },
72394
- {
72395
- "kind": "field",
72396
- "name": "events",
72397
- "privacy": "public",
72398
- "static": true,
72399
- "readonly": true,
72400
- "default": "{ beforestick: 'beforestick', stick: 'stick', beforeunstick: 'beforeunstick', unstick: 'unstick', }",
72401
- "type": {
72402
- "text": "{\n beforestick: 'beforestick',\n stick: 'stick',\n beforeunstick: 'beforeunstick',\n unstick: 'unstick',\n }"
72403
- }
72404
- },
72405
- {
72406
- "kind": "field",
72407
- "name": "color",
72408
- "type": {
72409
- "text": "| 'white'\n | 'milk'\n | 'midnight'\n | 'charcoal'\n | null"
72410
- },
72411
- "privacy": "public",
72412
- "default": "null",
72413
- "description": "Color of the container, like transparent, white etc.",
72414
- "attribute": "color",
72415
- "reflects": true
72416
- },
72417
- {
72418
- "kind": "field",
72419
- "name": "size",
72420
- "type": {
72421
- "text": "'m' | 's'"
72422
- },
72423
- "privacy": "public",
72424
- "description": "Size of the container.",
72425
- "default": "'m' / 's' (lean)",
72426
- "attribute": "size",
72427
- "reflects": true
72428
- },
72429
- {
72430
- "kind": "field",
72431
- "name": "_state",
72432
- "privacy": "private",
72433
- "description": "The state of the component.",
72434
- "type": {
72435
- "text": "StickyState"
72436
- },
72437
- "default": "'sticky'"
72438
- },
72439
- {
72440
- "kind": "field",
72441
- "name": "_stateInternal",
72442
- "type": {
72443
- "text": "StickyState"
72444
- },
72445
- "privacy": "private"
72446
- },
72447
- {
72448
- "kind": "field",
72449
- "name": "_intersector",
72450
- "type": {
72451
- "text": "HTMLSpanElement | undefined"
72452
- },
72453
- "privacy": "private"
72454
- },
72455
- {
72456
- "kind": "field",
72457
- "name": "_observer",
72458
- "privacy": "private",
72459
- "default": "new IntersectionController(this, { // Although `this` is observed, we have to postpone observing // into firstUpdated() to achieve a correct initial state. target: null, callback: (entries) => this._detectStickyState(entries[0]), })"
72460
- },
72461
- {
72462
- "kind": "method",
72463
- "name": "_isZeroAnimationDuration",
72464
- "privacy": "private",
72465
- "return": {
72466
- "type": {
72467
- "text": "boolean"
72468
- }
72469
- }
72470
- },
72471
- {
72472
- "kind": "method",
72473
- "name": "_detectStickyState",
72474
- "privacy": "private",
72475
- "return": {
72476
- "type": {
72477
- "text": "void"
72478
- }
72479
- },
72480
- "parameters": [
72481
- {
72482
- "name": "entry",
72483
- "type": {
72484
- "text": "IntersectionObserverEntry"
72485
- }
72486
- }
72487
- ]
72488
- },
72489
- {
72490
- "kind": "method",
72491
- "name": "stick",
72492
- "privacy": "public",
72493
- "return": {
72494
- "type": {
72495
- "text": "void"
72496
- }
72497
- },
72498
- "description": "Animates from normal content flow position to `position: sticky`."
72499
- },
72500
- {
72501
- "kind": "method",
72502
- "name": "unstick",
72503
- "privacy": "public",
72504
- "return": {
72505
- "type": {
72506
- "text": "void"
72507
- }
72508
- },
72509
- "description": "Animates `position: sticky` to normal content flow position."
72510
- },
72511
- {
72512
- "kind": "method",
72513
- "name": "_stickyCallback",
72514
- "privacy": "private",
72515
- "return": {
72516
- "type": {
72517
- "text": "void"
72518
- }
72519
- }
72520
- },
72521
- {
72522
- "kind": "method",
72523
- "name": "_unstickyCallback",
72524
- "privacy": "private",
72525
- "return": {
72526
- "type": {
72527
- "text": "void"
72528
- }
72529
- }
72530
- },
72531
- {
72532
- "kind": "method",
72533
- "name": "_onAnimationEnd",
72534
- "privacy": "private",
72535
- "return": {
72536
- "type": {
72537
- "text": "void"
72538
- }
72539
- },
72540
- "parameters": [
72541
- {
72542
- "name": "event",
72543
- "type": {
72544
- "text": "AnimationEvent"
72545
- }
72546
- }
72547
- ]
72548
- },
72549
- {
72550
- "kind": "method",
72551
- "name": "_dispatchBeforeStickEvent",
72552
- "privacy": "private",
72553
- "return": {
72554
- "type": {
72555
- "text": "boolean"
72556
- }
72557
- }
72558
- },
72559
- {
72560
- "kind": "method",
72561
- "name": "_dispatchBeforeUnStickEvent",
72562
- "privacy": "private",
72563
- "return": {
72564
- "type": {
72565
- "text": "boolean"
72566
- }
72567
- }
72568
- },
72569
- {
72570
- "kind": "field",
72571
- "name": "_updatePromise",
72572
- "privacy": "private",
72573
- "inheritedFrom": {
72574
- "name": "SbbUpdateSchedulerMixin",
72575
- "module": "core/mixins/update-scheduler-mixin.js"
72576
- }
72577
- },
72578
- {
72579
- "kind": "field",
72580
- "name": "_updateResolve",
72581
- "privacy": "private",
72582
- "inheritedFrom": {
72583
- "name": "SbbUpdateSchedulerMixin",
72584
- "module": "core/mixins/update-scheduler-mixin.js"
72585
- }
72586
- },
72587
- {
72588
- "kind": "method",
72589
- "name": "startUpdate",
72590
- "privacy": "protected",
72591
- "return": {
72592
- "type": {
72593
- "text": "void"
72594
- }
72595
- },
72596
- "inheritedFrom": {
72597
- "name": "SbbUpdateSchedulerMixin",
72598
- "module": "core/mixins/update-scheduler-mixin.js"
72599
- }
72600
- },
72601
- {
72602
- "kind": "method",
72603
- "name": "completeUpdate",
72604
- "privacy": "protected",
72605
- "return": {
72606
- "type": {
72607
- "text": "void"
72608
- }
72609
- },
72610
- "inheritedFrom": {
72611
- "name": "SbbUpdateSchedulerMixin",
72612
- "module": "core/mixins/update-scheduler-mixin.js"
72613
- }
72614
- },
72615
- {
72616
- "kind": "method",
72617
- "name": "getUpdateComplete",
72618
- "privacy": "protected",
72619
- "return": {
72620
- "type": {
72621
- "text": "Promise<boolean>"
72622
- }
72623
- },
72624
- "inheritedFrom": {
72625
- "name": "SbbUpdateSchedulerMixin",
72626
- "module": "core/mixins/update-scheduler-mixin.js"
72627
- }
72628
- },
72629
- {
72630
- "kind": "field",
72631
- "name": "['_$sbbElement$']",
72632
- "type": {
72633
- "text": "boolean"
72634
- },
72635
- "privacy": "public",
72636
- "static": true,
72637
- "default": "true",
72638
- "inheritedFrom": {
72639
- "name": "SbbElement",
72640
- "module": "core/base-elements/element.js"
72641
- }
72642
- },
72643
- {
72644
- "kind": "field",
72645
- "name": "elementDependencies",
72646
- "type": {
72647
- "text": "SbbElementType[] | undefined"
72648
- },
72649
- "privacy": "public",
72650
- "static": true,
72651
- "inheritedFrom": {
72652
- "name": "SbbElement",
72653
- "module": "core/base-elements/element.js"
72654
- }
72655
- },
72656
- {
72657
- "kind": "field",
72658
- "name": "role",
72659
- "type": {
72660
- "text": "ElementInternals['role'] | undefined"
72661
- },
72662
- "privacy": "public",
72663
- "static": true,
72664
- "inheritedFrom": {
72665
- "name": "SbbElement",
72666
- "module": "core/base-elements/element.js"
72667
- }
72668
- },
72669
- {
72670
- "kind": "field",
72671
- "name": "_controllers",
72672
- "type": {
72673
- "text": "Set<SbbReactiveController> | undefined"
72674
- },
72675
- "privacy": "private",
72676
- "inheritedFrom": {
72677
- "name": "SbbElement",
72678
- "module": "core/base-elements/element.js"
72679
- }
72680
- },
72681
- {
72682
- "kind": "field",
72683
- "name": "_hydrationRequired",
72684
- "type": {
72685
- "text": "boolean"
72686
- },
72687
- "privacy": "private",
72688
- "default": "!!this.shadowRoot",
72689
- "inheritedFrom": {
72690
- "name": "SbbElement",
72691
- "module": "core/base-elements/element.js"
72692
- }
72693
- },
72694
- {
72695
- "kind": "field",
72696
- "name": "_hydrationComplete",
72697
- "privacy": "private",
72698
- "default": "new Promise<boolean>( (resolve) => (this._resolveHydration = resolve), )",
72699
- "inheritedFrom": {
72700
- "name": "SbbElement",
72701
- "module": "core/base-elements/element.js"
72702
- }
72703
- },
72704
- {
72705
- "kind": "field",
72706
- "name": "_resolveHydration",
72707
- "type": {
72708
- "text": "(hydrationRequired: boolean) => void"
72709
- },
72710
- "privacy": "private",
72711
- "inheritedFrom": {
72712
- "name": "SbbElement",
72713
- "module": "core/base-elements/element.js"
72714
- }
72715
- },
72716
- {
72717
- "kind": "field",
72718
- "name": "_textObserver",
72719
- "type": {
72720
- "text": "MutationObserver | undefined"
72721
- },
72722
- "privacy": "private",
72723
- "inheritedFrom": {
72724
- "name": "SbbElement",
72725
- "module": "core/base-elements/element.js"
72726
- }
72727
- },
72728
- {
72729
- "kind": "field",
72730
- "name": "hydrationRequired",
72731
- "type": {
72732
- "text": "boolean"
72733
- },
72734
- "privacy": "protected",
72735
- "description": "Returns whether hydration is required and not completed.",
72736
- "readonly": true,
72737
- "inheritedFrom": {
72738
- "name": "SbbElement",
72739
- "module": "core/base-elements/element.js"
72740
- },
72741
- "default": "!!this.shadowRoot"
72742
- },
72743
- {
72744
- "kind": "method",
72745
- "name": "toggleState",
72746
- "privacy": "protected",
72747
- "return": {
72748
- "type": {
72749
- "text": "void"
72750
- }
72751
- },
72752
- "parameters": [
72753
- {
72754
- "name": "value",
72755
- "type": {
72756
- "text": "string"
72757
- }
72758
- },
72759
- {
72760
- "name": "force",
72761
- "optional": true,
72762
- "type": {
72763
- "text": "boolean"
72764
- }
72765
- }
72766
- ],
72767
- "inheritedFrom": {
72768
- "name": "SbbElement",
72769
- "module": "core/base-elements/element.js"
72770
- }
72771
- },
72772
- {
72773
- "kind": "method",
72774
- "name": "_slotchangeHandler",
72775
- "privacy": "private",
72776
- "return": {
72777
- "type": {
72778
- "text": "void"
72779
- }
72780
- },
72781
- "parameters": [
72782
- {
72783
- "name": "event",
72784
- "type": {
72785
- "text": "Event"
72786
- }
72787
- },
72788
- {
72789
- "name": "slot",
72790
- "type": {
72791
- "text": "HTMLSlotElement"
72792
- }
72793
- }
72794
- ],
72795
- "inheritedFrom": {
72796
- "name": "SbbElement",
72797
- "module": "core/base-elements/element.js"
72798
- }
72799
- },
72800
- {
72801
- "kind": "method",
72802
- "name": "_handleSlotChangeForSlottedState",
72803
- "privacy": "private",
72804
- "return": {
72805
- "type": {
72806
- "text": "void"
72807
- }
72808
- },
72809
- "parameters": [
72810
- {
72811
- "name": "slot",
72812
- "type": {
72813
- "text": "HTMLSlotElement"
72814
- }
72815
- }
72816
- ],
72817
- "inheritedFrom": {
72818
- "name": "SbbElement",
72819
- "module": "core/base-elements/element.js"
72820
- }
72821
- },
72822
- {
72823
- "kind": "method",
72824
- "name": "_updateSlottedState",
72825
- "privacy": "private",
72826
- "return": {
72827
- "type": {
72828
- "text": "void"
72829
- }
72830
- },
72831
- "parameters": [
72832
- {
72833
- "name": "slot",
72834
- "type": {
72835
- "text": "HTMLSlotElement"
72836
- }
72837
- }
72838
- ],
72839
- "inheritedFrom": {
72840
- "name": "SbbElement",
72841
- "module": "core/base-elements/element.js"
72842
- }
72843
- },
72844
- {
72845
- "kind": "method",
72846
- "name": "_observeTextNodesInSlot",
72847
- "privacy": "private",
72848
- "return": {
72849
- "type": {
72850
- "text": "void"
72851
- }
72852
- },
72853
- "parameters": [
72854
- {
72855
- "name": "slot",
72856
- "type": {
72857
- "text": "HTMLSlotElement"
72858
- }
72859
- }
72860
- ],
72861
- "inheritedFrom": {
72862
- "name": "SbbElement",
72863
- "module": "core/base-elements/element.js"
72864
- }
72865
- },
72866
- {
72867
- "kind": "method",
72868
- "name": "_hasSlottedContent",
72869
- "privacy": "private",
72870
- "return": {
72871
- "type": {
72872
- "text": "boolean"
72873
- }
72874
- },
72875
- "parameters": [
72876
- {
72877
- "name": "slot",
72878
- "type": {
72879
- "text": "HTMLSlotElement"
72880
- }
72881
- }
72882
- ],
72883
- "inheritedFrom": {
72884
- "name": "SbbElement",
72885
- "module": "core/base-elements/element.js"
72886
- }
72887
- }
72888
- ],
72889
- "events": [
72890
- {
72891
- "name": "stick",
72892
- "type": {
72893
- "text": "Event"
72894
- },
72895
- "description": "Emits when the animation from normal content flow to `position: sticky` ends."
72896
- },
72897
- {
72898
- "name": "unstick",
72899
- "type": {
72900
- "text": "Event"
72901
- },
72902
- "description": "Emits when the animation from `position: sticky` to normal content flow ends."
72903
- },
72904
- {
72905
- "name": "beforestick",
72906
- "type": {
72907
- "text": "Event"
72908
- },
72909
- "description": "Emits when the animation from normal content flow to `position: sticky` starts. Can be canceled."
72910
- },
72911
- {
72912
- "name": "beforeunstick",
72913
- "type": {
72914
- "text": "Event"
72915
- },
72916
- "description": "Emits when the animation from `position: sticky` to normal content flow starts. Can be canceled."
72917
- }
72918
- ],
72919
- "attributes": [
72920
- {
72921
- "name": "color",
72922
- "type": {
72923
- "text": "| 'white'\n | 'milk'\n | 'midnight'\n | 'charcoal'\n | null"
72924
- },
72925
- "default": "null",
72926
- "description": "Color of the container, like transparent, white etc.",
72927
- "fieldName": "color"
72928
- },
72929
- {
72930
- "name": "size",
72931
- "type": {
72932
- "text": "'m' | 's'"
72933
- },
72934
- "description": "Size of the container.",
72935
- "default": "'m' / 's' (lean)",
72936
- "fieldName": "size"
72937
- }
72938
- ],
72939
- "mixins": [
72940
- {
72941
- "name": "SbbUpdateSchedulerMixin",
72942
- "module": "core.js"
72943
- }
72944
- ],
72945
- "superclass": {
72946
- "name": "SbbElement",
72947
- "module": "core.js"
72948
- },
72949
- "tagName": "sbb-sticky-bar",
72950
- "customElement": true
72951
- }
72952
- ],
72953
- "exports": [
72954
- {
72955
- "kind": "js",
72956
- "name": "SbbStickyBarElement",
72957
- "declaration": {
72958
- "name": "SbbStickyBarElement",
72959
- "module": "container/sticky-bar/sticky-bar.component.js"
72960
- }
72961
- }
72962
- ]
72963
- },
72964
72964
  {
72965
72965
  "kind": "javascript-module",
72966
72966
  "path": "core/base-elements/action-base-element.js",
@@ -127091,12 +127091,12 @@
127091
127091
  },
127092
127092
  {
127093
127093
  "kind": "javascript-module",
127094
- "path": "menu/menu-button/menu-button.component.js",
127094
+ "path": "menu/menu-link/menu-link.component.js",
127095
127095
  "declarations": [
127096
127096
  {
127097
127097
  "kind": "class",
127098
- "description": "It displays a button element that can be used in the `sbb-menu` component.",
127099
- "name": "SbbMenuButtonElement",
127098
+ "description": "It displays a link element that can be used in the `sbb-menu` component.",
127099
+ "name": "SbbMenuLinkElement",
127100
127100
  "cssProperties": [
127101
127101
  {
127102
127102
  "description": "Can be used to modify horizontal padding.",
@@ -127106,7 +127106,7 @@
127106
127106
  ],
127107
127107
  "slots": [
127108
127108
  {
127109
- "description": "Use the unnamed slot to add content to the `sbb-menu-button`.",
127109
+ "description": "Use the unnamed slot to add content to the `sbb-menu-link`.",
127110
127110
  "name": ""
127111
127111
  },
127112
127112
  {
@@ -127128,22 +127128,21 @@
127128
127128
  "name": "SbbElement",
127129
127129
  "module": "core/base-elements/element.js"
127130
127130
  },
127131
- "default": "'sbb-menu-button'"
127131
+ "default": "'sbb-menu-link'"
127132
127132
  },
127133
127133
  {
127134
127134
  "kind": "field",
127135
- "name": "role",
127135
+ "name": "anchorRole",
127136
127136
  "type": {
127137
- "text": "ElementInternals['role']"
127138
- },
127139
- "privacy": "public",
127140
- "static": true,
127141
- "inheritedFrom": {
127142
- "name": "SbbElement",
127143
- "module": "core/base-elements/element.js"
127137
+ "text": "string"
127144
127138
  },
127139
+ "privacy": "protected",
127145
127140
  "readonly": true,
127146
- "default": "'menuitem'"
127141
+ "default": "'menuitem'",
127142
+ "inheritedFrom": {
127143
+ "name": "SbbLinkBaseElement",
127144
+ "module": "core/base-elements/link-base-element.js"
127145
+ }
127147
127146
  },
127148
127147
  {
127149
127148
  "kind": "field",
@@ -127161,50 +127160,6 @@
127161
127160
  "module": "core/mixins/disabled-mixin.js"
127162
127161
  }
127163
127162
  },
127164
- {
127165
- "kind": "field",
127166
- "name": "disabled",
127167
- "privacy": "public",
127168
- "description": "Whether the component is disabled.",
127169
- "default": "false",
127170
- "type": {
127171
- "text": "boolean"
127172
- },
127173
- "attribute": "disabled",
127174
- "reflects": true,
127175
- "inheritedFrom": {
127176
- "name": "SbbDisabledMixin",
127177
- "module": "core/mixins/disabled-mixin.js"
127178
- }
127179
- },
127180
- {
127181
- "kind": "field",
127182
- "name": "#disabled",
127183
- "privacy": "private",
127184
- "type": {
127185
- "text": "boolean"
127186
- },
127187
- "default": "false",
127188
- "inheritedFrom": {
127189
- "name": "SbbDisabledMixin",
127190
- "module": "core/mixins/disabled-mixin.js"
127191
- }
127192
- },
127193
- {
127194
- "kind": "method",
127195
- "name": "isDisabledExternally",
127196
- "privacy": "protected",
127197
- "return": {
127198
- "type": {
127199
- "text": "boolean"
127200
- }
127201
- },
127202
- "description": "Will be used as 'or' check to the current disabled state.\nCan e.g. be used to read disabled state of a group.",
127203
- "inheritedFrom": {
127204
- "name": "SbbDisabledMixin",
127205
- "module": "core/mixins/disabled-mixin.js"
127206
- }
127207
- },
127208
127163
  {
127209
127164
  "kind": "field",
127210
127165
  "name": "styles",
@@ -127316,464 +127271,181 @@
127316
127271
  },
127317
127272
  {
127318
127273
  "kind": "field",
127319
- "name": "_elementsOnWhichEnterPressTriggersSubmit",
127320
- "type": {
127321
- "text": "array"
127322
- },
127323
- "privacy": "private",
127324
- "readonly": true,
127325
- "default": "[ 'input', 'sbb-date-input', 'sbb-time-input', ]",
127326
- "inheritedFrom": {
127327
- "name": "SbbButtonBaseElement",
127328
- "module": "core/base-elements/button-base-element.js"
127329
- }
127330
- },
127331
- {
127332
- "kind": "field",
127333
- "name": "value",
127334
- "type": {
127335
- "text": "string"
127336
- },
127337
- "privacy": "public",
127338
- "inheritedFrom": {
127339
- "name": "SbbButtonBaseElement",
127340
- "module": "core/base-elements/button-base-element.js"
127341
- },
127342
- "default": "''",
127343
- "description": "Value of the form element.",
127344
- "attribute": "value"
127345
- },
127346
- {
127347
- "kind": "field",
127348
- "name": "type",
127274
+ "name": "disabled",
127349
127275
  "privacy": "public",
127350
- "description": "The type attribute to use for the button.",
127351
- "default": "'button'",
127276
+ "description": "Whether the component is disabled.",
127277
+ "default": "false",
127352
127278
  "type": {
127353
- "text": "SbbButtonType"
127279
+ "text": "boolean"
127354
127280
  },
127355
- "attribute": "type",
127281
+ "attribute": "disabled",
127282
+ "reflects": true,
127356
127283
  "inheritedFrom": {
127357
- "name": "SbbButtonBaseElement",
127358
- "module": "core/base-elements/button-base-element.js"
127284
+ "name": "SbbDisabledMixin",
127285
+ "module": "core/mixins/disabled-mixin.js"
127359
127286
  }
127360
127287
  },
127361
127288
  {
127362
127289
  "kind": "field",
127363
- "name": "form",
127364
- "type": {
127365
- "text": "HTMLFormElement | null"
127366
- },
127367
- "privacy": "public",
127368
- "description": "The `<form>` element to associate the button with.",
127369
- "inheritedFrom": {
127370
- "name": "SbbButtonBaseElement",
127371
- "module": "core/base-elements/button-base-element.js"
127372
- },
127373
- "attribute": "form"
127374
- },
127375
- {
127376
- "kind": "field",
127377
- "name": "_formId",
127290
+ "name": "#disabled",
127291
+ "privacy": "private",
127378
127292
  "type": {
127379
- "text": "string"
127293
+ "text": "boolean"
127380
127294
  },
127381
- "privacy": "private",
127382
- "default": "''",
127383
- "inheritedFrom": {
127384
- "name": "SbbButtonBaseElement",
127385
- "module": "core/base-elements/button-base-element.js"
127386
- }
127387
- },
127388
- {
127389
- "kind": "field",
127390
- "name": "_handleButtonClick",
127391
- "privacy": "private",
127295
+ "default": "false",
127392
127296
  "inheritedFrom": {
127393
- "name": "SbbButtonBaseElement",
127394
- "module": "core/base-elements/button-base-element.js"
127297
+ "name": "SbbDisabledMixin",
127298
+ "module": "core/mixins/disabled-mixin.js"
127395
127299
  }
127396
127300
  },
127397
127301
  {
127398
127302
  "kind": "method",
127399
- "name": "_requestSubmit",
127400
- "privacy": "private",
127303
+ "name": "isDisabledExternally",
127304
+ "privacy": "protected",
127401
127305
  "return": {
127402
127306
  "type": {
127403
- "text": "void"
127307
+ "text": "boolean"
127404
127308
  }
127405
127309
  },
127406
- "parameters": [
127407
- {
127408
- "name": "form",
127409
- "type": {
127410
- "text": "HTMLFormElement"
127411
- }
127412
- }
127413
- ],
127414
- "inheritedFrom": {
127415
- "name": "SbbButtonBaseElement",
127416
- "module": "core/base-elements/button-base-element.js"
127417
- }
127418
- },
127419
- {
127420
- "kind": "field",
127421
- "name": "_formKeyDown",
127422
- "privacy": "private",
127423
- "inheritedFrom": {
127424
- "name": "SbbButtonBaseElement",
127425
- "module": "core/base-elements/button-base-element.js"
127426
- }
127427
- },
127428
- {
127429
- "kind": "field",
127430
- "name": "formAssociated",
127431
- "type": {
127432
- "text": "boolean"
127433
- },
127434
- "privacy": "public",
127435
- "static": true,
127436
- "default": "true",
127310
+ "description": "Will be used as 'or' check to the current disabled state.\nCan e.g. be used to read disabled state of a group.",
127437
127311
  "inheritedFrom": {
127438
- "name": "SbbFormAssociatedMixin",
127439
- "module": "core/mixins/form-associated-mixin.js"
127312
+ "name": "SbbDisabledMixin",
127313
+ "module": "core/mixins/disabled-mixin.js"
127440
127314
  }
127441
127315
  },
127442
127316
  {
127443
127317
  "kind": "field",
127444
- "name": "name",
127445
- "privacy": "public",
127446
- "description": "Name of the form element. Will be read from name attribute.",
127318
+ "name": "href",
127447
127319
  "type": {
127448
127320
  "text": "string"
127449
127321
  },
127450
- "attribute": "name",
127322
+ "privacy": "public",
127323
+ "default": "''",
127324
+ "description": "The href value you want to link to.",
127325
+ "attribute": "href",
127326
+ "reflects": true,
127451
127327
  "inheritedFrom": {
127452
- "name": "SbbFormAssociatedMixin",
127453
- "module": "core/mixins/form-associated-mixin.js"
127328
+ "name": "SbbLinkBaseElement",
127329
+ "module": "core/base-elements/link-base-element.js"
127454
127330
  }
127455
127331
  },
127456
127332
  {
127457
127333
  "kind": "field",
127458
- "name": "validity",
127334
+ "name": "target",
127459
127335
  "type": {
127460
- "text": "ValidityState"
127336
+ "text": "LinkTargetType | string"
127461
127337
  },
127462
127338
  "privacy": "public",
127463
- "description": "Returns the ValidityState object for this element.",
127464
- "readonly": true,
127339
+ "default": "''",
127340
+ "description": "Where to display the linked URL.",
127341
+ "attribute": "target",
127342
+ "reflects": true,
127465
127343
  "inheritedFrom": {
127466
- "name": "SbbFormAssociatedMixin",
127467
- "module": "core/mixins/form-associated-mixin.js"
127344
+ "name": "SbbLinkBaseElement",
127345
+ "module": "core/base-elements/link-base-element.js"
127468
127346
  }
127469
127347
  },
127470
127348
  {
127471
127349
  "kind": "field",
127472
- "name": "validationMessage",
127350
+ "name": "rel",
127473
127351
  "type": {
127474
127352
  "text": "string"
127475
127353
  },
127476
127354
  "privacy": "public",
127477
- "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.",
127478
- "readonly": true,
127355
+ "default": "''",
127356
+ "description": "The relationship of the linked URL as space-separated link types.",
127357
+ "attribute": "rel",
127358
+ "reflects": true,
127479
127359
  "inheritedFrom": {
127480
- "name": "SbbFormAssociatedMixin",
127481
- "module": "core/mixins/form-associated-mixin.js"
127360
+ "name": "SbbLinkBaseElement",
127361
+ "module": "core/base-elements/link-base-element.js"
127482
127362
  }
127483
127363
  },
127484
127364
  {
127485
127365
  "kind": "field",
127486
- "name": "willValidate",
127366
+ "name": "download",
127487
127367
  "type": {
127488
127368
  "text": "boolean"
127489
127369
  },
127490
127370
  "privacy": "public",
127491
- "description": "Returns true if this element will be validated\nwhen the form is submitted; false otherwise.",
127492
- "readonly": true,
127493
- "inheritedFrom": {
127494
- "name": "SbbFormAssociatedMixin",
127495
- "module": "core/mixins/form-associated-mixin.js"
127496
- }
127497
- },
127498
- {
127499
- "kind": "field",
127500
- "name": "_validityStates",
127501
- "privacy": "private",
127502
- "default": "new Map< keyof ValidityStateFlags, { flagValue: unknown; message: string } >()",
127371
+ "default": "false",
127372
+ "description": "Whether the browser will show the download dialog on click.",
127373
+ "attribute": "download",
127374
+ "reflects": true,
127503
127375
  "inheritedFrom": {
127504
- "name": "SbbFormAssociatedMixin",
127505
- "module": "core/mixins/form-associated-mixin.js"
127376
+ "name": "SbbLinkBaseElement",
127377
+ "module": "core/base-elements/link-base-element.js"
127506
127378
  }
127507
127379
  },
127508
127380
  {
127509
127381
  "kind": "field",
127510
- "name": "formDisabled",
127382
+ "name": "accessibilityLabel",
127511
127383
  "type": {
127512
- "text": "boolean"
127513
- },
127514
- "privacy": "protected",
127515
- "default": "false",
127516
- "description": "Whenever a surrounding form or fieldset is changing its disabled state.",
127517
- "inheritedFrom": {
127518
- "name": "SbbFormAssociatedMixin",
127519
- "module": "core/mixins/form-associated-mixin.js"
127520
- }
127521
- },
127522
- {
127523
- "kind": "method",
127524
- "name": "checkValidity",
127525
- "privacy": "public",
127526
- "return": {
127527
- "type": {
127528
- "text": "boolean"
127529
- }
127530
- },
127531
- "description": "Returns true if this element has no validity problems; false otherwise.\nFires an invalid event at the element in the latter case.",
127532
- "inheritedFrom": {
127533
- "name": "SbbFormAssociatedMixin",
127534
- "module": "core/mixins/form-associated-mixin.js"
127535
- }
127536
- },
127537
- {
127538
- "kind": "method",
127539
- "name": "reportValidity",
127540
- "privacy": "public",
127541
- "return": {
127542
- "type": {
127543
- "text": "boolean"
127544
- }
127384
+ "text": "string"
127545
127385
  },
127546
- "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.",
127547
- "inheritedFrom": {
127548
- "name": "SbbFormAssociatedMixin",
127549
- "module": "core/mixins/form-associated-mixin.js"
127550
- }
127551
- },
127552
- {
127553
- "kind": "method",
127554
- "name": "setCustomValidity",
127555
127386
  "privacy": "public",
127556
- "return": {
127557
- "type": {
127558
- "text": "void"
127559
- }
127560
- },
127561
- "parameters": [
127562
- {
127563
- "name": "message",
127564
- "type": {
127565
- "text": "string"
127566
- }
127567
- }
127568
- ],
127569
- "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.",
127570
- "inheritedFrom": {
127571
- "name": "SbbFormAssociatedMixin",
127572
- "module": "core/mixins/form-associated-mixin.js"
127573
- }
127574
- },
127575
- {
127576
- "kind": "method",
127577
- "name": "_hasDisabledAncestor",
127578
- "privacy": "private",
127579
- "return": {
127580
- "type": {
127581
- "text": "boolean"
127582
- }
127583
- },
127584
- "inheritedFrom": {
127585
- "name": "SbbFormAssociatedMixin",
127586
- "module": "core/mixins/form-associated-mixin.js"
127587
- }
127588
- },
127589
- {
127590
- "kind": "method",
127591
- "name": "updateFormValue",
127592
- "privacy": "protected",
127593
- "return": {
127594
- "type": {
127595
- "text": "void"
127596
- }
127597
- },
127598
- "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",
127599
- "inheritedFrom": {
127600
- "name": "SbbFormAssociatedMixin",
127601
- "module": "core/mixins/form-associated-mixin.js"
127602
- }
127603
- },
127604
- {
127605
- "kind": "method",
127606
- "name": "formState",
127607
- "privacy": "protected",
127608
- "return": {
127609
- "type": {
127610
- "text": "FormRestoreState"
127611
- }
127612
- },
127613
- "inheritedFrom": {
127614
- "name": "SbbFormAssociatedMixin",
127615
- "module": "core/mixins/form-associated-mixin.js"
127616
- }
127617
- },
127618
- {
127619
- "kind": "method",
127620
- "name": "setValidityFlag",
127621
- "privacy": "protected",
127622
- "return": {
127623
- "type": {
127624
- "text": "void"
127625
- }
127626
- },
127627
- "parameters": [
127628
- {
127629
- "name": "flag",
127630
- "type": {
127631
- "text": "T"
127632
- }
127633
- },
127634
- {
127635
- "name": "message",
127636
- "type": {
127637
- "text": "string"
127638
- }
127639
- },
127640
- {
127641
- "name": "flagValue",
127642
- "optional": true,
127643
- "type": {
127644
- "text": "ValidityStateFlags[T]"
127645
- }
127646
- }
127647
- ],
127648
- "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).",
127649
- "inheritedFrom": {
127650
- "name": "SbbFormAssociatedMixin",
127651
- "module": "core/mixins/form-associated-mixin.js"
127652
- }
127653
- },
127654
- {
127655
- "kind": "method",
127656
- "name": "removeValidityFlag",
127657
- "privacy": "protected",
127658
- "return": {
127659
- "type": {
127660
- "text": "void"
127661
- }
127662
- },
127663
- "parameters": [
127664
- {
127665
- "name": "flag",
127666
- "type": {
127667
- "text": "T"
127668
- }
127669
- }
127670
- ],
127671
- "description": "Removes the validity state flag entry and updates validity state.",
127672
- "inheritedFrom": {
127673
- "name": "SbbFormAssociatedMixin",
127674
- "module": "core/mixins/form-associated-mixin.js"
127675
- }
127676
- },
127677
- {
127678
- "kind": "method",
127679
- "name": "validate",
127680
- "privacy": "protected",
127681
- "return": {
127682
- "type": {
127683
- "text": "void"
127684
- }
127685
- },
127686
- "description": "To be called whenever the current element needs to be validated.",
127687
- "inheritedFrom": {
127688
- "name": "SbbFormAssociatedMixin",
127689
- "module": "core/mixins/form-associated-mixin.js"
127690
- }
127691
- },
127692
- {
127693
- "kind": "method",
127694
- "name": "shouldValidate",
127695
- "privacy": "protected",
127696
- "return": {
127697
- "type": {
127698
- "text": "boolean"
127699
- }
127700
- },
127701
- "parameters": [
127702
- {
127703
- "name": "name",
127704
- "type": {
127705
- "text": "PropertyKey | undefined"
127706
- }
127707
- }
127708
- ],
127709
- "description": "Whether validation should be run on a property change with the given name.",
127710
- "inheritedFrom": {
127711
- "name": "SbbFormAssociatedMixin",
127712
- "module": "core/mixins/form-associated-mixin.js"
127713
- }
127714
- },
127715
- {
127716
- "kind": "method",
127717
- "name": "_setInternalValidity",
127718
- "privacy": "private",
127719
- "return": {
127720
- "type": {
127721
- "text": "void"
127722
- }
127723
- },
127387
+ "default": "''",
127388
+ "description": "This will be forwarded as aria-label to the inner anchor element.",
127389
+ "attribute": "accessibility-label",
127724
127390
  "inheritedFrom": {
127725
- "name": "SbbFormAssociatedMixin",
127726
- "module": "core/mixins/form-associated-mixin.js"
127391
+ "name": "SbbLinkBaseElement",
127392
+ "module": "core/base-elements/link-base-element.js"
127727
127393
  }
127728
127394
  },
127729
127395
  {
127730
127396
  "kind": "field",
127731
- "name": "_preventScrollOnSpaceKeydown",
127732
- "privacy": "private",
127733
- "description": "Prevents scrolling from pressing Space, when the event target is an action element.\nAlso sets active state.",
127734
- "parameters": [
127735
- {
127736
- "description": "The origin event.",
127737
- "name": "event"
127738
- }
127739
- ],
127397
+ "name": "accessibilityCurrent",
127398
+ "type": {
127399
+ "text": "string"
127400
+ },
127401
+ "privacy": "public",
127402
+ "default": "''",
127403
+ "description": "This will be forwarded as aria-current to the inner anchor element.",
127404
+ "attribute": "accessibility-current",
127740
127405
  "inheritedFrom": {
127741
- "name": "SbbButtonLikeBaseElement",
127742
- "module": "core/base-elements/button-base-element.js"
127406
+ "name": "SbbLinkBaseElement",
127407
+ "module": "core/base-elements/link-base-element.js"
127743
127408
  }
127744
127409
  },
127745
127410
  {
127746
127411
  "kind": "field",
127747
- "name": "_removeActiveMarker",
127748
- "privacy": "private",
127412
+ "name": "language",
127413
+ "privacy": "protected",
127414
+ "default": "new SbbLanguageController(this)",
127749
127415
  "inheritedFrom": {
127750
- "name": "SbbButtonLikeBaseElement",
127751
- "module": "core/base-elements/button-base-element.js"
127416
+ "name": "SbbLinkBaseElement",
127417
+ "module": "core/base-elements/link-base-element.js"
127752
127418
  }
127753
127419
  },
127754
127420
  {
127755
127421
  "kind": "field",
127756
- "name": "_dispatchClickEventOnSpaceKeyup",
127422
+ "name": "_evaluateRelAttribute",
127757
127423
  "privacy": "private",
127758
- "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.",
127759
- "parameters": [
127760
- {
127761
- "description": "The origin event.",
127762
- "name": "event"
127763
- }
127764
- ],
127765
127424
  "inheritedFrom": {
127766
- "name": "SbbButtonLikeBaseElement",
127767
- "module": "core/base-elements/button-base-element.js"
127425
+ "name": "SbbLinkBaseElement",
127426
+ "module": "core/base-elements/link-base-element.js"
127768
127427
  }
127769
127428
  },
127770
127429
  {
127771
- "kind": "field",
127772
- "name": "_dispatchClickEvent",
127773
- "privacy": "private",
127430
+ "kind": "method",
127431
+ "name": "renderLink",
127432
+ "privacy": "protected",
127433
+ "return": {
127434
+ "type": {
127435
+ "text": "TemplateResult"
127436
+ }
127437
+ },
127438
+ "parameters": [
127439
+ {
127440
+ "name": "renderContent",
127441
+ "type": {
127442
+ "text": "TemplateResult"
127443
+ }
127444
+ }
127445
+ ],
127774
127446
  "inheritedFrom": {
127775
- "name": "SbbButtonLikeBaseElement",
127776
- "module": "core/base-elements/button-base-element.js"
127447
+ "name": "SbbLinkBaseElement",
127448
+ "module": "core/base-elements/link-base-element.js"
127777
127449
  }
127778
127450
  },
127779
127451
  {
@@ -127830,6 +127502,19 @@
127830
127502
  "module": "core/base-elements/element.js"
127831
127503
  }
127832
127504
  },
127505
+ {
127506
+ "kind": "field",
127507
+ "name": "role",
127508
+ "type": {
127509
+ "text": "ElementInternals['role'] | undefined"
127510
+ },
127511
+ "privacy": "public",
127512
+ "static": true,
127513
+ "inheritedFrom": {
127514
+ "name": "SbbElement",
127515
+ "module": "core/base-elements/element.js"
127516
+ }
127517
+ },
127833
127518
  {
127834
127519
  "kind": "field",
127835
127520
  "name": "_controllers",
@@ -128052,7 +127737,7 @@
128052
127737
  ],
128053
127738
  "mixins": [
128054
127739
  {
128055
- "name": "SbbDisabledTabIndexActionMixin",
127740
+ "name": "SbbDisabledInteractiveMixin",
128056
127741
  "module": "core.js"
128057
127742
  },
128058
127743
  {
@@ -128061,10 +127746,10 @@
128061
127746
  }
128062
127747
  ],
128063
127748
  "superclass": {
128064
- "name": "SbbButtonBaseElement",
127749
+ "name": "SbbLinkBaseElement",
128065
127750
  "module": "core.js"
128066
127751
  },
128067
- "tagName": "sbb-menu-button",
127752
+ "tagName": "sbb-menu-link",
128068
127753
  "customElement": true,
128069
127754
  "attributes": [
128070
127755
  {
@@ -128080,6 +127765,19 @@
128080
127765
  "module": "core/mixins/disabled-mixin.js"
128081
127766
  }
128082
127767
  },
127768
+ {
127769
+ "name": "icon-name",
127770
+ "type": {
127771
+ "text": "string"
127772
+ },
127773
+ "default": "''",
127774
+ "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.",
127775
+ "fieldName": "iconName",
127776
+ "inheritedFrom": {
127777
+ "name": "SbbIconNameMixin",
127778
+ "module": "icon/icon-name-mixin.js"
127779
+ }
127780
+ },
128083
127781
  {
128084
127782
  "name": "disabled",
128085
127783
  "description": "Whether the component is disabled.",
@@ -128094,66 +127792,81 @@
128094
127792
  }
128095
127793
  },
128096
127794
  {
128097
- "name": "icon-name",
127795
+ "name": "href",
128098
127796
  "type": {
128099
127797
  "text": "string"
128100
127798
  },
128101
127799
  "default": "''",
128102
- "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.",
128103
- "fieldName": "iconName",
127800
+ "description": "The href value you want to link to.",
127801
+ "fieldName": "href",
128104
127802
  "inheritedFrom": {
128105
- "name": "SbbIconNameMixin",
128106
- "module": "icon/icon-name-mixin.js"
127803
+ "name": "SbbLinkBaseElement",
127804
+ "module": "core/base-elements/link-base-element.js"
128107
127805
  }
128108
127806
  },
128109
127807
  {
128110
- "name": "value",
127808
+ "name": "target",
127809
+ "type": {
127810
+ "text": "LinkTargetType | string"
127811
+ },
127812
+ "default": "''",
127813
+ "description": "Where to display the linked URL.",
127814
+ "fieldName": "target",
127815
+ "inheritedFrom": {
127816
+ "name": "SbbLinkBaseElement",
127817
+ "module": "core/base-elements/link-base-element.js"
127818
+ }
127819
+ },
127820
+ {
127821
+ "name": "rel",
128111
127822
  "type": {
128112
127823
  "text": "string"
128113
127824
  },
128114
127825
  "default": "''",
128115
- "description": "Value of the form element.",
128116
- "fieldName": "value",
127826
+ "description": "The relationship of the linked URL as space-separated link types.",
127827
+ "fieldName": "rel",
128117
127828
  "inheritedFrom": {
128118
- "name": "SbbButtonBaseElement",
128119
- "module": "core/base-elements/button-base-element.js"
127829
+ "name": "SbbLinkBaseElement",
127830
+ "module": "core/base-elements/link-base-element.js"
128120
127831
  }
128121
127832
  },
128122
127833
  {
128123
- "name": "type",
128124
- "description": "The type attribute to use for the button.",
128125
- "default": "'button'",
127834
+ "name": "download",
128126
127835
  "type": {
128127
- "text": "SbbButtonType"
127836
+ "text": "boolean"
128128
127837
  },
128129
- "fieldName": "type",
127838
+ "default": "false",
127839
+ "description": "Whether the browser will show the download dialog on click.",
127840
+ "fieldName": "download",
128130
127841
  "inheritedFrom": {
128131
- "name": "SbbButtonBaseElement",
128132
- "module": "core/base-elements/button-base-element.js"
127842
+ "name": "SbbLinkBaseElement",
127843
+ "module": "core/base-elements/link-base-element.js"
128133
127844
  }
128134
127845
  },
128135
127846
  {
128136
- "name": "form",
128137
- "description": "The `<form>` element to associate the button with.",
127847
+ "name": "accessibility-label",
128138
127848
  "type": {
128139
- "text": "HTMLFormElement | null"
127849
+ "text": "string"
128140
127850
  },
128141
- "fieldName": "form",
127851
+ "default": "''",
127852
+ "description": "This will be forwarded as aria-label to the inner anchor element.",
127853
+ "fieldName": "accessibilityLabel",
128142
127854
  "inheritedFrom": {
128143
- "name": "SbbButtonBaseElement",
128144
- "module": "core/base-elements/button-base-element.js"
127855
+ "name": "SbbLinkBaseElement",
127856
+ "module": "core/base-elements/link-base-element.js"
128145
127857
  }
128146
127858
  },
128147
127859
  {
128148
- "name": "name",
128149
- "description": "Name of the form element. Will be read from name attribute.",
127860
+ "name": "accessibility-current",
128150
127861
  "type": {
128151
127862
  "text": "string"
128152
127863
  },
128153
- "fieldName": "name",
127864
+ "default": "''",
127865
+ "description": "This will be forwarded as aria-current to the inner anchor element.",
127866
+ "fieldName": "accessibilityCurrent",
128154
127867
  "inheritedFrom": {
128155
- "name": "SbbFormAssociatedMixin",
128156
- "module": "core/mixins/form-associated-mixin.js"
127868
+ "name": "SbbLinkBaseElement",
127869
+ "module": "core/base-elements/link-base-element.js"
128157
127870
  }
128158
127871
  }
128159
127872
  ]
@@ -128162,22 +127875,22 @@
128162
127875
  "exports": [
128163
127876
  {
128164
127877
  "kind": "js",
128165
- "name": "SbbMenuButtonElement",
127878
+ "name": "SbbMenuLinkElement",
128166
127879
  "declaration": {
128167
- "name": "SbbMenuButtonElement",
128168
- "module": "menu/menu-button/menu-button.component.js"
127880
+ "name": "SbbMenuLinkElement",
127881
+ "module": "menu/menu-link/menu-link.component.js"
128169
127882
  }
128170
127883
  }
128171
127884
  ]
128172
127885
  },
128173
127886
  {
128174
127887
  "kind": "javascript-module",
128175
- "path": "menu/menu-link/menu-link.component.js",
127888
+ "path": "menu/menu-button/menu-button.component.js",
128176
127889
  "declarations": [
128177
127890
  {
128178
127891
  "kind": "class",
128179
- "description": "It displays a link element that can be used in the `sbb-menu` component.",
128180
- "name": "SbbMenuLinkElement",
127892
+ "description": "It displays a button element that can be used in the `sbb-menu` component.",
127893
+ "name": "SbbMenuButtonElement",
128181
127894
  "cssProperties": [
128182
127895
  {
128183
127896
  "description": "Can be used to modify horizontal padding.",
@@ -128187,346 +127900,674 @@
128187
127900
  ],
128188
127901
  "slots": [
128189
127902
  {
128190
- "description": "Use the unnamed slot to add content to the `sbb-menu-link`.",
127903
+ "description": "Use the unnamed slot to add content to the `sbb-menu-button`.",
128191
127904
  "name": ""
128192
127905
  },
128193
- {
128194
- "description": "Use this slot to provide an icon. If `icon-name` is set, a `sbb-icon` will be used.",
128195
- "name": "icon"
128196
- }
128197
- ],
128198
- "members": [
127906
+ {
127907
+ "description": "Use this slot to provide an icon. If `icon-name` is set, a `sbb-icon` will be used.",
127908
+ "name": "icon"
127909
+ }
127910
+ ],
127911
+ "members": [
127912
+ {
127913
+ "kind": "field",
127914
+ "name": "elementName",
127915
+ "type": {
127916
+ "text": "string"
127917
+ },
127918
+ "privacy": "public",
127919
+ "static": true,
127920
+ "readonly": true,
127921
+ "inheritedFrom": {
127922
+ "name": "SbbElement",
127923
+ "module": "core/base-elements/element.js"
127924
+ },
127925
+ "default": "'sbb-menu-button'"
127926
+ },
127927
+ {
127928
+ "kind": "field",
127929
+ "name": "role",
127930
+ "type": {
127931
+ "text": "ElementInternals['role']"
127932
+ },
127933
+ "privacy": "public",
127934
+ "static": true,
127935
+ "inheritedFrom": {
127936
+ "name": "SbbElement",
127937
+ "module": "core/base-elements/element.js"
127938
+ },
127939
+ "readonly": true,
127940
+ "default": "'menuitem'"
127941
+ },
127942
+ {
127943
+ "kind": "field",
127944
+ "name": "disabledInteractive",
127945
+ "type": {
127946
+ "text": "boolean"
127947
+ },
127948
+ "privacy": "public",
127949
+ "default": "false",
127950
+ "description": "Whether the button should be aria-disabled but stay interactive.",
127951
+ "attribute": "disabled-interactive",
127952
+ "reflects": true,
127953
+ "inheritedFrom": {
127954
+ "name": "SbbDisabledInteractiveMixin",
127955
+ "module": "core/mixins/disabled-mixin.js"
127956
+ }
127957
+ },
127958
+ {
127959
+ "kind": "field",
127960
+ "name": "disabled",
127961
+ "privacy": "public",
127962
+ "description": "Whether the component is disabled.",
127963
+ "default": "false",
127964
+ "type": {
127965
+ "text": "boolean"
127966
+ },
127967
+ "attribute": "disabled",
127968
+ "reflects": true,
127969
+ "inheritedFrom": {
127970
+ "name": "SbbDisabledMixin",
127971
+ "module": "core/mixins/disabled-mixin.js"
127972
+ }
127973
+ },
127974
+ {
127975
+ "kind": "field",
127976
+ "name": "#disabled",
127977
+ "privacy": "private",
127978
+ "type": {
127979
+ "text": "boolean"
127980
+ },
127981
+ "default": "false",
127982
+ "inheritedFrom": {
127983
+ "name": "SbbDisabledMixin",
127984
+ "module": "core/mixins/disabled-mixin.js"
127985
+ }
127986
+ },
127987
+ {
127988
+ "kind": "method",
127989
+ "name": "isDisabledExternally",
127990
+ "privacy": "protected",
127991
+ "return": {
127992
+ "type": {
127993
+ "text": "boolean"
127994
+ }
127995
+ },
127996
+ "description": "Will be used as 'or' check to the current disabled state.\nCan e.g. be used to read disabled state of a group.",
127997
+ "inheritedFrom": {
127998
+ "name": "SbbDisabledMixin",
127999
+ "module": "core/mixins/disabled-mixin.js"
128000
+ }
128001
+ },
128002
+ {
128003
+ "kind": "field",
128004
+ "name": "styles",
128005
+ "type": {
128006
+ "text": "CSSResultGroup"
128007
+ },
128008
+ "privacy": "public",
128009
+ "static": true,
128010
+ "default": "[boxSizingStyles, unsafeCSS(style)]",
128011
+ "inheritedFrom": {
128012
+ "name": "SbbMenuActionCommonElementMixin",
128013
+ "module": "menu/common/menu-action-common.js"
128014
+ }
128015
+ },
128016
+ {
128017
+ "kind": "method",
128018
+ "name": "renderTemplate",
128019
+ "privacy": "protected",
128020
+ "return": {
128021
+ "type": {
128022
+ "text": "TemplateResult"
128023
+ }
128024
+ },
128025
+ "description": "Override this method to render the component template.",
128026
+ "inheritedFrom": {
128027
+ "name": "SbbActionBaseElement",
128028
+ "module": "core/base-elements/action-base-element.js"
128029
+ }
128030
+ },
128031
+ {
128032
+ "kind": "field",
128033
+ "name": "elementDependencies",
128034
+ "type": {
128035
+ "text": "SbbElementType[]"
128036
+ },
128037
+ "privacy": "public",
128038
+ "static": true,
128039
+ "inheritedFrom": {
128040
+ "name": "SbbElement",
128041
+ "module": "core/base-elements/element.js"
128042
+ },
128043
+ "default": "[SbbIconElement]"
128044
+ },
128045
+ {
128046
+ "kind": "field",
128047
+ "name": "iconName",
128048
+ "type": {
128049
+ "text": "string"
128050
+ },
128051
+ "privacy": "public",
128052
+ "default": "''",
128053
+ "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.",
128054
+ "attribute": "icon-name",
128055
+ "inheritedFrom": {
128056
+ "name": "SbbIconNameMixin",
128057
+ "module": "icon/icon-name-mixin.js"
128058
+ }
128059
+ },
128060
+ {
128061
+ "kind": "method",
128062
+ "name": "renderIconSlot",
128063
+ "privacy": "protected",
128064
+ "return": {
128065
+ "type": {
128066
+ "text": "TemplateResult"
128067
+ }
128068
+ },
128069
+ "parameters": [
128070
+ {
128071
+ "name": "classname",
128072
+ "optional": true,
128073
+ "type": {
128074
+ "text": "string"
128075
+ }
128076
+ }
128077
+ ],
128078
+ "inheritedFrom": {
128079
+ "name": "SbbIconNameMixin",
128080
+ "module": "icon/icon-name-mixin.js"
128081
+ }
128082
+ },
128083
+ {
128084
+ "kind": "method",
128085
+ "name": "renderIconName",
128086
+ "privacy": "protected",
128087
+ "return": {
128088
+ "type": {
128089
+ "text": "string"
128090
+ }
128091
+ },
128092
+ "inheritedFrom": {
128093
+ "name": "SbbIconNameMixin",
128094
+ "module": "icon/icon-name-mixin.js"
128095
+ }
128096
+ },
128097
+ {
128098
+ "kind": "method",
128099
+ "name": "_renderIconName",
128100
+ "privacy": "private",
128101
+ "return": {
128102
+ "type": {
128103
+ "text": "string"
128104
+ }
128105
+ },
128106
+ "inheritedFrom": {
128107
+ "name": "SbbIconNameMixin",
128108
+ "module": "icon/icon-name-mixin.js"
128109
+ }
128110
+ },
128111
+ {
128112
+ "kind": "field",
128113
+ "name": "_elementsOnWhichEnterPressTriggersSubmit",
128114
+ "type": {
128115
+ "text": "array"
128116
+ },
128117
+ "privacy": "private",
128118
+ "readonly": true,
128119
+ "default": "[ 'input', 'sbb-date-input', 'sbb-time-input', ]",
128120
+ "inheritedFrom": {
128121
+ "name": "SbbButtonBaseElement",
128122
+ "module": "core/base-elements/button-base-element.js"
128123
+ }
128124
+ },
128125
+ {
128126
+ "kind": "field",
128127
+ "name": "value",
128128
+ "type": {
128129
+ "text": "string"
128130
+ },
128131
+ "privacy": "public",
128132
+ "inheritedFrom": {
128133
+ "name": "SbbButtonBaseElement",
128134
+ "module": "core/base-elements/button-base-element.js"
128135
+ },
128136
+ "default": "''",
128137
+ "description": "Value of the form element.",
128138
+ "attribute": "value"
128139
+ },
128140
+ {
128141
+ "kind": "field",
128142
+ "name": "type",
128143
+ "privacy": "public",
128144
+ "description": "The type attribute to use for the button.",
128145
+ "default": "'button'",
128146
+ "type": {
128147
+ "text": "SbbButtonType"
128148
+ },
128149
+ "attribute": "type",
128150
+ "inheritedFrom": {
128151
+ "name": "SbbButtonBaseElement",
128152
+ "module": "core/base-elements/button-base-element.js"
128153
+ }
128154
+ },
128155
+ {
128156
+ "kind": "field",
128157
+ "name": "form",
128158
+ "type": {
128159
+ "text": "HTMLFormElement | null"
128160
+ },
128161
+ "privacy": "public",
128162
+ "description": "The `<form>` element to associate the button with.",
128163
+ "inheritedFrom": {
128164
+ "name": "SbbButtonBaseElement",
128165
+ "module": "core/base-elements/button-base-element.js"
128166
+ },
128167
+ "attribute": "form"
128168
+ },
128169
+ {
128170
+ "kind": "field",
128171
+ "name": "_formId",
128172
+ "type": {
128173
+ "text": "string"
128174
+ },
128175
+ "privacy": "private",
128176
+ "default": "''",
128177
+ "inheritedFrom": {
128178
+ "name": "SbbButtonBaseElement",
128179
+ "module": "core/base-elements/button-base-element.js"
128180
+ }
128181
+ },
128182
+ {
128183
+ "kind": "field",
128184
+ "name": "_handleButtonClick",
128185
+ "privacy": "private",
128186
+ "inheritedFrom": {
128187
+ "name": "SbbButtonBaseElement",
128188
+ "module": "core/base-elements/button-base-element.js"
128189
+ }
128190
+ },
128191
+ {
128192
+ "kind": "method",
128193
+ "name": "_requestSubmit",
128194
+ "privacy": "private",
128195
+ "return": {
128196
+ "type": {
128197
+ "text": "void"
128198
+ }
128199
+ },
128200
+ "parameters": [
128201
+ {
128202
+ "name": "form",
128203
+ "type": {
128204
+ "text": "HTMLFormElement"
128205
+ }
128206
+ }
128207
+ ],
128208
+ "inheritedFrom": {
128209
+ "name": "SbbButtonBaseElement",
128210
+ "module": "core/base-elements/button-base-element.js"
128211
+ }
128212
+ },
128213
+ {
128214
+ "kind": "field",
128215
+ "name": "_formKeyDown",
128216
+ "privacy": "private",
128217
+ "inheritedFrom": {
128218
+ "name": "SbbButtonBaseElement",
128219
+ "module": "core/base-elements/button-base-element.js"
128220
+ }
128221
+ },
128222
+ {
128223
+ "kind": "field",
128224
+ "name": "formAssociated",
128225
+ "type": {
128226
+ "text": "boolean"
128227
+ },
128228
+ "privacy": "public",
128229
+ "static": true,
128230
+ "default": "true",
128231
+ "inheritedFrom": {
128232
+ "name": "SbbFormAssociatedMixin",
128233
+ "module": "core/mixins/form-associated-mixin.js"
128234
+ }
128235
+ },
128199
128236
  {
128200
128237
  "kind": "field",
128201
- "name": "elementName",
128238
+ "name": "name",
128239
+ "privacy": "public",
128240
+ "description": "Name of the form element. Will be read from name attribute.",
128202
128241
  "type": {
128203
128242
  "text": "string"
128204
128243
  },
128244
+ "attribute": "name",
128245
+ "inheritedFrom": {
128246
+ "name": "SbbFormAssociatedMixin",
128247
+ "module": "core/mixins/form-associated-mixin.js"
128248
+ }
128249
+ },
128250
+ {
128251
+ "kind": "field",
128252
+ "name": "validity",
128253
+ "type": {
128254
+ "text": "ValidityState"
128255
+ },
128205
128256
  "privacy": "public",
128206
- "static": true,
128257
+ "description": "Returns the ValidityState object for this element.",
128207
128258
  "readonly": true,
128208
128259
  "inheritedFrom": {
128209
- "name": "SbbElement",
128210
- "module": "core/base-elements/element.js"
128211
- },
128212
- "default": "'sbb-menu-link'"
128260
+ "name": "SbbFormAssociatedMixin",
128261
+ "module": "core/mixins/form-associated-mixin.js"
128262
+ }
128213
128263
  },
128214
128264
  {
128215
128265
  "kind": "field",
128216
- "name": "anchorRole",
128266
+ "name": "validationMessage",
128217
128267
  "type": {
128218
128268
  "text": "string"
128219
128269
  },
128220
- "privacy": "protected",
128270
+ "privacy": "public",
128271
+ "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.",
128221
128272
  "readonly": true,
128222
- "default": "'menuitem'",
128223
128273
  "inheritedFrom": {
128224
- "name": "SbbLinkBaseElement",
128225
- "module": "core/base-elements/link-base-element.js"
128274
+ "name": "SbbFormAssociatedMixin",
128275
+ "module": "core/mixins/form-associated-mixin.js"
128226
128276
  }
128227
128277
  },
128228
128278
  {
128229
128279
  "kind": "field",
128230
- "name": "disabledInteractive",
128280
+ "name": "willValidate",
128231
128281
  "type": {
128232
128282
  "text": "boolean"
128233
128283
  },
128234
128284
  "privacy": "public",
128235
- "default": "false",
128236
- "description": "Whether the button should be aria-disabled but stay interactive.",
128237
- "attribute": "disabled-interactive",
128238
- "reflects": true,
128285
+ "description": "Returns true if this element will be validated\nwhen the form is submitted; false otherwise.",
128286
+ "readonly": true,
128239
128287
  "inheritedFrom": {
128240
- "name": "SbbDisabledInteractiveMixin",
128241
- "module": "core/mixins/disabled-mixin.js"
128288
+ "name": "SbbFormAssociatedMixin",
128289
+ "module": "core/mixins/form-associated-mixin.js"
128242
128290
  }
128243
128291
  },
128244
128292
  {
128245
128293
  "kind": "field",
128246
- "name": "styles",
128294
+ "name": "_validityStates",
128295
+ "privacy": "private",
128296
+ "default": "new Map< keyof ValidityStateFlags, { flagValue: unknown; message: string } >()",
128297
+ "inheritedFrom": {
128298
+ "name": "SbbFormAssociatedMixin",
128299
+ "module": "core/mixins/form-associated-mixin.js"
128300
+ }
128301
+ },
128302
+ {
128303
+ "kind": "field",
128304
+ "name": "formDisabled",
128247
128305
  "type": {
128248
- "text": "CSSResultGroup"
128306
+ "text": "boolean"
128249
128307
  },
128250
- "privacy": "public",
128251
- "static": true,
128252
- "default": "[boxSizingStyles, unsafeCSS(style)]",
128308
+ "privacy": "protected",
128309
+ "default": "false",
128310
+ "description": "Whenever a surrounding form or fieldset is changing its disabled state.",
128253
128311
  "inheritedFrom": {
128254
- "name": "SbbMenuActionCommonElementMixin",
128255
- "module": "menu/common/menu-action-common.js"
128312
+ "name": "SbbFormAssociatedMixin",
128313
+ "module": "core/mixins/form-associated-mixin.js"
128256
128314
  }
128257
128315
  },
128258
128316
  {
128259
128317
  "kind": "method",
128260
- "name": "renderTemplate",
128261
- "privacy": "protected",
128318
+ "name": "checkValidity",
128319
+ "privacy": "public",
128262
128320
  "return": {
128263
128321
  "type": {
128264
- "text": "TemplateResult"
128322
+ "text": "boolean"
128265
128323
  }
128266
128324
  },
128267
- "description": "Override this method to render the component template.",
128325
+ "description": "Returns true if this element has no validity problems; false otherwise.\nFires an invalid event at the element in the latter case.",
128268
128326
  "inheritedFrom": {
128269
- "name": "SbbActionBaseElement",
128270
- "module": "core/base-elements/action-base-element.js"
128327
+ "name": "SbbFormAssociatedMixin",
128328
+ "module": "core/mixins/form-associated-mixin.js"
128271
128329
  }
128272
128330
  },
128273
128331
  {
128274
- "kind": "field",
128275
- "name": "elementDependencies",
128276
- "type": {
128277
- "text": "SbbElementType[]"
128278
- },
128332
+ "kind": "method",
128333
+ "name": "reportValidity",
128279
128334
  "privacy": "public",
128280
- "static": true,
128281
- "inheritedFrom": {
128282
- "name": "SbbElement",
128283
- "module": "core/base-elements/element.js"
128284
- },
128285
- "default": "[SbbIconElement]"
128286
- },
128287
- {
128288
- "kind": "field",
128289
- "name": "iconName",
128290
- "type": {
128291
- "text": "string"
128335
+ "return": {
128336
+ "type": {
128337
+ "text": "boolean"
128338
+ }
128292
128339
  },
128293
- "privacy": "public",
128294
- "default": "''",
128295
- "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.",
128296
- "attribute": "icon-name",
128340
+ "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.",
128297
128341
  "inheritedFrom": {
128298
- "name": "SbbIconNameMixin",
128299
- "module": "icon/icon-name-mixin.js"
128342
+ "name": "SbbFormAssociatedMixin",
128343
+ "module": "core/mixins/form-associated-mixin.js"
128300
128344
  }
128301
128345
  },
128302
128346
  {
128303
128347
  "kind": "method",
128304
- "name": "renderIconSlot",
128305
- "privacy": "protected",
128348
+ "name": "setCustomValidity",
128349
+ "privacy": "public",
128306
128350
  "return": {
128307
128351
  "type": {
128308
- "text": "TemplateResult"
128352
+ "text": "void"
128309
128353
  }
128310
128354
  },
128311
128355
  "parameters": [
128312
128356
  {
128313
- "name": "classname",
128314
- "optional": true,
128357
+ "name": "message",
128315
128358
  "type": {
128316
128359
  "text": "string"
128317
128360
  }
128318
128361
  }
128319
128362
  ],
128363
+ "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.",
128320
128364
  "inheritedFrom": {
128321
- "name": "SbbIconNameMixin",
128322
- "module": "icon/icon-name-mixin.js"
128365
+ "name": "SbbFormAssociatedMixin",
128366
+ "module": "core/mixins/form-associated-mixin.js"
128323
128367
  }
128324
128368
  },
128325
128369
  {
128326
128370
  "kind": "method",
128327
- "name": "renderIconName",
128328
- "privacy": "protected",
128371
+ "name": "_hasDisabledAncestor",
128372
+ "privacy": "private",
128329
128373
  "return": {
128330
128374
  "type": {
128331
- "text": "string"
128375
+ "text": "boolean"
128332
128376
  }
128333
128377
  },
128334
128378
  "inheritedFrom": {
128335
- "name": "SbbIconNameMixin",
128336
- "module": "icon/icon-name-mixin.js"
128379
+ "name": "SbbFormAssociatedMixin",
128380
+ "module": "core/mixins/form-associated-mixin.js"
128337
128381
  }
128338
128382
  },
128339
128383
  {
128340
128384
  "kind": "method",
128341
- "name": "_renderIconName",
128342
- "privacy": "private",
128385
+ "name": "updateFormValue",
128386
+ "privacy": "protected",
128343
128387
  "return": {
128344
128388
  "type": {
128345
- "text": "string"
128389
+ "text": "void"
128346
128390
  }
128347
128391
  },
128392
+ "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",
128348
128393
  "inheritedFrom": {
128349
- "name": "SbbIconNameMixin",
128350
- "module": "icon/icon-name-mixin.js"
128351
- }
128352
- },
128353
- {
128354
- "kind": "field",
128355
- "name": "disabled",
128356
- "privacy": "public",
128357
- "description": "Whether the component is disabled.",
128358
- "default": "false",
128359
- "type": {
128360
- "text": "boolean"
128361
- },
128362
- "attribute": "disabled",
128363
- "reflects": true,
128364
- "inheritedFrom": {
128365
- "name": "SbbDisabledMixin",
128366
- "module": "core/mixins/disabled-mixin.js"
128394
+ "name": "SbbFormAssociatedMixin",
128395
+ "module": "core/mixins/form-associated-mixin.js"
128367
128396
  }
128368
128397
  },
128369
128398
  {
128370
- "kind": "field",
128371
- "name": "#disabled",
128372
- "privacy": "private",
128373
- "type": {
128374
- "text": "boolean"
128399
+ "kind": "method",
128400
+ "name": "formState",
128401
+ "privacy": "protected",
128402
+ "return": {
128403
+ "type": {
128404
+ "text": "FormRestoreState"
128405
+ }
128375
128406
  },
128376
- "default": "false",
128377
128407
  "inheritedFrom": {
128378
- "name": "SbbDisabledMixin",
128379
- "module": "core/mixins/disabled-mixin.js"
128408
+ "name": "SbbFormAssociatedMixin",
128409
+ "module": "core/mixins/form-associated-mixin.js"
128380
128410
  }
128381
128411
  },
128382
128412
  {
128383
128413
  "kind": "method",
128384
- "name": "isDisabledExternally",
128414
+ "name": "setValidityFlag",
128385
128415
  "privacy": "protected",
128386
128416
  "return": {
128387
128417
  "type": {
128388
- "text": "boolean"
128418
+ "text": "void"
128389
128419
  }
128390
128420
  },
128391
- "description": "Will be used as 'or' check to the current disabled state.\nCan e.g. be used to read disabled state of a group.",
128421
+ "parameters": [
128422
+ {
128423
+ "name": "flag",
128424
+ "type": {
128425
+ "text": "T"
128426
+ }
128427
+ },
128428
+ {
128429
+ "name": "message",
128430
+ "type": {
128431
+ "text": "string"
128432
+ }
128433
+ },
128434
+ {
128435
+ "name": "flagValue",
128436
+ "optional": true,
128437
+ "type": {
128438
+ "text": "ValidityStateFlags[T]"
128439
+ }
128440
+ }
128441
+ ],
128442
+ "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).",
128392
128443
  "inheritedFrom": {
128393
- "name": "SbbDisabledMixin",
128394
- "module": "core/mixins/disabled-mixin.js"
128444
+ "name": "SbbFormAssociatedMixin",
128445
+ "module": "core/mixins/form-associated-mixin.js"
128395
128446
  }
128396
128447
  },
128397
128448
  {
128398
- "kind": "field",
128399
- "name": "href",
128400
- "type": {
128401
- "text": "string"
128449
+ "kind": "method",
128450
+ "name": "removeValidityFlag",
128451
+ "privacy": "protected",
128452
+ "return": {
128453
+ "type": {
128454
+ "text": "void"
128455
+ }
128402
128456
  },
128403
- "privacy": "public",
128404
- "default": "''",
128405
- "description": "The href value you want to link to.",
128406
- "attribute": "href",
128407
- "reflects": true,
128457
+ "parameters": [
128458
+ {
128459
+ "name": "flag",
128460
+ "type": {
128461
+ "text": "T"
128462
+ }
128463
+ }
128464
+ ],
128465
+ "description": "Removes the validity state flag entry and updates validity state.",
128408
128466
  "inheritedFrom": {
128409
- "name": "SbbLinkBaseElement",
128410
- "module": "core/base-elements/link-base-element.js"
128467
+ "name": "SbbFormAssociatedMixin",
128468
+ "module": "core/mixins/form-associated-mixin.js"
128411
128469
  }
128412
128470
  },
128413
128471
  {
128414
- "kind": "field",
128415
- "name": "target",
128416
- "type": {
128417
- "text": "LinkTargetType | string"
128472
+ "kind": "method",
128473
+ "name": "validate",
128474
+ "privacy": "protected",
128475
+ "return": {
128476
+ "type": {
128477
+ "text": "void"
128478
+ }
128418
128479
  },
128419
- "privacy": "public",
128420
- "default": "''",
128421
- "description": "Where to display the linked URL.",
128422
- "attribute": "target",
128423
- "reflects": true,
128480
+ "description": "To be called whenever the current element needs to be validated.",
128424
128481
  "inheritedFrom": {
128425
- "name": "SbbLinkBaseElement",
128426
- "module": "core/base-elements/link-base-element.js"
128482
+ "name": "SbbFormAssociatedMixin",
128483
+ "module": "core/mixins/form-associated-mixin.js"
128427
128484
  }
128428
128485
  },
128429
128486
  {
128430
- "kind": "field",
128431
- "name": "rel",
128432
- "type": {
128433
- "text": "string"
128487
+ "kind": "method",
128488
+ "name": "shouldValidate",
128489
+ "privacy": "protected",
128490
+ "return": {
128491
+ "type": {
128492
+ "text": "boolean"
128493
+ }
128434
128494
  },
128435
- "privacy": "public",
128436
- "default": "''",
128437
- "description": "The relationship of the linked URL as space-separated link types.",
128438
- "attribute": "rel",
128439
- "reflects": true,
128495
+ "parameters": [
128496
+ {
128497
+ "name": "name",
128498
+ "type": {
128499
+ "text": "PropertyKey | undefined"
128500
+ }
128501
+ }
128502
+ ],
128503
+ "description": "Whether validation should be run on a property change with the given name.",
128440
128504
  "inheritedFrom": {
128441
- "name": "SbbLinkBaseElement",
128442
- "module": "core/base-elements/link-base-element.js"
128505
+ "name": "SbbFormAssociatedMixin",
128506
+ "module": "core/mixins/form-associated-mixin.js"
128443
128507
  }
128444
128508
  },
128445
128509
  {
128446
- "kind": "field",
128447
- "name": "download",
128448
- "type": {
128449
- "text": "boolean"
128510
+ "kind": "method",
128511
+ "name": "_setInternalValidity",
128512
+ "privacy": "private",
128513
+ "return": {
128514
+ "type": {
128515
+ "text": "void"
128516
+ }
128450
128517
  },
128451
- "privacy": "public",
128452
- "default": "false",
128453
- "description": "Whether the browser will show the download dialog on click.",
128454
- "attribute": "download",
128455
- "reflects": true,
128456
128518
  "inheritedFrom": {
128457
- "name": "SbbLinkBaseElement",
128458
- "module": "core/base-elements/link-base-element.js"
128519
+ "name": "SbbFormAssociatedMixin",
128520
+ "module": "core/mixins/form-associated-mixin.js"
128459
128521
  }
128460
128522
  },
128461
128523
  {
128462
128524
  "kind": "field",
128463
- "name": "accessibilityLabel",
128464
- "type": {
128465
- "text": "string"
128466
- },
128467
- "privacy": "public",
128468
- "default": "''",
128469
- "description": "This will be forwarded as aria-label to the inner anchor element.",
128470
- "attribute": "accessibility-label",
128525
+ "name": "_preventScrollOnSpaceKeydown",
128526
+ "privacy": "private",
128527
+ "description": "Prevents scrolling from pressing Space, when the event target is an action element.\nAlso sets active state.",
128528
+ "parameters": [
128529
+ {
128530
+ "description": "The origin event.",
128531
+ "name": "event"
128532
+ }
128533
+ ],
128471
128534
  "inheritedFrom": {
128472
- "name": "SbbLinkBaseElement",
128473
- "module": "core/base-elements/link-base-element.js"
128535
+ "name": "SbbButtonLikeBaseElement",
128536
+ "module": "core/base-elements/button-base-element.js"
128474
128537
  }
128475
128538
  },
128476
128539
  {
128477
128540
  "kind": "field",
128478
- "name": "accessibilityCurrent",
128479
- "type": {
128480
- "text": "string"
128481
- },
128482
- "privacy": "public",
128483
- "default": "''",
128484
- "description": "This will be forwarded as aria-current to the inner anchor element.",
128485
- "attribute": "accessibility-current",
128541
+ "name": "_removeActiveMarker",
128542
+ "privacy": "private",
128486
128543
  "inheritedFrom": {
128487
- "name": "SbbLinkBaseElement",
128488
- "module": "core/base-elements/link-base-element.js"
128544
+ "name": "SbbButtonLikeBaseElement",
128545
+ "module": "core/base-elements/button-base-element.js"
128489
128546
  }
128490
128547
  },
128491
128548
  {
128492
128549
  "kind": "field",
128493
- "name": "language",
128494
- "privacy": "protected",
128495
- "default": "new SbbLanguageController(this)",
128550
+ "name": "_dispatchClickEventOnSpaceKeyup",
128551
+ "privacy": "private",
128552
+ "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.",
128553
+ "parameters": [
128554
+ {
128555
+ "description": "The origin event.",
128556
+ "name": "event"
128557
+ }
128558
+ ],
128496
128559
  "inheritedFrom": {
128497
- "name": "SbbLinkBaseElement",
128498
- "module": "core/base-elements/link-base-element.js"
128560
+ "name": "SbbButtonLikeBaseElement",
128561
+ "module": "core/base-elements/button-base-element.js"
128499
128562
  }
128500
128563
  },
128501
128564
  {
128502
128565
  "kind": "field",
128503
- "name": "_evaluateRelAttribute",
128566
+ "name": "_dispatchClickEvent",
128504
128567
  "privacy": "private",
128505
128568
  "inheritedFrom": {
128506
- "name": "SbbLinkBaseElement",
128507
- "module": "core/base-elements/link-base-element.js"
128508
- }
128509
- },
128510
- {
128511
- "kind": "method",
128512
- "name": "renderLink",
128513
- "privacy": "protected",
128514
- "return": {
128515
- "type": {
128516
- "text": "TemplateResult"
128517
- }
128518
- },
128519
- "parameters": [
128520
- {
128521
- "name": "renderContent",
128522
- "type": {
128523
- "text": "TemplateResult"
128524
- }
128525
- }
128526
- ],
128527
- "inheritedFrom": {
128528
- "name": "SbbLinkBaseElement",
128529
- "module": "core/base-elements/link-base-element.js"
128569
+ "name": "SbbButtonLikeBaseElement",
128570
+ "module": "core/base-elements/button-base-element.js"
128530
128571
  }
128531
128572
  },
128532
128573
  {
@@ -128583,19 +128624,6 @@
128583
128624
  "module": "core/base-elements/element.js"
128584
128625
  }
128585
128626
  },
128586
- {
128587
- "kind": "field",
128588
- "name": "role",
128589
- "type": {
128590
- "text": "ElementInternals['role'] | undefined"
128591
- },
128592
- "privacy": "public",
128593
- "static": true,
128594
- "inheritedFrom": {
128595
- "name": "SbbElement",
128596
- "module": "core/base-elements/element.js"
128597
- }
128598
- },
128599
128627
  {
128600
128628
  "kind": "field",
128601
128629
  "name": "_controllers",
@@ -128818,7 +128846,7 @@
128818
128846
  ],
128819
128847
  "mixins": [
128820
128848
  {
128821
- "name": "SbbDisabledInteractiveMixin",
128849
+ "name": "SbbDisabledTabIndexActionMixin",
128822
128850
  "module": "core.js"
128823
128851
  },
128824
128852
  {
@@ -128827,10 +128855,10 @@
128827
128855
  }
128828
128856
  ],
128829
128857
  "superclass": {
128830
- "name": "SbbLinkBaseElement",
128858
+ "name": "SbbButtonBaseElement",
128831
128859
  "module": "core.js"
128832
128860
  },
128833
- "tagName": "sbb-menu-link",
128861
+ "tagName": "sbb-menu-button",
128834
128862
  "customElement": true,
128835
128863
  "attributes": [
128836
128864
  {
@@ -128846,19 +128874,6 @@
128846
128874
  "module": "core/mixins/disabled-mixin.js"
128847
128875
  }
128848
128876
  },
128849
- {
128850
- "name": "icon-name",
128851
- "type": {
128852
- "text": "string"
128853
- },
128854
- "default": "''",
128855
- "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.",
128856
- "fieldName": "iconName",
128857
- "inheritedFrom": {
128858
- "name": "SbbIconNameMixin",
128859
- "module": "icon/icon-name-mixin.js"
128860
- }
128861
- },
128862
128877
  {
128863
128878
  "name": "disabled",
128864
128879
  "description": "Whether the component is disabled.",
@@ -128873,81 +128888,66 @@
128873
128888
  }
128874
128889
  },
128875
128890
  {
128876
- "name": "href",
128891
+ "name": "icon-name",
128877
128892
  "type": {
128878
128893
  "text": "string"
128879
128894
  },
128880
128895
  "default": "''",
128881
- "description": "The href value you want to link to.",
128882
- "fieldName": "href",
128883
- "inheritedFrom": {
128884
- "name": "SbbLinkBaseElement",
128885
- "module": "core/base-elements/link-base-element.js"
128886
- }
128887
- },
128888
- {
128889
- "name": "target",
128890
- "type": {
128891
- "text": "LinkTargetType | string"
128892
- },
128893
- "default": "''",
128894
- "description": "Where to display the linked URL.",
128895
- "fieldName": "target",
128896
+ "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.",
128897
+ "fieldName": "iconName",
128896
128898
  "inheritedFrom": {
128897
- "name": "SbbLinkBaseElement",
128898
- "module": "core/base-elements/link-base-element.js"
128899
+ "name": "SbbIconNameMixin",
128900
+ "module": "icon/icon-name-mixin.js"
128899
128901
  }
128900
128902
  },
128901
128903
  {
128902
- "name": "rel",
128904
+ "name": "value",
128903
128905
  "type": {
128904
128906
  "text": "string"
128905
128907
  },
128906
128908
  "default": "''",
128907
- "description": "The relationship of the linked URL as space-separated link types.",
128908
- "fieldName": "rel",
128909
+ "description": "Value of the form element.",
128910
+ "fieldName": "value",
128909
128911
  "inheritedFrom": {
128910
- "name": "SbbLinkBaseElement",
128911
- "module": "core/base-elements/link-base-element.js"
128912
+ "name": "SbbButtonBaseElement",
128913
+ "module": "core/base-elements/button-base-element.js"
128912
128914
  }
128913
128915
  },
128914
128916
  {
128915
- "name": "download",
128917
+ "name": "type",
128918
+ "description": "The type attribute to use for the button.",
128919
+ "default": "'button'",
128916
128920
  "type": {
128917
- "text": "boolean"
128921
+ "text": "SbbButtonType"
128918
128922
  },
128919
- "default": "false",
128920
- "description": "Whether the browser will show the download dialog on click.",
128921
- "fieldName": "download",
128923
+ "fieldName": "type",
128922
128924
  "inheritedFrom": {
128923
- "name": "SbbLinkBaseElement",
128924
- "module": "core/base-elements/link-base-element.js"
128925
+ "name": "SbbButtonBaseElement",
128926
+ "module": "core/base-elements/button-base-element.js"
128925
128927
  }
128926
128928
  },
128927
128929
  {
128928
- "name": "accessibility-label",
128930
+ "name": "form",
128931
+ "description": "The `<form>` element to associate the button with.",
128929
128932
  "type": {
128930
- "text": "string"
128933
+ "text": "HTMLFormElement | null"
128931
128934
  },
128932
- "default": "''",
128933
- "description": "This will be forwarded as aria-label to the inner anchor element.",
128934
- "fieldName": "accessibilityLabel",
128935
+ "fieldName": "form",
128935
128936
  "inheritedFrom": {
128936
- "name": "SbbLinkBaseElement",
128937
- "module": "core/base-elements/link-base-element.js"
128937
+ "name": "SbbButtonBaseElement",
128938
+ "module": "core/base-elements/button-base-element.js"
128938
128939
  }
128939
128940
  },
128940
128941
  {
128941
- "name": "accessibility-current",
128942
+ "name": "name",
128943
+ "description": "Name of the form element. Will be read from name attribute.",
128942
128944
  "type": {
128943
128945
  "text": "string"
128944
128946
  },
128945
- "default": "''",
128946
- "description": "This will be forwarded as aria-current to the inner anchor element.",
128947
- "fieldName": "accessibilityCurrent",
128947
+ "fieldName": "name",
128948
128948
  "inheritedFrom": {
128949
- "name": "SbbLinkBaseElement",
128950
- "module": "core/base-elements/link-base-element.js"
128949
+ "name": "SbbFormAssociatedMixin",
128950
+ "module": "core/mixins/form-associated-mixin.js"
128951
128951
  }
128952
128952
  }
128953
128953
  ]
@@ -128956,10 +128956,10 @@
128956
128956
  "exports": [
128957
128957
  {
128958
128958
  "kind": "js",
128959
- "name": "SbbMenuLinkElement",
128959
+ "name": "SbbMenuButtonElement",
128960
128960
  "declaration": {
128961
- "name": "SbbMenuLinkElement",
128962
- "module": "menu/menu-link/menu-link.component.js"
128961
+ "name": "SbbMenuButtonElement",
128962
+ "module": "menu/menu-button/menu-button.component.js"
128963
128963
  }
128964
128964
  }
128965
128965
  ]