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

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.
@@ -71455,180 +71455,326 @@
71455
71455
  },
71456
71456
  {
71457
71457
  "kind": "javascript-module",
71458
- "path": "container/sticky-bar/sticky-bar.component.js",
71458
+ "path": "core/a11y/arrow-navigation.js",
71459
71459
  "declarations": [
71460
71460
  {
71461
- "kind": "class",
71462
- "description": "A container that sticks to the bottom of the page if slotted into `sbb-container`.",
71463
- "name": "SbbStickyBarElement",
71464
- "cssProperties": [
71465
- {
71466
- "description": "Block padding of the sticky bar.",
71467
- "name": "--sbb-sticky-bar-padding-block",
71468
- "default": "var(--sbb-spacing-responsive-xs)"
71469
- },
71461
+ "kind": "function",
71462
+ "name": "isArrowKeyPressed",
71463
+ "return": {
71464
+ "type": {
71465
+ "text": "boolean"
71466
+ }
71467
+ },
71468
+ "parameters": [
71470
71469
  {
71471
- "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.",
71472
- "name": "--sbb-sticky-bar-bottom-overlapping-height",
71473
- "default": "0px"
71474
- },
71470
+ "name": "event",
71471
+ "type": {
71472
+ "text": "KeyboardEvent"
71473
+ },
71474
+ "description": "The keyboard event to check."
71475
+ }
71476
+ ],
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"
71485
+ }
71486
+ },
71487
+ "parameters": [
71475
71488
  {
71476
- "description": "To specify a custom stack order, the `z-index` can be overridden by defining this CSS variable.",
71477
- "name": "--sbb-sticky-bar-z-index"
71489
+ "name": "event",
71490
+ "type": {
71491
+ "text": "KeyboardEvent"
71492
+ },
71493
+ "description": "The keyboard event to check."
71478
71494
  }
71479
71495
  ],
71480
- "slots": [
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": [
71481
71507
  {
71482
- "description": "Use the unnamed slot to add content to the sticky bar.",
71483
- "name": ""
71508
+ "name": "event",
71509
+ "type": {
71510
+ "text": "KeyboardEvent"
71511
+ },
71512
+ "description": "The keyboard event to check."
71484
71513
  }
71485
71514
  ],
71486
- "members": [
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": [
71487
71526
  {
71488
- "kind": "field",
71489
- "name": "elementName",
71527
+ "name": "event",
71490
71528
  "type": {
71491
- "text": "string"
71529
+ "text": "KeyboardEvent"
71492
71530
  },
71493
- "privacy": "public",
71494
- "static": true,
71495
- "readonly": true,
71496
- "default": "'sbb-sticky-bar'",
71497
- "inheritedFrom": {
71498
- "name": "SbbElement",
71499
- "module": "core/base-elements/element.js"
71500
- }
71501
- },
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": [
71502
71545
  {
71503
- "kind": "field",
71504
- "name": "events",
71505
- "privacy": "public",
71506
- "static": true,
71507
- "readonly": true,
71508
- "default": "{ beforestick: 'beforestick', stick: 'stick', beforeunstick: 'beforeunstick', unstick: 'unstick', }",
71546
+ "name": "event",
71509
71547
  "type": {
71510
- "text": "{\n beforestick: 'beforestick',\n stick: 'stick',\n beforeunstick: 'beforeunstick',\n unstick: 'unstick',\n }"
71511
- }
71548
+ "text": "KeyboardEvent | undefined"
71549
+ },
71550
+ "description": "The keyboard event to check. If null, will count as a 'next' step."
71512
71551
  },
71513
71552
  {
71514
- "kind": "field",
71515
- "name": "color",
71553
+ "name": "current",
71516
71554
  "type": {
71517
- "text": "| 'white'\n | 'milk'\n | 'midnight'\n | 'charcoal'\n | null"
71555
+ "text": "number"
71518
71556
  },
71519
- "privacy": "public",
71520
- "default": "null",
71521
- "description": "Color of the container, like transparent, white etc.",
71522
- "attribute": "color",
71523
- "reflects": true
71557
+ "description": "The index of the current element in the list."
71524
71558
  },
71525
71559
  {
71526
- "kind": "field",
71527
71560
  "name": "size",
71528
71561
  "type": {
71529
- "text": "'m' | 's'"
71562
+ "text": "number"
71530
71563
  },
71531
- "privacy": "public",
71532
- "description": "Size of the container.",
71533
- "default": "'m' / 's' (lean)",
71534
- "attribute": "size",
71535
- "reflects": true
71536
- },
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",
71600
+ "module": "core/a11y/arrow-navigation.js"
71601
+ }
71602
+ },
71603
+ {
71604
+ "kind": "js",
71605
+ "name": "getNextElementIndex",
71606
+ "declaration": {
71607
+ "name": "getNextElementIndex",
71608
+ "module": "core/a11y/arrow-navigation.js"
71609
+ }
71610
+ }
71611
+ ]
71612
+ },
71613
+ {
71614
+ "kind": "javascript-module",
71615
+ "path": "core/a11y/fake-event-detection.js",
71616
+ "declarations": [
71617
+ {
71618
+ "kind": "function",
71619
+ "name": "isFakeMousedownFromScreenReader",
71620
+ "return": {
71621
+ "type": {
71622
+ "text": "boolean"
71623
+ }
71624
+ },
71625
+ "parameters": [
71537
71626
  {
71538
- "kind": "field",
71539
- "name": "_state",
71540
- "privacy": "private",
71541
- "description": "The state of the component.",
71627
+ "name": "event",
71542
71628
  "type": {
71543
- "text": "StickyState"
71544
- },
71545
- "default": "'sticky'"
71546
- },
71629
+ "text": "MouseEvent"
71630
+ }
71631
+ }
71632
+ ],
71633
+ "description": "Gets whether an event could be a faked `mousedown` event dispatched by a screen reader."
71634
+ },
71635
+ {
71636
+ "kind": "function",
71637
+ "name": "isFakeTouchstartFromScreenReader",
71638
+ "return": {
71639
+ "type": {
71640
+ "text": "boolean"
71641
+ }
71642
+ },
71643
+ "parameters": [
71547
71644
  {
71548
- "kind": "field",
71549
- "name": "_stateInternal",
71645
+ "name": "event",
71550
71646
  "type": {
71551
- "text": "StickyState"
71552
- },
71553
- "privacy": "private"
71554
- },
71647
+ "text": "TouchEvent"
71648
+ }
71649
+ }
71650
+ ],
71651
+ "description": "Gets whether an event could be a faked `touchstart` event dispatched by a screen reader."
71652
+ }
71653
+ ],
71654
+ "exports": [
71655
+ {
71656
+ "kind": "js",
71657
+ "name": "isFakeMousedownFromScreenReader",
71658
+ "declaration": {
71659
+ "name": "isFakeMousedownFromScreenReader",
71660
+ "module": "core/a11y/fake-event-detection.js"
71661
+ }
71662
+ },
71663
+ {
71664
+ "kind": "js",
71665
+ "name": "isFakeTouchstartFromScreenReader",
71666
+ "declaration": {
71667
+ "name": "isFakeTouchstartFromScreenReader",
71668
+ "module": "core/a11y/fake-event-detection.js"
71669
+ }
71670
+ }
71671
+ ]
71672
+ },
71673
+ {
71674
+ "kind": "javascript-module",
71675
+ "path": "core/a11y/focus-trap-controller.js",
71676
+ "declarations": [
71677
+ {
71678
+ "kind": "class",
71679
+ "description": "",
71680
+ "name": "SbbFocusTrapController",
71681
+ "members": [
71555
71682
  {
71556
71683
  "kind": "field",
71557
- "name": "_intersector",
71684
+ "name": "enabled",
71685
+ "privacy": "public",
71686
+ "description": "Whether the focus is trap is enabled.",
71687
+ "parameters": [
71688
+ {
71689
+ "name": "enabled"
71690
+ }
71691
+ ],
71558
71692
  "type": {
71559
- "text": "HTMLSpanElement | undefined"
71560
- },
71561
- "privacy": "private"
71693
+ "text": "boolean"
71694
+ }
71562
71695
  },
71563
71696
  {
71564
71697
  "kind": "field",
71565
- "name": "_observer",
71698
+ "name": "_abortController",
71699
+ "type": {
71700
+ "text": "AbortController | null"
71701
+ },
71566
71702
  "privacy": "private",
71567
- "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]), })"
71703
+ "default": "null"
71568
71704
  },
71569
71705
  {
71570
71706
  "kind": "method",
71571
- "name": "_isZeroAnimationDuration",
71572
- "privacy": "private",
71707
+ "name": "hostDisconnected",
71708
+ "privacy": "public",
71573
71709
  "return": {
71574
71710
  "type": {
71575
- "text": "boolean"
71711
+ "text": "void"
71576
71712
  }
71577
71713
  }
71578
71714
  },
71579
71715
  {
71580
71716
  "kind": "method",
71581
- "name": "_detectStickyState",
71582
- "privacy": "private",
71717
+ "name": "focusInitialElement",
71718
+ "privacy": "public",
71583
71719
  "return": {
71584
71720
  "type": {
71585
- "text": "void"
71721
+ "text": ""
71586
71722
  }
71587
71723
  },
71588
71724
  "parameters": [
71589
71725
  {
71590
- "name": "entry",
71726
+ "name": "options",
71727
+ "optional": true,
71591
71728
  "type": {
71592
- "text": "IntersectionObserverEntry"
71729
+ "text": "FocusOptions"
71593
71730
  }
71594
71731
  }
71595
- ]
71732
+ ],
71733
+ "description": "Focuses the element that should be focused when the focus trap is initialized."
71596
71734
  },
71597
71735
  {
71598
71736
  "kind": "method",
71599
- "name": "stick",
71737
+ "name": "focusFirstTabbableElement",
71600
71738
  "privacy": "public",
71601
71739
  "return": {
71602
71740
  "type": {
71603
- "text": "void"
71741
+ "text": ""
71604
71742
  }
71605
71743
  },
71606
- "description": "Animates from normal content flow position to `position: sticky`."
71744
+ "parameters": [
71745
+ {
71746
+ "name": "options",
71747
+ "optional": true,
71748
+ "type": {
71749
+ "text": "FocusOptions"
71750
+ }
71751
+ }
71752
+ ],
71753
+ "description": "Focuses the first tabbable element within the focus trap region."
71607
71754
  },
71608
71755
  {
71609
71756
  "kind": "method",
71610
- "name": "unstick",
71757
+ "name": "focusLastTabbableElement",
71611
71758
  "privacy": "public",
71612
71759
  "return": {
71613
71760
  "type": {
71614
- "text": "void"
71761
+ "text": ""
71615
71762
  }
71616
71763
  },
71617
- "description": "Animates `position: sticky` to normal content flow position."
71618
- },
71619
- {
71620
- "kind": "method",
71621
- "name": "_stickyCallback",
71622
- "privacy": "private",
71623
- "return": {
71624
- "type": {
71625
- "text": "void"
71764
+ "parameters": [
71765
+ {
71766
+ "name": "options",
71767
+ "optional": true,
71768
+ "type": {
71769
+ "text": "FocusOptions"
71770
+ }
71626
71771
  }
71627
- }
71772
+ ],
71773
+ "description": "Focuses the last tabbable element within the focus trap region."
71628
71774
  },
71629
71775
  {
71630
71776
  "kind": "method",
71631
- "name": "_unstickyCallback",
71777
+ "name": "_trap",
71632
71778
  "privacy": "private",
71633
71779
  "return": {
71634
71780
  "type": {
@@ -71638,851 +71784,734 @@
71638
71784
  },
71639
71785
  {
71640
71786
  "kind": "method",
71641
- "name": "_onAnimationEnd",
71787
+ "name": "_getFirstTabbableElement",
71642
71788
  "privacy": "private",
71643
71789
  "return": {
71644
71790
  "type": {
71645
- "text": "void"
71791
+ "text": "HTMLElement | null"
71646
71792
  }
71647
71793
  },
71648
71794
  "parameters": [
71649
71795
  {
71650
- "name": "event",
71796
+ "name": "root",
71651
71797
  "type": {
71652
- "text": "AnimationEvent"
71798
+ "text": "HTMLElement"
71653
71799
  }
71654
71800
  }
71655
- ]
71801
+ ],
71802
+ "description": "Get the first tabbable element from a DOM subtree (inclusive)."
71656
71803
  },
71657
71804
  {
71658
71805
  "kind": "method",
71659
- "name": "_dispatchBeforeStickEvent",
71806
+ "name": "_getLastTabbableElement",
71660
71807
  "privacy": "private",
71661
71808
  "return": {
71662
71809
  "type": {
71663
- "text": "boolean"
71810
+ "text": "HTMLElement | null"
71664
71811
  }
71665
- }
71812
+ },
71813
+ "parameters": [
71814
+ {
71815
+ "name": "root",
71816
+ "type": {
71817
+ "text": "HTMLElement"
71818
+ }
71819
+ }
71820
+ ],
71821
+ "description": "Get the last tabbable element from a DOM subtree (inclusive)."
71666
71822
  },
71667
71823
  {
71668
71824
  "kind": "method",
71669
- "name": "_dispatchBeforeUnStickEvent",
71825
+ "name": "_untrap",
71670
71826
  "privacy": "private",
71671
71827
  "return": {
71672
71828
  "type": {
71673
- "text": "boolean"
71829
+ "text": "void"
71674
71830
  }
71675
71831
  }
71676
- },
71832
+ }
71833
+ ]
71834
+ }
71835
+ ],
71836
+ "exports": [
71837
+ {
71838
+ "kind": "js",
71839
+ "name": "SbbFocusTrapController",
71840
+ "declaration": {
71841
+ "name": "SbbFocusTrapController",
71842
+ "module": "core/a11y/focus-trap-controller.js"
71843
+ }
71844
+ }
71845
+ ]
71846
+ },
71847
+ {
71848
+ "kind": "javascript-module",
71849
+ "path": "core/a11y/focus-visible-within-controller.js",
71850
+ "declarations": [
71851
+ {
71852
+ "kind": "class",
71853
+ "description": "",
71854
+ "name": "SbbFocusVisibleWithinController",
71855
+ "members": [
71677
71856
  {
71678
71857
  "kind": "field",
71679
- "name": "_updatePromise",
71680
- "privacy": "private",
71681
- "inheritedFrom": {
71682
- "name": "SbbUpdateSchedulerMixin",
71683
- "module": "core/mixins/update-scheduler-mixin.js"
71684
- }
71858
+ "name": "_focusinHandler",
71859
+ "privacy": "private"
71685
71860
  },
71686
71861
  {
71687
71862
  "kind": "field",
71688
- "name": "_updateResolve",
71689
- "privacy": "private",
71690
- "inheritedFrom": {
71691
- "name": "SbbUpdateSchedulerMixin",
71692
- "module": "core/mixins/update-scheduler-mixin.js"
71693
- }
71863
+ "name": "_focusoutHandler",
71864
+ "privacy": "private"
71694
71865
  },
71695
71866
  {
71696
71867
  "kind": "method",
71697
- "name": "startUpdate",
71698
- "privacy": "protected",
71868
+ "name": "hostConnected",
71869
+ "privacy": "public",
71699
71870
  "return": {
71700
71871
  "type": {
71701
71872
  "text": "void"
71702
71873
  }
71703
- },
71704
- "inheritedFrom": {
71705
- "name": "SbbUpdateSchedulerMixin",
71706
- "module": "core/mixins/update-scheduler-mixin.js"
71707
71874
  }
71708
71875
  },
71709
71876
  {
71710
71877
  "kind": "method",
71711
- "name": "completeUpdate",
71712
- "privacy": "protected",
71878
+ "name": "hostDisconnected",
71879
+ "privacy": "public",
71713
71880
  "return": {
71714
71881
  "type": {
71715
71882
  "text": "void"
71716
71883
  }
71717
- },
71718
- "inheritedFrom": {
71719
- "name": "SbbUpdateSchedulerMixin",
71720
- "module": "core/mixins/update-scheduler-mixin.js"
71721
- }
71722
- },
71723
- {
71724
- "kind": "method",
71725
- "name": "getUpdateComplete",
71726
- "privacy": "protected",
71727
- "return": {
71728
- "type": {
71729
- "text": "Promise<boolean>"
71730
- }
71731
- },
71732
- "inheritedFrom": {
71733
- "name": "SbbUpdateSchedulerMixin",
71734
- "module": "core/mixins/update-scheduler-mixin.js"
71735
- }
71736
- },
71737
- {
71738
- "kind": "field",
71739
- "name": "['_$sbbElement$']",
71740
- "type": {
71741
- "text": "boolean"
71742
- },
71743
- "privacy": "public",
71744
- "static": true,
71745
- "default": "true",
71746
- "inheritedFrom": {
71747
- "name": "SbbElement",
71748
- "module": "core/base-elements/element.js"
71749
- }
71750
- },
71751
- {
71752
- "kind": "field",
71753
- "name": "elementDependencies",
71754
- "type": {
71755
- "text": "SbbElementType[] | undefined"
71756
- },
71757
- "privacy": "public",
71758
- "static": true,
71759
- "inheritedFrom": {
71760
- "name": "SbbElement",
71761
- "module": "core/base-elements/element.js"
71762
- }
71763
- },
71764
- {
71765
- "kind": "field",
71766
- "name": "role",
71767
- "type": {
71768
- "text": "ElementInternals['role'] | undefined"
71769
- },
71770
- "privacy": "public",
71771
- "static": true,
71772
- "inheritedFrom": {
71773
- "name": "SbbElement",
71774
- "module": "core/base-elements/element.js"
71775
- }
71776
- },
71777
- {
71778
- "kind": "field",
71779
- "name": "_controllers",
71780
- "type": {
71781
- "text": "Set<SbbReactiveController> | undefined"
71782
- },
71783
- "privacy": "private",
71784
- "inheritedFrom": {
71785
- "name": "SbbElement",
71786
- "module": "core/base-elements/element.js"
71787
71884
  }
71788
- },
71885
+ }
71886
+ ]
71887
+ }
71888
+ ],
71889
+ "exports": [
71890
+ {
71891
+ "kind": "js",
71892
+ "name": "SbbFocusVisibleWithinController",
71893
+ "declaration": {
71894
+ "name": "SbbFocusVisibleWithinController",
71895
+ "module": "core/a11y/focus-visible-within-controller.js"
71896
+ }
71897
+ }
71898
+ ]
71899
+ },
71900
+ {
71901
+ "kind": "javascript-module",
71902
+ "path": "core/a11y/focus.js",
71903
+ "declarations": [
71904
+ {
71905
+ "kind": "variable",
71906
+ "name": "IS_FOCUSABLE_QUERY"
71907
+ }
71908
+ ],
71909
+ "exports": [
71910
+ {
71911
+ "kind": "js",
71912
+ "name": "IS_FOCUSABLE_QUERY",
71913
+ "declaration": {
71914
+ "name": "IS_FOCUSABLE_QUERY",
71915
+ "module": "core/a11y/focus.js"
71916
+ }
71917
+ }
71918
+ ]
71919
+ },
71920
+ {
71921
+ "kind": "javascript-module",
71922
+ "path": "core/a11y/input-modality-detector.js",
71923
+ "declarations": [
71924
+ {
71925
+ "kind": "variable",
71926
+ "name": "CONTROL",
71927
+ "type": {
71928
+ "text": "number"
71929
+ },
71930
+ "default": "17"
71931
+ },
71932
+ {
71933
+ "kind": "variable",
71934
+ "name": "META",
71935
+ "type": {
71936
+ "text": "number"
71937
+ },
71938
+ "default": "91"
71939
+ },
71940
+ {
71941
+ "kind": "variable",
71942
+ "name": "MAC_META",
71943
+ "type": {
71944
+ "text": "number"
71945
+ },
71946
+ "default": "224"
71947
+ },
71948
+ {
71949
+ "kind": "variable",
71950
+ "name": "sbbInputModalityDetector",
71951
+ "default": "new SbbInputModalityDetector()"
71952
+ }
71953
+ ],
71954
+ "exports": [
71955
+ {
71956
+ "kind": "js",
71957
+ "name": "sbbInputModalityDetector",
71958
+ "declaration": {
71959
+ "name": "sbbInputModalityDetector",
71960
+ "module": "core/a11y/input-modality-detector.js"
71961
+ }
71962
+ }
71963
+ ]
71964
+ },
71965
+ {
71966
+ "kind": "javascript-module",
71967
+ "path": "core/a11y/interactivity-checker.js",
71968
+ "declarations": [
71969
+ {
71970
+ "kind": "class",
71971
+ "description": "Configuration for the isFocusable method.",
71972
+ "name": "IsFocusableConfig",
71973
+ "members": [
71789
71974
  {
71790
71975
  "kind": "field",
71791
- "name": "_hydrationRequired",
71976
+ "name": "ignoreVisibility",
71792
71977
  "type": {
71793
71978
  "text": "boolean"
71794
71979
  },
71795
- "privacy": "private",
71796
- "default": "!!this.shadowRoot",
71797
- "inheritedFrom": {
71798
- "name": "SbbElement",
71799
- "module": "core/base-elements/element.js"
71800
- }
71801
- },
71802
- {
71803
- "kind": "field",
71804
- "name": "_hydrationComplete",
71805
- "privacy": "private",
71806
- "default": "new Promise<boolean>( (resolve) => (this._resolveHydration = resolve), )",
71807
- "inheritedFrom": {
71808
- "name": "SbbElement",
71809
- "module": "core/base-elements/element.js"
71810
- }
71811
- },
71812
- {
71813
- "kind": "field",
71814
- "name": "_resolveHydration",
71815
- "type": {
71816
- "text": "(hydrationRequired: boolean) => void"
71817
- },
71818
- "privacy": "private",
71819
- "inheritedFrom": {
71820
- "name": "SbbElement",
71821
- "module": "core/base-elements/element.js"
71822
- }
71823
- },
71824
- {
71825
- "kind": "field",
71826
- "name": "_textObserver",
71827
- "type": {
71828
- "text": "MutationObserver | undefined"
71829
- },
71830
- "privacy": "private",
71831
- "inheritedFrom": {
71832
- "name": "SbbElement",
71833
- "module": "core/base-elements/element.js"
71834
- }
71835
- },
71980
+ "privacy": "public",
71981
+ "default": "false",
71982
+ "description": "Whether to count an element as focusable even if it is not currently visible."
71983
+ }
71984
+ ]
71985
+ },
71986
+ {
71987
+ "kind": "class",
71988
+ "description": "",
71989
+ "name": "InteractivityChecker",
71990
+ "members": [
71836
71991
  {
71837
- "kind": "field",
71838
- "name": "hydrationRequired",
71839
- "type": {
71840
- "text": "boolean"
71841
- },
71842
- "privacy": "protected",
71843
- "description": "Returns whether hydration is required and not completed.",
71844
- "readonly": true,
71845
- "inheritedFrom": {
71846
- "name": "SbbElement",
71847
- "module": "core/base-elements/element.js"
71992
+ "kind": "method",
71993
+ "name": "isDisabled",
71994
+ "privacy": "public",
71995
+ "return": {
71996
+ "type": {
71997
+ "text": ""
71998
+ }
71848
71999
  },
71849
- "default": "!!this.shadowRoot"
72000
+ "parameters": [
72001
+ {
72002
+ "name": "element",
72003
+ "type": {
72004
+ "text": "HTMLElement"
72005
+ },
72006
+ "description": "Element to be checked."
72007
+ }
72008
+ ],
72009
+ "description": "Gets whether an element is disabled."
71850
72010
  },
71851
72011
  {
71852
72012
  "kind": "method",
71853
- "name": "toggleState",
71854
- "privacy": "protected",
72013
+ "name": "isVisible",
72014
+ "privacy": "public",
71855
72015
  "return": {
71856
72016
  "type": {
71857
- "text": "void"
72017
+ "text": ""
71858
72018
  }
71859
72019
  },
71860
72020
  "parameters": [
71861
72021
  {
71862
- "name": "value",
72022
+ "name": "element",
71863
72023
  "type": {
71864
- "text": "string"
72024
+ "text": "HTMLElement"
71865
72025
  }
71866
- },
72026
+ }
72027
+ ],
72028
+ "description": "Gets whether an element is visible for the purposes of interactivity.\n\nThis will capture states like `display: none` and `visibility: hidden`, but not things like\nbeing clipped by an `overflow: hidden` parent or being outside the viewport."
72029
+ },
72030
+ {
72031
+ "kind": "method",
72032
+ "name": "isTabbable",
72033
+ "privacy": "public",
72034
+ "return": {
72035
+ "type": {
72036
+ "text": ""
72037
+ }
72038
+ },
72039
+ "parameters": [
71867
72040
  {
71868
- "name": "force",
71869
- "optional": true,
72041
+ "name": "element",
71870
72042
  "type": {
71871
- "text": "boolean"
71872
- }
72043
+ "text": "HTMLElement"
72044
+ },
72045
+ "description": "Element to be checked."
71873
72046
  }
71874
72047
  ],
71875
- "inheritedFrom": {
71876
- "name": "SbbElement",
71877
- "module": "core/base-elements/element.js"
71878
- }
72048
+ "description": "Gets whether an element can be reached via Tab key.\nAssumes that the element has already been checked with isFocusable."
71879
72049
  },
71880
72050
  {
71881
72051
  "kind": "method",
71882
- "name": "_slotchangeHandler",
71883
- "privacy": "private",
72052
+ "name": "isFocusable",
72053
+ "privacy": "public",
71884
72054
  "return": {
71885
72055
  "type": {
71886
- "text": "void"
72056
+ "text": ""
71887
72057
  }
71888
72058
  },
71889
72059
  "parameters": [
71890
72060
  {
71891
- "name": "event",
72061
+ "name": "element",
71892
72062
  "type": {
71893
- "text": "Event"
71894
- }
72063
+ "text": "HTMLElement"
72064
+ },
72065
+ "description": "Element to be checked."
71895
72066
  },
71896
72067
  {
71897
- "name": "slot",
72068
+ "name": "config",
72069
+ "optional": true,
71898
72070
  "type": {
71899
- "text": "HTMLSlotElement"
71900
- }
72071
+ "text": "IsFocusableConfig"
72072
+ },
72073
+ "description": "The config object with options to customize this method's behavior"
71901
72074
  }
71902
72075
  ],
71903
- "inheritedFrom": {
71904
- "name": "SbbElement",
71905
- "module": "core/base-elements/element.js"
71906
- }
72076
+ "description": "Gets whether an element can be focused by the user."
72077
+ }
72078
+ ]
72079
+ },
72080
+ {
72081
+ "kind": "variable",
72082
+ "name": "interactivityChecker",
72083
+ "default": "new InteractivityChecker()"
72084
+ }
72085
+ ],
72086
+ "exports": [
72087
+ {
72088
+ "kind": "js",
72089
+ "name": "IsFocusableConfig",
72090
+ "declaration": {
72091
+ "name": "IsFocusableConfig",
72092
+ "module": "core/a11y/interactivity-checker.js"
72093
+ }
72094
+ },
72095
+ {
72096
+ "kind": "js",
72097
+ "name": "InteractivityChecker",
72098
+ "declaration": {
72099
+ "name": "InteractivityChecker",
72100
+ "module": "core/a11y/interactivity-checker.js"
72101
+ }
72102
+ },
72103
+ {
72104
+ "kind": "js",
72105
+ "name": "interactivityChecker",
72106
+ "declaration": {
72107
+ "name": "interactivityChecker",
72108
+ "module": "core/a11y/interactivity-checker.js"
72109
+ }
72110
+ }
72111
+ ]
72112
+ },
72113
+ {
72114
+ "kind": "javascript-module",
72115
+ "path": "core/a11y/live-announcer.js",
72116
+ "declarations": [
72117
+ {
72118
+ "kind": "class",
72119
+ "description": "Allows to announce messages to screen readers.\n\nAdapted from https://github.com/angular/components/blob/main/src/cdk/a11y/live-announcer/live-announcer.ts",
72120
+ "name": "SbbLiveAnnouncer",
72121
+ "members": [
72122
+ {
72123
+ "kind": "field",
72124
+ "name": "_liveElement",
72125
+ "type": {
72126
+ "text": "HTMLElement"
72127
+ },
72128
+ "privacy": "private"
72129
+ },
72130
+ {
72131
+ "kind": "field",
72132
+ "name": "_previousTimeout",
72133
+ "type": {
72134
+ "text": "ReturnType<typeof setTimeout> | undefined"
72135
+ },
72136
+ "privacy": "private"
72137
+ },
72138
+ {
72139
+ "kind": "field",
72140
+ "name": "_currentPromise",
72141
+ "type": {
72142
+ "text": "Promise<void> | undefined"
72143
+ },
72144
+ "privacy": "private"
72145
+ },
72146
+ {
72147
+ "kind": "field",
72148
+ "name": "_currentResolve",
72149
+ "type": {
72150
+ "text": "(() => void) | undefined"
72151
+ },
72152
+ "privacy": "private"
71907
72153
  },
71908
72154
  {
71909
72155
  "kind": "method",
71910
- "name": "_handleSlotChangeForSlottedState",
71911
- "privacy": "private",
72156
+ "name": "announce",
72157
+ "privacy": "public",
71912
72158
  "return": {
71913
72159
  "type": {
71914
- "text": "void"
72160
+ "text": ""
71915
72161
  }
71916
72162
  },
71917
72163
  "parameters": [
71918
72164
  {
71919
- "name": "slot",
72165
+ "name": "message",
71920
72166
  "type": {
71921
- "text": "HTMLSlotElement"
71922
- }
72167
+ "text": "string"
72168
+ },
72169
+ "description": "Message to be announced to the screen reader."
71923
72170
  }
71924
72171
  ],
71925
- "inheritedFrom": {
71926
- "name": "SbbElement",
71927
- "module": "core/base-elements/element.js"
71928
- }
72172
+ "description": "Announces a message to screen readers."
71929
72173
  },
71930
72174
  {
71931
72175
  "kind": "method",
71932
- "name": "_updateSlottedState",
71933
- "privacy": "private",
72176
+ "name": "announce",
72177
+ "privacy": "public",
71934
72178
  "return": {
71935
72179
  "type": {
71936
- "text": "void"
72180
+ "text": ""
71937
72181
  }
71938
72182
  },
71939
72183
  "parameters": [
71940
72184
  {
71941
- "name": "slot",
72185
+ "name": "message",
71942
72186
  "type": {
71943
- "text": "HTMLSlotElement"
71944
- }
72187
+ "text": "string"
72188
+ },
72189
+ "description": "Message to be announced to the screen reader."
72190
+ },
72191
+ {
72192
+ "name": "politeness",
72193
+ "optional": true,
72194
+ "type": {
72195
+ "text": "AriaLivePoliteness"
72196
+ },
72197
+ "description": "The politeness of the announcer element."
71945
72198
  }
71946
72199
  ],
71947
- "inheritedFrom": {
71948
- "name": "SbbElement",
71949
- "module": "core/base-elements/element.js"
71950
- }
72200
+ "description": "Announces a message to screen readers."
71951
72201
  },
71952
72202
  {
71953
72203
  "kind": "method",
71954
- "name": "_observeTextNodesInSlot",
71955
- "privacy": "private",
72204
+ "name": "announce",
72205
+ "privacy": "public",
71956
72206
  "return": {
71957
72207
  "type": {
71958
- "text": "void"
72208
+ "text": ""
71959
72209
  }
71960
72210
  },
71961
72211
  "parameters": [
71962
72212
  {
71963
- "name": "slot",
72213
+ "name": "message",
71964
72214
  "type": {
71965
- "text": "HTMLSlotElement"
71966
- }
72215
+ "text": "string"
72216
+ },
72217
+ "description": "Message to be announced to the screen reader."
72218
+ },
72219
+ {
72220
+ "name": "duration",
72221
+ "optional": true,
72222
+ "type": {
72223
+ "text": "number"
72224
+ },
72225
+ "description": "Time in milliseconds after which to clear out the announcer element. Note\nthat this takes effect after the message has been added to the DOM, which can be up to\n100ms after `announce` has been called."
71967
72226
  }
71968
72227
  ],
71969
- "inheritedFrom": {
71970
- "name": "SbbElement",
71971
- "module": "core/base-elements/element.js"
71972
- }
72228
+ "description": "Announces a message to screen readers."
71973
72229
  },
71974
72230
  {
71975
72231
  "kind": "method",
71976
- "name": "_hasSlottedContent",
71977
- "privacy": "private",
72232
+ "name": "announce",
72233
+ "privacy": "public",
71978
72234
  "return": {
71979
72235
  "type": {
71980
- "text": "boolean"
72236
+ "text": ""
71981
72237
  }
71982
72238
  },
71983
72239
  "parameters": [
71984
72240
  {
71985
- "name": "slot",
72241
+ "name": "message",
71986
72242
  "type": {
71987
- "text": "HTMLSlotElement"
71988
- }
71989
- }
71990
- ],
71991
- "inheritedFrom": {
71992
- "name": "SbbElement",
71993
- "module": "core/base-elements/element.js"
71994
- }
71995
- }
71996
- ],
71997
- "events": [
71998
- {
71999
- "name": "stick",
72000
- "type": {
72001
- "text": "Event"
72002
- },
72003
- "description": "Emits when the animation from normal content flow to `position: sticky` ends."
72004
- },
72005
- {
72006
- "name": "unstick",
72007
- "type": {
72008
- "text": "Event"
72009
- },
72010
- "description": "Emits when the animation from `position: sticky` to normal content flow ends."
72011
- },
72012
- {
72013
- "name": "beforestick",
72014
- "type": {
72015
- "text": "Event"
72016
- },
72017
- "description": "Emits when the animation from normal content flow to `position: sticky` starts. Can be canceled."
72018
- },
72019
- {
72020
- "name": "beforeunstick",
72021
- "type": {
72022
- "text": "Event"
72023
- },
72024
- "description": "Emits when the animation from `position: sticky` to normal content flow starts. Can be canceled."
72025
- }
72026
- ],
72027
- "attributes": [
72028
- {
72029
- "name": "color",
72030
- "type": {
72031
- "text": "| 'white'\n | 'milk'\n | 'midnight'\n | 'charcoal'\n | null"
72032
- },
72033
- "default": "null",
72034
- "description": "Color of the container, like transparent, white etc.",
72035
- "fieldName": "color"
72036
- },
72037
- {
72038
- "name": "size",
72039
- "type": {
72040
- "text": "'m' | 's'"
72041
- },
72042
- "description": "Size of the container.",
72043
- "default": "'m' / 's' (lean)",
72044
- "fieldName": "size"
72045
- }
72046
- ],
72047
- "mixins": [
72048
- {
72049
- "name": "SbbUpdateSchedulerMixin",
72050
- "module": "core.js"
72051
- }
72052
- ],
72053
- "superclass": {
72054
- "name": "SbbElement",
72055
- "module": "core.js"
72056
- },
72057
- "tagName": "sbb-sticky-bar",
72058
- "customElement": true
72059
- }
72060
- ],
72061
- "exports": [
72062
- {
72063
- "kind": "js",
72064
- "name": "SbbStickyBarElement",
72065
- "declaration": {
72066
- "name": "SbbStickyBarElement",
72067
- "module": "container/sticky-bar/sticky-bar.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": [
72243
+ "text": "string"
72244
+ },
72245
+ "description": "Message to be announced to the screen reader."
72246
+ },
72247
+ {
72248
+ "name": "politeness",
72249
+ "optional": true,
72250
+ "type": {
72251
+ "text": "AriaLivePoliteness"
72252
+ },
72253
+ "description": "The politeness of the announcer element."
72254
+ },
72255
+ {
72256
+ "name": "duration",
72257
+ "optional": true,
72258
+ "type": {
72259
+ "text": "number"
72260
+ },
72261
+ "description": "Time in milliseconds after which to clear out the announcer element. Note\nthat this takes effect after the message has been added to the DOM, which can be up to\n100ms after `announce` has been called."
72262
+ }
72263
+ ],
72264
+ "description": "Announces a message to screen readers."
72265
+ },
72161
72266
  {
72162
- "name": "event",
72163
- "type": {
72164
- "text": "KeyboardEvent | undefined"
72267
+ "kind": "method",
72268
+ "name": "announce",
72269
+ "privacy": "public",
72270
+ "return": {
72271
+ "type": {
72272
+ "text": "Promise<void>"
72273
+ }
72165
72274
  },
72166
- "description": "The keyboard event to check. If null, will count as a 'next' step."
72275
+ "parameters": [
72276
+ {
72277
+ "name": "message",
72278
+ "type": {
72279
+ "text": "string"
72280
+ }
72281
+ },
72282
+ {
72283
+ "name": "args",
72284
+ "type": {
72285
+ "text": "any[]"
72286
+ }
72287
+ }
72288
+ ]
72167
72289
  },
72168
72290
  {
72169
- "name": "current",
72170
- "type": {
72171
- "text": "number"
72291
+ "kind": "method",
72292
+ "name": "clear",
72293
+ "privacy": "public",
72294
+ "return": {
72295
+ "type": {
72296
+ "text": "void"
72297
+ }
72172
72298
  },
72173
- "description": "The index of the current element in the list."
72299
+ "description": "Clears the current text from the announcer element. Can be used to prevent\nscreen readers from reading the text out again while the user is going\nthrough the page landmarks."
72174
72300
  },
72175
72301
  {
72176
- "name": "size",
72177
- "type": {
72178
- "text": "number"
72179
- },
72180
- "description": "The size of the list."
72302
+ "kind": "method",
72303
+ "name": "destroy",
72304
+ "privacy": "public",
72305
+ "return": {
72306
+ "type": {
72307
+ "text": "void"
72308
+ }
72309
+ }
72310
+ },
72311
+ {
72312
+ "kind": "method",
72313
+ "name": "_createLiveElement",
72314
+ "privacy": "private",
72315
+ "return": {
72316
+ "type": {
72317
+ "text": "HTMLElement"
72318
+ }
72319
+ }
72181
72320
  }
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."
72321
+ ]
72322
+ },
72323
+ {
72324
+ "kind": "variable",
72325
+ "name": "sbbLiveAnnouncer",
72326
+ "default": "new SbbLiveAnnouncer()"
72184
72327
  }
72185
72328
  ],
72186
72329
  "exports": [
72187
72330
  {
72188
72331
  "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",
72332
+ "name": "SbbLiveAnnouncer",
72214
72333
  "declaration": {
72215
- "name": "isArrowKeyOrPageKeysPressed",
72216
- "module": "core/a11y/arrow-navigation.js"
72334
+ "name": "SbbLiveAnnouncer",
72335
+ "module": "core/a11y/live-announcer.js"
72217
72336
  }
72218
72337
  },
72219
72338
  {
72220
72339
  "kind": "js",
72221
- "name": "getNextElementIndex",
72340
+ "name": "sbbLiveAnnouncer",
72222
72341
  "declaration": {
72223
- "name": "getNextElementIndex",
72224
- "module": "core/a11y/arrow-navigation.js"
72342
+ "name": "sbbLiveAnnouncer",
72343
+ "module": "core/a11y/live-announcer.js"
72225
72344
  }
72226
72345
  }
72227
72346
  ]
72228
72347
  },
72229
72348
  {
72230
72349
  "kind": "javascript-module",
72231
- "path": "core/a11y/fake-event-detection.js",
72350
+ "path": "container/sticky-bar/sticky-bar.component.js",
72232
72351
  "declarations": [
72233
72352
  {
72234
- "kind": "function",
72235
- "name": "isFakeMousedownFromScreenReader",
72236
- "return": {
72237
- "type": {
72238
- "text": "boolean"
72239
- }
72240
- },
72241
- "parameters": [
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": [
72242
72357
  {
72243
- "name": "event",
72244
- "type": {
72245
- "text": "MouseEvent"
72246
- }
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"
72247
72370
  }
72248
72371
  ],
72249
- "description": "Gets whether an event could be a faked `mousedown` event dispatched by a screen reader."
72250
- },
72251
- {
72252
- "kind": "function",
72253
- "name": "isFakeTouchstartFromScreenReader",
72254
- "return": {
72255
- "type": {
72256
- "text": "boolean"
72257
- }
72258
- },
72259
- "parameters": [
72372
+ "slots": [
72260
72373
  {
72261
- "name": "event",
72262
- "type": {
72263
- "text": "TouchEvent"
72264
- }
72374
+ "description": "Use the unnamed slot to add content to the sticky bar.",
72375
+ "name": ""
72265
72376
  }
72266
72377
  ],
72267
- "description": "Gets whether an event could be a faked `touchstart` event dispatched by a screen reader."
72268
- }
72269
- ],
72270
- "exports": [
72271
- {
72272
- "kind": "js",
72273
- "name": "isFakeMousedownFromScreenReader",
72274
- "declaration": {
72275
- "name": "isFakeMousedownFromScreenReader",
72276
- "module": "core/a11y/fake-event-detection.js"
72277
- }
72278
- },
72279
- {
72280
- "kind": "js",
72281
- "name": "isFakeTouchstartFromScreenReader",
72282
- "declaration": {
72283
- "name": "isFakeTouchstartFromScreenReader",
72284
- "module": "core/a11y/fake-event-detection.js"
72285
- }
72286
- }
72287
- ]
72288
- },
72289
- {
72290
- "kind": "javascript-module",
72291
- "path": "core/a11y/focus-trap-controller.js",
72292
- "declarations": [
72293
- {
72294
- "kind": "class",
72295
- "description": "",
72296
- "name": "SbbFocusTrapController",
72297
72378
  "members": [
72298
72379
  {
72299
72380
  "kind": "field",
72300
- "name": "enabled",
72381
+ "name": "elementName",
72382
+ "type": {
72383
+ "text": "string"
72384
+ },
72301
72385
  "privacy": "public",
72302
- "description": "Whether the focus is trap is enabled.",
72303
- "parameters": [
72304
- {
72305
- "name": "enabled"
72306
- }
72307
- ],
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', }",
72308
72401
  "type": {
72309
- "text": "boolean"
72402
+ "text": "{\n beforestick: 'beforestick',\n stick: 'stick',\n beforeunstick: 'beforeunstick',\n unstick: 'unstick',\n }"
72310
72403
  }
72311
72404
  },
72312
72405
  {
72313
72406
  "kind": "field",
72314
- "name": "_abortController",
72407
+ "name": "color",
72315
72408
  "type": {
72316
- "text": "AbortController | null"
72409
+ "text": "| 'white'\n | 'milk'\n | 'midnight'\n | 'charcoal'\n | null"
72317
72410
  },
72318
- "privacy": "private",
72319
- "default": "null"
72411
+ "privacy": "public",
72412
+ "default": "null",
72413
+ "description": "Color of the container, like transparent, white etc.",
72414
+ "attribute": "color",
72415
+ "reflects": true
72320
72416
  },
72321
72417
  {
72322
- "kind": "method",
72323
- "name": "hostDisconnected",
72418
+ "kind": "field",
72419
+ "name": "size",
72420
+ "type": {
72421
+ "text": "'m' | 's'"
72422
+ },
72324
72423
  "privacy": "public",
72325
- "return": {
72326
- "type": {
72327
- "text": "void"
72328
- }
72329
- }
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'"
72330
72438
  },
72331
72439
  {
72332
- "kind": "method",
72333
- "name": "focusInitialElement",
72334
- "privacy": "public",
72335
- "return": {
72336
- "type": {
72337
- "text": ""
72338
- }
72440
+ "kind": "field",
72441
+ "name": "_stateInternal",
72442
+ "type": {
72443
+ "text": "StickyState"
72339
72444
  },
72340
- "parameters": [
72341
- {
72342
- "name": "options",
72343
- "optional": true,
72344
- "type": {
72345
- "text": "FocusOptions"
72346
- }
72347
- }
72348
- ],
72349
- "description": "Focuses the element that should be focused when the focus trap is initialized."
72445
+ "privacy": "private"
72350
72446
  },
72351
72447
  {
72352
- "kind": "method",
72353
- "name": "focusFirstTabbableElement",
72354
- "privacy": "public",
72355
- "return": {
72356
- "type": {
72357
- "text": ""
72358
- }
72448
+ "kind": "field",
72449
+ "name": "_intersector",
72450
+ "type": {
72451
+ "text": "HTMLSpanElement | undefined"
72359
72452
  },
72360
- "parameters": [
72361
- {
72362
- "name": "options",
72363
- "optional": true,
72364
- "type": {
72365
- "text": "FocusOptions"
72366
- }
72367
- }
72368
- ],
72369
- "description": "Focuses the first tabbable element within the focus trap region."
72453
+ "privacy": "private"
72370
72454
  },
72371
72455
  {
72372
- "kind": "method",
72373
- "name": "focusLastTabbableElement",
72374
- "privacy": "public",
72375
- "return": {
72376
- "type": {
72377
- "text": ""
72378
- }
72379
- },
72380
- "parameters": [
72381
- {
72382
- "name": "options",
72383
- "optional": true,
72384
- "type": {
72385
- "text": "FocusOptions"
72386
- }
72387
- }
72388
- ],
72389
- "description": "Focuses the last tabbable element within the focus trap region."
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]), })"
72390
72460
  },
72391
72461
  {
72392
72462
  "kind": "method",
72393
- "name": "_trap",
72463
+ "name": "_isZeroAnimationDuration",
72394
72464
  "privacy": "private",
72395
72465
  "return": {
72396
72466
  "type": {
72397
- "text": "void"
72467
+ "text": "boolean"
72398
72468
  }
72399
72469
  }
72400
72470
  },
72401
72471
  {
72402
72472
  "kind": "method",
72403
- "name": "_getFirstTabbableElement",
72473
+ "name": "_detectStickyState",
72404
72474
  "privacy": "private",
72405
72475
  "return": {
72406
72476
  "type": {
72407
- "text": "HTMLElement | null"
72477
+ "text": "void"
72408
72478
  }
72409
72479
  },
72410
72480
  "parameters": [
72411
72481
  {
72412
- "name": "root",
72482
+ "name": "entry",
72413
72483
  "type": {
72414
- "text": "HTMLElement"
72484
+ "text": "IntersectionObserverEntry"
72415
72485
  }
72416
72486
  }
72417
- ],
72418
- "description": "Get the first tabbable element from a DOM subtree (inclusive)."
72487
+ ]
72419
72488
  },
72420
72489
  {
72421
72490
  "kind": "method",
72422
- "name": "_getLastTabbableElement",
72423
- "privacy": "private",
72491
+ "name": "stick",
72492
+ "privacy": "public",
72424
72493
  "return": {
72425
72494
  "type": {
72426
- "text": "HTMLElement | null"
72495
+ "text": "void"
72427
72496
  }
72428
72497
  },
72429
- "parameters": [
72430
- {
72431
- "name": "root",
72432
- "type": {
72433
- "text": "HTMLElement"
72434
- }
72435
- }
72436
- ],
72437
- "description": "Get the last tabbable element from a DOM subtree (inclusive)."
72498
+ "description": "Animates from normal content flow position to `position: sticky`."
72438
72499
  },
72439
72500
  {
72440
72501
  "kind": "method",
72441
- "name": "_untrap",
72442
- "privacy": "private",
72502
+ "name": "unstick",
72503
+ "privacy": "public",
72443
72504
  "return": {
72444
72505
  "type": {
72445
72506
  "text": "void"
72446
72507
  }
72447
- }
72448
- }
72449
- ]
72450
- }
72451
- ],
72452
- "exports": [
72453
- {
72454
- "kind": "js",
72455
- "name": "SbbFocusTrapController",
72456
- "declaration": {
72457
- "name": "SbbFocusTrapController",
72458
- "module": "core/a11y/focus-trap-controller.js"
72459
- }
72460
- }
72461
- ]
72462
- },
72463
- {
72464
- "kind": "javascript-module",
72465
- "path": "core/a11y/focus-visible-within-controller.js",
72466
- "declarations": [
72467
- {
72468
- "kind": "class",
72469
- "description": "",
72470
- "name": "SbbFocusVisibleWithinController",
72471
- "members": [
72472
- {
72473
- "kind": "field",
72474
- "name": "_focusinHandler",
72475
- "privacy": "private"
72476
- },
72477
- {
72478
- "kind": "field",
72479
- "name": "_focusoutHandler",
72480
- "privacy": "private"
72508
+ },
72509
+ "description": "Animates `position: sticky` to normal content flow position."
72481
72510
  },
72482
72511
  {
72483
72512
  "kind": "method",
72484
- "name": "hostConnected",
72485
- "privacy": "public",
72513
+ "name": "_stickyCallback",
72514
+ "privacy": "private",
72486
72515
  "return": {
72487
72516
  "type": {
72488
72517
  "text": "void"
@@ -72491,472 +72520,443 @@
72491
72520
  },
72492
72521
  {
72493
72522
  "kind": "method",
72494
- "name": "hostDisconnected",
72495
- "privacy": "public",
72523
+ "name": "_unstickyCallback",
72524
+ "privacy": "private",
72496
72525
  "return": {
72497
72526
  "type": {
72498
72527
  "text": "void"
72499
72528
  }
72500
72529
  }
72501
- }
72502
- ]
72503
- }
72504
- ],
72505
- "exports": [
72506
- {
72507
- "kind": "js",
72508
- "name": "SbbFocusVisibleWithinController",
72509
- "declaration": {
72510
- "name": "SbbFocusVisibleWithinController",
72511
- "module": "core/a11y/focus-visible-within-controller.js"
72512
- }
72513
- }
72514
- ]
72515
- },
72516
- {
72517
- "kind": "javascript-module",
72518
- "path": "core/a11y/focus.js",
72519
- "declarations": [
72520
- {
72521
- "kind": "variable",
72522
- "name": "IS_FOCUSABLE_QUERY"
72523
- }
72524
- ],
72525
- "exports": [
72526
- {
72527
- "kind": "js",
72528
- "name": "IS_FOCUSABLE_QUERY",
72529
- "declaration": {
72530
- "name": "IS_FOCUSABLE_QUERY",
72531
- "module": "core/a11y/focus.js"
72532
- }
72533
- }
72534
- ]
72535
- },
72536
- {
72537
- "kind": "javascript-module",
72538
- "path": "core/a11y/input-modality-detector.js",
72539
- "declarations": [
72540
- {
72541
- "kind": "variable",
72542
- "name": "CONTROL",
72543
- "type": {
72544
- "text": "number"
72545
- },
72546
- "default": "17"
72547
- },
72548
- {
72549
- "kind": "variable",
72550
- "name": "META",
72551
- "type": {
72552
- "text": "number"
72553
- },
72554
- "default": "91"
72555
- },
72556
- {
72557
- "kind": "variable",
72558
- "name": "MAC_META",
72559
- "type": {
72560
- "text": "number"
72561
- },
72562
- "default": "224"
72563
- },
72564
- {
72565
- "kind": "variable",
72566
- "name": "sbbInputModalityDetector",
72567
- "default": "new SbbInputModalityDetector()"
72568
- }
72569
- ],
72570
- "exports": [
72571
- {
72572
- "kind": "js",
72573
- "name": "sbbInputModalityDetector",
72574
- "declaration": {
72575
- "name": "sbbInputModalityDetector",
72576
- "module": "core/a11y/input-modality-detector.js"
72577
- }
72578
- }
72579
- ]
72580
- },
72581
- {
72582
- "kind": "javascript-module",
72583
- "path": "core/a11y/interactivity-checker.js",
72584
- "declarations": [
72585
- {
72586
- "kind": "class",
72587
- "description": "Configuration for the isFocusable method.",
72588
- "name": "IsFocusableConfig",
72589
- "members": [
72590
- {
72591
- "kind": "field",
72592
- "name": "ignoreVisibility",
72593
- "type": {
72594
- "text": "boolean"
72595
- },
72596
- "privacy": "public",
72597
- "default": "false",
72598
- "description": "Whether to count an element as focusable even if it is not currently visible."
72599
- }
72600
- ]
72601
- },
72602
- {
72603
- "kind": "class",
72604
- "description": "",
72605
- "name": "InteractivityChecker",
72606
- "members": [
72530
+ },
72607
72531
  {
72608
72532
  "kind": "method",
72609
- "name": "isDisabled",
72610
- "privacy": "public",
72533
+ "name": "_onAnimationEnd",
72534
+ "privacy": "private",
72611
72535
  "return": {
72612
72536
  "type": {
72613
- "text": ""
72537
+ "text": "void"
72614
72538
  }
72615
72539
  },
72616
72540
  "parameters": [
72617
72541
  {
72618
- "name": "element",
72542
+ "name": "event",
72619
72543
  "type": {
72620
- "text": "HTMLElement"
72621
- },
72622
- "description": "Element to be checked."
72544
+ "text": "AnimationEvent"
72545
+ }
72623
72546
  }
72624
- ],
72625
- "description": "Gets whether an element is disabled."
72547
+ ]
72626
72548
  },
72627
72549
  {
72628
72550
  "kind": "method",
72629
- "name": "isVisible",
72630
- "privacy": "public",
72551
+ "name": "_dispatchBeforeStickEvent",
72552
+ "privacy": "private",
72631
72553
  "return": {
72632
72554
  "type": {
72633
- "text": ""
72555
+ "text": "boolean"
72634
72556
  }
72635
- },
72636
- "parameters": [
72637
- {
72638
- "name": "element",
72639
- "type": {
72640
- "text": "HTMLElement"
72641
- }
72557
+ }
72558
+ },
72559
+ {
72560
+ "kind": "method",
72561
+ "name": "_dispatchBeforeUnStickEvent",
72562
+ "privacy": "private",
72563
+ "return": {
72564
+ "type": {
72565
+ "text": "boolean"
72642
72566
  }
72643
- ],
72644
- "description": "Gets whether an element is visible for the purposes of interactivity.\n\nThis will capture states like `display: none` and `visibility: hidden`, but not things like\nbeing clipped by an `overflow: hidden` parent or being outside the viewport."
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
+ }
72645
72586
  },
72646
72587
  {
72647
72588
  "kind": "method",
72648
- "name": "isTabbable",
72649
- "privacy": "public",
72589
+ "name": "startUpdate",
72590
+ "privacy": "protected",
72650
72591
  "return": {
72651
72592
  "type": {
72652
- "text": ""
72593
+ "text": "void"
72653
72594
  }
72654
72595
  },
72655
- "parameters": [
72656
- {
72657
- "name": "element",
72658
- "type": {
72659
- "text": "HTMLElement"
72660
- },
72661
- "description": "Element to be checked."
72662
- }
72663
- ],
72664
- "description": "Gets whether an element can be reached via Tab key.\nAssumes that the element has already been checked with isFocusable."
72596
+ "inheritedFrom": {
72597
+ "name": "SbbUpdateSchedulerMixin",
72598
+ "module": "core/mixins/update-scheduler-mixin.js"
72599
+ }
72665
72600
  },
72666
72601
  {
72667
72602
  "kind": "method",
72668
- "name": "isFocusable",
72669
- "privacy": "public",
72603
+ "name": "completeUpdate",
72604
+ "privacy": "protected",
72670
72605
  "return": {
72671
72606
  "type": {
72672
- "text": ""
72607
+ "text": "void"
72673
72608
  }
72674
72609
  },
72675
- "parameters": [
72676
- {
72677
- "name": "element",
72678
- "type": {
72679
- "text": "HTMLElement"
72680
- },
72681
- "description": "Element to be checked."
72682
- },
72683
- {
72684
- "name": "config",
72685
- "optional": true,
72686
- "type": {
72687
- "text": "IsFocusableConfig"
72688
- },
72689
- "description": "The config object with options to customize this method's behavior"
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>"
72690
72622
  }
72691
- ],
72692
- "description": "Gets whether an element can be focused by the user."
72693
- }
72694
- ]
72695
- },
72696
- {
72697
- "kind": "variable",
72698
- "name": "interactivityChecker",
72699
- "default": "new InteractivityChecker()"
72700
- }
72701
- ],
72702
- "exports": [
72703
- {
72704
- "kind": "js",
72705
- "name": "IsFocusableConfig",
72706
- "declaration": {
72707
- "name": "IsFocusableConfig",
72708
- "module": "core/a11y/interactivity-checker.js"
72709
- }
72710
- },
72711
- {
72712
- "kind": "js",
72713
- "name": "InteractivityChecker",
72714
- "declaration": {
72715
- "name": "InteractivityChecker",
72716
- "module": "core/a11y/interactivity-checker.js"
72717
- }
72718
- },
72719
- {
72720
- "kind": "js",
72721
- "name": "interactivityChecker",
72722
- "declaration": {
72723
- "name": "interactivityChecker",
72724
- "module": "core/a11y/interactivity-checker.js"
72725
- }
72726
- }
72727
- ]
72728
- },
72729
- {
72730
- "kind": "javascript-module",
72731
- "path": "core/a11y/live-announcer.js",
72732
- "declarations": [
72733
- {
72734
- "kind": "class",
72735
- "description": "Allows to announce messages to screen readers.\n\nAdapted from https://github.com/angular/components/blob/main/src/cdk/a11y/live-announcer/live-announcer.ts",
72736
- "name": "SbbLiveAnnouncer",
72737
- "members": [
72623
+ },
72624
+ "inheritedFrom": {
72625
+ "name": "SbbUpdateSchedulerMixin",
72626
+ "module": "core/mixins/update-scheduler-mixin.js"
72627
+ }
72628
+ },
72738
72629
  {
72739
72630
  "kind": "field",
72740
- "name": "_liveElement",
72631
+ "name": "['_$sbbElement$']",
72741
72632
  "type": {
72742
- "text": "HTMLElement"
72633
+ "text": "boolean"
72743
72634
  },
72744
- "privacy": "private"
72635
+ "privacy": "public",
72636
+ "static": true,
72637
+ "default": "true",
72638
+ "inheritedFrom": {
72639
+ "name": "SbbElement",
72640
+ "module": "core/base-elements/element.js"
72641
+ }
72745
72642
  },
72746
72643
  {
72747
72644
  "kind": "field",
72748
- "name": "_previousTimeout",
72645
+ "name": "elementDependencies",
72749
72646
  "type": {
72750
- "text": "ReturnType<typeof setTimeout> | undefined"
72647
+ "text": "SbbElementType[] | undefined"
72751
72648
  },
72752
- "privacy": "private"
72649
+ "privacy": "public",
72650
+ "static": true,
72651
+ "inheritedFrom": {
72652
+ "name": "SbbElement",
72653
+ "module": "core/base-elements/element.js"
72654
+ }
72753
72655
  },
72754
72656
  {
72755
72657
  "kind": "field",
72756
- "name": "_currentPromise",
72658
+ "name": "role",
72757
72659
  "type": {
72758
- "text": "Promise<void> | undefined"
72660
+ "text": "ElementInternals['role'] | undefined"
72759
72661
  },
72760
- "privacy": "private"
72662
+ "privacy": "public",
72663
+ "static": true,
72664
+ "inheritedFrom": {
72665
+ "name": "SbbElement",
72666
+ "module": "core/base-elements/element.js"
72667
+ }
72761
72668
  },
72762
72669
  {
72763
72670
  "kind": "field",
72764
- "name": "_currentResolve",
72671
+ "name": "_controllers",
72765
72672
  "type": {
72766
- "text": "(() => void) | undefined"
72673
+ "text": "Set<SbbReactiveController> | undefined"
72767
72674
  },
72768
- "privacy": "private"
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
+ }
72769
72727
  },
72770
72728
  {
72771
- "kind": "method",
72772
- "name": "announce",
72773
- "privacy": "public",
72774
- "return": {
72775
- "type": {
72776
- "text": ""
72777
- }
72729
+ "kind": "field",
72730
+ "name": "hydrationRequired",
72731
+ "type": {
72732
+ "text": "boolean"
72778
72733
  },
72779
- "parameters": [
72780
- {
72781
- "name": "message",
72782
- "type": {
72783
- "text": "string"
72784
- },
72785
- "description": "Message to be announced to the screen reader."
72786
- }
72787
- ],
72788
- "description": "Announces a message to screen readers."
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"
72789
72742
  },
72790
72743
  {
72791
72744
  "kind": "method",
72792
- "name": "announce",
72793
- "privacy": "public",
72745
+ "name": "toggleState",
72746
+ "privacy": "protected",
72794
72747
  "return": {
72795
72748
  "type": {
72796
- "text": ""
72749
+ "text": "void"
72797
72750
  }
72798
72751
  },
72799
72752
  "parameters": [
72800
72753
  {
72801
- "name": "message",
72754
+ "name": "value",
72802
72755
  "type": {
72803
72756
  "text": "string"
72804
- },
72805
- "description": "Message to be announced to the screen reader."
72757
+ }
72806
72758
  },
72807
72759
  {
72808
- "name": "politeness",
72760
+ "name": "force",
72809
72761
  "optional": true,
72810
72762
  "type": {
72811
- "text": "AriaLivePoliteness"
72812
- },
72813
- "description": "The politeness of the announcer element."
72763
+ "text": "boolean"
72764
+ }
72814
72765
  }
72815
72766
  ],
72816
- "description": "Announces a message to screen readers."
72767
+ "inheritedFrom": {
72768
+ "name": "SbbElement",
72769
+ "module": "core/base-elements/element.js"
72770
+ }
72817
72771
  },
72818
72772
  {
72819
72773
  "kind": "method",
72820
- "name": "announce",
72821
- "privacy": "public",
72774
+ "name": "_slotchangeHandler",
72775
+ "privacy": "private",
72822
72776
  "return": {
72823
72777
  "type": {
72824
- "text": ""
72778
+ "text": "void"
72825
72779
  }
72826
72780
  },
72827
72781
  "parameters": [
72828
72782
  {
72829
- "name": "message",
72783
+ "name": "event",
72830
72784
  "type": {
72831
- "text": "string"
72832
- },
72833
- "description": "Message to be announced to the screen reader."
72785
+ "text": "Event"
72786
+ }
72834
72787
  },
72835
72788
  {
72836
- "name": "duration",
72837
- "optional": true,
72789
+ "name": "slot",
72838
72790
  "type": {
72839
- "text": "number"
72840
- },
72841
- "description": "Time in milliseconds after which to clear out the announcer element. Note\nthat this takes effect after the message has been added to the DOM, which can be up to\n100ms after `announce` has been called."
72791
+ "text": "HTMLSlotElement"
72792
+ }
72842
72793
  }
72843
72794
  ],
72844
- "description": "Announces a message to screen readers."
72795
+ "inheritedFrom": {
72796
+ "name": "SbbElement",
72797
+ "module": "core/base-elements/element.js"
72798
+ }
72845
72799
  },
72846
72800
  {
72847
72801
  "kind": "method",
72848
- "name": "announce",
72849
- "privacy": "public",
72802
+ "name": "_handleSlotChangeForSlottedState",
72803
+ "privacy": "private",
72850
72804
  "return": {
72851
72805
  "type": {
72852
- "text": ""
72806
+ "text": "void"
72853
72807
  }
72854
72808
  },
72855
72809
  "parameters": [
72856
72810
  {
72857
- "name": "message",
72858
- "type": {
72859
- "text": "string"
72860
- },
72861
- "description": "Message to be announced to the screen reader."
72862
- },
72863
- {
72864
- "name": "politeness",
72865
- "optional": true,
72866
- "type": {
72867
- "text": "AriaLivePoliteness"
72868
- },
72869
- "description": "The politeness of the announcer element."
72870
- },
72871
- {
72872
- "name": "duration",
72873
- "optional": true,
72811
+ "name": "slot",
72874
72812
  "type": {
72875
- "text": "number"
72876
- },
72877
- "description": "Time in milliseconds after which to clear out the announcer element. Note\nthat this takes effect after the message has been added to the DOM, which can be up to\n100ms after `announce` has been called."
72813
+ "text": "HTMLSlotElement"
72814
+ }
72878
72815
  }
72879
72816
  ],
72880
- "description": "Announces a message to screen readers."
72817
+ "inheritedFrom": {
72818
+ "name": "SbbElement",
72819
+ "module": "core/base-elements/element.js"
72820
+ }
72881
72821
  },
72882
72822
  {
72883
72823
  "kind": "method",
72884
- "name": "announce",
72885
- "privacy": "public",
72824
+ "name": "_updateSlottedState",
72825
+ "privacy": "private",
72886
72826
  "return": {
72887
72827
  "type": {
72888
- "text": "Promise<void>"
72828
+ "text": "void"
72889
72829
  }
72890
72830
  },
72891
72831
  "parameters": [
72892
72832
  {
72893
- "name": "message",
72894
- "type": {
72895
- "text": "string"
72896
- }
72897
- },
72898
- {
72899
- "name": "args",
72833
+ "name": "slot",
72900
72834
  "type": {
72901
- "text": "any[]"
72835
+ "text": "HTMLSlotElement"
72902
72836
  }
72903
72837
  }
72904
- ]
72838
+ ],
72839
+ "inheritedFrom": {
72840
+ "name": "SbbElement",
72841
+ "module": "core/base-elements/element.js"
72842
+ }
72905
72843
  },
72906
72844
  {
72907
72845
  "kind": "method",
72908
- "name": "clear",
72909
- "privacy": "public",
72846
+ "name": "_observeTextNodesInSlot",
72847
+ "privacy": "private",
72910
72848
  "return": {
72911
72849
  "type": {
72912
72850
  "text": "void"
72913
72851
  }
72914
72852
  },
72915
- "description": "Clears the current text from the announcer element. Can be used to prevent\nscreen readers from reading the text out again while the user is going\nthrough the page landmarks."
72916
- },
72917
- {
72918
- "kind": "method",
72919
- "name": "destroy",
72920
- "privacy": "public",
72921
- "return": {
72922
- "type": {
72923
- "text": "void"
72853
+ "parameters": [
72854
+ {
72855
+ "name": "slot",
72856
+ "type": {
72857
+ "text": "HTMLSlotElement"
72858
+ }
72924
72859
  }
72860
+ ],
72861
+ "inheritedFrom": {
72862
+ "name": "SbbElement",
72863
+ "module": "core/base-elements/element.js"
72925
72864
  }
72926
72865
  },
72927
72866
  {
72928
72867
  "kind": "method",
72929
- "name": "_createLiveElement",
72868
+ "name": "_hasSlottedContent",
72930
72869
  "privacy": "private",
72931
72870
  "return": {
72932
72871
  "type": {
72933
- "text": "HTMLElement"
72872
+ "text": "boolean"
72873
+ }
72874
+ },
72875
+ "parameters": [
72876
+ {
72877
+ "name": "slot",
72878
+ "type": {
72879
+ "text": "HTMLSlotElement"
72880
+ }
72934
72881
  }
72882
+ ],
72883
+ "inheritedFrom": {
72884
+ "name": "SbbElement",
72885
+ "module": "core/base-elements/element.js"
72935
72886
  }
72936
72887
  }
72937
- ]
72938
- },
72939
- {
72940
- "kind": "variable",
72941
- "name": "sbbLiveAnnouncer",
72942
- "default": "new SbbLiveAnnouncer()"
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
72943
72951
  }
72944
72952
  ],
72945
72953
  "exports": [
72946
72954
  {
72947
72955
  "kind": "js",
72948
- "name": "SbbLiveAnnouncer",
72949
- "declaration": {
72950
- "name": "SbbLiveAnnouncer",
72951
- "module": "core/a11y/live-announcer.js"
72952
- }
72953
- },
72954
- {
72955
- "kind": "js",
72956
- "name": "sbbLiveAnnouncer",
72956
+ "name": "SbbStickyBarElement",
72957
72957
  "declaration": {
72958
- "name": "sbbLiveAnnouncer",
72959
- "module": "core/a11y/live-announcer.js"
72958
+ "name": "SbbStickyBarElement",
72959
+ "module": "container/sticky-bar/sticky-bar.component.js"
72960
72960
  }
72961
72961
  }
72962
72962
  ]