@sbb-esta/lyne-elements-dev 5.0.0-next-dev.1777275988 → 5.0.0-next-dev.1777276913

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 (43) hide show
  1. package/autocomplete/autocomplete-base-element.js +1 -1
  2. package/autocomplete/autocomplete.component.js +1 -1
  3. package/{autocomplete-base-element-C9tqASMk.js → autocomplete-base-element-CSCv_WVh.js} +1 -1
  4. package/autocomplete.js +1 -1
  5. package/autocomplete.pure.js +1 -1
  6. package/core/styles/mixins/overlay.scss +2 -2
  7. package/core.css +4 -3
  8. package/custom-elements.json +1048 -1048
  9. package/development/autocomplete/autocomplete-base-element.js +1 -1
  10. package/development/autocomplete/autocomplete.component.js +1 -1
  11. package/development/{autocomplete-base-element-CYkiT0T1.js → autocomplete-base-element-Bwkns3IL.js} +2 -2
  12. package/development/autocomplete.js +1 -1
  13. package/development/autocomplete.pure.js +1 -1
  14. package/development/option/option/option.component.js +1 -1
  15. package/development/option.component-B2EO4N0R.js +132 -0
  16. package/development/option.js +1 -1
  17. package/development/option.pure.js +1 -1
  18. package/development/popover/popover.component.js +1 -1
  19. package/development/popover.component-DHBnOzyr.js +526 -0
  20. package/development/popover.js +1 -1
  21. package/development/popover.pure.js +1 -1
  22. package/development/select/select.component.js +1 -1
  23. package/development/{select.component-CsWWKZ4u.js → select.component-BnHx3v3c.js} +2 -2
  24. package/development/select.js +1 -1
  25. package/development/select.pure.js +1 -1
  26. package/off-brand-theme.css +4 -3
  27. package/option/option/option.component.js +1 -1
  28. package/{option.component-C1Mm3ZFh.js → option.component-B8PivDHD.js} +1 -1
  29. package/option.js +1 -1
  30. package/option.pure.js +1 -1
  31. package/package.json +2 -2
  32. package/popover/popover.component.js +1 -1
  33. package/{popover.component-jz3_WQeT.js → popover.component-nn2NRFOs.js} +1 -1
  34. package/popover.js +1 -1
  35. package/popover.pure.js +1 -1
  36. package/safety-theme.css +4 -3
  37. package/select/select.component.js +1 -1
  38. package/{select.component-Ds7G7zet.js → select.component-De-aDcuf.js} +1 -1
  39. package/select.js +1 -1
  40. package/select.pure.js +1 -1
  41. package/standard-theme.css +4 -3
  42. package/development/option.component-Dod6JgbH.js +0 -132
  43. package/development/popover.component-BvSrQ7zF.js +0 -526
@@ -71850,326 +71850,180 @@
71850
71850
  },
71851
71851
  {
71852
71852
  "kind": "javascript-module",
71853
- "path": "core/a11y/arrow-navigation.js",
71853
+ "path": "container/sticky-bar/sticky-bar.component.js",
71854
71854
  "declarations": [
71855
71855
  {
71856
- "kind": "function",
71857
- "name": "isArrowKeyPressed",
71858
- "return": {
71859
- "type": {
71860
- "text": "boolean"
71861
- }
71862
- },
71863
- "parameters": [
71856
+ "kind": "class",
71857
+ "description": "A container that sticks to the bottom of the page if slotted into `sbb-container`.",
71858
+ "name": "SbbStickyBarElement",
71859
+ "cssProperties": [
71864
71860
  {
71865
- "name": "event",
71866
- "type": {
71867
- "text": "KeyboardEvent"
71868
- },
71869
- "description": "The keyboard event to check."
71870
- }
71871
- ],
71872
- "description": "Check if the key pressed is among those allowed for navigation."
71873
- },
71874
- {
71875
- "kind": "function",
71876
- "name": "isPreviousArrowKeyPressed",
71877
- "return": {
71878
- "type": {
71879
- "text": "boolean"
71880
- }
71881
- },
71882
- "parameters": [
71861
+ "description": "Block padding of the sticky bar.",
71862
+ "name": "--sbb-sticky-bar-padding-block",
71863
+ "default": "var(--sbb-spacing-responsive-xs)"
71864
+ },
71883
71865
  {
71884
- "name": "event",
71885
- "type": {
71886
- "text": "KeyboardEvent"
71887
- },
71888
- "description": "The keyboard event to check."
71866
+ "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.",
71867
+ "name": "--sbb-sticky-bar-bottom-overlapping-height",
71868
+ "default": "0px"
71869
+ },
71870
+ {
71871
+ "description": "To specify a custom stack order, the `z-index` can be overridden by defining this CSS variable.",
71872
+ "name": "--sbb-sticky-bar-z-index"
71889
71873
  }
71890
71874
  ],
71891
- "description": "Check if the key pressed should move the navigation to the next element."
71892
- },
71893
- {
71894
- "kind": "function",
71895
- "name": "isNextArrowKeyPressed",
71896
- "return": {
71897
- "type": {
71898
- "text": "boolean"
71899
- }
71900
- },
71901
- "parameters": [
71875
+ "slots": [
71902
71876
  {
71903
- "name": "event",
71904
- "type": {
71905
- "text": "KeyboardEvent"
71906
- },
71907
- "description": "The keyboard event to check."
71877
+ "description": "Use the unnamed slot to add content to the sticky bar.",
71878
+ "name": ""
71908
71879
  }
71909
71880
  ],
71910
- "description": "Check if the key pressed should move the navigation to the next element."
71911
- },
71912
- {
71913
- "kind": "function",
71914
- "name": "isArrowKeyOrPageKeysPressed",
71915
- "return": {
71916
- "type": {
71917
- "text": "boolean"
71918
- }
71919
- },
71920
- "parameters": [
71881
+ "members": [
71921
71882
  {
71922
- "name": "event",
71883
+ "kind": "field",
71884
+ "name": "elementName",
71923
71885
  "type": {
71924
- "text": "KeyboardEvent"
71886
+ "text": "string"
71925
71887
  },
71926
- "description": "The keyboard event to check."
71927
- }
71928
- ],
71929
- "description": "Check if the key pressed is among those allowed for navigation."
71930
- },
71931
- {
71932
- "kind": "function",
71933
- "name": "getNextElementIndex",
71934
- "return": {
71935
- "type": {
71936
- "text": ""
71937
- }
71938
- },
71939
- "parameters": [
71888
+ "privacy": "public",
71889
+ "static": true,
71890
+ "readonly": true,
71891
+ "default": "'sbb-sticky-bar'",
71892
+ "inheritedFrom": {
71893
+ "name": "SbbElement",
71894
+ "module": "core/base-elements/element.js"
71895
+ }
71896
+ },
71940
71897
  {
71941
- "name": "event",
71898
+ "kind": "field",
71899
+ "name": "events",
71900
+ "privacy": "public",
71901
+ "static": true,
71902
+ "readonly": true,
71903
+ "default": "{ beforestick: 'beforestick', stick: 'stick', beforeunstick: 'beforeunstick', unstick: 'unstick', }",
71942
71904
  "type": {
71943
- "text": "KeyboardEvent | undefined"
71944
- },
71945
- "description": "The keyboard event to check. If null, will count as a 'next' step."
71905
+ "text": "{\n beforestick: 'beforestick',\n stick: 'stick',\n beforeunstick: 'beforeunstick',\n unstick: 'unstick',\n }"
71906
+ }
71946
71907
  },
71947
71908
  {
71948
- "name": "current",
71909
+ "kind": "field",
71910
+ "name": "color",
71949
71911
  "type": {
71950
- "text": "number"
71912
+ "text": "| 'white'\n | 'milk'\n | 'midnight'\n | 'charcoal'\n | null"
71951
71913
  },
71952
- "description": "The index of the current element in the list."
71914
+ "privacy": "public",
71915
+ "default": "null",
71916
+ "description": "Color of the container, like transparent, white etc.",
71917
+ "attribute": "color",
71918
+ "reflects": true
71953
71919
  },
71954
71920
  {
71921
+ "kind": "field",
71955
71922
  "name": "size",
71956
71923
  "type": {
71957
- "text": "number"
71924
+ "text": "'m' | 's'"
71958
71925
  },
71959
- "description": "The size of the list."
71960
- }
71961
- ],
71962
- "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."
71963
- }
71964
- ],
71965
- "exports": [
71966
- {
71967
- "kind": "js",
71968
- "name": "isArrowKeyPressed",
71969
- "declaration": {
71970
- "name": "isArrowKeyPressed",
71971
- "module": "core/a11y/arrow-navigation.js"
71972
- }
71973
- },
71974
- {
71975
- "kind": "js",
71976
- "name": "isPreviousArrowKeyPressed",
71977
- "declaration": {
71978
- "name": "isPreviousArrowKeyPressed",
71979
- "module": "core/a11y/arrow-navigation.js"
71980
- }
71981
- },
71982
- {
71983
- "kind": "js",
71984
- "name": "isNextArrowKeyPressed",
71985
- "declaration": {
71986
- "name": "isNextArrowKeyPressed",
71987
- "module": "core/a11y/arrow-navigation.js"
71988
- }
71989
- },
71990
- {
71991
- "kind": "js",
71992
- "name": "isArrowKeyOrPageKeysPressed",
71993
- "declaration": {
71994
- "name": "isArrowKeyOrPageKeysPressed",
71995
- "module": "core/a11y/arrow-navigation.js"
71996
- }
71997
- },
71998
- {
71999
- "kind": "js",
72000
- "name": "getNextElementIndex",
72001
- "declaration": {
72002
- "name": "getNextElementIndex",
72003
- "module": "core/a11y/arrow-navigation.js"
72004
- }
72005
- }
72006
- ]
72007
- },
72008
- {
72009
- "kind": "javascript-module",
72010
- "path": "core/a11y/fake-event-detection.js",
72011
- "declarations": [
72012
- {
72013
- "kind": "function",
72014
- "name": "isFakeMousedownFromScreenReader",
72015
- "return": {
72016
- "type": {
72017
- "text": "boolean"
72018
- }
72019
- },
72020
- "parameters": [
72021
- {
72022
- "name": "event",
72023
- "type": {
72024
- "text": "MouseEvent"
72025
- }
72026
- }
72027
- ],
72028
- "description": "Gets whether an event could be a faked `mousedown` event dispatched by a screen reader."
72029
- },
72030
- {
72031
- "kind": "function",
72032
- "name": "isFakeTouchstartFromScreenReader",
72033
- "return": {
72034
- "type": {
72035
- "text": "boolean"
72036
- }
72037
- },
72038
- "parameters": [
71926
+ "privacy": "public",
71927
+ "description": "Size of the container.",
71928
+ "default": "'m' / 's' (lean)",
71929
+ "attribute": "size",
71930
+ "reflects": true
71931
+ },
72039
71932
  {
72040
- "name": "event",
71933
+ "kind": "field",
71934
+ "name": "_state",
71935
+ "privacy": "private",
71936
+ "description": "The state of the component.",
72041
71937
  "type": {
72042
- "text": "TouchEvent"
72043
- }
72044
- }
72045
- ],
72046
- "description": "Gets whether an event could be a faked `touchstart` event dispatched by a screen reader."
72047
- }
72048
- ],
72049
- "exports": [
72050
- {
72051
- "kind": "js",
72052
- "name": "isFakeMousedownFromScreenReader",
72053
- "declaration": {
72054
- "name": "isFakeMousedownFromScreenReader",
72055
- "module": "core/a11y/fake-event-detection.js"
72056
- }
72057
- },
72058
- {
72059
- "kind": "js",
72060
- "name": "isFakeTouchstartFromScreenReader",
72061
- "declaration": {
72062
- "name": "isFakeTouchstartFromScreenReader",
72063
- "module": "core/a11y/fake-event-detection.js"
72064
- }
72065
- }
72066
- ]
72067
- },
72068
- {
72069
- "kind": "javascript-module",
72070
- "path": "core/a11y/focus-trap-controller.js",
72071
- "declarations": [
72072
- {
72073
- "kind": "class",
72074
- "description": "",
72075
- "name": "SbbFocusTrapController",
72076
- "members": [
71938
+ "text": "StickyState"
71939
+ },
71940
+ "default": "'sticky'"
71941
+ },
72077
71942
  {
72078
71943
  "kind": "field",
72079
- "name": "enabled",
72080
- "privacy": "public",
72081
- "description": "Whether the focus is trap is enabled.",
72082
- "parameters": [
72083
- {
72084
- "name": "enabled"
72085
- }
72086
- ],
71944
+ "name": "_stateInternal",
72087
71945
  "type": {
72088
- "text": "boolean"
72089
- }
71946
+ "text": "StickyState"
71947
+ },
71948
+ "privacy": "private"
72090
71949
  },
72091
71950
  {
72092
71951
  "kind": "field",
72093
- "name": "_abortController",
71952
+ "name": "_intersector",
72094
71953
  "type": {
72095
- "text": "AbortController | null"
71954
+ "text": "HTMLSpanElement | undefined"
72096
71955
  },
71956
+ "privacy": "private"
71957
+ },
71958
+ {
71959
+ "kind": "field",
71960
+ "name": "_observer",
72097
71961
  "privacy": "private",
72098
- "default": "null"
71962
+ "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]), })"
72099
71963
  },
72100
71964
  {
72101
71965
  "kind": "method",
72102
- "name": "hostDisconnected",
72103
- "privacy": "public",
71966
+ "name": "_isZeroAnimationDuration",
71967
+ "privacy": "private",
72104
71968
  "return": {
72105
71969
  "type": {
72106
- "text": "void"
71970
+ "text": "boolean"
72107
71971
  }
72108
71972
  }
72109
71973
  },
72110
71974
  {
72111
71975
  "kind": "method",
72112
- "name": "focusInitialElement",
72113
- "privacy": "public",
71976
+ "name": "_detectStickyState",
71977
+ "privacy": "private",
72114
71978
  "return": {
72115
71979
  "type": {
72116
- "text": ""
71980
+ "text": "void"
72117
71981
  }
72118
71982
  },
72119
71983
  "parameters": [
72120
71984
  {
72121
- "name": "options",
72122
- "optional": true,
71985
+ "name": "entry",
72123
71986
  "type": {
72124
- "text": "FocusOptions"
71987
+ "text": "IntersectionObserverEntry"
72125
71988
  }
72126
71989
  }
72127
- ],
72128
- "description": "Focuses the element that should be focused when the focus trap is initialized."
71990
+ ]
72129
71991
  },
72130
71992
  {
72131
71993
  "kind": "method",
72132
- "name": "focusFirstTabbableElement",
71994
+ "name": "stick",
72133
71995
  "privacy": "public",
72134
71996
  "return": {
72135
71997
  "type": {
72136
- "text": ""
71998
+ "text": "void"
72137
71999
  }
72138
72000
  },
72139
- "parameters": [
72140
- {
72141
- "name": "options",
72142
- "optional": true,
72143
- "type": {
72144
- "text": "FocusOptions"
72145
- }
72146
- }
72147
- ],
72148
- "description": "Focuses the first tabbable element within the focus trap region."
72001
+ "description": "Animates from normal content flow position to `position: sticky`."
72149
72002
  },
72150
72003
  {
72151
72004
  "kind": "method",
72152
- "name": "focusLastTabbableElement",
72005
+ "name": "unstick",
72153
72006
  "privacy": "public",
72154
72007
  "return": {
72155
72008
  "type": {
72156
- "text": ""
72009
+ "text": "void"
72157
72010
  }
72158
72011
  },
72159
- "parameters": [
72160
- {
72161
- "name": "options",
72162
- "optional": true,
72163
- "type": {
72164
- "text": "FocusOptions"
72165
- }
72012
+ "description": "Animates `position: sticky` to normal content flow position."
72013
+ },
72014
+ {
72015
+ "kind": "method",
72016
+ "name": "_stickyCallback",
72017
+ "privacy": "private",
72018
+ "return": {
72019
+ "type": {
72020
+ "text": "void"
72166
72021
  }
72167
- ],
72168
- "description": "Focuses the last tabbable element within the focus trap region."
72022
+ }
72169
72023
  },
72170
72024
  {
72171
72025
  "kind": "method",
72172
- "name": "_trap",
72026
+ "name": "_unstickyCallback",
72173
72027
  "privacy": "private",
72174
72028
  "return": {
72175
72029
  "type": {
@@ -72179,734 +72033,851 @@
72179
72033
  },
72180
72034
  {
72181
72035
  "kind": "method",
72182
- "name": "_getFirstTabbableElement",
72036
+ "name": "_onAnimationEnd",
72183
72037
  "privacy": "private",
72184
72038
  "return": {
72185
72039
  "type": {
72186
- "text": "HTMLElement | null"
72040
+ "text": "void"
72187
72041
  }
72188
72042
  },
72189
72043
  "parameters": [
72190
72044
  {
72191
- "name": "root",
72045
+ "name": "event",
72192
72046
  "type": {
72193
- "text": "HTMLElement"
72047
+ "text": "AnimationEvent"
72194
72048
  }
72195
72049
  }
72196
- ],
72197
- "description": "Get the first tabbable element from a DOM subtree (inclusive)."
72050
+ ]
72198
72051
  },
72199
72052
  {
72200
72053
  "kind": "method",
72201
- "name": "_getLastTabbableElement",
72054
+ "name": "_dispatchBeforeStickEvent",
72202
72055
  "privacy": "private",
72203
72056
  "return": {
72204
72057
  "type": {
72205
- "text": "HTMLElement | null"
72206
- }
72207
- },
72208
- "parameters": [
72209
- {
72210
- "name": "root",
72211
- "type": {
72212
- "text": "HTMLElement"
72213
- }
72058
+ "text": "boolean"
72214
72059
  }
72215
- ],
72216
- "description": "Get the last tabbable element from a DOM subtree (inclusive)."
72060
+ }
72217
72061
  },
72218
72062
  {
72219
72063
  "kind": "method",
72220
- "name": "_untrap",
72064
+ "name": "_dispatchBeforeUnStickEvent",
72221
72065
  "privacy": "private",
72222
72066
  "return": {
72223
72067
  "type": {
72224
- "text": "void"
72068
+ "text": "boolean"
72225
72069
  }
72226
72070
  }
72227
- }
72228
- ]
72229
- }
72230
- ],
72231
- "exports": [
72232
- {
72233
- "kind": "js",
72234
- "name": "SbbFocusTrapController",
72235
- "declaration": {
72236
- "name": "SbbFocusTrapController",
72237
- "module": "core/a11y/focus-trap-controller.js"
72238
- }
72239
- }
72240
- ]
72241
- },
72242
- {
72243
- "kind": "javascript-module",
72244
- "path": "core/a11y/focus-visible-within-controller.js",
72245
- "declarations": [
72246
- {
72247
- "kind": "class",
72248
- "description": "",
72249
- "name": "SbbFocusVisibleWithinController",
72250
- "members": [
72071
+ },
72251
72072
  {
72252
72073
  "kind": "field",
72253
- "name": "_focusinHandler",
72254
- "privacy": "private"
72074
+ "name": "_updatePromise",
72075
+ "privacy": "private",
72076
+ "inheritedFrom": {
72077
+ "name": "SbbUpdateSchedulerMixin",
72078
+ "module": "core/mixins/update-scheduler-mixin.js"
72079
+ }
72255
72080
  },
72256
72081
  {
72257
72082
  "kind": "field",
72258
- "name": "_focusoutHandler",
72259
- "privacy": "private"
72083
+ "name": "_updateResolve",
72084
+ "privacy": "private",
72085
+ "inheritedFrom": {
72086
+ "name": "SbbUpdateSchedulerMixin",
72087
+ "module": "core/mixins/update-scheduler-mixin.js"
72088
+ }
72260
72089
  },
72261
72090
  {
72262
72091
  "kind": "method",
72263
- "name": "hostConnected",
72264
- "privacy": "public",
72092
+ "name": "startUpdate",
72093
+ "privacy": "protected",
72265
72094
  "return": {
72266
72095
  "type": {
72267
72096
  "text": "void"
72268
72097
  }
72098
+ },
72099
+ "inheritedFrom": {
72100
+ "name": "SbbUpdateSchedulerMixin",
72101
+ "module": "core/mixins/update-scheduler-mixin.js"
72269
72102
  }
72270
72103
  },
72271
72104
  {
72272
72105
  "kind": "method",
72273
- "name": "hostDisconnected",
72274
- "privacy": "public",
72106
+ "name": "completeUpdate",
72107
+ "privacy": "protected",
72275
72108
  "return": {
72276
72109
  "type": {
72277
72110
  "text": "void"
72278
72111
  }
72112
+ },
72113
+ "inheritedFrom": {
72114
+ "name": "SbbUpdateSchedulerMixin",
72115
+ "module": "core/mixins/update-scheduler-mixin.js"
72116
+ }
72117
+ },
72118
+ {
72119
+ "kind": "method",
72120
+ "name": "getUpdateComplete",
72121
+ "privacy": "protected",
72122
+ "return": {
72123
+ "type": {
72124
+ "text": "Promise<boolean>"
72125
+ }
72126
+ },
72127
+ "inheritedFrom": {
72128
+ "name": "SbbUpdateSchedulerMixin",
72129
+ "module": "core/mixins/update-scheduler-mixin.js"
72279
72130
  }
72280
- }
72281
- ]
72282
- }
72283
- ],
72284
- "exports": [
72285
- {
72286
- "kind": "js",
72287
- "name": "SbbFocusVisibleWithinController",
72288
- "declaration": {
72289
- "name": "SbbFocusVisibleWithinController",
72290
- "module": "core/a11y/focus-visible-within-controller.js"
72291
- }
72292
- }
72293
- ]
72294
- },
72295
- {
72296
- "kind": "javascript-module",
72297
- "path": "core/a11y/focus.js",
72298
- "declarations": [
72299
- {
72300
- "kind": "variable",
72301
- "name": "IS_FOCUSABLE_QUERY"
72302
- }
72303
- ],
72304
- "exports": [
72305
- {
72306
- "kind": "js",
72307
- "name": "IS_FOCUSABLE_QUERY",
72308
- "declaration": {
72309
- "name": "IS_FOCUSABLE_QUERY",
72310
- "module": "core/a11y/focus.js"
72311
- }
72312
- }
72313
- ]
72314
- },
72315
- {
72316
- "kind": "javascript-module",
72317
- "path": "core/a11y/input-modality-detector.js",
72318
- "declarations": [
72319
- {
72320
- "kind": "variable",
72321
- "name": "CONTROL",
72322
- "type": {
72323
- "text": "number"
72324
- },
72325
- "default": "17"
72326
- },
72327
- {
72328
- "kind": "variable",
72329
- "name": "META",
72330
- "type": {
72331
- "text": "number"
72332
- },
72333
- "default": "91"
72334
- },
72335
- {
72336
- "kind": "variable",
72337
- "name": "MAC_META",
72338
- "type": {
72339
- "text": "number"
72340
- },
72341
- "default": "224"
72342
- },
72343
- {
72344
- "kind": "variable",
72345
- "name": "sbbInputModalityDetector",
72346
- "default": "new SbbInputModalityDetector()"
72347
- }
72348
- ],
72349
- "exports": [
72350
- {
72351
- "kind": "js",
72352
- "name": "sbbInputModalityDetector",
72353
- "declaration": {
72354
- "name": "sbbInputModalityDetector",
72355
- "module": "core/a11y/input-modality-detector.js"
72356
- }
72357
- }
72358
- ]
72359
- },
72360
- {
72361
- "kind": "javascript-module",
72362
- "path": "core/a11y/interactivity-checker.js",
72363
- "declarations": [
72364
- {
72365
- "kind": "class",
72366
- "description": "Configuration for the isFocusable method.",
72367
- "name": "IsFocusableConfig",
72368
- "members": [
72131
+ },
72132
+ {
72133
+ "kind": "field",
72134
+ "name": "['_$sbbElement$']",
72135
+ "type": {
72136
+ "text": "boolean"
72137
+ },
72138
+ "privacy": "public",
72139
+ "static": true,
72140
+ "default": "true",
72141
+ "inheritedFrom": {
72142
+ "name": "SbbElement",
72143
+ "module": "core/base-elements/element.js"
72144
+ }
72145
+ },
72146
+ {
72147
+ "kind": "field",
72148
+ "name": "elementDependencies",
72149
+ "type": {
72150
+ "text": "SbbElementType[] | undefined"
72151
+ },
72152
+ "privacy": "public",
72153
+ "static": true,
72154
+ "inheritedFrom": {
72155
+ "name": "SbbElement",
72156
+ "module": "core/base-elements/element.js"
72157
+ }
72158
+ },
72369
72159
  {
72370
72160
  "kind": "field",
72371
- "name": "ignoreVisibility",
72161
+ "name": "role",
72372
72162
  "type": {
72373
- "text": "boolean"
72163
+ "text": "ElementInternals['role'] | undefined"
72374
72164
  },
72375
72165
  "privacy": "public",
72376
- "default": "false",
72377
- "description": "Whether to count an element as focusable even if it is not currently visible."
72378
- }
72379
- ]
72380
- },
72381
- {
72382
- "kind": "class",
72383
- "description": "",
72384
- "name": "InteractivityChecker",
72385
- "members": [
72166
+ "static": true,
72167
+ "inheritedFrom": {
72168
+ "name": "SbbElement",
72169
+ "module": "core/base-elements/element.js"
72170
+ }
72171
+ },
72386
72172
  {
72387
- "kind": "method",
72388
- "name": "isDisabled",
72389
- "privacy": "public",
72390
- "return": {
72391
- "type": {
72392
- "text": ""
72393
- }
72173
+ "kind": "field",
72174
+ "name": "_controllers",
72175
+ "type": {
72176
+ "text": "Set<SbbReactiveController> | undefined"
72394
72177
  },
72395
- "parameters": [
72396
- {
72397
- "name": "element",
72398
- "type": {
72399
- "text": "HTMLElement"
72400
- },
72401
- "description": "Element to be checked."
72402
- }
72403
- ],
72404
- "description": "Gets whether an element is disabled."
72178
+ "privacy": "private",
72179
+ "inheritedFrom": {
72180
+ "name": "SbbElement",
72181
+ "module": "core/base-elements/element.js"
72182
+ }
72405
72183
  },
72406
72184
  {
72407
- "kind": "method",
72408
- "name": "isVisible",
72409
- "privacy": "public",
72410
- "return": {
72411
- "type": {
72412
- "text": ""
72413
- }
72185
+ "kind": "field",
72186
+ "name": "_hydrationRequired",
72187
+ "type": {
72188
+ "text": "boolean"
72414
72189
  },
72415
- "parameters": [
72416
- {
72417
- "name": "element",
72418
- "type": {
72419
- "text": "HTMLElement"
72420
- }
72421
- }
72422
- ],
72423
- "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."
72190
+ "privacy": "private",
72191
+ "default": "!!this.shadowRoot",
72192
+ "inheritedFrom": {
72193
+ "name": "SbbElement",
72194
+ "module": "core/base-elements/element.js"
72195
+ }
72196
+ },
72197
+ {
72198
+ "kind": "field",
72199
+ "name": "_hydrationComplete",
72200
+ "privacy": "private",
72201
+ "default": "new Promise<boolean>( (resolve) => (this._resolveHydration = resolve), )",
72202
+ "inheritedFrom": {
72203
+ "name": "SbbElement",
72204
+ "module": "core/base-elements/element.js"
72205
+ }
72206
+ },
72207
+ {
72208
+ "kind": "field",
72209
+ "name": "_resolveHydration",
72210
+ "type": {
72211
+ "text": "(hydrationRequired: boolean) => void"
72212
+ },
72213
+ "privacy": "private",
72214
+ "inheritedFrom": {
72215
+ "name": "SbbElement",
72216
+ "module": "core/base-elements/element.js"
72217
+ }
72218
+ },
72219
+ {
72220
+ "kind": "field",
72221
+ "name": "_textObserver",
72222
+ "type": {
72223
+ "text": "MutationObserver | undefined"
72224
+ },
72225
+ "privacy": "private",
72226
+ "inheritedFrom": {
72227
+ "name": "SbbElement",
72228
+ "module": "core/base-elements/element.js"
72229
+ }
72230
+ },
72231
+ {
72232
+ "kind": "field",
72233
+ "name": "hydrationRequired",
72234
+ "type": {
72235
+ "text": "boolean"
72236
+ },
72237
+ "privacy": "protected",
72238
+ "description": "Returns whether hydration is required and not completed.",
72239
+ "readonly": true,
72240
+ "inheritedFrom": {
72241
+ "name": "SbbElement",
72242
+ "module": "core/base-elements/element.js"
72243
+ },
72244
+ "default": "!!this.shadowRoot"
72424
72245
  },
72425
72246
  {
72426
72247
  "kind": "method",
72427
- "name": "isTabbable",
72428
- "privacy": "public",
72248
+ "name": "toggleState",
72249
+ "privacy": "protected",
72429
72250
  "return": {
72430
72251
  "type": {
72431
- "text": ""
72252
+ "text": "void"
72432
72253
  }
72433
72254
  },
72434
72255
  "parameters": [
72435
72256
  {
72436
- "name": "element",
72257
+ "name": "value",
72437
72258
  "type": {
72438
- "text": "HTMLElement"
72439
- },
72440
- "description": "Element to be checked."
72259
+ "text": "string"
72260
+ }
72261
+ },
72262
+ {
72263
+ "name": "force",
72264
+ "optional": true,
72265
+ "type": {
72266
+ "text": "boolean"
72267
+ }
72441
72268
  }
72442
72269
  ],
72443
- "description": "Gets whether an element can be reached via Tab key.\nAssumes that the element has already been checked with isFocusable."
72270
+ "inheritedFrom": {
72271
+ "name": "SbbElement",
72272
+ "module": "core/base-elements/element.js"
72273
+ }
72444
72274
  },
72445
72275
  {
72446
72276
  "kind": "method",
72447
- "name": "isFocusable",
72448
- "privacy": "public",
72277
+ "name": "_slotchangeHandler",
72278
+ "privacy": "private",
72449
72279
  "return": {
72450
72280
  "type": {
72451
- "text": ""
72281
+ "text": "void"
72452
72282
  }
72453
72283
  },
72454
72284
  "parameters": [
72455
72285
  {
72456
- "name": "element",
72286
+ "name": "event",
72457
72287
  "type": {
72458
- "text": "HTMLElement"
72459
- },
72460
- "description": "Element to be checked."
72288
+ "text": "Event"
72289
+ }
72461
72290
  },
72462
72291
  {
72463
- "name": "config",
72464
- "optional": true,
72292
+ "name": "slot",
72465
72293
  "type": {
72466
- "text": "IsFocusableConfig"
72467
- },
72468
- "description": "The config object with options to customize this method's behavior"
72294
+ "text": "HTMLSlotElement"
72295
+ }
72469
72296
  }
72470
72297
  ],
72471
- "description": "Gets whether an element can be focused by the user."
72472
- }
72473
- ]
72474
- },
72475
- {
72476
- "kind": "variable",
72477
- "name": "interactivityChecker",
72478
- "default": "new InteractivityChecker()"
72479
- }
72480
- ],
72481
- "exports": [
72482
- {
72483
- "kind": "js",
72484
- "name": "IsFocusableConfig",
72485
- "declaration": {
72486
- "name": "IsFocusableConfig",
72487
- "module": "core/a11y/interactivity-checker.js"
72488
- }
72489
- },
72490
- {
72491
- "kind": "js",
72492
- "name": "InteractivityChecker",
72493
- "declaration": {
72494
- "name": "InteractivityChecker",
72495
- "module": "core/a11y/interactivity-checker.js"
72496
- }
72497
- },
72498
- {
72499
- "kind": "js",
72500
- "name": "interactivityChecker",
72501
- "declaration": {
72502
- "name": "interactivityChecker",
72503
- "module": "core/a11y/interactivity-checker.js"
72504
- }
72505
- }
72506
- ]
72507
- },
72508
- {
72509
- "kind": "javascript-module",
72510
- "path": "core/a11y/live-announcer.js",
72511
- "declarations": [
72512
- {
72513
- "kind": "class",
72514
- "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",
72515
- "name": "SbbLiveAnnouncer",
72516
- "members": [
72517
- {
72518
- "kind": "field",
72519
- "name": "_liveElement",
72520
- "type": {
72521
- "text": "HTMLElement"
72522
- },
72523
- "privacy": "private"
72524
- },
72525
- {
72526
- "kind": "field",
72527
- "name": "_previousTimeout",
72528
- "type": {
72529
- "text": "ReturnType<typeof setTimeout> | undefined"
72530
- },
72531
- "privacy": "private"
72532
- },
72533
- {
72534
- "kind": "field",
72535
- "name": "_currentPromise",
72536
- "type": {
72537
- "text": "Promise<void> | undefined"
72538
- },
72539
- "privacy": "private"
72540
- },
72541
- {
72542
- "kind": "field",
72543
- "name": "_currentResolve",
72544
- "type": {
72545
- "text": "(() => void) | undefined"
72546
- },
72547
- "privacy": "private"
72298
+ "inheritedFrom": {
72299
+ "name": "SbbElement",
72300
+ "module": "core/base-elements/element.js"
72301
+ }
72548
72302
  },
72549
72303
  {
72550
72304
  "kind": "method",
72551
- "name": "announce",
72552
- "privacy": "public",
72305
+ "name": "_handleSlotChangeForSlottedState",
72306
+ "privacy": "private",
72553
72307
  "return": {
72554
72308
  "type": {
72555
- "text": ""
72309
+ "text": "void"
72556
72310
  }
72557
72311
  },
72558
72312
  "parameters": [
72559
72313
  {
72560
- "name": "message",
72314
+ "name": "slot",
72561
72315
  "type": {
72562
- "text": "string"
72563
- },
72564
- "description": "Message to be announced to the screen reader."
72316
+ "text": "HTMLSlotElement"
72317
+ }
72565
72318
  }
72566
72319
  ],
72567
- "description": "Announces a message to screen readers."
72320
+ "inheritedFrom": {
72321
+ "name": "SbbElement",
72322
+ "module": "core/base-elements/element.js"
72323
+ }
72568
72324
  },
72569
72325
  {
72570
72326
  "kind": "method",
72571
- "name": "announce",
72572
- "privacy": "public",
72327
+ "name": "_updateSlottedState",
72328
+ "privacy": "private",
72573
72329
  "return": {
72574
72330
  "type": {
72575
- "text": ""
72331
+ "text": "void"
72576
72332
  }
72577
72333
  },
72578
72334
  "parameters": [
72579
72335
  {
72580
- "name": "message",
72581
- "type": {
72582
- "text": "string"
72583
- },
72584
- "description": "Message to be announced to the screen reader."
72585
- },
72586
- {
72587
- "name": "politeness",
72588
- "optional": true,
72336
+ "name": "slot",
72589
72337
  "type": {
72590
- "text": "AriaLivePoliteness"
72591
- },
72592
- "description": "The politeness of the announcer element."
72338
+ "text": "HTMLSlotElement"
72339
+ }
72593
72340
  }
72594
72341
  ],
72595
- "description": "Announces a message to screen readers."
72342
+ "inheritedFrom": {
72343
+ "name": "SbbElement",
72344
+ "module": "core/base-elements/element.js"
72345
+ }
72596
72346
  },
72597
72347
  {
72598
72348
  "kind": "method",
72599
- "name": "announce",
72600
- "privacy": "public",
72349
+ "name": "_observeTextNodesInSlot",
72350
+ "privacy": "private",
72601
72351
  "return": {
72602
72352
  "type": {
72603
- "text": ""
72353
+ "text": "void"
72604
72354
  }
72605
72355
  },
72606
72356
  "parameters": [
72607
72357
  {
72608
- "name": "message",
72609
- "type": {
72610
- "text": "string"
72611
- },
72612
- "description": "Message to be announced to the screen reader."
72613
- },
72614
- {
72615
- "name": "duration",
72616
- "optional": true,
72358
+ "name": "slot",
72617
72359
  "type": {
72618
- "text": "number"
72619
- },
72620
- "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."
72360
+ "text": "HTMLSlotElement"
72361
+ }
72621
72362
  }
72622
72363
  ],
72623
- "description": "Announces a message to screen readers."
72364
+ "inheritedFrom": {
72365
+ "name": "SbbElement",
72366
+ "module": "core/base-elements/element.js"
72367
+ }
72624
72368
  },
72625
72369
  {
72626
72370
  "kind": "method",
72627
- "name": "announce",
72628
- "privacy": "public",
72371
+ "name": "_hasSlottedContent",
72372
+ "privacy": "private",
72629
72373
  "return": {
72630
72374
  "type": {
72631
- "text": ""
72375
+ "text": "boolean"
72632
72376
  }
72633
72377
  },
72634
72378
  "parameters": [
72635
72379
  {
72636
- "name": "message",
72637
- "type": {
72638
- "text": "string"
72639
- },
72640
- "description": "Message to be announced to the screen reader."
72641
- },
72642
- {
72643
- "name": "politeness",
72644
- "optional": true,
72645
- "type": {
72646
- "text": "AriaLivePoliteness"
72647
- },
72648
- "description": "The politeness of the announcer element."
72649
- },
72650
- {
72651
- "name": "duration",
72652
- "optional": true,
72380
+ "name": "slot",
72653
72381
  "type": {
72654
- "text": "number"
72655
- },
72656
- "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."
72382
+ "text": "HTMLSlotElement"
72383
+ }
72657
72384
  }
72658
72385
  ],
72659
- "description": "Announces a message to screen readers."
72386
+ "inheritedFrom": {
72387
+ "name": "SbbElement",
72388
+ "module": "core/base-elements/element.js"
72389
+ }
72390
+ }
72391
+ ],
72392
+ "events": [
72393
+ {
72394
+ "name": "stick",
72395
+ "type": {
72396
+ "text": "Event"
72397
+ },
72398
+ "description": "Emits when the animation from normal content flow to `position: sticky` ends."
72660
72399
  },
72661
72400
  {
72662
- "kind": "method",
72663
- "name": "announce",
72664
- "privacy": "public",
72665
- "return": {
72666
- "type": {
72667
- "text": "Promise<void>"
72668
- }
72401
+ "name": "unstick",
72402
+ "type": {
72403
+ "text": "Event"
72404
+ },
72405
+ "description": "Emits when the animation from `position: sticky` to normal content flow ends."
72406
+ },
72407
+ {
72408
+ "name": "beforestick",
72409
+ "type": {
72410
+ "text": "Event"
72411
+ },
72412
+ "description": "Emits when the animation from normal content flow to `position: sticky` starts. Can be canceled."
72413
+ },
72414
+ {
72415
+ "name": "beforeunstick",
72416
+ "type": {
72417
+ "text": "Event"
72418
+ },
72419
+ "description": "Emits when the animation from `position: sticky` to normal content flow starts. Can be canceled."
72420
+ }
72421
+ ],
72422
+ "attributes": [
72423
+ {
72424
+ "name": "color",
72425
+ "type": {
72426
+ "text": "| 'white'\n | 'milk'\n | 'midnight'\n | 'charcoal'\n | null"
72427
+ },
72428
+ "default": "null",
72429
+ "description": "Color of the container, like transparent, white etc.",
72430
+ "fieldName": "color"
72431
+ },
72432
+ {
72433
+ "name": "size",
72434
+ "type": {
72435
+ "text": "'m' | 's'"
72436
+ },
72437
+ "description": "Size of the container.",
72438
+ "default": "'m' / 's' (lean)",
72439
+ "fieldName": "size"
72440
+ }
72441
+ ],
72442
+ "mixins": [
72443
+ {
72444
+ "name": "SbbUpdateSchedulerMixin",
72445
+ "module": "core.js"
72446
+ }
72447
+ ],
72448
+ "superclass": {
72449
+ "name": "SbbElement",
72450
+ "module": "core.js"
72451
+ },
72452
+ "tagName": "sbb-sticky-bar",
72453
+ "customElement": true
72454
+ }
72455
+ ],
72456
+ "exports": [
72457
+ {
72458
+ "kind": "js",
72459
+ "name": "SbbStickyBarElement",
72460
+ "declaration": {
72461
+ "name": "SbbStickyBarElement",
72462
+ "module": "container/sticky-bar/sticky-bar.component.js"
72463
+ }
72464
+ }
72465
+ ]
72466
+ },
72467
+ {
72468
+ "kind": "javascript-module",
72469
+ "path": "core/a11y/arrow-navigation.js",
72470
+ "declarations": [
72471
+ {
72472
+ "kind": "function",
72473
+ "name": "isArrowKeyPressed",
72474
+ "return": {
72475
+ "type": {
72476
+ "text": "boolean"
72477
+ }
72478
+ },
72479
+ "parameters": [
72480
+ {
72481
+ "name": "event",
72482
+ "type": {
72483
+ "text": "KeyboardEvent"
72484
+ },
72485
+ "description": "The keyboard event to check."
72486
+ }
72487
+ ],
72488
+ "description": "Check if the key pressed is among those allowed for navigation."
72489
+ },
72490
+ {
72491
+ "kind": "function",
72492
+ "name": "isPreviousArrowKeyPressed",
72493
+ "return": {
72494
+ "type": {
72495
+ "text": "boolean"
72496
+ }
72497
+ },
72498
+ "parameters": [
72499
+ {
72500
+ "name": "event",
72501
+ "type": {
72502
+ "text": "KeyboardEvent"
72503
+ },
72504
+ "description": "The keyboard event to check."
72505
+ }
72506
+ ],
72507
+ "description": "Check if the key pressed should move the navigation to the next element."
72508
+ },
72509
+ {
72510
+ "kind": "function",
72511
+ "name": "isNextArrowKeyPressed",
72512
+ "return": {
72513
+ "type": {
72514
+ "text": "boolean"
72515
+ }
72516
+ },
72517
+ "parameters": [
72518
+ {
72519
+ "name": "event",
72520
+ "type": {
72521
+ "text": "KeyboardEvent"
72522
+ },
72523
+ "description": "The keyboard event to check."
72524
+ }
72525
+ ],
72526
+ "description": "Check if the key pressed should move the navigation to the next element."
72527
+ },
72528
+ {
72529
+ "kind": "function",
72530
+ "name": "isArrowKeyOrPageKeysPressed",
72531
+ "return": {
72532
+ "type": {
72533
+ "text": "boolean"
72534
+ }
72535
+ },
72536
+ "parameters": [
72537
+ {
72538
+ "name": "event",
72539
+ "type": {
72540
+ "text": "KeyboardEvent"
72669
72541
  },
72670
- "parameters": [
72671
- {
72672
- "name": "message",
72673
- "type": {
72674
- "text": "string"
72675
- }
72676
- },
72677
- {
72678
- "name": "args",
72679
- "type": {
72680
- "text": "any[]"
72681
- }
72682
- }
72683
- ]
72684
- },
72542
+ "description": "The keyboard event to check."
72543
+ }
72544
+ ],
72545
+ "description": "Check if the key pressed is among those allowed for navigation."
72546
+ },
72547
+ {
72548
+ "kind": "function",
72549
+ "name": "getNextElementIndex",
72550
+ "return": {
72551
+ "type": {
72552
+ "text": ""
72553
+ }
72554
+ },
72555
+ "parameters": [
72685
72556
  {
72686
- "kind": "method",
72687
- "name": "clear",
72688
- "privacy": "public",
72689
- "return": {
72690
- "type": {
72691
- "text": "void"
72692
- }
72557
+ "name": "event",
72558
+ "type": {
72559
+ "text": "KeyboardEvent | undefined"
72693
72560
  },
72694
- "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."
72561
+ "description": "The keyboard event to check. If null, will count as a 'next' step."
72695
72562
  },
72696
72563
  {
72697
- "kind": "method",
72698
- "name": "destroy",
72699
- "privacy": "public",
72700
- "return": {
72701
- "type": {
72702
- "text": "void"
72703
- }
72704
- }
72564
+ "name": "current",
72565
+ "type": {
72566
+ "text": "number"
72567
+ },
72568
+ "description": "The index of the current element in the list."
72705
72569
  },
72706
72570
  {
72707
- "kind": "method",
72708
- "name": "_createLiveElement",
72709
- "privacy": "private",
72710
- "return": {
72711
- "type": {
72712
- "text": "HTMLElement"
72713
- }
72714
- }
72571
+ "name": "size",
72572
+ "type": {
72573
+ "text": "number"
72574
+ },
72575
+ "description": "The size of the list."
72715
72576
  }
72716
- ]
72717
- },
72718
- {
72719
- "kind": "variable",
72720
- "name": "sbbLiveAnnouncer",
72721
- "default": "new SbbLiveAnnouncer()"
72577
+ ],
72578
+ "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."
72722
72579
  }
72723
72580
  ],
72724
72581
  "exports": [
72725
72582
  {
72726
72583
  "kind": "js",
72727
- "name": "SbbLiveAnnouncer",
72584
+ "name": "isArrowKeyPressed",
72728
72585
  "declaration": {
72729
- "name": "SbbLiveAnnouncer",
72730
- "module": "core/a11y/live-announcer.js"
72586
+ "name": "isArrowKeyPressed",
72587
+ "module": "core/a11y/arrow-navigation.js"
72731
72588
  }
72732
72589
  },
72733
72590
  {
72734
72591
  "kind": "js",
72735
- "name": "sbbLiveAnnouncer",
72592
+ "name": "isPreviousArrowKeyPressed",
72736
72593
  "declaration": {
72737
- "name": "sbbLiveAnnouncer",
72738
- "module": "core/a11y/live-announcer.js"
72594
+ "name": "isPreviousArrowKeyPressed",
72595
+ "module": "core/a11y/arrow-navigation.js"
72596
+ }
72597
+ },
72598
+ {
72599
+ "kind": "js",
72600
+ "name": "isNextArrowKeyPressed",
72601
+ "declaration": {
72602
+ "name": "isNextArrowKeyPressed",
72603
+ "module": "core/a11y/arrow-navigation.js"
72604
+ }
72605
+ },
72606
+ {
72607
+ "kind": "js",
72608
+ "name": "isArrowKeyOrPageKeysPressed",
72609
+ "declaration": {
72610
+ "name": "isArrowKeyOrPageKeysPressed",
72611
+ "module": "core/a11y/arrow-navigation.js"
72612
+ }
72613
+ },
72614
+ {
72615
+ "kind": "js",
72616
+ "name": "getNextElementIndex",
72617
+ "declaration": {
72618
+ "name": "getNextElementIndex",
72619
+ "module": "core/a11y/arrow-navigation.js"
72739
72620
  }
72740
72621
  }
72741
72622
  ]
72742
72623
  },
72743
72624
  {
72744
72625
  "kind": "javascript-module",
72745
- "path": "container/sticky-bar/sticky-bar.component.js",
72626
+ "path": "core/a11y/fake-event-detection.js",
72746
72627
  "declarations": [
72747
72628
  {
72748
- "kind": "class",
72749
- "description": "A container that sticks to the bottom of the page if slotted into `sbb-container`.",
72750
- "name": "SbbStickyBarElement",
72751
- "cssProperties": [
72752
- {
72753
- "description": "Block padding of the sticky bar.",
72754
- "name": "--sbb-sticky-bar-padding-block",
72755
- "default": "var(--sbb-spacing-responsive-xs)"
72756
- },
72757
- {
72758
- "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.",
72759
- "name": "--sbb-sticky-bar-bottom-overlapping-height",
72760
- "default": "0px"
72761
- },
72762
- {
72763
- "description": "To specify a custom stack order, the `z-index` can be overridden by defining this CSS variable.",
72764
- "name": "--sbb-sticky-bar-z-index"
72629
+ "kind": "function",
72630
+ "name": "isFakeMousedownFromScreenReader",
72631
+ "return": {
72632
+ "type": {
72633
+ "text": "boolean"
72765
72634
  }
72766
- ],
72767
- "slots": [
72635
+ },
72636
+ "parameters": [
72768
72637
  {
72769
- "description": "Use the unnamed slot to add content to the sticky bar.",
72770
- "name": ""
72638
+ "name": "event",
72639
+ "type": {
72640
+ "text": "MouseEvent"
72641
+ }
72771
72642
  }
72772
72643
  ],
72773
- "members": [
72644
+ "description": "Gets whether an event could be a faked `mousedown` event dispatched by a screen reader."
72645
+ },
72646
+ {
72647
+ "kind": "function",
72648
+ "name": "isFakeTouchstartFromScreenReader",
72649
+ "return": {
72650
+ "type": {
72651
+ "text": "boolean"
72652
+ }
72653
+ },
72654
+ "parameters": [
72774
72655
  {
72775
- "kind": "field",
72776
- "name": "elementName",
72656
+ "name": "event",
72777
72657
  "type": {
72778
- "text": "string"
72779
- },
72780
- "privacy": "public",
72781
- "static": true,
72782
- "readonly": true,
72783
- "default": "'sbb-sticky-bar'",
72784
- "inheritedFrom": {
72785
- "name": "SbbElement",
72786
- "module": "core/base-elements/element.js"
72658
+ "text": "TouchEvent"
72787
72659
  }
72788
- },
72660
+ }
72661
+ ],
72662
+ "description": "Gets whether an event could be a faked `touchstart` event dispatched by a screen reader."
72663
+ }
72664
+ ],
72665
+ "exports": [
72666
+ {
72667
+ "kind": "js",
72668
+ "name": "isFakeMousedownFromScreenReader",
72669
+ "declaration": {
72670
+ "name": "isFakeMousedownFromScreenReader",
72671
+ "module": "core/a11y/fake-event-detection.js"
72672
+ }
72673
+ },
72674
+ {
72675
+ "kind": "js",
72676
+ "name": "isFakeTouchstartFromScreenReader",
72677
+ "declaration": {
72678
+ "name": "isFakeTouchstartFromScreenReader",
72679
+ "module": "core/a11y/fake-event-detection.js"
72680
+ }
72681
+ }
72682
+ ]
72683
+ },
72684
+ {
72685
+ "kind": "javascript-module",
72686
+ "path": "core/a11y/focus-trap-controller.js",
72687
+ "declarations": [
72688
+ {
72689
+ "kind": "class",
72690
+ "description": "",
72691
+ "name": "SbbFocusTrapController",
72692
+ "members": [
72789
72693
  {
72790
72694
  "kind": "field",
72791
- "name": "events",
72695
+ "name": "enabled",
72792
72696
  "privacy": "public",
72793
- "static": true,
72794
- "readonly": true,
72795
- "default": "{ beforestick: 'beforestick', stick: 'stick', beforeunstick: 'beforeunstick', unstick: 'unstick', }",
72697
+ "description": "Whether the focus is trap is enabled.",
72698
+ "parameters": [
72699
+ {
72700
+ "name": "enabled"
72701
+ }
72702
+ ],
72796
72703
  "type": {
72797
- "text": "{\n beforestick: 'beforestick',\n stick: 'stick',\n beforeunstick: 'beforeunstick',\n unstick: 'unstick',\n }"
72704
+ "text": "boolean"
72798
72705
  }
72799
72706
  },
72800
72707
  {
72801
72708
  "kind": "field",
72802
- "name": "color",
72709
+ "name": "_abortController",
72803
72710
  "type": {
72804
- "text": "| 'white'\n | 'milk'\n | 'midnight'\n | 'charcoal'\n | null"
72711
+ "text": "AbortController | null"
72805
72712
  },
72806
- "privacy": "public",
72807
- "default": "null",
72808
- "description": "Color of the container, like transparent, white etc.",
72809
- "attribute": "color",
72810
- "reflects": true
72713
+ "privacy": "private",
72714
+ "default": "null"
72811
72715
  },
72812
72716
  {
72813
- "kind": "field",
72814
- "name": "size",
72815
- "type": {
72816
- "text": "'m' | 's'"
72817
- },
72717
+ "kind": "method",
72718
+ "name": "hostDisconnected",
72818
72719
  "privacy": "public",
72819
- "description": "Size of the container.",
72820
- "default": "'m' / 's' (lean)",
72821
- "attribute": "size",
72822
- "reflects": true
72823
- },
72824
- {
72825
- "kind": "field",
72826
- "name": "_state",
72827
- "privacy": "private",
72828
- "description": "The state of the component.",
72829
- "type": {
72830
- "text": "StickyState"
72831
- },
72832
- "default": "'sticky'"
72720
+ "return": {
72721
+ "type": {
72722
+ "text": "void"
72723
+ }
72724
+ }
72833
72725
  },
72834
72726
  {
72835
- "kind": "field",
72836
- "name": "_stateInternal",
72837
- "type": {
72838
- "text": "StickyState"
72727
+ "kind": "method",
72728
+ "name": "focusInitialElement",
72729
+ "privacy": "public",
72730
+ "return": {
72731
+ "type": {
72732
+ "text": ""
72733
+ }
72839
72734
  },
72840
- "privacy": "private"
72735
+ "parameters": [
72736
+ {
72737
+ "name": "options",
72738
+ "optional": true,
72739
+ "type": {
72740
+ "text": "FocusOptions"
72741
+ }
72742
+ }
72743
+ ],
72744
+ "description": "Focuses the element that should be focused when the focus trap is initialized."
72841
72745
  },
72842
72746
  {
72843
- "kind": "field",
72844
- "name": "_intersector",
72845
- "type": {
72846
- "text": "HTMLSpanElement | undefined"
72747
+ "kind": "method",
72748
+ "name": "focusFirstTabbableElement",
72749
+ "privacy": "public",
72750
+ "return": {
72751
+ "type": {
72752
+ "text": ""
72753
+ }
72847
72754
  },
72848
- "privacy": "private"
72755
+ "parameters": [
72756
+ {
72757
+ "name": "options",
72758
+ "optional": true,
72759
+ "type": {
72760
+ "text": "FocusOptions"
72761
+ }
72762
+ }
72763
+ ],
72764
+ "description": "Focuses the first tabbable element within the focus trap region."
72849
72765
  },
72850
72766
  {
72851
- "kind": "field",
72852
- "name": "_observer",
72853
- "privacy": "private",
72854
- "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]), })"
72767
+ "kind": "method",
72768
+ "name": "focusLastTabbableElement",
72769
+ "privacy": "public",
72770
+ "return": {
72771
+ "type": {
72772
+ "text": ""
72773
+ }
72774
+ },
72775
+ "parameters": [
72776
+ {
72777
+ "name": "options",
72778
+ "optional": true,
72779
+ "type": {
72780
+ "text": "FocusOptions"
72781
+ }
72782
+ }
72783
+ ],
72784
+ "description": "Focuses the last tabbable element within the focus trap region."
72855
72785
  },
72856
72786
  {
72857
72787
  "kind": "method",
72858
- "name": "_isZeroAnimationDuration",
72788
+ "name": "_trap",
72859
72789
  "privacy": "private",
72860
72790
  "return": {
72861
72791
  "type": {
72862
- "text": "boolean"
72792
+ "text": "void"
72863
72793
  }
72864
72794
  }
72865
72795
  },
72866
72796
  {
72867
72797
  "kind": "method",
72868
- "name": "_detectStickyState",
72798
+ "name": "_getFirstTabbableElement",
72869
72799
  "privacy": "private",
72870
72800
  "return": {
72871
72801
  "type": {
72872
- "text": "void"
72802
+ "text": "HTMLElement | null"
72873
72803
  }
72874
72804
  },
72875
72805
  "parameters": [
72876
72806
  {
72877
- "name": "entry",
72807
+ "name": "root",
72878
72808
  "type": {
72879
- "text": "IntersectionObserverEntry"
72809
+ "text": "HTMLElement"
72880
72810
  }
72881
72811
  }
72882
- ]
72812
+ ],
72813
+ "description": "Get the first tabbable element from a DOM subtree (inclusive)."
72883
72814
  },
72884
72815
  {
72885
72816
  "kind": "method",
72886
- "name": "stick",
72887
- "privacy": "public",
72817
+ "name": "_getLastTabbableElement",
72818
+ "privacy": "private",
72888
72819
  "return": {
72889
72820
  "type": {
72890
- "text": "void"
72821
+ "text": "HTMLElement | null"
72891
72822
  }
72892
72823
  },
72893
- "description": "Animates from normal content flow position to `position: sticky`."
72824
+ "parameters": [
72825
+ {
72826
+ "name": "root",
72827
+ "type": {
72828
+ "text": "HTMLElement"
72829
+ }
72830
+ }
72831
+ ],
72832
+ "description": "Get the last tabbable element from a DOM subtree (inclusive)."
72894
72833
  },
72895
72834
  {
72896
72835
  "kind": "method",
72897
- "name": "unstick",
72898
- "privacy": "public",
72836
+ "name": "_untrap",
72837
+ "privacy": "private",
72899
72838
  "return": {
72900
72839
  "type": {
72901
72840
  "text": "void"
72902
72841
  }
72903
- },
72904
- "description": "Animates `position: sticky` to normal content flow position."
72842
+ }
72843
+ }
72844
+ ]
72845
+ }
72846
+ ],
72847
+ "exports": [
72848
+ {
72849
+ "kind": "js",
72850
+ "name": "SbbFocusTrapController",
72851
+ "declaration": {
72852
+ "name": "SbbFocusTrapController",
72853
+ "module": "core/a11y/focus-trap-controller.js"
72854
+ }
72855
+ }
72856
+ ]
72857
+ },
72858
+ {
72859
+ "kind": "javascript-module",
72860
+ "path": "core/a11y/focus-visible-within-controller.js",
72861
+ "declarations": [
72862
+ {
72863
+ "kind": "class",
72864
+ "description": "",
72865
+ "name": "SbbFocusVisibleWithinController",
72866
+ "members": [
72867
+ {
72868
+ "kind": "field",
72869
+ "name": "_focusinHandler",
72870
+ "privacy": "private"
72871
+ },
72872
+ {
72873
+ "kind": "field",
72874
+ "name": "_focusoutHandler",
72875
+ "privacy": "private"
72905
72876
  },
72906
72877
  {
72907
72878
  "kind": "method",
72908
- "name": "_stickyCallback",
72909
- "privacy": "private",
72879
+ "name": "hostConnected",
72880
+ "privacy": "public",
72910
72881
  "return": {
72911
72882
  "type": {
72912
72883
  "text": "void"
@@ -72915,443 +72886,472 @@
72915
72886
  },
72916
72887
  {
72917
72888
  "kind": "method",
72918
- "name": "_unstickyCallback",
72919
- "privacy": "private",
72889
+ "name": "hostDisconnected",
72890
+ "privacy": "public",
72920
72891
  "return": {
72921
72892
  "type": {
72922
72893
  "text": "void"
72923
72894
  }
72924
72895
  }
72925
- },
72896
+ }
72897
+ ]
72898
+ }
72899
+ ],
72900
+ "exports": [
72901
+ {
72902
+ "kind": "js",
72903
+ "name": "SbbFocusVisibleWithinController",
72904
+ "declaration": {
72905
+ "name": "SbbFocusVisibleWithinController",
72906
+ "module": "core/a11y/focus-visible-within-controller.js"
72907
+ }
72908
+ }
72909
+ ]
72910
+ },
72911
+ {
72912
+ "kind": "javascript-module",
72913
+ "path": "core/a11y/focus.js",
72914
+ "declarations": [
72915
+ {
72916
+ "kind": "variable",
72917
+ "name": "IS_FOCUSABLE_QUERY"
72918
+ }
72919
+ ],
72920
+ "exports": [
72921
+ {
72922
+ "kind": "js",
72923
+ "name": "IS_FOCUSABLE_QUERY",
72924
+ "declaration": {
72925
+ "name": "IS_FOCUSABLE_QUERY",
72926
+ "module": "core/a11y/focus.js"
72927
+ }
72928
+ }
72929
+ ]
72930
+ },
72931
+ {
72932
+ "kind": "javascript-module",
72933
+ "path": "core/a11y/input-modality-detector.js",
72934
+ "declarations": [
72935
+ {
72936
+ "kind": "variable",
72937
+ "name": "CONTROL",
72938
+ "type": {
72939
+ "text": "number"
72940
+ },
72941
+ "default": "17"
72942
+ },
72943
+ {
72944
+ "kind": "variable",
72945
+ "name": "META",
72946
+ "type": {
72947
+ "text": "number"
72948
+ },
72949
+ "default": "91"
72950
+ },
72951
+ {
72952
+ "kind": "variable",
72953
+ "name": "MAC_META",
72954
+ "type": {
72955
+ "text": "number"
72956
+ },
72957
+ "default": "224"
72958
+ },
72959
+ {
72960
+ "kind": "variable",
72961
+ "name": "sbbInputModalityDetector",
72962
+ "default": "new SbbInputModalityDetector()"
72963
+ }
72964
+ ],
72965
+ "exports": [
72966
+ {
72967
+ "kind": "js",
72968
+ "name": "sbbInputModalityDetector",
72969
+ "declaration": {
72970
+ "name": "sbbInputModalityDetector",
72971
+ "module": "core/a11y/input-modality-detector.js"
72972
+ }
72973
+ }
72974
+ ]
72975
+ },
72976
+ {
72977
+ "kind": "javascript-module",
72978
+ "path": "core/a11y/interactivity-checker.js",
72979
+ "declarations": [
72980
+ {
72981
+ "kind": "class",
72982
+ "description": "Configuration for the isFocusable method.",
72983
+ "name": "IsFocusableConfig",
72984
+ "members": [
72985
+ {
72986
+ "kind": "field",
72987
+ "name": "ignoreVisibility",
72988
+ "type": {
72989
+ "text": "boolean"
72990
+ },
72991
+ "privacy": "public",
72992
+ "default": "false",
72993
+ "description": "Whether to count an element as focusable even if it is not currently visible."
72994
+ }
72995
+ ]
72996
+ },
72997
+ {
72998
+ "kind": "class",
72999
+ "description": "",
73000
+ "name": "InteractivityChecker",
73001
+ "members": [
72926
73002
  {
72927
73003
  "kind": "method",
72928
- "name": "_onAnimationEnd",
72929
- "privacy": "private",
73004
+ "name": "isDisabled",
73005
+ "privacy": "public",
72930
73006
  "return": {
72931
73007
  "type": {
72932
- "text": "void"
73008
+ "text": ""
72933
73009
  }
72934
73010
  },
72935
73011
  "parameters": [
72936
73012
  {
72937
- "name": "event",
73013
+ "name": "element",
72938
73014
  "type": {
72939
- "text": "AnimationEvent"
72940
- }
73015
+ "text": "HTMLElement"
73016
+ },
73017
+ "description": "Element to be checked."
72941
73018
  }
72942
- ]
73019
+ ],
73020
+ "description": "Gets whether an element is disabled."
72943
73021
  },
72944
73022
  {
72945
73023
  "kind": "method",
72946
- "name": "_dispatchBeforeStickEvent",
72947
- "privacy": "private",
73024
+ "name": "isVisible",
73025
+ "privacy": "public",
72948
73026
  "return": {
72949
73027
  "type": {
72950
- "text": "boolean"
73028
+ "text": ""
72951
73029
  }
72952
- }
72953
- },
72954
- {
72955
- "kind": "method",
72956
- "name": "_dispatchBeforeUnStickEvent",
72957
- "privacy": "private",
72958
- "return": {
72959
- "type": {
72960
- "text": "boolean"
73030
+ },
73031
+ "parameters": [
73032
+ {
73033
+ "name": "element",
73034
+ "type": {
73035
+ "text": "HTMLElement"
73036
+ }
72961
73037
  }
72962
- }
72963
- },
72964
- {
72965
- "kind": "field",
72966
- "name": "_updatePromise",
72967
- "privacy": "private",
72968
- "inheritedFrom": {
72969
- "name": "SbbUpdateSchedulerMixin",
72970
- "module": "core/mixins/update-scheduler-mixin.js"
72971
- }
72972
- },
72973
- {
72974
- "kind": "field",
72975
- "name": "_updateResolve",
72976
- "privacy": "private",
72977
- "inheritedFrom": {
72978
- "name": "SbbUpdateSchedulerMixin",
72979
- "module": "core/mixins/update-scheduler-mixin.js"
72980
- }
73038
+ ],
73039
+ "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."
72981
73040
  },
72982
73041
  {
72983
73042
  "kind": "method",
72984
- "name": "startUpdate",
72985
- "privacy": "protected",
73043
+ "name": "isTabbable",
73044
+ "privacy": "public",
72986
73045
  "return": {
72987
73046
  "type": {
72988
- "text": "void"
73047
+ "text": ""
72989
73048
  }
72990
73049
  },
72991
- "inheritedFrom": {
72992
- "name": "SbbUpdateSchedulerMixin",
72993
- "module": "core/mixins/update-scheduler-mixin.js"
72994
- }
72995
- },
72996
- {
72997
- "kind": "method",
72998
- "name": "completeUpdate",
72999
- "privacy": "protected",
73000
- "return": {
73001
- "type": {
73002
- "text": "void"
73050
+ "parameters": [
73051
+ {
73052
+ "name": "element",
73053
+ "type": {
73054
+ "text": "HTMLElement"
73055
+ },
73056
+ "description": "Element to be checked."
73003
73057
  }
73004
- },
73005
- "inheritedFrom": {
73006
- "name": "SbbUpdateSchedulerMixin",
73007
- "module": "core/mixins/update-scheduler-mixin.js"
73008
- }
73058
+ ],
73059
+ "description": "Gets whether an element can be reached via Tab key.\nAssumes that the element has already been checked with isFocusable."
73009
73060
  },
73010
73061
  {
73011
73062
  "kind": "method",
73012
- "name": "getUpdateComplete",
73013
- "privacy": "protected",
73063
+ "name": "isFocusable",
73064
+ "privacy": "public",
73014
73065
  "return": {
73015
73066
  "type": {
73016
- "text": "Promise<boolean>"
73067
+ "text": ""
73017
73068
  }
73018
73069
  },
73019
- "inheritedFrom": {
73020
- "name": "SbbUpdateSchedulerMixin",
73021
- "module": "core/mixins/update-scheduler-mixin.js"
73022
- }
73023
- },
73024
- {
73025
- "kind": "field",
73026
- "name": "['_$sbbElement$']",
73027
- "type": {
73028
- "text": "boolean"
73029
- },
73030
- "privacy": "public",
73031
- "static": true,
73032
- "default": "true",
73033
- "inheritedFrom": {
73034
- "name": "SbbElement",
73035
- "module": "core/base-elements/element.js"
73036
- }
73037
- },
73038
- {
73039
- "kind": "field",
73040
- "name": "elementDependencies",
73041
- "type": {
73042
- "text": "SbbElementType[] | undefined"
73043
- },
73044
- "privacy": "public",
73045
- "static": true,
73046
- "inheritedFrom": {
73047
- "name": "SbbElement",
73048
- "module": "core/base-elements/element.js"
73049
- }
73050
- },
73051
- {
73052
- "kind": "field",
73053
- "name": "role",
73054
- "type": {
73055
- "text": "ElementInternals['role'] | undefined"
73056
- },
73057
- "privacy": "public",
73058
- "static": true,
73059
- "inheritedFrom": {
73060
- "name": "SbbElement",
73061
- "module": "core/base-elements/element.js"
73062
- }
73063
- },
73064
- {
73065
- "kind": "field",
73066
- "name": "_controllers",
73067
- "type": {
73068
- "text": "Set<SbbReactiveController> | undefined"
73069
- },
73070
- "privacy": "private",
73071
- "inheritedFrom": {
73072
- "name": "SbbElement",
73073
- "module": "core/base-elements/element.js"
73074
- }
73075
- },
73070
+ "parameters": [
73071
+ {
73072
+ "name": "element",
73073
+ "type": {
73074
+ "text": "HTMLElement"
73075
+ },
73076
+ "description": "Element to be checked."
73077
+ },
73078
+ {
73079
+ "name": "config",
73080
+ "optional": true,
73081
+ "type": {
73082
+ "text": "IsFocusableConfig"
73083
+ },
73084
+ "description": "The config object with options to customize this method's behavior"
73085
+ }
73086
+ ],
73087
+ "description": "Gets whether an element can be focused by the user."
73088
+ }
73089
+ ]
73090
+ },
73091
+ {
73092
+ "kind": "variable",
73093
+ "name": "interactivityChecker",
73094
+ "default": "new InteractivityChecker()"
73095
+ }
73096
+ ],
73097
+ "exports": [
73098
+ {
73099
+ "kind": "js",
73100
+ "name": "IsFocusableConfig",
73101
+ "declaration": {
73102
+ "name": "IsFocusableConfig",
73103
+ "module": "core/a11y/interactivity-checker.js"
73104
+ }
73105
+ },
73106
+ {
73107
+ "kind": "js",
73108
+ "name": "InteractivityChecker",
73109
+ "declaration": {
73110
+ "name": "InteractivityChecker",
73111
+ "module": "core/a11y/interactivity-checker.js"
73112
+ }
73113
+ },
73114
+ {
73115
+ "kind": "js",
73116
+ "name": "interactivityChecker",
73117
+ "declaration": {
73118
+ "name": "interactivityChecker",
73119
+ "module": "core/a11y/interactivity-checker.js"
73120
+ }
73121
+ }
73122
+ ]
73123
+ },
73124
+ {
73125
+ "kind": "javascript-module",
73126
+ "path": "core/a11y/live-announcer.js",
73127
+ "declarations": [
73128
+ {
73129
+ "kind": "class",
73130
+ "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",
73131
+ "name": "SbbLiveAnnouncer",
73132
+ "members": [
73076
73133
  {
73077
73134
  "kind": "field",
73078
- "name": "_hydrationRequired",
73135
+ "name": "_liveElement",
73079
73136
  "type": {
73080
- "text": "boolean"
73137
+ "text": "HTMLElement"
73081
73138
  },
73082
- "privacy": "private",
73083
- "default": "!!this.shadowRoot",
73084
- "inheritedFrom": {
73085
- "name": "SbbElement",
73086
- "module": "core/base-elements/element.js"
73087
- }
73088
- },
73089
- {
73090
- "kind": "field",
73091
- "name": "_hydrationComplete",
73092
- "privacy": "private",
73093
- "default": "new Promise<boolean>( (resolve) => (this._resolveHydration = resolve), )",
73094
- "inheritedFrom": {
73095
- "name": "SbbElement",
73096
- "module": "core/base-elements/element.js"
73097
- }
73139
+ "privacy": "private"
73098
73140
  },
73099
73141
  {
73100
73142
  "kind": "field",
73101
- "name": "_resolveHydration",
73143
+ "name": "_previousTimeout",
73102
73144
  "type": {
73103
- "text": "(hydrationRequired: boolean) => void"
73145
+ "text": "ReturnType<typeof setTimeout> | undefined"
73104
73146
  },
73105
- "privacy": "private",
73106
- "inheritedFrom": {
73107
- "name": "SbbElement",
73108
- "module": "core/base-elements/element.js"
73109
- }
73147
+ "privacy": "private"
73110
73148
  },
73111
73149
  {
73112
73150
  "kind": "field",
73113
- "name": "_textObserver",
73151
+ "name": "_currentPromise",
73114
73152
  "type": {
73115
- "text": "MutationObserver | undefined"
73153
+ "text": "Promise<void> | undefined"
73116
73154
  },
73117
- "privacy": "private",
73118
- "inheritedFrom": {
73119
- "name": "SbbElement",
73120
- "module": "core/base-elements/element.js"
73121
- }
73155
+ "privacy": "private"
73122
73156
  },
73123
73157
  {
73124
73158
  "kind": "field",
73125
- "name": "hydrationRequired",
73159
+ "name": "_currentResolve",
73126
73160
  "type": {
73127
- "text": "boolean"
73128
- },
73129
- "privacy": "protected",
73130
- "description": "Returns whether hydration is required and not completed.",
73131
- "readonly": true,
73132
- "inheritedFrom": {
73133
- "name": "SbbElement",
73134
- "module": "core/base-elements/element.js"
73161
+ "text": "(() => void) | undefined"
73135
73162
  },
73136
- "default": "!!this.shadowRoot"
73163
+ "privacy": "private"
73137
73164
  },
73138
73165
  {
73139
73166
  "kind": "method",
73140
- "name": "toggleState",
73141
- "privacy": "protected",
73167
+ "name": "announce",
73168
+ "privacy": "public",
73142
73169
  "return": {
73143
73170
  "type": {
73144
- "text": "void"
73171
+ "text": ""
73145
73172
  }
73146
73173
  },
73147
73174
  "parameters": [
73148
73175
  {
73149
- "name": "value",
73176
+ "name": "message",
73150
73177
  "type": {
73151
73178
  "text": "string"
73152
- }
73153
- },
73154
- {
73155
- "name": "force",
73156
- "optional": true,
73157
- "type": {
73158
- "text": "boolean"
73159
- }
73179
+ },
73180
+ "description": "Message to be announced to the screen reader."
73160
73181
  }
73161
73182
  ],
73162
- "inheritedFrom": {
73163
- "name": "SbbElement",
73164
- "module": "core/base-elements/element.js"
73165
- }
73183
+ "description": "Announces a message to screen readers."
73166
73184
  },
73167
73185
  {
73168
73186
  "kind": "method",
73169
- "name": "_slotchangeHandler",
73170
- "privacy": "private",
73187
+ "name": "announce",
73188
+ "privacy": "public",
73171
73189
  "return": {
73172
73190
  "type": {
73173
- "text": "void"
73191
+ "text": ""
73174
73192
  }
73175
73193
  },
73176
73194
  "parameters": [
73177
73195
  {
73178
- "name": "event",
73196
+ "name": "message",
73179
73197
  "type": {
73180
- "text": "Event"
73181
- }
73198
+ "text": "string"
73199
+ },
73200
+ "description": "Message to be announced to the screen reader."
73182
73201
  },
73183
73202
  {
73184
- "name": "slot",
73203
+ "name": "politeness",
73204
+ "optional": true,
73185
73205
  "type": {
73186
- "text": "HTMLSlotElement"
73187
- }
73206
+ "text": "AriaLivePoliteness"
73207
+ },
73208
+ "description": "The politeness of the announcer element."
73188
73209
  }
73189
73210
  ],
73190
- "inheritedFrom": {
73191
- "name": "SbbElement",
73192
- "module": "core/base-elements/element.js"
73193
- }
73211
+ "description": "Announces a message to screen readers."
73194
73212
  },
73195
73213
  {
73196
73214
  "kind": "method",
73197
- "name": "_handleSlotChangeForSlottedState",
73198
- "privacy": "private",
73215
+ "name": "announce",
73216
+ "privacy": "public",
73199
73217
  "return": {
73200
73218
  "type": {
73201
- "text": "void"
73219
+ "text": ""
73202
73220
  }
73203
73221
  },
73204
73222
  "parameters": [
73205
73223
  {
73206
- "name": "slot",
73224
+ "name": "message",
73207
73225
  "type": {
73208
- "text": "HTMLSlotElement"
73209
- }
73226
+ "text": "string"
73227
+ },
73228
+ "description": "Message to be announced to the screen reader."
73229
+ },
73230
+ {
73231
+ "name": "duration",
73232
+ "optional": true,
73233
+ "type": {
73234
+ "text": "number"
73235
+ },
73236
+ "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."
73210
73237
  }
73211
73238
  ],
73212
- "inheritedFrom": {
73213
- "name": "SbbElement",
73214
- "module": "core/base-elements/element.js"
73215
- }
73239
+ "description": "Announces a message to screen readers."
73216
73240
  },
73217
73241
  {
73218
73242
  "kind": "method",
73219
- "name": "_updateSlottedState",
73220
- "privacy": "private",
73243
+ "name": "announce",
73244
+ "privacy": "public",
73221
73245
  "return": {
73222
73246
  "type": {
73223
- "text": "void"
73247
+ "text": ""
73224
73248
  }
73225
73249
  },
73226
73250
  "parameters": [
73227
73251
  {
73228
- "name": "slot",
73252
+ "name": "message",
73229
73253
  "type": {
73230
- "text": "HTMLSlotElement"
73231
- }
73254
+ "text": "string"
73255
+ },
73256
+ "description": "Message to be announced to the screen reader."
73257
+ },
73258
+ {
73259
+ "name": "politeness",
73260
+ "optional": true,
73261
+ "type": {
73262
+ "text": "AriaLivePoliteness"
73263
+ },
73264
+ "description": "The politeness of the announcer element."
73265
+ },
73266
+ {
73267
+ "name": "duration",
73268
+ "optional": true,
73269
+ "type": {
73270
+ "text": "number"
73271
+ },
73272
+ "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."
73232
73273
  }
73233
73274
  ],
73234
- "inheritedFrom": {
73235
- "name": "SbbElement",
73236
- "module": "core/base-elements/element.js"
73237
- }
73275
+ "description": "Announces a message to screen readers."
73238
73276
  },
73239
73277
  {
73240
73278
  "kind": "method",
73241
- "name": "_observeTextNodesInSlot",
73242
- "privacy": "private",
73279
+ "name": "announce",
73280
+ "privacy": "public",
73243
73281
  "return": {
73244
73282
  "type": {
73245
- "text": "void"
73283
+ "text": "Promise<void>"
73246
73284
  }
73247
73285
  },
73248
73286
  "parameters": [
73249
73287
  {
73250
- "name": "slot",
73288
+ "name": "message",
73251
73289
  "type": {
73252
- "text": "HTMLSlotElement"
73290
+ "text": "string"
73291
+ }
73292
+ },
73293
+ {
73294
+ "name": "args",
73295
+ "type": {
73296
+ "text": "any[]"
73253
73297
  }
73254
73298
  }
73255
- ],
73256
- "inheritedFrom": {
73257
- "name": "SbbElement",
73258
- "module": "core/base-elements/element.js"
73259
- }
73299
+ ]
73260
73300
  },
73261
73301
  {
73262
73302
  "kind": "method",
73263
- "name": "_hasSlottedContent",
73264
- "privacy": "private",
73303
+ "name": "clear",
73304
+ "privacy": "public",
73265
73305
  "return": {
73266
73306
  "type": {
73267
- "text": "boolean"
73268
- }
73269
- },
73270
- "parameters": [
73271
- {
73272
- "name": "slot",
73273
- "type": {
73274
- "text": "HTMLSlotElement"
73275
- }
73307
+ "text": "void"
73276
73308
  }
73277
- ],
73278
- "inheritedFrom": {
73279
- "name": "SbbElement",
73280
- "module": "core/base-elements/element.js"
73281
- }
73282
- }
73283
- ],
73284
- "events": [
73285
- {
73286
- "name": "stick",
73287
- "type": {
73288
- "text": "Event"
73289
- },
73290
- "description": "Emits when the animation from normal content flow to `position: sticky` ends."
73291
- },
73292
- {
73293
- "name": "unstick",
73294
- "type": {
73295
- "text": "Event"
73296
- },
73297
- "description": "Emits when the animation from `position: sticky` to normal content flow ends."
73298
- },
73299
- {
73300
- "name": "beforestick",
73301
- "type": {
73302
- "text": "Event"
73303
73309
  },
73304
- "description": "Emits when the animation from normal content flow to `position: sticky` starts. Can be canceled."
73310
+ "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."
73305
73311
  },
73306
73312
  {
73307
- "name": "beforeunstick",
73308
- "type": {
73309
- "text": "Event"
73310
- },
73311
- "description": "Emits when the animation from `position: sticky` to normal content flow starts. Can be canceled."
73312
- }
73313
- ],
73314
- "attributes": [
73315
- {
73316
- "name": "color",
73317
- "type": {
73318
- "text": "| 'white'\n | 'milk'\n | 'midnight'\n | 'charcoal'\n | null"
73319
- },
73320
- "default": "null",
73321
- "description": "Color of the container, like transparent, white etc.",
73322
- "fieldName": "color"
73313
+ "kind": "method",
73314
+ "name": "destroy",
73315
+ "privacy": "public",
73316
+ "return": {
73317
+ "type": {
73318
+ "text": "void"
73319
+ }
73320
+ }
73323
73321
  },
73324
73322
  {
73325
- "name": "size",
73326
- "type": {
73327
- "text": "'m' | 's'"
73328
- },
73329
- "description": "Size of the container.",
73330
- "default": "'m' / 's' (lean)",
73331
- "fieldName": "size"
73332
- }
73333
- ],
73334
- "mixins": [
73335
- {
73336
- "name": "SbbUpdateSchedulerMixin",
73337
- "module": "core.js"
73323
+ "kind": "method",
73324
+ "name": "_createLiveElement",
73325
+ "privacy": "private",
73326
+ "return": {
73327
+ "type": {
73328
+ "text": "HTMLElement"
73329
+ }
73330
+ }
73338
73331
  }
73339
- ],
73340
- "superclass": {
73341
- "name": "SbbElement",
73342
- "module": "core.js"
73343
- },
73344
- "tagName": "sbb-sticky-bar",
73345
- "customElement": true
73332
+ ]
73333
+ },
73334
+ {
73335
+ "kind": "variable",
73336
+ "name": "sbbLiveAnnouncer",
73337
+ "default": "new SbbLiveAnnouncer()"
73346
73338
  }
73347
73339
  ],
73348
73340
  "exports": [
73349
73341
  {
73350
73342
  "kind": "js",
73351
- "name": "SbbStickyBarElement",
73343
+ "name": "SbbLiveAnnouncer",
73352
73344
  "declaration": {
73353
- "name": "SbbStickyBarElement",
73354
- "module": "container/sticky-bar/sticky-bar.component.js"
73345
+ "name": "SbbLiveAnnouncer",
73346
+ "module": "core/a11y/live-announcer.js"
73347
+ }
73348
+ },
73349
+ {
73350
+ "kind": "js",
73351
+ "name": "sbbLiveAnnouncer",
73352
+ "declaration": {
73353
+ "name": "sbbLiveAnnouncer",
73354
+ "module": "core/a11y/live-announcer.js"
73355
73355
  }
73356
73356
  }
73357
73357
  ]